:root {
  color-scheme: dark;
  --ink-0: #04091c;
  --ink-1: #060d24;
  --ink-2: #0b1734;
  --ink-3: #101f44;
  --ink-4: #162952;
  --line: rgba(171, 191, 255, .18);
  --line-strong: rgba(171, 191, 255, .30);
  --text: #fbfcff;
  --muted: #b6c0e0;
  --quiet: #8996bd;
  --orange: #ffad43;
  --orange-dark: #dd8522;
  --blue: #6ba8ff;
  --cyan: #71d9ee;
  --success: #7de5b4;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: "Microsoft YaHei UI", "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 13px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink-0); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(ellipse at 76% -10%, rgba(40, 80, 172, .28), transparent 45%),
    radial-gradient(ellipse at 18% 95%, rgba(25, 95, 130, .16), transparent 36%),
    var(--ink-0);
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }

.app-shell { display: grid; grid-template-columns: 215px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 33px 20px 22px;
  background: linear-gradient(180deg, #0a1536 0%, #091230 70%, #07102a 100%);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.rail::before {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  left: -112px; bottom: 120px;
  border: 1px solid rgba(105, 166, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(105, 166, 255, .025), 0 0 0 76px rgba(105, 166, 255, .018);
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; width: max-content; }
.brand-mark { width: 30px; height: 30px; display: flex; align-items: end; gap: 3px; transform: skew(-12deg); }
.brand-mark i { display: block; width: 7px; background: var(--orange); border-radius: 1px 1px 0 0; }
.brand-mark i:nth-child(1) { height: 13px; opacity: .68; }
.brand-mark i:nth-child(2) { height: 23px; }
.brand-mark i:nth-child(3) { height: 18px; opacity: .85; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word b { font-family: var(--serif); font-size: 19px; letter-spacing: .09em; }
.brand-word small { color: var(--muted); font: 7px var(--mono); letter-spacing: .2em; margin-top: 5px; }
.rail-line { height: 1px; background: var(--line); margin: 28px 0 18px; }
.primary-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 11px;
  min-height: 44px; padding: 9px 11px;
  border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--muted); text-align: left;
  cursor: pointer; transition: color .2s, background .2s, border-color .2s;
}
.nav-item svg, .search-box svg, .fetch-button svg, .save-action svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nav-item span { font-size: 13px; letter-spacing: .04em; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.active { color: var(--orange); background: rgba(255, 173, 67, .10); border-color: rgba(255, 173, 67, .20); }
.nav-count { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; font: 10px var(--mono); color: var(--quiet); background: rgba(255,255,255,.055); }
.nav-item.active .nav-count { color: var(--orange); background: rgba(255,173,67,.12); }
.rail-spacer { flex: 1; }
.rail-note { 
  position: relative; margin: 14px 2px 27px; padding: 14px 13px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,.024);
}
.rail-note p { margin: 8px 0 4px; font-size: 11px; font-weight: bold; }
.rail-note small, .rail-footer small { color: var(--quiet); font-size: 10px; }
.live-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,173,67,.11); }
.rail-footer { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.monogram { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--ink-3); color: #bcd0ff; font: 13px var(--serif); }
.rail-footer div { display: flex; flex-direction: column; gap: 3px; }
.rail-footer b { font-size: 11px; }

.main { min-width: 0; padding: 0 38px 36px; }
.crumbs { color: var(--quiet); font-size: 11px; letter-spacing: .04em; }
.crumbs i { margin: 0 9px; color: #4e5f8e; font-style: normal; }
.crumbs strong { color: #d8e2ff; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px 14px; }
.fixed-filter { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; letter-spacing: .03em; white-space: nowrap; }
.fixed-filter i { width: 2px; height: 2px; border-radius: 50%; background: #687bad; }
.source-select { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 1px solid rgba(168, 184, 238, .14); border-radius: 7px; color: var(--quiet); font-size: 9px; background: rgba(4,13,41,.42); }
.source-select span { white-space: nowrap; }
.source-select select { border: 0; outline: 0; background: transparent; color: #d9e2ff; font-size: 10px; cursor: pointer; }
.source-select option { background: var(--ink-2); color: var(--text); }
.fetch-button {
  display: flex; align-items: center; gap: 8px;
  height: 37px; padding: 0 16px;
  border: 1px solid var(--orange); border-radius: 7px;
  color: #2e1a05; background: var(--orange);
  font-size: 12px; font-weight: 700; cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 173, 67, .08);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.fetch-button:hover { background: #ffc05e; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,173,67,.18); }
.fetch-button:disabled { cursor: wait; opacity: .82; }
.fetch-button.is-loading svg { animation: rotate 1.1s linear infinite; }
.logout-button {
  height: 34px; padding: 0 12px;
  border: 1px solid rgba(168, 184, 238, .14); border-radius: 7px;
  color: var(--quiet); background: rgba(4, 13, 41, .42); font-size: 10px; cursor: pointer;
}
.logout-button:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

.masthead { padding: 20px 1px 24px; border-bottom: 1px solid var(--line); }
.masthead .crumbs { margin-bottom: 18px; }
.masthead-body { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--orange); font: 9px var(--mono); letter-spacing: .14em; }
.eyebrow i { width: 27px; height: 1px; background: rgba(255,173,67,.52); }
.masthead h1 { margin: 12px 0 7px; font-family: var(--serif); font-size: clamp(26px, 2.3vw, 36px); font-weight: 500; letter-spacing: -.01em; line-height: 1.23; }
.masthead h1 em { color: var(--orange); font-style: normal; }
.masthead-copy p { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .04em; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 27px; align-items: start; padding-top: 28px; }
.feed-panel, .detail-panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(9, 20, 50, .72); overflow: hidden; }
.feed-panel { min-width: 0; }
.feed-heading { display: flex; align-items: end; justify-content: space-between; padding: 19px 20px 17px; border-bottom: 1px solid var(--line); }
.kicker { font: 8px var(--mono); letter-spacing: .15em; color: #7f95cc; }
.feed-heading h2 { margin: 7px 0 0; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .04em; }
.loaded-count { display: flex; align-items: baseline; gap: 4px; color: var(--quiet); font-size: 9px; }
.loaded-count b { color: var(--orange); font: 21px var(--mono); font-weight: 500; }
.feed-toolbar { display: flex; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.search-box { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid rgba(168, 184, 238, .14); border-radius: 7px; background: rgba(4,13,41,.42); color: var(--quiet); }
.search-box svg { width: 15px; flex: none; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.search-box input::placeholder { color: #7180a9; }
.search-box kbd { padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; color: #6d7da7; font: 8px var(--mono); white-space: nowrap; }
.sort-select { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 1px solid rgba(168, 184, 238, .14); border-radius: 7px; color: var(--quiet); font-size: 9px; background: rgba(4,13,41,.42); }
.sort-select select { border: 0; outline: 0; background: transparent; color: #d9e2ff; font-size: 10px; cursor: pointer; }
.sort-select option { background: var(--ink-2); color: var(--text); }
.topic-tabs { display: flex; gap: 5px; padding: 11px 16px 0; overflow-x: auto; border-bottom: 1px solid var(--line); }
.topic-tab { border: 0; padding: 7px 9px 10px; white-space: nowrap; color: var(--quiet); background: transparent; font-size: 10px; cursor: pointer; border-bottom: 2px solid transparent; }
.topic-tab.active { color: var(--orange); border-color: var(--orange); }
.feed-table-head { display: grid; grid-template-columns: minmax(250px, 1fr) 60px 82px 73px 22px; gap: 8px; align-items: center; min-height: 33px; padding: 0 19px; color: #6f7fa8; font: 8px var(--mono); letter-spacing: .07em; border-bottom: 1px solid var(--line); }
.feed-list { min-height: 200px; }
.story-row {
  display: grid; grid-template-columns: minmax(250px, 1fr) 60px 82px 73px 22px;
  align-items: center; gap: 8px; width: 100%; min-height: 72px; padding: 11px 16px 11px 19px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer;
  transition: background .18s;
}
.story-row:hover { background: rgba(107,168,255,.045); }
.story-row.selected { background: linear-gradient(90deg, rgba(255,173,67,.085), rgba(255,173,67,.025)); box-shadow: inset 2px 0 var(--orange); }
.story-main { min-width: 0; display: flex; gap: 10px; align-items: start; }
.story-rank { width: 18px; flex: none; color: #697aa8; font: 10px var(--mono); padding-top: 2px; }
.story-row.selected .story-rank { color: var(--orange); }
.story-text { min-width: 0; }
.story-title { display: block; overflow: hidden; color: #e7edff; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.story-row.selected .story-title { color: white; }
.story-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: #7787ae; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-account { color: var(--orange); }
.meta-dot { width: 2px; height: 2px; background: #5c6e9b; border-radius: 50%; flex: none; }
.story-stat { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.story-stat strong { color: #dce6ff; font: 10px var(--mono); font-weight: 400; }
.story-stat span { color: #6e7fa9; font-size: 8px; }
.story-stat.hot strong { color: var(--orange); }
.story-age { color: var(--muted); font: 10px var(--mono); }
.story-star { color: #6779a2; display: flex; justify-content: end; }
.story-star svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.story-star.active { color: var(--orange); }
.story-star.active svg { fill: rgba(255,173,67,.2); }
.feed-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 19px; min-height: 44px; color: #6b7ca6; font-size: 9px; }
.load-more { display: flex; align-items: center; gap: 7px; border: 0; padding: 2px 0; background: transparent; color: var(--orange); font-size: 10px; cursor: pointer; }
.load-more:hover { color: #ffd08c; }
.load-more:disabled { opacity: .65; cursor: wait; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 35px 24px 46px; }
.radar-graphic { width: 147px; height: 117px; position: relative; margin: 0 auto 14px; overflow: hidden; }
.radar-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(107,168,255,.25); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-a { width: 95px; height: 95px; }
.ring-b { width: 137px; height: 137px; border-color: rgba(107,168,255,.12); }
.radar-sweep { position: absolute; width: 1px; height: 53px; left: 73px; top: 5px; transform-origin: bottom; background: linear-gradient(transparent, rgba(255,173,67,.8)); transform: rotate(15deg); animation: scan 5s linear infinite; }
.radar-core { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 15px rgba(255,173,67,.42); }
.radar-blip { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.blip-a { left: 31px; top: 29px; }
.blip-b { right: 25px; top: 61px; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.blip-c { left: 58px; bottom: 17px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.empty-state h3 { margin: 8px 0 7px; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.empty-state p { margin: 0; max-width: 270px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.text-action { display: inline-flex; gap: 11px; margin-top: 17px; padding: 0; border: 0; color: var(--orange); background: none; font-size: 11px; cursor: pointer; }
.text-action:hover { color: #ffcd7e; }
.empty-small { display: flex; flex-direction: column; align-items: center; padding: 42px 20px; color: #cbd6f5; font-size: 12px; }
.empty-small p { margin: 8px 0 0; color: var(--quiet); font-size: 10px; }

.detail-panel { position: sticky; top: 20px; min-height: 505px; background: linear-gradient(160deg, rgba(18,33,76,.92), rgba(8,18,48,.86)); }
.detail-topline { min-height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); color: #7186b6; font: 8px var(--mono); letter-spacing: .08em; }
.detail-topline b { color: #c3d0ef; }
.detail-tag { padding: 4px 7px; border-radius: 4px; color: #9bbcee; background: rgba(107,168,255,.10); font: 8px var(--sans); letter-spacing: .04em; }
.detail-back { display: none; align-items: center; gap: 5px; border: 0; padding: 6px 8px; margin-left: -8px; color: var(--muted); background: transparent; font-size: 12px; cursor: pointer; }
.detail-back svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.detail-index-label { white-space: nowrap; }
.detail-content { padding: 21px 19px 17px; }
.detail-placeholder { min-height: 335px; padding: 16px 7px; }
.quote-mark { display: block; height: 30px; color: var(--orange); font-family: var(--serif); font-size: 57px; line-height: .9; opacity: .75; }
.detail-placeholder h2 { margin: 19px 0 15px; color: #eef2ff; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.55; }
.detail-placeholder p { color: var(--muted); font-size: 11px; line-height: 1.9; }
.placeholder-rule { width: 34px; height: 1px; margin: 30px 0 11px; background: var(--orange); }
.detail-placeholder small { color: #6b7fa9; font: 8px var(--mono); letter-spacing: .16em; }
.detail-title { margin: 13px 0 14px; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.57; color: #f1f4ff; }
.detail-byline { display: flex; flex-wrap: wrap; gap: 5px 9px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.detail-byline span + span::before { content: "·"; margin-right: 9px; color: #566994; }
.story-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 19px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.metric-box { min-height: 58px; padding: 11px; background: rgba(9,21,57,.55); }
.metric-box strong { display: block; color: #e5edff; font: 16px var(--mono); font-weight: 400; }
.metric-box span { display: block; margin-top: 5px; color: #7789b4; font-size: 9px; }
.metric-box.hot strong { color: var(--orange); }
.detail-section-label { display: flex; justify-content: space-between; margin-top: 22px; color: #8295c0; font: 8px var(--mono); letter-spacing: .09em; }
.detail-section-label span:last-child { color: #61749e; }
.keyword-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.keyword { padding: 5px 8px; border: 1px solid rgba(107,168,255,.18); border-radius: 4px; color: #adc6f6; background: rgba(107,168,255,.07); font-size: 9px; }
.article-body { margin-top: 4px; }
.article-text { max-height: 360px; overflow-y: auto; margin-top: 11px; padding-right: 4px; color: #d5def7; font-family: var(--serif); font-size: 12px; line-height: 1.95; }
.article-text p { margin: 0 0 13px; }
.article-text p:last-child { margin-bottom: 0; }
.article-text::-webkit-scrollbar { width: 5px; }
.article-text::-webkit-scrollbar-thumb { background: rgba(107,168,255,.22); border-radius: 3px; }
.article-notice { margin-top: 11px; padding: 13px 12px; border: 1px dashed rgba(168,184,238,.18); border-radius: 7px; color: #8494bd; background: rgba(5,15,46,.32); font-size: 10px; line-height: 1.7; }
.angle-field { width: 100%; resize: vertical; min-height: 69px; margin-top: 7px; padding: 9px 10px; border: 1px solid rgba(168,184,238,.15); border-radius: 7px; color: #e3ebff; background: rgba(5,15,46,.53); font-size: 10px; line-height: 1.6; }
.angle-field::placeholder { color: #6c7da7; }
.status-select { width: 100%; margin-top: 7px; padding: 8px; border: 1px solid rgba(168,184,238,.15); border-radius: 7px; color: #e3ebff; background: rgba(5,15,46,.53); font-size: 10px; }
.source-link { display: inline-flex; gap: 5px; margin-top: 15px; color: var(--orange); font-size: 10px; text-decoration: none; }
.source-link:hover { color: #ffd293; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 17px; padding: 15px 0 17px; border-top: 1px solid var(--line); }
.copy-action, .save-action, .primary-action { height: 36px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 7px; font-size: 10px; cursor: pointer; }
.copy-action { border: 1px solid rgba(113, 217, 238, .30); color: #bfeef7; background: rgba(113, 217, 238, .06); }
.copy-action:hover { background: rgba(113, 217, 238, .12); }
.copy-action svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.save-action { border: 1px solid rgba(170,190,255,.20); color: #d0dbff; background: rgba(255,255,255,.02); }
.save-action:hover { background: rgba(255,255,255,.06); }
.save-action.active { color: var(--orange); border-color: rgba(255,173,67,.35); background: rgba(255,173,67,.08); }
.primary-action { border: 1px solid var(--orange); color: #321f05; background: var(--orange); font-weight: 700; }
.primary-action:hover { background: #ffc365; }
.primary-action.is-added { color: #111d47; background: #c6d8ff; border-color: #c6d8ff; }
.detail-actions button { transition: background .2s, border-color .2s; }

.toast { position: fixed; bottom: 24px; left: 50%; z-index: 20; padding: 10px 14px; transform: translate(-50%, 28px); border: 1px solid rgba(255,173,67,.34); border-radius: 8px; color: #fff2d8; background: #1a2b60; box-shadow: 0 12px 35px rgba(0,0,0,.25); font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255,125,125,.42); color: #ffd8d8; }
.story-row, .empty-state, .empty-small { animation: reveal .35s both; }
.story-row:nth-child(2) { animation-delay: .025s; }
.story-row:nth-child(3) { animation-delay: .05s; }
.story-row:nth-child(4) { animation-delay: .075s; }
.story-row:nth-child(5) { animation-delay: .1s; }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes scan { to { transform: rotate(375deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 75px minmax(0, 1fr); }
  .rail { align-items: center; padding-inline: 12px; }
  .brand-word, .nav-item span, .nav-item .nav-count, .rail-note p, .rail-note small, .rail-footer div { display: none; }
  .rail-line { width: 100%; }
  .nav-item { grid-template-columns: 22px; justify-content: center; width: 44px; padding-inline: 0; }
  .rail-note { width: 39px; height: 39px; padding: 15px; margin-bottom: 17px; }
  .rail-note .live-dot { width: 8px; height: 8px; }
  .monogram { width: 30px; }
  .main { padding-inline: 26px; }
  .masthead-body { gap: 20px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; }
  .feed-table-head, .story-row { grid-template-columns: minmax(200px, 1fr) 55px 72px 18px; }
  .feed-table-head span:nth-child(4), .story-age { display: none; }
}

@media (max-width: 780px) {
  .app-shell { display: block; }
  .rail { position: sticky; z-index: 5; top: 0; width: 100%; height: 61px; flex-direction: row; padding: 10px 17px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-line, .rail-spacer, .rail-note, .rail-footer { display: none; }
  .brand { margin-right: auto; }
  .brand-word { display: flex; }
  .brand-word b { font-size: 16px; }
  .primary-nav { flex-direction: row; }
  .nav-item { width: 39px; height: 39px; }
  .main { padding: 0 14px 25px; }
  .masthead { padding: 16px 1px 20px; }
  .masthead .crumbs { display: none; }
  .masthead-body { display: block; }
  .topbar-actions { width: 100%; flex-wrap: wrap; gap: 8px 10px; }
  .fixed-filter { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; gap: 6px; font-size: 9px; }
  .source-select { flex: 0 0 auto; }
  #hupu-section-wrap { flex: 0 0 auto; }
  .fetch-button { height: 38px; padding-inline: 14px; flex: 1 0 100%; justify-content: center; }
  .masthead h1 { font-size: 25px; }
  .masthead-copy p { font-size: 11px; }
  .masthead-copy { margin-bottom: 18px; }
  .workspace { display: block; padding-top: 15px; }
    .detail-panel { position: fixed; inset: 0; z-index: 30; min-height: 100vh; margin-top: 0; border-radius: 0; border: 0; display: none; overflow-y: auto; }
    body.detail-open .detail-panel { display: block; }
    body.detail-open .rail, body.detail-open .masthead, body.detail-open .feed-panel { display: none; }
    .detail-back { display: inline-flex; }
  .detail-placeholder { min-height: 190px; }
  .feed-toolbar { padding: 11px; }
  .search-box kbd { display: none; }
  .feed-heading { padding: 15px 14px; }
  .story-row { min-height: 75px; padding-inline: 13px; grid-template-columns: minmax(0, 1fr) 56px 16px; }
  .story-age, .story-stat:nth-of-type(2) { display: none; }
  .feed-table-head { display: none; }
  .story-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .story-stat strong { font-size: 9px; }
  .feed-footer { padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
