/* Панель — газетная вёрстка «Modernist», как лендинг (владелец 23.09:
   вход в старом стиле после газетного лендинга читался как другой продукт).
   Токены — те же, что в landing.css; классы — прежние, шаблоны не менялись. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/archivo-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: #f3f2f2; --surface: #eae9e9; --ink: #201e1d; --masthead: #141619;
  --accent: #ec3013; --accent-600: #dd2b0f; --accent-700: #ae1800;
  --divider: color-mix(in srgb, #201e1d 40%, transparent);
  --muted: color-mix(in srgb, #201e1d 62%, transparent);
  --ok: #1f7a3a; --warn: #a55f00; --bad: #ae1800;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* прежние имена — для встроенных стилей шаблонов */
  --line: var(--divider); --card: var(--surface); --radius: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); text-wrap: pretty; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-700); }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── каркас ───────────────────────────────────────────────────────────── */
.np-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.topline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 12px 0;
  font-size: 13px; letter-spacing: .04em; }
.topline .date { flex: 1; min-width: 180px; color: var(--muted); }
.topline a { text-decoration: none; }
.topline .who { color: var(--muted); }
.masthead { background: var(--masthead); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 28px; padding: 20px clamp(18px, 3vw, 36px); }
.masthead .brand { display: block; line-height: 0; color: #f3f2f2; }
.masthead .brand svg { height: 26px; width: auto; display: block; }
.masthead .tagline { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #d9d8d8; }
.rule { border: 0; border-top: 2px solid var(--ink); margin: 0; }
main { max-width: 900px; margin: 0 auto; padding: 36px 0 72px; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 20px 0 32px;
  border-top: 2px solid var(--ink); font-size: 13px; color: var(--muted); }
.foot span.co { flex: 1; }
.foot a { color: var(--muted); }
.foot .ver { font-feature-settings: "tnum" 1; }
.sep { color: var(--muted); margin: 0 6px; }

/* ── типографика ──────────────────────────────────────────────────────── */
h1 { font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 10px; }
h2 { font-weight: 800; font-size: 24px; letter-spacing: -.015em; margin: 0 0 12px; }
h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-700); }
.hint, .muted { color: var(--muted); font-weight: 400; font-size: 13px; }
.muted { font-size: 14px; }
.error { border-left: 3px solid var(--accent); padding: 8px 12px; background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 14px; margin: 0 0 16px; color: var(--ink); }
.bad { color: var(--bad); font-size: 13px; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; background: var(--surface);
  padding: 1px 5px; }

/* ── блоки ────────────────────────────────────────────────────────────── */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }
.head h1 { margin: 0; }
.head p { margin: 6px 0 0; }
.card { padding: 22px 0; margin: 0; border-bottom: 1px solid var(--divider); }
.card > :last-child { margin-bottom: 0; }
.card.narrow { max-width: 460px; margin: 16px auto; padding: 22px clamp(18px, 4vw, 32px) 26px;
  background: var(--bg); border: 0; border-top: 6px solid var(--ink);
  box-shadow: 0 12px 32px color-mix(in srgb, #2d2b2b 16%, transparent); }
.card.narrow h1 { font-size: clamp(28px, 4vw, 36px); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--ink); }
.card.row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.card.row h3 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; text-transform: none; margin: 0 0 4px; }
.card.row p { margin: 0; }
.list { list-style: none; padding: 0; margin: 0; }
.list.plain li { padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.list.plain li:last-child { border-bottom: 0; }
.list.small { font-size: 14px; }
.links { margin: 0; padding-left: 0; list-style: none; }
.links li { padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.links li:last-child { border-bottom: 0; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 20px; }
.state { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions form { margin: 0; }
.money { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0 0 12px; }
.money > div { padding: 4px 18px; border-left: 1px solid var(--divider); }
.money .lbl { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.money b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.money .muted { display: block; font-size: 13px; }
.notice { max-width: 900px; margin: 16px auto 0; padding: 10px 14px; border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent); font-size: 14px; }
.notice form.inline { display: inline; margin: 0; }
details.danger { border-bottom: 0; }
details.danger summary { cursor: pointer; color: var(--bad); font-weight: 700; }
.doc h2 { font-size: 20px; margin: 30px 0 8px; }
.doc .draft { border-left: 3px solid var(--warn); padding: 8px 12px; color: var(--muted); font-size: 14px; }

/* ── формы ────────────────────────────────────────────────────────────── */
label { display: block; margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
input, textarea, select { display: block; width: 100%; margin-top: 6px; padding: 9px 10px; min-height: 40px;
  font: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--divider); border-radius: 0; caret-color: var(--accent); }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--accent); outline-offset: 0; }
textarea { resize: vertical; }
label .hint { display: block; margin-top: 4px; text-transform: none; letter-spacing: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px;
  text-transform: none; letter-spacing: 0; }
.check input { width: auto; min-height: 0; margin: 3px 0 0; accent-color: var(--ink); }
form.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
form.inline input, form.inline select { width: auto; margin: 0; }
li form.inline { display: inline-flex; margin-left: 6px; }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; font: inherit; }

/* ── кнопки ───────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 1px solid var(--ink);
  border-radius: 0; background: var(--ink); color: var(--bg); font: inherit; font-size: 14px; font-weight: 800;
  line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-600); border-color: var(--accent-600); color: var(--bg); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--divider); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); border-color: var(--divider); }
.btn.danger { background: var(--accent-700); border-color: var(--accent-700); }
.card.narrow .btn { margin-top: 4px; }

/* ── состояние ────────────────────────────────────────────────────────── */
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.running { background: var(--ok); }
.dot.starting { background: var(--warn); }
.dot.failed { background: var(--bad); }

/* ── консоль платформы (1.10.0) ───────────────────────────────────────── */
body.wide .np-wrap { max-width: 1600px; }
body.wide main { max-width: none; }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.notice-ok { border-left: 3px solid var(--ok); padding: 8px 12px; font-size: 14px; margin: 0 0 16px;
  background: color-mix(in srgb, var(--ok) 8%, transparent); }
.ops-host { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 8px 0 18px; }
.ops-host > div { padding: 6px 16px; border-left: 1px solid var(--divider); font-size: 14px; }
.ops-host > div:first-child { border-left: 0; padding-left: 0; }
.ops-host h3 { margin: 0 0 4px; color: var(--muted); }
.ops-host b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ops-host form { margin-top: 8px; }
.ops-task { border-left: 3px solid var(--accent); padding: 10px 14px; margin: 0 0 18px;
  background: color-mix(in srgb, var(--accent) 5%, transparent); font-size: 14px; }
.ops-task ul { margin: 6px 0 0; padding-left: 18px; }
.ops-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
/* Инциденты коробок (Edidesk-508q.8): рамка по тону, «Взял» и заметка строкой. */
.ops-incidents { margin: 0 0 18px; }
.ops-incidents h3 { margin: 0 0 8px; }
.ops-incident { border-left: 3px solid var(--warn); padding: 10px 14px; margin: 0 0 10px; font-size: 14px;
  background: color-mix(in srgb, var(--warn) 6%, transparent); }
.ops-incident.bad { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad) 6%, transparent); }
.ops-incident p { margin: 0 0 6px; }
.ops-incident form { margin: 8px 0 0; }
.ops-incident input { width: auto; flex: 1 1 220px; margin: 0; min-height: 34px; padding: 5px 8px; font-size: 14px; }
.ops-bulk select { width: auto; margin: 0; min-height: 34px; padding: 5px 8px; font-size: 14px; }
/* Прокрутка вбок — только там, где таблица не влезает: overflow обрезает и
   всё, что выпадает вниз, — меню «Действия» у короткой таблицы (27.09). */
.ops-scroll { border-top: 2px solid var(--ink); }
@media (max-width: 899px) {
  .ops-scroll { overflow-x: auto; }
  .ops-scroll details.menu .menu-body { position: static; min-width: 190px; margin-top: 6px; }
}
.ops-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ops-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--divider); }
.ops-table td { vertical-align: top; padding: 10px; }
.ops-table .problems, .ops-table .more-grid { overflow-wrap: anywhere; }
.ops-table tbody { border-bottom: 1px solid var(--divider); }
.ops-table tbody.has-problems td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.ops-table tr.more td { padding-top: 0; }
.ops-table input[type=checkbox] { width: auto; min-height: 0; margin: 3px 0 0; accent-color: var(--ink); }
.ops-table .problems { margin: 0; padding-left: 16px; color: var(--bad); }
.ops-table details > summary { cursor: pointer; font-size: 13px; color: var(--muted); }
details.menu { position: relative; }
details.menu > summary { list-style: none; border: 1px solid var(--divider); padding: 4px 10px; white-space: nowrap; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .menu-body { position: absolute; right: 0; z-index: 5; min-width: 200px; display: grid; gap: 6px;
  padding: 10px 14px; background: var(--bg); border: 1px solid var(--ink); font-size: 14px; }
details.menu .menu-body form { margin: 0; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px; padding: 8px 0; }
.ops-facts { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 0; font-size: 13px; }
.ops-facts dt { color: var(--muted); }
.ops-facts dd { margin: 0; }
svg.spark { display: inline-block; vertical-align: middle; overflow: visible; }
.ops-grant { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ops-grant input { width: auto; flex: 1 1 260px; margin: 0; }
li form.inline input { min-height: 34px; padding: 5px 8px; font-size: 14px; min-width: 260px; }

@media (max-width: 640px) {
  main { padding: 24px 0 56px; }
  .ops-host > div { border-left: 0; padding-left: 0; }
  .money > div { border-left: 0; padding: 6px 0; border-bottom: 1px solid var(--divider); }
}

/* Вкладки консоли платформы (02.10) */
.ops-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 24px;
            overflow-x: auto; scrollbar-width: none; }
.ops-tabs a { padding: 10px 14px 8px; text-decoration: none; white-space: nowrap; color: var(--muted);
              border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ops-tabs a:hover { color: var(--ink); }
.ops-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

/* Тестовая коробка: галка раскрывает ключи (02.10) */
.tb-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 4px 0 2px; }
.tb-toggle input { width: 18px; height: 18px; margin: 0; }
#tb-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Восстановить — раскрытие строкой (02.10) */
.inline-details { display: inline-block; margin-left: 8px; }
.inline-details > summary { list-style: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] { display: block; margin: 8px 0 12px; padding: 12px; border-left: 3px solid var(--bad); }
