/* Визуальный канон приложения ООО «Инициатива» — базовые токены и smoke-экран.
 *
 * Источник: `00_Управление/2026-09-04_ВИЗУАЛЬНЫЙ_КАНОН_ПРИЛОЖЕНИЯ_ИНИЦИАТИВА.md`.
 *
 * Файл существует ради того, чтобы следующие экраны наследовали один канон, а не
 * повторяли значения. Цвета и размеры объявлены переменными; инлайновых стилей в
 * шаблоне нет. Внешних ресурсов нет: ни шрифтов, ни CDN, ни скриптов — шрифт
 * системный, логотип отдаётся собственным маршрутом из этого репозитория.
 */

:root {
  /* --- Палитра канона (значения заданы каноном, не подбирались) --- */
  --atz-bg: #06152F;          /* основной фон */
  --atz-surface: #0A2147;     /* поверхности, карточки */
  --atz-active: #123F7A;      /* активные элементы, границы */
  --atz-accent: #2C6FE8;      /* акцент; для текста не используется */
  --atz-light: #F5F7FB;       /* светлый фон (подложка логотипа) */
  --atz-text: #FFFFFF;        /* основной текст на тёмном */
  --atz-text-muted: #AFC1DD;  /* вторичный текст */

  /* Компоненты тех же цветов для rgba(): в rgba() нельзя подставить var() с
     hex, и раньше здесь появлялись десятичные литералы мимо палитры — включая
     #020814, которого в каноне нет вовсе. Токен и его rgb-двойник меняются
     вместе, поэтому наследование канона не рвётся. */
  --atz-bg-rgb: 6, 21, 47;
  --atz-active-rgb: 18, 63, 122;
  --atz-accent-rgb: 44, 111, 232;
  --atz-text-muted-rgb: 175, 193, 221;

  /* --- Ритм и геометрия --- */
  --atz-radius: 14px;
  --atz-radius-sm: 9px;
  --atz-gap: 20px;
  --atz-page-max: 1100px;
  --atz-touch: 44px;          /* минимальная зона касания */
  --atz-plate-pad-x: 20px;    /* охранное поле знака по горизонтали */
  --atz-plate-pad-y: 12px;    /* охранное поле знака по вертикали */

  --atz-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --atz-font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas,
    "Liberation Mono", monospace;

  /* Тени намеренно деликатные: канон запрещает тяжёлые тени. */
  --atz-shadow: 0 1px 2px rgba(var(--atz-bg-rgb), 0.45),
    0 12px 32px rgba(var(--atz-bg-rgb), 0.35);
  --atz-hairline: 1px solid rgba(var(--atz-text-muted-rgb), 0.16);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--atz-font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--atz-text);
  background-color: var(--atz-bg);
  /* Единственный градиент на странице и он деликатный: канон запрещает
     кричащие градиенты, неон и декоративную перегрузку. */
  background-image: linear-gradient(
    180deg,
    var(--atz-surface) 0%,
    var(--atz-bg) 46%
  );
}

.atz-page {
  max-width: var(--atz-page-max);
  margin: 0 auto;
  padding: 28px 20px 56px;
}

/* --- Шапка ---------------------------------------------------------------
 * Логотип — единый знак: символ и слово ИНИЦИАТИВА не разрываются, не
 * переставляются и не перекрашиваются. Исходный PNG тёмно-синий, поэтому он
 * лежит на светлой подложке канона (--atz-light), а не осветляется фильтром:
 * так сохраняются и исходные цвета, и прозрачность.
 */

.atz-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--atz-gap);
  padding-bottom: 26px;
  border-bottom: var(--atz-hairline);
}

/* Охранное поле знака. Геометрия намеренно отличается от карточек данных:
   иначе плита читается как «ещё одна карточка, только белая» и перетягивает
   внимание из заголовка. Отрицательный отступ слева выводит сам знак на ту же
   вертикаль, что акцентная черта, H1 и левый край карточек. */
.atz-logo-plate {
  display: inline-flex;
  align-items: center;
  margin-left: calc(-1 * var(--atz-plate-pad-x));
  padding: var(--atz-plate-pad-y) var(--atz-plate-pad-x);
  background: var(--atz-light);
  border-radius: var(--atz-radius-sm);
}

.atz-logo {
  display: block;
  /* Пропорции исходного файла 2172x724 сохраняются: задана только высота. */
  height: 38px;
  width: auto;
  max-width: 100%;
}

.atz-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--atz-active);
  border-radius: 999px;
  background: var(--atz-surface);
  color: var(--atz-text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Заголовок ----------------------------------------------------------- */

.atz-hero {
  padding: 44px 0 34px;
}

/* Мера строки задаётся заголовку и абзацу, а не всей секции: иначе короткий
   надзаголовок ломался по той же ширине и последнее слово уезжало на строку
   в одиночестве. */
.atz-hero h1,
.atz-hero > p:not(.atz-eyebrow) {
  max-width: 62ch;
}

.atz-hero,
.atz-card,
.atz-footer {
  overflow-wrap: break-word;
}

.atz-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.4rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.atz-hero p {
  margin: 0;
  color: var(--atz-text-muted);
  font-size: 1.0625rem;
}

.atz-rule {
  width: 56px;
  height: 3px;
  margin-bottom: 26px;
  border-radius: 2px;
  background: var(--atz-accent);
}

/* --- Карточки ------------------------------------------------------------ */

.atz-grid {
  display: grid;
  /* Без этого карточки растягиваются до общей высоты, и под более коротким
     содержимым остаётся мёртвая пустота — она читается как недоделанная
     вёрстка, а не как воздух. */
  align-items: start;
  /* min() не даёт колонке стать шире вьюпорта на очень узких экранах. */
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--atz-gap);
}

.atz-card {
  min-width: 0;
  background: var(--atz-surface);
  border: var(--atz-hairline);
  border-radius: var(--atz-radius);
  padding: 24px;
  box-shadow: var(--atz-shadow);
}

.atz-card h2 {
  margin: 0 0 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--atz-text-muted);
}

.atz-facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.atz-facts th,
.atz-facts td {
  padding: 11px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: var(--atz-hairline);
}

.atz-facts tr:last-child th,
.atz-facts tr:last-child td {
  border-bottom: 0;
}

.atz-facts th {
  font-weight: 400;
  color: var(--atz-text-muted);
  padding-right: 16px;
}

/* Строка заголовков столбцов раньше выглядела как обычная строка данных:
   зрячий пользователь не читал её как заголовок, хотя scope="col" стоял. */
.atz-facts thead th {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--atz-text-muted);
  padding-bottom: 8px;
}

.atz-note {
  margin: 0 0 4px;
  color: var(--atz-text-muted);
  font-size: 0.9375rem;
}

.atz-eyebrow {
  margin: 0 0 10px;
  color: var(--atz-text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atz-facts td {
  color: var(--atz-text);
  font-variant-numeric: tabular-nums;
}

.atz-code {
  font-family: var(--atz-font-mono);
  font-size: 0.875em;
  background: rgba(var(--atz-active-rgb), 0.55);
  border: 1px solid var(--atz-active);
  border-radius: var(--atz-radius-sm);
  padding: 2px 7px;
}

/* `display: flex` вместо `inline-flex`: у inline-flex текстовый узел становится
   flex-элементом с `min-width: auto` и не переносится, из-за чего на узком
   экране строка выталкивала страницу за пределы вьюпорта. */
.atz-status {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 4px;
  color: var(--atz-text);
  font-size: 0.9375rem;
  min-width: 0;
}

.atz-status::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--atz-accent);
  box-shadow: 0 0 0 4px rgba(var(--atz-accent-rgb), 0.2);
}

/* --- Подвал -------------------------------------------------------------- */

.atz-footer {
  margin-top: 34px;
  padding-top: 22px;
  border-top: var(--atz-hairline);
  color: var(--atz-text-muted);
  font-size: 0.875rem;
}

/* Ширину ограничивает текст, а не разделительная линия: иначе линия обрывалась
   посреди страницы и композиция читалась как незавершённая. */
.atz-footer p {
  max-width: 78ch;
  margin: 0 0 10px;
}

.atz-footer p:last-child {
  margin-bottom: 0;
}

/* --- Доступность --------------------------------------------------------- */

a {
  color: var(--atz-text);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--atz-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Интерактивные элементы не мельче удобного касания. Сейчас на экране их нет;
   правило объявлено здесь, чтобы следующие экраны наследовали его из канона. */
button,
[role="button"],
input[type="submit"] {
  min-height: var(--atz-touch);
  min-width: var(--atz-touch);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* --- Мобильный экран ----------------------------------------------------- */

@media (max-width: 640px) {
  .atz-page {
    padding: 20px 16px 40px;
  }

  .atz-header {
    gap: 14px;
    padding-bottom: 20px;
  }

  .atz-logo-plate {
    --atz-plate-pad-x: 14px;
    --atz-plate-pad-y: 10px;
  }

  .atz-logo {
    height: 30px;
  }

  .atz-chip {
    font-size: 0.75rem;
    padding: 0 12px;
  }

  .atz-hero {
    padding: 32px 0 26px;
  }

  .atz-card {
    padding: 20px;
  }
}

/* --- P2 master ---------------------------------------------------------- */
.atz-summary { display: flex; flex-wrap: wrap; gap: 10px; color: var(--atz-text-muted); }
.atz-summary span { padding: 8px 12px; border: var(--atz-hairline); border-radius: 999px; }
.atz-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.atz-tabs a { padding: 10px 13px; border: var(--atz-hairline); border-radius: 999px; text-decoration: none; color: var(--atz-text-muted); }
.atz-tabs a.active, .atz-tabs a:hover { color: var(--atz-text); border-color: var(--atz-accent); background: var(--atz-active); }
.atz-current { border-color: var(--atz-accent); margin-bottom: 24px; }
.atz-current h2 { margin: 0 0 12px; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); letter-spacing: 0; text-transform: none; color: var(--atz-text); }
.atz-primary { display: inline-flex; align-items: center; justify-content: center; min-height: var(--atz-touch); padding: 10px 18px; border: 0; border-radius: var(--atz-radius-sm); background: var(--atz-accent); color: var(--atz-text); font-weight: 650; text-decoration: none; cursor: pointer; }
.atz-system-note { color: var(--atz-text-muted); font-size: .92rem; }
.atz-section { margin: 28px 0; }
.atz-section > h2 { margin: 0 0 14px; font-size: 1.35rem; }
.atz-route { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.atz-stage { position: relative; min-height: 150px; padding: 20px; border: var(--atz-hairline); border-radius: var(--atz-radius); background: rgba(var(--atz-active-rgb), .35); }
.atz-stage.current { border-color: var(--atz-accent); background: var(--atz-active); }
.atz-stage.future { opacity: .56; }
.atz-stage h3 { margin: 6px 0 8px; font-size: 1rem; }
.atz-stage p { margin: 0 0 12px; color: var(--atz-text-muted); font-size: .9rem; }
.atz-stage small { color: var(--atz-text-muted); }
.atz-stage-dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--atz-text-muted); }
.atz-stage.current .atz-stage-dot { background: var(--atz-accent); box-shadow: 0 0 0 5px rgba(var(--atz-accent-rgb), .25); }
.atz-fact-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: var(--atz-hairline); }
.atz-fact-row:last-child { border-bottom: 0; }
.atz-fact-row span { color: var(--atz-text-muted); text-align: right; }
.atz-next { font-size: 1.1rem; }
.atz-blocker { margin: 8px 0; padding-left: 18px; border-left: 3px solid var(--ui-warning-legacy); }
.atz-technical { margin-top: 22px; color: var(--atz-text-muted); }
.atz-technical summary { cursor: pointer; color: var(--atz-text); }
.atz-form { display: grid; gap: 16px; max-width: 720px; }
.atz-form label { display: grid; gap: 7px; color: var(--atz-text-muted); }
.atz-form input, .atz-form select { min-height: 46px; padding: 10px 12px; border: 1px solid rgba(var(--atz-text-muted-rgb), .35); border-radius: var(--atz-radius-sm); background: var(--atz-bg); color: var(--atz-text); font: inherit; }
.atz-form input[type="radio"] { min-height: 18px; width: 18px; padding: 0; }
.atz-error { color: var(--ui-error); }
.atz-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.atz-form legend { margin-bottom: 8px; color: var(--atz-text); font-weight: 650; }
.atz-form .atz-option { display: flex; flex-direction: row-reverse; justify-content: space-between; grid-template-columns: none; align-items: center; gap: 10px; min-height: 46px; padding: 10px 12px; border: var(--atz-hairline); border-radius: var(--atz-radius-sm); color: var(--atz-text); cursor: pointer; }
.atz-option input { min-height: auto; }
.atz-wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; }

@media (max-width: 760px) {
  .atz-route { grid-template-columns: 1fr; }
  .atz-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .atz-tabs a { text-align: center; }
  .atz-fact-row { display: grid; gap: 4px; }
  .atz-fact-row span { text-align: left; }
}

/* P2 product hierarchy and document workflow */
.atz-tabs-secondary { opacity: .82; font-size: .88rem; border-top: var(--atz-hairline); padding-top: 14px; }
.atz-stage-arrow { position: absolute; right: -18px; top: 50%; color: var(--atz-active); font-size: 1.4rem; }
.atz-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; }
.atz-secondary-button { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 1px solid var(--atz-accent); border-radius: var(--atz-radius-sm); color: var(--atz-text); text-decoration: none; }
.atz-document-row { display: flex; justify-content: space-between; align-items: start; gap: 18px; padding: 15px 0; border-top: var(--atz-hairline); }
.atz-document-row a { white-space: nowrap; }
.atz-expert-card { margin: 16px 0; padding: 18px; border: var(--atz-hairline); border-radius: var(--atz-radius-sm); background: rgba(var(--atz-active-rgb), .2); }
.atz-expert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.atz-expert-grid div { display: grid; gap: 4px; }
.atz-expert-grid span { color: var(--atz-text-muted); font-size: .82rem; }
.atz-expert-grid strong { font-weight: 500; }
.atz-form input[type="radio"] { appearance: none; width: 18px !important; height: 18px !important; min-width: 18px !important; min-height: 18px !important; flex: 0 0 18px; padding: 0 !important; border: 2px solid var(--atz-text-muted); border-radius: 50%; background: transparent; }
.atz-form input[type="radio"]:checked { border-color: var(--atz-accent); box-shadow: inset 0 0 0 4px var(--atz-bg); background: var(--atz-accent); }

@media (max-width: 760px) {
  .atz-stage-arrow { display: none; }
  .atz-section-heading, .atz-document-row { display: grid; align-items: start; }
  .atz-expert-grid { grid-template-columns: 1fr; }
  .atz-tabs-secondary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 390px) {
  .atz-page { padding-left: 12px; padding-right: 12px; }
  .atz-current h2 { font-size: 1.22rem; }
  .atz-tabs-secondary { grid-template-columns: 1fr; }
  .atz-summary span { width: 100%; }
}

/* --- Previous accepted application shell --------------------------------
   The P3 product hierarchy is intentionally rendered inside the previously
   accepted Initiative portal shell. These rules are visual-only: route,
   evidence, legal traceability and audit data remain supplied by the same
   views and services. */
:root {
  --page-rgb: 247, 249, 252;
  --ink: #0A1D3B;
  --muted: #64748B;
  --line: #D9E1EC;
  --green: #168B3B;
  --page: #F7F9FC;
  --ui-panel: #FBFCFE;
  --ui-warning: #E99A0A;
  --ui-warning-bg: #FFF2DD;
  --ui-warning-text: #98530F;
  --ui-warning-legacy: #D99A45;
  --ui-error: #FFB4A8;
  --ui-subtle: #A3B0C2;
  --ui-stage-dot: #B7C2D2;
  --ui-form-state: #EEF2F7;
  --radius: 10px;
  --topbar: 88px;
  --sidebar: 238px;
  --shadow: 0 8px 24px rgba(var(--atz-bg-rgb), .06);
}

html { background: var(--page); color: var(--ink); }
body { min-width: 320px; overflow-x: hidden; overflow-y: auto; background: var(--page); color: var(--ink); }
.atz-app { min-height: 100vh; display: grid; grid-template: var(--topbar) 1fr / var(--sidebar) minmax(0, 1fr); }
.atz-topbar { position: sticky; top: 0; z-index: 10; grid-column: 1 / -1; display: grid; grid-template-columns: var(--sidebar) 1fr; align-items: center; min-height: var(--topbar); background: var(--atz-bg); color: var(--atz-text); border-bottom: 1px solid rgba(var(--atz-text-muted-rgb), .18); }
.atz-brand { height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 18px; border-right: 1px solid rgba(var(--atz-text-muted-rgb), .16); }
.atz-brand .atz-logo-plate { display: block; margin: 0; padding: 0; background: transparent; border-radius: 0; }
.atz-brand .atz-logo { height: 44px; width: auto; }
.atz-product-lockup { justify-self: end; padding: 0 24px 0 30px; text-align: right; }
.atz-product-lockup span { display: block; color: var(--atz-text-muted); font-size: .82rem; }
.atz-product-lockup strong { display: block; margin-top: 2px; font-size: 1.15rem; }
.atz-sidebar { position: sticky; top: var(--topbar); align-self: start; height: calc(100vh - var(--topbar)); min-height: 0; overflow-y: auto; background: var(--atz-bg); color: var(--atz-text); padding: 18px 12px; display: flex; flex-direction: column; }
.atz-nav { display: grid; gap: 8px; }
.atz-nav-item { min-height: 42px; display: flex; align-items: center; padding: 0 15px; border-radius: 6px; color: var(--atz-text); font-weight: 620; text-decoration: none; border: 1px solid transparent; }
.atz-nav-item:hover, .atz-nav-item:focus-visible { background: rgba(var(--atz-active-rgb), .72); outline: 2px solid var(--atz-accent); outline-offset: 2px; }
.atz-nav-item-active { background: var(--atz-active); border-color: rgba(var(--atz-accent-rgb), .65); }
.atz-sidebar-account { margin-top: 0; padding: 16px 14px 8px; border-top: 1px solid rgba(var(--atz-text-muted-rgb), .16); display: grid; gap: 10px; background: var(--atz-bg); }
.atz-sidebar-user { color: var(--atz-text-muted); font-size: .88rem; line-height: 1.35; }
.atz-logout { color: var(--atz-text); font-size: .88rem; }
.atz-quick-actions { margin: auto 4px 0; padding: 14px 0; border-top: 1px solid rgba(var(--atz-text-muted-rgb), .16); border-bottom: 1px solid rgba(var(--atz-text-muted-rgb), .16); display: grid; gap: 4px; }
.atz-quick-label { padding: 0 10px 5px; color: var(--atz-text-muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.atz-quick-action { display: block; padding: 8px 10px; color: var(--atz-text); font-size: .83rem; line-height: 1.25; text-decoration: none; border-radius: 6px; }
.atz-quick-action:hover, .atz-quick-action:focus-visible { background: rgba(var(--atz-active-rgb), .72); outline: 2px solid var(--atz-accent); outline-offset: 1px; }
.atz-main { grid-column: 2; min-width: 0; min-height: 0; padding: 24px 30px 56px; overflow: visible; }
.atz-breadcrumb { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; color: var(--muted); font-size: .93rem; }
.atz-breadcrumb a { color: var(--ink); }
.atz-project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 22px; }
.atz-project-head h1 { margin-bottom: 7px; color: var(--ink); }
.atz-project-subtitle { margin: 0; color: var(--muted); font-size: 1.05rem; }
.atz-project-subtitle span { padding: 0 8px; color: var(--ui-subtle); }
.atz-identity-provenance { margin: -2px 0 12px; color: var(--muted); font-size: .78rem; line-height: 1.35; overflow-wrap: anywhere; }
.atz-object-identity { display: grid; gap: 12px; margin: 12px 0 14px; max-width: 720px; }
.atz-object-identity > div { display: grid; gap: 3px; padding: 10px 12px; border-left: 3px solid var(--atz-accent); background: rgba(var(--atz-accent-rgb), .06); }
.atz-object-identity span { color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.atz-object-identity strong { color: var(--ink); font-size: 1.05rem; overflow-wrap: anywhere; }
.atz-object-identity small { color: var(--muted); font-size: .78rem; line-height: 1.35; overflow-wrap: anywhere; }
.atz-head-metrics { display: flex; gap: 40px; padding-top: 8px; }
.atz-head-metrics > div { min-width: 130px; }
.atz-head-metrics span, .atz-object-summary span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .8rem; }
.atz-head-metrics strong, .atz-object-summary strong { color: var(--ink); }
.atz-state-dot::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--ui-warning); }
.atz-summary.atz-object-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; color: var(--ink); }
.atz-summary.atz-object-summary > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--atz-text); }
.atz-summary.atz-object-summary span { padding: 0; border: 0; border-radius: 0; }
.atz-current, .atz-card, .atz-expert-card { background: var(--atz-text); border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }
.atz-current { border-width: 1px; border-color: rgba(var(--atz-accent-rgb), .62); }
.atz-current h2, .atz-card h2, .atz-expert-card h3, .atz-section > h2 { color: var(--ink); }
.atz-current p, .atz-card p, .atz-note, .atz-system-note, .atz-stage p, .atz-stage small { color: var(--muted); }
.atz-primary { background: var(--atz-accent); color: var(--atz-text); box-shadow: 0 3px 8px rgba(var(--atz-accent-rgb), .12); }
.atz-primary:hover, .atz-primary:focus-visible { background: var(--atz-active); color: var(--atz-text); }
.atz-tabs-secondary { border-top: 0; padding-top: 0; opacity: 1; }
.atz-tabs a { color: var(--muted); border-color: var(--line); background: var(--atz-text); }
.atz-tabs a.active, .atz-tabs a:hover { color: var(--atz-text); background: var(--atz-active); border-color: var(--atz-active); }
.atz-stage { background: var(--ui-panel); border-color: var(--line); box-shadow: none; }
.atz-stage.current { background: rgba(var(--atz-accent-rgb), .07); border-color: var(--atz-accent); }
.atz-stage.future { opacity: .68; }
.atz-stage h3 { color: var(--ink); }
.atz-stage-dot { background: var(--ui-stage-dot); }
.atz-stage.current .atz-stage-dot { background: var(--atz-accent); }
.atz-fact-row { border-color: var(--line); }
.atz-fact-row span { color: var(--muted); }
.atz-blocker { border-left-color: var(--ui-warning); color: var(--ink); }
.atz-secondary-button { color: var(--atz-active); background: var(--atz-text); }
.atz-document-row { border-color: var(--line); }
.atz-technical { color: var(--muted); }
.atz-technical summary { color: var(--atz-active); }
.atz-master-footer { border-top: 1px solid var(--line); padding-top: 18px; }
.atz-form-group { margin: 24px 0; }
.atz-form-group > h2 { margin-bottom: 5px; color: var(--ink); }
.atz-form-card { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin: 10px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--atz-text); box-shadow: var(--shadow); }
.atz-form-card h3 { margin: 4px 0 6px; color: var(--ink); }
.atz-form-card p { margin: 5px 0; color: var(--muted); }
.atz-form-kind { color: var(--atz-active); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.atz-form-action { flex: 0 0 auto; min-width: 150px; text-align: right; }
.atz-form-state { display: inline-block; padding: 8px 11px; border-radius: 6px; color: var(--muted); background: var(--ui-form-state); font-size: .86rem; }
.atz-form-future, .atz-form-locked { opacity: .64; }
.atz-form-missing { color: var(--ui-warning) !important; }
.atz-preview-head { border-color: rgba(var(--atz-accent-rgb), .62); }
.atz-preview-document { margin-top: 18px; }
.atz-preview-document h2 { margin-top: 24px; }
.atz-preview-actions { display: flex; gap: 12px; margin: 20px 0; }
@media print { .atz-topbar, .atz-sidebar, .atz-breadcrumb, .atz-preview-actions, .atz-note { display: none !important; } .atz-main { padding: 0; } .atz-card { box-shadow: none; border: 0; } }

@media (max-width: 760px) {
  .atz-app { display: block; }
  .atz-topbar { position: static; display: flex; min-height: 74px; justify-content: space-between; }
  .atz-brand { border-right: 0; }
  .atz-brand .atz-logo { height: 34px; }
  .atz-product-lockup { display: none; }
  .atz-sidebar { position: static; width: 100%; min-width: 0; box-sizing: border-box; height: auto; overflow: visible; padding: 10px 12px; }
  .atz-nav { display: grid; width: 100%; min-width: 0; grid-template-columns: 1fr; overflow: visible; gap: 6px; }
  .atz-nav-item { width: auto; min-width: 0; justify-content: center; padding-left: 6px; padding-right: 6px; text-align: center; white-space: normal; overflow-wrap: anywhere; }
  .atz-sidebar-account { display: none; }
  .atz-quick-actions { margin: 10px 4px 0; }
  .atz-form-card, .atz-preview-actions { display: grid; grid-template-columns: 1fr; }
  .atz-form-action { min-width: 0; text-align: left; }
  .atz-main { width: 100%; min-width: 0; box-sizing: border-box; padding: 18px 16px 40px; }
  .atz-project-head, .atz-project-head > div { display: block; width: 100%; max-width: calc(100vw - 32px); min-width: 0; }
  .atz-identity-provenance { display: block; width: 100%; max-width: calc(100vw - 32px); box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
  .atz-object-identity { max-width: none; }
  .atz-head-metrics { gap: 18px; margin-top: 14px; }
  .atz-summary.atz-object-summary { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .atz-nav { grid-template-columns: 1fr; }
  .atz-nav-item { justify-content: flex-start; }
}
