/* Partner Feed Health. Ljust default, mörkt via systemet eller knappen. Tokens här, inget annat ställe. */
:root {
  --bg: #f7f7f5; --panel: #ffffff; --ink: #16181d; --muted: #6b7079; --line: #e4e4df; --soft: #f0f0ec;
  --accent: #0f766e; --accent-ink: #ffffff;
  --pass: #15803d; --pass-bg: #dcfce7; --warn: #a16207; --warn-bg: #fef3c7; --fail: #b91c1c; --fail-bg: #fee2e2; --info: #475569; --info-bg: #e2e8f0;
  --comp: #8a8f98; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --panel: #171a20; --ink: #e8e9ec; --muted: #9aa0aa; --line: #2a2e36; --soft: #1e222a;
    --accent: #2dd4bf; --accent-ink: #0f1115;
    --pass: #4ade80; --pass-bg: #14301f; --warn: #fbbf24; --warn-bg: #3a2c0b; --fail: #f87171; --fail-bg: #3b1515; --info: #cbd5e1; --info-bg: #262c36;
    --comp: #7c828c; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --panel: #171a20; --ink: #e8e9ec; --muted: #9aa0aa; --line: #2a2e36; --soft: #1e222a;
  --accent: #2dd4bf; --accent-ink: #0f1115;
  --pass: #4ade80; --pass-bg: #14301f; --warn: #fbbf24; --warn-bg: #3a2c0b; --fail: #f87171; --fail-bg: #3b1515; --info: #cbd5e1; --info-bg: #262c36;
  --comp: #7c828c; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 "Inter", system-ui, -apple-system, sans-serif; font-feature-settings: "cv11", "ss01", "tnum"; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
abbr { text-decoration: underline dotted; cursor: help; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 650; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { text-align: right; }

/* Topp */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); flex: none; }
.brand .dot.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 5%, transparent); } }
h1 { font-size: 19px; font-weight: 700; }
.sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.icon-btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 15px; display: inline-grid; place-items: center; }
.icon-btn:hover { border-color: var(--accent); }

.intro { padding: 18px 0 0; max-width: 760px; }
.intro p { margin: 0; }
.intro .asof { margin-top: 4px; }
.intro .help-i { margin-left: 4px; position: relative; top: -1px; }

/* Kontroller */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0 4px; }
.seg { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 550; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.switch { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; cursor: pointer; user-select: none; }
.switch input { accent-color: var(--accent); width: 16px; height: 16px; }
.places { position: relative; }
.places-btn { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; max-width: 280px; justify-content: space-between; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13.5px; cursor: pointer; }
.places-btn > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.places-btn.on { border-color: var(--accent); }
.places-btn .caret { color: var(--muted); display: inline-flex; transform: rotate(90deg); transition: transform .15s; }
.places-btn[aria-expanded="true"] .caret { transform: rotate(-90deg); }
.places-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 280px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 8px; }
#filter { width: 100%; box-sizing: border-box; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 7px; padding: 7px 10px; font: inherit; font-size: 13.5px; }
.places-list { max-height: 320px; overflow-y: auto; margin: 6px 0; }
.pgroup { padding: 4px 0; border-bottom: 1px solid var(--line); }
.pgroup:last-child { border-bottom: 0; }
.pc, .pcity { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; font-size: 13.5px; cursor: pointer; }
.pcity { padding-left: 28px; }
.pc:hover, .pcity:hover { background: var(--soft); }
.pc input, .pcity input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.pempty { padding: 6px; margin: 0; }
.places-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; }
.linkbtn { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.linkbtn:hover { background: var(--soft); }
.btn { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 7px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.ghost { background: transparent; color: var(--accent); }
.lens-wrap { display: inline-flex; align-items: center; gap: 6px; }
.hint { margin: 6px 0 0; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 14px 0; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi .v { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.kpi .l { font-size: 12.5px; color: var(--muted); }
.kpi .h { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.skeleton .v { color: transparent; background: var(--soft); border-radius: 6px; width: 60%; }

/* Fynd */
.findings { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.findings ol { margin: 8px 0 0; padding-left: 20px; }
.findings-head { display: flex; align-items: center; gap: 8px; }
.findings-head h2 { margin: 0; }
.findings-head .count { font-weight: 500; font-size: 14px; }
.findings-head .fold { margin-left: auto; }
.findings.folded #findings { display: none; }
.fsec { margin-top: 12px; }
.fsec h3 { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; }
.fsec ol { list-style: none; margin: 0; padding: 0; }
.fsec li { margin: 6px 0; padding-left: 52px; text-indent: -52px; }
.fsec li .verb { display: inline-block; width: 42px; text-align: center; text-indent: 0; margin-right: 6px; }
.fsec .calm { margin: 4px 0; display: flex; gap: 8px; align-items: center; }
a.jump { color: inherit; font-weight: 650; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 2px; }
a.jump:hover { color: var(--accent); }
.fsec li > a.jump:first-of-type { font-weight: 700; }
.kpi[data-kpi] { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kpi[data-kpi]:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.kpi[data-kpi]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-pop .hr.now { background: color-mix(in srgb, var(--accent) 8%, transparent); margin: -4px -6px 4px; padding: 6px; border-radius: 6px; }
.help-pop .hr.now .hk { color: var(--accent); }
.help-pop a.jump { font-weight: 600; }
#grid th .hl.weighs { color: var(--accent); }
#grid.no-trend .trend { display: none; }
/* Fast detaljpanel: från 1280 px ligger lådan bredvid tabellen i stället för ovanpå sidan. */
.dock { display: none; }
body.docked .wrap { max-width: 1560px; }
body.docked .board-split { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 16px; align-items: start; }
body.docked .dock { display: block; position: sticky; top: calc(var(--top-h, 78px) + 12px); }
body.docked .dock .drawer { position: static; transform: none; width: auto; height: calc(100vh - var(--top-h, 78px) - 24px); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; overflow: hidden; transition: none; z-index: auto; }
body.docked .dock #d-close { display: none; }
body.docked .dock .drawer-head { border-radius: 12px 12px 0 0; }
body.docked tr.sys.selected > td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.docked tr.sys.selected > td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.dock-empty { padding: 24px 18px; }
.fold-title { all: unset; cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; font: inherit; color: inherit; border-radius: 6px; }
.fold-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fold-title:hover { color: var(--accent); }
.fold-chev { display: inline-flex; transform: rotate(90deg); transition: transform .15s; color: var(--muted); align-self: center; }
.fold-title[aria-expanded="false"] .fold-chev { transform: none; }
.board-hint { margin: -4px 0 10px; padding: 0 16px; }
.hint-docked { display: none; }
body.docked .hint-docked { display: inline; } body.docked .hint-overlay { display: none; }
body.docked .board-split { padding-right: 12px; }
body.docked .col-wide { display: none; }
@media (max-width: 640px) {
  .findings-head { flex-wrap: wrap; row-gap: 2px; }
  .findings-head h2 { flex: 1 1 auto; }
  .fold-title { flex-wrap: wrap; }
  .fold-title .count { flex-basis: 100%; padding-left: 16px; font-size: 13px; }
}
#grid th .hl.weighs::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 4px; vertical-align: middle; }
.help-pop .wt {border-collapse: collapse; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }
.help-pop .wt th { font-size: 10.5px; font-weight: 650; color: var(--muted); text-align: right; padding: 0 0 3px 6px; white-space: nowrap; }
.help-pop .wt td { padding: 1.5px 0; }
.help-pop .wt td.num { text-align: right; padding-left: 6px; }
.help-pop .wt .on { color: var(--accent); font-weight: 650; }
.help-pop .wt td.zero { color: var(--muted); opacity: .6; }
.help-pop .weights p { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
@keyframes hilite { 0%, 60% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background: transparent; } }
.grid tr.sys.hilite td { animation: hilite 2.4s ease-out; }
.findings li { margin: 4px 0; }
.findings li b { font-weight: 650; }

/* Tabell */
.board { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 0 6px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 16px 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.grid th { text-align: left; font-weight: 550; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid th.num { text-align: right; }
.grid td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.grid th:first-child, .grid td:first-child { padding-left: 16px; }
.grid th:last-child, .grid td:last-child { padding-right: 16px; }
.country-btn { display: flex; align-items: baseline; gap: 10px; width: 100%; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; padding: 8px 16px; cursor: pointer; }
.country-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.country-btn .tw { display: inline-flex; align-self: center; color: var(--muted); transition: transform .15s; }
.country-btn[aria-expanded="true"] .tw { transform: rotate(90deg); }
.country-btn .cn { font-weight: 700; font-size: 13.5px; }
.country-btn .cs { font-size: 12.5px; color: var(--muted); white-space: normal; }
.score-t.good { color: var(--pass); } .score-t.mid { color: var(--warn); } .score-t.bad { color: var(--fail); }
.grid tr.sys.first td { border-top: 1px solid var(--line); }
.grid tr.sys.sub td { border-top: 0; }
.grid tr.sys { cursor: pointer; }
.grid tr.sys:hover td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.grid tr.sys:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.grid tr.comp td { color: var(--muted); }
.grid tr.comp td:first-child .op { color: var(--comp); }
.sysname { display: flex; flex-direction: column; line-height: 1.25; }
.sysname .city { font-weight: 650; }
.sysname .op { font-weight: 600; }
.sysname.sub { padding-left: 14px; border-left: 2px solid var(--line); margin-left: 2px; }
.sysname .id { font-size: 11.5px; color: var(--muted); }
.sysname .regions { font-size: 11.5px; color: var(--muted); max-width: 34ch; white-space: normal; overflow-wrap: anywhere; }
.via { font-size: 12.5px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.nap { display: inline-block; font-size: 11px; font-weight: 600; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line); margin-left: 4px; color: var(--muted); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; line-height: 1.6; }
.chip.pass { color: var(--pass); background: var(--pass-bg); }
.chip.warn { color: var(--warn); background: var(--warn-bg); }
.chip.fail { color: var(--fail); background: var(--fail-bg); }
.chip.info, .chip.na { color: var(--info); background: var(--info-bg); }
.chip.wait { color: var(--muted); background: var(--soft); }
.score { font-weight: 700; font-size: 15px; display: inline-block; min-width: 36px; text-align: right; }
.score.good { color: var(--pass); } .score.mid { color: var(--warn); } .score.bad { color: var(--fail); }
.spark { display: block; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -2px; }
@keyframes rot { to { transform: rotate(360deg); } }
.grid tr.country { cursor: pointer; }
.grid tr.country td { background: var(--soft); padding-top: 0; padding-bottom: 0; }
.grid tr.country td:first-child { padding-left: 0; }

/* Kort */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.card p { margin: 8px 0; }
table.mini { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.mini th { text-align: left; color: var(--muted); font-weight: 550; font-size: 12px; padding: 6px 6px 6px 0; border-bottom: 1px solid var(--line); }
.mini td { padding: 7px 6px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini td:first-child { font-weight: 550; }
.locked { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.locked li { display: flex; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--soft); }
.locked b { display: block; font-size: 14px; }
.locked span { font-size: 13px; color: var(--muted); }
.lock { font-size: 16px; line-height: 1.3; }
.method .method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0; }
.method-grid div { display: flex; flex-direction: column; font-size: 13px; }
.method-grid b { font-size: 13.5px; }
.method-grid span { color: var(--muted); }
.method { margin: 14px 0; }
.sources { margin: 14px 0; }
.sources h2 { font-size: 15px; margin: 0 0 4px; }
.sources td { vertical-align: top; }
.scroll-x { overflow-x: auto; }
.method h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin: 22px 0 6px; }
.method .locked { grid-template-columns: 1fr 1fr; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 0 36px; color: var(--muted); font-size: 13px; }

/* Låda */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--bg); border-left: 1px solid var(--line); z-index: 50; transform: translateX(100%); transition: transform .22s ease; box-shadow: var(--shadow); display: flex; }
.drawer.open { transform: none; }
.drawer-in { overflow-y: auto; width: 100%; padding: 0 0 40px; }
.drawer-head { position: sticky; top: 0; background: var(--bg); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); z-index: 5; }
.drawer-head h2 { font-size: 19px; }
#d-body { padding: 14px 18px; display: grid; gap: 14px; }
.d-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-scores .kpi { padding: 10px 12px; }
.d-scores .kpi.on { border-color: var(--accent); }
.checks { display: grid; gap: 8px; }
.check { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.check .t { font-weight: 600; }
.check .d { grid-column: 2; font-size: 13.5px; }
.check .p { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.check .p::before { content: "Partner view: "; font-weight: 600; }
.mapbox { height: 380px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); position: relative; }
.map-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; margin-top: 8px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 3px; }
.partner-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.partner-card .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.partner-card .open { display: inline-block; border-radius: 8px; background: var(--ink); color: var(--bg); padding: 6px 12px; font-weight: 600; font-size: 13px; text-decoration: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.files { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.files td { padding: 5px 6px 5px 0; border-bottom: 1px solid var(--line); }
.files td:nth-child(n+2) { text-align: right; white-space: nowrap; color: var(--muted); }
.section-t { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; margin: 4px 0 6px; }
.val-file { border-bottom: 1px solid var(--line); padding: 6px 0; font-size: 13px; }
.val-file .e { font-size: 12px; color: var(--muted); margin-left: 12px; }
.empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13.5px; }
.err { color: var(--fail); }

/* Kartbilder: ljus OSM dämpas lite, mörkt läge inverteras (OSM har ingen mörk stil utan nyckel) */
.mapbox .leaflet-tile-pane { filter: saturate(.55) contrast(.95); }
:root[data-theme="dark"] .mapbox .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.85) saturate(.4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mapbox .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.85) saturate(.4); } }
/* Leaflet i mörkt läge: dämpa kontrollerna */
:root[data-theme="dark"] .leaflet-control-zoom a, :root[data-theme="dark"] .leaflet-control-attribution { background: #1e222a; color: #cbd5e1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-control-zoom a, :root:not([data-theme="light"]) .leaflet-control-attribution { background: #1e222a; color: #cbd5e1; } }

/* Mobil */
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi:last-child { grid-column: span 2; }
  .cards-2 { grid-template-columns: 1fr; }
  .method .method-grid { grid-template-columns: 1fr 1fr; }
  .method .locked { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hide-s { display: none; }
  .method .method-grid { grid-template-columns: 1fr; }
  .d-scores { grid-template-columns: 1fr 1fr 1fr; }
  .drawer { width: 100vw; }
  .mapbox { height: 300px; }
  .places { flex: 1 1 100%; } .places-btn { max-width: none; width: 100%; } .places-pop { width: 100%; box-sizing: border-box; }
  .sub { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } .brand .dot.live, .spin { animation: none; } }

/* Hjälp: understrykning, (i)-knapp, popover */
.hl { text-decoration: underline dotted color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; cursor: help; border-radius: 3px; }
.hl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-help]:not(.hl):not(.help-i) { cursor: help; }
.switch[data-help], .places-btn[data-help] { cursor: pointer; }
.help-i { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: italic 600 11px/1 Georgia, serif; cursor: pointer; padding: 0; vertical-align: middle; }
.help-i:hover, .help-i[aria-describedby] { color: var(--accent); border-color: var(--accent); }
.help-i:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h2 .help-i { margin-left: 4px; position: relative; top: -1px; }
.help-pop { position: fixed; z-index: 100; max-width: min(340px, calc(100vw - 16px)); background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 10px 12px; font-size: 13px; line-height: 1.45; text-transform: none; letter-spacing: 0; font-weight: 400; white-space: normal; }
.help-pop .hr { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 3px 0; }
.help-pop .hr + .hr { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 3px; }
.help-pop .hk { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 2px; }
details.method > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.method > summary::-webkit-details-marker { display: none; }
details.method > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
details.method[open] > summary::before { transform: rotate(45deg); }
details.method > summary h2 { margin: 0; }
