:root {
  color-scheme: light;
  --ink: #101e33;
  --muted: #50627a;
  --accent: #214f84;
  --stroke: #d6dfec;
  --paper: #f2f5fa;
  --white: #fff;
  --navy: #071323;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: .95rem; line-height: 1.55; }
button, input, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #176dcb; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.15; }
.wrap, .website-analytics__inner { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -4rem; left: 1rem; padding: .65rem; background: var(--white); z-index: 2; }
.skip:focus { top: .3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.top { background: var(--navy); color: var(--white); border-bottom: 1px solid #2b3a52; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--white); text-decoration: none; font-weight: 750; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: clamp(.65rem, 2vw, 1.5rem); }
.top nav a { color: #d5e3f5; font-size: .85rem; }
.intro { background: radial-gradient(ellipse at 86% 55%, #253d5d 0%, #122640 44%, var(--navy) 84%); color: var(--white); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; padding-block: clamp(1.7rem, 5vw, 3.3rem); }
.hero h1 { font-size: clamp(2.35rem, 6vw, 4.55rem); font-weight: 780; letter-spacing: -.065em; }
.hero p { color: #d4e2f3; margin-top: .55rem; font-size: clamp(.9rem, 2vw, 1.125rem); max-width: 31rem; }
.product { display: flex; align-items: center; justify-content: flex-start; gap: .85rem; padding: .6rem .95rem .6rem .55rem; flex: 0 0 min(37%, 297px); border: 1px solid #506682; border-radius: 12px; background: #10223abf; }
.product img { flex: 0 0 auto; object-fit: contain; }
.product strong { display: block; line-height: 1.25; }
.product p { margin-top: .3rem; font-size: .78rem; }
.workspace { padding-block: 1.3rem 3.5rem; scroll-margin-block-start: .5rem; }
.panel { background: var(--white); border: 1px solid var(--stroke); border-radius: 14px; }
.controls { padding: 1rem 1.2rem .85rem; margin-bottom: 1rem; }
.config { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(205px, .65fr); gap: 1rem; align-items: end; }
.stacked { display: grid; gap: .32rem; font-weight: 650; font-size: .84rem; }
select, input[type="search"] { background: var(--white); border: 1px solid #aab9cc; border-radius: 7px; min-height: 44px; padding: .5rem .65rem; min-width: 0; width: 100%; font-weight: 560; }
.view { padding: 0; margin: 0; border: 0; min-width: 0; }
.view legend { margin-bottom: .32rem; padding: 0; font-weight: 650; font-size: .84rem; }
.segments { display: flex; padding: 3px; background: var(--paper); border: 1px solid var(--stroke); border-radius: 8px; min-height: 44px; }
.segments label { position: relative; flex: 1; display: flex; cursor: pointer; }
.segments label span { display: grid; place-items: center; flex: 1; border-radius: 5px; font-size: .87rem; font-weight: 650; padding-inline: .45rem; }
.segments input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.segments input:checked + span { color: var(--white); background: var(--accent); }
.segments input:focus-visible + span { outline: 3px solid #176dcb; outline-offset: 3px; }
.context-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .7rem; font-size: .82rem; color: var(--muted); }
.context-row a { font-weight: 650; }
.pull-scope { display: grid; grid-template-columns: minmax(13rem, 18rem) 1fr; align-items: end; gap: .6rem 1rem; border-top: 1px solid var(--stroke); margin-top: .75rem; padding-top: .75rem; }
.pull-scope-note { color: var(--muted); font-size: .82rem; }
.pull-scope-note p + p { margin-top: .18rem; }
.pull-scope-note a { font-weight: 650; }
.context-actions { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.tune-jump { display: none; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 285px); gap: 1rem; align-items: start; }
.board-head { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1rem; padding: 1.15rem 1.2rem .55rem; }
.board-head h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); }
.board-head p { font-size: .87rem; color: var(--muted); margin-top: .25rem; max-width: 30rem; }
.search { display: flex; align-items: center; position: relative; color: var(--accent); width: min(100%, 207px); }
.search svg { position: absolute; left: .7rem; pointer-events: none; }
.search input { padding-left: 2.1rem; font-size: .87rem; }
.quick { display: flex; flex-wrap: wrap; gap: .4rem; margin: .15rem 1.2rem 0; }
.quick button { min-height: 34px; border: 1px solid var(--stroke); color: var(--accent); border-radius: 6px; background: #f0f5fd; padding: .22rem .55rem; font-size: .79rem; }
.quick button:hover { border-color: var(--accent); }
.result-status { padding: .45rem 1.2rem .55rem; color: var(--muted); font-size: .79rem; }
.row { border-top: 1px solid var(--stroke); }
.row > summary { list-style: none; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) 5.9rem 1rem; gap: .62rem; align-items: center; padding: .75rem 1.2rem; min-height: 71px; }
.row > summary::-webkit-details-marker, .sidebar-panel > summary::-webkit-details-marker { display: none; }
.row > summary:hover, .row[open] > summary { background: #f6f9fe; }
.place { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.row:nth-child(-n+3) .place { font-weight: 750; color: var(--accent); }
.spot-name { display: block; font-weight: 760; letter-spacing: -.018em; line-height: 1.25; overflow-wrap: anywhere; }
.spot-reason { display: block; color: var(--muted); font-size: .8rem; margin-top: .18rem; line-height: 1.35; }
.spot-pull { display: block; color: #72501d; font-size: .77rem; margin-top: .3rem; font-weight: 650; }
.spot-pull-list { color: var(--muted); font-size: .85rem; padding-left: 1.15rem; margin: .25rem 0 .8rem; }
.score { justify-self: end; min-width: 4.8rem; text-align: right; white-space: nowrap; color: #143e70; }
.score strong { font-size: 1.17rem; font-variant-numeric: tabular-nums; }
.score small { font-size: .68rem; color: var(--muted); }
.price-rank { display: block; margin-top: .28rem; font-size: .72rem; color: var(--muted); font-weight: 650; }
.rainbow-details { margin-top: .28rem; }
.rainbow-details summary { cursor: pointer; color: var(--accent); font-size: .8rem; font-weight: 650; }
.rainbow-odds { display: grid; gap: .15rem; margin: .38rem 0 0; color: var(--muted); font-size: .8rem; }
.rainbow-odds div { display: flex; gap: .12rem .65rem; flex-wrap: wrap; }
.rainbow-odds dd { margin: 0; }
.score-track { display: block; height: 4px; margin-top: .12rem; margin-left: auto; border-radius: 2px; background: #dbe5f2; }
.score-track span { display: block; height: 100%; border-radius: inherit; background: #3674bc; }
.row > summary::after, .sidebar-panel > summary::after { content: ""; display: block; width: .48rem; height: .48rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); justify-self: end; color: var(--accent); }
.row[open] > summary::after, .sidebar-panel[open] > summary::after { transform: rotate(225deg); }
.row-body { border-top: 1px solid var(--stroke); padding: .85rem 1.2rem 1.15rem; background: #fbfcfe; }
.components { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: 0 0 .85rem; }
.components--breaker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.components div { padding: .45rem .6rem; background: var(--white); border: 1px solid var(--stroke); border-radius: 8px; }
.components dt { font-size: .75rem; color: var(--muted); }
.components dd { margin: 0; font-size: .92rem; font-weight: 740; }
.chase-list { padding: 0; margin: .35rem 0 .55rem; list-style: none; }
.chase-list li { display: flex; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; padding: .5rem 0; border-bottom: 1px solid var(--stroke); }
.chase-list span { display: block; color: var(--muted); font-size: .8rem; }
.chase-list strong { display: block; font-size: .88rem; }
.chase-label { text-align: right; }
.row-body h3 { font-size: 1rem; }
.row-body > a { display: inline-block; margin-top: .35rem; font-size: .81rem; }
.more { padding: .75rem 1.2rem; }
.more:has(button[hidden]) { display: none; }
button:not(.quick button) { background: #eaf2fd; border: 1px solid #b7c9e0; border-radius: 7px; color: #1a4878; padding: .45rem .75rem; min-height: 44px; font-size: .86rem; font-weight: 690; }
button:not(.quick button):hover { background: #dfecfc; border-color: var(--accent); }
.sidebar { display: grid; gap: .7rem; }
.sidebar-panel { scroll-margin-block-start: 1rem; }
.sidebar-panel summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .9rem 1rem; min-height: 61px; list-style: none; }
.sidebar-panel summary strong, .sidebar-panel summary small { display: block; line-height: 1.3; }
.sidebar-panel summary small { color: var(--muted); margin-top: .2rem; font-size: .78rem; }
.sidebar-body { padding: .15rem 1rem 1rem; }
.weight-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .15rem .55rem; margin: .4rem 0 .55rem; font-size: .86rem; font-weight: 610; }
.weight-field output { color: var(--accent); font-variant-numeric: tabular-nums; }
.weight-field input { grid-column: 1 / -1; min-width: 0; width: 100%; height: 26px; margin: 0; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: .79rem; line-height: 1.5; margin-bottom: .7rem; }
.stacked + .hint { margin-top: .35rem; }
.check { display: flex; align-items: center; gap: .45rem; min-height: 44px; font-size: .83rem; }
.check input { accent-color: var(--accent); }
.rating-row { display: flex; gap: .5rem; align-items: end; margin-top: .5rem; }
.rating-target { margin-top: .5rem; }
.rating-row .stacked { flex: 1; }
#rating-status { margin: .55rem 0 0; }
.method { font-size: .81rem; }
.method dt { font-weight: 750; }
.method dd { margin: 0 0 .65rem; color: var(--muted); }
.sources { padding-left: 1.1rem; margin: .55rem 0 0; }
.message { padding: .75rem 1rem; margin-bottom: 1rem; border: 1px solid #b7c9e0; border-radius: 7px; background: var(--white); }
.release-notes { padding-bottom: 1.5rem; font-size: .9rem; }
.release-notes h2 { font-size: 1.18rem; }
.release-notes ul { padding-left: 1.25rem; margin-bottom: 0; }
.release-notes li + li { margin-top: .45rem; }
.footer { border-top: 1px solid var(--stroke); padding-block: 1rem 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; justify-content: space-between; color: var(--muted); font-size: .81rem; }
@media (max-width: 790px) {
  .wrap, .website-analytics__inner { width: calc(100% - 36px); }
  .workspace-grid { grid-template-columns: 1fr; }
  .tune-jump { display: inline-flex; align-items: center; min-height: 30px; }
  .context-actions { align-items: center; }
  .config { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .config > .stacked:first-child { grid-column: 1 / -1; }
  .search { width: min(100%, 240px); }
}
@media (max-width: 480px) {
  .wrap, .website-analytics__inner { width: calc(100% - 24px); }
  .hero { display: grid; gap: .7rem; }
  .product { padding: .3rem .6rem .3rem .4rem; width: fit-content; max-width: 100%; }
  .product img { width: 37px; height: 44px; }
  .product strong, .product p { font-size: .78rem; }
  .product p { margin-top: .15rem; }
  .config { gap: .65rem; }
  .pull-scope { grid-template-columns: 1fr; }
  .controls { padding: .8rem; }
  .board-head { padding-inline: .75rem; }
  .search { width: 100%; }
  .quick { margin-inline: .75rem; }
  .quick button { min-height: 40px; }
  .result-status { padding-inline: .75rem; }
  .row > summary { grid-template-columns: 1.65rem minmax(0, 1fr) 4.55rem .65rem; gap: .4rem; padding-inline: .75rem; }
  .score { min-width: 3.8rem; }
  .score strong { font-size: 1rem; }
  .row-body { padding-inline: .75rem; }
  .chase-label { text-align: left; }
  .components div { padding-inline: .4rem; }
  .components--breaker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
