/* Страница-оболочка REST (ТЗ §4.2): экран «Откройте раздел «Контроль» в GoFlow». Цвета как у кабинета GoFlow (--accent). */
:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #17212b;
  --muted: #5b6876;
  --line: #dde3ea;
  --accent: #1f5f96;
  --accent-strong: #174d7a;
  --accent-soft: #e8f1f8;
  --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1720;
    --card: #17212b;
    --ink: #e8eef4;
    --muted: #9aa8b6;
    --line: #2a3745;
    --accent: #5aa9e6;
    --accent-strong: #7bbcf0;
    --accent-soft: #16344d;
    --on-accent: #0b1520;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}
.mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
h1 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 650;
}
p { margin: 0 0 20px; color: var(--muted); }
.code { margin: 0 0 4px; font-size: 40px; font-weight: 700; color: var(--accent); }
.btn {
  display: inline-block;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: var(--accent-strong); }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.note { text-align: center; color: var(--muted); }
@media (min-width: 900px) {
  .card { padding: 40px 36px; }
  h1 { font-size: 24px; }
}
