:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101314;
  color: #f3f5ef;
  font-synthesis: none;
  --muted: #adb5b2;
  --accent: #d5f68b;
  --border: #353e3a;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 90% 0%, #253329 0, transparent 48%); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .48; }
[hidden] { display: none !important; }
.shell { width: min(100%, 480px); margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 800; letter-spacing: -.8px; color: inherit; text-decoration: none; direction: ltr; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; background: var(--accent); color: #172017; border-radius: 10px; font-size: 23px; transform: rotate(-5deg); }
.brand-tv { color: var(--accent); }
select { background: #1c2220; color: #e7ece8; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-height: 44px; max-width: 145px; font-size: 13px; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.8px; color: var(--accent); margin: 0 0 10px; }
h1 { font-size: clamp(27px, 7.5vw, 35px); letter-spacing: -1.2px; line-height: 1.13; margin: 0; max-width: 390px; font-weight: 750; text-wrap: balance; }
.intro-copy { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 12px 0 22px; }
.card { background: #1a201de8; border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: 0 16px 60px #0003; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
h2 { font-size: 16px; font-weight: 650; margin: 0; }
.expiry { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
#countdown { color: var(--accent); font-variant-numeric: tabular-nums; background: #293423; border-radius: 6px; padding: 4px 6px; font-size: 12px; }
.status { display: flex; align-items: flex-start; gap: 9px; color: #d9e5d4; background: #273125; border: 1px solid #3a4b32; padding: 11px 12px; border-radius: 10px; margin-bottom: 18px; }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: 0 0 6px; margin-top: 6px; }
.status p { margin: 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.status[data-tone="error"] { background: #342822; color: #f9d0b3; border-color: #614130; }
.status[data-tone="error"] .status-dot { background: #ffb581; }
.status[data-tone="success"] { border-color: #77994f; }
.alert { color: #ffccba; border-inline-start: 2px solid #f6a780; padding-inline-start: 10px; font-size: 12px; line-height: 1.5; margin: 0 0 15px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 7px; }
input { width: 100%; min-width: 0; background: #101713; color: #f4f6f0; border: 1px solid #424b43; border-radius: 10px; padding: 12px; min-height: 46px; font-size: 16px; line-height: 1.25; }
input::placeholder { color: #919c94; opacity: 1; }
input[aria-invalid="true"] { border-color: #ffa982; }
small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 5px; }
.password-row { display: flex; align-items: stretch; border-radius: 10px; border: 1px solid #424b43; background: #101713; overflow: hidden; }
.password-row input { border: 0; border-radius: 0; }
.password-toggle { border: 0; border-inline-start: 1px solid #343e35; color: var(--accent); background: #222b22; padding: 0 12px; min-width: 64px; font-size: 12px; flex-shrink: 0; }
.primary { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 49px; padding: 12px; border: 1px solid transparent; border-radius: 11px; background: var(--accent); color: #1b2516; font-size: 14px; font-weight: 750; line-height: 1.4; }
.primary:hover:not(:disabled) { background: #e1ffa6; }
.primary:active:not(:disabled) { transform: translateY(1px); }
.approval-note { color: #c4cdc4; font-size: 11px; text-align: center; line-height: 1.55; margin: 14px 0 0; }
.code-panel { text-align: center; background: #101713; border: 1px solid #475c38; border-radius: 14px; padding: 23px 14px 17px; margin: 0 0 17px; }
.code-panel .eyebrow { letter-spacing: 1px; font-size: 10px; }
#matching-code { display: block; color: var(--accent); font-size: clamp(29px, 9vw, 40px); font-weight: 750; letter-spacing: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; margin: 9px 0 12px; }
.code-panel p:last-child { color: #c2ccb9; font-size: 12px; line-height: 1.65; margin: 0; }
footer { display: flex; align-items: flex-start; justify-content: center; gap: 8px; color: var(--muted); padding: 16px 12px 0; }
footer p { margin: 0; font-size: 11px; line-height: 1.65; }
.privacy-mark { color: var(--accent); line-height: 1.6; }
.noscript { color: #ffccba; line-height: 1.6; }
:focus-visible { outline: 3px solid #f4d491; outline-offset: 3px; }
.password-row:focus-within { outline: 3px solid #f4d491; outline-offset: 3px; }
.password-row input:focus-visible { outline: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.4; }
@media (max-width: 350px) { .shell { padding-inline: 12px; } .card { padding: 16px; } .topbar { margin-bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .primary:active:not(:disabled) { transform: none; } }
@media (forced-colors: active) { .brand-mark, .status-dot { border: 1px solid CanvasText; } }
