@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #263936;
  --muted: #647469;
  --teal: #0c8578;
  --teal-dark: #09665d;
  --mint: #e9f4ee;
  --line: #e4e9e5;
  --surface: #f7f9f6;
  --sidebar: 236px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button, a { touch-action: manipulation; }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea { transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #60bdb4; outline-offset: 4px; }
input, textarea { min-width: 0; }
input::placeholder, textarea::placeholder { color: #929d98; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
input:focus, textarea:focus { outline: none; }
input:focus-visible, textarea:focus-visible { outline: 2px solid #60bdb4; outline-offset: 2px; }
input, textarea { color: var(--ink); }
h1, h2, h3, p { margin-top: 0; }
button svg, a svg { flex: 0 0 auto; }
.icon { flex-shrink: 0; vertical-align: middle; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; background: var(--teal); color: white; padding: 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 10px 17px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.primary { background: var(--teal); color: white; box-shadow: 0 2px 2px #1f5b5010; }
.primary:hover { background: var(--teal-dark); }
.secondary { background: white; border-color: var(--line); }
.secondary:hover { background: var(--surface); border-color: #b8cac1; }
.dark { background: #244c43; color: white; }
.dark:hover { background: #143b32; }
.full { width: 100%; }
.compact { min-height: 35px; padding: 7px 12px; }
.compact .icon { width: 16px; height: 16px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; height: 36px; width: 36px; border-radius: 7px; }
.icon-button:hover { background: #edf2ee; }
.text-button { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-size: 12px; padding: 8px 0; }
.text-button:hover { text-decoration: underline; }
.danger { background: #b94440; color: white; }
.danger:hover { background: #9b322f; }
.danger-text { color: #b94440; }
.danger-hover:hover { color: #b94440; background: #fff0ef; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.mono, code, kbd { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.eyebrow { font-size: 10px; color: var(--teal); letter-spacing: 1.6px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.tiny-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }
.count { display: inline-flex; align-items: center; justify-content: center; background: #f0f3ef; padding: 2px 7px; min-width: 24px; border-radius: 5px; color: #66796f; font-size: 11px; font-weight: 500; }
.tag { display: inline-flex; padding: 5px 8px; border-radius: 5px; background: var(--surface); font-size: 10px; color: #738178; white-space: nowrap; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: #f8faf7; border-right: 1px solid var(--line); padding: 34px 20px 19px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 8px 52px; }
.brand > span { font-size: 21px; letter-spacing: -.9px; font-weight: 750; }
.brand-light { font-weight: 450; }
.brand small { display: block; font-size: 6.7px; letter-spacing: 1.25px; color: #839189; margin-top: 5px; font-weight: 500; }
.sidebar-label { font-size: 9px; letter-spacing: 1.5px; color: #91a096; margin: 0 13px 16px; }
.main-nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 14px 14px; border-radius: 9px; color: #849087; font-size: 15px; min-height: 65px; }
.nav-item > span:not(.nav-active-dot) { flex: 1; font-weight: 550; }
.nav-item small { display: block; font-weight: 400; font-size: 9px; margin-top: 4px; letter-spacing: .15px; }
.nav-item:hover { background: #eff3ee; color: var(--ink); }
.nav-item.active { color: var(--teal); background: #e7f1e9; }
.nav-active-dot { width: 5px; height: 5px; background: var(--teal); border-radius: 50%; }
.sidebar-divider { height: 1px; background: var(--line); margin: 29px 12px 27px; }
.collection-label { display: flex; justify-content: space-between; }
.collection-label span { letter-spacing: 0; }
.collection-nav { min-height: 45px; font-size: 12px; margin-bottom: 8px; }
.sidebar-add { display: flex; gap: 9px; align-items: center; justify-content: center; border: 1px dashed #cddacf; border-radius: 7px; width: calc(100% - 24px); margin: 0 12px; padding: 11px 8px; font-size: 11px; color: #71857a; }
.sidebar-add:hover { border-color: var(--teal); color: var(--teal); background: #edf4ed; }
.sidebar-add .icon { width: 15px; height: 15px; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.sidebar-note { position: relative; padding: 20px; margin: 0 3px 26px; border-radius: 10px; background: #eff3e9; overflow: hidden; }
.little-orbit { display: inline-flex; color: #7d9270; margin-bottom: 11px; }
.sidebar-note h3 { font-size: 17px; line-height: 1.65; letter-spacing: 1px; font-weight: 550; margin-bottom: 9px; }
.sidebar-note p { font-size: 10px; line-height: 1.95; color: #8a9882; margin: 0; }
.note-line { position: absolute; width: 100px; height: 100px; border: 1px solid #dae3d2; border-radius: 25px; right: -43px; bottom: 12px; transform: rotate(-35deg); }
.note-line::after { content: ''; position: absolute; inset: 12px; border: 1px solid #dae3d2; border-radius: 18px; }
.local-status { display: flex; align-items: center; gap: 7px; padding: 0 9px; font-size: 9px; color: #8a978e; }
.local-status > span:last-child { margin-left: auto; font-family: monospace; }
.local-status .tiny-dot { width: 5px; height: 5px; }
.workspace { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 74px; border-bottom: 1px solid #edf0ec; display: flex; align-items: center; justify-content: space-between; padding: 0 43px; }
.breadcrumb { display: flex; align-items: center; gap: 13px; font-size: 11px; color: #9aa49e; }
.breadcrumb .icon { width: 11px; height: 11px; color: #b0b9b3; }
.breadcrumb strong { font-weight: 500; color: #596e63; }
.topbar-right { display: flex; align-items: center; gap: 23px; }
.privacy-badge { display: flex; align-items: center; gap: 7px; font-size: 8px; font-weight: 500; letter-spacing: 1.2px; color: #8b9990; }
.privacy-badge .icon { width: 12px; height: 12px; }
main { padding: 43px 44px 30px; width: 100%; max-width: 1390px; margin: 0 auto; flex: 1; }
main:focus { outline: none; }
.search-hero { padding: 10px 0 33px; }
.search-hero h1 { margin: 19px 0 16px; font-size: clamp(30px, 3.1vw, 44px); font-weight: 650; letter-spacing: -1.4px; line-height: 1.5; }
.search-hero > p { font-size: 13px; color: var(--muted); letter-spacing: .4px; margin-bottom: 29px; line-height: 1.9; }
.mobile-only { display: none; }
.search-box { display: flex; gap: 15px; align-items: center; border: 1.5px solid #abc6b9; border-radius: 11px; padding: 8px 9px 8px 21px; background: white; box-shadow: 0 4px 17px #214d3910; }
.search-box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px #0c857811, 0 4px 17px #214d3910; }
.search-box > .icon { color: var(--teal); width: 23px; height: 23px; }
.search-box input { flex: 1; border: 0; font-size: 15px; letter-spacing: .4px; width: 100%; padding: 9px 0; background: transparent; }
.search-box input:focus-visible { outline: none; }
.search-box .button { padding: 12px 21px; min-height: 43px; }
.search-box .button .icon { width: 16px; height: 16px; margin-left: 9px; }
kbd { width: 23px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; color: #9ca89f; }
.suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.suggestions > span { color: #98a198; font-size: 10px; margin-right: 3px; }
.suggestion { border: 1px solid #e8ece6; border-radius: 5px; background: #fafbf8; padding: 5px 9px; color: #7d8c80; font-size: 10px; display: inline-flex; align-items: center; gap: 10px; }
.suggestion .icon { width: 11px; height: 11px; color: #99a99d; transform: rotate(-35deg); }
.suggestion:hover, .suggestion.selected { border-color: #cddfd3; background: #eff5ee; color: var(--teal); }
.search-layout { display: grid; grid-template-columns: minmax(0, 1fr) 284px; align-items: start; gap: 29px; padding-top: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 18px; min-height: 26px; }
.section-heading h2 { font-size: 12px; font-weight: 550; margin: 0; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.section-heading .small { flex-shrink: 0; font-size: 9px; }
.result-card { border: 1px solid var(--line); border-radius: 10px; padding: 19px 21px 0; margin-bottom: 13px; background: #fff; transition: border-color .2s, box-shadow .2s; animation: rise-in .4s both; animation-delay: calc(var(--order) * 35ms); }
.result-card:hover { border-color: #bccfc2; box-shadow: 0 4px 16px #244a3610; }
.result-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.document-label { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: #839387; }
.document-label .icon { width: 13px; height: 13px; }
.document-label > span:last-child { color: #a4ada5; }
.label-separator { color: #ccd3ca; margin: 0 1px; }
.rank { font: 10px "SFMono-Regular", Consolas, monospace; color: #a0ada3; }
.result-card h3 { font-size: 16px; font-weight: 600; line-height: 1.6; letter-spacing: .05px; margin: 0 0 10px; }
.result-title { padding: 0; text-align: left; color: #246956; line-height: inherit; overflow-wrap: anywhere; }
.result-title:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
mark { background: #ecf4dd; color: inherit; border-radius: 2px; padding: 1px 0; }
.result-title mark { background: #eef5e5; }
.result-snippet { font-size: 12px; color: var(--muted); line-height: 1.95; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.result-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #f0f2ed; min-height: 43px; }
.result-metrics { display: flex; align-items: center; gap: 6px; color: #97a198; font-size: 9px; }
.result-metrics strong { font-weight: 550; font-family: monospace; color: #658273; margin-left: 3px; }
.score-indicator { width: 5px; height: 5px; border-radius: 50%; background: #8bac90; }
.metric-divider { height: 10px; width: 1px; background: #e2e8df; margin: 0 4px; }
.why-button { display: flex; align-items: center; gap: 5px; color: var(--teal); font-size: 10px; font-weight: 550; padding: 10px 0 10px 8px; border-radius: 5px; }
.why-button .icon { width: 13px; height: 13px; }
.why-button .icon:last-child { width: 10px; height: 10px; margin-left: 3px; }
.why-button:hover { color: #044e43; background: #f3f8f1; }
.results-end { display: flex; gap: 11px; align-items: center; justify-content: center; color: #9ca69d; font-size: 9px; margin: 29px 0 13px; }
.results-end span { width: 24px; height: 1px; background: #dce4d9; }
.search-aside { padding-top: 44px; }
.inside-preview { padding: 23px 21px 16px; background: #f3f6ed; border: 1px solid #e4eadc; border-radius: 11px; }
.card-eyebrow { display: flex; align-items: center; gap: 6px; color: #809675; font-size: 8px; letter-spacing: .8px; font-weight: 600; margin-bottom: 23px; }
.card-eyebrow .icon { width: 15px; height: 15px; }
.live-label { margin-left: auto; font-size: 7px; letter-spacing: .6px; color: #678566; display: flex; align-items: center; gap: 4px; }
.live-label::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #7fa470; box-shadow: 0 0 0 3px #7fa47014; }
.inside-preview h2 { font-size: 18px; letter-spacing: .3px; font-weight: 600; margin-bottom: 12px; }
.inside-preview > p { font-size: 11px; line-height: 1.9; color: #8a9781; }
.mini-pipeline { margin: 24px 0 22px; }
.mini-pipeline > div { display: flex; position: relative; gap: 12px; min-height: 64px; align-items: flex-start; }
.mini-pipeline > div:last-child { min-height: 44px; }
.mini-pipeline > div:not(:last-child)::before { content: ''; width: 1px; position: absolute; background: #d4dfc8; top: 30px; bottom: 4px; left: 14px; }
.pipeline-dot { width: 29px; height: 29px; border: 1px solid #d2dfc7; background: #f9fbf4; border-radius: 50%; color: #88a076; font: 9px monospace; display: inline-flex; align-items: center; justify-content: center; }
.pipeline-dot .icon { width: 13px; height: 13px; }
.mini-pipeline section { padding-top: 3px; }
.mini-pipeline strong { font-size: 11px; font-weight: 550; display: block; color: #526b4c; }
.mini-pipeline small { font-size: 9px; color: #9aa58e; display: block; margin-top: 5px; }
.mini-bars { margin-left: auto; display: flex; gap: 3px; align-items: flex-end; height: 24px; padding-top: 5px; }
.mini-bars i { display: block; height: 9px; width: 4px; border-radius: 2px; background: #b7cba4; }
.mini-bars i:nth-child(2) { height: 18px; }.mini-bars i:nth-child(3) { height: 13px; }.mini-bars i:nth-child(4) { height: 22px; }
.inside-preview .button { font-size: 11px; justify-content: space-between; padding: 11px 13px; }
.inside-preview .button .icon { width: 15px; height: 15px; }
.card-foot { text-align: center; font-size: 8px; color: #9ca78f; margin-top: 12px; }
.tip-card { display: flex; gap: 11px; padding: 22px 6px 18px; border-bottom: 1px solid #e9ede5; }
.tip-icon { background: #f2f5ef; color: #879b7c; height: 30px; width: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; }
.tip-icon .icon { width: 17px; height: 17px; }
.tip-card h3 { font-size: 11px; font-weight: 550; margin: 2px 0 8px; }
.tip-card p { font-size: 10px; line-height: 1.9; color: #9aa392; margin: 0; }
.local-note { display: flex; gap: 9px; color: #a1aa9b; padding: 19px 7px; }
.local-note .icon { width: 13px; height: 13px; margin-top: 3px; }
.local-note p { font-size: 9px; line-height: 1.9; margin: 0; }
.app-footer { margin: 0 44px; border-top: 1px solid #edf0e9; padding: 19px 0 23px; display: flex; justify-content: space-between; align-items: center; color: #9ca79c; font-size: 9px; gap: 12px; }
.app-footer i { font-style: normal; margin: 0 6px; }
.app-footer .icon { width: 12px; height: 12px; margin-right: 4px; }
.page-hero { margin: 11px 0 32px; }
.page-hero h1 { font-size: clamp(25px, 2.8vw, 36px); letter-spacing: -.8px; font-weight: 600; margin: 20px 0 14px; line-height: 1.5; }
.page-hero p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.trace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: var(--surface); border: 1px solid var(--line); padding: 14px 18px; border-radius: 9px; }
.trace-toolbar > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trace-toolbar > div > .icon { color: var(--teal); width: 17px; height: 17px; }
.trace-toolbar > div > span:not(.tag) { color: var(--muted); font-size: 11px; white-space: nowrap; }
.trace-toolbar strong { font-weight: 550; font-size: 14px; overflow-wrap: anywhere; }
.trace-toolbar .tag { background: white; }
.stage-nav { display: grid; grid-template-columns: repeat(6, 1fr); margin: 33px 0; }
.stage { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 4px 10px; }
.stage:not(:last-child)::after { content: ''; position: absolute; top: 20px; left: calc(50% + 27px); width: calc(100% - 54px); height: 1px; background: var(--line); }
.stage-number { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); background: white; border-radius: 11px; font: 12px monospace; color: #a1aea5; margin-bottom: 11px; }
.stage strong { font-size: 11px; font-weight: 500; color: #829285; }
.stage small { font-size: 7px; letter-spacing: 1px; margin-top: 5px; color: #a0ada4; }
.stage.active .stage-number { background: var(--teal); border-color: var(--teal); color: white; box-shadow: 0 0 0 5px #edf5ee; }
.stage.active strong { color: var(--teal); font-weight: 600; }
.stage.complete .stage-number { background: #edf5ee; border-color: #d7e8da; color: var(--teal); }
.stage:hover .stage-number { border-color: var(--teal); }
.stage-detail { border: 1px solid var(--line); border-radius: 13px; padding: 29px 31px 0; animation: rise-in .25s both; }
.detail-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 17px; }
.detail-number { color: #bfcec1; font: 35px monospace; letter-spacing: -2px; }
.detail-heading h2 { font-size: 20px; font-weight: 550; margin: 8px 0 0; line-height: 1.5; }
.detail-heading .eyebrow { font-size: 9px; }
.stage-description { color: var(--muted); font-size: 12px; line-height: 1.9; }
.stage-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 28px; padding: 16px 0; }
.stage-footer > span { font-size: 10px; color: #97a497; }
.input-display { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 25px; display: flex; flex-direction: column; gap: 16px; margin: 25px 0; }
.input-display > span { font-size: 9px; letter-spacing: 1.5px; color: var(--muted); }
.input-display strong { font-size: 27px; color: var(--teal); font-weight: 500; overflow-wrap: anywhere; }
.input-display small { font-size: 11px; color: var(--muted); }
.two-facts { display: flex; gap: 50px; padding: 3px 0 6px; }
.two-facts > div { display: flex; align-items: center; gap: 13px; }
.two-facts strong { font-size: 27px; font-weight: 450; color: #507560; }
.two-facts span { color: #99a399; font-size: 11px; }
.token-flow { display: flex; gap: 20px; align-items: center; margin: 25px 0; }
.token-flow > div { flex: 1; min-width: 0; padding: 20px; border-radius: 8px; background: var(--surface); }
.token-flow code { display: block; font-size: 18px; color: var(--teal); overflow-wrap: anywhere; }
.field-label { display: block; font-size: 10px; color: #8e9e92; margin-bottom: 12px; }
.small-heading { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 550; margin: 24px 0 12px; }
.token-list { display: flex; flex-wrap: wrap; gap: 9px; }
.token { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 6px; background: #eaf4eb; border: 1px solid #d4e5d6; color: #367a5f; font-size: 12px; overflow-wrap: anywhere; }
.processing-note { display: flex; gap: 10px; padding: 16px; margin-top: 24px; border-radius: 8px; background: #f6f8f3; color: #81907c; font-size: 11px; line-height: 1.9; }
.processing-note .icon { width: 16px; height: 16px; margin-top: 3px; }
.educational-note { display: flex; align-items: flex-start; gap: 10px; color: #98a395; margin: 24px 0; }
.educational-note > .icon { width: 16px; height: 16px; margin-top: 1px; }
.educational-note p { font-size: 11px; line-height: 1.9; margin: 0; }
.lookup-list { margin: 24px 0; }
.lookup-list > div { display: flex; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); padding: 15px 0; }
.lookup-list > div > .icon { color: #b0c2af; width: 17px; height: 17px; }
.lookup-list > div > strong { white-space: nowrap; color: #7f987c; font-size: 11px; }
.posting-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.id-chip { font: 10px monospace; border: 1px solid var(--line); border-radius: 5px; padding: 7px; background: var(--surface); overflow-wrap: anywhere; }
.id-chip:hover { border-color: var(--teal); color: var(--teal); }
.callout { background: var(--mint); padding: 18px; border-radius: 8px; display: flex; gap: 18px; align-items: center; }
.callout strong { font-size: 20px; font-weight: 500; color: var(--teal); white-space: nowrap; }
.callout span { color: #72937e; font-size: 11px; line-height: 1.8; }
.formula { display: flex; flex-direction: column; gap: 12px; padding: 22px; margin: 22px 0; background: #f0f6ed; border-radius: 8px; }
.formula > span { font-size: 10px; color: #82967d; }
.formula strong { font-size: 15px; font-weight: 550; color: #426c48; line-height: 1.7; }
.formula small { font-size: 10px; color: #8a9e80; }
.score-row { display: flex; width: 100%; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); padding: 16px 0; font-size: 11px; text-align: left; }
.score-row:hover { background: var(--surface); }
.score-row > span { flex: 1; line-height: 1.6; }
.score-row code { font-size: 10px; color: #93a18c; }
.score-row strong { color: var(--teal); font: 14px monospace; }
.score-row .icon { width: 13px; height: 13px; color: #a1b79b; }
.stage-detail > .small { margin-top: 15px; }
.ranking-chart { margin-top: 23px; }
.ranking-chart button { display: flex; align-items: center; width: 100%; text-align: left; padding: 14px 0; gap: 18px; border-bottom: 1px solid #f1f3ed; }
.ranking-chart button:hover { background: var(--surface); }
.chart-rank { color: #9baa98; font: 12px monospace; }
.chart-main { flex: 1; min-width: 0; }
.chart-main > span:first-child { display: block; font-size: 12px; margin-bottom: 9px; }
.chart-track { display: block; background: #f2f5ee; border-radius: 3px; height: 8px; width: 100%; overflow: hidden; }
.chart-track i { display: block; height: 100%; background: #71aa83; border-radius: 3px; }
.ranking-chart button:first-child .chart-track i { background: var(--teal); }
.ranking-chart strong { font: 14px monospace; color: var(--teal); }
.output-summary { padding: 34px 20px; background: var(--surface); border-radius: 10px; text-align: center; margin-top: 23px; }
.output-summary > .icon { width: 40px; height: 40px; padding: 9px; background: #e0efdf; color: var(--teal); border-radius: 50%; margin-bottom: 17px; }
.output-summary h3 { font-size: 19px; font-weight: 500; }
.output-summary p { color: #95a28e; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.stat-grid > div { position: relative; padding: 21px 23px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.stat-grid .icon { color: #95ad92; position: absolute; top: 21px; right: 23px; width: 19px; height: 19px; }
.stat-grid > div > span { display: block; font-size: 11px; color: #85957f; margin: 0 20px 17px 0; }
.stat-grid strong { font-size: 30px; font-weight: 450; letter-spacing: -.8px; color: #3a6350; }
.stat-grid strong small { font-size: 11px; color: #98a78f; margin-left: 7px; }
.index-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 24px; align-items: start; }
.index-words, .index-detail { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.index-words { padding: 19px 0 0; }
.index-title { display: flex; justify-content: space-between; align-items: center; padding: 0 17px 15px; }
.index-title h2 { font-size: 13px; margin: 0; font-weight: 550; }
.index-title .small { font-size: 9px; }
.filter-box { margin: 0 15px 17px; border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; padding: 9px 10px; gap: 8px; background: var(--surface); }
.filter-box input { border: 0; background: none; width: 100%; font-size: 11px; padding: 3px; }
.filter-box .icon { width: 15px; height: 15px; color: #94a38e; }
.word-table-heading { display: flex; justify-content: space-between; padding: 10px 19px; background: #f7f9f4; color: #9aa791; font-size: 9px; border-block: 1px solid #ebeee6; }
.word-scroll { max-height: 493px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d9e2d4 transparent; }
.word-row { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; font-size: 12px; border-bottom: 1px solid #f0f3ec; text-align: left; gap: 9px; }
.word-row > span:first-child { overflow-wrap: anywhere; }
.word-row > span:last-child { display: flex; gap: 6px; align-items: center; color: #8a9c83; font: 11px monospace; }
.word-row i { display: inline-block; height: 5px; border-radius: 2px; background: #cedfc5; margin-right: 4px; }
.word-row small { font-size: 9px; }.word-row .icon { width: 10px; height: 10px; margin-left: 2px; }
.word-row:hover { background: var(--surface); }
.word-row.active { background: #edf5e9; color: var(--teal); box-shadow: inset 3px 0 var(--teal); }
.word-row.active i { background: #7cb394; }
.word-footer { padding: 14px 18px; font-size: 9px; color: #9ba891; border-top: 1px solid var(--line); }
.index-detail { padding: 25px; scroll-margin-top: 30px; }
.selected-word { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 15px 0 12px; }
.selected-word h2 { margin: 0; font-size: 29px; font-weight: 500; color: var(--teal); overflow-wrap: anywhere; }
.selected-word .button { font-size: 10px; padding: 8px 10px; min-height: 35px; }
.selected-word .icon { width: 13px; height: 13px; }
.index-detail > .muted { font-size: 11px; line-height: 1.9; }
.index-connection { display: flex; align-items: center; gap: 0; margin: 27px 0 20px; }
.connection-line { flex: 1; height: 1px; background: #c6d9c1; position: relative; }
.connection-line::after { content: ''; position: absolute; width: 5px; height: 5px; border: 1px solid #b6cdb2; border-width: 1px 1px 0 0; transform: rotate(45deg); right: 0; top: -2px; }
.index-connection .tag { margin-left: 10px; background: #f2f6ed; font-family: monospace; color: #839d7b; }
.postings article { border: 1px solid var(--line); border-radius: 8px; padding: 15px; margin-bottom: 10px; }
.posting-heading { display: flex; align-items: center; gap: 9px; }
.posting-heading > .icon { color: #8fae86; width: 16px; height: 16px; }
.posting-heading > .icon:last-child { width: 13px; height: 13px; }
.posting-heading button { flex: 1; padding: 0; text-align: left; font-size: 12px; color: #42795a; line-height: 1.6; overflow-wrap: anywhere; }
.posting-heading button:hover { text-decoration: underline; }
.posting-stats { display: flex; gap: 13px; margin: 12px 0 0 25px; font-size: 9px; color: #9aa48f; flex-wrap: wrap; }
.posting-stats strong { font-weight: 500; color: #668f60; }
.posting-stats .mono { margin-left: auto; font-size: 8px; overflow-wrap: anywhere; }
.postings details { font-size: 10px; color: #97a58c; padding: 11px 0 0 25px; }
summary { cursor: pointer; }
.postings details p { line-height: 1.8; margin: 10px 0; overflow-wrap: anywhere; }
.postings details small { font-size: 9px; }
.idf-note { display: flex; gap: 11px; padding: 18px; background: #f3f7ee; border-radius: 8px; margin-top: 21px; }
.idf-note > .icon { width: 17px; height: 17px; color: #8cab7d; }
.idf-note strong { font-size: 11px; color: #64845b; font-weight: 500; }
.idf-note p { font-size: 10px; line-height: 1.9; color: #97a58b; margin: 9px 0 0; }
.idf-note code { font-size: 9px; overflow-wrap: anywhere; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; gap: 15px; }
.collection-toolbar h2 { margin: 0; font-size: 14px; font-weight: 550; display: flex; align-items: center; gap: 9px; }
.collection-toolbar > div { display: flex; gap: 8px; }
.collection-toolbar .button { font-size: 10px; min-height: 38px; padding: 8px 11px; }
.collection-toolbar .icon { width: 15px; height: 15px; }
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.library-card { border: 1px solid var(--line); border-radius: 10px; padding: 19px 19px 10px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.library-card:hover { border-color: #bccfb5; box-shadow: 0 4px 15px #395b3210; }
.library-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 17px; }
.doc-icon { width: 34px; height: 37px; display: grid; place-items: center; background: #eff5e9; border-radius: 7px; color: #7b9970; }
.doc-icon .icon { width: 17px; height: 17px; }
.library-card h3 { font-size: 14px; font-weight: 550; line-height: 1.8; margin: 0 0 12px; }
.library-card h3 button { padding: 0; text-align: left; line-height: inherit; overflow-wrap: anywhere; }
.library-card h3 button:hover { color: var(--teal); }
.library-card > p { font-size: 10px; color: #909d88; line-height: 1.9; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.library-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 5px; border-top: 1px solid #edf0e7; margin-top: auto; padding-top: 8px; }
.library-card-bottom small { font-size: 8px; color: #a1aa99; }
.library-card-bottom > div { display: flex; }
.library-card-bottom .icon-button { width: 28px; height: 30px; color: #93a28a; }
.library-card-bottom .icon { width: 13px; height: 13px; }
.collection-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.collection-foot > p { color: #9aaa90; font-size: 10px; line-height: 1.8; margin: 0; }
.collection-foot .icon { width: 13px; height: 13px; margin-right: 4px; }
.collection-foot .text-button { font-size: 10px; white-space: nowrap; }
.empty-state { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 60px 25px; border: 1px dashed #dce5d6; border-radius: 10px; background: #fafbf8; }
.empty-state > .icon { width: 35px; height: 35px; color: #acc1a3; margin-bottom: 25px; }
.empty-state h2 { font-size: 16px; font-weight: 500; line-height: 1.7; }
.empty-state p { font-size: 12px; color: #8b9c84; max-width: 400px; line-height: 1.9; }
.empty-state .button { margin-top: 10px; }
.document-grid > .empty-state { grid-column: 1/-1; }
.empty-small { padding: 40px 15px; font-size: 12px; color: #93a18c; text-align: center; }
.storage-warning { color: #91602a; padding: 15px; border: 1px solid #ebd9ad; border-radius: 8px; background: #fffbef; font-size: 12px; line-height: 1.8; margin-bottom: 25px; }
.storage-warning .text-button { display: block; }
dialog { border: 1px solid #dce5d8; border-radius: 15px; width: min(620px, calc(100vw - 40px)); max-height: calc(100dvh - 60px); padding: 30px; color: var(--ink); box-shadow: 0 30px 100px #18372c33; overscroll-behavior: contain; }
dialog.wide { width: min(740px, calc(100vw - 40px)); }
dialog::backdrop { background: #213b3266; backdrop-filter: blur(4px); }
dialog[open] { animation: dialog-in .22s ease-out; }
.dialog-header { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; margin-bottom: 25px; }
.dialog-header h2 { font-size: 22px; font-weight: 550; margin: 11px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.dialog-header .icon-button { color: #8f9f86; background: #f4f7ef; flex: 0 0 auto; }
.dialog-header .eyebrow { font-size: 9px; }
.explain-summary { display: flex; align-items: center; gap: 19px; background: var(--surface); border: 1px solid var(--line); padding: 20px; border-radius: 10px; }
.big-rank { color: var(--teal); font-size: 37px; letter-spacing: -1px; white-space: nowrap; }
.big-rank small { font-size: 12px; margin-left: 4px; }
.explain-summary > div { flex: 1; min-width: 0; }
.explain-summary h3 { font-size: 13px; line-height: 1.7; font-weight: 550; margin: 0 0 8px; overflow-wrap: anywhere; }
.explain-summary > div > span { font-size: 10px; color: #8d9f83; overflow-wrap: anywhere; }
.big-score { font: 27px monospace; color: var(--teal); text-align: right; }
.big-score small { display: block; font: 9px -apple-system, sans-serif; color: #91a184; margin-top: 8px; white-space: nowrap; }
.explain-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0 26px; }
.explain-reasons > span { font-size: 10px; color: #7a976c; display: flex; align-items: center; gap: 4px; padding: 6px 9px; background: #f2f7ec; border-radius: 5px; }
.explain-reasons .icon { width: 12px; height: 12px; }
.contribution { margin: 19px 0; }
.contribution-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.contribution-heading .token { font-size: 11px; padding: 5px 10px; }
.contribution-heading strong { font: 14px monospace; color: var(--teal); }
.contribution-track { height: 10px; background: #eef3e9; border-radius: 4px; overflow: hidden; }
.contribution-track i { display: block; background: #72a985; height: 100%; border-radius: 4px; animation: bar-in .6s ease-out; transform-origin: left; }
.contribution:first-child .contribution-track i { background: var(--teal); }
.contribution-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; color: #98a88d; margin-top: 9px; }
.score-equation { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px; margin-top: 27px; background: #f1f6ed; border: 1px solid #e3ecdc; border-radius: 9px; }
.score-equation > div { text-align: center; }
.score-equation strong { display: block; font: 23px monospace; color: #597451; }
.score-equation span { display: block; font-size: 9px; color: #92a288; margin-top: 10px; }
.score-equation > b { font-size: 17px; color: #b2c0a8; font-weight: 400; }
.score-equation .equation-total strong { color: var(--teal); }
.formula-details { margin-top: 22px; border: 1px solid var(--line); padding: 15px; border-radius: 8px; }
.formula-details summary { color: #698763; font-size: 11px; }
.formula-details summary .icon { width: 15px; height: 15px; float: right; }
.formula-details p { font-size: 11px; line-height: 1.9; color: #87997e; margin: 16px 0 0; }
.formula-details code { display: block; background: #f6f8f2; padding: 12px; margin-top: 14px; font-size: 10px; color: #638558; line-height: 2; overflow-wrap: anywhere; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 25px; }
.reader-meta { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #95a28a; margin-bottom: 27px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.reader-meta .icon { width: 14px; height: 14px; }
.reader-meta > span { margin-left: auto; }
.reader-body p { font-size: 14px; line-height: 2.15; margin: 0 0 20px; color: #5f715b; overflow-wrap: anywhere; white-space: pre-wrap; }
.editor-intro { font-size: 12px; line-height: 1.8; }
.form-field { display: block; margin-top: 20px; font-size: 12px; font-weight: 550; }
.form-field > span { font-size: 9px; color: #9da991; font-weight: 400; margin-left: 7px; }
.form-field input, .form-field textarea { display: block; width: 100%; border: 1px solid #dce5d6; border-radius: 7px; padding: 12px; margin-top: 10px; font-size: 13px; font-weight: 400; background: #fcfdfa; }
.form-field textarea { resize: vertical; min-height: 150px; line-height: 1.9; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--teal); }
.form-error { color: #b74739; font-size: 12px; line-height: 1.8; margin-top: 15px; }
.form-error:empty { display: none; }
.editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 25px; }
.editor-foot > span { color: #9aab8e; font-size: 9px; }
.editor-foot > span .icon { width: 12px; height: 12px; margin-right: 4px; }
.editor-foot > div { display: flex; gap: 8px; }
.confirm-description { font-size: 13px; line-height: 2; color: #7b9070; overflow-wrap: anywhere; }
.toast { position: fixed; bottom: 25px; left: calc(50% + var(--sidebar) / 2); transform: translate(-50%, 20px); padding: 15px 20px; max-width: calc(100vw - 40px); border: 1px solid #456957; background: #244c3d; box-shadow: 0 7px 25px #1a352930; border-radius: 10px; color: #fff; display: flex; align-items: center; gap: 10px; font-size: 12px; z-index: 100; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); visibility: visible; }
.toast > .icon { width: 16px; height: 16px; color: #b6d9ac; }
.toast > span { line-height: 1.8; }
.toast > button { color: #c6e9a7; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; padding: 5px; }

/* Explanatory text carries meaning too: keep it readable on the pale surfaces. */
.inside-preview > p, .tip-card p, .local-note, .card-foot,
.mini-pipeline small, .result-metrics, .document-label, .document-label > span:last-child,
.page-hero p, .field-label, .processing-note, .educational-note,
.contribution-labels, .explain-summary > div > span, .big-score small,
.score-equation span, .formula-details p, .posting-stats, .postings details,
.idf-note p, .library-card > p, .library-card-bottom small, .collection-foot > p,
.form-field > span, .reader-meta, .empty-state p, .word-table-heading,
.stat-grid > div > span, .two-facts span, .callout span, .output-summary p {
  color: var(--muted);
}

@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 1500px) {
  :root { --sidebar: 255px; }
  main { padding-inline: 62px; padding-top: 52px; }
  .search-layout { grid-template-columns: minmax(0, 1fr) 315px; gap: 34px; }
  .search-hero { padding-bottom: 39px; }
  .search-hero h1 { font-size: 46px; }
  .search-hero > p { font-size: 13px; }
  .result-card { padding: 23px 24px 0; margin-bottom: 16px; }
  .result-card h3 { font-size: 18px; }
  .result-snippet { font-size: 12px; }
  .result-bottom { min-height: 49px; }
  .inside-preview { padding: 27px 25px 19px; }
  .inside-preview h2 { font-size: 20px; }
}
@media (max-width: 1190px) {
  :root { --sidebar: 207px; }
  .sidebar { padding-inline: 13px; }
  .brand { gap: 8px; margin-inline: 5px; }
  .brand > span { font-size: 20px; }
  .brand img { width: 33px; height: 33px; }
  main { padding: 31px 30px 25px; }
  .topbar { padding-inline: 30px; }
  .search-layout { grid-template-columns: minmax(0, 1fr) 251px; gap: 20px; }
  .inside-preview { padding: 21px 17px 15px; }
  .result-card { padding: 17px 16px 0; }
  .result-card h3 { font-size: 15px; }
  .result-metrics { font-size: 8px; }
  .why-button { font-size: 9px; }
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-footer { margin-inline: 30px; }
  .index-layout { grid-template-columns: 235px minmax(0, 1fr); gap: 18px; }
  .index-detail { padding: 20px; }
  .selected-word { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 1000px) {
  :root { --sidebar: 187px; }
  .brand > span { font-size: 18px; }.brand small { font-size: 5.5px; }.brand img { width: 29px; height: 29px; }
  .nav-item { padding-inline: 11px; gap: 10px; }
  .search-hero h1 { font-size: 30px; }
  .search-layout { grid-template-columns: minmax(0, 1fr); }
  .search-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 0; }
  .inside-preview { grid-row: span 2; }
  .tip-card { padding: 14px 0; align-self: end; }
  .local-note { padding: 0; }
  .card-eyebrow { margin-bottom: 16px; }
  .mini-pipeline { margin: 18px 0; }
  .mini-pipeline > div { min-height: 56px; }
  .result-card h3 { font-size: 17px; }
  .result-snippet { font-size: 12px; }
  .result-metrics { font-size: 10px; }
  .why-button { font-size: 11px; }
  .section-heading .small { font-size: 10px; }
  .score-row { flex-wrap: wrap; }.score-row > span { flex-basis: 70%; }
  .score-row code { order: 4; width: 100%; }
  .stage-detail { padding: 24px 22px 0; }
  .detail-heading h2 { font-size: 18px; }
  .stat-grid { gap: 10px; }.stat-grid > div { padding: 17px 15px; }.stat-grid .icon { display: none; }
  .stat-grid > div > span { margin-right: 0; font-size: 10px; }
  .index-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 13px; }
  .index-detail { padding: 16px; }
  .posting-stats { margin-left: 0; gap: 8px; }
  .idf-note { padding: 12px; }
  .collection-toolbar { align-items: flex-start; flex-direction: column; }
  .collection-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 759px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 100%; height: 67px; inset: auto 0 0; padding: 0 8px env(safe-area-inset-bottom); border: 0; border-top: 1px solid #dfe8d9; flex-direction: row; align-items: stretch; background: #fcfdf9f5; backdrop-filter: blur(16px); }
  .brand, .sidebar-label, .sidebar-divider, .sidebar-add, .sidebar-bottom { display: none; }
  .main-nav { display: contents; }
  .nav-item, .collection-nav { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 5px; padding: 10px 3px 8px; border-radius: 0; margin: 0; font-size: 10px; justify-content: center; position: relative; }
  .nav-item > .icon { width: 20px; height: 20px; }
  .nav-item > span:not(.nav-active-dot) { flex: 0; font-size: 9px; }
  .nav-item small, .nav-active-dot { display: none; }
  .nav-item.active { background: transparent; color: var(--teal); }
  .nav-item.active::before { content: ''; position: absolute; height: 2px; width: 26px; background: var(--teal); top: 0; border-radius: 0 0 3px 3px; }
  .workspace { margin: 0; padding-bottom: 67px; }
  .topbar { padding: 0 22px; min-height: 64px; }
  .breadcrumb { font-size: 10px; gap: 10px; }
  .breadcrumb::before { content: ''; width: 27px; height: 27px; background: url('./assets/icon.svg') center / contain no-repeat; margin-right: 2px; }
  .topbar-right { gap: 10px; }.privacy-badge { display: none; }
  .topbar-right .compact { padding: 7px 9px; min-height: 33px; font-size: 10px; }
  main { padding: 31px 22px 23px; }
  .search-hero { padding: 4px 0 29px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .search-hero h1 { font-size: 33px; line-height: 1.5; letter-spacing: -1px; margin: 18px 0 13px; }
  .search-hero > p { font-size: 11px; letter-spacing: .1px; line-height: 1.95; margin-bottom: 23px; }
  .mobile-only { display: block; }
  .search-box { gap: 10px; padding: 7px 7px 7px 13px; border-radius: 9px; }
  .search-box > .icon { width: 20px; height: 20px; }
  .search-box input { font-size: 16px; letter-spacing: 0; padding: 6px 0; }
  .search-box kbd { display: none; }
  .search-box .button { font-size: 11px; padding: 10px 12px; min-height: 39px; }
  .search-box .button .icon { display: none; }
  .suggestions { gap: 7px; margin-top: 12px; }
  .suggestions > span { font-size: 9px; width: 100%; margin-bottom: 1px; }
  .suggestion { font-size: 9px; gap: 5px; padding: 6px 8px; min-height: 29px; }
  .suggestion .icon { width: 10px; height: 10px; }
  .section-heading { margin-bottom: 15px; flex-wrap: wrap; gap: 7px; }
  .section-heading h2 { font-size: 12px; }
  .section-heading .small { font-size: 9px; }
  .result-card { padding: 17px 16px 0; margin-bottom: 13px; }
  .result-card h3 { font-size: 16px; line-height: 1.7; margin-bottom: 10px; }
  .document-label { font-size: 8px; gap: 5px; }
  .result-top { margin-bottom: 11px; }
  .result-snippet { font-size: 11px; -webkit-line-clamp: 3; line-height: 1.95; margin-bottom: 15px; }
  .result-bottom { min-height: 45px; }
  .result-metrics { font-size: 9px; gap: 5px; }
  .metric-divider { margin: 0 3px; }
  .why-button { font-size: 10px; gap: 4px; }
  .why-button .icon { width: 12px; height: 12px; }
  .why-button .icon:last-child { display: none; }
  .search-aside { display: block; margin-top: 4px; }
  .inside-preview { padding: 23px; }
  .inside-preview > p br { display: none; }
  .inside-preview h2 { font-size: 20px; }
  .mini-pipeline { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; margin: 24px 0; }
  .mini-pipeline > div { min-height: 40px; gap: 9px; }
  .mini-pipeline > div::before { display: none; }
  .mini-pipeline strong { font-size: 10px; }.mini-pipeline small { font-size: 8px; }
  .mini-bars { display: none; }
  .tip-card { padding: 23px 6px; }.tip-card p { font-size: 11px; }.tip-card h3 { font-size: 12px; }
  .local-note { padding: 17px 6px; }
  .local-note p { font-size: 10px; }
  .app-footer { margin: 0 22px; padding: 18px 0; flex-wrap: wrap; font-size: 8px; gap: 9px; }
  .page-hero { margin: 2px 0 25px; }
  .page-hero h1 { font-size: 27px; margin: 17px 0 12px; line-height: 1.55; }
  .page-hero p { font-size: 11px; }
  .trace-toolbar { padding: 12px; flex-wrap: wrap; gap: 12px; }
  .trace-toolbar > div { gap: 9px; flex-wrap: wrap; }
  .trace-toolbar strong { font-size: 13px; }
  .trace-toolbar .button { min-height: 35px; font-size: 10px; padding: 8px 11px; }
  .trace-toolbar .button .icon { width: 14px; height: 14px; }
  .stage-nav { margin: 28px 0; gap: 2px; }
  .stage { padding: 0; }.stage-number { width: 33px; height: 33px; border-radius: 9px; font-size: 10px; }
  .stage:not(:last-child)::after { top: 16px; left: calc(50% + 21px); width: calc(100% - 42px); }
  .stage strong { font-size: 9px; }.stage small { font-size: 5px; letter-spacing: .3px; }
  .stage-detail { padding: 22px 17px 0; border-radius: 10px; }
  .detail-heading { align-items: flex-start; gap: 12px; }
  .detail-number { font-size: 28px; }
  .detail-heading h2 { font-size: 16px; line-height: 1.7; margin-top: 7px; }
  .detail-heading .eyebrow { font-size: 8px; }
  .stage-description { font-size: 11px; }
  .input-display { padding: 20px; }.input-display strong { font-size: 23px; }
  .two-facts { gap: 24px; }.two-facts > div { align-items: flex-start; flex-direction: column; gap: 5px; }.two-facts span { font-size: 10px; }
  .stage-footer .button { font-size: 10px; min-height: 35px; padding: 8px 10px; }.stage-footer .icon { width: 13px; height: 13px; }
  .token-flow { gap: 10px; }.token-flow > div { padding: 13px; }.token-flow code { font-size: 14px; }.field-label { font-size: 8px; line-height: 1.7; }
  .lookup-list > div { gap: 9px; flex-wrap: wrap; }.lookup-list .posting-chips { flex-basis: 60%; }.lookup-list > div > strong { display: none; }
  .lookup-list .token { font-size: 10px; padding: 6px 8px; }
  .callout { align-items: flex-start; flex-direction: column; gap: 8px; }
  .formula { padding: 17px; }.formula strong { font-size: 13px; }.formula small { font-size: 9px; line-height: 1.8; }
  .chart-main > span:first-child { font-size: 10px; line-height: 1.8; }.ranking-chart button { gap: 10px; }.ranking-chart strong { font-size: 12px; }
  .stat-grid { gap: 8px; margin: 20px 0; }.stat-grid > div { padding: 14px 11px; }.stat-grid > div > span { font-size: 8px; margin-bottom: 12px; }.stat-grid strong { font-size: 26px; }.stat-grid strong small { font-size: 9px; margin-left: 3px; }
  .index-layout { grid-template-columns: 1fr; gap: 20px; }.index-detail { padding: 21px; }
  .word-scroll { max-height: 235px; }.word-row { padding-block: 12px; }.word-row > span:last-child { font-size: 12px; }
  .selected-word { flex-direction: row; align-items: center; }.selected-word h2 { font-size: 27px; }
  .posting-stats { margin-left: 25px; }.idf-note { padding: 15px; }
  .document-grid { gap: 13px; grid-template-columns: 1fr; }.library-card { padding: 20px 20px 12px; }
  .library-card h3 { font-size: 16px; }.library-card > p { font-size: 11px; -webkit-line-clamp: 2; }
  .library-card-bottom small { font-size: 9px; }.library-card-bottom .icon-button { width: 35px; height: 35px; }.library-card-bottom .icon { width: 16px; height: 16px; }
  .collection-toolbar > div { flex-wrap: wrap; }.collection-toolbar .button { font-size: 10px; padding: 8px 10px; }
  .collection-foot > p { font-size: 10px; }.collection-foot .text-button { font-size: 11px; }
  dialog, dialog.wide { width: calc(100vw - 24px); max-height: calc(100dvh - 30px); padding: 22px 18px; border-radius: 12px; }
  .dialog-header { margin-bottom: 21px; gap: 12px; }.dialog-header h2 { font-size: 19px; }.dialog-header .eyebrow { font-size: 8px; }
  .explain-summary { gap: 12px; padding: 15px 12px; flex-wrap: wrap; }.big-rank { font-size: 31px; }.explain-summary h3 { font-size: 11px; }.explain-summary > div > span { font-size: 9px; }.big-score { font-size: 23px; }.big-score small { font-size: 8px; }
  .explain-reasons { gap: 6px; }.explain-reasons > span { font-size: 9px; padding: 6px 7px; }
  .score-equation { padding: 16px 10px; gap: 5px; }.score-equation strong { font-size: 20px; }.score-equation span { font-size: 8px; }.score-equation > b { font-size: 14px; }
  .contribution-labels { font-size: 8px; flex-wrap: wrap; }.dialog-actions { gap: 8px; }.dialog-actions .button { font-size: 10px; padding: 10px 12px; }.dialog-actions .icon { width: 15px; height: 15px; }
  .reader-body p { font-size: 13px; }.form-field input, .form-field textarea { font-size: 16px; }.form-field input::placeholder, .form-field textarea::placeholder { font-size: 12px; }
  .editor-foot { flex-wrap: wrap; }.editor-foot > div { margin-left: auto; }.editor-foot .button { font-size: 11px; padding: 9px 12px; }
  .toast { bottom: 82px; font-size: 11px; width: max-content; padding: 13px 15px; }
}
@media (max-width: 374px) {
  main { padding-inline: 16px; }.topbar { padding-inline: 16px; }.topbar-right .compact span { display: none; }
  .search-hero h1 { font-size: 29px; }.suggestion { font-size: 8px; padding-inline: 6px; }.suggestion .icon { display: none; }
  .result-metrics { font-size: 8px; }.why-button { font-size: 9px; }.result-card { padding-inline: 13px; }
  .document-label > span:last-child, .label-separator { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
