:root {
  --bg: #f3f6fb;
  --ink: #18212d;
  --muted: #5f6d7d;
  --line: rgba(24, 33, 45, 0.1);
  --card: rgba(255, 255, 255, 0.96);
  --blue: #1d73d9;
  --blue-deep: #114ea5;
  --amber: #e68a1f;
  --shadow: 0 24px 70px rgba(20, 32, 52, 0.12);
  --hub-title-font: "Manrope", "Aptos", "Segoe UI Variable", "Space Grotesk", "Malgun Gothic", sans-serif;
}

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans+KR:wght@400;600;700&family=Manrope:wght@600&family=Oswald:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap");

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--ink);
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 32%),
    linear-gradient(135deg, #fbfdff 0%, #eef5fc 52%, #f8fbff 100%);
}

.portal-page,
.launcher-page {
  min-height: 100vh;
  padding: 72px 36px 36px;
  display: grid;
  gap: 28px;
  align-content: start;
}

.portal-hero,
.launcher-hero,
.menu-button,
.launcher-action,
.launcher-status,
.placeholder-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.portal-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 52px 42px 34px;
  align-items: end;
  justify-items: end;
  min-height: 260px;
}

.hero-copy {
  margin-left: auto;
  text-align: right;
  align-self: end;
}

.launcher-hero {
  padding: 34px;
}

.launcher-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero-copy h1,
.launcher-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero-secret-trigger {
  display: inline-block;
  cursor: text;
  user-select: none;
}

.home-daily-sales-dialog {
  width: min(720px, calc(100vw - 36px));
  max-height: min(760px, calc(100vh - 48px));
  padding: 22px;
  border: 1px solid #ded7cc;
  background: #fff;
  color: #3d3833;
  overflow: auto;
}

.home-daily-sales-dialog::backdrop {
  background: rgba(35, 31, 26, 0.45);
}

.home-daily-sales-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.home-daily-sales-head h2 {
  margin: 0;
  font-size: 19px;
}

.home-sales-progress {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: #756a5d;
  font-size: 13px;
}

.home-sales-progress[hidden], .home-sales-price-results[hidden] {
  display: none;
}

.home-sales-progress progress {
  flex: 1;
  min-width: 120px;
  accent-color: #ed8a00;
}

.home-sales-price-results h3 {
  font-size: 16px;
}

.home-sales-price-item {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #e6dfd4;
  background: #fbfaf7;
}

.home-sales-price-item.is-difference {
  border-color: #edb665;
  background: #fff5e5;
}

.home-sales-price-item.is-unresolved {
  border-color: #d6a19b;
}

.home-sales-price-item strong {
  font-size: 14px;
}

.home-sales-price-item p {
  margin: 8px 0 0;
  font-size: 14px;
}

.home-sales-matched {
  margin-top: 18px;
}

.home-sales-matched summary {
  cursor: pointer;
  color: #756a5d;
  padding: 8px 0;
}

.home-daily-sales-head button {
  padding: 8px 14px;
}

#homeDailySalesStatus.is-loading::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid #f3d6b1;
  border-top-color: #e88600;
  border-radius: 50%;
  animation: home-sales-spin 0.8s linear infinite;
  vertical-align: -2px;
}

#homeDailySalesStatus.is-error {
  color: #b2332d;
}

@keyframes home-sales-spin {
  to { transform: rotate(360deg); }
}

.description,
.hero-status p,
.menu-note,
.launcher-action-note,
.placeholder-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.mobile-copy {
  display: none;
}

.hero-status {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(29, 115, 217, 0.08), rgba(17, 78, 165, 0.12));
  border: 1px solid rgba(29, 115, 217, 0.16);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(230, 138, 31, 0.12);
  color: #8d5413;
  font-weight: 800;
}

.build-stamp {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(24, 33, 45, 0.58);
  font-weight: 800;
}

.menu-section {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.menu-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 190px;
  padding: 30px 20px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.menu-button:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 30px 72px rgba(20, 32, 52, 0.16);
  border-color: rgba(29, 115, 217, 0.24);
}

.menu-button:hover .menu-title {
  transform: scale(1.08);
}

@media (max-width: 760px) {
  .phone-hidden-menu-button {
    display: none;
  }
}

.launcher-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-height: 136px;
  padding: 24px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.launcher-action:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 30px 72px rgba(20, 32, 52, 0.16);
  border-color: rgba(29, 115, 217, 0.22);
}

.launcher-action:disabled,
.launcher-action.is-disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow);
}

.launcher-action.is-busy {
  opacity: 0.82;
  pointer-events: none;
}

#homeReturnsButton {
  position: relative;
}

.return-warning-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef2222;
  box-shadow: 0 0 7px rgba(239, 34, 34, 0.65);
  pointer-events: none;
}

.return-warning-dot:not([hidden]) {
  animation: return-warning-blink 1.2s ease-in-out infinite;
}

#homeShortageWarningDot {
  z-index: 5;
  top: 17px;
  right: 17px;
}

@keyframes return-warning-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.menu-button-primary {
  background: linear-gradient(145deg, rgba(17, 78, 165, 0.96), rgba(29, 115, 217, 0.92));
  color: #fff;
}

.menu-button-primary .menu-note {
  color: rgba(255, 255, 255, 0.86);
}

.menu-title,
.launcher-action-label {
  display: block;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transition: transform 0.18s ease;
}

.menu-title-two-line span {
  display: block;
}

.launcher-action-path {
  margin-top: auto;
  color: rgba(24, 33, 45, 0.55);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}

.launcher-warning {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(230, 138, 31, 0.12);
  color: #8d5413;
  font-weight: 700;
  line-height: 1.7;
}

.launcher-status {
  min-height: 60px;
  padding: 18px 20px;
  line-height: 1.7;
  color: var(--muted);
}

.launcher-status:empty {
  display: none;
}

/* 2026-05-14 brighter neutral surface refresh */
.portal-hero,
.launcher-hero,
.menu-button,
.launcher-action,
.launcher-status,
.placeholder-card,
.inventory-card,
.inventory-section,
.expiry-card,
.home-inventory-card,
.home-expiry-card,
.skyz-status-card,
.skyz-runtime-card,
.skyz-schedule-card,
.skyz-control-card,
.skyz-manual-card,
.finance-summary-card {
  background: rgba(255, 255, 255, 0.96) !important;
}

.launcher-status.is-info {
  border-color: rgba(29, 115, 217, 0.18);
  background: rgba(29, 115, 217, 0.08);
  color: #275f9e;
}

.launcher-status.is-success {
  border-color: rgba(44, 166, 106, 0.18);
  background: rgba(44, 166, 106, 0.08);
  color: #226a47;
}

.launcher-status.is-error {
  border-color: rgba(215, 75, 75, 0.2);
  background: rgba(215, 75, 75, 0.08);
  color: #953333;
}

.placeholder-page {
  min-height: 100vh;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.placeholder-card {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid rgba(118, 82, 63, 0.16);
  border-radius: 0;
  background: linear-gradient(180deg, #fffefb, #fcfaf6);
  box-shadow: 0 18px 28px rgba(82, 60, 46, 0.12);
}

.placeholder-card h1,
.launcher-subtitle {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.12;
}

.placeholder-home {
  background: linear-gradient(180deg, #f4f7fb 0%, #e9eef5 100%);
}

.placeholder-home .placeholder-page {
  width: min(1180px, calc(100vw - 28px));
}

.placeholder-hero {
  min-height: 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(118, 82, 63, 0.16);
  border-radius: 0;
  background: linear-gradient(180deg, #fffefb, #fcfaf6);
  box-shadow: 0 18px 28px rgba(82, 60, 46, 0.12);
}

.placeholder-hero-copy {
  width: 100%;
}

.portal-home.placeholder-home .placeholder-hero-copy h1 {
  margin: 0;
  color: #8f4434;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.placeholder-note {
  margin: 0;
  color: rgba(63, 45, 38, 0.76);
  font-size: 14px;
  line-height: 1.6;
}

.placeholder-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.back-link,
.return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.back-link {
  color: #a3493d;
  background: rgba(255, 255, 254, 0.98);
  border: 1px solid rgba(163, 73, 61, 0.28);
}

.back-link:hover {
  background: #a3493d;
  border-color: #a3493d;
  color: #fff7f0;
}

.return-link {
  color: #fff;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  border: 1px solid var(--blue-deep);
}

@media (max-width: 1360px) {
  .menu-section {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .portal-page,
  .launcher-page {
    padding: 36px 18px 18px;
  }

  .portal-hero {
    grid-template-columns: 1fr;
    padding: 28px;
    min-height: 0;
    justify-items: stretch;
  }

  .hero-copy {
    margin-left: 0;
    text-align: left;
  }

  .launcher-hero {
    padding: 28px;
  }

  .launcher-topline {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .desktop-copy {
    display: none;
  }

  .mobile-copy {
    display: block;
  }

  .menu-section {
    grid-template-columns: 1fr;
  }

  .menu-button {
    min-height: 132px;
    padding: 22px 20px;
  }

  .launcher-action {
    min-height: 120px;
    padding: 22px 20px;
  }

  .menu-title,
  .launcher-action-label {
    font-size: 26px;
  }

  .description,
  .hero-status p,
  .menu-note,
  .launcher-action-note,
  .placeholder-card p {
    font-size: 15px;
  }

  .placeholder-card {
    padding: 24px;
  }
}

body.portal-home {
  background: linear-gradient(180deg, #f8fbfd 0%, #eef3f8 100%);
  font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  color: #17233c;
}

.portal-home .portal-page {
  width: min(1500px, calc(100vw - 56px));
  margin: 0 auto;
  padding-top: 54px;
  gap: 22px;
}

.portal-home .portal-hero,
.portal-home .menu-button {
  border: 1px solid rgba(23, 35, 60, 0.14);
  border-radius: 0;
  box-shadow: 0 18px 34px rgba(29, 27, 23, 0.12);
  backdrop-filter: none;
}

.portal-home .portal-hero {
  position: relative;
  min-height: 220px;
  padding: 20px 30px 26px;
  grid-template-columns: 1fr;
  justify-items: stretch;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(90deg, #d8d0c0 0 8%, #ece4d6 8% 100%);
}

.portal-home .portal-hero::after {
  display: none;
}

.portal-home .hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  width: min(760px, 62%);
  margin-left: 10%;
  color: rgba(243, 235, 219, 0.84);
  text-shadow: 0 1px 1px rgba(23, 35, 60, 0.24);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-home .hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  justify-items: end;
  min-height: 100%;
  margin-left: 0;
  padding-left: 0;
  text-align: right;
}

.portal-home .hero-title-wrap {
  position: relative;
  display: inline-block;
  margin-left: auto;
  cursor: default;
}

.portal-home .hero-copy h1 {
  margin: 0;
  color: #2f59b4;
  font-family: var(--hub-title-font);
  font-size: clamp(42px, 4.8vw, 74px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-home .menu-section {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.portal-home .menu-button {
  position: relative;
  min-height: 246px;
  padding: 18px 12px 18px;
  background: #ece4d6;
  color: #16213a;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transform-origin: center bottom;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.portal-home .menu-button:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 24px 40px rgba(29, 27, 23, 0.18);
  border-color: rgba(47, 89, 180, 0.34);
}

.portal-home .menu-button:hover .menu-title {
  transform: scale(1.1);
}

.portal-home .menu-button.is-work-locked {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.portal-home .menu-button.is-work-locked:hover {
  transform: none;
  box-shadow: 0 18px 28px rgba(82, 60, 46, 0.12);
  border-color: rgba(118, 82, 63, 0.16);
}

.portal-home .menu-button.is-work-locked:hover .menu-title {
  transform: none;
}

.portal-home .menu-lock-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin-top: 8px;
  padding: 3px 8px;
  background: rgba(163, 73, 61, 0.1);
  color: #a3493d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.portal-home .menu-lock-state[hidden] {
  display: none !important;
}

.portal-home .menu-index {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(22, 33, 58, 0.62);
}

.portal-home .menu-title {
  margin-top: auto;
  margin-bottom: auto;
  color: #2f59b4;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(24px, 1.6vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-align: center;
  transition: transform 0.18s ease;
}

@media (max-width: 1360px) {
  .portal-home .menu-section {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .portal-home .portal-page {
    width: auto;
    padding-top: 20px;
  }

  .portal-home .portal-hero {
    min-height: 180px;
    padding: 22px 22px 24px;
    background: linear-gradient(180deg, #d8d0c0 0 18%, #ece4d6 18% 100%);
  }

  .portal-home .portal-hero::after {
    display: none;
  }

  .portal-home .hero-meta {
    width: auto;
    margin-left: 0;
    color: rgba(243, 235, 219, 0.84);
  }

  .portal-home .hero-copy {
    justify-items: start;
    text-align: left;
  }

  .portal-home .menu-section {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portal-home .portal-page {
    width: min(100vw - 24px, 100%);
    gap: 14px;
  }

  .portal-home .hero-copy h1 {
    font-size: clamp(30px, 8vw, 48px);
    white-space: normal;
  }

  .portal-home .menu-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-home .menu-button {
    min-height: 170px;
  }
}

/* v15 editorial portfolio override */
body.portal-home {
  background: linear-gradient(180deg, #f4f7fb 0%, #e9eef5 100%);
  color: #3b2d25;
}

html[data-portal-auth="locked"] body.portal-home {
  overflow: hidden;
}

html[data-portal-auth="locked"] .portal-home .portal-page {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html[data-portal-auth="granted"] .portal-home .portal-page {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

html[data-portal-auth="granted"] .portal-home .portal-auth-gate {
  opacity: 0;
  pointer-events: none;
}

.portal-home .portal-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 249, 241, 0.96), transparent 34%),
    linear-gradient(180deg, rgba(221, 210, 196, 0.98), rgba(209, 196, 179, 0.98));
  transition: opacity 0.22s ease;
}

.portal-home .portal-auth-card {
  width: min(520px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 28px 26px 30px;
  border: 1px solid rgba(163, 73, 61, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.97), rgba(241, 228, 220, 0.98));
  box-shadow: 0 24px 48px rgba(82, 60, 46, 0.18);
}

.portal-home .portal-auth-kicker {
  margin: 0;
  color: rgba(163, 73, 61, 0.74);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.portal-home .portal-auth-title {
  margin: 0;
  color: #a3493d;
  font-family: var(--hub-title-font);
  font-size: clamp(32px, 5.4vw, 46px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-home .portal-auth-copy {
  margin: 0;
  color: rgba(79, 64, 56, 0.82);
  font-size: 16px;
  line-height: 1.6;
}

.portal-home .portal-auth-form {
  display: grid;
  gap: 12px;
}

.portal-home .portal-auth-field {
  display: grid;
  gap: 8px;
}

.portal-home .portal-auth-field span {
  color: #7d5f54;
  font-size: 14px;
  font-weight: 800;
}

.portal-home .portal-auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(126, 96, 86, 0.22);
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.98);
  color: #4f4038;
  font-size: 18px;
  font-weight: 700;
}

.portal-home .portal-auth-submit {
  min-height: 52px;
  border: 1px solid #a3493d;
  border-radius: 16px;
  background: #a3493d;
  color: #fdf5ec;
  font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.portal-home .portal-auth-status {
  min-height: 1.6em;
  margin: 0;
  color: #a3493d;
  font-size: 14px;
  font-weight: 700;
}

/* 2026-04-27 login screen aligned with current home theme */
.portal-home .portal-auth-gate {
  background: linear-gradient(180deg, #e6e4e1 0%, #d7d3ce 100%) !important;
}

.portal-home .portal-auth-card {
  border: 1px solid rgba(89, 73, 55, 0.22) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #ffffff, #f9fbfd) !important;
  box-shadow: 0 16px 28px rgba(82, 60, 46, 0.12) !important;
}

.portal-home .portal-auth-kicker {
  color: rgba(241, 143, 1, 0.72) !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
}

.portal-home .portal-auth-title {
  color: #f18f01 !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

.portal-home .portal-auth-field span {
  color: #665d56 !important;
  font-weight: 600 !important;
}

.portal-home .portal-auth-field input {
  border: 1px solid rgba(241, 143, 1, 0.24) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 254, 0.98) !important;
  color: #4f4740 !important;
}

.portal-home .portal-auth-field input:focus {
  outline: 2px solid rgba(241, 143, 1, 0.24) !important;
  outline-offset: 2px !important;
}

.portal-home .portal-auth-submit {
  border: 1px solid #f18f01 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #f18f01, #e88300) !important;
  color: #fff7ed !important;
  box-shadow: 0 12px 22px rgba(121, 74, 31, 0.14) !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
}

.portal-home .portal-auth-submit:hover {
  background: linear-gradient(180deg, #ff9e18, #ed8600) !important;
}

.portal-home .portal-auth-status {
  color: #f18f01 !important;
}

body.portal-home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.62;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.34) 0 18%, transparent 18% 100%),
    linear-gradient(-16deg, rgba(255, 255, 255, 0.2) 0 16%, transparent 16% 100%);
}

.portal-home .portal-page {
  position: relative;
  width: min(1460px, calc(100vw - 40px));
  padding-top: 42px;
  gap: 18px;
}

.portal-home .portal-hero,
.portal-home .menu-button {
  border: 1px solid rgba(118, 82, 63, 0.16);
  border-radius: 0;
  background: linear-gradient(180deg, #fffefb, #fcfaf6);
  box-shadow: 0 18px 28px rgba(82, 60, 46, 0.12);
  backdrop-filter: none;
}

.portal-home .portal-hero {
  min-height: 176px;
  padding: 24px 28px 22px;
  border-color: rgba(126, 84, 61, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #eedecb 0%, #e6d2be 100%);
  box-shadow: 0 20px 34px rgba(82, 60, 46, 0.16);
}

.portal-home .home-skyz-warning-dot {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c53f37;
  box-shadow:
    0 0 0 5px rgba(197, 63, 55, 0.2),
    0 0 18px rgba(197, 63, 55, 0.36);
  cursor: pointer;
  animation: homeSkyzWarningPulse 1.2s ease-in-out infinite;
}

.portal-home .home-skyz-warning-dot:hover {
  transform: scale(1.08);
}

.portal-home .home-skyz-warning-dot:focus-visible {
  outline: 2px solid rgba(197, 63, 55, 0.32);
  outline-offset: 4px;
}

@keyframes homeSkyzWarningPulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(197, 63, 55, 0.32),
      0 0 16px rgba(197, 63, 55, 0.28);
  }

  55% {
    transform: scale(1.12);
    box-shadow:
      0 0 0 8px rgba(197, 63, 55, 0.08),
      0 0 24px rgba(197, 63, 55, 0.42);
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(197, 63, 55, 0.18),
      0 0 16px rgba(197, 63, 55, 0.28);
  }
}

.portal-home .hero-copy {
  justify-items: end;
  text-align: right;
}

.portal-home .hero-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-left: auto;
}

.portal-home .hero-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  margin-right: 0.12em;
  border: 1px solid rgba(163, 73, 61, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 254, 0.98), rgba(252, 249, 244, 0.99));
  color: #a3493d;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.portal-home .hero-download-link:hover {
  transform: translateY(-2px);
  border-color: #a3493d;
  background: linear-gradient(180deg, #fff6ed, #f2dfcf);
}

.portal-home .hero-download-link:focus-visible {
  outline: 2px solid rgba(163, 73, 61, 0.28);
  outline-offset: 4px;
}

.portal-home .hero-copy h1 {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  color: #8f4434;
  font-family: var(--hub-title-font);
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.portal-home .hero-hub-tail {
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
}

.portal-home .hero-update-days {
  display: inline-block;
  min-width: 1ch;
  margin-left: 0.46em;
  color: rgba(143, 68, 52, 0.84);
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 700;
  line-height: 0.88;
  text-align: left;
  letter-spacing: 0.02em;
}

.portal-home .hero-update-days.is-expired {
  color: rgba(120, 126, 138, 0.82);
}

.portal-home .menu-section {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.portal-home .menu-button {
  min-height: 188px;
  padding: 16px 16px 18px;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  gap: 8px;
  color: #a3493d;
  border-color: rgba(163, 73, 61, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.portal-home .menu-button::after {
  display: none;
}

.portal-home .menu-index {
  display: none;
}

.portal-home .menu-title {
  margin-top: 0;
  margin-bottom: 0;
  color: #a3493d;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(22px, 1.95vw, 32px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-align: left;
}

.portal-home .menu-state {
  display: inline-block;
  margin-top: 0;
  color: rgba(163, 73, 61, 0.72);
  font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.portal-home .home-unused-panel {
  display: grid;
  gap: 18px;
  padding: 22px 24px 26px;
  border: 1px solid rgba(126, 96, 86, 0.2);
  background: linear-gradient(180deg, #f1e4dc, #e7d8cf);
  box-shadow: 0 18px 28px rgba(82, 60, 46, 0.12);
}

.portal-home .home-stock-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.portal-home .home-stock-section {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-content: start;
  align-self: start;
}

.portal-home .home-unused-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}


.portal-home .home-unused-kicker {
  margin: 0 0 10px;
  color: rgba(163, 73, 61, 0.76);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.portal-home .home-unused-copy h2 {
  margin: 0;
  color: #9a6332;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.portal-home .home-unused-description {
  margin: 10px 0 0;
  color: rgba(59, 45, 37, 0.78);
  line-height: 1.7;
  font-size: 15px;
}

.portal-home .home-unused-filter {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  justify-self: end;
}


.portal-home .home-unused-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6f554b;
  font-size: 15px;
  font-weight: 800;
}

.portal-home .home-unused-field span {
  white-space: nowrap;
  line-height: 1;
}

.portal-home .home-unused-input {
  width: 112px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(126, 96, 86, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: #6f554b;
  font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.portal-home .home-unused-input:focus {
  outline: 2px solid rgba(126, 96, 86, 0.16);
  border-color: rgba(126, 96, 86, 0.4);
}

.portal-home .home-unused-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #7d5f54;
  background: #7d5f54;
  color: #f7eee4;
  font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.portal-home .home-unused-button:hover {
  transform: translateY(-1px);
  background: #694f45;
}

.portal-home .home-unused-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(163, 73, 61, 0.12);
  background: rgba(255, 249, 240, 0.86);
}

.portal-home .home-unused-summary-label {
  color: rgba(123, 74, 63, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.portal-home .home-unused-summary strong {
  color: #7b342a;
  font-size: 20px;
  font-weight: 900;
}

.portal-home .home-unused-grid {
  display: block;
  align-content: start;
}

.portal-home .home-unused-table-wrap {
  overflow: auto;
  border: 1px solid rgba(126, 96, 86, 0.14);
  background: rgba(252, 247, 243, 0.95);
}

.portal-home .home-unused-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.portal-home .home-unused-table thead th {
  padding: 14px 16px;
  color: #6f554b;
  background: rgba(126, 96, 86, 0.08);
  font-size: 15px;
  font-weight: 800;
  text-align: left;
}

.portal-home .home-unused-table tbody td {
  padding: 18px 16px;
  border-top: 1px solid rgba(126, 96, 86, 0.08);
  color: #4f4038;
  font-size: 16px;
  vertical-align: top;
}

.portal-home .home-expiry-grid {
  display: grid;
  gap: 14px;
  align-content: start;
  align-items: start;
}

.portal-home .home-expiry-bucket {
  display: grid;
  gap: 8px;
  align-content: start;
}

.portal-home .home-expiry-title {
  margin: 0;
  color: #5f7b63;
  font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.portal-home .home-unused-table thead th:last-child,
.portal-home .home-unused-table tbody td:last-child {
  width: 140px;
  text-align: right;
}

.portal-home .home-unused-product-table thead th:first-child,
.portal-home .home-unused-product-table tbody td:first-child {
  width: auto;
  min-width: 0;
  max-width: none;
}

.portal-home .home-expiry-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.portal-home .home-expiry-table .expiry-col-supplier {
  width: 68px;
}

.portal-home .home-expiry-table .expiry-col-product {
  width: auto;
}

.portal-home .home-expiry-table .expiry-col-spec {
  width: 82px;
}

.portal-home .home-expiry-table .expiry-col-qty {
  width: 72px;
}

.portal-home .home-expiry-table .expiry-col-date {
  width: 112px;
}

.portal-home .home-expiry-table thead th:first-child,
.portal-home .home-expiry-table tbody td:first-child {
  width: auto;
  min-width: 0;
  max-width: none;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-home .home-expiry-table thead th:nth-child(2),
.portal-home .home-expiry-table tbody td:nth-child(2) {
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center !important;
}

.portal-home .home-expiry-table thead th:nth-child(3),
.portal-home .home-expiry-table tbody td:nth-child(3) {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  text-align: center !important;
}

.portal-home .home-expiry-table thead th:nth-child(4),
.portal-home .home-expiry-table tbody td:nth-child(4) {
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  text-align: center !important;
}

.portal-home .home-expiry-table thead th:nth-child(5),
.portal-home .home-expiry-table tbody td:nth-child(5) {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  text-align: center !important;
}

.portal-home .menu-button:hover {
  transform: translateY(-5px);
  background: #007fff;
  border-color: #007fff;
  box-shadow: 0 22px 32px rgba(0, 127, 255, 0.26);
  color: #ffffff;
}

.portal-home .menu-button:hover .menu-title {
  color: #ffffff;
  transform: scale(1.02);
}

.portal-home .menu-button:hover .menu-state {
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 1360px) {
  .portal-home .menu-section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .portal-home .portal-page {
    width: auto;
    padding-top: 18px;
  }

  .portal-home .portal-hero {
    min-height: 154px;
    padding: 20px 20px 18px;
  }

  .portal-home .hero-copy {
    justify-items: end;
    text-align: right;
  }

  .portal-home .menu-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-home .home-unused-head {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-home .home-stock-section:first-child .home-unused-head {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .portal-home .home-stock-layout {
    grid-template-columns: 1fr;
  }

  .portal-home .home-unused-filter {
    align-items: stretch;
  }

  .portal-home .home-stock-section:first-child .home-unused-filter {
    align-items: center;
    flex-wrap: nowrap;
    margin-left: auto;
    justify-content: flex-end;
  }

  .portal-home .home-unused-field {
    justify-content: space-between;
  }

  .portal-home .home-stock-section:first-child .home-unused-field {
    justify-content: flex-end;
  }

  .portal-home .home-unused-input,
  .portal-home .home-unused-button {
    width: 100%;
  }

  .portal-home .home-stock-section:first-child .home-unused-input,
  .portal-home .home-stock-section:first-child .home-unused-button {
    width: auto;
  }
}

@media (max-width: 720px) {
  .portal-home .hero-title-wrap {
    align-items: flex-start;
  }

  .portal-home .hero-copy h1 {
    justify-content: flex-start;
    font-size: clamp(50px, 13.4vw, 76px);
    white-space: normal;
  }

  .portal-home .hero-download-link {
    margin-right: 0;
    margin-bottom: 2px;
    margin-left: 0;
    min-height: 48px;
    padding: 0 18px;
    font-size: 18px;
  }

  .portal-home .hero-update-days {
    margin-left: 0.38em;
    font-size: 16px;
  }

  .portal-home .menu-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .portal-home .menu-button {
    min-height: 152px;
    padding: 18px 16px;
  }

  .portal-home .menu-title {
    font-size: clamp(29px, 8.6vw, 42px);
    line-height: 1.08;
  }

  .portal-home .menu-state {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.4;
  }

  .portal-home .home-unused-panel {
    padding: 20px 18px 24px;
    gap: 18px;
  }

  .portal-home .home-unused-copy h2 {
    font-size: clamp(32px, 9.8vw, 44px);
  }

  .portal-home .home-stock-layout {
    gap: 14px;
  }

  .portal-home .home-unused-field,
  .portal-home .home-expiry-title {
    font-size: 20px;
  }

  .portal-home .home-unused-input,
  .portal-home .home-unused-button {
    min-height: 58px;
    font-size: 21px;
  }

  .portal-home .home-unused-table thead th {
    font-size: 19px;
  }

  .portal-home .home-unused-table tbody td {
    font-size: 21px;
    line-height: 1.55;
  }
}

@media (max-width: 460px) {
  .portal-home .menu-button {
    min-height: 132px;
    padding: 16px 13px;
  }

  .portal-home .hero-copy h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  .portal-home .menu-title {
    font-size: 27px;
  }

  .portal-home .home-unused-field,
  .portal-home .home-expiry-title {
    font-size: 19px;
  }

  .portal-home .home-unused-table thead th {
    font-size: 17px;
  }

  .portal-home .home-unused-table tbody td {
    font-size: 19px;
  }
}

.portal-home .hero-title-text {
  display: inline;
}

.portal-home .hero-title-space {
  display: inline-block;
  width: 0.26em;
}

.portal-home .hero-secret-letter {
  position: relative;
  display: inline-block;
}

.portal-home .hero-secret-link {
  position: absolute;
  inset: -0.12em -0.08em -0.06em -0.08em;
  display: block;
  text-decoration: none;
  background: transparent;
  color: transparent;
  cursor: default;
}

.portal-home .hero-secret-link:focus-visible {
  outline: 2px solid rgba(163, 73, 61, 0.32);
  outline-offset: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skyz-home {
  background: linear-gradient(180deg, #f4f7fb 0%, #e9eef5 100%);
}

.skyz-home .skyz-page {
  width: min(1460px, calc(100vw - 40px));
  gap: 12px;
}

.skyz-home .skyz-hero {
  min-height: 0;
  padding: 14px 16px;
}

.skyz-home .skyz-hero-copy {
  width: 100%;
  justify-items: stretch;
}

.skyz-home .skyz-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.portal-home.skyz-home .skyz-hero .eyebrow {
  margin: 0 0 4px;
  color: rgba(163, 73, 61, 0.76);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.portal-home.skyz-home .skyz-hero h1 {
  margin: 0;
  color: #8f4434;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.skyz-home .description,
.skyz-home .skyz-panel-note,
.skyz-home .skyz-status-meta,
.skyz-home .skyz-runtime-meta,
.skyz-home .skyz-schedule-summary,
.skyz-home .skyz-control-copy p {
  display: none;
}

.skyz-home .skyz-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.skyz-home .skyz-status-card,
.skyz-home .skyz-panel {
  border: 1px solid rgba(118, 82, 63, 0.16);
  background: linear-gradient(180deg, #fffefb, #fcfaf6);
  box-shadow: 0 18px 28px rgba(82, 60, 46, 0.12);
}

.skyz-home .skyz-status-card {
  padding: 16px 16px 18px;
  min-height: 92px;
  display: grid;
  align-content: space-between;
  gap: 6px;
}

.skyz-home .skyz-status-card.is-actionable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.skyz-home .skyz-status-card.is-actionable:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 32px rgba(82, 49, 40, 0.14);
}

.skyz-home .skyz-status-card[data-tone="ok"] {
  border-color: rgba(44, 119, 74, 0.28);
}

.skyz-home .skyz-status-card[data-tone="warn"] {
  border-color: rgba(196, 124, 30, 0.3);
}

.skyz-home .skyz-status-card[data-tone="error"] {
  border-color: rgba(182, 65, 65, 0.3);
}

.skyz-home .skyz-status-label,
.skyz-home .skyz-panel-kicker {
  margin: 0;
  color: rgba(163, 73, 61, 0.76);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skyz-home .skyz-status-value {
  margin: 0;
  color: #a3493d;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(21px, 1.7vw, 29px);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.skyz-home .skyz-status-meta,
.skyz-home .skyz-panel-note {
  margin: 0;
  color: rgba(59, 45, 37, 0.78);
  line-height: 1.55;
  font-size: 13px;
}

.skyz-home .skyz-panel {
  padding: 18px 20px 20px;
}

.skyz-home .skyz-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}

.skyz-home .skyz-panel-head h2 {
  margin: 8px 0 0;
  color: #7d5f54;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(21px, 1.7vw, 28px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.skyz-home .skyz-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skyz-home .skyz-operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
}

.skyz-home .skyz-schedule-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.skyz-home .skyz-test-section {
  order: 40;
}

.skyz-home .skyz-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.skyz-home .skyz-menu-chip {
  appearance: none;
  cursor: pointer;
  min-height: 88px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(163, 73, 61, 0.18);
  background: rgba(252, 247, 243, 0.92);
  color: #a3493d;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.skyz-home .skyz-menu-chip:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(82, 49, 40, 0.12);
}

.skyz-home .skyz-menu-chip.is-active {
  background: #a3493d;
  border-color: #a3493d;
  color: #f7eee4;
}

.skyz-home .skyz-menu-chip:disabled,
.skyz-home .skyz-menu-chip.is-busy {
  opacity: 0.7;
  cursor: wait;
}

.skyz-home .skyz-list-panel {
  min-height: 84px;
}

.skyz-home .skyz-warning-panel {
  border-color: rgba(182, 65, 65, 0.22);
  background: linear-gradient(180deg, #f5e3de, #efd9d3);
}

.skyz-home .skyz-warning-list {
  display: grid;
  gap: 10px;
}

.skyz-home .skyz-warning-item {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(182, 65, 65, 0.2);
  background: rgba(255, 245, 243, 0.96);
}

.skyz-home .skyz-warning-item strong {
  color: #9b342d;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1;
}

.skyz-home .skyz-warning-item p,
.skyz-home .skyz-warning-item span {
  margin: 0;
  color: rgba(79, 39, 35, 0.84);
  font-size: 13px;
  line-height: 1.5;
}

.skyz-home .skyz-schedule-panel,
.skyz-home .skyz-schedule-rule-list {
  display: grid;
  gap: 10px;
}

.skyz-home .skyz-schedule-card,
.skyz-home .skyz-runtime-card,
.skyz-home .skyz-schedule-meta-box {
  border: 1px solid rgba(126, 96, 86, 0.14);
  background: rgba(252, 247, 243, 0.95);
}

.skyz-home .skyz-schedule-card {
  padding: 13px 14px 15px;
  display: grid;
  gap: 12px;
}

.skyz-home .skyz-schedule-head,
.skyz-home .skyz-schedule-rule {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.skyz-home .skyz-schedule-copy,
.skyz-home .skyz-schedule-rule-copy {
  display: grid;
  gap: 4px;
}

.skyz-home .skyz-schedule-title,
.skyz-home .skyz-schedule-rule-copy strong {
  color: #7b342a;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.skyz-home .skyz-schedule-summary,
.skyz-home .skyz-schedule-rule-copy span {
  margin: 0;
  color: rgba(59, 45, 37, 0.78);
  line-height: 1.5;
  font-size: 13px;
}

.skyz-home .skyz-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(126, 96, 86, 0.14);
  background: rgba(252, 247, 243, 0.95);
}

.skyz-home .skyz-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.skyz-home .skyz-table thead th {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(126, 96, 86, 0.14);
  background: rgba(245, 235, 229, 0.92);
  color: rgba(163, 73, 61, 0.82);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.skyz-home .skyz-table tbody td {
  padding: 14px;
  border-bottom: 1px solid rgba(126, 96, 86, 0.12);
  color: rgba(79, 39, 35, 0.9);
  font-size: 14px;
  line-height: 1.55;
  vertical-align: top;
}

.skyz-home .skyz-table tbody tr:last-child td {
  border-bottom: 0;
}

.skyz-home .skyz-table tbody td:first-child {
  min-width: 160px;
  color: #7b342a;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.skyz-home .skyz-schedule-table-list {
  display: grid;
  gap: 6px;
}

.skyz-home .skyz-schedule-table-list span {
  display: block;
  color: rgba(59, 45, 37, 0.82);
}

.skyz-home .skyz-schedule-meta-grid,
.skyz-home .skyz-runtime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skyz-home .skyz-schedule-meta-box,
.skyz-home .skyz-runtime-card {
  padding: 12px 14px;
}

.skyz-home .skyz-schedule-meta-box {
  display: grid;
  gap: 6px;
}

.skyz-home .skyz-schedule-meta-box span,
.skyz-home .skyz-runtime-label {
  color: rgba(163, 73, 61, 0.76);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skyz-home .skyz-schedule-meta-box strong,
.skyz-home .skyz-runtime-value {
  color: #7b342a;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.skyz-home .skyz-runtime-card {
  min-height: 82px;
  display: grid;
  align-content: space-between;
  gap: 6px;
}

.skyz-home .skyz-runtime-meta {
  margin: 0;
  color: rgba(59, 45, 37, 0.78);
  line-height: 1.5;
  font-size: 13px;
}

.skyz-home .skyz-runtime-card[data-tone="ok"] {
  border-color: rgba(44, 119, 74, 0.24);
}

.skyz-home .skyz-runtime-card[data-tone="warn"] {
  border-color: rgba(196, 124, 30, 0.3);
}

.skyz-home .skyz-runtime-card[data-tone="error"] {
  border-color: rgba(182, 65, 65, 0.28);
}

.skyz-home .skyz-schedule-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(163, 73, 61, 0.16);
  background: rgba(255, 249, 240, 0.86);
  color: #7b342a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.skyz-home .skyz-schedule-badge.is-active {
  border-color: rgba(44, 119, 74, 0.26);
  background: rgba(44, 119, 74, 0.1);
  color: #285f3f;
}

.skyz-home .skyz-schedule-badge.is-idle {
  opacity: 0.88;
}

.skyz-home .skyz-scheduler-panel {
  display: grid;
  gap: 14px;
}

.skyz-home .skyz-scheduler-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.skyz-home .skyz-scheduler-engine {
  padding: 10px 12px;
  border: 1px solid rgba(126, 96, 86, 0.14);
  background: rgba(252, 247, 243, 0.95);
  color: rgba(79, 39, 35, 0.84);
  font-size: 13px;
  line-height: 1.5;
}

.skyz-home .skyz-scheduler-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skyz-home .skyz-scheduler-task {
  padding: 14px;
  border: 1px solid rgba(126, 96, 86, 0.14);
  background: rgba(252, 247, 243, 0.95);
  display: grid;
  gap: 12px;
}

.skyz-home .skyz-scheduler-task[data-tone="ok"] {
  border-color: rgba(44, 119, 74, 0.24);
}

.skyz-home .skyz-scheduler-task[data-tone="warn"] {
  border-color: rgba(196, 124, 30, 0.28);
}

.skyz-home .skyz-scheduler-task-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.skyz-home .skyz-scheduler-task-copy {
  display: grid;
  gap: 4px;
}

.skyz-home .skyz-scheduler-task-copy strong {
  color: #7b342a;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.skyz-home .skyz-scheduler-task-copy p,
.skyz-home .skyz-scheduler-task-note,
.skyz-home .skyz-scheduler-task-foot {
  margin: 0;
  color: rgba(59, 45, 37, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

.skyz-home .skyz-scheduler-task-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(163, 73, 61, 0.16);
  background: rgba(255, 249, 240, 0.86);
  color: #7b342a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.skyz-home .skyz-scheduler-task-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.skyz-home .skyz-scheduler-task-meta-box {
  padding: 11px 12px;
  border: 1px solid rgba(126, 96, 86, 0.14);
  background: rgba(247, 240, 232, 0.92);
  display: grid;
  gap: 6px;
}

.skyz-home .skyz-scheduler-task-meta-box span,
.skyz-home .skyz-scheduler-field span {
  color: rgba(163, 73, 61, 0.76);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skyz-home .skyz-scheduler-task-meta-box strong {
  color: #7b342a;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 18px;
  line-height: 1;
}

.skyz-home .skyz-scheduler-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.skyz-home .skyz-scheduler-field {
  display: grid;
  gap: 6px;
}

.skyz-home .skyz-scheduler-field-wide {
  grid-column: 1 / -1;
}

.skyz-home .skyz-scheduler-field input,
.skyz-home .skyz-scheduler-field select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(126, 96, 86, 0.18);
  background: rgba(255, 252, 248, 0.98);
  color: #4f4038;
  font-size: 14px;
}

.skyz-home .skyz-scheduler-field input:disabled,
.skyz-home .skyz-scheduler-field select:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.skyz-home .skyz-scheduler-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.skyz-home .skyz-scheduler-actions .skyz-primary-action,
.skyz-home .skyz-scheduler-actions .skyz-secondary-action {
  min-height: 46px;
}

.skyz-home .skyz-list {
  display: grid;
  gap: 8px;
}

.skyz-home .skyz-queue-block {
  display: grid;
  gap: 8px;
}

.skyz-home .skyz-queue-heading {
  margin: 0;
  color: rgba(79, 39, 35, 0.72);
  font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.skyz-home .skyz-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(126, 96, 86, 0.14);
  background: rgba(252, 247, 243, 0.95);
  color: #4f4038;
  font-size: 13px;
}

.skyz-home .skyz-list-item strong {
  font-size: 15px;
  color: #7b342a;
}

.skyz-home .skyz-db-history-list {
  gap: 10px;
}

.skyz-home .skyz-db-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.skyz-home .skyz-db-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.skyz-home .skyz-db-history-head strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
  white-space: normal;
  word-break: keep-all;
}

.skyz-home .skyz-db-history-head span {
  flex: 0 0 auto;
  color: #76695f;
  font-size: 12px;
  white-space: nowrap;
}

.skyz-home .skyz-db-history-item p {
  margin: 0;
  color: #4f4038;
  font-size: 13px;
  line-height: 1.55;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.skyz-home .skyz-list-item.is-current-task {
  border-color: rgba(44, 119, 74, 0.24);
  background: rgba(245, 250, 245, 0.96);
}

.skyz-home .skyz-list-item.has-action {
  grid-template-columns: minmax(0, 1fr) auto;
}

.skyz-home .skyz-list-item-main {
  display: grid;
  gap: 4px;
}

.skyz-home .skyz-queue-delete {
  min-width: 56px;
  padding: 8px 12px;
  border: 1px solid rgba(241, 143, 1, 0.38);
  background: rgba(255, 253, 249, 0.95);
  color: #f18f01;
  font: inherit;
  cursor: pointer;
}

.skyz-home .skyz-queue-delete:disabled {
  opacity: 0.6;
  cursor: default;
}

.skyz-home .skyz-test-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}

.skyz-home .skyz-test-copy {
  display: grid;
  gap: 6px;
}

.skyz-home .skyz-test-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.skyz-home .skyz-test-status {
  color: #a3493d;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(21px, 1.7vw, 26px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.skyz-home .skyz-primary-action {
  appearance: none;
  border: 1px solid rgba(163, 73, 61, 0.24);
  background: linear-gradient(180deg, #a3493d, #8f3d33);
  color: #f7eee4;
  min-height: 50px;
  padding: 0 18px;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 19px;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(97, 49, 40, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.skyz-home .skyz-primary-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(97, 49, 40, 0.18);
}

.skyz-home .skyz-secondary-action {
  appearance: none;
  border: 1px solid rgba(123, 92, 83, 0.22);
  background: rgba(252, 247, 243, 0.98);
  color: #7b342a;
  min-height: 50px;
  padding: 0 16px;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 18px;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(97, 49, 40, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.skyz-home .skyz-secondary-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(97, 49, 40, 0.14);
}

.skyz-home .skyz-primary-action:disabled {
  border-color: #efc49f;
  background: linear-gradient(180deg, #ffe3c7, #f7cfae);
  color: #a96532;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

.skyz-home .skyz-secondary-action:disabled {
  border-color: #f0d3ba;
  background: #fff0df;
  color: #b77a45;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

.skyz-home .skyz-test-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.skyz-home .skyz-test-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(126, 96, 86, 0.14);
  background: rgba(252, 247, 243, 0.95);
  color: #4f4038;
}

.skyz-home .skyz-test-step strong {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(163, 73, 61, 0.16);
  background: rgba(255, 249, 240, 0.86);
  color: #7b342a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.skyz-home .skyz-test-step.is-active {
  border-color: rgba(163, 73, 61, 0.28);
  box-shadow: 0 12px 20px rgba(97, 49, 40, 0.08);
}

.skyz-home .skyz-test-step.is-done strong {
  background: #a3493d;
  color: #f7eee4;
}

.skyz-home .skyz-queue-tag {
  padding: 6px 10px;
  border: 1px solid rgba(163, 73, 61, 0.16);
  background: rgba(255, 249, 240, 0.86);
  color: #7b342a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.skyz-home .skyz-empty {
  padding: 20px 0 4px;
  color: rgba(59, 45, 37, 0.74);
  font-size: 15px;
}

@media (max-width: 1360px) {
  .skyz-home .skyz-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .skyz-home .skyz-operations-grid,
  .skyz-home .skyz-action-grid {
    grid-template-columns: 1fr;
  }

  .skyz-home .skyz-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .skyz-home .skyz-page {
    width: auto;
  }

  .skyz-home .skyz-hero-head,
  .skyz-home .skyz-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .skyz-home .skyz-dashboard-grid,
  .skyz-home .skyz-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skyz-home .skyz-runtime-grid,
  .skyz-home .skyz-schedule-meta-grid,
  .skyz-home .skyz-scheduler-grid,
  .skyz-home .skyz-scheduler-task-meta,
  .skyz-home .skyz-scheduler-form {
    grid-template-columns: 1fr;
  }

  .skyz-home .skyz-test-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .skyz-home .skyz-list-item {
    grid-template-columns: 1fr;
  }

  .skyz-home .skyz-table {
    min-width: 560px;
  }
}

@media (max-width: 720px) {
  .skyz-home .skyz-page {
    width: min(100vw - 24px, 100%);
  }

  .skyz-home .skyz-dashboard-grid,
  .skyz-home .skyz-menu-grid {
    grid-template-columns: 1fr;
  }

  .skyz-home .skyz-schedule-head,
  .skyz-home .skyz-schedule-rule {
    flex-direction: column;
    align-items: stretch;
  }

  .skyz-home .skyz-status-card,
  .skyz-home .skyz-panel {
    padding: 18px 16px;
  }

  .skyz-home .skyz-scheduler-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .skyz-home .skyz-menu-chip {
    min-height: 72px;
    font-size: 20px;
  }

  .skyz-home .skyz-primary-action {
    width: 100%;
    font-size: 20px;
  }

  .skyz-home .skyz-secondary-action {
    width: 100%;
    font-size: 19px;
  }

  .skyz-home .skyz-table {
    min-width: 520px;
  }

  .skyz-home .skyz-table thead th,
  .skyz-home .skyz-table tbody td {
    padding: 12px;
  }

  .skyz-home .skyz-table tbody td:first-child {
    min-width: 140px;
    font-size: 18px;
  }
}

.finance-discount-home {
  background: linear-gradient(180deg, #f4f7fb 0%, #e9eef5 100%);
}

.finance-discount-home .finance-page {
  width: min(1460px, calc(100vw - 40px));
  gap: 18px;
}

@media (min-width: 981px) {
  .finance-discount-home {
    min-height: 100vh;
  }

  .finance-discount-home .finance-page {
    min-height: 100vh;
    align-content: start;
  }
}

.finance-discount-home .finance-hero,
.finance-discount-home .finance-panel,
.finance-discount-home .finance-summary-card {
  border: 1px solid rgba(118, 82, 63, 0.16);
  background: linear-gradient(180deg, #fffefb, #fcfaf6);
  box-shadow: 0 18px 28px rgba(82, 60, 46, 0.12);
}

.finance-discount-home .finance-hero {
  min-height: 0;
  padding: 14px 16px;
}

.finance-discount-home .finance-hero-copy {
  width: 100%;
  justify-items: stretch;
}

.finance-discount-home .finance-hero-head,
.finance-discount-home .finance-toolbar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.portal-home.finance-discount-home .finance-hero h1 {
  margin: 0;
  color: #8f4434;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.finance-discount-home .finance-panel {
  padding: 22px 24px 24px;
}

.finance-discount-home .finance-toolbar-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow-x: auto;
}

.finance-discount-home .finance-panel h2 {
  margin: 0;
  color: #7d5f54;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.finance-discount-home .finance-toolbar-note,
.finance-discount-home .finance-results-note {
  margin: 0;
  max-width: 620px;
  color: rgba(59, 45, 37, 0.78);
  line-height: 1.6;
  font-size: 14px;
}

.finance-discount-home .finance-toolbar-plain {
  margin: 10px 0 0;
  color: rgba(59, 45, 37, 0.78);
  line-height: 1.4;
  font-size: 15px;
  font-weight: 700;
}

.finance-discount-home .finance-company-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 0;
  flex: 0 0 auto;
}

.finance-discount-home .finance-company-tab {
  appearance: none;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(163, 73, 61, 0.18);
  background: rgba(252, 247, 243, 0.92);
  color: #a3493d;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.finance-discount-home .finance-company-tab:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(82, 49, 40, 0.14);
}

.finance-discount-home .finance-company-tab.is-active {
  background: #a3493d;
  border-color: #a3493d;
  color: #f7eee4;
}

.finance-discount-home .finance-filter-form {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.finance-discount-home .finance-review-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.finance-discount-home .finance-review-summary {
  color: #7b342a;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.finance-discount-home .finance-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.finance-discount-home .finance-field span {
  color: #6f554b;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.finance-discount-home .finance-field select,
.finance-discount-home .finance-field input {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(126, 96, 86, 0.22);
  background: rgba(252, 247, 243, 0.95);
  color: #4f4038;
  font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.finance-discount-home .finance-field-year input {
  width: 88px;
}

.finance-discount-home .finance-field-month input {
  width: 60px;
}

.finance-discount-home .finance-submit {
  appearance: none;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(163, 73, 61, 0.24);
  background: linear-gradient(180deg, #a3493d, #8f3d33);
  color: #f7eee4;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(97, 49, 40, 0.14);
  white-space: nowrap;
}

.finance-discount-home .finance-confirm-button {
  min-width: 92px;
  background: linear-gradient(180deg, #7d5f54, #674b41);
  border-color: rgba(97, 71, 60, 0.24);
}

.finance-discount-home .finance-submit:disabled,
.finance-discount-home .finance-company-tab:disabled {
  opacity: 0.72;
  cursor: wait;
}

.finance-discount-home .finance-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.finance-discount-home .finance-summary-card {
  min-height: 140px;
  padding: 18px 18px 20px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.finance-discount-home .finance-summary-label {
  color: rgba(163, 73, 61, 0.76);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.finance-discount-home .finance-summary-value {
  color: #a3493d;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.finance-discount-home .finance-status {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(126, 96, 86, 0.18);
  background: rgba(252, 247, 243, 0.92);
  color: #6f554b;
  line-height: 1.7;
}

.finance-discount-home .finance-status[data-tone="success"] {
  border-color: rgba(44, 119, 74, 0.22);
  background: rgba(44, 119, 74, 0.08);
  color: #285f3f;
}

.finance-discount-home .finance-status[data-tone="error"] {
  border-color: rgba(182, 65, 65, 0.24);
  background: rgba(182, 65, 65, 0.08);
  color: #8c3535;
}

.downloads-home {
  background: linear-gradient(180deg, #f4f7fb 0%, #e9eef5 100%);
}

.downloads-home .downloads-page {
  width: min(1280px, calc(100vw - 40px));
  gap: 18px;
}

.downloads-home .downloads-hero,
.downloads-home .downloads-panel,
.downloads-home .downloads-file-card,
.downloads-home .downloads-empty-card {
  border: 1px solid rgba(118, 82, 63, 0.16);
  background: linear-gradient(180deg, #f6edde, #efe3d3);
  box-shadow: 0 18px 28px rgba(82, 60, 46, 0.12);
}

.downloads-home .downloads-hero {
  min-height: 0;
  padding: 26px 28px 24px;
}

.downloads-home .downloads-hero-copy {
  width: 100%;
  text-align: left;
  justify-items: stretch;
}

.downloads-home .downloads-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.downloads-home .downloads-hero h1 {
  margin: 0;
  color: #7d5f54;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.downloads-home .downloads-hero-note {
  margin: 12px 0 0;
  color: rgba(59, 45, 37, 0.78);
  line-height: 1.7;
  font-size: 15px;
}

.downloads-home .downloads-panel {
  padding: 22px 24px 24px;
}

.downloads-home .downloads-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.downloads-home .downloads-panel-kicker {
  margin: 0 0 10px;
  color: rgba(163, 73, 61, 0.76);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.downloads-home .downloads-panel h2 {
  margin: 0;
  color: #7d5f54;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.downloads-home .downloads-status {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(182, 65, 65, 0.24);
  background: rgba(182, 65, 65, 0.08);
  color: #8c3535;
  line-height: 1.7;
}

.downloads-home .downloads-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.downloads-home .downloads-file-card,
.downloads-home .downloads-empty-card {
  padding: 18px 18px 20px;
}

.downloads-home .downloads-file-card {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.downloads-home .downloads-file-name {
  margin: 0;
  color: #7b342a;
  font-size: 19px;
  line-height: 1.3;
  word-break: break-word;
}

.downloads-home .downloads-file-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(59, 45, 37, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.downloads-home .downloads-file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(163, 73, 61, 0.24);
  background: linear-gradient(180deg, #a3493d, #8f3d33);
  color: #f7eee4;
  font-family: "Oswald", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(97, 49, 40, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.downloads-home .downloads-file-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(97, 49, 40, 0.18);
}

.downloads-home .downloads-empty-card {
  color: rgba(59, 45, 37, 0.76);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .downloads-home .downloads-page {
    width: auto;
  }

  .downloads-home .downloads-hero-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .downloads-home .downloads-list {
    grid-template-columns: 1fr;
  }

  .downloads-home .downloads-panel {
    padding: 18px 16px 20px;
  }
}

@media (max-width: 720px) {
  .back-link,
  .return-link {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .downloads-home .downloads-hero-head,
  .finance-discount-home .finance-hero-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .placeholder-card {
    position: relative;
    padding-top: 48px;
  }

  .placeholder-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    margin-top: 0;
    justify-content: flex-end;
  }
}

.finance-discount-home .finance-results-panel {
  display: grid;
  align-content: start;
  gap: 0;
}

.finance-discount-home .finance-table-wrap {
  border: 1px solid rgba(126, 96, 86, 0.14);
  background: rgba(252, 247, 243, 0.95);
}

.finance-discount-home .finance-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.finance-discount-home .finance-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 14px 16px;
  background: #eadfce;
  color: #6f554b;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  box-shadow:
    inset 0 -1px 0 rgba(126, 96, 86, 0.14),
    0 10px 18px rgba(82, 60, 46, 0.08);
}

.finance-discount-home .finance-table tbody td {
  padding: 16px;
  border-top: 1px solid rgba(126, 96, 86, 0.08);
  color: #4f4038;
  font-size: 14px;
  line-height: 1.55;
  vertical-align: top;
}

.finance-discount-home .finance-table tbody tr.is-pending {
  background: rgba(163, 73, 61, 0.06);
}

.finance-discount-home .finance-table .is-number {
  text-align: right;
  white-space: nowrap;
}

.finance-discount-home .finance-name-cell {
  min-width: 220px;
}

.finance-discount-home .finance-name-cell strong {
  display: block;
  color: #7b342a;
  font-size: 15px;
}

.finance-discount-home .finance-table thead th:nth-child(8),
.finance-discount-home .finance-table tbody td:nth-child(8) {
  min-width: 260px;
}

.finance-discount-home .finance-name-cell span {
  display: block;
  margin-top: 4px;
  color: rgba(59, 45, 37, 0.64);
  font-size: 12px;
}

.finance-discount-home .finance-status-cell {
  min-width: 140px;
  font-weight: 800;
  color: #7b342a;
}

.finance-discount-home .finance-calc-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.finance-discount-home .finance-calc-formula {
  display: block;
  line-height: 1.5;
  word-break: break-word;
  white-space: normal;
}

.finance-discount-home .finance-calc-answer {
  display: block;
  color: #7b342a;
  font-weight: 800;
  line-height: 1.4;
}

.finance-discount-home .finance-status-cell.is-alert {
  color: #bb2d2d;
}

.finance-discount-home .finance-empty {
  padding: 24px 16px;
  color: rgba(59, 45, 37, 0.72);
  text-align: center;
}

@media (max-width: 1360px) {
  .finance-discount-home .finance-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .finance-discount-home .finance-page {
    width: auto;
  }

  .finance-discount-home .finance-hero-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
}

@media (min-width: 981px) {
  .finance-discount-home .finance-results-panel {
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .finance-discount-home .finance-page {
    width: min(100vw - 24px, 100%);
  }

  .finance-discount-home .finance-summary-grid {
    grid-template-columns: 1fr;
  }

  .finance-discount-home .finance-panel,
  .finance-discount-home .finance-summary-card {
    padding: 18px 16px;
  }

  .finance-discount-home .finance-results-panel {
    min-height: 68vh;
  }
}

@media (max-width: 980px) {
  .finance-discount-home .finance-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
  }
}

@media (max-width: 720px) {
  .portal-page,
  .launcher-page {
    padding: 24px 12px 18px;
    gap: 16px;
  }

  .portal-home .portal-hero,
  .portal-home .home-unused-panel,
  .skyz-home .portal-hero,
  .skyz-home .skyz-panel,
  .skyz-home .skyz-status-card,
  .finance-discount-home .portal-hero,
  .finance-discount-home .finance-panel,
  .finance-discount-home .finance-summary-card,
  .downloads-home .downloads-hero,
  .downloads-home .downloads-panel,
  .downloads-home .downloads-file-card,
  .downloads-home .downloads-empty-card {
    border-radius: 22px;
  }

  .portal-home .hero-copy h1 {
    font-size: clamp(50px, 13.4vw, 76px);
    line-height: 1.02;
  }

  .portal-home .hero-download-link {
    font-size: 18px;
    padding: 12px 18px;
  }

  .portal-home .hero-update-days {
    font-size: 16px;
  }

  .portal-home .menu-section {
    gap: 12px;
  }

  .portal-home .menu-button {
    min-height: 152px;
    padding: 18px 16px;
  }

  .portal-home .menu-title {
    font-size: clamp(29px, 8.6vw, 42px);
    line-height: 1.08;
  }

  .portal-home .menu-state {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.4;
  }

  .portal-home .home-unused-copy h2 {
    font-size: clamp(32px, 9.8vw, 44px);
  }

  .portal-home .home-unused-description,
  .portal-home .home-unused-summary-label,
  .portal-home .home-expiry-title {
    font-size: 20px;
  }

  .portal-home .home-unused-input,
  .portal-home .home-unused-button {
    min-height: 58px;
    font-size: 21px;
  }

  .portal-home .home-unused-summary strong {
    font-size: 22px;
  }

  .portal-home .home-unused-table thead th {
    font-size: 19px;
  }

  .portal-home .home-unused-table tbody td {
    font-size: 21px;
    line-height: 1.55;
  }

  .skyz-home .description,
  .skyz-home .skyz-panel-note,
  .skyz-home .skyz-status-meta,
  .skyz-home .skyz-list-copy {
    font-size: 16px;
    line-height: 1.65;
  }

  .skyz-home .skyz-status-label,
  .skyz-home .skyz-panel-kicker,
  .skyz-home .skyz-list-label {
    font-size: 14px;
  }

  .skyz-home .skyz-status-value {
    font-size: 22px;
  }

  .skyz-home .skyz-menu-chip {
    min-height: 78px;
    font-size: 22px;
  }

  .skyz-home .skyz-primary-action,
  .skyz-home .skyz-secondary-action {
    min-height: 50px;
  }

  .finance-discount-home .finance-company-tab {
    min-height: 52px;
    font-size: 24px;
  }

  .finance-discount-home .finance-field span,
  .finance-discount-home .finance-toolbar-plain,
  .finance-discount-home .finance-summary-label,
  .finance-discount-home .finance-empty {
    font-size: 15px;
  }

  .finance-discount-home .finance-field input,
  .finance-discount-home .finance-field select {
    min-height: 48px;
    font-size: 17px;
  }

  .finance-discount-home .finance-submit {
    min-height: 52px;
    font-size: 22px;
  }

  .finance-discount-home .finance-summary-value {
    font-size: clamp(28px, 7vw, 38px);
  }

  .finance-discount-home .finance-table thead th {
    font-size: 14px;
  }

  .finance-discount-home .finance-table tbody td,
  .finance-discount-home .finance-name-cell strong,
  .finance-discount-home .finance-status-cell {
    font-size: 16px;
  }

  .downloads-home .downloads-hero h1 {
    font-size: clamp(32px, 8vw, 42px);
  }

  .downloads-home .downloads-file-name {
    font-size: 21px;
    line-height: 1.35;
  }

  .downloads-home .downloads-file-meta,
  .downloads-home .downloads-empty-card {
    font-size: 15px;
  }

  .downloads-home .downloads-file-action {
    min-height: 46px;
    font-size: 19px;
  }
}

@media (max-width: 460px) {
  .portal-home .menu-button {
    min-height: 148px;
    padding: 18px 15px;
  }

  .portal-home .menu-title {
    font-size: 28px;
  }

  .portal-home .hero-copy h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  .portal-home .home-unused-table thead th,
  .finance-discount-home .finance-table thead th {
    font-size: 17px;
  }

  .portal-home .home-unused-table tbody td,
  .finance-discount-home .finance-table tbody td {
    font-size: 19px;
  }

  .portal-home .home-unused-field,
  .portal-home .home-expiry-title {
    font-size: 19px;
  }
}

@media (max-width: 980px) {
  .portal-home .home-unused-copy h2 {
    font-size: 34px !important;
  }

  .portal-home .home-unused-field,
  .portal-home .home-expiry-title {
    font-size: 21px !important;
  }

  .portal-home .home-unused-input,
  .portal-home .home-unused-button {
    font-size: 22px !important;
  }

  .portal-home .home-unused-table thead th {
    font-size: 20px !important;
    line-height: 1.35 !important;
  }

  .portal-home .home-unused-table tbody td {
    font-size: 22px !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 720px) {
  .portal-home .home-unused-copy h2 {
    font-size: 38px !important;
  }

  .portal-home .home-unused-field,
  .portal-home .home-expiry-title {
    font-size: 23px !important;
  }

  .portal-home .home-unused-input,
  .portal-home .home-unused-button {
    min-height: 60px !important;
    font-size: 24px !important;
  }

  .portal-home .home-unused-table thead th {
    font-size: 22px !important;
  }

  .portal-home .home-unused-table tbody td {
    font-size: 25px !important;
    line-height: 1.65 !important;
  }
}

@media (max-width: 460px) {
  .portal-home .home-unused-copy h2 {
    font-size: 34px !important;
  }

  .portal-home .home-unused-field,
  .portal-home .home-expiry-title {
    font-size: 21px !important;
  }

  .portal-home .home-unused-table thead th {
    font-size: 19px !important;
  }

  .portal-home .home-unused-table tbody td {
    font-size: 22px !important;
  }
}

@media (max-width: 900px) {
  .portal-home .hero-copy h1 {
    font-size: clamp(56px, 14vw, 78px) !important;
    line-height: 1.02 !important;
  }

  .portal-home .hero-download-link {
    min-height: 52px !important;
    padding: 0 20px !important;
    font-size: 20px !important;
  }

  .portal-home .hero-update-days {
    font-size: 18px !important;
  }

  .portal-home .menu-section {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .portal-home .menu-button {
    min-height: 154px !important;
    padding: 20px 18px !important;
  }

  .portal-home .menu-title {
    font-size: 34px !important;
    line-height: 1.08 !important;
  }

  .portal-home .menu-state {
    font-size: 19px !important;
    line-height: 1.45 !important;
  }

  .portal-home .home-unused-panel {
    padding: 22px 18px 26px !important;
  }

  .portal-home .home-unused-copy h2 {
    font-size: 40px !important;
  }

  .portal-home .home-unused-field,
  .portal-home .home-expiry-title {
    font-size: 24px !important;
    line-height: 1.35 !important;
  }

  .portal-home .home-unused-input,
  .portal-home .home-unused-button {
    min-height: 62px !important;
    font-size: 26px !important;
  }

  .portal-home .home-unused-table thead th {
    font-size: 22px !important;
    padding: 16px 14px !important;
  }

  .portal-home .home-unused-table tbody td {
    font-size: 26px !important;
    line-height: 1.7 !important;
    padding: 18px 14px !important;
  }
}

@media (max-width: 600px) {
  .portal-home .hero-copy h1 {
    font-size: clamp(46px, 12vw, 64px) !important;
  }

  .portal-home .menu-title {
    font-size: 40px !important;
  }

  .portal-home .home-unused-copy h2 {
    font-size: 46px !important;
  }

  .portal-home .home-unused-field,
  .portal-home .home-expiry-title {
    font-size: 28px !important;
  }

  .portal-home .home-unused-table thead th {
    font-size: 26px !important;
  }

  .portal-home .home-unused-table tbody td {
    font-size: 32px !important;
  }
}

@media (pointer: coarse) {
  .portal-home .hero-copy h1 {
    font-size: clamp(44px, 11vw, 62px) !important;
    line-height: 1.02 !important;
  }

  .portal-home .hero-download-link {
    min-height: 56px !important;
    padding: 0 22px !important;
    font-size: 21px !important;
  }

  .portal-home .menu-section {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .portal-home .menu-button {
    min-height: 160px !important;
    padding: 20px 18px !important;
  }

  .portal-home .menu-title {
    font-size: 44px !important;
    line-height: 1.08 !important;
  }

  .portal-home .menu-state {
    font-size: 24px !important;
  }

  .portal-home .home-unused-copy h2 {
    font-size: 50px !important;
  }

  .portal-home .home-unused-field,
  .portal-home .home-expiry-title {
    font-size: 30px !important;
  }

  .portal-home .home-unused-input,
  .portal-home .home-unused-button {
    min-height: 68px !important;
    font-size: 30px !important;
  }

  .portal-home .home-unused-table thead th {
    font-size: 28px !important;
    line-height: 1.4 !important;
  }

  .portal-home .home-unused-table tbody td {
    font-size: 36px !important;
    line-height: 1.7 !important;
    padding: 20px 14px !important;
  }

  .portal-home .portal-auth-card {
    width: min(100vw - 28px, 560px);
    padding: 30px 22px 28px;
  }

  .portal-home .portal-auth-title {
    font-size: 36px;
  }

  .portal-home .portal-auth-copy {
    font-size: 18px;
  }

  .portal-home .portal-auth-field span,
  .portal-home .portal-auth-status {
    font-size: 16px;
  }

  .portal-home .portal-auth-field input,
  .portal-home .portal-auth-submit {
    min-height: 58px;
    font-size: 20px;
  }
}

@media (max-width: 720px), (max-width: 900px) and (pointer: coarse) {
  .portal-home .home-stock-section:first-child .home-unused-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }

  .portal-home .home-stock-section:first-child .home-unused-copy {
    flex: none;
    min-width: 0;
  }

  .portal-home .home-stock-section:first-child .home-unused-copy h2 {
    font-size: 24px !important;
    line-height: 1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .portal-home .home-stock-section:first-child .home-unused-filter {
    display: inline-grid !important;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    flex: none;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    margin-left: auto !important;
  }

  .portal-home .home-stock-section:first-child .home-unused-filter::before {
    display: none !important;
  }

  .portal-home .home-stock-section:first-child .home-unused-field {
    display: inline-grid !important;
    grid-auto-flow: column;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 3px !important;
    font-size: 11px !important;
    white-space: nowrap;
    margin: 0;
    flex: none;
  }

  .portal-home .home-stock-section:first-child .home-unused-field span {
    display: inline-block !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  .portal-home .home-stock-section:first-child .home-unused-input {
    width: 3.2em !important;
    min-width: 3.2em !important;
    max-width: 3.2em !important;
    flex: none !important;
    min-height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 10px !important;
    appearance: textfield !important;
    text-align: center !important;
    border-radius: 4px !important;
    min-inline-size: 0 !important;
  }

  .portal-home .home-stock-section:first-child .home-unused-input::-webkit-outer-spin-button,
  .portal-home .home-stock-section:first-child .home-unused-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
  }

  .portal-home .home-stock-section:first-child .home-unused-button {
    width: auto !important;
    min-height: 24px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
    white-space: nowrap;
    flex: none;
  }

  .portal-home .home-expiry-table {
    table-layout: fixed !important;
    width: 580px !important;
    min-width: 580px !important;
  }

  .portal-home .home-expiry-table thead th,
  .portal-home .home-expiry-table tbody td {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .portal-home .home-expiry-table thead th {
    font-size: 18px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .portal-home .home-expiry-table tbody td {
    font-size: 22px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(3),
  .portal-home .home-expiry-table thead th:nth-child(4),
  .portal-home .home-expiry-table thead th:nth-child(5) {
    font-size: 13px !important;
  }

  .portal-home .home-expiry-table tbody td:nth-child(3),
  .portal-home .home-expiry-table tbody td:nth-child(4),
  .portal-home .home-expiry-table tbody td:nth-child(5) {
    font-size: 15px !important;
  }

  .portal-home .home-expiry-table thead th:first-child,
  .portal-home .home-expiry-table tbody td:first-child {
    width: 336px !important;
    min-width: 336px !important;
    max-width: 336px !important;
  }

  .portal-home .home-expiry-table .expiry-col-supplier {
    width: 32px !important;
  }

  .portal-home .home-expiry-table .expiry-col-product {
    width: 336px !important;
  }

  .portal-home .home-expiry-table .expiry-col-spec {
    width: 64px !important;
  }

  .portal-home .home-expiry-table .expiry-col-qty {
    width: 52px !important;
  }

  .portal-home .home-expiry-table .expiry-col-date {
    width: 96px !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(2),
  .portal-home .home-expiry-table tbody td:nth-child(2) {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(3),
  .portal-home .home-expiry-table tbody td:nth-child(3) {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(4),
  .portal-home .home-expiry-table tbody td:nth-child(4) {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(5),
  .portal-home .home-expiry-table tbody td:nth-child(5) {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
  }
}


.skyz-home .skyz-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skyz-home .skyz-control-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(145, 162, 196, 0.28);
  border-radius: 20px;
  background: rgba(247, 249, 252, 0.92);
}

.skyz-home .skyz-control-card[data-tone="ok"] {
  border-color: rgba(39, 122, 77, 0.45);
  background: rgba(241, 250, 244, 0.96);
}

.skyz-home #skyzDbSyncControlCard {
  grid-column: span 2;
}

.skyz-home #skyzDbMonthlyRebuildControlCard {
  grid-column: span 2;
}

.skyz-home #skyzDbValidationControlCard {
  grid-column: 1 / -1;
  min-width: 0;
}

.skyz-home #skyzDbValidationControlCard[data-validation-status="error"] {
  border-color: rgba(190, 39, 39, 0.62);
  background: rgba(255, 244, 244, 0.97);
}

.skyz-home #skyzDbValidationControlCard[data-validation-status="success"] {
  border-color: rgba(39, 122, 77, 0.55);
  background: rgba(241, 250, 244, 0.97);
}

.skyz-home #skyzDbValidationControlCard[data-validation-status="cancelled"] {
  border-color: rgba(190, 120, 25, 0.52);
  background: rgba(255, 249, 238, 0.97);
}

.skyz-home #skyzDbValidationControlCard[data-validation-status="unverified"] {
  border-color: rgba(190, 120, 25, 0.52);
  background: rgba(255, 249, 238, 0.97);
}

.skyz-home .skyz-db-validation-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.skyz-home .skyz-db-validation-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e9edf4;
  color: #566176;
  font-size: 13px;
  font-weight: 800;
}

.skyz-home .skyz-db-validation-status[data-status="running"],
.skyz-home .skyz-db-validation-status[data-status="queued"] {
  background: #fff0d8;
  color: #9a5800;
}

.skyz-home .skyz-db-validation-status[data-status="success"] {
  background: #dff4e6;
  color: #1e6e43;
}

.skyz-home .skyz-db-validation-status[data-status="error"] {
  background: #ffe0e0;
  color: #b42323;
}

.skyz-home .skyz-db-validation-status[data-status="cancelled"] {
  background: #ffedcf;
  color: #8a5200;
}

.skyz-home .skyz-db-validation-status[data-status="unverified"] {
  background: #ffedcf;
  color: #8a5200;
}

.skyz-home #skyzCancelDbValidationButton[hidden] {
  display: none;
}

.skyz-home #skyzDbValidationControlCard[data-validation-status="error"] #skyzDbValidationControlNote {
  color: #a51f1f;
  font-weight: 700;
}

.skyz-home #skyzDbValidationControlCard .skyz-control-actions,
.skyz-home #skyzDbValidationResults {
  width: 100%;
  min-width: 0;
}

.skyz-home .skyz-db-validation-table-wrap {
  width: 100%;
  margin: 8px 0 18px;
  overflow-x: auto;
}

.skyz-home .skyz-db-validation-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.skyz-home .skyz-db-validation-table th,
.skyz-home .skyz-db-validation-table td {
  max-width: 320px;
  padding: 8px 10px;
  border: 1px solid rgba(145, 162, 196, 0.3);
  text-align: left;
  white-space: nowrap;
}

.skyz-home .skyz-db-validation-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  margin-top: 10px;
}

.skyz-home .skyz-db-validation-loading[hidden] {
  display: none;
}

.skyz-home .skyz-db-validation-loading .loading-track {
  position: relative;
  width: 150px;
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(241, 143, 1, 0.28);
  background: rgba(255, 244, 230, 0.72);
}

.skyz-home .skyz-db-validation-loading .loading-bar {
  position: absolute;
  inset: 0 auto 0 -44%;
  width: 44%;
  background: linear-gradient(90deg, rgba(241, 143, 1, 0), rgba(241, 143, 1, 0.9), rgba(241, 143, 1, 0));
  animation: skyzDbValidationSweep 1.15s ease-in-out infinite;
}

.skyz-home .skyz-db-validation-loading .loading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.skyz-home .skyz-db-validation-loading .loading-time span {
  width: 5px;
  height: 5px;
  background: #f18f01;
  opacity: 0.25;
  animation: skyzDbValidationTick 1.05s ease-in-out infinite;
}

.skyz-home .skyz-db-validation-loading .loading-time span:nth-child(2) { animation-delay: 0.16s; }
.skyz-home .skyz-db-validation-loading .loading-time span:nth-child(3) { animation-delay: 0.32s; }

@keyframes skyzDbValidationSweep {
  from { transform: translateX(0); }
  to { transform: translateX(330%); }
}

@keyframes skyzDbValidationTick {
  0%, 100% { opacity: 0.25; }
  45% { opacity: 0.95; }
}

.skyz-home .skyz-control-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skyz-home .skyz-control-copy strong {
  font-size: 18px;
  line-height: 1.25;
}

.skyz-home .skyz-control-copy p {
  margin: 0;
  color: #5d6882;
  font-size: 13px;
  line-height: 1.55;
}

.skyz-home .skyz-control-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.skyz-home .skyz-supplier-selection-card {
  grid-column: 1 / -1;
}

.skyz-home .skyz-automatic-work-card {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-color: rgba(241, 143, 1, 0.38);
  background: linear-gradient(180deg, #fffaf2, #fffdf9);
}

.skyz-home .skyz-delivery-calendar-card {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(145, 162, 196, 0.28);
  border-radius: 20px;
  background: rgba(247, 249, 252, 0.94);
}

.skyz-home .skyz-delivery-calendar-head,
.skyz-home .skyz-delivery-calendar-nav,
.skyz-home .skyz-delivery-calendar-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.skyz-home .skyz-delivery-calendar-head {
  justify-content: space-between;
}

.skyz-home .skyz-delivery-calendar-nav > strong {
  min-width: 96px;
  color: #4f4740;
  font-size: 17px;
  text-align: center;
}

.skyz-home .skyz-delivery-calendar-legend span,
.skyz-home .skyz-delivery-supplier-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(145, 162, 196, 0.35);
  background: #fff;
  color: #5f6673;
  font: 700 12px/1.2 "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
}

.skyz-home .skyz-delivery-calendar-legend span {
  min-height: 24px;
  padding: 0 8px;
}

.skyz-home .skyz-delivery-calendar-legend span[data-supplier="geopharm"],
.skyz-home .skyz-delivery-supplier-toggle[data-supplier="geopharm"].is-active {
  border-color: #e48500;
  background: #fff0d9;
  color: #9a5700;
}

.skyz-home .skyz-delivery-calendar-legend span[data-supplier="geoyoung"],
.skyz-home .skyz-delivery-supplier-toggle[data-supplier="geoyoung"].is-active {
  border-color: #3478c5;
  background: #e9f3ff;
  color: #245f9f;
}

.skyz-home .skyz-delivery-calendar-legend span[data-supplier="dongwon"],
.skyz-home .skyz-delivery-supplier-toggle[data-supplier="dongwon"].is-active {
  border-color: #3c8a5a;
  background: #e8f6ed;
  color: #2c7046;
}

.skyz-home .skyz-delivery-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid rgba(145, 162, 196, 0.34);
  border-left: 1px solid rgba(145, 162, 196, 0.34);
  transition: opacity 0.15s ease;
}

.skyz-home .skyz-delivery-calendar.is-saving {
  opacity: 0.55;
  pointer-events: none;
}

.skyz-home .skyz-delivery-weekday,
.skyz-home .skyz-delivery-day {
  min-width: 0;
  border-right: 1px solid rgba(145, 162, 196, 0.34);
  border-bottom: 1px solid rgba(145, 162, 196, 0.34);
}

.skyz-home .skyz-delivery-weekday {
  padding: 5px;
  background: #edf1f6;
  color: #596273;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.skyz-home .skyz-delivery-day {
  min-height: 70px;
  padding: 5px;
  background: #fff;
}

.skyz-home .skyz-delivery-day.is-empty {
  background: #f5f6f8;
}

.skyz-home .skyz-delivery-day.is-friday {
  background: #fffaf2;
}

.skyz-home .skyz-delivery-day.is-saturday {
  background: #f7fbff;
}

.skyz-home .skyz-delivery-day > strong {
  color: #4f5969;
  font-size: 12px;
}

.skyz-home .skyz-delivery-day-toggles {
  display: grid;
  gap: 2px;
  margin-top: 3px;
}

.skyz-home .skyz-delivery-supplier-toggle {
  width: 100%;
  min-height: 17px;
  padding: 1px 3px;
  font-size: 10px;
  cursor: pointer;
}

.skyz-home .skyz-delivery-supplier-toggle:not(.is-active) {
  opacity: 0.62;
}

.skyz-home .skyz-supplier-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
}

.skyz-home .skyz-supplier-checks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  cursor: pointer;
}

.skyz-home .skyz-supplier-checks input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.skyz-home .skyz-monthly-rebuild-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 50px;
  padding: 5px 6px 5px 12px;
  border: 1px solid rgba(145, 162, 196, 0.32);
  background: #fff;
  color: #384154;
  white-space: nowrap;
}

.skyz-home .skyz-monthly-rebuild-last-success {
  flex-basis: 100%;
  margin: 0;
  color: #344767;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.skyz-home .skyz-monthly-rebuild-row span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.skyz-home .skyz-monthly-rebuild-row input {
  box-sizing: border-box;
  height: 38px;
  border: 1px solid rgba(145, 162, 196, 0.36);
  background: #f8fafc;
  color: #1f2937;
  font: 700 14px/1 "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  text-align: center;
}

.skyz-home .skyz-monthly-rebuild-row input[type="number"] {
  width: 62px;
  padding-right: 4px;
}

.skyz-home .skyz-monthly-rebuild-row input#skyzMonthlyRebuildYearInput {
  width: 86px;
}

.skyz-home .skyz-monthly-rebuild-row input[type="time"] {
  width: 118px;
  min-width: 118px;
}

.skyz-home .skyz-monthly-rebuild-row .skyz-primary-action {
  min-height: 38px;
  padding: 0 13px;
  font-size: 14px;
}

.skyz-home .skyz-manual-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skyz-home .skyz-manual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skyz-home .skyz-manual-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(145, 162, 196, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.skyz-home .skyz-manual-card strong {
  font-size: 17px;
  line-height: 1.25;
}

@media (max-width: 1100px) {
  .skyz-home .skyz-control-grid,
  .skyz-home .skyz-manual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skyz-home #skyzDbSyncControlCard,
  .skyz-home #skyzDbMonthlyRebuildControlCard {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .skyz-home .skyz-control-grid,
  .skyz-home .skyz-manual-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .skyz-home .skyz-control-actions {
    flex-direction: column;
  }

  .skyz-home .skyz-automatic-work-card,
  .skyz-home .skyz-delivery-calendar-head {
    align-items: stretch;
    flex-direction: column;
  }

  .skyz-home .skyz-delivery-calendar-card {
    padding: 12px;
    overflow-x: auto;
  }

  .skyz-home .skyz-delivery-calendar {
    min-width: 760px;
  }

  .skyz-home #skyzDbSyncControlCard,
  .skyz-home #skyzDbMonthlyRebuildControlCard {
    grid-column: auto;
  }

  .skyz-home .skyz-monthly-rebuild-row {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
}

body.portal-home {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 820px) {
  .portal-home .portal-page {
    width: min(100vw - 16px, 100%);
    padding-top: 16px;
    gap: 12px;
  }

  .portal-home .portal-hero {
    min-height: 132px;
    padding: 18px 18px 16px;
  }

  .portal-home .hero-copy,
  .portal-home .hero-title-wrap {
    width: 100%;
    justify-items: start;
    align-items: flex-start;
    text-align: left;
  }

  .portal-home .hero-copy h1 {
    font-size: clamp(32px, 8.4vw, 44px) !important;
    line-height: 0.98 !important;
    white-space: normal;
  }

  .portal-home .hero-download-link {
    min-height: 40px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
  }

  .portal-home .hero-update-days {
    font-size: 13px !important;
  }

  .portal-home .menu-section {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .portal-home .menu-button {
    min-height: 132px !important;
    padding: 14px 10px !important;
  }

  .portal-home .menu-title {
    font-size: clamp(22px, 5.8vw, 30px) !important;
    line-height: 1.04 !important;
  }

  .portal-home .home-unused-panel {
    padding: 12px;
  }

  .portal-home .home-stock-layout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .portal-home .home-stock-section {
    padding: 12px;
  }

  .portal-home .home-unused-copy h2 {
    font-size: clamp(24px, 6vw, 32px) !important;
  }

  .portal-home .home-unused-field,
  .portal-home .home-expiry-title {
    font-size: 18px !important;
  }

  .portal-home .home-unused-input,
  .portal-home .home-unused-button {
    min-height: 44px !important;
    font-size: 16px !important;
  }

  .portal-home .home-unused-table thead th {
    font-size: 14px !important;
  }

  .portal-home .home-unused-table tbody td {
    font-size: 16px !important;
  }
}

@media (max-width: 520px) {
  .portal-home .menu-title {
    font-size: clamp(20px, 7vw, 26px) !important;
  }
}

@media (max-width: 820px), (pointer: coarse) {
  .portal-home .hero-download-link {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    letter-spacing: 0.02em !important;
  }

  .portal-home .menu-button {
    min-height: 112px !important;
    padding: 12px 10px !important;
    gap: 4px !important;
  }

  .portal-home .menu-title {
    font-size: clamp(17px, 4.8vw, 21px) !important;
    line-height: 1.02 !important;
  }

  .portal-home .menu-state {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .portal-home .home-unused-panel {
    padding: 10px 10px 12px !important;
  }

  .portal-home .home-stock-layout {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .portal-home .home-stock-section {
    gap: 4px !important;
  }

  .portal-home .home-unused-head {
    gap: 4px !important;
    margin-bottom: 0 !important;
  }

  .portal-home .home-unused-copy h2 {
    font-size: 22px !important;
    line-height: 1.02 !important;
  }

  .portal-home .home-unused-field span {
    font-size: 16px !important;
    line-height: 1 !important;
  }

  .portal-home .home-unused-input {
    min-height: 42px !important;
    font-size: 20px !important;
  }

  .portal-home .home-unused-button {
    min-height: 42px !important;
    padding: 0 12px !important;
    font-size: 18px !important;
  }

  .portal-home .home-unused-grid,
  .portal-home .home-expiry-grid,
  .portal-home .home-expiry-bucket {
    gap: 4px !important;
  }

  .portal-home .home-unused-table-wrap {
    margin-top: 0 !important;
  }

  .portal-home .home-unused-product-table {
    width: 820px !important;
    min-width: 820px !important;
    table-layout: fixed !important;
  }

  .portal-home .home-unused-product-table thead th,
  .portal-home .home-unused-product-table tbody td {
    padding: 10px 8px !important;
  }

  .portal-home .home-unused-product-table thead th {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .portal-home .home-unused-product-table tbody td {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .portal-home .home-unused-product-table thead th:first-child,
  .portal-home .home-unused-product-table tbody td:first-child {
    width: 610px !important;
    min-width: 610px !important;
    max-width: 610px !important;
  }

  .portal-home .home-unused-product-table thead th:nth-child(2),
  .portal-home .home-unused-product-table tbody td:nth-child(2) {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
  }

  .portal-home .home-unused-product-table thead th:nth-child(3),
  .portal-home .home-unused-product-table tbody td:nth-child(3) {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
  }

  .portal-home .home-expiry-title {
    font-size: 14px !important;
    line-height: 1.15 !important;
  }

  .portal-home .home-expiry-table {
    width: 1100px !important;
    min-width: 1100px !important;
    table-layout: fixed !important;
  }

  .portal-home .home-expiry-table thead th,
  .portal-home .home-expiry-table tbody td {
    padding: 10px 6px !important;
  }

  .portal-home .home-expiry-table thead th {
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .portal-home .home-expiry-table tbody td {
    font-size: 11px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .portal-home .home-expiry-table .expiry-col-product {
    width: 848px !important;
  }

  .portal-home .home-expiry-table .expiry-col-spec {
    width: 48px !important;
  }

  .portal-home .home-expiry-table .expiry-col-qty {
    width: 48px !important;
  }

  .portal-home .home-expiry-table .expiry-col-date {
    width: 120px !important;
  }

  .portal-home .home-expiry-table .expiry-col-supplier {
    width: 36px !important;
  }

  .portal-home .home-expiry-table thead th:first-child,
  .portal-home .home-expiry-table tbody td:first-child {
    width: 848px !important;
    min-width: 848px !important;
    max-width: 848px !important;
    text-align: left !important;
  }

  .portal-home .home-expiry-table tbody td:first-child {
    font-size: 12px !important;
    font-weight: 500 !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(2),
  .portal-home .home-expiry-table tbody td:nth-child(2) {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    text-align: center !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(3),
  .portal-home .home-expiry-table tbody td:nth-child(3) {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    text-align: center !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(4),
  .portal-home .home-expiry-table tbody td:nth-child(4) {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    text-align: center !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(5),
  .portal-home .home-expiry-table tbody td:nth-child(5) {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    text-align: center !important;
  }
}

body.portal-home:not(.home-landing) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #f4f7fb 0%, #e9eef5 100%) !important;
}

body.portal-home:not(.home-landing)::before {
  opacity: 0.18 !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 100%) !important;
  background-size: 110px 110px !important;
}

.portal-home:not(.home-landing) .portal-page {
  width: min(1460px, calc(100vw - 28px)) !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  gap: 10px !important;
}

.portal-home:not(.home-landing) .portal-hero {
  min-height: 0 !important;
  padding: 14px 16px !important;
}

.portal-home:not(.home-landing) .portal-hero::before {
  top: 14px !important;
  left: 16px !important;
  right: 16px !important;
}

.portal-home:not(.home-landing) .portal-hero::after {
  content: none !important;
}

.portal-home:not(.home-landing) .hero-copy {
  justify-items: stretch !important;
  text-align: left !important;
}

.portal-home:not(.home-landing) .hero-copy h1 {
  width: auto !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.02em !important;
  font-weight: 600 !important;
}

/* Home Portfolio Orange Final Overrides */
body.portal-home {
  --home-portfolio-bg: #bebebe;
  --home-portfolio-paper: #f9fbfd;
  --home-portfolio-paper-strong: #ffffff;
  --home-portfolio-ink: #161411;
  --home-portfolio-muted: rgba(22, 20, 17, 0.58);
  --home-portfolio-line: rgba(89, 73, 55, 0.22);
  --home-portfolio-accent: #f18f01;
  --home-portfolio-display: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #c2c2c2 0%, #b6b6b6 100%) !important;
  color: var(--home-portfolio-ink);
}

body.portal-home::before {
  opacity: 0.18 !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 100%) !important;
  background-size: 110px 110px !important;
}

.portal-home .portal-page {
  width: min(1460px, calc(100vw - 72px)) !important;
  padding-top: 34px !important;
  padding-bottom: 34px !important;
  gap: 26px !important;
}

.portal-home .portal-hero,
.portal-home .menu-button,
.portal-home .home-stock-section {
  border: 1px solid var(--home-portfolio-line) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, var(--home-portfolio-paper-strong), var(--home-portfolio-paper)) !important;
  box-shadow: 0 18px 24px rgba(60, 58, 51, 0.22) !important;
}

.portal-home .portal-hero {
  position: relative !important;
  min-height: 244px !important;
  padding: 28px 34px 30px !important;
  overflow: hidden !important;
}

.portal-home .portal-hero::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 26px;
  right: 26px;
  height: 1px;
  background: rgba(241, 143, 1, 0.46);
}

.portal-home .portal-hero::after {
  content: "Portfolio.";
  position: absolute;
  top: 12px;
  right: 16px;
  color: var(--home-portfolio-accent);
  font-family: var(--home-portfolio-display);
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.05em;
  writing-mode: vertical-rl;
  text-transform: none;
}

.portal-home .hero-copy {
  width: 100% !important;
  justify-items: end !important;
  text-align: right !important;
}

.portal-home .hero-title-wrap {
  position: relative !important;
  width: 100% !important;
  align-items: flex-end !important;
  gap: 18px !important;
  padding-top: 18px !important;
  padding-right: 0 !important;
}

.portal-home .hero-download-link {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  align-self: flex-end !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(241, 143, 1, 0.38) !important;
  background: rgba(255, 252, 244, 0.72) !important;
  color: var(--home-portfolio-accent) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

.portal-home .hero-download-link::before {
  content: none;
}

.portal-home .hero-download-link::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(241, 143, 1, 0.14);
}

.portal-home .hero-copy h1 {
  width: auto !important;
  max-width: 100% !important;
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: flex-end !important;
  text-align: right !important;
  white-space: nowrap !important;
  color: var(--home-portfolio-accent) !important;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif !important;
  font-size: clamp(52px, 6vw, 88px) !important;
  font-weight: 900 !important;
  line-height: 0.84 !important;
  letter-spacing: -0.08em !important;
  text-transform: uppercase !important;
}

.portal-home .hero-update-days {
  color: var(--home-portfolio-muted) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
}

.portal-home .hero-title-text,
.portal-home .hero-title-space,
.portal-home .hero-secret-letter,
.portal-home .hero-hub-tail {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.portal-home .menu-section {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.portal-home .menu-button {
  position: relative !important;
  min-height: 146px !important;
  padding: 18px 18px 16px !important;
  justify-content: flex-end !important;
  align-items: flex-end !important;
  gap: 4px !important;
  overflow: hidden !important;
  text-align: right !important;
}

.portal-home .menu-button::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 22px;
  height: 1px;
  background: rgba(241, 143, 1, 0.4);
}

.portal-home .menu-button::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 18px;
  width: 1px;
  height: calc(100% - 44px);
  background: rgba(241, 143, 1, 0.34);
}

.portal-home .menu-title,
.portal-home .menu-state {
  position: relative !important;
  z-index: 1 !important;
}

.portal-home .menu-title {
  order: 2 !important;
  margin-top: 0 !important;
  color: var(--home-portfolio-accent) !important;
  font-family: var(--home-portfolio-display) !important;
  font-size: clamp(24px, 2vw, 34px) !important;
  font-weight: 500 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: right !important;
}

.portal-home .menu-state {
  order: 1 !important;
  display: inline-block !important;
  color: var(--home-portfolio-muted) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-align: right !important;
}

.portal-home .menu-button:hover {
  transform: translateY(-5px) !important;
  background: linear-gradient(180deg, #f18f01, #e88300) !important;
  border-color: rgba(241, 143, 1, 0.7) !important;
  box-shadow: 0 22px 30px rgba(120, 72, 6, 0.28) !important;
}

.portal-home .menu-button:hover .menu-title,
.portal-home .menu-button:hover .menu-state {
  color: #fff8ef !important;
}

.portal-home .menu-button:hover::before,
.portal-home .menu-button:hover::after {
  background: rgba(255, 248, 239, 0.42) !important;
}

.portal-home .home-unused-panel {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 24px !important;
}

.portal-home .home-stock-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 24px !important;
}

.portal-home .home-stock-section {
  position: relative !important;
  padding: 24px 24px 26px !important;
  gap: 14px !important;
  overflow: hidden !important;
}

.portal-home .home-stock-section::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: rgba(241, 143, 1, 0.36);
}

.portal-home .home-unused-head {
  position: relative !important;
  z-index: 1 !important;
  align-items: flex-end !important;
}

.portal-home .home-unused-copy h2 {
  margin: 0 !important;
  padding-top: 12px !important;
  color: rgba(22, 20, 17, 0.66) !important;
  font-family: var(--home-portfolio-display) !important;
  font-size: clamp(24px, 2.4vw, 38px) !important;
  font-weight: 500 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.05em !important;
}

.portal-home .home-unused-field,
.portal-home .home-expiry-title {
  color: var(--home-portfolio-muted) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.portal-home .home-unused-input {
  border: 1px solid rgba(89, 73, 55, 0.2) !important;
  background: rgba(255, 255, 255, 0.66) !important;
  color: var(--home-portfolio-ink) !important;
  font-family: var(--home-portfolio-display) !important;
  font-weight: 500 !important;
}

.portal-home .home-unused-button {
  border: 1px solid rgba(241, 143, 1, 0.32) !important;
  background: var(--home-portfolio-accent) !important;
  color: #fffaf1 !important;
  font-family: var(--home-portfolio-display) !important;
  font-weight: 600 !important;
}

.portal-home .home-unused-input,
.portal-home .home-unused-button {
  min-height: 38px !important;
}

.portal-home .home-unused-button {
  padding: 0 14px !important;
}

.portal-home .home-unused-table-wrap,
.portal-home .home-expiry-table {
  background: rgba(255, 255, 255, 0.42) !important;
}

.portal-home .home-unused-table thead th,
.portal-home .home-expiry-table thead th {
  background: rgba(241, 143, 1, 0.07) !important;
  color: rgba(22, 20, 17, 0.62) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.portal-home .home-unused-table tbody td,
.portal-home .home-expiry-table tbody td {
  color: rgba(22, 20, 17, 0.82) !important;
}

.portal-home .home-expiry-table .expiry-col-supplier {
  width: 84px !important;
}

.portal-home .home-expiry-table thead th:nth-child(5),
.portal-home .home-expiry-table tbody td:nth-child(5) {
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
}

.portal-home .home-expiry-table .expiry-col-product {
  width: auto !important;
}

@media (max-width: 1080px) {
  .portal-home .portal-page {
    width: min(1180px, calc(100vw - 22px)) !important;
  }

  .portal-home .menu-section {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .portal-home .menu-title {
    font-size: clamp(22px, 2.4vw, 30px) !important;
  }
}

@media (max-width: 820px), (pointer: coarse) {
  .portal-home .portal-page {
    width: calc(100vw - 20px) !important;
    gap: 16px !important;
  }

  .portal-home .portal-hero {
    min-height: 180px !important;
    padding: 18px 18px 20px !important;
  }

  .portal-home .portal-hero::before {
    top: 14px;
    left: 18px;
    right: 18px;
  }

  .portal-home .portal-hero::after {
    right: 8px;
    font-size: clamp(28px, 9vw, 46px);
  }

  .portal-home .hero-copy h1 {
    font-size: clamp(31px, 9.6vw, 46px) !important;
    letter-spacing: -0.06em !important;
  }

  .portal-home .hero-download-link {
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
  }

  .portal-home .hero-download-link::before {
    left: -28px;
    width: 22px;
  }

  .portal-home .menu-section {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .portal-home .menu-button {
    min-height: 118px !important;
    padding: 18px 16px !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
    text-align: right !important;
  }

  .portal-home .menu-title {
    margin-top: 0 !important;
    font-size: clamp(18px, 4.4vw, 24px) !important;
  }

  .portal-home .home-stock-layout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .portal-home .home-stock-section {
    padding: 14px 10px 16px !important;
  }

  .portal-home .home-unused-copy h2 {
    font-size: clamp(20px, 5.8vw, 28px) !important;
  }

  .portal-home .home-expiry-table {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed !important;
  }

  .portal-home .home-expiry-table .expiry-col-product {
    width: 56% !important;
  }

  .portal-home .home-expiry-table .expiry-col-spec {
    width: 12% !important;
  }

  .portal-home .home-expiry-table .expiry-col-qty {
    width: 9% !important;
  }

  .portal-home .home-expiry-table .expiry-col-date {
    width: 14% !important;
  }

  .portal-home .home-expiry-table .expiry-col-supplier {
    width: 9% !important;
  }

  .portal-home .home-expiry-table thead th:first-child,
  .portal-home .home-expiry-table tbody td:first-child {
    width: 56% !important;
    min-width: 56% !important;
    max-width: 56% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(2),
  .portal-home .home-expiry-table tbody td:nth-child(2) {
    width: 12% !important;
    min-width: 12% !important;
    max-width: 12% !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(3),
  .portal-home .home-expiry-table tbody td:nth-child(3) {
    width: 9% !important;
    min-width: 9% !important;
    max-width: 9% !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(4),
  .portal-home .home-expiry-table tbody td:nth-child(4) {
    width: 14% !important;
    min-width: 14% !important;
    max-width: 14% !important;
  }

  .portal-home .home-expiry-table thead th:nth-child(5),
  .portal-home .home-expiry-table tbody td:nth-child(5) {
    width: 9% !important;
    min-width: 9% !important;
    max-width: 9% !important;
  }
}

@media (max-width: 480px) {
  .portal-home .portal-page {
    width: calc(100vw - 8px) !important;
    gap: 12px !important;
  }

  .portal-home .portal-hero {
    min-height: 150px !important;
    padding: 16px 14px 18px !important;
  }

  .portal-home .hero-title-wrap {
    gap: 12px !important;
    padding-top: 14px !important;
  }

  .portal-home .hero-copy h1 {
    font-size: clamp(26px, 8.8vw, 38px) !important;
    line-height: 0.88 !important;
    letter-spacing: -0.05em !important;
  }

  .portal-home .hero-download-link {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
  }

  .portal-home .menu-section {
    gap: 10px !important;
  }

  .portal-home .menu-button {
    min-height: 104px !important;
    padding: 14px 12px !important;
  }

  .portal-home .menu-title {
    font-size: clamp(16px, 4.8vw, 20px) !important;
  }

  .portal-home .home-stock-section {
    padding: 12px 8px 14px !important;
  }

  .portal-home .home-unused-copy h2 {
    font-size: clamp(18px, 5.8vw, 24px) !important;
  }

  .portal-home .home-unused-product-table {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed !important;
  }

  .portal-home .home-unused-product-table thead th:first-child,
  .portal-home .home-unused-product-table tbody td:first-child {
    width: 68% !important;
    min-width: 68% !important;
    max-width: 68% !important;
  }

  .portal-home .home-unused-product-table thead th:nth-child(2),
  .portal-home .home-unused-product-table tbody td:nth-child(2) {
    width: 18% !important;
    min-width: 18% !important;
    max-width: 18% !important;
  }

  .portal-home .home-unused-product-table thead th:nth-child(3),
  .portal-home .home-unused-product-table tbody td:nth-child(3) {
    width: 14% !important;
    min-width: 14% !important;
    max-width: 14% !important;
  }

  .portal-home .home-unused-table thead th {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
  }

  .portal-home .home-unused-table tbody td,
  .portal-home .home-expiry-table tbody td {
    font-size: 12px !important;
    line-height: 1.28 !important;
  }

  .portal-home .home-expiry-table tbody td:first-child {
    font-size: 11px !important;
    font-weight: 500 !important;
  }
}

@media (max-width: 390px) {
  .portal-home .hero-copy h1 {
    font-size: clamp(22px, 8.2vw, 32px) !important;
    letter-spacing: -0.04em !important;
  }

  .portal-home .hero-title-space {
    width: 0.18em !important;
  }

  .portal-home .menu-title {
    font-size: clamp(15px, 4.6vw, 18px) !important;
  }

  .portal-home .home-unused-copy h2 {
    font-size: clamp(17px, 5.6vw, 22px) !important;
  }

  .portal-home .home-expiry-table .expiry-col-product,
  .portal-home .home-expiry-table thead th:first-child,
  .portal-home .home-expiry-table tbody td:first-child {
    width: 54% !important;
    min-width: 54% !important;
    max-width: 54% !important;
  }

  .portal-home .home-expiry-table .expiry-col-spec,
  .portal-home .home-expiry-table thead th:nth-child(2),
  .portal-home .home-expiry-table tbody td:nth-child(2) {
    width: 13% !important;
    min-width: 13% !important;
    max-width: 13% !important;
  }

  .portal-home .home-expiry-table .expiry-col-qty,
  .portal-home .home-expiry-table thead th:nth-child(3),
  .portal-home .home-expiry-table tbody td:nth-child(3) {
    width: 10% !important;
    min-width: 10% !important;
    max-width: 10% !important;
  }

  .portal-home .home-expiry-table .expiry-col-date,
  .portal-home .home-expiry-table thead th:nth-child(4),
  .portal-home .home-expiry-table tbody td:nth-child(4) {
    width: 15% !important;
    min-width: 15% !important;
    max-width: 15% !important;
  }

  .portal-home .home-expiry-table .expiry-col-supplier,
  .portal-home .home-expiry-table thead th:nth-child(5),
  .portal-home .home-expiry-table tbody td:nth-child(5) {
    width: 8% !important;
    min-width: 8% !important;
    max-width: 8% !important;
  }

  .portal-home .home-expiry-table tbody td:first-child {
    font-size: 10px !important;
  }
}

/* 2026-04-23 palette alignment for secondary pages */
.placeholder-home,
.finance-discount-home {
  background: linear-gradient(180deg, #d7d1c6 0%, #ccc6bb 100%) !important;
}

.placeholder-home .placeholder-page,
.finance-discount-home .finance-page {
  gap: 16px;
}

.placeholder-home .placeholder-hero,
.placeholder-home .placeholder-card,
.finance-discount-home .finance-hero,
.finance-discount-home .finance-panel,
.finance-discount-home .finance-summary-card {
  border: 1px solid rgba(109, 96, 86, 0.14) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%) !important;
  box-shadow: 0 18px 28px rgba(82, 60, 46, 0.12) !important;
}

.portal-home.placeholder-home .placeholder-hero-copy h1,
.portal-home.finance-discount-home .finance-hero h1 {
  color: #5f5650 !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: clamp(24px, 2.6vw, 34px) !important;
  line-height: 1.04 !important;
}

.placeholder-home .placeholder-note,
.finance-discount-home .finance-toolbar-note,
.finance-discount-home .finance-results-note,
.finance-discount-home .finance-toolbar-plain,
.finance-discount-home .finance-review-summary,
.finance-discount-home .finance-field span,
.finance-discount-home .finance-status,
.finance-discount-home .finance-empty,
.finance-discount-home .finance-name-cell span {
  color: rgba(79, 71, 64, 0.78) !important;
}

.placeholder-home .back-link,
.finance-discount-home .back-link {
  border: 1px solid rgba(241, 143, 1, 0.34) !important;
  background: linear-gradient(180deg, #f18f01, #e88300) !important;
  color: #fff7ed !important;
}

.placeholder-home .back-link:hover,
.finance-discount-home .back-link:hover {
  background: linear-gradient(180deg, #ff9e18, #ed8600) !important;
  color: #fffaf3 !important;
  border-color: rgba(241, 143, 1, 0.46) !important;
}

.placeholder-home .placeholder-card {
  position: relative;
  overflow: hidden;
}

.placeholder-home .placeholder-card::before,
.finance-discount-home .finance-hero::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: rgba(241, 143, 1, 0.3);
}

.placeholder-home .placeholder-note {
  font-size: 15px;
}

.finance-discount-home .finance-company-tab,
.finance-discount-home .finance-submit {
  border-color: rgba(241, 143, 1, 0.34) !important;
}

.finance-discount-home .finance-company-tab {
  background: rgba(255, 255, 254, 0.98) !important;
  color: #5f5650 !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.finance-discount-home .finance-company-tab:hover:not(:disabled) {
  background: #ffffff !important;
  box-shadow: 0 12px 20px rgba(121, 74, 31, 0.12) !important;
}

.finance-discount-home .finance-company-tab.is-active {
  background: linear-gradient(180deg, #f18f01, #e88300) !important;
  color: #fff7ed !important;
}

.finance-discount-home .finance-field input,
.finance-discount-home .finance-field select {
  border: 1px solid rgba(109, 96, 86, 0.16) !important;
  background: rgba(255, 255, 255, 0.99) !important;
  color: #4f4740 !important;
}

.finance-discount-home .finance-submit {
  background: linear-gradient(180deg, #f18f01, #e88300) !important;
  color: #fff7ed !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 22px rgba(121, 74, 31, 0.14) !important;
}

.finance-discount-home .finance-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff9e18, #ed8600) !important;
}

.finance-discount-home .finance-confirm-button {
  background: rgba(255, 255, 254, 0.98) !important;
  color: #5f5650 !important;
  box-shadow: none !important;
}

.finance-discount-home .finance-summary-label {
  color: rgba(95, 86, 80, 0.72) !important;
}

.finance-discount-home .finance-summary-value,
.finance-discount-home .finance-name-cell strong,
.finance-discount-home .finance-status-cell,
.finance-discount-home .finance-calc-answer {
  color: #5f5650 !important;
}

.finance-discount-home .finance-table-wrap {
  border-color: rgba(109, 96, 86, 0.14) !important;
  background: rgba(255, 255, 255, 0.99) !important;
}

.finance-discount-home .finance-table thead th {
  background: #efe6da !important;
  color: #665d56 !important;
}

.finance-discount-home .finance-table tbody td {
  color: #4f4740 !important;
}

/* 2026-04-23 final mobile home tightening */
@media (max-width: 720px) {
  .portal-home .menu-button {
    min-height: 108px !important;
    padding: 12px 12px !important;
  }

  .portal-home .menu-title {
    font-size: clamp(20px, 6.6vw, 30px) !important;
    line-height: 1.02 !important;
  }

  .portal-home .menu-state {
    margin-top: 4px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  .portal-home .home-expiry-title {
    display: inline-flex !important;
    justify-content: flex-start !important;
    justify-self: start !important;
    align-self: start !important;
    margin: 0 0 6px 0 !important;
    padding: 3px 7px !important;
    font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
    text-align: left !important;
  }

  .portal-home .home-expiry-bucket {
    text-align: left !important;
  }

  .portal-home .home-expiry-table thead th,
  .portal-home .home-expiry-table tbody td,
  .portal-home .home-expiry-table tbody td:first-child,
  .portal-home .home-expiry-table tbody td:nth-child(2),
  .portal-home .home-expiry-table tbody td:nth-child(3),
  .portal-home .home-expiry-table tbody td:nth-child(4),
  .portal-home .home-expiry-table tbody td:nth-child(5) {
    font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    line-height: 1.14 !important;
    letter-spacing: -0.01em !important;
  }
}

@media (max-width: 480px) {
  .portal-home .menu-button {
    min-height: 74px !important;
    padding: 10px 10px !important;
  }

  .portal-home .menu-title {
    font-size: clamp(14px, 4.1vw, 18px) !important;
    line-height: 1.02 !important;
  }

  .portal-home .menu-state {
    margin-top: 3px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  .portal-home .home-expiry-title {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }

  .portal-home .home-expiry-table thead th,
  .portal-home .home-expiry-table tbody td,
  .portal-home .home-expiry-table tbody td:first-child,
  .portal-home .home-expiry-table tbody td:nth-child(2),
  .portal-home .home-expiry-table tbody td:nth-child(3),
  .portal-home .home-expiry-table tbody td:nth-child(4),
  .portal-home .home-expiry-table tbody td:nth-child(5) {
    font-size: 8px !important;
  }
}

/* 2026-04-23 skyz manager title-only orange, body gray */
.portal-home.skyz-home .skyz-hero h1::before,
.skyz-home .skyz-panel-head h2,
.skyz-home .skyz-control-copy strong,
.skyz-home .skyz-manual-card strong,
.skyz-home .skyz-status-label,
.skyz-home .skyz-runtime-label,
.skyz-home .skyz-schedule-title,
.skyz-home .skyz-schedule-rule-copy strong,
.skyz-home .skyz-warning-item strong,
.skyz-home .skyz-scheduler-task-copy strong {
  color: #f18f01 !important;
}

.skyz-home .skyz-status-value,
.skyz-home .skyz-runtime-value,
.skyz-home .skyz-test-status,
.skyz-home .skyz-list-item strong,
.skyz-home .skyz-table tbody td,
.skyz-home .skyz-table tbody td:first-child,
.skyz-home .skyz-scheduler-engine,
.skyz-home .skyz-queue-tag,
.skyz-home .skyz-schedule-badge,
.skyz-home .skyz-scheduler-task-badge,
.skyz-home .skyz-schedule-meta-box strong {
  color: #4f4740 !important;
}

/* 2026-04-23 absolute final home title size */
.portal-home .home-unused-copy h2,
.portal-home .home-expiry-title {
  font-size: clamp(18px, 1.8vw, 26px) !important;
  line-height: 1.02 !important;
}

@media (max-width: 720px) {
  .portal-home .home-unused-copy h2,
  .portal-home .home-expiry-title {
    font-size: clamp(15px, 4.8vw, 21px) !important;
  }
}

/* 2026-04-23 final final home title size */
.portal-home .home-unused-copy h2,
.portal-home .home-expiry-title {
  font-size: clamp(18px, 1.8vw, 26px) !important;
  line-height: 1.02 !important;
}

@media (max-width: 720px) {
  .portal-home .home-unused-copy h2,
  .portal-home .home-expiry-title {
    font-size: clamp(15px, 4.8vw, 21px) !important;
  }
}

/* 2026-04-23 final home section title size */
.portal-home .home-unused-copy h2,
.portal-home .home-expiry-title {
  font-size: clamp(20px, 2vw, 30px) !important;
  line-height: 1.02 !important;
}

@media (max-width: 720px) {
  .portal-home .home-unused-copy h2,
  .portal-home .home-expiry-title {
    font-size: clamp(17px, 5.2vw, 24px) !important;
  }
}

.finance-discount-home .finance-table tbody tr.is-pending {
  background: rgba(241, 143, 1, 0.08) !important;
}

.finance-discount-home .finance-hero {
  position: relative !important;
  overflow: hidden !important;
  padding: 24px 16px 14px !important;
}

.finance-discount-home .finance-hero::before {
  top: 12px !important;
}

.portal-home.finance-discount-home .finance-hero h1 {
  color: #f18f01 !important;
}

.finance-discount-home .finance-hero-head {
  align-items: flex-end !important;
}

@media (max-width: 820px), (pointer: coarse) {
  .portal-home .menu-button {
    min-height: 72px !important;
    padding: 10px 12px !important;
    gap: 2px !important;
  }

  .portal-home .menu-button::before {
    left: 12px !important;
    right: 12px !important;
    top: 14px !important;
  }

  .portal-home .menu-button::after {
    top: 14px !important;
    right: 12px !important;
    height: calc(100% - 28px) !important;
  }

  .portal-home .home-stock-section::before {
    display: none !important;
  }

  .portal-home .home-expiry-title {
    text-align: left !important;
    justify-self: start !important;
    align-self: start !important;
    width: 100% !important;
  }
}

/* 2026-04-23 home section title sizing */
.portal-home .home-unused-copy h2,
.portal-home .home-expiry-title {
  font-size: clamp(24px, 2.4vw, 38px) !important;
  color: rgba(95, 86, 80, 0.88) !important;
  line-height: 1.02 !important;
}

@media (max-width: 720px) {
  .portal-home .home-unused-copy h2,
  .portal-home .home-expiry-title {
    font-size: clamp(20px, 6.2vw, 28px) !important;
  }
}

.portal-home .home-expiry-title {
  font-size: clamp(16px, 1.4vw, 22px) !important;
  color: rgba(95, 86, 80, 0.82) !important;
  line-height: 1.04 !important;
}

@media (max-width: 720px) {
  .portal-home .home-expiry-title {
    font-size: clamp(14px, 4.2vw, 18px) !important;
  }
}

@media (max-width: 720px) {
  .portal-home .home-expiry-table .expiry-col-product,
  .portal-home .home-expiry-table thead th:first-child,
  .portal-home .home-expiry-table tbody td:first-child {
    width: 52% !important;
    min-width: 52% !important;
    max-width: 52% !important;
  }

  .portal-home .home-expiry-table .expiry-col-spec,
  .portal-home .home-expiry-table thead th:nth-child(2),
  .portal-home .home-expiry-table tbody td:nth-child(2) {
    width: 16% !important;
    min-width: 16% !important;
    max-width: 16% !important;
  }

  .portal-home .home-expiry-table .expiry-col-qty,
  .portal-home .home-expiry-table thead th:nth-child(3),
  .portal-home .home-expiry-table tbody td:nth-child(3) {
    width: 10% !important;
    min-width: 10% !important;
    max-width: 10% !important;
  }

  .portal-home .home-expiry-table .expiry-col-date,
  .portal-home .home-expiry-table thead th:nth-child(4),
  .portal-home .home-expiry-table tbody td:nth-child(4) {
    width: 14% !important;
    min-width: 14% !important;
    max-width: 14% !important;
  }

  .portal-home .home-expiry-table .expiry-col-supplier,
  .portal-home .home-expiry-table thead th:nth-child(5),
  .portal-home .home-expiry-table tbody td:nth-child(5) {
    width: 8% !important;
    min-width: 8% !important;
    max-width: 8% !important;
  }

  .portal-home .home-expiry-table tbody td {
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
  }

  .portal-home .home-expiry-table tbody td:first-child {
    font-size: 10px !important;
    font-weight: 500 !important;
  }
}

/* 2026-04-23 mobile expiry alignment + finance hero spacing */
@media (max-width: 820px), (pointer: coarse) {
  .portal-home .home-expiry-bucket {
    justify-items: start !important;
    text-align: left !important;
  }

  .portal-home .home-expiry-title {
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    text-align: left !important;
    justify-self: start !important;
    align-self: start !important;
  }

  .portal-home .home-expiry-table thead th,
  .portal-home .home-expiry-table tbody td,
  .portal-home .home-expiry-table tbody td:first-child,
  .portal-home .home-expiry-table tbody td:nth-child(2),
  .portal-home .home-expiry-table tbody td:nth-child(3),
  .portal-home .home-expiry-table tbody td:nth-child(4),
  .portal-home .home-expiry-table tbody td:nth-child(5) {
    font-size: 10px !important;
    line-height: 1.18 !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
  }

  .portal-home .home-expiry-table thead th {
    font-weight: 600 !important;
    color: rgba(95, 86, 80, 0.82) !important;
  }
}

.finance-discount-home .finance-hero {
  position: relative !important;
  overflow: hidden !important;
  padding: 30px 16px 14px !important;
}

.finance-discount-home .finance-hero::before {
  top: 14px !important;
  left: 16px !important;
  right: 118px !important;
}

.finance-discount-home .finance-hero-head {
  align-items: flex-start !important;
  padding-top: 4px !important;
}

/* 2026-04-23 unify portal subpage heroes with purchase header */
.placeholder-home .placeholder-hero,
.finance-discount-home .finance-hero,
.skyz-home .skyz-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: 0 !important;
  padding: 30px 16px 14px !important;
  align-items: flex-end !important;
}

.placeholder-home .placeholder-hero::before,
.finance-discount-home .finance-hero::before,
.skyz-home .skyz-hero::before {
  content: "" !important;
  position: absolute !important;
  top: 12px !important;
  left: 16px !important;
  right: 108px !important;
  height: 1px !important;
  background: rgba(241, 143, 1, 0.34) !important;
}

.placeholder-home .placeholder-hero-copy,
.finance-discount-home .finance-hero-copy,
.skyz-home .skyz-hero-copy {
  width: 100% !important;
}

.finance-discount-home .finance-hero-head,
.skyz-home .skyz-hero-head {
  align-items: flex-end !important;
  padding-top: 0 !important;
}

.portal-home.placeholder-home .placeholder-hero-copy h1,
.portal-home.finance-discount-home .finance-hero h1,
.portal-home.skyz-home .skyz-hero h1 {
  color: #f18f01 !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.02 !important;
}

/* 2026-04-23 skyz manager orange + cream refresh */
.skyz-home {
  background: linear-gradient(180deg, #e3d7c9 0%, #d6c7b6 100%) !important;
}

.skyz-home .eyebrow,
.skyz-home .skyz-panel-kicker {
  display: none !important;
}

.skyz-home .skyz-hero,
.skyz-home .skyz-status-card,
.skyz-home .skyz-panel,
.skyz-home .skyz-runtime-card,
.skyz-home .skyz-schedule-card,
.skyz-home .skyz-schedule-meta-box,
.skyz-home .skyz-scheduler-engine,
.skyz-home .skyz-scheduler-task,
.skyz-home .skyz-scheduler-task-meta-box,
.skyz-home .skyz-control-card,
.skyz-home .skyz-manual-card,
.skyz-home .skyz-list-item,
.skyz-home .skyz-test-step,
.skyz-home .skyz-warning-item,
.skyz-home .skyz-table-wrap {
  border: 1px solid rgba(89, 73, 55, 0.22) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #ffffff, #f9fbfd) !important;
  box-shadow: 0 16px 28px rgba(82, 60, 46, 0.12) !important;
}

.portal-home.skyz-home .skyz-hero h1,
.skyz-home .skyz-panel-head h2,
.skyz-home .skyz-status-value,
.skyz-home .skyz-runtime-value,
.skyz-home .skyz-schedule-title,
.skyz-home .skyz-schedule-rule-copy strong,
.skyz-home .skyz-scheduler-task-copy strong,
.skyz-home .skyz-control-copy strong,
.skyz-home .skyz-manual-card strong,
.skyz-home .skyz-test-status,
.skyz-home .skyz-warning-item strong,
.skyz-home .skyz-list-item strong,
.skyz-home .skyz-table tbody td:first-child {
  color: #f18f01 !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

.portal-home.skyz-home .skyz-hero h1 {
  font-size: 0 !important;
}

.portal-home.skyz-home .skyz-hero h1::before {
  content: "스카이젯 관리";
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.02;
}

.portal-home.skyz-home .back-link {
  border: 1px solid rgba(241, 143, 1, 0.34) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 254, 0.98) !important;
  color: #f18f01 !important;
  box-shadow: none !important;
}

.portal-home.skyz-home .back-link:hover {
  background: #f18f01 !important;
  color: #fffaf1 !important;
  border-color: #f18f01 !important;
}

.skyz-home .skyz-status-label,
.skyz-home .skyz-runtime-label,
.skyz-home .skyz-schedule-meta-box span,
.skyz-home .skyz-scheduler-task-meta-box span,
.skyz-home .skyz-scheduler-field span,
.skyz-home .skyz-queue-heading,
.skyz-home .skyz-schedule-badge,
.skyz-home .skyz-scheduler-task-badge,
.skyz-home .skyz-queue-tag {
  color: rgba(95, 86, 80, 0.72) !important;
  font-family: "IBM Plex Mono", monospace !important;
}

.skyz-home .skyz-table thead th,
.skyz-home .skyz-table tbody td,
.skyz-home .skyz-warning-item p,
.skyz-home .skyz-warning-item span,
.skyz-home .skyz-schedule-rule-copy span,
.skyz-home .skyz-runtime-meta,
.skyz-home .skyz-scheduler-engine,
.skyz-home .skyz-scheduler-task-note,
.skyz-home .skyz-scheduler-task-foot,
.skyz-home .skyz-empty {
  color: #4f4740 !important;
}

.skyz-home .skyz-table thead th {
  background: #efe6da !important;
  color: #665d56 !important;
}

.skyz-home .skyz-menu-chip,
.skyz-home .skyz-secondary-action,
.skyz-home .skyz-scheduler-actions .skyz-secondary-action {
  border: 1px solid rgba(241, 143, 1, 0.32) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 254, 0.98) !important;
  color: #f18f01 !important;
  box-shadow: none !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
}

.skyz-home .skyz-menu-chip:hover:not(:disabled),
.skyz-home .skyz-secondary-action:hover:not(:disabled) {
  background: #ffffff !important;
  color: #f18f01 !important;
  border-color: rgba(241, 143, 1, 0.46) !important;
}

.skyz-home .skyz-menu-chip.is-active,
.skyz-home .skyz-primary-action,
.skyz-home .skyz-scheduler-actions .skyz-primary-action {
  border: 1px solid #f18f01 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #f18f01, #e88300) !important;
  color: #fff7ed !important;
  box-shadow: 0 12px 22px rgba(121, 74, 31, 0.14) !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
}

.skyz-home .skyz-primary-action:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff9e18, #ed8600) !important;
}

.skyz-home .skyz-primary-action:disabled,
.skyz-home .skyz-secondary-action:disabled,
.skyz-home .skyz-scheduler-actions .skyz-primary-action:disabled,
.skyz-home .skyz-scheduler-actions .skyz-secondary-action:disabled {
  border-color: rgba(241, 143, 1, 0.10) !important;
  background: #ffffff !important;
  color: rgba(241, 143, 1, 0.28) !important;
  box-shadow: none !important;
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.skyz-home .skyz-control-copy p,
.skyz-home .skyz-status-meta,
.skyz-home .skyz-runtime-meta,
.skyz-home .skyz-panel-note,
.skyz-home .skyz-test-status + p {
  color: rgba(95, 86, 80, 0.78) !important;
}

/* 2026-04-23 final mobile expiry tuning */
@media (max-width: 820px), (pointer: coarse) {
  .portal-home .home-expiry-grid,
  .portal-home .home-expiry-bucket {
    justify-items: start !important;
    text-align: left !important;
  }

  .portal-home .home-expiry-title {
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    text-align: left !important;
    justify-self: start !important;
    align-self: start !important;
    color: #f18f01 !important;
    font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.01em !important;
  }

  .portal-home .home-expiry-table thead th,
  .portal-home .home-expiry-table tbody td,
  .portal-home .home-expiry-table tbody td:first-child,
  .portal-home .home-expiry-table tbody td:nth-child(2),
  .portal-home .home-expiry-table tbody td:nth-child(3),
  .portal-home .home-expiry-table tbody td:nth-child(4),
  .portal-home .home-expiry-table tbody td:nth-child(5) {
    font-size: 9px !important;
    line-height: 1.14 !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
  }

  .portal-home .home-expiry-table thead th {
    color: rgba(95, 86, 80, 0.8) !important;
    font-weight: 500 !important;
  }

  .portal-home .home-expiry-table .expiry-col-product,
  .portal-home .home-expiry-table thead th:first-child,
  .portal-home .home-expiry-table tbody td:first-child {
    width: 38% !important;
    min-width: 38% !important;
    max-width: 38% !important;
  }

  .portal-home .home-expiry-table .expiry-col-spec,
  .portal-home .home-expiry-table thead th:nth-child(2),
  .portal-home .home-expiry-table tbody td:nth-child(2) {
    width: 19% !important;
    min-width: 19% !important;
    max-width: 19% !important;
  }

  .portal-home .home-expiry-table .expiry-col-qty,
  .portal-home .home-expiry-table thead th:nth-child(3),
  .portal-home .home-expiry-table tbody td:nth-child(3) {
    width: 10% !important;
    min-width: 10% !important;
    max-width: 10% !important;
  }

  .portal-home .home-expiry-table .expiry-col-date,
  .portal-home .home-expiry-table thead th:nth-child(4),
  .portal-home .home-expiry-table tbody td:nth-child(4) {
    width: 15% !important;
    min-width: 15% !important;
    max-width: 15% !important;
  }

.portal-home .home-expiry-table .expiry-col-supplier,
.portal-home .home-expiry-table thead th:nth-child(5),
.portal-home .home-expiry-table tbody td:nth-child(5) {
    width: 18% !important;
    min-width: 18% !important;
    max-width: 18% !important;
  }
}

/* 2026-04-23 final finance discount purchase-like theme */
.finance-discount-home {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(145deg, #f7efe0 0%, #deebf6 48%, #eef3f8 100%) !important;
}

.finance-discount-home .finance-page {
  width: min(1460px, calc(100vw - 40px)) !important;
  gap: 12px !important;
}

.finance-discount-home .finance-hero,
.finance-discount-home .finance-panel,
.finance-discount-home .finance-summary-card {
  border: 1px solid rgba(89, 73, 55, 0.22) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #ffffff, #f9fbfd) !important;
  box-shadow: 0 16px 28px rgba(82, 60, 46, 0.12) !important;
}

.finance-discount-home .finance-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: 0 !important;
  padding: 24px 16px 14px !important;
  align-items: flex-end !important;
}

.finance-discount-home .finance-hero::before {
  content: "" !important;
  position: absolute !important;
  top: 12px !important;
  left: 16px !important;
  right: 16px !important;
  height: 1px !important;
  background: rgba(241, 143, 1, 0.34) !important;
}

.finance-discount-home .finance-hero-copy {
  width: 100% !important;
}

.finance-discount-home .finance-hero-head {
  align-items: flex-end !important;
  gap: 12px !important;
  padding-top: 0 !important;
}

.portal-home.finance-discount-home .finance-hero h1 {
  color: #f18f01 !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.02 !important;
}

.finance-discount-home .back-link {
  border: 1px solid rgba(241, 143, 1, 0.34) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 254, 0.98) !important;
  color: #f18f01 !important;
  box-shadow: none !important;
}

.finance-discount-home .back-link:hover {
  background: #f18f01 !important;
  color: #fffaf1 !important;
  border-color: #f18f01 !important;
}

.finance-discount-home .finance-summary-label,
.finance-discount-home .finance-field span,
.finance-discount-home .finance-status,
.finance-discount-home .finance-empty,
.finance-discount-home .finance-name-cell span {
  color: rgba(95, 86, 80, 0.72) !important;
}

.finance-discount-home .finance-summary-value,
.finance-discount-home .finance-name-cell strong,
.finance-discount-home .finance-status-cell,
.finance-discount-home .finance-calc-answer {
  color: #5f5650 !important;
}

.finance-discount-home .finance-field input,
.finance-discount-home .finance-field select,
.finance-discount-home .finance-table-wrap {
  border: 1px solid rgba(109, 96, 86, 0.16) !important;
  background: rgba(255, 255, 255, 0.99) !important;
  color: #4f4740 !important;
}

.finance-discount-home .finance-company-tab,
.finance-discount-home .finance-confirm-button {
  border: 1px solid rgba(241, 143, 1, 0.32) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 254, 0.98) !important;
  color: #f18f01 !important;
  box-shadow: none !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
}

.finance-discount-home .finance-submit {
  border: 1px solid #f18f01 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #f18f01, #e88300) !important;
  color: #fff7ed !important;
  box-shadow: 0 12px 22px rgba(121, 74, 31, 0.14) !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
}

.finance-discount-home .finance-company-tab:hover:not(:disabled),
.finance-discount-home .finance-confirm-button:hover:not(:disabled) {
  background: #ffffff !important;
  color: #f18f01 !important;
  border-color: rgba(241, 143, 1, 0.46) !important;
}

.finance-discount-home .finance-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff9e18, #ed8600) !important;
}

.finance-discount-home .finance-company-tab.is-active {
  background: linear-gradient(180deg, #f18f01, #e88300) !important;
  color: #fff7ed !important;
  border-color: #f18f01 !important;
}

.finance-discount-home .finance-table thead th {
  background: #efe6da !important;
  color: #665d56 !important;
}

.finance-discount-home .finance-table tbody td {
  color: #4f4740 !important;
}

/* 2026-04-23 home inventory typography single source of truth */
.portal-home {
  --home-inventory-section-title-size: 22px;
  --home-expiry-bucket-title-size: 15px;
  --home-inventory-title-padding: 5px 10px;
  --home-inventory-title-margin: 0 0 8px 0;
  --home-inventory-table-font-size: 14px;
  --home-expiry-table-header-font-size: 13px;
  --home-inventory-table-line-height: 1.22;
}

.portal-home .home-expiry-bucket {
  display: grid !important;
  justify-items: start !important;
  text-align: left !important;
}

.portal-home .home-unused-copy h2 {
  font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif !important;
  font-size: var(--home-inventory-section-title-size) !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.01em !important;
}

.portal-home .home-expiry-bucket > .home-expiry-title,
.portal-home .home-expiry-title {
  font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif !important;
  font-size: var(--home-expiry-bucket-title-size) !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.01em !important;
}

.portal-home .home-expiry-bucket > .home-expiry-title,
.portal-home .home-expiry-title {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  justify-self: start !important;
  align-self: start !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: var(--home-inventory-title-margin) !important;
  margin-right: auto !important;
  padding: var(--home-inventory-title-padding) !important;
  border-radius: 0 !important;
  background: #f18f01 !important;
  color: #fffaf1 !important;
  text-align: left !important;
  box-shadow: none !important;
}

.portal-home .home-unused-table thead th,
.portal-home .home-expiry-table thead th,
.portal-home .home-unused-table tbody td,
.portal-home .home-expiry-table tbody td,
.portal-home .home-expiry-table tbody td:first-child,
.portal-home .home-expiry-table tbody td:nth-child(2),
.portal-home .home-expiry-table tbody td:nth-child(3),
.portal-home .home-expiry-table tbody td:nth-child(4),
.portal-home .home-expiry-table tbody td:nth-child(5) {
  font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif !important;
  font-size: var(--home-inventory-table-font-size) !important;
  line-height: var(--home-inventory-table-line-height) !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

.portal-home .home-expiry-table thead th,
.portal-home .home-expiry-table thead th:first-child,
.portal-home .home-expiry-table thead th:nth-child(2),
.portal-home .home-expiry-table thead th:nth-child(3),
.portal-home .home-expiry-table thead th:nth-child(4),
.portal-home .home-expiry-table thead th:nth-child(5) {
  font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif !important;
  font-size: var(--home-expiry-table-header-font-size) !important;
  line-height: var(--home-inventory-table-line-height) !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

@media (max-width: 720px) {
  .portal-home {
    --home-inventory-section-title-size: 13px;
    --home-expiry-bucket-title-size: 11px;
    --home-inventory-title-padding: 4px 8px;
    --home-inventory-title-margin: 0 0 5px 0;
    --home-inventory-table-font-size: 12px;
    --home-expiry-table-header-font-size: 11px;
    --home-inventory-table-line-height: 1.14;
  }
}

@media (max-width: 480px) {
  .portal-home {
    --home-inventory-section-title-size: 12px;
    --home-expiry-bucket-title-size: 10px;
    --home-inventory-title-padding: 3px 8px;
    --home-inventory-title-margin: 0 0 4px 0;
    --home-inventory-table-font-size: 11px;
    --home-expiry-table-header-font-size: 10px;
    --home-inventory-table-line-height: 1.12;
  }
}

/* 2026-04-24 skyz manager title only orange */
.portal-home.skyz-home .skyz-hero h1,
.portal-home.skyz-home .skyz-hero h1::before {
  color: #f18f01 !important;
}

.skyz-home .skyz-panel-head h2,
.skyz-home .skyz-control-copy strong,
.skyz-home .skyz-manual-card strong,
.skyz-home .skyz-status-label,
.skyz-home .skyz-status-value,
.skyz-home .skyz-runtime-label,
.skyz-home .skyz-runtime-value,
.skyz-home .skyz-schedule-title,
.skyz-home .skyz-schedule-rule-copy strong,
.skyz-home .skyz-schedule-meta-box strong,
.skyz-home .skyz-scheduler-task-copy strong,
.skyz-home .skyz-warning-item strong,
.skyz-home .skyz-test-status,
.skyz-home .skyz-list-item strong,
.skyz-home .skyz-table tbody td:first-child {
  color: #5f5650 !important;
}

.skyz-home .skyz-table thead th,
.skyz-home .skyz-table tbody td,
.skyz-home .skyz-warning-item p,
.skyz-home .skyz-warning-item span,
.skyz-home .skyz-schedule-rule-copy span,
.skyz-home .skyz-runtime-meta,
.skyz-home .skyz-control-copy p,
.skyz-home .skyz-status-meta,
.skyz-home .skyz-panel-note,
.skyz-home .skyz-test-status + p,
.skyz-home .skyz-empty,
.skyz-home .skyz-scheduler-engine,
.skyz-home .skyz-scheduler-task-note,
.skyz-home .skyz-scheduler-task-foot {
  color: #6b625c !important;
}

.skyz-home .skyz-panel-kicker,
.skyz-home .skyz-status-label,
.skyz-home .skyz-runtime-label,
.skyz-home .skyz-schedule-meta-box span,
.skyz-home .skyz-scheduler-task-meta-box span,
.skyz-home .skyz-scheduler-field span,
.skyz-home .skyz-queue-heading,
.skyz-home .skyz-queue-tag,
.skyz-home .skyz-schedule-badge,
.skyz-home .skyz-scheduler-task-badge {
  color: rgba(95, 86, 80, 0.76) !important;
}

/* 2026-04-24 skyz manager purchase-like header and gray background */
body.portal-home.skyz-home {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #c2c2c2 0%, #b6b6b6 100%) !important;
}

.portal-home.skyz-home .subpage-titlebar,
.portal-home.skyz-home .skyz-hero {
  padding: 24px 16px 14px !important;
}

.portal-home.skyz-home .subpage-titlebar::before,
.portal-home.skyz-home .skyz-hero::before {
  top: 12px !important;
  left: 16px !important;
  right: 16px !important;
}

.portal-home.skyz-home .subpage-titlebar-actions {
  align-self: flex-end !important;
}

/* 2026-05-14 skyz restart history */
.skyz-home .skyz-restart-history-panel {
  margin-bottom: 18px;
}

.skyz-home .skyz-restart-history-list {
  display: grid;
  gap: 10px;
}

.skyz-home .skyz-restart-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(89, 73, 55, 0.22);
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
  color: #4f4740;
}

.skyz-home .skyz-restart-history-item[data-status="error"] {
  border-color: rgba(173, 63, 48, 0.32);
}

.skyz-home .skyz-restart-history-item[data-status="success"] {
  border-color: rgba(59, 125, 79, 0.26);
}

.skyz-home .skyz-restart-history-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.skyz-home .skyz-restart-history-main strong {
  color: #5f5650;
  font-size: 15px;
  line-height: 1.35;
}

.skyz-home .skyz-restart-history-main span {
  color: rgba(95, 86, 80, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.skyz-home .skyz-restart-history-main p {
  margin: 0;
  color: #6b625c;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.skyz-home .skyz-restart-capture-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.skyz-home .skyz-restart-capture-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(241, 143, 1, 0.34);
  background: rgba(255, 255, 254, 0.98);
  color: #5f5650;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.skyz-home .skyz-restart-capture-button:hover {
  border-color: rgba(241, 143, 1, 0.52);
  background: #ffffff;
}

.skyz-capture-viewer[hidden] {
  display: none !important;
}

.skyz-capture-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(21, 20, 19, 0.72);
}

.skyz-capture-viewer-inner {
  width: min(1200px, 96vw);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #ffffff;
}

.skyz-capture-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.skyz-capture-viewer-head strong {
  color: #4f4740;
  font-size: 14px;
  line-height: 1.35;
}

.skyz-capture-viewer img {
  max-width: 100%;
  max-height: calc(92vh - 86px);
  object-fit: contain;
  justify-self: center;
  align-self: center;
  background: #f4f4f4;
}

@media (max-width: 720px) {
  .skyz-home .skyz-restart-history-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .skyz-home .skyz-restart-capture-row {
    justify-content: flex-start;
  }

  .skyz-capture-viewer {
    padding: 10px;
  }
}

/* Homepage desktop menu: five cards per row. */
@media (min-width: 1081px) {
  .portal-home .menu-section {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* 2026-07-23: slightly smaller home menu labels. */
.portal-home .menu-title {
  font-size: clamp(21px, 1.75vw, 30px) !important;
}

@media (max-width: 1080px) {
  .portal-home .menu-title {
    font-size: clamp(19px, 2.15vw, 27px) !important;
  }
}

@media (max-width: 720px) {
  .portal-home .menu-title {
    font-size: clamp(18px, 5.8vw, 26px) !important;
  }
}

@media (max-width: 480px) {
  .portal-home .menu-title {
    font-size: clamp(13px, 3.8vw, 17px) !important;
  }
}
