/* Вестник. Мобильная раскладка по умолчанию, на широком экране — боковая панель */
:root {
  --bg: #F2F3F8;
  --cell: #FFFFFF;
  --ink: #141A2E;
  --muted: #6B7390;
  --line: #E1E4EE;
  --accent: #2F55E6;
  --accent-soft: #E4EAFF;
  --hi: #E0323A;
  --norm: #2F55E6;
  --low: #A3ACC2;
  --ok: #1E9E62;
  --warn: #B86E00;
  --code-bg: #F5F6FA;
  --shadow: 0 10px 30px -12px rgba(10, 15, 40, .35);
  --wall-a: #3446B8;
  --wall-b: #0E1430;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0E19;
    --cell: #171C2E;
    --ink: #E7EBF7;
    --muted: #97A0BA;
    --line: #262D45;
    --accent: #7D97FF;
    --accent-soft: #1E2850;
    --hi: #FF5A60;
    --norm: #7D97FF;
    --low: #56607A;
    --ok: #3CC487;
    --warn: #F2B34B;
    --code-bg: #10142290;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
    --wall-a: #26318A;
    --wall-b: #06080F;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 16px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
code, .mono { font-family: var(--mono); font-size: .9em; }
h1, h2 { margin: 0; text-wrap: balance; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); font-weight: 600; }

.ic { display: inline-flex; width: 22px; height: 22px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic.inline { width: 17px; height: 17px; vertical-align: -3px; color: var(--accent); }
.muted-ic { width: 16px; height: 16px; color: var(--muted); }

/* ---------- каркас ---------- */
.layout { min-height: 100vh; }
.sidebar { display: none; }
.main {
  padding: calc(var(--safe-t) + 4px) max(12px, env(safe-area-inset-right)) calc(84px + var(--safe-b)) max(12px, env(safe-area-inset-left));
  max-width: 760px;
  margin: 0 auto;
}
.screen { display: flex; flex-direction: column; gap: 18px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around;
  padding: 6px 0 calc(6px + var(--safe-b));
  background: color-mix(in srgb, var(--cell) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); min-width: 72px; padding: 2px 0; }
.tab.on { color: var(--accent); }

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); }
  .tabbar { display: none; }
  .main { padding: 28px 36px 60px; max-width: 1180px; margin: 0; width: 100%; }
  .sidebar {
    display: flex; flex-direction: column; gap: 2px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 20px 12px; border-right: 1px solid var(--line); background: var(--bg);
  }
  .side-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; padding: 0 8px 16px; }
  .side-link, .side-svc-name {
    display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 14px;
  }
  .side-link:hover, .side-svc-name:hover { background: var(--cell); }
  .side-link.on, .side-svc-name.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .side-svc { margin-top: 10px; display: flex; flex-direction: column; gap: 1px; }
  .side-svc-name { font-weight: 600; font-size: 13px; color: var(--muted); }
  .side-svc .side-link { padding-left: 38px; }
  .side-link .count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .side-link .count.hi { color: var(--hi); font-weight: 700; }
  .side-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 2px; }
}
.logo-sm { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; }

/* ---------- заголовок экрана ---------- */
.nav { display: flex; flex-direction: column; gap: 4px; padding: 6px 4px 0; }
.nav-row { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 8px; }
.nav-back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 16px; margin-left: -6px; padding: 6px 6px 6px 0; max-width: 60%; }
.nav-back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-actions { display: flex; gap: 14px; align-items: center; margin-left: auto; }
.nav-btn { color: var(--accent); font-size: 16px; padding: 6px 0; }
.nav-btn.icon-only { padding: 6px; margin-right: -6px; }
.big { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.mid { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 14px; }
@media (min-width: 900px) { .nav-back { display: none; } .nav-row:has(> span:empty) { min-height: 0; } }

/* ---------- группы и строки ---------- */
.grp { display: flex; flex-direction: column; gap: 6px; }
.grp-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 14px; }
.grp-body { background: var(--cell); border-radius: var(--radius); overflow: hidden; }
.cell {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 14px; min-height: 48px; border-bottom: 1px solid var(--line);
}
.grp-body > :last-child, .grp-body > .cell:last-child { border-bottom: 0; }
.cell.tap:active { background: var(--line); }
@media (hover: hover) { .cell.tap:hover { background: color-mix(in srgb, var(--line) 45%, transparent); } }
.cell.col { flex-direction: column; align-items: stretch; gap: 10px; }
.cell.danger .t b { color: var(--hi); }
.cell.accent .t b { color: var(--accent); }
.t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.t b { font-weight: 500; font-size: 16px; }
.t span { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.cell:not(.col):not(.wrap) .t span { white-space: nowrap; }
.chev { color: var(--low); width: 18px; height: 18px; }
.val { color: var(--muted); font-size: 15px; white-space: nowrap; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.chk { color: var(--accent); font-weight: 700; font-size: 18px; }
.ficon, .sicon { display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.ficon { width: 32px; height: 32px; border-radius: 8px; font-size: 14px; }
.sicon { width: 22px; height: 22px; border-radius: 6px; font-size: 11.5px; }
.badge {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--accent); color: #fff;
  font-size: 12.5px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.badge.hi { background: var(--hi); }
.svc-head { display: flex; align-items: center; gap: 8px; padding: 0 6px; }
.svc-head b { font-size: 14px; font-weight: 600; }
.svc-all { margin-left: auto; color: var(--accent); font-size: 14px; }
.pad { padding: 0 4px; display: flex; flex-direction: column; gap: 10px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 0; }
.center { text-align: center; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 20px; color: var(--muted); }
.empty b { color: var(--ink); font-size: 17px; }
.empty p { margin: 0; max-width: 42ch; }
.empty .btn { margin-top: 8px; width: auto; padding: 11px 22px; }

/* ---------- кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 12px 16px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
}
.btn:disabled { opacity: .5; }
.btn.ghost { background: var(--cell); color: var(--accent); border: 1px solid var(--line); }
.btn.danger { color: var(--hi); }
.btn.small { width: auto; padding: 7px 12px; font-size: 14px; border-radius: 9px; }
.btn.small .ic { width: 16px; height: 16px; }
.btn.icon { width: auto; padding: 10px 12px; }
.link-btn { color: var(--accent); font-size: 15px; align-self: flex-start; }
.link-btn.danger { color: var(--hi); }
.input {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  font-size: 16px; outline: none; min-width: 0;
}
.input:focus { border-color: var(--accent); }
.input.mono { font-family: var(--mono); font-size: 14px; }
textarea.input { resize: vertical; line-height: 1.45; }
.input.search { background: var(--line); border: 0; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field small { color: var(--muted); font-size: 12.5px; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

.switch { position: relative; display: inline-flex; flex: none; }
.switch input { position: absolute; inset: 0; z-index: 1; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-ui { width: 51px; height: 31px; border-radius: 16px; background: var(--line); position: relative; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--ok); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + .switch-ui { opacity: .5; }

.seg { display: flex; background: var(--line); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button { flex: 1; padding: 6px 4px; border-radius: 7px; font-size: 14px; font-family: var(--mono); }
.seg button.on { background: var(--cell); box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 600; }

.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.color { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; }
.color.on { border-color: var(--cell); box-shadow: 0 0 0 2px var(--ink); }

.code-line { display: flex; align-items: center; gap: 8px; background: var(--code-bg); border: 1px solid var(--line); border-radius: 9px; padding: 8px 8px 8px 12px; }
.code-line code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13.5px; }
.code-block { position: relative; background: var(--code-bg); border: 1px solid var(--line); border-radius: 9px; }
.code-block pre { margin: 0; padding: 12px 44px 12px 12px; overflow-x: auto; font: 13px/1.5 var(--mono); }
.code-block .copy { position: absolute; top: 6px; right: 6px; }
.copy { color: var(--accent); padding: 6px; border-radius: 8px; display: inline-flex; }
.copy .ic { width: 18px; height: 18px; }
.setup { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; overflow-wrap: anywhere; }
.setup li::marker { color: var(--muted); }
.setup-code { list-style: none; margin-left: -20px; }

/* ---------- лента ---------- */
.feed { display: flex; flex-direction: column; gap: 18px; }
.msg { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; touch-action: pan-y; cursor: pointer; }
.grp-body > .msg:last-child { border-bottom: 0; }
.msg-del { position: absolute; inset: 0; background: var(--hi); color: #fff; display: flex; align-items: center; justify-content: flex-end; padding-right: 20px; font-weight: 600; opacity: 0; }
.msg.swiping .msg-del { opacity: 1; }
.msg-content { position: relative; display: flex; gap: 11px; padding: 12px 14px; background: var(--cell); transition: transform .18s; }
.msg.hl .msg-content { background: var(--accent-soft); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.msg-content > .dot { margin-top: 6px; }
.dot.p2 { background: var(--hi); }
.dot.p1 { background: var(--norm); }
.dot.p0 { background: var(--low); }
.msg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.msg-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.msg-top b { font-weight: 600; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.msg.read .msg-top b { font-weight: 500; color: var(--muted); }
.msg-top time { color: var(--muted); font-size: 13px; flex: none; font-variant-numeric: tabular-nums; }
.msg-meta { font-size: 12.5px; color: var(--muted); }
.msg-body { margin: 0; color: var(--muted); font-size: 14px; white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.msg-body.full { -webkit-line-clamp: unset; display: block; color: var(--ink); white-space: pre-wrap; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.msg-when { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.x { font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 1px 6px; border-radius: 5px; background: var(--line); color: var(--muted); margin-left: 6px; white-space: nowrap; vertical-align: 1px; }
.feed-end { text-align: center; color: var(--muted); font-size: 13px; padding: 4px 0 12px; }
.sentinel { height: 1px; }

/* ---------- подсказки ---------- */
.install { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.install p { margin: 0; color: var(--muted); font-size: 14px; }
.install ol { margin: 4px 0; padding-left: 20px; font-size: 14.5px; display: flex; flex-direction: column; gap: 4px; }
.nudge { display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--cell); border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 14px; }
.nudge span { color: var(--accent); font-size: 14px; }

/* ---------- правила ---------- */
.rule { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.rule-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.rule .t b { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.rule .t span { white-space: normal; font-size: 13px; }
.rule.off .t, .rule.off .dot { opacity: .45; }

.rule-layout { display: grid; gap: 18px; }
@media (min-width: 1100px) { .rule-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .preview { position: sticky; top: 20px; } }
.editor, .preview { background: var(--cell); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.editor .cell.inline { padding: 4px 0; border: 0; min-height: 0; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-actions .btn { width: auto; }
.help { font-size: 14px; color: var(--muted); }
.help summary { cursor: pointer; color: var(--accent); }
.help ul { padding-left: 18px; margin: 6px 0 0; display: flex; flex-direction: column; gap: 3px; }
.help code { color: var(--ink); }
.sample { font-size: 12.5px; max-height: 260px; }
.ftags { display: flex; flex-wrap: wrap; gap: 5px; }
.ftags button { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.preview-out { display: flex; flex-direction: column; gap: 10px; }
.ok { color: var(--ok); font-size: 14px; }
.warn { color: var(--warn); font-size: 14px; }
.pv { background: linear-gradient(165deg, var(--wall-a), var(--wall-b)); border-radius: 16px; padding: 12px; color: #fff; }
.nt { display: flex; gap: 10px; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 15px; padding: 10px 12px; }
.ap { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; }
.nt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nt-h { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; opacity: .8; }
.nt-body b { font-size: 14.5px; overflow-wrap: anywhere; }
.nt-body p { margin: 0; font-size: 13.5px; opacity: .92; white-space: pre-line; overflow-wrap: anywhere; }
.pv-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- запросы ---------- */
.req { border-bottom: 1px solid var(--line); }
.req:last-child { border-bottom: 0; }
.req-head { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 14px; }
.req-head .t span { white-space: normal; }
.req-head time { color: var(--muted); font-size: 13px; flex: none; }
.req-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.req-body pre { margin: 0; padding: 12px; background: var(--code-bg); border: 1px solid var(--line); border-radius: 9px; overflow-x: auto; font: 12.5px/1.5 var(--mono); max-height: 420px; }
.chip { font: 600 12px var(--mono); padding: 2px 7px; border-radius: 6px; flex: none; }
.chip.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.chip.bad { background: color-mix(in srgb, var(--hi) 16%, transparent); color: var(--hi); }

/* ---------- вход ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left)); }
.login { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
.login h1 { font-size: 28px; }
.login p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.logo { width: 72px; height: 72px; margin: 0 auto 4px; border-radius: 18px; background: linear-gradient(160deg, #3D63F0, #2440B8); color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 800; }

/* ---------- листы и тосты ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(5, 8, 20, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.sheet-wrap.open { background: rgba(5, 8, 20, .45); }
.sheet { width: 100%; max-width: 480px; padding: 8px 8px calc(10px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; transform: translateY(100%); transition: transform .22s ease-out; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-group { background: var(--cell); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.sheet-head { padding: 14px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.sheet-head b { color: var(--ink); font-size: 15px; }
.sheet-btn { padding: 15px; text-align: center; font-size: 17px; color: var(--accent); border-bottom: 1px solid var(--line); }
.sheet-btn:last-child { border-bottom: 0; }
.sheet-btn.danger { color: var(--hi); }
.sheet-btn.cancel { font-weight: 600; }
.sheet-form { padding: 0 12px 12px; gap: 10px; }
.sheet-form .sheet-head { margin: 0 -12px; }
@media (min-width: 900px) { .sheet-wrap { align-items: center; } .sheet { transform: scale(.96); opacity: 0; transition: transform .18s, opacity .18s; } .sheet-wrap.open .sheet { transform: none; opacity: 1; } }

.toast {
  position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-size: 15px; box-shadow: var(--shadow);
  animation: toast-in .2s ease-out;
}
.toast-act { color: var(--accent-soft); font-weight: 600; }
@media (min-width: 900px) { .toast { bottom: 28px; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- значки и эмодзи ---------- */
.ficon.has-emoji, .sicon.has-emoji { background: var(--accent-soft); }
.ficon.has-emoji { font-size: 19px; }
.sicon.has-emoji { font-size: 13px; }
.ficon.has-img, .sicon.has-img { background: var(--line); overflow: hidden; }
.ficon img, .sicon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emoji-val { font-size: 20px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.emoji-grid button { font-size: 24px; aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; }
.emoji-grid button:hover, .emoji-grid button.on { background: var(--accent-soft); }
.emoji-row { display: flex; gap: 8px; align-items: center; }
.emoji-row .btn { flex: none; }
.emoji-input { font-size: 20px; }
.pv.small { padding: 10px; }
.pv .ap-img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.nt-h b { font-size: 14.5px; opacity: 1; color: #fff; }
.nt-from { font-size: 14px; font-weight: 600; }

/* ---------- обновление свайпом вниз ---------- */
.ptr {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) - 44px); left: 50%; z-index: 40;
  transform: translate(-50%, 0); display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--cell); color: var(--muted);
  box-shadow: var(--shadow); font-size: 13.5px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: transform .2s ease-out, opacity .15s;
}
.ptr.show { opacity: 1; transition: opacity .15s; }
.ptr.loading { transition: transform .2s ease-out; }
.ptr.ready { color: var(--accent); }
.ptr-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); flex: none; }
.ptr.ready .ptr-spin { transform: rotate(180deg); }
.ptr.loading .ptr-spin { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
