/* Пульт фермы: графитовая приборная панель, один холодный «реакторный» акцент; статусы — своими цветами.
   Раскладка: боковая навигация на широком экране, нижняя панель вкладок на телефоне. */
:root {
  --bg: #0c0e13;
  --panel: #141821;
  --panel-2: #1a1f2a;
  --line: #252c3a;
  --fg: #e9ecf2;
  --muted: #8b93a5;
  --faint: #5d6576;
  --accent: #63d0e6;
  --accent-ink: #062027;
  --accent-soft: rgba(99, 208, 230, .12);
  --good: #4cc38a;
  --warn: #e5a83b;
  --bad: #ef6161;
  --good-soft: rgba(76, 195, 138, .13);
  --warn-soft: rgba(229, 168, 59, .13);
  --bad-soft: rgba(239, 97, 97, .13);
  --font-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
  --r-s: 9px;
  --tab-h: 62px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
h1 { font: 700 22px/1.2 var(--font-display); letter-spacing: -.01em; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
.err { color: var(--bad); }
.small { font-size: 13px; }
.label { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- бренд ---------- */
.brand { display: flex; align-items: center; gap: 10px; font: 500 15px/1 var(--font-display); letter-spacing: .01em; white-space: nowrap; }
.brand b { font-weight: 700; color: var(--accent); }
.brand.big { font-size: 22px; }
.reactor { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent); position: relative; box-shadow: 0 0 14px rgba(99, 208, 230, .35); flex: none; }
.reactor::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }

/* ---------- каркас ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; background: var(--bg); }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.navlink { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-s); color: var(--muted); font-weight: 500; position: relative; }
.navlink:hover { background: var(--panel); color: var(--fg); text-decoration: none; }
.navlink.on { background: var(--panel-2); color: var(--fg); }
.navlink svg { width: 20px; height: 20px; flex: none; }
.navlink .badge { margin-left: auto; }
.topbar { display: none; }
.view { padding-block: 26px 60px; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); max-width: 1240px; width: 100%; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.tabbar { display: none; }

@media (max-width: 820px) {
  .shell { display: block; }
  .side { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(12, 14, 19, .92); backdrop-filter: blur(10px); padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line); }
  .top-title { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .view { padding-block: 18px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 18px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(16, 19, 26, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .tabbar .navlink { flex-direction: column; gap: 3px; padding: 9px 2px 8px; font-size: 11px; border-radius: 0; justify-content: center; }
  .tabbar .navlink.on { background: none; color: var(--accent); }
  .tabbar .navlink .badge { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }
  h1 { font-size: 19px; }
}

/* ---------- элементы ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.panel.tight { padding: 14px; }
.panel h2 { margin-bottom: 12px; }
.grid { display: grid; gap: 14px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 420px) { .cards { grid-template-columns: 1fr; } }

.btn { appearance: none; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); font: 500 14px/1 var(--font-body); padding: 11px 15px; border-radius: var(--r-s); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; min-height: 40px; }
.btn:hover { border-color: #344055; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { background: var(--bad-soft); color: var(--bad); border-color: rgba(239, 97, 97, .35); }
.btn.ghost { background: none; }
.btn.small { padding: 7px 11px; min-height: 32px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.icon { padding: 7px; min-width: 34px; min-height: 34px; }

input, textarea, select { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-s); padding: 11px 12px; font: 15px/1.4 var(--font-body); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 120px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 4px 0 6px; font-weight: 500; }
.field { display: flex; flex-direction: column; min-width: 0; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--panel-2); color: var(--muted); white-space: nowrap; line-height: 1.5; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.badge { min-width: 19px; height: 19px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.plus { font-weight: 700; color: var(--accent); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font: 500 13.5px/1.2 var(--font-body); }
.chip.on { border-color: var(--accent); color: var(--fg); background: var(--accent-soft); }
.chip img { width: 20px; height: 20px; border-radius: 50%; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { appearance: none; border: 0; background: none; color: var(--muted); font: 500 13.5px/1 var(--font-body); padding: 8px 12px; border-radius: 7px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--panel-2); color: var(--fg); }

.notice { display: flex; gap: 12px; padding: 13px 15px; border-radius: var(--r); border: 1px solid rgba(229, 168, 59, .3); background: var(--warn-soft); font-size: 14px; }
.notice.info { border-color: rgba(99, 208, 230, .28); background: var(--accent-soft); }
.notice b { color: var(--fg); }
.notice .ico { flex: none; color: var(--warn); font-weight: 700; }
.notice.info .ico { color: var(--accent); }

.empty { padding: 34px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.skeleton { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- карточка аккаунта ---------- */
.acc { display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: border-color .15s; }
.acc:hover { border-color: #33405a; }
.acc-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--panel-2); object-fit: cover; flex: none; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--muted); overflow: hidden; }
.avatar.lg { width: 72px; height: 72px; font-size: 22px; }
.acc-name { min-width: 0; flex: 1; }
.acc-name b { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-name span { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.big-num { font: 700 32px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.delta { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--faint); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--bg); border-radius: var(--r-s); padding: 9px 10px; min-width: 0; }
.kpi b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 11.5px; color: var(--muted); }
.meter { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.meter.warn i { background: var(--warn); }
.meter.bad i { background: var(--bad); }
.spark { width: 100%; height: 58px; display: block; }

/* ---------- графики ---------- */
.chart-wrap { position: relative; }
.chart { width: 100%; height: 220px; display: block; touch-action: pan-y; }
.chart text { fill: var(--faint); font: 11px var(--font-body); font-variant-numeric: tabular-nums; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.tip { position: absolute; pointer-events: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.tip b { font-size: 14px; }

/* ---------- лента медиа ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } .tile-meta { display: none; } .tile { border-radius: 6px; } }
.tile { position: relative; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 11px; overflow: hidden; background: var(--panel-2); cursor: pointer; border: 0; padding: 0; color: var(--fg); text-align: left; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-over { position: absolute; inset: auto 0 0; padding: 26px 9px 8px; background: linear-gradient(transparent, rgba(5, 7, 10, .88)); display: flex; flex-direction: column; gap: 4px; }
.tile-stats { display: flex; gap: 9px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.tile-meta { font-size: 12px; color: #c7ccd6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .plus-tag { position: absolute; top: 7px; right: 7px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12px; border-radius: 99px; padding: 2px 8px; }
.top-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .top-list { grid-template-columns: 1fr; } }
.top-item { display: flex; gap: 12px; align-items: center; min-width: 0; cursor: pointer; }
.top-item img, .top-item .ph { width: 54px; aspect-ratio: 9/16; border-radius: 7px; object-fit: cover; background: var(--panel-2); flex: none; }
.top-item .rank { font: 700 20px var(--font-display); color: var(--faint); width: 22px; flex: none; }
.clip { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- комментарии ---------- */
.comment { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment.unseen .c-text { color: var(--fg); }
.comment.is-hidden { opacity: .6; }
.c-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.c-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; }
.c-head b { font-size: 14px; }
.c-text { margin: 3px 0 6px; white-space: pre-wrap; word-wrap: break-word; color: #d5d9e2; }
.c-media { font-size: 12.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.c-reply { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--line); font-size: 13.5px; color: var(--muted); }
.c-reply b { color: var(--fg); }
.reply-box { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.reply-box textarea { min-height: 44px; height: 44px; }
.dot-new { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.plus-board { display: flex; flex-direction: column; gap: 8px; }
.plus-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.plus-bar { height: 4px; border-radius: 99px; background: var(--accent); margin-top: 4px; }

/* ---------- очередь и выпуски ---------- */
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: center; }
.job:last-child { border-bottom: 0; }
.job-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-sub { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.job-err { font-size: 13px; color: var(--bad); margin-top: 4px; word-break: break-word; }
.job-btns { display: flex; gap: 4px; }
.release { display: flex; flex-direction: column; gap: 12px; }
.release-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.release-parts.one { grid-template-columns: minmax(0, 120px); }
.rp { position: relative; aspect-ratio: 9/16; border-radius: 9px; overflow: hidden; background: var(--panel-2); max-width: 100%; }
.rp img { width: 100%; height: 100%; object-fit: cover; }
.rp span { position: absolute; left: 6px; top: 6px; background: rgba(5, 7, 10, .75); border-radius: 6px; font-size: 11.5px; font-weight: 600; padding: 2px 7px; }
.rp.done::after { content: "✓"; position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--good); color: #062014; font-size: 12px; font-weight: 800; display: grid; place-items: center; }

.drop { border: 1.5px dashed #344055; border-radius: var(--r); padding: 22px; text-align: center; cursor: pointer; color: var(--muted); display: flex; flex-direction: column; gap: 6px; align-items: center; background: var(--bg); }
.drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.drop b { color: var(--fg); }
.preview { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; }
.preview video { width: 120px; aspect-ratio: 9/16; border-radius: 10px; background: #000; object-fit: cover; max-width: 100%; }
.progress { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.counter { font-size: 12.5px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--bad); }
.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .two { grid-template-columns: 1fr; } }
.confirm { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-s); border: 1px solid rgba(99, 208, 230, .35); background: var(--accent-soft); }

/* ---------- Директ ---------- */
.dm { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; min-height: 420px; }
@media (max-width: 820px) { .dm { grid-template-columns: 1fr; } .dm.thread-open .dm-list { display: none; } .dm:not(.thread-open) .dm-thread { display: none; } }
.dm-list { display: flex; flex-direction: column; gap: 2px; }
.conv { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: var(--r-s); cursor: pointer; border: 0; background: none; color: var(--fg); text-align: left; font: inherit; }
.conv:hover, .conv.on { background: var(--panel-2); }
.conv span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-thread { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.msgs { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; background: var(--panel-2); white-space: pre-wrap; word-wrap: break-word; font-size: 14px; }
.msg.mine { align-self: flex-end; background: var(--accent-soft); border: 1px solid rgba(99, 208, 230, .25); }
.msg time { display: block; font-size: 11px; color: var(--faint); margin-top: 3px; }

/* ---------- таблицы статуса ---------- */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.log { font-size: 13px; display: flex; flex-direction: column; }
.log div { display: grid; grid-template-columns: 92px 110px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .log div { grid-template-columns: 1fr; gap: 2px; } }
.log .lvl-error { color: var(--bad); }
.log .lvl-warn { color: var(--warn); }

/* ---------- вход, шторка, тост ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); background: radial-gradient(600px 400px at 50% 20%, rgba(99, 208, 230, .08), transparent 70%), var(--bg); }
.login-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.login-card .brand { margin-bottom: 6px; }
.login-card p.muted { margin-bottom: 12px; font-size: 14px; }
.login-card .btn { margin-top: 14px; }
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 7, .65); }
.sheet-body { position: relative; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 821px) { .sheet { align-items: center; } .sheet-body { border-radius: 20px; } }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--muted); cursor: pointer; font-size: 15px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); padding: 11px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); max-width: calc(100vw - 32px); }
.toast.bad { border-color: rgba(239, 97, 97, .5); color: #ffd2d2; }
@media (min-width: 821px) { .toast { bottom: 26px; } }
.caption-full { white-space: pre-wrap; font-size: 14px; color: #d5d9e2; background: var(--bg); border-radius: var(--r-s); padding: 12px; max-height: 260px; overflow-y: auto; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.kv > .kpi { background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; }
.panel .kv > .kpi, .sheet .kv > .kpi { background: var(--bg); border: 0; padding: 9px 10px; }
@media (max-width: 520px) { .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.more-list { display: flex; flex-direction: column; gap: 8px; }
.more-list a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); color: var(--fg); font-weight: 500; }
.more-list a svg { width: 20px; height: 20px; color: var(--muted); }
