/* ЛК и ключевые экраны — общая оболочка (Этап 1, согласование макетов) */

.lk-body { background: var(--bg-gray); min-height: 100vh; }

.lk-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}

.lk-top {
  position: sticky; top: 0; z-index: 210;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.lk-top__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-block: 8px;
  box-sizing: border-box;
}
.lk-top__left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.lk-top__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.lk-top__logo img { height: 52px; width: auto; max-width: 200px; object-fit: contain; }
.lk-top__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.lk-top__back:hover { color: var(--olive); }
.lk-top__right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.lk-profile-switch {
  display: flex; align-items: center; gap: 8px;
  max-width: min(320px, 42vw); padding: 6px 12px;
  font-size: 12px; font-weight: 700; color: var(--olive);
  background: var(--olive-light); border-radius: 999px;
  border: 1px solid rgba(56, 65, 42, 0.12);
  text-align: left;
}
.lk-profile-switch > span:not(.lk-profile-switch__text) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-profile-switch__text {
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0; flex: 1; line-height: 1.25; gap: 1px;
}
.lk-profile-switch__role {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 800; color: var(--olive-dark);
}
.lk-profile-switch__sub {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; font-weight: 600; color: var(--muted);
}
.lk-profile-menu__item .lk-profile-switch__text { flex: 1; min-width: 0; }
.lk-profile-switch [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; }

.lk-icon-btn {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  color: var(--muted); border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.lk-icon-btn:hover { color: var(--olive); border-color: var(--olive); }
.lk-icon-btn em {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--terra); font-style: normal;
}

.lk-sidebar {
  padding: 20px 12px 32px;
  background: var(--olive-dark);
  color: rgba(255, 255, 255, 0.75);
}
.lk-sidebar__role {
  margin: 0 12px 16px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--terra);
}
.lk-nav { display: flex; flex-direction: column; gap: 2px; }
.lk-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
}
.lk-nav a [data-lucide] { width: 18px; height: 18px; opacity: 0.85; }
.lk-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lk-nav a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff; font-weight: 700;
}
.lk-nav__sep {
  height: 1px; margin: 12px;
  background: rgba(255, 255, 255, 0.1);
}
.lk-sidebar__cta {
  margin: 16px 8px 0;
}
.lk-sidebar__cta .btn { width: 100%; justify-content: center; }

.lk-main { padding: 28px 32px 48px; min-width: 0; }
.lk-page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 24px;
}
.lk-page-head h1 {
  margin: 0 0 6px;
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--olive-dark);
}
.lk-page-head p { margin: 0; font-size: 14px; color: var(--muted); max-width: 560px; }
.lk-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.lk-breadcrumb a:hover { color: var(--olive); }
.lk-breadcrumb [data-lucide] { width: 14px; height: 14px; }

.lk-grid-2 { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.lk-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lk-grid-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 520px; }

.lk-stat {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.lk-stat strong {
  display: block; font-size: 1.5rem; font-weight: 800;
  color: var(--olive-dark); letter-spacing: -0.02em;
}
.lk-stat span { font-size: 13px; font-weight: 600; color: var(--muted); }
.lk-stat--accent { border-color: rgba(201, 145, 75, 0.35); background: linear-gradient(135deg, #fff 0%, #faf6f3 100%); }

.lk-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.lk-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.lk-panel__head h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.lk-panel__body { padding: 16px 20px 20px; }

.lk-list { display: flex; flex-direction: column; gap: 0; }
.lk-list__row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.lk-list__row:last-child { border-bottom: none; padding-bottom: 0; }
.lk-list__row:first-child { padding-top: 0; }
.lk-list__main { flex: 1; min-width: 0; }
.lk-list__main strong { display: block; font-size: 14px; margin-bottom: 2px; }
.lk-list__main span { font-size: 12px; color: var(--muted); font-weight: 600; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.03em; white-space: nowrap;
}
.badge--published { background: #e3f0ed; color: #2d6a5e; }
.badge--draft { background: var(--bg-gray); color: var(--muted); }
.badge--progress { background: #eef0e8; color: var(--olive); }
.badge--await { background: #fef3eb; color: #a65f3a; }
.badge--done { background: #e8ebe3; color: var(--olive-dark); }
.badge--deal { background: rgba(61, 122, 110, 0.12); color: var(--teal); }

.lk-meta { display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: 13px; color: var(--muted); }
.lk-meta dt { font-weight: 700; color: var(--olive); margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.lk-meta dd { margin: 0; font-weight: 600; color: var(--ink); }

.response-card {
  padding: 18px; margin-bottom: 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  transition: 0.2s;
}
.response-card:last-child { margin-bottom: 0; }
.response-card:hover { border-color: rgba(56, 65, 42, 0.35); box-shadow: var(--shadow); }
.response-card--best { border-color: var(--terra); background: linear-gradient(180deg, #fff 0%, #fdf9f6 100%); }
.response-card__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.response-card__who { display: flex; gap: 12px; align-items: center; }
.response-card__ava {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: var(--olive);
  background: var(--olive-light); border-radius: var(--radius);
}
.response-card__price { text-align: right; }
.response-card__price strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--olive-dark); }
.response-card__price span { font-size: 12px; color: var(--muted); font-weight: 600; }
.response-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.response-card__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.object-hero {
  padding: 22px 24px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--olive-dark) 0%, #222818 100%);
  border-radius: var(--radius-lg); color: #fff;
}
.object-hero h1 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 800; }
.object-hero p { margin: 0; font-size: 14px; opacity: 0.75; }
.object-hero__meta {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px;
  font-size: 13px; font-weight: 600;
}
.object-hero__meta span { display: flex; align-items: center; gap: 6px; opacity: 0.9; }
.object-hero__meta [data-lucide] { width: 16px; height: 16px; color: var(--terra); }
.object-hero .btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.object-hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.lk-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 20px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.lk-tabs button {
  padding: 10px 16px; border-radius: calc(var(--radius-lg) - 4px);
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.lk-tabs button:hover { color: var(--olive); background: var(--bg); }
.lk-tabs button.is-active { background: var(--olive); color: #fff; }

.stage-timeline { display: flex; flex-direction: column; gap: 0; }
.stage-row {
  display: grid; grid-template-columns: 32px 1fr auto;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.stage-row:last-child { border-bottom: none; }
.stage-row__dot {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff;
  background: var(--line); border-radius: 50%;
}
.stage-row--done .stage-row__dot { background: var(--teal); }
.stage-row--active .stage-row__dot { background: var(--terra); box-shadow: 0 0 0 4px rgba(201, 145, 75, 0.28); }
.stage-row--active { background: linear-gradient(90deg, rgba(201,145,75,0.06) 0%, transparent 70%); margin: 0 -20px; padding-left: 20px; padding-right: 20px; border-radius: var(--radius); }
.stage-row h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.stage-row p { margin: 0; font-size: 13px; color: var(--muted); }
.stage-row__sum { font-size: 14px; font-weight: 800; color: var(--olive-dark); white-space: nowrap; }

/* Детальный трек этапов на карточке объекта */
.object-progress {
  margin-bottom: 22px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.object-progress__label {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 10px;
  font-size: 13px; font-weight: 700; color: var(--olive);
}
.object-progress__bar {
  height: 10px; background: var(--bg-gray); border-radius: 999px; overflow: hidden;
}
.object-progress__fill {
  height: 100%; width: 62%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--terra) 100%);
  border-radius: 999px;
}
.object-progress__hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }

.stage-detail {
  margin-bottom: 14px; padding: 18px 20px;
  border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
}
.stage-detail:last-child { margin-bottom: 0; }
.stage-detail--active {
  border-color: rgba(201, 145, 75, 0.45);
  background: linear-gradient(180deg, #fff 0%, #fdf9f6 100%);
  box-shadow: var(--shadow);
}
.stage-detail--done { border-color: rgba(61, 122, 110, 0.25); }
.stage-detail__head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.stage-detail__head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--olive-dark); }
.stage-detail__sum { font-size: 1.1rem; font-weight: 800; color: var(--olive-dark); }
.stage-detail__desc {
  margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--ink);
}
.stage-detail__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px;
  margin-bottom: 14px; padding: 14px; background: var(--bg);
  border-radius: var(--radius); font-size: 13px;
}
.stage-detail__grid dt { margin: 0 0 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.stage-detail__grid dd { margin: 0; font-weight: 700; color: var(--ink); }
.stage-detail__steps { margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.stage-detail__steps li {
  display: flex; align-items: flex-start; gap: 8px; padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.stage-detail__steps li:last-child { border-bottom: none; }
.stage-detail__steps [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--teal); }
.stage-detail__steps li.is-done { color: var(--ink); }
.stage-detail__steps li.is-current { color: var(--olive-dark); font-weight: 800; }
.stage-detail__foot {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .stage-detail__grid { grid-template-columns: 1fr; }
}

.lk-aside-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.lk-aside-card h3 { margin: 0 0 12px; font-size: 14px; font-weight: 800; }
.lk-aside-card dl { margin: 0 0 16px; }
.lk-aside-card dt { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.lk-aside-card dd { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--olive-dark); }

.lk-form-steps {
  display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap;
}
.lk-form-steps span {
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
}
.lk-form-steps span.is-done { background: var(--olive-light); color: var(--olive); border-color: transparent; }
.lk-form-steps span.is-current { background: var(--olive); color: #fff; border-color: var(--olive); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--olive); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--font); font-size: 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--bg); outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--olive); box-shadow: 0 0 0 3px rgba(56, 65, 42, 0.12);
}
.field__hint { margin-top: 6px; font-size: 12px; color: var(--muted); }
.field input:disabled { background: var(--bg-gray); color: var(--muted); cursor: not-allowed; }

.lk-req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .lk-req-grid { grid-template-columns: 1fr; } }

.lk-avatar-remove {
  position: absolute; top: -4px; right: -4px;
  display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--terra); color: #fff; border: 2px solid var(--surface, #fff);
}
.lk-avatar-remove:hover { filter: brightness(0.92); }

/* Карточки подключения новой роли — «Расширить возможности» (Настройки → Профили) */
.lk-role-onboard {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.lk-role-onboard__card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface, #fff);
}
.lk-role-onboard__icon {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--olive-light); color: var(--olive-dark); flex-shrink: 0;
}
.lk-role-onboard__card h4 { margin: 0; font-size: 14px; font-weight: 800; color: var(--ink); }
.lk-role-onboard__card p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); flex: 1; }
.lk-role-onboard__cta {
  width: 100%; align-self: stretch;
  white-space: normal; text-align: center; line-height: 1.35;
  padding: 8px 12px;
}

.lk-group-label {
  display: block;
  margin: 0 0 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}

.lk-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lk-form-note { margin: 0; font-size: 13px; font-weight: 700; }
.lk-form-note--error { color: #b3422f; }
.lk-form-note--ok { color: var(--teal); }

.lk-upload {
  padding: 24px; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--radius-lg);
  background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 600;
}
.lk-upload [data-lucide] { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--terra); }

/* Обзор специалиста — очередь действий */
.lk-action-queue {
  margin-bottom: 28px;
  background: var(--surface);
  border: 1.5px solid rgba(201, 145, 75, 0.4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lk-action-queue__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fdf9f6 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.lk-action-queue__head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--olive-dark); }
.lk-action-queue__count {
  display: inline-flex; min-width: 26px; height: 26px; padding: 0 9px;
  align-items: center; justify-content: center;
  background: var(--terra); color: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 800;
}
.lk-action-queue__body { padding: 6px 8px 10px; }
.lk-action-item {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 12px; border-radius: var(--radius);
}
.lk-action-item + .lk-action-item { border-top: 1px solid var(--line); }
.lk-action-item__icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--radius); background: var(--olive-light); color: var(--olive);
}
.lk-action-item__icon [data-lucide] { width: 20px; height: 20px; }
.lk-action-item--urgent .lk-action-item__icon { background: #fef3eb; color: #a65f3a; }
.lk-action-item strong { display: block; font-size: 14px; margin-bottom: 3px; color: var(--ink); }
.lk-action-item span { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.4; }

.lk-page-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 20px; padding-bottom: 0;
  border-bottom: 2px solid var(--line);
}
.lk-page-tabs a {
  padding: 12px 18px; margin-bottom: -2px;
  font-size: 14px; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.lk-page-tabs a:hover { color: var(--olive); }
.lk-page-tabs a.is-active { color: var(--olive-dark); border-bottom-color: var(--terra); }

.lead-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 16px;
}
.lead-toolbar select {
  padding: 9px 12px; font-family: var(--font); font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.lead-toolbar__hint { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }

.lead-card {
  display: block; padding: 18px 20px; margin-bottom: 10px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lead-card:hover { border-color: rgba(56, 65, 42, 0.35); box-shadow: var(--shadow); }
.lead-card--highlight { border-left: 4px solid var(--teal); }
.lead-card__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.lead-card__title { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.35; color: var(--olive-dark); }
.lead-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lead-card__tag {
  font-size: 11px; font-weight: 700; color: var(--olive);
  padding: 4px 8px; background: var(--olive-light); border-radius: 6px;
}
.lead-card__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.lead-card__budget { font-size: 15px; font-weight: 800; color: var(--olive-dark); }
.lead-card__meta { font-size: 12px; font-weight: 600; color: var(--muted); }

.lead-detail-layout {
  display: grid; grid-template-columns: 1fr min(340px, 100%);
  gap: 24px; align-items: start;
}
.lk-offer-panel {
  position: sticky; top: 72px;
  padding: 20px;
  background: linear-gradient(180deg, #fff 0%, #fdf9f6 100%);
  border: 1.5px solid rgba(201, 145, 75, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.lk-offer-panel h2 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; }
.lk-offer-panel > .lk-offer-panel__lead { margin: 0 0 16px; font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.45; }

.response-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.response-row:last-child { border-bottom: none; }
.response-row:hover strong { color: var(--olive); }
.response-row__main { flex: 1; min-width: 0; }
.response-row__main strong { display: block; font-size: 15px; margin-bottom: 4px; }
.response-row__main span { font-size: 13px; color: var(--muted); font-weight: 600; }
.response-row__price { text-align: right; white-space: nowrap; }
.response-row__price strong { display: block; font-size: 15px; font-weight: 800; color: var(--olive-dark); }
.response-row__price span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }

@media (max-width: 900px) {
  .lead-detail-layout { grid-template-columns: 1fr; }
  .lk-offer-panel { position: static; }
  .lk-action-item { grid-template-columns: auto 1fr; }
  .lk-action-item .btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .lead-toolbar__hint { margin-left: 0; width: 100%; }
}

.lk-product-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.lk-product-row:last-child { border-bottom: none; }
@media (min-width: 768px) {
  .lk-product-row {
    grid-template-columns: 52px 1fr 100px 120px 120px auto;
  }
}
.lk-product-row__thumb {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--bg-gray);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--muted);
}
.lk-product-row__thumb [data-lucide] { width: 22px; height: 22px; }
.lk-product-row__main strong { display: block; font-size: 14px; margin-bottom: 2px; }
.lk-product-row__main span { font-size: 12px; color: var(--muted); font-weight: 600; }
.lk-product-row__price { font-size: 13px; font-weight: 700; text-align: right; }
.lk-product-row__price small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.lk-product-row__stock { font-size: 14px; font-weight: 800; text-align: right; }
.lk-product-row__stock small {
  display: block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); margin-bottom: 2px;
}
.lk-product-row__stock--low { color: #a65f3a; }
.lk-product-row__stock--out { color: var(--muted); }

/* Подпись-разделитель группы разделов по роли в едином меню сайдбара (ролей может быть
   несколько одновременно — роль и профиль/тип лица независимы, ТЗ п. 4–5, переключать
   в сайдбаре нечего, единственный переключатель — по профилю, в шапке). */
.lk-nav__group-label {
  display: block;
  margin: 16px 12px 4px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.lk-nav > .lk-nav__group-label:first-child,
.lk-nav > div:first-child .lk-nav__group-label { margin-top: 4px; }

/* Пункт меню без готовой страницы (появится на след. этапах) — не кликабелен */
.lk-nav span.is-soon {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  color: rgba(255, 255, 255, 0.35); cursor: default;
}
.lk-nav span.is-soon [data-lucide] { width: 18px; height: 18px; opacity: 0.6; }
.lk-nav__soon-badge {
  margin-left: auto; padding: 2px 7px; border-radius: 999px;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.5);
}
.lk-nav a[data-preview] {
  position: relative;
}
.lk-nav__preview-badge {
  margin-left: auto; padding: 2px 7px; border-radius: 999px;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  background: rgba(201, 145, 75, 0.25); color: #f2d9b8;
}

/* Профиль-переключатель в шапке — выпадающее меню */
.lk-profile-switch { cursor: pointer; }
.lk-profile-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 260px; max-width: 320px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.18);
  padding: 6px; z-index: 220;
}
.lk-profile-menu__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; color: var(--ink); text-align: left;
}
.lk-profile-menu__item:hover { background: var(--bg); }
.lk-profile-menu__item.is-active { background: var(--olive-light); color: var(--olive-dark); }
.lk-profile-menu__group {
  display: block;
  margin: 10px 12px 2px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.lk-profile-menu__group:first-child { margin-top: 4px; }
.lk-profile-menu__item small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.lk-profile-menu__sep { height: 1px; margin: 6px 4px; background: var(--line); }
.lk-profile-menu__add {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; color: var(--teal);
}
.lk-profile-menu__add:hover { background: var(--bg); }

.lk-mobile-toggle {
  display: none;
  width: 36px; height: 36px; flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid var(--line);
  color: var(--olive-dark); background: var(--surface);
}

@media (max-width: 1024px) {
  .lk-shell { grid-template-columns: 1fr; }
  .lk-mobile-toggle { display: inline-flex; }
  .lk-sidebar {
    display: none;
    position: fixed; inset: 72px 0 0 0; z-index: 200;
    overflow-y: auto; padding: 16px 12px 32px;
  }
  .lk-sidebar.is-open { display: block; }
  .lk-grid-2 { grid-template-columns: 1fr; }
  .lk-grid-3 { grid-template-columns: 1fr; }
  .lk-grid-stats { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .lk-main { padding: 20px 16px 40px; }
}
