/* HomeOffer UI — единая библиотека дизайн-системы кабинета эксперта.
   Собрана из источника правды: colors_and_type.css + ds.css + app-слой.
   Подключайте как есть и пользуйтесь классами (.ho-btn--primary = альфа-60, и т.д.).
   Полный справочник значений — knowledge-base/projects/homeoffer/kabinet-eksperta-playbook.md */

/* ==================== ТОКЕНЫ + ТИПОГРАФИКА (colors_and_type.css) ==================== */
/* HomeOffer Design System — Colors & Type tokens */

/* -------- Fonts -------- */
@font-face {
  font-family: 'Onest';
  src: url('./fonts/Onest-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* -------- Tokens -------- */
:root {
  /* Brand */
  --ho-primary:        #FFCE60;            /* yellow / accent */
  --ho-primary-dark:   #E6BA57;
  --ho-primary-alpha:  rgba(255, 206, 96, 0.6);
  --ho-yellow-250:     #FFE2A0;            /* soft yellow fill */
  --ho-yellow-alpha35: #F6E5BF;
  --ho-yellow-bg:      #FFEBBE;            /* badge bg */
  --ho-yellow-ink:     #8A6A1F;            /* brown-yellow icon ink on yellow-bg */

  /* Neutrals (Dark = Text / Details) */
  --ho-black:          #000000;
  --ho-grey:           #373737;            /* ui.detailsDark — primary text */
  --ho-grey-alt:       #838383;            /* ui.gray — secondary */
  --ho-grey-light:     #ACACAC;            /* helper / placeholder */
  --ho-grey-stroke:    #EBEBEB;            /* borders */
  --ho-grey-bg:        #F7F7F7;            /* surface-2 */
  --ho-grey-bg-alt:    #F4F4F4;            /* surface-3 */
  --ho-white:          #FFFFFF;

  /* Glass / alphas */
  --ho-glass-white:    rgba(255, 255, 255, 0.62);
  --ho-glass-button:   rgba(255, 255, 255, 0.85);

  /* Semantic */
  --ho-green:          #26C33F;
  --ho-green-light:    rgba(38, 195, 63, 0.18);
  --ho-green-text:     #1a7a2a;            /* статус-текст ok на светлом фоне */
  --ho-red:            #F44444;
  --ho-red-light:      #FFEAEA;
  --ho-red-text:       #c22;               /* статус-текст err на светлом фоне */
  --ho-blue:           #2C7EE7;
  --ho-avito:          #00AAFF;            /* бренд-голубой Авито (src-dot площадки) */

  /* Бренд-цвета внешних площадок (плашки-иконки) */
  --ho-plat-avito:     var(--ho-green);    /* Авито = фирменный зелёный (= --ho-green) */
  --ho-plat-cian:      var(--ho-blue);     /* Циан = фирменный синий (= --ho-blue) */

  /* Дополнительные UI-токены (выведены из сырых hex компонентов) */
  --ho-yellow-text:    #8A6A1F;            /* текст/иконка на жёлтой плашке (step-n, mi-ic) */
  --ho-icon-gold:      #8A6A1F;            /* иконка-ink на жёлтом фоне (= yellow-text/ink) */
  --ho-divider:        #C3C3C3;            /* тонкий разделитель внутри чипов */
  --bg-hover:          #EFEFEF;            /* hover нейтральных кнопок (soft/white/danger) */
  --ho-img-placeholder:#E8E7E7;            /* плейсхолдер изображения offer-card */

  /* Gradient «Новинка» */
  --ho-grad-newchip:   linear-gradient(180deg, #FFEABA 0%, #FEF1B6 100%);

  /* Gradients used by cards / chips */
  --ho-grad-yellow:    linear-gradient(180deg, #FFEBBE 0%, #FFD169 100%);
  --ho-grad-yellow-s:  linear-gradient(180deg, #FFE2A0 0%, #FFD169 100%);
  --ho-grad-dark:      linear-gradient(177deg, #313131 0%, #6F6F6F 100%);

  /* Semantic fg/bg */
  --fg-1: var(--ho-grey);
  --fg-2: #5C5C5C;
  --fg-3: var(--ho-grey-alt);
  --fg-4: var(--ho-grey-light);
  --fg-inv: var(--ho-white);
  --fg-inv-70: rgba(255, 255, 255, 0.7);   /* текст на тёмных карточках, приглушённый */
  --fg-inv-85: rgba(255, 255, 255, 0.85);  /* текст на тёмных карточках, основной */

  --bg-1: var(--ho-white);
  --bg-2: var(--ho-grey-bg);
  --bg-3: var(--ho-grey-bg-alt);
  --bg-dark: var(--ho-grey);

  --border-1: var(--ho-grey-stroke);
  --border-2: #CCCCCC;
  --border-inv-12: rgba(255, 255, 255, 0.12);  /* разделители на тёмных карточках */

  /* Radii */
  --radius-sm: 8px;    /* buttons / inputs */
  --radius-md: 10px;   /* cards / fields */
  --radius-lg: 12px;   /* chips, number bubbles */
  --radius-xl: 20px;   /* step cards */
  --radius-2xl: 30px;  /* strategy / hero cards */
  --radius-pill: 50px;

  /* Shadows */
  --shadow-1: 0 1px 6px 0 rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 10.9px 0 rgba(0, 0, 0, 0.07);
  --shadow-3: 0 4px 23.9px 0 rgba(0, 0, 0, 0.07);
  --shadow-badge: 0 1px 10.9px 0 rgba(0, 0, 0, 0.09);
  --shadow-soft:  0 1px 22.2px 1px rgba(0, 0, 0, 0.055);
  --shadow-up:    0 -6px 24px 0 rgba(0, 0, 0, 0.08);   /* sticky-бар снизу */

  /* Type */
  --font-sans: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Breakpoints (reference only — used by JS) */
  --bp-sm: 390px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1350px;
}

/* -------- Base type -------- */
html, body { font-family: var(--font-sans); color: var(--fg-1); }

/* Semantic type styles (mobile-first, scale up at lg) */
.ho-h1 {
  font-size: 28px; font-weight: 700; line-height: 110%;
  color: var(--fg-1); letter-spacing: -0.01em;
}
@media (min-width: 1024px) { .ho-h1 { font-size: 55px; line-height: 60px; } }

.ho-h2 {
  font-size: 24px; font-weight: 700; line-height: 123%;
  color: var(--fg-1); letter-spacing: -0.005em;
}
@media (min-width: 1024px) { .ho-h2 { font-size: 42px; } }

.ho-h3 {
  font-size: 22px; font-weight: 700; line-height: 120%;
  color: var(--fg-1);
}
@media (min-width: 1024px) { .ho-h3 { font-size: 30px; } }

.ho-h4 {
  font-size: 16px; font-weight: 700; line-height: 130%;
  color: var(--fg-1);
}
@media (min-width: 1024px) { .ho-h4 { font-size: 18px; } }

.ho-lead {
  font-size: 14px; font-weight: 400; line-height: 145%;
  color: var(--fg-1);
}
@media (min-width: 1024px) { .ho-lead { font-size: 20px; } }

.ho-body    { font-size: 15px; font-weight: 400; line-height: 145%; color: var(--fg-1); }
.ho-body-sm { font-size: 14px; font-weight: 400; line-height: 145%; color: var(--fg-1); }
.ho-caption { font-size: 12px; font-weight: 400; line-height: 140%; color: var(--fg-3); }
.ho-overline { font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0.02em; text-transform: none; color: var(--fg-1); }

.ho-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }


/* ==================== ПРИМИТИВЫ ПЛАТФОРМЫ (ds.css) ==================== */
/* =============================================================
   HomeOffer Design System v3.0 — components (ds.css)
   Собрано из реальных preview/* и ui_kits/* файлов.
   Токены берутся из colors_and_type.css — здесь НЕ переопределяются.
   Шрифт Onest, цвета только var(--ho-*), радиусы var(--radius-*),
   тени var(--shadow-*). Hover акцентов = alpha-60 / yellowAlpha35.
   ============================================================= */

/* ---------- BASE RESET ---------- */
*{box-sizing:border-box}
html,body{
  margin:0;padding:0;
  font-family:var(--font-sans);
  color:var(--fg-1);
  background:var(--bg-2);          /* surface-2 для приложений; лендинг переопределяет на --bg-1 */
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.ho-surface-1{background:var(--bg-1)}
.ho-surface-2{background:var(--bg-2)}
.ho-wrap{max-width:1280px;margin:0 auto;padding:0 40px}
@media (max-width:768px){ .ho-wrap{padding:0 16px} }

/* =============================================================
   BUTTONS — из preview/buttons.html (base = src/theme/Button.ts)
   ============================================================= */
.ho-btn{
  all:unset;cursor:pointer;font-family:inherit;
  font-size:14px;font-weight:600;line-height:1;
  min-height:44px;padding:0 20px;          /* touch-target >=44px, нормальный паддинг */
  border-radius:var(--radius-sm);          /* 8px — кнопки по DS */
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  box-sizing:border-box;text-align:center;white-space:nowrap;
  transition:.15s ease;
}
/* Основная кнопка = АЛЬФА-60 (rgba(255,206,96,.6)) — по DS основная во всех панелях. Hover -> yellowAlpha35 (светлее). */
.ho-btn--primary  {background:var(--ho-primary-alpha);color:var(--fg-1)}
.ho-btn--primary:hover  {background:var(--ho-yellow-alpha35)}
.ho-btn--solid    {background:var(--ho-primary);color:var(--fg-1)}    /* сплошной жёлтый — для редких акцентов */
.ho-btn--solid:hover    {background:var(--ho-primary-alpha)}
.ho-btn--alpha60  {background:var(--ho-primary-alpha);color:var(--fg-1)}
.ho-btn--alpha60:hover  {background:var(--ho-yellow-alpha35)}
.ho-btn--alpha35  {background:rgba(255,206,96,.35);color:var(--fg-1)}
.ho-btn--alpha35:hover  {background:var(--ho-primary-alpha)}
.ho-btn--dark     {background:var(--fg-1);color:var(--fg-inv)}
.ho-btn--dark:hover     {opacity:.8}
.ho-btn--soft,
.ho-btn--secondary{background:var(--bg-2);color:var(--fg-1)}
.ho-btn--soft:hover,
.ho-btn--secondary:hover{background:var(--bg-hover)}
.ho-btn--white    {background:var(--ho-white);color:var(--fg-1);box-shadow:var(--shadow-soft)}
.ho-btn--white:hover    {background:var(--bg-hover)}
.ho-btn--outline  {background:var(--ho-white);color:var(--fg-1);box-shadow:inset 0 0 0 1px var(--border-2)}
.ho-btn--outline:hover  {background:var(--bg-2)}
.ho-btn--danger   {background:var(--bg-2);color:var(--ho-red)}
.ho-btn--danger:hover   {background:var(--bg-hover)}
.ho-btn--disabled,
.ho-btn:disabled  {opacity:.6;cursor:not-allowed;pointer-events:none}

/* Крупная CTA-кнопка (лендинг / профиль): height 46–54, radius lg/xl, font 14–15 */
.ho-btn--lg{height:46px;padding:0 22px;font-size:14px;font-weight:600;border-radius:var(--radius-lg)}
.ho-btn--xl{height:54px;padding:0 32px;font-size:15px;font-weight:600;border-radius:var(--radius-lg)}
.ho-btn svg{width:16px;height:16px}

/* Текстовая ссылка-кнопка со стрелкой */
.ho-btn-link{color:var(--fg-1);font-weight:600;font-size:15px;display:inline-flex;align-items:center;gap:6px;padding:8px 4px;cursor:pointer}
.ho-btn-link svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none;transition:transform .15s ease}
.ho-btn-link:hover svg{transform:translateX(3px)}

/* Mini-кнопки в таблицах/строках (offers) */
.ho-mini-btn{
  all:unset;cursor:pointer;font-family:inherit;
  font-size:12px;font-weight:600;height:32px;padding:0 14px;
  border-radius:var(--radius-sm);
  display:inline-flex;align-items:center;justify-content:center;
  transition:.15s ease;
}
.ho-mini-btn--primary{background:var(--ho-primary);color:var(--fg-1)}
.ho-mini-btn--primary:hover{background:var(--ho-primary-alpha)}
.ho-mini-btn--ghost{background:var(--bg-2);color:var(--fg-1)}
.ho-mini-btn--ghost:hover{background:var(--bg-hover)}
.ho-mini-btn--danger{background:var(--bg-2);color:var(--ho-red)}

/* Иконочная кнопка (шапка) */
.ho-ic-btn{
  all:unset;cursor:pointer;width:36px;height:36px;border-radius:var(--radius-md);
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--fg-1);transition:.15s ease;position:relative;
}
.ho-ic-btn:hover{background:var(--bg-2)}
.ho-ic-btn--primary{background:var(--ho-primary)}
.ho-ic-btn--primary:hover{background:var(--ho-primary-alpha)}
.ho-ic-btn img{width:18px;height:18px}
.ho-ic-btn svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ho-ic-btn .ho-badge-dot{position:absolute;top:6px;right:6px;width:8px;height:8px;border-radius:50%;background:var(--ho-red);border:2px solid var(--bg-1)}

/* =============================================================
   CARDS — из preview/cards.html, shadows.html
   ============================================================= */
.ho-card{
  background:var(--bg-1);border-radius:var(--radius-xl);   /* 20px */
  padding:18px;box-shadow:var(--shadow-2);
}
.ho-card--lg{border-radius:var(--radius-2xl);padding:24px}  /* 30px hero/section */
.ho-card--dark{background:var(--ho-grad-dark);color:var(--fg-inv)}
.ho-card--dark .ho-card-text{color:#C0C0C0}
.ho-card-title{font-weight:700;font-size:16px;line-height:130%;margin:0 0 8px}
.ho-card-text{color:var(--fg-2);font-size:13px;line-height:145%;margin:0}

/* Нумерованный бабл (шаги) */
.ho-num{
  width:40px;height:40px;border-radius:var(--radius-lg);   /* 12px */
  background:var(--fg-1);color:var(--fg-inv);
  font-weight:500;font-size:22px;
  display:flex;align-items:center;justify-content:center;margin-bottom:12px;
}
.ho-num--yellow{background:var(--ho-grad-yellow-s);color:var(--fg-1)}

/* Степ-карточка лендинга (radius 20, тень shadow-2) */
.ho-step{
  background:var(--bg-1);border-radius:var(--radius-xl);
  padding:20px;box-shadow:var(--shadow-2);
  display:flex;flex-direction:column;gap:12px;transition:.15s ease;
}
.ho-step:hover{transform:translateY(-3px)}
.ho-step .ho-step-n{width:40px;height:40px;border-radius:var(--radius-lg);background:var(--ho-yellow-bg);color:var(--ho-yellow-text);display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:600}
.ho-step.ho-step--dark{background:var(--ho-grad-dark);color:var(--fg-inv)}
.ho-step.ho-step--dark p{color:rgba(255,255,255,.75)}
.ho-step.ho-step--dark .ho-step-n{background:var(--ho-primary);color:var(--fg-1)}

/* =============================================================
   CHIPS / BADGES — из preview/badges.html, ui_kits
   ============================================================= */
/* SectionBadge — жёлтый pill (фактически radius 8) с тенью badge */
.ho-section-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--ho-yellow-bg);color:var(--fg-1);
  font-weight:700;font-size:14px;line-height:1;
  padding:10px 20px;border-radius:var(--radius-sm);
  box-shadow:var(--shadow-badge);
}
/* Лёгкий жёлтый бейдж секции (лендинг) */
.ho-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--ho-yellow-bg);color:var(--fg-1);
  font-weight:600;font-size:13px;padding:8px 14px;border-radius:var(--radius-md);
}
.ho-badge svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none}

/* «Новинка 🔥» — единственное разрешённое эмодзи */
.ho-new-chip{
  display:inline-flex;align-items:center;gap:4px;
  background:var(--ho-grad-newchip);color:var(--fg-1);
  font-weight:700;font-size:10px;letter-spacing:.04em;
  padding:6px 8px;border-radius:var(--radius-sm);
}

/* Резидент Сколково / составной чип */
.ho-skolk{background:var(--ho-grey-bg-alt);padding:8px 10px;border-radius:var(--radius-lg);display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:14px}
.ho-skolk .ho-dot{width:9px;height:9px;border-radius:50%;background:var(--ho-grad-yellow-s);box-shadow:0 0 4px var(--ho-primary)}
.ho-skolk .ho-sep{width:1px;height:15px;background:var(--ho-divider)}

/* Pill-капсулы для меток/шагов */
.ho-pill{background:var(--ho-yellow-bg);color:var(--fg-1);font-size:11px;font-weight:700;padding:4px 10px;border-radius:var(--radius-pill)}
.ho-path{background:var(--ho-glass-white);padding:8px 14px;border-radius:var(--radius-lg);font-weight:700;color:var(--fg-1);box-shadow:var(--shadow-1);font-size:14px;backdrop-filter:blur(6px)}

/* Спец-чип (специализации, фильтры) */
.ho-chip{display:inline-flex;align-items:center;gap:6px;background:var(--bg-2);padding:7px 12px;border-radius:var(--radius-sm);font-size:13px;font-weight:500;color:var(--fg-1)}
.ho-chip.is-active{background:var(--ho-yellow-bg);font-weight:600}

/* STATUS — pill 50, цвет заливкой (без обводки) */
.ho-status{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:var(--radius-pill);font-size:12px;font-weight:600}
.ho-status--ok{background:var(--ho-green-light);color:var(--ho-green-text)}
.ho-status--err{background:var(--ho-red-light);color:var(--ho-red-text)}
.ho-status--neutral{background:var(--bg-2);color:var(--fg-1)}
.ho-status--new{background:var(--ho-yellow-bg);color:var(--fg-1)}
.ho-status--review{background:var(--bg-2);color:var(--fg-3)}

/* =============================================================
   FORM FIELDS — из preview/form-fields.html
   ============================================================= */
.ho-field{display:flex;flex-direction:column;gap:6px}
.ho-label{font-size:13px;font-weight:500;color:var(--fg-1)}
.ho-input,.ho-textarea,.ho-select{
  font-family:inherit;font-size:14px;color:var(--fg-1);
  height:40px;padding:10px;border-radius:var(--radius-md);     /* 10px */
  border:1px solid var(--border-2);                            /* #CCCCCC */
  background:var(--ho-white);outline:none;width:100%;
  transition:.15s ease;
}
.ho-textarea{height:auto;min-height:96px;resize:vertical}
.ho-select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 10 10' fill='none' stroke='%23838383' stroke-width='1.8'%3E%3Cpath d='M2 4 L5 7 L8 4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px}
.ho-input:focus,.ho-textarea:focus,.ho-select:focus{border-color:var(--ho-primary)}
.ho-input::placeholder,.ho-textarea::placeholder{color:var(--ho-grey-light)}
.ho-input--muted{background:var(--bg-2);border:0}
.ho-input.is-error,.ho-textarea.is-error{border-color:var(--ho-red)}
.ho-hint{font-size:11px;color:var(--fg-3)}
.ho-hint.is-error{color:var(--ho-red)}

/* TOGGLE (переключатель) */
.ho-toggle{position:relative;display:inline-block;width:44px;height:26px;flex-shrink:0}
.ho-toggle input{position:absolute;opacity:0;width:0;height:0}
.ho-toggle .ho-track{position:absolute;inset:0;background:var(--border-2);border-radius:var(--radius-pill);transition:.15s ease;cursor:pointer}
.ho-toggle .ho-track::before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--ho-white);box-shadow:var(--shadow-1);transition:.15s ease}
.ho-toggle input:checked + .ho-track{background:var(--ho-primary)}
.ho-toggle input:checked + .ho-track::before{transform:translateX(18px)}

/* =============================================================
   HEADER / TOPBAR — из ui_kits seller-dashboard + web (светлый)
   ============================================================= */
.ho-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 40px;background:var(--bg-1);
  position:sticky;top:0;z-index:20;
  border-bottom:1px solid var(--border-1);
}
.ho-logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:18px;color:var(--fg-1);letter-spacing:-0.01em}
.ho-logo-mark{width:30px;height:30px;border-radius:var(--radius-md);background:var(--ho-primary);display:flex;align-items:center;justify-content:center}
.ho-logo-mark svg{width:18px;height:18px;fill:var(--fg-1)}
.ho-nav{display:flex;gap:4px;font-size:14px}
.ho-nav a{color:var(--fg-1);font-weight:500;padding:9px 14px;border-radius:var(--radius-md);transition:.15s ease;display:inline-flex;align-items:center;gap:6px}
.ho-nav a:hover{background:var(--bg-2)}
.ho-nav a.active{background:var(--ho-yellow-bg);font-weight:600}
.ho-hdr-actions{display:flex;gap:8px;align-items:center}

/* Hamburger (mobile) */
.ho-burger{display:none;all:unset;cursor:pointer;width:40px;height:40px;border-radius:var(--radius-md);align-items:center;justify-content:center}
.ho-burger:hover{background:var(--bg-2)}
.ho-burger svg{width:22px;height:22px;stroke:var(--fg-1);stroke-width:2;fill:none}
@media (max-width:768px){
  .ho-header{padding:14px 16px}
  .ho-nav{display:none}
  .ho-burger{display:inline-flex}
}
/* Drawer (mobile nav) */
.ho-drawer{position:fixed;inset:0;z-index:60;display:none}
.ho-drawer.is-open{display:block}
.ho-drawer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.4)}
.ho-drawer-panel{position:absolute;top:0;left:0;bottom:0;width:78%;max-width:320px;background:var(--bg-1);padding:20px;box-shadow:var(--shadow-3);display:flex;flex-direction:column;gap:6px}
.ho-drawer-panel a{padding:12px 14px;border-radius:var(--radius-md);font-weight:500;font-size:15px;min-height:44px;display:flex;align-items:center}
.ho-drawer-panel a:hover{background:var(--bg-2)}

/* Dropdown-меню в шапке */
.ho-menu{position:relative}
.ho-menu-panel{position:absolute;top:calc(100% + 8px);left:0;background:var(--bg-1);border-radius:var(--radius-lg);padding:8px;box-shadow:var(--shadow-3);min-width:280px;display:none;z-index:30}
.ho-menu:hover .ho-menu-panel,.ho-menu.is-open .ho-menu-panel{display:block}
.ho-menu-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--radius-md);font-size:14px;font-weight:500;color:var(--fg-1)}
.ho-menu-item:hover{background:var(--bg-2)}
.ho-mi-ic{width:32px;height:32px;border-radius:var(--radius-sm);background:var(--ho-yellow-bg);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--ho-yellow-text)}
.ho-mi-sub{font-size:12px;color:var(--fg-3);font-weight:400;margin-top:1px}

/* =============================================================
   SIDEBAR / ASIDE
   ============================================================= */
.ho-sidebar{
  display:flex;flex-direction:column;gap:4px;
  background:var(--bg-1);border-right:1px solid var(--border-1);
  padding:16px;min-width:240px;
}
.ho-sidebar a{
  display:flex;align-items:center;gap:12px;
  padding:11px 14px;border-radius:var(--radius-md);
  font-size:14px;font-weight:500;color:var(--fg-1);min-height:44px;
  transition:.15s ease;
}
.ho-sidebar a:hover{background:var(--bg-2)}
.ho-sidebar a.active{background:var(--ho-yellow-bg);font-weight:600}
.ho-sidebar a svg,.ho-sidebar a img{width:18px;height:18px;flex-shrink:0}
.ho-aside{display:flex;flex-direction:column;gap:20px;position:sticky;top:92px}
@media (max-width:960px){ .ho-aside{position:static} }

/* =============================================================
   OFFER-CARD — из preview/offer-card.html
   ============================================================= */
.ho-offer-card{background:var(--bg-1);border-radius:var(--radius-xl);padding:14px;box-shadow:var(--shadow-2);max-width:360px}
.ho-offer-card .ho-oc-img{aspect-ratio:16/10;border-radius:var(--radius-lg);background:var(--ho-img-placeholder) center/cover;position:relative}
.ho-offer-card .ho-oc-fav{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;background:var(--ho-glass-button);display:flex;align-items:center;justify-content:center}
.ho-offer-card .ho-oc-fav img{width:18px}
.ho-offer-card .ho-oc-price{display:flex;align-items:baseline;justify-content:space-between;margin-top:12px}
.ho-offer-card .ho-oc-price .v{font-size:22px;font-weight:700}
.ho-offer-card .ho-oc-title{font-size:14px;font-weight:500;line-height:130%;margin:6px 0 4px}
.ho-offer-card .ho-oc-meta{font-size:12px;color:var(--fg-3);display:flex;gap:8px;align-items:center}
.ho-offer-card .ho-oc-meta .ho-dot{width:3px;height:3px;border-radius:50%;background:var(--ho-grey-light);display:inline-block}

/* =============================================================
   TABS — два варианта (сегмент-контрол и жёлтое подчёркивание)
   ============================================================= */
/* Сегмент-контрол (dashboard): таб-актив = белая плитка с тенью */
.ho-tabs{display:flex;gap:4px;background:var(--bg-2);padding:4px;border-radius:var(--radius-md);width:max-content;overflow:auto}
.ho-tab{padding:8px 16px;border-radius:var(--radius-sm);font-size:13px;font-weight:600;color:var(--fg-3);cursor:pointer;white-space:nowrap;transition:.15s ease}
.ho-tab:hover{color:var(--fg-1)}
.ho-tab.active{background:var(--bg-1);color:var(--fg-1);box-shadow:var(--shadow-1)}

/* Жёлтый pill-таб (профиль): актив = жёлтая заливка */
.ho-tabs--pill{background:var(--bg-1);border-radius:var(--radius-lg);padding:4px;box-shadow:var(--shadow-1);width:auto}
.ho-tabs--pill .ho-tab{padding:10px 18px;border-radius:var(--radius-md);font-size:14px}
.ho-tabs--pill .ho-tab.active{background:var(--ho-yellow-bg);color:var(--fg-1);box-shadow:none}

/* Подчёркивание (underline): жёлтая полоса под активным */
.ho-tabs--underline{display:flex;gap:24px;border-bottom:1px solid var(--border-1);padding:0;background:none;border-radius:0;width:auto}
.ho-tabs--underline .ho-tab{padding:12px 2px;border-radius:0;background:none;position:relative;font-size:14px}
.ho-tabs--underline .ho-tab.active{color:var(--fg-1);background:none;box-shadow:none}
.ho-tabs--underline .ho-tab.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--ho-primary);border-radius:var(--radius-pill)}

/* =============================================================
   MODAL — submit = primary, hover alpha-60
   ============================================================= */
.ho-modal{position:fixed;inset:0;z-index:80;display:none;align-items:center;justify-content:center;padding:16px}
.ho-modal.is-open{display:flex}
.ho-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.ho-modal-panel{position:relative;background:var(--bg-1);border-radius:var(--radius-2xl);padding:28px;box-shadow:var(--shadow-3);max-width:480px;width:100%;z-index:1}
.ho-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.ho-modal-title{font-size:20px;font-weight:700;margin:0;color:var(--fg-1)}
.ho-modal-close{all:unset;cursor:pointer;width:32px;height:32px;border-radius:var(--radius-md);display:inline-flex;align-items:center;justify-content:center;color:var(--fg-3)}
.ho-modal-close:hover{background:var(--bg-2);color:var(--fg-1)}
.ho-modal-body{font-size:14px;line-height:1.5;color:var(--fg-2)}
.ho-modal-foot{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}
.ho-modal-foot .ho-btn{padding:0 24px;height:44px}    /* touch-target >=44px */

/* =============================================================
   KPI / STAT TILES — из ui_kits
   ============================================================= */
.ho-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.ho-stat{background:var(--bg-1);border-radius:var(--radius-xl);padding:16px 18px;box-shadow:var(--shadow-2);display:flex;flex-direction:column;gap:6px}
.ho-stat-ic{width:36px;height:36px;border-radius:var(--radius-lg);background:var(--ho-yellow-bg);display:flex;align-items:center;justify-content:center;margin-bottom:4px}
.ho-stat-ic img{width:18px;height:18px}
.ho-stat-v{font-size:22px;font-weight:700;color:var(--fg-1);line-height:1;font-variant-numeric:tabular-nums}
.ho-stat-l{font-size:12px;color:var(--fg-3);font-weight:500}
.ho-stat-trend{font-size:11px;color:var(--ho-green);font-weight:600;margin-top:2px}
.ho-stat.accent{background:var(--ho-yellow-bg);box-shadow:none}
@media (max-width:768px){ .ho-stats{grid-template-columns:repeat(2,1fr)} }

/* =============================================================
   SECTION BLOCK + TABLE / OFFERS ROWS — из seller-dashboard
   ============================================================= */
.ho-section-block{background:var(--bg-1);border-radius:var(--radius-2xl);padding:24px;box-shadow:var(--shadow-2);margin-bottom:20px}
.ho-sb-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}
.ho-sb-head h2{font-size:20px;font-weight:700;margin:0;color:var(--fg-1)}
.ho-sb-head .count{font-size:13px;color:var(--fg-3);margin-left:6px;font-weight:500}

/* Таблица-список (offers): строки-гриды с hover-заливкой */
.ho-rows{display:flex;flex-direction:column;gap:8px}
.ho-row{display:grid;grid-template-columns:44px 1fr auto auto auto;gap:14px;align-items:center;padding:12px;border-radius:var(--radius-lg);transition:.15s ease}
.ho-row:hover{background:var(--bg-2)}
.ho-row-avatar{width:44px;height:44px;border-radius:50%;background:var(--bg-3) center/cover}
.ho-row-name{font-size:14px;font-weight:600;color:var(--fg-1)}
.ho-row-meta{font-size:12px;color:var(--fg-3);margin-top:2px}
.ho-row-price{font-size:16px;font-weight:700;color:var(--fg-1);font-variant-numeric:tabular-nums;text-align:right}
.ho-row-price.is-best{color:var(--ho-green)}
.ho-row-actions{display:flex;gap:6px}

/* Классическая таблица */
.ho-table{width:100%;border-collapse:collapse;font-size:14px}
.ho-table th{text-align:left;font-size:12px;font-weight:600;color:var(--fg-3);padding:10px 12px;border-bottom:1px solid var(--border-1)}
.ho-table td{padding:14px 12px;border-bottom:1px solid var(--border-1);color:var(--fg-1)}
.ho-table tr:last-child td{border-bottom:none}
.ho-table tbody tr:hover{background:var(--bg-2)}

/* =============================================================
   STRATEGY / DARK FORMULA / HERO-GRADIENT CARDS
   ============================================================= */
.ho-strategy{border-radius:var(--radius-2xl);padding:30px}
.ho-strategy--light{background:var(--ho-grad-yellow)}
.ho-strategy--dark{background:var(--ho-grad-dark);color:var(--fg-inv)}
.ho-strategy--dark p{color:rgba(255,255,255,.85)}

/* Прогресс-этапы сделки */
.ho-stage{display:grid;grid-template-columns:24px 1fr auto;gap:12px;align-items:center;padding:10px 0;position:relative}
.ho-stage:not(:last-child)::after{content:'';position:absolute;left:11px;top:28px;width:2px;height:calc(100% - 20px);background:var(--border-1)}
.ho-stage.done:not(:last-child)::after{background:var(--ho-green)}
.ho-stage-dot{width:24px;height:24px;border-radius:50%;background:var(--bg-2);border:2px solid var(--border-1);display:flex;align-items:center;justify-content:center;z-index:1;flex-shrink:0}
.ho-stage.done .ho-stage-dot{background:var(--ho-green);border-color:var(--ho-green)}
.ho-stage.done .ho-stage-dot::after{content:'';width:8px;height:8px;border-radius:50%;background:var(--bg-1)}
.ho-stage.current .ho-stage-dot{background:var(--ho-primary);border-color:var(--ho-primary)}
.ho-stage.current .ho-stage-dot::after{content:'';width:8px;height:8px;border-radius:50%;background:var(--fg-1)}
.ho-stage-label{font-size:13px;font-weight:500;color:var(--fg-1)}
.ho-stage.done .ho-stage-label{color:var(--fg-3)}
.ho-stage-date{font-size:11px;color:var(--fg-4)}

/* Таймер */
.ho-timer-chip{display:inline-flex;align-items:center;gap:8px;background:var(--ho-primary);color:var(--fg-1);padding:10px 16px;border-radius:var(--radius-lg);font-weight:700;font-size:14px;box-shadow:var(--shadow-badge)}
.ho-timer-blocks{display:flex;gap:8px}
.ho-tb{background:var(--bg-2);padding:10px 14px;border-radius:var(--radius-md);text-align:center;min-width:62px}
.ho-tb-v{font-size:22px;font-weight:700;line-height:1;color:var(--fg-1);font-variant-numeric:tabular-nums}
.ho-tb-l{font-size:11px;color:var(--fg-3);margin-top:4px;font-weight:500}

/* =============================================================
   RESPONSIVE GRID HELPERS
   ============================================================= */
.ho-grid-main{display:grid;grid-template-columns:1fr 360px;gap:24px;align-items:start}
@media (max-width:960px){ .ho-grid-main{grid-template-columns:1fr} }

/* =============================================================
   SHELL (shell.js) — единый топбар + сайдбар + футер.
   Строго на токенах DS. Кнопки используют .ho-btn (не переопределяем).
   ============================================================= */

/* ---------- TOPBAR (светлый, sticky) ---------- */
.ho-topbar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:12px 40px;background:var(--bg-1);
  position:sticky;top:0;z-index:40;
  border-bottom:1px solid var(--border-1);
  min-height:64px;
}
.ho-topbar-left,.ho-topbar-right{display:flex;align-items:center;gap:12px}
.ho-topbar-burger{display:inline-flex}
@media (max-width:768px){ .ho-topbar{padding:10px 16px;gap:10px} }

/* Роль-переключатель (toggle, фикс. ширина — без скачка вёрстки) */
.ho-role-toggle{display:flex;gap:4px;background:var(--bg-2);padding:4px;border-radius:var(--radius-md)}
.ho-role-tab{
  all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;justify-content:center;
  min-width:104px;height:36px;padding:0 14px;border-radius:var(--radius-sm);
  font-size:13px;font-weight:600;color:var(--fg-3);box-sizing:border-box;transition:.15s ease;
}
.ho-role-tab:hover{color:var(--fg-1)}
.ho-role-tab.is-active{background:var(--ho-yellow-bg);color:var(--fg-1);box-shadow:var(--shadow-1)}
.ho-role-ic svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none}
@media (max-width:1280px){ .ho-role-tab .ho-role-lbl{display:none} .ho-role-tab{min-width:44px;padding:0} }
@media (max-width:960px){ .ho-role-toggle{display:none} }

/* Котировки */
.ho-quotes{display:flex;align-items:center;gap:12px;padding-left:4px}
.ho-quote{font-size:13px;color:var(--fg-3);font-variant-numeric:tabular-nums;white-space:nowrap}
.ho-quote b{color:var(--fg-1);font-weight:700;margin-right:2px}
@media (max-width:1180px){ .ho-quotes{display:none} }

/* Кошелёк AI-токенов */
.ho-wallet{
  all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:8px;
  height:36px;padding:0 14px;border-radius:var(--radius-pill);
  background:var(--ho-yellow-bg);color:var(--fg-1);font-size:13px;font-weight:700;
  transition:.15s ease;
}
.ho-wallet:hover{background:var(--ho-primary-alpha)}
.ho-wallet svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none}
@media (max-width:768px){ .ho-wallet .ho-wallet-v{display:none} .ho-wallet{padding:0;width:36px;justify-content:center} }

/* Аватар */
.ho-avatar{
  width:36px;height:36px;border-radius:50%;background:var(--bg-2);
  display:inline-flex;align-items:center;justify-content:center;color:var(--fg-1);transition:.15s ease;
}
.ho-avatar:hover{background:var(--bg-hover)}
.ho-avatar svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none}

/* ---------- SHELL LAYOUT (cabinet) ---------- */
.ho-has-shell{padding-bottom:0}
.ho-shell-layout{display:grid;grid-template-columns:248px 1fr;align-items:start}
.ho-shell-main{min-width:0}
body.ho-side-collapsed .ho-shell-layout{grid-template-columns:0 1fr}
body.ho-side-collapsed .ho-side{display:none}
@media (max-width:960px){ .ho-shell-layout{grid-template-columns:1fr} }

/* ---------- SIDEBAR ---------- */
.ho-side{
  position:sticky;top:64px;align-self:start;
  height:calc(100vh - 64px);overflow-y:auto;
  background:var(--bg-1);border-right:1px solid var(--border-1);
  padding:16px 12px;
}
.ho-side-nav{display:flex;flex-direction:column;gap:2px}
.ho-side-link,.ho-side-grouphead{
  all:unset;box-sizing:border-box;cursor:pointer;
  display:flex;align-items:center;gap:12px;width:100%;
  padding:11px 14px;border-radius:var(--radius-md);
  font-size:14px;font-weight:500;color:var(--fg-1);min-height:44px;transition:.15s ease;
}
.ho-side-link:hover,.ho-side-grouphead:hover{background:var(--bg-2)}
.ho-side-link.active{background:var(--ho-yellow-bg);font-weight:600}
.ho-side-ic{flex-shrink:0;display:inline-flex}
.ho-side-ic svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none}
.ho-side-lbl{flex:1}
.ho-side-caret{display:inline-flex;transition:transform .15s ease;color:var(--fg-3)}
.ho-side-caret svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none}
.ho-side-group.is-open > .ho-side-grouphead .ho-side-caret{transform:rotate(-90deg)}
.ho-side-sub{display:none;flex-direction:column;gap:2px;padding:2px 0 4px 0}
.ho-side-group.is-open .ho-side-sub{display:flex}
.ho-side-sub a{
  display:flex;align-items:center;min-height:40px;
  padding:9px 14px 9px 46px;border-radius:var(--radius-md);
  font-size:13px;font-weight:500;color:var(--fg-2);transition:.15s ease;
}
.ho-side-sub a:hover{background:var(--bg-2);color:var(--fg-1)}
.ho-side-sub a.active{background:var(--ho-yellow-bg);color:var(--fg-1);font-weight:600}

/* ---------- DRAWER (off-canvas, mobile) — расширяет базовый .ho-drawer ---------- */
.ho-shell-drawer .ho-shell-drawer-panel{padding:16px 12px;gap:2px;width:84%;max-width:340px;overflow-y:auto}
.ho-drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;padding:4px}
.ho-shell-drawer .ho-side-nav{display:flex;flex-direction:column;gap:2px}

/* ---------- FOOTER ---------- */
.ho-footer{background:var(--bg-1);border-top:1px solid var(--border-1);margin-top:40px;padding:40px 0 24px}
.ho-shell-public .ho-footer,.ho-has-shell .ho-footer{margin-top:0}
.ho-footer-cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:32px}
.ho-footer-brand{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.ho-footer-tag{font-size:13px;color:var(--fg-3);line-height:145%;margin:0;max-width:260px}
.ho-footer-col{display:flex;flex-direction:column;gap:10px}
.ho-footer-h{font-size:13px;font-weight:700;color:var(--fg-1);margin-bottom:2px}
.ho-footer-col a{font-size:13px;color:var(--fg-3);transition:.15s ease}
.ho-footer-col a:hover{color:var(--fg-1)}
.ho-footer-apps{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.ho-store-badge{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--fg-1);color:var(--fg-inv);
  padding:8px 14px;border-radius:var(--radius-md);min-height:44px;
  transition:.15s ease;width:max-content;
}
.ho-store-badge:hover{opacity:.85}
.ho-store-glyph svg{width:22px;height:22px;color:var(--fg-inv)}
.ho-store-txt{display:flex;flex-direction:column;line-height:1.1}
.ho-store-top{font-size:10px;font-weight:500;opacity:.85}
.ho-store-big{font-size:14px;font-weight:700}
.ho-footer-bottom{display:flex;justify-content:space-between;gap:12px;margin-top:28px;padding-top:18px;border-top:1px solid var(--border-1);font-size:12px;color:var(--fg-4)}
@media (max-width:768px){
  .ho-footer-cols{grid-template-columns:1fr 1fr;gap:24px}
  .ho-footer-brand{grid-column:1 / -1}
  .ho-footer-bottom{flex-direction:column;gap:6px}
}
@media (max-width:480px){ .ho-footer-cols{grid-template-columns:1fr} }


/* ============================================================================
   APP LAYER — контекстные высоты и мобильные тач-таргеты кабинета эксперта.
   Эти правила делают «кнопку нельзя собрать неправильно»: пользуйтесь классами.
   Значения — канон дизайн-системы (см. playbook, раздел 0).
   ============================================================================ */

/* Контейнер страницы */
.page{max-width:1280px;margin:0 auto;padding:0 40px 60px}

/* Высоты кнопок по контексту (база .ho-btn = 44px уже задана выше) */
.page .ho-btn{height:36px;min-height:36px}           /* компактные кнопки страницы */
.dv-body .ho-btn{height:34px;min-height:34px;font-size:12.5px}  /* кнопки в правой панели */

/* Поля ввода — заливка, без обводки; на фокусе рамка primary и белый фон */
.fld{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.fld>label{font-size:12px;font-weight:600;color:var(--fg-2)}
.fld input,.fld select,.fld textarea{
  font-family:inherit;font-size:13.5px;color:var(--fg-1);
  background:var(--bg-2)!important;border:1px solid transparent!important;
  border-radius:var(--radius-md);padding:11px 12px;box-sizing:border-box;width:100%;
}
.fld input:focus,.fld select:focus,.fld textarea:focus{
  outline:none;border-color:var(--ho-primary)!important;background:var(--bg-1)!important;
}

/* Сегмент-переключатель (тип, режимы) — активный = альфа-60 */
.seg2{display:inline-flex;gap:3px;background:var(--bg-2);border-radius:var(--radius-md);padding:3px}
.seg2 button{all:unset;cursor:pointer;font-size:12.5px;font-weight:700;color:var(--fg-3);padding:8px 14px;border-radius:var(--radius-sm)}
.seg2 button.active{background:var(--ho-primary-alpha);color:var(--fg-1)}

/* Чип/пилюля-статус */
.pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;padding:4px 10px;border-radius:var(--radius-pill);background:var(--bg-2);color:var(--fg-2)}

/* ============================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ — все тач-таргеты ≥44px. Десктоп НЕ трогаем.
   ============================================================================ */
@media (max-width:960px){ .ho-side{display:none} }   /* сайдбар прячем, меню в бургер */
@media (max-width:768px){
  .page{padding:0 16px 48px}
  .ctlbar{top:64px}
  .page .ho-btn,.dv-body .ho-btn{height:44px;min-height:44px}   /* тач-таргет */
  .ho-topbar .ho-ic-btn--primary{background:var(--ho-primary-alpha)}  /* первичка альфа-60 и на мобиле */
  .ho-modal-foot{position:sticky;bottom:0;background:var(--bg-1);box-shadow:0 -1px 0 var(--bg-3);padding-bottom:calc(12px + env(safe-area-inset-bottom))}
}
