@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/golos-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/golos-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F6F7FB; --side: #F0EDF8; --panel: #FFFFFF; --canvas: #FCFCFF; --dot: #DDD9E9;
  --ink: #232C3D; --ink-2: #59667A; --line: #DDE2ED; --sel: #E2DAF5; --callout: #EEE9F8;
  --accent: #7158BE; --accent-h: #5E47A8;
  /* status text */ --t-u: #217E6E; --t-p: #966116; --t-d: #B44850; --t-n: #66758B;
  /* status fills */ --b-u: #2FA98C; --b-p: #F0A532; --b-d: #E8665F; --b-n: #B4BDCB;
  /* status tints */ --bg-u: #E2F3EE; --bg-p: #FFF2D9; --bg-d: #FBE6E7; --bg-n: #ECEFF4;
  --chart: #397BB1;
  --r: 12px; --r-s: 10px;
  --shadow: 0 1px 2px rgba(35, 44, 61, .04), 0 6px 20px rgba(35, 44, 61, .04);
  font: 16px/1.5 "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-h); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(1.65rem, 1rem + 2.6vw, 2.6rem); font-weight: 700; text-wrap: balance; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 .8em; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* shell */
/* 272px: every sidebar label stays on one line (the longest, «Уведомления в Telegram», is ~185px) */
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid #E4DFF0; padding: 22px 14px; position: sticky; top: 0; z-index: 7; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #D3C8EE transparent; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); padding: 0 8px 22px; }
.brand > span { font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.brand small { display: block; font-weight: 400; font-size: .75rem; line-height: 1.25; text-wrap: balance; color: var(--ink-2); margin-top: 3px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { stroke: #fff; stroke-width: 3; stroke-linecap: round; fill: none; }
.brand-mark circle { fill: #fff; }
.side-toggle { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; min-height: 40px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-size: .95rem; }
.side-nav a:hover { background: rgba(113, 88, 190, .08); color: var(--ink); }
.side-nav a.on { background: var(--sel); color: var(--accent-h); font-weight: 600; }
.side-label { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #675B88; margin: 14px 12px 4px; }
.side-foot { margin-top: auto; border-top: 1px solid #E1DBEE; padding-top: 10px; }
/* sidebar status labels darker than --t-*: AA (4.5:1) on --side and on the selected item (--sel); outranks partials/head.html */
.side .pst { color: #525F74; } .side [data-s=up] .pst { color: #1A6B5E; } .side [data-s=partial] .pst { color: #7F5112; } .side [data-s=down] .pst { color: #9E3A42; }
.side-note { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--ink-2); padding: 9px 12px; margin: 0; }

.main { padding: 0 32px 40px; max-width: 1144px; width: 100%; margin-inline: auto; }
.bar { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.crumbs { margin: 0 auto 0 0; color: var(--ink-2); }
.crumbs b { color: var(--ink); }
.badge-live { background: var(--bg-u); color: #1B6E60; border-radius: 8px; padding: 4px 10px; font-size: .82rem; font-weight: 500; }
.badge-live.demo { background: var(--sel); color: var(--accent-h); }

/* head */
.head { padding: 22px 0 8px; }
.head-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 10px; font-weight: 600; font-size: 1rem; background: var(--bg-n); color: #56647A; }
.pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pill-up { background: var(--bg-u); color: #1B6E60; }
.pill-partial { background: var(--bg-p); color: var(--t-p); border: 1px solid #F3D9A6; }
.pill-down { background: var(--bg-d); color: #A23E46; }
.lead { color: var(--ink-2); margin: 10px 0 8px; font-size: 1.02rem; }
.incident-strip { position: relative; padding-left: 26px; font-size: .92rem; margin-bottom: 16px; }
.incident-strip .ic { position: absolute; left: 0; top: 2px; color: var(--t-p); }
.check { display: flex; gap: 10px; flex-wrap: wrap; }
.check input { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 1.05rem; padding: 12px 16px; border: 1px solid #CDD3E0; border-radius: var(--r-s); background: #fff; color: var(--ink); }
.check input:focus { border-color: var(--accent); outline: 2px solid rgba(113, 88, 190, .18); }
.hint { font-size: .85rem; color: var(--ink-2); margin: 6px 0 0; }
.hint.err { color: var(--t-d); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .98rem; padding: 11px 20px; border-radius: var(--r-s); cursor: pointer; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); color: #fff; }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--callout); color: var(--accent-h); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* panels */
.panel, .callout { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; margin-top: 18px; }
.panel-head { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head > :first-child { margin-right: auto; }
.panel h2 + .muted { margin-top: 4px; }
.tabs { display: flex; gap: 4px; order: 3; width: 100%; border-bottom: 1px solid var(--line); }
.tabs button { font: inherit; background: none; border: 0; padding: 8px 14px; cursor: pointer; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-s); padding: 3px; }
.seg button { font: inherit; font-size: .9rem; border: 0; background: none; padding: 5px 16px; border-radius: 7px; cursor: pointer; color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--accent); color: #fff; }

/* site map */
.site-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 30%, 300px); gap: 14px; }
.site-body[data-view="list"] .map, .site-body[data-view="list"] .inspector { display: none; }
.site-body[data-view="map"] .checks { display: none; }
.checks { grid-column: 1 / -1; }
.map { position: relative; background: var(--canvas) radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 18px 18px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px 22px; min-height: 300px; }
.map-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.map-cols span { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .85rem; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
/* equal columns: DNS carries a status label as long as the others; labels may wrap («Отвечает с ошибкой») */
.map-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "domain dns web site" "domain dns mx mail"; gap: 30px 20px; align-items: center; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-lines path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.node { font: inherit; text-align: left; display: grid; grid-template-columns: 18px 1fr; gap: 2px 8px; align-items: center; background: #fff; border: 1px solid #D9DCEA; border-radius: var(--r-s); padding: 9px 11px; cursor: pointer; color: var(--ink); min-width: 0; box-shadow: 0 1px 2px rgba(35, 44, 61, .05); }
.node b { font-weight: 600; font-size: .88rem; overflow-wrap: normal; min-width: 0; text-wrap: balance; }
.site, #notifyTarget, .node[data-node="domain"] b { overflow-wrap: anywhere; } /* a long domain must not push the page sideways */
.node i { grid-column: 2; font-style: normal; font-size: .8rem; display: flex; align-items: center; gap: 6px; min-width: 0; }
.node i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.node[aria-pressed="true"] { border: 2px solid var(--accent); padding: 8px 10px; }
.node:hover { border-color: var(--accent); }
.s-u { color: var(--t-u); } .s-p { color: var(--t-p); } .s-d { color: var(--t-d); } .s-n { color: var(--t-n); }

.inspector { border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px; font-size: .92rem; }
.inspector h3 { display: flex; gap: 10px; align-items: center; font-size: 1.15rem; margin-bottom: 10px; }
.inspector .pill { font-size: .88rem; padding: 4px 12px; margin-bottom: 12px; }
.regions { list-style: none; padding: 0; margin: 0 0 12px; }
.regions li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.regions li b { margin-left: auto; font-weight: 600; font-size: .88rem; }
[data-group] .regions li + li, #mailStatus .regions li + li { border-top: 1px solid var(--line); } /* the status widget runs the full width: rules keep a label and its value together */
/* block, not flex: when the label must wrap, icon and text stay one centred group */
.inspector .btn { display: block; width: 100%; white-space: normal; text-wrap: balance; padding: 10px 12px; font-size: .9rem; margin: 10px 0; }
.inspector .btn .ic { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: .88rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; overflow-wrap: break-word; min-width: 0; }
.inspector .kv + p { margin-top: 10px; } /* «Проверено …» apart from the table when there is no button */
/* site-check verdict: one box above the Карта/Проверки tabs (.verdict-top), levels ok | warn | bad */
.verdict { padding: 14px 16px; border-radius: var(--r-s); background: var(--bg-n); border: 1px solid var(--line); margin-bottom: 14px; }
.verdict.ok { background: var(--bg-u); border-color: #BFE3D8; } .verdict.ok h3 { color: #1B6E60; }
.verdict.warn { background: var(--bg-p); border-color: #F3D9A6; } .verdict.warn h3 { color: var(--t-p); }
.verdict.bad { background: var(--bg-d); border-color: #F2C6C9; } .verdict.bad h3 { color: #A23E46; }
.verdict h3 { margin-bottom: 4px; }
.verdict p { margin: 0; }
.verdict .actions { margin-top: 12px; }
.verdict-top { margin: 0 0 16px; }
.panel-head > .verdict-top { order: 2; flex-basis: 100%; margin: 0; }
.checks .kv { font-size: .95rem; gap: 8px 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.history { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.history h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.history h3 .ic { color: var(--accent); }
.hist-track { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--b-n); gap: 2px; }
.hist-track i { display: block; height: 100%; }
.hist-axis { display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink-2); margin: 8px 0 10px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 10px 0; font-size: .85rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend-right { justify-content: flex-end; margin-top: -4px; }
.b-u { background: var(--b-u); } .b-p { background: var(--b-p); } .b-d { background: var(--b-d); } .b-n { background: var(--b-n); }

/* matrix */
.matrix { display: grid; grid-template-columns: minmax(130px, max-content) minmax(0, 1fr) minmax(110px, max-content); gap: 10px 16px; align-items: center; }
.mx-row { display: contents; }
.mx-axis { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-2); }
.mx-label { font-weight: 600; font-size: .95rem; }
.mx-bars { display: flex; gap: 1px; height: 22px; }
.mx-bars i { flex: 1; border-radius: 2px; background: var(--b-n); min-width: 1px; }
.mx-bars i.u { background: var(--b-u); } .mx-bars i.p { background: var(--b-p); } .mx-bars i.d { background: var(--b-d); }
.mx-st { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.mx-st small { display: block; font-weight: 400; color: var(--ink-2); font-size: .78rem; }
.foot-note { border-top: 1px solid var(--line); padding-top: 10px; margin: 14px 0 0; }

/* chart + events */
/* no stretch: each card keeps its own height; rows are spaced by the panels' own margin-top */
.chart { position: relative; height: 200px; margin-top: 8px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-l { stroke: #E8EBF2; stroke-width: 1; }
.chart .ax { fill: var(--ink-2); font-size: 12px; font-family: inherit; }
.chart .ln { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .cross { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .pt { fill: var(--chart); stroke: #fff; stroke-width: 2; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: .8rem; padding: 5px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -120%); }
.events { list-style: none; padding: 0; margin: 12px 0; max-height: 300px; overflow: auto; }
.events li { display: grid; grid-template-columns: var(--evt, 52px) 14px 1fr auto; gap: 10px; align-items: start; padding: 6px 0; font-size: .9rem; }
.events li::before { content: ""; grid-column: 2; grid-row: 1; width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--accent); background: #fff; }
.events li.ev-u::before { border-color: var(--b-u); } .events li.ev-d::before { border-color: var(--b-d); } .events li.ev-p::before { border-color: var(--b-p); }
.events time { grid-column: 1; grid-row: 1; color: var(--ink-2); }
.events span { grid-column: 3; grid-row: 1; }
.events em { grid-column: 4; grid-row: 1; font-style: normal; font-size: .75rem; color: var(--ink-2); background: var(--bg-n); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.events.dated { --evt: 86px; } /* some rows show «16.10 20:19» instead of a bare time */
.events-wide { max-height: none; }
.guide .events { padding-left: 0; } /* outranks the inline .guide ol indent */
.events-wide li { grid-template-columns: 118px 14px 1fr; }
.events-wide time { justify-self: start; padding: 1px 8px; background: var(--callout); border-radius: 7px; color: var(--accent-h); font-size: .86rem; font-weight: 600; white-space: nowrap; }
@media (min-width: 601px) { #chrono .events-wide li { grid-template-columns: 58px 14px 1fr; } } /* bare times */
.link { font-weight: 600; font-size: .92rem; }

/* callout */
.callout { display: flex; align-items: center; gap: 18px; background: var(--callout); border-color: #DDD3F2; flex-wrap: wrap; }
.callout h2 { font-size: 1.25rem; margin-bottom: 4px; }
.callout p { margin: 0; }
.callout > div { flex: 1 1 280px; padding-left: 18px; border-left: 1px solid #D6CCEE; }
.callout-ic { width: 48px; height: 48px; display: grid; place-items: center; background: #fff; border-radius: 12px; color: var(--accent); }
.callout-ic .ic { width: 24px; height: 24px; }
.callout .notify-msg, .callout .notify-off { margin-top: 6px; }
.btn[hidden] { display: none; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--accent-h); }
.link-btn[disabled] { opacity: .6; cursor: progress; }

/* servers board */
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 12px; background: #fff; color: var(--ink-2); }
.search input { font: inherit; border: 0; padding: 9px 0; width: 290px; max-width: 100%; color: var(--ink); background: none; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13px, 1fr)); gap: 3px; }
.grid span { aspect-ratio: 1; background: var(--b-n); border-radius: 3px; cursor: pointer; }
.grid span.up { background: var(--b-u); } .grid span.down { background: var(--b-d); } .grid span.partial { background: var(--b-p); }
.grid span.dim { opacity: .15; }
.grid span.hit { outline: 2px solid var(--accent); outline-offset: 1px; }
.srv-hit { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.srv-hit:empty { min-height: 0; margin-top: 6px; }
.srv-hit .btn { padding: 5px 12px; font-size: .88rem; margin: 4px 0 0 6px; vertical-align: middle; }

/* hub /hostingi/: live status of every provider (markup in public/hostingi/index.html, filled by public/hosts.js):
   <p class="hub-sum" id="hubSum"></p>            one line «Частичные сбои: …. Остальные работают.»
   <ul class="hub-list" id="hubList"><li><a class="hub-row" href="/timeweb/" data-slug="timeweb">
     <b class="hub-name">Timeweb</b><span class="hub-kind">Виртуальный хостинг</span>
     <span class="hub-srv">Серверы: 302 из 308</span>   empty for a provider without a board: shows «—»
     <span class="pill hub-pill pill-up">Работает</span></a></li></ul>
   Wide: one row per provider in a framed list (like .others), the whole row is the link, servers and pill flush right.
   Up to 600px: name and pill on the first line, kind and servers below, an empty servers line is dropped. */
.hub-sum { font-weight: 600; margin: 4px 0 8px; }
.hub-sum:empty { display: none; }
.hub-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.hub-list li + li { border-top: 1px solid var(--line); }
.hub-row { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) auto 150px; gap: 4px 16px; align-items: center; min-height: 56px; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.hub-row:hover { background: var(--canvas); color: var(--ink); }
.hub-row:hover .hub-name { color: var(--accent-h); }
.hub-name { font-size: 1.05rem; }
.hub-kind, .hub-srv { color: var(--ink-2); font-size: .9rem; }
.hub-srv:empty::before { content: "—"; content: "—" / ""; color: var(--t-n); } /* no board; empty alt text: screen readers skip the dash */
.hub-pill { grid-column: 4; justify-self: end; gap: 7px; padding: 4px 12px; font-size: .88rem; white-space: nowrap; }
.hub-pill::before { width: 8px; height: 8px; }
.hub-pill:empty { visibility: hidden; } /* before the first /api/providers answer */
@media (max-width: 600px) {
  .hub-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; }
  .hub-pill { grid-column: 2; grid-row: 1; }
  .hub-kind, .hub-srv { grid-column: 1 / -1; }
  .hub-srv:empty { display: none; }
}

/* prose / move / reports / feed / faq */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.chips button { font: inherit; font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chips button:hover { border-color: var(--accent); }
.chips button[aria-checked="true"], .chips button[aria-pressed="true"] { background: var(--sel); border-color: #D3C8EE; color: var(--accent-h); font-weight: 600; }
.move-tip { font-size: .92rem; color: var(--ink-2); min-height: 1.4em; }
.hosts { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.hosts li { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px; }
.hosts li[hidden] { display: none; }
.hosts b { font-size: 1.08rem; }
.hosts span { color: var(--ink-2); font-size: .92rem; flex: 1; }
.hosts .btn { align-self: flex-start; padding: 8px 14px; font-size: .9rem; margin-top: 6px; }
/* «У вас тоже не работает?»: a call to act on the callout tint. Items wrap by the room they get (a full row or a narrow column), the chart always takes its own row */
.reports { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; background: var(--callout); border-color: #DDD3F2; }
.reports h2 { font-size: 1.25rem; margin-bottom: 4px; }
.reports p { margin: 0; }
.rep-text { flex: 100 1 300px; min-width: 0; } /* takes the free room while the button shares its row; a button that wrapped fills its own row */
.rep-stats { display: flex; gap: 8px; margin: 0; }
.rep-stats div { display: flex; flex-direction: column-reverse; align-items: center; min-width: 78px; padding: 7px 12px; background: #fff; border-radius: var(--r-s); }
.rep-stats dd { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.rep-stats dt { font-size: .8rem; color: var(--ink-2); }
.rep-act { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; }
.rep-act .btn { width: 100%; }
#reportMsg:not(:empty) { margin-top: 6px; }
.reports figure { flex: 1 1 100%; margin: 0; }
.rep-bars { display: flex; align-items: flex-end; gap: 1px; height: 56px; }
.rep-bars.rep-empty { height: 6px; }
.rep-bars i { flex: 1; background: var(--b-d); min-height: 1px; border-radius: 2px 2px 0 0; }
.rep-bars i.z { background: #D6CCEE; }
.reports figcaption { margin-top: 8px; }
.feed { max-height: 520px; overflow: auto; margin-top: 10px; }
.feed article { border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; margin-bottom: 10px; white-space: pre-line; font-size: .93rem; }
.feed time { display: block; font-weight: 600; margin-bottom: 6px; white-space: normal; }
.faq details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { display: flex; align-items: center; gap: 12px; min-height: 40px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-h); }
/* lucide chevron-down, same stroke as the /icons.svg set */
.faq summary::after { content: ""; flex: none; width: 20px; height: 20px; margin-left: auto; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.faq details[open] > summary::after { rotate: 180deg; }
.faq details p { margin: 4px 0 8px; }

/* the footer: compact, every row runs the full column. The links fill their rows at any width: all six, then 3 + 3, then 2 + 2 + 2 */
.main > .foot { container-type: inline-size; display: grid; gap: 10px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; }
.foot-about { margin: 0; }
.foot-about b { color: var(--ink); font-weight: 600; }
.main > .foot nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.main > .foot nav a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 4px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--ink-2); font-weight: 500; text-decoration: none; white-space: nowrap; }
.main > .foot nav a:hover { background: var(--callout); border-color: #DDD3F2; color: var(--accent-h); }
.main > .foot nav .ic { width: 16px; height: 16px; color: var(--accent); }
@container (max-width: 860px) { .main > .foot nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 420px) { .main > .foot nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the sign-off: the dot follows Beget's live status, the percentage is the board's own number (server.mjs on load, shell.js every minute) */
.foot-sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 24px; }
.foot-sign p { margin: 0; }
.sign-end { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; }
.foot .sign-tg { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; font-weight: 600; text-decoration: none; color: var(--accent-h); }
.foot .sign-tg:hover { text-decoration: underline; text-underline-offset: 3px; }
.sign-tg-ic { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #2AABEE; color: #fff; }
.sign-tg-ic .ic { width: 13px; height: 13px; stroke-width: 2; translate: -1px 1px; }
.sign-beget { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: .95rem; font-weight: 700; white-space: nowrap; }
.spct { color: var(--accent-h); }

/* guide pages (legacy markup) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 820px; margin: 0 auto; padding: 18px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
.logo-mark { display: grid; grid-template-columns: 7px 7px; gap: 2px; }
.logo-mark i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--accent); }
.article { max-width: 760px; margin: 0 auto; padding: 12px 20px 20px; }
.article h1 { margin-bottom: 14px; }
.article h2 { margin: 1.8em 0 .5em; }
.article li { margin-bottom: .5em; }
.article code { background: var(--side); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.article pre { background: var(--ink); color: #F3F4F8; padding: 14px 16px; border-radius: var(--r-s); overflow: auto; font-size: .88rem; }
.article .lead { font-size: 1.15rem; }
.note { background: var(--bg-p); padding: 14px 18px; border-radius: var(--r-s); margin: 1.4em 0; }
.cta { display: inline-block; margin: 8px 0 1em; padding: 11px 20px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; border-radius: var(--r-s); }
.cta:hover { background: var(--accent-h); color: #fff; }
.article .hosts { display: block; }
.article .hosts li { margin-bottom: 10px; display: block; }
body > .foot { max-width: 760px; margin: 28px auto 0; padding: 20px 20px 40px; color: var(--ink-2); font-size: .9rem; }

/* in-page section nav: a floating bar across the whole column. Items share the free width; when they do not fit, the bar scrolls sideways and app.js keeps the active one in view.
   Opaque, not blurred: blurred text under it read as grey patches. The active item keeps the same font weight, so the scroll-spy does not make labels jump. */
.pnav { position: sticky; top: 8px; z-index: 6; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 14px 0 0; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 -8px 0 6px var(--bg), 0 2px 4px rgba(35, 44, 61, .05), 0 10px 28px rgba(35, 44, 61, .08); }
.pnav::-webkit-scrollbar { display: none; }
.pnav a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 6px 12px; border-radius: var(--r-s); color: var(--ink-2); text-decoration: none; white-space: nowrap; font-size: .95rem; font-weight: 500; transition: background-color .15s, color .15s; }
.pnav a .ic { color: var(--accent); transition: color .15s; }
.pnav a:hover { background: var(--callout); color: var(--accent-h); }
.pnav a:focus-visible { outline-offset: -2px; }
.pnav a.on { background: var(--accent); color: #fff; }
.pnav a.on .ic { color: #fff; }
@media (min-width: 901px) and (max-width: 1279px) { .pnav a { gap: 6px; padding-inline: 8px; font-size: .92rem; } }
.pnav a[hidden] { display: none; }
.mx-empty { grid-column: 1 / -1; margin: 6px 0; }
.strip-link { font-weight: 600; }
/* «Читайте также»: no orphan card — 4 links as 2×2, 3/5/6 in three columns; phones keep one column (.main outranks partials/head.html) */
@media (min-width: 601px) {
  .main .related ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main .related ul:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* where to move: partner cards, popovers, other options */
.move > h2 + .muted { margin-top: 4px; }
.partners { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
/* equal cards keep their buttons on one line (margin-top: auto); next to a card with three or more buttons a card is not
   stretched, so no big gap opens above its single button */
.partners:has(.pcard-act > :nth-child(3)) { align-items: start; }
.pcard { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid #DCD3F1; border-radius: var(--r); background: linear-gradient(180deg, #FAF8FE, #fff 70%); }
.pcard-head { display: flex; align-items: center; gap: 10px; }
.pcard-head b { font-size: 1.15rem; }
.pcard > p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.pcard-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.pcard-act .btn { padding: 9px 16px; font-size: .92rem; }
.btn-quiet { background: none; color: var(--accent); border-color: transparent; }
.btn-quiet:hover { background: var(--callout); color: var(--accent-h); }
.btn .ic { width: 16px; height: 16px; }

.pop { margin: 0; padding: 18px 20px 16px; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 32px)); overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); box-shadow: 0 16px 48px rgba(35, 44, 61, .18); }
.pop::backdrop { background: rgba(35, 44, 61, .12); }
.pop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pop-head h3 { font-size: 1.2rem; }
.pop-x { margin-left: auto; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: var(--r-s); background: none; color: var(--ink-2); cursor: pointer; }
.pop-x:hover { background: var(--bg-n); color: var(--ink); }
.pop-sub { margin: 0; font-weight: 600; font-size: .92rem; }
.pop ul { margin: 6px 0 12px; padding-left: 20px; list-style: disc; font-size: .93rem; color: var(--ink-2); }
.pop li { margin-bottom: 4px; }
.pop-ok { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-s); background: var(--bg-u); color: #1B6E60; font-size: .9rem; margin: 0 0 12px; }
.pop-ok .ic { margin-top: 2px; }
.pop .btn { width: 100%; margin-bottom: 8px; white-space: normal; }
@media (min-width: 601px) {
  .pop::backdrop { background: transparent; }
  @supports (position-area: bottom) {
    .pop { inset: auto; position-area: bottom span-right; margin-top: 8px; position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .pop { transition: opacity .16s ease-out, translate .16s ease-out, overlay .16s allow-discrete, display .16s allow-discrete; }
  .pop:not(:popover-open) { opacity: 0; translate: 0 6px; }
  @starting-style { .pop:popover-open { opacity: 0; translate: 0 6px; } }
}

.others { margin-top: 18px; }
.others[hidden] { display: none; }
.others h3 { font-size: 1rem; margin-bottom: 8px; }
.others ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-s); }
.others li + li { border-top: 1px solid var(--line); }
.others a { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; min-height: 46px; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.others a:hover { background: var(--canvas); color: var(--ink); }
.others a:hover b { color: var(--accent-h); }
.others a span { color: var(--ink-2); font-size: .9rem; }
.others a .ic { color: var(--ink-2); width: 16px; height: 16px; }
.move-foot { margin: 14px 0 0; }

/* contextual slide-in after a bad check */
.slidein { position: fixed; z-index: 30; right: 20px; bottom: 20px; width: min(360px, calc(100vw - 40px)); padding: 18px 18px 14px; background: #fff; border: 1px solid #DCD3F1; border-radius: 14px; box-shadow: 0 18px 50px rgba(35, 44, 61, .22); }
.slidein-x { position: absolute; top: 8px; right: 8px; }
.slidein-t { font-weight: 700; font-size: 1.1rem; margin: 0 40px 6px 0; line-height: 1.25; text-wrap: balance; }
.slidein-act { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 10px; }
.slidein-act .btn { white-space: normal; }
.slidein .link { display: inline-block; margin-bottom: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .slidein { animation: slide-in .32s cubic-bezier(.2, .8, .2, 1); }
  @keyframes slide-in { from { opacity: 0; translate: 0 24px; } }
}

/* up to 1360px (1366 minus a Windows scrollbar included) the map next to the 272px sidebar and the inspector is too narrow
   for one-line node labels: the inspector goes under the map */
@media (max-width: 1360px) {
  .site-body { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  /* the four-column map with connector lines needs a ~1040px window for one-line labels: up to 1100px nodes go two per row */
  .map-cols, .map-lines { display: none; }
  .map { min-height: 0; padding: 12px; }
  .map-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "domain dns" "web site" "mx mail"; gap: 8px; align-items: stretch; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 68px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: relative; z-index: 10; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 16px; border-right: 0; border-bottom: 1px solid #E4DFF0; max-height: 100vh; max-height: 100dvh; }
  .brand { padding: 0; margin-right: auto; }
  .side-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #DCD5EC; border-radius: var(--r-s); background: #fff; color: var(--ink); cursor: pointer; }
  .side-nav { display: none; width: 100%; padding-top: 10px; }
  .side.open .side-nav { display: flex; }
  .main { padding: 0 16px 32px; }
  .rep-stats { flex: 1 1 100%; }
  .rep-stats div { flex: 1; }
  .matrix { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .mx-axis, .mx-pad { display: none; }
  .mx-row { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr auto; gap: 4px 12px; margin-bottom: 8px; }
  .mx-bars { grid-column: 1 / -1; order: 3; }
  .legend-right { justify-content: flex-start; }
  .bar { flex-wrap: wrap; gap: 8px 14px; }
  .pnav { top: 0; margin-inline: -16px; padding: 6px 16px; border-width: 1px 0; border-radius: 0; }
  .pnav a { padding-inline: 11px; font-size: .9rem; gap: 7px; }
  .seg button { min-height: 40px; }
  .tabs button { min-height: 44px; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; padding: 10px 0; }
  /* tap targets >= 40px (.main outranks the .hstrip padding in partials/head.html) */
  .foot nav a, .main .hstrip a, .panel-head .link, .events ~ .link { display: inline-flex; align-items: center; min-height: 40px; }
  /* in-sentence button: bigger hit area, the line height stays */
  .link-btn { padding-block: 8px; margin-block: -8px; }
}
@media (max-width: 600px) {
  .node i { grid-column: 1 / -1; } /* two nodes per row: the status takes the icon column too, so «Не запущен» stays on one line */
  .pop { inset: auto 0 0 0; width: 100%; max-width: none; max-height: 85vh; max-height: 85dvh; border-radius: 16px 16px 0 0; border-bottom: 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
  .pop::backdrop { background: rgba(35, 44, 61, .4); }
  .pop .btn { min-height: 48px; }
  .slidein { left: 0; right: 0; bottom: 0; width: auto; border-radius: 16px 16px 0 0; border-bottom: 0; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }
  .slidein-act { gap: 6px; margin: 10px 0 8px; }
  .others a { grid-template-columns: minmax(0, 1fr) auto; }
  .others a span { grid-column: 1; }
  .others a .ic { grid-column: 2; grid-row: 1 / span 2; }
  .pcard-act .btn { flex: 1 1 auto; }
  /* events and timeline: dot, time and source on one meta line, the text below at full width */
  .events li { grid-template-columns: 14px auto minmax(0, 1fr); gap: 2px 8px; padding: 7px 0; }
  .events li::before { grid-column: 1; }
  .events time { grid-column: 2; font-size: .85rem; }
  .events em { grid-column: 3; justify-self: start; padding: 1px 7px; }
  .events span { grid-column: 2 / -1; grid-row: 2; }
  .events li:not(:has(time)) > span { grid-row: 1; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 600px) {
  .pop:not(:popover-open) { translate: 0 24px; }
  @starting-style { .pop:popover-open { translate: 0 24px; } }
}
@media (max-width: 520px) {
  .check .btn { flex: 1 1 auto; }
  .panel, .callout { padding: 16px; }
  .callout > div { border-left: 0; padding-left: 0; }
  .callout .btn { flex: 1 1 100%; }
  /* servers board: ~30 columns, 792 Beget servers in under 300px; a single server is found with the search */
  .grid { grid-template-columns: repeat(auto-fill, minmax(8px, 1fr)); gap: 2px; }
  .grid span { border-radius: 2px; }
  .verdict .btn { flex: 1 1 auto; }
}
/* short desktop screens: the longer sidebar fits without scrolling where possible */
@media (min-width: 901px) and (max-height: 1000px) {
  .side { padding-block: 16px; }
  .brand { padding-bottom: 12px; }
  .side-nav a { min-height: 34px; padding-block: 5px; }
  .side-label { margin-top: 10px; }
}
/* 1440×768 and alike: the whole sidebar, its foot included, still fits */
@media (min-width: 901px) and (max-height: 800px) {
  .side-nav { gap: 0; }
  .side-nav a { min-height: 32px; }
  .side-label { margin-top: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .grid span, .mx-bars i { transition: background-color .4s; }
  .faq summary::after { transition: rotate .2s ease-out; }
}

/* compact overview: the Beget page */
/* the latest official post: the one tinted panel on the page, everything else stays white */
.updates { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top when" "body act"; gap: 10px 28px; margin-top: 16px; padding: 18px 22px 18px 24px; background: #EEE7FB; border: 1px solid #C4B1EE; border-left: 4px solid var(--accent); border-radius: 14px; box-shadow: var(--shadow); }
.updates[hidden] { display: none; }
.upd-top { grid-area: top; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.upd-top h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.upd-top .ic { width: 24px; height: 24px; color: var(--accent); }
.upd-tag { font-size: .82rem; font-weight: 500; color: var(--accent-h); background: var(--sel); border-radius: 7px; padding: 3px 9px; white-space: nowrap; }
.upd-when { grid-area: when; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin: 0; }
.upd-when time { font-weight: 600; white-space: nowrap; }
.upd-body { grid-area: body; min-width: 0; }
.upd-body h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); font-weight: 700; margin-bottom: 6px; text-wrap: balance; }
#updSum, #updText { color: var(--ink); margin: 0 0 12px; }
#updSum { font-size: 1.05rem; }
#updSum:empty { display: none; }
#updText { white-space: pre-line; overflow-wrap: anywhere; }
.upd-full { margin-bottom: 14px; }
.upd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.upd-topics { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.upd-topics:empty { display: none; }
.upd-topics li { font-size: .82rem; font-weight: 500; color: var(--accent-h); background: var(--sel); border-radius: 999px; padding: 3px 10px; }
.upd-act { grid-area: act; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 10px; }
.upd-act .btn { background: #fff; }
@media (min-width: 721px) { /* the opened post takes the whole panel */
  .updates:has(#updFull:not([hidden])) { grid-template-areas: "top when" "body body" "act act"; }
  .updates:has(#updFull:not([hidden])) .upd-act { flex-direction: row; align-items: center; }
}
.upd-act .btn:hover { background: var(--callout); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 18px; }
.rt-ev section + section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.rt-ev .muted + .events { margin-top: 8px; }
.capped { max-height: none; }
#eventList { max-height: none; overflow: visible; } /* «Все события» opens the list in the page, not into a 300px window */
.capped > :nth-child(n+6) { display: none; }
#recovery { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.rec-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; padding: 0; list-style: none; font-size: .875rem; line-height: 1.3; color: var(--ink-2); }
.rec-nums b { display: block; min-height: 1.2em; font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.rec-chart { height: 170px; }
.chart .ar { fill: var(--chart); opacity: .1; }
#recCap { margin: 6px 0 0; }
#recText { margin: 12px 0 0; font-weight: 500; }
#recText + p { margin: 4px 0 0; }
/* --cell: square size that lets the board fill its panel beside the events (set per page: it depends on the number of servers) */
.board .grid { grid-template-columns: repeat(auto-fill, minmax(min(var(--cell, 11px), 14px), 1fr)); gap: 2px; }
.board .grid span { border-radius: 2px; }
.board .legend { justify-content: flex-start; }
.board .legend b { margin-left: 6px; color: var(--ink); font-weight: 600; }
.post { border-bottom: 1px solid var(--line); }
#feedList { margin-top: 12px; }
.post summary { display: grid; grid-template-columns: 68px minmax(0, 1fr) 20px; align-items: center; gap: 14px; min-height: 44px; padding: 9px 0; cursor: pointer; list-style: none; }
.post summary::-webkit-details-marker { display: none; }
.post summary::after { content: ""; width: 20px; height: 20px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.post[open] summary::after { rotate: 180deg; }
.post summary:hover b { color: var(--accent-h); }
.post summary:focus-visible { outline-offset: -2px; }
.post time { display: grid; justify-items: center; padding: 6px 4px; background: var(--callout); border-radius: var(--r-s); line-height: 1.25; white-space: nowrap; }
.post time .d { font-size: .98rem; font-weight: 700; color: var(--accent-h); }
.post time .t { font-size: .8rem; color: var(--ink-2); }
.post b { font-weight: 600; font-size: .95rem; }
.post p { white-space: pre-line; overflow-wrap: anywhere; margin: 4px 0 8px; font-size: .95rem; }
.post .link { display: inline-block; margin-bottom: 12px; font-size: .9rem; }
.posts-foot { margin: 12px 0 0; }
[data-uncap] { margin-top: 10px; }
@media (pointer: coarse) { [data-uncap] { padding-block: 8px; } } /* a tablet wider than the phone breakpoint */
.duo-map > .foot-note { grid-column: 1 / -1; border-top: 0; padding: 0 2px; margin: 12px 0 18px; } /* a long note under both panels: in the services column it stretched the map */
.events ~ .link { display: flex; width: fit-content; margin-top: 10px; }
.faq-group { font-size: .82rem; font-weight: 600; color: var(--accent-h); background: var(--sel); border-radius: 999px; padding: 3px 11px; width: fit-content; margin: 12px 0 2px; }
.faq:has(> .faq-group) details { padding: 2px 0; }
@media (min-width: 1280px) {
  .duo { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .duo-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* no servers board: the chart fills the panel beside the events */
  .duo-even section:has(> .chart) { display: flex; flex-direction: column; }
  .duo-even .chart { flex: 1; height: auto; min-height: 200px; }
  .duo-even .chart svg { position: absolute; inset: 0; }
  /* a whole row for the mail settings: the text on the left, the table on the right */
  #mail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  #mail h2 { grid-column: 1 / -1; }
  #mail .kv { grid-column: 2; grid-row: 2 / span 2; }
  /* a whole row for the questions: two per line under each topic */
  .main > main > .faq:has(> .faq-group) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; }
  .main > main > .faq:has(> .faq-group) > :is(h2, .faq-group) { grid-column: 1 / -1; }
  /* the recovery block makes the servers panel tall: more events fill the column beside it */
  #servers:has(#recovery:not([hidden])) + .rt-ev .capped > :nth-child(n+6):nth-child(-n+14) { display: grid; }
  #servers:has(#recovery:not([hidden])) + .rt-ev [data-uncap="eventList"] { display: none; } /* all of them are shown already */
  /* before a check: the map stays compact beside the services; a checked site takes the whole row with its inspector */
  .duo-map:has(.site.checked) { grid-template-columns: minmax(0, 1fr); }
  .duo-map .site:not(.checked) { display: flex; flex-direction: column; }
  .duo-map .site:not(.checked) .site-body { flex: 1; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .duo-map .site:not(.checked) .site-body[data-view="list"] { grid-template-rows: none; align-content: start; }
  .duo-map .site:not(.checked) .site-body[data-view="map"] .map { display: flex; flex-direction: column; justify-content: center; min-height: 240px; padding: 14px 12px; }
  .duo-map .site:not(.checked) .map-cols { display: none; }
  .duo-map .site:not(.checked) .map-grid { grid-template-columns: .85fr 1fr 1.25fr 1fr; gap: 28px 14px; }
  .duo-map .site:not(.checked) .node { padding: 8px 9px; }
  .duo-map .site:not(.checked) .node i { grid-column: 1 / -1; white-space: nowrap; }
  /* services in the narrow column: name and status on one line, the history under them at full width */
  .duo-map:not(:has(.site.checked)) .seg { flex: none; }
  .duo-map:not(:has(.site.checked)) .seg button { padding: 4px 10px; }
  .duo-map:not(:has(.site.checked)) #services .legend { gap: 4px 12px; font-size: .8rem; }
  .duo-map:not(:has(.site.checked)) .matrix { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .duo-map:not(:has(.site.checked)) .mx-pad { display: none; }
  .duo-map:not(:has(.site.checked)) .mx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name state" "bars bars"; gap: 3px 12px; align-items: baseline; }
  .duo-map:not(:has(.site.checked)) .mx-label { grid-area: name; font-size: .92rem; }
  .duo-map:not(:has(.site.checked)) .mx-st { grid-area: state; text-align: right; font-size: .88rem; }
  .duo-map:not(:has(.site.checked)) .mx-st small { display: inline; margin-left: 6px; }
  .duo-map:not(:has(.site.checked)) .mx-bars { grid-area: bars; height: 14px; gap: 0; border-radius: 3px; overflow: hidden; }
  .duo-map:not(:has(.site.checked)) .mx-bars i { border-radius: 0; min-width: 0; }
  /* a tagged event in a half-width column: the tag beside the time, the text on a full line under them */
  #events .events li:has(em) { grid-template-columns: 14px auto minmax(0, 1fr); gap: 2px 8px; }
  #events .events li:has(em)::before { grid-column: 1; }
  #events .events li:has(em) time { grid-column: 2; }
  #events .events li:has(em) em { grid-column: 3; justify-self: start; padding: 1px 7px; }
  #events .events li:has(em) span { grid-column: 2 / -1; grid-row: 2; }
  .board { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
  .board .grid { grid-template-columns: repeat(auto-fill, minmax(var(--cell, 11px), 1fr)); gap: max(2px, calc(var(--cell, 11px) / 6)); }
  .board .grid span { border-radius: max(2px, calc(var(--cell, 11px) / 6)); }
  .board .legend { flex-direction: column; margin: 0; white-space: nowrap; }
}
@media (max-width: 720px) {
  .updates { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "when" "body" "act"; padding: 14px 14px 14px 16px; gap: 8px; }
  .upd-when { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .upd-when .upd-tag { display: none; } /* the date right under the heading already says it */
  .head:has(~ .updates) .hint:not(.err) { display: none; } /* the latest official post goes higher on the first screen */
  .upd-act { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .post summary { grid-template-columns: minmax(0, 1fr) 20px; gap: 2px 10px; }
  .post time { grid-column: 1; grid-row: 1; display: inline-flex; align-items: baseline; gap: 8px; width: fit-content; padding: 3px 10px; margin-bottom: 4px; }
  .post b { grid-column: 1; grid-row: 2; }
  .post summary::after { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 1440px) {
  .duo-map:not(:has(.site.checked)) #services .panel-head { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
}

/* guide pages: an illustration beside the title */
.head:has(> .art) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 36%); column-gap: 24px; align-items: center; }
.head:has(> .art) > :not(.art) { grid-column: 1; }
.art { grid-column: 2; grid-row: 1 / span 6; display: block; width: 100%; height: auto; }
@media (max-width: 720px) {
  .head:has(> .art) { grid-template-columns: minmax(0, 1fr); }
  .art { grid-column: 1; grid-row: auto; width: min(72%, 260px); margin: 8px auto 0; }
}

.panel .btn { white-space: normal; } /* a long label wraps instead of pushing the page on narrow phones */
.main .hstrip a:has(.pst) { flex: 1 1 auto; } /* the status chips fill the strip */
.main .hstrip .pst { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .checking .node { box-shadow: 0 0 0 3px rgba(113, 88, 190, .45); } } /* no animation, but a running check still shows */
/* live data motion: only while something really happens, nothing moves under reduced motion */
.map-lines .pulse { display: none; }
.chart .live { fill: var(--chart); opacity: 0; }
.rec-stale .live { display: none; }
@media (prefers-reduced-motion: no-preference) {
  /* a running check: a pulse along the arrows, nodes light up left to right. Phones have no lines (.map-lines is hidden up to 1100px), only opacity on a pseudo-element */
  .checking .pulse { display: inline; stroke-width: 3; stroke-dasharray: .16 1; animation: map-pulse 1.6s linear calc(var(--i) * .4s) infinite backwards; }
  .checking .node { position: relative; }
  .checking .node::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 3px rgba(113, 88, 190, .45); opacity: 0; pointer-events: none; animation: node-pulse 1.6s ease-in-out infinite; }
  .checking [data-node="dns"]::after { animation-delay: .4s; }
  .checking :is([data-node="web"], [data-node="mx"])::after { animation-delay: .8s; }
  .checking :is([data-node="site"], [data-node="mail"])::after { animation-delay: 1.2s; }
  @keyframes map-pulse { from { stroke-dashoffset: .16; } 25%, to { stroke-dashoffset: -1; } }
  @keyframes node-pulse { 15% { opacity: 1; } 40%, to { opacity: 0; } }
  /* a server whose status changed between two polls */
  .grid span.flash { position: relative; z-index: 1; animation: srv-flash 1s ease-out; }
  @keyframes srv-flash { from, 40% { box-shadow: 0 0 0 1px #fff, 0 0 0 4px var(--ink); } to { box-shadow: 0 0 0 1px transparent, 0 0 0 4px transparent; } }
  /* recovery chart: drawn once on first view, then a calm dot on the latest measurement */
  @media screen { .rec-wait :is(.ln, .ar, .pt) { visibility: hidden; } } /* a page printed before the scroll keeps its line */
  .rec-draw .ln { stroke-dasharray: 1; animation: rec-draw 1.2s ease-out backwards; }
  .rec-draw :is(.ar, .pt) { animation: rec-fade .4s .8s backwards; }
  .rec-on:not(.rec-wait, .rec-draw) .live { transform-box: fill-box; transform-origin: center; animation: live-dot 2.4s ease-out infinite; }
  @keyframes rec-draw { from { stroke-dashoffset: 1; } }
  @keyframes rec-fade { from { opacity: 0; } }
  @keyframes live-dot { from { opacity: .45; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
  /* the latest official post is under 24 hours old */
  .updates.fresh .upd-top .ic { animation: soft-pulse 2.4s ease-in-out infinite; }
  @keyframes soft-pulse { 50% { opacity: .35; } }
  /* «Читать полностью», a post in the history, the server history */
  .upd-full:not([hidden]), .post[open] > :not(summary), .history:not([hidden]) { animation: reveal .22s ease-out; }
  @keyframes reveal { from { opacity: 0; translate: 0 -4px; } }
}

/* /karta-sayta/: every page with a line about it */
.sitemap-group ul { list-style: none; margin: 10px 0 0; padding: 0; }
.sitemap-group li { border-top: 1px solid var(--line); }
.sitemap-group a { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 2px 16px; align-items: baseline; padding: 11px 0; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.sitemap-group a b { color: var(--accent-h); font-weight: 600; font-size: 1rem; }
.sitemap-group a:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .sitemap-group a { grid-template-columns: minmax(0, 1fr); } }
