:root {
  --bg: #faf8f3; --panel: #f3f0e8; --fg: #1a1918; --muted: #5e5a52; --line: #d8d2c6;
  --sel: #e6dfcf; --muted-sel: #5e5a52; --accent: #b3261e; --chip: #ebe6db; --amber: #8a5a00; --ok: #2e6b30; --stamp: #2e7d32;
  --politika: #b3261e; --drustvo: #8a5a00; --ekonomija: #1f6f43; --sport: #1d4f91;
  --zabava: #8e3b8a; --kultura: #6b4f2a; --scena: #a14d18; --tehnologija: #2d6470; --other: #6d675d;
  --h1: #f1dfb2; --h2: #e3a63f; --h3: #d0652a; --h4: #9c2219; --bar: #c98a3e;
  --k-new: #1d4f91; --k-update: #d39129; --k-correction: #b3261e;
  --u0: #3d6b8f; --u1: #b0623a; --u2: #5b8a4a; --u3: #8a5a9a; --u4: #a08a2e; --u5: #2e8a86; --u6: #a8506e; --u7: #6b6f78; --u8: #7a5a3a; --u9: #4a5aa8;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #22211e; --panel: #292825; --fg: #d4cec3; --muted: #9b958a; --line: #3a3833;
  --sel: #36332d; --muted-sel: #a5a094; --accent: #d98b84; --chip: #312f2b; --amber: #e0b25c; --ok: #8cc08e; --stamp: #66bb6a;
  --politika: #d98b84; --drustvo: #c49e56; --ekonomija: #78b491; --sport: #8aa9d6;
  --zabava: #c795c4; --kultura: #bda585; --scena: #d2966d; --tehnologija: #7baeb8; --other: #9b958a;
  --h1: #4a3d29; --h2: #8c6326; --h3: #c7762f; --h4: #f08d62; --bar: #b47c3c;
  --k-new: #8aa9d6; --k-update: #e0b25c; --k-correction: #d98b84;
  --u0: #7fa6c6; --u1: #d48c62; --u2: #8fbf7c; --u3: #b993c6; --u4: #cdb45a; --u5: #62bdb8; --u6: #d4839e; --u7: #a3a7ae; --u8: #b38f6b; --u9: #8a97d6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
body { display: flex; flex-direction: column; height: 100dvh; font-size: 17px; }
button { font: inherit; color: inherit; cursor: pointer; }

#top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem 1rem; border-bottom: 2px solid var(--fg); }
#qbox { flex: 0 1 26rem; min-width: 10rem; display: flex; align-items: center; gap: .3rem; padding-left: .3rem;
  border: 1px solid var(--line); background: var(--bg); border-radius: 3px; }
#qbox:focus-within { outline: 2px solid var(--fg); outline-offset: -1px; }
#q { flex: 1; min-width: 4rem; font: inherit; font-size: 1.1rem; padding: .45rem .4rem; border: 0; outline: none;
  background: transparent; color: var(--fg); }
#qtoken { display: inline-flex; align-items: center; gap: .2rem; font-size: .95rem; padding: .15rem .2rem .15rem .5rem; white-space: nowrap; }
#qtoken[hidden] { display: none; }
#qx { border: 0; background: none; padding: 0 .25rem; font-size: 1.05rem; line-height: 1; color: inherit; }
#filters { display: flex; flex-wrap: wrap; gap: .35rem; flex: 1 1 auto; }
.tb { background: none; border: 1px solid var(--line); border-radius: 3px; padding: .35rem .7rem; font-size: 1rem; }
@media (hover: hover) { .tb:hover { border-color: var(--fg); } }
.tb:focus { outline: none; }
.tb:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.tb.icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--fg); flex: none; }
#editorbtn { margin-left: auto; }
.tb.mode { height: 44px; flex: none; white-space: nowrap; font-weight: 600; padding: 0 .8rem; }
body.editor #qbox { display: none; }
#newbadge { background: var(--accent); color: var(--bg); border: 0; border-radius: 3px; padding: .3rem .6rem; font-weight: 700; }

#main { flex: 1; display: grid; grid-template-columns: var(--split, 38%) 1fr; min-height: 0; position: relative; }
#list { overflow-y: auto; border-right: 1px solid var(--line); outline: none; }
#artcol { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#art { flex: 1; min-height: 0; overflow-y: auto; padding: 1.6rem 2rem 4rem; outline: none; }
#divider { position: absolute; top: 0; bottom: 0; left: var(--split, 38%); width: 9px; margin-left: -5px; cursor: col-resize; z-index: 3; touch-action: none; }
#divider:hover, .resizing #divider { background: linear-gradient(90deg, transparent 3px, var(--muted) 3px, var(--muted) 5px, transparent 5px); }
.resizing { cursor: col-resize; user-select: none; }
#morecue { position: sticky; bottom: -4rem; height: 3.2rem; margin: -3.2rem -2rem -4rem; padding: 0 0 .5rem; display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(to bottom, transparent, var(--bg) 75%); color: var(--muted); font-size: .85rem; letter-spacing: .04em;
  pointer-events: none; visibility: hidden; }
#art.more #morecue { visibility: visible; }
#selpop { position: fixed; z-index: 40; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border: 1px solid var(--fg);
  border-radius: 3px; background: var(--bg); color: var(--fg); font-size: .95rem; box-shadow: 0 3px 12px rgba(0, 0, 0, .18); white-space: nowrap; }
#selpop[hidden] { display: none; }
#qcount { flex: none; color: var(--muted); font-size: .85rem; padding-right: .6rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
#qcount[hidden] { display: none; }
.dh { position: sticky; top: 0; z-index: 1; padding: .2rem .9rem .2rem 1.1rem; background: var(--panel); color: var(--muted);
  font-size: .78em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.older { display: block; width: 100%; padding: .8rem; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--muted); font-size: .95em; }
.older:hover { color: var(--fg); background: var(--sel); }
/* text size: list and article fonts are em of this; 15, 17, 19 or 22 px body text */
#list, #art { font-size: calc(1rem * var(--scale, 1)); }
:root[data-text="small"] { --scale: calc(15 / 17); }
:root[data-text="large"] { --scale: calc(19 / 17); }
:root[data-text="larger"] { --scale: calc(22 / 17); }
#tapbar { display: none; }

.row { display: grid; grid-template-columns: 5.2rem 1fr; column-gap: .6rem; padding: .55rem .9rem .6rem .7rem;
  border-bottom: 1px solid var(--line); border-left: 5px solid transparent; cursor: pointer; }
.row .tm { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .95em; padding-top: .1rem; }
.row .tm .d { white-space: nowrap; }
.row .hd { font-size: 1.05em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .snip { color: var(--muted); font-size: .9em; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .lb { grid-column: 2; display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.row.unread .hd { font-weight: 700; }
.row .th { float: right; width: 67px; height: 50px; object-fit: cover; margin: .1rem 0 .2rem .6rem; border-radius: 2px; background: var(--chip); }
.row.sel { background: var(--sel); border-left-color: var(--fg); --muted: var(--muted-sel); }

.chip { display: inline-block; border: 0; background: var(--chip); color: var(--fg); border-radius: 2px; padding: .05rem .4rem;
  font-size: .8em; line-height: 1.4; letter-spacing: .01em; }
.chip.svc { color: #fff; background: var(--c, var(--other)); font-weight: 600; }
:root[data-theme="dark"] .chip.svc { color: var(--c, var(--other)); background: var(--chip); }
@supports (color: color-mix(in oklab, red, red)) { :root[data-theme="dark"] .chip.svc { color: var(--fg); background: color-mix(in oklab, var(--c, var(--other)) 38%, var(--bg)); } }
.chip:hover { outline: 1px solid var(--fg); }
.achip { display: inline-block; border: 1px solid var(--muted); background: transparent; color: var(--fg); border-radius: 999px;
  padding: 0 .5rem; font-size: .85em; line-height: 1.45; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.achip:hover { border-color: var(--fg); }
#atoken, #etoken, #ttoken { display: inline-flex; align-items: center; gap: .2rem; font-size: .95rem; padding: .05rem .2rem .05rem .55rem; white-space: nowrap; }
#atoken[hidden], #etoken[hidden], #ttoken[hidden] { display: none; }
#ax, #ex, #tx { border: 0; background: none; padding: 0 .25rem; font-size: 1.05rem; line-height: 1; color: inherit; }
.row .au { font-size: .75em; letter-spacing: .04em; margin-top: .15rem; overflow-wrap: anywhere; line-height: 1.25; }
.row .au .ed { opacity: .75; }
.edl { color: var(--muted); margin-right: .3rem; }
.echip { display: inline-block; border: 1px dashed var(--muted); background: transparent; color: var(--fg); border-radius: 2px;
  padding: 0 .45rem; font-size: .85em; line-height: 1.45; letter-spacing: .05em; }
.echip:hover { border-style: solid; border-color: var(--fg); }
#artbody .meta .achip { margin-right: .3rem; }
.fchip { font-size: .95rem; padding: .2rem .5rem; }
.fchip::after { content: " \00d7"; }

mark { background: #f3d36b; color: #1a1918; border-radius: 2px; padding: 0 .06em; }
:root[data-theme="dark"] mark { background: #594828; color: var(--fg); }
@supports (color: color-mix(in oklab, red, red)) { :root[data-theme="dark"] mark { background: color-mix(in oklab, #d9a441 30%, var(--bg)); } }
#artbody { max-width: none; }
@media (min-width: 900px) {
  :root[data-width="wide"] #artbody { max-width: 100ch; }
  :root[data-width="comfortable"] #artbody { max-width: 70ch; }
  :root[data-spacing="compact"] #art { padding-top: 1rem; }
  :root[data-spacing="compact"] #artbody h1 { font-size: 1.7em; margin-bottom: .5rem; }
  :root[data-spacing="compact"] #artbody .lbs { margin-bottom: .5rem; }
  :root[data-spacing="compact"] #artbody .meta { margin-bottom: .8rem; padding-bottom: .5rem; }
  :root[data-spacing="compact"] #artbody .txt p { line-height: 1.4; margin-bottom: .6em; }
  :root[data-spacing="compact"] #artbody .signoff { line-height: 1.4; }
}
#artbody h1 { font-size: 2em; line-height: 1.2; margin: 0 0 .8rem; font-weight: 700; letter-spacing: -.01em; }
#artbody .lbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
#artbody .lbs .chip { font-size: .95em; padding: .15rem .55rem; }
#artbody .meta { color: var(--muted); font-size: 1em; margin-bottom: 1.4rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
#artbody .photo { display: block; width: 134px; height: auto; margin: 0 0 1.2rem; border-radius: 2px; background: var(--chip); }
#artbody .txt p { font-size: 1.2em; line-height: 1.6; margin: 0 0 1em; }
.badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
#artbody > .badges { margin: 0 0 .6rem; }
.badge { display: inline-block; border: 1px solid var(--fg); border-radius: 2px; padding: 0 .35rem; font-size: .8em; font-weight: 600; letter-spacing: .02em; }
.badge.cor { border-color: var(--accent); color: var(--accent); }
.banner { display: block; border: 1px solid var(--accent); color: var(--accent); border-radius: 2px; padding: .5rem .7rem; margin-bottom: 1rem; font-weight: 600; text-decoration: none; }
.banner:hover { background: var(--sel); }
#artbody .signoff { font-size: 1.2em; line-height: 1.6; margin: 0; }
#artbody .origline { margin-top: .2rem; }
#artbody .orig { font-size: .8em; color: var(--muted); }
#artbody .txt p.nobody { color: var(--muted); }
#artbody .txt p.note { border-left: 4px solid var(--accent); padding-left: .7rem; font-weight: 600; }
.ev { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: 1.2rem; }
.ev summary { cursor: pointer; color: var(--muted); }
.ev h2 { font-size: 1.15em; margin: .8rem 0; }

#insights { display: none; }
body.insights #main, body.insights #filters, body.insights #newbadge { display: none; }
body.insights #insights { display: block; flex: 1; min-height: 0; overflow-y: auto; padding: 1.2rem 2rem 3rem; outline: none; }
.ihead { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.ihead h1 { flex: 1; margin: 0; font-size: 1.7rem; letter-spacing: -.01em; }
.ilink { color: var(--fg); font-size: .95rem; }
.seg { display: inline-flex; border: 1px solid var(--fg); border-radius: 3px; overflow: hidden; flex: none; }
.seg button { border: 0; background: none; padding: .35rem .8rem; font-size: .95rem; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--fg); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr)); gap: 2.2rem 3rem; align-items: start; }
.ins { min-width: 0; }
.ins.wide { grid-column: 1 / -1; }
.ins h2 { margin: 0 0 .8rem; padding-bottom: .35rem; border-bottom: 2px solid var(--fg); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ins h3 { margin: 0 0 .4rem; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.ins small { color: var(--muted); font-size: .8em; font-weight: 400; }
.ins .none { color: var(--muted); margin: 0; }
.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.nums dt { color: var(--muted); font-size: .8rem; }
.nums dd { margin: .1rem 0 0; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.nums div:last-child:nth-child(n+3) { grid-column: span 2; }
.nums .go { cursor: pointer; }
.nums .key { color: var(--accent); }
.nums .key.cor { color: var(--k-correction); }
.stack { display: flex; height: .7rem; max-width: 16rem; margin: .35rem 0 .3rem; border-radius: 1px; overflow: hidden; background: var(--chip); }
.stack i { display: block; min-width: 0; }
.stack .new, .kinds .new { --k: var(--k-new); }
.stack .update, .kinds .update { --k: var(--k-update); }
.stack .correction, .kinds .correction { --k: var(--k-correction); }
.stack i { background: var(--k); }
.kinds { display: block; font-size: 1rem; font-weight: 600; }
.kinds > span { color: var(--k); margin-right: .5rem; white-space: nowrap; }
@media (hover: hover) { .nums .go:hover dd, .rt tr[data-day]:hover td { text-decoration: underline; } }
.heat { display: grid; grid-template-columns: 2.4rem repeat(24, minmax(0, 1fr)); gap: 2px; max-width: 56rem; font-size: .7rem; color: var(--muted); }
.heat .hh { font-variant-numeric: tabular-nums; }
.heat .wd { align-self: center; }
.heat button, .heat .z { aspect-ratio: 1; border: 0; padding: 0; border-radius: 1px; background: var(--chip); }
@media (hover: hover) { .heat button:hover, .strip button:hover i { outline: 2px solid var(--fg); } }
.hleg { display: flex; align-items: center; gap: .4rem; max-width: 56rem; margin: .5rem 0 0 2.6rem; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hleg i { display: block; width: 8rem; height: .5rem; border-radius: 1px; background: linear-gradient(90deg, var(--h1), var(--h2), var(--h3), var(--h4)); }
.strip { display: flex; gap: 2px; height: 5rem; max-width: 56rem; margin-top: 1rem; padding-left: 2.6rem; }
.strip button { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; border: 0; padding: 0; background: none; }
.strip i { display: block; min-height: 2px; }
.strip .on i { outline: 2px solid var(--fg); outline-offset: 1px; }
.strip .on span { color: var(--fg); font-weight: 700; }
.strip span { font-size: .65rem; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; line-height: 1.6; }
.rt { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .95rem; }
.rt th { text-align: left; color: var(--muted); font-size: .8rem; font-weight: 600; padding: 0 .5rem .3rem 0; }
.rt td { padding: .3rem .5rem .3rem 0; border-top: 1px solid var(--line); white-space: nowrap; }
.rt tr[data-day] { cursor: pointer; }
.rt .tk { width: 40%; min-width: 8rem; }
.track { position: relative; display: block; height: .6rem; background: var(--chip); border-radius: 1px; }
.track i, .track b { position: absolute; top: 0; bottom: 0; }
.track i { background: var(--h2); }
@supports (color: color-mix(in oklab, red, red)) { .track i { background: color-mix(in oklab, var(--h2) 45%, var(--chip)); } }
.track b { background: var(--h4); min-width: 2px; }
.bh, .br { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) 3.4rem 10.5rem; gap: .6rem; align-items: center; }
.bh { color: var(--muted); font-size: .75rem; padding-bottom: .2rem; }
.br { padding: .18rem 0; font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1.4rem 2.5rem; }
.cols .br { grid-template-columns: 8.5rem minmax(0, 1fr); }
.cols .br .up, .cols .br .sh { text-align: right; }
.cols .br:has(.up), .cols .br:has(> .sh) { grid-template-columns: 8.5rem 1fr 3rem; }
.sechead { display: flex; align-items: baseline; gap: 1rem; }
.sysrow { display: flex; flex-wrap: wrap; gap: 0 2.5rem; align-items: flex-start; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2.5rem; margin: 1.2rem 0; }
.rec dd a { color: var(--fg); }
.rec dd:has(a) { font-size: 1rem; line-height: 1.35; }
.bw { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.bw i { display: block; height: .75rem; min-width: 2px; background: var(--bar); }
#ins-topics .bw b, #ins-updates .bw b { color: var(--accent); }
.bw b { font-weight: 600; font-size: .9rem; }
.br .sh { color: var(--muted); font-size: .9rem; }
.br .by { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br .by small { margin: 0 .3rem 0 .15rem; }
.up { color: var(--ekonomija); font-weight: 600; }
.ik { border: 1px solid var(--muted); background: none; border-radius: 999px; padding: 0 .45rem; font-size: .8rem; line-height: 1.45; letter-spacing: .05em;
  justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ik.ed { border-style: dashed; border-radius: 2px; }
.ik.lab { border: 0; border-radius: 2px; background: var(--chip); letter-spacing: .01em; }
.ik.tint { border-color: var(--c); background: var(--bg); }
@supports (color: color-mix(in oklab, red, red)) { .ik.tint { background: color-mix(in oklab, var(--c) 16%, var(--bg)); } }
@media (hover: hover) { .ik:hover { border-color: var(--fg); border-style: solid; } .ik.lab:hover { outline: 1px solid var(--fg); } }
.most { margin: 1rem 0 0; line-height: 1.4; }
.most .lbl { display: block; color: var(--muted); font-size: .8rem; }
.most a { color: var(--fg); font-weight: 600; }
.wkkey, .okey { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0 0 .6rem; font-size: .8rem; color: var(--muted); }
.wkkey span, .okey span { display: inline-flex; align-items: center; gap: .35rem; }
.sw { display: inline-block; width: 1.1rem; height: .6rem; background: var(--u, var(--muted)); }
.sw.us { width: .6rem; border-radius: 50%; }
.wkkey .wkmode { display: inline-flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.wkmode, .wkbar, .hm { --ued: var(--fg); --uid: var(--line); }
@supports (color: color-mix(in oklab, red, red)) {
  .wkmode, .wkbar, .hm { --ued: color-mix(in oklab, var(--u) 52%, #000); --uid: color-mix(in oklab, var(--u) 26%, var(--bg)); }
  [data-theme="dark"] :is(.wkmode, .wkbar, .hm) { --ued: color-mix(in oklab, var(--u) 68%, #000); --uid: color-mix(in oklab, var(--u) 34%, var(--bg)); }
}
.sw.ed { background: var(--ued); }
.sw.idle { background: var(--uid); }
.sw.mk { width: 0; height: 0; background: none; border: 5px solid transparent; border-top: 6px solid var(--ued); border-bottom: 0; }
.wk7 { position: relative; max-width: 64rem; font-variant-numeric: tabular-nums; }
.wkax { position: relative; height: 1.1rem; border-bottom: 1px solid var(--line); }
.wkax b { position: absolute; top: 0; transform: translateX(-50%); font-size: .68rem; font-weight: 400; color: var(--muted); }
.wkax b:first-child { transform: none; }
.wkax b:last-child { transform: translateX(-100%); }
.wkday { padding: .5rem 0 .55rem; border-bottom: 1px solid var(--line); }
.wkdl { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .35rem; }
.wkd { font-size: .95rem; white-space: nowrap; }
.wktot { font-size: .85rem; color: var(--muted); white-space: nowrap; text-align: right; }
.wkbar { padding-bottom: 7px; }
.wkbar + .wkbar { margin-top: 2px; }
.wkt { position: relative; display: block; height: 24px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%), var(--chip); }
.wkseg { position: absolute; top: 0; bottom: 0; display: block; min-width: 2px; border: 0; padding: 0; background: var(--u); cursor: pointer; }
.wkseg.ed { background: var(--ued); }
.wkseg.on, .wkseg:focus-visible { outline: 2px solid var(--fg); outline-offset: 0; z-index: 2; }
.wkseg.shut { cursor: default; }
.wkseg.sel { box-shadow: inset 0 0 0 2px var(--fg); }
.wkidle { position: absolute; top: 0; bottom: 0; background: var(--uid); pointer-events: none; z-index: 1; }
.wkmk { position: absolute; top: calc(100% + 1px); width: 0; height: 0; margin-left: -4px; border: 4px solid transparent; border-top: 5px solid var(--ued); border-bottom: 0; pointer-events: none; }
.wknow { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 1px dashed var(--muted); pointer-events: none; z-index: 1; }
.hm { display: grid; gap: 2px; }
.hmr { display: grid; grid-template-columns: 5.4rem repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; }
.hmax { height: 1.1rem; align-items: end; }
.hmax b { font-size: .68rem; font-weight: 400; color: var(--muted); }
.hmd { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.hmc { position: relative; display: block; height: 1.1rem; border: 0; padding: 0; background: var(--chip); color: var(--fg); font: inherit; font-size: .62rem; line-height: 1.1rem; text-align: center; }
.hmc.hv { background: var(--u); cursor: pointer; }
@supports (color: color-mix(in oklab, red, red)) { .hmc.hv { background: color-mix(in oklab, var(--u) var(--a), var(--chip)); } }
.hmc.ed::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 6px 6px 0; border-color: transparent var(--ued) transparent transparent; }
.hmc.on, .hmc:focus-visible { outline: 2px solid var(--fg); outline-offset: 0; z-index: 1; }
.hmu { margin: .9rem 0 .3rem; font-size: .9rem; }
#wkvisit { margin-top: 1.2rem; padding-top: .8rem; border-top: 2px solid var(--fg); max-width: 64rem; }
#wkvisit[aria-busy="true"] { min-height: 4rem; }
.wkvh { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.wkvh h3 { margin: 0; font-size: 1rem; }
.wkvn { margin: .6rem 0 1rem; }
.wkvn { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: .6rem 1.2rem; }
.wkvn dd { font-size: 1.1rem; }
.wkvn small { font-size: .75rem; font-weight: 400; color: var(--muted); }
.wkvg { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: .4rem 2.5rem; }
#wkvisit h4 { margin: .6rem 0 .3rem; font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
#wkvisit ol { margin: 0; padding: 0; list-style: none; font-size: .9rem; line-height: 1.45; }
#wkvisit time { display: inline-block; min-width: 3.2rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wkvx ol { columns: 14rem; column-gap: 2.5rem; }
.wkvr { overflow-x: auto; }
.wktip { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: .1rem; padding: .35rem .55rem; border-radius: 2px;
  background: var(--fg); color: var(--bg); font-size: .8rem; white-space: nowrap; pointer-events: none; }
.wktip[hidden] { display: none; }
.opick { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; margin-bottom: 1.1rem; }
.obusy { min-height: 12rem; }
.ofail { display: flex; align-items: center; gap: .75rem; min-height: 3rem; }
.nums .oapprox dd { color: var(--muted); font-weight: 400; }
.okey { margin-top: 1.2rem; }
.okey i { display: inline-block; width: .9rem; height: .55rem; }
.o-applied, .bw i.o-applied { background: var(--ok); }
.o-fixed { background: repeating-linear-gradient(135deg, var(--ok) 0 3px, transparent 3px 5px); }
.o-undone { background: var(--amber); }
.o-ignored, .bw i.o-ignored { background: var(--muted); }
.o-open, .bw i.o-open { background: var(--line); }
.o-hidden { background: repeating-linear-gradient(135deg, var(--muted) 0 2px, transparent 2px 4px); }
.orows, .opair { max-width: 64rem; }
.orow { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 4.2rem 2.6rem; gap: .6rem; align-items: center; padding: .2rem 0; font-variant-numeric: tabular-nums; }
.orow .ok { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ostack { display: flex; height: .75rem; }
.ostack i { display: block; min-width: 0; }
.orate { font-weight: 700; text-align: right; white-space: nowrap; }
.orow .on { color: var(--muted); font-size: .85rem; text-align: right; }
.opair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2.5rem; margin-top: 1.4rem; }
.ofr { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 3rem; gap: .6rem; align-items: center; padding: .18rem 0; font-variant-numeric: tabular-nums; }
.ofr .sh { color: var(--muted); font-size: .9rem; text-align: right; }
.oruns, .odrafts, .opub { margin-top: .8rem; }
.oruns summary, .odrafts summary, .opub summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.opubrow { margin-top: .6rem; font-size: .85rem; }
.opubrow h4 { margin: 0 0 .2rem; font-size: .85rem; font-weight: 600; }
.ohunks { margin: 0; padding: 0; list-style: none; }
.ohunk { padding: .15rem 0; border-top: 1px solid var(--line); line-height: 1.45; }
.ohunk .octx { color: var(--muted); }
.ohunk del { color: var(--accent); text-decoration: line-through; }
.ohunk ins { color: var(--ok); text-decoration: none; font-weight: 600; }
.oruns .rt, .odrafts .rt { margin-top: .4rem; font-size: .85rem; }
.otitle { display: inline-block; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.ocost { text-align: right; font-variant-numeric: tabular-nums; }
.ototal td { border-top: 1px solid var(--line); font-weight: 600; }
.wkvo { display: block; color: var(--muted); font-size: .8rem; }
.osig > div + div { margin-top: .8rem; }
.ochip { display: inline-block; margin: 0 .4rem .35rem 0; padding: .1rem .5rem; border-radius: 2px; background: var(--chip); font-size: .85rem; font-variant-numeric: tabular-nums; }
.ospark svg { display: block; width: 100%; max-width: 22rem; min-height: 80px; height: auto; overflow: visible; }
.ospark polyline { fill: none; stroke: var(--ok); stroke-width: 1.5; }
.ospark line { stroke: var(--line); stroke-width: 1; }
.ospark circle { fill: var(--ok); }
.ospark text { font-size: 10px; fill: var(--muted); }
.otab td:first-child { white-space: nowrap; }
@media (max-width: 899px) {
  .wkd { font-size: .88rem; }
  .wktot { font-size: .78rem; }
  .hmr { grid-template-columns: 4.3rem repeat(24, minmax(0, 1fr)); gap: 1px; }
  .hm { gap: 1px; }
  .hmd { font-size: .64rem; }
  .hmc { font-size: .56rem; }
  .orow { grid-template-columns: 9rem minmax(0, 1fr) 2.8rem 2rem; gap: .4rem; }
  .orow .ok { white-space: normal; line-height: 1.15; }
  .orow .ok small { display: block; }
  .opair { grid-template-columns: 1fr; }
  body.insights #insights { padding: .8rem .8rem 2.5rem; }
  .ihead { flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
  .ihead h1 { font-size: 1.35rem; }
  .ihead .seg { order: 1; flex-basis: 100%; }
  .seg button { flex: 1; }
  .nums { grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
  .nums dd { font-size: 1.3rem; }
  .heat { grid-template-columns: 2rem repeat(24, minmax(0, 1fr)); gap: 1px; font-size: .6rem; }
  .strip { padding-left: 2.1rem; height: 4rem; }
  .strip:has(> button:nth-child(15)) > button:nth-last-child(even):not(.on) span { visibility: hidden; }
  .hleg { margin-left: 2.1rem; }
  .rt .tk { min-width: 4rem; width: 25%; }
  .bh, .br { grid-template-columns: 3.8rem minmax(0, 1fr) 2.8rem 8.8rem; gap: .4rem; }
  .pair { grid-template-columns: 1fr; }
}

dialog { border: 2px solid var(--fg); background: var(--bg); color: var(--fg); padding: 1.4rem 1.6rem; max-width: 34rem; width: calc(100% - 2rem); }
dialog::backdrop { background: rgba(0, 0, 0, .35); }
dialog h2 { margin: 0 0 1rem; font-size: 1.3rem; }
dialog label, :where(#settings) label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: .6rem 0; font-size: 1.05rem; }
dialog input, dialog select, dialog textarea, :where(#settings) input, :where(#settings) select { font: inherit; padding: .35rem .5rem; background: var(--bg); color: var(--fg); border: 1px solid var(--line); }
dialog input, :where(#settings) input { width: 5rem; }
dialog input[type="checkbox"], :where(#settings) input[type="checkbox"] { width: auto; }
dialog textarea { width: 100%; font-size: 1.05rem; }
dialog dl, :where(#settings) dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1rem 0; font-size: .95rem; }
dialog dt, :where(#settings) dt { color: var(--muted); }
dialog dd, :where(#settings) dd { margin: 0; overflow-wrap: anywhere; }
.uadd { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; margin: .4rem 0; }
.uadd label { flex-direction: column; align-items: stretch; gap: .2rem; margin: 0; font-size: .85rem; color: var(--muted); }
.uadd input:not(.vh) { width: 9rem; color: var(--fg); }
.setrow { margin: .6rem 0; }
#userlist td { vertical-align: middle; }
#userlist input[type="password"] { width: 7rem; padding: .2rem .4rem; font-size: .85rem; }
#userlist tr.off td.uname { color: var(--muted); text-decoration: line-through; }
#edstatssince { width: auto; max-width: 100%; }
@media (max-width: 599px) {
  :where(#settings) label { flex-wrap: wrap; }
  #userlist, #userlist tbody, #userlist td { display: block; }
  #userlist tr:first-child { display: none; }
  #userlist tr { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .8rem; padding: .6rem 0; border-top: 1px solid var(--line); }
  #userlist td { padding: 0; border: 0; }
  #userlist td:empty { display: none; }
  #userlist td.uname { grid-column: 1 / -1; font-weight: 600; }
  #userlist td[data-h]::before { content: attr(data-h); display: block; color: var(--muted); font-size: .75rem; }
  #userlist td.upwc { grid-column: 1 / -1; display: flex; gap: .4rem; }
  #userlist td.upwc input { flex: 1; width: auto; min-width: 0; }
}
#usermsg, #pwmsg { min-height: 1em; text-align: left; margin: .2rem 0; }
#usermsg.err, #pwmsg.err, #seterr, #setloaderr { color: var(--accent); }
.actions { display: flex; gap: .6rem; align-items: center; margin-top: 1rem; }
.actions button { padding: .45rem 1rem; border: 1px solid var(--fg); background: none; }
.actions .primary { background: var(--fg); color: var(--bg); }
#reportok { font-weight: 700; }
#aipause { max-width: 24rem; }
#whatsnew { max-width: 560px; max-height: calc(100vh - 2rem); }
#whatsnew[open] { display: flex; flex-direction: column; }
#whatsnew form { display: flex; flex-direction: column; min-height: 0; }
#wnlist { overflow-y: auto; min-height: 0; border-top: 1px solid var(--line); }
#wnlist section { padding: .7rem 0; border-bottom: 1px solid var(--line); }
#wnlist h3 { margin: 0 0 .35rem; font-size: 1.05rem; display: flex; gap: .6rem; align-items: baseline; }
#wnlist time { color: var(--muted); font-weight: 400; font-size: .9rem; font-variant-numeric: tabular-nums; }
#wnlist ul { margin: 0; padding-left: 1.1rem; }
#wnlist li { margin: .25rem 0; line-height: 1.4; }
#aipause p { margin: .4rem 0; font-size: 1.05rem; }
#aipausedates { font-weight: 700; font-variant-numeric: tabular-nums; }

#statusbar { display: flex; align-items: center; gap: .8rem; padding: .3rem 1rem; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--muted); }
#statusbar.warn { color: var(--accent); font-weight: 600; }
#statusbar.stuck { color: var(--amber); font-weight: 600; }
#statusbar .tb { padding: .15rem .6rem; font-size: .9rem; flex: none; white-space: nowrap; }
#cachesize { flex: none; }
#synctext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-variant-numeric: tabular-nums; }

@media (max-width: 899px) {
  body.reading #statusbar { display: none; }
  #statusbar { padding: .25rem .7rem; font-size: .85rem; }
  #main { grid-template-columns: 1fr; }
  #divider { display: none; }
  #artcol { display: none; }
  #art { padding: 1rem 1.1rem 3rem; }
  #morecue { margin: -3.2rem -1.1rem -3rem; bottom: -3rem; }
  body.reading #list, body.reading #top { display: none; }
  body.reading #artcol { display: flex; }
  body.reading #tapbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; border-top: 1px solid var(--line);
    padding: .4rem max(.6rem, env(safe-area-inset-right)) max(.4rem, env(safe-area-inset-bottom)) max(.6rem, env(safe-area-inset-left)); }
  #tapbar .tb { min-height: 48px; font-size: 1.05rem; color: var(--fg); }
  #tapbar .tb:disabled { opacity: .35; }
  #top { padding: .3rem .6rem; gap: .4rem; }
  #qbox { flex: 1 1 0; min-width: 0; }
  #filters, #newbadge { order: 1; }
  #filters { flex-basis: 100%; }
  #filters:empty { display: none; }
  #artbody h1 { font-size: 1.6em; }
  #artbody .txt p, #artbody .signoff { font-size: 1.15em; }
}

#entry { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 60% 1fr; align-items: center;
  gap: 4vw; padding: 5vh 5vw; background: #f4f1ea; color: #1f3a5f; }
.entered #entry { display: none; }
#frame { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(31, 58, 95, .28), 0 2px 8px rgba(0, 0, 0, .12); background: #d8d2c6; }
.paint { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity 2.5s ease; animation: kenburns 30s ease-in-out infinite alternate; }
.paint.on { opacity: 1; }
.paint:nth-of-type(2) { animation-delay: -15s; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-3%, -2%); } }
#mist { position: absolute; inset: -20%; pointer-events: none; filter: blur(28px); opacity: .45; mix-blend-mode: screen;
  background: radial-gradient(28% 18% at 20% 70%, rgba(255,255,255,.55), transparent 70%),
              radial-gradient(22% 14% at 55% 60%, rgba(255,255,255,.4), transparent 70%),
              radial-gradient(30% 20% at 85% 75%, rgba(255,255,255,.35), transparent 70%);
  animation: mist 40s linear infinite alternate; }
@keyframes mist { from { transform: translate(-6%, 2%); } to { transform: translate(8%, -4%); } }
#side { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
#mark { font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
#today { font-size: 1.5rem; color: #3d4a5c; }
#login { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.5rem; width: min(22rem, 100%); }
#login input { font: inherit; font-size: 1.2rem; padding: .55rem .8rem; border: 1px solid #b9b2a4; border-radius: 6px;
  background: #fffdf8; color: #1f3a5f; }
#login input:focus { outline: 2px solid #1f3a5f; outline-offset: 0; }
#signin { font-size: 1.4rem; font-weight: 700; padding: .6rem 1rem; border: 0; border-radius: 6px; background: #1f3a5f; color: #f4f1ea; }
#signin:focus-visible { outline: 3px solid #b3261e; outline-offset: 3px; }
#loginerr { min-height: 1.4em; color: #b3261e; font-weight: 600; }
.account { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.about { margin-top: .8rem; font-size: .95rem; }
.about .lbl { color: var(--muted); }
#news { border: 1px solid var(--line); padding: .2rem .8rem; font-size: .9rem; }
#news h4 { margin: .6rem 0 .2rem; font-size: .9rem; }
#news ul { margin: 0 0 .4rem; padding-left: 1.1rem; }
#news li { margin: .15rem 0; }
@media (max-width: 899px) {
  #entry { grid-template-columns: 1fr; align-content: start; padding: 4vh 5vw; overflow-y: auto; }
  #side { align-items: stretch; }
  #mark { font-size: 3.2rem; }
  #login { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .paint, #mist { animation: none; }
  .paint { transition: none; }
}

#reviews { display: none; }
body.reviews #main, body.reviews #filters, body.reviews #newbadge { display: none; }
body.reviews #reviews { display: block; flex: 1; min-height: 0; overflow-y: auto; padding: 1.2rem 2rem 3rem; outline: none; }
#reviews .nums { margin-bottom: 1.4rem; }
#reviews .nums small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.rvtab { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .9rem; }
.rvtab th { text-align: left; color: var(--muted); font-size: .8rem; font-weight: 600; padding: 0 .6rem .3rem 0; white-space: nowrap; }
.rvtab td { padding: .35rem .6rem .35rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.rvtab td small { color: var(--muted); }
.rvtab a { color: var(--fg); }
.rvtab tr[data-rid] { cursor: pointer; }
.rvtab .st.error { color: var(--accent); }
.rvtab .st.running { color: var(--amber); }
.rvtab tr.raw pre { margin: 0; max-height: 24rem; overflow: auto; background: var(--panel); padding: .6rem .8rem; font-size: .8rem; white-space: pre-wrap; }
.rvtab.rvdropped { margin: 0 0 .6rem; }
.rvtab.rvdropped td { border-top: 1px solid var(--line); }
@media (hover: hover) { .rvtab tr[data-rid]:hover td { background: var(--panel); } }
.rvbar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem .7rem; margin-left: auto; font-size: .9rem; }
.rvbar[hidden] { display: none; }
.rvbar .tb { padding: .15rem .7rem; }
.rvbtn { font-variant-numeric: tabular-nums; }
.rvbtn.busy { border-style: dashed; color: var(--muted); }
.rvq[aria-pressed="true"] { background: var(--sel); }
.rvmsg { color: var(--muted); }
.rvmsg.err { color: var(--accent); }
/* art/no-issues-stamp.webp is 480x127 */
.rvmsg.stamp { display: block; font-size: calc(1rem * var(--scale, 1)); height: 1.9em; aspect-ratio: 480 / 127; margin-block: -.3em; margin-inline-end: .15em;
  background: var(--stamp); -webkit-mask: url(art/no-issues-stamp.webp) center / contain no-repeat; mask: url(art/no-issues-stamp.webp) center / contain no-repeat;
  transform: rotate(-6deg); }
.rvmsg.stamp.fresh { animation: stamp-in 220ms ease-out both; }
@keyframes stamp-in { from { transform: rotate(-6deg) scale(1.4); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rvmsg.stamp.fresh { animation: none; } }
@media (max-width: 599px) {
  #artbody { position: relative; }
  .rvmsg.stamp { position: absolute; top: calc(var(--title-top, 0px) + .35em); right: .1em; height: 1.3em; margin: 0; z-index: 1; pointer-events: none;
    mix-blend-mode: multiply; }
  @supports (color: color-mix(in oklab, red, red)) { .rvmsg.stamp { background: color-mix(in srgb, var(--stamp) 85%, transparent); } }
  :root[data-theme="dark"] .rvmsg.stamp { mix-blend-mode: screen; }
}
.vh { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rv { border-radius: 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rv.hi { background: rgba(217, 48, 37, .22); background: color-mix(in oklab, #d93025 22%, transparent); box-shadow: inset 0 -2px #c5221f; }
.rv.lo { background: rgba(242, 194, 0, .3); background: color-mix(in oklab, #f2c200 30%, transparent); box-shadow: inset 0 -2px #d9a400; }
.rv.q { outline: 2px solid #d9a400; outline-offset: 1px; }
.rv.cur { outline: 2px solid var(--fg); outline-offset: 1px; }
:root[data-theme="dark"] .rv.hi { background: rgba(229, 83, 75, .3); background: color-mix(in oklab, #e5534b 30%, transparent); box-shadow: inset 0 -2px #e5534b; }
:root[data-theme="dark"] .rv.lo { background: rgba(224, 178, 92, .26); background: color-mix(in oklab, #e0b25c 26%, transparent); box-shadow: inset 0 -2px #e0b25c; }
#rvpanel { flex: none; max-height: 40%; overflow-y: auto; padding: .5rem 1.2rem .7rem; border-top: 2px solid var(--fg);
  background: var(--panel); font-size: calc(1rem * var(--scale, 1)); }
#rvpanel[hidden] { display: none; }
#rvpanel .rvhead { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
#rvpanel .rvhead .tb { padding: .1rem .6rem; font-size: .9em; }
#rvpanel .rvprev, #rvpanel .rvnext { font-size: 1.2em; line-height: 1; padding: .05rem .55rem; }
#rvpanel .rvsp { flex: 1; }
#rvpanel .rvf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; font-size: 1.2em; line-height: 1.45; }
#rvpanel .rvsev { width: .6em; height: .6em; border-radius: 50%; align-self: center; }
#rvpanel .rvsev.hi { background: #c5221f; }
#rvpanel .rvsev.lo { background: #d9a400; }
#rvpanel .rvt { text-decoration: line-through; color: var(--muted); }
#rvpanel .rvfix { font-weight: 700; }
#rvpanel .rvk { font-size: .7em; padding: .05rem .45rem; border: 1px solid var(--line); color: var(--muted); }
#rvpanel .rvr { flex-basis: 100%; order: 9; }
#rvpanel .rvn { min-width: 2.6rem; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
#rvpanel #rvclose { font-size: 1.1em; line-height: 1; padding: .05rem .5rem; }
.rvdot { display: inline-block; min-width: 1.1rem; margin-top: .25rem; padding: 0 .3rem; border-radius: .6rem; background: #c5221f; color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 1.1rem; text-align: center; }
.rvdot:not(.zero) { box-sizing: border-box; height: 1.1rem; min-width: 1.1rem; padding: 0 .25rem; border-radius: .55rem; font-variant-numeric: tabular-nums; }
@supports (text-box: trim-both cap alphabetic) {
  .rvdot:not(.zero) { align-content: center; line-height: 1; text-box: trim-both cap alphabetic; }
}
.rvdot.zero { min-width: .5rem; width: .5rem; height: .5rem; padding: 0; background: var(--line); }
:root[data-theme="dark"] .rvdot { background: #e5534b; color: #1e1d1b; }
.rvdot.zero, :root[data-theme="dark"] .rvdot.zero { width: auto; height: auto; background: none; color: var(--stamp); font-size: .8rem; line-height: .5rem; }
.rvdot.zero::before { content: "✓"; font-weight: 700; }
@media (max-width: 899px) {
  body.reviews #reviews { padding: .8rem .8rem 2.5rem; overflow-x: auto; }
  #rvpanel { padding: .5rem 1.1rem .6rem; }
  #rvpanel .rvf { font-size: 1.15em; }
}

#editor { display: none; --ed-c: #c5221f; --ed-s: var(--k-new); --ed-t: #1b7f79; font-size: calc(1rem * var(--scale, 1)); }
:root[data-theme="dark"] #editor { --ed-c: #e5534b; --ed-t: #5fb3ac; }
body.editor #main, body.editor #filters, body.editor #newbadge, body.editor #statusbar { display: none; }
body.editor #editor { display: flex; flex-direction: column; flex: 1; min-height: 0; }
body.editor.insights #editor { display: none; }
.edhead { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line); }
#edprog { position: absolute; left: 0; right: 0; bottom: -1px; display: grid; gap: 1px; pointer-events: none; }
#edprog[hidden], .edbar[hidden] { display: none; }
.edbar { height: 3px; background: var(--line); }
@supports (color: color-mix(in oklab, red, red)) { .edbar { background: color-mix(in oklab, var(--sc) 14%, transparent); } }
.edbar.cor { --sc: var(--ed-c); }
.edbar.sty { --sc: var(--ed-s); }
.edbar i { display: block; height: 100%; background: var(--sc); transition: width .5s linear; }
.edhead .tb, .edfoot .tb { padding: .3rem .8rem; }
.edhead .tb:disabled, .edfoot .tb:disabled { opacity: .4; cursor: default; }
#edanalyze { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; min-width: 6.5rem; }
#edanalyze.busy { background: none; color: var(--muted); border-style: dashed; }
.edsp { flex: 1; }
.edbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 15rem minmax(0, 1fr) minmax(18rem, 26rem); }
#eddrafts { display: block; border-right: 1px solid var(--line); overflow-y: auto; padding: .7rem .6rem; }
#ednew { width: 100%; margin-bottom: .6rem; }
#edlist { list-style: none; margin: 0; padding: 0; }
.edday { padding: .7rem .5rem .25rem; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.edday:first-child { padding-top: 0; }
.edday { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.edhist { display: inline-flex; align-items: flex-end; gap: 1px; height: .8rem; flex: none; }
.edhist i { width: 3px; background: var(--muted); }
.edtime { float: right; margin-left: .5rem; color: var(--fg); }
.edmedal { margin-right: .3rem; }
.edrow { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.edrow.copied .edtt { color: var(--muted); }
.eddel { flex: none; border: 0; background: none; color: var(--muted); padding: 0 .45rem; font-size: 1.1rem; cursor: pointer; }
@media (hover: hover) { .eddel { visibility: hidden; } .edrow:hover .eddel, .eddel:focus-visible { visibility: visible; } .eddel:hover { color: var(--accent); } }
.edplace { display: inline-block; margin-right: .4rem; padding: 0 .3rem; border: 1px solid var(--line); border-radius: 2px; font-size: .75rem; }
.eddraft { display: block; flex: 1; min-width: 0; text-align: left; border: 0; border-left: 4px solid transparent; background: none; padding: .45rem .5rem; }
.eddraft.cur { background: var(--sel); border-left-color: var(--fg); }
.eddraft .edtt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .95rem; }
.eddraft .edst { display: block; }
.eddraft small { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .eddraft:hover { background: var(--panel); } }
.edtext { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
#edtitle { display: flex; align-items: baseline; gap: .8rem; padding: .5rem 1rem; border-bottom: 1px solid var(--line); font-weight: 600; }
#edtitle[hidden] { display: none; }
#edtitle .edtl { flex: none; font-size: .75rem; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
#edtitletext { flex: 1; min-width: 0; user-select: text; }
#edtitle .tb { flex: none; }
#edtitle.nohead .edtl, #edtitle.nohead .tb { display: none; }
.edring { position: relative; flex: none; align-self: center; display: inline-grid; place-items: center; width: 38px; height: 38px; }
.edring[hidden] { display: none; }
.edring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.edring circle { fill: none; stroke-width: 3; }
.edring .trk { stroke: var(--line); }
.edring .arc { stroke: var(--fg); stroke-dasharray: 0 1; }
.edring.over .trk { stroke: var(--amber); stroke-opacity: .3; }
.edring.over .arc { stroke: var(--amber); }
.edring.done .trk { stroke: var(--ok); fill: var(--ok); fill-opacity: .12; }
.edring.done .arc { stroke: var(--ok); }
.edring b { position: relative; font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.edring.over b { color: var(--amber); }
.edring.done b { color: var(--ok); }
@media (prefers-reduced-motion: reduce) { .edring svg { display: none; } }
.edwrap { position: relative; flex: 1; min-height: 0; display: flex; background: var(--bg); }
/* the marks layer and the textarea must lay text out alike: same box, font, wrapping and scrollbar gutter */
#edta, #edhl { box-sizing: border-box; margin: 0; padding: 1rem 1.3rem; border: 0; font-family: inherit; font-size: 1.1em; font-weight: 400; line-height: 1.6;
  letter-spacing: normal; word-spacing: normal; tab-size: 8; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; scrollbar-gutter: stable; }
#edta { position: relative; z-index: 1; flex: 1; width: 100%; min-height: 0; outline: none; background: transparent; color: var(--fg); caret-color: var(--fg); overflow-y: auto; resize: none; }
#edhl { position: absolute; inset: 0; overflow: hidden; color: transparent; pointer-events: none; user-select: none; }
#edres[hidden] { display: none; }
.edfoot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding: .4rem 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
#edcount .over { color: var(--accent); font-weight: 600; }
#edmsg.err { color: var(--accent); font-weight: 600; }
.edside { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--panel); }
#edres { flex: 1; min-height: 0; overflow-y: auto; padding: .8rem 1rem 2rem; }
#ednav { --sc: var(--ed-c); padding: .5rem 1rem; border-bottom: 2px solid var(--sc); background: var(--bg); }
.ednrow { display: flex; align-items: center; gap: .4rem; }
.ednd, .ednall { display: none; }
#editor.narrow .edbody { grid-template-columns: 15rem minmax(0, 1fr); }
#editor.narrow .edside { display: contents; }
#editor.narrow { --ed-bottom: max(var(--navh, 0px), env(safe-area-inset-bottom, 0px)); padding-bottom: var(--ed-bottom); }
#editor.narrow:has(#edthinking.open) { padding-bottom: calc(var(--ed-bottom) + 36px); }
#editor.narrow #ednav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; padding: .5rem 1rem calc(.5rem + env(safe-area-inset-bottom)); border-top: 3px solid var(--sc); border-bottom: 0;
  box-shadow: 0 -2px 10px rgb(0 0 0 / .12); }
#editor.narrow #ednav.lo { --sc: #d9a400; }
:root[data-theme="dark"] #editor.narrow #ednav.lo { --sc: #e0b25c; }
#editor.narrow .ednd { display: block; max-width: 60em; padding: 0 0 .45rem .6rem; margin-bottom: .45rem; border-left: 3px solid var(--sc); }
#editor.narrow #ednav.sty .ednd { border-left-style: dotted; }
#editor.narrow .ednd .edwhy { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#editor.narrow .ednall { display: inline-block; }
#editor.narrow .ednall[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
#editor.narrow #edres { display: none; }
#editor.narrow.edover #edres:not([hidden]) { display: block; position: fixed; left: 0; right: 0; top: 0; bottom: var(--navh, 0); z-index: 4; overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel); border-top: 0; padding: .8rem max(1rem, calc((100% - 46em) / 2)) 2rem; }
#ednav.sty { --sc: var(--ed-s); }
#ednav.tst { --sc: var(--ed-t); }
#ednav[hidden] { display: none; }
#ednav .tb { padding: .2rem .7rem; }
#ednav .tb:disabled { opacity: .4; cursor: default; }
.ednprev, .ednnext { font-size: 1.2rem; line-height: 1; }
#ednav .edundo, #ednav .edredo { display: none; font-size: 1.2rem; line-height: 1; }
.edrev { border: 0; background: none; padding: 0; color: var(--fg); text-decoration: underline; text-underline-offset: .2em; font-size: .9rem; }
.edrev:disabled { color: var(--accent); text-decoration: none; cursor: default; }
.ednpos { min-width: 3.2rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sc); }
.edsec + .edsec { margin-top: 1.6rem; }
.edsh { display: flex; align-items: center; gap: .6rem; padding-bottom: .35rem; border-bottom: 2px solid var(--sc); margin-bottom: .5rem; }
.edsec.cor { --sc: var(--ed-c); }
.edsec.sty { --sc: var(--ed-s); }
.edsec.tst { --sc: var(--ed-t); }
.edsh h2 { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sc); }
.edcnt { font-weight: 700; font-variant-numeric: tabular-nums; }
.edtime { color: var(--muted); font-variant-numeric: tabular-nums; }
.edall { margin-left: auto; padding: .1rem .6rem; font-size: .85rem; }
.edn { margin: .3rem 0; color: var(--muted); }
.edn.err { color: var(--accent); }
.edfs { list-style: none; margin: 0; padding: 0; }
.edf { padding: .55rem 0 .6rem .7rem; border-bottom: 1px solid var(--line); border-left: 3px solid var(--sc); }
.edf.lo { border-left-color: #d9a400; }
:root[data-theme="dark"] .edf.lo { border-left-color: #e0b25c; }
.edsec.sty .edf { border-left-style: dotted; }
.edf.cur { background: var(--sel); outline: 2px solid var(--sc); outline-offset: -2px; }
#edres .edf { cursor: pointer; }
.edf.applied, .edf.ignored, .edf.broken, .edf.unplaced { border-left-color: var(--line); }
.edf.applied .edfx, .edf.ignored .edfx { color: var(--muted); }
.edfx { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .45rem; font-size: 1.05rem; line-height: 1.4; }
.edw { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); }
@supports (color: color-mix(in oklab, red, red)) { .edw { text-decoration-color: color-mix(in oklab, var(--muted) 70%, transparent); } }
.edar { color: var(--muted); }
.edfm { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.edk { font-size: .75rem; padding: 0 .4rem; border: 1px solid var(--line); color: var(--muted); border-radius: 2px; }
.edk.q { border-color: #d9a400; color: var(--amber); }
.edk.new { border-color: var(--sc); color: var(--fg); }
.edhid { border: 0; background: none; padding: 0; color: var(--muted); font-size: .85rem; text-decoration: underline; cursor: pointer; }
.edst { font-size: .75rem; font-weight: 700; color: var(--fg); }
.edf.broken .edst, .edf.unplaced .edst { color: var(--accent); }
.edwhy { margin: .3rem 0 0; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.edfb { display: flex; gap: .4rem; margin-top: .4rem; }
.edfb .tb { padding: .15rem .8rem; font-size: .9rem; }
.edap { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.em { border-radius: 2px; }
.em.c.hi { background: rgba(217, 48, 37, .2); background: color-mix(in oklab, #d93025 20%, transparent); box-shadow: inset 0 -2px #c5221f; }
.em.c.lo { background: rgba(242, 194, 0, .28); background: color-mix(in oklab, #f2c200 28%, transparent); box-shadow: inset 0 -2px #d9a400; }
:root[data-theme="dark"] .em.c.hi { background: rgba(229, 83, 75, .3); background: color-mix(in oklab, #e5534b 30%, transparent); box-shadow: inset 0 -2px #e5534b; }
:root[data-theme="dark"] .em.c.lo { background: rgba(224, 178, 92, .26); background: color-mix(in oklab, #e0b25c 26%, transparent); box-shadow: inset 0 -2px #e0b25c; }
.em.s { text-decoration: underline dotted var(--ed-s); text-decoration-thickness: 2px; text-underline-offset: .28em; }
.em.amb:not(.cur) { opacity: .55; }
.em.t:not(.c) { background: rgba(60, 150, 145, .16); box-shadow: inset 0 -2px var(--ed-t); }
.em.t.cur:not(.c):not(.s) { outline-color: var(--ed-t); background: rgba(60, 150, 145, .24); }
.cand { --sc: var(--ed-c); border-radius: 2px; box-shadow: inset 0 -2px var(--sc); animation: edcand 1.6s ease-in-out var(--ph, 0s) infinite; }
@supports (color: color-mix(in oklab, red, red)) {
  .em.t:not(.c) { background: color-mix(in oklab, var(--ed-t) 14%, transparent); }
  .em.t.cur:not(.c):not(.s) { background: color-mix(in oklab, var(--ed-t) 22%, transparent); }
  .cand { box-shadow: inset 0 -2px color-mix(in oklab, var(--sc) 55%, transparent); }
}
.cand.s { --sc: var(--ed-s); }
.cand.out { animation: edout .4s ease-out both; }
.em.settle { animation: edsettle .6s ease-out both; }
/* the reading lamp: a warm band on the paragraph being read */
.lamp { background: rgba(242, 194, 0, .11); background: color-mix(in oklab, #f2c200 11%, transparent); }
:root[data-theme="dark"] .lamp { background: rgba(224, 178, 92, .09); background: color-mix(in oklab, #e0b25c 9%, transparent); }
.lamp.pulse:not(.cand):not(.settle) { animation: edlamp .9s ease-out var(--lp, 0s) both; }
@keyframes edcand { 50% { box-shadow: inset 0 -2px transparent; } }
@keyframes edout { to { box-shadow: inset 0 -2px transparent; } }
@keyframes edsettle { from { outline: 3px solid var(--ed-c); } }
@supports (color: color-mix(in oklab, red, red)) {
  @keyframes edcand { 50% { box-shadow: inset 0 -2px color-mix(in oklab, var(--sc) 15%, transparent); } }
  @keyframes edsettle { from { outline: 3px solid color-mix(in oklab, var(--ed-c) 35%, transparent); } }
}
@keyframes edlamp { from { background: rgba(242, 194, 0, .3); background: color-mix(in oklab, #f2c200 30%, transparent); } }
@media (prefers-reduced-motion: reduce) { .cand, .cand.out, .em.settle { animation: none; } .edbar i { transition: none; } }
.em.cur { outline: 2px solid var(--ed-c); outline-offset: 1px; background: rgba(213, 60, 55, .3); }
.em.s.cur:not(.c) { outline-color: var(--ed-s); background: rgba(80, 120, 180, .2); }
@supports (color: color-mix(in oklab, red, red)) {
  .em.cur { background: color-mix(in oklab, var(--ed-c) 34%, transparent); }
  .em.s.cur:not(.c) { background: color-mix(in oklab, var(--ed-s) 18%, transparent); }
}
#edpdlg { max-width: 52rem; }
#toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translateX(-50%); max-width: min(36rem, calc(100% - 2rem)); padding: .7rem 1.1rem;
  background: var(--fg); color: var(--bg); border-radius: 3px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; cursor: pointer;
  box-shadow: 0 4px 16px rgb(0 0 0 / .25); }
#toast[hidden] { display: none; }
#toast.err { background: var(--accent); color: var(--bg); }
#toast .tact { margin-left: .8rem; padding: .1rem .6rem; border: 1px solid var(--bg); border-radius: 2px; background: none; color: inherit; font: inherit; cursor: pointer; }
#edpdlg .edph { display: flex; align-items: baseline; gap: 1rem; }
#edpdlg .edph h2 { margin-bottom: .6rem; }
#edpcur { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
#edptext { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.45; }
#edpdlg .actions { flex-wrap: wrap; }
#edpmsg { color: var(--muted); font-size: .9rem; }
#edpmsg.err { color: var(--accent); font-weight: 600; }
#edpdlg h3 { margin: 1rem 0 .4rem; font-size: .8rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
#edpvers tr[data-pid] { cursor: pointer; }
#edpvers tr.cur td { font-weight: 700; }
@media (hover: hover) { #edpvers tr[data-pid]:hover td { background: var(--panel); } }
@media (max-width: 899px) {
  body.editor #editor { overflow-y: auto; }
  .edhead { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: .45rem .6rem; gap: .4rem; }
  .edhead .tb { padding: .35rem .6rem; min-height: 40px; }
  .edhead .edsp { display: none; }
  .edbody { display: block; flex: none; }
  #eddrafts { max-height: 30dvh; border: 0; border-bottom: 1px solid var(--line); }
  .edwrap { flex: none; }
  #edta, #edhl { padding: .8rem .9rem; font-size: 1.15em; }
  #edta { min-height: 45dvh; field-sizing: content; overflow: visible; } /* c109: without field-sizing the textarea scrolls inside its min-height */
  .edfoot { padding: .4rem .9rem; }
  .edside { display: block; border-left: 0; }
  #edres { border-top: 2px solid var(--fg); padding: .7rem .9rem 2rem; overflow: visible; }
  #editor.narrow #ednav { padding: .4rem .6rem calc(.4rem + env(safe-area-inset-bottom)); }
  .ednrow { flex-wrap: wrap; }
  #ednav .tb { min-height: 44px; min-width: 44px; }
  #ednav .edundo, #ednav .edredo { display: inline-block; }
  .edfb .tb { min-height: 40px; padding: .2rem 1rem; }
  #edpdlg { width: calc(100% - 1rem); padding: 1rem; }
}


#edlist .eddraft .edst { display: flex; align-items: center; gap: .2rem; min-height: 20px; }
#edlist .rvdot, #edlist .rvdot.zero { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 18px; height: 18px; line-height: 1; vertical-align: middle; text-box: normal; margin: 0; padding: 0 4px; font-size: 12px; }
#edlist .rvdot.zero { width: 18px; padding: 0; background: none; }
#edlist .rvdot.zero::before { line-height: 1; }
.settingnote { color: var(--muted); font-size: .8rem; margin: -.3rem 0 .9rem; text-align: right; }
#edthinking { --thinking-height: 36px; position: relative; flex: none; height: 0; transition: height 240ms ease; }
.edthinkbar { position: absolute; inset: auto 0 0; height: var(--thinking-height); display: flex; align-items: center; gap: 12px; box-sizing: border-box; padding: 3px 10px; border-top: 2px solid #6ba777; background: #222923; color: #e5eee4; font: 14px/24px Arial, sans-serif; overflow: hidden; opacity: 0; clip-path: inset(100% 0 0); visibility: hidden; pointer-events: none; transition: opacity 200ms ease, clip-path 240ms ease, visibility 0s 240ms; }
#edthinking.open { height: var(--thinking-height); }
#editor.narrow #edthinking { position: fixed; left: 0; right: 0; bottom: var(--ed-bottom); z-index: 3; }
#editor.edover #edthinking { visibility: hidden; }
#edthinking.open .edthinkbar { opacity: 1; clip-path: inset(0); visibility: visible; pointer-events: auto; transition-delay: 0s; }
:root[data-theme="dark"] .edthinkbar { background: #151c17; }
.edthinklabel { white-space: nowrap; font-size: 13px; }
.edthinkwindow { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent); }
.edthinktape { width: max-content; white-space: pre; font: 14px/24px ui-monospace, SFMono-Regular, Consolas, monospace; will-change: transform; }
.edthinkcontext { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { #edthinking, .edthinkbar { transition: none; } .edthinktape { will-change: auto; } }
#osince { margin-left: .5em; font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--muted); }
#edlist .edolder { padding: .5rem .5rem .25rem; }

/* Insights tabs */
.itabs { display: flex; gap: 0; margin: 0 0 1.2rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.itabs button { font: inherit; padding: .45rem 1rem; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); cursor: pointer; }
.itabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); font-weight: 600; }
.ipane {
  --q0: #ebe6db; --q1: #c4dabd; --q2: #8cbc86; --q3: #4f9150; --q4: #2e6b30; --bar: #2e6b30;
  --c1: #2e6b30; --c2: #a33a2a; --c3: #2f5d8a; --c4: #8a6a2a; --c5: #6a5a86; --c6: #2a7270;
  max-width: 70em; font-size: .95rem;
}
:root[data-theme="dark"] .ipane {
  --q0: #2e2d29; --q1: #304632; --q2: #426a42; --q3: #619b63; --q4: #8cc08e; --bar: #8cc08e;
  --c1: #8cc08e; --c2: #e08a78; --c3: #86aed6; --c4: #d2b073; --c5: #ab9cc8; --c6: #7cc2bf;
}
.ipane a { color: inherit; }
.ipane h2 { font-size: 1.1em; margin: 1.8em 0 .6em; }
.ipane h3 { font-size: 1em; margin: 1.2em 0 .4em; }
.ipane .unav { display: flex; flex-wrap: wrap; gap: .4em 1.5em; margin: 0 0 1em; }
.ipane .unav span { color: var(--muted); margin-right: .3em; }
.ipane .unav a, .ipane .unav b { display: inline-block; padding: .2em .6em; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; margin-right: .3em; }
.ipane .unav b { border-color: var(--fg); background: var(--fg); color: var(--bg); font-weight: 600; }
.ipane table { border-collapse: collapse; margin: 0 0 1em; display: block; overflow-x: auto; }
.ipane td, .ipane th { padding: .25em .8em; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ipane td:first-child, .ipane th:first-child { text-align: left; }
.ipane #edrejects td:nth-child(2), .ipane #edrejects th:nth-child(2) { text-align: left; white-space: normal; }
.ipane td.nocopy { color: var(--muted); }
.ipane th { font-weight: 600; }
.ipane.system td, .ipane.system th { text-align: left; white-space: normal; }
.ipane svg { display: block; width: 100%; height: auto; }
.ipane svg text { font-size: 10px; fill: var(--muted); }
.ipane .wkh, .ipane .bars, .ipane .dots { max-width: 40em; }
.ipane .bars text, .ipane .days text { font-size: 12px; }
.ipane .days .name { font-size: 13px; fill: var(--fg); }
.ipane .q0 { fill: var(--q0); } .ipane .q1 { fill: var(--q1); } .ipane .q2 { fill: var(--q2); } .ipane .q3 { fill: var(--q3); } .ipane .q4 { fill: var(--q4); }
.ipane .bar { fill: var(--bar); } .ipane .grid { stroke: var(--line); }
.ipane .key { display: flex; flex-wrap: wrap; gap: .2em 1em; font-size: .8em; color: var(--muted); margin: .4em 0 1em; }
.ipane .key i { display: inline-block; width: .9em; height: .9em; border-radius: 2px; margin-right: .35em; vertical-align: -.1em; }
.ipane .key i.q0 { background: var(--q0); } .ipane .key i.q1 { background: var(--q1); } .ipane .key i.q2 { background: var(--q2); } .ipane .key i.q3 { background: var(--q3); } .ipane .key i.q4 { background: var(--q4); }
.ipane .cnums { display: flex; flex-wrap: wrap; gap: .6em 2.4em; margin: 0 0 1em; }
.ipane .cnums dt { color: var(--muted); font-size: .8em; }
.ipane .cnums dd { margin: 0; font-size: 1.3em; font-weight: 600; font-variant-numeric: tabular-nums; }
.ipane .cnums small { font-size: .65em; font-weight: 400; color: var(--muted); }
.ipane .stack { display: block; height: auto; max-width: 48em; margin: 0; overflow: visible; background: none; border-radius: 0; }
.ipane .stack .hit { fill: transparent; }
.ipane .balline { display: block; max-width: 48em; }
.ipane #balchart .balline + .balline { margin-top: .6em; }
.ipane .balline .seg { fill: none; stroke: var(--k); stroke-width: 1.5; stroke-linejoin: round; } .ipane .balline .pt { fill: var(--k); }
.ipane .bl.c1 { --k: var(--c1); } .ipane .bl.c2 { --k: var(--c2); } .ipane .bl.c3 { --k: var(--c3); } .ipane .key i.bl { background: var(--k); }
.ipane .balline .seg.est { stroke-opacity: .5; } .ipane .balline .read { fill: var(--k); stroke: var(--bg); stroke-width: 1; } .ipane .balline .hit { fill: transparent; }
#antbal { display: flex; gap: .4rem; margin-top: .35rem; font-size: .85rem; }
#antbal input { width: 6.5rem; font: inherit; padding: .25rem .4rem; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 3px; }
#antbal input[aria-invalid="true"] { border-color: var(--c2); }
#antbal button { padding: .25rem .7rem; border: 1px solid var(--fg); border-radius: 3px; background: none; }
.ipane .stack .tip { display: none; fill: var(--fg); }
.ipane .stack .cd:hover .tip, .ipane .stack .cd:focus .tip { display: inline; }
.ipane .stack:hover .cd:focus:not(:hover) .tip { display: none; }
.ipane .stack .cd:focus { outline: none; }
.ipane .stack .cd:hover .hit, .ipane .stack .cd:focus .hit { fill: var(--q0); }
.ipane .s-reviews { fill: var(--c1); background: var(--c1); } .ipane .s-corrections { fill: var(--c2); background: var(--c2); }
.ipane .s-style { fill: var(--c3); background: var(--c3); } .ipane .s-verifier { fill: var(--c4); background: var(--c4); }
.ipane .s-try { fill: var(--c5); background: var(--c5); } .ipane .s-headline { fill: var(--c6); background: var(--c6); }
.ipane .key i.shade { background: var(--fg); }
.ipane .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30em), 1fr)); gap: 0 2em; }
.ipane .none { color: var(--muted); }
.ipane .hours { display: block; width: 100%; max-width: 40em; height: auto; }
.ipane .hours text { font-size: 11px; fill: var(--muted); }
.ipane #costmodel { font-size: .9em; }
.ipane #costmodel th { white-space: normal; vertical-align: bottom; }
.ipane #costmodel td, .ipane #costmodel th { padding: .25em .45em; }
.ipane #visits td { white-space: nowrap; }
.ipane #visits, .ipane #numbers, .ipane #sessions { display: block; overflow-x: auto; }
.ipane pre { white-space: pre-wrap; }

/* Insights → Errors */
.ipane.errors { --pr: var(--u0); --gr: var(--amber); --above: var(--accent); --below: var(--ok); --typical: var(--muted); max-width: 64em; }
.errnav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1rem; }
.errplay { margin-left: auto; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 3px; background: none; color: var(--fg); font-size: .95rem; }
.errchips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .9rem; }
.errchips > span { color: var(--muted); }
.errchips button { display: inline-flex; align-items: center; gap: .4em; padding: .2rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--fg); font-size: .9rem; }
.errchips button i { width: .6em; height: .6em; border-radius: 50%; background: var(--vc); }
.errchips button[aria-pressed="true"] { border-color: var(--fg); background: var(--chip); font-weight: 600; }
.ipane.errors .v-above { --vc: var(--above); } .ipane.errors .v-typical { --vc: var(--typical); } .ipane.errors .v-below { --vc: var(--below); }
.errrank { --cols: 4.5em minmax(8em, 1fr) 3.4em 4em 4.6em 4.4em 4.8em; margin-bottom: 1.5em; font-variant-numeric: tabular-nums; }
.errrank.editors { --cols: 4.5em minmax(8em, 1fr) 3.4em 4em 4.6em 4.4em 4.8em 3.8em 3.4em; }
.er, .erhead { display: grid; grid-template-columns: var(--cols); align-items: center; column-gap: .7em; }
.erhead { align-items: end; padding-bottom: .25em; border-bottom: 1px solid var(--fg); color: var(--muted); }
.erhead > span, .erax i { font-size: .8rem; }
.er > span:nth-child(n+3), .erhead > span:nth-child(n+3) { text-align: right; }
.er:hover, .er.open { background: var(--sel); }
.ern { padding: .3em 0 .3em .3em; border: 0; background: none; color: var(--fg); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.erax { position: relative; height: 2.6em; }
.erax i { position: absolute; bottom: 0; transform: translateX(-50%); font-style: normal; }
.erax .erallab { bottom: 1.4rem; color: var(--fg); white-space: nowrap; }
.ers { position: relative; align-self: stretch; min-height: 1.9em; }
.erall { position: absolute; top: 0; bottom: 0; left: var(--all); width: 1px; background: var(--fg); opacity: .45; }
.erb { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--vc); opacity: .45; }
.erd { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--vc); }
.err { font-weight: 600; }
.eritems { margin: 0 0 .6em; padding: .2em 0 .4em 5.2em; list-style: none; background: var(--sel); font-size: .9em; }
.eritems > li { padding: .4em .6em .4em 0; border-top: 1px solid var(--line); }
.eih { display: flex; flex-wrap: wrap; gap: .2em 1em; }
.eih b { flex: 1; min-width: 12em; font-weight: 600; }
.eih time, .eih span { color: var(--muted); }
.erl { display: flex; flex-wrap: wrap; gap: .2em 1em; margin: .3em 0 0; padding: 0; list-style: none; }
.erl li::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .4em; border-radius: 50%; background: var(--pr); }
.erl li.k-gramatika::before { background: var(--gr); }
.erl li.low::before { background: none; box-shadow: inset 0 0 0 1.5px var(--pr); }
.erl li.k-gramatika.low::before { box-shadow: inset 0 0 0 1.5px var(--gr); }
.erl s { color: var(--muted); }
.ipane .errsvg { max-width: 64em; background: var(--panel); border: 1px solid var(--line); }
.ipane .errsvg text { font-size: 12px; }
.ipane .errsvg .ghost { fill: var(--fg); opacity: .08; font-size: 64px; font-weight: 800; }
.ipane .errsvg .lab { fill: var(--fg); font-size: 14px; font-weight: 700; }
.ipane .errsvg .num { fill: var(--fg); font-size: 13px; }
.ipane .errsvg .scount { fill: var(--fg); font-size: 14px; font-weight: 700; }
.ipane .errsvg .rline, .ipane .errsvg .grid { stroke: var(--line); }
.ipane.errors .k0 { fill: var(--pr); background: var(--pr); } .ipane.errors .k1 { fill: var(--gr); background: var(--gr); }
.ipane.errors .u0 { fill: var(--u0); background: var(--u0); } .ipane.errors .u1 { fill: var(--u1); background: var(--u1); }
.ipane.errors .u2 { fill: var(--u2); background: var(--u2); } .ipane.errors .u3 { fill: var(--u3); background: var(--u3); }
.ipane.errors .u4 { fill: var(--u4); background: var(--u4); } .ipane.errors .u5 { fill: var(--u5); background: var(--u5); }
.ipane.errors .u6 { fill: var(--u6); background: var(--u6); } .ipane.errors .u7 { fill: var(--u7); background: var(--u7); }
.ipane.errors .u8 { fill: var(--u8); background: var(--u8); } .ipane.errors .u9 { fill: var(--u9); background: var(--u9); }
.ipane.errors .key i { border-radius: 50%; }
.errhead { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1.8em 0 .6em; }
.errhead h2 { margin: 0; }
.errstream { position: relative; }
.errstream .sl { stroke: var(--panel); stroke-width: .6; opacity: .88; }
.errstream.on .sl { opacity: .3; }
.errstream.on .sl.hl { opacity: 1; }
.errstream .sph { stroke: var(--fg); stroke-width: 1.5; }
.errtip { position: absolute; z-index: 2; padding: .3em .6em; border: 1px solid var(--line); background: var(--bg); font-size: .8em; white-space: nowrap; pointer-events: none; }
.errbody[aria-busy="true"] { opacity: .6; }
@media (max-width: 640px) {
  .errrank, .errrank.editors { --cols: 3.8em minmax(6em, 1fr) 3.2em; }
  .er > span:nth-child(n+4), .erhead > span:nth-child(n+4) { display: none; }
  .eritems { padding-left: .6em; }
  .errplay { margin-left: 0; }
}

#settings { display: none; }
body.settings #main, body.settings #filters, body.settings #newbadge, body.settings #insights, body.settings #reviews, body.settings #editor { display: none; }
body.settings #settings { display: block; flex: 1; min-height: 0; overflow-y: auto; padding: 1.2rem 2rem 0; outline: none; }
#settings > * { max-width: 42rem; }
.sethead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sethead h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.setgroup { margin: 0 0 1.6rem; }
.setgroup h3 { margin: 0 0 .4rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.setgroup h4 { margin: 1.1rem 0 .3rem; font-size: 1rem; }
.setgroup.srv { padding: .9rem 1.1rem .4rem; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--fg); }
.setgroup.srv h3 { color: var(--fg); }
.setactions { position: sticky; bottom: 0; margin: 0; padding: .7rem 0 1rem; background: var(--bg); border-top: 1px solid var(--line); }
@media (max-width: 899px) {
  body.settings #settings { padding: .8rem .8rem 0; }
  .setgroup.srv { padding: .7rem .7rem .3rem; }
}
#setloaderr { position: fixed; top: 4.2rem; right: 1rem; z-index: 20; margin: 0; padding: .5rem .8rem; background: var(--bg); border: 1px solid currentColor; }
#seterr { margin: 0 0 .8rem; }
.capped:not(.all) .more { display: none; }
.showall { margin: .3rem 0 0; }
p.empty { color: var(--muted); }
