:root {
  --bg: #f5efe3;
  --bg-2: #efe6d4;
  --paper: #fffaf1;
  --ink: #2a2622;
  --ink-2: #5e554b;
  --ink-3: #8c8173;
  --line: #ddd2bf;
  --ocean: #e6e4dc;
  --ocean-2: #dcdad1;
  --accent: #b9532f;
  --accent-ink: #8d3a1d;
  --teal: #2f6f7e;
  --nodata: #d6d1c7;
  --outside: #ebe6dc;
  --c1: #2b6777;
  --c2: #7eb0b1;
  --c3: #ecdcb0;
  --c4: #e59e63;
  --c5: #b84a28;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(60, 40, 20, .28), 0 2px 6px -2px rgba(60, 40, 20, .12);
  --panel-w: 460px;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent-ink); }

.app {
  display: grid;
  grid-template-rows: auto auto 1fr;
  height: 100dvh;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.title { margin: 0; font-family: var(--serif); font-weight: 800; line-height: 1.15; letter-spacing: .02em; }
.title-main { font-size: 26px; display: inline-block; margin-right: .5em; }
.tagline { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.btn {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--ink-3); }
.btn.ghost { background: rgba(255, 250, 241, .85); }
.icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: inline-grid; place-items: center;
  font-size: 15px; line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.icon-btn:hover { border-color: var(--ink-3); }

.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 10px; width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 2; pointer-events: none; }
.search input {
  width: 190px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 32px;
  background: var(--paper);
  font: inherit; font-size: 13px; color: var(--ink);
}
.search input:focus { outline: 2px solid color-mix(in srgb, var(--teal) 40%, transparent); border-color: var(--teal); }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  list-style: none; margin: 0; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  max-height: 320px; overflow: auto; min-width: 240px;
}
.search-results li { padding: 6px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.search-results li[aria-selected="true"], .search-results li:hover { background: var(--bg-2); }
.search-results .en { color: var(--ink-3); font-size: 11px; }

/* ---------- layer chips ---------- */
.layers {
  display: flex; gap: 6px; padding: 8px 22px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.layers::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 4px 12px 4px 6px;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.chip img { width: 22px; height: 22px; object-fit: contain; }
.chip .dot { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; background: var(--bg-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-sep { flex: 0 0 1px; background: var(--line); margin: 4px 4px; }

/* ---------- stage ---------- */
.stage { position: relative; display: grid; grid-template-columns: 1fr var(--panel-w); min-height: 0; }
.map-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, var(--ocean) 0%, var(--ocean-2) 100%); }
.map { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.map:active { cursor: grabbing; }
.map .sphere { fill: #eef0ec; stroke: #cfd2ca; }
.map .graticule { fill: none; stroke: #d8dbd3; stroke-width: .6; }
.map .country { stroke: #fffaf1; stroke-width: .5; transition: fill .35s ease; cursor: pointer; }
.map .country.outside { fill: var(--outside); cursor: default; }
.map .country.nodata { fill: var(--nodata); }
.map .country:hover:not(.outside) { stroke: var(--ink); stroke-width: 1.2; }
.map .country.selected { stroke: var(--ink); stroke-width: 2; }
.map .hatch-layer path { fill: url(#hatch); pointer-events: none; }
.map .dot-marker { stroke: #fffaf1; stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .35s ease; }
.map .dot-marker.selected { stroke: var(--ink); stroke-width: 2.4; }
.map .dot-marker:hover { stroke: var(--ink); }
.map .dot-marker.est { stroke: #6b6152; stroke-width: 1.3; }
.map .label-jp { font-size: 11px; fill: var(--ink); paint-order: stroke; stroke: rgba(255, 250, 241, .9); stroke-width: 3px; pointer-events: none; font-weight: 700; }

.map-tools { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; }

.legend {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255, 250, 241, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px 10px;
  box-shadow: var(--shadow);
  font-size: 12px;
  max-width: min(420px, calc(100% - 28px));
}
.legend h3 { margin: 0 0 6px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.legend .scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.legend .scale span { height: 12px; border-radius: 3px; }
.legend .ends.band { display: none; }
.legend .ends { display: flex; justify-content: space-between; color: var(--ink-2); margin-top: 3px; font-size: 11px; }
.legend .ticks { display: grid; grid-template-columns: repeat(5, 1fr); color: var(--ink-3); font-size: 10px; text-align: center; line-height: 1.3; margin-top: 3px; letter-spacing: -.02em; }
.legend .extras { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: var(--ink-2); font-size: 11px; }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; border: 1px solid rgba(0, 0, 0, .08); }
.legend .cats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.legend .note { margin-top: 4px; color: var(--ink-3); font-size: 10.5px; line-height: 1.5; }

.tooltip {
  position: absolute; pointer-events: none; z-index: 20;
  background: var(--ink); color: var(--paper);
  padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.5;
  max-width: 260px; box-shadow: var(--shadow);
}
.tooltip b { font-size: 13px; }
.tooltip .tt-score { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-weight: 700; color: var(--ink); }

/* ---------- panel ---------- */
.panel {
  background: var(--paper);
  border-left: 1px solid var(--line);
  min-height: 0;
  display: flex; flex-direction: column;
  position: relative;
  z-index: 10;
}
.sheet-handle { display: none; }
.panel-scroll { overflow-y: auto; padding: 22px 24px 40px; flex: 1; overscroll-behavior: contain; }

.p-region { font-size: 12px; color: var(--ink-3); letter-spacing: .05em; margin: 0; }
.p-name { font-family: var(--serif); font-weight: 800; font-size: 30px; line-height: 1.2; margin: 2px 0 0; }
.p-name small { font-family: var(--font); font-weight: 400; font-size: 13px; color: var(--ink-3); margin-left: 8px; }
.p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.p-close { flex: 0 0 auto; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.badge {
  font-size: 11.5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.badge.conf-A, .badge.conf-B { background: #e7efe9; border-color: #c6d8cc; }
.badge.conf-C { background: #f4ecd9; border-color: #e2d3ae; }
.badge.conf-D { background: #f3e2db; border-color: #e3c2b4; }
.badge.split { background: #efe7f4; border-color: #d8c8e3; }
button.badge { cursor: pointer; }

.scorecard {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  margin: 14px 0 12px; padding: 14px; border-radius: var(--radius); background: var(--bg);
}
.score-ring { width: 84px; height: 84px; position: relative; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1; }
.score-ring .val small { display: block; font-size: 10px; font-family: var(--font); font-weight: 500; color: var(--ink-3); text-align: center; margin-top: 2px; }
.score-band { font-weight: 700; font-size: 15px; }
.score-axis { position: relative; height: 10px; border-radius: 5px; margin: 8px 0 3px; background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5)); }
.score-axis i { position: absolute; top: -4px; width: 4px; height: 18px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); box-shadow: 0 0 0 2px var(--paper); }
.score-axis i.jp { background: transparent; border: 2px solid var(--ink-2); width: 10px; height: 10px; top: 0; border-radius: 50%; box-shadow: none; }
.score-axis-ends { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); }

.headline { font-family: var(--serif); font-weight: 800; font-size: 20px; line-height: 1.45; margin: 16px 0 6px; }
.summary { color: var(--ink-2); margin: 0 0 14px; }

.sec { margin: 22px 0 0; }
.sec > h3 { font-size: 13px; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 8px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sec > h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* day rhythm strip */
.rhythm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rhythm .cell {
  border-radius: 12px; padding: 8px 6px 7px; text-align: center; border: 2px solid transparent; background: var(--bg);
  position: relative; transition: transform .12s;
}
.rhythm .cell:hover { transform: translateY(-1px); }
.rhythm .cell[aria-pressed="true"] { border-color: var(--ink); }
.rhythm .cell img { width: 40px; height: 40px; object-fit: contain; display: block; margin: 0 auto 2px; }
.rhythm .cell .lbl { font-size: 12px; font-weight: 700; display: block; }
.rhythm .cell .v { font-size: 18px; font-weight: 700; font-family: var(--serif); line-height: 1.1; display: block; }
.rhythm .cell .bar { height: 6px; border-radius: 3px; margin: 5px 4px 0; }
.rhythm .cell .crown { position: absolute; top: 4px; right: 6px; font-size: 10px; background: var(--ink); color: var(--paper); border-radius: 6px; padding: 0 5px; }
.rhythm.compare { margin-top: 6px; }
.rhythm.compare .cell { padding: 4px 6px; background: transparent; border: 1px dashed var(--line); cursor: default; }
.rhythm.compare .cell .v { font-size: 13px; }
.rhythm.compare .cell .lbl { font-size: 10.5px; color: var(--ink-3); font-weight: 500; }
.compare-label { font-size: 12px; color: var(--ink-3); margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.cmp-select { font: inherit; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); max-width: 60%; }
.meal-detail { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.meal-detail h4 { margin: 0 0 4px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.meal-detail h4 .tags { font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
.meal-detail p { margin: 4px 0; }
.meal-detail .why { font-size: 12.5px; color: var(--ink-2); border-left: 3px solid var(--line); padding-left: 8px; margin-top: 8px; }

.axes { display: grid; gap: 10px; }
.axis-row { display: grid; grid-template-columns: 7.5em 1fr 30px; gap: 10px; align-items: center; font-size: 13px; }
.axis-row .meter { height: 8px; border-radius: 4px; background: var(--bg-2); position: relative; overflow: hidden; }
.axis-row .meter span { position: absolute; inset: 0 auto 0 0; border-radius: 4px; }
.axis-row .num { font-weight: 700; text-align: right; font-family: var(--serif); }
.axis-note { font-size: 12.5px; color: var(--ink-2); margin: -4px 0 2px 0; }
.aspiration { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg); }
.aspiration img { width: 64px; height: 64px; object-fit: contain; }
.aspiration b { font-size: 14px; }
.aspiration p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }

.prose { white-space: pre-wrap; }
.kv { display: grid; gap: 10px; }
.kv > div { padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13.5px; }
.kv b { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.weekly { display: flex; flex-wrap: wrap; gap: 6px; }
.weekly span { font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--bg-2); }

.evidence { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.evidence li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.evidence li.hl { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent); }
.evidence .ev-head { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.evidence .tier { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; color: #fff; }
.tier.T1 { background: #2b6777; } .tier.T2 { background: #5b8f7b; } .tier.T3 { background: #a8834a; } .tier.T4 { background: #9a8f84; }
.evidence .meta { font-size: 11px; color: var(--ink-3); }
.evidence a.t { font-weight: 700; text-decoration: none; color: var(--ink); }
.evidence a.t:hover { text-decoration: underline; }
.evidence blockquote { margin: 6px 0; padding: 4px 10px; border-left: 3px solid var(--c3); color: var(--ink-2); font-size: 12.5px; font-style: italic; }
.evidence .gist { margin: 0; }
.evidence .chk { font-size: 10.5px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); }
.evidence .chk.ok { color: #2f6f4e; border-color: #b9d6c3; }
.evidence .chk.ng { color: #9a3b1f; border-color: #e3c2b4; }
.ev-ref { font-size: 10.5px; vertical-align: super; margin-left: 2px; padding: 0 4px; border-radius: 4px; background: var(--bg-2); border: 0; color: var(--ink-2); }

.scoring table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.scoring th, .scoring td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.scoring th:first-child, .scoring td:first-child { text-align: left; }
.scoring td.dis { background: #f7eadf; }
.scoring details { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.scoring summary { cursor: pointer; color: var(--ink); }
.formula { font-size: 12px; color: var(--ink-2); background: var(--bg); border-radius: 10px; padding: 8px 10px; margin-top: 8px; }

/* intro panel */
.intro-hero { margin: -22px -24px 16px; height: 170px; background: url("../assets/hero.webp") 78% 60% / cover no-repeat; position: relative; }
.intro-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,250,241,0) 55%, var(--paper) 100%); }
.intro h2 { font-family: var(--serif); font-size: 24px; line-height: 1.35; margin: 0 0 10px; }
.intro p { color: var(--ink-2); margin: 0 0 10px; }
.intro .lede { color: var(--ink); font-size: 15px; }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pick { text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45; }
.pick:hover { border-color: var(--ink-3); }
.pick b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pick b i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pick span { color: var(--ink-2); }
.dist { margin-top: 8px; }
.dist-row { display: grid; grid-template-columns: 1fr; gap: 2px; }
.dist-bars { display: flex; height: 26px; border-radius: 8px; overflow: hidden; }
.dist-bars span { display: grid; place-items: center; font-size: 11px; font-weight: 700; color: rgba(0, 0, 0, .65); min-width: 0; }
.dist-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }
.caveat { font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 18px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(42, 38, 34, .45); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-family: var(--serif); font-size: 20px; }
.modal-body { overflow: auto; padding: 8px 24px 32px; }
.md h1 { font-family: var(--serif); font-size: 24px; }
.md h2 { font-family: var(--serif); font-size: 19px; margin-top: 28px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.md h3 { font-size: 15px; margin-top: 18px; }
.md table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.md th { background: var(--bg); }
.md pre { background: var(--bg); padding: 10px 12px; border-radius: 10px; overflow-x: auto; font-size: 12.5px; }
.md code { font-size: .92em; }
.md blockquote { margin: 10px 0; padding: 6px 14px; border-left: 4px solid var(--c4); background: var(--bg); }

.list-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; position: sticky; top: 0; background: var(--paper); padding: 6px 0; z-index: 2; }
.list-tools select, .list-tools input { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.clist { width: 100%; border-collapse: collapse; font-size: 13px; }
.clist th { position: sticky; top: 48px; background: var(--paper); z-index: 1; font-size: 11.5px; color: var(--ink-3); font-weight: 700; text-align: left; padding: 6px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; }
.clist td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.clist tr.row { cursor: pointer; }
.clist tr.row:hover { background: var(--bg); }
.clist .mini { display: grid; grid-template-columns: repeat(4, 18px); gap: 2px; }
.clist .mini span { height: 14px; border-radius: 3px; font-size: 9px; display: grid; place-items: center; color: rgba(0, 0, 0, .6); }
.clist .sc { font-weight: 700; font-family: var(--serif); }
.clist .hl { color: var(--ink-2); font-size: 12px; }
.src-country { margin-top: 18px; }
.src-country h3 { font-size: 15px; margin: 0 0 6px; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  body { font-size: 14.5px; }
  .topbar { padding: 10px 14px 6px; flex-direction: column; align-items: stretch; gap: 8px; }
  .title-main { font-size: 21px; }
  .tagline { display: none; }
  .top-actions { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .top-actions::-webkit-scrollbar { display: none; }
  .search { flex: 1 1 auto; min-width: 140px; }
  .search input { width: 100%; }
  .btn { padding: 5px 11px; flex: 0 0 auto; }
  .layers { padding: 6px 14px; }
  .stage { grid-template-columns: 1fr; }
  .map-wrap { height: 100%; }
  .legend { left: 10px; right: 10px; bottom: calc(var(--sheet-peek, 132px) + 10px); max-width: none; padding: 8px 10px; }
  .legend .extras { font-size: 10px; gap: 2px 10px; margin-top: 4px; }
  .legend h3 { font-size: 11px; margin-bottom: 4px; }
  .legend .ticks, .legend .note { display: none; }
  .legend .ends.band { display: flex; }
  .legend .scale span { height: 9px; }
  .legend .cats { font-size: 10.5px; }
  .intro-hero { display: none; }
  .map-tools { right: 10px; top: 10px; }

  .panel {
    position: fixed; left: 0; right: 0; bottom: 0;
    height: 88dvh;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 30px -10px rgba(60, 40, 20, .35);
    transform: translateY(calc(88dvh - var(--sheet-peek, 132px)));
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
  }
  .panel.half { transform: translateY(40dvh); }
  .panel.full { transform: translateY(0); }
  .panel.dragging { transition: none; }
  .sheet-handle { display: grid; place-items: center; height: 22px; flex: 0 0 22px; cursor: grab; touch-action: none; }
  .sheet-handle span { width: 44px; height: 5px; border-radius: 3px; background: var(--line); }
  .panel-scroll { padding: 2px 16px 40px; }
  .p-name { font-size: 25px; }
  .headline { font-size: 18px; }
  .picks { grid-template-columns: 1fr; }
  .axis-row { grid-template-columns: 7.5em 1fr 28px; }
  .axis-note { margin-left: 0; }
  .modal-card { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .modal-body { padding: 4px 14px 32px; }
  .clist .hide-sm { display: none; }
}

/* v2 */
.score-band small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; }
.weekly span.primary { background: var(--ink); color: var(--bg); font-weight: 600; }
.belief .verdict { display: inline-block; margin-left: 6px; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.belief .verdict.v-refutes { background: #f3dccf; color: #8a3a1c; }
.belief .verdict.v-supports { background: #d9e8e6; color: #1f4f5a; }
.belief .verdict.v-mixed { background: #efe4c6; color: #6d5520; }
.score-axis u.unc { position: absolute; top: -3px; height: 16px; border-radius: 8px; background: rgba(255, 250, 241, .55); border: 1.5px solid rgba(43, 36, 28, .45); text-decoration: none; }
.world-range { position: relative; height: 16px; margin-top: 1px; }
.world-range span { position: absolute; top: 2px; height: 5px; border: 1.5px solid var(--ink-3); border-top: 0; border-radius: 0 0 3px 3px; }
.world-range em { position: absolute; top: 6px; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--ink-3); white-space: nowrap; background: var(--paper); padding: 0 4px; }
.proxy-note { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); line-height: 1.8; font-size: 14px; }
.proxy-note .btn { margin-top: 6px; }
