/* ============================================================
   РџРѕРґР±РѕСЂ С‚РµС…РЅРёРєРё вЂ” СЃС‚РёР»Рё (Editorial Calm)
   ============================================================ */

/* ----- Header ----- */
.podbor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s4);
}

.podbor-back {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
}

.podbor-back svg { width: 20px; height: 20px; }

.podbor-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----- Progress ----- */
.podbor-progress {
  margin-bottom: var(--s5);
}

.podbor-progress-bar {
  height: 2px;
  background: var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 6px;
}

.podbor-progress-bar .bar {
  height: 100%;
  background: var(--accent-2);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.podbor-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.podbor-progress-meta .num { color: var(--ink); }

/* ----- Р›РµРЅС‚Р° РєР°С‚РµРіРѕСЂРёР№ ----- */
.cat-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -20px var(--s4);
  padding: 0 20px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s;
}
.cat-strip-chip:active { transform: scale(0.96); }
.cat-strip-chip.active {
  border-color: var(--accent-2);
  background: var(--warm);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--accent-2) inset;
}
.cat-strip-chip.filled { color: var(--ink); }
.cat-strip-icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
}
.cat-strip-icon svg { width: 16px; height: 16px; }
.cat-strip-tick {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  margin-left: 2px;
}
.cat-strip-tick svg { width: 11px; height: 11px; stroke-width: 2.5; }

/* ----- Step container ----- */
.podbor-screen { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.podbor-step {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.display-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.display-title .accent { color: var(--accent-2); }

.lede {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0;
}

/* ----- Form errors / hints ----- */
.field-error {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #8A3E2A;
  min-height: 14px;
  margin-top: 4px;
  line-height: 1.3;
}
.field-error:empty { display: none; }

.field-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.3;
}

/* ----- Form basics ----- */
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field-inline input {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.12s;
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field-inline input:focus { border-color: var(--accent-2); }

.field textarea { resize: vertical; min-height: 64px; font-family: var(--font-ui); }

.form-row { display: flex; flex-direction: column; gap: var(--s2); }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }

/* ----- Block grouping ----- */
.block {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.block-head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----- Categories grid ----- */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  min-height: 84px;
}

.cat-card:active { background: var(--paper-2); }

.cat-card.active {
  border-color: var(--ink);
  background: var(--paper-2);
}

.cat-card .cat-icon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--ink);
}

.cat-card .cat-icon svg { width: 22px; height: 22px; stroke-width: 1.4; }

.cat-card .cat-label {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cat-card .cat-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 18px; height: 18px;
  background: var(--accent-2);
  color: var(--paper);
  border-radius: var(--r-pill);
  display: grid; place-items: center;
}

.cat-card .cat-check svg { width: 12px; height: 12px; stroke-width: 2.5; }

/* ----- Niches ----- */
.niche-list { display: flex; flex-direction: column; gap: var(--s2); }
.niche-row { display: flex; flex-direction: column; gap: 4px; }
.niche-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.niche-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  min-width: 0;
}
.niche-inputs input {
  min-width: 0;       /* РєСЂРёС‚РёС‡РЅРѕ вЂ” РёРЅР°С‡Рµ input РЅРµ РґР°С‘С‚ РєРѕР»РѕРЅРєРµ СЃР¶РёРјР°С‚СЊСЃСЏ */
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 4px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-tag);
  color: var(--ink);
}
.niche-inputs input::placeholder { font-size: 11px; }

.budget-list { display: flex; flex-direction: column; gap: var(--s2); }
.field-inline {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  font-family: var(--font-ui); font-size: 14px; color: var(--ink-2);
}
.field-inline input {
  width: 130px; padding: 8px 10px; font-family: var(--font-mono); font-size: 13px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-tag);
  text-align: right; color: var(--ink);
}

/* ----- Price range (РѕС‚ вЂ” РґРѕ РїРѕ РєР°С‚РµРіРѕСЂРёСЏРј) ----- */
.price-list { display: flex; flex-direction: column; gap: var(--s3); }

.price-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-label {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.price-inputs input {
  flex: 1;
  min-width: 0;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 10px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-tag);
  color: var(--ink);
}

.price-inputs .dash {
  font-family: var(--font-mono);
  color: var(--muted);
  flex-shrink: 0;
}

.price-inputs .rub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  padding-left: 2px;
}

.price-total {
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: right;
}

.price-total strong { font-family: var(--font-ui); font-size: 14px; color: var(--ink); font-weight: 600; }
.price-total.muted { color: var(--muted); }

/* ----- Option chips ----- */
.opt-list { display: flex; flex-wrap: wrap; gap: 6px; }

.opt {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.12s;
}

.opt:active { transform: scale(0.97); }

.opt.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ----- Brand chips ----- */
/* РўРёСЂС‹ (Premium/Middle/Budget) СЂР°Р·Р»РёС‡Р°СЋС‚СЃСЏ С†РІРµС‚РѕРј, Р±РµР· СЏРІРЅС‹С… С‚РµРєСЃС‚РѕРІС‹С… СЏСЂР»С‹РєРѕРІ.
   Р’РЅСѓС‚СЂРµРЅРЅРµ С…СЂР°РЅРёРј tier РґР»СЏ Р°РЅР°Р»РёС‚РёРєРё В«С‚РµРјРїРµСЂР°С‚СѓСЂС‹В» РєР»РёРµРЅС‚Р°. */

.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
}

.brand-chips:first-of-type {
  border-top: none;
  padding-top: 0;
}

.chip {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: var(--r-tag);
  border: 1px solid;
  cursor: pointer;
  transition: all 0.12s;
  position: relative;
}

/* Р‘Р°Р·РѕРІС‹Р№ С†РІРµС‚ РїРѕРєРѕСЏ РїРѕ С‚РёСЂР°Рј вЂ” Р±РµР· СЃР»РѕРІ, С‚РѕР»СЊРєРѕ С‚С‘РїР»С‹Р№/С…РѕР»РѕРґРЅС‹Р№ РѕС‚С‚РµРЅРѕРє */
.chip.tier-premium {
  background: var(--paper);
  color: var(--accent-2);              /* walnut */
  border-color: rgba(107, 74, 43, 0.35);
}

.chip.tier-middle {
  background: var(--paper);
  color: var(--ink-2);
  border-color: var(--line-strong);
}

.chip.tier-budget {
  background: var(--paper);
  color: var(--muted);
  border-color: var(--line);
}

/* РЎРѕСЃС‚РѕСЏРЅРёРµ preferred вЂ” Р·Р°Р»РёРІРєР° С†РІРµС‚РѕРј С‚РёСЂР° */
.chip.tier-premium.status-preferred {
  background: var(--accent-2);          /* walnut */
  color: var(--paper);
  border-color: var(--accent-2);
  font-weight: 600;
}

.chip.tier-middle.status-preferred {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-weight: 600;
}

.chip.tier-budget.status-preferred {
  background: var(--muted);
  color: var(--paper);
  border-color: var(--muted);
  font-weight: 600;
}

.chip.status-preferred::before { content: "в… "; }

/* РЎРѕСЃС‚РѕСЏРЅРёРµ acceptable вЂ” РѕР±РІРѕРґРєР° С†РІРµС‚РѕРј С‚РёСЂР°, РїСЂРѕР·СЂР°С‡РЅР°СЏ Р·Р°Р»РёРІРєР° */
.chip.status-acceptable {
  background: var(--paper-2);
}

.chip.tier-premium.status-acceptable  { border-color: var(--accent-2); color: var(--accent-2); }
.chip.tier-middle.status-acceptable   { border-color: var(--ink); color: var(--ink); }
.chip.tier-budget.status-acceptable   { border-color: var(--muted); color: var(--ink-2); }

.chip.status-acceptable::before { content: "вњ“ "; }

/* РЎРѕСЃС‚РѕСЏРЅРёРµ avoid вЂ” РїСЂРёРіР»СѓС€С‘РЅРЅС‹Р№, РїРµСЂРµС‡С‘СЂРєРЅСѓС‚С‹Р№ */
.chip.status-avoid {
  background: #F5E1DC;
  border-color: #C7705A;
  color: #8A3E2A;
  text-decoration: line-through;
  opacity: 0.85;
}
.chip.status-avoid::before { content: "вњ— "; text-decoration: none; display: inline-block; }

/* Disabled РєРЅРѕРїРєР° */
.btn-primary[disabled],
.btn-secondary[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ----- Summary ----- */
.summary-block { gap: 8px; }
.summary-block .kv {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 14px;
}
.summary-block .kv:last-child { border-bottom: none; }
.summary-block .kv span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.summary-block .kv strong { font-weight: 600; color: var(--ink); }

/* ----- CTA / buttons ----- */
.podbor-cta-row {
  display: flex; gap: var(--s2);
  margin-top: var(--s3);
}

.btn-primary, .btn-secondary {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px var(--s4);
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: opacity 0.12s, background 0.12s;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:active { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary:active { background: var(--paper-2); }

/* ----- Submit result ----- */
.submit-result { margin-top: var(--s3); }

.submit-result .success {
  display: flex; align-items: center; gap: var(--s3);
  background: var(--paper-2);
  border: 1px solid var(--accent-2);
  border-radius: var(--r-card);
  padding: var(--s4);
}

.submit-result .success-icon {
  width: 36px; height: 36px;
  background: var(--accent-2);
  color: var(--paper);
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  flex-shrink: 0;
}

.submit-result .success-icon svg { width: 20px; height: 20px; stroke-width: 2.5; }

.submit-result .success-title {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.submit-result .success-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.submit-result .error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.30);
  color: #8C3F1E;
  border-radius: var(--r-card);
  padding: var(--s3) var(--s4);
  font-size: 14px;
}

.spinner-inline {
  display: inline-block;
  width: 14px; height: 14px;
  border: 1.5px solid rgba(251,247,240,0.3);
  border-top-color: var(--paper);
  border-radius: var(--r-pill);
  animation: spin 0.7s linear infinite;
  margin-right: 6px;
  vertical-align: -2px;
}

.empty { text-align: center; color: var(--muted); padding: var(--s7) 0; }

/* ============================================================
   Detail menu вЂ” list of categories with status
   ============================================================ */
.detail-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.detail-card {
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  padding: var(--s3) var(--s4);
  cursor: pointer;
  transition: background 0.12s;
  text-align: left;
}

.detail-card:active { background: var(--paper-2); }

.detail-card.done { border-color: var(--accent-2); }

.detail-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}

.detail-icon svg { width: 22px; height: 22px; stroke-width: 1.4; }

.detail-card.done .detail-icon { color: var(--accent-2); }

.detail-text { flex: 1; min-width: 0; }

.detail-name {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.detail-sum {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-card.done .detail-sum { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-family: var(--font-ui); font-size: 12.5px; }

.detail-status {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
}

.detail-status svg { width: 18px; height: 18px; }

.detail-card.done .detail-status {
  width: 22px;
  height: 22px;
  background: var(--accent-2);
  color: var(--paper);
  border-radius: var(--r-pill);
}

.detail-card.done .detail-status svg { width: 14px; height: 14px; stroke-width: 2.5; }

/* ============================================================
   Category detail screen
   ============================================================ */
.cat-detail-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.cat-detail-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
}

.cat-detail-icon svg { width: 26px; height: 26px; stroke-width: 1.4; }

.cat-detail-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  flex: 1;
}

.param-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}

.param-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.param-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Accordion "РџРѕРґСЂРѕР±РЅРµРµ"
   ============================================================ */
.accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--s3) var(--s4);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.accordion-chev {
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.18s;
}

.accordion-chev svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform 0.18s; }
.accordion-chev.open svg { transform: rotate(-90deg); }

.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
  padding: 0;
}

.accordion-body.open {
  max-height: 2000px;
  padding-top: var(--s3);
}

.accordion-body > * + * { margin-top: var(--s3); }

/* ============================================================
   Feature card (in accordion)
   ============================================================ */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 22px;
  gap: var(--s2);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-tag);
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s;
}

.feature:active { background: var(--paper-2); }
.feature.on {
  border-color: var(--accent-2);
  background: var(--paper-2);
}

.feature-name {
  grid-column: 1 / 2;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.feature-hint {
  grid-column: 1 / 2;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}

.feature-tick {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  align-self: center;
}

.feature.on .feature-tick {
  background: var(--accent-2);
  color: var(--paper);
  border-color: var(--accent-2);
}

.feature.on .feature-tick svg { width: 12px; height: 12px; stroke-width: 2.5; }

/* ============================================================
   РРµСЂР°СЂС…РёС‡РµСЃРєРёР№ wizard (РЅРѕРІР°СЏ СЃС…РµРјР° steps[])
   ============================================================ */

.podbor-wizard { gap: var(--s4); }

.wiz-header {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.wiz-header-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wiz-cat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wiz-progress {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.wiz-cat-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-2);
  display: grid;
  place-items: center;
}
.wiz-cat-icon svg { width: 22px; height: 22px; }

/* Р§РёРїС‹ РїСЂРѕС€Р»С‹С… РѕС‚РІРµС‚РѕРІ */
.wiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 4px;
}
.wiz-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--warm);
  border: 1px solid var(--accent-2);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.12s;
}
.wiz-chip:active { background: #EAD9B6; }

/* Р—Р°РіРѕР»РѕРІРѕРє С€Р°РіР° */
.wiz-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 6px 0 0;
}
.wiz-multi {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* РЎРµС‚РєР° РєР°СЂС‚РѕС‡РµРє (cards-СЂРµР¶РёРј вЂ” СЃ РїРёРєС‚РѕРіСЂР°РјРјР°РјРё) */
.wiz-grid { gap: 10px; }
.wiz-grid--cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 540px) {
  .wiz-grid--cards { grid-template-columns: repeat(3, 1fr); }
}

/* РџРёРЅ-СЂРµР¶РёРј (Р±РµР· РїРёРєС‚РѕРіСЂР°РјРј, РєРѕРјРїР°РєС‚РЅС‹Рµ С‚Р°Р±Р»РµС‚РєРё) */
.wiz-grid--pins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wiz-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card, 14px);
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.12s;
  text-align: center;
  font: inherit;
  color: var(--ink);
}
.wiz-card:active { background: var(--warm); transform: scale(0.98); }
.wiz-card.on {
  border-color: var(--accent-2);
  background: var(--warm);
  box-shadow: 0 0 0 1px var(--accent-2) inset;
}
.wiz-card.star::before {
  content: "в­ђ";
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 11px;
  opacity: 0.85;
}

.wiz-pict {
  width: 72px;
  height: 96px;
  display: grid;
  place-items: center;
}
.wiz-pict svg { width: 100%; height: 100%; display: block; }
.wiz-pict-placeholder {
  width: 72px;
  height: 96px;
  background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(107, 74, 43, 0.06) 6px, rgba(107, 74, 43, 0.06) 7px);
  border: 1px dashed var(--line);
  border-radius: 6px;
}

.wiz-label {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.wiz-hint {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.25;
}
.wiz-tick {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: var(--accent-2);
  color: var(--paper);
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
}
.wiz-tick svg { width: 11px; height: 11px; stroke-width: 2.5; }

/* РџРёРЅ-РєР°СЂС‚РѕС‡РєР° (РєРѕРјРїР°РєС‚РЅР°СЏ С‚Р°Р±Р»РµС‚РєР°, Р±РµР· РїРёРєС‚РѕРіСЂР°РјРјС‹) */
.wiz-card--pin {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  padding: 9px 14px 9px 14px;
  border-radius: var(--r-pill);
  width: auto;
  text-align: left;
}
.wiz-card--pin .wiz-pict,
.wiz-card--pin .wiz-pict-placeholder { display: none; }
.wiz-card--pin .wiz-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.wiz-card--pin .wiz-hint {
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--muted);
}
.wiz-card--pin .wiz-tick {
  position: static;
  width: 14px;
  height: 14px;
}
.wiz-card--pin .wiz-tick svg { width: 9px; height: 9px; }
.wiz-card--pin.star { padding-left: 26px; }
.wiz-card--pin.star::before { top: 50%; transform: translateY(-50%); }

/* Review-СЌРєСЂР°РЅ */
.rev-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card, 14px);
  overflow: hidden;
}
.rev-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.rev-row:last-child { border-bottom: 0; }
.rev-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  max-width: 40%;
}
.rev-val {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.rev-val .muted { color: var(--muted); font-weight: 400; }

/* ============================================================
   Inline-РѕС‚С‡С‘С‚ РїРѕСЃР»Рµ РѕС‚РїСЂР°РІРєРё РїРѕРґР±РѕСЂР°
   ============================================================ */

.report {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.report-head .kicker {
  margin-bottom: 4px;
}

.report-summary {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 6px 0 0;
  padding: 12px 14px;
  background: var(--warm);
  border-radius: 12px;
  border-left: 3px solid var(--accent-2);
}

.report-cat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-cat-head {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.report-cat-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
}

.report-cat-icon svg { width: 22px; height: 22px; }

.report-models {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-model {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
}

.report-model-img {
  width: 88px;
  height: 88px;
  background: var(--warm);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.report-model-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.report-model-img.placeholder {
  background: repeating-linear-gradient(45deg, var(--warm), var(--warm) 5px, #F0E8D5 5px, #F0E8D5 10px);
}
.report-model-img.placeholder::after {
  content: "рџ“·";
  font-size: 24px;
  opacity: 0.4;
}

.report-model-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.report-model-brand {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.report-model-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 2px;
}

.report-model-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 2px 0;
}

.report-model-meta .rating { color: var(--accent-2); font-weight: 500; }

.report-model-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  margin: 4px 0;
  letter-spacing: -0.01em;
}
.report-model-price strong { font-style: normal; font-weight: 600; }
.report-model-price .muted { font-style: normal; font-size: 13px; color: var(--muted); }

.report-highlights {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2);
  margin-top: 2px;
}
.report-pros {
  font-size: 12px;
  line-height: 1.4;
  color: #2A6B3F;
  margin-top: 2px;
}
.report-cons {
  font-size: 12px;
  line-height: 1.4;
  color: #8A3E2A;
  margin-top: 2px;
}

/* Р‘Р»РѕРєРё РїР»СЋСЃРѕРІ/РјРёРЅСѓСЃРѕРІ СЃ РјР°СЂРєРёСЂРѕРІР°РЅРЅС‹РјРё СЃРїРёСЃРєР°РјРё */
.report-pros-block, .report-cons-block {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
}
.report-pros-block {
  background: rgba(42, 107, 63, 0.08);
  border-left: 2px solid #2A6B3F;
}
.report-cons-block {
  background: rgba(138, 62, 42, 0.08);
  border-left: 2px solid #8A3E2A;
}
.pc-head {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.report-pros-block .pc-head { color: #2A6B3F; }
.report-cons-block .pc-head { color: #8A3E2A; }
.pc-list {
  margin: 0;
  padding-left: 16px;
  color: var(--ink);
}
.pc-list li { margin: 2px 0; }

.report-reasoning {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--warm);
  border-radius: 8px;
  font-style: italic;
  font-size: 13px;
  line-height: 1.45;
  color: var(--walnut);
}

/* РўРµС…РЅРёС‡РµСЃРєРёРµ С…Р°СЂР°РєС‚РµСЂРёСЃС‚РёРєРё */
.report-specs {
  margin-top: 10px;
  background: #FFFCF6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.report-specs-head {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.report-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 0;
}
.spec-item.highlight {
  grid-column: 1 / -1;
  border-bottom: 1px dashed var(--accent-2);
  padding-bottom: 6px;
  margin-bottom: 4px;
}
.spec-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-value {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.spec-item.highlight .spec-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-2);
}

/* РЈС‚РёР»РёС‚Р°СЂРЅС‹Рµ СЃСЃС‹Р»РєРё вЂ” РёРЅСЃС‚СЂСѓРєС†РёСЏ, СЃС…РµРјР° СѓСЃС‚Р°РЅРѕРІРєРё */
.report-util-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.util-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--warm);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background 0.12s;
}
.util-link:active { background: #EAD9B6; }
.util-link--manual { border-color: #6B4A2B; }
.util-link--dims { border-color: var(--accent-2); color: var(--accent-2); }

.report-cat-analysis {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  font-style: italic;
  padding: 10px 14px;
  background: #FFFCF6;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  border-radius: 8px;
  margin: 4px 0 4px;
}

.report-links-head {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  width: 100%;
}
.report-links-empty {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-style: italic;
  margin-top: 8px;
}

/* Р¦РІРµС‚РѕРІР°СЏ РґРёС„С„РµСЂРµРЅС†РёР°С†РёСЏ Р±РµР№РґР¶РµР№ РјР°РіР°Р·РёРЅРѕРІ */
.report-link--ozon     { border-color: #0044CC; color: #0044CC; }
.report-link--citilink { border-color: #FFBA00; color: #B57E00; }
.report-link--wb       { border-color: #CB11AB; color: #CB11AB; }
.report-link--yamarket { border-color: #FC3F1D; color: #FC3F1D; }
.report-link--dns      { border-color: #FA9300; color: #C26C00; }

.report-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.report-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-decoration: none;
  border: 1px solid var(--accent-2);
  padding: 4px 9px;
  border-radius: var(--r-pill);
  transition: background 0.12s;
}
.report-link:active { background: var(--warm); }

/* ============================================================
   РњР°С‚СЂРёС†Р° С†РµРЅ РїРѕ РјР°РіР°Р·РёРЅР°Рј (PRIMARY view РєР°С‚РµРіРѕСЂРёРё)
   ============================================================ */

.report-matrix-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 8px 0 16px;
}

.report-matrix-head {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px 8px;
}

.report-matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.report-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 100%;
}

.report-matrix thead th {
  background: var(--warm);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: relative;
}

.report-matrix .col-model {
  position: sticky;
  left: 0;
  background: var(--warm);
  z-index: 2;
  min-width: 130px;
  box-shadow: 2px 0 4px rgba(31, 26, 20, 0.06);
}
.report-matrix tbody .col-model {
  background: #FFFCF6;
}

.report-matrix tbody td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

.report-matrix .m-brand {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.report-matrix .m-name {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: normal;
  line-height: 1.25;
}

.report-matrix .cell-price {
  font-size: 12.5px;
  color: var(--ink);
}
.report-matrix .cell-price a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border 0.12s;
}
.report-matrix .cell-price a:active { border-bottom-color: var(--accent-2); }
.report-matrix .cell-price.empty { color: var(--muted); text-align: center; }
.report-matrix .cell-price.best {
  background: rgba(42, 107, 63, 0.10);
}
.report-matrix .cell-price.best a,
.report-matrix .cell-price.best strong {
  color: #1F5530;
}
.report-matrix .best-mark {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #2A6B3F;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  margin-left: 4px;
  vertical-align: middle;
}
.cell-noprice-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}

.report-matrix .col-best {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  background: #FFFCF6;
}

.report-matrix-hint {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  padding: 10px 14px 14px;
  border-top: 1px dashed var(--line);
}

/* РЎСЂР°РІРЅРёС‚РµР»СЊРЅР°СЏ С‚Р°Р±Р»РёС†Р° вЂ” accordion (legacy, РѕСЃС‚Р°РІР»РµРЅ РґР»СЏ СЃРѕРІРјРµСЃС‚РёРјРѕСЃС‚Рё) */
.report-compare {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 4px;
  overflow: hidden;
}
.report-compare summary {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.report-compare summary::-webkit-details-marker { display: none; }
.report-compare summary::after {
  content: "в†“";
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.2s;
}
.report-compare[open] summary::after { transform: rotate(180deg); }

.report-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.report-compare th,
.report-compare td {
  padding: 8px 10px;
  text-align: left;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.report-compare th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--warm);
}
.report-compare td strong { font-weight: 600; color: var(--ink); }

/* РС‚РѕРіРѕ */
.report-total {
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.report-total .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
.report-total strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.report-total .status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-left: auto;
}

.report-warnings {
  background: #F5E1DC;
  border: 1px solid #C7705A;
  border-radius: 12px;
  padding: 10px 14px;
  color: #8A3E2A;
  font-size: 13px;
  line-height: 1.5;
}
.report-warnings > div { margin: 2px 0; }

/* Р­РєСЃРїРѕСЂС‚ РѕС‚С‡С‘С‚Р° */
.report-export {
  margin-top: 16px;
  padding: 16px;
  background: var(--warm);
  border: 1px dashed var(--walnut);
  border-radius: var(--r);
}
.report-export-head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 10px;
}
.report-export-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-export {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--walnut);
  color: var(--walnut);
  cursor: pointer;
  transition: all 0.12s;
  flex: 1;
  min-width: 140px;
}
.btn-export:active {
  background: var(--walnut);
  color: var(--paper);
  transform: scale(0.97);
}
.report-export-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* ============================================================
   РљР»РёРµРЅС‚С‹ вЂ” СЃРїРёСЃРѕРє + РёСЃС‚РѕСЂРёСЏ
   ============================================================ */

.client-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  /* РѕС‚СЃС‚СѓРї С‡С‚РѕР±С‹ FAB РЅРµ РїРµСЂРµРєСЂС‹РІР°Р» РїРѕСЃР»РµРґРЅРёР№ СЌР»РµРјРµРЅС‚ */
  padding-bottom: 84px;
}

/* в”Ђв”Ђ FAB В«РќРѕРІС‹Р№ РєР»РёРµРЅС‚В» в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.clients-fab {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--walnut, #6B4A2B);
  color: #fff;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(107, 74, 43, 0.38);
  z-index: 90;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  user-select: none;
}
.clients-fab:active {
  transform: scale(0.9);
  box-shadow: 0 2px 10px rgba(107, 74, 43, 0.28);
}

/* ============================================================
   РЎРµРєС†РёСЏ РѕС‚РіСЂСѓР·РѕРє РЅР° РіР»Р°РІРЅРѕРј РґР°С€Р±РѕСЂРґРµ РјРµРЅРµРґР¶РµСЂР° (РћРўР“Р РЈР—РљР.xlsx)
   ============================================================ */

.ship-group {
  margin: 0 16px 12px;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e8e1d9);
  border-radius: 14px;
  overflow: hidden;
}

.ship-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2, #f4f1ed);
  border-bottom: 1px solid var(--line, #e8e1d9);
}

.ship-factory-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.ship-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ship-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.ship-badge.order {
  background: rgba(0, 62, 126, 0.10);
  color: #003E7E;
}
.ship-badge.resupply {
  background: rgba(192, 57, 43, 0.10);
  color: #C0392B;
}

.ship-rows {
  display: flex;
  flex-direction: column;
}

.ship-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line, #e8e1d9);
}
.ship-row:last-child {
  border-bottom: none;
}

.ship-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.ship-type {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}
.ship-type.zakaz {
  background: rgba(0, 62, 126, 0.10);
  color: #003E7E;
}
.ship-type.dozakaz {
  background: rgba(192, 57, 43, 0.10);
  color: #C0392B;
}

.ship-id {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ship-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

.ship-supply {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.ship-check {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
}
.ship-check.yes {
  background: rgba(39, 174, 96, 0.12);
  color: #1a7a42;
}
.ship-check.no {
  background: rgba(192, 57, 43, 0.10);
  color: #C0392B;
}

.ship-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-style: italic;
  line-height: 1.3;
  white-space: pre-wrap;
}

.client-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.12s;
}
.client-card:active { transform: scale(0.99); background: var(--warm); }

.client-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--warm);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.client-avatar.lg {
  width: 56px;
  height: 56px;
  font-size: 24px;
}

.client-meta {
  flex: 1;
  min-width: 0;
}
.client-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.2;
}
.client-phone {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.client-arrow {
  color: var(--muted);
  font-size: 20px;
  flex-shrink: 0;
}

.client-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.client-footer .leads-count {
  color: var(--accent-2);
  font-weight: 500;
}
.client-footer .muted { color: var(--muted); }

/* Р”РµС‚Р°Р»СЊРЅС‹Р№ СЌРєСЂР°РЅ РєР»РёРµРЅС‚Р° */
.client-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.client-detail-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 4px;
}
.client-detail-phone {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.leads-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.lead-item {
  display: grid;
  grid-template-columns: 1fr auto auto 20px;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
}
.lead-item:active { background: var(--warm); }

.lead-date {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.lead-id {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lead-status {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--warm);
  color: var(--accent-2);
}
.lead-status.status-new { background: var(--warm); color: var(--accent-2); }
.lead-status.status-sent { background: rgba(42,107,63,0.12); color: #2A6B3F; }
.lead-arrow {
  color: var(--muted);
  font-size: 18px;
}

/* Р—Р°РіР»СѓС€РєР°-loader */
.loader-inline {
  display: flex;
  justify-content: center;
  padding: 40px;
}
.loader-inline .spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--line);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.lead-detail-head {
  margin-bottom: 18px;
}

.ai-text-fallback {
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--warm);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
}

/* ===== Role chooser вЂ” РїРµСЂРІС‹Р№ СЌРєСЂР°РЅ ===== */
.role-chooser {
  padding: 32px 18px;
  max-width: 480px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.role-chooser-head {
  text-align: center;
  margin-bottom: 28px;
}
.role-chooser-head .display-title {
  font-size: 36px;
  margin: 0 0 12px;
}
.role-chooser-head .lede {
  font-size: 14px;
  color: var(--ink-2, #6B5C4A);
  margin: 0;
}
.role-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--card, #fff);
  border: 1px solid var(--line-strong, rgba(15, 15, 14, 0.16));
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.role-card:active {
  background: var(--paper-2, #F5EDDC);
  transform: scale(0.985);
}
.role-card .role-icon {
  font-size: 32px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--warm, rgba(107, 74, 43, 0.08));
  border-radius: 14px;
  flex-shrink: 0;
  color: var(--accent-1);
}
.role-card .role-text { flex: 1; min-width: 0; }
.role-card .role-title {
  font-family: var(--font-display, "Newsreader", serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink, #1F1A14);
  margin-bottom: 2px;
}
.role-card .role-sub {
  font-size: 12.5px;
  color: var(--muted, #998877);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  letter-spacing: 0.02em;
}
.role-card .role-arrow {
  color: var(--muted, #998877);
  font-size: 22px;
  flex-shrink: 0;
}

/* ===== Р‘РµР№РґР¶ РЅРѕРјРµСЂР° РєР»РёРµРЅС‚Р° + РґРѕРіРѕРІРѕСЂ ===== */
.client-no-badge {
  display: inline-block;
  background: var(--warm, rgba(107, 74, 43, 0.10));
  color: var(--walnut, #6B4A2B);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  vertical-align: middle;
  margin-left: 6px;
}
.client-detail-meta {
  font-size: 12px;
  color: var(--muted, #998877);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  margin-top: 4px;
}
.client-detail-addr {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.client-detail-addr .addr-text {
  flex: 1;
  min-width: 0;
}
.map-link-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  background: rgba(107,74,43,0.08);
  border: 1px solid rgba(107,74,43,0.20);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--walnut, #6B4A2B);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.map-link-btn:active { background: rgba(107,74,43,0.16); }

/* ===== РћРїР°СЃРЅР°СЏ Р·РѕРЅР° СѓРґР°Р»РµРЅРёСЏ ===== */
.danger-zone {
  border: 1px dashed rgba(192, 57, 43, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(192, 57, 43, 0.03);
}
.danger-zone > summary {
  font-size: 13px;
  font-weight: 600;
  color: #C0392B;
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  user-select: none;
}
.danger-zone[open] > summary { margin-bottom: 6px; }
.btn-danger {
  background: #C0392B;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger:active { background: #A93226; }
.btn-danger:disabled { opacity: 0.6; cursor: wait; }

/* ===== РљР°СЂС‚РѕС‡РєР° РєР»РёРµРЅС‚Р°: С€Р°РїРєР° + РґРµР№СЃС‚РІРёСЏ ===== */
.client-detail-head { position: relative; display: flex; align-items: center; gap: 14px; }
.client-call-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--walnut, #6B4A2B);
  color: var(--paper, #FBF7F0);
  text-decoration: none;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(107, 74, 43, 0.25);
}
.client-call-btn:active { transform: scale(0.95); }

/* ===== Р‘С‹СЃС‚СЂС‹Рµ РґРµР№СЃС‚РІРёСЏ вЂ” 2Г—2 РѕР±СЉС‘РјРЅС‹Рµ РєРЅРѕРїРєРё-РєР°СЂС‚РѕС‡РєРё ===== */
.client-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 18px;
}

.qa-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 15px 10px 13px;
  background:
    linear-gradient(160deg,
      rgba(255, 255, 255, 0.80) 0%,
      rgba(245, 237, 220, 0.62) 100%);
  border: 1px solid rgba(107, 74, 43, 0.16);
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 2px 0 rgba(107, 74, 43, 0.20),
    0 1px 5px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
  transition: transform 0.10s ease, box-shadow 0.10s ease;
  -webkit-tap-highlight-color: transparent;
}

.qa-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 0px 0 rgba(107, 74, 43, 0.20),
    inset 0 1px 4px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(107, 74, 43, 0.10);
}

/* РљСЂСѓРіР»С‹Р№ РѕСЂРµС…РѕРІРѕ-РєРѕСЂРёС‡РЅРµРІС‹Р№ С‡РёРї СЃ РёРєРѕРЅРєРѕР№ */
.qa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #845A2E 0%, #5C3A1C 100%);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #F5DAAA;
  flex-shrink: 0;
}

.qa-icon svg {
  width: 22px;
  height: 22px;
}

/* РџРѕРґРїРёСЃСЊ РїРѕРґ РёРєРѕРЅРєРѕР№ */
.qa-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink, #1F1A14);
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ===== РҐСЂРѕРЅРѕР»РѕРіРёСЏ РєР»РёРµРЅС‚Р° ===== */
.client-timeline-block .timeline { padding: 10px 4px 4px; position: relative; }
.client-timeline-block .timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: rgba(107, 74, 43, 0.18);
}
.tl-item {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
}
.tl-item:active { background: rgba(107, 74, 43, 0.04); border-radius: 6px; }
.tl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--walnut, #6B4A2B);
  flex-shrink: 0;
  margin-top: 8px;
  z-index: 1;
  box-shadow: 0 0 0 3px var(--paper, #FBF7F0);
}
.tl-content { flex: 1; min-width: 0; }
.tl-date {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  color: var(--muted, #998877);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.tl-title { font-size: 14px; font-weight: 500; color: var(--ink, #1F1A14); }
.tl-icon { margin-right: 6px; }
.tl-sub { font-size: 12px; color: var(--muted, #998877); margin-top: 2px; }

/* ===== Р¤Р°Р№Р»С‹ РєР»РёРµРЅС‚Р° ===== */
.client-files-block .file-group { padding: 8px 4px 12px; }
.client-files-block .file-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink, #1F1A14);
}
.file-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
}
.file-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--warm, rgba(107, 74, 43, 0.08));
  border: 1px solid rgba(107, 74, 43, 0.15);
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-thumb.more {
  display: grid;
  place-items: center;
  background: rgba(107, 74, 43, 0.10);
  color: var(--walnut, #6B4A2B);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

/* ===== РЎРІС‘СЂРЅСѓС‚С‹Рµ РґРµС‚Р°Р»Рё (РїРѕРґР±РѕСЂС‹ / Р·Р°РјРµСЂС‹) ===== */
.client-details { margin-top: 14px; }
.client-details-collapse {
  background: var(--card, #fff);
  border: 1px solid rgba(107, 74, 43, 0.12);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.client-details-collapse summary {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1F1A14);
  cursor: pointer;
  user-select: none;
  font-family: inherit;
  letter-spacing: 0.02em;
}
.client-details-collapse[open] summary { border-bottom: 1px solid rgba(107, 74, 43, 0.10); }
.client-details-collapse .leads-list { padding: 4px 8px 8px; }

/* ===== РџСЂРёРјРµС‡Р°РЅРёРµ РїРѕ РєР»РёРµРЅС‚Сѓ ===== */
.client-note-block .block-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.client-note-block .block-head > span:first-child {
  flex: 1;
}

/* РљРЅРѕРїРєР°-РїРµСЂРµРєР»СЋС‡Р°С‚РµР»СЊ РР·РјРµРЅРёС‚СЊ / РЎРІРµСЂРЅСѓС‚СЊ */
.note-edit-toggle {
  padding: 4px 12px;
  background: transparent;
  border: 1px solid rgba(107, 74, 43, 0.30);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--walnut, #6B4A2B);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.note-edit-toggle:active {
  background: rgba(107, 74, 43, 0.10);
}

/* Р›РµРЅС‚Р° РїСЂРёРјРµС‡Р°РЅРёР№ */
.note-history {
  margin-top: 6px;
}
.note-entry {
  padding: 8px 0;
  border-bottom: 1px solid rgba(107,74,43,0.08);
}
.note-entry:last-child { border-bottom: none; }
.note-loading, .note-empty {
  font-size: 13px;
  color: var(--muted, #998877);
  font-style: italic;
  padding: 6px 0;
}
.note-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink, #1F1A14);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 4px;
}
.client-note-block .note-meta {
  font-size: 11px;
  color: var(--muted, #998877);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.client-note-block textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(107, 74, 43, 0.18);
  border-radius: 8px;
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink, #1F1A14);
  line-height: 1.45;
}
.client-note-block textarea:focus { outline: none; border-color: var(--walnut, #6B4A2B); }
.client-note-block .note-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.client-note-block .btn-mic {
  background: transparent;
  border: 1px solid var(--walnut, #6B4A2B);
  color: var(--walnut, #6B4A2B);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.client-note-block .btn-mic:disabled { cursor: not-allowed; }
.client-note-block .btn-mic.rec {
  background: #C0392B;
  border-color: #C0392B;
  color: white;
  animation: micPulse 1.2s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(192, 57, 43, 0); }
}
.client-note-block .btn-secondary {
  white-space: nowrap;
}
.client-note-block .note-status {
  margin-top: 6px;
  font-size: 12px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  color: var(--muted, #998877);
  min-height: 16px;
}
.client-note-block .note-status.ok { color: #27AE60; }
.client-note-block .note-status.err { color: #C0392B; }

/* ===== Р—Р°СЏРІРєР° РЅР° Р·Р°РјРµСЂ: РІС‹Р±РѕСЂ В«РєРѕРіРґР° СѓРґРѕР±РЅРѕВ» ===== */
.preferred-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 6px;
}
.pref-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--card, #fff);
  border: 1px solid var(--line-strong, rgba(15, 15, 14, 0.16));
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, border-color 0.12s;
}
.pref-opt input[type="radio"] {
  margin: 0;
  accent-color: var(--walnut, #6B4A2B);
}
.pref-opt input[type="radio"]:checked + .pref-label {
  font-weight: 600;
  color: var(--walnut, #6B4A2B);
}
.pref-opt:has(input:checked) {
  background: var(--warm, rgba(107, 74, 43, 0.08));
  border-color: var(--walnut, #6B4A2B);
}
.pref-label {
  font-size: 13px;
  color: var(--ink, #1F1A14);
  flex: 1;
}

/* Р‘Р»РѕРє В«РєРѕРіРґР° СѓРґРѕР±РЅРѕВ» РІ РєР°СЂС‚РѕС‡РєРµ Р·Р°РјРµСЂС‰РёРєР° */
.preferred-block {
  background: var(--warm, rgba(107, 74, 43, 0.08));
  border-left: 3px solid var(--walnut, #6B4A2B);
}

/* Р‘Р»РѕРє В«РґР°С‚Р° РЅР°Р·РЅР°С‡РµРЅР°В» */
.date-set-block {
  background: linear-gradient(180deg, rgba(0, 62, 126, 0.04), transparent);
  border-left: 3px solid var(--accent-1, #003E7E);
}
.date-set-block .date-set-value {
  font-family: var(--font-display, "Newsreader", serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent-1, #003E7E);
  padding: 8px 4px 12px;
  font-weight: 500;
}
.date-set-block .date-set-form {
  border-top: 1px dashed rgba(0, 62, 126, 0.2);
  padding-top: 12px;
  margin-top: 12px;
}

/* ===== Р›РѕРіРёСЃС‚РёРєР° (РїРѕРґСЉРµР·Рґ, GPS, РїР°СЂРєРѕРІРєР°) ===== */
.logistics-block .block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logistics-block .log-toggle {
  background: transparent;
  border: 1px solid var(--walnut, #6B4A2B);
  color: var(--walnut, #6B4A2B);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.logistics-block .log-toggle:active { background: rgba(107, 74, 43, 0.10); }
.logistics-block .log-summary {
  padding: 10px 4px 8px;
  font-size: 13.5px;
  color: var(--ink, #1F1A14);
  line-height: 1.55;
}
.logistics-block .log-summary a {
  color: var(--accent-1, #003E7E);
  text-decoration: underline;
}
.log-dot {
  color: var(--accent-1, #003E7E);
  font-size: 8px;
  vertical-align: middle;
  margin-left: 4px;
}
.logistics-block .log-editor .preferred-options {
  grid-template-columns: 1fr 1fr;
}

/* ===== Р—Р°РјРµСЂ: С„РѕС‚Рѕ СЃ С‚РµРіР°РјРё ===== */
.podbor-header .podbor-help {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  width: 28px;
  text-align: right;
}
.photo-list-tagged {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}
.photo-tagged {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.photo-tagged-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--warm, rgba(107, 74, 43, 0.08));
  border: 1px solid rgba(107, 74, 43, 0.15);
}
.photo-tagged-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-tagged-thumb .photo-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-kind {
  width: 100%;
  padding: 5px 6px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid rgba(107, 74, 43, 0.25);
  background: var(--paper, #FBF7F0);
  color: var(--ink, #1F1A14);
  font-family: var(--font-ui, "Inter", sans-serif);
}

/* ===== Р§РµРє-Р»РёСЃС‚ вЂ” СЃС‚СЂР°РЅРёС†Р° markdown ===== */
.checklist-page .checklist-md {
  font-family: var(--font-ui, "Inter", sans-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink, #1F1A14);
}
.checklist-md h1 { font-family: var(--font-display, "Newsreader", serif); font-size: 22px; margin: 20px 0 10px; font-style: italic; }
.checklist-md h2 { font-family: var(--font-display, "Newsreader", serif); font-size: 18px; margin: 18px 0 8px; }
.checklist-md h3 { font-size: 14.5px; font-weight: 600; margin: 14px 0 6px; }
.checklist-md p  { margin: 6px 0; }
.checklist-md ul { margin: 6px 0 6px 6px; padding-left: 14px; }
.checklist-md li { margin: 3px 0; list-style: none; position: relative; padding-left: 22px; }
.checklist-md li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 6px; background: var(--walnut, #6B4A2B); opacity: 0.45; border-radius: 50%; }
.checklist-md li .cl-check { position: absolute; left: 0; top: 0; font-size: 16px; color: var(--walnut, #6B4A2B); line-height: 1.3; }
.checklist-md li:has(.cl-check)::before { display: none; }

/* РђРєС‚РёРІРЅС‹Р№ С‡РµРєР±РѕРєСЃ вЂ” РєР»РёРєР°Р±РµР»СЊРЅС‹Р№ СЃ РїРѕРґСЃРІРµС‚РєРѕР№ */
.checklist-md .cl-item {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 4px 6px 4px 22px;
  border-radius: 6px;
  transition: background 0.12s;
}
.checklist-md .cl-item:active { background: rgba(107, 74, 43, 0.10); }
.checklist-md .cl-item.checked { color: var(--muted, #998877); text-decoration: line-through; }
.checklist-md .cl-item.checked .cl-check {
  color: var(--accent-1, #003E7E);
  text-decoration: none;
  display: inline-block;
}

/* РџСЂРѕРіСЂРµСЃСЃ-Р±Р°СЂ С‡РµРє-Р»РёСЃС‚Р° */
.checklist-progress {
  position: sticky;
  top: 0;
  background: var(--paper, #FBF7F0);
  padding: 10px 0 12px;
  margin: -6px -6px 8px;
  z-index: 5;
  border-bottom: 1px solid rgba(107, 74, 43, 0.12);
}
.cl-pbar {
  height: 3px;
  background: rgba(107, 74, 43, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.cl-pbar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--walnut, #6B4A2B), var(--accent-1, #003E7E));
  transition: width 0.25s ease;
}
.cl-pcount {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 10.5px;
  color: var(--muted, #998877);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  text-align: right;
}
.checklist-md hr { margin: 18px 0; border: none; border-top: 1px dashed rgba(107, 74, 43, 0.25); }
/* Р­СЃРєРёР·С‹-РїРёРєС‚РѕРіСЂР°РјРјС‹ РІ С‡РµРє-Р»РёСЃС‚Рµ */
.checklist-md .cl-pict {
  margin: 14px auto;
  max-width: 320px;
  background: rgba(107, 74, 43, 0.04);
  border: 1px dashed rgba(107, 74, 43, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.checklist-md .cl-pict .zp-svg {
  width: 100%;
  height: auto;
  max-height: 220px;
  display: block;
}
.checklist-md code { background: rgba(107, 74, 43, 0.08); padding: 1px 5px; border-radius: 3px; font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 12.5px; }
.checklist-md strong { color: var(--ink, #1F1A14); }
.checklist-md .cl-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12.5px; }
.checklist-md .cl-table th, .checklist-md .cl-table td { border: 1px solid rgba(107, 74, 43, 0.18); padding: 4px 8px; text-align: left; }
.checklist-md .cl-table th { background: rgba(107, 74, 43, 0.08); font-weight: 600; }

/* ===== Р“Р»Р°РІРЅР°СЏ РјРµРЅРµРґР¶РµСЂР°: СЃРїРёСЃРѕРє В«РќР° СЃРµРіРѕРґРЅСЏВ» ===== */
.today-list { display: flex; flex-direction: column; gap: 6px; }
.inbox-row.overdue {
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.04);
}
.inbox-row.overdue .inbox-time { color: #C0392B; }

/* ===== РљР°Р±РёРЅРµС‚ Р·Р°РјРµСЂС‰РёРєР°: week strip + grouped inbox ===== */

/* Week strip вЂ” Р·Р°РіСЂСѓР·РєР° РїРѕ РґРЅСЏРј */
.cal-strip-block {
  background: var(--card, #fff);
  border: 1px solid rgba(107, 74, 43, 0.12);
  border-radius: 14px;
  padding: 12px 10px 10px;
  margin-bottom: 14px;
}
.cal-strip-head {
  font-family: var(--font-display, "Newsreader", serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink, #1F1A14);
  text-align: center;
  margin-bottom: 10px;
  text-transform: capitalize;
}
.cal-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 2px 8px;
  border-radius: 8px;
  background: var(--paper, #FBF7F0);
  border: 1px solid transparent;
  position: relative;
}
.cal-day.today {
  border-color: var(--walnut, #6B4A2B);
  background: var(--warm, rgba(107, 74, 43, 0.08));
}
.cal-day.past { opacity: 0.5; }
.cal-day-name {
  font-size: 9px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #998877);
  margin-bottom: 2px;
}
.cal-day-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1F1A14);
  line-height: 1;
}
.cal-day.today .cal-day-num { color: var(--walnut, #6B4A2B); }
.cal-day-bar {
  width: 18px;
  height: 28px;
  margin: 6px 0 4px;
  background: rgba(107, 74, 43, 0.08);
  border-radius: 3px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.cal-day-bar .bar {
  width: 100%;
  border-radius: 3px;
  transition: height 0.25s ease;
}
.cal-day-bar .bar.load-zero { background: transparent; }
.cal-day-bar .bar.load-low { background: rgba(107, 74, 43, 0.5); }
.cal-day-bar .bar.load-mid { background: var(--walnut, #6B4A2B); }
.cal-day-bar .bar.load-hot { background: #C0392B; }
.cal-day-count {
  font-size: 10px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  color: var(--muted, #998877);
  letter-spacing: 0.04em;
}

/* Grouped inbox */
.inbox-group { margin-bottom: 14px; }
.inbox-group-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1F1A14);
  letter-spacing: 0.01em;
}
.inbox-group-head .count {
  font-size: 11px;
  color: var(--muted, #998877);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-weight: 400;
}
.inbox-group-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.inbox-row {
  display: flex;
  gap: 8px;
  background: var(--card, #fff);
  border: 1px solid rgba(107, 74, 43, 0.14);
  border-radius: 10px;
  overflow: hidden;
}
.inbox-row-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  min-width: 0;
}
.inbox-row-main:active { background: rgba(107, 74, 43, 0.06); }
.inbox-time {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 13px;
  font-weight: 600;
  color: var(--walnut, #6B4A2B);
  min-width: 50px;
  text-align: center;
}
.inbox-row-body { flex: 1; min-width: 0; }
.inbox-client {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #1F1A14);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-addr {
  font-size: 12px;
  color: var(--muted, #998877);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-arrow {
  color: var(--muted, #998877);
  font-size: 18px;
}
.inbox-call {
  display: grid;
  place-items: center;
  width: 44px;
  background: rgba(39, 174, 96, 0.08);
  color: #27AE60;
  text-decoration: none;
  font-size: 18px;
  flex-shrink: 0;
  border-left: 1px solid rgba(107, 74, 43, 0.12);
}
.inbox-call:active { background: rgba(39, 174, 96, 0.18); }

/* ===== РљР°Р±РёРЅРµС‚ СЃРѕС‚СЂСѓРґРЅРёРєР° (Р·Р°РјРµСЂС‰РёРє/СЃР±РѕСЂС‰РёРє) ===== */
.staff-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 4px 22px;
}
.staff-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--walnut, #6B4A2B);
  color: var(--paper, #FBF7F0);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  font-family: var(--font-display, "Newsreader", serif);
}
.staff-no-role {
  padding: 32px 16px;
  text-align: center;
}
.staff-no-role-ico {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.staff-no-role .block {
  margin-top: 18px;
  text-align: left;
}
.staff-no-role code {
  background: var(--warm, rgba(107, 74, 43, 0.08));
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px;
}

/* ===== Р¤РѕС‚Рѕ Р·Р°РјРµСЂР° ===== */
.photo-uploader { margin: 12px 0 14px; }

.photo-add-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--warm);
  border: 1px dashed var(--walnut);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.photo-add-btn:active { background: rgba(107, 74, 43, 0.08); }
.photo-add-ico {
  font-size: 24px;
  font-weight: 300;
  color: var(--walnut);
  line-height: 1;
}
.photo-add-label {
  flex: 1;
  font-weight: 500;
  color: var(--ink);
}
.photo-add-hint {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.photo-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--warm);
  border: 1px solid rgba(107, 74, 43, 0.15);
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-rm:active { background: rgba(0, 0, 0, 0.75); }
.photo-tile.static { cursor: default; }

/* ===== РљР°СЂС‚РѕС‡РєР° Р·Р°РјРµСЂР° (РґРµС‚Р°Р»СЊРЅР°СЏ СЃС‚СЂР°РЅРёС†Р°) ===== */
.measurement-detail-head {
  margin-bottom: 18px;
}
.measurement-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
}
.measurement-kv-grid {
  display: grid;
  gap: 10px 16px;
  grid-template-columns: minmax(120px, 1fr) 2fr;
  margin: 14px 0 18px;
  font-size: 14px;
}
.measurement-kv-grid .k {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.measurement-kv-grid .v { color: var(--ink); }

/* ===== РљРЅРѕРїРєР° "РЎРєР°С‡Р°С‚СЊ PDF" / "РџРµС‡Р°С‚СЊ" ===== */
.report-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 16px;
  background: var(--warm);
  border: 1px solid var(--walnut);
  border-radius: 10px;
  color: var(--walnut);
  font-weight: 500;
  cursor: pointer;
  font-size: 13.5px;
}
.report-print-btn:active { background: rgba(107, 74, 43, 0.12); }

/* ===== РљР°СЂС‚РѕС‡РєРё В«Р—Р°РјРµСЂ РіРѕС‚РѕРІ вЂ” С‡С‚Рѕ СЃ РїРѕРґР±РѕСЂРѕРј?В» РЅР° РіР»Р°РІРЅРѕР№ РјРµРЅРµРґР¶РµСЂР° ===== */
.pending-card {
  background: var(--card, #FFFFFF);
  border: 1px solid var(--line, rgba(15,15,14,0.08));
  border-left: 3px solid #76BD22;
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(15, 15, 14, 0.04);
}
.pending-card.later {
  border-left-color: #B07E00;
  background: rgba(176, 126, 0, 0.04);
}
.pending-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pending-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.pending-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.25;
}
.pending-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}
.pending-question {
  font-size: 14px;
  color: var(--ink-2, #2A2622);
  line-height: 1.35;
  padding: 2px 0 0 32px;
}
.pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 32px;
}
.pending-actions .btn-primary,
.pending-actions .btn-secondary {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 14px;
  font-size: 13px;
}
.pending-result {
  font-size: 12px;
  color: var(--muted);
  padding-left: 32px;
  min-height: 0;
}
.pending-result:empty { display: none; }

/* ===== Р—Р°РіСЂСѓР·РєР° DWG/С‡РµСЂС‚РµР¶РµР№ Р·Р°РјРµСЂР° ===== */
.design-upload {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--line-strong, rgba(15,15,14,0.16));
  border-radius: 10px;
  background: var(--paper-2, #F0EDE5);
}
.design-upload-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
  display: block;
}
.design-upload-input {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
.design-upload-status {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  min-height: 0;
}
.design-files-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.design-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  padding: 6px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.design-file-item .design-file-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.design-file-item .design-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}
.design-file-item .design-file-size {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

/* ===== РўСѓР»Р±Р°СЂ СѓРїСЂР°РІР»РµРЅРёСЏ РєР°СЂС‚РѕС‡РєРѕР№ РєР»РёРµРЅС‚Р° вЂ” РѕР±СЉС‘РјРЅС‹Рµ РєРЅРѕРїРєРё ===== */
.client-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 4px;
  align-items: stretch;
}
.client-toolbar.is-locked {
  grid-template-columns: 1fr; /* С‚РѕР»СЊРєРѕ В«Р РµРґР°РєС‚РёСЂРѕРІР°С‚СЊВ», РєРѕРіРґР° РІ СЂР°Р±РѕС‚Рµ */
}

.ct-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 13px;
  font-family: var(--font-ui, "Inter", system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FBF7F0;
  cursor: pointer;
  text-transform: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.ct-btn .ct-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.18));
}

/* Edit вЂ” РіР»СѓР±РѕРєРёР№ РѕСЂРµС… */
.ct-edit {
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.00) 36%,
      rgba(0,0,0,0.00) 64%,
      rgba(0,0,0,0.16) 100%),
    linear-gradient(180deg, #8A6541 0%, #6B4A2B 55%, #523620 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 3px 8px rgba(82, 54, 32, 0.32),
    0 1px 2px rgba(0, 0, 0, 0.12);
}
.ct-edit:hover { filter: brightness(1.04); }
.ct-edit:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 2px 4px rgba(0,0,0,0.22),
    0 1px 2px rgba(0,0,0,0.10);
}

/* Delete вЂ” Р±Р»Р°РіРѕСЂРѕРґРЅС‹Р№ РєРёСЂРїРёС‡РЅРѕ-РєСЂР°СЃРЅС‹Р№, РЅРµ В«Р°Р»СЏСЂРјВ» */
.ct-delete {
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.00) 36%,
      rgba(0,0,0,0.00) 64%,
      rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, #C95A4A 0%, #A6382A 55%, #832418 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 3px 8px rgba(131, 36, 24, 0.30),
    0 1px 2px rgba(0, 0, 0, 0.12);
}
.ct-delete:hover { filter: brightness(1.05); }
.ct-delete:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 2px 4px rgba(0,0,0,0.22),
    0 1px 2px rgba(0,0,0,0.10);
}

.ct-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  filter: saturate(0.7);
  transform: none;
}

.ct-hint {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--muted, #998877);
  text-align: center;
  letter-spacing: 0.01em;
  margin-top: 2px;
  line-height: 1.3;
}
.ct-result { grid-column: 1 / -1; min-height: 0; font-size: 12.5px; }
.ct-result:empty { display: none; }
.ct-ok  { color: #4A8016; font-weight: 500; }
.ct-err { color: #A6382A; font-weight: 500; }

/* ===== РЎРІРѕСЂР°С‡РёРІР°РµРјС‹Рµ Р±Р»РѕРєРё (С…СЂРѕРЅРѕР»РѕРіРёСЏ Рё С‚.Рї.) ===== */
.client-collapse {
  /* СѓР±РёСЂР°РµРј РґРµС„РѕР»С‚РЅС‹Р№ РјР°СЂРєРµСЂ */
}
.client-collapse > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 6px;
  user-select: none;
}
.client-collapse > summary::-webkit-details-marker { display: none; }
.client-collapse > summary.collapse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.client-collapse .collapse-chev {
  display: inline-block;
  color: var(--muted, #998877);
  font-size: 22px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}
.client-collapse[open] .collapse-chev { transform: rotate(-90deg); }

/* ===== РЎР±РѕСЂРєРё (Phase 4) ===== */
.assembly-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}
.assembly-card {
  background: var(--card, #FFFFFF);
  border: 1px solid var(--line, rgba(15,15,14,0.08));
  border-left: 3px solid #B07E00;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.assembly-card:active {
  transform: scale(0.98);
}
.assembly-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.assembly-card-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #998877);
  text-transform: lowercase;
}
.assembly-card-date {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono, monospace);
}
.assembly-card-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}
.assembly-card-address {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.assembly-card-scope {
  font-size: 12.5px;
  color: var(--ink-2, #2A2622);
  line-height: 1.35;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

/* ===== РџРѕРёСЃРє РїРѕ СЃРїРёСЃРєСѓ РєР»РёРµРЅС‚РѕРІ ===== */
.client-search-wrap {
  padding: 0 0 10px;
}
.client-search {
  width: 100%;
  padding: 10px 14px;
  background: var(--paper, #FBF7F0);
  border: 1.5px solid rgba(107,74,43,0.18);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink, #1F1A14);
  box-sizing: border-box;
  -webkit-appearance: none;
}
.client-search:focus {
  outline: none;
  border-color: var(--walnut, #6B4A2B);
  background: white;
}
.client-search::placeholder { color: var(--muted, #998877); }
.client-search-meta { transition: color 0.15s; }

/* ===== РџРѕР»СЏ Р°РґСЂРµСЃР° (addr-grid) ===== */
.addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.addr-grid .field { margin: 0; }
.addr-house     { grid-column: 1; }
.addr-apt       { grid-column: 2; }
.addr-entrance  { grid-column: 1; }
.addr-floor     { grid-column: 2; }
.field-sublabel {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted, #998877);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.geo-status {
  font-size: 12.5px;
  line-height: 1.4;
  min-height: 18px;
  margin-top: 5px;
}
.geo-ok   { color: #27AE60; }
.geo-warn { color: #C0392B; }

/* ===== Р—Р°РіСЂСѓР·РєР° С„РѕС‚Рѕ Р·Р°РјРµСЂР° ===== */
.photo-upload-block {}
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.photo-upload-actions {
  display: flex;
  gap: 8px;
}
.photo-upload-actions .btn-primary { flex: 2; }
.photo-upload-actions .btn-secondary { flex: 1; }

/* ===== РЎС‚Р°С‚СѓСЃ Р·Р°РјРµСЂР° ===== */
.mz-status-badge {
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0;
}
.mz-status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}
.mz-status-btn { flex: 1; min-width: 120px; }
.ct-ok  { color: #27AE60; font-size: 13px; }
.ct-err { color: #C0392B; font-size: 13px; }

/* ===== РџРёРєРµСЂ РєР»РёРµРЅС‚Р° (Р·Р°РјРµСЂ) ===== */
.client-picker-wrap { margin-bottom: 2px; }
.picker-open-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper, #FBF7F0);
  border: 1.5px dashed rgba(107,74,43,0.28);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--walnut, #6B4A2B);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.picker-open-btn:active { background: rgba(107,74,43,0.06); }
.picker-open-btn .picker-open-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #845A2E 0%, #5C3A1C 100%);
  display: flex; align-items: center; justify-content: center;
  color: #F5DAAA; font-size: 16px;
}
.picker-chosen-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--paper, #FBF7F0);
  border: 1.5px solid rgba(107,74,43,0.22);
  border-radius: 10px;
}
.picker-chosen-info { flex: 1; min-width: 0; }
.picker-chosen-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1F1A14);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker-chosen-sub {
  font-size: 12px;
  color: var(--muted, #998877);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker-change-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid rgba(107,74,43,0.28);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--walnut, #6B4A2B);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.picker-change-btn:active { background: rgba(107,74,43,0.08); }

/* РћРІРµСЂР»РµР№ РїРёРєРµСЂР° */
.client-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(20,15,10,0.45);
  display: flex;
  align-items: flex-end;
}
.picker-sheet {
  width: 100%;
  max-height: 80vh;
  background: var(--bg, #F5EFE6);
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
}
.picker-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line, rgba(107,74,43,0.12));
  flex-shrink: 0;
}
.picker-sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1F1A14);
}
.picker-sheet-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(107,74,43,0.09);
  border: none; border-radius: 50%;
  font-size: 16px; cursor: pointer;
  color: var(--walnut, #6B4A2B);
  font-family: inherit;
}
.picker-search-wrap {
  padding: 10px 14px;
  flex-shrink: 0;
}
.picker-search {
  width: 100%;
  padding: 9px 12px;
  background: white;
  border: 1px solid rgba(107,74,43,0.18);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink, #1F1A14);
  box-sizing: border-box;
}
.picker-search:focus { outline: none; border-color: var(--walnut, #6B4A2B); }
.picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 env(safe-area-inset-bottom, 16px);
}
.picker-row {
  display: flex;
  flex-direction: column;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(107,74,43,0.07);
  transition: background 0.1s;
}
.picker-row:active { background: rgba(107,74,43,0.06); }
.picker-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1F1A14);
}
.picker-row-sub {
  font-size: 12px;
  color: var(--muted, #998877);
  margin-top: 1px;
}
.picker-empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted, #998877);
  font-size: 14px;
}

/* ===== РџРµС‡Р°С‚СЊ / PDF ===== */
@media print {
  body { background: white !important; color: black !important; }
  body.has-bottom-nav, #bottom-nav,
  .podbor-header,
  .podbor-progress,
  .podbor-cta-row,
  .podbor-back,
  .report-actions,
  .report-print-btn,
  .util-link,
  .photo-add-btn,
  .photo-uploader,
  .photo-rm,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }
  .podbor-screen,
  .podbor-step,
  .block,
  .summary-block,
  .client-detail-head,
  .lead-detail-head,
  .measurement-detail-head {
    box-shadow: none !important;
    border: none !important;
    background: white !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .display-title { color: black !important; }
  .display-title .accent { color: #6B4A2B !important; }
  .photo-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .photo-tile { border: 1px solid #ccc; }
  .report-matrix table { font-size: 10pt; }
  a { color: black !important; text-decoration: none !important; }
  /* РЎРєСЂС‹РІР°РµРј СЃС‚СЂРµР»РєРё Рё РёРєРѕРЅРєРё РЅР°РІРёРіР°С†РёРё */
  .lead-arrow, .client-arrow { display: none !important; }
}

/* ============================================================
   РџРѕРґР±РѕСЂ С‚РµС…РЅРёРєРё вЂ” С†РёРєР» СЃРѕРіР»Р°СЃРѕРІР°РЅРёСЏ (Proposals)
   ============================================================ */

/* ----- Common helpers ----- */
.prop-muted {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

/* Radio chips (brief form) */
.prop-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.prop-chip {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.12s;
}
.prop-chip:active { transform: scale(0.97); }
.prop-chip.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Field groups inside proposal forms */
.prop-field-group {
  margin-bottom: 16px;
}
.prop-field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.prop-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-tag);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
}
.prop-input:focus { outline: none; border-color: var(--walnut); }
.prop-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-tag);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.two-col-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Status chip / badge */
.prop-status-chip, .prop-status-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  border: 1px solid;
  white-space: nowrap;
}
.prop-status-chip.brief, .prop-status-badge.brief { color: #6B4A2B; border-color: #6B4A2B; background: var(--warm); }
.prop-status-chip.draft, .prop-status-badge.draft { color: var(--muted); border-color: var(--line-strong); background: var(--paper-2); }
.prop-status-chip.sent,  .prop-status-badge.sent  { color: #1A62B0; border-color: #1A62B0; background: rgba(26,98,176,0.06); }
.prop-status-chip.reviewed, .prop-status-badge.reviewed { color: #27AE60; border-color: #27AE60; background: rgba(39,174,96,0.08); }
.prop-status-chip.done, .prop-status-badge.done { color: var(--muted); border-color: var(--line); background: var(--paper-2); }

/* ----- CLIENT: waiting screen ----- */
.prop-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  gap: 12px;
}
.prop-waiting-icon { font-size: 48px; line-height: 1; }
.prop-waiting-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.prop-waiting-text {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 280px;
}

/* ----- CLIENT: category block ----- */
.prop-cats { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }

.prop-cat-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prop-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.prop-cat-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  flex: 1;
}
.prop-cat-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.prop-variants-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ----- CLIENT: variant card ----- */
.prop-variant-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--card, #FFFCF6);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: border-color 0.15s, background 0.15s;
}
.prop-variant-card.voted-yes { border-color: #27AE60; background: rgba(39,174,96,0.05); }
.prop-variant-card.voted-no  { border-color: rgba(192,57,43,0.35); background: rgba(192,57,43,0.04); }

.prop-variant-img {
  width: 80px; height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--warm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.prop-variant-img img { width: 100%; height: 100%; object-fit: contain; }
.prop-variant-img.placeholder {
  background: repeating-linear-gradient(45deg, var(--warm), var(--warm) 5px, #F0E8D5 5px, #F0E8D5 10px);
}
.prop-variant-img.placeholder::after { content: "рџ“·"; font-size: 22px; opacity: 0.35; }

.prop-variant-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.prop-variant-name {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.prop-variant-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.prop-variant-mgr-note {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
}
.prop-variant-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--walnut);
  text-decoration: none;
  border-bottom: 1px dashed var(--walnut);
  align-self: flex-start;
  transition: opacity 0.12s;
}
.prop-variant-link:active { opacity: 0.7; }

/* Vote row */
.prop-vote-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.prop-vote-btn {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}
.prop-vote-btn:active { transform: scale(0.97); }
.prop-vote-btn.yes.active { background: rgba(39,174,96,0.12); border-color: #27AE60; color: #1A7A42; }
.prop-vote-btn.no.active  { background: rgba(192,57,43,0.10); border-color: rgba(192,57,43,0.5); color: #8C3F1E; }
.prop-vote-result {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}

/* Source badge */
.prop-source-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  border: 1px solid;
  color: var(--muted);
  border-color: var(--line-strong);
  background: var(--paper-2);
}
.prop-source-badge.dns      { color: #C26C00; border-color: #FA9300; }
.prop-source-badge.wb       { color: #CB11AB; border-color: #CB11AB; }
.prop-source-badge.ozon     { color: #0044CC; border-color: #0044CC; }
.prop-source-badge.citilink { color: #B57E00; border-color: #FFBA00; }
.prop-source-badge.yamarket { color: #C0341C; border-color: #FC3F1D; }

/* Reviewed note */
.prop-reviewed-note {
  background: rgba(39,174,96,0.07);
  border: 1px solid #27AE60;
  border-radius: var(--r-card);
  padding: 14px 16px;
  font-size: 14px;
  color: #1A7A42;
  margin-top: 20px;
}
.prop-reviewed-comment {
  font-style: italic;
  color: var(--ink-2);
  margin-top: 8px;
  font-size: 13px;
}

/* ----- MANAGER: status bar ----- */
.prop-mgr-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.prop-mgr-status-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid;
}
.prop-mgr-status-label.brief    { color: #6B4A2B; border-color: #6B4A2B; background: var(--warm); }
.prop-mgr-status-label.draft    { color: var(--muted); border-color: var(--line-strong); background: var(--paper-2); }
.prop-mgr-status-label.sent     { color: #1A62B0; border-color: #1A62B0; background: rgba(26,98,176,0.06); }
.prop-mgr-status-label.reviewed { color: #27AE60; border-color: #27AE60; background: rgba(39,174,96,0.08); }
.prop-mgr-status-label.done     { color: var(--muted); border-color: var(--line); }
.prop-mgr-ts {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Manager: client feedback */
.prop-client-feedback {
  background: rgba(39,174,96,0.06);
  border: 1px solid rgba(39,174,96,0.3);
  border-radius: var(--r-card);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.prop-feedback-head {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1A7A42;
  margin-bottom: 8px;
}
.vote-group { margin-bottom: 8px; }
.vote-group-head {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.vote-group-head.yes { color: #1A7A42; }
.vote-group-head.no  { color: #8C3F1E; }
.vote-item {
  font-size: 12.5px;
  color: var(--ink-2);
  padding-left: 12px;
  line-height: 1.4;
}
.prop-client-comment-block {
  margin-top: 8px;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-2);
  border-left: 2px solid rgba(39,174,96,0.4);
  padding-left: 10px;
}

/* Manager: brief accordion */
.prop-brief-details {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.prop-brief-toggle {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  background: var(--paper-2);
  list-style: none;
  user-select: none;
}
.prop-brief-toggle::-webkit-details-marker { display: none; }
.prop-brief-toggle::before { content: "в–¶ "; font-size: 9px; }
.prop-brief-details[open] .prop-brief-toggle::before { content: "в–ј "; }
.prop-brief-content { padding: 12px 14px; background: var(--paper); }
.brief-rows { display: flex; flex-direction: column; gap: 6px; }
.brief-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 12px;
}
.brief-key {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.brief-val { color: var(--ink); text-align: right; flex: 1; }

/* Manager: categories */
.prop-mgr-cats { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.prop-mgr-cat {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.prop-mgr-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.prop-cat-del-btn {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.12s;
  flex-shrink: 0;
}
.prop-cat-del-btn:hover { opacity: 1; color: #C0392B; }

.prop-mgr-variants { display: flex; flex-direction: column; }
.prop-mgr-variant-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.prop-mgr-variant-row:last-child { border-bottom: none; }
.prop-mgr-variant-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.prop-mgr-variant-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.prop-mgr-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
}
.prop-mgr-variant-comment {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.prop-variant-del-btn {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C3F1E;
  background: none;
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  cursor: pointer;
  transition: background 0.12s;
}
.prop-variant-del-btn:active { background: rgba(192,57,43,0.08); }

.prop-mgr-hint {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 16px 0;
}

/* Manager: add variant form */
.prop-add-form {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-top: 4px;
}
.prop-add-summary {
  display: block;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--walnut);
  cursor: pointer;
  background: var(--warm);
  user-select: none;
  list-style: none;
}
.prop-add-summary::-webkit-details-marker { display: none; }
.prop-add-form[open] .prop-add-summary { border-bottom: 1px solid var(--line); }
.prop-add-body { padding: 14px; background: var(--paper); }

/* Manager: empty state */
.prop-mgr-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
}

/* Proposal section wrapper in client card */
.prop-section {
  margin-top: 8px;
  padding: 0;
}
.prop-section-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.prop-section-open-link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--walnut);
  text-decoration: none;
  border-bottom: 1px dashed var(--walnut);
  transition: opacity 0.12s;
}
.prop-section-open-link:active { opacity: 0.6; }

/* ============================================================
   AI-РїСЂРѕРІРµСЂРєР° РґРѕРіРѕРІРѕСЂР° (Contract Review)
   ============================================================ */

/* Textarea + char counter */
.cr-textarea {
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.55;
  resize: vertical;
  min-height: 160px;
}
.cr-chars {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
  text-align: right;
}

/* Preset question chips */
.cr-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}

/* Thinking animation */
.cr-thinking {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px 18px;
  margin-top: 12px;
}
.cr-thinking-icon {
  font-size: 28px;
  animation: cr-rock 1.6s ease-in-out infinite;
}
@keyframes cr-rock {
  0%, 100% { transform: rotate(-8deg); }
  50%       { transform: rotate(8deg); }
}
.cr-thinking-text {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.cr-thinking-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Analysis output */
.cr-analysis {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.cr-block {
  background: var(--card, #FFFCF6);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px 16px;
}
.cr-block-head {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Summary */
.cr-summary-block { border-left: 3px solid var(--accent-2); }
.cr-summary-text {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

/* Q&A block */
.cr-qa-block { border-left: 3px solid #1A62B0; background: rgba(26,98,176,0.04); }
.cr-qa-answer {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

/* Key-value pairs (payment) */
.cr-kv-list { display: flex; flex-direction: column; gap: 8px; }
.cr-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.cr-kv-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.cr-kv-val {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  flex: 1;
}

/* Deadlines */
.cr-deadlines { display: flex; flex-direction: column; gap: 8px; }
.cr-deadline-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
}
.cr-deadline-label {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
  white-space: nowrap;
}
.cr-deadline-val {
  grid-column: 2;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.cr-deadline-note {
  grid-column: 2;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 1px;
}

/* Risks */
.cr-risks { display: flex; flex-direction: column; gap: 10px; }
.cr-risk {
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid;
}
.cr-risk-high   { background: rgba(192,57,43,0.07);  border-color: #C0392B; }
.cr-risk-medium { background: rgba(230,126,34,0.07); border-color: #E67E22; }
.cr-risk-low    { background: rgba(39,174,96,0.06);  border-color: #27AE60; }
.cr-risk-head {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 4px;
}
.cr-risk-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Recommendations & missing */
.cr-rec-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cr-rec-list li {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
}
.cr-missing-block { border-left: 3px solid var(--muted); background: var(--paper-2); }
.cr-missing-list li { color: var(--muted); }

/* Footer note */
.cr-footer-note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
  padding: 4px 0 8px;
}

/* Raw fallback */
.cr-raw {
  white-space: pre-wrap;
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px 16px;
  margin-top: 12px;
}


