/* Local site of ai-daily-brief. Reader layout: one sans family, cards separated by space.
   Colors: --official is the single hue (官方, 新, links, switches); --accent marks 重要 only.
   Light scheme follows pi.dev (warm stone paper, slate ink, square corners); dark follows Tripo Research
   (pure black, gray cards without borders, white at several opacities, pill controls).
   html[data-theme] is auto|light|dark; the head script resolves it into html[data-scheme]. Density on html[data-density]. */
:root {
  --f-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --f-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --f-num: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --f-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, var(--f-body);

  color-scheme: light;
  --bg: #ebe7e4; --surface: #f4f2f0; --raise: #f8f7f5; --inset: #ebe7e4;
  --text: #252f3d; --soft: #3d4654; --muted: #6b6661; --faint: #857f79;
  --line: rgba(92, 87, 82, .2); --line-strong: rgba(92, 87, 82, .36); --hover: rgba(75, 96, 124, .07); --chip: rgba(75, 96, 124, .08);
  --official: #4b607c; --official-bg: rgba(75, 96, 124, .12);
  --accent: #a4502f; --accent-ink: #ffffff; --accent-bg: rgba(164, 80, 47, .1);
  --inverse: #252f3d; --inverse-ink: #f4f2f0; --topbar: rgba(235, 231, 228, .88); --shadow: 0 12px 32px rgba(37, 47, 61, .14);
  --link: var(--soft); --focus: #4b607c;
  --radius: 3px; --radius-sm: 2px; --r-ctl: 3px; --r-inner: 2px; --r-paper: 3px; --card-border: var(--line);
  --top-h: 56px;
  --read: 720px; --paper: 800px; --side: 200px;
  --pad-y: 16px; --pad-x: 18px; --gap: 12px; --clamp: 3; --avatar: 32px;
}
html[data-density="compact"] { --pad-y: 10px; --pad-x: 14px; --gap: 6px; --clamp: 2; --avatar: 24px; }
html[data-scheme="dark"] {
  color-scheme: dark;
  --bg: #000000; --surface: #1c1c1f; --raise: #26262a; --inset: rgba(255, 255, 255, .05);
  --text: rgba(255, 255, 255, .96); --soft: rgba(255, 255, 255, .8); --muted: rgba(255, 255, 255, .6); --faint: rgba(255, 255, 255, .4);
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .18); --hover: rgba(255, 255, 255, .07); --chip: rgba(255, 255, 255, .08);
  --official: #a9b8cc; --official-bg: rgba(169, 184, 204, .14);
  --accent: #e58a63; --accent-ink: #000000; --accent-bg: rgba(229, 138, 99, .14);
  --inverse: #ffffff; --inverse-ink: #000000; --topbar: rgba(0, 0, 0, .78); --shadow: 0 16px 40px rgba(0, 0, 0, .6);
  --focus: #a9b8cc;
  --radius: 20px; --radius-sm: 999px; --r-ctl: 999px; --r-inner: 14px; --r-paper: 24px; --card-border: transparent;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 14px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
button, select, input { font: inherit; color: inherit; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.ico { display: inline-flex; width: 16px; height: 16px; flex: none; }
.ico svg { width: 100%; height: 100%; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: var(--topbar); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-inner, main { max-width: calc(var(--side) + var(--read) + 48px + 40px); margin: 0 auto; }
html[data-view="daily"] .top-inner, html[data-view="daily"] main { max-width: calc(var(--side) + var(--paper) + 48px + 40px); }
.top-inner { height: var(--top-h); padding: 0 20px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand .mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-ctl); background: var(--inverse); color: var(--inverse-ink); font: 700 12px/1 var(--f-mono); }
.brand .word { font: 600 16px/1 var(--f-body); }
.tabs { display: flex; align-self: stretch; gap: 4px; }
.tabs a { display: flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.updated { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.updated .ico { width: 13px; height: 13px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--muted); cursor: pointer; }
.iconbtn:hover { color: var(--text); background: var(--hover); text-decoration: none; }
.iconbtn[aria-expanded="true"] { color: var(--text); border-color: var(--line-strong); }
.iconbtn.sm { width: 24px; height: 24px; border: 0; background: none; }
.iconbtn.sm .ico { width: 14px; height: 14px; }
.tweaks { position: relative; }
.tweak-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 252px; padding: 12px; background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tp-h { margin: 0 0 6px; font: 11px/1.4 var(--f-mono); letter-spacing: .08em; color: var(--muted); }
.tp-h ~ .tp-h { margin-top: 12px; }
.seg { display: grid; padding: 2px; gap: 2px; border-radius: var(--r-ctl); background: var(--chip); }
.seg-2 { grid-template-columns: repeat(2, 1fr); } .seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg button { height: 30px; border: 0; border-radius: var(--r-ctl); background: none; cursor: pointer; font-size: 13px; color: var(--muted); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--raise); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* Layout */
main { padding: 24px 20px 72px; }
.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 48px; align-items: start; }
.side { position: sticky; top: calc(var(--top-h) + 24px); max-height: calc(100vh - var(--top-h) - 48px); overflow-y: auto; display: flex; flex-direction: column; gap: 24px; padding: 1px 2px 1px 1px; }
.side-h { margin: 0 0 6px; padding: 0 10px; font: 11px/1.4 var(--f-mono); letter-spacing: .08em; color: var(--faint); }
.navlist { display: flex; flex-direction: column; gap: 1px; }
.navlist button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 4px 12px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--soft); cursor: pointer; text-align: left; }
.navlist button:hover { background: var(--hover); color: var(--text); }
.navlist .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navlist .n { font: 11px/1 var(--f-mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.navlist button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.navlist button[aria-pressed="true"] .n { color: var(--muted); }
html[data-scheme="dark"] .navlist button[aria-pressed="true"] { background: var(--inverse); color: var(--inverse-ink); box-shadow: none; }
html[data-scheme="dark"] .navlist button[aria-pressed="true"] .n { color: inherit; opacity: .6; }
.navlist .k-event .lbl::before, .navlist .k-official_post .lbl::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--official); }
.main { min-width: 0; }
.brief-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) 16px; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px var(--pad-x); border-radius: var(--radius); background: var(--inverse); color: var(--inverse-ink); }
.brief-strip:hover { text-decoration: none; color: var(--inverse-ink); }
.brief-strip:hover .bs-h { text-decoration: underline; text-underline-offset: 3px; }
.bs-tag { display: inline-flex; align-items: center; gap: 6px; font: 11px/1.4 var(--f-mono); letter-spacing: .06em; white-space: nowrap; opacity: .7; }
.bs-h { font: 600 15px/1.55 var(--f-body); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.brief-strip > .ico:last-child { opacity: .7; }

.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; flex-wrap: wrap; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 12px; border: 1px solid var(--card-border); border-radius: var(--r-ctl); background: var(--surface); }
.search:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--hover); }
.search > .ico { color: var(--faint); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; }
.search input::-webkit-search-cancel-button { display: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; white-space: nowrap; color: var(--soft); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 30px; height: 18px; border-radius: 9px; background: var(--line-strong); transition: background .15s; }
.switch .track::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .track { background: var(--official); }
.switch input:checked + .track::after { transform: translateX(12px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch input:disabled ~ * { opacity: .5; cursor: default; }
.switch .n { min-width: 22px; padding: 0 6px; border-radius: 9px; background: var(--chip); color: var(--muted); font: 11px/18px var(--f-mono); text-align: center; }
.count { margin-left: auto; color: var(--faint); font: 11px/1.4 var(--f-mono); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Feed */
.day-head { position: sticky; top: var(--top-h); z-index: 5; display: flex; align-items: baseline; gap: 10px; padding: 20px 2px 10px; background: var(--bg); }
.dh-date { font: 600 17px/1.2 var(--f-body); }
.dh-wd { color: var(--muted); font-size: 13px; }
.dh-n { margin-left: auto; color: var(--faint); font: 11px/1 var(--f-mono); letter-spacing: .04em; }
.list { display: flex; flex-direction: column; gap: var(--gap); }
.item { display: grid; grid-template-columns: var(--avatar) minmax(0, 1fr); column-gap: 12px; padding: var(--pad-y) var(--pad-x); border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 140px; transition: box-shadow .2s; }
.item-main { min-width: 0; }
.avatar { display: grid; place-items: center; width: var(--avatar); height: var(--avatar); border-radius: 50%; background: var(--chip); color: var(--muted); font: 600 calc(var(--avatar) * .44)/1 var(--f-body); text-transform: uppercase; user-select: none; }
.avatar .ico { width: 55%; height: 55%; }
.k-official_post .avatar, .is-event .avatar { background: var(--official-bg); color: var(--official); }
.item.is-event { box-shadow: inset 3px 0 0 var(--official); }
.item.is-event.is-high { box-shadow: inset 3px 0 0 var(--accent); }
.item.flash { box-shadow: 0 0 0 2px var(--focus); }

.meta { display: flex; align-items: center; gap: 8px; min-height: var(--avatar); }
.who-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-width: 0; }
.who { font-weight: 600; color: var(--text); }
.sub { color: var(--faint); font: 11px/1.6 var(--f-mono); font-variant-numeric: tabular-nums; }
.meta-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.kind { color: var(--faint); font: 11px/1.6 var(--f-mono); letter-spacing: .04em; white-space: nowrap; }
.kind.k-official_post, .kind.k-event { color: var(--official); font-weight: 600; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--radius-sm); background: var(--chip); color: var(--muted); font-size: 12px; white-space: nowrap; }
.tag-warn { background: var(--accent-bg); color: var(--accent); }
.hot { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.new { display: inline-flex; align-items: center; gap: 4px; color: var(--official); font-size: 12px; font-weight: 600; }
.new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.title { margin: 4px 0 0; font: 600 16px/1.55 var(--f-body); overflow-wrap: anywhere; }
.lede { margin: 4px 0 0; font-size: 15px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.summary, .text { margin: 4px 0 0; color: var(--soft); overflow-wrap: anywhere; }
.text { white-space: pre-wrap; }
.lede + .text { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-inner); background: var(--inset); font-size: 13px; }
.clamp { display: -webkit-box; -webkit-line-clamp: var(--clamp); -webkit-box-orient: vertical; overflow: hidden; }
.k-unclassified .text.clamp { -webkit-line-clamp: 2; }
.more { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.more:hover { color: var(--text); }
.more .ico { width: 14px; height: 14px; }
.note { margin: 6px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.imgs a { display: block; width: 132px; aspect-ratio: 4 / 3; border-radius: var(--r-inner); overflow: hidden; border: 1px solid var(--line); background: var(--chip); }
.imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-density="compact"] .imgs a { width: 88px; }
.ref { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.ref .ico { width: 13px; height: 13px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.foot .tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.foot a, .foot button { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--muted); }
.foot a { overflow-wrap: anywhere; }
.foot a:hover, .foot button:hover { color: var(--text); }
.foot .ico { width: 13px; height: 13px; }
.foot button { padding: 0; border: 0; background: none; cursor: pointer; font-size: 12px; text-align: left; }
.foot .ev-link span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.mentions { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--r-inner); background: var(--inset); list-style: none; font-size: 13px; }
.mentions li { padding: 4px 0; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.mentions li + li { border-top: 1px solid var(--line); }
.mentions .more { margin: 0; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 64px 16px; color: var(--muted); text-align: center; }
.empty > .ico { width: 28px; height: 28px; color: var(--faint); }
.empty p { margin: 0; }
.btn { height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); cursor: pointer; }
.btn:hover { background: var(--hover); }
.btn .ico { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; }
a.btn { display: inline-flex; align-items: center; color: var(--text); }
a.btn:hover { text-decoration: none; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 12px 0; color: var(--muted); font-size: 13px; }
.pager .pg { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; }
.pager a.pg:hover { background: var(--hover); text-decoration: none; }
.pager .pg[aria-current="page"] { border-color: var(--text); background: var(--text); color: var(--bg); font-weight: 600; }
.pager .pg[aria-disabled="true"] { color: var(--muted); opacity: .45; }
.pager .pg.gap { border-color: transparent; background: none; color: var(--muted); min-width: 20px; padding: 0; }
.pager .pg .ico { width: 16px; height: 16px; }
.pager > .btn + .muted, .pager > .muted + .btn { margin-left: 6px; }
.item-dlg { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.item-dlg::backdrop { background: rgba(0, 0, 0, .35); }
.item-dlg .dlg-bar { display: flex; justify-content: flex-end; padding-bottom: 6px; }
/* AI 日报 */
.dates { display: flex; flex-direction: column; gap: 2px; }
.dates a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: var(--r-inner); color: var(--text); }
.dates a:hover { background: var(--hover); text-decoration: none; color: var(--text); }
.dates a[aria-current="page"] { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.d-num { font: 600 22px/1 var(--f-num); font-variant-numeric: tabular-nums; padding-top: 3px; color: var(--muted); }
.dates a[aria-current="page"] .d-num { color: var(--text); }
.dates a.pending .d-num { color: var(--faint); }
.d-txt { display: flex; flex-direction: column; min-width: 0; }
.dates .d { font: 11px/1.6 var(--f-mono); color: var(--faint); }
.dates .h { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.55; color: var(--soft); }
.dates a.pending .h { color: var(--faint); }

.paper { min-width: 0; max-width: var(--paper); padding: 32px 36px 20px; border: 1px solid var(--card-border); border-radius: var(--r-paper); background: var(--surface); }
.masthead { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mh-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mh-name { font: 700 34px/1.15 var(--f-serif); }
.mh-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.mh-date { font-weight: 600; color: var(--text); }
.mh-win { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.mh-win .ico { width: 13px; height: 13px; }
.lead { margin: 20px 0 0; font: 600 20px/1.6 var(--f-body); overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r-inner); background: var(--inset); }
.stat b { font: 600 24px/1 var(--f-num); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font: 11px/1.4 var(--f-mono); letter-spacing: .04em; }
.stat.k-event b { color: var(--official); } .stat.k-high b { color: var(--accent); }
.sec { padding: 26px 0 8px; border-top: 1px solid var(--line); margin-top: 26px; min-width: 0; }
.sec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.sec h2 .sn { color: var(--faint); font: 12px/1 var(--f-mono); }
.sec h2 .st { font: 600 18px/1.3 var(--f-body); }
.sec h2 .n { color: var(--faint); font: 11px/1 var(--f-mono); }
.s-official h2 .sn { color: var(--official); } .s-pending h2 .sn { color: var(--accent); }
.sec h3 { display: flex; align-items: center; gap: 6px; margin: 18px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.sec h3 .ico { width: 14px; height: 14px; }
.cols { display: block; }
.cols .sec:first-child { margin-top: 26px; }
.rows { margin: 0 0 8px; padding: 0; list-style: none; }
.rows > li { padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.rows > li:first-child { border-top: 0; }
.rows .who { margin-right: 8px; }
.rows .rt { color: var(--soft); }
.rows .src { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.rows .src .ico { width: 12px; height: 12px; }
.rows .count { margin: 0; color: var(--muted); font-size: 12px; }
.ev-rows > li { padding: 12px 0 12px 16px; border-top: 0; margin-bottom: 10px; box-shadow: inset 2px 0 0 var(--official); }
.ev-rows > li.is-high { box-shadow: inset 2px 0 0 var(--accent); }
.ev-title { margin: 4px 0 2px; font: 600 16px/1.55 var(--f-body); }
.ev-sum { color: var(--soft); }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.ev-rows .links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; }
.ev-rows .links a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); overflow-wrap: anywhere; }
.ev-rows .links .ico { width: 13px; height: 13px; }
.ev-rows .mentions .who { font-weight: 600; }
.pend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.none { color: var(--faint); margin: 0 0 12px; }
.problem { display: flex; gap: 8px; }
.problem a { color: var(--official); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.problem .ico { color: var(--accent); margin-top: 4px; width: 14px; height: 14px; }

@media (max-width: 1080px) {
  .updated { display: none; }
  .layout { gap: 28px; grid-template-columns: 176px minmax(0, 1fr); }
  .pend-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --top-h: 52px; --pad-x: 14px; --pad-y: 12px; --avatar: 28px; }
  .top-inner { gap: 10px; padding: 0 12px; }
  .brand .word { display: none; }
  .tabs { gap: 0; }
  .tabs a { padding: 0 10px; }
  main { padding: 12px 12px 48px; }
  .layout, .layout.daily { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .side { position: static; max-height: none; overflow: visible; gap: 8px; padding: 0; }
  .side-h { display: none; }
  .navlist { flex-direction: row; overflow-x: auto; gap: 6px; padding: 1px 1px 2px; scrollbar-width: none; }
  .navlist button { width: auto; flex: none; white-space: nowrap; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  .navlist button[aria-pressed="true"] { background: var(--inverse); color: var(--inverse-ink); box-shadow: none; }
  .navlist button[aria-pressed="true"] .n { color: inherit; opacity: .7; }
  .dates { flex-direction: row; overflow-x: auto; gap: 6px; padding: 1px; scrollbar-width: none; }
  .dates a { flex: none; width: 210px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  .dates a[aria-current="page"] { box-shadow: 0 0 0 2px var(--text); }
  .dates .h { -webkit-line-clamp: 2; }
  .brief-strip { grid-template-columns: minmax(0, 1fr) 16px; gap: 4px 10px; }
  .bs-tag { grid-column: 1 / -1; }
  .count { margin-left: 0; }
  .item { column-gap: 10px; }
  .lede { font-size: 14px; }
  .foot .ev-link span:last-child { max-width: 220px; }
  .paper { padding: 20px 16px 12px; }
  .mh-name { font-size: 28px; }
  .lead { font-size: 17px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat b { font-size: 20px; }
}
