:root {
  color-scheme: dark;
  --ink: #f3f7f8;
  --ink-soft: #d2dde1;
  --muted: #94a6b2;
  --line: rgba(166, 219, 228, .16);
  --canvas: #060a10;
  --surface: rgba(9, 18, 30, .78);
  --green: #64dbc5;
  --green-dark: #8df3df;
  --green-soft: rgba(70, 203, 178, .12);
  --orange: #8de9ef;
  --orange-soft: rgba(75, 207, 219, .1);
  --teal: #72e0e8;
  --danger: #ff8585;
  --shadow: 0 28px 84px rgba(0, 0, 0, .38);
  --shadow-soft: 0 16px 46px rgba(0, 0, 0, .26);
  --ring: 0 0 0 3px rgba(110, 228, 230, .18);
}

html { background: #060a10; scrollbar-color: #35505e #08101a; }
body {
  position: relative;
  color: var(--ink);
  background: transparent;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(2, 6, 12, .26) 52%, rgba(2, 6, 12, .78)); }
::selection { color: #061319; background: #7ce9e2; }
body::-webkit-scrollbar-thumb { background: #284652; }
body::-webkit-scrollbar-thumb:hover { background: #3b6572; }

.skip-link, .site-header, main, .announcement-modal { position: relative; z-index: 2; }
.skip-link { color: #07141a; background: #8cece1; }

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  border: 1px solid rgba(201, 232, 239, .16);
  border-radius: 17px;
  background: linear-gradient(110deg, rgba(19, 29, 48, .78), rgba(21, 58, 79, .68), rgba(15, 24, 42, .8));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}
.header-inner { max-width: none; height: 66px; padding: 8px 10px 8px 16px; gap: 16px; }
.brand { gap: 10px; color: #fff; }
.brand strong { font-size: 14px; }
.brand small { color: #91a3ae; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.brand-mark { width: 35px; height: 35px; border: 1px solid rgba(139, 236, 221, .3); border-radius: 11px; background: rgba(73, 211, 180, .08); }
.brand-mark i { left: 10px; top: 5px; width: 15px; height: 15px; border-radius: 5px 8px 5px 8px; background: linear-gradient(145deg, #8af1df, #35bca2); box-shadow: none; }
.brand-mark i:nth-child(2) { left: 5px; top: 16px; background: linear-gradient(145deg, #71deca, #229e89); }
.brand-mark i:nth-child(3) { left: 16px; top: 17px; background: linear-gradient(145deg, #30a993, #82ead6); }
.header-actions { gap: 12px; }
.nav { gap: 3px; }
.nav button { height: 42px; padding: 0 13px; border: 1px solid transparent; color: #afbdc6; background: transparent; font-size: 13px; border-radius: 11px; }
.nav button:hover { color: #fff; background: rgba(255, 255, 255, .055); }
.nav button.active { color: #dcfff8; border-color: rgba(127, 230, 218, .28); background: rgba(81, 190, 171, .13); box-shadow: inset 0 -2px #66ddc5; }
.language-menu { position: relative; flex: 0 0 auto; font-family: "PingFang SC", "Microsoft YaHei", Inter, ui-sans-serif, system-ui, sans-serif; }
.native-language-select { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.language-trigger {
  display: grid;
  grid-template-columns: 28px minmax(72px, auto) 12px;
  align-items: center;
  gap: 8px;
  width: 152px;
  height: 46px;
  padding: 0 13px 0 10px;
  color: #effafa;
  border: 1px solid rgba(103, 224, 215, .58);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(25, 73, 88, .72), rgba(12, 28, 45, .78));
  box-shadow: 0 0 0 3px rgba(69, 204, 191, .08), inset 0 1px rgba(255, 255, 255, .07);
  font: 650 14px/1 "PingFang SC", "Microsoft YaHei", Inter, sans-serif;
  white-space: nowrap;
}
.language-trigger:hover { border-color: rgba(126, 239, 229, .86); background: linear-gradient(135deg, rgba(28, 86, 98, .82), rgba(14, 35, 54, .88)); }
.language-trigger[aria-expanded="true"] { border-color: #72e1d4; box-shadow: 0 0 0 3px rgba(92, 224, 211, .13), 0 14px 34px rgba(0,0,0,.24); }
.language-code { display: grid; place-items: center; min-width: 28px; height: 24px; color: #a9f5e7; border: 1px solid rgba(108, 224, 213, .23); border-radius: 7px; background: rgba(85, 202, 184, .09); font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.language-chevron { width: 8px; height: 8px; justify-self: end; border-right: 1.5px solid #bde5e1; border-bottom: 1.5px solid #bde5e1; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.language-trigger[aria-expanded="true"] .language-chevron { transform: translateY(2px) rotate(225deg); }
.language-options {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 80;
  width: 190px;
  padding: 7px;
  border: 1px solid rgba(149, 222, 225, .24);
  border-radius: 14px;
  background: rgba(7, 19, 31, .94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.language-options button { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 7px 10px; color: #aebdc6; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; white-space: nowrap; }
.language-options button > span { color: #6f8996; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.language-options button > strong { color: inherit; font: 650 14px/1.25 "PingFang SC", "Microsoft YaHei", Inter, sans-serif; }
.language-options button:hover, .language-options button:focus-visible { color: #f1fffd; border-color: rgba(110, 226, 216, .18); background: rgba(83, 196, 178, .1); box-shadow: none; }
.language-options button[aria-selected="true"] { color: #c9fff5; border-color: rgba(110, 226, 216, .26); background: linear-gradient(90deg, rgba(63, 184, 162, .17), rgba(63, 184, 162, .06)); }

main { max-width: 1088px; padding: 66px 24px 0; }
.live-hero { max-width: 820px; margin: 0 auto 30px; text-align: center; }
.live-hero-badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 5px 11px; border: 1px solid rgba(177, 219, 231, .15); border-radius: 999px; color: #aeb9c6; background: rgba(11, 27, 45, .52); font-size: 11px; font-weight: 760; letter-spacing: .12em; }
.live-hero-badge span { padding: 4px 7px; border-radius: 999px; color: #07161a; background: #e7fbff; font-size: 9px; letter-spacing: .06em; }
.live-hero h1 { margin: 0; color: #f7fafa; font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -.055em; text-shadow: 0 8px 34px rgba(0, 0, 0, .34); }
.live-hero p { margin: 16px auto 0; color: #bdc9d1; font-size: clamp(14px, 1.6vw, 17px); font-weight: 540; }

.workbench { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.workbench-head { display: none; }
.panel {
  padding: clamp(24px, 4vw, 42px);
  color: var(--ink);
  border: 1px solid rgba(151, 216, 229, .34);
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(16, 33, 50, .82), rgba(8, 12, 25, .79) 58%, rgba(12, 28, 42, .78)), repeating-linear-gradient(180deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 4px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}
.panel:focus { box-shadow: var(--ring), 0 34px 90px rgba(0,0,0,.38); }
.panel-heading h2 { color: #f2f7f8; font-size: clamp(24px, 3vw, 34px); }
.panel-heading p, .field-help, .note { color: var(--muted); }
.panel-index { color: rgba(111, 224, 213, .16); }
#submit-view > .panel-heading { display: none; }
.terminal-chrome { display: flex; align-items: center; justify-content: space-between; min-height: 30px; margin-bottom: 12px; }
.terminal-dots { display: flex; gap: 7px; }
.terminal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #566273; }
.terminal-dots i:nth-child(2) { background: #718398; }
.terminal-dots i:nth-child(3) { background: #7ee8ef; box-shadow: 0 0 12px #7ee8ef; }
.terminal-intro { margin-bottom: 24px; }
.terminal-intro .system-label { margin: 0 0 16px; color: #90e8ee; font: 750 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal-intro h2 { max-width: 900px; margin: 0; color: #f6f7fa; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.16; letter-spacing: -.04em; }
.terminal-intro h2::after { content: ""; display: inline-block; width: .52em; height: .92em; margin-left: 9px; vertical-align: -.08em; background: #7ee8ef; box-shadow: 0 0 22px rgba(126, 232, 239, .3); animation: live-cursor 1.1s steps(2, jump-none) infinite; }
.terminal-intro > p:last-child { margin: 13px 0 0; color: #aab5bf; font-size: 15px; font-weight: 550; }
@keyframes live-cursor { 50% { opacity: .28; } }
#submit-view:has(#stage-1.hidden) .terminal-chrome, #submit-view:has(#stage-1.hidden) .terminal-intro { display: none; }
#submit-view:has(#stage-1:not(.hidden)) .stagebar { display: none; }

.stagebar { grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.stage { min-height: 62px; color: #81919c; border-color: rgba(160, 202, 214, .14); background: rgba(255,255,255,.025); }
.stage-index { color: #9badb7; border-color: rgba(160,202,214,.2); background: rgba(4,10,18,.5); }
.stage.active, .stage.done { color: #9ff1df; border-color: rgba(95,217,197,.28); background: rgba(53, 158, 142, .1); }
.stage.active .stage-index { color: #06211d; background: #75e0cc; }

.form-card { padding: 22px; color: var(--ink-soft); border-color: rgba(166, 211, 221, .15); background: rgba(5, 12, 22, .45); }
#invoice-view .document-center { padding: 0; border: 0; border-radius: 0; background: transparent; }
#invoice-view .document-pane-desc { margin: 0 0 16px; color: #91a6b2; font-size: 13px; line-height: 1.65; }
#invoice-view .document-center > .form-card {
  max-width: none;
  padding: 22px;
  border: 1px solid rgba(147, 211, 221, .17);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(8, 22, 34, .68), rgba(4, 11, 20, .58));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
#invoice-view .document-center > .result-surface { max-width: none; margin-top: 16px; }
/* Service receipts and archived PDFs share the site's dark document surfaces. */
#invoice-result { padding: 20px; color: var(--ink-soft); border-color: var(--line); background: var(--surface); }
#invoice-result .result-head { margin-bottom: 14px; color: var(--ink); }
#invoice-result .detail-list > div { grid-template-columns: 140px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-color: var(--line); }
#invoice-result .detail-list dt { color: var(--muted); font-size: 13px; line-height: 1.65; }
#invoice-result .detail-list dd { min-width: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; font-weight: 650; overflow-wrap: anywhere; }
#invoice-result > .actions { margin-top: 16px; }
#invoice-result .archived-invoice { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink-soft); background: rgba(4, 10, 18, .48); }
#invoice-result .archived-invoice.available { border-color: rgba(100, 219, 197, .26); background: linear-gradient(145deg, rgba(25, 67, 69, .3), rgba(4, 14, 24, .7)); }
#invoice-result .archived-invoice.pending { border-color: var(--line); background: rgba(4, 10, 18, .48); }
#invoice-result .archived-invoice-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; }
#invoice-result .archived-invoice-head > div { min-width: 0; overflow-wrap: anywhere; }
#invoice-result .archived-invoice-head strong { color: var(--ink); font-size: 14px; line-height: 1.6; }
#invoice-result .archived-invoice.available .archived-invoice-head strong { color: var(--green-dark); }
#invoice-result .archived-invoice-head > div > p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
#invoice-result button { min-height: 48px; max-width: 100%; padding: 12px 20px; border: 1px solid rgba(85, 230, 235, .45); border-radius: 11px; font: inherit; font-size: 14px; font-weight: 650; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
#invoice-result button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
#invoice-result button:not(:disabled):hover { border-color: var(--teal); }
#invoice-result button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
@media (max-width: 860px) {
  #invoice-result .archived-invoice-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  #invoice-result .archived-invoice-head button { width: 100%; }
}
@media (max-width: 580px) {
  #invoice-result { padding: 16px; }
  #invoice-result .archived-invoice { padding: 16px; }
  #invoice-result .detail-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  #invoice-result > .actions button { width: 100%; }
}
#invoice-view #invoice-form label { color: #c9d8dd; }
#invoice-view #invoice-form input { color: #effafa; border-color: rgba(91, 204, 212, .38); background: rgba(2, 9, 17, .76); }
#invoice-view #invoice-form .actions { margin-top: 0; }
#stage-1 { padding: 0; border: 0; background: transparent; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
#stage-1 .cdkey-field { grid-column: 1; order: 1; }
#stage-1 .cdkey-actions { grid-column: 2; order: 2; }
#stage-1 .service-schedule { grid-column: 1 / -1; order: 3; margin-top: 6px; }
label { color: #cbd5da; }
input, textarea, select { color: #eef8fa; border-color: rgba(82, 198, 211, .38); background: rgba(3, 9, 17, .7); }
input { height: 58px; padding: 0 18px; font-size: 16px; }
textarea { min-height: 150px; }
input::placeholder, textarea::placeholder { color: #667885; opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: rgba(104, 221, 225, .65); }
input:focus, textarea:focus, select:focus, button:focus-visible { border-color: #65dfe2; box-shadow: 0 0 0 3px rgba(85, 217, 223, .14); }
.actions button, button.primary, .hero-actions .primary { min-height: 48px; color: #cafcff; border-color: rgba(85,230,235,.62); background: linear-gradient(180deg, rgba(10,104,125,.72), rgba(7,66,88,.78)); box-shadow: 0 12px 30px rgba(0,76,96,.2), inset 0 1px rgba(255,255,255,.08); }
#validate-button { min-width: 156px; height: 58px; }
.actions button:not(.primary) { color: #b8c7cf; border-color: rgba(165,208,218,.18); background: rgba(255,255,255,.045); box-shadow: none; }
.actions button:hover { border-color: #6fdde1; box-shadow: 0 12px 30px rgba(0,76,96,.25); }

.service-schedule { padding: 18px; border-color: rgba(148, 205, 215, .16); background: rgba(10, 24, 35, .48); }
.service-schedule-head strong { color: #e4edf0; }
.service-schedule-head p, .schedule-copy small { color: #8496a1; }
.schedule-live { color: #8fe9d0; border-color: rgba(81,213,178,.24); background: rgba(48,169,139,.1); }
.schedule-card, .schedule-card.automatic, .schedule-card.manual { border-color: rgba(162, 208, 219, .15); background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); }
.schedule-copy > span { color: #aebdc5; }
.schedule-copy strong { color: #eaf3f5; }
.schedule-card.automatic .schedule-copy strong { color: #8ee8d4; }
.schedule-icon { color: #7be3e8; border-color: rgba(95,217,220,.25); background: rgba(51,177,181,.1); }
.schedule-card.manual .schedule-icon { color: #8fbbe4; background: rgba(75,126,177,.12); }
.schedule-badge { color: #8fe9d0; background: rgba(59,181,150,.12); }

.validated, .summary, .result-surface, .batch-results, .terms { color: var(--ink-soft); border-color: rgba(162, 207, 217, .15); background: rgba(4, 10, 18, .56); }
.summary > div, .detail-list > div, .batch-results th, .batch-results td { border-color: rgba(164, 204, 214, .12); }
.summary span, .detail-list dt { color: #91a3ae; }

/* Confirmation uses the same dark surfaces and cyan accents as the workbench. */
#stage-3 { border-color: var(--line); background: var(--surface); }
#stage-3 h3 { margin: 0 0 20px; color: var(--ink); font-size: 18px; line-height: 1.5; }
#confirmation-summary { gap: 0; padding: 6px 18px; border-color: var(--line); border-radius: 12px; background: rgba(4, 10, 18, .4); }
#confirmation-summary .item { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(0, 1.3fr); align-items: baseline; gap: 16px; padding: 16px 0; }
#confirmation-summary .item small { color: var(--muted); font-size: 13px; line-height: 1.6; }
#confirmation-summary .item strong { min-width: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
#stage-3 .confirm-consent { min-height: 56px; margin: 18px 0; padding: 15px 16px; gap: 12px; color: var(--ink-soft); border-color: var(--line); border-radius: 12px; background: rgba(70, 203, 178, .04); transition: border-color .18s ease, background .18s ease; }
#stage-3 .confirm-consent:hover { border-color: rgba(100, 219, 197, .45); background: var(--green-soft); }
#stage-3 .confirm-consent:has(input:checked) { color: var(--green-dark); border-color: rgba(100, 219, 197, .38); background: var(--green-soft); }
#stage-3 .confirm-consent:focus-within { outline: 2px solid var(--teal); outline-offset: 3px; }
#stage-3 .confirm-consent input { width: 19px; height: 19px; padding: 0; accent-color: var(--green); cursor: pointer; }
#stage-3 .confirm-consent span { font-size: 13px; font-weight: 600; line-height: 1.6; }
#stage-3 .actions { gap: 12px; margin-top: 0; }
#stage-3 .actions button { min-height: 48px; }
@media (max-width: 580px) {
  #confirmation-summary { padding: 4px 14px; }
  #confirmation-summary .item { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 13px 0; }
  #confirmation-summary .item strong { text-align: left; }
  #stage-3 .confirm-consent { align-items: flex-start; padding: 14px; }
  #stage-3 .confirm-consent input { margin-top: 2px; }
  #stage-3 .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  #stage-3 .actions button { width: 100%; }
}

.msg { color: #9be8d3; border-color: rgba(81,213,178,.24); background: rgba(43,151,126,.1); }
.msg.error, .inline-error { color: #ffaaa6; border-color: rgba(255,119,119,.3); background: rgba(156,53,53,.12); }
.token-guide { color: #bac7cd; border-color: rgba(106,191,211,.2); background: rgba(35,95,112,.1); }
.token-guide strong { color: #8ce8ed; }
.session-guide { border-color: rgba(113,203,215,.19); background: rgba(7,18,29,.62); }
.session-guide-head { border-color: rgba(113,203,215,.15); background: rgba(40,103,119,.12); }
.session-guide-head > span { color: #07171c; background: linear-gradient(135deg,#8bece0,#46bdb0); }
.session-guide-head strong, .session-guide-steps a { color: #9ceee4; }
.session-guide-head small, .session-guide-steps p { color: #9babb4; }
.session-guide-steps li > span { color: #8fe8dd; border-color: rgba(104,217,205,.25); background: rgba(255,255,255,.04); }
.session-guide-steps a { background: rgba(70,190,177,.1); }
.status { color: #afbec5; background: rgba(255,255,255,.06); }
.status.success, .status.completed, .status.complete, .plan-badge { color: #8ce8cc; background: rgba(39,171,132,.14); }
.status.failed, .status.declined { color: #ff9d9d; background: rgba(181,58,58,.14); }
.status.processing, .status.running { color: #8ed9ef; background: rgba(55,137,174,.14); }
.progress-step, .queue-status, .queue-numbers { color: #aebcc4; border-color: #3d5865; background: rgba(255,255,255,.035); }
.progress-step.done { border-color: #4dd0ad; background: rgba(51,176,141,.1); }
.progress-step.active { border-color: #66dce5; background: rgba(51,148,176,.1); }
.secondary { color: #a6f2e2!important; background: rgba(58,177,153,.13)!important; }

.compliance-grid { margin: 24px 0; }
.compliance-grid article { border-color: rgba(168, 210, 220, .14); background: rgba(10, 20, 31, .62); box-shadow: 0 16px 42px rgba(0,0,0,.18); backdrop-filter: blur(15px); }
.compliance-grid h2 { color: #dce7ea; }
.compliance-grid p, .foot { color: #82949f; }
.foot { padding-bottom: 34px; }

.announcement-modal { position: fixed; z-index: 100; }
.announcement-dialog { color: var(--ink); border-color: rgba(162,211,220,.2); background: rgba(8,19,31,.94); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.announcement-content { color: #b5c2c8; }

@media (max-width: 1120px) {
  .nav button { padding: 0 9px; font-size: 12px; }
}

@media (max-width: 860px) {
  .site-header { top: 8px; width: calc(100% - 20px); margin-top: 8px; }
  .header-inner { min-height: 66px; height: auto; padding: 9px 10px 9px 12px; align-items: center; }
  .header-actions { flex-direction: column-reverse; align-items: flex-end; }
  .nav { max-width: 67vw; padding-top: 4px; }
  main { padding: 48px 12px 0; }
  .panel { padding: 24px 18px; border-radius: 20px; }
  #stage-1 { grid-template-columns: 1fr; }
  #stage-1 .cdkey-field, #stage-1 .cdkey-actions { grid-column: 1; }
  #stage-1 .cdkey-actions, #validate-button { width: 100%; }
  .stagebar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .brand small { display: none; }
  .header-inner { gap: 8px; }
  .header-actions { width: auto; min-width: 0; flex: 1; }
  .language-trigger { grid-template-columns: 25px minmax(58px, auto) 10px; width: 128px; height: 42px; padding-inline: 8px 9px; gap: 6px; font-size: 12px; }
  .language-code { min-width: 25px; height: 22px; }
  .nav { max-width: 100%; }
  .live-hero { margin-bottom: 24px; }
  .live-hero h1 { font-size: clamp(40px, 13vw, 54px); }
  .live-hero p { max-width: 340px; line-height: 1.65; }
  .terminal-intro h2 { font-size: clamp(29px, 9.5vw, 40px); }
  .terminal-intro > p:last-child { line-height: 1.7; }
  .stagebar { grid-template-columns: 1fr; }
  .compliance-grid { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-intro h2::after { animation: none; }
}

/* v294: shared dark components for every public route and dynamic state. */
:root {
  --surface-raised: #0e1e2d;
  --surface-inset: #07131f;
  --control-border: rgba(114, 224, 232, .4);
  --control-fill: linear-gradient(180deg, #0a5266, #09384b);
  --warning-ink: #f2c887;
}
.skip-link { position: fixed; }
.header-actions, .nav, .header-inner > *, .brand > span:last-child { min-width: 0; }
.header-actions { flex: 1; justify-content: flex-end; }
.nav { flex: 1; overflow-x: auto; scrollbar-width: thin; }
.nav button { flex: none; min-height: 44px; white-space: nowrap; }
.language-options button > span { color: #a3bac5; }
.brand { min-width: 0; }
.live-hero h1, .terminal-intro h2, .panel-heading h2 { overflow-wrap: anywhere; }
.panel-heading > div { min-width: 0; }
.panel-index { flex: none; }
.panel .grid > *, .form-card, .result-surface, .summary, .detail-list, .progress { min-width: 0; max-width: 100%; }
.result-head { flex-wrap: wrap; }
.result-head > div, .plan-badge { min-width: 0; overflow-wrap: anywhere; }
.detail-list > div { grid-template-columns: 150px minmax(0, 1fr); }
.detail-list dd, .summary strong, .progress-step, .queue-status { min-width: 0; overflow-wrap: anywhere; }
.summary .item { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr); align-items: baseline; }
.summary .item small { color: var(--muted); }
.summary .item strong { text-align: right; }
.panel button, .billing-link, .announcement-actions a, .announcement-actions button {
  min-height: 48px; max-width: 100%; padding: 11px 20px;
  border: 1px solid var(--line); border-radius: 11px;
  color: var(--ink-soft); background: rgba(255, 255, 255, .045);
  font: inherit; font-size: 14px; font-weight: 650; line-height: 1.5;
  white-space: normal; overflow-wrap: anywhere; cursor: pointer; text-decoration: none;
}
.panel button.primary, .billing-portal .billing-link, .announcement-actions .announcement-dismiss {
  color: #cafcff; border-color: var(--control-border); background: var(--control-fill);
  box-shadow: 0 10px 24px rgba(0, 50, 70, .2), inset 0 1px rgba(255, 255, 255, .05);
}
.panel button.secondary, .billing-portal-actions button.secondary {
  color: var(--green-dark)!important; border-color: rgba(100, 219, 197, .3); background: var(--green-soft)!important;
}
.panel button:not(:disabled):hover, .billing-portal .billing-link:hover, .announcement-actions a:hover {
  border-color: var(--teal); box-shadow: 0 8px 24px rgba(0, 50, 70, .22);
}
button:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.panel button:disabled { cursor: not-allowed; opacity: .6; transform: none; box-shadow: none; }
input::placeholder, textarea::placeholder { color: #94a6b2; }
.service-schedule { box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.billing-portal, .billing-portal.unavailable {
  color: var(--ink-soft); border-color: var(--line); background: var(--surface-inset);
  gap: 20px; padding: 20px; align-items: flex-start;
}
.billing-portal > div { min-width: 0; }
.billing-portal strong, .billing-portal.unavailable strong { color: var(--ink); }
.billing-portal p { color: var(--muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.billing-portal-actions { min-width: 0; flex-shrink: 1; }
.billing-portal-actions .billing-link, .billing-portal-actions button { min-height: 48px; padding: 11px 16px; font-size: 13px; }
.reset-confirm { color: var(--ink-soft); line-height: 1.65; min-height: 44px; align-items: center; cursor: pointer; }
.reset-confirm input { accent-color: var(--green); padding: 0; }
.reset-confirm:focus-within { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 5px; }
.reset-result-head p { color: var(--warning-ink); }
.reset-key-box { color: var(--ink-soft); border-color: var(--line); background: var(--surface-inset); }
.reset-key-box code { color: var(--green-dark); border: 1px solid var(--line); background: rgba(70, 203, 178, .06); }
.batch-results { max-width: 100%; min-width: 0; scrollbar-color: #35505e var(--surface-inset); }
.batch-results table { min-width: 530px; }
.batch-results th { color: var(--muted); background: var(--surface-inset); }
.batch-results table tbody tr:hover, .result-surface table tbody tr:hover { background: rgba(70, 203, 178, .08); }
.work-hours, .countdown, .document-type-switch { color: var(--ink-soft); border-color: var(--line); background: var(--surface-inset); }
.work-hours p { color: var(--muted); }
.document-type-switch button.active { color: var(--green-dark); background: var(--green-soft); }
.announcement-modal { background: rgba(2, 6, 12, .76); }
.announcement-modal:is(.info, .success, .warning, .important) .announcement-dialog {
  color: var(--ink); border-color: var(--control-border); background: #0b1927;
}
.announcement-modal.success .announcement-dialog { border-color: rgba(100, 219, 197, .4); }
.announcement-modal.warning .announcement-dialog { border-color: rgba(242, 200, 135, .4); }
.announcement-modal.important .announcement-dialog { border-color: rgba(255, 133, 133, .4); }
.announcement-heading strong { color: var(--ink); }
.announcement-eyebrow { color: var(--muted); opacity: 1; }
.announcement-content { color: var(--ink-soft); border: 1px solid var(--line); background: var(--surface-inset); }
.announcement-close, .announcement-close:hover { min-height: 44px; width: 44px; height: 44px; color: var(--ink-soft); border: 1px solid var(--line); background: var(--surface-raised); }
.announcement-actions .announcement-link { color: var(--green-dark); border-color: var(--line); background: var(--green-soft); }
.announcement-modal .site-announcement-icon { color: #a9f0f5; background: #173e51; box-shadow: none; }
.announcement-modal.success .site-announcement-icon { color: var(--green-dark); background: #123f36; }
.announcement-modal.warning .site-announcement-icon { color: var(--warning-ink); background: #493821; }
.announcement-modal.important .site-announcement-icon { color: #ffb1b1; background: #4a262c; }
@media (max-width: 1120px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; height: auto; gap: 8px 14px; }
  .header-actions { display: contents; }
  .brand { grid-column: 1; grid-row: 1; white-space: normal; }
  .brand strong { overflow-wrap: anywhere; }
  .brand-mark { flex: none; }
  .language-menu { grid-column: 2; grid-row: 1; }
  .nav { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: 100%; padding: 3px 0; }
}
@media (max-width: 860px) {
  .billing-portal-actions { width: 100%; }
}
@media (max-width: 580px) {
  .summary .item, .detail-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .summary .item strong { text-align: left; }
  .panel .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .panel .actions button, .reset-key-box button { width: 100%; }
  .billing-portal { padding: 16px; }
  .billing-portal-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .billing-portal-actions .billing-link, .billing-portal-actions button { width: 100%; }
  .reset-confirm { align-items: flex-start; }
  .reset-confirm input { margin-top: 3px; }
}
