:root {
  --bg: #071422;
  --side: #08182c;
  --card: rgba(14, 36, 64, 0.78);
  --line: #2a4a6e;
  --text: #e8f2fb;
  --soft: #9bb4cc;
  --teal: #7ecbff;
  --teal-deep: #0e4f86;
  --green: #3ddea6;
  --amber: #f0b429;
  --red: #ff8b96;
  color-scheme: dark;
  font-family: "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(980px 520px at -8% -12%, rgba(74, 168, 255, 0.34), transparent 58%),
    radial-gradient(760px 460px at 108% -8%, rgba(36, 112, 196, 0.28), transparent 52%),
    radial-gradient(820px 480px at 50% 115%, rgba(16, 74, 140, 0.32), transparent 56%),
    linear-gradient(180deg, #0b1d34 0%, #071422 46%, #06101c 100%);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }

.login {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
  overflow: hidden;
  background: #06101c;
}
.login-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.login-photo,
.login-current {
  position: absolute;
  inset: 0;
  background: url("/portal-bg.jpg?v=shared45") center center / cover no-repeat;
}
.login-photo { opacity: 1; animation: flow-drift 22s ease-in-out infinite alternate; }
.login-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(6, 16, 32, 0.18) 0%, rgba(6, 16, 32, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 14, 28, 0.22) 0%, rgba(5, 14, 28, 0.08) 40%, rgba(5, 14, 28, 0.38) 100%);
}
.login-current {
  filter: brightness(1.35) saturate(1.15);
  mix-blend-mode: screen;
  opacity: 0.22;
  -webkit-mask-image:
    radial-gradient(circle, #000 0 12px, transparent 52px),
    radial-gradient(circle, #000 0 12px, transparent 52px),
    radial-gradient(circle, #000 0 9px, transparent 40px);
  mask-image:
    radial-gradient(circle, #000 0 12px, transparent 52px),
    radial-gradient(circle, #000 0 12px, transparent 52px),
    radial-gradient(circle, #000 0 9px, transparent 40px);
  -webkit-mask-size: 150px 150px, 150px 150px, 126px 126px;
  mask-size: 150px 150px, 150px 150px, 126px 126px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: flow-roam 8s linear infinite;
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(7, 18, 36, 0.18) 0%, rgba(7, 18, 36, 0.72) 42%, rgba(7, 18, 36, 0.82) 100%);
  border: 1px solid rgba(90, 196, 255, 0.38);
  border-radius: 24px;
  padding: 8px 24px 24px;
  box-shadow: 0 0 0 1px rgba(90, 196, 255, 0.08), 0 18px 50px rgba(4, 16, 32, 0.55), 0 0 42px rgba(46, 160, 255, 0.18);
  backdrop-filter: blur(14px);
}
.login-logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
  max-height: none;
  margin: -6px auto 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  mix-blend-mode: normal;
}
.side-brand {
  position: relative;
  height: auto;
  margin-bottom: 14px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.side-brand img {
  width: 100%;
  height: auto;
  max-height: 132px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
}
.side-brand .brand-tag { position: static; font-size: 9px; letter-spacing: 0.1px; text-align: center; margin-top: -4px; }
.login.vendor-login { justify-content: center; align-items: center; background: #071422; }
.vendor-login-name { color: #7ecbff; font-weight: 750; letter-spacing: 0.2px; }
.vendor-portal { background: #071422; }
.vendor-brand { display: grid; gap: 2px; }
.vendor-brand strong { font-size: 18px; }
.vendor-brand span { color: #9bb4cc; font-size: 13px; }
.ppob-page { background: #f3f6fb; color: #1c2740; }
.ppob-page .sub { color: #607089; }
.ppob-head, .ppob-top, .ppob-bottom { display: flex; gap: 16px; align-items: flex-start; width: 100%; min-width: 0; max-width: 100%; }
.ppob-head { justify-content: space-between; flex-wrap: wrap; }
.ppob-head h1 { margin: 0; color: #243e78; font-size: 28px; }
.ppob-tools, .ppob-side { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ppob-side { flex-direction: column; align-items: stretch; width: 230px; flex: 0 0 230px; }
.ppob-select, .ppob-range, .ppob-reset { background: #fff; border: 1px solid #d5deea; border-radius: 12px; color: #31445f; min-height: 42px; }
.ppob-select, .ppob-range { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.ppob-select select, .ppob-range input { border: 0; background: transparent; color: inherit; font: inherit; width: auto; min-width: 140px; }
.ppob-page .ppob-range { color-scheme: light; }
.ppob-page .ppob-range input[type="date"] { color-scheme: light; width: 158px; min-width: 158px; height: 34px; cursor: pointer; }
.ppob-page .ppob-range input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 1; }
.ppob-tools .ppob-multi { width: 220px; }
.ppob-side .ppob-multi { width: 100%; }
.ppob-multi { position: relative; }
.ppob-multi > .ppob-select { width: 100%; justify-content: space-between; cursor: pointer; font: inherit; text-align: left; }
.ppob-multi > .ppob-select span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppob-multi > .ppob-select::after { content: "▾"; color: #607089; margin-left: 8px; }
.ppob-menu { display: none; position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 100%; min-width: 220px; max-height: 260px; overflow: auto; background: #fff; border: 1px solid #d5deea; border-radius: 12px; padding: 8px; box-shadow: 0 12px 28px rgba(20, 40, 70, 0.14); }
.ppob-multi.open .ppob-menu { display: block; }
.ppob-page .ppob-check { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 6px 4px; color: #1c2740; font-size: 13px; cursor: pointer; }
.ppob-page .ppob-check input { width: 16px; height: 16px; min-height: 16px; margin: 1px 0 0; padding: 0; flex: 0 0 16px; accent-color: #1b3a6b; background: #fff; border-radius: 3px; }
.ppob-reset { padding: 0 16px; cursor: pointer; }
.ppob-reset.current { background: #1b3a6b; color: #fff; border-color: #1b3a6b; }
.ppob-kpi { background: #fff; border: 1px solid #d5deea; border-radius: 16px; padding: 8px 14px; }
.ppob-kpi span { display: block; color: #607089; font-size: 12px; line-height: 1.2; }
.ppob-kpi strong { display: block; font-size: 22px; line-height: 1.15; color: #243e78; }
.ppob-kpi em { display: block; margin-top: 1px; font-style: normal; font-size: 11px; line-height: 1.2; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppob-kpi em.up { color: #1f9d55; }
.ppob-kpi em.down { color: #e23b3b; }
.ppob-kpi em.flat { color: #607089; }
.ppob-chart, .ppob-card { background: #fff; border: 1px solid #d5deea; border-radius: 16px; padding: 16px; min-width: 0; max-width: 100%; }
.ppob-chart { flex: 1 1 0; min-width: 0; }
.ppob-legend { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #31445f; }
.ppob-legend i, .ppob-bar i { background: #1b3a6b; }
.ppob-legend i { width: 18px; height: 10px; display: inline-block; }
.ppob-bars { display: flex; align-items: flex-end; gap: 10px; overflow-x: auto; min-height: 280px; padding-top: 8px; }
.ppob-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 72px; gap: 6px; }
.ppob-bar strong { font-size: 11px; color: #243e78; }
.ppob-bar i { width: 28px; border-radius: 4px 4px 0 0; display: block; }
.ppob-bar span { font-size: 11px; color: #607089; text-align: center; }
.ppob-bottom { margin-top: 16px; }
.ppob-card { flex: 1 1 0; }
.ppob-card h2 { margin: 0 0 12px; font-size: 16px; color: #243e78; }
.ppob-funnel { display: grid; gap: 8px; }
.ppob-funnel-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; }
.ppob-funnel-row span { font-size: 12px; color: #31445f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppob-funnel-row b { display: block; height: 18px; border-radius: 3px; margin-inline: auto; }
.ppob-table-card { flex: 2.2 1 0; }
.ppob-page .table-wrap { border: 1px solid #d5deea; background: #fff; overflow-x: hidden; }
.ppob-page table.ppob-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; color: #1c2740; font-size: 13px; }
.ppob-page table.ppob-table th { position: sticky; top: 0; background: #1b3a6b; color: #fff; text-align: left; padding: 8px 8px; font-size: 12px; letter-spacing: 0; }
.ppob-page table.ppob-table td { background: #fff; color: #1c2740; padding: 8px 8px; border-top: 0; border-bottom: 1px solid #e4ebf4; }
.ppob-page table.ppob-table th:first-child,
.ppob-page table.ppob-table td:first-child { width: 36px; text-align: right; }
.ppob-page table.ppob-table th:nth-child(6),
.ppob-page table.ppob-table td:nth-child(6),
.ppob-page table.ppob-table th:nth-child(7),
.ppob-page table.ppob-table td:nth-child(7),
.ppob-page table.ppob-table th:nth-child(8),
.ppob-page table.ppob-table td:nth-child(8),
.ppob-page table.ppob-table th:nth-child(9),
.ppob-page table.ppob-table td:nth-child(9) { text-align: right; }
.ppob-page table.ppob-table tbody tr:nth-child(even) td { background: #f4f7fb; }
.ppob-pager { display: flex; justify-content: flex-end; gap: 8px; align-items: center; margin-top: 10px; color: #607089; }
.ppob-pager button { border: 1px solid #d5deea; background: #fff; border-radius: 8px; min-width: 32px; height: 32px; }
@media (max-width: 980px) {
  .ppob-top, .ppob-bottom { flex-direction: column; }
  .ppob-side { width: 100%; flex-basis: auto; }
}
.login-card h1 { margin: 4px 0 10px; font-size: 22px; letter-spacing: -0.3px; text-align: center; }
.login-card input {
  height: 46px;
  border-radius: 12px;
  background: rgba(10, 24, 44, 0.92);
  border-color: rgba(90, 196, 255, 0.28);
}
.login-card .primary {
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2ea4ff, #1276d4);
  border-color: #5ec2ff;
  font-size: 16px;
  letter-spacing: 0.4px;
}
label { display: block; color: var(--soft); font-size: 13px; margin: 12px 0 6px; }
input, select {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1c32;
  color: var(--text);
  padding: 0 12px;
}
.primary, .ghost {
  border-radius: 10px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
}
.primary { background: linear-gradient(180deg, #1d74c2, #0e4f86); color: white; border-color: #3b93d6; font-weight: 650; }
.login-card .primary, .panel .primary { width: 100%; margin-top: 16px; }
.ghost { background: #0c1c32; color: var(--text); border-color: var(--line); }
.error { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 10px; }
.ok-note { color: var(--green); font-size: 13px; margin-top: 8px; }
.password-card { width: min(420px, 100%); margin: 10vh auto; }
.password-card h2 { margin: 0 0 8px; }
.password-card .ghost { width: 100%; margin-top: 8px; }
.secret-field { position: relative; }
.secret-field input { padding-right: 42px; }
.secret-toggle {
  position: absolute;
  right: 4px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9fd0f5;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.secret-toggle svg { width: 20px; height: 20px; }
.secret-toggle:hover { color: #fff; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; }
.side {
  background: linear-gradient(180deg, rgba(10, 32, 58, 0.96), rgba(7, 18, 34, 0.96));
  border-right: 1px solid #1c3d5e;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  color: #d5e6f5;
  border: 0;
  border-radius: 8px;
  height: 40px;
  padding: 0 12px;
}
.nav svg { width: 18px; height: 18px; flex: none; }
.nav.active { background: linear-gradient(180deg, #1a6cb3, #0d4c82); color: white; font-weight: 650; }
.nav.tall { height: auto; min-height: 44px; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
.side .spacer { flex: 1; }
.who { color: var(--soft); font-size: 12px; padding: 0 12px 8px; }
.main { padding: 22px 24px 32px; min-width: 0; }
.top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.kicker { color: var(--teal); font-size: 13px; font-weight: 700; }
.top h1 { font-size: 28px; margin-top: 4px; }
.sub { color: var(--soft); margin-top: 4px; font-size: 13px; }
.tools { display: flex; gap: 8px; align-items: center; }
.search { width: 260px; }
.stats, .move-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.stats.summary-view { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat.ta b { color: #7eb6ff; }
.move-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.package-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.section-title { font-size: 14px; margin: 4px 0 8px; }
.stat {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  column-gap: 6px;
  row-gap: 2px;
  width: max-content;
  max-width: 124px;
  background: linear-gradient(180deg, rgba(18, 48, 84, 0.88), rgba(10, 28, 52, 0.88));
  border: 1px solid #2f5680;
  border-radius: 9px;
  padding: 6px 8px 5px;
  box-shadow: inset 0 1px 0 rgba(150, 205, 255, 0.12);
}
.ico {
  grid-column: 1;
  grid-row: 1;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #eaf6ff;
  background: linear-gradient(160deg, #49b4f2 0%, #14609a 100%);
  box-shadow: inset 0 0 0 1px rgba(198, 230, 255, 0.28);
}
.ico svg { width: 12px; height: 12px; }
.stat b { grid-column: 2; grid-row: 1; font-size: 14px; letter-spacing: -0.2px; line-height: 1; }
.stat-label { grid-column: 1 / -1; color: var(--soft); font-size: 10px; line-height: 1.2; overflow-wrap: anywhere; }
.package-grid .stat { column-gap: 8px; row-gap: 4px; padding: 8px 12px 8px; }
.package-grid .ico { width: 26px; height: 26px; border-radius: 7px; }
.package-grid .ico svg { width: 14px; height: 14px; }
.package-grid .stat b { font-size: 16px; }
.package-grid .stat-label { font-size: 12px; }
.stat.headline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: none;
  padding: 14px 16px;
}
.stat.headline .ico { width: 36px; height: 36px; border-radius: 10px; }
.stat.headline .ico svg { width: 18px; height: 18px; }
.stat.headline b { display: block; font-size: 24px; line-height: 1.05; }
.stat.headline .stat-copy span { color: var(--soft); font-size: 13px; }
.stat.headline b .qty-note { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--soft); }
.stat.headline.summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: start;
  column-gap: 10px;
  row-gap: 10px;
  min-height: 96px;
  padding: 12px 14px 14px;
}
.stat.headline.summary-card .ico { grid-column: 1; grid-row: 1; width: 32px; height: 32px; }
.stat.headline.summary-card .ico svg { width: 16px; height: 16px; }
.stat.headline.summary-card .summary-title {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  text-align: right;
  color: #d5e6f5;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}
.stat.headline.summary-card .stat-copy { grid-column: 1 / -1; grid-row: 2; }
.stat.headline.summary-card b { font-size: 28px; letter-spacing: -0.4px; }
.stat.headline.summary-card .qty-note {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--soft);
}
.stat.headline.summary-card.new .qty-note { color: var(--amber); }
.stat.headline.summary-card.done .qty-note { color: var(--green); }
.stat.headline.summary-card.stop .qty-note { color: var(--red); }
.stat.headline.summary-card.ta .qty-note { color: #7eb6ff; }
.inventory-grid .stat {
  width: auto;
  max-width: none;
  grid-template-columns: auto 1fr;
  min-height: 64px;
  padding: 10px 14px 9px;
}
.inventory-grid .ico { width: 28px; height: 28px; border-radius: 8px; }
.inventory-grid .ico svg { width: 15px; height: 15px; }
.inventory-grid .stat b { font-size: 18px; }
.inventory-grid .stat-label { font-size: 12px; }
.stat.new b { color: var(--amber); }
.stat.done b { color: var(--green); }
.stat.stop b { color: var(--red); }
.charts { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 10px; margin-bottom: 12px; backdrop-filter: blur(6px); }
.card h2 { font-size: 15px; margin-bottom: 8px; }
.card svg { width: 100%; height: auto; display: block; }
.banner {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0;
  background: rgba(240, 180, 41, 0.12);
  color: #ffe3a8;
  border: 1px solid rgba(240, 180, 41, 0.35);
  line-height: 1.45;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.filter-row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.date-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 0; }
.date-filter label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--soft); font-size: 13px; }
.date-filter input { width: 148px; height: 34px; }
.maintenance { min-height: 220px; display: grid; place-items: center; text-align: center; }
.maintenance h2 { font-size: 28px; margin: 0; letter-spacing: -0.3px; }
.pill {
  border: 1px solid var(--line);
  background: #0c1c32;
  color: var(--text);
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
}
.pill.active { background: var(--teal-deep); border-color: #3b93d6; }
.branch-pills { margin-top: -8px; }
.pill-label { align-self: center; color: var(--soft); font-size: 13px; margin-right: 2px; }
.delta { margin-left: 8px; font-style: normal; font-size: 13px; font-weight: 750; white-space: nowrap; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--soft); }
.area-low-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.area-low { background: linear-gradient(180deg, rgba(18, 48, 84, 0.88), rgba(10, 28, 52, 0.88)); border: 1px solid #2f5680; border-radius: 9px; padding: 10px 12px; }
.area-low h3 { margin: 0 0 6px; font-size: 14px; }
.area-low ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.area-low li { display: flex; justify-content: space-between; gap: 10px; color: var(--soft); font-size: 12px; }
.area-low li b { color: var(--text); font-size: 13px; }
.area-low li b.stop { color: var(--red); }
.batik-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  width: min(260px, 24vw);
  height: min(560px, 68vh);
  background: url("/batik-corner.png?v=shared56") right top / contain no-repeat;
  pointer-events: none;
  opacity: 0.92;
  z-index: 1;
}
.table-wrap { width: 100%; max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 12px; max-height: calc(100vh - 320px); }
table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; background: #0c1c32; }
th, td { padding: 9px 10px; text-align: left; white-space: normal; overflow-wrap: anywhere; vertical-align: top; font-size: 13px; }
.card, .analysis, .charts, .router-bottom, .row2, .hub-grid, .hub-panels, .wl-units, .wl-kpis, .wl-indicators, .wl-filters, .wl-tools, .stats, .perf-grid, .top3, .sim-layout {
  min-width: 0;
  max-width: 100%;
}
th { position: sticky; top: 0; background: #0a1a2e; color: #9bb4cc; font-size: 11px; letter-spacing: 0.3px; }
td { border-top: 1px solid #1c2940; }
tr.thin td:nth-child(4) { color: var(--amber); font-weight: 700; }
.tag { font-weight: 700; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--soft); font-size: 13px; }
.panel { max-width: 720px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.user-list { margin-top: 18px; }
.user-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.inventory p { color: var(--soft); line-height: 1.5; max-width: 680px; }
.inventory h2 { margin: 18px 0 8px; font-size: 16px; }
.portal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(100deg, rgba(5, 16, 32, 0.94) 0%, rgba(8, 28, 56, 0.82) 46%, rgba(18, 70, 120, 0.35) 100%),
    radial-gradient(900px 520px at 88% 20%, rgba(90, 170, 230, 0.28), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 90px),
    #071526;
}
.portal-bar { position: relative; z-index: 30; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 10px 28px 8px; }
.brand { position: relative; display: inline-flex; flex-direction: column; align-items: center; border: 0; background: transparent; padding: 0; }
.brand img { width: 118px; height: auto; border-radius: 0; display: block; background: transparent; }
.brand-tag {
  position: static;
  margin-top: -6px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15px;
  white-space: nowrap;
  line-height: 1.1;
}
.portal-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; align-items: center; }
.top-link { border: 0; background: transparent; color: #f3f8fd; height: auto; padding: 8px 0; font-size: 15px; }
.top-link.current { color: #8fd4ff; }
.home-flow .portal-nav { gap: 8px; }
.home-flow .top-link {
  border: 1px solid rgba(126, 203, 255, 0.16);
  background: rgba(6, 18, 36, 0.32);
  padding: 7px 12px;
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(186, 224, 255, 0.1);
}
.home-flow .top-link.current {
  color: #8fd4ff;
  background: rgba(16, 72, 118, 0.4);
  border-color: rgba(143, 212, 255, 0.34);
}
.home-flow .top-link:hover {
  background: rgba(10, 44, 76, 0.46);
  border-color: rgba(143, 212, 255, 0.28);
}
.home-flow .drop-panel { top: calc(100% + 6px); }
.drop { position: relative; }
.drop-panel[hidden] { display: none !important; }
.drop-panel {
  position: absolute;
  top: 36px;
  right: 0;
  min-width: 230px;
  background: rgba(8, 24, 46, 0.96);
  border: 1px solid #2f5680;
  border-radius: 12px;
  padding: 8px;
  z-index: 40;
  display: grid;
  gap: 4px;
}
.drop-panel { min-width: 280px; }
.drop-panel button { text-align: left; background: transparent; color: #e8f3fb; border: 0; border-radius: 8px; height: auto; min-height: 38px; padding: 8px 10px; line-height: 1.3; white-space: normal; }
.drop-panel .drop-label { padding: 6px 10px 2px; color: #9fd0f5; font-size: 12px; font-weight: 750; }
.drop-panel .drop-sub { padding-left: 24px; font-size: 13px; color: #c5dff3; }
.drop-panel button:hover { background: #14588f; }
.portal.home-flow { position: relative; overflow: auto; background: #06101c; }
.flow-scene { position: absolute; top: 0; right: 0; left: 0; height: 100vh; overflow: hidden; pointer-events: none; z-index: 0; }
.flow-photo,
.flow-current {
  position: absolute;
  inset: 0;
  background: url("/portal-bg.jpg?v=shared45") center center / cover no-repeat;
}
.flow-photo {
  opacity: 1;
  animation: flow-drift 22s ease-in-out infinite alternate;
}
.flow-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 14, 28, 0.28) 0%, rgba(5, 14, 28, 0.08) 18%, rgba(5, 14, 28, 0.04) 48%, rgba(5, 14, 28, 0.42) 100%);
}
.flow-current {
  filter: brightness(1.4) saturate(1.15);
  mix-blend-mode: screen;
  opacity: 0.22;
  pointer-events: none;
  -webkit-mask-image:
    radial-gradient(circle, #000 0 10px, transparent 46px),
    radial-gradient(circle, #000 0 10px, transparent 46px),
    radial-gradient(circle, #000 0 8px, transparent 38px);
  mask-image:
    radial-gradient(circle, #000 0 10px, transparent 46px),
    radial-gradient(circle, #000 0 10px, transparent 46px),
    radial-gradient(circle, #000 0 8px, transparent 38px);
  -webkit-mask-size: 140px 140px, 140px 140px, 120px 120px;
  mask-size: 140px 140px, 140px 140px, 120px 120px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: flow-roam 9s linear infinite;
}
.portal.home-flow .portal-hero {
  position: static;
  z-index: 1;
  display: block;
  flex: 0 1 auto;
  min-height: calc(100vh - 88px);
  padding: 0;
}
.home-flow .portal-bar { justify-content: flex-end; }
.home-flow .brand { display: none; }
.home-board {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 18px 28px 8px 276px;
}
.home-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  width: 252px;
  height: 100vh;
  max-height: 100vh;
  overflow: auto;
  padding: 16px 12px 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.portal:not(.home-flow):not(.vendor-portal) {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  padding-left: 268px;
}
.portal:not(.home-flow):not(.vendor-portal) > .main,
.portal:not(.home-flow):not(.vendor-portal) > .studio-body,
.portal:not(.home-flow):not(.vendor-portal) > section {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.portal:not(.home-flow):not(.vendor-portal)::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 252px;
  background: url("/portal-bg.jpg?v=shared45") left center / cover no-repeat;
  z-index: 2;
  pointer-events: none;
}
.home-menu::-webkit-scrollbar { width: 8px; }
.home-menu::-webkit-scrollbar-thumb { background: rgba(126, 203, 255, 0.28); border-radius: 8px; }
.home-menu-brand {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 4px 8px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f4f9ff;
  text-align: left;
  box-shadow: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}
.home-menu-brand img { width: 62px; height: auto; flex: none; }
.home-menu-brand span { font-size: 18px; font-weight: 750; line-height: 1.25; }
.hub-page .main { padding: 22px 28px 40px; }
.hub-filters { justify-content: flex-end; align-items: center; }
.hub-filters label { display: flex; align-items: center; gap: 6px; color: var(--soft); font-size: 13px; }
.hub-filters input { width: 148px; height: 34px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.hub-card {
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 16px 18px 14px;
  border-radius: 16px;
  border: 1px solid rgba(126, 190, 230, 0.22);
  background: linear-gradient(180deg, rgba(12, 32, 58, 0.92), rgba(7, 20, 38, 0.92));
  color: #f4f8fc;
  box-shadow: inset 0 1px 0 rgba(190, 224, 255, 0.08);
}
.hub-card header { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: #b7cbe0; font-size: 13px; }
.hub-card em { font-style: normal; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 750; }
.hub-card em.good { background: #123d32; color: #7dcea0; }
.hub-card em.info { background: #12324d; color: #8fd4ff; }
.hub-card em.warn { background: #4a2a22; color: #ffb089; }
.hub-card strong { font-size: 34px; letter-spacing: -0.6px; }
.hub-card p { margin: 0; color: #9bb4cc; font-size: 13px; }
.hub-meter { height: 8px; border-radius: 999px; background: #1c3148; overflow: hidden; }
.hub-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1f8f8a, #7dcea0); }
.hub-scale { display: flex; justify-content: space-between; color: #8ea6bf; font-size: 11px; }
.hub-panels { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 12px; margin-top: 14px; }
.hub-legend { display: flex; gap: 14px; color: #9bb4cc; font-size: 12px; margin-bottom: 8px; }
.hub-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: #2f8fe0; }
.hub-legend i.alt, .hub-month i.alt { background: #7dcea0; }
.hub-months { display: grid; gap: 8px; }
.hub-month { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; color: #d5e4f2; font-size: 12px; }
.hub-month div { display: grid; gap: 4px; }
.hub-month i { display: block; height: 7px; border-radius: 999px; background: #2f8fe0; }
.hub-month small { display: block; color: #7dcea0; font-size: 11px; }
.hub-sim { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hub-block { margin-top: 22px; }
.hub-block-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(126, 190, 230, 0.38); }
.hub-block-title span { color: #d7ecff; font-size: 16px; font-weight: 750; }
.hub-block-title small { color: #8fb4d4; font-size: 12px; font-weight: 650; white-space: nowrap; }
.hub-block-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hub-span { grid-column: 1 / -1; }
.hub-block .card { margin-bottom: 0; height: 100%; }
.hub-block .hub-sim { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-figure strong { display: block; font-size: 34px; letter-spacing: -0.6px; }
.hub-figure span, .hub-figure p { display: block; margin: 4px 0 8px; color: #9bb4cc; font-size: 13px; }
.hub-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hub-rank li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.hub-rank b { color: #7ecbff; }
.hub-rank span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-rank i { display: block; height: 7px; margin-top: 4px; border-radius: 999px; background: linear-gradient(90deg, #C4A36A, #E6D1A6); }
.hub-rank em { font-style: normal; color: #f4f8fc; font-size: 13px; white-space: nowrap; }
.hub-sim div { padding: 10px; border-radius: 12px; background: rgba(8, 24, 46, 0.55); }
.hub-sim b { display: block; font-size: 22px; }
.hub-sim span { color: #9bb4cc; font-size: 12px; }
.hub-page .hub-block { margin-top: 28px; }
.hub-page .hub-block-title {
  align-items: center;
  margin: 0 0 12px;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 3px solid #3ddea6;
}
.hub-page .hub-block-title span { font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.hub-page .hub-block-title small {
  border: 1px solid rgba(126, 203, 255, 0.32);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(10, 32, 58, 0.72);
  color: #b7dff8;
}
.hub-page .hub-block-grid { gap: 14px; }
.hub-page .card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(126, 196, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(16, 40, 72, 0.92), rgba(7, 18, 36, 0.94));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(198, 228, 255, 0.14);
  padding: 16px 16px 14px;
}
.hub-page .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3ddea6, #7ecbff 46%, transparent 100%);
}
.hub-page .analysis-head h2 {
  color: #d5e9f8;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hub-page .analysis-head .sub { margin-top: 4px; color: #8eabc4; font-size: 12px; }
.hub-perf {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.summary-rounds {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  justify-items: center;
  padding: 6px 0 2px;
}
.summary-rounds .summary-round {
  width: 140px;
  height: 140px;
  min-height: 140px;
  border-radius: 50%;
}
.summary-rounds .hub-order span {
  max-width: 104px;
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
}
.summary-rounds .hub-order b { font-size: 32px; }
.summary-rounds .hub-order.is-new {
  border-color: rgba(240, 180, 41, 0.6);
  background:
    radial-gradient(circle at 50% 18%, rgba(240, 180, 41, 0.28), transparent 46%),
    linear-gradient(180deg, #3a3018 0%, #14180e 100%);
}
.summary-rounds .hub-order.is-new span,
.summary-rounds .hub-order.is-new b { color: #f6d48a; }
.summary-rounds .hub-order.is-mitra {
  border-color: rgba(126, 182, 255, 0.6);
  background:
    radial-gradient(circle at 50% 18%, rgba(126, 182, 255, 0.28), transparent 46%),
    linear-gradient(180deg, #163456 0%, #0b1c34 100%);
}
.summary-rounds .hub-order.is-mitra span,
.summary-rounds .hub-order.is-mitra b { color: #d7ecff; }
.summary-rounds .hub-ring strong { font-size: 26px; }
.summary-rounds .hub-ring span { max-width: 96px; line-height: 1.2; }
.summary-rounds .hub-ring small { display: block; margin-top: 2px; color: #9bb4cc; font-size: 12px; }
.hub-order {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 62px;
  border: 1px solid rgba(230, 209, 166, 0.55);
  background:
    radial-gradient(circle at 50% 18%, rgba(230, 209, 166, 0.34), transparent 42%),
    linear-gradient(180deg, #1a3d68 0%, #0b1d36 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 244, 220, 0.2);
}
.hub-order span {
  color: #e6d1a6;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hub-order b {
  color: #fff8ea;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1px;
}
.hub-metric {
  min-height: 124px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 16px 8px 8px;
  border-radius: 18px;
  border: 1px solid rgba(126, 203, 255, 0.14);
  background: rgba(5, 16, 32, 0.34);
}
.hub-metric .hub-ring { width: 100px; height: 100px; }
.hub-metric .hub-ring strong { font-size: 22px; }
.hub-stat b { display: block; font-size: 32px; line-height: 1; letter-spacing: -0.8px; }
.hub-stat span { display: block; margin-top: 6px; color: #9bb4cc; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.hub-stat p { margin: 8px 0 0; color: #8eabc4; font-size: 12px; line-height: 1.35; }
.hub-stat.ok b { color: #d7f6ea; }
.hub-stat.warn b { color: #f4e7c8; }
.hub-open { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.hub-open-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 148px;
  border-radius: 74px;
  border: 1px solid rgba(230, 209, 166, 0.55);
  background: rgba(8, 24, 46, 0.55);
  text-align: center;
  padding: 12px;
}
.hub-open-total span { color: #e6d1a6; font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.hub-open-total b { color: #fff8ea; font-size: 36px; line-height: 1; letter-spacing: -1px; }
.hub-open-total small { color: #9bb4cc; font-size: 12px; line-height: 1.35; }
.hub-open-list { display: grid; gap: 8px; }
.hub-open-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 64px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(126, 203, 255, 0.16);
  background: rgba(5, 16, 32, 0.34);
}
.hub-open-row strong { display: block; color: #e8f3fb; font-size: 14px; }
.hub-open-row small { display: block; margin-top: 2px; color: #8eabc4; font-size: 12px; line-height: 1.35; }
.hub-open-row b { color: #f4f8fc; font-size: 22px; line-height: 1; text-align: right; }
.hub-open-row em { color: #e6d1a6; font-style: normal; font-weight: 750; font-size: 16px; text-align: right; }
.open-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.open-late { color: #f0b429; font-weight: 700; }
.open-table { width: max-content; min-width: 100%; table-layout: auto; }
.open-table th, .open-table td { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.hub-ring {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #071422 0 57%, transparent 58%),
    conic-gradient(from -90deg, #3ddea6 0 var(--p), rgba(126, 190, 230, 0.16) var(--p) 100%);
  box-shadow: 0 0 28px rgba(61, 222, 166, 0.16);
}
.hub-ring strong { font-size: 30px; letter-spacing: -0.8px; line-height: 1; }
.hub-ring span { margin-top: 4px; color: #9ed7be; font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.hub-ring.alert {
  background:
    radial-gradient(circle at center, #071422 0 57%, transparent 58%),
    conic-gradient(from -90deg, #e6d1a6 0 var(--p), rgba(228, 206, 156, 0.16) var(--p) 100%);
  box-shadow: 0 0 28px rgba(228, 206, 156, 0.16);
}
.hub-ring.alert span { color: #e6d1a6; }
.hub-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hub-compare div {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(126, 203, 255, 0.16);
  background: rgba(6, 18, 36, 0.45);
}
.hub-compare b { display: block; font-size: 28px; letter-spacing: -0.6px; }
.hub-compare span { color: #9bb4cc; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.hub-compare p { grid-column: 1 / -1; margin: 0; color: #8eabc4; font-size: 13px; }
.hub-page .hub-rank { gap: 8px; }
.hub-page .hub-rank li {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(5, 16, 32, 0.38);
}
.hub-page .hub-rank b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(126, 203, 255, 0.12);
  color: #9ad7ff;
  font-size: 12px;
}
.hub-page .hub-rank span { color: #e8f3fb; font-size: 13px; }
.hub-track { height: 6px; margin-top: 6px; border-radius: 999px; background: rgba(228, 206, 156, 0.16); overflow: hidden; }
.hub-track i { display: block; height: 100%; margin: 0; border-radius: inherit; background: linear-gradient(90deg, #C4A36A, #E6D1A6); box-shadow: 0 0 10px rgba(228, 206, 156, 0.45); }
.hub-page .hub-rank em { color: #d7f6ea; font-size: 12px; font-weight: 700; }
.hub-page .hub-figure strong { font-size: 36px; letter-spacing: -1px; }
.hub-page .hub-sim { gap: 10px; }
.hub-page .hub-sim div {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(126, 203, 255, 0.16);
  background: linear-gradient(180deg, rgba(18, 44, 76, 0.55), rgba(6, 18, 36, 0.35));
}
.hub-page .hub-sim b { font-size: 28px; letter-spacing: -0.5px; }
.home-kicker {
  margin: 14px 8px 6px;
  color: #b7d4ea;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.home-group { display: grid; gap: 2px; }
.home-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #eaf4ff;
  text-align: left;
  line-height: 1.25;
  box-shadow: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}
.home-item svg { width: 18px; height: 18px; flex: none; color: #d7ecff; }
.home-item span { min-width: 0; }
.home-item:hover { background: rgba(8, 24, 46, 0.28); }
.home-item.current {
  color: #f7fbff;
  background: linear-gradient(90deg, #1768aa, #1a86c8);
  text-shadow: none;
  box-shadow: none;
}
.home-item.current svg { color: #f3fbff; }
.home-stage {
  min-height: calc(100vh - 36px);
}
.home-emblem {
  position: absolute;
  z-index: 1;
  left: 52%;
  top: 46%;
  width: min(560px, 48vw);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 0 36px rgba(36, 140, 220, 0.16));
}
.news-carousel { position: relative; z-index: 2; padding: 6px 6vw 32px 276px; }
.news-carousel h2 { margin: 0; text-align: center; color: #f7fbff; font-size: 30px; font-weight: 750; }
.news-month { margin: 2px 0 14px; text-align: center; color: #9fd0f5; font-size: 14px; }
.news-carousel-row { display: flex; align-items: center; gap: 14px; }
.news-arrow {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #14588f;
  color: white;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}
.news-viewport { flex: 1; min-width: 0; overflow: hidden; }
.news-track { display: flex; gap: 18px; transition: transform 0.55s ease; }
.news-track.single { justify-content: center; }
.news-arrow:disabled { opacity: 0.38; cursor: default; }
.news-card {
  flex: 0 0 auto;
  width: calc(50% - 9px);
  height: 320px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  color: #102033;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.news-track.single .news-card { flex-basis: min(480px, 100%); }
.news-card-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  background: #0e4f86;
  color: #f7fbff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.3px;
}
.news-card-body { flex: 1; min-height: 0; }
.news-card-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.news-card-text .news-card-body { display: flex; align-items: center; padding: 20px 26px 24px; background: linear-gradient(180deg, #f8fbff, #e7f2fb); }
.news-card-text p { margin: 0; font-size: 26px; line-height: 1.35; font-weight: 750; color: #102033; }
.news-more { display: block; margin: 14px auto 0; background: transparent; border: 0; color: #8fd4ff; font-weight: 750; height: auto; }
@keyframes flow-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1.1%, -0.4%, 0); }
}
@keyframes flow-roam {
  0% { mask-position: 18% 62%, 78% 78%, 46% 38%; -webkit-mask-position: 18% 62%, 78% 78%, 46% 38%; }
  33% { mask-position: 62% 44%, 28% 80%, 84% 58%; -webkit-mask-position: 62% 44%, 28% 80%, 84% 58%; }
  66% { mask-position: 40% 84%, 70% 36%, 22% 50%; -webkit-mask-position: 40% 84%, 70% 36%, 22% 50%; }
  100% { mask-position: 18% 62%, 78% 78%, 46% 38%; -webkit-mask-position: 18% 62%, 78% 78%, 46% 38%; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-photo, .flow-current, .login-photo, .login-current { animation: none; }
}
@media (max-width: 760px) {
  .login { justify-content: center; align-items: center; padding: 24px 16px 28px; }
  .login-photo, .login-current { background-position: center center; background-size: cover; }
}
.portal-hero, .hold { flex: 1; display: flex; align-items: center; padding: 24px 7vw 72px; }
.portal-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); align-items: center; gap: 48px; }
.hero-copy { max-width: 760px; }
.hero-side { position: relative; width: min(100%, 440px); justify-self: end; }
.hero-photo { width: 100%; height: 340px; object-fit: cover; object-position: center 22%; border-radius: 18px; display: block; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35); }
.home-news {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  height: 96px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(7, 20, 38, 0.9);
  border: 1px solid rgba(143, 212, 255, 0.7);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.ticker-clip { flex: 1; min-width: 0; overflow: hidden; height: 100%; }
.home-news-x {
  position: static;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #8fd4ff;
  background: #0e4f86;
  color: white;
  font-weight: 700;
}
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  gap: 48px;
  padding-left: 16px;
  animation: ticker-x 14s ease-in-out infinite alternate;
}
.ticker-track span { font-size: 22px; font-weight: 750; color: #f7fbff; letter-spacing: 0.2px; line-height: 1.3; white-space: nowrap; }
.home-pdf {
  position: relative;
  width: 100%;
  height: 340px;
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(143, 212, 255, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}
.home-pdf iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.home-pdf .home-news-x { position: absolute; top: 8px; right: 8px; z-index: 2; }
@keyframes ticker-x { from { transform: translateX(8%); } to { transform: translateX(-55%); } }
.info-label { display: grid; gap: 6px; color: var(--soft); font-size: 13px; margin: 12px 0; }
.info-label textarea, .info-label input { width: 100%; }
.info-save { width: auto; margin-top: 8px; }
.org-chart { width: 100%; height: auto; display: block; background: #fff; border-radius: 14px; }
.sop-view { width: min(980px, 100%); height: min(78vh, 900px); margin: 0 auto; background: #fff; border-radius: 12px; overflow: hidden; }
.sop-view-frame, .sop-view-image { width: 100%; height: 100%; border: 0; object-fit: contain; background: #fff; display: block; }
.sop-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sop-upload .info-save { margin-top: 0; }
.info-upload { width: auto; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.info-board { margin: 8px 0 18px; }
.cal-nav { display: flex; align-items: center; gap: 14px; margin: 8px 0 14px; }
.cal-nav strong { min-width: 180px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 18px; }
.cal-name { text-align: center; color: #9fc4de; font-size: 12px; padding-bottom: 4px; }
.cal-day { min-height: 68px; border-radius: 10px; border: 1px solid #23486c; background: rgba(8, 24, 46, 0.55); color: #e8f3fb; padding: 8px; text-align: left; }
.cal-day b { display: block; font-size: 16px; }
.cal-day i { color: #7ecbff; font-style: normal; font-size: 12px; }
.cal-day.has { border-color: #3b93d6; background: rgba(20, 88, 143, 0.45); }
.cal-day.mute { background: transparent; border-color: transparent; }
.motive { margin: 0 0 18px; color: #d7e8f6; font-size: 20px; line-height: 1.45; max-width: 560px; }
.motive em { color: #7ecbff; font-style: italic; font-weight: 750; }
.hero-copy h1, .hold h1 {
  margin: 0;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -1.5px;
  font-weight: 760;
  color: #f7fbff;
}
.hero-copy h1 {
  font-size: clamp(28px, 3.47vw, 47px);
  line-height: 1.15;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.hero-copy h1 span { color: #7ecbff; }
.studio-body { padding: 8px 22px 28px; display: grid; gap: 10px; }
.po-stage { padding: 8px 22px 40px; }
.po-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.po-fields label, .po-form > label { display: grid; gap: 6px; color: var(--soft); font-size: 13px; }
.po-form input, .po-form textarea, .po-form select { width: 100%; }
.po-form textarea { min-height: 92px; resize: vertical; }
.po-table td { white-space: normal; }
.po-table input { min-width: 88px; }
.po-total-row, .po-bulk { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin: 10px 0; }
.po-total-row strong { font-size: 18px; }
.po-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.po-actions .primary, .po-actions .ghost, .po-upload-btn { width: auto; }
.po-upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 6px 0 14px; }
.po-upload-btn { display: inline-flex; align-items: center; cursor: pointer; }
.po-mini { height: 34px; padding: 0 14px; }
a.po-mini { display: inline-flex; align-items: center; text-decoration: none; }
.po-stage table { table-layout: auto; }
.approval-table { width: max-content; min-width: 100%; }
.approval-table th,
.approval-table td {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  vertical-align: middle;
}
.approval-table th:nth-child(1),
.approval-table td:nth-child(1) { width: 44px; text-align: center; }
.approval-table td:nth-child(6) {
  white-space: normal;
  min-width: 240px;
  max-width: 320px;
}
.po-stage td.po-row-actions {
  display: table-cell;
  width: 1%;
  white-space: nowrap;
  overflow-wrap: normal;
  vertical-align: middle;
}
.po-row-actions .ghost,
.po-row-actions .po-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: auto;
  min-width: 84px;
  height: 34px;
  margin: 0 8px 0 0;
  padding: 0 14px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1;
}
.po-row-actions .ghost:last-child,
.po-row-actions .po-mini:last-child { margin-right: 0; }
.po-sign-fields { margin-top: 14px; align-items: end; }
.po-sign-preview { width: 160px; height: 64px; object-fit: contain; background: white; border-radius: 8px; }
.po-rank { display: grid; gap: 10px; }
.po-rank div { display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto; gap: 10px; align-items: center; }
.po-rank span, .po-rank b { font-size: 16px; }
.po-rank i { display: block; height: 22px; border-radius: 6px; background: #2f8fe0; }
.po-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(4, 12, 24, 0.78); overflow: auto; padding: 24px 16px 48px; }
.po-overlay-bar { width: min(820px, 100%); margin: 0 auto 12px; display: flex; justify-content: flex-end; gap: 8px; }
.po-issuer { margin: 0 0 12px; }
.po-letter { width: min(794px, 100%); margin: 0 auto; background: transparent; color: #1c1c1c; padding: 0; }
.po-sheet-page {
  min-height: 1123px;
  padding: 148px 72px 176px;
  box-sizing: border-box;
  background: #fff center top / 100% 100% no-repeat;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.po-letter.po-rts .po-sheet-page { background-image: url("/rts-letterhead.jpg?v=shared43"); }
.po-letter.po-cku .po-sheet-page { background-image: url("/cku-letterhead.jpg?v=shared43"); }
.po-letter h2 { margin: 0; }
.po-letter .po-meta { margin: 2px 0 12px; line-height: 1.25; }
.po-letter .po-sign { width: 230px; height: 108px; margin: 0; object-fit: contain; object-position: left bottom; background: transparent; }
.po-sign-gap { min-height: 112px; display: flex; align-items: flex-end; justify-content: flex-start; }
.po-company { color: #d31f26; text-align: center; font-weight: 750; margin: 0; }
.po-address, .po-meta { text-align: center; font-size: 12px; line-height: 1.45; }
.po-letter h2 { text-align: center; letter-spacing: 1.5px; font-size: 20px; margin: 0; color: #1c1c1c; }
.po-to, .po-narrative p, .po-sheet-page > p { font-size: 14px; line-height: 1.35; margin: 0 0 6px; }
.po-narrative p { margin: 0 0 4px; }
.po-letter table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.po-letter th, .po-letter td { border: 1px solid #222; padding: 6px 8px; font-size: 13px; white-space: normal; background: white; color: #1c1c1c; text-align: left; }
.po-letter td:nth-child(n+3), .po-letter th:nth-child(n+3) { white-space: nowrap; }
.po-letter tfoot td { font-weight: 750; }
.po-tax { font-style: italic; }
.po-sign-label { margin-top: 22px; margin-bottom: 0; }
.po-name { font-weight: 750; margin: 0; }
.po-name span { font-weight: 500; }
.po-signed { color: #0e7a45; font-weight: 700; margin-top: 8px; }
.po-waiting { color: #9a6b12; font-weight: 700; margin-top: 8px; }
@media (max-width: 800px) { .po-fields, .po-rank div { grid-template-columns: 1fr; } }
@media print {
  body * { visibility: hidden; }
  .po-letter, .po-letter * { visibility: visible; }
  .po-sheet-page { visibility: visible; }
  .po-overlay { position: static; background: white; padding: 0; }
  .po-overlay-bar { display: none; }
  .po-letter { width: auto; box-shadow: none; }
}
.toolrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolrow label { display: flex; align-items: center; gap: 6px; margin: 0; color: #d5e6f5; font-size: 13px; }
.toolrow input[type="color"] { width: 42px; height: 34px; padding: 2px; }
.toolrow input[type="range"] { width: 110px; }
.toolrow input[type="text"], .toolrow input:not([type]) { width: 220px; height: 36px; }
#board-notes { min-height: 72px; border-radius: 10px; border: 1px solid #2f5680; background: #0c1c32; color: var(--text); padding: 10px; font: inherit; }
.board-wrap { position: relative; }
#board { width: 100%; height: 460px; border-radius: 12px; background: #f4f8fc; touch-action: none; cursor: crosshair; display: block; }
#board.tool-text { cursor: text; }
.board-text {
  position: absolute;
  z-index: 2;
  width: 240px;
  height: 36px;
  margin: 0;
  border: 1px dashed #1d74c2;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #102033;
  padding: 2px 8px;
}
.toolrow .ghost.on { background: #14588f; border-color: #7ecbff; color: white; }
.mind-wrap, .road { background: rgba(8, 22, 42, 0.72); border: 1px solid #2f5680; border-radius: 12px; }
#mind { width: 100%; height: 520px; display: block; }
.road { display: flex; gap: 10px; overflow: auto; padding: 12px; }
.phase { flex: 1 0 220px; display: grid; gap: 8px; align-content: start; }
.phase-title, .phase-card textarea { width: 100%; border-radius: 8px; border: 1px solid #2f5680; background: #102844; color: var(--text); padding: 8px; }
.phase-card { display: grid; gap: 4px; }
.phase-card button { justify-self: start; }
.router-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.router-filters select { width: 180px; height: 36px; }
.router-filters label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--soft); font-size: 13px; }
.router-filters input { width: 148px; height: 36px; }
.router-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.analysis-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.analysis-head h2 { margin: 0; }
.full-btn { height: 36px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
.top > .full-btn { margin-top: 8px; }
.main:fullscreen,
.main.page-open {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: auto;
  background:
    radial-gradient(980px 520px at -8% -12%, rgba(74, 168, 255, 0.28), transparent 58%),
    linear-gradient(180deg, #0b1d34 0%, #071422 46%, #06101c 100%);
  padding: 22px 28px 40px;
}
.main.page-open { position: fixed; inset: 0; z-index: 40; }
.chart-svg { width: 100%; height: auto; display: block; }
.casper-page .top h1 { font-size: 22px; }
.casper-page .sub { font-size: 12px; }
.casper-page .card { padding: 10px 12px 8px; margin-bottom: 8px; }
.casper-page .analysis-head { margin-bottom: 4px; }
.casper-page .card h2,
.casper-page .analysis-head h2 { font-size: 14px; }
.casper-page .stat.headline { padding: 8px 10px; gap: 8px; }
.casper-page .stat.headline .ico { width: 28px; height: 28px; border-radius: 8px; }
.casper-page .stat.headline .ico svg { width: 14px; height: 14px; }
.casper-page .stat.headline b { font-size: 18px; }
.casper-page .stat.headline .stat-copy span { font-size: 11px; }
.casper-page .mini-chart h3 { font-size: 13px; margin: 0 0 2px; }
.casper-page .router-bottom,
.casper-page .top3,
.casper-page .perf-grid { gap: 8px; margin-top: 0; }
.combo-chart, .month-chart { overflow-x: auto; }
.combo-chart .chart-svg { width: auto; min-width: 0; max-width: none; height: 236px; }
.month-chart .chart-svg { width: max-content; min-width: 100%; }
.mini-chart h3 { font-size: 18px; }
.perf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.perf-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.perf-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.perf-grid .stat.headline { width: auto; max-width: none; }
.top3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-chart h3 { margin: 8px 0 0; font-size: 14px; }
.mini-chart .sub { margin-top: 0; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .stats, .stats.summary-view, .move-stats, .charts, .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { width: 160px; }
  .portal-bar { align-items: flex-start; }
  .portal-nav { justify-content: flex-end; }
  .portal-hero, .router-bottom, .top3, .perf-grid, .perf-grid.two, .perf-grid.three { grid-template-columns: 1fr; }
  .home-news { width: 100%; justify-self: stretch; }
  .home-emblem { width: min(420px, 70vw); }
  .news-card, .news-track.single .news-card { flex-basis: 100%; width: 100%; height: 280px; }
  .news-card-text p { font-size: 22px; }
  .flow-photo, .flow-current { background-position: center center; }
  .sim-layout, .sim-bottom { grid-template-columns: 1fr; }
}
.top h1 .sim-kind { display: block; margin-top: 2px; color: #7ecbff; font-style: normal; font-size: 15px; font-weight: 600; }
.sim-page .top h1 { font-size: 22px; }
.sim-page .sub { font-size: 12px; color: var(--soft); }
.sim-page .card { padding: 10px 12px 8px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--line); }
.sim-page .analysis-head { margin-bottom: 4px; }
.sim-page .card h2,
.sim-page .analysis-head h2 { font-size: 14px; color: var(--text); }
.sim-page .stat.headline { padding: 8px 10px; gap: 8px; }
.sim-page .stat.headline .ico { width: 28px; height: 28px; border-radius: 8px; }
.sim-page .stat.headline .ico svg { width: 14px; height: 14px; }
.sim-page .stat.headline b { font-size: 18px; }
.sim-page .stat.headline .stat-copy span { font-size: 11px; }
.sim-page .perf-grid { gap: 8px; margin-top: 0; }
.sim-select, .sim-range, .sim-reset {
  height: 36px;
  min-height: 36px;
  background: #0c1c32;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}
.sim-range { display: flex; align-items: center; gap: 8px; padding: 0 10px; color-scheme: dark; }
.sim-page .sim-range input {
  color-scheme: dark;
  width: 138px;
  min-width: 138px;
  height: 32px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  padding: 0;
}
.sim-reset { padding: 0 12px; cursor: pointer; }
.sim-reset.current { background: #14588f; color: #fff; border-color: #7ecbff; }
.sim-multi { position: relative; width: 168px; }
.sim-multi > .sim-select {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
}
.sim-multi > .sim-select span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 400; }
.sim-multi > .sim-select::after { content: "▾"; color: var(--soft); font-size: 11px; margin-left: 8px; }
.sim-menu {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: 220px;
  max-height: 240px;
  overflow: auto;
  background: #0c1c32;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(4, 16, 32, 0.45);
}
.sim-multi.open .sim-menu { display: block; }
.sim-page .sim-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 8px;
  min-height: 28px;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
}
.sim-page .sim-check span { font-size: 13px; font-weight: 400; line-height: 1.2; }
.sim-page .sim-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
  flex: 0 0 14px;
  border: 1.5px solid #7ecbff;
  border-radius: 3px;
  background: #071422;
  accent-color: #1d74c2;
}
.sim-page .sim-check input:checked {
  background: #1d74c2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23e8f2fb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2.2 6.2 4.8 8.7 9.8 3.2'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
  border-color: #7ecbff;
}
.sim-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr); gap: 10px; margin-top: 4px; }
.sim-block { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sim-block h2 { margin: 0 0 8px; font-size: 13px; color: var(--text); }
.sim-line-wrap { overflow-x: auto; }
.sim-line { display: block; height: auto; }
.sim-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 6px; color: var(--soft); font-size: 12px; }
.sim-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.sim-page .table-wrap { background: transparent; max-height: 320px; }
.sim-page table { background: transparent; }
.sim-table { width: 100%; border-collapse: collapse; background: transparent; color: var(--text); font-size: 12px; }
.sim-page .sim-table th { background: transparent; color: var(--soft); position: static; text-align: left; padding: 6px 8px; font-size: 11px; font-weight: 650; border-bottom: 1px solid var(--line); }
.sim-page .sim-table td { background: transparent; color: var(--text); padding: 6px 8px; border-top: 1px solid #1c3d5e; }
.sim-grand td { font-weight: 750; }
.sim-side { display: grid; gap: 8px; align-content: start; }
.sim-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sim-metrics article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 2px 8px;
  align-items: center;
  background: rgba(10, 28, 52, 0.55);
}
.sim-metrics span { color: var(--soft); font-size: 10px; line-height: 1.2; }
.sim-metrics strong { grid-column: 2; color: var(--text); font-size: 14px; line-height: 1.1; }
.sim-metrics article.ok { background: rgba(61, 222, 166, 0.14); border-color: rgba(61, 222, 166, 0.45); }
.sim-metrics article.ok span,
.sim-metrics article.ok strong { color: #3ddea6; }
.sim-metrics article.bad { background: rgba(255, 59, 59, 0.14); border-color: rgba(255, 59, 59, 0.5); }
.sim-metrics article.bad span,
.sim-metrics article.bad strong { color: #ff4d4d; }
.sim-ico { width: 22px; height: 22px; border-radius: 6px; grid-row: span 2; }
.sim-ico.bars { background: #2f6bff; }
.sim-ico.loop { background: #1f9d64; }
.sim-ico.fail { background: #e23b3b; }

@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; align-content: start; }
  .side {
    position: sticky;
    top: 0;
    z-index: 25;
    align-self: start;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid #1c3d5e;
    -webkit-overflow-scrolling: touch;
  }
  .side-brand, .side .spacer, .side .who { display: none; }
  .side .nav, .side .nav.tall {
    flex: none;
    height: 40px;
    min-height: 40px;
    padding: 0 12px;
    white-space: nowrap;
  }
  .main, .po-stage { padding: 16px 16px 28px; }
  .top { gap: 10px; }
  .top h1, .casper-page .top h1, .sim-page .top h1 { font-size: 22px; }
  .stats, .stats.summary-view, .move-stats, .inventory-grid, .perf-grid, .perf-grid.three, .top3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat, .package-grid .stat { width: auto; max-width: none; }
  .charts, .row2, .router-bottom, .sim-layout, .sim-bottom, .hub-grid, .hub-panels, .hub-block-grid { grid-template-columns: 1fr; }
  .hub-span { grid-column: auto; }
  .summary-rounds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-perf { grid-template-columns: 1fr; }
  .hub-order { min-height: 96px; border-radius: 22px; }
  .hub-open { grid-template-columns: 1fr; }
  .table-wrap, .sim-page .table-wrap { max-height: 420px; -webkit-overflow-scrolling: touch; }
  .filter-row, .router-filters, .date-filter { width: 100%; justify-content: flex-start; }
  .search, .router-filters select, .router-filters input, .date-filter input {
    width: auto;
    flex: 1 1 160px;
    min-width: 0;
    max-width: 100%;
  }
  .portal-bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 8px; }
  .portal-bar .brand { align-self: flex-start; width: max-content; max-width: 100%; overflow: hidden; }
  .brand img { width: min(110px, 36vw); height: auto; }
  .portal-nav, .home-flow .portal-nav { justify-content: flex-start; }
  .portal:not(.home-flow):not(.vendor-portal) { padding-left: 0; }
  .portal:not(.home-flow):not(.vendor-portal)::before { display: none; }
  .home-board { min-height: 0; padding: 16px; }
  .home-menu { position: relative; top: auto; left: auto; width: auto; height: auto; max-height: none; }
  .home-stage { min-height: 42vh; padding: 8px 0 0; }
  .news-carousel { padding-left: 16px; }
  .home-emblem {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    display: block;
    width: min(420px, 78vw);
    margin: 8px auto 0;
  }
  .flow-scene { height: 100%; }
  .news-carousel { padding: 8px 16px 28px; }
  .news-card, .news-track.single .news-card { height: 240px; }
  .po-overlay { padding: 12px 8px 28px; }
  .po-overlay-bar, .sop-view { width: min(980px, 100%); }
  img, iframe { max-width: 100%; }
  .portal.home-flow { overflow: visible; }
  .drop-panel, .home-flow .drop-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 72px;
    bottom: auto;
    z-index: 80;
    width: auto;
    min-width: 0;
    max-height: min(70vh, 420px);
    overflow: auto;
  }
}

@media (max-width: 640px) {
  .main, .po-stage { padding: 12px 12px 24px; }
  .top h1, .casper-page .top h1, .sim-page .top h1, .ppob-head h1 { font-size: 20px; }
  .kicker { font-size: 13px; }
  .stat.headline.summary-card { min-height: 88px; padding: 10px 12px 12px; }
  .stat.headline.summary-card b { font-size: 22px; }
  .stat.headline.summary-card .summary-title { font-size: 12px; }
  .stat.headline.summary-card .qty-note { font-size: 13px; }
  .pill, .nav, .primary, .ghost, .top-link { min-height: 40px; }
  th, td { padding: 8px 10px; font-size: 12px; }
  .pager, .ppob-head, .ppob-top, .ppob-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .search, .router-filters select, .router-filters input, .date-filter input, .router-filters label, .date-filter label {
    flex: 1 1 100%;
    width: 100%;
  }
  .sim-metrics { grid-template-columns: 1fr; }
  .sim-select, .sim-range, .sim-reset { width: 100%; }
  .sim-page .sim-range input { width: auto; min-width: 0; flex: 1; }
  .home-emblem { width: min(280px, 86vw); }
  .news-carousel h2 { font-size: 22px; }
  .news-card-text p { font-size: 18px; }
  .news-arrow { width: 40px; height: 40px; font-size: 24px; }
  .login-card h1 { font-size: 18px; }
  .login-logo { width: min(100%, 220px); max-height: none; }
}

.wl-filters, .wl-add, .wl-task { display: grid; gap: 10px; align-items: end; }
.wl-filters { grid-template-columns: repeat(5, minmax(150px, 1fr)); margin-top: 14px; }
.wl-add { grid-template-columns: 1.1fr 1.3fr 1fr auto; }
.wl-task { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
.wl-filters label, .wl-add label { margin: 0; }
.wl-add .primary, .wl-task .primary { margin-top: 0; width: auto; }
.wl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.wl-kpi { margin: 0; }
.wl-kpi span, .wl-kpi small { display: block; color: var(--soft); font-size: 12px; }
.wl-kpi b { display: block; margin: 6px 0 4px; font-size: 22px; }
.wl-io { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.wl-upload { display: inline-flex; align-items: center; justify-content: center; }
.wl-tools { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.wl-tools label { margin: 0; min-width: 140px; }
.wl-tools .search { width: 240px; }
.wl-units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.wl-summary h2 { margin: 4px 0 4px; }
.wl-indicators { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.wl-indicator { margin: 0; }
.wl-indicator-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.wl-indicator-head span { color: var(--soft); font-size: 13px; }
.wl-badge { border-radius: 999px; padding: 3px 10px; font-size: 12px; border: 1px solid transparent; white-space: nowrap; }
.wl-badge.ok { color: #3ddea6; background: rgba(61, 222, 166, 0.12); border-color: rgba(61, 222, 166, 0.35); }
.wl-badge.info { color: #7ecbff; background: rgba(126, 203, 255, 0.12); border-color: rgba(126, 203, 255, 0.35); }
.wl-badge.warn { color: #f0b429; background: rgba(240, 180, 41, 0.12); border-color: rgba(240, 180, 41, 0.4); }
.wl-badge.bad { color: #ff8b96; background: rgba(255, 139, 150, 0.12); border-color: rgba(255, 139, 150, 0.4); }
.wl-badge.idle { color: #9fd0f5; background: rgba(126, 203, 255, 0.08); border-color: rgba(126, 203, 255, 0.25); }
.wl-figure { display: flex; align-items: baseline; gap: 10px; margin: 10px 0; }
.wl-figure strong { font-size: 32px; letter-spacing: -0.4px; }
.wl-figure small, .wl-indicator p { color: var(--soft); font-size: 13px; }
.wl-figure small.up { color: #3ddea6; }
.wl-indicator p { margin: 0; }
.wl-gauge { position: relative; height: 10px; border-radius: 999px; overflow: hidden; background: #0c1c32; border: 1px solid #1c3d5e; }
.wl-gauge i { display: block; height: 100%; background: linear-gradient(90deg, #1d74c2, #3ddea6); }
.wl-gauge em { position: absolute; top: 0; bottom: 0; left: 70%; width: 15%; background: rgba(61, 222, 166, 0.28); border-left: 1px solid rgba(61, 222, 166, 0.7); border-right: 1px solid rgba(61, 222, 166, 0.7); }
.wl-gauge-scale { display: flex; justify-content: space-between; margin-top: 6px; color: var(--soft); font-size: 11px; }
.wl-gauge-scale span:nth-child(2) { color: #3ddea6; }
button.wl-line, .wl-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 12px 2px; border: 0; border-top: 1px solid #1c3d5e; background: transparent; color: inherit; text-align: left; }
.wl-line strong { font-size: 14px; }
.wl-line span { color: var(--soft); font-size: 12px; text-align: right; }
.wl-bar { height: 8px; border-radius: 999px; overflow: hidden; background: #0c1c32; border: 1px solid #1c3d5e; margin: 8px 0; }
.wl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1d74c2, #3ddea6); }
.wl-bar i.over { background: linear-gradient(90deg, #f0b429, #ff8b96); }
.wl-status { font-size: 12px; font-weight: 700; }
.wl-status.ok { color: #3ddea6; }
.wl-status.over { color: #ff8b96; }
.wl-log { display: grid; gap: 8px; }
.wl-log time { display: inline-block; min-width: 92px; margin-right: 8px; color: #9fd0f5; }
#wl-detail h3 { margin: 16px 0 8px; font-size: 14px; }
@media (max-width: 980px) {
  .wl-units, .wl-kpis, .wl-filters, .wl-add, .wl-task, .wl-indicators { grid-template-columns: 1fr; }
  .wl-tools { width: 100%; }
}
