:root {
  color-scheme: dark;
  --bg: #07090c;
  --panel: #141920;
  --inset: #0c1016;
  --ink: #f4f6f8;
  --muted: #8b95a5;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --gold: #f0b90b;
  --gold-soft: rgba(240, 185, 11, 0.14);
  --green: #1fd18a;
  --red: #ff5c73;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px rgba(0, 0, 0, 0.28);
  --gutter: clamp(16px, 1.8vw, 32px);
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 42% at 0% -8%, rgba(240, 185, 11, 0.1), transparent 52%),
    radial-gradient(ellipse 46% 36% at 100% 0%, rgba(70, 130, 220, 0.08), transparent 48%),
    linear-gradient(180deg, #12171e 0%, var(--bg) 320px);
  background-attachment: fixed;
}
::selection { background: rgba(240, 185, 11, 0.28); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #3c4450 transparent; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--inset);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
button {
  cursor: pointer;
  padding: 8px 14px;
  transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}
button:hover { border-color: rgba(240, 185, 11, 0.45); }
button.primary {
  background: linear-gradient(180deg, #ffe07a 0%, #f0b90b 100%);
  color: #1c1604;
  border-color: #e2b21a;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 18px rgba(240, 185, 11, 0.16);
}
button.primary:hover { filter: brightness(1.05); }
button.ghost { background: transparent; }
button.ghost:hover { background: rgba(255, 255, 255, 0.04); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
input, select, textarea {
  padding: 9px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(240, 185, 11, 0.75);
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.16);
}
input[type="checkbox"], input[type="radio"] {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--gold);
}
input[type="range"] {
  padding: 0;
  background: transparent;
  border: 0;
  accent-color: var(--gold);
  box-shadow: none;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.brand strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.brand span, .muted { color: var(--muted); font-size: 13px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.nav-links a.active {
  color: #1c1604;
  background: var(--gold);
  border-color: var(--gold);
}
.wrap {
  width: 100%;
  margin: 0;
  padding: 28px var(--gutter) 56px;
}
.hero { max-width: 760px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 2.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.home-page .wrap {
  min-height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
}
.strategy-board {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 26px;
}
.group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
  position: sticky;
  top: 64px;
  z-index: 2;
  padding: 8px 0;
  background: rgba(7, 9, 12, 0.92);
  backdrop-filter: blur(14px);
}
.group-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.group-head .muted { margin: 4px 0 0; }
.group-head .return-block strong { font-size: 22px; }
.curve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 0;
  align-content: start;
  grid-auto-rows: auto;
}
.curve-grid > :only-child { grid-column: 1 / -1; }
.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.card-head, .row, .form, .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.card-head { justify-content: space-between; align-items: flex-start; gap: 16px; }
.kicker { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
}
.return-pair { display: flex; gap: 18px; flex: none; }
.return-block { text-align: right; flex: none; }
.return-block span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.return-block strong {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.strategy-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.strategy-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: transparent;
}
.strategy-card.tone-up::before { background: var(--green); }
.strategy-card.tone-down::before { background: var(--red); }
.strategy-card:hover {
  border-color: rgba(240, 185, 11, 0.42);
  transform: translateY(-2px);
}
.strategy-card h2 { margin-top: 10px; font-size: 20px; }
.strategy-card .muted { margin: 4px 0 0; }
.pct-up { color: var(--green); }
.pct-down { color: var(--red); }
.chart { height: 240px; margin-top: 4px; }
.chart a#tv-attr-logo {
  bottom: 34px !important;
  left: 8px !important;
  opacity: 0.55;
}
.strategy-card .chart {
  flex: 1 1 auto;
  height: auto;
  min-height: 220px;
}
.chart.is-empty, .empty-note {
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  min-height: 120px;
}
.stat { min-width: 92px; }
.stat span { display: block; color: var(--muted); font-size: 12px; }
.stat strong { font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 700; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}
.stat-grid .stat { min-width: 0; padding: 10px 12px; }
.stat-grid .stat + .stat { border-left: 1px solid var(--line); }
.card-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.card-link::after { content: "→"; transition: transform 0.15s ease; }
.card-link:hover { background: rgba(240, 185, 11, 0.24); text-decoration: none; }
.card-link:hover::after { transform: translateX(3px); }
.empty-state { max-width: 520px; display: grid; gap: 8px; }
.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.field[hidden] { display: none; }
.field input, .field select, .field textarea { padding: 9px 12px; min-width: 0; }
.field textarea { width: 100%; min-height: 96px; resize: vertical; }
#symbolsField { width: 100%; margin-top: 8px; }
.table-scroll { max-height: 420px; }
.table-wrap {
  overflow: auto;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  background: #1a2028;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.tag-buy { color: #ffd56a; background: rgba(240, 185, 11, 0.14); }
.tag-sell { color: #9ecbff; background: rgba(90, 160, 255, 0.14); }
.banner { margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: #2b2613; color: var(--gold); }
.banner.bad { background: #3a1d24; color: var(--red); }
.banner.ok { background: #123126; color: var(--green); }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  margin-top: 22px;
}
.admin-grid a {
  display: block;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 48%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.admin-grid a:hover {
  border-color: rgba(240, 185, 11, 0.42);
  transform: translateY(-2px);
  text-decoration: none;
}
.admin-grid a strong { display: block; margin-bottom: 6px; font-size: 16px; }
.admin-grid a span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.page-error:empty { display: none; }
.page-error {
  margin: 12px var(--gutter) 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #3a1d24;
  color: var(--red);
}
.desk-page {
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.desk-page .topbar { flex: none; position: relative; }
.desk-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 12px var(--gutter) 0;
  flex: none;
  min-width: 0;
}
.desk-date-card,
.desk-return-card,
.desk-stat {
  border: 1px solid rgba(0, 229, 195, 0.22);
  background: rgba(8, 16, 28, 0.82);
}
.desk-date-card {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.desk-date-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}
.desk-date-row span { color: var(--muted); font-size: 14px; }
.desk-date-row strong {
  font-family: Consolas, "Segoe UI Mono", monospace;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.desk-return-card {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding: 10px 18px;
  border-color: rgba(255, 193, 74, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 193, 74, 0.1), transparent 55%),
    rgba(8, 16, 28, 0.82);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.desk-return-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.desk-return-inline span { color: var(--muted); font-size: 15px; }
.desk-return-card strong {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.desk-return-card strong.pct-up,
.desk-stat strong.pct-up { color: #ff5d7a; }
.desk-return-card strong.pct-down,
.desk-stat strong.pct-down { color: #00e5c3; }
.desk-stats {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  gap: 6px;
}
.desk-stat {
  flex: 1 0 auto;
  min-width: max-content;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 10px;
}
.desk-stat span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.desk-stat strong {
  font-family: Consolas, "Segoe UI Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.metric {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 46%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 0;
}
.metric span { color: var(--muted); font-size: 12px; }
.metric strong {
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.metric em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desk {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 12px;
  width: auto;
  margin: 12px var(--gutter) 16px;
  min-height: 0;
}
.desk-page .desk { flex: 1; }
.side-panel {
  padding: 4px 14px 12px;
  min-height: 0;
  overflow: auto;
}
.desk-page .side-panel th,
.desk-page .side-panel td {
  padding: 8px 8px;
}
.fold + .fold { border-top: 1px solid var(--line); }
.fold-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 13px 2px;
  text-align: left;
}
.fold-head:hover { background: rgba(255, 255, 255, 0.03); border-color: transparent; }
.fold-head strong { font-size: 14px; }
.fold-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.chev {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}
.fold.is-collapsed .chev { transform: rotate(-45deg); }
.fold > div { padding-bottom: 10px; }
.stack {
  display: grid;
  gap: 12px;
  min-height: 0;
  min-width: 0;
}
.desk-page .stack {
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto auto;
}
.chart-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  min-width: 0;
}
.chart-pair > .card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.desk-page .stack > .card { min-height: 0; }
.desk-page .stack > .card:not(.playback) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.desk-page .stack .chart {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  margin-top: 8px;
}
.chart-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 180px;
  margin-top: 8px;
  overflow: hidden;
}
.desk-page .chart-frame > .chart {
  position: absolute;
  inset: 0;
  height: auto;
  margin: 0;
}
.chart-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--muted);
  background: var(--panel);
}
.chart-empty[hidden] { display: none; }
.fold-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fold-bar .fold-head { flex: 1; width: auto; min-width: 0; }
.csv-btn {
  flex: none;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(33, 163, 102, 0.45);
  background: rgba(29, 111, 66, 0.28);
  color: #b7f0cf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.csv-btn:hover:not(:disabled) {
  background: rgba(29, 111, 66, 0.5);
  border-color: #21a366;
}
.holding-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  max-height: 132px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid rgba(240, 185, 11, 0.22);
  border-radius: var(--radius);
  background: rgba(12, 16, 22, 0.75);
}
.holding-strip-empty { color: var(--muted); }
.holding-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}
.holding-chip .swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  align-self: center;
  flex: none;
}
.holding-name {
  font-weight: 700;
  max-width: 8em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.holding-code, .holding-price { color: var(--muted); font-size: 12px; }
#positionNote:empty { display: none; }
.playback { padding: 12px 14px; }
.timeline { display: flex; gap: 10px; align-items: center; margin-top: 0; }
.timeline .kicker { flex: none; font-weight: 700; }
.timeline button, .timeline select { flex: none; }
.timeline input[type="range"] { flex: 1; min-width: 80px; }
.date-pill {
  flex: none;
  min-width: 112px;
  text-align: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--inset);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1100px) {
  .curve-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 2400px) {
  .curve-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .desk-page { height: auto; min-height: 100vh; overflow: auto; }
  .desk { grid-template-columns: 1fr; }
  .desk-page .stack { height: auto; grid-template-rows: none; }
  .chart-pair { grid-template-columns: 1fr; }
  .desk-page .stack .chart { height: 240px; flex: none; }
  .desk-page .chart-frame { min-height: 240px; }
  .side-panel { overflow: visible; }
  .desk-stats { flex-basis: 100%; }
}
@media (max-width: 720px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .desk-stats { flex-wrap: wrap; }
  .desk-stat { flex-basis: calc(33.33% - 6px); }
  .stat-grid .stat + .stat { border-left: 0; }
  .stat-grid .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat-grid .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat-grid .stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .home-page .wrap { min-height: 0; display: block; }
  .return-pair { gap: 12px; }
  .group-head { top: 0; align-items: flex-start; flex-direction: column; }
  .curve-grid { grid-auto-rows: auto; }
  .strategy-card { height: auto; }
  .strategy-card .chart { height: 240px; flex: none; }
  .hero h1 { font-size: 26px; }
  .return-block strong, .metric strong { font-size: 22px; }
}
.switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  flex: none;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  box-shadow: none;
}
.switch-ui {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #2a313c;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c5ccd6;
  transition: transform 0.15s ease, background 0.15s ease;
}
.switch input:checked + .switch-ui {
  background: rgba(240, 185, 11, 0.28);
  border-color: var(--gold);
}
.switch input:checked + .switch-ui::after {
  transform: translateX(18px);
  background: var(--gold);
}
.switch input:focus-visible + .switch-ui {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.switch input:disabled { cursor: wait; }
td.switch-cell { text-align: right; width: 1%; }
.showcase-table th,
.showcase-table td { white-space: normal; }
.showcase-table th:last-child,
.showcase-table td.switch-cell {
  position: sticky;
  right: 0;
  background: #1a2028;
  text-align: right;
}
.nav-links .is-hidden, .is-hidden { display: none !important; }
.nav-links .user-chip {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.access-table { width: 100%; border-collapse: collapse; }
.access-table th, .access-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
}
.access-table th { color: var(--muted); font-weight: 600; }
.access-form { display: grid; gap: 12px; max-width: 720px; }
.access-form .row { display: flex; flex-wrap: wrap; gap: 12px; }
.access-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.access-form input[type="text"],
.access-form input[type="search"],
.access-form input[type="datetime-local"],
.access-form textarea { min-width: 220px; }
.strategy-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.strategy-checks label { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.pill {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
}
.pill.is-expired { background: rgba(255, 92, 115, 0.12); color: var(--red); }
.banner {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 92, 115, 0.12);
  color: var(--red);
}
.banner.ok { background: rgba(31, 209, 138, 0.12); color: var(--green); }
.expired-main { max-width: 560px; margin: 72px auto; padding: 0 20px; text-align: center; }
.expired-main h1 { margin: 8px 0 12px; }
.expired-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.apply-note { margin: 16px 0 0; color: var(--red); font-weight: 600; }
.expired-actions textarea { width: min(420px, 100%); min-height: 72px; }
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}
.poster-dialog {
  width: min(440px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.poster-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.poster-bar strong { font-size: 15px; }
.poster-bar .row { align-items: center; }
.poster-note {
  margin: 0;
  padding: 0 14px;
  color: var(--gold);
  font-size: 13px;
}
.poster-note:empty { display: none; }
.poster-note:not(:empty) { padding-top: 10px; }
.poster-stage {
  overflow: auto;
  padding: 14px;
  background: #07090c;
}
.poster-stage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
