/* ЭНПИК — Проекты: общие стили.
   Токены и типографика — из фирменного бренд-бука ЭНПИК
   (~/Projects/npeg-brand/DESIGN.md). Один файл на весь фронтенд без
   сборщика — подключается и в login.html, и в app.html. */

@font-face {
  font-family: 'ALS Gorizont';
  src: url('/fonts/ALSGorizont2.2-BoldExpanded.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Background */
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;

  /* Primary (зелёный) */
  --color-primary-100: #E8F5EC;
  --color-primary-500: #1A8D3A;
  --color-primary-700: #146B2C;
  --color-primary-900: #0B3F18;

  /* Gray */
  --color-gray-50: #FAFAFA;
  --color-gray-100: #F2F2F2;
  --color-gray-300: #D1D1D1;
  --color-gray-500: #848587;
  --color-gray-700: #4F5052;
  --color-gray-900: #1A1B1C;

  /* Семантические токены поверх палитры выше */
  --color-text: var(--color-gray-900);
  --color-text-secondary: var(--color-gray-700);
  --color-border: var(--color-gray-300);
  /* gray-300 (1.53:1 на белом) годится для тихих разделителей (таблицы,
     карточки), но недостаточен для границ реальных элементов управления
     (WCAG 1.4.11 non-text contrast, порог 3:1) — для инпутов/селектов и
     кнопки-«secondary» используется более тёмный gray-500 (3.69:1). */
  --color-border-control: var(--color-gray-500);
  /* Брендбук предлагает primary-500 (#1A8D3A) для кнопок, но это даёт
     контраст 4.27:1 с белым текстом — ниже нормы WCAG AA (4.5:1) для
     обычного текста. Используем primary-700 (уже определён брендбуком как
     hover-состояние, 6.63:1) как рабочий текстовый/кнопочный/фокусный
     оттенок, а primary-500 — только для некрупного декоративного акцента
     (точка в лого), где действует более мягкий порог 3:1. */
  --color-accent: var(--color-primary-700);
  --color-accent-hover: var(--color-primary-900);
  --color-accent-decorative: var(--color-primary-500);
  --color-danger: #B3261E;

  --shadow-card: 0 1px 2px rgba(26, 27, 28, 0.04), 0 4px 16px rgba(26, 27, 28, 0.05);
  --radius: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'ALS Gorizont', 'Arial Black', sans-serif;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 { font-size: 32px; line-height: 1.15; }
h2 { font-size: 22px; line-height: 1.2; }

a { color: var(--color-accent); }

/* ---------- Формы: общие элементы ---------- */

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

input, select, button {
  font-family: inherit;
  font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  padding: 9px 12px;
  margin-top: 4px;
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}

/* Progress % inputs («Мои разделы», таблица разделов объекта). With the
   padding above and border-box sizing, 4em left room for ~2 digits once the
   browser spinner took its share, so 100 read as «10». 6em fits «100» plus
   the spinner. Element+class selector to outrank input[type="number"]. */
input.progress-input {
  width: 6em;
}

input:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

button {
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  padding: 9px 16px;
  font-weight: 600;
  background: var(--color-accent);
  color: #FFFFFF;
  transition: background-color 0.15s ease;
}

button:hover { background: var(--color-accent-hover); }

button.secondary {
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-control);
}

button.secondary:hover {
  background: var(--color-gray-100);
  color: var(--color-text);
}

button + button { margin-left: 8px; }

.message {
  margin: 10px 0 0;
  font-size: 13px;
}

.message.error { color: var(--color-danger); }
.message.success { color: var(--color-accent-hover); }

/* ---------- Экран входа ---------- */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-logo {
  margin: 0 0 24px;
}

.login-logo img {
  display: block;
  width: 160px;
  height: auto;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.login-card label {
  margin-top: 16px;
}

/* The employee picker's label sits outside its combo (unlike the password
   label, which wraps its input), so restore the input's usual 4px gap. */
.login-card .searchable-select { margin-top: 4px; }

.login-card button[type="submit"] {
  width: 100%;
  margin-top: 24px;
  padding: 11px;
}

/* ---------- Каркас приложения ---------- */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'ALS Gorizont', 'Arial Black', sans-serif;
  font-size: 17px;
  color: var(--color-text);
}

.current-user-name {
  color: var(--color-text-secondary);
  font-size: 14px;
  white-space: nowrap;
}

.brand .leaf {
  width: 9px;
  height: 9px;
  border-radius: 0 60% 0 60%;
  background: var(--color-accent-decorative);
  flex: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

nav button[data-tab] {
  background: transparent;
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
}

nav button[data-tab]:hover {
  background: var(--color-gray-100);
  color: var(--color-text);
}

nav button[data-tab].active {
  /* Solid accent fill (same pair as buttons: 6.63:1 white-on-primary-700)
     instead of the soft tint previously here -- the tint's background and
     text-color shifts both measured under 1.5:1 against the header and
     inactive state, well short of WCAG 1.4.11's 3:1 floor for a state a
     user must be able to see. aria-current (app.js) covers the
     programmatic side for assistive tech. */
  background: var(--color-accent);
  color: #FFFFFF;
}

#logout {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-control);
}

#logout:hover {
  background: var(--color-gray-100);
  color: var(--color-text);
}

main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.tab { display: none; }
.tab.active { display: block; }

/* ---------- Справочники: под-вкладки ---------- */

.subnav {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.subnav-btn {
  background: transparent;
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
}

.subnav-btn:hover {
  background: var(--color-gray-100);
  color: var(--color-text);
}

.subnav-btn.active {
  background: var(--color-accent);
  color: #FFFFFF;
}

.subtab { display: none; }
.subtab.active { display: block; }

/* ---------- CRM: минималистичный вид в духе Twenty CRM
   (twenty.com) -- владелец попросил перенести общий стиль/визуал
   (много воздуха, тонкие серые линии, без "пилюль" и теней), цвета
   остаются брендбуковскими. Scoped to #tab-crm so nothing else in the
   app is affected -- .subnav-btn/table below are shared classes used
   by every other tab. */

#tab-crm .subnav {
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
  padding-bottom: 0;
}

#tab-crm .subnav-btn {
  background: transparent;
  border-radius: 0;
  padding: 8px 4px;
  margin-right: 16px;
  border-bottom: 2px solid transparent;
  color: var(--color-text-secondary);
}

#tab-crm .subnav-btn:hover {
  background: transparent;
  color: var(--color-text);
}

#tab-crm .subnav-btn.active {
  background: transparent;
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

/* ---------- Формы внутри вкладок ---------- */

#employee-form, #password-form, #contractor-form, #project-form, #sectionType-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

#employee-form > div { flex: 1 1 160px; }
#password-form > div, #contractor-form > div, #project-form > div, #sectionType-form > div { flex: 1 1 200px; }
#employee-form button,
#password-form button,
#contractor-form button,
#project-form button,
#sectionType-form button { flex: 0 0 auto; }
#employee-form-message, #password-message, #contractor-form-message, #project-form-message, #sectionType-form-message { flex-basis: 100%; margin: 0; }

/* The `display: flex` above (an ID selector) outranks the UA stylesheet's
   `[hidden] { display: none }` (an attribute selector), so setting
   `.hidden = true` in JS alone does not actually hide these forms.
   Applied to every form that shares this bug. */
#project-form[hidden] { display: none; }
#employee-form[hidden] { display: none; }
#contractor-form[hidden] { display: none; }
#sectionType-form[hidden] { display: none; }

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

.link-button:hover { background: none; color: var(--color-accent-hover); }

/* ---------- Таблицы ---------- */

.table-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  max-width: 640px;
  margin-bottom: 12px;
}

.table-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-search input[type="text"],
.table-search select {
  width: 220px;
  margin-top: 0;
}

.portal-projects-toolbar { margin-bottom: 12px; }

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}
.filters-bar > div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; }
.filters-bar select,
.filters-bar input[type="text"] { margin-top: 0; }

.search-hint {
  margin: -8px 0 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.search-hint .link-button { margin-left: 6px; }
.filters-bar button { flex: 0 0 auto; }

.delivery-report {
  /* Sits between the filters bar and the objects table (owner, 2026-09-13). */
  margin-bottom: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
}
.delivery-report-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.delivery-report-controls > div { display: flex; flex-direction: column; gap: 4px; }
/* Same [hidden]-vs-flex cascade issue as the forms/modal above -- the
   unconditional `display: flex` on the rule above outranks the UA
   stylesheet's `[hidden] { display: none }`, so toggling .hidden in JS
   alone doesn't actually hide the other period pickers. */
.delivery-report-controls > div[hidden] { display: none; }
.delivery-report-controls select,
.delivery-report-controls input { margin-top: 0; width: auto; }
.delivery-report-controls button { flex: 0 0 auto; }
#delivery-report-result ul { margin: 8px 0 0; padding-left: 18px; }
#delivery-report-result p { margin: 8px 0 0; }

/* ---------- Дашборд / Личный кабинет ---------- */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.dashboard-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 20px;
}
.dashboard-card h3 { margin-top: 0; }
.dashboard-chart {
  position: relative;
  height: 220px;
  margin-bottom: 12px;
}

#dashboard-gip-projects ul,
#dashboard-my-sections ul,
#dashboard-crm-tasks ul,
#dashboard-company-attention ul { list-style: none; margin: 0; padding: 0; }
#dashboard-gip-projects li,
#dashboard-my-sections li,
#dashboard-crm-tasks li,
#dashboard-company-attention li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-mentions {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dashboard-mentions li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.attention-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.attention-dot.attention-green { background: var(--color-accent); }
.attention-dot.attention-yellow { background: #B45309; }
.attention-dot.attention-red { background: var(--color-danger); }
.attention-dot.attention-grey { background: #9CA3AF; }

/* ---------- Диаграмма Ганта (карточка объекта) ---------- */

.gantt-section { margin-top: 20px; }
.gantt-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gantt-header h3 { margin: 0; }
.gantt-range { font-size: 13px; color: var(--color-text-secondary); margin: 4px 0 12px; }
.gantt-chart { overflow-x: auto; }
/* Dashboard's compact personal timeline (renderDashboardTimeline) skips the
   trailing dates column the full per-object Gantt has -- two grid columns
   here, not three, so the track gets the space back instead of leaving an
   empty auto-sized gap. */
.gantt-chart-mini .gantt-row { grid-template-columns: 160px 1fr; }
.gantt-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 28px;
}
.gantt-dates {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.gantt-label {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gantt-track {
  position: relative;
  min-width: 320px;
  height: 16px;
  background: var(--color-gray-100);
  border-radius: 4px;
}
.gantt-bar {
  position: absolute;
  top: 2px;
  height: 12px;
  border-radius: 3px;
}
.gantt-bar-green { background: var(--color-accent); }
.gantt-bar-yellow { background: #B45309; }
.gantt-bar-red { background: var(--color-danger); }
.gantt-bar-grey { background: #9CA3AF; }
.gantt-today-marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--color-gray-900);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

th, td {
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-gray-50);
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--color-gray-50); }

td:last-child { white-space: nowrap; }
td button { margin-right: 0; }

/* CRM tables (сделки, стадии) -- плоский вид без тени и скруглённой
   "карточки", в духе Twenty: тонкая рамка, обычный регистр заголовка. */
#tab-crm table {
  box-shadow: none;
  border-radius: 6px;
}
#tab-crm th {
  background: transparent;
  text-transform: none;
  letter-spacing: normal;
  font-size: 13px;
  font-weight: 500;
}
#tab-crm th, #tab-crm td { padding: 12px 14px; }

/* ---------- Модальное окно (детальная карточка / drill-down) ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 27, 28, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

/* Same class-selector-vs-UA-[hidden] conflict as #project-form above --
   the unconditional `display: flex` on .modal-overlay (an author rule)
   outranks the UA stylesheet's `[hidden] { display: none }`, so the
   overlay shows on page load / after closeModal() sets .hidden = true
   without this override. */
.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  /* Owner's ask: scrolling to the bottom of a (fullscreen especially,
     since it's tall enough to matter) modal was chaining into the page
     behind it once the modal's own scroll hit its end -- this is the
     standard fix for scroll chaining, no JS body-lock needed. */
  overscroll-behavior: contain;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-header h3 { margin: 0; }

.modal-header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.cabinet-actions { display: flex; gap: 8px; margin-bottom: 8px; }

.icon-button {
  padding: 4px 8px;
  line-height: 1;
  font-size: 15px;
}

.modal.modal--fullscreen {
  max-width: none;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
}

.modal-overlay--fullscreen { padding: 0; }

.modal dl { margin: 0; }
.modal dt { font-size: 12px; color: var(--color-text-secondary); margin-top: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.modal dt:first-child { margin-top: 0; }
.modal dd { margin: 2px 0 0; font-size: 14px; }
.modal ul { margin: 4px 0 0; padding-left: 18px; }

.modal { max-width: 640px; }

.section-assignments { margin-top: 4px; font-size: 13px; }
.section-assignments select { max-width: 160px; }
.section-assignments .searchable-select { max-width: 180px; }

.searchable-select { position: relative; }
.searchable-select input { margin-top: 0; }

.searchable-select-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.searchable-select-options li {
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.searchable-select-options li.highlighted { background: var(--color-primary-100); }

.mentions-widget { position: relative; }
.mentions-widget .badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--color-danger);
  color: #fff;
  font-size: 11px;
  text-align: center;
}
/* The unqualified `display` above beats the UA `[hidden]{display:none}` rule
   (author CSS always wins over UA CSS, regardless of specificity), so without
   this the badge stays visible even when the element's `hidden` attribute is
   set and there are zero mentions -- confirmed via live browser testing. */
.mentions-widget .badge[hidden] { display: none; }
#mentions-dropdown { min-width: 260px; right: 0; left: auto; }
#mentions-dropdown li { white-space: normal; }
/* Owner's ask: a message from a customer should stand out from a plain
   @mention in this combined list, not just be inferrable from the author
   name (org vs. person). */
#mentions-dropdown li.customer-message-entry,
.dashboard-mentions li.customer-message-entry {
  background: var(--color-primary-100);
  border-left: 3px solid var(--color-accent);
}

.chat-messages {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 10px;
}
.chat-messages p { margin: 4px 0; font-size: 13px; }
.chat-mention {
  font-weight: bold;
  color: var(--color-accent);
  background: var(--color-primary-100);
  border-radius: 3px;
  padding: 0 2px;
}

.mention-input-wrap { position: relative; }
.mention-input-wrap textarea { width: 100%; box-sizing: border-box; }
.customer-chat-textarea { width: 100%; box-sizing: border-box; }

#tab-crm #deal-board { display: flex; gap: 0; overflow-x: auto; padding-bottom: 8px; }
#tab-crm .deal-column {
  flex: 0 0 240px;
  background: transparent;
  border-radius: 0;
  padding: 0 16px;
  border-right: 1px solid var(--color-border);
}
#tab-crm .deal-column:last-child { border-right: none; }
#tab-crm .deal-column h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
#tab-crm .deal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.1s ease;
}
#tab-crm .deal-card:hover { border-color: var(--color-border-control); }
#tab-crm .deal-card-overdue { border-color: var(--color-danger); background: #FBEAE9; }
#tab-crm .deal-card[draggable="true"] { cursor: grab; }
#tab-crm .deal-card-dragging { opacity: 0.4; }
#tab-crm .deal-column-drop-target { background: var(--color-primary-100); outline: 2px dashed var(--color-primary-500); outline-offset: -2px; }

/* Overrides .searchable-select-options' position:absolute -- the chat modal
   scrolls (overflow-y:auto) once messages pile up, which clips an absolutely
   positioned dropdown at the modal edge regardless of z-index. Fixed
   positioning escapes that clip; app.js computes left/top/bottom to anchor
   it to the textarea. */
.mention-list { position: fixed; }

.add-section-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.add-section-form > div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; }
.add-section-form label { font-size: 12px; color: var(--color-text-secondary); }
.add-section-form button { flex: 0 0 auto; }
.add-section-form .message { flex-basis: 100%; margin: 0; }

#project-detail-actions:not(:empty) { margin-bottom: 12px; }

/* Section checkpoints & progress tracking (2026-09-13). */
.section-signal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.section-signal-dot.section-signal--grey { background: var(--color-gray-500); }
.section-signal-dot.section-signal--red { background: var(--color-danger); }
.section-signal-dot.section-signal--yellow { background: #C9A227; }
p.section-signal { font-weight: 600; }
p.section-signal--grey { color: var(--color-gray-700); }
p.section-signal--red { color: var(--color-danger); }
p.section-signal--yellow { color: #8A6D0B; }
p.section-signal--none { color: var(--color-accent); }
.section-tracking-block { margin-top: 16px; }
.section-tracking-block h4 { margin: 0 0 8px; }
.section-tracking-chart { height: 260px; }
.section-plan-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.section-plan-row input[type="number"] { width: 5em; }
.section-review-state { font-size: 12px; color: var(--color-text-secondary); margin-left: 4px; }
