/* 今日账单 · Design Gate v2
   现代化产品界面：Apple 透明玻璃、嵌套圆角、可展开卡片。
   不是新闻纸，也不是米色海报。字体自托管于 ../fonts/，
   并回退到系统 Noto / Source Han / Songti SC / PingFang SC。
   不依赖 fonts.googleapis.com，无追踪脚本。 */

@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local("Noto Serif CJK SC"),
    local("NotoSerifCJKsc-Regular"),
    local("Noto Serif SC"),
    url("../fonts/noto-serif-sc-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src:
    local("Noto Serif CJK SC Bold"),
    local("NotoSerifCJKsc-Bold"),
    local("Noto Serif SC Bold"),
    url("../fonts/noto-serif-sc-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local("Noto Sans CJK SC"),
    local("NotoSansCJKsc-Regular"),
    local("Noto Sans SC"),
    url("../fonts/noto-sans-sc-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src:
    local("Noto Sans CJK SC Bold"),
    local("NotoSansCJKsc-Bold"),
    local("Noto Sans SC Bold"),
    url("../fonts/noto-sans-sc-bold.woff2") format("woff2");
}

:root {
  --bg: #F3F3F1;
  --surface: #FFFFFF;
  --ink: #0C0C0E;
  --text: #141416;
  --muted: #5C5C66;
  --line: #E6E6E2;
  --accent: #1F5EFF;
  --accent-soft: #E8EFFF;
  --live: #16A34A;
  --exp: #92400E;
  --exp-soft: #F8EDE2;
  --wait: #52606D;
  --wait-soft: #EEF1F3;
  --lock: #1D4ED8;
  --lock-soft: #E8EEFB;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-dark: rgba(12, 12, 14, 0.72);
  --serif: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC",
           "Songti SC", "STSong", "Noto Serif", Georgia, serif;
  --sans: "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Noto Sans", sans-serif;
  --content: 1160px;
  --pad: 24px;
  --radius: 24px;
  --radius-sm: 16px;
  --card-pad: 20px;
  --shadow: 0 1px 2px rgba(12, 12, 14, 0.06), 0 16px 40px rgba(12, 12, 14, 0.08);
  --shadow-tight: 0 1px 2px rgba(12, 12, 14, 0.06);
  --shadow-soft: 0 16px 40px rgba(12, 12, 14, 0.08);
  --shadow-hover: 0 1px 2px rgba(12, 12, 14, 0.06), 0 20px 48px rgba(12, 12, 14, 0.12);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --header-h: 88px;
  --ease: 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: 320ms cubic-bezier(0.16, 1, 0.3, 1);
  --blur: blur(20px) saturate(1.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--ease);
}
a:hover { color: #0A3FD6; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button:focus-visible,
.wire-toggle:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.tabbar a:focus-visible,
.hero a:focus-visible,
.story:focus-visible,
.thread-table tr:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  z-index: 60;
  font-family: var(--sans);
}
.skip:focus { left: 16px; top: 8px; }

#main, [id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--ease), background var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 8px 24px rgba(12, 12, 14, 0.18);
  background: rgba(12, 12, 14, 0.96);
}
.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: grid;
  grid-template-columns: minmax(160px, auto) 1fr auto;
  grid-template-areas: "brand nav meta";
  gap: 16px 24px;
  align-items: center;
}
.site-header .brand-block { grid-area: brand; min-width: 0; }
.nav { grid-area: nav; }
.header-meta { grid-area: meta; }
.site-header .brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}
.site-header .brand:hover { color: #fff; }
.tagline {
  margin: 2px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.nav a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--ease), background var(--ease);
}
.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(31, 94, 255, 0.28);
  font-weight: 500;
}

.header-meta {
  text-align: right;
  min-width: 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
}
.meta-date {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0;
}

/* ---------- ticker ---------- */
.wire {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
}
.wire-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: 44px;
}
.wire-label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 8px 0;
  z-index: 1;
  white-space: nowrap;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
  animation: live-pulse 2s ease-out infinite;
  flex: none;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
.wire-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  /* Fade the last stretch so scrolling text dissolves before it meets the 暂停 button. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 44px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 44px), transparent 100%);
}
.wire-track {
  display: flex;
  width: max-content;
  animation: wire-move 52s linear infinite;
}
.wire.is-paused .wire-track,
.wire:hover .wire-track {
  animation-play-state: paused;
}
.wire-seq {
  display: flex;
  align-items: center;
}
.wire-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 10px 24px 10px 16px;
  color: var(--text);
}
.wire-item time,
.wire-item .src {
  color: var(--muted);
  font-size: 12px;
}
.wire-item .impact { color: var(--muted); }
@keyframes wire-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.wire-toggle {
  flex: none;
  align-self: center;
  appearance: none;
  position: relative;
  z-index: 2;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  min-width: 52px;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.wire-toggle::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 44px;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--surface) 80%);
  pointer-events: none;
}
.wire-toggle:hover {
  background: var(--accent-soft);
  border-color: #C9D8FF;
  color: var(--accent);
}

/* ---------- badges ---------- */
.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 3px 8px;
  border: 1px solid #C8C8C4;
  color: #3A3A42;
  background: var(--bg);
  border-radius: 999px;
  vertical-align: 1px;
  white-space: nowrap;
}
.badge.exp {
  border-color: #E8C9A8;
  color: var(--exp);
  background: var(--exp-soft);
}
.badge.wait {
  border-color: #C5CDD4;
  color: var(--wait);
  background: var(--wait-soft);
}
.badge.add {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}
.badge.edit {
  border-color: #C8C8C4;
  color: var(--muted);
  background: transparent;
}
.badge.lock {
  border-color: #BFCFE8;
  color: var(--lock);
  background: var(--lock-soft);
}

/* ---------- main layout ---------- */
.site-main,
.body {
  max-width: var(--content);
  margin: 0 auto;
  padding: 32px var(--pad) 64px;
}
.lead-box {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  margin: 0 0 8px;
}
h1.page-title,
.article h1,
.page-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--text);
}
.dek {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  max-width: 42em;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 0.86fr;
  gap: 32px;
  align-items: start;
}
.col-main, .col-side { min-width: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}
h2.section-head { display: flex; }
.section-head .more {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease);
}
.section-head .more:hover { color: var(--accent); }

/* ---------- stream ---------- */
.stream { list-style: none; margin: 0; padding: 0; }
.stream li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 16px;
  margin: 0 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.stream li:hover {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.stream .when {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
  padding-top: 4px;
}
.stream .when time {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.stream h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}
.stream h3 a { color: inherit; text-decoration: none; }
.stream h3 a:hover { color: var(--accent); }
.stream p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-family: var(--serif);
}
.stream .impact {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}
.stream .impact strong {
  font-weight: 600;
  color: var(--muted);
  margin-right: 6px;
  letter-spacing: 0;
}

/* ---------- cards ---------- */
.card,
.bill,
.note,
.disclaimer,
.addendum,
.composer,
.parent-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card { margin-bottom: 16px; }
.card:hover,
.bill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #D8D8D4;
}
.card h2, .card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}
.card p, .card li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.card p { margin: 0 0 8px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 1.15em; }
.card li { margin: 0 0 6px; }

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.ledger-row:last-of-type { border-bottom: 0; }
.ledger-row .k {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  flex: 0 1 auto;
}
.ledger-row .v {
  text-align: right;
  flex: 1 1 auto;
  color: var(--text);
  font-family: var(--sans);
  word-break: keep-all;
  overflow-wrap: break-word;
  white-space: normal;
}

/* ---------- lists / articles ---------- */
.item-list { list-style: none; margin: 0; padding: 0; }
.item-list > li {
  padding: 20px;
  margin: 0 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.item-list > li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #D8D8D4;
}
.item-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
  letter-spacing: 0;
}
.item-list h2, .item-list h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}
.item-list h2 a, .item-list h3 a {
  color: inherit;
  text-decoration: none;
}
.item-list h2 a:hover, .item-list h3 a:hover { color: var(--accent); }
.item-list .excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-family: var(--serif);
}

.article { max-width: 44em; }
.article .item-meta { margin-bottom: 16px; }
.article h1 {
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 12px;
  font-family: var(--serif);
}
.article h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 32px 0 8px;
  padding-bottom: 0;
  border: 0;
}
.article p {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
}
.article ul, .article ol { margin: 0 0 16px; padding-left: 1.3em; }
.article li {
  margin: 0 0 6px;
  font-family: var(--serif);
  line-height: 1.7;
}
.note, .addendum, .disclaimer {
  margin: 16px 0;
}
.addendum {
  border-color: #C9D8FF;
  background: var(--accent-soft);
}
.addendum h2, .note h2, .disclaimer h2 {
  margin-top: 0;
  border: 0;
  padding: 0;
  font-size: 16px;
  font-family: var(--serif);
}
.disclaimer {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--sans);
}
.disclaimer p, .note p, .addendum p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- tables ---------- */
.meta-table, .source-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0 20px;
  font-family: var(--sans);
}
.meta-table th, .meta-table td,
.source-table th, .source-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0;
}
.meta-table th, .source-table th {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  width: 7.5em;
  white-space: nowrap;
}
.source-table th { width: auto; }
.source-table { font-size: 13px; }
.source-table td { word-break: keep-all; overflow-wrap: break-word; }
.pending { color: var(--muted); font-style: normal; }

/* ---------- forum ---------- */
.thread-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.thread-table th {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  text-align: left;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}
.thread-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.thread-table tbody tr:last-child td { border-bottom: 0; }
.thread-table tbody tr {
  transition: background var(--ease);
}
.thread-table tbody tr:hover,
.thread-table tbody tr:active {
  background: #F7F7F5;
}
.thread-table tbody tr.is-linked { cursor: pointer; }
.thread-table .t { font-size: 16px; font-family: var(--serif); font-weight: 700; }
.thread-table .t a { color: inherit; text-decoration: none; }
.thread-table .t a:hover { color: var(--accent); }
.thread-table .under {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--sans);
  margin-top: 4px;
}
.thread-table .num, .thread-table .who {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.parent-item { margin: 0 0 24px; padding: 16px 20px; }
.parent-item .kicker { margin-bottom: 4px; }
.parent-item h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0;
}
.parent-item p { margin: 0; font-size: 14px; color: var(--muted); font-family: var(--sans); }

.post {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  transition: box-shadow var(--ease), border-color var(--ease);
}
.post:hover {
  box-shadow: var(--shadow-hover);
  border-color: #D8D8D4;
}
.post-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}
.post-meta .floor {
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 600;
}
.post-meta .name {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.post-body { min-width: 0; }
.post-body p {
  margin: 0 0 8px;
  font-size: 16px;
  font-family: var(--serif);
  line-height: 1.7;
}
.post-body p:last-child { margin-bottom: 0; }
.composer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--sans);
}
.composer strong { color: var(--text); }
.composer p { margin: 0 0 8px; }
.composer p:last-child { margin-bottom: 0; }

/* ---------- desk / bill ---------- */
.bill-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.bill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bill { padding: 20px; background: var(--surface); }
.bill h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bill .hand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0 12px;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--text);
}
.bill p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 8px;
}
.bill p:last-child { margin-bottom: 0; }
.stamp-inline,
.date-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 2px 8px;
  border-radius: 999px;
  transform: none;
  margin-left: 0;
}

/* ---------- footer ---------- */
.site-footer,
.foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px var(--pad) 40px;
  margin: 0;
}
.site-footer .footer-inner,
.foot {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: 0;
}
.site-footer p,
.foot p { margin: 0 0 4px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: block;
  margin: 0 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform var(--ease), box-shadow var(--ease);
}
.hero:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.hero a {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
}
.hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1a1e;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 24px 20px;
  background: linear-gradient(
    to top,
    rgba(12, 12, 14, 0.92) 0%,
    rgba(12, 12, 14, 0.72) 46%,
    rgba(12, 12, 14, 0) 100%
  );
  color: #fff;
  z-index: 1;
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0;
}
.hero-meta .hero-src { color: #fff; font-weight: 600; }
.hero-copy h2,
.hero-copy .hero-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.28;
  color: #fff;
}
.hero a:hover .hero-title,
.hero a:hover h2 { color: #fff; }
.hero-dek {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 40em;
}

/* ---------- story list (thumb + title) ---------- */
.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.story-list > li { margin: 0; }
.story {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background var(--ease), box-shadow var(--ease);
  border-radius: 12px;
  margin: 0 -12px;
}
.story-list > li + li .story { }
.story:hover {
  background: var(--surface);
  box-shadow: var(--shadow);
}
a.story { color: inherit; }
.story-thumb {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}
.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-thumb .badge {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 1;
  box-shadow: 0 1px 4px rgba(12, 12, 14, 0.25);
}
.story-body {
  min-width: 0;
  flex: 1 1 auto;
  padding: 2px 4px 2px 0;
}
.story-body h2,
.story-body h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story:hover .story-body h2,
.story:hover .story-body h3 { color: var(--accent); }
.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}
.story-src {
  color: var(--accent);
  font-weight: 600;
}
.story.is-static { cursor: default; }
.story.is-static:hover .story-body h2,
.story.is-static:hover .story-body h3 { color: var(--text); }

.fit-gordon { object-position: 50% 8%; }
.fit-gordon-action { object-position: 50% 28%; }
.fit-gordon-drive { object-position: 50% 22%; }
.fit-court { object-position: 50% 84%; }
.fit-jumbotron { object-position: 50% 10%; }
.fit-arena { object-position: 42% 68%; }

/* desk bill photo */
.bill-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1e;
  border-radius: var(--radius) var(--radius) 0 0;
}
.bill-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bill-media .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  box-shadow: 0 1px 4px rgba(12, 12, 14, 0.25);
}
.bill:has(.bill-media) {
  padding: 0;
  overflow: hidden;
}
.bill-body { padding: 16px 20px 20px; }
.bill:has(.bill-media) .bill-body { padding: 16px 20px 20px; }

/* compact about / lead after a feed */
.lead-after {
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.lead-after .page-title { font-size: 28px; }
.lead-after .dek { font-size: 17px; }

.article-figure {
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--ink);
}
.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.article-figure .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  box-shadow: 0 1px 4px rgba(12, 12, 14, 0.25);
}

/* ---------- mobile tab bar ---------- */
.tabbar {
  display: none;
}
.tabbar a { -webkit-tap-highlight-color: transparent; }

.page-lead-compact {
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.page-lead-compact .page-title { margin-bottom: 0; }

/* 中宽：六列表在 1100px 以下改为带列名卡片 */
@media (max-width: 1100px) {
  .source-table thead { display: none; }
  .source-table {
    display: block;
    width: 100%;
    margin: 12px 0 8px;
    border-collapse: separate;
  }
  .source-table tbody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }
  .source-table tr {
    display: block;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px 16px;
    margin: 0;
  }
  .source-table th, .source-table td {
    display: block;
    width: auto;
    border: 0;
    padding: 4px 0 8px;
  }
  .source-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
    margin-bottom: 2px;
  }
}

@media (max-width: 960px) {
  :root { --header-h: 108px; --pad: 16px; }
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand meta"
      "nav nav";
    gap: 8px 12px;
    padding: 10px var(--pad) 8px;
  }
  .tagline { display: none; }
  .meta-date { display: none; }
  .nav { justify-content: space-between; gap: 0; }
  .nav a { padding: 8px 6px; font-size: 13px; }
  .site-header .brand { font-size: 20px; }
  .status-pill { font-size: 11px; padding: 4px 10px; }
}

@media (max-width: 860px) {
  :root { --header-h: 56px; --pad: 16px; }
  body {
    font-size: 16px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand meta";
    gap: 8px 12px;
    padding: 8px var(--pad);
    min-height: 56px;
  }
  .site-header .nav { display: none; }
  .tagline, .meta-date { display: none; }
  .site-header .brand { font-size: 20px; }
  .status-pill { font-size: 11px; padding: 4px 10px; }

  .tabbar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 6px 6px 4px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 8px 28px rgba(12, 12, 14, 0.12);
  }
  .tabbar a,
  .tabbar-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 6px 2px 5px;
    color: var(--muted);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    border-radius: 16px;
    transition: color var(--ease), background var(--ease);
  }
  .tabbar a:hover {
    color: var(--text);
    background: rgba(12, 12, 14, 0.04);
  }
  .tabbar a[aria-current="page"] {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-soft);
  }
  .tabbar-icon,
  .tabbar svg {
    width: 22px;
    height: 22px;
    display: block;
    flex: none;
    fill: currentColor;
  }

  .site-main, .body { padding: 16px var(--pad) 24px; }
  .site-footer, .foot { padding-bottom: 24px; }
  .grid-2, .bill-grid { grid-template-columns: 1fr; gap: 16px; }
  h1.page-title, .article h1, .page-title { font-size: 24px; }
  .dek { font-size: 16px; }

  .hero {
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    margin-bottom: 8px;
    border-radius: 0;
  }
  .hero:hover { transform: none; }
  .hero-media { aspect-ratio: 5 / 4; }
  .hero-copy {
    padding: 40px 16px 16px;
  }
  .hero-copy h2,
  .hero-copy .hero-title { font-size: 22px; }
  .hero-dek {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .story {
    gap: 12px;
    padding: 12px 4px;
    border-radius: 12px;
  }
  .story:hover { transform: none; box-shadow: none; background: transparent; }
  .story-thumb {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
    border-radius: 10px;
  }
  .story-body h2,
  .story-body h3 { font-size: 16px; margin-bottom: 6px; }

  .page-lead-compact {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  .page-lead-compact .page-title { font-size: 20px; margin-bottom: 0; }
  .page-lead-compact .dek { display: none; }
  .stream li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .stream li:hover { transform: none; }
  .stream .when { display: flex; gap: 8px; align-items: baseline; padding-top: 0; }
  .stream .when time { display: inline; }
  .post { grid-template-columns: 1fr; gap: 8px; }
  .item-list h2, .item-list h3 { font-size: 20px; }
  .card:hover, .bill:hover, .item-list > li:hover {
    transform: none;
  }

  .source-table tbody { grid-template-columns: 1fr; }

  .thread-table {
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .thread-table thead { display: none; }
  .thread-table, .thread-table tbody, .thread-table tr, .thread-table td {
    display: block;
    width: 100%;
  }
  .thread-table tbody tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin: 0 0 12px;
  }
  .thread-table tbody tr:last-child td { border-bottom: 0; }
  .thread-table td {
    border: 0;
    padding: 0 0 8px;
    white-space: normal;
  }
  .thread-table td:last-child { padding-bottom: 0; }
  .thread-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
    margin: 6px 0 2px;
  }
  .thread-table .t { padding-top: 0; }
  .thread-table .t[data-label]::before { margin-top: 0; }
  .thread-table .num { display: block; white-space: normal; }
  .thread-table .who { display: block; margin-top: 0; }

  .wire-inner { padding: 0 12px 0 16px; gap: 8px; }
  .wire-label { font-size: 12px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wire-track { animation: none; transform: none; }
  .live-dot { animation: none; }
  .wire-viewport { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .wire-seq[aria-hidden="true"] { display: none; }
  .card, .bill, .item-list > li, .stream li, .post, .thread-table tbody tr,
  .hero, .story {
    transition: none;
  }
  .card:hover, .bill:hover, .item-list > li:hover, .stream li:hover,
  .hero:hover, .story:hover {
    transform: none;
  }
}

/* ---------- Design Gate v2: glass, nested radii, expand/peek ---------- */

.glass,
.card,
.bill,
.note,
.disclaimer,
.addendum,
.composer,
.parent-item,
.item-list > li,
.source-card,
.story,
.wire {
  position: relative;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--highlight), var(--shadow);
}

.card,
.bill,
.note,
.disclaimer,
.addendum,
.composer,
.parent-item,
.item-list > li,
.source-card {
  border-radius: var(--radius);
  padding: var(--card-pad);
}

.card,
.bill,
.item-list > li,
.source-card,
.story {
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease),
    background var(--ease);
}

.card:hover,
.bill:hover,
.item-list > li:hover,
.source-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--highlight), var(--shadow-hover);
}

/* Optional 5% noise on glass surfaces; kept off text by low opacity. */
.card::before,
.bill::before,
.source-card::before,
.story::before,
.tabbar::before,
.wire::before,
.note::before,
.disclaimer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.05;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: multiply;
}
.card > *,
.bill > *,
.source-card > *,
.story > *,
.wire > *,
.note > *,
.disclaimer > *,
.tabbar > * {
  position: relative;
  z-index: 1;
}

/* Dark glass header */
.site-header {
  background: var(--glass-dark);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.site-header.is-stuck {
  background: rgba(12, 12, 14, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(12, 12, 14, 0.18);
}

/* Ticker as a slim glass bar. Keep fade-before-pause. */
.wire {
  background: var(--glass-strong);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: var(--highlight);
  cursor: pointer;
}
.wire-toggle {
  background: var(--glass-strong);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--highlight), var(--shadow-tight);
  white-space: nowrap;
}
.wire-toggle::before {
  background: linear-gradient(to right, rgba(243, 243, 241, 0), #F3F3F1 80%);
}
.wire-viewport {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 44px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 44px), transparent 100%);
}

/* Footer stays a quiet surface, slightly glassy */
.site-footer,
.foot {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

/* Nested radii: inner ≈ outer − padding of that edge */
.hero {
  border-radius: var(--radius);
  box-shadow: var(--highlight), var(--shadow);
}
.hero-media,
.article-figure {
  border-radius: var(--radius);
}
.bill:has(.bill-media) {
  padding: 8px;
  overflow: hidden;
}
.bill-media {
  border-radius: 16px; /* 24 − 8 inset */
}
.bill:has(.bill-media) .bill-body {
  padding: 16px 12px 12px;
}
.article-figure {
  /* flush in article; keep outer radius */
}

/* ----- story rows: peek tray ----- */
.story-list > li {
  margin: 0 0 8px;
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.story-list > li::before { content: none; }
.story {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 12px;
  margin: 0;
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  background: var(--glass);
  overflow: hidden;
}
.story-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  width: 100%;
}
.story-thumb {
  border-radius: 8px; /* 20 − 12 */
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
}
.story:hover {
  background: var(--glass-strong);
  box-shadow: var(--highlight), var(--shadow);
  transform: none;
}
.story.is-static:hover .story-body h2,
.story.is-static:hover .story-body h3 { color: var(--text); }
.story-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  padding: 2px 0;
}
.story-point {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-meta { margin-top: 0; }
.expand-btn {
  appearance: none;
  flex: none;
  align-self: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 12px;
  min-width: 52px;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.expand-btn:hover {
  background: #d9e4ff;
  color: #0A3FD6;
}
.story .expand-btn { margin-left: 4px; }

.peek-tray {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--ease-out);
  margin-top: 0;
}
.peek-tray-inner {
  overflow: hidden;
  min-height: 0;
}
.peek-panel {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 8px; /* story 20 − 12 */
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--highlight);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.story.is-open .peek-tray,
.source-card.is-open .peek-tray,
.bill.is-open .peek-tray {
  grid-template-rows: 1fr;
}
.peek-meta {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}
.peek-dek {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.peek-dek:last-child,
.peek-action:last-child { margin-bottom: 0; }
.peek-action {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}
.peek-action:hover { color: #0A3FD6; }
.peek-rows {
  display: grid;
  gap: 8px;
  margin: 0;
}
.peek-rows div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
}
.peek-rows dt,
.peek-k {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.peek-rows dd,
.peek-v {
  margin: 0;
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ----- source cards ----- */
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 20px;
  align-items: stretch;
}
.source-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  margin: 0;
  min-height: 100%;
  background: var(--glass);
}
.source-card .icon-well {
  flex: none;
}
.source-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--text);
  text-align: left;
}
.source-card .source-dek {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  max-width: 100%;
}
.source-card .source-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
}
.icon-well {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.icon-24 {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----- desk accordion + peek ----- */
.bill-grid[data-accordion] {
  align-items: stretch;
  transition: grid-template-columns var(--ease-out);
}
.bill-grid[data-accordion].is-split-0 { grid-template-columns: 1.7fr 0.8fr; }
.bill-grid[data-accordion].is-split-1 { grid-template-columns: 0.8fr 1.7fr; }
.bill {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bill .expand-btn { margin-top: 4px; }
.bill .hand { margin: 8px 0 0; }
.bill.is-open .hand { margin-bottom: 0; }
.bill .peek-tray { width: 100%; }
.bill .peek-panel { border-radius: 12px; } /* body inset ~12, 24-12 */

/* Sidebar cards already have titles; keep typography */
.card h2, .card h3 { text-align: left; }

/* Thread cards on all widths inherit glass radius */
.thread-table {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius);
  box-shadow: var(--highlight), var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

/* Focus */
.expand-btn:focus-visible,
.source-card:focus-visible,
.bill:focus-visible,
.peek-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .site-header,
  .site-header.is-stuck { background: rgba(12, 12, 14, 0.96); }
  .glass,
  .card,
  .bill,
  .note,
  .disclaimer,
  .addendum,
  .composer,
  .parent-item,
  .item-list > li,
  .source-card,
  .story,
  .wire,
  .tabbar,
  .site-footer,
  .foot,
  .thread-table {
    background: rgba(255, 255, 255, 0.96);
  }
}

@media (max-width: 1100px) {
  .source-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root {
    --card-pad: 16px;
    --radius: 20px;
  }
  .card,
  .bill,
  .note,
  .disclaimer,
  .addendum,
  .source-card,
  .item-list > li {
    padding: 16px;
    border-radius: 20px;
  }
  .source-grid { grid-template-columns: 1fr; gap: 12px; }
  .bill-grid[data-accordion],
  .bill-grid[data-accordion].is-split-0,
  .bill-grid[data-accordion].is-split-1 {
    grid-template-columns: 1fr;
  }
  .tabbar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    background: var(--glass-strong);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: var(--highlight), 0 1px 2px rgba(12, 12, 14, 0.06), 0 16px 40px rgba(12, 12, 14, 0.14);
    padding: 6px 6px 4px;
  }
  .tabbar a,
  .tabbar-item {
    border-radius: 16px; /* 24 − 8 inset-ish from pad 6 + gap */
  }
  .story {
    padding: 12px;
    border-radius: 20px;
    gap: 0;
    margin: 0;
  }
  .story:hover {
    background: var(--glass);
    box-shadow: var(--highlight), var(--shadow-tight);
  }
  .story-thumb {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
    border-radius: 8px; /* 20 − 12 */
  }
  .bill:has(.bill-media) { padding: 8px; }
  .bill-media { border-radius: 12px; } /* 20 − 8 */
  .peek-panel { border-radius: 8px; }
  .peek-rows div { grid-template-columns: 1fr; gap: 2px; }
  /* Safe area: body already reserves tab bar; keep footer clear too */
  .site-footer, .foot {
    padding-bottom: 24px;
  }
  .card:hover, .bill:hover, .source-card:hover, .item-list > li:hover {
    transform: none;
  }
}

@media (max-width: 620px) {
  /* still single column; tighten labels */
  .expand-btn { padding: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .peek-tray,
  .bill-grid[data-accordion],
  .card, .bill, .source-card, .story, .item-list > li, .hero {
    transition: none;
  }
  .card:hover, .bill:hover, .source-card:hover, .item-list > li:hover, .hero:hover {
    transform: none;
  }
  .story.is-open .peek-tray,
  .source-card.is-open .peek-tray,
  .bill.is-open .peek-tray {
    transition: none;
  }
}

/* v2 layout pins */
[data-expand] { cursor: pointer; }
.source-card .peek-tray { width: 100%; }
.bill-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}
.bill-body .expand-btn { margin-top: 12px; }
.bill-body .peek-tray { margin-top: 4px; }

/* v2 visual polish after first preview pass */
.bill-body .expand-btn,
.source-card .source-actions .expand-btn {
  align-self: flex-start;
}
@media (max-width: 860px) {
  .tabbar {
    background: rgba(255, 255, 255, 0.92);
  }
  .wire-viewport {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 76px), transparent calc(100% - 10px));
    mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 76px), transparent calc(100% - 10px));
  }
  .wire-toggle {
    background: #F3F3F1;
  }
  .wire-toggle::before {
    width: 64px;
    background: linear-gradient(to right, rgba(243, 243, 241, 0), #F3F3F1 86%);
  }
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .tabbar { background: rgba(255, 255, 255, 0.97); }
}


/* ---------- v6 finish: reference-informed product polish ---------- */
:root {
  --glass-soft: rgba(255, 255, 255, 0.52);
  --glass-edge: rgba(255, 255, 255, 0.78);
  --shadow-deep: 0 1px 2px rgba(12, 12, 14, 0.05), 0 18px 48px rgba(12, 12, 14, 0.1);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(216, 226, 244, 0.3), transparent 30%),
    var(--bg);
}

.site-header {
  isolation: isolate;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  pointer-events: none;
}

.wire {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 8px 20px rgba(12,12,14,.035);
}
.wire-inner { min-width: 0; }
.wire-label { position: relative; }
.wire-toggle { min-height: 32px; }

.hero,
.card,
.note,
.disclaimer,
.source-card,
.story,
.bill,
.thread-table {
  border-color: var(--glass-edge);
  box-shadow: var(--highlight), var(--shadow-deep);
}
.hero,
.card,
.note,
.disclaimer,
.source-card,
.story,
.bill {
  overflow: hidden;
}
.hero-media {
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.hero-copy {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(12,12,14,.16));
}

.story-main {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
}
.story-body h2,
.story-body h3 {
  overflow-wrap: anywhere;
}
.story .expand-btn { margin-left: 0; }
.story.is-open { box-shadow: var(--highlight), 0 18px 42px rgba(12,12,14,.12); }
.peek-panel {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(255,255,255,.72);
}

.source-card,
.bill {
  min-height: 0;
}
.source-card .icon-well {
  border: 1px solid rgba(31,94,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}
.source-card.is-open,
.bill.is-open {
  border-color: rgba(31, 94, 255, 0.24);
}

/* Forum keeps the data table, but turns each row into a legible glass item at mobile widths. */
.thread-table th {
  background: rgba(255,255,255,.44);
}
.thread-table tbody tr {
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
}
.thread-table tbody tr:hover {
  background: rgba(255,255,255,.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.54);
}

.site-footer {
  margin-top: 20px;
}

@media (min-width: 861px) {
  .site-main,
  .body { padding-bottom: 88px; }
  .tabbar { display: none; }
}

@media (max-width: 860px) {
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .site-header { position: sticky; top: 0; }
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand meta";
    padding: 12px 16px;
  }
  .site-header .brand { font-size: 21px; }
  .tagline,
  .nav,
  .meta-date { display: none; }
  .header-meta { text-align: right; }
  .status-pill { font-size: 11px; padding: 5px 9px; }
  .wire { top: 62px; }
  .wire-inner { padding-left: 16px; padding-right: 10px; }
  .wire-viewport { min-width: 0; }
  .wire-toggle { padding: 6px 10px; min-width: 50px; }
  .site-main,
  .body { padding: 24px 16px 36px; }
  h1.page-title,
  .page-title { font-size: clamp(28px, 8vw, 34px); line-height: 1.3; }
  .dek { font-size: 16px; line-height: 1.72; }
  .hero { border-radius: 20px; }
  .hero-media { border-radius: 12px 12px 0 0; }
  .hero-copy { padding: 16px; }
  .story-main {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }
  .story-thumb { grid-row: span 2; width: 76px; height: 76px; flex-basis: 76px; }
  .story-body { padding-top: 0; }
  .story-body h2,
  .story-body h3 { font-size: 16px; line-height: 1.45; }
  .story .expand-btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
  .thread-table { border-radius: 18px; }
  .thread-table thead { display: none; }
  .thread-table,
  .thread-table tbody,
  .thread-table tr,
  .thread-table td { display: block; width: 100%; }
  .thread-table tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .thread-table tbody tr:last-child { border-bottom: 0; }
  .thread-table td {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    gap: 8px;
    padding: 5px 0;
    border: 0;
    min-width: 0;
  }
  .thread-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
  }
  .thread-table td.t { display: block; padding-top: 0; }
  .thread-table td.t::before { display: none; }
  .thread-table .t a { display: block; margin-bottom: 4px; }
  .thread-table .num,
  .thread-table .who { text-align: left; }
  .tabbar {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 7px 6px 5px;
    border-radius: 22px;
  }
  .tabbar a { min-height: 48px; }
}

@media (max-width: 420px) {
  .wire-label { gap: 6px; }
  .wire-label { font-size: 11px; }
  .wire-item { padding-left: 12px; padding-right: 18px; }
  .story { padding: 10px; }
  .story-main { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
  .story-thumb { width: 68px; height: 68px; flex-basis: 68px; }
  .thread-table td { grid-template-columns: 6.5em minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  body { background: var(--bg); }
  .wire { position: relative; top: auto; }
  .site-header { position: relative; }
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .site-header,
  .site-header.is-stuck { background: rgba(12, 12, 14, 0.96); }
  .wire,
  .card,
  .note,
  .disclaimer,
  .source-card,
  .story,
  .bill,
  .thread-table { background: rgba(255,255,255,.96); }
}

/* ---------- v6.1 interaction hard-fix: ticker reserved fade + expand vs tabbar ---------- */
/* Typography, colors, and radii stay locked to Design Gate v2.1. Layout clearance only.
   --wire-fade is the dissolve length inside the viewport. The last 18px of the
   viewport is fully clear, then the 8px flex gap, then the control. */

.wire {
  --wire-fade: 72px;
  --wire-toggle-width: 52px;
  --wire-clear: 18px;
}
.wire-inner {
  overflow: hidden;
}
.wire-viewport {
  position: relative;
  z-index: 0;
  isolation: isolate;
  contain: paint;
  padding-right: var(--wire-clear);
  overflow: hidden;
  overflow: clip;
  transform: translateZ(0);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - var(--wire-fade)), transparent calc(100% - var(--wire-clear)));
  mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - var(--wire-fade)), transparent calc(100% - var(--wire-clear)));
}
.wire-toggle {
  min-width: var(--wire-toggle-width);
  z-index: 3;
}
.wire-toggle::before {
  width: calc(var(--wire-fade) - 8px);
  height: 100%;
  top: 0;
  bottom: 0;
  transform: none;
  background: linear-gradient(to right, rgba(243, 243, 241, 0) 0, #F3F3F1 calc(100% - 14px), #F3F3F1 100%);
}

@media (max-width: 860px) {
  .wire {
    --wire-fade: 88px;
    --wire-toggle-width: 52px;
  }
  html {
    scroll-padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
  [data-expand],
  .peek-tray {
    overflow-anchor: none;
  }
  .expand-btn,
  [data-expand],
  .site-footer,
  .foot {
    scroll-margin-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
  body {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }
  .site-footer,
  .foot {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 861px) {
  .tabbar { display: none; }
  .wire {
    --wire-fade: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wire-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    contain: none;
    mask-image: none;
    -webkit-mask-image: none;
    transform: none;
  }
}

/* ---------- v6.2 readability: hero scrim + tabbar coverage ---------- */
/* Typography, sizes, and color tokens stay locked to Design Gate v2.1.
   The glass pass had replaced the hero dark scrim with a near-transparent
   wash, so white titles failed on light jerseys and faces. The mobile
   tabbar was also clear enough for the next card's type to show through. */

.hero-media {
  isolation: isolate;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12, 12, 14, 0.88) 0%,
    rgba(12, 12, 14, 0.62) 42%,
    rgba(12, 12, 14, 0.22) 72%,
    rgba(12, 12, 14, 0) 100%
  );
}
.hero-copy {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(
    to top,
    rgba(12, 12, 14, 0.9) 0%,
    rgba(12, 12, 14, 0.55) 48%,
    rgba(12, 12, 14, 0) 100%
  );
}
.hero-copy .hero-title,
.hero-copy h2,
.hero-dek,
.hero-meta {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.28);
}

@media (max-width: 860px) {
  .hero-copy {
    padding: 56px 16px 18px;
  }
  .tabbar {
    background: #F6F6F4;
    background-color: #F6F6F4;
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    backdrop-filter: blur(24px) saturate(1.3);
    isolation: isolate;
    z-index: 80;
  }
  body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    pointer-events: none;
    height: calc(120px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(
      to top,
      var(--bg) 0%,
      var(--bg) 52%,
      rgba(243, 243, 241, 0.92) 70%,
      rgba(243, 243, 241, 0) 100%
    );
  }
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .tabbar { background: #F6F6F4; }
}

/* ---------- v6.3 tabbar: capsule shape + Apple-like motion ---------- */
/* Type sizes stay locked (label 11, icon 22, item min-height 48).
   The bar and the selected item become true capsules (not 16/22 rounded
   rectangles). Press, pill slide, and icon pop use an iOS-like curve. */

@media (max-width: 860px) {
  .tabbar {
    border-radius: 999px;
    padding: 5px 6px;
    overflow: hidden;
  }
  .tabbar-pill {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 999px;
    background: var(--accent-soft);
    pointer-events: none;
    transform: translate(0, 0);
    transition:
      transform 420ms cubic-bezier(0.32, 0.72, 0, 1),
      width 420ms cubic-bezier(0.32, 0.72, 0, 1),
      height 420ms cubic-bezier(0.32, 0.72, 0, 1);
  }
  .tabbar a,
  .tabbar-item {
    border-radius: 999px;
    background: transparent;
    transition:
      color 280ms cubic-bezier(0.32, 0.72, 0, 1),
      transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
  }
  .tabbar.has-pill a[aria-current="page"] {
    background: transparent;
  }
  .tabbar a:hover {
    background: transparent;
  }
  .tabbar a:active {
    transform: scale(0.9);
  }
  .tabbar-icon,
  .tabbar svg {
    transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1);
  }
  .tabbar a.is-popping .tabbar-icon,
  .tabbar a.is-popping svg {
    animation: tabbar-pop 420ms cubic-bezier(0.32, 0.72, 0, 1);
  }
}

@keyframes tabbar-pop {
  0% { transform: scale(0.86); }
  58% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .tabbar-pill {
    transition: none;
  }
  .tabbar a,
  .tabbar-item,
  .tabbar-icon,
  .tabbar svg {
    transition: none;
    animation: none;
  }
  .tabbar a:active {
    transform: none;
  }
}


/* v6.4 · 手机 Web App 壳。只加交互与壳层，不改 Design Gate v2.1 已锁字号、字族、字重、行高、圆角或颜色 token。 */

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

html { -webkit-text-size-adjust: 100%; }

.app-back {
  display: none;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 8px 8px 8px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.app-back svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}
.app-sheet-root[hidden] { display: none !important; }
.app-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.app-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 14, 0.42);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.app-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(8px + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(0);
}
.app-sheet-handle {
  flex: 0 0 auto;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 4px;
  background: rgba(12, 12, 14, 0.18);
}
.app-sheet-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text);
}
.app-sheet-bar .app-back { color: var(--text); padding: 8px 8px 8px 0; }
.app-sheet-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-sheet-body {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
}
.app-sheet-body .site-header,
.app-sheet-body .wire,
.app-sheet-body .tabbar,
.app-sheet-body .site-footer,
.app-sheet-body .skip { display: none !important; }
body.sheet-open { overflow: hidden; }

@media (max-width: 860px) {
  html, body { overscroll-behavior-y: none; }
  body { min-height: 100dvh; }
  a, button, .expand-btn, .peek-action, .tabbar a, .story, .wire-toggle {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
  }
  .site-header .tagline,
  .site-header .meta-date { display: none; }
  body.is-subpage .app-back { display: inline-flex; }
  body.is-subpage .brand-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
  body.is-subpage .header-meta { display: none; }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .site-header { padding-top: env(safe-area-inset-top, 0px); }
}

@media (min-width: 861px) {
  .app-sheet-root { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .app-sheet, .app-sheet-backdrop { transition: none !important; }
}

/* ---------- v2.2 · Google clarity × Slack channel cues ----------
   Additive only: v2.1 type, spacing, radius and base color tokens remain intact. */
.briefing {
  margin: 0 0 32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--highlight), var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.briefing-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.briefing-head .kicker { margin-bottom: 4px; }
.briefing-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
.briefing-date {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.channel-card {
  --channel: var(--accent);
  --channel-soft: var(--accent-soft);
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.54);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.channel-card:hover {
  color: var(--text);
  border-color: var(--channel);
  background: var(--channel-soft);
  box-shadow: var(--shadow-tight);
  transform: translateY(-1px);
}
.channel-news { --channel: #1557B0; --channel-soft: #E8F0FE; }
.channel-column { --channel: #6A35B8; --channel-soft: #F1EAFE; }
.channel-forum { --channel: #146C2E; --channel-soft: #E6F4EA; }
.channel-ledger { --channel: #92400E; --channel-soft: #FEF3E2; }
.channel-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--channel);
  background: var(--channel-soft);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.channel-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.channel-copy strong {
  overflow: hidden;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-copy small {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-arrow {
  flex: none;
  margin-left: auto;
  color: var(--channel);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1;
}
.channel-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 12px;
}
.channel-filter-label {
  margin-right: 2px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}
.filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}
.filter-chip:hover,
.filter-chip.is-active {
  color: #174EA6;
  border-color: #B8CAFF;
  background: var(--accent-soft);
}
.filter-chip[data-filter="column"].is-active { color: #6A35B8; border-color: #D9C6FF; background: #F1EAFE; }
.filter-chip[data-filter="ledger"].is-active { color: #92400E; border-color: #F2C98F; background: #FEF3E2; }
.filter-chip[data-filter="sample"].is-active { color: #3A3A42; border-color: #C8C8C4; background: var(--bg); }
.filter-chip:active { transform: scale(0.97); }
.story-list > li[hidden] { display: none; }
@media (max-width: 860px) {
  .briefing { margin-bottom: 24px; padding: 16px; }
  .briefing-head { align-items: start; flex-direction: column; gap: 4px; margin-bottom: 12px; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .channel-card { padding: 10px; gap: 8px; }
  .channel-mark { width: 28px; height: 28px; }
  .channel-copy strong { font-size: 13px; }
  .channel-copy small { font-size: 11px; }
  .channel-arrow { font-size: 14px; }
  .channel-filter { overflow-x: auto; flex-wrap: nowrap; margin-bottom: 10px; padding-bottom: 2px; scrollbar-width: none; }
  .channel-filter::-webkit-scrollbar { display: none; }
  .channel-filter-label, .filter-chip { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .channel-card, .filter-chip { transition: none; }
}

/* v2.2 channel identity on navigation: color marks location, not decoration. */
.nav a[href$="news/index.html"][aria-current="page"],
.tabbar a[href$="news/index.html"][aria-current="page"] { color: #1557B0; background: #E8F0FE; }
.nav a[href$="columns/index.html"][aria-current="page"],
.tabbar a[href$="columns/index.html"][aria-current="page"] { color: #6A35B8; background: #F1EAFE; }
.nav a[href$="forum/index.html"][aria-current="page"],
.tabbar a[href$="forum/index.html"][aria-current="page"] { color: #146C2E; background: #E6F4EA; }
.nav a[href$="desk/index.html"][aria-current="page"],
.tabbar a[href$="desk/index.html"][aria-current="page"] { color: #92400E; background: #FEF3E2; }
.nav a[href$="index.html"][aria-current="page"]:not([href*="news/"]):not([href*="columns/"]):not([href*="forum/"]):not([href*="desk/"]),
.tabbar a[href$="index.html"][aria-current="page"]:not([href*="news/"]):not([href*="columns/"]):not([href*="forum/"]):not([href*="desk/"]) { color: var(--accent); background: var(--accent-soft); }
