/* LK cabinet styles */
:root {
      --accent: #7b2cbf;
      --accent-dark: #5a189a;
      --bg: #e8ecf0;
      --card: #fff;
      --muted: #64748b;
      --ok: #059669;
      --warn: #d97706;
      --head-offset: 200px;
      --page-w: 1180px;
      --page-pad: 16px;
      --lk-content-w: 960px;
    }
    body.has-prestart-banner { --head-offset: 320px; }
    * { box-sizing: border-box; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background: var(--bg); color: #111; margin: 0; line-height: 1.45;
      padding-top: var(--head-offset);
    }
    .page-shell { max-width: var(--page-w); margin: 0 auto; padding: 0 var(--page-pad); }
    /* —— LK header: brand · маржа · налоги · навигация —— */
    .head-shell { max-width: var(--page-w); margin: 0 auto; padding: 12px var(--page-pad) 0; }
    .head-row {
      display: grid; grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.2fr) auto;
      gap: 12px; align-items: center; padding-bottom: 8px;
    }
    .head-brand .head-title { font-weight: 800; font-size: 1rem; line-height: 1.2; }
    .head-brand .head-plan { font-size: .78rem; opacity: .92; margin-top: 2px; }
    .head-brand .head-seller { font-size: .72rem; opacity: .78; margin-top: 2px; }
    .head-brand .head-seller a { color: #fff; }
    .hero-metric { text-align: center; min-width: 0; }
    .hero-metric .lbl {
      font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; opacity: .88;
    }
    .hero-metric .val { font-size: 1.35rem; font-weight: 800; line-height: 1.1; margin-top: 2px; }
    .hero-metric .sub { font-size: .68rem; opacity: .85; margin-top: 2px; }
    .refresh-btn {
      background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
      color: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 700;
      font-size: .82rem; cursor: pointer; white-space: nowrap; font-family: inherit;
    }
    .refresh-btn:hover { background: rgba(255,255,255,.3); }
    .refresh-btn:disabled { opacity: .55; cursor: wait; }
    .tax-strip { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; }
    .tax-chip {
      background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
      color: #fff; border-radius: 999px; padding: 5px 10px; font-size: .68rem;
      font-weight: 700; cursor: pointer; font-family: inherit;
    }
    .tax-chip.active { background: #fff; color: var(--accent-dark); }
    .tax-chip span { margin-left: 4px; opacity: .85; font-weight: 600; }
    .head-nav {
      display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
      background: #fff; color: #111; margin: 0 calc(-1 * var(--page-pad));
      padding: 10px var(--page-pad); border-radius: 12px 12px 0 0;
      box-shadow: 0 1px 0 #e2e8f0;
      scroll-padding-inline-end: 16px;
    }
    .head-nav::after {
      content: "";
      flex: 0 0 4px;
    }
    .head-nav-right {
      display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
      margin-left: auto;
    }
    .head-nav .nav-btn {
      text-decoration: none; color: var(--accent-dark); background: #f8fafc;
      border: 1px solid #e2e8f0; padding: 8px 14px; border-radius: 8px;
      font-size: .85rem; font-weight: 700; white-space: nowrap;
    }
    .head-nav .nav-btn:hover { background: #ede7f6; border-color: #d8b4fe; color: var(--accent-dark); }
    .head-nav .nav-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
    .head-nav .nav-btn.nav-muted { opacity: .55; color: var(--accent-dark); }
    .head-metric-wrap { min-width: 0; }
    .head-refresh-wrap { justify-self: end; }
    .lk-stats-card { padding: 16px 18px; }
    .lk-stats-card .lk-status-desc { margin: 0 0 10px; }
    /* —— compact LK topbar —— */
    .lk-topbar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      background: linear-gradient(135deg, var(--accent-dark), var(--accent));
      color: #fff; box-shadow: 0 2px 16px rgba(90,24,154,.25);
    }
    /* При скролле: остаются lk-site-nav + head-nav, остальное сворачивается */
    .lk-topbar .head-collapse,
    .lk-topbar .head-banners {
      overflow: hidden;
      max-height: 720px;
      opacity: 1;
      transition: max-height .28s ease, opacity .2s ease, margin .2s ease, padding .2s ease;
    }
    .lk-topbar.lk-topbar--compact .head-collapse,
    .lk-topbar.lk-topbar--compact .head-banners {
      max-height: 0;
      opacity: 0;
      margin: 0;
      padding: 0;
      pointer-events: none;
      border: 0;
    }
    .lk-topbar.lk-topbar--compact .head-shell {
      padding-top: 6px;
    }
    .lk-topbar.lk-topbar--compact .head-nav {
      border-radius: 0;
      margin-left: 0;
      margin-right: 0;
      box-shadow: none;
      border-top: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.97);
    }
    .lk-site-nav {
      display: flex;
      justify-content: center;
      gap: 8px;
      padding: 8px var(--page-pad) 6px;
      border-bottom: 1px solid rgba(255,255,255,.15);
    }
    .lk-site-nav a {
      text-decoration: none;
      color: #fff;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.28);
      border-radius: 8px;
      padding: 6px 12px;
      font-size: .84rem;
      font-weight: 700;
      white-space: nowrap;
    }
    .lk-site-nav a.active { background: #fff; color: var(--accent-dark); border-color: #fff; }
    .lk-site-nav a:hover { background: rgba(255,255,255,.22); }
    .lk-topbar-inner {
      display: none;
    }
    /* legacy — не применять к .head-nav (иначе белый текст на белом фоне) */
    .lk-topbar-inner .nav-btn {
      text-decoration: none; color: #fff; background: rgba(255,255,255,.15);
      border: 1px solid rgba(255,255,255,.3); padding: 8px 16px; border-radius: 8px;
      font-size: .9rem; font-weight: 700;
    }
    .lk-topbar-inner .nav-btn:hover { background: rgba(255,255,255,.28); }
    .lk-topbar-inner .nav-btn.active { background: #fff; color: var(--accent-dark); }
    .tariff-icon {
      margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
      background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
      padding: 7px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
    }
    .tariff-icon .ti { font-size: 1rem; }
    /* —— LK workflow —— */
    .lk-principle {
      background: #ede7f6; border: 1px solid #d8b4fe; border-radius: 12px;
      padding: 16px 18px; margin: 0; font-size: .9rem;
    }
    .lk-content-column {
      max-width: var(--lk-content-w);
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .lk-content-column > .card,
    .lk-content-column > .access-banner,
    .lk-content-column > .lk-principle,
    .lk-content-column > .lk-workspace,
    .lk-content-column > .lk-status-stack {
      margin-bottom: 0;
    }
    .lk-status-stack {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .lk-status-stack .access-banner {
      margin-bottom: 0;
    }
    .access-banner {
      background: #fff3e0; border: 1px solid #fed7aa; border-radius: 12px;
      padding: 14px 18px; margin: 0; font-size: .9rem;
    }
    .access-banner.ok {
      background: #e8f5e9; border-color: #a7f3d0;
    }
    .access-banner + .access-banner {
      margin-top: 0;
    }
    .lk-foot-banners {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 18px;
      padding-bottom: 8px;
    }
    .prestart-notice-banner {
      background: linear-gradient(135deg, #5a189a, #7b2cbf);
      color: #fff;
      border-radius: 12px;
      padding: 16px 18px;
      margin-bottom: 16px;
      box-shadow: 0 4px 16px rgba(90, 24, 154, .2);
    }
    .prestart-notice-banner__title {
      font-weight: 800;
      font-size: .98rem;
      margin-bottom: 8px;
    }
    .prestart-notice-banner__text {
      margin: 0 0 8px;
      font-size: .88rem;
      line-height: 1.55;
      opacity: .96;
    }
    .prestart-notice-banner__text:last-child { margin-bottom: 0; }
    .prestart-notice-banner a { color: #fff; font-weight: 700; }
    .prestart-notice-banner--compact {
      margin: 0;
      border-radius: 0;
      padding: 10px var(--page-pad) 12px;
      box-shadow: none;
      border-top: 1px solid rgba(255,255,255,.2);
      text-align: center;
    }
    .prestart-notice-banner--compact .prestart-notice-banner__title {
      font-size: .88rem;
      margin-bottom: 4px;
      margin-left: auto;
      margin-right: auto;
      max-width: 980px;
    }
    .prestart-notice-banner--compact .prestart-notice-banner__text {
      font-size: .8rem;
      margin-bottom: 4px;
      margin-left: auto;
      margin-right: auto;
      max-width: 980px;
    }
    .prestart-notice-banner--compact .prestart-notice-banner__text--tail {
      margin-bottom: 0;
      opacity: .9;
    }
    .lk-step {
      border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; margin-bottom: 14px;
    }
    .lk-step h2 {
      margin: 0 0 10px; font-size: 1rem; display: flex; align-items: center; gap: 8px;
    }
    .step-num {
      display: inline-flex; align-items: center; justify-content: center;
      width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
      font-size: .82rem; font-weight: 800; flex-shrink: 0;
    }
    .guide-list { margin: 10px 0 0; padding-left: 18px; font-size: .88rem; color: #334155; }
    .guide-list li { margin: 6px 0; }
    .guide-list code { font-size: .82rem; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
    .photo-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 10px;
    }
    .photo-grid dt { font-weight: 700; font-size: .82rem; margin-top: 8px; }
    .photo-grid dd { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
    .lk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
    .lk-actions .btn { margin-top: 0; width: auto; }
    /* Кнопка + мета кэша — колонка, без наезда */
    .lk-refresh-toolbar,
    .feedbacks-toolbar {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      margin: 0 0 14px;
    }
    .lk-refresh-toolbar__row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px 12px;
      width: 100%;
    }
    .lk-refresh-toolbar__row h3 { margin: 0; font-size: .95rem; }
    .lk-refresh-toolbar .btn,
    .feedbacks-toolbar .btn,
    .acceptance-schedule-head .btn,
    .supply-schedule-head .btn,
    .lk-audit-digest__actions .btn,
    .lk-upload-preview__actions .btn,
    .lk-digest-preview__actions .btn { margin: 0; }
    .lk-refresh-toolbar .hint,
    .feedbacks-toolbar .hint { margin: 0; line-height: 1.4; }
    .lk-audit-page .lk-audit-hero { margin-bottom: 8px; }
    .lk-audit-page .lk-audit-hero__title { margin: 0 0 6px; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
    .lk-audit-lead { margin: 0 0 14px; font-size: .88rem; line-height: 1.45; }
    .lk-audit-toolbar {
      display: flex; flex-direction: column; gap: 10px;
      margin: 0 0 16px; padding: 14px 16px;
      background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    }
    .lk-audit-toolbar__primary {
      display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
    }
    .lk-audit-toolbar__secondary {
      display: grid; grid-template-columns: minmax(0, 280px); gap: 10px;
    }
    .lk-audit-automation-actions {
      display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
    }
    .lk-audit-toolbar__primary .btn,
    .lk-audit-toolbar__secondary .btn {
      width: 100%; margin: 0; text-align: center; justify-content: center;
      white-space: nowrap; min-height: 42px; box-sizing: border-box;
    }
    .lk-audit-toolbar__hint { margin: 0; font-size: .8rem; color: #64748b; }
    .lk-audit-result {
      margin-top: 8px; padding: 16px; background: #fff;
      border: 1px solid #e2e8f0; border-radius: 12px;
    }
    .lk-audit-result__head { margin-bottom: 10px; }
    .lk-audit-result__head .audit-panel-title { margin: 0 0 6px; font-size: .95rem; font-weight: 700; color: var(--accent-dark); }
    .lk-audit-result__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .lk-audit-result__h { font-size: .92rem; margin: 14px 0 6px; }
    @media (max-width: 720px) {
      .lk-audit-toolbar__primary { grid-template-columns: 1fr; }
      .lk-audit-toolbar__secondary { grid-template-columns: 1fr; }
    }
    .lk-template-single {
      max-width: 360px;
      margin-top: 12px;
    }
    .lk-template-single .btn-outline {
      width: 100%;
      text-align: center;
      box-sizing: border-box;
    }
    .lk-upload-api {
      margin-bottom: 16px;
      padding: 14px;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      background: #fafbfc;
    }
    .lk-api-inline label { display: block; font-weight: 600; margin: 0 0 8px; font-size: .88rem; color: var(--accent-dark); }
    .lk-api-inline textarea {
      width: 100%; flex: 1 1 auto; min-height: 56px; max-height: 88px; resize: vertical;
      padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: .85rem;
      box-sizing: border-box;
    }
    .lk-api-actions { display: flex; gap: 8px; margin-top: 10px; }
    .lk-api-actions .btn { flex: 1; margin-top: 0; text-align: center; }
    @media (max-width: 720px) {
      .lk-template-single { max-width: none; }
    }
    .btn-locked {
      opacity: .55; pointer-events: none; cursor: not-allowed;
    }
    details.lk-advanced { margin-top: 8px; }
    details.lk-advanced summary {
      cursor: pointer; font-weight: 700; color: var(--accent-dark); padding: 8px 0;
    }
    .hidden-sections { display: none; }
    .beginner-guide {
      background: #fafbfc; border: 1px solid #e2e8f0; border-radius: 12px;
      padding: 18px 20px; margin-top: 16px; font-size: .88rem;
    }
    .beginner-guide h3 { margin: 0 0 10px; font-size: .95rem; }
    .beginner-guide h4 { margin: 16px 0 6px; font-size: .88rem; color: var(--accent-dark); }
    .beginner-guide ol { margin: 8px 0 0; padding-left: 20px; }
    .beginner-guide ol li { margin: 8px 0; line-height: 1.5; }
    .beginner-guide .need-list { margin: 8px 0 0; padding-left: 18px; }
    .mistakes {
      margin-top: 14px; padding: 12px 14px; background: #fff3e0;
      border-radius: 8px; border: 1px solid #fed7aa; font-size: .85rem;
    }
    .rules-block { margin-top: 18px; }
    #rules-template, #rules-photos, #rules-upload { scroll-margin-top: calc(var(--head-offset) + 16px); }
    details.rules-collapsible {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      background: #fafbfc;
    }
    details.rules-collapsible summary.rules-summary {
      cursor: pointer;
      list-style: none;
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      font-size: 1rem;
      color: var(--accent-dark);
      padding: 4px 0;
      user-select: none;
    }
    details.rules-collapsible summary.rules-summary::-webkit-details-marker { display: none; }
    details.rules-collapsible summary.rules-summary::marker { content: ""; }
    details.rules-collapsible .rules-chevron {
      flex-shrink: 0;
      width: 22px;
      height: 22px;
      border-radius: 6px;
      background: #ede7f6;
      color: var(--accent-dark);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: .72rem;
      font-weight: 900;
      transition: transform .2s ease, background .15s;
      position: relative;
    }
    details.rules-collapsible .rules-chevron::after {
      position: absolute;
      left: 50%;
      bottom: calc(100% + 7px);
      transform: translateX(-50%);
      background: #1e293b;
      color: #fff;
      font-size: .72rem;
      font-weight: 600;
      line-height: 1.2;
      padding: 5px 9px;
      border-radius: 6px;
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      transition: opacity .15s, visibility .15s;
      pointer-events: none;
      z-index: 30;
      box-shadow: 0 2px 8px rgba(0,0,0,.18);
    }
    details.rules-collapsible:not([open]) summary:hover .rules-chevron::after,
    details.rules-collapsible:not([open]) summary:focus-visible .rules-chevron::after {
      content: "Развернуть";
      opacity: 1;
      visibility: visible;
    }
    details.rules-collapsible[open] summary:hover .rules-chevron::after,
    details.rules-collapsible[open] summary:focus-visible .rules-chevron::after {
      content: "Свернуть";
      opacity: 1;
      visibility: visible;
    }
    details.rules-collapsible[open] .rules-chevron {
      transform: rotate(90deg);
      background: var(--accent);
      color: #fff;
    }
    details.rules-collapsible .rules-collapsible-body { margin-top: 10px; }
    .lk-jump {
      display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px;
    }
    .lk-jump a {
      font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--accent-dark);
      background: #ede7f6; border: 1px solid #d8b4fe; padding: 6px 12px; border-radius: 999px;
    }
    .lk-jump a:hover { background: #ddd6fe; }
    .rules-block h3 { margin: 0 0 10px; font-size: 1rem; color: var(--accent-dark); }
    .rules-section { margin-bottom: 14px; }
    .rules-section h4 { margin: 0 0 6px; font-size: .88rem; }
    .rules-section ul { margin: 0; padding-left: 18px; font-size: .85rem; color: #334155; }
    .rules-section li { margin: 5px 0; }
    .section-lock {
      background: #fff3e0; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px;
      font-size: .88rem; border: 1px solid #fed7aa;
    }
    .section-lock.pro { background: #ede7f6; border-color: #d8b4fe; }
    .section-features {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
      margin: 12px 0; padding: 0; list-style: none;
    }
    .section-cta { margin-top: 12px; }
    .section-cta .hint-link { font-size: .78rem; margin-top: 8px; }
    .section-features li {
      background: #f8fafc; border-radius: 8px; padding: 10px 12px; font-size: .85rem;
    }
    .sections-grid a.stat { text-decoration: none; color: inherit; display: block; transition: box-shadow .15s; }
    .sections-grid a.stat:hover { box-shadow: 0 2px 8px rgba(123,44,191,.15); }
    .plan-badge {
      display: inline-block; background: rgba(255,255,255,.2); padding: 2px 8px;
      border-radius: 4px; font-size: .7rem; margin-top: 4px;
    }
    .hero-metric.locked { opacity: .75; }
    .hero-metric.locked .val { font-size: 1.1rem; }
    .lock-banner {
      background: #fff3e0; border-radius: 8px; padding: 12px; margin-bottom: 16px;
      font-size: .88rem; border: 1px solid #fed7aa;
    }
    /* —— main —— */
    .wrap { max-width: var(--page-w); margin: 0 auto; padding: 16px var(--page-pad) 24px; }
    .wrap > .wb-operator-notice {
      margin: 0 0 14px;
      box-shadow: none;
    }
    /* Страницы разделов: белая шапка + карточка одним блоком */
    body.lk-section-page .wrap { padding-top: 14px; }
    body.lk-section-page .wrap > .wb-operator-notice { margin: 0 0 12px; }
    body.lk-section-page .head-shell { padding-bottom: 0; }
    body.lk-section-page .head-nav { margin-bottom: 0; }
    body.lk-section-page .wrap > .card,
    body.lk-section-page .wrap > section.card,
    body.lk-section-page .wrap > .lk-step,
    body.lk-section-page .wrap > section.lk-step {
      margin-top: 0;
      margin-left: calc(-1 * var(--page-pad));
      margin-right: calc(-1 * var(--page-pad));
      width: calc(100% + 2 * var(--page-pad));
      border-top-left-radius: 0;
      border-top-right-radius: 0;
      background: var(--card);
      box-shadow: 0 2px 12px rgba(0,0,0,.06);
    }
    body.lk-section-page .wrap > .crumb { margin: 0 0 10px; }
    .lk-workspace {
      display: grid;
      grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
      gap: 16px;
      align-items: start;
    }
    .lk-workspace--single {
      display: block;
    }
    .lk-workspace--single .lk-workspace-main {
      max-width: none;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .lk-workspace-main > .card.lk-dashboard,
    .lk-workspace-main > details.lk-materials {
      margin-bottom: 0;
    }
    .lk-dashboard__title {
      margin: 0 0 8px;
      font-size: 1.15rem;
    }
    .lk-dashboard__desc {
      margin: 0 0 16px;
    }
    .lk-dashboard-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      align-items: stretch;
    }
    .lk-dash-card {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 148px;
      padding: 14px 16px;
      border: 1px solid var(--border, #e2e8f0);
      border-radius: 12px;
      background: #f8fafc;
    }
    .lk-dash-card--muted {
      background: #fff;
      opacity: .92;
    }
    .lk-dash-card__body {
      flex: 1 1 auto;
      min-height: 0;
    }
    .lk-dash-card__title {
      margin: 0 0 8px;
      font-size: .95rem;
      font-weight: 600;
      line-height: 1.25;
    }
    .lk-dash-card .hint {
      margin: 0;
      font-size: .82rem;
      line-height: 1.45;
      min-height: 2.9em;
    }
    .lk-dash-card__action {
      margin-top: auto;
      padding-top: 10px;
    }
    .lk-dash-card__action .btn,
    .lk-dash-card__action .btn-outline,
    .lk-dash-card__action .btn-sm {
      display: block;
      width: 100%;
      margin-top: 0;
      text-align: center;
      box-sizing: border-box;
    }
    .btn-sm {
      padding: 8px 12px;
      font-size: .82rem;
      line-height: 1.2;
    }
    @media (max-width: 900px) {
      .lk-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 520px) {
      .lk-dashboard-grid { grid-template-columns: 1fr; }
      .lk-dash-card { min-height: 0; }
      .lk-dash-card .hint { min-height: 0; }
    }
    .lk-digest-preview,
    .lk-optimize-preview,
    .lk-audit-preview,
    .lk-upload-preview {
      margin-bottom: 14px;
      padding: 16px 18px;
    }
    .lk-upload-steps {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .lk-upload-step {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      margin: 0 0 12px;
      font-size: .88rem;
      line-height: 1.45;
    }
    .lk-upload-step:last-child { margin-bottom: 0; }
    .lk-upload-step__num {
      flex: 0 0 24px;
      width: 24px;
      height: 24px;
      border-radius: 999px;
      background: #ede7f6;
      color: var(--accent-dark, #5a189a);
      font-size: .78rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 2px;
    }
    .lk-upload-step__body { flex: 1 1 auto; min-width: 0; }
    .lk-upload-step__action { margin-top: 8px; }
    .lk-upload-step__status {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }
    .lk-upload-chip {
      display: inline-block;
      padding: 3px 8px;
      border-radius: 999px;
      font-size: .75rem;
      background: #f1f5f9;
      color: #64748b;
      border: 1px solid #e2e8f0;
    }
    .lk-upload-chip--ok {
      background: #f0fdf4;
      color: #166534;
      border-color: #bbf7d0;
    }
    .lk-upload-preview__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .lk-digest-preview__head {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 8px 12px;
      margin-bottom: 12px;
    }
    .lk-digest-preview__title {
      margin: 0;
      font-size: 1rem;
    }
    .lk-digest-preview__meta,
    .lk-data-meta { margin: 0; font-size: .82rem; color: var(--muted); }
    .lk-token-check {
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 10px;
      font-size: .85rem;
      border: 1px solid #e2e8f0;
      background: #f8fafc;
    }
    .lk-token-check.ok { border-color: #86efac; background: #f0fdf4; color: #166534; }
    .lk-token-check.warn { border-color: #fcd34d; background: #fffbeb; color: #92400e; }
    .lk-token-check.err { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
    .lk-token-check ul { margin: 6px 0 0; padding-left: 18px; }
    .lk-digest-preview__zone { margin-bottom: 10px; }
    .lk-digest-preview__zone:last-child { margin-bottom: 0; }
    .lk-digest-preview__actions { margin-top: 12px; }
    .lk-optimize-preview__list {
      margin: 0 0 10px;
      padding-left: 18px;
      font-size: .88rem;
      line-height: 1.45;
    }
    details.lk-materials {
      margin-top: 0;
      padding: 0;
      overflow: hidden;
    }
    details.lk-materials > summary.lk-materials-summary {
      list-style: none;
      cursor: pointer;
      padding: 16px 18px;
      font-weight: 600;
      font-size: .95rem;
      display: flex;
      align-items: center;
      gap: 8px;
      user-select: none;
    }
    details.lk-materials > summary.lk-materials-summary::-webkit-details-marker { display: none; }
    details.lk-materials[open] > summary .rules-chevron { transform: rotate(90deg); }
    .lk-materials-body {
      padding: 0 18px 18px;
      border-top: 1px solid var(--border, #e2e8f0);
    }
    .lk-workspace-main { min-width: 0; }
    .lk-project-sidebar {
      position: sticky;
      top: calc(var(--head-offset) + 12px);
      padding: 16px;
      margin-bottom: 0;
    }
    .lk-project-sidebar h2 {
      margin: 0 0 8px;
      font-size: 1rem;
      color: var(--accent-dark);
    }
    .lk-project-sidebar .lead-mini {
      margin: 0 0 12px;
      font-size: .82rem;
      color: var(--muted);
      line-height: 1.5;
    }
    .lk-project-sections {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .lk-project-sidebar .project-col {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 12px;
    }
    .lk-project-sidebar .project-col h3 {
      margin: 0 0 6px;
      font-size: .82rem;
      color: #111;
    }
    .lk-project-sidebar .project-col ul {
      margin: 0;
      padding-left: 16px;
      font-size: .78rem;
      color: var(--muted);
      line-height: 1.45;
    }
    .lk-project-sidebar .project-col li { margin: 4px 0; }
    .lk-project-sidebar .subscription-tiers { margin-top: 12px; }
    .lk-project-sidebar .subscription-tiers-title { font-size: .84rem; }
    .lk-project-sidebar .project-goal {
      margin: 12px 0 0;
      padding: 10px 12px;
      background: #ede9fe;
      border-radius: 8px;
      font-size: .8rem;
      line-height: 1.45;
      color: var(--accent-dark);
    }
    @media (max-width: 900px) {
      .lk-workspace { grid-template-columns: 1fr; }
      .lk-project-sidebar { position: static; }
    }
    .card {
      background: var(--card); border-radius: 12px; padding: 20px;
      box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 16px;
    }
    #connect, #add-card, #dashboard,
    #section-transfer, #section-optimize, #section-manage, #sections-overview {
      scroll-margin-top: calc(var(--head-offset) + 12px);
    }
    h2 { font-size: 1rem; margin: 0 0 12px; }
    .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .stat {
      background: #f8fafc; border-radius: 8px; padding: 12px;
    }
    .stat .lbl { font-size: .75rem; color: var(--muted); }
    .stat .val { font-size: 1.15rem; font-weight: 700; margin-top: 4px; }
    .stat.ok .val { color: var(--ok); }
    .stat.warn .val { color: var(--warn); }
    label { display: block; font-weight: 600; margin: 12px 0 6px; font-size: .88rem; }
    input, select, textarea {
      width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: .95rem;
    }
    textarea { min-height: 64px; font-family: monospace; font-size: .85rem; }
    .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
    .wb-operator-notice {
      margin: 8px 0 0;
      padding: 10px 12px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      font-size: .78rem;
      line-height: 1.45;
      color: #475569;
    }
    .wb-operator-notice p { margin: 0; }
    .wb-operator-notice a { color: var(--accent); }
    .wb-operator-notice--compact { margin-top: 6px; padding: 8px 10px; font-size: .74rem; }
    .lk-materials-body > .wb-operator-notice { margin-bottom: 12px; }
    .project-legal-note {
      margin: 10px 0 0;
      font-size: .8rem;
      color: var(--muted);
      line-height: 1.45;
    }
    .wb-operator-notice {
      margin: 8px 0 0;
      padding: 8px 12px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-left: 3px solid #94a3b8;
      border-radius: 8px;
      font-size: .78rem;
      line-height: 1.45;
      color: var(--muted);
    }
    .wb-operator-notice p { margin: 0; }
    .wb-operator-notice a { color: var(--accent); font-weight: 600; }
    .wb-operator-notice--compact { padding: 6px 10px; font-size: .72rem; }
    .project-legal-note {
      margin: 10px 0 0;
      font-size: .78rem;
      color: var(--muted);
      line-height: 1.45;
    }
    .btn {
      display: inline-block; padding: 12px 20px; border-radius: 8px; font-size: .95rem;
      font-weight: 600; border: none; cursor: pointer; margin-top: 0;
    }
    .btn-outline {
      display: inline-block; text-align: center; text-decoration: none;
      background: #fff; color: var(--accent); border: 2px solid var(--accent);
      padding: 12px 20px; border-radius: 8px; font-size: .95rem; font-weight: 600;
      margin-top: 0;
    }
    /* В формах — отступ сверху у submit, в тулбарах margin уже 0 */
    form > .btn,
    form > button.btn,
    .lk-step form .btn,
    .lk-api-panel .btn { margin-top: 12px; }
    .lk-actions .btn,
    form .lk-actions .btn { margin-top: 0; }
    .btn-outline:hover { background: #ede7f6; }
    .btn-primary { background: var(--accent); color: #fff; width: 100%; }
    .btn-primary:disabled { opacity: .6; cursor: wait; }
    .err { background: #fef2f2; color: #b91c1c; padding: 12px; border-radius: 8px; font-size: .88rem; margin-top: 12px; display: none; }
    .token-saved-banner {
      background: #e8f5e9; border: 1px solid #a7f3d0; border-radius: 8px;
      padding: 12px 14px; margin-bottom: 12px; font-size: .9rem;
    }
    .token-warn-banner {
      background: #fff3e0; border: 1px solid #fed7aa; border-radius: 8px;
      padding: 12px 14px; margin-bottom: 12px; font-size: .88rem;
    }
    #token-form-panel.hidden { display: none; }
    .card.connect-focus {
      outline: 3px solid var(--accent);
      box-shadow: 0 0 0 4px rgba(123, 44, 191, .2);
    }
    .steps-banner {
      background: #ede7f6; border: 1px solid #d8b4fe; border-radius: 8px;
      padding: 12px 14px; margin-bottom: 12px; font-size: .88rem;
    }
    .steps-banner ol { margin: 8px 0 0; padding-left: 18px; }
    button.btn-outline { cursor: pointer; font-family: inherit; }
    .loading { text-align: center; padding: 24px; color: var(--muted); display: none; }
    .section-desc { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
    /* —— wireframe LK layout —— */
    .lk-wireframe { padding: 16px; }
    .field-label {
      display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: .04em; color: var(--muted); margin-bottom: 6px;
    }
    .lk-header-row {
      display: grid; grid-template-columns: minmax(140px, 1fr) minmax(200px, 1.4fr);
      gap: 14px; align-items: start; margin-bottom: 14px;
    }
    .view-toggle {
      display: flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden;
    }
    .view-toggle button {
      flex: 1; padding: 10px 12px; border: none; background: #f8fafc;
      font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--muted);
      font-family: inherit; transition: background .15s, color .15s;
    }
    .view-toggle button.active {
      background: var(--accent); color: #fff;
    }
    .view-toggle button:not(.active):hover { background: #ede7f6; color: var(--accent-dark); }
    .token-slot textarea { min-height: 52px; margin: 0; }
    .token-slot .hint { margin-top: 4px; }
    .lk-risks {
      background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
      padding: 12px 14px; margin-bottom: 14px;
    }
    .lk-risks h3 { font-size: .92rem; margin: 0 0 4px; }
    .lk-risks .risks-note {
      font-size: .78rem; color: var(--warn); margin: 0 0 10px;
    }
    .risk-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
    }
    .risk-item {
      background: var(--card); border-radius: 8px; padding: 8px 10px; font-size: .82rem;
      border: 1px solid #e2e8f0;
    }
    .risk-item .rk { color: var(--muted); font-size: .72rem; }
    .risk-item.locked { opacity: .75; }
    .risk-item.locked .rv::before { content: "🔒 "; }
    .lk-central {
      min-height: 180px; background: #fafbfc; border: 2px dashed #cbd5e1;
      border-radius: 12px; padding: 16px; margin-bottom: 14px;
    }
    .lk-central h3 { font-size: .92rem; margin: 0 0 8px; }
    .lk-status-desc { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
    .lk-central .loading { padding: 12px; }
    .lk-central .grid { margin-top: 8px; }
    .view-panel { display: none; }
    .view-panel.active { display: block; }
    .tariff-card {
      background: var(--card); border-radius: 10px; padding: 14px;
      border: 1px solid #e2e8f0; margin-bottom: 10px;
    }
    .tariff-card .plan-title { font-size: 1.1rem; font-weight: 800; color: var(--accent-dark); }
    .tariff-features { margin: 10px 0 0; padding-left: 18px; font-size: .85rem; }
    .tariff-features li { margin: 4px 0; }
    .lk-bottom-row {
      display: grid; grid-template-columns: 1fr minmax(160px, 220px); gap: 14px; align-items: end;
    }
    .lk-upload-col .upload-box {
      background: #f8fafc; border-radius: 10px; padding: 12px; border: 1px solid #e2e8f0;
    }
    .lk-upload-col h3 { font-size: .92rem; margin: 0 0 8px; }
    .upload-box {
      background: #f8fafc; border-radius: 10px; padding: 14px; border: 1px solid #e2e8f0;
      margin-top: 12px;
    }
    .upload-box label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .88rem; }
    .upload-box label:first-child { margin-top: 0; }
    .upload-box input[type=file],
    .upload-box textarea {
      width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: .95rem;
      font-family: inherit;
    }
    .upload-box textarea { min-height: 64px; resize: vertical; }
    .upload-box .btn-primary { width: 100%; margin-top: 16px; }
    .upload-status {
      display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px;
    }
    .upload-status span {
      font-size: .8rem; padding: 6px 10px; border-radius: 999px;
      background: #f1f5f9; color: #64748b;
    }
    .upload-status span.done { background: #dcfce7; color: #166534; }
    .upload-split { display: grid; gap: 14px; }
    @media (min-width: 760px) { .upload-split { grid-template-columns: 1fr 1fr; } }
    .upload-part { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; background: #fff; }
    .upload-part h3 { margin: 0 0 10px; font-size: .95rem; }
    .upload-ok {
      background: #e8f5e9; border-radius: 8px; padding: 14px; margin-bottom: 12px; font-size: .9rem;
    }
    .upload-ok h3 { margin: 0 0 6px; font-size: .95rem; color: #2e7d32; }
    .upload-ok ul { margin: 8px 0 0; padding-left: 18px; }
    .try-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
    .try-mini .btn-outline { margin: 0; padding: 10px 8px; font-size: .82rem; }
    .lk-step .verdict {
      display: inline-block; padding: 4px 10px; border-radius: 999px;
      font-size: .78rem; font-weight: 800; margin-left: 8px;
    }
    .verdict-norm { background: #dcfce7; color: #166534; }
    .verdict-risks { background: #fef3c7; color: #92400e; }
    .verdict-urgent { background: #fee2e2; color: #b91c1c; }
    .lk-coming-soon {
      margin: 12px 0 0;
      padding: 18px 16px;
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(29, 78, 216, .06));
      border: 1px solid rgba(15, 118, 110, .22);
    }
    .lk-coming-soon__eyebrow {
      margin: 0 0 6px;
      font-size: .75rem;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: uppercase;
      color: #0f766e;
    }
    .lk-coming-soon__title {
      margin: 0 0 6px;
      font-size: 1.15rem;
      color: #0f172a;
    }
    .lk-coming-soon__date {
      margin: 0 0 10px;
      font-weight: 700;
      color: #1d4ed8;
    }
    .lk-coming-soon__body {
      margin: 0 0 8px;
      line-height: 1.5;
      color: #334155;
      font-size: .92rem;
    }
    .lk-coming-soon__extra { margin: 0; }
    .lk-report-full-blocks[hidden] { display: none !important; }
    .audit-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }
    .audit-stat {
      background: rgba(124, 58, 237, .06);
      border: 1px solid rgba(124, 58, 237, .16);
      border-radius: 10px;
      padding: 10px;
      font-size: .82rem;
    }
    .audit-stat b { display: block; font-size: 1.1rem; margin-top: 4px; }
    .audit-priorities { margin: 10px 0 0; padding-left: 18px; font-size: .88rem; }
    .audit-priorities li { margin: 6px 0; }
    .audit-findings { margin-top: 12px; font-size: .85rem; }
    .audit-findings li { margin: 6px 0; }
    .audit-fixes li { margin: 10px 0; line-height: 1.45; }
    .audit-fix-action { display: block; margin-top: 4px; color: #475569; font-size: .82rem; }
    .audit-fix-tag {
      display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 6px;
      border-radius: 6px; background: #ede9fe; color: #5b21b6; margin-right: 6px;
    }
    .audit-categories { margin: 8px 0 0; padding-left: 18px; font-size: .88rem; }
    .audit-highlights { margin: 8px 0 0; padding-left: 18px; font-size: .88rem; }
    .audit-plan { margin: 10px 0 0; padding-left: 18px; font-size: .88rem; }
    .audit-plan li { margin: 6px 0; }
    .audit-inclusions { margin: 8px 0 12px; padding: 0; list-style: none; font-size: .85rem; }
    .audit-inclusions li { margin: 4px 0; padding-left: 1.4em; position: relative; }
    .audit-inclusions li::before { content: "✓"; position: absolute; left: 0; color: var(--accent, #7b2cbf); font-weight: 700; }
    .audit-inclusions li.partial::before { content: "◐"; color: #b8860b; }
    .audit-sections { margin-top: 12px; }
    .audit-section-block { margin: 12px 0; padding: 10px 12px; background: rgba(0,0,0,.03); border-radius: 8px; border-left: 3px solid var(--accent, #7b2cbf); }
    .audit-section-block h4 { margin: 0 0 6px; font-size: .88rem; font-weight: 700; }
    .audit-section-block ul { margin: 0; padding-left: 18px; font-size: .85rem; }
    .audit-section-block li { margin: 4px 0; }
    .plan-who { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-right: 6px; vertical-align: middle; }
    .plan-who-self { background: #e8f5e9; color: #2e7d32; }
    .plan-who-lk25 { background: #ede7f6; color: #5e35b1; }
    .audit-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 8px; }
    .audit-panel-head .audit-panel-title { margin: 0; }
    .audit-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    #btn-lk-audit-pdf { white-space: nowrap; font-size: .88rem; padding: 8px 14px; }
    #btn-lk-audit-automation { white-space: nowrap; font-size: .88rem; padding: 8px 14px; }
    .audit-automation-box { margin: 14px 0; padding: 14px 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; }
    .audit-automation-box h4 { margin: 0 0 8px; font-size: .95rem; color: #1e40af; }
    .audit-automation-box .automation-path { font-size: .85rem; word-break: break-all; margin: 8px 0; }
    .seller-section-box { margin: 12px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; }
    .seller-section-box.manage-box { background: #f0fdf4; border-color: #bbf7d0; }
    .lk-audit-digest { margin-top: 16px; margin-bottom: 18px; }
    .lk-audit-digest__head {
      display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
      gap: 8px 12px; margin-bottom: 6px;
    }
    .lk-audit-digest__title { margin: 0; font-size: .95rem; }
    .lk-audit-digest__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .seller-section-box.optimize-box { background: #faf5ff; border-color: #e9d5ff; }
    .seller-section-box h3 { margin: 0 0 8px; font-size: .95rem; }
    .lk-empty-state {
      margin: 12px 0;
      padding: 16px 18px;
      border-radius: 12px;
      border: 1px dashed #cbd5e1;
      background: #f8fafc;
      text-align: center;
    }
    .lk-empty-state__icon { font-size: 1.75rem; line-height: 1; margin-bottom: 8px; }
    .lk-empty-state__title { font-weight: 600; margin: 0 0 6px; color: #0f172a; }
    .lk-empty-state__body { margin: 0 0 12px; color: #64748b; font-size: .9rem; line-height: 1.45; }
    .lk-empty-state__actions { margin-top: 4px; }
    .digest-zone { margin: 10px 0; font-size: .88rem; line-height: 1.5; }
    .digest-zone-title { font-weight: 700; margin: 12px 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
    .digest-zone-title.urgent { color: #dc2626; }
    .digest-zone-title.today { color: #d97706; }
    .digest-zone-title.ok { color: #16a34a; }
    .digest-zone-title.oos-live { color: #b45309; }
    .oos-live-block { padding: 8px 10px; border-radius: 10px; background: rgba(251, 191, 36, .12); border: 1px solid rgba(245, 158, 11, .25); }
    .oos-live-item { background: rgba(255,255,255,.85) !important; }
    .oos-live-total { margin: 6px 0 2px; font-size: .78rem; }
    .oos-live-hint { font-size: .82rem; margin-top: -4px; }
    .digest-zone-title.drr-live { color: #7c3aed; }
    .digest-zone-title.finance-live { color: #0f766e; }
    .digest-zone-title.promo-live { color: #c2410c; }
    .digest-zone-title.cards-live { color: #1d4ed8; }
    .digest-kpi-block,
    .drr-live-block, .drr-block,
    .finance-holds-block, .promo-margin-block, .card-errors-block, .antisliv-banner {
      padding: 8px 10px;
      border-radius: 10px;
      margin: 10px 0;
    }
    .drr-live-block, .drr-block { background: rgba(124, 58, 237, .08); border: 1px solid rgba(124, 58, 237, .2); }
    .finance-holds-block { background: rgba(15, 118, 110, .08); border: 1px solid rgba(15, 118, 110, .22); }
    .promo-margin-block { background: rgba(194, 65, 12, .08); border: 1px solid rgba(194, 65, 12, .22); }
    .card-errors-block { background: rgba(29, 78, 216, .07); border: 1px solid rgba(29, 78, 216, .2); }
    .antisliv-banner { background: rgba(15, 23, 42, .04); border: 1px solid rgba(15, 23, 42, .1); }
    .digest-kpi-summary, .drr-summary { background: rgba(255,255,255,.85) !important; }
    .drr-flag, .drr-alert { color: #dc2626; font-weight: 600; }
    .drr-camp { font-size: .84rem; }
    .audit-stat--fbs { background: rgba(14, 165, 233, .08); border-color: rgba(14, 165, 233, .22); }
    .audit-stat--returns { background: rgba(220, 38, 38, .06); border-color: rgba(220, 38, 38, .18); }
    .audit-stat--ads { background: rgba(124, 58, 237, .08); border-color: rgba(124, 58, 237, .2); }
    .audit-stat--finance { background: rgba(15, 118, 110, .08); border-color: rgba(15, 118, 110, .22); }
    .digest-zone-title.oos-ads, .digest-zone-title.ads-oos { color: #dc2626; }
    .oos-ads-block, .ads-oos-block { padding: 8px 10px; border-radius: 10px; background: rgba(220, 38, 38, .06); border: 1px solid rgba(220, 38, 38, .15); }
    .oos-ads-item, .ads-oos-item { background: rgba(255,255,255,.85) !important; }
    .digest-item { margin: 6px 0; padding: 8px 10px; background: rgba(255,255,255,.7); border-radius: 8px; }
    .digest-from-audit { margin: 10px 0; padding: 8px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; font-size: .85rem; }
    .digest-from-audit summary { cursor: pointer; font-weight: 600; color: #64748b; }
    .digest-action { display: block; font-size: .8rem; color: #64748b; margin-top: 4px; }
    .optimize-queue { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 10px; }
    .optimize-queue th, .optimize-queue td { padding: 8px 6px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
    .optimize-queue th { font-size: .78rem; color: #64748b; }
    .optimize-ops { margin-top: 18px; }
    .optimize-ops-panel { margin: 10px 0; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
    .optimize-ops-panel > summary { cursor: pointer; font-weight: 600; }
    .optimize-ops-table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 8px; }
    .optimize-ops-table th, .optimize-ops-table td { padding: 8px 6px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
    .optimize-ops-table th { font-size: .78rem; color: #64748b; }
    .lk-home-report { margin: 0 0 18px; }
    .lk-home-report .lk-audit-page { margin: 0; }
    .optimize-pri { font-size: .95rem; line-height: 1; }
    .optimize-status { display: inline-block; font-size: .72rem; padding: 2px 6px; border-radius: 999px; margin-top: 4px; }
    .optimize-status--ordered { background: #fef3c7; color: #92400e; }
    .optimize-status--work { background: #ede9fe; color: #5b21b6; }
    .optimize-status--done { background: #dcfce7; color: #166534; }
    .optimize-draft {
      margin: 0 0 12px;
      padding: 12px 14px;
      border: 1px solid #ddd6fe;
      border-radius: 10px;
      background: #f5f3ff;
    }
    .optimize-draft-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 8px;
    }
    .optimize-draft-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 10px;
    }
    @media (max-width: 720px) {
      .optimize-draft-grid { grid-template-columns: 1fr; }
    }
    .optimize-draft-title { margin: 4px 0; font-weight: 600; font-size: .9rem; }
    .optimize-draft-desc {
      margin: 0;
      font-size: .8rem;
      color: #475569;
      white-space: pre-wrap;
      font-family: inherit;
      background: transparent;
      border: 0;
      padding: 0;
    }
    .optimize-orders-history { font-size: .78rem; line-height: 1.5; }
    .optimize-history-item { display: inline-block; margin-right: 8px; }
    .btn-xs { font-size: .78rem; padding: 4px 10px; }
    .supply-schedule-box { margin-top: 14px; background: #f8fafc; border-color: #cbd5e1; }
    .supply-schedule-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .supply-schedule-head h3 { margin: 0; font-size: .95rem; }
    .supply-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
    .supply-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; }
    .supply-stat--ok { border-color: #86efac; background: #f0fdf4; }
    .supply-stat-lbl { display: block; font-size: .72rem; color: #64748b; margin-bottom: 4px; }
    .supply-stat strong { font-size: 1.05rem; color: var(--accent-dark); }
    .supply-stat-sub { display: block; margin-top: 4px; font-size: .75rem; color: #64748b; font-weight: 500; }
    .supply-stat-dirs { font-size: .82rem !important; line-height: 1.35; font-weight: 600; }
    .supply-callout { margin: 0 0 12px; padding: 10px 12px; background: #ede7f6; border: 1px solid #d8b4fe; border-radius: 10px; font-size: .85rem; line-height: 1.45; }
    .supply-day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; }
    .supply-day { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 4px; text-align: center; font-size: .7rem; color: #94a3b8; }
    .supply-day--ship { border-color: #86efac; background: #f0fdf4; color: #166534; font-weight: 600; }
    .supply-day--today { outline: 2px solid var(--accent); }
    .supply-day-wd, .supply-day-dt, .supply-day-mark { display: block; line-height: 1.25; }
    .supply-day-mark { margin-top: 2px; font-size: .65rem; }
    .supply-trips { display: flex; flex-direction: column; gap: 12px; }
    .supply-trip-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; }
    .supply-trip-card--next { border-color: #86efac; box-shadow: 0 0 0 1px #bbf7d0; }
    .supply-trip-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
    .supply-trip-through { color: #166534; font-weight: 600; }
    .supply-trip-meta { font-size: .82rem; color: #475569; }
    .supply-trip-dirs { margin: 0 0 8px; font-size: .82rem; color: #64748b; }
    .supply-trip-h { margin: 10px 0 6px; font-size: .8rem; color: var(--accent-dark); }
    .supply-sku-chips { display: flex; flex-wrap: wrap; gap: 6px; }
    .supply-sku-chip { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px 8px; font-size: .75rem; }
    .supply-table-wrap { margin-top: 14px; }
    .supply-table-wrap h4 { margin: 0 0 8px; font-size: .88rem; color: var(--accent-dark); }
    .supply-table tbody tr.supply-row-next { background: #f0fdf4; font-weight: 600; }
    @media (max-width: 640px) {
      .supply-day-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }
    .acceptance-schedule-box { margin-top: 14px; background: #f8fafc; border-color: #cbd5e1; }
    .acceptance-schedule-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .acceptance-schedule-head h3 { margin: 0; font-size: .95rem; }
    .acceptance-callout { margin: 0 0 12px; padding: 10px 12px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; font-size: .85rem; line-height: 1.45; }
    .acceptance-chart-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
    .acceptance-chart-card h4 { margin: 0 0 10px; font-size: .88rem; color: var(--accent-dark); }
    .acceptance-bar-row { display: grid; grid-template-columns: 88px 1fr 36px; gap: 8px; align-items: center; margin: 6px 0; font-size: .78rem; }
    .acceptance-bar-label { color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .acceptance-bar-track { height: 10px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
    .acceptance-bar-fill { height: 100%; border-radius: 999px; min-width: 2px; background: #16a34a; }
    .acceptance-bar-val { text-align: right; font-variant-numeric: tabular-nums; }
    .acceptance-matrix-wrap { margin-top: 14px; }
    .acceptance-matrix-wrap h4 { margin: 0 0 8px; font-size: .88rem; color: var(--accent-dark); }
    .acceptance-matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
    .acceptance-matrix { border-collapse: collapse; font-size: .72rem; min-width: 100%; }
    .acceptance-matrix th, .acceptance-matrix td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; text-align: center; white-space: nowrap; }
    .acceptance-matrix th { color: #64748b; font-weight: 600; background: #f8fafc; position: sticky; top: 0; }
    .acceptance-matrix .wh-col { text-align: left; font-weight: 600; color: var(--accent-dark); position: sticky; left: 0; background: #fff; z-index: 1; min-width: 120px; }
    .acceptance-matrix thead .wh-col { background: #f8fafc; z-index: 2; }
    .acceptance-badge { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: .68rem; font-weight: 700; line-height: 1.3; }
    .acceptance-badge--closed { background: #1e293b; color: #f8fafc; }
    .acceptance-badge--free { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
    .acceptance-badge--open { background: #ede7f6; color: #5a189a; border: 1px solid #d8b4fe; }
    .acceptance-badge--paid { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
    .acceptance-badge--na { background: #f1f5f9; color: #94a3b8; }
    .acceptance-table-wrap { margin-top: 14px; }
    .acceptance-table-wrap h4 { margin: 0 0 8px; font-size: .88rem; color: var(--accent-dark); }
    .acceptance-table .status-closed { color: #475569; font-weight: 700; }
    .acceptance-table .status-free { color: #16a34a; font-weight: 700; }
    .seo-usage { font-size: .82rem; color: #64748b; margin: 8px 0; }
    .audit-next-steps { margin: 14px 0; padding: 14px 16px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; }
    .audit-next-steps h4 { margin: 0 0 10px; font-size: .95rem; color: #166534; }
    .audit-next-steps ol { margin: 0; padding-left: 20px; font-size: .88rem; }
    .audit-next-steps li { margin: 10px 0; line-height: 1.5; }
    .audit-next-steps .step-detail { display: block; margin-top: 4px; color: #475569; font-size: .82rem; }
    .audit-verdict-explain { margin: 8px 0 12px; padding: 10px 12px; background: #fffbeb; border-radius: 8px; font-size: .88rem; line-height: 1.5; color: #78350f; }
    .audit-glossary { margin: 0 0 12px; padding: 10px 12px; background: #f8fafc; border-radius: 8px; font-size: .82rem; color: #64748b; }
    .beginner-report-block { margin: 16px 0; padding: 14px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; border-left: 4px solid var(--accent, #7b2cbf); }
    .beginner-report-block.status-urgent { border-left-color: #dc2626; }
    .beginner-report-block.status-warn { border-left-color: #d97706; }
    .beginner-report-block.status-partial { border-left-color: #64748b; }
    .beginner-report-block.status-ok { border-left-color: #16a34a; }
    .beginner-report-block h4 { margin: 0 0 6px; font-size: .95rem; }
    .beginner-report-block .br-summary { font-size: .82rem; color: #64748b; margin: 0 0 8px; }
    .beginner-report-block .br-why { font-size: .85rem; color: #78350f; background: #fffbeb; padding: 8px 10px; border-radius: 8px; margin: 8px 0; }
    .beginner-report-block .br-label { font-size: .78rem; font-weight: 700; color: var(--accent-dark); margin: 10px 0 4px; text-transform: uppercase; letter-spacing: .03em; }
    .beginner-report-block ul, .beginner-report-block ol { margin: 4px 0 0; padding-left: 18px; font-size: .85rem; }
    .beginner-report-block li { margin: 5px 0; line-height: 1.45; }
    .lk-enter-col .btn-enter {
      width: 100%; padding: 16px 20px; font-size: 1.05rem; border-radius: 10px;
      background: var(--accent); color: #fff; border: none; font-weight: 700;
      cursor: pointer; box-shadow: 0 4px 14px rgba(123,44,191,.35);
    }
    .lk-enter-col .btn-enter:disabled { opacity: .6; cursor: wait; box-shadow: none; }
    .lk-enter-col .hint { text-align: center; margin-top: 6px; }
    .lk-gate {
      position: fixed; inset: 0; z-index: 300;
      background: rgba(15, 23, 42, .55);
      display: none; align-items: center; justify-content: center;
      padding: 16px; overflow-y: auto;
    }
    body.lk-locked .lk-gate { display: flex; }
    body.lk-locked .wrap,
    body.lk-locked #lk-sections,
    body.lk-locked .lk-topbar .head-shell,
    body.lk-locked .lk-topbar .head-banners {
      visibility: hidden; pointer-events: none; height: 0; overflow: hidden; margin: 0; padding: 0;
    }
    .lk-gate-dialog {
      width: min(440px, 100%); background: #fff; border-radius: 14px;
      padding: 22px 20px; box-shadow: 0 16px 48px rgba(15, 23, 42, .25);
    }
    .lk-gate-dialog h2 { margin: 0 0 8px; font-size: 1.15rem; }
    .lk-gate-dialog .hint { margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
    .lk-gate-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
    .lk-gate-tabs button {
      flex: 1; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 8px;
      padding: 8px 10px; font-weight: 700; cursor: pointer; font-family: inherit;
    }
    .lk-gate-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
    .lk-gate-panel { display: none; }
    .lk-gate-panel.active { display: block; }
    .lk-profile-grid {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 8px 14px;
      margin: 0 0 16px;
      font-size: .9rem;
    }
    .lk-profile-grid dt { margin: 0; color: var(--muted); }
    .lk-profile-grid dd { margin: 0; }
    .lk-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
    @media (max-width: 720px) {
      .lk-header-row, .lk-bottom-row { grid-template-columns: 1fr; }
      .try-mini { grid-template-columns: 1fr; }
      .head-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
          "brand refresh"
          "metric metric";
      }
      .head-brand { grid-area: brand; }
      .head-metric-wrap { grid-area: metric; }
      .head-refresh-wrap { grid-area: refresh; }
      .head-tax-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
      .tax-strip { flex-wrap: nowrap; min-width: min-content; }
      .head-nav {
        overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
      }
      .head-nav-right { margin-left: 0; flex: 0 0 auto; }
      .hero-metric .val { font-size: 1.25rem; }
      .tax-chip { font-size: .65rem; padding: 4px 9px; flex: 0 0 auto; }
    }

    .lk-onboarding-list { margin: 0; padding-left: 1.25rem; font-size: .9rem; line-height: 1.55; }
    .lk-onboarding-list li.done { color: #15803d; }
    .lk-onboarding-list li.done::marker { content: "✓ "; }
    .lk-onboarding {
      margin-bottom: 14px;
      padding: 16px 18px;
    }
    .lk-onboarding__title {
      margin: 0 0 10px;
      font-size: 1rem;
    }
    .lk-onboarding__lead {
      margin: 0 0 10px;
    }
    .lk-onboarding--locked { background: #f8fafc; border: 1px dashed #cbd5e1; }
    .lk-onboarding--locked .lk-onboarding__title { margin-bottom: 8px; }
    .lk-onboarding--locked .lk-onboarding__lead { margin: 0; }

    /* —— Центр решений: единый cache-only экран действий —— */
    .lk-decision-center {
      max-width: var(--lk-content-w);
      margin: 0 auto 16px;
      padding: 18px;
      border: 1px solid #d8b4fe;
      border-radius: 14px;
      background: var(--card);
      box-shadow: 0 8px 24px rgba(90, 24, 154, .08);
    }
    .lk-decision-center__head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 14px;
    }
    .lk-decision-center__toolbar {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
    .lk-decision-center__toolbar .lk-decision-kpis {
      flex: 1 1 auto;
      margin: 0;
    }
    .lk-decision-center__head h2 { margin: 0 0 4px; font-size: 1.3rem; }
    .lk-decision-center__refresh {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
    }
    .lk-eyebrow {
      margin: 0 0 3px;
      color: var(--accent-dark);
      font-size: .72rem;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .lk-decision-kpis {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      margin: 0 0 12px;
    }
    .lk-decision-kpis > div {
      min-width: 0;
      padding: 10px;
      border-radius: 10px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
    }
    .lk-decision-kpis b, .lk-decision-kpis span { display: block; }
    .lk-decision-kpis b { font-size: 1.05rem; }
    .lk-decision-kpis span { color: var(--muted); font-size: .72rem; margin-top: 2px; }
    .lk-decision-list { display: grid; gap: 10px; }
    .lk-decision-card {
      padding: 13px 14px;
      border: 1px solid #e2e8f0;
      border-left: 4px solid #94a3b8;
      border-radius: 10px;
      background: #fff;
    }
    .lk-decision-card.priority-critical,
    .lk-decision-card.priority-p0,
    .lk-decision-card.priority-urgent,
    .lk-decision-card.priority-1 { border-left-color: #dc2626; }
    .lk-decision-card.priority-high,
    .lk-decision-card.priority-p1,
    .lk-decision-card.priority-2 { border-left-color: var(--warn); }
    .lk-decision-card.is-done { opacity: .78; background: #f8fafc; }
    .lk-decision-card.is-rejected { opacity: .66; background: #f8fafc; }
    .lk-decision-card h3 { margin: 5px 0; font-size: 1rem; }
    .lk-decision-card p { margin: 5px 0; font-size: .88rem; }
    .lk-decision-card__meta,
    .lk-decision-card footer,
    .lk-decision-card__actions,
    .lk-source-chips,
    .lk-report-upload {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
    }
    .lk-decision-card__meta, .lk-decision-card footer {
      color: var(--muted);
      font-size: .72rem;
    }
    .lk-decision-card footer { justify-content: space-between; margin-top: 9px; }
    .lk-decision-priority, .lk-source-chip {
      padding: 3px 8px;
      border-radius: 999px;
      background: #f1f5f9;
      color: #475569;
      font-weight: 700;
    }
    .lk-decision-state {
      padding: 3px 8px;
      border-radius: 999px;
      font-weight: 750;
      background: #f1f5f9;
      color: #475569;
    }
    .lk-decision-state.is-accepted { color: #7c2d12; background: #ffedd5; }
    .lk-decision-state.is-done { color: #047857; background: #d1fae5; }
    .lk-decision-state.is-rejected { color: #64748b; background: #e2e8f0; }
    .lk-decision-action { color: #334155; font-weight: 650; }
    .lk-decision-recommendation {
      margin-top: 10px;
      padding: 9px 11px;
      border-radius: 9px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
    }
    .lk-decision-recommendation summary {
      cursor: pointer;
      color: var(--accent-dark);
      font-size: .83rem;
      font-weight: 800;
    }
    .lk-decision-recommendation ol { margin: 8px 0; padding-left: 20px; }
    .lk-decision-recommendation li { margin: 5px 0; font-size: .83rem; }
    .lk-decision-success { color: #047857; font-weight: 650; }
    .lk-decision-card__actions .btn { width: auto; min-width: 0; }
    .lk-decision-card__actions .btn-quiet {
      color: #64748b;
      background: transparent;
      border: 1px solid transparent;
    }
    .lk-overview {
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid #e2e8f0;
    }
    .lk-overview__head {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 14px;
      margin-bottom: 10px;
    }
    .lk-overview__head h3 { margin: 0; }
    .lk-overview__head .hint { max-width: 520px; margin: 0; }
    .lk-overview-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .lk-overview-card {
      padding: 13px;
      border: 1px solid #e2e8f0;
      border-top: 4px solid #94a3b8;
      border-radius: 10px;
      background: #fff;
    }
    .lk-overview-card.tone-danger { border-top-color: #dc2626; background: #fffafa; }
    .lk-overview-card.tone-warning { border-top-color: #f59e0b; }
    .lk-overview-card.tone-ok { border-top-color: #10b981; }
    .lk-overview-card h4 { margin: 0 0 5px; font-size: .95rem; }
    .lk-overview-card__summary { margin: 0 0 9px; font-size: .86rem; font-weight: 700; }
    .lk-overview-metrics {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
      margin-bottom: 8px;
    }
    .lk-overview-metrics > div {
      padding: 7px 8px;
      border-radius: 7px;
      background: #f8fafc;
    }
    .lk-overview-metrics b, .lk-overview-metrics span { display: block; }
    .lk-overview-metrics b { font-size: .86rem; }
    .lk-overview-metrics span { margin-top: 2px; color: var(--muted); font-size: .68rem; }
    .lk-overview-card__item {
      margin: 5px 0;
      padding: 7px 8px;
      border-radius: 7px;
      background: #f8fafc;
      font-size: .79rem;
    }
    .lk-overview-card__advice { margin: 9px 0 4px; color: #334155; font-size: .8rem; }
    .lk-overview-card__link { color: var(--accent-dark); font-size: .78rem; font-weight: 750; }
    .lk-decision-empty {
      display: grid;
      gap: 3px;
      padding: 14px;
      border-radius: 10px;
      background: #f8fafc;
      color: var(--muted);
    }
    .lk-data-sources { margin-top: 14px; border-top: 1px solid #e2e8f0; padding-top: 10px; }
    .lk-data-sources summary { cursor: pointer; color: var(--accent-dark); font-weight: 750; }
    .lk-data-sources__body { padding-top: 10px; }
    .lk-source-chip.is-on { color: #047857; background: #d1fae5; }
    .lk-report-upload input[type="file"] { max-width: 100%; font-size: .8rem; }
    .lk-data-sources .cost-costs-box { margin-top: 12px; }
    .lk-data-sources .cost-costs-box textarea {
      width: 100%;
      max-width: 520px;
      padding: 8px;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      font: .82rem ui-monospace, monospace;
    }
    @media (max-width: 720px) {
      .lk-decision-center__head { display: grid; }
      .lk-decision-center__toolbar { display: grid; }
      .lk-decision-center__refresh { justify-content: stretch; }
      .lk-decision-center__refresh .btn { flex: 1 1 180px; }
      .lk-decision-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .lk-decision-card footer { align-items: flex-start; }
      .lk-overview__head { display: grid; }
      .lk-overview-grid { grid-template-columns: 1fr; }
    }
    .lk-content-studio { margin: 14px 0; }
    .lk-content-form {
      display: grid;
      grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr);
      gap: 10px;
      padding: 10px 0;
    }
    .lk-content-form label {
      display: grid;
      gap: 4px;
      color: #475569;
      font-size: .78rem;
      font-weight: 700;
    }
    .lk-content-form input,
    .lk-content-form select,
    .lk-content-form textarea {
      width: 100%;
      padding: 9px 10px;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      color: #111;
      background: #fff;
      font: inherit;
      font-weight: 400;
    }
    .lk-content-form__wide, .lk-content-form__actions { grid-column: 1 / -1; }
    .lk-content-form__actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
    }
    .lk-content-versions { display: grid; gap: 9px; margin-top: 8px; }
    .lk-content-version {
      padding: 11px;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      background: #f8fafc;
    }
    .lk-content-version header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .lk-content-compare {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin: 9px 0;
    }
    .lk-content-compare > div {
      min-width: 0;
      padding: 8px;
      border-radius: 8px;
      background: #fff;
      border: 1px solid #e2e8f0;
    }
    .lk-content-compare small { color: var(--muted); font-weight: 700; }
    .lk-content-compare p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
    @media (max-width: 720px) {
      .lk-content-form, .lk-content-compare { grid-template-columns: 1fr; }
    }
    .lk-growth-tools { display: grid; gap: 10px; margin-top: 14px; }
    .lk-inline-form, .lk-ad-rules-form {
      display: flex;
      flex-wrap: wrap;
      align-items: end;
      gap: 8px;
    }
    .lk-inline-form input { min-width: min(100%, 320px); }
    .lk-inline-form input,
    .lk-ad-rules-form input {
      padding: 8px 9px;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      font: inherit;
    }
    .lk-ad-rules-form label {
      display: grid;
      gap: 3px;
      color: var(--muted);
      font-size: .74rem;
      font-weight: 700;
    }
    .lk-ad-rules-form input { width: 96px; }
    .lk-tool-result { display: grid; gap: 6px; margin-top: 9px; }
    .lk-tool-action {
      margin: 0;
      padding: 8px 10px;
      border-left: 3px solid var(--accent);
      border-radius: 6px;
      background: #f8fafc;
      font-size: .84rem;
    }
    .lk-ad-approval {
      display: grid;
      gap: 9px;
      margin-top: 12px;
      padding: 12px;
      border: 1px solid #fecaca;
      border-radius: 10px;
      background: #fff7f7;
    }
    .lk-ad-approval[hidden] { display: none; }
    .lk-ad-approval label {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      color: #7f1d1d;
      font-size: .84rem;
      font-weight: 700;
    }
    .lk-ad-approval input { margin-top: 2px; }
    .lk-ad-approval p { margin: 0; }
    .btn-danger {
      border-color: #b91c1c;
      background: #b91c1c;
      color: #fff;
    }
    .btn-danger:hover:not(:disabled) { background: #991b1b; }
    .btn-danger:disabled { cursor: not-allowed; opacity: .5; }
