:root {
  color-scheme: dark;
  --bg: #0F1114;
  --surface: #15181C;
  --surface-2: #13161A;
  --line: #2A2F37;
  --line-soft: #23272E;
  --line-strong: #353A43;
  --text: #ECE9E2;
  --text-2: #C9C6BF;
  --muted: #A3A7AE;
  --dim: #8A8F98;
  --accent: #7FE3B5;
  --accent-hover: #B5F0D3;
  --amber: #F0A857;
  --blue: #9DB4FF;
  --warn-bg: #17140F;
  --warn-line: #3A3226;
  --warn-text: #C9C3B8;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: clamp(20px, 6vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
input::placeholder, textarea::placeholder { color: #7C818A; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shared pieces ---------- */
.wrap { max-width: 1440px; margin: 0 auto; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--muted); }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--accent); }
.chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.panel-2 { border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 0; background: var(--accent); color: var(--bg); font: 600 15px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); font-weight: 500; }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.field { min-height: 48px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 14px; width: 100%; }
select.field { padding: 0 12px; }
textarea.field { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 120px; font-size: 13px; }
.label { font-size: 14px; color: var(--muted); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand span { font-family: var(--serif); font-size: 30px; letter-spacing: 4px; line-height: 1; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px var(--pad); border-bottom: 1px solid var(--line-soft); }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.site-nav a:not(.btn):not(.social-btn) { color: var(--text-2); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav .btn { min-height: 44px; padding: 0 20px; }
@media (max-width: 900px) { .site-nav a:not(.btn):not(.social-btn) { display: none; } }

section { padding: 104px var(--pad); }
section + section { border-top: 1px solid var(--line-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h2 { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; }
@media (max-width: 700px) { section { padding: 72px var(--pad); } }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 112px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(52px, 7vw, 84px); line-height: 0.98; letter-spacing: -1px; }
.hero h1 em { color: var(--accent); }
.hero p { margin: 0; max-width: 560px; font-size: 19px; line-height: 1.6; color: #B4B1AA; }
@media (max-width: 1080px) { .hero { grid-template-columns: 1fr; } }

.analyze-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; max-width: 600px; }
.segmented { display: inline-flex; gap: 6px; padding: 4px; border-radius: 10px; background: var(--bg); align-self: flex-start; }
.segmented button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 14px var(--sans); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--line); color: var(--text); }
.input-row { display: flex; gap: 10px; }
.input-row .field { flex: 1; }
@media (max-width: 560px) { .input-row { flex-direction: column; } }
.form-block { display: flex; flex-direction: column; gap: 8px; }
.form-block[hidden] { display: none; }

.hero-figure { margin: 0; padding: 20px 0 14px; }
.hero-figure figcaption { padding: 0 24px; font-family: var(--mono); font-size: 12px; color: var(--dim); }

.token-strip { margin: 0 var(--pad) 104px; padding: 28px 32px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.token-strip .who { display: flex; flex-direction: column; gap: 4px; }
.token-strip .who .kicker { font-size: 12px; letter-spacing: 1.5px; }
.token-strip .who strong { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: 2px; }
.token-strip .addr { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.token-strip code { font-family: var(--mono); font-size: 16px; word-break: break-all; color: var(--text); }
.token-strip .note { flex: 0 1 280px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.token-strip + section { border-top: 1px solid var(--line-soft); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head h2 { max-width: 720px; }
.section-head p { margin: 0; max-width: 400px; font-size: 17px; line-height: 1.6; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.steps .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.steps h3 { font-family: var(--sans); font-weight: 600; font-size: 21px; }
.steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.lenses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.lenses article { display: flex; flex-direction: column; gap: 20px; padding: 40px; border-radius: 16px; }
.lenses .kicker { font-size: 13px; letter-spacing: 1.5px; }
.lenses .eco .kicker, .lenses .eco .tick { color: var(--amber); }
.lenses h3 { font-size: 40px; line-height: 1.1; }
.lenses p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.lenses ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.lenses li { display: flex; gap: 12px; }
.tick { font-family: var(--mono); color: var(--accent); }
@media (max-width: 900px) { .lenses { grid-template-columns: 1fr; } .lenses article { padding: 28px; } }

.readout-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.readout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 24px; }
.readout figure { margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.readout figcaption { font-size: 15px; color: var(--muted); }
@media (max-width: 1080px) { .readout { grid-template-columns: 1fr; } }

.table { font-family: var(--mono); }
.table .row { display: grid; gap: 8px; padding: 22px 24px; border-bottom: 1px solid var(--line-soft); font-size: 15px; align-items: center; }
.table .row.head { padding: 18px 24px; font-size: 12px; color: var(--dim); border-bottom-color: var(--line); }
.table.cols-5 .row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.table.cols-7 .row { grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 18px 24px; }
.table .foot { margin: 0; padding: 24px; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.table-scroll .table { min-width: 640px; }
.sharebar { display: flex; align-items: center; gap: 10px; }
.sharebar .track { flex: 1; height: 6px; border-radius: 3px; background: var(--line); display: flex; }
.sharebar .fill { height: 6px; border-radius: 3px; }

.caution { margin: 0 var(--pad); padding: 56px 64px; display: flex; gap: 64px; align-items: center; border: 1px solid var(--warn-line); border-radius: 16px; background: var(--warn-bg); }
.caution .title { font-family: var(--serif); font-size: 40px; line-height: 1.1; flex: 0 0 360px; }
.caution p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--warn-text); }
@media (max-width: 900px) { .caution { flex-direction: column; align-items: flex-start; gap: 20px; padding: 36px 28px; } .caution .title { flex: none; font-size: 32px; } }

.cta { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding-top: 120px; border-top: 0 !important; }
.cta h2 { font-size: clamp(42px, 6vw, 64px); }
.cta form { width: min(640px, 100%); text-align: left; }
.cta .field { background: var(--surface); min-height: 52px; }
.cta .btn { min-height: 52px; padding: 0 26px; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 40px var(--pad); border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--dim); }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer .ca { font-family: var(--mono); word-break: break-all; }

/* ---------- analyzer ---------- */
.app-header { display: flex; align-items: center; gap: 24px; padding: 20px var(--pad-app, 40px); border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.app-header .brand span { font-size: 26px; }
.app-header form { flex: 1 1 480px; display: flex; gap: 10px; align-items: center; }
.app-header form label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.app-header .field { min-height: 44px; background: var(--surface); }
.app-header .btn { min-height: 44px; }
.app-main { padding: 24px 40px 48px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 700px) { .app-main { padding: 20px; } .app-header { padding: 16px 20px; } .app-header form { flex-wrap: wrap; } }
.notice { padding: 12px 16px; border: 1px solid var(--warn-line); border-radius: 8px; background: var(--warn-bg); font-size: 14px; color: var(--warn-text); }
.notice[hidden] { display: none; }
.report-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.report-head .meta { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--dim); }
.report-head h1 { font-size: clamp(36px, 4vw, 48px); line-height: 1; margin-top: 6px; word-break: break-all; }
.report-head h1 .ticker { color: var(--dim); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.app-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 1100px) { .app-grid { grid-template-columns: 1fr; } }
.data-panel { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.data-panel .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.data-panel .top label { font-size: 15px; font-weight: 500; }
.data-panel .top span { font-size: 13px; color: var(--dim); }
.data-panel .controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.data-panel .controls select { width: auto; min-height: 44px; }
.data-panel .controls .spacer { flex: 1; }
.data-panel .btn { min-height: 44px; font-size: 14px; }
.error { font-size: 14px; color: var(--amber); }
.error:empty { display: none; }
.chart { margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.chart .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart figcaption { font-size: 15px; font-weight: 500; }
.legend { display: flex; gap: 20px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.legend span { display: flex; gap: 8px; align-items: center; }
.big-readout { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.big-readout .value { font-family: var(--mono); font-size: 44px; line-height: 1; color: var(--accent); }
.big-readout .value small { font-size: 20px; color: var(--text); }
.stats { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.stats h2 { font-family: var(--sans); font-weight: 500; font-size: 15px; }
.stats dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.stats dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-family: var(--mono); }
.stats p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--dim); }

/* fixes */
[hidden] { display: none !important; }
.hero-figure svg, .readout svg, .chart svg { display: block; width: 100%; height: auto; }

/* ---------- live data ---------- */
.token-strip .live { display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--mono); font-size: 14px; }
.token-strip .live div { display: flex; flex-direction: column; gap: 2px; }
.token-strip .live span:first-child { font-family: var(--sans); font-size: 12px; color: var(--dim); }
.up { color: var(--accent); }
.down { color: var(--amber); }

.app-header .nav-link { color: var(--text-2); text-decoration: none; font-size: 14px; white-space: nowrap; }
.app-header .nav-link:hover { color: var(--text); }
.notice.info { border-color: var(--line); background: var(--surface); color: var(--muted); }
.report-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.report-controls select { width: auto; min-height: 44px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.market { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.market div { display: flex; flex-direction: column; gap: 4px; padding: 18px 24px; border-right: 1px solid var(--line-soft); min-width: 0; }
.market div:last-child { border-right: 0; }
.market dt { font-size: 12px; color: var(--dim); }
.market dd { margin: 0; font-family: var(--mono); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market a { color: var(--text); }
@media (max-width: 900px) { .market { grid-template-columns: repeat(2, minmax(0, 1fr)); } .market div { border-right: 0; border-bottom: 1px solid var(--line-soft); } }

.table.cols-5b .row { grid-template-columns: 1.1fr 1fr 1fr 1fr 1.2fr; padding: 16px 24px; }
.panel-title { padding: 20px 24px 0; font-size: 15px; font-weight: 500; }
.panel-note { margin: 0; padding: 16px 24px 20px; font-size: 13px; line-height: 1.6; color: var(--dim); }

details.own { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
details.own > summary { cursor: pointer; padding: 18px 24px; font-size: 15px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.own > summary::-webkit-details-marker { display: none; }
details.own > summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
details.own[open] > summary::after { content: "−"; }
details.own .data-panel { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0 0 14px 14px; }
.loading { opacity: 0.55; transition: opacity 0.2s; }

/* ---------- real-time ---------- */
.live-chip { display: inline-flex; align-items: center; gap: 8px; }
.live-chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: none; }
.live-chip.is-live .pulse { display: inline-block; background: var(--accent); animation: sine-pulse 1.6s ease-in-out infinite; }
.live-ring { transform-box: fill-box; transform-origin: center; animation: sine-ring 1.6s ease-out infinite; }
@keyframes sine-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes sine-ring { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
.cyc-text { font-size: 13px; line-height: 1.5; }
.flash { animation: sine-flash 0.8s ease-out; }
@keyframes sine-flash { 0% { color: var(--accent); } 100% { color: inherit; } }
@media (prefers-reduced-motion: reduce) {
  .live-chip.is-live .pulse, .live-ring, .flash { animation: none; }
  .live-ring { display: none; }
}
select option:disabled { color: #5C616A; }

.basket-table .row { padding: 14px 24px; font-size: 14px; }
.basket-table { min-width: 760px; }
.basket-table a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--dim); }
.basket-table a:hover { color: var(--accent); border-bottom-color: var(--accent); }
#basket-rows { max-height: 560px; overflow-y: auto; }
.panel-sub { padding: 6px 24px 0; font-size: 13px; color: var(--muted); }
select:disabled { opacity: 0.6; cursor: not-allowed; }

.token-logo { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line); flex-shrink: 0; }
.brand img { display: block; border-radius: 8px; }

/* ---------- plain-English layer ---------- */
.tip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 4px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: 600 11px var(--sans); cursor: pointer; vertical-align: middle; position: relative; }
.tip::before { content: ""; position: absolute; inset: -13px; }  /* 44px hit area */
.tip:hover, .tip[aria-expanded="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.tip-pop { position: absolute; z-index: 50; max-width: 300px; padding: 12px 14px; border-radius: 10px; background: #1D2127; border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0,0,0,.45); font: 400 14px/1.55 var(--sans); color: var(--text); }
.tip-pop strong { display: block; margin-bottom: 4px; font-weight: 600; }

body.view-simple .detail-only { display: none !important; }
body.view-detailed .simple-only { display: none !important; }

.summary { padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; border-color: #2F3A36; }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.summary-head h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; }
.strength { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.strength .bars { display: inline-flex; gap: 4px; }
.strength .bars i { width: 22px; height: 8px; border-radius: 2px; background: var(--line); }
.strength[data-level="1"] .bars i:nth-child(-n+1),
.strength[data-level="2"] .bars i:nth-child(-n+2),
.strength[data-level="3"] .bars i:nth-child(-n+3),
.strength[data-level="4"] .bars i:nth-child(-n+4) { background: var(--accent); }
.strength strong { color: var(--text); font-weight: 600; }
.summary-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.summary-body p { margin: 0; font-size: 16px; line-height: 1.65; color: #D6D3CC; }
.summary-body p strong { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
@media (max-width: 900px) { .summary-body { grid-template-columns: 1fr; } .summary { padding: 22px; } }
.summary-foot { margin: 0; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 13px; line-height: 1.6; color: var(--dim); }
.how { margin: 0; font-size: 13px; line-height: 1.6; color: var(--dim); }

/* ---------- learn page ---------- */
.prose { max-width: 760px; }
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: #C9C6BF; }
.prose h2 { margin-bottom: 20px; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; margin: 28px 0 8px; color: var(--text); }
.prose ul { padding-left: 20px; }
.learn-hero { padding-bottom: 64px; }
.learn-hero h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1; margin: 18px 0 20px; }
.learn-hero p { font-size: 19px; line-height: 1.6; color: #B4B1AA; max-width: 680px; margin: 0; }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.terms div { padding: 22px 24px; }
.terms dt { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--accent); margin-bottom: 6px; }
.terms dd { margin: 0; font-size: 15px; line-height: 1.65; color: #C9C6BF; }
.terms dd em { color: var(--text); font-style: normal; font-weight: 500; }
@media (max-width: 800px) { .terms { grid-template-columns: 1fr; } }
.edges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; list-style: none; padding: 0; }
.edges li { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.edges .num { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--accent); }
.edges h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; }
.edges p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.edges .look { font-size: 14px; color: var(--text); }
.edges .look b { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--amber); font-weight: 500; display: block; margin-bottom: 2px; }
@media (max-width: 1080px) { .edges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .edges { grid-template-columns: 1fr; } }
.limits { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; list-style: none; padding: 0; }
.limits li { font-size: 16px; line-height: 1.65; color: var(--warn-text); padding-left: 18px; position: relative; }
.limits li::before { content: "~"; position: absolute; left: 0; color: var(--amber); font-family: var(--mono); }
@media (max-width: 800px) { .limits { grid-template-columns: 1fr; } }

/* ---------- spectrogram ---------- */
body.chart-waves .chart-spec-only, body.chart-spec .chart-waves-only { display: none !important; }
.chart-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.seg-sm button { min-height: 36px; padding: 0 12px; font-size: 13px; }
.spec-canvas { display: block; width: 100%; height: auto; aspect-ratio: 860 / 280; border-radius: 8px; }
.heat-bar { display: inline-block; width: 90px; height: 8px; border-radius: 2px;
  background: linear-gradient(90deg, #000004, #1c1044, #4f127b, #812581, #b5367a, #e55064, #fb8761, #fec287, #fcfdbf); }

/* ---------- projection ---------- */
#pj-svg { display: block; width: 100%; height: auto; }
.proj-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.proj-stats .verdict { grid-column: 1 / -1; }
.proj-stats > div:not(.verdict) { display: flex; flex-direction: column; gap: 4px; }
.proj-stats strong { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.proj-stats .muted { font-size: 13px; }
.verdict { padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; border: 1px solid var(--line); color: var(--muted); }
.verdict[data-kind="good"] { border-color: #2F4A3E; background: rgba(127, 227, 181, 0.07); color: #CFEFDF; }
.verdict[data-kind="some"] { border-color: #3A4250; background: rgba(157, 180, 255, 0.06); color: #D5DCF0; }
.verdict[data-kind="none"] { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-text); }
@media (max-width: 900px) { .proj-stats { grid-template-columns: 1fr; } }
.legend span { white-space: nowrap; }

/* ---------- X / social button ---------- */
.social-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font: 500 14px var(--sans); white-space: nowrap; }
.social-btn:hover { background: var(--surface); border-color: #4A505A; color: var(--text); }
.social-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--bg); font: 700 15px var(--sans); }
.social-btn.icon-only { padding: 0 6px; }
.social-btn.icon-only .social-handle { display: none; }
@media (max-width: 1100px) { .site-nav .social-handle { display: none; } .site-nav .social-btn { padding: 0 6px; } }

/* header fit at mid and small widths */
.site-nav a { white-space: nowrap; }
@media (max-width: 1180px) { .site-nav { gap: 22px; } }
@media (max-width: 1080px) { .site-nav a:not(.btn):not(.social-btn) { display: none; } }
@media (max-width: 560px) {
  .site-header { gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .site-header .brand span { font-size: 24px; letter-spacing: 3px; }
  .site-header .brand img { width: 30px; height: 30px; }
  .site-nav { gap: 10px; }
  .site-nav .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
}
@media (max-width: 380px) { .site-nav .btn { padding: 0 10px; font-size: 13px; } }

/* GitHub / SINE-BOT button */
.gh-icon { background: transparent; color: var(--accent); border: 1px solid var(--accent); font: 600 11px var(--mono); letter-spacing: -0.5px; }
.gh-btn:hover .gh-icon { background: var(--accent); color: var(--bg); }
.gh-btn .social-handle { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; }

.sm-only { display: none; }
@media (max-width: 560px) {
  .lg-only { display: none; }
  .sm-only { display: inline; }
  .site-nav { gap: 8px; }
  .site-nav .social-btn { padding: 0 5px; min-width: 44px; justify-content: center; }
  .site-nav .social-x { width: 30px; height: 30px; }
}
@media (max-width: 370px) { .site-header .brand span { font-size: 20px; letter-spacing: 2px; } }
