/* Läsrum on the web: design 2026-10-05, "lampa och bokmärke" (app/Lasrum/App/Theme.swift).
   Warm graphite, the lamp (amber) for unread and selection, the bookmark (blue) for saved.
   Every text colour keeps at least 4.5:1 on ground, surface and raised, and on the wash of a chosen row. */
:root {
  --ground: #1C1B19;
  --surface: #252321;
  --raised: #2E2B28;
  --nav: #21201E;
  --ai-surface: #272219;
  --ink: #F2EDE6;
  --muted: #BDB6AB;
  /* faint and read-title a shade lighter (2026-11-02): 4.5:1 also on the chosen row's wash and the hover. */
  --faint: #A59F97;
  --row-title: #E6E0D6; --read-title: #A49F97;
  --lamp: #EAB25F;
  --lamp-text: #EAB25F;
  --on-lamp: #1C1B19;
  --wash: rgba(234, 178, 95, .13);
  --bookmark: #7AA2FF;
  --violet: #B597FF;
  --news: #C4383D;
  /* Red as text: lighter in the dark theme, at least 4.5:1 against the ground (review 7, 2026-10-10). */
  --news-text: #FF8A80;
  --ok: #62C99C;
  --orange: #E8A54B;
  --danger: #EE7A66;
  --line: rgba(242, 237, 230, .08);
  --hover: rgba(242, 237, 230, .05);
  --shadow: 0 12px 34px rgba(0, 0, 0, .45);
  --t0: #7AA2FF; --t1: #E98BB4; --t2: #62C99C; --t3: #E3A65C; --t4: #B597FF; --t5: #5CC0DC;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  /* Design system 2026-10-20 (docs/designforslag-2026-10-20.md, DesignSystem.swift): spacing 4–32 and the page
     margin, the same in the apps. Type scale since 2026-10-23 (Jan: too many sizes, "mindre variation och mer
     stramt"), seven sizes and no others: 40/32 page title · 28 lead story · 20 section · 17 headline · 15 text ·
     13 meta · 12 label (capitals). Only the reader's own size, monograms and the week number differ. */
  /* No serif in the interface since 2026-10-23 (Jan: Georgia "ful"): the name stays, the face is the system's sans. */
  --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --fs-title: 40px; --fs-display: 28px; --fs-h2: 20px; --fs-news: 17px; --fs-card: 15px; --fs-body: 15px; --fs-meta: 13px; --fs-eye: 12px;
  --ingress: 17px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --page-m: 32px;
  /* Older names, kept so every page follows the new colours. */
  --side: var(--nav); --raise: var(--surface); --text: var(--ink);
  --accent: var(--lamp); --accent-text: var(--lamp-text); --saved: var(--bookmark); --star: var(--lamp-text); --mail: var(--violet);
  --radius: var(--r-md);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #F6F3EE; --surface: #FFFFFF; --raised: #ECE8E1; --nav: #EFEBE4; --ai-surface: #F7EFE1;
    --ink: #1F1C18; --muted: #57514A; --faint: #645E57; --row-title: #24201C; --read-title: #645E56;
    --lamp: #9A6214; --lamp-text: #8A5710; --on-lamp: #FFFFFF; --wash: rgba(138, 87, 16, .13);
    --bookmark: #2D5BD0; --violet: #6E4FD0; --ok: #17775A; --orange: #9A5A07; --danger: #B3261E; --news-text: #A8262C;
    --line: rgba(31, 28, 24, .10); --hover: rgba(31, 28, 24, .05); --shadow: 0 12px 34px rgba(60, 40, 20, .18);
    --t0: #2D5BD0; --t1: #B03D72; --t2: #17775A; --t3: #8A5710; --t4: #6E4FD0; --t5: #16708A;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ground); color: var(--ink);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--lamp-text); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; }
/* Interactive surfaces change colour quietly (120–160 ms). */
.item, .hb, .art, .pop .mi, .soft, .primary, .seg button, .nmodes button, .sp-chip, .sp-toggle, .tile, .rbar button, .rbar a, .sp-row, .status-box, .status-box .sb-btn, .addbtn, .setnav a, .sp-bulk button, .tools button, .nsave, .tstats a, .chip.add, .aa-size button, .more summary { transition: background-color .14s, color .14s, border-color .14s, filter .14s; }
.svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.app { display: grid; grid-template-columns: 240px clamp(400px, 34vw, 540px) 1fr; height: 100vh; height: 100dvh; overflow: hidden; }
/* Each column scrolls on its own; the page itself never does (the sidebar stays put, as on the Mac). */
.app > * { min-height: 0; min-width: 0; }
html, body { overflow: hidden; overscroll-behavior: none; }

/* Sidebar (SidebarView.swift): its own tone, rows as on the Mac (32 px, 15 px text, 18 px symbols; Jan 2026-10-25), the name with one round Lägg till, plain small-capital
   heads, topic symbols in topic colours, quiet counts, the status box at the bottom. */
.sidebar { background: var(--nav); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 8px 10px; overflow: hidden; }
.side-scroll { flex: 1; overflow-y: auto; margin: 0 -8px; padding: 0 8px 12px; }
.addbtn { width: 30px; height: 30px; margin-left: 4px; border-radius: 50%; background: var(--lamp); color: var(--on-lamp); display: grid; place-items: center; }
.addbtn .svg { width: 15px; height: 15px; stroke-width: 2.6; }
.addbtn:hover { filter: brightness(1.08); }
.group { margin-top: 14px; }
.group:first-child { margin-top: 0; }
.group-h { display: flex; align-items: center; gap: 4px; width: 100%; padding: 2px 8px 4px 10px; text-align: left;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.group-h .svg { width: 11px; height: 11px; margin-left: auto; opacity: 0; transition: opacity .12s, transform .12s; }
.group-h:hover .svg, .group-h:focus-visible .svg, .group.folded .group-h .svg { opacity: 1; }
.group.folded .group-h .svg { transform: rotate(-90deg); }
.item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px 6px 10px; border-radius: var(--r-md); text-align: left; color: var(--ink);
  text-decoration: none; font-size: var(--fs-card); line-height: 20px; }
.item:hover { background: var(--hover); }
.item.on { background: var(--wash); font-weight: 600; }
.item .ic { width: 20px; display: grid; place-items: center; flex: none; }
.item .ic .svg { width: 18px; height: 18px; }
.item .sq { width: 9px; height: 9px; border-radius: 2.5px; flex: none; }
.item .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .hint { color: var(--faint); font-size: 13px; }
.total { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.side-note { font-size: 13px; color: var(--faint); padding: 2px 10px 4px; margin: 0; }
.status-box { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); margin-top: 6px; }
.status-box > a:first-child { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.status-box .sb-btn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-sm); color: var(--muted); }
.status-box .sb-btn:hover, .status-box .sb-btn.on { background: var(--hover); color: var(--ink); }
.status-box:hover { border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.stext { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.stext b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Two lines when needed (2026-11-01): "172 hämtade, 24 h · 257 källor" was cut off. */
.stext small { font-size: 12px; color: var(--muted); }

/* Menus and panels that float (Lägg till, Visa, •••, Tagga, Aa). */
.pop { position: fixed; z-index: 50; min-width: 220px; max-width: min(340px, calc(100vw - 16px)); max-height: calc(100vh - 24px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; box-shadow: var(--shadow); font-size: 13px; }
.pop .mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; border-radius: var(--r-sm); text-align: left; color: var(--ink); text-decoration: none; }
.pop .mi:hover, .pop .mi:focus-visible { background: var(--hover); outline: none; }
/* The keyboard's place in a menu shows as a ring, not only the faint hover (2026-11-02). */
.pop .mi:focus-visible { box-shadow: inset 0 0 0 2px var(--lamp); }
.pop .mi .svg { width: 16px; height: 16px; color: var(--muted); }
.pop .mi.lamp, .pop .mi.lamp .svg { color: var(--lamp-text); }
.pop .mi .tr { margin-left: auto; color: var(--faint); font-variant-numeric: tabular-nums; font-size: 13px; }
.pop .mi:disabled { opacity: .5; cursor: default; }
.pop .sep { height: 1px; background: var(--line); margin: 5px 4px; }
.pop .ph { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 6px; }
.pop .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; }
.pop .radio.on { border: 5px solid var(--lamp-text); }
.pop .check { width: 16px; display: grid; place-items: center; color: var(--lamp-text); flex: none; }
.pop input[type=text] { width: 100%; margin: 4px 0 2px; padding: 6px 9px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; }
/* Följ: pick a topic or type a new one. */
.topicpick .tdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.topicpick .newtopic { display: flex; gap: 6px; align-items: center; padding: 2px 4px 4px; }
.topicpick .newtopic input { margin: 0; }
.topicpick .newtopic .primary { flex: none; padding: 6px 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 4px 6px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 4px 8px; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.tile:hover { background: var(--hover); }
.tile.on { background: var(--wash); border: 1.5px solid var(--lamp-text); color: var(--ink); font-weight: 600; }
.tile svg { width: 46px; height: 24px; }
.switch { position: relative; margin-left: auto; width: 32px; height: 19px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch.on { background: var(--lamp); border-color: var(--lamp); }
.switch.on::after { transform: translateX(13px); background: var(--on-lamp); }

/* List (ArticleListView.swift macHeader, ArticleRow.swift). */
.list { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; overflow: hidden; background: var(--ground); }
.list-head { padding: 18px 16px 6px 20px; }
.lh-top { display: flex; align-items: flex-start; gap: 8px; }
.lh-title { flex: 1; min-width: 0; }
.list-head h1 { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 3px 0 0; min-height: 18px; white-space: nowrap; overflow: hidden; }
.sub .sdot { width: 7px; height: 7px; }
.lh-acts { display: flex; align-items: center; gap: 2px; padding-top: 2px; flex: none; }
.hb { display: inline-flex; align-items: center; gap: 6px; height: 28px; min-width: 28px; justify-content: center; padding: 0 8px; border-radius: var(--r-md);
  color: var(--muted); font-size: 13px; text-decoration: none; }
.hb .svg { width: 16px; height: 16px; }
.hb:hover, .hb.open { background: var(--raised); color: var(--ink); }
.hb.lit { color: var(--ink); }
.search { margin-top: 12px; }
.search[hidden] { display: none; }
.search input { width: 100%; padding: 7px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; outline: none; }
.search input:focus { border-color: color-mix(in srgb, var(--lamp) 70%, transparent); }
.seg { display: inline-flex; margin-top: 12px; padding: 2px; border-radius: var(--r-md); background: var(--raised); }
.seg[hidden] { display: none; }
.seg button { padding: 4px 12px; border-radius: var(--r-sm); font-size: 13px; color: var(--muted); border: 1px solid transparent; white-space: nowrap; }
.seg button:hover:not(.on), .nmodes button:hover:not(.on) { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; border-color: var(--line); }
.seg button b { color: var(--lamp-text); font-variant-numeric: tabular-nums; margin-left: 4px; font-weight: 600; }
.seg.full { display: flex; }
.seg.full[hidden] { display: none; }
.seg.full button { flex: 1 1 auto; min-height: 28px; padding: 4px 8px; }
.rows { flex: 1; overflow-y: auto; padding: 0 0 20px; }
.day { position: sticky; top: 0; z-index: 1; background: var(--ground); font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: .06em; padding: 14px 22px 6px; text-transform: uppercase; }
.art { display: flex; align-items: center; gap: 4px; margin: 2px 6px; padding: 0 10px 0 2px; border-radius: var(--r-md); cursor: pointer; min-height: 38px; position: relative; }
.art:hover { background: var(--hover); }
.art.on { background: var(--wash); }
.rdot { width: 22px; align-self: stretch; display: grid; place-items: center; flex: none; padding: 0; }
.rdot i { width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); border: 1.5px solid var(--lamp); }
.art.read .rdot i { background: transparent; border-color: var(--faint); }
.rdot.none { pointer-events: none; }
.rdot.none i { display: none; }
.ac { flex: 1; min-width: 0; }
/* Calmer rows (2026-10-16): medium titles in a soft white, the dot says unread; read titles dimmer. */
.art .t { font-size: 15px; font-weight: 500; color: var(--row-title); line-height: 1.3; }
.art.read .t { font-weight: 400; color: var(--read-title); }
.art .tm { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.art .meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.art .meta .as { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Tags give way before the source does. */
.art .meta .as { flex-shrink: 0; max-width: 60%; }
.art .meta .chip { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.art .meta .dot { color: var(--faint); }
.art .meta .svg { width: 12px; height: 12px; }
.art .lede { font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Rubriker: one line, title first, source and time at the right. */
.d-headlines .ac { display: flex; align-items: center; gap: 10px; }
.d-headlines .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-headlines .as { font-size: 13px; color: var(--muted); max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
/* The title keeps at least half the row; tags and marks give way first (design review 2026-10-08:
   two tags and the source could squeeze the title to nothing). */
.d-headlines .t { min-width: 50%; }
.d-headlines .chip { flex: 0 1 auto; min-width: 0; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-headlines .svg { flex: none; }
/* Two lines for the title, and the source gives way before the time and lästid (design rest 2026-11-01:
   in a 400 px column titles stopped at ~20 characters and "4 min" was cut to "4 r"). */
.d-headlines .ac { padding: 6px 0; }
.d-headlines .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-width: 45%; }
.d-headlines .as { flex: 0 1 auto; min-width: 0; }
/* A narrow list: no room for tags on one line, so they wait for the reader (they show there). */
#rows { container-type: inline-size; }
@container (max-width: 480px) { .d-headlines .chip { display: none; } }
/* Kompakt: the title with the time, the source below. */
.d-compact { min-height: 58px; align-items: flex-start; }
.d-compact .rdot { align-self: flex-start; height: 30px; }
.d-compact .ac { padding: 7px 0; }
.d-compact .l1 { display: flex; align-items: baseline; gap: 8px; }
.d-compact .l1 .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-compact .meta { margin-top: 2px; }
/* Med bild: title (two lines), one lead line, source · time, the picture at the right. */
.d-cards { align-items: flex-start; gap: 4px; padding-right: 8px; min-height: 92px; }
.d-cards .rdot { align-self: flex-start; height: 38px; }
.d-cards .ac { padding: 10px 0; display: flex; flex-direction: column; gap: 3px; }
.d-cards .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-cards .meta { margin-top: 2px; }
.thumb { width: 92px; height: 66px; border-radius: var(--r-md); object-fit: cover; flex: none; margin: 12px 0 0 10px; background: var(--raised); display: grid; place-items: center; overflow: hidden; }
.art.read .thumb { opacity: .6; }
.mono { width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.art .mono { width: 14px; height: 14px; border-radius: 4px; font-size: 8.5px; }
.thumb .mono { width: 34px; height: 34px; border-radius: 9px; font-size: 18px; }
.chip { font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--raised); color: var(--muted); white-space: nowrap; line-height: 17px; }
.chip.ai { background: var(--wash); color: var(--lamp-text); }
.chip.note { background: var(--wash); color: var(--lamp-text); }
.empty { color: var(--muted); text-align: center; padding: 60px 24px; font-size: 13px; line-height: 1.5; max-width: 320px; margin: 0 auto; }
/* A list that could not be loaded: said plainly, with a way to try again (never "Allt är läst"). */
.loaderr { display: flex; align-items: center; gap: 10px; margin: 10px 12px; padding: 10px 12px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--orange) 12%, transparent); color: var(--ink); font-size: 13px; }
.loaderr span { flex: 1; }
/* The focused row (keyboard), quiet as on the Mac: a light ground and a thin lamp line at the left. */
.art:focus { outline: none; }
.art:focus-visible { outline: none; background: var(--hover); box-shadow: inset 2px 0 0 var(--lamp-text); }
.art.on:focus-visible { background: var(--wash); }
.rows > .more { padding: 18px; text-align: center; color: var(--faint); font-size: 13px; }

/* Reader (ReaderView.swift): the article fills the column, the actions float at the top right. */
.reader { display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; background: var(--ground); }
.reader iframe { flex: 1; border: 0; width: 100%; background: var(--ground); }
.rbar { position: absolute; top: 12px; right: 16px; z-index: 5; display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); max-width: calc(100% - 24px); }
.rbar button, .rbar a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--muted); text-decoration: none; white-space: nowrap; }
.rbar button:hover, .rbar a:hover, .rbar button.open { background: var(--hover); color: var(--ink); }
.rbar .svg { width: 15px; height: 15px; }
.rbar .saved, .rbar .saved .svg { color: var(--bookmark); }
.rbar .tagged .svg { color: var(--ink); }
.rbar .tagname { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.rbar .only-narrow { display: none; }
.rbar .vsep { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }
.rbar .aa { font-weight: 600; font-size: 15px; }
.placeholder { margin: auto; text-align: center; color: var(--muted); padding: 40px; max-width: 400px; }
.placeholder .big { font-size: 42px; opacity: .8; }
.placeholder h2 { color: var(--ink); font-size: 20px; margin: 10px 0 6px; }
.keys { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; margin-top: 18px; font-size: 13px; color: var(--faint); }
.keys span { display: inline-flex; align-items: center; gap: 6px; }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: var(--r-sm); background: var(--raised); border: 1px solid var(--line);
  font: 600 12px -apple-system, sans-serif; color: var(--ink); }
.aa-panel { width: 250px; padding: 8px; }
.aa-size { display: flex; align-items: center; gap: 8px; padding: 2px 4px 8px; }
.aa-size button { flex: 1; height: 30px; border-radius: var(--r-md); background: var(--raised); color: var(--ink); font-weight: 600; }
.aa-size button:hover { background: var(--hover); }
.aa-bgs button:hover { color: var(--ink); }
.aa-size span { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.aa-bgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 4px 4px; }
.aa-bgs button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.aa-bgs i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); }
.aa-bgs button.on i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--lamp-text); }
.aa-bgs button.on { color: var(--ink); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: opacity .16s, transform .16s; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; font-size: 15px; pointer-events: none; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.has-action { pointer-events: auto; }
.toast button { margin-left: 10px; color: var(--lamp-text); font-weight: 700; border-radius: var(--r-sm); }
.toast button:hover { text-decoration: underline; text-underline-offset: 3px; }

.only-narrow { display: none; }
.icon { font-size: 17px; padding: 4px 8px; border-radius: var(--r-md); }

/* Idag's shortcuts that are also in the sidebar: only where the sidebar is hidden (designgenomgång 2026-11-11). */
@media (min-width: 901px) { .u-sc.in-side { display: none; } }

/* Narrow screens (phone, small windows): one column at a time. */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar, .reader { display: none; }
  .app.show-side .sidebar { display: flex; }
  .app.show-side .list, .app.show-side .reader { display: none !important; }
  .sidebar { padding-top: max(14px, env(safe-area-inset-top)); }
  .app.show-reader .reader { display: flex; }
  .app.show-reader .list { display: none; }
  .only-narrow { display: inline-flex; }
  .list-head { padding: 14px 12px 6px 14px; }
  .list-head h1 { font-size: 28px; }
  .hb span { display: none; }
  .d-headlines { align-items: flex-start; }
  .d-headlines .rdot { align-self: flex-start; height: 34px; }
  .d-headlines .ac { display: block; padding: 8px 0; }
  .d-headlines .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .d-headlines .as { max-width: none; }
  .d-headlines .tm::before { content: ' · '; color: var(--faint); }
  .d-cards .lede { display: none; }
  .thumb { width: 76px; height: 76px; border-radius: var(--r-md); }
  .rbar { top: 8px; right: 8px; max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none; }
  .rbar .lbl { display: none; }
  .rbar .only-narrow { display: inline-flex; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .app { grid-template-columns: 220px 340px 1fr; }
  .rbar .lbl { display: none; }
}

/* Källor and Upptäck: the list column steps aside for a wide page. Ämnen's front page too (2026-11-01). */
.app.manage-view, .app.ov-home { grid-template-columns: 240px 1fr; }
.app.manage-view .list, .app.ov-home .list { display: none; }
.manage { overflow-y: auto; padding: 22px 28px 60px; max-width: 980px; width: 100%; }
.manage-head { display: flex; align-items: center; gap: 12px; }
.manage-head h2 { font-size: 20px; margin: 0; flex: 1; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tools input, .tools select, .add-box input { padding: 7px 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--raise); color: var(--text); font: inherit; }
.tools input { flex: 1; min-width: 180px; }
.add-box { margin-top: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--raise); border: 1px solid var(--line); }
.add-box[hidden] { display: none; }
.add-box input { width: calc(100% - 140px); margin-right: 8px; }
.primary { background: var(--lamp); color: var(--on-lamp); padding: 7px 14px; border-radius: var(--r-md); font-weight: 600; border: 1px solid transparent; }
.primary:hover:not(:disabled) { filter: brightness(1.08); }
.primary:disabled { opacity: .5; }
.tools button:not(.primary) { padding: 7px 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--ink) 7%, transparent); font-weight: 600; border: 1px solid transparent; }
.tools button:not(.primary):hover { background: color-mix(in srgb, var(--ink) 11%, transparent); }
.srcs { border-top: 1px solid var(--line); }
.src { display: flex; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.src-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.chip.add:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 11%, transparent); }
.chip.add { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); padding: 1px 8px; }
.chip.err { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.danger { color: var(--danger) !important; }
.cand { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.muted { color: var(--muted); }
.warn { color: var(--orange); }
@media (max-width: 900px) {
  .app.manage-view, .app.ov-home { grid-template-columns: 1fr; }
  .app.ov-home:not(.show-side) .reader { display: flex; }
  .src { flex-direction: column; }
  .add-box input { width: 100%; margin: 0 0 8px; }
}

/* Mer: the less used actions in one named menu. */
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: var(--r-md); font-size: 13px; font-weight: 600; color: var(--muted); }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary, .more summary:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--text); }
.moremenu { position: absolute; top: 34px; left: 0; z-index: 5; background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 6px; min-width: 210px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.moremenu button { text-align: left; padding: 7px 10px !important; }

/* Källor: the same layout as the apps. Cards, topic chips, a list and a detail panel. */
.srcpage { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.sp-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; }
.sp-title h2 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.sp-title .sub { margin: 0; min-height: 0; white-space: nowrap; }
.sp-search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--line); min-width: 0; }
.sp-search:focus-within { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.sp-search > .svg { color: var(--muted); width: 15px; height: 15px; }
.sp-search input { flex: 1; min-width: 0; padding: 7px 0; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.sp-addhint { background: var(--lamp); color: var(--on-lamp); font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.sp-addhint[hidden] { display: none; }
.soft { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-md); font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--line); color: var(--text); text-decoration: none; white-space: nowrap; }
.soft:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.soft .svg { width: 15px; height: 15px; }
.soft.prominent { background: var(--lamp); border-color: var(--lamp); color: var(--on-lamp); }
.soft.danger, .link.danger { color: var(--danger); }
.sp-head .more summary.soft { padding: 7px 12px; color: var(--text); }
.srcpage .add-box { margin: 0 20px 12px; }

.sp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 20px 12px; }
.sp-back:hover { text-decoration: underline; text-underline-offset: 3px; }

.sp-topics { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 12px; border-bottom: 1px solid var(--line); }
.sp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--muted); background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--line); }
.sp-chip:hover:not(.on) { color: var(--ink); background: color-mix(in srgb, var(--ink) 9%, transparent); }
.sp-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.sp-chip b { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sp-chip.on { color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--c) 22%, transparent); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.sp-chip.on b { color: var(--text); }
/* Dokument's tag chips (2026-10-21, as on BOOX and in the apps): one row, sideways on a phone. */
.doc-tags { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.doc-tags::-webkit-scrollbar { display: none; }
.doc-tags .sp-chip { --c: var(--lamp-text); flex: 0 0 auto; cursor: pointer; }

.sp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 340px; }
.sp-list { overflow-y: auto; min-width: 0; padding-bottom: 70px; }
.sp-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 170px 120px 72px 64px 64px; gap: 10px; align-items: center;
  padding: 6px 20px 6px 14px; border-bottom: 1px solid var(--line); cursor: default; }
.sp-row:not(.sp-headrow):hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.sp-row.on { background: var(--wash); }
.sp-row.dim > :not(input) { opacity: .5; }
.sp-row input { accent-color: var(--accent); }
.sp-headrow { position: sticky; top: 0; z-index: 1; background: var(--ground); padding-top: 8px; padding-bottom: 8px; }
.sp-headrow button { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; }
.sp-headrow button:hover { color: var(--ink); }
.c-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.c-name > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.c-name b, .c-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-name b { font-size: 13px; }
.c-name small { font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 0; }
.c-name small i { width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; flex: none; }
.mono.big { width: 46px; height: 46px; border-radius: 12px; font-size: 24px; }
.c-topics { display: flex; gap: 4px; align-items: center; overflow: hidden; }
.c-topics small { font-size: 12px; color: var(--muted); }
.ttag { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.c-week { display: flex; align-items: center; gap: 8px; }
.c-week b { font-size: 13px; font-variant-numeric: tabular-nums; }
.c-week b.zero { color: var(--faint); }
.c-saved b, .c-opened b { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-opened b.zero { color: var(--faint); }
.c-saved b.zero { color: var(--faint); }
.c-latest { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; width: 58px; }
.spark i { flex: 1; background: var(--ok); border-radius: 1.5px; }
.spark i.z { background: color-mix(in srgb, var(--faint) 35%, transparent); }

.sp-detail { border-left: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 2%, transparent); overflow-y: auto; padding: 18px; }
.sp-detail h3 { margin: 0; font-size: 17px; }
.sp-detail .big:not(.mono) { font-size: 28px; color: var(--accent-text); }
.sp-back { display: none; color: var(--accent-text); font-weight: 600; margin-bottom: 10px; }
.sp-who { display: flex; gap: 12px; align-items: center; }
.sp-status { display: flex; gap: 8px; align-items: baseline; padding: 10px; margin-top: 16px; border-radius: var(--r-md); font-size: 15px;
  background: color-mix(in srgb, var(--c) 12%, transparent); }
.sp-status i { font-style: normal; color: var(--c); }
.sp-sec { margin-top: 20px; }
.sp-sec h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.small { font-size: 13px; }
.sp-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-toggle { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted);
  background: color-mix(in srgb, var(--ink) 4%, transparent); border: 1px solid var(--line); }
.sp-toggle:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.sp-toggle.on { color: var(--c); font-weight: 600; background: color-mix(in srgb, var(--c) 18%, transparent); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.sp-toggle.partly { border-style: dashed; border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.sp-newtopic { margin-top: 10px; width: 240px; max-width: 100%; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--text); font: inherit; font-size: 13px; }
.sp-newtopic:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 52px; }
.bars i { flex: 1; border-radius: 2.5px; background: color-mix(in srgb, var(--accent) 75%, transparent); }
.bars i.now { background: var(--accent); }
.bars i.z { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.bars-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 4px; }
.sp-post { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13px; }
.sp-post:last-child { border-bottom: 0; }
.sp-post:hover span { color: var(--accent-text); }
.sp-post.read span { color: var(--muted); }
.sp-post span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-post small { color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.sp-topicrow { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.sp-topicrow i { width: 8px; height: 8px; border-radius: 50%; }
.sp-topicrow > button:first-of-type { flex: 1; text-align: left; }
.sp-topicrow span { color: var(--muted); font-variant-numeric: tabular-nums; }
.link { font-size: 13px; color: var(--faint); }
.link:hover { color: var(--text); }

.sp-bulk { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; align-items: center; padding: 6px;
  border-radius: 999px; background: color-mix(in srgb, var(--raise) 85%, transparent); backdrop-filter: blur(20px);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.sp-bulk[hidden] { display: none; }
.sp-bulk b { font-size: 13px; color: var(--muted); padding: 0 10px; }
.sp-bulk button { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.sp-bulk button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

@media (max-width: 1200px) {
  .sp-row { grid-template-columns: 28px minmax(0, 1fr) 120px 110px 72px 56px; }
  .sp-row .c-latest { display: none; }
  .sp-body { grid-template-columns: 1fr 300px; }
}
/* Phone: two cards a row, topics scroll sideways, the detail is its own page. */
@media (max-width: 900px) {
  .sp-head { flex-wrap: wrap; padding: 12px 16px; }
  .sp-search { order: 5; flex-basis: 100%; }
  .sp-head .more, .sp-head [data-view-go] { display: none; }
  .sp-title { flex: 1; min-width: 0; }
  .sp-cards { grid-template-columns: 1fr 1fr; padding: 0 16px 12px; }
  .sp-topics { flex-wrap: nowrap; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
  .sp-chip { flex: none; }
  .sp-body { grid-template-columns: 1fr; }
  .sp-row { grid-template-columns: 24px minmax(0, 1fr) 96px 44px; padding: 8px 16px 8px 10px; }
  .sp-row .c-topics, .sp-headrow .c-topics, .sp-row .c-opened { display: none; }
  .sp-detail { display: none; border-left: 0; }
  .srcpage.has-detail .sp-detail { display: block; position: fixed; inset: 0; z-index: 10; background: var(--ground); padding: 16px; }
  .srcpage.has-detail .sp-back { display: inline-block; }
}
.reader > .srcpage { flex: 1; }
/* Källor by its own width, in the reader and inside Inställningar (review 7, 2026-10-10: at 1 440 px
   the names got almost nothing). The names keep about 260 px: first the latest column goes and the
   detail narrows, then the detail opens on demand over the list instead of beside it. */
.srcpage { container: sp / inline-size; }
@container sp (max-width: 1130px) {
  .sp-row { grid-template-columns: 28px minmax(0, 1fr) 120px 110px 72px 56px; }
  .sp-row .c-latest { display: none; }
  .sp-body { grid-template-columns: 1fr 280px; }
  .sp-cards { grid-template-columns: repeat(2, 1fr); }
}
@container sp (max-width: 930px) {
  .sp-body { grid-template-columns: 1fr; }
  .sp-detail { display: none; border-left: 0; }
  .srcpage.has-detail .sp-detail { display: block; position: fixed; inset: 0; z-index: 10; background: var(--ground); padding: 16px; overflow-y: auto; }
  .srcpage.has-detail .sp-back { display: inline-block; }
}
@container sp (max-width: 700px) {
  .sp-head { flex-wrap: wrap; padding: 12px 16px; }
  .sp-search { order: 5; flex-basis: 100%; }
  .sp-title { flex: 1; min-width: 0; }
  .sp-topics { flex-wrap: nowrap; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
  .sp-chip { flex: none; }
  .sp-row { grid-template-columns: 24px minmax(0, 1fr) 96px 44px; padding: 8px 16px 8px 10px; }
  .sp-row .c-topics, .sp-headrow .c-topics, .sp-row .c-opened { display: none; }
}
@media (hover: none) { .fold { opacity: 1; } }
.art .meta .svg { width: 12px; height: 12px; flex: none; }

/* Statistik och kostnad: the same as Inställningar › Statistik in the apps. */
.manage.stats { max-width: 860px; }
.stats .manage-head .seg { margin-top: 0; }
.st-card { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--raise); border: 1px solid var(--line); }
.st-card h3 { margin: 0 0 10px; font-size: 15px; }
.st-verdict { font-weight: 700; margin-bottom: 10px; }
.st-verdict.ok { color: var(--ok); }
.st-verdict.warn, .warn { color: var(--orange); }
.st-line { margin: 10px 0; }
.st-line-h { display: flex; justify-content: space-between; font-size: 15px; font-variant-numeric: tabular-nums; }
.st-bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 8%, transparent); margin: 5px 0 3px; overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: 3px; }
.st-line small { font-size: 13px; }
.st-cost { width: 100%; border-collapse: collapse; font-size: 15px; }
.st-cost td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.st-cost td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-cost tr.sum td { font-weight: 700; border-bottom: 0; }
.st-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.st-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--c) 9%, transparent); }
.st-tile b { font-size: 13px; color: var(--c); }
.st-tile span { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-tile small { font-size: 13px; color: var(--muted); }
.st-tile small.faint { color: var(--faint); font-size: 12px; }
.st-chart { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.st-chart > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.st-chart i { display: block; width: 100%; max-width: 34px; border-radius: 3px 3px 0 0; background: var(--mail); }
.st-chart i.over { background: var(--orange); }
.st-chart small { font-size: 12px; color: var(--faint); }
.st-free { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--faint); font-size: 12px; color: var(--faint); text-align: right; }
.st-day { width: 100%; font-size: 15px; border-collapse: collapse; }
.st-day td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.st-day td:first-child { width: 110px; }
.st-day td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .st-tiles { grid-template-columns: 1fr 1fr; }
  .stats .manage-head { flex-wrap: wrap; }
  .stats .manage-head h2 { flex: 1 0 100%; }
  .stats .manage-head .seg { margin-bottom: 10px; }
}

.sp-interval { padding: 6px 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--raise); color: var(--text); font: inherit; font-size: 13px; }

.paper-row select { padding: 5px 8px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ground); color: var(--text); font: inherit; font-size: 13px; }
.nbadge { display: inline-grid; place-items: center; padding: 0 3px; border-radius: 4px; color: #fff; font-weight: 800; flex: none; line-height: 1; }

/* Nyheter: front page and the latest news (NewsView.swift). */
.newspage { overflow-y: auto; height: 100%; padding: 20px 22px 60px; }
.live { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--news-text); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--news); animation: pulse 2s 3; } /* three pulses, then still (battery, 2026-10-23) */
@keyframes pulse { 50% { opacity: .35; } }
.newspage > .sub { margin: 4px 0 16px; white-space: normal; min-height: 0; }
.nbody-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0; }
.nfront { padding-right: 22px; border-right: 1px solid var(--line); }
.nlatest { padding-left: 20px; }
.nlatest h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.nfront a, .nlatest a { color: inherit; text-decoration: none; }
.lead { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.lead img { width: 100%; object-fit: cover; border-radius: var(--r-md); display: block; background: var(--raise); }
.lead h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.3px; margin: 6px 0; }
.lead h2:hover, .ntitle:hover { color: var(--accent-text); }
.lead p { color: var(--muted); font-size: 15px; margin: 0; }
.noimg { display: grid; place-items: center; border-radius: var(--r-md); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.nmeta .papers { display: inline-flex; gap: 2px; }
.updnews { font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--ok); margin-right: 6px; white-space: nowrap; }
.frontnews { font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.nacts { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.also { position: relative; font-size: 13px; }
.also summary { list-style: none; cursor: pointer; color: var(--accent-text); font-weight: 600; }
.also summary::-webkit-details-marker { display: none; }
.also .moremenu { min-width: 300px; }
.also .moremenu a { display: flex; gap: 6px; align-items: center; padding: 6px 8px; border-radius: var(--r-sm); font-size: 13px; color: var(--text); }
.also .moremenu a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nsave { margin-left: auto; padding: 4px; border-radius: var(--r-sm); color: var(--faint); }
.nsave:hover, .nsave.on { color: var(--saved); }
.nsave .svg { width: 15px; height: 15px; }
.nrow { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ntime { width: 40px; flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.nbody { flex: 1; min-width: 0; }
.ntitle { font-size: 15px; font-weight: 600; line-height: 1.35; }
.nrow.seen .ntitle { font-weight: 400; color: var(--muted); }
.nrow .nmeta { margin-top: 3px; }
.nreview { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 2px; }
.nreview > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nreview b { font-weight: 600; }
.nreview .ok { color: var(--ok); }
.nreview button { flex: none; }
.newsince { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; color: var(--news-text); font-size: 12px; font-weight: 800; }
.newsince::before, .newsince::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--news) 50%, transparent); }
@media (max-width: 1200px) {
  .nbody-grid { grid-template-columns: 1fr; }
  .nfront { padding-right: 0; border-right: 0; }
  .nlatest { padding-left: 0; margin-top: 10px; }
}
@media (max-width: 700px) {
  .newspage { padding: 14px 16px 60px; }
  .lead { grid-template-columns: 1fr; }
  .lead img { height: 200px !important; }
}
.reader > .newspage { flex: 1; min-height: 0; height: auto; }

/* Veckans läsning's page column. */
.reader > .setpage { flex: 1; min-height: 0; height: auto; }

/* Inställningar: sections like the Mac's settings window. */
.setpage { display: grid; grid-template-columns: 230px minmax(0, 1fr); height: 100%; }
/* Läsrum's places (Källor, Bevakningar, Statistik): the page without Inställningar's menu (2026-10-17). */
.setpage.place { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.setpage.place .setbody:not(.wide) { padding: 28px 36px 60px; max-width: 1000px; }
.setnav { border-right: 1px solid var(--line); padding: 18px 10px; overflow-y: auto; }
.setnav a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-md); color: var(--text); text-decoration: none; font-size: 15px; }
.setnav a:hover { background: var(--hover); }
.setnav a.on { background: var(--wash); font-weight: 600; }
.setgroup { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 14px 8px 4px; }
.setgroup:first-child { padding-top: 6px; }
/* Where a choice applies: all devices, or this browser only. */
.scope { display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--muted); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.setband-top { display: flex; align-items: center; gap: 6px; min-height: 18px; }
.setbody .manage-head [data-menu], .setbody .sp-head [data-menu] { display: none; }
.setnav p { padding: 10px 8px; }
.seticon { width: 24px; height: 24px; display: grid; place-items: center; flex: none; }
.seticon .svg { width: 18px; height: 18px; }
.setbody { overflow-y: auto; padding: 22px 28px 60px; max-width: 820px; }
/* Källor inside Inställningar: its own full-height page with list and detail. */
.setbody.wide { padding: 0; max-width: none; overflow: hidden; display: flex; flex-direction: column; }
.setbody.wide > .srcpage { flex: 1; min-height: 0; }
.setbody h2 { margin: 0 0 6px; font-size: 20px; }
.setbody .manage.stats { padding: 0; }
.setrow { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.setrow:last-child { border-bottom: 0; }
.setrow .link { white-space: nowrap; flex: none; }
.setform { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.setform input, .setform select { padding: 7px 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ground); color: var(--text); font: inherit; font-size: 15px; }
.setform input { flex: 1; min-width: 160px; }
.setchips { display: flex; flex-wrap: wrap; gap: 6px; }
.setchips .chip button { color: inherit; opacity: .7; }
@media (max-width: 900px) {
  /* Phone: the band on top, the sections as one row that scrolls sideways, the section below. */
  .setpage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .setnav, .setbody { min-width: 0; }
  .setnav { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px 8px; overflow: visible; }
  .setband { margin: 0 0 8px; padding: 0; }
  .setband .tstats { max-width: 360px; }
  /* The three figures took the first screen on a phone (design rest 2026-11-01); they are on Statistik. */
  .setband .tstats { display: none; }
  .setlinks { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .setlinks::-webkit-scrollbar { display: none; }
  .setlinks a { flex: none; padding: 5px 10px 5px 6px; gap: 6px; }
  .setnav p { display: none; }
  .setbody { padding: 16px; }
}
.cand.page { margin-top: 8px; padding: 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 10%, transparent); border-top: 0; }

.quicksave{max-width:380px;margin:28px auto;padding:0 16px;font:15px/1.45 -apple-system,BlinkMacSystemFont,sans-serif}
.quicksave h1{font-size:17px;margin:0 0 8px}
.quicksave .qs-url{word-break:break-all}
.quicksave .qs-acts button{font:inherit;padding:6px 16px;border-radius:8px;border:1px solid currentColor;background:none;color:inherit;cursor:pointer}
.quicksave .qs-acts .qs-save{background:var(--accent,#c96);color:#fff;border-color:transparent}
.bookmarklet { display: inline-block; padding: 6px 12px; border-radius: var(--r-sm); background:var(--lamp);color:var(--on-lamp);text-decoration:none;font-weight:600;cursor:grab}

/* Nyheter: Läget (AI) and Mindre av */
/* Läget (NewsView BriefView): AI text on the AI surface, labelled in the lamp. */
.nbrief { margin: 8px 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--ai-surface); font-size: 15px; }
.nbrief b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lamp-text); margin-bottom: 4px; }
.nbrief p { margin: 2px 0; }
.nbrief p.muted { font-size: 13px; }
.nbrief.compact { padding: 7px 10px; font-size: 13px; }
.nbrief .nquote { margin: 8px 0 4px; padding: 0 0 0 10px; border-left: 2px solid color-mix(in srgb, var(--lamp-text) 45%, transparent); font-family: var(--serif, Georgia, serif); font-style: italic; }
.nbrief .nquote cite { display: block; font-family: inherit; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.nbrief p.nnext { font-size: var(--fs-meta); margin-top: 5px; }
.nbrief p.nnext b { display: inline; font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; margin: 0 4px 0 0; }
.nback { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 2px; font-size: var(--fs-meta); color: var(--muted); }
.nback svg { flex: none; width: 13px; height: 13px; margin-top: 2px; }
.nback b { font-weight: 600; color: var(--text); margin-right: 4px; }
.nback a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
.nback a:hover { color: var(--text); }
.lessmenu summary { color: var(--muted); font-weight: 600; padding: 0 4px; }
.lessmenu .moremenu { min-width: 200px; }
.lessline { font-size: 13px; color: var(--muted); margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Kurerat | Senaste on every screen: Kurerat over the whole width, Senaste as a list. */
.nbody-grid { grid-template-columns: minmax(0, 1fr) !important; }
.nfront { padding-right: 0 !important; border-right: 0 !important; }
.nlatest { padding-left: 0 !important; max-width: 760px; }
.nsection h4 { margin: 18px 0 6px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.stitle { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; margin-top: 3px; }
.stitle:hover { color: var(--accent-text); }
.nsection .link { margin-top: 6px; font-size: 13px; }
/* Nyheter: the papers as chips in the head (no sidebar of its own, 2026-10-05). */
.npapers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 14px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--raised); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.pchip .psq, .paper-row .psq { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex: none; }
.pchip.on { background: var(--lamp); color: var(--on-lamp); }
/* The papers on one line that scrolls sideways, with a fading edge, on narrow screens (design rest 2026-11-01:
   31 chips were five rows above the first story). ⋯ stays at the end, outside the scroller. */
.npapers-scroll { display: contents; }
@media (max-width: 900px) {
  .npapers { flex-wrap: nowrap; }
  .npapers-scroll { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding-right: 24px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .npapers-scroll::-webkit-scrollbar { display: none; }
  .npapers-scroll .pchip { flex: none; }
  .npapers > .pchip.ghost { flex: none; }
}
/* Kurerat | Senaste: the same switch as Olästa | Alla | Lästa. */
.nmodes { display: flex; margin: 0 0 14px; background: var(--raised); border-radius: var(--r-md); padding: 2px; max-width: 380px; }
.nmodes button { flex: 1; min-height: 28px; padding: 4px 12px; border-radius: var(--r-sm); font-size: 13px; color: var(--muted); border: 1px solid transparent; }
.nmodes button.on { background: var(--surface); color: var(--ink); font-weight: 600; border-color: var(--line); }
.nmoderow { display: flex; align-items: flex-start; gap: 10px; }
.nmoderow .nmodes { flex: 1; }
.ngentle { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; white-space: nowrap; height: 32px; padding: 0 14px; border-radius: var(--r-md); font-size: 13px;
  color: var(--muted); background: var(--raised); border: 1px solid transparent; }
.ngentle svg { width: 15px; height: 15px; }
.ngentle.on { color: var(--lamp-text); background: var(--wash); border-color: color-mix(in srgb, var(--lamp-text) 50%, transparent); font-weight: 600; }
.mode-curated .nlatest, .mode-latest .nfront { display: none; }

/* Senaste in two columns on wide screens, read down the left first, like a newspaper. */
@media (min-width: 1100px) {
  .mode-latest .nlatest { max-width: none; columns: 2; column-gap: 28px; }
  .mode-latest .nlatest > h4, .mode-latest .nlatest > .lessline, .mode-latest .nlatest > p { column-span: all; }
  .mode-latest .nrow, .mode-latest .newsince { break-inside: avoid; }
}

/* Calmer newspaper (2026-10-05): readable width, rows with the headline first, Läget as a quiet
   aside, STOR NYHET as red text instead of a red pill. */
.nfront { max-width: 1180px; }
.stitle { font-size: 15px; margin: 0 0 2px; }
.bignews { font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--news-text); }
.lead p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead h2 { font-size: 28px; }

/* Newspaper layout (2026-10-05): lead with a numbered column beside it, then equal section columns,
   each a picture story and three headlines under a rule. Same as NewsView.swift. */
/* Viktigast as a feed with the sections beside it, like a news site (Jan 2026-11-23). */
.nfeedgrid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; align-items: start; }
.nfeedcol { max-width: 760px; }
.nfeed { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.nfeedcol > .lead + .nfeed { margin-top: 18px; }
.nfeed .nbody { flex: 1; min-width: 0; }
.nfeed h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.2px; margin: 0 0 4px; }
.nfeed h3:hover { color: var(--accent-text); }
.fing { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.fai { display: inline-block; margin-right: 7px; padding: 0 5px; border-radius: 4px; background: var(--ai-surface); color: var(--lamp-text);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 18px; vertical-align: 1px; }
.lead p.fing { display: block; -webkit-line-clamp: none; overflow: visible; color: var(--text); margin-top: 12px; }
.lead .nacts { margin-top: 4px; }
.nfeed .fthumb { order: 2; flex: none; }
.fthumb img { width: 150px; height: 104px; object-fit: cover; border-radius: var(--r-md); display: block; background: var(--raise); }
.nsections > .nsection:first-child h4 { margin-top: 0; }
.nfront .lead { display: block; margin: 0; }
.nfront .lead img { height: 320px !important; width: 100%; }
.nfront .lead h2 { font-size: 28px; letter-spacing: -.4px; margin: 10px 0 6px; }
.sline { padding: 10px 0; border-top: 1px solid var(--line); }
.sline .stitle:hover { color: var(--accent-text); }
@media (max-width: 1000px) { .nfeedgrid { grid-template-columns: minmax(0, 1fr); gap: 10px; } .nfeedcol { max-width: none; } }
@media (max-width: 760px) {
  .nfront .lead img { height: 210px !important; }
  .nfeed { display: flow-root; }
  .nfeed .fthumb { float: right; margin: 2px 0 8px 12px; }
  .fthumb img { width: 96px; height: 72px; }
  .nfeed h3 { font-size: 18px; }
  .nfeed .nmeta { clear: right; }
}

/* Save and Mindre av only when hovering a story (always on touch screens). */
.sline { position: relative; }
.hacts { display: inline-flex; gap: 2px; align-items: center; margin-left: auto; opacity: 0; transition: opacity .15s; }
.sline:hover .hacts, .nfeed:hover .hacts, .lead:hover .hacts, .hacts:focus-within { opacity: 1; }
@media (hover: none) { .hacts { opacity: 1; } }
.sline .nmeta { display: flex; }

/* Page heads on the tool pages (Källor, Statistik, Upptäck, Inställningar): plain, no box, as in the
   apps (2026-10-05). The eyebrow keeps the page's colour. */
.thero, .setband { --tint: var(--muted); color: var(--ink); }
.thero { padding: 4px 0 12px; }
/* The eyebrow above a page head: small capitals in the page's tint (muted unless the page says). */
h1.tdate { margin: 0; line-height: inherit; }
.tdate { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tint, var(--muted)); }
.thero .tdate i { width: 7px; height: 7px; border-radius: 50%; }
.thero h1 { font-size: 28px; margin: 4px 0 4px; letter-spacing: -.3px; color: var(--ink); }
.thero p { margin: 0; color: var(--muted); }
.tstats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tstats a, .tstats > span { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 7px 12px; min-width: 88px; color: var(--ink); text-decoration: none; }
.tstats a:hover { border-color: color-mix(in srgb, var(--ink) 20%, transparent); }
.tstats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.tstats span span, .tstats a span { font-size: 12px; color: var(--muted); }
.shead { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--faint); text-transform: uppercase; }
.shead i { flex: 1; height: 1px; background: var(--line); }

/* All read in the list (AllReadView.swift). */
.allread { padding: 20px 16px; }
.thero.ar { text-align: center; }
.arsym { font-size: 34px; }
.artiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.artile { display: block; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.artile b { display: block; font-size: 15px; }
.artile span { font-size: 13px; color: var(--muted); }
.artile:hover { border-color: color-mix(in srgb, var(--ink) 20%, transparent); }

/* Statistik */
.st-hero { --tint: var(--ok) !important; margin: 0 0 16px; }
.st-hero.hot { --tint: var(--orange) !important; }

/* Sparade (SavedHero.swift) */

/* Källor: the band and Behöver dig (SourcesView.swift). */
.sp-cards { display: block !important; }

.sp-hero h1 { font-size: 20px; }
.sp-hero .tstats button, .sp-hero .tstats .spc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 12px; color: var(--ink); text-align: left; min-width: 88px; }
.sp-hero .tstats button.on { background: var(--wash); border-color: var(--lamp-text); }
.sp-hero .tstats b { display: flex; align-items: center; gap: 5px; font-size: 17px; }
.sp-hero .tstats b i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.sp-hero .tstats span { font-size: 12px; color: var(--muted); display: block; }
.sp-tidy2 { background: none !important; border: 0 !important; color: var(--lamp-text) !important; font-weight: 600; font-size: 13px; }
.sp-need { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 8px 12px; margin-bottom: 6px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.sp-need i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
.sp-need b { font-size: 13px; white-space: nowrap; }
.sp-need span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-need:hover { border-color: var(--lamp-text); }
.sp-hint { display: flex; gap: 8px; align-items: center; padding: 8px 12px; margin-bottom: 6px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.sp-hint > div { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sp-hint b { font-size: 13px; }
.sp-hint span { font-size: 13px; color: var(--muted); }

/* Veckans läsning (WeeklyView.swift): AI text on the AI surface. */

/* Inställningar: the band on top of the menu (SettingsBand in AdminView.swift). */
.setband { margin: 0 0 12px; padding: 4px 6px; }
.setband .tstats { margin-top: 8px; gap: 6px; flex-wrap: nowrap; }
.setnav .setband .tstats a { display: block; flex: 1; min-width: 0; padding: 5px 8px; border-radius: var(--r-md); }
.setband .tstats b { font-size: 15px; }
.setband .tstats span { font-size: 12px; white-space: nowrap; }

/* Upptäck (DiscoverView.swift): the AI's violet. */
.disc-q { display: flex; flex: 1; min-width: 220px; background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 14px; }
.disc-q input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); outline: none; font: inherit; }
.disc-q:focus-within { border-color: color-mix(in srgb, var(--lamp) 70%, transparent); }
.disc-q input::placeholder { color: var(--faint); }
.disc-q button { background: none; border: 0; color: var(--lamp-text); font-weight: 600; cursor: pointer; padding: 6px 10px; border-radius: var(--r-sm); }
.disc-q button:hover { background: var(--wash); }
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.disc-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.disc-card .dc-top { display: flex; gap: 10px; align-items: center; }
.disc-card .dc-top .mono { width: 40px; height: 40px; border-radius: 11px; font-size: 18px; flex: none; }
.disc-card .dc-top > div { flex: 1; min-width: 0; }
.disc-card .dc-top small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-card .dc-top b { display: block; }
.disc-card .dc-top small { color: var(--faint); }
.disc-card p { margin: 0; font-size: 15px; }
.disc-card .dc-why { color: var(--muted); font-size: 13px; padding-left: 9px; border-left: 2px solid var(--violet); }

/* Upptäck: Sajter under one field (Aktuellt nu went 2026-10-20). */
.reader > .disc { flex: 1; min-height: 0; }
.disc { display: flex; flex-direction: column; height: 100%; min-height: 0; min-width: 0; }
.disc-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); }
.disc-bar { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; }
.disc-bar .disc-q { min-width: 0; align-items: center; gap: 8px; padding-left: 12px; }
.disc-bar .disc-q > .svg { width: 15px; height: 15px; color: var(--faint); }
.disc-bar .disc-q input { padding: 6px 0; }
.disc-sites { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 28px 60px; }
.disc-sites > * { max-width: 980px; }

@media (max-width: 900px) {
  .disc-top { padding: 10px 16px; }
  .disc-sites { padding: 14px 16px 50px; }
}

/* Idag (WelcomeView.swift): its own page. Date, greeting and what waits straight on the page;
   Dagens tre as numbered rows, Veckans läsning on the AI surface; Fortsätt läsa, Glömd pärla and
   Dina ämnen in a right column when there is room. */
.today { overflow-y: auto; height: 100%; flex: 1; min-height: 0; min-width: 0; }
.today-in { max-width: 1200px; margin: 0 auto; padding: 30px 32px 50px; }
.t-head .t-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.t-head h1 { font-size: 40px; font-weight: 700; letter-spacing: -.6px; margin: 2px 0 2px; line-height: 1.1; }
.t-head p { margin: 0; color: var(--muted); font-size: 15px; }
/* Idag as Morgontidningen (WelcomeView.swift): sizes follow the pane, not the window. */
.today { container: today / inline-size; }
.t-sec { margin-top: 30px; min-width: 0; }
.t-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin: 0 0 12px; }

/* The lead and Fortsätt läsa. The lead is always dark, so its white text holds in light mode. */
.t-lead { position: relative; display: flex; align-items: flex-end; height: 390px; border-radius: var(--r-lg); overflow: hidden; background: var(--raised); color: #fff; text-decoration: none; }
.t-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-lead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0, 0, 0, .88)); }
.t-lead-in { position: relative; z-index: 1; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.t-lead-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .85); min-width: 0; }
.t-lead-meta span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-badge { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #fff; padding: 3px 7px; border-radius: var(--r-sm); }
.t-badge.news { background: var(--news); }
.t-lead h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.4px; line-height: 1.15; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t-lead p { margin: 0; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-lead:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.t-foot { margin-top: 34px; text-align: center; color: var(--faint); font-size: 13px; }
.t-foot .keys { margin: 0 0 12px; }
/* Narrow pane (phone): one column, and the rows scroll sideways with ~230 px cards. */
@container today (max-width: 920px) {
  .today-in { padding: 16px 16px 40px; }
  .t-head h1 { font-size: 32px; }
  .t-lead { height: 320px; }
  .t-lead-in { padding: 16px; }
  .t-lead h2 { font-size: 28px; }
}
.thumb { position: relative; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pop.viewpanel { width: 300px; }

/* No connection (review 7, 2026-10-10): Idag and Nyheter say they show an older copy, with Försök igen. */
.t-offline { margin: 0 0 22px; padding: 10px 14px; border-radius: var(--r-lg); font-size: 13px; color: var(--muted);
  background: color-mix(in srgb, var(--orange) 8%, transparent); }
.newspage .sub.offline { color: var(--orange); }

/* Hälsa: Idag's line when something has stopped, and the list in Statistik. */
.t-health { display: flex; flex-direction: column; gap: 3px; margin: 0 0 22px; padding: 12px 14px; border-radius: var(--r-lg);
  text-decoration: none; color: var(--muted); font-size: 13px; border: 1px solid; transition: filter .14s; }
.t-health strong { color: var(--ink); font-size: 15px; }
.t-health.warn { background: color-mix(in srgb, var(--orange) 10%, transparent); border-color: color-mix(in srgb, var(--orange) 35%, transparent); }
.t-health.bad { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.t-health:hover { filter: brightness(1.08); }
.st-health { list-style: none; margin: 0; padding: 0; }
.st-health li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.st-health li:last-child { border-bottom: 0; }
.st-health i { width: 8px; height: 8px; border-radius: 999px; flex: none; background: var(--ok); }
.st-health i.warn { background: var(--orange); }
.st-health i.bad { background: var(--danger); }
.st-health span { margin-left: auto; color: var(--muted); text-align: right; }

/* Relaterat under the lead story in Nyheter. */
.nrelated:empty { display: none; }
.nrelated { margin-top: 16px; }
.nrelated .eyebrow { margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.nrel { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: color .14s; }
.nrel:last-child { border-bottom: 0; }
.nrel .t { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nrel .m { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.nrel .m b { color: var(--ink); font-weight: 700; }
.nrel:hover .t { color: var(--accent-text); }

/* Ikapp (2026-10-08): the violet band on Idag and the run-through page (sketch docs/genomgang-skiss). */
.ik-go { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; background: var(--violet); color: var(--on-lamp); font-weight: 600; font-size: 15px; }
.ik-go .svg { width: 15px; height: 15px; }
.ik-go:disabled { opacity: .5; cursor: default; }
.ikapp { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 32px 60px; }
@media (max-width: 700px) { .ikapp { padding: 16px; } }

/* Morgonbrev (letterPage in app.js) */
.lt-page { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.lt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lt-tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font-weight: 600; font-size: 13px; }
.lt-tab i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--lamp); color: var(--on-lamp); font-size: 13px; }
.lt-tab.on { background: var(--wash); border-color: var(--lamp-text); }
.lt-tab.add { padding-left: 12px; color: var(--lamp-text); background: transparent; border-style: dashed; }
.lt-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lt-row:last-child { border-bottom: 0; }
.lt-row .switch { margin-left: 0; }
.lt-text { flex: 1; min-width: 0; }
.lt-text b { display: block; font-size: 15px; }
.lt-text small { display: block; color: var(--muted); font-size: 13px; }
.lt-days { display: flex; gap: 5px; }
.lt-days button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); color: var(--muted); font-weight: 600; font-size: 13px; }
.lt-days button.on { background: var(--lamp); border-color: var(--lamp); color: var(--on-lamp); }
.lt-row .seg { margin-top: 0; }
.lt-row select, .lt-row input[type=time] { background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 5px 8px; font: inherit; font-size: 13px; }

.lt-h { margin: 22px 0 0; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); }
.lt-side .st-card:first-child { margin-top: 0; }
.lt-eye { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--lamp-text); }
.lt-next { font-size: 20px; font-weight: 700; margin: 4px 0 2px; }
.lt-log { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lt-log:last-child { border-bottom: 0; }
.lt-log small { display: block; font-size: 13px; }
.lt-view { width: min(680px, 96vw); height: 90vh; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--ground); }
.lt-view::backdrop { background: rgba(0, 0, 0, .5); }
.lt-view iframe { width: 100%; height: calc(100% - 44px); border: 0; }
.lt-view [data-close] { margin: 8px; }
/* By the room the page actually has, not the window (design review 2026-10-09: days and length
   overlapped at 1 024–1 200 px with the menus beside): the log goes under, controls wrap. */
.setbody:has(.lt-page) { container-type: inline-size; }
@container (max-width: 900px) { .lt-page { grid-template-columns: 1fr; } }
.lt-row { flex-wrap: wrap; row-gap: 8px; }
.lt-text { flex: 1 1 170px; }
.lt-row .seg { flex-wrap: wrap; }
.lt-status { margin-left: 10px; font-size: 13px; font-weight: 500; color: var(--muted); vertical-align: middle; }
.lt-status.ok { color: var(--ok); }
.lt-status.warn { color: var(--danger); }
.lt-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 6px; }
.lt-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.lt-chips button.on { background: var(--lamp); border-color: var(--lamp); color: var(--on-lamp); font-weight: 600; }
.lt-chips i { font-style: normal; font-size: 12px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .18); }

/* A button that starts an AI call (Workers AI, costs neurons): a ✦ right after its text, as in the
   apps (AICost.swift). Inside the button, never on its corner (Jan 2026-10-09). The title says roughly
   what one click costs. Violet on plain buttons, the button's own text colour on filled ones. */
.ai-cost::after { content: '✦'; display: inline-block; margin-left: 6px; font-size: .78em; line-height: 1; color: var(--violet); vertical-align: .08em; }
.ai-cost.primary::after { color: currentColor; opacity: .7; }

/* A failed load (loadError in app.js): its own state with a retry, above content already shown. */
.load-error { border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line)); border-radius: var(--r-lg); padding: 18px; margin: 12px 0; }
.load-error h2 { font-size: 15px; margin: 0 0 4px; }
.lt-conflict { border-color: var(--warn, var(--lamp)); }

/* Idag (WelcomeView.swift). */
.u-edition { display: block; margin-top: 4px; color: var(--faint); font-size: 13px; }
/* Idag (2026-10-16, WelcomeView.wideIdag): the news, Ditt flöde and Nära dig to the left; the doors, the
   letter's card and your own in a 360 px column. Narrow: the columns dissolve and --o orders one column. */
/* One block: a small uppercase heading with its link at the right, then short rows. */
.u-block { padding: 14px; border-radius: var(--r-lg); background: var(--surface); }
.u-bhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.u-bhead span { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.u-bhead a { font-size: 13px; font-weight: 600; color: var(--lamp-text); text-decoration: none; white-space: nowrap; }
/* The two doors: Upptäck (violet) and Översikter (the lamp), the whole door one link; stacked in the right column. */

.u-news { color: var(--news-text); margin-bottom: 10px; }

 

  

/* Jönköping and the chosen sections (WelcomeView.localPart): a coloured small-caps heading with a rule,
   a feature with its picture, then headlines with the paper's badge; two columns on wide screens. */

/* Idag: SMHI's three days, warnings, Krisinformation and Ekot (world.ts, 2026-10-10). */
.w-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.w-head small, .w-src { color: var(--faint); font-size: 13px; }
.w-warn { border-radius: var(--r-md); padding: 10px 12px; margin: 6px 0; background: color-mix(in srgb, var(--muted) 14%, transparent); }
.w-warn p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.w-yellow { background: color-mix(in srgb, #e3b500 18%, transparent); }
.w-orange { background: color-mix(in srgb, #f08a00 20%, transparent); }
.w-red { background: color-mix(in srgb, var(--news) 22%, transparent); }
.w-crisis { display: block; margin-top: 18px; padding: 14px; border-radius: var(--r-lg); color: inherit; text-decoration: none;
  background: color-mix(in srgb, var(--news) 12%, transparent); border: 1px solid color-mix(in srgb, var(--news) 35%, transparent); }
.w-crisis small { color: var(--news-text); font-weight: 600; font-size: 13px; display: block; }
.w-crisis p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
/* Följ beside Spara (design pass 2026-10-10). */
.nsave + .nsave { margin-left: 0; }
.nfollow:hover, .nfollow.on { color: var(--lamp-text); }
.nfollowed { display: inline-flex; vertical-align: -1px; margin-left: 4px; }
.nfollowed svg { width: 11px; height: 11px; }

/* Idag as a paper (2026-10-10): weather in the header, alerts only when something is going on. */
.w-line { margin-top: 10px; }
.w-line summary { list-style: none; cursor: pointer; display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.w-line summary::-webkit-details-marker { display: none; }
.w-line summary b { color: var(--ink); }
.w-line[open] summary { margin-bottom: 4px; }
.w-alert { margin-top: 14px; padding: 10px 12px; border-radius: var(--r-md); }
.w-alert p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* Idag's masthead (2026-10-10): date and weather in a band between rules, the greeting in a serif. */
.t-mast .t-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1.5px solid var(--ink); border-bottom: .5px solid var(--line); padding: 8px 0; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.t-mast .w-line { margin: 0; text-transform: none; letter-spacing: 0; }
.t-mast .w-line[open] { flex-basis: 100%; }
.t-mast h1 { font-family: var(--serif); font-size: 40px; letter-spacing: -.5px; margin: 18px 0 6px; }
.t-mast > p { font-family: var(--serif); font-size: 20px; line-height: 1.4; color: var(--muted); margin: 0; }

@media (max-width: 520px) { .t-mast h1 { font-size: 40px; } .t-mast > p { font-size: 20px; } }

/* Weather: the next four hours and tomorrow (2026-10-10). */
.w-hours { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 4px; margin: 8px 0; }
.w-hours small { display: block; color: var(--muted); font-size: 13px; }
.w-hours .w-ic { display: block; font-size: 20px; margin: 4px 0; }
.w-tomorrow { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 14px; margin-bottom: 8px; }
.w-tomorrow i { font-style: normal; color: var(--faint); }
.w-tomorrow span, .w-tomorrow small { color: var(--muted); }
.mark-end { display: flex; justify-content: center; padding: 26px 0 36px; }
.mark-end button { color: var(--lamp-text); font-weight: 600; }

/* Nyheter like Idag (Jan 2026-10-10): the same width and margins, the masthead, serif headlines and
   column heads like Idag's band. */
.newspage { padding: 0; }
.news-in { max-width: 1200px; margin: 0 auto; padding: 30px 32px 60px; }
.n-mast { margin-bottom: 20px; }
.n-mast .t-band .n-band-r { display: inline-flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; }
.news-in .nreview { margin: 0; }
.news-in .nreview b { font-family: var(--serif); font-size: var(--ingress); font-weight: 400; color: var(--muted); line-height: 1.4; }
.news-in .nreview b.ok { color: var(--ok); }
.n-mast .sub, .news-in > .n-status { margin: 4px 0; }
.colhead { border-top: 1.5px solid var(--ink); padding-top: 8px; margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.colhead.hot { color: var(--news-text); }
.lead h2, .stitle, .nfeed h3 { font-family: var(--serif); }
.sline .stitle { font-size: 15px; }
.lead-card { display: block; }
.lead-card .t-lead { margin-bottom: 12px; }
.lead-card .t-lead h2 { font-family: inherit; }
@media (max-width: 760px) { .news-in { padding: 16px 16px 40px; } .news-in .nreview b { font-size: var(--ingress); } .lead-card .t-lead { height: 300px; } }

/* Översikter (2026-10-15): the overviews as cards, the topics on offer with price and yes/no. */
.ovpage { overflow-y: auto; height: 100%; flex: 1; min-width: 0; }
.ov-in { max-width: 1100px; margin: 0 auto; padding: 30px 32px 60px; }
.ov-sec { margin-top: 30px; }
.ov-sec h2 { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.ov-pill { background: var(--lamp); color: var(--on-lamp); font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.ov-err { color: var(--danger) !important; }
/* Skrivs nu (2026-10-19): one card per overview being written, the way to the API small on the right. */
.ov-busylist { display: flex; flex-direction: column; gap: 8px; }
.ov-busy { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--t) 14%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.ov-busytext { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ov-busytext b { color: var(--ink); font-size: 15px; line-height: 1.3; }
.ov-busytext small { color: var(--muted); font-size: 13px; }
.ov-busy .ov-spin { flex: none; }
.ov-busyapi { flex: none; white-space: nowrap; font-size: 13px; padding: 6px 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--raised); color: var(--ink); cursor: pointer; }
.ov-busyapi:hover { background: var(--hover); }
@media (max-width: 560px) { .ov-busy { flex-wrap: wrap; } .ov-busyapi { margin-left: 30px; } }
/* Kan uppdateras (2026-10-19): cards in the topic's colour, as the overviews' own. */
.ov-updpic { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: color-mix(in srgb, var(--t) 25%, transparent); }
.ov-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--lamp); animation: ov-spin 1s linear infinite; }
@keyframes ov-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ov-spin { animation: none; } }
.linkbtn { background: none; border: 0; padding: 0; color: var(--lamp-text); font: inherit; cursor: pointer; }
/* New overviews: the count in the lamp's colour, not a filled capsule (design system: counts are quiet numbers). */
.item .total.ov-new { color: var(--lamp-text); font-weight: 700; }
@media (max-width: 600px) { .ov-in { padding: 20px 16px 50px; } }
/* Alla taggar (2026-10-16) */
.pop.all-tags { width: 320px; padding: 8px; }
.all-tags .at-q { width: 100%; margin-bottom: 6px; }
.all-tags .at-list { max-height: 380px; overflow-y: auto; }
.all-tags .at-row { display: flex; align-items: center; gap: 4px; }
.all-tags .at-row .mi { flex: 1; min-width: 0; }
.all-tags .at-row .mi span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.all-tags .at-pin { font-size: 12px; color: var(--faint); padding: 2px 6px; border-radius: 999px; }
.all-tags .at-pin.on { color: var(--lamp-text); background: var(--wash); }
.all-tags .at-more { color: var(--faint); padding: 2px 4px; border-radius: 6px; display: inline-flex; }
.all-tags .at-more:hover { color: var(--text); background: var(--wash); }
.all-tags .at-more svg { width: 16px; height: 16px; }
/* Idag calmer (review 2026-10-16) */

/* In the grid the paper's badge keeps its own width (it stretched over the column). */

.chip.ai.match { background: color-mix(in srgb, var(--lamp) 16%, transparent); color: var(--lamp-text); max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.setrow.job { align-items: flex-start; }
/* Allt om ett namn (2026-10-16): a person or organisation from an overview. */
.nm-view { width: min(620px, 96vw); max-height: 86vh; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--ground); color: inherit; }
.nm-view::backdrop { background: rgba(0, 0, 0, .5); }
.nm-view header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 4px; }
.nm-view h2 { margin: 0; font-size: 20px; }
.nm-view h3 { margin: 16px 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nm-body { padding: 0 18px 18px; overflow: auto; max-height: calc(86vh - 60px); }
.nm-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-bottom: 6px; border-radius: 10px; background: var(--card, var(--surface)); color: inherit; text-decoration: none; }
.nm-row:hover { filter: brightness(.97); }
.nm-more { margin-top: 8px; }

/* Upptäck › Sajter, compact (2026-10-16). */
.ds-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin: 2px 0 10px; }
.ds-head b { display: block; font-size: 13px; letter-spacing: .07em; color: var(--muted); }
.ds-head small { color: var(--faint); font-size: 13px; }
.ds-ai { border: 0; cursor: pointer; font: 600 13px var(--sans, inherit); color: var(--lamp-text); background: var(--wash); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.ds-ai:disabled { opacity: .5; cursor: default; }
.ds-note { margin: 0 0 10px; font-size: 13px; }
.ds-follow { margin-left: auto; flex: none; border: 0; cursor: pointer; font: 700 13px inherit; font-size: 13px; font-weight: 700; color: var(--on-accent, #1C1B19); background: var(--lamp-text); padding: 7px 14px; border-radius: 999px; }
.ds-open { font-size: 13px; color: var(--faint); text-decoration: none; }
.ds-open:hover { color: var(--lamp-text); }
@media (max-width: 520px) { .ds-head { flex-direction: column; align-items: flex-start; } }

/* Genvägar på Idag (2026-10-17, as IdagShortcutGrid in the apps): one row of round buttons, wrapping. */
.u-pins { margin: -6px 0 22px; }
.u-pinhead { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.u-pinhead svg { width: 12px; height: 12px; color: var(--accent-text, var(--accent)); }
.u-pingrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.u-pin { display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 58px; background: var(--surface); border-radius: 10px; color: inherit; text-decoration: none; min-width: 0; }
.u-pin:hover { background: var(--raised, var(--surface)); }
.u-pinic { flex: none; width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: var(--accent-text); background: color-mix(in srgb, var(--accent-text) 14%, transparent); }
.u-pinic.doc { color: var(--saved); background: color-mix(in srgb, var(--saved) 14%, transparent); }
.u-pinic svg { width: 15px; height: 15px; }
.u-pintx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.u-pintx b { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.u-pintx small { font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px 6px; margin: 0 0 22px; }
.u-sc { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--ink); text-decoration: none; min-width: 0; }
.u-scic { position: relative; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 82%, white), var(--tint)); }
.u-scic svg { width: 22px; height: 22px; }
.u-scn { position: absolute; top: -6px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; font: 700 12px/19px var(--sans, system-ui);
  font-style: normal; color: #fff; background: var(--news); box-shadow: 0 0 0 2px var(--ground); text-align: center; }
.u-sc small { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* A long name (Ljud och ljudböcker, Sammanställningar) goes on two lines in the same size as its neighbours, rather
   than shrinking or ending in an ellipsis (design review 2026-11-01). */
.u-sc small.long { white-space: normal; text-align: center; line-height: 1.2; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.u-sc:hover .u-scic { filter: brightness(1.08); }

/* Ämnen's library (2026-10-17, TopicLibrarySection in the apps): one row a topic, the book when it has an overview. */

/* Dina ämnen as tiles (2026-10-17, TopicTile in the apps): the topic's colour, a mark, dots for what is saved. */
.tt { --t: var(--lamp-text); display: flex; flex-direction: column; gap: 7px; min-height: 92px; padding: 12px; border-radius: 16px; color: var(--ink); text-decoration: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--t) 18%, transparent), color-mix(in srgb, var(--t) 5%, transparent)); border: 1.2px solid transparent; }
.tt.ready { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.tt:hover { filter: brightness(1.06); }
.tt b { font-size: 15px; font-weight: 600; line-height: 1.3; flex: 1; }
.tt small { color: var(--muted); font-size: 12px; }
.tt small strong { color: var(--t); font-size: 13px; }

/* Tighter overview cards in the topic's colour (2026-10-17), and the topic's page head. */
.sj-head { --t: var(--lamp-text); padding: 16px; border-radius: 20px; margin: 0 0 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--t) 22%, transparent), color-mix(in srgb, var(--t) 5%, transparent)); }
.sj-head small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--t); }
.sj-head h1 { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin: 4px 0 6px; }
.sj-head p { font-family: var(--serif); font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.sj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sj-chips span { font-size: 13px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.sj-read { display: inline-block; }
/* Ämnet känns fel (2026-10-17). */
.sj-flag { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--orange, #F0A04B) 14%, transparent); margin: 0 0 12px; font-size: 15px; }
.sj-tools { margin: 4px 0 14px; }
.sj-tools summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.sj-tools div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* Idag's Det du följer (2026-10-17): the old blocks as parts of one, without their own card. */

/* Läget just nu (2026-10-19): the edition written on the Mac, on Idag beside the letter. */
.u-edition { display: flex; flex-direction: column; gap: 10px; }
.u-edread { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--ai-surface); color: inherit; text-decoration: none; }
.u-edread b { color: var(--ink); font-size: 15px; }
.u-edread small, .u-edwhat { color: var(--muted); font-size: 13px; margin: 0; }
.u-edstatus { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 0; }
.u-ederr { color: var(--danger); font-size: 13px; margin: 0; }
.u-edbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--raised); color: var(--ink); font-weight: 600; cursor: pointer; }
.u-edbtn svg { width: 14px; height: 14px; color: var(--lamp-text); }
.u-edread img { flex: none; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.u-edread > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.u-edread em { font-style: normal; font-size: 13px; color: var(--ink); opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.u-edread strong { color: var(--lamp-text); }
.u-edread:hover { filter: brightness(1.06); }

/* Översatt (2026-10-19): an English headline in Swedish, the original on hover. */
.ntrans { font-style: italic; color: var(--muted); }
.nedited { border: 0; background: none; padding: 0; font: inherit; font-style: italic; color: var(--muted); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.nedited:hover { color: var(--ink); }
.nedit { padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--surface); }
.nedit h3 { margin: 0 0 6px !important; }
.nedit b { display: block; font-size: 15px; line-height: 1.35; }
.nedit p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.nedit ins { text-decoration: none; background: color-mix(in srgb, var(--ok) 28%, transparent); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.nedit del { background: color-mix(in srgb, var(--danger) 24%, transparent); color: var(--ink); border-radius: 3px; padding: 0 2px; }

/* Statistik och loggar (2026-10-19): tabs, filters, key figures, bars and tables. */
.bi .bi-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 6px 0 14px; }
.bi .bi-tabs a { padding: 9px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.bi .bi-tabs a:hover { color: var(--ink); }
.bi .bi-tabs a.on { color: var(--ink); border-bottom-color: var(--lamp); }
.bi .bi-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.bi .bi-filters #bi-more { display: flex; gap: 8px; flex-wrap: wrap; }
.bi .bi-filters select, .bi .bi-filters input { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 10px; font: inherit; font-size: 13px; }
.bi .bi-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0 0 14px; }
.bi .bi-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.bi .bi-kpi small { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.bi .bi-kpi b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bi .bi-kpi span { color: var(--faint); font-size: 13px; }
.bi .bi-kpi.warn { border-color: color-mix(in srgb, var(--orange) 55%, transparent); }
.bi .bi-kpi.warn b { color: var(--orange); }
.bi svg.bi-bars { width: 100%; display: block; }
.bi .bi-chart { position: relative; }
.bi svg.bi-bars .bi-prev { fill: color-mix(in srgb, var(--ink) 16%, transparent); }
.bi svg.bi-bars .bi-future { fill: none; stroke-dasharray: 3 2; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; }
.bi svg.bi-bars rect.bi-odd { stroke: var(--orange, #d9822b); stroke-width: 2; vector-effect: non-scaling-stroke; }
.bi svg.bi-bars .bi-ghostline { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1.5; stroke-dasharray: 4 3; }
.bi .bi-marks { position: relative; height: 12px; }
.bi .bi-mk { position: absolute; top: 0; transform: translateX(-50%); font-style: normal; font-size: 9px; line-height: 12px; }
.bi .bi-mk.odd { color: var(--orange, #d9822b); }
.bi .bi-mk.ev { color: var(--bookmark); }
.bi .bi-mk.odd + .bi-mk.ev { margin-left: 8px; }
.bi .bi-fc { display: block; color: var(--lamp-text); font-size: 12px; }
.bi .bi-oddline { display: block; color: var(--orange, #d9822b); font-size: 12px; }
.bi svg.bi-bars .bi-col[data-day] { cursor: pointer; }
/* The tip's extra lines (2026-10-24: blue text on the light box was hard to read, and a long trial list ran across
   the screen): the text in the box's own colour, wrapped, only the mark coloured. */
#bi-tip { max-width: 340px; }
#bi-tip .bi-tip-odd, #bi-tip .bi-tip-ev { white-space: normal; display: flex; gap: 6px; }
#bi-tip .bi-tip-odd i, #bi-tip .bi-tip-ev i { font-style: normal; flex: none; }
#bi-tip .bi-tip-odd i { color: var(--orange); }
#bi-tip .bi-tip-ev i { color: var(--bookmark); }
.bi .bi-own { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; }
.bi .bi-own input { font: inherit; font-size: 13px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); margin-left: 4px; }
#bi-drill { position: fixed; overflow-y: auto; z-index: 60; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(0,0,0,.35); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
#bi-drill h4 { margin: 6px 0 2px; font-size: var(--fs-eye); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#bi-drill .bi-drill-head { display: flex; justify-content: space-between; gap: 8px; }
#bi-drill .bi-drill-ev { display: flex; justify-content: space-between; gap: 8px; }
/* Rows in grey so the title and the headings stand out (Jan 2026-10-24). */
#bi-drill .bi-drill-parts td, #bi-drill .bi-drill-ev > span { color: var(--muted); }
#bi-drill .bi-drill-parts td { padding: 2px 12px 2px 0; }
#bi-drill .bi-drill-parts td.r { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
#bi-drill .bi-drill-add { display: flex; gap: 6px; margin-top: 4px; }
#bi-drill .bi-drill-add input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); }
.bi svg.bi-bars .bi-hit { fill: transparent; }
.bi svg.bi-bars .bi-col { cursor: default; }
.bi svg.bi-bars .bi-col.on .bi-hit { fill: var(--hover); }
.bi svg.bi-bars .bi-col.on rect:not(.bi-hit) { opacity: .8; }
.bi .bi-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -2px 0 8px; font-size: 13px; color: var(--muted); }
.bi .bi-legend i, #bi-tip i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
#bi-tip { position: absolute; z-index: 50; pointer-events: none; opacity: 0; transition: opacity .1s; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.45; box-shadow: 0 8px 28px rgba(0,0,0,.35); display: flex; flex-direction: column; white-space: nowrap; font-variant-numeric: tabular-nums; }
#bi-tip.on { opacity: 1; }
#bi-tip b { font-weight: 600; font-size: 13px; }
#bi-tip .muted { color: var(--muted); }
.bi .bi-jobs td { vertical-align: middle; }
.bi .bi-jobs .bi-chev { color: var(--faint); width: 18px; padding-left: 0; }
.bi .bi-jobs tr.bi-open { cursor: auto; }
.bi .bi-jobs tr.bi-open:hover { background: none; }
.bi .bi-jobs tr.bi-open > td { background: var(--wash); padding: 4px 14px 14px; }
.bi .bi-jobs .chip.warn { color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.bi .bi-what { margin: 10px 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.bi .bi-what b { color: var(--ink); font-weight: 600; }
.bi .faint { color: var(--faint); }
/* Jobs taken away (2026-10-20): last and grey, their history kept. */
.bi .bi-gone, .bi .bi-jobs tr.gone { opacity: .55; }
.bi .bi-runs { display: none; color: var(--muted); }
@media (max-width: 640px) {
  .bi .bi-jobs .c-n { display: none; }
  .bi .bi-runs { display: block; margin-top: 2px; }
  .bi svg.bi-axis text.odd { display: none; }
  .bi .bi-jobs tr.bi-open > td { padding: 4px 8px 12px; }
  .bi .bi-detail .bi-kpis { grid-template-columns: 1fr 1fr; }
  .bi .bi-detail .bi-kpi b { font-size: 17px; }
}
.bi svg.bi-axis { width: 100%; display: block; overflow: visible; }
.bi svg.bi-axis text { font-size: 10.5px; fill: var(--faint); }
.bi .bi-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bi .bi-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.bi .bi-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bi .bi-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bi .bi-table tbody tr { cursor: pointer; }
.bi .bi-table tbody tr:hover { background: var(--hover); }
.bi .bi-table tr.on { background: var(--wash); }
.bi .bi-meter { display: block; height: 3px; margin: 4px 0 0 auto; border-radius: 2px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.bi .bi-meter i { display: block; height: 100%; border-radius: 2px; background: var(--ok); }
.bi .bi-meter.warn i { background: var(--orange); }
.bi .bi-meter.bad i { background: var(--danger); }
.bi .bi-days td .bi-meter { width: 72px; max-width: 100%; }
.bi .bi-days tbody tr { cursor: default; }
/* Every row in Statistik lights up under the pointer, as in Cloudflares mätare (Jan 2026-10-24). */
.bi .st-card .setrow, .bi .st-health li, .bi .bi-fresh-row, .bi .bi-event { margin-left: -8px; margin-right: -8px; padding-left: 8px; padding-right: 8px; }
.bi .st-card .setrow:hover, .bi .st-health li:hover, .bi .bi-fresh-row:hover, .bi .bi-event:hover, #bi-drill .bi-split tr:hover, #bi-drill .bi-drill-ev:hover { background: var(--hover); }
#bi-drill .bi-drill-ev { margin: 0 -6px; padding: 2px 6px; border-radius: 6px; }
.bi .bi-split tr.bi-src, .bi .bi-split tr[data-bi-others] { cursor: pointer; }
.bi .bi-split tr[data-bi-rest] td:first-child { padding-left: 14px; }
.bi .bi-split .bi-chev { color: var(--muted); }
#bi-drill .bi-items { display: flex; flex-direction: column; }
#bi-drill .bi-item { display: grid; grid-template-columns: 78px 1fr; gap: 8px; margin: 0 -6px; padding: 4px 6px; border-radius: 6px; }
#bi-drill .bi-item:hover { background: var(--hover); }
#bi-drill .bi-item a { color: var(--ink); text-decoration: none; }
#bi-drill .bi-item a:hover { text-decoration: underline; }
.bi .bi-days tfoot td { font-weight: 600; border-bottom: 0; }
/* Start (2026-10-24): Jan's own tiles. */
/* In Jan's order, gaps where he leaves them (2026-10-24: dense packing pulled a tile dragged to the bottom back up). */
.bi .bi-board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.bi .bi-droprow { margin-top: 12px; padding: 22px; border: 1px dashed var(--line); border-radius: var(--r-lg); text-align: center; color: var(--muted); font-size: 13px; }
.bi .bi-droprow.on { border-color: var(--lamp); color: var(--lamp-text); background: color-mix(in srgb, var(--lamp) 8%, transparent); }
/* A text tile's text as a measure's caption ("i dag · av 10 000 …"), Jan 2026-10-24; its heading as the others'. */
/* A ready part with its own title shows that title only, not its built-in heading too. */
.bi .bi-tile.titled > .bi-tile-body > h3:first-child { display: none; }
/* A second heading inside a card gets air above it. */
.bi .st-card h3.bi-sub { margin-top: 22px; }
.bi .bi-text p { margin: 0 0 6px; color: var(--faint); font-size: 13px; line-height: 1.45; }
.bi .bi-fresh { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0 44px; }
.bi .bi-fresh-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; padding: 9px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.bi .bi-fresh-row b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi .bi-fresh-row small { grid-column: 2 / -1; color: var(--muted); font-size: var(--fs-eye); line-height: 1.35; }
.bi .bi-fresh-dot { grid-row: 1; width: 8px; height: 8px; border-radius: 50%; align-self: center; background: var(--faint); opacity: .5; }
.bi .bi-fresh-dot.ok { background: var(--ok); opacity: 1; }
.bi .bi-fresh-dot.late { background: var(--orange, #d9822b); opacity: 1; }
.bi .bi-fresh-sum { margin: 0 0 4px; font-size: 13px; }
.bi .bi-fresh-sum .ok { color: var(--ok); }
.bi .bi-fresh-sum .late { color: var(--orange, #d9822b); }
.bi .bi-fresh-at { font-variant-numeric: tabular-nums; color: var(--muted); }
.bi .bi-fresh-row.late .bi-fresh-at { color: var(--orange, #d9822b); font-weight: 600; }
.bi .bi-text p:last-child { margin-bottom: 0; }
.bi .bi-props textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: var(--fs-body); line-height: 1.5; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); resize: vertical; }
.bi .bi-tile { background: var(--surface); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bi .bi-tile.w-2 { grid-column: span 2; } .bi .bi-tile.w-3 { grid-column: span 3; } .bi .bi-tile.w-4 { grid-column: span 4; }
.bi .bi-tile.w-5 { grid-column: span 5; } .bi .bi-tile.w-6 { grid-column: span 6; } .bi .bi-tile.w-7 { grid-column: span 7; }
.bi .bi-tile.w-8 { grid-column: span 8; } .bi .bi-tile.w-9 { grid-column: span 9; } .bi .bi-tile.w-10 { grid-column: span 10; }
.bi .bi-tile.w-11 { grid-column: span 11; } .bi .bi-tile.w-12 { grid-column: span 12; }
/* Height (Låg, Normal, Hög): charts draw to it; long tables and lists scroll within it. */
.bi .bi-tile.h-s .bi-tile-body { max-height: 260px; overflow: auto; }
.bi .bi-tile.h-m .bi-tile-body { max-height: 520px; overflow: auto; }
/* A ready part brings its own cards (2026-10-24): the tile is only its place on the page. */
.bi .bi-tile.part { background: none; padding: 0; }
.bi .bi-tile.part.editing { padding: 10px; }
.bi .bi-tile.part .bi-tile-body > .st-card, .bi .bi-tile.part .bi-tile-body > .bi-hero, .bi .bi-tile.part .bi-tile-body > .bi-kpis, .bi .bi-tile.part .bi-tile-body > .bi-costs { margin: 0; }
.bi .bi-tile.part .bi-tile-body, .bi .bi-tile.part .bi-tile-body > .bi-hero { flex: 1; box-sizing: border-box; }
.bi .bi-edit { margin-left: auto; display: flex; gap: 8px; }
.bi .bi-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bi .bi-addpage { border: 1px dashed var(--line); background: none; color: var(--muted); font: inherit; font-size: 16px; font-weight: 600; border-radius: 8px; padding: 2px 10px; cursor: pointer; white-space: nowrap; }
.bi .bi-wfilters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.bi .bi-wfilters select, .bi .bi-wfilters input { font: inherit; font-size: 13px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); }
.bi-bank-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.bi-bank-list button { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.bi-bank-list button:hover { border-color: var(--lamp); }
.bi-bank-list button b { font-size: var(--fs-body); }
.bi-bank-list button span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.bi .bi-tile h3 { margin: 0 0 4px; font-size: var(--fs-eye); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.bi .bi-tile h3 .bi-i { font-size: var(--fs-eye); color: var(--faint); letter-spacing: 0; }
.bi .bi-note { margin: 0 0 6px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.bi .bi-tile-body > span { color: var(--faint); font-size: 13px; }
.bi .bi-big { font-size: 28px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.bi .bi-big.warn { color: var(--orange); }
.bi .bi-big.bad { color: var(--danger); }
.bi .bi-tile-body > .bi-meter { height: 6px; margin: 6px 0 2px; }
.bi .bi-diff { font-size: 13px; font-weight: 600; }
.bi .bi-diff.up { color: var(--ok); }
.bi .bi-diff.down { color: var(--orange); }
.bi .bi-tile p.small { margin: 8px 0 0; }
.bi .bi-tile.editing { outline: 1px dashed var(--line-strong, var(--line)); cursor: grab; }
/* While arranging, a long part is cut short so the page stays easy to move around in. */
.bi .bi-tile.editing .bi-tile-body { pointer-events: none; }
.bi .bi-tile.part.editing .bi-tile-body { max-height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.bi .bi-tile.part.editing.h-s .bi-tile-body { max-height: 160px; }
.bi .bi-tile-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
@media (max-width: 640px) {
  .bi .bi-board { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bi .bi-tile { padding: 12px; }
  .bi .bi-big { font-size: 22px; }
  .bi .bi-days td, .bi .bi-days th { padding-left: 4px; padding-right: 4px; }
  .bi .bi-days td:first-child { white-space: nowrap; }
}
.bi .bi-table tr.bad td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
/* Nyhetskörningar (2026-11-07): a table like Macen's. */
.bi .bi-nsum { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.bi .bi-nsum b { color: var(--ink); }
.bi .bi-news tbody tr { cursor: default; }
.bi .bi-news .bi-nn { color: var(--ok); font-weight: 700; width: 1%; }
.bi .bi-news .bi-npap { max-width: 0; width: 100%; }
.bi .bi-news .bi-npap > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi .bi-news .bi-npap b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bi .bi-news .bi-npap i { font-style: normal; color: var(--faint); margin: 0 6px; }
.bi .bi-news .bi-npap small { display: block; font-size: 12px; margin-top: 2px; }
/* Statistik › Macen (2026-11-07): kinds as buttons, runs by day. */
.bi .bi-kpi.good b { color: var(--ok); }
.bi .bi-kpi em { font-style: normal; }
.bi .bi-machead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.bi .bi-machead h3 { margin: 0; }
.bi .bi-aiview button { font-size: 13px; padding: 4px 10px; }
.bi .bi-jobs tr.bi-aday td { padding-top: 7px; padding-bottom: 7px; }
.bi .bi-jobs tr.bi-aday small { margin-left: 6px; }
.bi .bi-jobs tr.bi-amore td { padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
.bi .bi-macq { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); width: 200px; }
.bi .bi-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.bi .bi-kind { font: inherit; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.bi .bi-kind span { color: var(--faint); font-weight: 500; margin-left: 2px; font-variant-numeric: tabular-nums; }
.bi .bi-kind:hover { color: var(--ink); background: var(--hover); }
.bi .bi-kind.on { background: var(--wash); border-color: var(--lamp); color: var(--lamp-text); }
.bi .bi-kind.on span { color: inherit; }
.bi .bi-kind.bad { margin-left: auto; }
.bi .bi-kind.bad.on { background: color-mix(in srgb, var(--orange) 14%, transparent); border-color: var(--orange); color: var(--orange); }
.bi .bi-table tr.bi-mday { cursor: default; }
.bi .bi-table tr.bi-mday:hover { background: none; }
.bi .bi-table tr.bi-mday td { padding: 18px 8px 6px; border-bottom: 1px solid var(--line); }
.bi .bi-table tbody tr.bi-mday:first-child td { padding-top: 8px; }
.bi .bi-table tr.bi-mday b { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.bi .bi-table tr.bi-mday span { color: var(--faint); font-size: 13px; margin-left: 10px; }
.bi .bi-table tr.bi-mday em { font-style: normal; color: var(--orange); }
.bi .bi-mac .bi-mtime { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; width: 52px; }
.bi .bi-mac .bi-mtype { color: var(--muted); white-space: nowrap; width: 1%; padding-right: 14px; }
.bi .bi-mac .bi-mtitle { max-width: 0; width: 100%; }
.bi .bi-mac .bi-mtitle > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi .bi-mac .bi-merr { display: block; color: var(--orange); margin-top: 3px; }
@media (max-width: 640px) {
  .bi .bi-mac .c-n, .bi .bi-mac .bi-mtype { display: none; }
  .bi .bi-macq { width: 140px; }
  .bi .bi-kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -4px; }
  .bi .bi-kind { flex: none; }
  .bi .bi-jobs tr.bi-aday small.muted { display: none; }
  .bi .bi-kind.bad { margin-left: 0; }
}
.bi .bi-detail h4 { margin: 16px 0 6px; font-size: 13px; color: var(--muted); }
.bi .bi-pre { white-space: pre-wrap; word-break: break-word; background: var(--raised); border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; max-height: 320px; overflow: auto; }
.bi .bi-list { margin: 0; padding-left: 18px; font-size: 13px; }
@media (max-width: 640px) { .bi .bi-table:not(.bi-jobs):not(.bi-gw):not(.bi-days) th:nth-child(4), .bi .bi-table:not(.bi-jobs):not(.bi-gw):not(.bi-days) td:nth-child(4), .bi .bi-table:not(.bi-jobs):not(.bi-gw):not(.bi-days) th:nth-child(5), .bi .bi-table:not(.bi-jobs):not(.bi-gw):not(.bi-days) td:nth-child(5) { display: none; } }
.bi .bi-event { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.bi .bi-event:first-of-type { border-top: 0; }
.bi .bi-event[data-bi-goto-run] { cursor: pointer; }
.bi .bi-event > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bi .bi-event b { color: var(--ink); font-size: 15px; }
.bi .bi-event small { color: var(--muted); font-size: 13px; }
.bi .bi-etype { flex: none; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.bi .bi-etype.t-ref { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }
.bi .bi-etype.t-fail { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.bi .bi-etype.t-info { background: var(--wash); color: var(--lamp-text); }
.bi .bi-kpi b a { color: inherit; text-decoration: none; }
.bi .bi-table tr.bi-open { cursor: default; background: var(--raised); }
.bi .bi-table tr.bi-open:hover { background: var(--raised); }
.bi .bi-table tr.bi-open > td { padding: 12px 14px 16px; }
.bi #bi-body .manage-head { display: none; }
.bi #bi-body > .manage { padding: 0; }
@media (max-width: 640px) {
  /* The page's margin (36 px) and the statistics' own (28 px) added up to 64 px a side on a phone (Safari, 2026-10-19). */
  .setpage.place .setbody:not(.wide) { padding: 16px 16px 48px; }
  .setbody .manage.bi { padding-left: 0; padding-right: 0; padding-top: 0; }
  .bi .bi-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bi .bi-tabs::-webkit-scrollbar { display: none; }
  .bi .bi-tabs a { white-space: nowrap; padding: 9px 11px; }
  .bi .bi-filters .seg { max-width: 100%; overflow-x: auto; }
  .bi .bi-filters .seg button { white-space: nowrap; }
  .bi .bi-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bi .bi-kpi { padding: 10px 12px; }
  .bi .bi-kpi b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bi .bi-kpi small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Kostnader (2026-10-19): one sum at the top, a card per service, details folded away. */
.bi .bi-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--lamp) 16%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.bi .bi-hero small { color: var(--muted); font-weight: 600; font-size: 13px; }
.bi .bi-hero b { font-size: 28px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bi .bi-hero span { color: var(--muted); font-size: 13px; }
.bi .bi-costs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0 0 14px; }
.bi .bi-cost { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.bi .bi-cost small { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.bi .bi-cost b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bi .bi-cost b i { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 500; }
.bi .bi-cost span { color: var(--faint); font-size: 13px; line-height: 1.4; }
.bi .bi-cost em { font-style: normal; color: var(--lamp-text); font-size: 13px; font-weight: 600; }
.bi .bi-cost.warn { border-color: color-mix(in srgb, var(--orange) 55%, transparent); }
.bi .bi-cost.warn em { color: var(--orange); }
.bi .bi-cost.good b { color: var(--ok); }
.bi details.bi-more { margin: 6px 0 20px; }
.bi details.bi-more > summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; padding: 10px 0; }
@media (max-width: 640px) { .bi .bi-hero b { font-size: 28px; } .bi .bi-costs { grid-template-columns: 1fr; } }
.bi .bi-hero b i { font-style: normal; font-size: 15px; color: var(--muted); font-weight: 500; }
.bi .bi-hero.warn { border-color: color-mix(in srgb, var(--orange) 55%, transparent); }
.bi .bi-hero .st-bar { height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; margin: 4px 0 2px; }
.bi .bi-hero .st-bar i { display: block; height: 100%; }
/* Läget on Idag (2026-10-20): its line inside a card. */
.u-edinline { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.u-edinline a { font-size: 13px; color: var(--muted); text-decoration: none; }
.u-edinline a b { color: var(--lamp-text); letter-spacing: .06em; font-size: 12px; margin-right: 4px; }
.u-edinline strong { color: var(--lamp-text); }
.u-edfoot { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
/* Vidga vyn (styled 2026-10-20, as VidgaViews.swift): a head, parts with a symbol and colour, a hero bubble,
   the opinion pages as quotes in their papers' colours, long reads as cards on the paper tone. */
.vv-part { margin: 0 0 34px; }
.vv-ph { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; }
.vv-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--vt); background: color-mix(in srgb, var(--vt) 14%, transparent); flex: none; }
.vv-ic .svg { width: 16px; height: 16px; }
.vv-ph h3 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.vv-ph p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.vv-empty { padding: 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--faint) 45%, transparent); color: var(--muted); font-size: 15px; }
.vv-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: 16px; padding: 14px 16px; margin: 0 0 12px; color: var(--ink); text-decoration: none; overflow: hidden; }
.vv-t { font-family: var(--serif); font-size: 17px; line-height: 1.3; font-weight: 600; }
.vv-card p { margin: 0; color: var(--muted); font-size: 15px; }
.vv-bubble.vv-pic { flex-direction: row; gap: 14px; align-items: flex-start; }
.vv-bubble.vv-pic > img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; flex: none; }
.vv-bubble.vv-hero { padding: 0; }
.vv-bubble.vv-hero > img { width: 100%; height: 240px; object-fit: cover; display: block; }
.vv-bubble.vv-hero .vv-body { padding: 16px; }
.vv-bubble.vv-hero .vv-t { font-size: 20px; }
.vv-bubble.vv-compact.vv-pic > img { width: 64px; height: 64px; }
.vv-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vv-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vv-chips i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--bookmark); background: color-mix(in srgb, var(--bookmark) 13%, transparent); padding: 2px 8px; border-radius: 999px; }
.vv-chips small { color: var(--faint); font-size: 12px; }
.vv-srcs { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.vv-src a { font-size: 13px; color: var(--lamp-text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.vv-src em { font-style: normal; font-weight: 600; color: var(--muted); margin-right: 6px; }
.vv-led { display: flex; flex-direction: column; gap: 10px; }
.vv-led a { text-decoration: none; color: var(--ink); }
.vv-led span { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--lc); padding-left: 10px; }
.vv-led b { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: color-mix(in srgb, var(--lc) 60%, var(--ink)); }
.vv-led q { font-family: var(--serif); font-style: italic; font-size: 15px; quotes: none; }
.vv-led q::before { content: '”'; } .vv-led q::after { content: '”'; }
.vv-longs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vv-long { display: flex; flex-direction: column; gap: 8px; min-height: 190px; padding: 14px; border-radius: 16px; background: var(--ai-surface, var(--raised)); color: var(--ink); text-decoration: none; }
.vv-long small { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--ok); }
.vv-long .vv-t { font-size: 17px; }
.vv-long p { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vv-long em { margin-top: auto; font-style: normal; font-size: 12px; color: var(--lamp-text); }
@media (max-width: 760px) { .vv-longs { grid-template-columns: 1fr; } .vv-bubble.vv-hero > img { height: 180px; } .vv-bubble.vv-pic > img { width: 72px; height: 72px; } }
.vv-op { margin: 10px 0 0; }
.vv-h { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--lamp-text); margin-bottom: 6px; }
.disc-top .seg.disc-seg { flex: 0 0 auto; margin: 0; min-width: 260px; }
@media (max-width: 900px) { .disc-top { flex-wrap: wrap; } .disc-top .seg.disc-seg { flex: 1 1 100%; } }

/* MARK: Design system 2026-10-20 (docs/designforslag-2026-10-20.md)
   The Mac sidebar's calm everywhere: calm text, colour only where it means something, rules before fills.
   One page head (.t-mast / pageHead()), two section heads (label with a rule, serif title), one card,
   one pill, text tags. These rules come last so they win over the older ones above. */
@media (max-width: 640px) { :root { --fs-title: 32px; --page-m: 16px; } .manage { padding-inline: var(--page-m); } }

/* The page head. */
.t-mast .t-band { font-size: var(--fs-eye); letter-spacing: .06em; min-height: 36px; padding: 6px 0; border-bottom: .5px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.t-mast .t-band > span:first-child { display: inline-flex; align-items: center; gap: var(--s2); }
/* Dagens namn (2026-10-31): quiet beside the date, not in capitals. */
.t-mast .u-nameday { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: inherit; }
.t-mast h1 { font-family: var(--serif); font-size: var(--fs-title); line-height: 1.1; letter-spacing: -.5px; margin: 18px 0 0; }
.t-mast > p { font-family: var(--serif); font-size: var(--ingress); line-height: 1.4; color: var(--muted); margin: var(--s2) 0 0; }

@media (max-width: 520px) { .t-mast h1 { font-size: var(--fs-title); } .t-mast > p { font-size: var(--ingress); } }
.page-head { margin: 0 0 var(--s4); }
.page-head.sans h1 { font-family: inherit; }
.page-head > .hb { margin-bottom: var(--s2); }
.ph-tools { display: inline-flex; gap: var(--s3); align-items: center; text-transform: none; letter-spacing: 0; }
.ph-tools .linkbtn { font-size: var(--fs-meta); font-weight: 600; }
.today-in, .news-in, .ov-in { padding: var(--page-m) var(--page-m) 60px; }
@media (max-width: 760px) { .today-in, .news-in, .ov-in { padding: var(--page-m) var(--page-m) 40px; } }

/* Upptäck: the head, then the picker, then the parts. */
.disc-top { flex-direction: column; align-items: stretch; gap: var(--s3); padding: var(--page-m) var(--page-m) var(--s3); border-bottom: 0; }
.disc-top .page-head { margin: 0; }
.disc-top .seg.disc-seg, .disc-sites > .seg.disc-seg { flex: 0 0 auto; width: auto; max-width: 360px; margin: 0 0 var(--s6); }
.disc-top .seg.disc-seg { margin: 0; }
.disc-sites { padding: var(--page-m) var(--page-m) 60px; }
.disc-top + .disc-sites { padding-top: var(--s3); }
@media (max-width: 760px) { .disc-top, .disc-sites { padding-left: var(--page-m); padding-right: var(--page-m); } }

/* Källor: a tool page, the compact sans head. */
.sp-head { padding: var(--s4) var(--page-m) var(--s3); }
.sp-title h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }

/* Section heads: a serif title, or a label (small capitals) with a rule above on the page. */
.ov-sec { margin-top: var(--s6); }
.ov-sec h2, .vv-ph h3 { font-family: var(--serif); font-size: var(--fs-h2); font-weight: 600; margin: 0 0 var(--s3); }
.vv-ph { gap: var(--s2); margin: 0 0 var(--s3); }
.vv-ph h3 { margin: 0; }
.vv-ph p { font-size: var(--fs-meta); }
.vv-ic { width: auto; height: auto; background: none; }
.vv-part { margin: 0 0 var(--s6); }
.colhead { border-top: 1.5px solid color-mix(in srgb, var(--ink) 85%, transparent); padding-top: var(--s2); margin: 0 0 var(--s2); font-size: var(--fs-eye); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.u-bhead span, .group-h, .t-head .t-eyebrow { font-size: var(--fs-eye); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.u-bhead a { font-size: var(--fs-meta); }

/* Text steps on cards and news. */
.vv-t { font-family: var(--serif); font-size: var(--fs-news); }
.vv-hero .vv-t { font-size: 20px; }
.vv-led q { font-family: var(--serif); }
.vv-chips i { background: none; padding: 0; font-size: var(--fs-eye); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.vv-chips i + i::before { content: "· "; color: var(--bookmark); }
.vv-chips small { font-size: var(--fs-meta); }

/* One card: radius 16, padding 16, no border. */
.vv-card, .vv-long, .st-card, .u-block { border-radius: var(--r-lg); }
.vv-card:not(.vv-hero) > .vv-body, .vv-long { padding: var(--s4); }
.st-card { border: 0; padding: var(--s4); background: var(--surface); }
.st-card h3 { font-size: var(--fs-eye); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vv-empty { border-radius: var(--r-md); }

/* One pill: a capsule, 12 medium, a hairline; prominent is filled with the lamp. */
.soft, .btn, .primary { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font: 500 13px/1.3 inherit;
  border: .5px solid color-mix(in srgb, var(--ink) 10%, transparent); background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); cursor: pointer; }
.soft:hover, .btn:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.soft .svg, .btn .svg { width: 12px; height: 12px; }
.soft.prominent, .btn.lamp, .primary { background: var(--lamp); border-color: transparent; color: var(--on-lamp); font-weight: 600; }
.soft.prominent:hover, .btn.lamp:hover, .primary:hover:not(:disabled) { filter: brightness(1.08); background: var(--lamp); }
.btn:disabled, .soft:disabled { opacity: .5; cursor: default; }

/* Tags: small capitals in their colour, not filled; only on a picture (.t-badge) a tag keeps its fill. */
/* Källor: the figures and chips on the page margin, the hero title on step 2, as in the app. */
.sp-cards, .sp-topics { padding-left: var(--page-m); padding-right: var(--page-m); }
.sp-hero h1 { font-family: var(--serif); font-size: var(--fs-h2); font-weight: 600; }
.sp-hero .tdate { font-size: var(--fs-eye); font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.sp-head .more summary.soft, .more summary.soft { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; }
/* Ämnen: one tint per tile, no frame; tags as text (as TopicTile in the app). */
.tt { border: 0; border-radius: var(--r-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--t) 16%, transparent), color-mix(in srgb, var(--t) 4%, transparent)); }
.tt.ready { border: 0; }
.tt b { font-size: var(--fs-card); }
/* Idag: air under the head; the section labels as small capitals. */
.today-in .t-mast { margin-bottom: var(--s5); }
.t-sec > .t-eyebrow { font-size: var(--fs-eye); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.t-sec h2 { font-family: var(--serif); font-size: var(--fs-h2); font-weight: 600; }
.t-sec .t-lead h2 { font-size: var(--fs-display); font-weight: 700; }
/* Vidga vyn on Idag: the papers on one line. */
.vv-compact .vv-chips { display: block; }
.vv-compact .vv-chips small { display: block; margin-top: 2px; }
.t-band .hb { margin-left: -8px; }
/* The band keeps to one line; on a phone the tools shrink to their symbols. */
.t-mast .t-band { flex-wrap: nowrap; }
.t-mast .t-band > span:first-child { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.t-mast .t-band > span:first-child > .hb { flex: none; }
@media (max-width: 520px) {
  .n-mast .t-band .soft { padding: 5px 8px; font-size: 0; gap: 0; }
  .n-mast .t-band .soft .svg { width: 13px; height: 13px; }
  .news-in .nreview { flex-direction: column; align-items: flex-start; gap: var(--s2); }
}
/* Tool pages (Inställningar, Statistik): the compact sans title, as Källor. */
.setbody h2, .manage-head h2 { font-size: 32px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
/* Ljud as the second part of Videor och ljud (2026-11-11): a part heading under a rule, not a page title. */
.setbody .aud-h { font-size: 22px; margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.setpage.place .setbody:not(.wide) { padding: var(--page-m) var(--page-m) 60px; }
/* Inställningar › Smarta listor: words and conditions, one per line (2026-10-20). */
.smart-form { display: grid; gap: var(--s2); }
.smart-form label { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: var(--s3); font-size: 13px; color: var(--muted); }
.smart-form input, .smart-form select { width: 100%; }
/* The same fields as Regler (.setform) on every settings form (design rest 2026-11-01: Smarta listor had the
   browser's own fields and menus), and the app's switch for a yes/no in a settings row (Bevakningar). */
.smart-form input, .smart-form select { padding: 7px 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ground); color: var(--ink); font: inherit; font-size: 15px; }
.setform select, .smart-form select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.setform input:focus, .setform select:focus, .smart-form input:focus, .smart-form select:focus { outline: none; border-color: color-mix(in srgb, var(--lamp) 70%, transparent); }
.setform input::placeholder, .smart-form input::placeholder { color: var(--faint); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--lamp); }
.setrow > input[type="checkbox"] { appearance: none; -webkit-appearance: none; position: relative; margin: 0 0 0 auto; width: 32px; height: 19px; border-radius: 999px;
  background: var(--raised); border: 1px solid var(--line); flex: none; cursor: pointer; transition: background .15s; }
.setrow > input[type="checkbox"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.setrow > input[type="checkbox"]:checked { background: var(--lamp); border-color: var(--lamp); }
.setrow > input[type="checkbox"]:checked::after { transform: translateX(13px); background: var(--on-lamp); }
label.setrow { cursor: pointer; }
@media (max-width: 520px) { .smart-form label { grid-template-columns: 1fr; gap: 4px; } }
/* Nyhetens tidslinje (2026-10-21): what happened in order, a dot per step on a thin line. */
.ntimeline .ntl { display: grid; grid-template-columns: 58px 10px 1fr; gap: 10px; color: var(--ink); text-decoration: none; }
.ntimeline .ntl .when { text-align: right; font-size: var(--fs-meta); color: var(--faint); font-variant-numeric: tabular-nums; line-height: 1.35; }
.ntimeline .ntl .when b { display: block; color: var(--muted); font-weight: 600; }
.ntimeline .ntl i { position: relative; }
.ntimeline .ntl i::before { content: ""; position: absolute; left: 1px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.ntimeline .ntl:not(.last) i::after { content: ""; position: absolute; left: 4.5px; top: 14px; bottom: -4px; width: 1.5px; background: color-mix(in srgb, var(--faint) 40%, transparent); }
.ntimeline .ntl.last i::before, .ntimeline .ntl.last .when b { background: var(--news); color: var(--news-text); }
.ntimeline .ntl.last .when b { background: none; }
.ntimeline .ntl .what { display: flex; flex-direction: column; gap: 3px; padding-bottom: 12px; }
.ntimeline .ntl .t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.ntimeline .ntl:hover .t { color: var(--lamp-text); }
.ntimeline .ntl .m { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-meta); color: var(--muted); }

/* Inställningar › Genvägar på Idag (2026-10-22): the same rows as the apps, a tile, the name, a switch. */
.sc-row { justify-content: flex-start; }
.sc-row .switch { margin-left: auto; cursor: pointer; padding: 0; }
.sc-move { display: inline-flex; gap: 2px; min-width: 44px; }
.sc-move .link { padding: 2px; line-height: 0; color: var(--muted); }
.sc-move .link:disabled { opacity: .3; }
.sc-move .link svg { width: 15px; height: 15px; }
.sc-tile { width: 28px; height: 28px; border-radius: 8px; background: var(--tint); display: grid; place-items: center; flex: none; }
.sc-tile svg { width: 15px; height: 15px; }
.sc-name { flex: 1; min-width: 0; }
/* Inställningar › Handbok: the three parts from docs/bygg-pdf.py, in the page's own type. */
.handbook { font-size: 15px; line-height: 1.6; }
.handbook h1 { font-family: var(--serif); font-size: 28px; margin: 18px 0 10px; }
.handbook h2 { font-size: 17px; margin: 22px 0 8px; }
.handbook h3 { font-size: 15px; margin: 16px 0 6px; }
.handbook table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0 14px; display: block; overflow-x: auto; }
.handbook th, .handbook td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.handbook th { color: var(--muted); font-weight: 600; }
.handbook code { font-size: 13px; background: var(--raised); padding: 1px 4px; border-radius: 4px; }
.handbook pre { background: var(--raised); padding: 10px; border-radius: 8px; overflow-x: auto; font-size: 13px; }

/* Om Läsrum (2026-11-01): one row per part or service, rules between. */
.om-list { padding-top: 4px; padding-bottom: 4px; }
.om-row { padding: 12px 0; border-top: 1px solid var(--line); }
.om-row:first-child { border-top: 0; }
.om-row h3 { margin: 0 0 4px; }
.om-row p { margin: 4px 0 0; }
.om-cost b, .om-links b { color: var(--muted); font-weight: 600; margin-right: 4px; }
.om-links { line-height: 1.7; }
/* PDF:er i Läsrums egen visare (2026-10-22). */
.pdfview { position: absolute; inset: 52px 0 0 0; display: flex; flex-direction: column; }
.pdfbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 16px; font-size: 13px; border-bottom: 1px solid var(--line); }
.pdfbody { flex: 1; display: flex; min-height: 0; }
.pdfpages { flex: 1; overflow-y: auto; padding: 16px 0 40px; background: var(--raised); }
.pdfbar-r { display: flex; align-items: center; gap: 14px; }
.pdfbar-r .linkbtn { display: inline-flex; align-items: center; gap: 5px; }
.pdfbar-r .linkbtn svg { width: 14px; height: 14px; }
/* Bookmarks and notes on a PDF's pages (2026-10-24): a column beside the pages, under them on a narrow screen. */
.pdfnotes { width: 300px; flex: none; overflow-y: auto; padding: 14px 16px; border-left: 1px solid var(--line); background: var(--ground); display: flex; flex-direction: column; gap: 10px; }
.pdfnotes[hidden] { display: none; }
.pn-head { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-body); }
.pn-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pn-acts button { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.pn-acts svg { width: 14px; height: 14px; }
.pn-add { display: flex; flex-direction: column; gap: 6px; }
.pn-add textarea { font: inherit; font-size: var(--fs-body); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); resize: vertical; }
.pn-add div { display: flex; justify-content: space-between; }
.pn-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; cursor: pointer; }
.pn-row:hover { background: var(--raised); }
.pn-row.here { background: color-mix(in srgb, var(--lamp) 12%, transparent); }
.pn-ic { color: var(--lamp-text); width: 16px; flex: none; }
.pn-ic svg { width: 14px; height: 14px; }
.pn-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-body); }
.pn-t small { color: var(--muted); font-weight: 600; font-size: 12px; }
.pn-row.here .pn-t small { color: var(--lamp-text); }
.pn-del { opacity: .5; font-size: 12px; }
.pn-del:hover { opacity: 1; }
@media (max-width: 760px) { .pdfbody { flex-direction: column; } .pdfnotes { width: auto; max-height: 40%; border-left: 0; border-top: 1px solid var(--line); } .pdfbar-r a.link { display: none; } }
.pdfpage { margin: 0 auto 14px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.pdfpage canvas { display: block; width: 100%; height: auto; }
/* Apple Pencil drawings from the iPad over the page (2026-10-30): vectors, sharp at any size. */
.pdfpage { position: relative; }
.pdfink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pdfink polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pdfink .marker { mix-blend-mode: multiply; }
.pdfpages iframe { width: 100%; height: 100%; border: 0; }
/* Nyheter by keyboard (2026-10-22): the story J/K is on. */
.kbd-on { outline: 2px solid var(--lamp); outline-offset: 4px; border-radius: 8px; }

/* A note written in the reader (2026-10-22). */
.note-pop { padding: 10px; width: 320px; }
.note-edit textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: inherit; resize: vertical; }
.note-edit-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.note-pop.wide { width: 380px; max-height: 70vh; overflow-y: auto; }
.np-item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.np-item blockquote { margin: 0 0 4px; padding-left: 10px; border-left: 3px solid var(--lamp); font-size: 13px; color: var(--muted); }
.np-item p { margin: 0 0 4px; font-size: 15px; }
.np-acts { display: flex; gap: 14px; font-size: 13px; }
.np-foot { display: flex; justify-content: flex-end; padding-top: 10px; }

/* Upptäck: two ways to get suggestions side by side (2026-10-22). */
.ds-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ds-btns svg { width: 14px; height: 14px; vertical-align: -2px; }

/* Källor: the newest week, which the number counts, stronger than the seven before it (2026-10-22). */
.spark i:not(.now):not(.z) { opacity: .45; }

/* Senaste: a row opened to its ingress (2026-10-22). */
.nrow .ntoggle { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font-family: inherit; }
.nrow .ntoggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.nrow .nexp { margin: 8px 0 6px; }
.nrow .nexp > p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.nrow .nexplink { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--accent-text, var(--accent)); text-decoration: none; }

/* Idag: Alla Läget and Alla Samlat side by side (2026-10-22). */
.u-bhead .u-links { display: inline-flex; gap: 12px; font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.u-bhead .u-links a { text-transform: none; letter-spacing: 0; }

/* Idag's right column (Jan 2026-10-22): Vidga
   vyn's bubble and long reads are rows in their block, not cards in a card with padding twice over. */

.u-block .vv-card.vv-compact { background: none; padding: 0; margin: 0 0 14px; border-radius: 0; }
.u-block .vv-card.vv-compact > .vv-body { padding: 0; }
.u-block .vv-compact .vv-t { font-size: 15px; line-height: 1.3; }
.u-edinline strong { white-space: nowrap; }
.u-block .vv-compact.vv-pic > img { width: 60px; height: 60px; border-radius: 10px; }
.u-block .vv-longs .vv-long { background: none; min-height: 0; padding: 12px 0 0; border-radius: 0; border-top: 1px solid var(--line); }



/* One page head everywhere (design pass 3, 2026-10-23): the tool pages (Inställningar, Statistik, Källor) keep the
   sans title but get the same rule and label row above it as Idag, Nyheter, Ämnen and Upptäck. */
/* No label row above the tool pages' title (Jan 2026-10-24: neither Läsrum nor Inställningar). */
.sp-head { flex-wrap: wrap; }

/* Weights for the former serif places, now the sans (Jan 2026-10-23): bold for a page's name, semibold for
   headlines, cards and sections. */
.t-mast h1, .list-head h1, .sj-head h1, .handbook h1 { font-weight: 700; }
.lead h2, .stitle, .nfeed h3, .vv-ph h3, .vv-t, .ov-sec h2, .sp-hero h1,
.t-sec h2, .sline .stitle { font-weight: 600; }
/* Settings group headings, one kind on every page (2026-10-23): "Egna listor" was 17 bold beside the letter page's
   capitals. Both are the label now, as the headings inside the cards. */
.setbody > h3, .setbody .lt-h { margin: var(--s5) 0 var(--s2); font-size: var(--fs-eye); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); }
/* Motion (2026-10-23, Jan: the web should feel as crisp as the apps). A press gives way, the reader pane fades in on a
   change of view, menus grow out of their button; all off under reduced motion. Short and on the same curve. */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: no-preference) {
  button, a.item, .art, a.t-lead, .pchip, .seg button, .disc-card, .vv-bubble, .st-card {
    transition: transform .14s var(--ease-out), background-color .16s, color .16s, border-color .16s, opacity .16s, box-shadow .16s;
  }
  button:active:not(:disabled), a.item:active, .pchip:active, .seg button:active { transform: scale(.96); }
  .art:active, a.t-lead:active, .disc-card:active, .vv-bubble:active { transform: scale(.99); }
  #reader.enter > * { animation: lr-enter .26s var(--ease-out) both; }
  .pop { animation: lr-pop .16s var(--ease-out) both; transform-origin: top; }
}
@keyframes lr-enter { from { opacity: 0; transform: translateY(6px); } }
@keyframes lr-pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
/* The glide behind a segmented control (glideSeg in app.js): the chosen look moves to the pill, which slides. */
.seg, .nmodes { position: relative; }
.seg > button, .nmodes > button { position: relative; z-index: 1; }
.seg-glide { position: absolute; left: 0; top: 0; z-index: 0; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
  box-sizing: border-box; pointer-events: none; transition: transform .28s var(--ease-out), width .28s var(--ease-out); }
.seg.glides > button.on, .nmodes.glides > button.on { background: transparent; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .seg-glide { transition: none; } }

/* Upptäck in a centred column, as in the apps (VidgaViews: at most 940, centred; Jan 2026-10-23). */
.disc-sites > *, .disc-top > * { max-width: 940px; margin-left: auto; margin-right: auto; width: 100%; box-sizing: border-box; }
.disc-top .seg.disc-seg, .disc-sites > .seg.disc-seg { margin-left: max(0px, calc((100% - 940px) / 2)); width: auto; }
.disc .disc-top > .page-head { margin-left: auto; margin-right: auto; }

/* Logg (2026-10-24): the technical part of a refusal folded away. */
.bi .bi-tech { margin-top: 2px; }
.bi .bi-tech summary { font-size: 12px; color: var(--faint); cursor: pointer; }
.bi .bi-tech small { display: block; word-break: break-word; color: var(--faint); }

/* Steg 3 (2026-10-24): a split shown as a list with its colours. */
/* The cells stay table cells, so each row's rule runs straight across (Jan 2026-10-24). */
.bi .bi-split td { vertical-align: middle; }
.bi .bi-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.bi .bi-split .bi-meter i { opacity: .9; }

/* The editor (2026-10-24, "som ett riktigt BI-verktyg"): the page as a canvas, the chosen tile's settings and the
   bank in a panel beside it, tiles dragged into place and made wider by their right edge. */
.bi #bi-body, .bi .bi-canvas { container-type: inline-size; }
/* Narrow (a phone, or the canvas beside the panel on a small screen): two columns; up to half stays half. */
@container (max-width: 640px) {
  .bi .bi-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bi .bi-tile[class*=" w-"] { grid-column: span 1; }
  .bi .bi-tile.w-7, .bi .bi-tile.w-8, .bi .bi-tile.w-9, .bi .bi-tile.w-10, .bi .bi-tile.w-11, .bi .bi-tile.w-12 { grid-column: 1 / -1; }
}
.bi .bi-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.bi .bi-canvas { min-height: 300px; padding: 10px; border-radius: var(--r-lg); background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), color-mix(in srgb, var(--ink) 5%, transparent) calc(25% - 1px) 25%); outline: 1px dashed var(--line); }
/* The page scrolls in #setbody; .manage's own overflow made the panel stick to a box that never scrolls (2026-10-24). */
.setbody .manage.bi { overflow: visible; }
.bi .bi-panel { position: sticky; top: 12px; max-height: calc(100vh - 40px); overflow: auto; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.bi .bi-ptabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.bi .bi-ptabs button { flex: 1; border: 0; background: none; padding: 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.bi .bi-ptabs button.on { color: var(--ink); border-bottom-color: var(--lamp); }
.bi .bi-ptabs button:disabled { opacity: .45; cursor: default; }
.bi .bi-props { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.bi .bi-props p.small { margin: 0; }
.bi .bi-props h4 { margin: 6px 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bi .bi-field { display: flex; flex-direction: column; gap: 6px; }
.bi .bi-field > label { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.bi .bi-field input, .bi .bi-field select, .bi .bi-bsearch { font: inherit; font-size: var(--fs-body); padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); width: 100%; box-sizing: border-box; }
.bi .bi-slug { display: flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.bi .bi-slug input { flex: 1; min-width: 0; }
.bi .bi-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: var(--raised); }
.bi .bi-seg button { flex: 1 1 auto; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 7px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.bi .bi-seg button span { font-size: var(--fs-eye); opacity: .8; }
.bi .bi-seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.bi .bi-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--wash); font-size: 13px; margin: 0 4px 4px 0; }
.bi .bi-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.bi .bi-actions { display: flex; gap: 8px; }
.bi .bi-actions .danger { color: var(--danger); }
.bi .bi-blist { display: flex; flex-direction: column; gap: 6px; }
.bi .bi-bitem { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; cursor: grab; touch-action: none; user-select: none; }
.bi .bi-bitem:hover { border-color: var(--lamp); }
.bi .bi-bitem b { font-size: 13px; }
.bi .bi-bitem span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.bi .bi-bitem .bi-bex { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--muted); font-size: var(--fs-eye); }
.bi .bi-bex svg { width: 64px; height: 22px; flex: none; }
.bi .bi-bex polyline { fill: none; stroke: var(--lamp); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.bi .bi-bex rect, .bi .bi-bex circle { fill: color-mix(in srgb, var(--lamp) 70%, transparent); }
.bi .bi-bex rect.bg { fill: color-mix(in srgb, var(--ink) 14%, transparent); }
.bi .bi-bex strong { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bi .bi-bex small { font-size: var(--fs-eye); }
.bi .bi-bex em { font-style: normal; margin-left: auto; letter-spacing: .04em; }
.bi .bi-howto { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; background: var(--wash); margin: 4px 0 2px; }
.bi .bi-howto p { margin: 0; font-size: var(--fs-meta); line-height: 1.45; color: var(--ink); }
.bi .bi-howto-tile { flex: none; width: 84px; padding: 7px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.bi .bi-howto-tile small { font-size: var(--fs-eye); color: var(--muted); }
.bi .bi-howto-tile b { font-size: 17px; font-variant-numeric: tabular-nums; }
.bi .bi-howto-tile i { font-style: normal; font-size: var(--fs-eye); color: var(--muted); }
.bi .bi-tile.editing { position: relative; cursor: grab; touch-action: none; user-select: none; outline: 1px solid transparent; transition: outline-color .12s, box-shadow .12s; }
.bi .bi-tile.part.editing { padding: 34px 10px 10px; background: var(--surface); }
.bi .bi-tile.editing:not(.part) { padding-top: 34px; }
.bi .bi-tile.editing:hover { outline-color: var(--line); }
.bi .bi-tile.sel { outline: 2px solid var(--lamp) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--lamp) 20%, transparent); }
.bi .bi-hover { position: absolute; top: 6px; left: 10px; right: 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bi .bi-hover b { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi .bi-hover button { border: 0; background: var(--raised); color: var(--ink); border-radius: 6px; width: 24px; height: 22px; cursor: pointer; font-size: 12px; opacity: 0; transition: opacity .12s; }
.bi .bi-tile.editing:hover .bi-hover button, .bi .bi-tile.sel .bi-hover button { opacity: 1; }
@media (hover: none) { .bi .bi-hover button { opacity: 1; } }
.bi .bi-grip { font-size: 14px; color: var(--faint); }
.bi .bi-resize { position: absolute; top: 30%; right: -5px; width: 10px; height: 40%; border-radius: 5px; cursor: ew-resize; background: var(--lamp); opacity: 0; transition: opacity .12s; touch-action: none; }
.bi .bi-resize-h { top: auto; right: auto; bottom: -5px; left: 35%; width: 30%; height: 10px; cursor: ns-resize; }
.bi .bi-tile.editing:hover .bi-resize, .bi .bi-tile.sel .bi-resize { opacity: .85; }
@media (hover: none) { .bi .bi-tile.sel .bi-resize { opacity: .85; } }
.bi .bi-placeholder { opacity: .35; outline: 2px dashed var(--lamp) !important; }
.bi .bi-newplace { min-height: 90px; background: var(--wash); }
.bi-ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: .9; transform: rotate(1.5deg); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); border-radius: var(--r-lg); background: var(--surface); max-height: 160px; overflow: hidden; }
.bi .bi-tabs.editing a { -webkit-user-drag: none; user-select: none; touch-action: none; cursor: grab; display: inline-flex; align-items: center; gap: 6px; }
.bi .bi-tabs.editing a i { font-style: normal; font-size: 15px; line-height: 1; color: var(--faint); padding: 0 2px; cursor: pointer; }
.bi .bi-tabs.editing a i:hover { color: var(--danger); }
.bi .bi-dirty { font-size: 13px; color: var(--muted); align-self: center; }
.bi .bi-edit button:disabled { opacity: .45; }
.bi .bi-empty { padding: 30px; text-align: center; }
@media (max-width: 900px) {
  .bi .bi-editor { grid-template-columns: 1fr; }
  .bi .bi-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 46vh; z-index: 50; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .3); }
  .bi.editing #bi-body { padding-bottom: 48vh; }
}

/* Statistik uses the whole width of a computer screen (Jan 2026-10-24: "utnyttja bredden av en MacBook Air"):
   the settings column and the page's own limits go, up to 1 800 px. */
.setbody:has(> .manage.bi), .setpage.place .setbody:has(> .manage.bi) { max-width: none; }
.manage.bi { max-width: 1800px; }

/* Grupper i Senaste (2026-10-24). */
.ngroups { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ngroups .pchip.ghost { background: none; border: 1px dashed var(--line); color: var(--muted); }
.ngroups .nstart { font-size: var(--fs-eye); color: var(--lamp-text); margin-left: 2px; }
.ngroup-edit .nm-body { display: flex; flex-direction: column; gap: 12px; }
.paper-edit .nm-body { padding: 8px 18px 18px; overflow: auto; max-height: calc(86vh - 60px); }
.paper-add { display: flex; gap: 8px; }
.paper-add input { flex: 1; min-width: 0; }
.paper-list { display: flex; flex-direction: column; }
.paper-row { display: grid; grid-template-columns: 8px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.paper-name { display: flex; flex-direction: column; min-width: 0; }
.paper-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paper-row .icon { padding: 4px 8px; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 6px; }
.paper-row .icon:hover { color: var(--danger); background: var(--overlay); }
.ngroup-edit header > div { display: flex; gap: 8px; }
.ngroup { padding: 12px; border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.ngroup-head { display: flex; gap: 8px; }
.ngroup-head input, .ngroup-start select { flex: 1; font: inherit; font-size: 15px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); }
.ngroup-papers { display: flex; flex-wrap: wrap; gap: 6px; }
.ngroup-papers label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.ngroup-papers label.on { border-color: var(--lamp); background: var(--wash); }
.ngroup-papers input { display: none; }
.ngroup-start { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--fs-body); }

/* Sammanställningar (2026-10-24). */
.comp-h { font-size: var(--fs-eye); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 24px 0 8px; }
.comp-edit textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: var(--fs-body); font-weight: 400; line-height: 1.55; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); resize: vertical; }
/* The editor (2026-10-24): grouped cards with label left and value right, as Inställningar. */
.comp-edit { width: min(640px, 96vw); background: var(--ground); }
.comp-edit header { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 14px 18px 10px; border-bottom: 1px solid var(--line); }
.comp-edit header h2 { text-align: center; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-edit .nm-body { padding-top: 4px; max-height: calc(86vh - 64px); }
.comp-edit .nm-body > h3 { margin: 20px 4px 6px; }
.comp-edit .st-card { margin: 0; }
.comp-card-f { display: flex; flex-direction: column; gap: 10px; }
.comp-card-f > .lt-row:first-child { padding-top: 0; }
.comp-name { font: inherit; font-size: var(--fs-news); padding: 2px 0; border: 0; background: none; color: var(--ink); outline: none; }
.comp-name:focus-visible { box-shadow: 0 2px 0 var(--lamp); }
.comp-edit .lt-row input[type=time], .comp-edit .lt-row input[type=number] { font: inherit; font-size: var(--fs-body); padding: 5px 8px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--raised); color: var(--ink); font-variant-numeric: tabular-nums; }
.comp-edit .lt-row input[type=number] { width: 64px; text-align: right; }
.comp-x { width: 26px; height: 26px; border-radius: 50%; color: var(--muted); font-size: 16px; line-height: 1; }
.comp-x:hover { background: var(--raised); color: var(--danger); }
.comp-add { padding: 0; }
.comp-pick { position: relative; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); color: var(--muted); font-size: 13px; cursor: pointer; }
.comp-pick:hover, .comp-add button:hover { color: var(--ink); }
.comp-pick select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.comp-research { display: flex; gap: 6px; }
.comp-research input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); }
.comp-research button { padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--lamp-text); }
.comp-research button:hover { background: var(--raised); }
.comp-draft { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: var(--wash); }
.comp-draft textarea { background: var(--surface); border-color: transparent; }
.comp-draftrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comp-terms button { display: inline-flex; align-items: center; gap: 5px; }
.comp-terms button.dim { opacity: .55; }
.comp-hits { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.comp-terms button.on .comp-hits { color: inherit; opacity: .8; }
.comp-period { width: min(520px, 96vw); }
.comp-period .comp-research input[type=date] { flex: 1; }
.comp-draftrow button { padding: 6px 12px; border-radius: 999px; background: var(--lamp); color: var(--on-lamp); font-size: 13px; font-weight: 600; }
.comp-draftrow button:disabled { opacity: .6; }
.comp-days { padding: 0; }
.comp-days button { min-width: 48px; justify-content: center; }
.comp-del { display: block; margin: 18px auto 0; color: var(--danger); font-size: var(--fs-body); padding: 6px 12px; border-radius: 999px; }
.comp-del:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
/* Tom plats (2026-10-24): an empty tile for a gap or a whole empty row; seen only while editing. */
.bi .bi-tile.gap { background: none; border: 0; box-shadow: none; }
.bi .bi-tile.gap.editing { outline: 1px dashed var(--line); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.bi .bi-tile.gap .bi-gap-note { color: var(--muted); font-size: 12px; text-align: center; margin: auto; }
.bi details.bi-howto-box > summary { cursor: pointer; font-size: 12px; color: var(--muted); list-style: none; padding: 2px 0; }
.bi details.bi-howto-box > summary::before { content: '▸ '; }
.bi details.bi-howto-box[open] > summary::before { content: '▾ '; }

/* Videor (Jan 2026-10-25): the saved videos as pictures, the unwatched first, and Att titta på on Idag. */
.vids .vid-left { color: var(--ink); font-weight: 600; }
.vids .vid-tagbar { flex-wrap: wrap; overflow: visible; margin-top: 10px; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 14px 0 26px; }
.vid-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .12s; }
.vid-card:hover { border-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.vid-card.seen { opacity: .62; }
.vid-card.seen:hover { opacity: 1; }
.vid-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--raised); overflow: hidden; }
.vid-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.vid-card:hover .vid-pic img { transform: scale(1.03); }
.vid-pic i { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.78); color: #fff; font-style: normal; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .15s; background: rgba(0,0,0,.18); }
.vid-play .svg { width: 44px; height: 44px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.vid-card:hover .vid-play { opacity: 1; }
.vid-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 12px; flex: 1; }
.vid-title { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-card); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid-title:hover { text-decoration: underline; }
.vid-meta { color: var(--muted); font-size: var(--fs-meta); }
.vid-line { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-meta); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vid-line .ai { font-size: var(--fs-eye); font-weight: 700; letter-spacing: .06em; color: var(--violet); margin-right: 2px; }
.vid-acts { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }
.vid-acts .linkbtn { font-size: var(--fs-meta); color: var(--muted); text-decoration: none; }
.vid-acts .linkbtn:hover { color: var(--ink); }

/* ‹ Videor in the reader when the video was opened from Videor (2026-10-25). */
.rbar .backto { color: var(--lamp-text); }
/* Senast in: the timed jobs under the sources (2026-10-26), headed like the card's own title but smaller. */
.bi-fresh-head { margin: 18px 0 2px; font-size: var(--fs-small, 13px); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
/* Handboken as the PDF (2026-10-26). */
.hb-pdf .hb-pdfbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.hb-pdf .hb-pdfbar h2 { margin: 0; }
.hb-pdf .hb-links { margin-left: auto; display: flex; gap: 14px; font-size: 13px; }
.hb-pdf .hb-pages { padding: 4px 0 40px; }
.hb-pdf .pdfpage { max-width: 100%; }
.hb-pdf .hb-frame { width: 100%; height: 80vh; border: 0; }
/* Ljud (2026-10-30): square covers, Spotify's player in place of the cover when playing. */
.aud-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.aud-pic { position: relative; display: block; aspect-ratio: 1 / 1; width: 100%; padding: 0; border: 0; background: var(--raised); overflow: hidden; cursor: pointer; }
.aud-pic:disabled { cursor: default; }
.aud-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.aud-card:hover .aud-pic img { transform: scale(1.03); }
.aud-card:hover .vid-play { opacity: 1; }
.aud-none { display: grid; place-items: center; height: 100%; color: var(--muted); }
.aud-none .svg { width: 48px; height: 48px; }
.reader .aud-player { flex: none; display: block; width: 100%; border: 0; background: var(--raised); }
.aud-kind { font-size: var(--fs-eye); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
.aud-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.aud-card.seen { opacity: .62; }
.aud-card.seen:hover { opacity: 1; }
.aud-card .vid-acts { flex-wrap: wrap; }
a.soft { text-decoration: none; color: var(--text); }
/* The playing card takes the whole row, so Spotify shows its full player with the track list. */
.aud-card.playing { grid-column: 1 / -1; }
.reader .aud-card.playing .aud-player { border-radius: 12px; margin: 10px 10px 0; width: calc(100% - 20px); background: transparent; }
/* Ljud: the same music in Apple Music and YouTube Music (2026-10-30). */
.aud-more { font-size: var(--fs-meta); color: var(--muted); }
.aud-more a { color: var(--muted); text-decoration: none; }
.aud-more a:hover { color: var(--ink); text-decoration: underline; }

/* Dagens förstasidor (2026-10-31): the papers' front pages as paper on a table. */
.fronts { display: flex; gap: 14px; }
.front { flex: 1; max-width: 200px; text-decoration: none; color: inherit; }
.front img { display: block; width: 100%; background: #fff; border-radius: 4px; border: 0.5px solid rgba(0,0,0,.12); box-shadow: 0 3px 12px rgba(0,0,0,.28); transition: transform .15s; }
.front:hover img { transform: translateY(-2px); }
.front span { display: block; margin-top: 6px; font-size: var(--fs-small, 12px); color: var(--muted); }
.front b { color: #fff; padding: 1px 6px; border-radius: 3px; margin-right: 4px; font-weight: 800; background: #1D4E89; }

/* Idag 2026-10-31: Händelser and Kommande as stacked rows; Kan uppdateras as one line each; Ledarsidorna folded. */
.t-mast .t-band > span:first-child { flex-wrap: wrap; row-gap: 2px; }

/* Idag 2026-10-31, B: one style for the headings inside a block (Dina ämnen, Kan uppdateras, Håll koll): small grey capitals. */
/* A phone: the shortcuts and Fäst as one row each that scrolls sideways, so the news starts on the first screen. */
@media (max-width: 600px) {
  .u-shortcuts { display: flex; overflow-x: auto; gap: 4px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .u-shortcuts::-webkit-scrollbar { display: none; }
  .u-shortcuts .u-sc { flex: 0 0 72px; }
  .u-pins > div:last-child, .u-pins .u-pingrid { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .u-pins .u-pin { flex: 0 0 220px; }
}

/* Idag 2026-10-31, C: a smaller top on wide screens, Håll koll in ordinary case, one title size in the cards, Läget's order as a link. */
@media (min-width: 900px) {
  .u-shortcuts { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 10px 4px; margin-bottom: 18px; }
  .u-shortcuts .u-scic { width: 44px; height: 44px; border-radius: 14px; }
  .u-shortcuts .u-scic svg { width: 19px; height: 19px; }
}

.u-edread b { font-size: 15px; font-weight: 600; }
.u-edbtn { background: none !important; border: 0 !important; box-shadow: none !important; padding: 2px 0 !important; color: var(--lamp-text) !important; font-size: 13px !important; font-weight: 600; width: auto !important; }
.u-edbtn svg { width: 13px; height: 13px; }
/* The same title size in Vidga vyn's card on Idag; a long shortcut name never runs into the next. */
.u-block .vv-t, .u-block .vv-card .vv-t { font-family: inherit; font-size: 15px !important; line-height: 1.35; }
/* No key hints on a phone: there is no keyboard (2026-10-31). */
@media (max-width: 600px) { .t-foot .keys { display: none; } }

/* iPhone Safari zooms into a field under 16px (2026-10-31). !important, since the fields' own rules set font: inherit
   or 13–15px with a class and would win; the search fields are width: 100% or flex: 1 with min-width: 0, so only a
   few pixels taller. */
@media (max-width: 900px) { input, textarea, select { font-size: 16px !important; } }

/* Idag, B (2026-11-01): Mer i dag, one folded row under the core and Jan's own; open, the parts as before. */

/* One page head under Läsrum and Inställningar (design rest 2026-11-01): the titles began at 40, 50 and 72 px.
   The page's own margin (--page-m) is the only one; a .manage page inside adds none, and the title has no margin above. */
.setbody:not(.wide), .setpage.place .setbody:not(.wide) { padding: var(--page-m) var(--page-m) 60px; }
.setbody > .manage { padding: 0; }
.setbody > h2:first-child, .setbody > .manage > .manage-head:first-child { margin-top: 0; }
.setbody > h2, .setbody > .manage > .manage-head h2 { margin: 0 0 var(--s2); min-height: 36px; display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.setbody > .manage > .manage-head { margin-bottom: var(--s2); }
.setbody > .manage > .manage-head h2 { margin-bottom: 0; }

/* Källor at a narrow width (design rest 2026-11-01: Sparade was cut and Senast and the categories gone): one row
   per source with its name, its categories under the name and the week's bars at the right. The category chips
   scroll sideways with a fading edge that says there is more. */
@media (max-width: 900px) {
  .sp-topics { padding-right: 32px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
}
@container sp (max-width: 700px) {
  .sp-topics { padding-right: 32px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
}
@container sp (max-width: 600px) {
  .sp-row { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "ck name week" "ck topics week"; row-gap: 3px; column-gap: 10px; }
  .sp-row > input, .sp-row > span:first-child { grid-area: ck; }
  .sp-row .c-name { grid-area: name; }
  .sp-row:not(.sp-headrow) .c-topics { display: flex; grid-area: topics; padding-left: 36px; min-width: 0; }
  .sp-row:not(.sp-headrow) .c-topics:empty { display: none; }
  .sp-row .c-week { grid-area: week; }
  .sp-row .c-saved, .sp-row .c-latest, .sp-row .c-opened, .sp-row.sp-headrow .c-topics { display: none; }
  .sp-headrow { grid-template-areas: "ck name week"; }
  .sp-headrow > button:nth-of-type(1) { grid-area: name; }
  .sp-headrow > button:nth-of-type(3) { grid-area: week; text-align: right; }
}

/* Nyheter and its rooms share one head (design rest 2026-11-01: the top jumped between the tabs): the band at a fixed
   height, the title, then the tab row at the same place in every tab; what belongs to Nyheter alone comes under it. */
.n-mast .t-band { height: 44px; min-height: 0; box-sizing: border-box; align-items: center; }
.n-mast h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-in > .nreview, .news-in > .n-status { margin: 0 0 var(--s3); }

/* Läget as a teaser (Jan 2026-11-01, as on the BOOX): the picture a third of the width at the left, the title, when and
   how long, and the first four lines; without a picture the text takes the whole width. */
.u-laget-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s4); align-items: start; color: inherit; text-decoration: none; margin-top: var(--s2); }
.u-laget-card.nopic { grid-template-columns: minmax(0, 1fr); }
.u-laget-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); display: block; }
.u-laget-card > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.u-laget-card b { font-family: var(--serif); font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; color: var(--ink); }
.u-laget-card small { font-size: var(--fs-meta); color: var(--muted); }
.u-laget-card em { font-style: normal; font-size: 15px; line-height: 1.45; color: var(--ink); opacity: .88; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.u-laget-card:hover b { color: var(--lamp-text); }
.u-laget-acts { margin-top: var(--s3); font-size: var(--fs-meta); color: var(--faint); }
.u-laget-acts .linkbtn { font-size: var(--fs-meta); color: var(--muted); }
.u-laget-acts .linkbtn:hover { color: var(--lamp-text); }
.u-laget .u-edstatus, .u-laget .u-ederr { margin: var(--s2) 0 0; }
@media (max-width: 520px) { .u-laget-card em { -webkit-line-clamp: 3; } .u-laget-card { gap: var(--s3); } .u-laget-card b { font-size: 17px; } }
.u-laget > .t-eyebrow { border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); padding-top: var(--s2); }

/* The compilation guide (2026-11-02) */
.comp-step { margin: 4px 4px 0 !important; }
.comp-kinds button b { display: flex; align-items: center; gap: 8px; }
.comp-kinds button b svg { width: 18px; height: 18px; color: var(--lamp-text); }
.comp-every { margin-top: 0; }
.comp-lens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.comp-len { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.comp-len span { font-size: 12px; color: var(--muted); }
.comp-len.on { border: 2px solid var(--lamp); padding: 11px; }
.comp-sum { width: 100%; text-align: left; cursor: pointer; }
.comp-sum .lt-text small { display: block; color: var(--muted); }
.comp-sum svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.comp-more summary { cursor: pointer; font-weight: 600; margin: 4px 4px 8px; }
.comp-est { margin: 0; color: var(--lamp-text); }
.comp-end { justify-content: flex-end; margin-top: 12px; }
.comp .manage-head .primary { margin-left: auto; white-space: nowrap; flex: none; }


/* Less motion when the system asks for it (2026-11-02): no glides, pulses or spinners that turn; changes come at once. */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* En källas sida (/kallor/<id>) and Dubbletter att rensa (2026-11-05): the panel as a page, the same sections. */
.sp-one { overflow-y: auto; }
.sp-onehead { display: flex; align-items: center; gap: 12px; padding: 16px 20px 4px; }
.sp-crumb { color: var(--accent-text); font-weight: 600; text-decoration: none; font-size: 14px; }
.sp-crumb:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-onebody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 8px 20px 60px; max-width: 1180px; }
.sp-onebody.single { grid-template-columns: minmax(0, 760px); }
.sp-side { border-left: 1px solid var(--line); padding-left: 24px; }
.sp-side > .sp-sec:first-child { margin-top: 8px; }
.sp-h1 { margin: 6px 0 6px; font-size: 24px; letter-spacing: -.4px; }
.sp-sec h5 { margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sp-sec h5:first-child { margin-top: 0; }
.sp-gets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-getcol { padding: 10px 12px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--ink) 4.5%, transparent); }
.sp-get { display: grid; grid-template-columns: 70px auto; column-gap: 8px; align-items: baseline; padding: 4px 0; }
.sp-get b { font-size: 13px; font-weight: 600; color: var(--muted); }
.sp-get span { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.sp-get small { grid-column: 2; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-about { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--text); text-decoration: none; background: color-mix(in srgb, var(--ink) 5.5%, transparent); max-width: 100%; }
.sp-about:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }
.sp-about b { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sp-similar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 14px; }
.sp-similar:hover b { color: var(--accent-text); }
.sp-similar .sp-sname { min-width: 0; display: flex; gap: 8px; align-items: baseline; }
.sp-similar b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-similar small { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-similar .mono { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; }
.sp-posts { margin: 0 -6px; }
.sp-postrow { display: flex; align-items: center; }
.sp-postrow .art { flex: 1; min-width: 0; margin-right: 0; }
.sp-postrow .d-headlines .chip { display: none; }
/* The source's own name on every row, and the bookmark beside the save button, said the same thing twice. */
.sp-postrow .art .as, .sp-postrow .ac > .svg, .sp-postrow .meta > .svg { display: none; }
.sp-save { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-md); color: var(--faint); }
.sp-save:hover { background: var(--hover); color: var(--bookmark); }
.sp-save.on { color: var(--bookmark); }
.sp-save .svg { width: 16px; height: 16px; }
.sp-posts .more { padding: 12px 0; text-align: center; }
.sp-dupe { padding: 12px 14px; margin-bottom: 10px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--ink) 4.5%, transparent); }
.sp-dhead { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; font-size: 14px; }
.sp-dpair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-dside { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.sp-dside a { display: flex; gap: 8px; align-items: center; color: var(--text); text-decoration: none; min-width: 0; max-width: 100%; }
.sp-dside a b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-dside .sp-dwhere { color: var(--muted); margin-top: -4px; }
.sp-dside a:hover b { color: var(--accent-text); }
.sp-dside small { color: var(--muted); font-size: 12px; }
.sp-dside .mono { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; }
@container sp (max-width: 760px) {
  .sp-onehead { padding: 12px 16px 4px; }
  .sp-onebody { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 16px 60px; }
  .sp-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .sp-gets { grid-template-columns: 1fr; }
  .sp-similar { grid-template-columns: auto minmax(0, 1fr); }
  .sp-similar > small { grid-column: 2; white-space: normal; }
  .sp-dpair { grid-template-columns: 1fr; }
}
/* Hantera källan (2026-11-05): how it comes in, its rules, its address and its last fetches. */
.sp-seg { display: inline-flex; padding: 2px; border-radius: var(--r-md); background: var(--raised); max-width: 100%; }
.sp-seg button { padding: 5px 12px; border-radius: var(--r-sm); font-size: 13px; color: var(--muted); border: 1px solid transparent; white-space: nowrap; }
.sp-seg button:hover:not(.on) { color: var(--ink); }
.sp-seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; border-color: var(--line); }
.sp-seg + p { margin-top: 8px; }
.sp-acts.tight { margin-top: 8px; }
#sp-fetch { margin-top: 10px; }
.sp-rule { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.sp-feedurl { margin: 0; color: var(--muted); overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.sp-log { display: flex; flex-direction: column; }
.sp-logrow { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.sp-logrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); align-self: center; }
.sp-logrow.new i { background: var(--ok); }
.sp-logrow.err i { background: var(--orange); }
.sp-logrow span { color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-logrow b { grid-column: 2; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.sp-logrow.none b { color: var(--muted); font-weight: 400; }
.sp-logrow small { grid-row: 1; grid-column: 3; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-logmore summary { cursor: pointer; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--accent-text); }
/* A hint's name opens the source's page; on the page the hint stands under the status. */
.sp-hintname { padding: 0; color: var(--text); text-align: left; }
.sp-hintname:hover b { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.sp-hint.on-page { margin-top: 12px; margin-bottom: 0; border-color: color-mix(in srgb, var(--orange) 45%, transparent); }
/* Föregående and Nästa on a source's page, and Hitta flödet igen (2026-11-05). */
.sp-onehead { justify-content: space-between; }
.sp-onehead .hb + .sp-crumb { margin-right: auto; }
.sp-nav { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-nav .soft { padding: 4px 11px; font-size: 16px; line-height: 1; }
.sp-nav .soft:disabled { opacity: .35; cursor: default; }
.sp-found { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--ink) 4.5%, transparent); }
.sp-foundrow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.sp-foundrow > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-foundrow b { font-size: 14px; }
.sp-foundrow small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.sp-headrow button { white-space: nowrap; }
.sp-found h5 { margin: 0 0 6px; }
.sp-needgroup { align-items: flex-start; cursor: default; }
.sp-needgroup i { margin-top: 6px; }
.sp-needgroup > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sp-needgroup span { white-space: normal; }
.sp-needchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sp-needchips button { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--text); }
.sp-needchips button:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }

/* Idag in three parts (2026-11-10): Läget, Följer and Samlat in one calm column. */
.u-three { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.u-biglink { align-self: flex-start; margin-top: -6px; font-size: 13px; color: var(--lamp-text); text-decoration: none; }
.u-biglink:hover { text-decoration: underline; }

/* Följer (2026-11-10): the tabs, and rows with a type mark in its colour, in the cards Idag uses. */
.fo-tabs { margin: var(--s2, 8px) 0 var(--s4, 18px); width: fit-content; }
.fo-stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; margin-top: 6px; }
.fo-block { padding: 14px 16px 8px; }
.fo-block .u-bhead span em { font-style: normal; font-weight: 500; color: var(--faint); margin-left: 4px; }
.fo-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--ink); text-decoration: none; min-width: 0; }
.fo-row + .fo-row { border-top: 1px solid var(--line); }
.fo-row b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-row small { flex: none; color: var(--faint); font-size: var(--fs-meta, 13px); }
.fo-row .fo-go { flex: none; font-style: normal; color: var(--faint); }
.fo-row:hover b { color: var(--lamp-text); }
.fo-kind { flex: none; --c: var(--lamp-text); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 2px 7px;
  color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.fo-bevaka { --c: var(--violet); } .fo-forskning { --c: #3FA37A; } .fo-handelse { --c: var(--news); } .fo-annat { --c: var(--muted); }

/* The compilations inside Följer (2026-11-10): their own cards, with settings on the card. */
.fo-wide { grid-column: 1 / -1; padding-bottom: 14px; }
.fo-row b.fo-read { font-weight: 500; }

/* Följer as one view (2026-11-10): the topics as compact rows, those with something new marked and first. */
/* min(…, 100%): on a phone the card is narrower than 340 px, and the rows ran out past its edge (2026-11-11). */
.fo-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); column-gap: 28px; }
.fo-trow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.fo-tmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.fo-thumb { flex: none; width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: color-mix(in srgb, var(--t, var(--muted)) 28%, var(--raised)); }
.fo-tt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fo-tt b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-tt small { color: var(--faint); font-size: var(--fs-meta, 13px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-trow.hot .fo-tt b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp-text); margin-right: 7px; vertical-align: middle; }
.fo-tmain:hover b { color: var(--lamp-text); }
.fo-act { flex: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--lamp-text); background: none; border: 1px solid color-mix(in srgb, var(--lamp-text) 40%, transparent); border-radius: 999px; padding: 3px 11px; cursor: pointer; text-decoration: none; }
.fo-act.on { background: var(--lamp-text); color: var(--ground); border-color: transparent; }
.fo-act:hover { background: color-mix(in srgb, var(--lamp-text) 16%, transparent); }
.fo-act.on:hover { background: var(--lamp-text); filter: brightness(1.08); }
.fo-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--lamp-text); text-decoration: none; }
.u-bhead .u-links a.fo-on { color: var(--ink); }

/* Ämnen ordered by hand (2026-11-11): order, tag chips, Liknar … and the menu; .fo-resting folds Avslutade. */
.fo-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 6px; font-size: 13px; color: var(--muted); }
.fo-sort select { font: inherit; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; margin-left: 6px; }
.fo-tagchips { margin-bottom: 4px; }
.fo-like { flex: none; max-width: 38%; font: inherit; font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--ink) 6%, transparent); border: 0; border-radius: 999px; padding: 3px 10px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-like:hover { color: var(--ink); }
.fo-more-btn { flex: none; font: inherit; font-size: 18px; line-height: 1; color: var(--faint); background: none; border: 0; border-radius: 8px; padding: 2px 6px; cursor: pointer; }
.fo-more-btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.fo-resting { margin-top: 10px; }
.fo-resting summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.fo-resting summary small { font-weight: 400; color: var(--faint); margin-left: 6px; }
@media (max-width: 600px) { .fo-like { display: none; } .fo-more-btn { padding: 2px 0 2px 2px; } .fo-trow { gap: 8px; } }

/* Sammanställningarna as rows in Följer, and a tighter Ändra (2026-11-10). */
.fo-crow.off { opacity: .55; }
.fo-crow .fo-tt small.warn { color: var(--danger); }
.fo-dots { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; color: var(--faint); border-radius: 50%; cursor: pointer; padding: 0; }
.fo-dots:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }
.fo-dots { font-size: 20px; line-height: 1; letter-spacing: 1px; }
.comp-edit { width: min(520px, 96vw); }
.comp-edit .nm-body { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.comp-edit .nm-body > * { margin-top: 0; margin-bottom: 0; }
.comp-namefield { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.comp-namefield small { font-size: var(--fs-eye, 12px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.comp-namefield .comp-name { font-size: 20px; font-weight: 600; padding: 4px 0 6px; border-bottom: 1px solid var(--line); }
.comp-namefield .comp-name:focus-visible { box-shadow: none; border-bottom-color: var(--lamp); }
.comp-cost { padding: 0 4px; margin-top: -6px !important; }
.comp-edit .st-card { padding: 4px 16px; }
.comp-edit .comp-card-f { gap: 0; }
.comp-edit .lt-row { padding: 11px 0; flex-wrap: nowrap; }
.comp-edit .comp-card-f > .lt-row:first-child { padding-top: 11px; }
.comp-edit .lt-text b { font-size: 15px; font-weight: 600; }
.comp-edit .comp-sum .lt-text small { font-size: 12px; }
.comp-edit .comp-sum .lt-text b { font-weight: 500; }
.comp-more summary { margin: 0 4px; padding: 6px 0; font-size: 14px; color: var(--muted); list-style: none; }
.comp-more summary::-webkit-details-marker { display: none; }
.comp-more summary::after { content: ' ›'; }
.comp-more[open] summary { color: var(--ink); margin-bottom: 8px; }
.comp-more[open] summary::after { content: ''; }
.comp-more .st-card { padding: 14px 16px; }
.comp-more .comp-card-f { gap: 10px; }
.comp-del { margin: 4px auto 0; font-size: 13px; }


a.linkbtn { text-decoration: none; }
/* Morgonmejlet (2026-11-10): today's Läget first. */
.mm-today .mm-state { font-size: 22px; font-weight: 700; margin: 2px 0; }
.mm-today.bad .mm-state { color: var(--danger); }
.mm-today .setform { margin-top: 8px; }
.mm-today a.soft { text-decoration: none; }
.mm-cost { margin: 8px 0 0; }

/* Nyheter: the papers on one line, the rest behind +N (2026-11-10). */
.np-rest { display: none; }
.npapers.open .np-rest { display: contents; }
@media (max-width: 900px) { .np-rest { display: contents; } .np-more { display: none; } }
.fo-dlg .nm-body textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; line-height: 1.5; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--raised); color: var(--ink); }
.fo-dlg .setform input { flex: 1; }
.fo-hint { margin: 2px 0 6px; }

/* Följ-arket and a compilation's own page (2026-11-10). */
.fo-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px !important; }
.fo-opt > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.fo-opt b { font-size: 15px; }
.fo-opt small { color: var(--muted); font-size: 13px; }
.fo-opt input { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; font-weight: 600; padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--raised); color: var(--ink); }
.fo-opt button { flex: none; }
.fo-dlg .nm-body > h3 { margin: 6px 4px 0; }

/* A followed story opened out in Följer (2026-11-10). */
.fo-row.on b { color: var(--lamp-text); }

/* Förslag as rows (2026-11-10): the same rows as Följer, a small square in the topic's colour. */
.fo-thumb.fo-dot { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, color-mix(in srgb, var(--t) 70%, transparent), color-mix(in srgb, var(--t) 30%, transparent)); }
.fo-wait { flex: none; font-size: 13px; color: var(--faint); }
.fo-filters { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; }
.fo-block .fo-hint { margin: 2px 0 8px; }
.fo-topics.fo-one { grid-template-columns: 1fr; }
.fo-topics.fo-one .fo-trow:first-child { border-top: 0; }
.fo-tmain > .fo-kind { flex: none; }

.fo-tmain > .fo-go { flex: none; font-style: normal; color: var(--faint); }

/* Händelser i Följer (2026-11-11): the followed story's page. */
.ev-brief h3 { margin: 0 0 6px; }
.ev-brief p { margin: 0 0 8px; line-height: 1.5; }
.ev-day { margin: 12px 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ev-day::first-letter { text-transform: uppercase; }
.ev-day:first-child { margin-top: 0; }
.ev-item .ev-t { flex: none; min-width: 40px; color: var(--faint); font-variant-numeric: tabular-nums; }
.fo-pagechips { margin: 4px 0 14px; }
.ev-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; }

/* Nytt sedan du såg den (2026-11-19): the new items of a story already opened, under its headline. */
.nnew { margin: 6px 0; font-size: var(--fs-meta); line-height: 1.4; }
.nnew b { color: var(--lamp-text); font-weight: 600; margin-right: 4px; }
.nnew a { display: block; color: var(--text); text-decoration: none; margin-top: 2px; }
.nnew a:hover { text-decoration: underline; }
.nnew .nmore { display: block; color: var(--muted); margin-top: 2px; }
/* Bläddra (2026-11-24): the pages side by side, one at a time, snapped. */
.pdfpages.paged { display: flex; align-items: center; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 0; overscroll-behavior-x: contain; }
.pdfpages.paged .pdfpage { flex: 0 0 auto; scroll-snap-align: center; scroll-snap-stop: always; max-width: none; }
.pdfview { container-type: inline-size; }
.pdfbar > *, .pdfbar-r > * { white-space: nowrap; }
.pdfbar-r { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
@container (max-width: 760px) { .pdfbar-r a.link { display: none; } }
.pdfmode { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--raised); }
.pdfmode .linkbtn { padding: 2px 10px; border-radius: 999px; }
.pdfmode .linkbtn.on { background: var(--ground, var(--bg)); font-weight: 600; }
