/* ============================================================
   硅幕 SILICON CURTAIN — 观察站样式
   ============================================================ */

:root {
  --bg: #080a0e;
  --bg-soft: #0d1016;
  --panel: #11151d;
  --panel-2: #151a24;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #e8ebf2;
  --text-dim: #aab3c4;
  --muted: #77808f;
  --amber: #e9b44c;
  --red: #e2574c;
  --green: #5fbf9a;
  --blue: #6a92e8;
  --mono: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", ui-monospace, monospace;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(233, 180, 76, 0.10), transparent 60%),
    radial-gradient(900px 480px at 88% 0%, rgba(90, 130, 220, 0.09), transparent 62%),
    linear-gradient(180deg, #0a0d12 0%, #080a0e 55%, #07080c 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 85%);
}

main, header, footer { position: relative; z-index: 1; }

.wrap {
  width: min(100% - 48px, var(--maxw));
  margin: 0 auto;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(233, 180, 76, 0.28); }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 10, 14, 0.82);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 22px;
  height: 22px;
}

.brand-mark i { display: block; background: var(--amber); opacity: 0.85; }
.brand-mark i:nth-child(2) { background: #39404f; }
.brand-mark i:nth-child(3) { background: #39404f; }
.brand-mark i:nth-child(4) { background: var(--red); opacity: 0.9; }

.brand-text { display: flex; align-items: baseline; gap: 9px; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.brand-text em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.masthead-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 13px;
}

.masthead-nav a,
.nav-bot {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-dim);
  border: 1px solid transparent;
  background: none;
  font: inherit;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.masthead-nav a:hover { color: var(--text); }

.nav-bot {
  color: var(--amber);
  border-color: rgba(233, 180, 76, 0.35);
  background: rgba(233, 180, 76, 0.07);
  letter-spacing: 0.02em;
}
.nav-bot:hover { background: rgba(233, 180, 76, 0.14); }

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.masthead-meta b { color: var(--text-dim); font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.live s { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(95, 191, 154, 0.14); }

/* ---------- hero ---------- */

.hero { padding: 84px 0 20px; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 26px;
}
.hero-kicker .rule { width: 46px; height: 1px; background: linear-gradient(90deg, var(--amber), transparent); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 26px;
  max-width: 15em;
}
.hero h1 .accent {
  color: var(--amber);
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: 4px;
  height: 8px;
  background: linear-gradient(90deg, rgba(233, 180, 76, 0.22), transparent);
  z-index: -1;
}

.hero-lede {
  max-width: 44em;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.95;
  margin: 0 0 46px;
}
.hero-lede strong { color: var(--text); font-weight: 500; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px 6px 22px 0;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: none; }
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.stat span {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- section shell ---------- */

.section { padding: 76px 0 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head h2::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--amber);
  display: inline-block;
}
.section-head .sub {
  margin: 7px 0 0 16px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- digest ---------- */

.digest-badge {
  text-align: right;
  font-family: var(--mono);
}
.digest-badge b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--amber);
  font-weight: 500;
}
.digest-badge span { font-size: 10px; letter-spacing: 0.14em; color: var(--muted); }

.digest-list {
  list-style: none;
  counter-reset: d;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(233, 180, 76, 0.05), transparent 40%),
    var(--panel);
  overflow: hidden;
}

.digest-list li {
  counter-increment: d;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s;
}
.digest-list li:last-child { border-bottom: none; }
.digest-list li:hover { background: rgba(255, 255, 255, 0.022); }

.digest-list li::before {
  content: "0" counter(d);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 5px;
  letter-spacing: 0.06em;
}

.digest-body p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}
.digest-body .digest-link {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.digest-body .digest-link:hover { color: var(--amber); }
.digest-body .digest-link::before { content: "↗"; font-size: 11px; }

/* ---------- search ---------- */

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  min-width: 320px;
  transition: border-color 0.2s, background 0.2s;
}
.search-box:focus-within { border-color: rgba(233, 180, 76, 0.5); background: #0f131a; }
.search-box svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.6; flex: none; }
.search-box input {
  border: none;
  background: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  width: 100%;
}
.search-box input::placeholder { color: #5d6675; }

/* ---------- filters ---------- */

.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
  margin-bottom: 4px;
}

.filter-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }

.chip {
  font-family: var(--sans);
  font-size: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.16s;
  letter-spacing: 0.03em;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.22); color: var(--text); }
.chip.is-on {
  background: var(--amber);
  border-color: var(--amber);
  color: #16120a;
  font-weight: 600;
}
.chip.src.is-on {
  background: rgba(106, 146, 232, 0.16);
  border-color: rgba(106, 146, 232, 0.55);
  color: #c3d2f5;
  font-weight: 500;
}

/* ---------- timeline ---------- */

.timeline { display: flex; flex-direction: column; }

.month {
  position: relative;
  margin-bottom: 10px;
}

.month-head {
  position: sticky;
  top: 64px;
  z-index: 30;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0 12px;
  background: linear-gradient(180deg, var(--bg) 62%, rgba(8, 10, 14, 0));
}
.month-head h3 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  margin: 0;
  color: var(--text);
}
.month-head .count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.month-head .bar { flex: 1; height: 1px; background: var(--line); }

.day {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
}

.day-date {
  font-family: var(--mono);
  padding: 18px 0 0;
  position: relative;
}
.day-date b {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.day-date span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.day-date::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 24px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card {
  border-left: 1px solid var(--line);
  padding: 14px 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.day:last-child .card { padding-bottom: 8px; }

.card:hover .card-title { color: var(--amber); }

.card-tags-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.pill {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.pill.t { border-color: rgba(106, 146, 232, 0.4); color: #a8bdf0; background: rgba(106, 146, 232, 0.07); }
.pill.t[data-t="清单"] { border-color: rgba(226, 87, 76, 0.42); color: #f0a49c; background: rgba(226, 87, 76, 0.08); }
.pill.t[data-t="执法"] { border-color: rgba(233, 180, 76, 0.4); color: #edc579; background: rgba(233, 180, 76, 0.08); }
.pill.t[data-t="反制"] { border-color: rgba(95, 191, 154, 0.4); color: #8fd6bc; background: rgba(95, 191, 154, 0.08); }
.pill.t[data-t="制裁"] { border-color: rgba(190, 120, 220, 0.4); color: #d0a3e8; background: rgba(190, 120, 220, 0.08); }
.pill.t[data-t="立法"] { border-color: rgba(255, 255, 255, 0.22); color: var(--text-dim); }
.pill.t[data-t="规则"] { border-color: rgba(120, 170, 220, 0.35); color: #9fc4e6; background: rgba(120, 170, 220, 0.07); }
.pill.t[data-t="市场"] { border-color: rgba(255, 255, 255, 0.16); color: var(--muted); }

.pill.src { border: none; background: none; color: var(--muted); padding-left: 0; font-size: 10px; }
.pill.via { border-color: rgba(255, 255, 255, 0.14); color: #8b93a3; font-size: 9px; text-transform: none; letter-spacing: 0.02em; font-family: var(--sans); }

.card-title {
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.5;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}

.card-summary {
  margin: 0;
  font-size: 13.6px;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 62em;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.kw {
  font-family: var(--mono);
  font-size: 9.5px;
  color: #6f7887;
  letter-spacing: 0.04em;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.12);
  padding-bottom: 1px;
}
.card-links { display: flex; gap: 14px; margin-left: auto; }
.card-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.16s, border-color 0.16s;
}
.card-links a:hover { color: var(--amber); border-color: rgba(233, 180, 76, 0.5); }
.card-links a::after { content: "↗"; }

.hit { background: rgba(233, 180, 76, 0.16); color: #f4d79b; border-radius: 2px; }

.empty {
  padding: 40px 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- sources ---------- */

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.source-card {
  background: var(--panel);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: background 0.2s;
  position: relative;
}
.source-card:hover { background: var(--panel-2); }

.source-card .src-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.source-card h4 {
  margin: 0;
  font-size: 15px;
  font-family: var(--serif);
  letter-spacing: 0.05em;
  font-weight: 600;
}
.source-card .src-full {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.source-card p { margin: 0; font-size: 12.6px; line-height: 1.75; color: var(--text-dim); }
.source-card .src-links { display: flex; gap: 14px; margin-top: 4px; }
.source-card .src-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--amber);
  opacity: 0.85;
}
.source-card .src-links a:hover { opacity: 1; text-decoration: underline; }

.note {
  margin: 20px 0 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 60em;
  padding-left: 14px;
  border-left: 2px solid rgba(233, 180, 76, 0.25);
}

/* ---------- footer ---------- */

.footer {
  margin-top: 84px;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer-brand { display: flex; align-items: baseline; gap: 10px; }
.footer-brand strong { font-family: var(--serif); font-size: 15px; color: var(--text-dim); letter-spacing: 0.2em; }
.footer-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-meta b { color: var(--text-dim); font-weight: 500; }

/* ---------- chat ---------- */

.chat-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(233, 180, 76, 0.5);
  background: linear-gradient(180deg, #191408, #0e0c06);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
  transition: transform 0.18s, border-color 0.18s;
}
.chat-fab:hover { transform: translateY(-2px); border-color: var(--amber); }
.chat-fab svg { width: 17px; height: 17px; stroke: var(--amber); fill: none; stroke-width: 1.4; }
.chat-fab circle { fill: var(--amber); stroke: none; }
.chat-fab[hidden] { display: none; }

.chat-panel {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 61;
  width: min(420px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.22s;
}
.chat-panel.open { transform: none; opacity: 1; pointer-events: auto; }

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #12161f, #0c1016);
}
.chat-id { display: flex; align-items: center; gap: 11px; }
.chat-avatar {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(233, 180, 76, 0.22), rgba(233, 180, 76, 0.04));
  border: 1px solid rgba(233, 180, 76, 0.35);
  color: var(--amber);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.05em;
}
.chat-id strong { display: block; font-size: 13.5px; letter-spacing: 0.1em; }
.chat-id em {
  display: flex; align-items: center; gap: 5px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.chat-id em s { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.chat-close {
  width: 30px; height: 30px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: none;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.chat-close:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }

.msg { display: flex; gap: 8px; max-width: 94%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }

.bubble {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13.4px;
  line-height: 1.8;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  color: var(--text);
}
.bubble p { margin: 0 0 6px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble strong { color: var(--amber); font-weight: 500; }
.bubble a { color: #9fc4e6; border-bottom: 1px solid rgba(159, 196, 230, 0.4); }
.msg.user .bubble {
  background: rgba(233, 180, 76, 0.1);
  border-color: rgba(233, 180, 76, 0.3);
  color: #f4e3c0;
}

.hits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hit-chip {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  transition: all 0.15s;
}
.hit-chip:hover { color: var(--amber); border-color: rgba(233, 180, 76, 0.4); }

.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.chat-suggest {
  display: flex;
  gap: 6px;
  padding: 0 14px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chat-suggest::-webkit-scrollbar { display: none; }
.chat-suggest button {
  flex: none;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0e1219;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
}
.chat-suggest button:hover { border-color: rgba(233, 180, 76, 0.45); color: var(--amber); }

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: #0a0d12;
}
.chat-input input {
  flex: 1;
  min-width: 0;
  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0f141c;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.chat-input input:focus { border-color: rgba(233, 180, 76, 0.5); }
.chat-input button {
  width: 40px;
  border-radius: 8px;
  border: 1px solid rgba(233, 180, 76, 0.4);
  background: rgba(233, 180, 76, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.chat-input button svg { width: 16px; height: 16px; stroke: var(--amber); fill: none; stroke-width: 1.5; }
.chat-input button:hover { background: rgba(233, 180, 76, 0.2); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .masthead-meta .stamp { display: none; }
  .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .masthead-inner { gap: 12px; }
  .masthead-nav a { display: none; }
  .masthead-nav { margin-left: auto; }
  .masthead-meta { display: none; }
  .hero { padding-top: 54px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line-soft); }
  .hero-lede { font-size: 14.5px; }
  .section { padding-top: 56px; }
  .search-box { min-width: 100%; }
  .day { grid-template-columns: 1fr; gap: 0; }
  .day-date {
    display: flex; align-items: baseline; gap: 8px;
    padding: 16px 0 6px;
  }
  .day-date b { font-size: 13px; }
  .day-date::after { display: none; }
  .card { border-left: 1px solid var(--line); padding: 6px 0 16px 16px; }
  .card-title { font-size: 16.5px; }
  .card-links { margin-left: 0; }
  .month-head { top: 64px; }
  .source-grid { grid-template-columns: 1fr; }
  .chat-panel {
    right: 12px; bottom: 12px; left: 12px;
    width: auto; height: calc(100vh - 88px);
  }
  .chat-fab { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
