:root {
  color-scheme: dark;
  --background: #111314;
  --surface: #1a1d1e;
  --surface-raised: #202426;
  --text: #ece9e2;
  --muted: #a8aca9;
  --subtle: #8b918c;
  --border: #333835;
  --accent: #d5ba89;
  --accent-soft: #d5ba8912;
  --success: #a2c2ae;
  --success-soft: #a2c2ae12;
  --warning: #dbb27e;
  --warning-soft: #dbb27e15;
  --error: #efb0a8;
  --error-soft: #efb0a80e;
  --shadow: 0 24px 70px #00000016;
}
:root[data-theme="light"] {
  color-scheme: light;
  --background: #f3f1ec;
  --surface: #fcfbf8;
  --surface-raised: #eeede7;
  --text: #242b28;
  --muted: #5e6862;
  --subtle: #69736d;
  --border: #dbded5;
  --accent: #866637;
  --accent-soft: #8666370c;
  --success: #426e53;
  --success-soft: #426e530c;
  --warning: #86612f;
  --warning-soft: #86612f0c;
  --error: #a33f34;
  --error-soft: #a33f3408;
  --shadow: 0 24px 70px #4c423108;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--background); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.65; background: radial-gradient(ellipse at 80% -10%, var(--accent-soft), transparent 58%), var(--background); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible, main:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.page-shell { width: min(1080px, 100% - 80px); margin: 0 auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 5; padding: 12px 18px; background: var(--surface); border: 1px solid var(--accent); border-radius: 8px; }
.skip-link:focus { top: 15px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: baseline; gap: 18px; text-decoration: none; font-size: 26px; font-weight: 650; letter-spacing: .08em; line-height: 1; }
.brand span { color: var(--subtle); font-size: 9px; font-weight: 500; letter-spacing: .19em; }
.theme-switch { display: flex; flex-shrink: 0; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 30px; }
.theme-switch button { min-width: 60px; min-height: 32px; padding: 4px 11px; color: var(--muted); border: 0; border-radius: 20px; background: transparent; font-size: 12px; }
.theme-switch button[aria-pressed="true"] { background: var(--surface-raised); color: var(--text); }
.hero { padding: 70px 0 50px; max-width: 750px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .035em; }
.small-line { width: 23px; height: 1px; background: var(--accent); }
h1 { margin: 20px 0; font-size: clamp(34px, 4.7vw, 54px); line-height: 1.3; letter-spacing: -.055em; font-weight: 450; }
.hero-description { max-width: 575px; margin: 20px 0 28px; color: var(--muted); line-height: 1.9; font-size: 14px; word-break: keep-all; }
.hero-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.meta-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.closed-banner { display: flex; gap: 14px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 32px; background: var(--accent-soft); }
.banner-symbol { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; flex-shrink: 0; color: var(--accent); }
.closed-banner strong { font-weight: 550; font-size: 14px; }
.closed-banner p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.message { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.message-error { color: var(--error); background: var(--error-soft); }
.message-notice { color: var(--muted); background: var(--surface); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h2 { margin: 0; font-size: 17px; font-weight: 550; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--subtle); font-size: 11px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-card { padding: 28px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.card-number { font-family: ui-monospace, "Consolas", monospace; color: var(--subtle); font-size: 11px; }
.badge { padding: 3px 9px; border: 1px solid var(--border); border-radius: 20px; color: var(--muted); font-size: 10px; line-height: 1.7; white-space: nowrap; }
.badge[data-tone="success"] { color: var(--success); background: var(--success-soft); border-color: transparent; }
.badge[data-tone="warning"] { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.badge[data-tone="error"] { color: var(--error); background: var(--error-soft); border-color: transparent; }
h3 { margin: 0; font-size: 13px; color: var(--muted); font-weight: 500; }
.result-value { margin: 9px 0 14px; font-size: clamp(21px, 3.1vw, 26px); line-height: 1.45; font-weight: 500; letter-spacing: -.04em; overflow-wrap: anywhere; }
.card-description { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; word-break: keep-all; }
.card-footnote { padding-top: 18px; margin: 18px 0 0; color: var(--subtle); font-size: 11px; border-top: 1px solid var(--border); }
.address-text { margin: 14px 0 0; font-family: ui-monospace, "Consolas", monospace; color: var(--accent); font-size: 11px; overflow-wrap: anywhere; }
.action-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 42px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--border); margin-top: 22px; color: var(--accent); background: transparent; text-align: left; font-size: 12px; }
.action-button span { font-size: 17px; }
.evidence-details { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 12px; font-size: 11px; }
.evidence-details summary { cursor: pointer; color: var(--muted); width: fit-content; padding: 4px 0; }
.evidence-details dl { margin: 12px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; }
.evidence-details dt { color: var(--subtle); }
.evidence-details dd { margin: 0; overflow-wrap: anywhere; color: var(--muted); }
.transfer-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .6fr); gap: 40px; padding: 28px; border: 1px solid var(--border); border-radius: 12px; margin-top: 16px; }
.transfer-card .eyebrow { font-size: 10px; margin-bottom: 12px; }
.transfer-card h3 { font-size: 18px; font-weight: 500; color: var(--text); letter-spacing: -.03em; }
.transfer-card p { max-width: 540px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; word-break: keep-all; }
.unverified-list { display: flex; flex-direction: column; justify-content: center; gap: 12px; font-size: 11px; color: var(--muted); }
.unverified-list span { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.unverified-list b { font-weight: 400; color: var(--subtle); white-space: nowrap; }
.session-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; padding: 28px; margin-top: 32px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.session-copy .eyebrow { margin-bottom: 10px; font-size: 10px; }
.session-copy p { margin: 12px 0 0; font-size: 12px; color: var(--muted); word-break: keep-all; }
.session-actions { display: flex; align-items: center; min-width: 0; }
.session-actions form, .session-actions > div { width: 100%; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.key-input-row { display: flex; gap: 10px; }
input { width: 0; min-width: 0; flex: 1; min-height: 44px; border: 1px solid var(--border); border-radius: 7px; padding: 9px 12px; color: var(--text); background: var(--background); }
.primary-button, .secondary-button { min-height: 44px; border-radius: 7px; padding: 9px 15px; font-size: 12px; }
.primary-button { color: var(--background); background: var(--accent); border: 1px solid var(--accent); }
.secondary-button { color: var(--accent); background: transparent; border: 1px solid var(--border); }
.input-hint { margin: 9px 0 0; color: var(--subtle); font-size: 10px; }
.session-active { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.scope-note { display: flex; gap: 12px; align-items: baseline; padding: 28px 0 38px; color: var(--subtle); }
.scope-note > span { display: grid; place-items: center; flex-shrink: 0; width: 16px; height: 16px; border: 1px solid var(--border); border-radius: 50%; font-family: serif; font-size: 10px; }
.scope-note p { margin: 0; font-size: 11px; line-height: 1.9; word-break: keep-all; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0 35px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 10px; }
.footer-brand { font-size: 14px; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 650px) {
  .page-shell { width: min(100% - 40px, 480px); }
  .site-header { padding: 24px 0; }
  .brand { font-size: 22px; }
  .brand span { display: none; }
  .theme-switch button { min-width: 50px; min-height: 32px; }
  .hero { padding: 43px 0 34px; }
  h1 { font-size: 35px; margin: 18px 0; }
  .hero-description { font-size: 13px; margin: 18px 0 24px; }
  .eyebrow { font-size: 10px; gap: 8px; }
  .closed-banner { padding: 16px; gap: 11px; margin-bottom: 26px; }
  .banner-symbol { width: 25px; height: 25px; }
  .section-heading { display: block; margin-bottom: 15px; }
  .section-heading p { margin-top: 5px; }
  .results-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .result-card { padding: 23px; }
  .card-top { margin-bottom: 20px; }
  .result-value { font-size: 24px; }
  .transfer-card { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 23px; margin-top: 12px; }
  .session-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 23px; margin-top: 24px; }
  .key-input-row { flex-direction: column; }
  input { width: 100%; flex: auto; }
  .primary-button { width: 100%; }
  .scope-note { padding-bottom: 28px; }
  footer { align-items: flex-start; padding: 22px 0 28px; }
  footer > :last-child { max-width: 170px; text-align: right; }
}
@media (max-width: 350px) {
  .page-shell { width: calc(100% - 32px); }
  h1 { font-size: 31px; }
  .result-card, .transfer-card, .session-panel { padding: 20px; }
  .result-value { font-size: 22px; }
  .evidence-details dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .evidence-details dd { margin-bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.r31-lab-link{position:fixed;right:24px;bottom:24px;z-index:20;padding:12px 20px;border-radius:14px;background:#bfa480;color:#171a20;text-decoration:none;font-weight:700;box-shadow:0 8px 30px #0003}
