:root {
  --paper: #f6f0e3;
  --paper-deep: #eee4d2;
  --paper-light: #fbf8f0;
  --news-ink: #211f1a;
  --news-muted: #716b60;
  --news-line: #c8bead;
  --news-red: #8c2f2a;
  --news-red-soft: rgba(140, 47, 42, .09);
  --surface: rgba(251, 248, 240, .88);
  --ink: var(--news-ink);
  --muted: var(--news-muted);
  --line: var(--news-line);
  --blue: var(--news-red);
  --cyan: #756747;
  --shadow: 0 18px 48px rgba(61, 47, 28, .1);
}

html { background: #d9d0c2; }

body {
  position: relative;
  isolation: isolate;
  padding: 30px 20px 58px;
  color: var(--news-ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.68), transparent 25%),
    radial-gradient(circle at 82% 5%, rgba(103,84,55,.11), transparent 23%),
    repeating-linear-gradient(90deg, rgba(64,49,30,.018) 0 1px, transparent 1px 5px),
    #ddd4c6;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body::before {
  content: "THE DAILY REPORT  ·  WORLD  ·  BUSINESS  ·  TECHNOLOGY  ·  CULTURE  ·  THE DAILY REPORT";
  position: fixed;
  z-index: -2;
  left: -3vw;
  right: -3vw;
  top: 15vh;
  color: rgba(48, 40, 28, .055);
  font: 800 clamp(52px, 8vw, 126px)/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
  white-space: nowrap;
  transform: rotate(-4deg);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  z-index: 10;
  inset: 0;
  opacity: .2;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(54,42,26,.15) 0 .45px, transparent .7px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.8) 0 .55px, transparent .8px);
  background-size: 7px 9px, 11px 13px;
  mix-blend-mode: multiply;
}

.page {
  position: relative;
  width: min(1230px, 100%);
  padding: 20px;
  border: 1px solid rgba(92, 75, 50, .22);
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 0 49.9%, rgba(91,73,47,.025) 50%, transparent 50.1%),
    linear-gradient(180deg, rgba(255,255,255,.46), transparent 240px),
    var(--paper);
  box-shadow: 0 30px 90px rgba(62, 48, 28, .2), 0 2px 3px rgba(70,52,29,.12);
}

.page::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .48;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(70,52,31,.012) 3px 4px),
    radial-gradient(circle at 12% 25%, rgba(132,102,57,.035), transparent 22%),
    radial-gradient(circle at 78% 74%, rgba(132,102,57,.025), transparent 26%);
}

.page > * { position: relative; z-index: 1; }

.header {
  z-index: 30;
  min-height: 218px;
  margin-bottom: 18px;
  padding: 44px 38px 30px;
  overflow: visible;
  color: var(--news-ink);
  border: 0;
  border-top: 4px double #332f28;
  border-bottom: 4px double #332f28;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.header::before {
  content: "VOL. 01\AINTELLIGENT EDITION";
  width: auto;
  height: auto;
  top: 18px;
  left: 38px;
  right: auto;
  color: var(--news-muted);
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: 650 9px/1.5 Arial, sans-serif;
  letter-spacing: .13em;
  white-space: pre;
}

.header::after {
  content: "AI 精选 · 每日更新";
  width: auto;
  height: auto;
  top: 22px;
  right: 38px;
  bottom: auto;
  color: var(--news-muted);
  border-radius: 0;
  background: none;
  filter: none;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
}

.brand-block {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  display: block;
  text-align: center;
}

.brand-mark {
  position: absolute;
  top: 50%;
  right: calc(100% + 24px);
  width: 56px;
  height: 56px;
  color: #7f302b;
  border: 1px solid rgba(127, 48, 43, .58);
  border-radius: 2px;
  background: rgba(251, 248, 240, .52);
  box-shadow:
    inset 0 0 0 3px rgba(246, 240, 227, .96),
    inset 0 0 0 4px rgba(140, 47, 42, .18),
    4px 4px 0 rgba(140, 47, 42, .06);
  font-family: "Songti SC", "STSong", serif;
  font-weight: 800;
  transform: translateY(-50%);
}

.header-kicker {
  justify-content: center;
  margin-bottom: 5px;
  color: var(--news-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: .22em;
}

.header-kicker span { width: 28px; height: 1px; background: var(--news-red); }

.header-title {
  color: var(--news-ink);
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.header-title strong {
  display: inline-block;
  width: 2.5em;
  margin-right: -.5em;
  color: var(--news-ink);
  font-family: "Segoe Script", "Snell Roundhand", "Bradley Hand", "Kaiti SC", cursive;
  font-size: 1em;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
  text-align: center;
  text-shadow: none;
  vertical-align: -.03em;
  transform: scaleX(.8) rotate(-1deg);
  transform-origin: left center;
}

.header-desc {
  margin-top: 12px;
  color: var(--news-muted);
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  letter-spacing: .12em;
}

.user-menu { position: absolute; z-index: 20; right: 0; bottom: 18px; }

.user-button {
  min-height: 38px;
  color: var(--news-ink);
  border: 1px solid #a89d8b;
  border-radius: 2px;
  background: rgba(255,255,255,.24);
  backdrop-filter: none;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px #c9beac;
}

.user-button:hover { background: var(--paper-light); }
.user-avatar { color: var(--paper-light); border-radius: 1px; background: var(--news-red); }
.user-avatar.has-image { color: transparent; background-position: center; background-size: cover; }
.user-dropdown {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  padding: 7px;
  border: 1px solid #a89d8b;
  background: var(--paper-light);
  box-shadow: 0 16px 38px rgba(52,38,20,.2);
}
.user-dropdown[hidden] { display: none; }
.user-dropdown button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: var(--news-ink);
  border: 0;
  border-bottom: 1px solid rgba(168,157,139,.28);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.user-dropdown button:hover { color: var(--news-red); background: var(--news-red-soft); }
.user-dropdown button:last-child { border-bottom: 0; }
.user-dropdown button.danger { color: #9b2e28; }
.menu-badge { min-width: 20px; padding: 1px 5px; color: #fff; background: var(--news-red); text-align: center; }

.paper-edition {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: -1px 0 18px;
  padding: 7px 10px;
  color: var(--news-muted);
  border-bottom: 1px solid var(--news-line);
  font: 650 10px/1.4 Georgia, "Times New Roman", serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.paper-edition span:nth-child(2) { color: var(--news-red); font-weight: 800; }
.paper-edition span:last-child { text-align: right; }

.t-card, .results-section {
  border: 1px solid var(--news-line);
  border-radius: 3px;
  background: rgba(251,248,240,.68);
  box-shadow: 0 7px 18px rgba(68,50,26,.045);
  backdrop-filter: none;
}

.results-section { border: 0; background: transparent; box-shadow: none; }
.section-heading { padding-bottom: 10px; border-bottom: 3px double #6c6356; }
.section-eyebrow { color: var(--news-red); font-family: Georgia, "Times New Roman", serif; letter-spacing: .18em; }
.section-title, .module-title { color: var(--news-ink); font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif; font-weight: 900; }
.section-title { font-size: 23px; letter-spacing: .015em; }
.section-hint { color: var(--news-muted); font-family: "Songti SC", "STSong", serif; }

.prompt-btn, .reco-btn {
  border-color: #bdb19e;
  border-radius: 2px;
  color: #4f493f;
  background: rgba(255,255,255,.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

.prompt-btn::before { color: var(--news-red); }
.prompt-btn:hover, .reco-btn:hover { color: var(--news-red); border-color: var(--news-red); background: var(--news-red-soft); box-shadow: none; }
.recommend-box { border-color: #c8bcaa; border-radius: 2px; background: rgba(238,228,210,.55); }
.reco-btn { color: var(--paper-light); border-color: var(--news-red); background: var(--news-red); }
.reco-btn:hover { color: #fff; background: #6f231f; }

.modules-container { gap: 18px; }

.module-card {
  padding: 25px;
  border-color: var(--news-line);
  border-radius: 3px;
  background: rgba(251,248,240,.76);
  box-shadow: 0 8px 22px rgba(61,45,23,.055);
}

.module-card::before { width: 3px; background: var(--news-red); }
.module-card::after { content: "NEWS DESK"; position: absolute; top: 11px; right: 15px; color: rgba(57,48,37,.13); font: 700 9px/1 Arial, sans-serif; letter-spacing: .17em; }
.module-card.highlight { border-color: #9a6c61; box-shadow: 0 12px 28px rgba(88,41,31,.1); }
.module-title::before { width: 8px; height: 8px; border-radius: 0; background: var(--news-red); box-shadow: none; transform: rotate(45deg); }

.article-list { gap: 0; border-top: 1px solid var(--news-line); border-bottom: 1px solid var(--news-line); }

.article-item {
  border: 0;
  border-right: 1px solid var(--news-line);
  border-radius: 0;
  background: transparent;
}

.article-item:last-child { border-right: 0; }
.article-item:hover { transform: none; border-color: var(--news-line); background: rgba(255,255,255,.38); box-shadow: inset 0 3px 0 var(--news-red); }
.article-item a { min-height: 190px; padding: 19px 18px 16px; }
.article-item a::after { color: #857d71; }
.article-item:hover a::after { color: var(--news-red); }
.article-image {
  position: relative;
  width: 100%;
  height: 132px;
  margin: 0 0 15px;
  display: block;
  overflow: hidden;
  border: 1px solid #a99e8c;
  background: #d8d0c1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32);
}
.article-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(.82) sepia(.34) saturate(.62) contrast(1.2) brightness(.92);
  transform: scale(1.015);
}
.article-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(40,31,22,.34) .65px, transparent .8px) 0 0 / 3px 3px,
    linear-gradient(115deg, rgba(110,72,44,.12), rgba(255,246,220,.08));
  mix-blend-mode: multiply;
  opacity: .58;
}
.article-title { color: var(--news-ink); font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif; font-size: 17px; font-weight: 900; line-height: 1.5; }
.article-summary { color: #686156; font-family: "Songti SC", "STSong", serif; line-height: 1.78; text-align: justify; }
.article-summary::first-letter { font-size: 1.32em; font-weight: 800; }
.article-meta { color: #8a8174; border-top-color: #d7cdbc; font-family: Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.article-meta span:first-child { color: var(--news-red); }
.article-read { opacity: .62; filter: sepia(.15); }

.t-button--outline {
  color: #4d463c;
  border-color: #b9ad9b;
  border-radius: 2px;
  background: transparent;
}
.t-button--outline:hover { color: #fff; border-color: var(--news-red); background: var(--news-red); }
.more-loading::after { border-color: #d3c8b6; border-top-color: var(--news-red); }

.chat-section { border: 1px solid var(--news-line); }
.model-chat { background: rgba(251,248,240,.72); }
.model-chat-head { color: var(--paper-light); border-bottom: 3px double #6d6253; background: #292722; }
.model-chat-subtitle { color: rgba(246,240,227,.62); }
.news-route-badge { color: #f0d7bd; border-color: rgba(240,215,189,.25); border-radius: 2px; background: rgba(140,47,42,.28); }
.agent-live-dot { background: #d8b664; box-shadow: 0 0 0 4px rgba(216,182,100,.14); }
.chat-container { background: rgba(242,234,219,.6); }
.msg.user .bubble { border-radius: 10px 10px 3px 10px; background: var(--news-red); box-shadow: 0 7px 16px rgba(91,35,31,.15); }
.msg.ai .bubble { color: #3b372f; border-color: #cfc4b2; border-radius: 10px 10px 10px 3px; background: var(--paper-light); box-shadow: 0 4px 10px rgba(63,47,27,.05); }
.chat-composer { border-top-color: var(--news-line); background: rgba(251,248,240,.9); }
.composer-input { color: var(--news-ink); border-color: #bfb4a2; border-radius: 2px; background: rgba(255,255,255,.3); }
.composer-input:focus { border-color: var(--news-red); background: var(--paper-light); box-shadow: 0 0 0 3px var(--news-red-soft); }
.composer-send { border-radius: 2px; background: var(--news-red); box-shadow: 0 8px 18px rgba(91,35,31,.16); }
.composer-send:hover { box-shadow: 0 10px 22px rgba(91,35,31,.22); }

.news-admin-console { margin-top: 18px; }
.news-admin-heading { margin-bottom: 0; }
.news-admin-console[hidden] { display: none !important; }
.news-task-panel { margin-top: 18px; padding: 20px; border: 1px solid var(--news-line); background: rgba(238,228,210,.32); }
.news-task-head { display: flex; gap: 22px; align-items: flex-start; justify-content: space-between; padding-bottom: 16px; border-bottom: 3px double #6c6356; cursor: pointer; list-style: none; user-select: none; }
.news-task-head::-webkit-details-marker { display: none; }
.news-task-head::after { content: "展开设置 ↓"; flex: 0 0 auto; align-self: center; padding: 6px 9px; color: var(--news-red); border: 1px solid #b9ad9b; background: rgba(255,255,255,.24); font-size: 11px; font-weight: 800; }
.news-task-panel[open] .news-task-head::after { content: "收起设置 ↑"; }
.news-task-head:hover::after { color: #fff; border-color: var(--news-red); background: var(--news-red); }
.news-task-panel:not([open]) .news-task-head { padding-bottom: 0; border-bottom: 0; }
.news-task-panel:not([open]) .news-task-desc { margin-bottom: 0; }
.news-task-desc { margin: 7px 0 0; color: var(--news-muted); font: 13px/1.7 "Songti SC", "STSong", serif; }
.news-task-status { flex: 0 0 auto; min-width: 82px; padding: 7px 12px; color: #fff; border-radius: 2px; background: #716b60; text-align: center; font-size: 12px; font-weight: 800; }
.news-task-status.enabled { background: #41613f; }
.news-task-status.running { background: var(--news-red); animation: newsTaskPulse 1.3s ease-in-out infinite; }
.news-task-status.cleanup { background: #b26b18; animation: newsTaskPulse 1.8s ease-in-out infinite; }
.news-task-status.failed { background: #9b341f; }
.news-task-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 18px 0; }
.news-task-controls label { display: grid; gap: 6px; color: var(--news-muted); font-size: 12px; font-weight: 700; }
.news-task-controls select { min-width: 135px; height: 39px; padding: 0 11px; color: var(--news-ink); border: 1px solid #b9ad9b; border-radius: 2px; background: var(--paper-light); }
.news-task-controls button { min-height: 39px; padding: 0 16px; cursor: pointer; }
.news-task-primary { color: #fff; border: 1px solid var(--news-red); border-radius: 2px; background: var(--news-red); }
.news-task-primary:hover { background: #6f231f; }
.news-task-primary.stop { color: var(--news-red); background: transparent; }
.news-task-stop { color: #fff; border: 1px solid #7d211d; border-radius: 2px; background: #7d211d; }
.news-task-stop:hover:not(:disabled) { background: #551713; }
.news-task-stop:disabled { color: #a79d90; border-color: #cbc1b2; background: #e8e1d6; cursor: not-allowed; opacity: .72; }
.news-task-progress { padding: 18px; border: 1px solid var(--news-line); background: rgba(238,228,210,.42); }
.news-task-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; }
.news-task-flow.compact-flow { display: flex; }
.news-task-flow.compact-flow .news-flow-node { flex: 1 1 0; }
.news-task-flow > i { color: #9e927f; font-style: normal; font-size: 20px; }
.news-flow-node { position: relative; display: flex; gap: 9px; align-items: center; min-height: 58px; padding: 10px 12px; color: #756c5e; border: 1px solid #c9bead; background: rgba(251,248,240,.65); font-size: 12px; font-weight: 750; }
.news-flow-node span { display: grid; place-items: center; width: 25px; height: 25px; color: #fff; border-radius: 50%; background: #9e927f; font-family: Georgia, serif; }
.news-flow-node.done { color: #41613f; border-color: #82947b; background: rgba(79,112,71,.08); }
.news-flow-node.done span { background: #4f7047; }
.news-flow-node.active { color: var(--news-red); border-color: var(--news-red); background: var(--news-red-soft); box-shadow: 0 0 0 3px rgba(140,47,42,.08); }
.news-flow-node.active span { background: var(--news-red); animation: newsTaskPulse 1.1s ease-in-out infinite; }
.news-flow-node.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--news-red), transparent); animation: newsTaskTravel 1.3s linear infinite; }
.news-task-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 14px; color: var(--news-muted); font-size: 12px; }
.news-task-meta strong { color: var(--news-ink); }
.news-task-dialog { width: min(760px, calc(100vw - 30px)); max-height: 76vh; padding: 0; color: var(--news-ink); border: 1px solid #9d907e; border-radius: 3px; background: var(--paper-light); box-shadow: 0 24px 80px rgba(45,34,20,.35); }
.news-task-dialog::backdrop { background: rgba(35,30,23,.58); }
.news-task-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 3px double #6c6356; }
.news-task-dialog-head h2 { margin: 3px 0 0; font: 900 22px/1.3 "Songti SC", "STSong", serif; }
.news-task-dialog-head button { width: 34px; height: 34px; border: 1px solid var(--news-line); background: var(--paper-deep); cursor: pointer; font-size: 21px; }
.news-task-history-list { display: grid; gap: 10px; max-height: 56vh; padding: 18px 22px 24px; overflow: auto; }
.news-history-item { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(190px, 1.4fr) auto; gap: 12px; padding: 13px 14px; border-left: 3px solid #9e927f; background: var(--paper-deep); font-size: 12px; }
.news-history-item.success { border-left-color: #4f7047; }
.news-history-item.failed { border-left-color: var(--news-red); }
.news-history-empty { padding: 32px; color: var(--news-muted); text-align: center; }
.news-admin-data { margin-top: 20px; padding-top: 20px; border-top: 3px double #6c6356; }
.news-admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.news-admin-tabs button, .news-admin-tools button, .news-admin-pager button, .news-user-actions button { min-height: 38px; padding: 7px 14px; color: var(--news-ink); border: 1px solid #b9ad9b; background: rgba(255,255,255,.28); cursor: pointer; font-weight: 750; }
.news-admin-tabs button.active, .news-admin-tabs button:hover, .news-admin-tools button:hover, .news-user-actions button:last-child { color: #fff; border-color: var(--news-red); background: var(--news-red); }
.news-admin-tools { display: flex; gap: 8px; margin: 14px 0; }
.news-admin-tools input { flex: 1; min-width: 160px; height: 40px; padding: 0 12px; color: var(--news-ink); border: 1px solid #b9ad9b; background: var(--paper-light); }
.news-admin-table-wrap { overflow: auto; border: 1px solid var(--news-line); }
.news-admin-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 12px; }
.news-admin-table th, .news-admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--news-line); text-align: left; vertical-align: top; }
.news-admin-table th { color: #fff; background: #39342b; white-space: nowrap; }
.news-admin-table tbody tr:nth-child(2n) { background: rgba(238,228,210,.35); }
.news-admin-table a { color: var(--news-red); }
.news-admin-table .json-preview { display: block; max-width: 340px; max-height: 110px; margin: 0; overflow: auto; white-space: pre-wrap; word-break: break-word; color: #4a443a; font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.news-admin-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }
.news-admin-pager button:disabled { color: #aaa; border-color: #d4caba; background: #e7e0d4; cursor: not-allowed; }
.news-user-editor { width: min(860px, calc(100vw - 30px)); }
.news-user-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px 22px 24px; }
.news-user-form label { display: grid; gap: 7px; color: var(--news-muted); font-size: 12px; font-weight: 750; }
.news-user-form label.wide { grid-column: 1 / -1; }
.news-user-form input, .news-user-form select, .news-user-form textarea { width: 100%; padding: 10px; color: var(--news-ink); border: 1px solid #b9ad9b; background: var(--paper-light); font: inherit; }
.news-user-form textarea, .news-user-form pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.news-user-form pre { max-height: 180px; margin: 0; padding: 12px; overflow: auto; border: 1px solid var(--news-line); background: var(--paper-deep); white-space: pre-wrap; word-break: break-word; }
.news-user-actions { display: flex !important; flex-direction: row; justify-content: flex-end; }
.account-profile-dialog { width: min(880px, calc(100vw - 30px)); }
.account-profile-body { display: grid; gap: 16px; padding: 20px 22px 24px; }
.account-profile-card { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px; border: 1px solid var(--news-line); background: var(--paper-deep); }
.account-avatar-editor { display: grid; align-content: start; justify-items: center; gap: 12px; }
.account-avatar-preview { display: grid; place-items: center; width: 104px; height: 104px; overflow: hidden; color: #fff; border: 4px double #a99b86; border-radius: 50%; background: var(--news-red); background-position: center; background-size: cover; font: 900 34px/1 Georgia, serif; }
.account-avatar-preview.has-image { color: transparent; }
.account-avatar-upload { padding: 8px 11px; color: var(--news-red); border: 1px solid #b9ad9b; background: var(--paper-light); cursor: pointer; font-size: 12px; font-weight: 800; }
.account-profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-profile-fields label { display: grid; gap: 6px; color: var(--news-muted); font-size: 12px; font-weight: 800; }
.account-profile-fields label.wide { grid-column: 1 / -1; }
.account-profile-fields input, .account-profile-fields textarea, .account-profile-fields select { width: 100%; padding: 10px 11px; color: var(--news-ink); border: 1px solid #b9ad9b; background: var(--paper-light); font: inherit; }
.account-region-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account-profile-fields select:disabled { color: #9d9385; background: #e9e2d7; cursor: not-allowed; }
.account-profile-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.account-profile-actions button { min-height: 38px; padding: 7px 14px; color: var(--news-ink); border: 1px solid #b9ad9b; background: var(--paper-light); cursor: pointer; font-weight: 800; }
.account-profile-actions button:first-child { color: #fff; border-color: var(--news-red); background: var(--news-red); }
.account-profile-actions button.danger { color: #9b2e28; }
.account-history-panel { padding: 16px 18px; border: 1px solid var(--news-line); background: rgba(238,228,210,.35); }
.account-history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.account-history-head h3 { margin: 0; font: 900 18px/1.3 "Songti SC", serif; }
.account-history-head span { color: var(--news-muted); font-size: 12px; }
.account-history-list { display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.account-history-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 11px 12px; border-left: 3px solid var(--news-red); background: var(--paper-light); }
.account-history-item a, .account-history-item strong { color: var(--news-ink); font-weight: 850; text-decoration: none; }
.account-history-item a:hover { color: var(--news-red); }
.account-history-item time { color: var(--news-muted); font-size: 11px; }
.account-history-item p { grid-column: 1 / -1; margin: 0; color: var(--news-muted); font-size: 12px; }
.news-user-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.news-user-row-actions button { min-height: 31px; padding: 5px 9px; color: var(--news-ink); border: 1px solid #b9ad9b; background: rgba(255,255,255,.32); cursor: pointer; white-space: nowrap; }
.news-user-row-actions button:first-child { color: #fff; border-color: var(--news-red); background: var(--news-red); }
.news-profile-dialog { width: min(1080px, calc(100vw - 30px)); max-height: 88vh; }
.news-profile-body { display: grid; gap: 18px; max-height: calc(88vh - 82px); padding: 20px 22px 26px; overflow: auto; }
.news-profile-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.news-profile-summary > div { display: grid; gap: 4px; min-height: 82px; padding: 13px 15px; border: 1px solid var(--news-line); background: var(--paper-deep); }
.news-profile-summary span { color: var(--news-muted); font-size: 11px; }
.news-profile-summary strong { color: var(--news-red); font: 900 27px/1 Georgia, serif; }
.news-profile-charts { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 14px; }
.news-profile-charts > section, .news-profile-recent, .news-profile-ai { padding: 17px; border: 1px solid var(--news-line); background: rgba(238,228,210,.28); }
.news-profile-charts h3, .news-profile-recent h3, .news-profile-ai h3 { margin: 0 0 14px; font: 900 17px/1.35 "Songti SC", "STSong", serif; }
.news-profile-bars { display: grid; gap: 8px; }
.news-profile-bar-row { display: grid; grid-template-columns: minmax(82px, 120px) 1fr 34px; gap: 9px; align-items: center; font-size: 11px; }
.news-profile-bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-profile-bar-row > i { height: 10px; overflow: hidden; background: #ddd3c3; }
.news-profile-bar-row > i > b { display: block; height: 100%; min-width: 3px; }
.news-profile-bar-row > strong { text-align: right; }
.news-profile-pie-wrap { display: grid; grid-template-columns: 156px 1fr; gap: 18px; align-items: center; }
.news-profile-pie { position: relative; width: 156px; height: 156px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(57,48,37,.12); }
.news-profile-pie::after { content: attr(data-center); position: absolute; inset: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--news-ink); background: var(--paper-light); font: 900 18px/1 Georgia, serif; }
.news-profile-legend { display: grid; gap: 7px; min-width: 0; }
.news-profile-legend > div { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 7px; align-items: center; font-size: 11px; }
.news-profile-legend i { width: 10px; height: 10px; }
.news-profile-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-profile-recent > div { display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.news-profile-recent article { padding: 11px 12px; border-left: 3px solid #9e927f; background: var(--paper-light); }
.news-profile-recent article a, .news-profile-recent article > strong { color: var(--news-ink); font: 800 13px/1.5 "Songti SC", "STSong", serif; text-decoration: none; }
.news-profile-recent article a:hover { color: var(--news-red); }
.news-profile-recent article p { margin: 5px 0; color: var(--news-muted); font-size: 10px; }
.news-profile-recent article div { display: flex; flex-wrap: wrap; gap: 5px; }
.news-profile-recent article div span { padding: 2px 6px; color: var(--news-red); border: 1px solid #d7c8b7; font-size: 9px; }
.news-profile-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-profile-ai-head h3 { margin-bottom: 0; }
.news-profile-ai-head button { min-height: 38px; padding: 7px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; border: 1px solid var(--news-red); background: var(--news-red); cursor: pointer; font-weight: 800; }
.news-profile-ai-head button:disabled { color: #aaa; border-color: #d4caba; background: #e7e0d4; cursor: wait; }
.news-profile-ai-head button.is-loading::before { content: ""; width: 13px; height: 13px; border: 2px solid rgba(140,47,42,.22); border-top-color: var(--news-red); border-radius: 50%; animation: news-profile-spin .8s linear infinite; }
.news-profile-analysis { min-height: 84px; margin-top: 14px; padding: 14px 16px; color: #3f392f; border: 1px solid #cfc4b2; background: var(--paper-light); white-space: normal; line-height: 1.75; }
.news-profile-analysis.is-loading { position: relative; min-height: 100px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(100deg, var(--paper-light) 20%, #f2eadf 42%, var(--paper-light) 64%); background-size: 240% 100%; animation: news-profile-shimmer 2.1s ease-in-out infinite; }
.news-profile-loading { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; }
.news-profile-loading > span:nth-child(2) { display: flex; flex-direction: column; }
.news-profile-loading strong { color: var(--news-ink); font-size: 14px; }
.news-profile-loading small { margin-top: 2px; color: var(--news-muted); font-size: 11px; }
.news-profile-loading-orbit { position: relative; width: 36px; height: 36px; display: block; border: 1px solid rgba(140,47,42,.25); border-radius: 50%; animation: news-profile-pulse 1.5s ease-in-out infinite; }
.news-profile-loading-orbit::before { content: "05"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--news-red); font: 800 9px/1 Georgia, serif; }
.news-profile-loading-orbit i { position: absolute; width: 7px; height: 7px; top: -4px; left: 14px; border-radius: 50%; background: var(--news-red); box-shadow: 0 0 0 3px rgba(140,47,42,.12); transform-origin: 4px 22px; animation: news-profile-orbit 1.25s linear infinite; }
.news-profile-loading-dots { display: inline-flex; gap: 4px; align-items: center; }
.news-profile-loading-dots i { width: 5px; height: 5px; display: block; border-radius: 50%; background: var(--news-red); animation: news-profile-dot 1.1s ease-in-out infinite; }
.news-profile-loading-dots i:nth-child(2) { animation-delay: .16s; }
.news-profile-loading-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes news-profile-spin { to { transform: rotate(360deg); } }
@keyframes news-profile-orbit { to { transform: rotate(360deg); } }
@keyframes news-profile-pulse { 50% { transform: scale(1.07); box-shadow: 0 0 0 7px rgba(140,47,42,.06); } }
@keyframes news-profile-dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-5px); } }
@keyframes news-profile-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .news-profile-ai-head button.is-loading::before, .news-profile-analysis.is-loading,
  .news-profile-loading-orbit, .news-profile-loading-orbit i, .news-profile-loading-dots i { animation: none; }
}
.news-profile-analysis > :first-child { margin-top: 0; }
.news-profile-analysis > :last-child { margin-bottom: 0; }
.news-profile-analysis h1, .news-profile-analysis h2, .news-profile-analysis h3,
.news-profile-analysis h4, .news-profile-analysis h5, .news-profile-analysis h6 {
  margin: 20px 0 9px;
  color: var(--news-ink);
  font-family: "Songti SC", "STSong", serif;
  line-height: 1.4;
}
.news-profile-analysis h1 { font-size: 22px; }
.news-profile-analysis h2 { padding-bottom: 6px; border-bottom: 1px solid #d8ccbb; font-size: 19px; }
.news-profile-analysis h3 { font-size: 17px; }
.news-profile-analysis h4, .news-profile-analysis h5, .news-profile-analysis h6 { font-size: 15px; }
.news-profile-analysis p { margin: 9px 0; }
.news-profile-analysis ul, .news-profile-analysis ol { margin: 9px 0; padding-left: 24px; }
.news-profile-analysis li { margin: 4px 0; }
.news-profile-analysis strong { color: var(--news-red); font-weight: 900; }
.news-profile-analysis em { color: #665c4e; }
.news-profile-analysis del { color: var(--news-muted); }
.news-profile-analysis code { padding: 2px 5px; border: 1px solid #d8ccbb; background: #eee5d7; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.news-profile-analysis blockquote { margin: 12px 0; padding: 8px 12px; color: #62594c; border-left: 3px solid var(--news-red); background: #eee5d7; }
.news-profile-analysis hr { height: 0; margin: 18px 0; border: 0; border-top: 1px solid #b9aa96; }
.news-profile-empty { padding: 20px; color: var(--news-muted); text-align: center; }
.social-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: 88vh;
  padding: 0;
  color: var(--news-ink);
  border: 1px solid #9e927f;
  background: var(--paper-light);
  box-shadow: 0 28px 80px rgba(47,35,19,.34);
}
.social-dialog::backdrop { background: rgba(35,30,23,.58); backdrop-filter: blur(4px); }
.social-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; color: #fff; background: #2d2922; }
.social-head h2 { margin: 3px 0 0; font: 900 22px/1.2 "Songti SC","STSong",serif; }
.social-head .section-eyebrow { color: #e3bf7d; }
.social-head > button { width: 34px; height: 34px; color: #fff; border: 1px solid #6f675a; background: transparent; cursor: pointer; font-size: 21px; }
.social-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--news-line); }
.social-tabs button { min-height: 43px; color: var(--news-muted); border: 0; border-right: 1px solid var(--news-line); background: var(--paper-deep); cursor: pointer; font-weight: 800; }
.social-tabs button:last-child { border-right: 0; }
.social-tabs button.active { color: #fff; background: var(--news-red); }
.social-search { display: flex; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--news-line); }
.social-search input { flex: 1; height: 40px; padding: 0 12px; color: var(--news-ink); border: 1px solid #b9ad9b; background: #fffdf7; }
.social-search button, .social-card button, .private-composer button { padding: 8px 14px; color: #fff; border: 1px solid var(--news-red); background: var(--news-red); cursor: pointer; font-weight: 800; }
.social-layout { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(420px, 1.35fr); min-height: 490px; max-height: calc(88vh - 128px); }
.social-list { padding: 14px; overflow: auto; border-right: 1px solid var(--news-line); }
.social-empty { padding: 48px 15px; color: var(--news-muted); text-align: center; }
.social-card { width: 100%; display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 12px; color: inherit; border: 0; border-bottom: 1px solid var(--news-line); background: transparent; text-align: left; }
.social-card.clickable { cursor: pointer; }
.social-card.clickable:hover, .social-card.active { background: var(--news-red-soft); }
.social-avatar { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--news-red); font: 900 17px/1 Georgia,serif; }
.social-avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-card strong { display: block; margin-bottom: 4px; }
.social-card p { max-width: 330px; margin: 0; overflow: hidden; color: var(--news-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.social-card time { display: block; margin-top: 4px; color: #9a8d79; font-size: 9px; }
.social-card .unread { min-width: 20px; padding: 2px 5px; color: #fff; background: var(--news-red); text-align: center; }
.private-chat { display: grid; grid-template-rows: auto 1fr auto auto; min-width: 0; background: rgba(255,255,255,.2); }
.private-chat-profile { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--news-line); }
.private-chat-profile p { margin: 3px 0 0; color: var(--news-muted); font-size: 11px; }
.private-messages { min-height: 270px; padding: 16px; overflow: auto; display: flex; flex-direction: column; gap: 9px; }
.private-message { max-width: 78%; padding: 9px 12px; border: 1px solid #d3c7b5; background: #fffdf7; overflow-wrap: anywhere; }
.private-message.mine { align-self: flex-end; color: #fff; border-color: var(--news-red); background: var(--news-red); }
.private-message time { display: block; margin-top: 4px; color: inherit; opacity: .62; font-size: 9px; }
.emoji-row { display: flex; gap: 5px; padding: 7px 12px; border-top: 1px solid var(--news-line); }
.emoji-row button { padding: 4px 6px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.private-composer { display: grid; grid-template-columns: 1fr 86px; gap: 8px; padding: 10px 12px 13px; }
.private-composer textarea { min-height: 56px; resize: none; padding: 9px; color: var(--news-ink); border: 1px solid #b9ad9b; background: #fffdf7; }
.user-activity { display: grid; gap: 3px; min-width: 120px; }
.user-activity strong { color: var(--news-red); }
.user-mini-avatar { width: 34px; height: 34px; margin-right: 7px; display: inline-grid; place-items: center; vertical-align: middle; overflow: hidden; color: #fff; background: var(--news-red); }
.user-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .social-layout { grid-template-columns: 1fr; max-height: none; }
  .social-list { max-height: 270px; border-right: 0; border-bottom: 1px solid var(--news-line); }
  .private-chat { min-height: 430px; }
  .social-dialog { max-height: 94vh; }
}
@media (max-width: 840px) {
  .news-profile-summary { grid-template-columns: repeat(2, 1fr); }
  .news-profile-charts { grid-template-columns: 1fr; }
}
.login-mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -8px 0 16px; }
.login-mode-tabs button { height: 38px; color: var(--news-muted); border: 1px solid #c9bdab; background: transparent; cursor: pointer; }
.login-mode-tabs button.active { color: #fff; border-color: var(--news-red); background: var(--news-red); }
.login-check-account { width: 100%; min-height: 38px; margin: 0 0 10px; color: var(--news-red); border: 1px solid #bda995; background: #f7f1e7; cursor: pointer; }
.login-check-account[hidden] { display: none; }
.t-button--outline:disabled { color: #aaa; border-color: #d4caba; background: #e7e0d4; cursor: not-allowed; }
@keyframes newsTaskPulse { 50% { opacity: .62; transform: scale(.97); } }
@keyframes newsTaskTravel { from { transform: translateX(-40%); } to { transform: translateX(40%); } }

.login-overlay { background: rgba(35,30,23,.58); }
.login-dialog { border-color: #d4c8b5; border-radius: 3px; background: var(--paper-light); box-shadow: 0 28px 80px rgba(47,35,19,.3); }
.login-close { border-radius: 2px; background: var(--paper-deep); }
.login-kicker { color: var(--news-red); font-family: Georgia, serif; }
.login-title { font-family: "Songti SC", "STSong", serif; }
.login-field input { color: var(--news-ink); border-color: #c9bdab; border-radius: 2px; background: rgba(255,255,255,.35); }
.login-field input:focus { border-color: var(--news-red); box-shadow: 0 0 0 3px var(--news-red-soft); }
.login-submit { border-radius: 2px; background: var(--news-red); }
.loading-container { background: rgba(38,31,23,.7); }
.spinner { border-top-color: #e3bf7d; box-shadow: none; }
.toast { border-radius: 2px; background: rgba(41,37,30,.95); }

@media (max-width: 960px) {
  .article-item:nth-child(2n) { border-right: 0; }
}

@media (max-width: 680px) {
  body { padding: 0 0 28px; background: var(--paper); }
  body::before { display: none; }
  .page { padding: 10px; border: 0; box-shadow: none; }
  .header {
    min-height: 0;
    padding: 46px 14px 18px;
    display: block;
    border-radius: 0;
  }
  .header::before { left: 14px; }
  .header::after { right: 14px; }
  .brand-block {
    position: static;
    width: 100%;
    margin-inline: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    text-align: center;
  }
  .brand-block > div { min-width: 0; }
  .brand-mark {
    position: static;
    width: 44px;
    height: 44px;
    font-size: 20px;
    transform: none;
  }
  .header-kicker {
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 8px;
    letter-spacing: .14em;
    white-space: nowrap;
  }
  .header-kicker span { width: 16px; }
  .header-title {
    font-size: 30px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .header-title strong { width: 2.35em; margin-right: -.45em; }
  .header-desc {
    max-width: none;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: .04em;
    white-space: nowrap;
  }
  .user-menu {
    position: static;
    width: fit-content;
    max-width: 100%;
    margin: 14px 0 0 auto;
  }
  .user-button { max-width: 100%; }
  .user-identity small { max-width: 165px; }
  .paper-edition { margin-bottom: 12px; padding-inline: 4px; font-size: 8px; letter-spacing: .06em; }
  .t-card, .module-card { border-radius: 2px; }
  .section-heading { border-bottom-width: 3px; }
  .article-list { border-bottom: 0; }
  .article-item, .article-item:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--news-line); }
  .article-item a { min-height: 0; }
  .article-image { height: 156px; }
  .news-route-badge { border-radius: 2px; }
  .news-task-panel { padding: 16px; }
  .news-task-head { flex-direction: column; }
  .news-task-flow { grid-template-columns: 1fr; }
  .news-task-flow.compact-flow { display: grid; }
  .news-task-flow > i { transform: rotate(90deg); text-align: center; }
  .news-history-item { grid-template-columns: 1fr; }
  .news-admin-tools { flex-wrap: wrap; }
  .news-admin-tools input { flex-basis: 100%; }
  .news-user-form { grid-template-columns: 1fr; }
  .news-user-form label.wide { grid-column: 1; }
  .account-profile-card { grid-template-columns: 1fr; }
  .account-profile-fields { grid-template-columns: 1fr; }
  .account-profile-fields label.wide, .account-profile-actions { grid-column: 1; }
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}
