.mobile-proxy-details { border: 1px solid var(--soft); border-radius: 7px; background: var(--surface); }
@media(min-width:1100px){
  body:has(.checker-page) .subscription-floating{top:88px;right:3%;width:216px;padding:12px;gap:10px;text-transform:uppercase}
  .page.checker-page{position:fixed;top:70px;bottom:12px;left:3%;right:3%;width:auto;max-width:none;margin:0;padding:10px 240px 0 0;display:flex;flex-direction:column;min-height:0;overflow:hidden;animation:none}
  .checker-page>.page-head{display:none}
  .checker-page>.stats{flex:none;margin-bottom:10px}
  .checker-page>.workspace{flex:none;overflow:visible}
  .checker-page>.results{flex:1;min-height:210px;display:flex;flex-direction:column;margin-top:10px}
  .checker-page>.results>.table-wrap{flex:1;min-height:0;overflow:auto}
  .checker-page>.results>.panel-head,.checker-page>.results>.tabs,.checker-page>.results>.progress-line{flex:none}
  .checker-page .results .panel-head{padding:8px 12px}
  .checker-page .results .empty{padding:16px}
  .checker-page .results th,.checker-page .results td{padding:7px 10px;font-size:12px;line-height:1.35;font-weight:600}
  .checker-page .results th{font-weight:700;letter-spacing:.08em}
  .checker-page #result-table thead th{position:sticky;top:0;z-index:3;background:var(--canvas-panel);box-shadow:0 1px 0 var(--soft)}
  .checker-page .start-actions{margin-top:8px}
  .checker-page .start-actions button{min-height:34px}
  .checker-page .cards-area{height:120px;min-height:80px}
  .checker-page .run-configuration .panel-body{padding:8px 12px}
  .checker-page .run-configuration .controls{gap:7px 10px}
  .checker-page .run-configuration input,.checker-page .run-configuration select{min-height:30px;padding:5px 8px}
  .checker-page .run-configuration .section-rule{margin:7px 0}
  .checker-page .run-configuration .help{margin:4px 0;line-height:1.3}
  .checker-page .run-configuration .mobile-advanced-details>summary{padding:7px 0;min-height:30px}
}
@media(min-width:1100px){
  .page.checker-page{padding-top:18px}
  .checker-page .stats{margin-bottom:8px}
  .checker-page .stat{padding:6px 18px}
  .checker-page .stat .number{font-size:22px}
  .checker-page .workspace .panel-head{padding:10px 14px}
  .checker-page .workspace .panel-body{padding:12px 14px}
  .checker-page .workspace .stack{gap:10px}
  .checker-page .results{margin-top:8px}
  .checker-page .workspace{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(240px,.8fr);align-items:stretch;gap:16px}
  .checker-page .workspace>:first-child>.panel{height:100%;display:flex;flex-direction:column}
  .checker-page .workspace>:first-child>.panel>.panel-body{flex:1;min-height:0;display:flex;flex-direction:column}
  .checker-page .workspace>:first-child>.panel>.panel-body>.stack{flex:1;min-height:0}
  .checker-page .workspace>:first-child .cards-area{flex:1;height:auto;min-height:80px;resize:none}
  .checker-page .workspace>.mobile-proxy-details{align-self:start}
  .checker-page .workspace>*{min-width:0}
  .checker-page .workspace>.mobile-proxy-details{margin:0}
  .checker-page .cards-area{height:180px;min-height:140px}
}
@media(min-width:621px) and (max-width:1099px){
  .checker-page .workspace>.mobile-proxy-details{grid-column:2;grid-row:2}
}
.mobile-proxy-details > summary{padding:8px 12px!important}
.mobile-proxy-details .panel-head{padding:8px 12px;min-height:0}
.mobile-proxy-details .panel-body{padding:10px 12px}
.mobile-proxy-details .stack{gap:8px}
.mobile-proxy-details .proxy-area{height:76px;min-height:76px;padding:6px 8px}
.mobile-proxy-details .help{margin:0;font-size:10px}
.mobile-proxy-details .panel{margin:0;border:0}
.mobile-proxy-details button{padding:6px 10px;min-height:28px}
.mobile-proxy-details > summary { padding: 16px 20px; min-height: 46px; cursor: pointer; color: var(--ink); font: 12px/1.6 var(--mono); }
.mobile-proxy-details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mobile-proxy-details > .panel { border: 0; margin: 0; }

:root {
  --bg: #0b1015;
  --surface: #141c24;
  --raised: #1b2732;
  --accent: #b8d6e8;
  --accent-hover: #d1e3ee;
  --cyan: var(--accent);
  --amber: #e1c38c;
  --red: #f39790;
  --ink: #e9f0f4;
  --muted: #a6b4c0;
  --border: #526574;
  --soft: #26333e;
  --success: #b5c8a6;
  --grid: #235855;
  --motion-color: #55fff0;
  --motion-core: #d9fff9;
  --shadow-ink: #02070dcc;
  --accent-haze: #b8d6e80a;
  --canvas-panel: #0e151d;
  --heading: 'Space Grotesk', sans-serif;
  --body: 'Manrope', sans-serif;
  --mono: 'Share Tech Mono', monospace;
  --shadow: 0 18px 45px var(--shadow-ink);
  --gap: 24px;
  --header-bg: #0b1015d9;
  --login-bg: var(--bg);
  --login-paper: var(--surface);
  --login-ink: var(--ink);
  --login-label: var(--muted);
  --login-border: var(--border);
  --login-input: var(--canvas-panel);
  --login-placeholder: #8c9caa;
  --login-hover: var(--accent-hover);
  --login-error: var(--red);
  --login-shadow: var(--shadow-ink);
  --login-accent: var(--accent);
  --login-grid: var(--grid);
  --login-header-rule: var(--soft);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 13px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
#app { position: relative; z-index: 1; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
button { cursor: pointer; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--ink); min-height: 42px; padding: 10px 16px; font: 11px/1.6 var(--mono); letter-spacing: .06em; transition: background 180ms, border-color 180ms, transform 180ms, box-shadow 180ms; }
button:hover:not(:disabled) { background: var(--raised); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-haze); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: bold; }
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
button.danger { color: var(--red); }
button.small { min-height: 34px; padding: 6px 11px; font-size: 11px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
input, select, textarea { border: 1px solid var(--border); background: var(--canvas-panel); color: var(--ink); padding: 12px 13px; width: 100%; border-radius: 5px; min-height: 45px; font: 13px/1.6 var(--mono); transition: border-color 160ms, box-shadow 160ms; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-haze); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
textarea { resize: vertical; line-height: 1.9; }
input[type=checkbox] { accent-color: var(--accent); min-height: auto; width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
label { display: block; color: var(--muted); font: 11px/1.7 var(--mono); letter-spacing: .07em; }
label input, label select { margin-top: 8px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.15; }
h1 { font-size: 38px; font-weight: 500; letter-spacing: -.04em; }
h2 { font-size: 23px; font-weight: 500; }
h3 { font-size: 19px; }
small, .muted { color: var(--muted); }
.cyan { color: var(--accent); }
.amber { color: var(--amber); }
.red { color: var(--red); }
.eyebrow { font: 10px/1.5 var(--mono); letter-spacing: .15em; color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 20px; }
.grow { flex: 1; }
.badge { display: inline-block; border: 1px solid var(--soft); border-radius: 3px; padding: 5px 9px; font: 10px/1.5 var(--mono); letter-spacing: .08em; white-space: nowrap; }
.badge.sim { color: var(--accent); border-color: var(--border); background: var(--accent-haze); }
.shell { width: 100%; max-width: 1440px; margin: auto; padding-left: 44px; padding-right: 44px; }
.topbar { border-bottom: 1px solid var(--soft); background: var(--header-bg); backdrop-filter: blur(10px); }
.nav { min-height: 82px; display: flex; align-items: center; gap: 56px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); font: 500 22px/1 var(--heading); letter-spacing: .1em; white-space: nowrap; }
.brand .mark { display: inline-flex; border: 1px solid var(--accent); color: var(--accent); width: 30px; height: 34px; align-items: center; justify-content: center; margin-right: 12px; letter-spacing: 0; font-size: 23px; clip-path: polygon(0 0, 75% 0, 100% 25%, 100% 100%, 25% 100%, 0 75%); }
.brand sup { font: 10px var(--mono); color: var(--accent); letter-spacing: .04em; margin-left: 7px; align-self: flex-start; }
.links { display: flex; gap: 8px; }
.links a { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 11px/1.5 var(--mono); letter-spacing: .06em; padding: 10px 14px; border: 1px solid transparent; border-radius: 5px; transition: color 160ms, background 160ms; }
.links a::before { content: ''; width: 4px; height: 4px; border: 1px solid var(--border); transform: rotate(45deg); }
.links a.active { color: var(--accent); background: var(--surface); border-color: var(--soft); }
.links a.active::before { background: var(--accent); border-color: var(--accent); }
.links a:hover { color: var(--ink); }
.identity { margin-left: auto; font: 12px var(--mono); }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--success); margin-right: 8px; box-shadow: 0 0 10px var(--accent-haze); }
.page { padding-top: 42px; padding-bottom: 48px; animation: page-in 240ms ease-out both; }
.page-head { margin-bottom: 30px; }
.page-head h1 { margin: 9px 0; }
.page-head p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.panel { border: 1px solid var(--soft); border-radius: 9px; background: var(--surface); overflow: hidden; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-body { padding: 22px; }
.panel-label { font: 11px/1.5 var(--mono); letter-spacing: .1em; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--soft); border-radius: 9px; margin-bottom: 24px; background: var(--surface); overflow: hidden; }
.stat { padding: 20px 24px; position: relative; }
.stat:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 23px; bottom: 23px; width: 1px; background: var(--soft); }
.stat .number { font: 500 36px/1.3 var(--heading); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.stat .eyebrow { margin-bottom: 5px; font-size: 10px; }
.python-receiver { margin-bottom: 12px; padding: 8px 0; border-bottom: 1px solid var(--soft); }
.python-receiver .help { flex: 1; min-width: 180px; }
.python-receiver button { min-height: 44px; }
.workspace { display: grid; grid-template-columns: 1.13fr 1fr; gap: 24px; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.cards-area { height: 238px; font-size: 13px; }
.proxy-area { height: 106px; font-size: 12px; }
.config-fieldset { border: 0; min-width: 0; margin: 0; padding: 0; }
.config-fieldset .controls { gap: 8px 12px; align-items: center; }
.config-fieldset .controls > label { min-width: 0; }
.config-fieldset label input, .config-fieldset label select { margin-top: 4px; min-height: 44px; padding: 9px 11px; }
.config-fieldset .check { min-height: 44px; gap: 8px; }
.config-fieldset .check input { margin: 0; min-height: 0; padding: 0; }
.config-fieldset .section-rule { margin: 12px 0; }
.config-fieldset .subhead { margin-bottom: 8px; }
.config-fieldset .generate-button { margin-top: 10px; min-height: 44px; padding: 10px 12px; }
.config-fieldset > .help { margin-top: 8px; font-size: 10px; line-height: 1.5; }
.run-configuration .panel-head { padding: 12px 16px; }
.run-configuration .panel-body { padding: 14px 16px; }
.config-fieldset > .section-rule:last-of-type { display: none; }
.config-fieldset .mobile-advanced-details { border-top: 1px solid var(--soft); margin-top: 10px; }
.config-fieldset .mobile-advanced-details summary { cursor: pointer; min-height: 38px; padding: 10px 0; color: var(--muted); font: 10px/1.6 var(--mono); }
.config-fieldset .mobile-advanced-details[open] summary { margin-bottom: 6px; color: var(--ink); }
.config-fieldset .mobile-advanced-details > .help { margin-top: 8px; }
.config-fieldset .mobile-advanced-details:not([open]) > :not(summary) { display: none; }
.config-fieldset .input-options { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px 8px; }
.config-fieldset .input-options > label:nth-child(2) { grid-column: 2 / -1; display: grid; grid-template-columns: minmax(0,1fr) 64px; align-items: center; gap: 8px; }
.config-fieldset .input-options > label:nth-child(2) input { margin: 0; }
@media (min-width: 621px) {
  .config-fieldset label input, .config-fieldset label select { min-height: 36px; padding: 7px 10px; }
  .config-fieldset .check { min-height: 36px; }
  .config-fieldset .section-rule { margin: 10px 0; }
  .config-fieldset .generate-button { min-height: 38px; padding: 8px 10px; margin-top: 8px; }
}
.generate-button { margin-top: 16px; width: 100%; border-style: dashed; background: transparent; }
.section-rule { border: 0; border-top: 1px solid var(--soft); margin: 23px 0; }
.help { color: var(--muted); font: 11px/1.7 var(--mono); }
.check { display: flex; align-items: center; gap: 10px; color: var(--ink); letter-spacing: 0; min-height: 39px; }
.inline-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.start-actions { display: grid; grid-template-columns: 1fr 110px; gap: 12px; margin-top: 18px; }
.start-actions button { min-height: 50px; }
.subhead { font: 10px/1.5 var(--mono); letter-spacing: .1em; color: var(--muted); margin-bottom: 15px; }
.results { margin-top: 24px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 7px 14px; border-bottom: 1px solid var(--soft); }
.tabs button { border: 0; border-radius: 4px; min-height: 34px; font-size: 11px; color: var(--muted); background: transparent; }
.tabs button.active { color: var(--accent); background: var(--raised); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font: 12px/1.6 var(--mono); }
th { background: var(--canvas-panel); color: var(--muted); font-size: 10px; letter-spacing: .08em; font-weight: normal; }
td, th { padding: 15px 20px; border-bottom: 1px solid var(--soft); }
tbody tr { transition: background 160ms; }
tbody tr:hover { background: var(--raised); }
td .small { margin-left: 12px; }
.empty { text-align: center; padding: 48px 18px; color: var(--muted); font: 12px/1.8 var(--mono); }
.empty .empty-icon { display: block; color: var(--accent); opacity: .65; font-size: 28px; margin-bottom: 12px; }
.empty a { display: inline-block; margin-top: 16px; }
.result-status { display: inline-block; min-width: 72px; }
.status-charged { color: var(--success); }
.status-ccn { color: var(--ink); }
.status-risk { color: var(--amber); }
.status-declined { color: var(--red); }
.progress-line { padding: 13px 20px; border-top: 1px solid var(--soft); font: 10px/1.5 var(--mono); color: var(--muted); }
progress { accent-color: var(--accent); width: 130px; height: 5px; border: 0; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; margin-bottom: 24px; }
.session-clock { font: 400 76px/1 var(--heading); color: var(--accent); font-variant-numeric: tabular-nums; margin: 24px 0 25px; letter-spacing: -.06em; }
.urgent { color: var(--red); animation: pulse 1s ease-in-out infinite; }
.definition { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--soft); padding: 13px 0; color: var(--muted); font: 11px/1.6 var(--mono); }
.definition span:last-child { color: var(--ink); text-align: right; }
.activity { padding: 17px 0; border-bottom: 1px solid var(--soft); font: 12px/1.6 var(--mono); }
.activity:last-child { border: 0; }
.activity p { margin-top: 7px; color: var(--muted); font-size: 11px; }
.notice { padding: 15px 18px; border: 1px solid var(--soft); border-radius: 5px; color: var(--muted); font: 11px/1.7 var(--mono); margin-bottom: 24px; }
.vault-run { border: 1px solid var(--soft); border-radius: 8px; background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.vault-summary { display: flex; gap: 18px; padding: 20px; align-items: center; }
.vault-summary .run-numbers { display: flex; gap: 28px; margin-left: auto; }
.vault-summary .run-numbers span { color: var(--muted); font: 10px/1.5 var(--mono); }
.vault-summary .run-numbers b { display: block; font: 500 25px/1.4 var(--heading); color: var(--ink); }
.vault-details { border-top: 1px solid var(--soft); }
.vault-status-group + .vault-status-group { border-top: 1px solid var(--soft); }
.vault-status-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; background: color-mix(in srgb,var(--surface) 78%,var(--canvas-panel)); }
.vault-status-head h3 { margin: 0; font: 600 10px/1.5 var(--mono); letter-spacing: .16em; color: var(--muted); }
.vault-status-group.charged .vault-status-head h3 { color: var(--success); }
.vault-status-group.ccn .vault-status-head h3 { color: var(--ink); }
.vault-status-group .empty { padding: 24px 20px; }
.vault-status-group table { margin: 0; }
.vault-browser { display: grid; gap: 16px; }
.vault-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--soft); }
.vault-tabs button { border: 0; border-radius: 0; padding: 12px 2px 10px; min-height: 40px; color: var(--muted); background: transparent; border-bottom: 2px solid transparent; }
.vault-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.vault-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.vault-metric { min-height: 84px; padding: 18px; border: 1px solid var(--soft); border-left: 2px solid var(--accent); border-radius: 4px; background: var(--surface); }
.vault-metric strong { display: block; overflow: hidden; color: var(--accent); font: 500 24px/1.2 var(--heading); text-overflow: ellipsis; white-space: nowrap; }
.vault-metric span { display: block; margin-top: 8px; color: var(--muted); font: 9px/1.4 var(--mono); letter-spacing: .16em; }
.vault-tools { display: grid; grid-template-columns: minmax(180px,1fr) auto auto auto auto; gap: 8px; }
.vault-search { min-width: 0; height: 40px; }
.vault-bin-list { display: grid; gap: 6px; }
.vault-bin-group { overflow: hidden; border: 1px solid var(--soft); border-radius: 4px; background: var(--surface); content-visibility: auto; contain-intrinsic-size: 58px; }
.vault-bin-summary { display: grid; grid-template-columns: 74px minmax(160px,1fr) auto; gap: 12px; align-items: center; min-height: 58px; padding: 10px 14px; }
.vault-bin-code { color: var(--accent); font: 600 16px/1 var(--mono); letter-spacing: .08em; }
.vault-bin-meta { display: grid; gap: 4px; min-width: 0; }
.vault-bin-meta b { overflow: hidden; color: var(--ink); font: 600 10px/1.3 var(--mono); letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.vault-bin-meta span { color: var(--muted); font: 8px/1.3 var(--mono); letter-spacing: .12em; }
.vault-bin-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.vault-bin-toggle { width: 34px; min-width: 34px; padding: 0; border: 0; color: var(--muted); background: transparent; }
.vault-bin-cards { border-top: 1px solid var(--soft); overflow-x: auto; }
.vault-bin-cards table { margin: 0; }
.footer { min-height: 68px; border-top: 1px solid var(--soft); font: 9px/1.6 var(--mono); letter-spacing: .08em; color: var(--muted); padding-top: 16px; padding-bottom: 16px; }
.footer-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.motion-button { font-size: 9px; padding: 3px 9px; min-height: 34px; color: var(--muted); border-color: var(--soft); background: var(--canvas-panel); }
.error { color: var(--red); font: 12px/1.6 var(--mono); min-height: 18px; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--bg); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; margin-right: 8px; vertical-align: middle; }
.toast { position: fixed; bottom: 28px; right: 28px; z-index: 20; padding: 16px 22px; max-width: 450px; border: 1px solid var(--accent); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); font: 12px/1.6 var(--mono); animation: page-in 180ms ease-out; }
.toast.error { border-color: var(--red); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes text-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .5; } }
@media (max-width: 1100px) {
  .shell { padding-left: 28px; padding-right: 28px; }
  .login-header { padding-left: 28px; padding-right: 28px; }
  .nav { gap: 28px; }
  .links a { padding: 9px 10px; }
  .panel-body { padding: 18px; }
  .inline-fields { gap: 9px; }
  .vault-summary .run-numbers { gap: 16px; }
}
@media (max-width: 800px) {
  .shell { padding-left: 20px; padding-right: 20px; }
  .login-header { padding-left: 20px; padding-right: 20px; }
  .nav { flex-wrap: wrap; gap: 12px 20px; padding-top: 19px; }
  .identity { font-size: 11px; }
  .links { order: 3; width: 100%; padding-bottom: 12px; }
  .links a { flex: 1; justify-content: center; }
  .workspace, .dashboard-grid { grid-template-columns: 1fr; }
  .stat { padding: 16px 12px; }
  .stat .number { font-size: 29px; }
  .stat .eyebrow { font-size: 9px; }
  .page { padding-top: 28px; }
  .page-head h1 { font-size: 33px; }
  .vault-summary { flex-wrap: wrap; }
  .vault-summary .run-numbers { width: 100%; margin: 0; justify-content: space-between; }
  .vault-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vault-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vault-search { grid-column: 1 / -1; }
  .vault-bin-summary { grid-template-columns: 62px minmax(0,1fr); }
  .vault-bin-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .panel-head { flex-wrap: wrap; }
  .toast { left: 18px; right: 18px; bottom: 18px; }
  .footer { font-size: 8px; gap: 12px; }
}



.login-only { background: var(--login-bg); color: var(--login-ink); color-scheme: dark; }
#login-field, #motion-field { display: block; position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
#motion-field { contain: strict; }
.login-header { position: absolute; inset: 0 0 auto; min-height: 82px; padding: 0 44px; background: var(--header-bg); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--login-header-rule); }
.login-header .brand { color: var(--login-ink); font-size: 22px; }
.login-header .brand .mark, .login-header .brand sup { color: var(--login-accent); border-color: var(--login-accent); }
.login-header .badge { color: var(--login-label); border-color: var(--login-header-rule); background: transparent; }
.login-header .motion-button { color: var(--login-label); border-color: var(--login-header-rule); background: var(--login-input); min-height: 34px; }
.login-header :focus-visible { outline-color: var(--login-accent); }
.login-actions { gap: 18px; }
@media (max-width: 620px) {
  .login-header { flex-wrap: nowrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .login-actions { width: auto; justify-content: flex-end; gap: 12px; }
}
.login-stage { min-height: 100svh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(380px,.65fr); align-items: stretch; padding: 82px 0 0; overflow: hidden; }
.login-scene { position: relative; min-width: 0; display: grid; place-items: center; overflow: hidden; border-right: 1px solid #31565066; background: radial-gradient(circle at 50% 45%,#173b3b99 0,transparent 34%),linear-gradient(135deg,#07101499,#0b1518cc); }
.login-scene::before { content:''; position:absolute; inset:0; opacity:.23; background: repeating-linear-gradient(0deg,transparent 0 4px,#8ce5cd12 5px 6px),linear-gradient(90deg,transparent 49.9%,#8ce5cd19 50%,transparent 50.1%),linear-gradient(0deg,transparent 49.9%,#8ce5cd19 50%,transparent 50.1%); mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 82%,transparent); }
.login-scene::after { content:''; position:absolute; inset:0; background:linear-gradient(115deg,transparent 35%,#8ce5cd0a 49%,transparent 62%); animation:sentinel-sweep 7s linear infinite; }
.scene-index,.scene-status { position:absolute; z-index:2; font:10px/1.5 var(--mono); letter-spacing:.2em; color:#8ce5cd99; }
.scene-index { top:34px; left:40px; }.scene-status { right:40px; bottom:30px; }
.scene-copy { position:absolute; z-index:2; left:6%; bottom:7%; width:min(460px,72%); }
.scene-copy h2 { margin:10px 0 12px; font-size:clamp(30px,4vw,62px); letter-spacing:-.055em; color:#eaf8f4; }
.scene-copy>p:last-child { max-width:46ch; color:#96b4af; }
.login-sentinel { position:relative; width:min(52vw,590px); aspect-ratio:1; display:grid; place-items:center; filter:drop-shadow(0 0 28px #67e6c928); }
.sentinel-orbit { position:absolute; border:1px solid #8ce5cd55; border-radius:50%; }
.orbit-outer { inset:5%; border-style:dashed; animation:sentinel-turn 28s linear infinite; }
.orbit-inner { inset:23%; border-color:#8ce5cd2e; animation:sentinel-turn 16s linear infinite reverse; }
.orbit-outer::before,.orbit-outer::after,.orbit-inner::before,.orbit-inner::after { content:''; position:absolute; width:8px; height:8px; background:#8ce5cd; box-shadow:0 0 20px #8ce5cd; transform:rotate(45deg); }
.orbit-outer::before { left:13%; top:13%; }.orbit-outer::after { right:13%; bottom:13%; }.orbit-inner::before { right:8%; top:30%; }.orbit-inner::after { left:8%; bottom:30%; }
.sentinel-core { width:86px; aspect-ratio:1; display:grid; place-items:center; border:1px solid #8ce5cd; clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%); background:#0b1719; color:#c8fff0; font:500 38px/1 var(--heading); box-shadow:0 0 55px #6be6c93d; z-index:3; }
.sentinel-eye { position:absolute; top:46%; width:25%; height:11%; overflow:hidden; border:2px solid #8ce5cd; background:#061013; clip-path:polygon(0 50%,20% 12%,50% 0,80% 12%,100% 50%,80% 88%,50% 100%,20% 88%); box-shadow:0 0 28px #6be6c93b; }
.sentinel-eye i { position:absolute; left:50%; top:50%; width:23%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; border:2px solid #d5fff5; background:#8ce5cd; box-shadow:0 0 22px #8ce5cd; animation:sentinel-look 5s ease-in-out infinite; }
.eye-left { left:8%; }.eye-right { right:8%; }
.sentinel-scan { position:absolute; left:8%; right:8%; top:50%; height:1px; background:linear-gradient(90deg,transparent,#baffed,transparent); box-shadow:0 0 18px #8ce5cd; animation:sentinel-scan 3.8s ease-in-out infinite; }
.login-card { --login-accent:#8ce5cd; --login-hover:#b1f2e0; --login-border:#315650; width:auto; max-width:none; margin:auto; padding:42px clamp(28px,4vw,64px); position:relative; border:0; border-radius:0; background:transparent; box-shadow:none; animation:page-in 240ms ease-out both; }
.login-card::before { content:''; position:absolute; left:0; top:0; width:38px; height:38px; border-left:1px solid #8ce5cd66; border-top:1px solid #8ce5cd66; }.login-card::after { content:''; position:absolute; right:0; bottom:0; width:38px; height:38px; border-right:1px solid #8ce5cd66; border-bottom:1px solid #8ce5cd66; }
.login-kicker { margin-bottom:16px; color:#8ce5cd; font:10px/1.5 var(--mono); letter-spacing:.22em; }
.login-intro { margin:-18px 0 28px; color:var(--login-label); max-width:35ch; }
.login-card .login-heading { margin-bottom:30px; font-size:clamp(34px,4vw,52px); }
.login-card .login-form input { border-radius:2px; background:#081317cc; min-height:52px; }
.login-card .login-form button.primary { border-radius:2px; min-height:50px; box-shadow:0 4px 22px #8ce5cd0f; }
.login-system-state { display:flex; align-items:center; gap:9px; color:var(--login-label); font:9px/1 var(--mono); letter-spacing:.14em; }.login-state-dot { width:6px; height:6px; border-radius:50%; background:#8ce5cd; box-shadow:0 0 12px #8ce5cd; }
@keyframes sentinel-turn { to { transform:rotate(360deg); } } @keyframes sentinel-look { 0%,100% { transform:translate(-68%,-50%); } 50% { transform:translate(-32%,-50%); } } @keyframes sentinel-scan { 0%,100% { transform:translateY(-105px); opacity:0; } 20%,80% { opacity:1; } 50% { transform:translateY(105px); } } @keyframes sentinel-sweep { from { transform:translateX(-55%); } to { transform:translateX(55%); } }
.login-only { background: radial-gradient(ellipse at 90% 15%,#14323266,transparent 52%), radial-gradient(ellipse at 0% 95%,#14293488,transparent 50%),#0b1015; }
.login-heading { margin-bottom: 27px; font: 500 30px/1.2 var(--heading); letter-spacing: -.04em; color: var(--login-ink); }
.login-form { display: grid; gap: 22px; }
.login-form label { color: var(--login-label); font: 500 11px/1.6 var(--body); letter-spacing: .1em; }
.login-form input { margin-top: 9px; min-height: 48px; border: 1px solid var(--login-border); border-radius: 4px; background: var(--login-input); color: var(--login-ink); font: 14px/1.5 var(--body); padding: 12px 13px; box-shadow: none; }
.login-form input::placeholder { color: var(--login-placeholder); opacity: 1; }
.login-form input:hover { border-color: var(--login-label); }
.login-form input:focus { border-color: var(--login-accent); }
.login-form :focus-visible { outline-color: var(--login-accent); }
.login-form button.primary { width: 100%; min-height: 48px; margin-top: 6px; background: var(--login-accent); border-color: var(--login-accent); border-radius: 4px; color: var(--login-bg); font: 600 12px/1.5 var(--body); letter-spacing: .05em; }
.login-form button.primary:hover:not(:disabled) { background: var(--login-hover); border-color: var(--login-hover); box-shadow: none; }
.login-form .error { min-height: 0; font: 12px/1.6 var(--body); color: var(--login-error); }
.login-form .error:empty { display: none; }
.login-form .spinner { border-color: var(--login-bg); border-right-color: transparent; }
@media (max-width: 620px) {
  .login-header { min-height: 72px; padding: 12px 22px; }
  .login-header .brand { font-size: 19px; }
  .login-header .badge { display: none; }
  .login-form input { font-size: 16px; }
}
@media (max-width: 800px) {
  .login-stage { grid-template-columns:1fr; padding-top:72px; overflow:auto; }
  .login-scene { min-height:310px; border-right:0; border-bottom:1px solid #31565066; }
  .login-sentinel { width:min(76vw,360px); }
  .scene-copy { left:24px; bottom:20px; width:70%; }
  .scene-copy h2 { font-size:30px; margin:6px 0; }
  .scene-copy>p:last-child,.scene-status { display:none; }
  .scene-index { top:20px; left:24px; }
  .login-card { width:min(100%,520px); padding:42px 28px 48px; }
}
@media (max-width: 440px) {
  .login-scene { min-height:250px; }
  .login-sentinel { width:270px; transform:translateY(-10px); }
  .sentinel-core { width:64px; font-size:28px; }
  .scene-copy h2 { font-size:25px; }
  .login-card { padding:36px 24px 44px; }
  .login-system-state { display:none; }
}
@media (prefers-reduced-motion: reduce) { .sentinel-orbit,.sentinel-eye i,.sentinel-scan,.login-scene::after { animation:none!important; } }
@media (max-height: 600px) {
  .login-header { min-height: 56px; }
  .admin-login-stage { align-items: start; padding-top: 120px; }
}

.admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#admin-users { min-width: 560px; }
@media (max-width: 620px) {
  .links { gap: 4px; }
  .links a { padding: 9px 8px; font-size: 10px; gap: 6px; min-width: 0; }
  .admin-stats .eyebrow { font-size: 8px; letter-spacing: .04em; }
}

/* Compact operational layout, scoped to Keys so other screens retain their spacing. */
.keys-page { padding-top: 24px; padding-bottom: 28px; }
.keys-page .page-head { margin-bottom: 18px; }
.keys-page .page-head h1 { font-size: 32px; margin: 5px 0; }
.keys-layout { display: grid; gap: 14px; }
.key-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.key-actions > *, .keys-layout > *, .key-generate-form > *, .key-time-form > * { min-width: 0; }
.keys-page .panel-head { padding: 11px 16px; }
.keys-page .panel-body { padding: 14px 16px; }
.keys-page .stack { gap: 10px; }
.key-generate-form { display: grid; grid-template-columns: minmax(0, 1fr) 152px auto; gap: 10px 12px; align-items: end; }
.key-generate-form > .primary { grid-column: 3; grid-row: 1; }
.key-name-field { grid-column: 1; grid-row: 1; }
.key-duration-field { grid-column: 2; grid-row: 1; }
.key-custom-minutes { grid-column: 1 / -1; }
#key-minutes { display: block; max-width: 180px; }
.key-generate-form > div > select { margin-top: 4px; }
.key-generate-form > .help, .key-generate-form > .error { grid-column: 1 / -1; }
.key-time-form { display: grid; grid-template-columns: minmax(0, 1fr) 80px 92px auto; gap: 10px 12px; align-items: end; }
.key-time-form > .primary { grid-column: 4; grid-row: 1; }
.time-unit-field select { margin-top: 4px; }
.key-time-form > .help, .key-time-form > .error { grid-column: 1 / -1; }
.keys-page input, .keys-page select { min-height: 44px; padding: 9px 11px; }
.keys-page label input, .keys-page label select { margin-top: 4px; }
.keys-page button.primary { min-height: 44px; }
.keys-page .error:empty, .keys-page [role=status]:empty, #created-key:empty, #account-subscription:empty { display: none; }
#created-key { grid-template-columns: minmax(0, 1fr) auto; align-items: end; border-top: 1px solid var(--soft); padding-top: 12px; }
#created-key > .notice { grid-column: 1 / -1; margin: 0; padding: 9px 11px; }
#created-key > label { grid-column: 1; }
#created-key > button { grid-column: 2; min-height: 44px; }
#created-key > [role=status] { grid-column: 1 / -1; }
#account-subscription:not(:empty) { border-top: 1px solid var(--soft); padding-top: 10px; }
#account-subscription .stack { gap: 5px; }
#account-subscription .badge { justify-self: start; }
.key-inventory-content { display: grid; gap: 10px; padding: 12px 16px; }
.key-status-results > .empty { padding: 16px 0; }
.keys-page .empty { padding: 18px 16px; }
.keys-page td, .keys-page th { padding: 10px 12px; }
.key-status-results > .table-wrap { max-height: 320px; overflow: auto; }
.keys-page th { position: sticky; top: 0; z-index: 1; }
.keys-page td .small { margin-left: 0; }
@media (max-width: 900px) {
  .key-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .keys-page .panel-head, .keys-page .panel-body { padding: 12px; }
  .key-time-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .key-time-form > div:first-child { grid-column: 1 / -1; }
  .key-time-form > .primary { grid-column: 1 / -1; grid-row: 3; }
  .key-generate-form { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .key-name-field { grid-column: 1 / -1; grid-row: 1; }
  .key-duration-field { grid-column: 1; grid-row: 2; }
  .key-generate-form > .primary { grid-column: 2; grid-row: 2; }
  .key-generate-form > .primary { padding-left: 10px; padding-right: 10px; }
  #created-key { grid-template-columns: minmax(0, 1fr); }
  #created-key > button { grid-column: 1; justify-self: start; }
  .key-inventory-content { padding: 12px; }
}


.key-inventory-heading { flex-wrap: wrap; }
.key-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; width: min(100%, 520px); margin-left: auto; }
#key-search { min-width: 0; min-height: 40px; padding: 8px 10px; }
.key-search-form button { min-height: 40px; }
.key-name-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 650px) {
  .key-search-form { width: 100%; margin-left: 0; }
}


.key-status-results { display: grid; gap: 10px; min-width: 0; }
.key-status-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--soft); padding-bottom: 8px; }
.key-status-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 38px; padding: 7px 11px; border-color: transparent; background: transparent; color: var(--muted); }
.key-status-tabs button.active { color: var(--accent); border-color: var(--border); background: var(--raised); }
.key-filter-count { min-width: 16px; font-size: 10px; color: var(--muted); }
.key-credential { min-width: 210px; max-width: 420px; }
.key-value { display: block; max-width: 400px; white-space: normal; overflow-wrap: anywhere; font: 12px/1.6 var(--mono); }
.key-credential-actions { display: flex; gap: 6px; margin-top: 6px; }
.key-credential > .help, .key-credential > .error { max-width: 300px; margin-top: 5px; white-space: normal; }
.key-state { font-size: 11px; }
.key-state-active { color: var(--success); }
.key-state-expired { color: var(--amber); }
.key-state-revoked { color: var(--red); }
.key-legacy-note { border-top: 1px solid var(--soft); padding-top: 10px; }
@media (max-width: 440px) {
  .key-status-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
  .key-status-tabs button { padding: 7px 5px; font-size: 10px; min-height: 40px; gap: 4px; }
}


.key-row-actions { display: flex; align-items: center; gap: 6px; }
.key-time-notice { color: var(--success); font: 12px/1.6 var(--mono); }
.key-time-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(420px,100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; overflow-y: auto; padding: 24px; border: 0; border-left: 1px solid var(--border); background: var(--surface); color: var(--ink); box-shadow: -18px 0 50px var(--shadow-ink); }
.key-time-drawer::backdrop { background: #02070dbb; }
.key-time-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.key-time-heading h2 { font: 500 24px/1.2 var(--heading); }
.key-time-name { margin-bottom: 6px; overflow-wrap: anywhere; }
.key-time-drawer > .help { display: block; margin-bottom: 16px; }
.key-time-current { padding: 14px 0; border-block: 1px solid var(--soft); margin: 18px 0; font: 12px/1.7 var(--mono); }
.key-time-drawer form, .key-time-fields { display: grid; gap: 18px; }
.key-time-fields { min-width: 0; padding: 0; margin: 0; border: 0; }
.key-time-fields .field { display: grid; gap: 8px; min-width: 0; }
.key-time-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.key-time-drawer .error:empty { display: none; }

#cursor-glow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { #cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) { #motion-field { display: none; } }


.dashboard-activity { margin-bottom: 24px; }
.subscription-floating { --timer-accent: var(--motion-color); position: fixed; top: 124px; right: max(44px,calc((100vw - 1440px)/2 + 44px)); width: 224px; padding: 18px; display: grid; gap: 16px; z-index: 25; border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(140deg,#55fff00d,transparent 65%),var(--canvas-panel); box-shadow: 0 12px 36px var(--shadow-ink); }
.subscription-floating::before, .subscription-floating::after { content: ''; position: absolute; width: 13px; height: 13px; pointer-events: none; border-color: var(--timer-accent); border-style: solid; }
.subscription-floating::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
.subscription-floating::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }
.timer-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.timer-label { font: 9px/1.4 var(--mono); letter-spacing: .08em; color: var(--muted); }
.timer-state { margin-left: auto; padding: 3px 5px; border: 1px solid var(--soft); border-radius: 3px; color: var(--timer-accent); font: 8px/1.3 var(--mono); letter-spacing: .04em; white-space: nowrap; }
.timer-clock-icon { position: relative; width: 21px; height: 21px; flex: 0 0 21px; border: 1px solid var(--timer-accent); border-radius: 50%; color: var(--timer-accent); }
.timer-clock-icon::before, .timer-clock-icon::after { content: ''; position: absolute; background: currentColor; border-radius: 1px; }
.timer-clock-icon::before { width: 1px; height: 6px; left: 9px; top: 4px; }
.timer-clock-icon::after { width: 5px; height: 1px; left: 9px; top: 9px; transform: rotate(30deg); transform-origin: left; }
.subscription-floating strong { text-transform: uppercase; font: 500 18px/1.4 var(--heading); font-variant-numeric: tabular-nums; letter-spacing: -.025em; color: var(--ink); overflow-wrap: anywhere; }
.subscription-floating[data-state='urgent'], .subscription-floating[data-state='inactive'], .subscription-floating[data-state='unavailable'] { --timer-accent: var(--amber); }
.subscription-floating[data-state='loading'] .timer-state { color: var(--muted); }
.subscription-floating strong.urgent { color: var(--amber); }
.subscription-floating [hidden] { display: none; }
@media (min-width: 1101px) { .user-time-visible main.shell.page { padding-right: 292px; } }
@media (max-width: 1100px) {
  .subscription-floating { top: auto; bottom: max(12px,env(safe-area-inset-bottom)); right: 20px; left: 20px; width: auto; padding: 12px 16px; gap: 8px; }
  .subscription-floating strong { font-size: 19px; }
  .user-time-visible main.page { padding-bottom: 150px; }
}

.checker-mobile-tabs, .checker-mobile-dock, .mobile-input-expand { display: none; }
@media (max-width: 620px) {
  .checker-page { padding: 14px 16px 16px !important; min-height: 0; max-width: none; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; animation: none; }
  .checker-page .page-head { margin-bottom: 14px; }
  .checker-page .page-head h1 { font-size: 24px; line-height: 1.2; }
  .checker-page .page-head p:not(.eyebrow), .checker-page .page-head .eyebrow { display: none; }
  .checker-page .stats { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 14px; }
  .checker-page .stat { padding: 10px 5px; text-align: center; }
  .checker-page .stat .number { font-size: 20px; }
  .checker-page .stat .eyebrow { font-size: 8px; letter-spacing: 0; }
  .checker-mobile-tabs { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; padding: 4px; margin-bottom: 14px; background: var(--canvas-panel); border: 1px solid var(--soft); border-radius: 8px; }
  .checker-mobile-tabs button { border-color: transparent; background: transparent; min-height: 44px; padding: 8px; color: var(--muted); }
  .checker-mobile-tabs button[aria-pressed='true'] { background: var(--raised); color: var(--ink); border-color: var(--border); }
  .checker-page .workspace { display: block; }
  .checker-page[data-mobile-section='cards'] .workspace > :last-child,
  .checker-page[data-mobile-section='settings'] .workspace > :first-child,
  .checker-page[data-mobile-section='settings'] > .results { display: none; }
  .checker-page .panel-head { padding: 12px 14px; }
  .checker-page .panel-body { padding: 14px; }
  .checker-page .panel-head > .badge:not(.sim) { display: none; }
  .checker-page .stack { gap: 12px; }
  .checker-page .cards-area { height: 145px; min-height: 100px; resize: vertical; }
  .checker-page input, .checker-page select, .checker-page textarea { font-size: 16px; }
  .checker-page textarea::placeholder { font-size: 12px; line-height: 1.65; letter-spacing: .02em; }
  .checker-mobile-tabs button { font-size: 10px; }
  .checker-mobile-dock .start-actions button { font-size: 11px; }
  .checker-page.cards-expanded .cards-area { height: 45dvh; }
  .mobile-input-expand { display: block; width: 100%; margin-top: 12px; min-height: 44px !important; }
  .mobile-proxy-details, .mobile-advanced-details { border: 1px solid var(--soft); border-radius: 7px; margin-bottom: 12px; background: var(--canvas-panel); }
  .mobile-advanced-details { margin: 16px 0 0; padding: 0 12px; }
  .mobile-proxy-details summary, .mobile-advanced-details summary { padding: 13px; min-height: 46px; cursor: pointer; color: var(--ink); font: 12px/1.6 var(--mono); }
  .mobile-advanced-details summary { padding-left: 0; }
  .mobile-advanced-details > .help { margin-bottom: 12px; }
  .checker-page .inline-fields { grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
  .checker-page .controls { gap: 10px; }
  .checker-page .section-rule { margin: 15px 0; }
  .checker-page .results { margin-top: 0; }
  .checker-page .results .panel-head { flex-wrap: wrap; gap: 8px; }
  .checker-page .results .panel-head .row { gap: 5px; }
  .checker-page .results .small { padding: 7px; min-height: 44px; font-size: 9px; }
  .checker-page .results .tabs { flex-wrap: nowrap; overflow-x: auto; padding: 5px; }
  .checker-page .results .tabs button { flex-shrink: 0; min-height: 44px; padding: 8px; font-size: 9px; }
  .checker-page .results td, .checker-page .results th { padding: 9px 10px; font-size: 10px; }
  .checker-mobile-dock { display: grid; position: static; grid-row: 4; min-width: 0; z-index: 30; background: var(--canvas-panel); border-top: 1px solid var(--border); padding: 10px 16px max(10px,env(safe-area-inset-bottom)); gap: 7px; }
  .checker-mobile-dock .start-actions { margin: 0; grid-template-columns: 1fr 86px; gap: 8px; }
  .checker-mobile-dock .start-actions button { min-height: 46px; }
  .checker-mobile-dock .progress-line { border: 0; padding: 0; gap: 5px; font-size: 8px; }
  .checker-mobile-dock progress { width: 80px; }
  .checker-mobile-dock .error:empty { display: none; }
  .checker-mobile-dock .error { font-size: 11px; }
  body:has(.checker-page) .subscription-floating { position: relative; top: auto; right: auto; bottom: auto; left: auto; margin: 10px 20px 0; width: auto; padding: 7px 10px; display: flex; align-items: center; gap: 10px; box-shadow: none; }
  body:has(.checker-page) { overflow: hidden; }
  body:has(.checker-page) #app { position: fixed; inset: 0; height: auto; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; overflow: hidden; }
  body:has(.checker-page) #main { grid-row: 3; margin: 0; height: 100%; min-height: 0; min-width: 0; }
  body:has(.checker-page) footer { display: none; }
  body:has(.checker-page) .topbar { grid-row: 1; }
  body:has(.checker-page) .nav { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 12px; min-height: 0; padding-top: 10px; padding-bottom: 0; }
  body:has(.checker-page) .brand { font-size: 18px; }
  body:has(.checker-page) .brand .mark { width: 25px; height: 29px; margin-right: 8px; }
  body:has(.checker-page) .identity { margin: 0; min-width: 0; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; }
  body:has(.checker-page) .identity > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
  body:has(.checker-page) .identity button { flex-shrink: 0; min-height: 44px; padding: 6px 9px; }
  body:has(.checker-page) .links { grid-column: 1 / -1; min-width: 0; padding-bottom: 8px; }
  body:has(.checker-page) .subscription-floating { grid-row: 2; }
  body:has(.checker-page) .subscription-floating strong { font-size: 12px; margin-left: auto; }
  body:has(.checker-page) .timer-label, body:has(.checker-page) .timer-state { display: none; }
  body:has(.checker-page) .subscription-floating > p:empty { display: none; }
  body:has(.checker-page) .subscription-floating:has(#subscription-time-error:not([hidden])) { flex-wrap: wrap; }
  body:has(.checker-page) .subscription-floating #subscription-time-error:not([hidden]) { display: block; width: 100%; font-size: 10px; }
  body:has(.checker-page) .subscription-floating button { min-height: 36px; }
  body:has(.checker-page) .toast { z-index: 40; bottom: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

#proxy-test-results th,#proxy-test-results td{padding:5px 8px;font-size:10px;line-height:1.3}#proxy-test-results p{margin:0 0 5px}#proxy-test-results[hidden]{display:none}

/* Night Studio — lightweight login and dashboard */
.login-only { background:radial-gradient(circle at 18% 28%,#71876224,transparent 34%),#101410; }
.login-only #login-field,.login-only #motion-field,.login-only #cursor-glow,.login-only .login-scene { display:none!important; }
.login-only .login-header { position:fixed; min-height:78px; background:transparent; border:0; backdrop-filter:none; }
.login-only .login-system-state { color:#8f9d8c; }
.login-only .login-state-dot { background:#b7d99c; box-shadow:none; }
.login-only .login-stage { display:grid; grid-template-columns:1fr; place-items:center; padding:100px 24px 28px; overflow:auto; }
.login-only .login-card { width:min(100%,470px); margin:0; padding:46px 44px; border:1px solid #334033; border-radius:24px; background:#171d17; box-shadow:0 24px 80px #02040266; }
.login-only .login-card::before,.login-only .login-card::after { display:none; }
.login-only .login-kicker { color:#b7d99c; letter-spacing:.16em; }
.login-only .login-heading { margin:0 0 12px; font-size:44px; line-height:1.04; color:#f1f4ed; }
.login-only .login-intro { margin:0 0 30px; color:#9aa696; }
.login-only .login-form { gap:19px; }
.login-only .login-form label { color:#a2ad9f; }
.login-only .login-form input { border:1px solid #3c493c; border-radius:12px; background:#101510; color:#eef3e9; min-height:54px; }
.login-only .login-form input:focus { border-color:#b7d99c; box-shadow:0 0 0 3px #b7d99c18; }
.login-only .login-form button.primary { border-radius:12px; min-height:52px; background:#b7d99c; border-color:#b7d99c; color:#10200d; }
.login-only .login-form button.primary:hover:not(:disabled) { background:#cae7b3; border-color:#cae7b3; }
.login-only .brand .mark { border-radius:8px; clip-path:none; border-color:#b7d99c; color:#b7d99c; }

.app-view { background:radial-gradient(circle at 18% 12%,#6c835a17,transparent 28%),#101410; }
.app-view #motion-field,.app-view #cursor-glow { display:none; }
.app-view #app { min-height:100vh; padding-left:230px; }
.app-view .topbar { position:fixed; inset:0 auto 0 0; width:230px; z-index:20; border:0; border-right:1px solid #2c372c; background:#141a14; backdrop-filter:none; }
.app-view .topbar .nav { width:100%; height:100%; min-height:100vh; padding:28px 20px; display:flex; flex-direction:column; align-items:stretch; gap:0; }
.app-view .topbar .brand { margin-bottom:42px; font-size:18px; }
.app-view .topbar .brand .mark { border-radius:7px; clip-path:none; border-color:#b7d99c; color:#b7d99c; }
.app-view .topbar .links { display:grid; gap:7px; width:100%; }
.app-view .topbar .links a { min-height:42px; padding:10px 12px; border-radius:10px; }
.app-view .topbar .links a::before { border-radius:50%; transform:none; }
.app-view .topbar .links a.active { color:#eef3e9; background:#253025; border-color:transparent; }
.app-view .topbar .links a.active::before { background:#b7d99c; border-color:#b7d99c; }
.app-view .topbar .identity { margin:auto 0 0; display:grid; gap:12px; align-items:start; min-width:0; }
.app-view .topbar .identity>span { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-view .topbar .identity button { width:100%; }
.app-view main.shell.page { width:auto; max-width:1280px; padding:42px 44px 150px; margin:0 auto; }
.app-view .page-head { margin-bottom:26px; }
.app-view .page-head h1 { font-size:38px; }
.app-view .page-head .badge { color:#b7d99c; border-color:#334333; background:#1b251b; }
.app-view .stats { gap:14px; border:0; background:transparent; overflow:visible; }
.app-view .stat { border:1px solid #303c30; border-radius:15px; background:#171e17; padding:18px 20px; }
.app-view .stat:not(:last-child)::after { display:none; }
.app-view .stat .number { font-size:32px; }
.app-view .stat.cyan .number { color:#b7d99c; }
.app-view .dashboard-activity { border-color:#303c30; border-radius:16px; background:#171e17; }
.app-view .dashboard-activity .panel-head { border-color:#303c30; }
.app-view .activity { padding:16px 20px; }
.app-view .notice { border-color:#303c30; border-radius:13px; background:#151c15; }
.app-view .subscription-floating { top:20px; right:28px; bottom:auto; left:auto; width:235px; min-height:58px; z-index:30; border-color:#334333; border-radius:13px; background:#1a221af2; box-shadow:0 14px 35px #02040255; grid-template-columns:auto 1fr; padding:11px 14px; }
.app-view .subscription-floating .timer-heading { grid-column:1 / -1; }
.app-view .subscription-floating strong { font-size:14px; line-height:1.25; }
.app-view footer { display:none; }
@media (max-width:800px) {
  .login-only .login-header { padding:14px 20px; }
  .login-only .login-card { padding:36px 27px; border-radius:19px; }
  .login-only .login-heading { font-size:36px; }
  .app-view #app { padding-left:0; }
  .app-view .topbar { position:static; width:auto; border-right:0; border-bottom:1px solid #2c372c; }
  .app-view .topbar .nav { min-height:0; padding:14px 20px; flex-direction:row; flex-wrap:wrap; align-items:center; gap:10px 16px; }
  .app-view .topbar .brand { margin:0; }
  .app-view .topbar .links { order:3; display:flex; overflow:auto; }
  .app-view .topbar .identity { margin-left:auto; display:flex; }
  .app-view .topbar .identity>span { display:none; }
  .app-view main.shell.page { padding:28px 20px 160px; }
  .app-view .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app-view .stat { padding:15px; }
  .app-view .subscription-floating { position:fixed; left:20px; right:20px; bottom:14px; width:auto; }
}

.app-view { --bg:#101410; --surface:#171e17; --raised:#222b22; --canvas-panel:#111711; --border:#425142; --soft:#303c30; --accent:#b7d99c; --accent-hover:#cce8b5; --cyan:#b7d99c; --grid:#29412d; --header-bg:#141a14; }
.app-view .panel,.app-view .vault-browser,.app-view .vault-bin-group { border-color:#303c30; background:#171e17; border-radius:15px; }
.app-view .panel-head,.app-view .vault-details { border-color:#303c30; }
.app-view button { border-radius:10px; }
.app-view input,.app-view select,.app-view textarea { border-radius:10px; }
.app-view .topbar .identity { margin-bottom:0; }
@media (min-width:1101px) {
  .app-view main.shell.page.checker-page { position:fixed; top:12px; bottom:12px; left:242px; right:12px; width:auto; height:auto; max-width:none; min-height:0; padding:0; margin:0; overflow:hidden; display:flex; flex-direction:column; box-sizing:border-box; }
  .app-view:has(.checker-page) .subscription-floating { left:auto; right:28px; top:20px; bottom:auto; width:235px; }
  .app-view .checker-page>.stats { margin-bottom:8px; }
  .app-view .checker-page .stat { padding:11px 18px; border-radius:12px; }
  .app-view .checker-page .stat .number { font-size:27px; line-height:1.15; }
  .app-view .checker-page .stat .eyebrow { margin-bottom:3px; font-size:9px; }
  .app-view .checker-page .workspace { gap:8px; }
  .app-view .checker-page .workspace .panel-head { padding:6px 10px; }
  .app-view .checker-page .workspace .panel-body { padding:7px 10px; }
  .app-view .checker-page .workspace .stack { gap:5px; }
  .app-view .checker-page .run-configuration .controls { gap:4px 8px; }
  .app-view .checker-page .run-configuration input,.app-view .checker-page .run-configuration select { min-height:27px; padding:3px 7px; }
  .app-view .checker-page .run-configuration .section-rule { margin:4px 0; }
  .app-view .checker-page .run-configuration .mobile-advanced-details>summary { min-height:26px; padding:4px 0; }
  .app-view .checker-page .cards-area { height:96px; min-height:96px; line-height:1.35; }
  .app-view .checker-page .start-actions { margin-top:5px; }
  .app-view .checker-page .start-actions button { min-height:30px; padding:5px 10px; }
  .app-view .checker-page .panel,.app-view .checker-page .results { border-radius:10px; }
  .app-view .checker-page .results { flex:1 1 0; min-height:360px; margin-top:2px; margin-bottom:0; }
  .app-view .checker-page .results .panel-head { padding:8px 12px; }
  .app-view .checker-page .results .panel-label { font-size:11px; }
  .app-view .checker-page .results .tabs { padding:5px 10px; gap:6px; }
  .app-view .checker-page .results .tabs button { min-height:32px; padding:5px 12px; font-size:10px; }
  .app-view .checker-page .results .small { min-height:32px; padding:5px 11px; font-size:10px; }
  .app-view .checker-page .results .empty { padding:20px 14px; font-size:12px; }
  .app-view .checker-page .results th,.app-view .checker-page .results td { padding:5px 10px; font-size:11px; line-height:1.25; }
  .app-view .checker-page .results .progress-line { padding:8px 14px; font-size:10px; }
  .app-view .checker-page .results progress { width:160px; height:6px; }
  .app-view .checker-page .results>.table-wrap { flex:1 1 auto; min-height:0; max-height:none; overflow:auto; }
}
@media (max-width:800px) {
  .app-view .topbar .identity { margin-bottom:0; }
}

@media (min-width:801px) {
  .app-view .topbar .identity .subscription-floating { position:relative; inset:auto; width:100%; min-height:76px; padding:14px 15px; gap:10px; border-radius:13px; box-shadow:none; }
  .app-view .topbar .identity .subscription-floating strong { font-size:15px; line-height:1.35; }
}

