/** 绘画大师运营台 — 紧凑模块化布局 */
:root {
  --bg: #e6e1d6;
  --panel: #f4efe4;
  --ink: #1b1915;
  --muted: #6d665c;
  --line: rgba(27, 25, 21, 0.14);
  --accent: #0f5c48;
  --accent-ink: #f4efe4;
  --danger: #9b1c1c;
  --warn: #8a5a00;
  --ok: #0f5c48;
  --sidebar: 200px;
  --radius: 2px;
  --gap: 8px;
  --pad: 10px;
  --mono: Consolas, "Courier New", ui-monospace, monospace;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 92, 72, 0.06), transparent 38%),
    linear-gradient(180deg, #ddd6c8, var(--bg));
}

.hidden { display: none !important; }
button, input, select, textarea { font: inherit; }
button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.danger { background: #fff5f4; border-color: #efc4bf; color: var(--danger); }
button.warn { background: #fff8e8; border-color: #e6d2a0; color: var(--warn); }
button:disabled { opacity: 0.45; cursor: default; }
input, select, textarea {
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }

.login-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: min(400px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.login-card h1 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: 0.04em; }
.login-card p { margin: 0 0 12px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.login-row { display: grid; gap: 8px; }
.err { color: var(--danger); font-size: 0.82rem; margin-top: 8px; }
.hint { color: var(--muted); font-size: 0.76rem; margin-top: 10px; }

.shell {
  min-height: 100%;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 5; }
}

.sidebar {
  background: #1a2421;
  color: #d9e4df;
  padding: 10px 8px 12px;
  border-right: 1px solid rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.brand {
  padding: 4px 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.brand strong { display: block; font-size: 0.95rem; letter-spacing: 0.06em; }
.brand span { display: block; margin-top: 2px; font-size: 0.68rem; color: #8aa198; letter-spacing: 0.04em; }
.brand .admin-ver {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f0c674;
}
.login-card .admin-ver {
  margin: -2px 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f4d3a;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-ver-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--line);
  background: #f4f7f5;
  color: #1f4d3a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  overflow: auto;
}
.nav-group {
  display: grid;
  gap: 1px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-group:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.nav-group-title {
  padding: 2px 8px 3px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f857c;
  font-weight: 700;
}
.nav button {
  text-align: left;
  background: transparent;
  border: 0;
  color: #b8c9c1;
  border-radius: var(--radius);
  padding: 6px 8px;
  min-height: 0;
  font-size: 0.82rem;
}
.nav button:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav button.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.side-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 4px;
}
.side-foot button {
  background: rgba(255,255,255,0.05);
  border: 0;
  color: #d9e4df;
  min-height: 28px;
  font-size: 0.78rem;
}

.main {
  padding: 12px 14px 28px;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 10px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.topbar h2 { margin: 0; font-size: 1.1rem; letter-spacing: 0.02em; }
.topbar .sub { margin: 2px 0 0; color: var(--muted); font-size: 0.78rem; }

/* 模块区块：标题条 + 内容，分区更清晰 */
.mod-stack { display: grid; gap: 10px; }
.mod-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mod-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  background: #ebe4d6;
  border-bottom: 1px solid var(--line);
}
.mod-section-head strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.mod-section-head .meta { margin: 0; font-size: 0.72rem; }
.mod-section-body { padding: var(--pad); }
.mod-section.health-ok .mod-section-head { background: #e4efe9; }
.mod-section.health-warn .mod-section-head { background: #fff3d6; }
.mod-section.health-err .mod-section-head { background: #fde8e8; }
.mod-section.health-err .mod-section-head strong { color: var(--danger); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
  margin-bottom: 0;
}
.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
}
.summary-card .k { color: var(--muted); font-size: 0.7rem; }
.summary-card .v { margin-top: 2px; font-size: 1.1rem; font-weight: 650; }

.detail-block { margin-top: 10px; }
.detail-block h3 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}
.form-grid label { display: grid; gap: 4px; font-size: 0.82rem; }
.stack-btns { display: grid; gap: 4px; min-width: 80px; }
.toolbar.wrap { flex-wrap: wrap; }
.pref-edit { min-height: 40px; font-size: 0.78rem; }
img.thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ddd;
}
.lazy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.lazy-row.flags label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
  font-size: 0.82rem;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.78rem;
}
button.tiny {
  min-height: 24px;
  padding: 0 6px;
  font-size: 0.72rem;
}
button.linkish {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
  text-align: left;
  color: var(--accent);
  font-size: inherit;
}
button.linkish:hover { text-decoration: underline; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  margin-bottom: 0;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}
.stat-card:hover { border-color: var(--accent); }
.stat-card .k { color: var(--muted); font-size: 0.7rem; }
.stat-card .v {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  line-height: 1.15;
}
.stat-card .s { color: var(--muted); font-size: 0.68rem; margin-top: 3px; line-height: 1.3; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
}
.panel + .panel { margin-top: 8px; }
.panel.warn {
  border-color: #e6d2a0;
  background: #fff8e8;
}
.panel.err {
  border-color: #f0c0c0;
  background: #fff5f5;
  color: inherit;
}
.panel.err strong { color: var(--danger); }
.panel.tight { padding: 8px; }

.toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}
.toolbar .grow { flex: 1 1 140px; }
.meta { color: var(--muted); font-size: 0.78rem; }
.list { display: grid; gap: 6px; }
.item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  display: grid;
  gap: 5px;
}
.item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.item-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.5;
}
.badge.warn { color: var(--warn); border-color: #e6d2a0; background: #fff8e8; }
.badge.off { opacity: 0.7; }
.allow-status {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.status-dot.green { background: #1f8a4c; }
.status-dot.red { background: #c0392b; }
.mono { font-family: var(--mono); font-size: 0.74rem; word-break: break-all; }
.trigger {
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  background: #faf7f0;
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 88px;
  overflow: auto;
}
.thumb-row {
  display: grid;
  grid-template-columns: auto 72px 1fr;
  gap: 8px;
  align-items: start;
}
@media (max-width: 560px) {
  .thumb-row { grid-template-columns: auto 1fr; }
  .thumb-row .thumb,
  .thumb-row .thumb-empty { grid-column: 2 / -1; max-width: 96px; }
}
.thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #ddd6c8;
}
.thumb-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  background: #f0ebe1;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 6px;
}
.notes {
  margin-top: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.notes ul { margin: 4px 0 0; padding-left: 1.1em; }
.notes li { margin: 0 0 2px; }
.table-wrap { overflow: auto; }
table.admin {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: #fff;
}
table.admin th, table.admin td {
  border-bottom: 1px solid var(--line);
  padding: 5px 8px;
  text-align: left;
  vertical-align: top;
}
table.admin th {
  color: var(--muted);
  font-weight: 600;
  background: #f7f3ea;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
iframe.embed {
  width: 100%;
  min-height: 68vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* 资讯管理：原生全宽，对齐运营台主 UI（不再嵌 iframe） */
.news-panel { min-height: calc(100vh - 120px); }
.news-toolbar { margin-bottom: 10px; }
.news-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  gap: 10px;
  align-items: start;
}
@media (max-width: 1100px) {
  .news-layout { grid-template-columns: 1fr; }
}
.news-compose,
.news-list-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}
.news-compose input,
.news-compose textarea {
  width: 100%;
  margin-bottom: 8px;
}
.news-compose textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.45;
}
.news-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 3px;
}
.news-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 2px;
}
.news-cats button.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.filter-chip.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
}
.btn-link:hover { border-color: var(--accent); color: var(--accent); }
.news-msg-ok { color: var(--ok); }
.news-msg-err { color: var(--danger); }
.news-list-col .table-wrap { max-height: calc(100vh - 220px); overflow: auto; }
.news-list-col table.admin td .item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 960px) {
  .catalog-grid { grid-template-columns: 1fr; }
}
.catalog-grid .toolbar {
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 0;
}
.health-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.health-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.7rem;
  color: var(--muted);
  border-radius: 999px;
}
.health-pill.ok { color: var(--ok); border-color: #b7d4c8; background: #eef7f2; }
.health-pill.bad { color: var(--danger); border-color: #efc4bf; background: #fff5f4; }

.acct-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 960px) {
  .acct-grid { grid-template-columns: 1fr; }
}
.acct-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 100%;
}
.acct-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.acct-role {
  font-size: 0.78rem;
  color: var(--muted);
}
.acct-url {
  font-size: 0.68rem;
  color: var(--muted);
  word-break: break-all;
}
.acct-duty {
  font-size: 0.75rem;
  line-height: 1.35;
  margin: 4px 0 2px;
}
.acct-pill {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--muted);
  background: #f7f2ea;
}
.acct-pill.ok { color: var(--ok); border-color: #b7d4c8; background: #eef7f2; }
.acct-pill.bad { color: var(--danger); border-color: #efc4bf; background: #fff5f4; }

/* 公告编辑：左编辑右预览 */
.notice-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}
@media (max-width: 1100px) {
  .notice-editor-grid { grid-template-columns: 1fr; }
}
.notice-editor-pane textarea {
  margin-top: 6px;
  min-height: 220px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
}
.notice-editor-pane input { margin-top: 0; }

.notice-preview-shell {
  border: 2px solid #111;
  background: #fff;
  color: #111;
  box-shadow: 4px 4px 0 #111;
  max-height: min(64vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notice-preview-head { padding: 10px 12px 8px; background: #fff; }
.notice-preview-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.notice-preview-kicker {
  font: 700 10px var(--mono);
  letter-spacing: 0.16em;
  border: 2px solid #111;
  padding: 1px 6px;
}
.notice-preview-close {
  border: 2px solid #111;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.notice-preview-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  word-break: break-word;
}
.notice-preview-time {
  margin: 6px 0 0;
  font: 10px var(--mono);
  color: #666;
}
.notice-preview-rule { border-top: 2px solid #111; }
.notice-preview-rich {
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px 12px 14px;
  background: #fafafa;
  font-size: 13px;
  line-height: 1.55;
  min-height: 140px;
}
.notice-rich .notice-empty { margin: 0; color: #888; }
.notice-rich p { margin: 0 0 0.7em; }
.notice-rich p:last-child { margin-bottom: 0; }
.notice-rich strong, .notice-rich b { font-weight: 800; color: #000; }
.notice-rich em, .notice-rich i { font-style: italic; }
.notice-rich a { color: #111; font-weight: 700; text-decoration: underline; }
.notice-rich code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: #eee;
  border: 1px solid #ccc;
  color: #111;
  padding: 0.05em 0.3em;
}
.notice-rich pre, .notice-rich .notice-code, .notice-rich pre.notice-code {
  margin: 0.6em 0;
  padding: 8px 10px;
  overflow: auto;
  background: #111 !important;
  color: #f5f5f5 !important;
  border: 2px solid #111;
  font: 11px/1.45 var(--mono);
  white-space: pre-wrap;
}
.notice-rich pre code,
.notice-rich .notice-code code,
.notice-rich pre.notice-code code {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: #f5f5f5 !important;
  font-size: inherit;
}
.notice-rich blockquote {
  margin: 0.6em 0;
  padding: 6px 10px;
  border-left: 3px solid #111;
  background: #eee;
}
.notice-rich ul, .notice-rich ol { margin: 0.5em 0 0.7em; padding-left: 1.25em; }
.notice-rich hr { border: 0; border-top: 2px solid #111; margin: 0.8em 0; }
.notice-rich img, .notice-rich .notice-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.6em 0;
  border: 2px solid #111;
}
.notice-rich table { width: 100%; border-collapse: collapse; margin: 0.6em 0; font-size: 12px; }
.notice-rich th, .notice-rich td { border: 1px solid #111; padding: 4px 6px; text-align: left; }
.notice-rich th { background: #111; color: #fff; }
.notice-rich .fx-blink { animation: notice-fx-blink 1s steps(2, end) infinite; }
.notice-rich .fx-pulse { animation: notice-fx-pulse 1.6s ease-in-out infinite; }
.notice-rich .fx-shake { display: inline-block; animation: notice-fx-shake 0.45s linear infinite; }
.notice-rich .fx-marquee {
  display: block; overflow: hidden; white-space: nowrap;
  border: 2px solid #111; padding: 5px 0; background: #fff;
}
.notice-rich .fx-marquee > span {
  display: inline-block; padding-left: 100%;
  animation: notice-fx-marquee 12s linear infinite;
}
.notice-rich .fx-stamp {
  display: inline-block; border: 3px solid #111; padding: 3px 8px;
  font-weight: 800; letter-spacing: 0.06em; transform: rotate(-6deg);
}
.notice-rich .fx-invert { background: #111; color: #fff; padding: 1px 5px; }
.notice-rich .fx-outline {
  color: #fff; font-weight: 800;
  text-shadow: -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111;
}
@keyframes notice-fx-blink { 50% { opacity: 0; } }
@keyframes notice-fx-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes notice-fx-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
@keyframes notice-fx-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 资讯富文本工具栏 / 附件 */
.news-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 6px;
}
.news-rich-toolbar button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.78rem;
}
.news-emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 0 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}
.news-emoji-btn {
  min-height: 28px;
  min-width: 28px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
}
.news-attach-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  min-height: 28px;
  align-items: center;
}
.news-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  cursor: grab;
}
.news-attach-chip img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 2px;
  background: #eee;
}
.news-attach-chip button {
  min-height: 24px;
  padding: 0 6px;
  font-size: 0.72rem;
}
.news-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.news-preview-card {
  width: min(720px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #f4efe4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.news-preview-body {
  margin-top: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  line-height: 1.6;
}
.news-preview-body img { max-width: 100%; height: auto; }
.news-preview-body .md-code {
  background: #111 !important;
  color: #f5f5f5 !important;
  border: 1px solid #111;
  border-radius: 6px;
  padding: 10px 12px;
  overflow: auto;
  font-size: 0.85rem;
}
.news-preview-body .md-code code {
  background: none !important;
  color: #f5f5f5 !important;
}
.news-preview-body .md-hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  margin: 18px 0;
}
.news-preview-body .md-table-wrap { overflow-x: auto; }
.news-preview-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.news-preview-body th,
.news-preview-body td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: left;
}

