:root {
  color-scheme: dark;
  --bg: #10131b;
  --panel: #171c26;
  --panel-dark: #121720;
  --line: #2a3241;
  --text: #f3f4f3;
  --muted: #a7afc0;
  --dim: #929caf;
  --accent: #d8fa86;
  --blue: #acbbfc;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; left: 1rem; top: 1rem; padding: .6rem; background: var(--bg); }
.shell { width: min(1184px, calc(100% - 96px)); margin: 0 auto; }
.top { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid #ffffff16; background: #10131bee; backdrop-filter: blur(16px); }
.top-inner { min-height: 68px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.04em; font-weight: 700; white-space: nowrap; }
.brand b { color: var(--muted); font-weight: 500; }
.brand svg { width: 27px; height: 27px; color: var(--accent); }
.top nav { display: flex; gap: 28px; margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 550; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 11px; border: 1px solid #3a4456; border-radius: 8px; background: #1b222e; color: var(--text); padding: 0 17px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.button:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
.button-small { min-height: 36px; padding-inline: 12px; font-size: 13px; }
.button-accent { border-color: var(--accent); color: #192015; background: var(--accent); }
.button-accent:not(:disabled):hover { background: #edffba; color: #192015; }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.text-link:hover { color: var(--accent); }
.hero { position: relative; display: grid; grid-template-columns: 1.24fr .92fr; gap: clamp(28px, 5vw, 74px); align-items: center; padding: 86px 0 64px; isolation: isolate; }
.hero::before { position: absolute; z-index: -1; content: ""; inset: 0 -30px; background: radial-gradient(ellipse at 83% 42%, #50659919, transparent 55%); pointer-events: none; }
.eyebrow, .console-top, .console-label, .console-foot, .specs div > span, .atlas-legend, .step, .footer-inner > span, .result-meta { font: 600 11px/1.35 var(--mono); letter-spacing: .105em; }
.eyebrow { margin: 0 0 17px; color: var(--muted); }
.signal { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #d8fa8660; vertical-align: 1px; }
.eyebrow-slash { margin-inline: 5px; color: #657087; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(49px, 6vw, 89px); line-height: .99; letter-spacing: -.062em; font-weight: 730; }
h1 em { color: var(--accent); font-style: normal; }
.lede { max-width: 470px; color: var(--muted); font-size: 18px; line-height: 1.58; margin-bottom: 27px; }
.hero-actions { display: flex; align-items: center; gap: 21px; flex-wrap: wrap; }
.console { overflow: hidden; background: var(--panel-dark); border: 1px solid #414d61; border-radius: 14px; box-shadow: 0 21px 65px #070a1270; }
.console-top, .console-foot { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 15px 17px; color: var(--muted); background: #1b222e; }
.console-top > span:first-child { display: flex; align-items: center; gap: 11px; }
.console-dots { display: inline-flex; gap: 4px; }
.console-dots i { width: 5px; height: 5px; border-radius: 50%; background: #75839d; }
.console-main { min-height: 204px; padding: 24px 24px 26px; background-image: radial-gradient(#a0afd023 1px, transparent 1px); background-size: 15px 15px; }
.console-label { color: #b6c0d2; margin-bottom: 7px; }
.console-label span { color: var(--accent); margin-right: 6px; }
.prompt { margin-bottom: 22px; font: 600 clamp(22px, 3vw, 33px)/1.2 var(--mono); letter-spacing: -.065em; }
.baseline { max-height: 8.5em; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; color: var(--muted); font: 400 13px/1.65 var(--mono); }
.cursor { display: inline-block; width: 6px; height: 13px; margin-left: 8px; vertical-align: -2px; background: #d8fa86b3; }
.console-foot { justify-content: start; font-size: 10px; border-top: 1px solid var(--line); }
.console-foot .signal { margin: 0; background: var(--blue); box-shadow: 0 0 12px #acbbfc60; }
.specs { display: grid; grid-template-columns: 1.36fr 1fr 1fr 1fr; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; }
.specs > div { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 18px 22px; }
.specs > div + div { border-left: 1px solid var(--line); }
.specs div > span { color: var(--muted); }
.specs strong { display: block; font-size: 24px; font-weight: 650; line-height: 1.15; letter-spacing: -.045em; }
.specs .spec-model { flex-direction: row; align-items: center; justify-content: start; gap: 12px; }
.specs .spec-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border: 1px solid #414c38; border-radius: 8px; background: #242e24; color: var(--accent); font-size: 19px; }
.section { padding: 65px 0 59px; border-bottom: 1px solid var(--line); }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-header .eyebrow { margin-bottom: 9px; }
.index { color: var(--accent); }
h2 { margin-bottom: 7px; font-size: clamp(33px, 4vw, 53px); letter-spacing: -.06em; line-height: 1.06; font-weight: 700; }
.section-header p:last-child { color: var(--muted); margin-bottom: 0; }
.filters { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.search { display: flex; gap: 9px; align-items: center; padding: 0 11px; background: var(--panel-dark); border: 1px solid #30394b; border-radius: 7px; }
.search:focus-within { border-color: var(--accent); }
.search svg { width: 19px; height: 19px; stroke: var(--muted); stroke-width: 1.7; }
.search input { width: 100%; height: 43px; color: var(--text); border: 0; padding: 0; outline: none; background: none; }
.search input::placeholder { color: var(--dim); }
.filters-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.segments { display: inline-flex; flex: none; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-dark); }
.segments button { min-height: 28px; border: 0; border-radius: 4px; padding: 2px 9px; color: var(--muted); background: none; font-size: 13px; white-space: nowrap; }
.segments button:hover { color: var(--text); }
.segments button[aria-pressed="true"] { background: #2c3546; color: var(--text); }
select, .lookup-fields input { color: var(--text); background: var(--panel-dark); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; }
select { min-height: 36px; font-size: 13px; }
.checkbox { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; cursor: pointer; }
input[type="checkbox"] { accent-color: var(--accent); }
.result-meta { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin: 13px 0; color: var(--muted); }
.result-meta p { margin: 0; }
.empty { text-align: center; background: repeating-linear-gradient(-45deg, #151a24 0px, #151a24 8px, #141922 8px, #141922 16px); border: 1px dashed #3b465a; border-radius: 11px; padding: 28px 18px; }
.empty-icon { display: inline-grid; place-items: center; width: 35px; height: 35px; margin-bottom: 9px; border: 1px solid #424e41; border-radius: 9px; color: var(--accent); background: #252d27; font-size: 22px; line-height: 1; }
.empty h3 { margin-bottom: 3px; font-size: 18px; letter-spacing: -.035em; }
.empty p { margin-bottom: 12px; color: var(--muted); }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.card { text-align: left; display: block; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); padding: 14px; overflow-wrap: anywhere; }
.card:hover { border-color: var(--accent); }
.card-title { display: block; margin: 7px 0 5px; font-size: 17px; letter-spacing: -.02em; font-weight: 650; }
.card-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; color: var(--muted); font-size: 13px; }
.card-coord, .card-category { color: var(--blue); font: 600 10px/1.3 var(--mono); letter-spacing: .045em; }
.card-category { display: inline-block; margin-top: 9px; color: var(--muted); }
.console-featured { padding: 13px 17px 15px; border-top: 1px solid var(--line); }
.console-featured .card { width: 100%; padding: 9px 11px; }
.console-featured .card-title { margin: 3px 0; font-size: 15px; }
.console-featured .card-excerpt { -webkit-line-clamp: 2; }
.console-featured .card-category { margin-top: 6px; }
.more { margin-top: 12px; }
.atlas-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 16px; }
.atlas-coverage { margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.atlas-legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); margin-bottom: 12px; letter-spacing: .045em; }
.atlas-legend span { display: flex; align-items: center; gap: 7px; }
.atlas-legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend-dense { background: var(--accent); }
.legend-moe { background: var(--blue); }
.legend-measured { background: #f0b48f; }
.layer-grid { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; }
.layer-tile { position: relative; display: grid; gap: 2px; place-items: center; min-height: 54px; min-width: 0; padding: 4px; border: 1px solid #3b4560; border-radius: 6px; background: radial-gradient(#acbbfc30 1px, transparent 1px) 0 0 / 8px 8px, #1c2536; color: #e3e8fe; font: 650 12px/1 var(--mono); }
.layer-tile.dense { background: radial-gradient(#d8fa863b 1px, transparent 1px) 0 0 / 8px 8px, #283426; border-color: #5d7043; color: #e9fbd0; }
.layer-tile small { min-height: 9px; color: #ffcea9; font: 600 9px/1 var(--mono); }
.layer-tile.observed::after { position: absolute; content: ""; top: 5px; right: 5px; width: 4px; height: 4px; border-radius: 50%; background: #f0b48f; }
.layer-tile:hover, .layer-tile[aria-pressed="true"] { border-color: var(--accent); }
.layer-tile[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--accent); }
.layer-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; margin-top: 12px; padding: 10px 12px; background: var(--panel-dark); border-radius: 7px; }
.layer-detail strong { display: block; }
.layer-detail p { margin: 0; color: var(--muted); font-size: 13px; }
.layer-replies { margin-top: 10px; padding: 10px 12px; background: var(--panel-dark); border-radius: 7px; }
.layer-replies p { margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.observation-points { display: flex; flex-wrap: wrap; gap: 4px; }
.observation-point { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.observation-point::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #91a0bd; }
.observation-point:hover { border-color: var(--accent); }
.observation-point[data-category="persona"]::before { background: var(--accent); }
.observation-point[data-category="changed"]::before { background: #acbbfc; }
.observation-point[data-category="off_topic"]::before { background: #d7aefa; }
.observation-point[data-category="normal"]::before { background: #9ecbbb; }
.observation-point[data-category="incoherent"]::before { background: #f0b48f; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 15px; }
.method-grid article { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--panel); }
.step { color: var(--accent); }
.method-grid h3 { margin: 8px 0 7px; font-size: 18px; letter-spacing: -.04em; }
.method-grid p, details p { margin-bottom: 0; color: var(--muted); }
.method-grid .formula { margin-top: 9px; color: var(--blue); font: 13px/1.5 var(--mono); }
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 650; }
details p { margin-top: 6px; }
.footer-inner { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; align-items: center; padding-block: 24px; color: var(--muted); font-size: 12px; }
.footer-inner a { margin-left: 7px; color: var(--blue); }
.footer-inner a:hover { color: var(--accent); }
.import-error { margin: 14px 0 0; color: #ffd6c7; background: #382521; padding: 10px 13px; border-radius: 8px; }
dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100% - 30px); overflow: auto; padding: 21px; border: 1px solid #4b5870; border-radius: 12px; background: var(--panel); color: var(--text); }
dialog::backdrop { background: #070910cb; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.dialog-head h2 { font-size: 30px; margin: 0; }
.dialog-close { min-width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-dark); color: var(--text); font-size: 21px; line-height: 1; }
.lookup-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lookup-fields label { display: grid; gap: 3px; color: var(--muted); font-size: 13px; }
.lookup-fields input, .lookup-fields select { width: 100%; }
#lookup-message { margin: 10px 0; color: var(--muted); }
#reply-coordinate { margin-bottom: 10px; }
.reply-label { margin: 9px 0 0; color: var(--blue); font-size: 13px; }
#reply-description { color: var(--muted); margin-bottom: 10px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; margin: 8px 0; background: var(--panel-dark); border: 1px solid var(--line); border-radius: 7px; color: var(--text); font: 13px/1.55 var(--mono); }
#attempt-list { padding-top: 7px; }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .hero { padding-top: 64px; }
  .layer-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 710px) {
  .shell { width: calc(100% - 34px); }
  .top-inner { min-height: 58px; gap: 11px; justify-content: space-between; }
  .top nav { margin-left: 0; gap: 12px; font-size: 12px; }
  .brand { font-size: 14px; gap: 5px; }
  .brand svg { width: 21px; height: 21px; }
  .top .button { font-size: 12px; padding-inline: 7px; min-height: 31px; }
  .hero { grid-template-columns: 1fr; padding: 42px 0 28px; gap: 25px; }
  .hero::before { inset: 0; }
  h1 { font-size: clamp(43px, 10.2vw, 65px); margin-bottom: 16px; }
  .lede { font-size: 16px; margin-bottom: 17px; }
  .console-main { min-height: 158px; padding: 17px; }
  .console-top, .console-foot { padding: 10px 14px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > div { padding: 12px 10px; }
  .specs > div:nth-child(3) { border-left: 0; }
  .specs > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .specs strong { font-size: 20px; }
  .specs .spec-model { gap: 7px; }
  .specs .spec-icon { width: 27px; height: 27px; }
  .specs div > span { font-size: 9px; }
  .section { padding: 39px 0; }
  .section-header { align-items: start; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: 1fr; }
  .atlas-wrap { padding: 10px; }
  .layer-grid { gap: 4px; }
  .layer-tile { min-height: 42px; }
  .footer-inner { padding-block: 17px; }
}
@media (max-width: 445px) {
  .top nav { display: none; }
  .checkbox { margin-left: 0; }
  .results { grid-template-columns: 1fr; }
  .layer-detail { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
