:root { color-scheme: dark; --access-bg: #0c0b13; --access-panel: #15141d; --access-border: #302c40; --access-text: #f3f0fa; --access-muted: #aaa3ba; --access-primary: #9c79ff; }
* { box-sizing: border-box; }
body.access-page { margin: 0; min-height: 100vh; padding: 48px 28px; display: grid; place-items: center; background: var(--access-bg) url('/static/scylla-dashboard-bg.webp') center/cover fixed; color: var(--access-text); font: 14px/1.5 Inter, system-ui, sans-serif; }
body.access-page::before { content: ''; position: fixed; inset: 0; background: rgba(10, 9, 18, .88); backdrop-filter: blur(5px); pointer-events: none; }
.access-layout { position: relative; width: min(1120px, 100%); display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(295px, 1fr); gap: 48px; align-items: start; }
.access-eyebrow { color: #b49bf1; font-size: 11px; font-weight: 700; letter-spacing: .14em; margin-bottom: 10px; }
.plan-overview h1 { margin: 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -.035em; font-weight: 650; }
.plan-overview h1:focus { outline: none; }
.access-intro { margin: 12px 0 26px; color: var(--access-muted); font-size: 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 86px; }
.plan-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--access-border); border-radius: 12px; padding: 28px 20px 18px; background: rgba(24, 22, 34, .94); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.plan-card:hover { border-color: #a48aca; box-shadow: 0 8px 24px #0003; }
.plan-card::after { content: '✓ Selected'; visibility: hidden; margin-top: auto; padding-top: 8px; color: #ead9ff; font-size: 12px; font-weight: 700; }
.plan-card-top { min-height: 49px; }
.plan-card h2 { margin: 0; font-size: 15px; font-weight: 650; }
.plan-tag { color: #aaa3ba; font-size: 11px; }
.plan-price { margin: 12px 0 24px; font-size: 36px; line-height: 1; letter-spacing: -.04em; font-weight: 650; }
.plan-price span { margin-left: 7px; font-size: 12px; color: var(--access-muted); letter-spacing: 0; font-weight: 400; }
.plan-capacity { position: absolute; top: -13px; right: 14px; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 11px; border: 1px solid #ad8fd4; outline: 1px solid #ad8fd44d; outline-offset: -4px; border-radius: 4px; background: #2c223c; box-shadow: 0 3px 10px #0004; color: #e0c8ff; line-height: 1; transform: rotate(4deg); }
.plan-capacity strong { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.plan-capacity span { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.plan-capacity.is-full { border-color: #c67f90; outline-color: #c67f904d; background: #38212e; color: #fda4af; }
.plan-card-mascot { position: absolute; top: -97px; right: 14px; width: 148px; transform: rotate(8deg); transform-origin: 50% 85%; }
.plan-card-mascot img { display: block; width: 100%; height: auto; user-select: none; pointer-events: none; }
.plan-card-mascot .plan-capacity { top: 72.4%; left: 35%; right: auto; width: 42%; height: 24.7%; min-height: 0; flex-direction: column; justify-content: center; gap: 2px; padding: 3px 2px; transform: none; border: 0; outline: 0; background: none; box-shadow: none; }
.plan-card-mascot .plan-capacity strong { font-size: 14px; }
.plan-card-mascot .plan-capacity span { font-size: 7px; letter-spacing: .025em; }
.capacity-note { margin: 14px 0 0; color: #aaa0b7; font-size: 11px; line-height: 1.65; }
.plan-daily { display: grid; gap: 1px; padding-bottom: 18px; border-bottom: 1px solid var(--access-border); }
.plan-daily strong { font-size: 26px; font-weight: 650; letter-spacing: -.03em; }
.plan-daily span { color: var(--access-muted); font-size: 12px; }
.plan-details { margin: 17px 0 20px; }
.plan-details div { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0; }
.plan-details dt { color: var(--access-muted); font-size: 12px; }
.plan-details dd { margin: 0; font-weight: 650; }
.plan-availability { margin: -4px 0 16px; font-size: 10px; line-height: 1.6; color: #b8a8c6; }
.allowance-explainer { margin-top: 26px; border-top: 1px solid var(--access-border); padding-top: 22px; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 650; }
.section-heading > span { font-size: 10px; color: #a298b5; }
.allowance-explainer > p, .model-weights > p { color: var(--access-muted); font-size: 12px; line-height: 1.65; margin: 10px 0 14px; }
.allowance-controls { display: grid; grid-template-columns: .95fr 1.2fr; gap: 12px; }
.allowance-controls label { color: var(--access-muted); font-size: 11px; font-weight: 500; display: grid; gap: 7px; }
.allowance-controls select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 28px 8px 10px; border: 1px solid var(--access-border); border-radius: 6px; background: #1b1826; color: var(--access-text); font: 12px Inter, system-ui, sans-serif; }
.allowance-result { margin-top: 14px; display: flex; gap: 12px; align-items: baseline; padding: 13px 15px; border: 1px solid #41334f; border-radius: 7px; background: #201a2d; }
.allowance-result strong { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.allowance-result span { color: #bcb0d2; font-size: 12px; }
.allowance-explainer .allowance-note { font-size: 10px; color: #91879f; margin-bottom: 20px; }
.model-weights { border-top: 1px solid var(--access-border); border-bottom: 1px solid var(--access-border); }
.model-weights summary { cursor: pointer; padding: 15px 0; font-size: 13px; font-weight: 600; }
.model-weights summary > span { float: right; font-size: 11px; font-weight: 400; color: var(--access-muted); }
.model-weights table { width: 100%; border-collapse: collapse; margin-bottom: 12px; text-align: left; }
.model-weights thead { color: #91879f; font-size: 10px; }
.model-weights th, .model-weights td { padding: 12px 0; border-bottom: 1px solid #272231; vertical-align: top; }
.model-weights tbody tr:last-child th, .model-weights tbody tr:last-child td { border-bottom: 0; }
.model-weights tbody th { width: 66px; font-size: 13px; color: #ccb6f3; }
.model-chip { display: inline-block; margin: 0 5px 5px 0; padding: 4px 7px; background: #211d2c; border: 1px solid #332b41; border-radius: 4px; font-size: 10px; }
.source-code { color: #bba1ef; font-family: 'JetBrains Mono', monospace; }
.grandfather-note { color: #a49aae; font-size: 11px; line-height: 1.6; margin: 17px 0 0; }
.access-aside { position: sticky; top: 36px; margin-top: 84px; }
.access-page .login-shell, .access-page .claim-shell { width: 100%; background: rgba(22, 20, 31, .97); border: 1px solid var(--access-border); border-radius: 10px; box-shadow: 0 16px 50px #0003; overflow: hidden; }
.access-page .login-head, .claim-head { display: flex; align-items: center; gap: 11px; padding: 20px; border-bottom: 1px solid var(--access-border); background: #ffffff03; }
.access-page .login-head img, .claim-head img { width: 31px; height: 31px; }
.access-page .login-head h1, .claim-head h2 { margin: 0; font-size: 14px; line-height: 1.3; }
.access-page .login-subtitle, .claim-subtitle { margin-top: 3px; color: var(--access-muted); font-size: 11px; }
.access-page .login-shell form, .claim-body { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.access-page .login-shell .claim-link { font-size: 12px; }
.login-help { margin: 0; font-size: 11px; color: var(--access-muted); text-align: center; }
.login-help a { color: #c7b2f6; }
.claim-note { margin: 0; color: var(--access-muted); font-size: 11px; line-height: 1.6; }
.claim-note a { color: #d1bdf8; }
.selected-plan { padding: 10px 12px; border: 1px solid #513d6f; background: #271e36; border-radius: 6px; color: #d4c1f4; font-size: 12px; }
.claim-rules { white-space: pre-wrap; max-height: 175px; overflow: auto; padding: 12px; border: 1px solid var(--access-border); border-radius: 6px; background: #1c1926; color: #aaa0b7; font-size: 10px; line-height: 1.7; }
.claim-body label:not(.claim-check) { display: grid; gap: 7px; color: var(--access-muted); font-size: 11px; }
.claim-body input[type=text] { width: 100%; min-height: 42px; border: 1px solid var(--access-border); border-radius: 6px; background: #1c1926; color: var(--access-text); padding: 10px 12px; font: 12px 'JetBrains Mono', monospace; }
.claim-check { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.6; color: var(--access-muted); cursor: pointer; }
.claim-check input { accent-color: #a579f0; margin: 3px 0 0; }
.claim-actions { display: grid; gap: 10px; }
.claim-actions button { min-height: 42px; border: 0; border-radius: 6px; background: #9168e6; color: #fff; font: 600 12px Inter, system-ui, sans-serif; cursor: pointer; }
.claim-actions button:hover { background: #a17aef; }
.claim-actions button:disabled { opacity: .5; cursor: wait; }
.claim-actions > a { text-align: center; font-size: 11px; color: var(--access-muted); text-decoration: none; }
.claim-actions > a:hover { color: var(--access-text); }
.claim-error { margin: 0; color: #fda4af; font-size: 12px; }
.claim-error:empty { display: none; }
.rules-gate { position: relative; width: min(620px, 100%); }
.rules-gate .claim-body { padding: 24px; gap: 20px; }
.rules-gate .claim-rules { max-height: min(55vh, 440px); font-size: 12px; padding: 16px; }
.rules-gate .claim-note, .rules-gate .claim-check { font-size: 12px; }
.rules-accepted { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #b7cba8; }
.rules-accepted a { color: var(--access-muted); }
.media-allowances { border-bottom: 1px solid var(--access-border); }
.media-allowances summary { cursor: pointer; padding: 15px 0; font-size: 13px; font-weight: 600; }
.media-allowances summary > span { float: right; font-size: 11px; font-weight: 400; color: var(--access-muted); }
.media-allowances p { margin: 8px 0 16px; color: var(--access-muted); font-size: 11px; line-height: 1.65; }
.media-allowances table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; margin-bottom: 14px; }
.media-allowances th, .media-allowances td { padding: 10px 4px; border-bottom: 1px solid #272231; }
.media-allowances thead th { color: var(--access-muted); font-size: 10px; font-weight: 500; }
.media-allowances tbody th { font-weight: 500; }
.media-allowances td { color: #cbb8ed; }
.plan-card.is-selected { border-color: #c7a5ff; background: linear-gradient(145deg, #483168, #2d203f); box-shadow: 0 0 0 2px #a277e555, 0 8px 24px #0003; }
.plan-card.is-selected::after { visibility: visible; }
.plan-card.is-selected .plan-tag { color: #ddc7f8; }
.plan-card.is-selected .plan-daily { border-color: #8568a080; }
.plan-card.is-selected .plan-availability { color: #d4c4e7; }
.access-page :focus-visible { outline: 2px solid #bd9aff; outline-offset: 3px; }
@media (max-width: 850px) { body.access-page { padding: 28px 20px; }.access-layout { gap: 25px; grid-template-columns: minmax(0, 1fr) 295px; }.plan-card { padding: 28px 14px 18px; }.plan-grid { gap: 10px; }.plan-card h2 { font-size: 13px; } }
@media (max-width: 720px) { body.access-page { padding: 24px 16px; }.access-layout { max-width: 560px; grid-template-columns: 1fr; gap: 26px; }.access-aside { position: static; margin-top: 0; }.login-layout .access-aside { grid-row: 1; }.access-intro { margin-bottom: 20px; }.plan-overview h1 { font-size: 29px; }.plan-price { font-size: 32px; }.plan-daily strong { font-size: 23px; } }
@media (max-width: 380px) { .plan-grid { grid-template-columns: 1fr; row-gap: 112px; }.plan-card-top { min-height: 0; }.plan-price { margin-bottom: 18px; }.allowance-controls { grid-template-columns: 1fr; }.allowance-result { align-items: flex-start; flex-direction: column; gap: 0; } }
