/* Черновая оболочка кабинета. Это НЕ дизайн-проход: типографика и сетка
   поставлены так, чтобы экраны читались, пока визуальный слой не сделан
   по конвейеру владельца (референс → механика → дизайн-скилл → проверка). */
:root {
  --ink: #16181d;
  --ink-soft: #5c6270;
  --line: #e3e5ea;
  --bg: #fbfbfc;
  --panel: #fff;
  --accent: #1f5bd7;
  --warn: #9a3412;
  --ok: #14632f;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9eaee; --ink-soft: #9aa1ae; --line: #2a2e37;
    --bg: #121317; --panel: #1a1c22; --accent: #7ba4ff;
    --warn: #f0a882; --ok: #7fd39b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
main { max-width: 62rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.narrow { max-width: 26rem; margin: 3rem auto; }
h1 { font-size: 1.6rem; letter-spacing: -0.015em; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 2rem 0 .75rem; }
.muted { color: var(--ink-soft); }

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--panel);
}
.mark { font-weight: 650; text-decoration: none; color: var(--ink); }
.mark span { color: var(--ink-soft); font-weight: 400; }
.bar nav { display: flex; gap: 1.1rem; }
.bar nav a { text-decoration: none; }
.bar nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }

.notes { list-style: none; max-width: 62rem; margin: 1rem auto 0; padding: 0 1.25rem; }
.note { border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius);
        background: var(--panel); padding: .7rem .9rem; margin-bottom: .5rem; }
.note.error { border-left-color: var(--warn); }
.note.success { border-left-color: var(--ok); }

.card { border: 1px solid var(--line); border-radius: var(--radius);
        background: var(--panel); padding: 1rem 1.1rem; }
.rows { display: grid; gap: .75rem; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
       border: 1px solid var(--line); border-radius: var(--radius);
       background: var(--panel); padding: .85rem 1rem; }
.row a { text-decoration: none; font-weight: 600; }
.state { font-size: .82rem; color: var(--ink-soft); }
.state.active::before { content: "● "; color: var(--ok); }
.state.suspended::before, .state.failed::before { content: "● "; color: var(--warn); }
.state.pending-dns::before { content: "● "; color: #b58900; }

.stack { display: grid; gap: .85rem; }
label { display: grid; gap: .3rem; font-size: .9rem; color: var(--ink-soft); }
input, select {
  font: inherit; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; padding: .55rem .65rem; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; padding: .6rem 1.1rem;
}
button.quiet { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.inline { display: flex; gap: .6rem; align-items: end; }
.inline label { flex: 1; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0; }
dl.facts dt { color: var(--ink-soft); font-size: .9rem; }
dl.facts dd { margin: 0; }
code { background: rgba(127,127,127,.12); padding: .1em .35em; border-radius: 4px; }

footer { max-width: 62rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem;
         display: flex; gap: 1rem; justify-content: space-between;
         border-top: 1px solid var(--line); font-size: .9rem; }
@media (max-width: 40rem) {
  .row { flex-direction: column; align-items: flex-start; gap: .3rem; }
  footer { flex-direction: column; gap: .4rem; }
}
