    :root {
      --bg: #0c0f14;
      --bg-elev: #151a24;
      --surface: rgba(255, 255, 255, 0.06);
      --border: rgba(255, 255, 255, 0.12);
      --text: rgba(255, 255, 255, 0.92);
      --muted: rgba(255, 255, 255, 0.62);
      --accent: #38897c;
      --accent-hover: #2f7268;
      --accent-2: #a78bfa;
      --radius: 16px;
      --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
      --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      --bg-primary: var(--bg-elev);
      --bg-secondary: var(--surface);
      --border-color: var(--border);
      --text-primary: var(--text);
      --text-secondary: var(--muted);
      --danger: #fb7185;
    }
    [data-theme="light"] {
      --bg: #f4f6fb;
      --bg-elev: #ffffff;
      --surface: rgba(15, 23, 42, 0.04);
      --border: rgba(15, 23, 42, 0.1);
      --text: rgba(15, 23, 42, 0.92);
      --muted: rgba(15, 23, 42, 0.55);
      --accent-hover: #2b6a61;
      --shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
      --border-color: var(--border);
      --text-primary: var(--text);
      --text-secondary: var(--muted);
      --danger: #be123c;
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; min-height: 100%; font-family: var(--font); background: var(--bg); color: var(--text); }
    html {
      overflow-x: hidden;
    }
    body {
      overflow-x: hidden;
      background-image:
        radial-gradient(900px 500px at 12% -10%, rgba(56, 137, 124, 0.16), transparent 55%),
        radial-gradient(700px 400px at 92% 15%, rgba(167, 139, 250, 0.08), transparent 50%);
    }
    .wrap { max-width: 960px; width: 100%; margin: 0 auto; padding: 20px 16px 48px; }
    .site-header {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 22px;
    }
    .header-top-bar {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      width: 100%;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
      font-size: 0.88rem;
    }
    .header-toolbar-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 18px;
      width: 100%;
    }
    .header-tb-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .header-access-legend {
      color: var(--muted);
      font-size: 0.8rem;
      gap: 8px;
    }
    .header-access-legend-sep {
      opacity: 0.55;
    }
    .header-nav-icon {
      width: 17px;
      height: 17px;
      flex-shrink: 0;
      color: var(--text);
      opacity: 0.88;
    }
    #themeBtn .header-theme-icon-sun,
    #themeBtn .header-theme-icon-moon {
      display: none;
    }
    [data-theme="dark"] #themeBtn .header-theme-icon-sun {
      display: block;
    }
    [data-theme="light"] #themeBtn .header-theme-icon-moon {
      display: block;
    }
    #hdr-bal-wrap,
    #hdr-top-wrap {
      display: none;
    }
    #hdr-login-wrap[hidden] {
      display: none !important;
    }
    .header-login-id {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--text);
      font-weight: 600;
      white-space: nowrap;
      cursor: default;
      user-select: text;
    }
    #auth-entry-user {
      display: none;
    }
    #auth-entry-guest {
      display: inline-flex;
    }
    .header-primary-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 12px;
      width: 100%;
    }
    .header-account-icons {
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    #auth-logout-wrap {
      display: none;
    }
    #auth-entry-user {
      align-items: center;
      gap: 8px;
    }
    .header-account-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      padding: 0;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--bg-elev, transparent);
      color: inherit;
      text-decoration: none;
      box-sizing: border-box;
    }
    .header-account-icon:hover {
      border-color: var(--accent);
      color: var(--accent);
    }
    .header-account-icon .header-nav-icon {
      width: 18px;
      height: 18px;
    }
    .header-account-label {
      display: none;
    }
    .header-top-bar .btn-theme {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 12px;
      font-size: 0.82rem;
      border-radius: 10px;
      text-decoration: none;
      color: inherit;
      box-sizing: border-box;
    }
    .header-menu-row,
    .header-menu-overlay,
    .header-menu-sheet-head {
      display: none;
    }
    .header-menu-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      font-size: 0.82rem;
      font-weight: 650;
      border-radius: 10px;
    }
    .header-menu-btn .header-nav-icon {
      width: 18px;
      height: 18px;
    }
    @media (max-width: 768px) {
      body.header-menu-open {
        overflow: hidden;
      }
      .header-menu-row {
        display: flex;
        justify-content: flex-end;
        align-items: center;
      }
      .header-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 10040;
        background: rgba(15, 23, 42, 0.46);
      }
      body.header-menu-open .header-menu-overlay {
        display: block;
      }
      .header-top-bar,
      .header-top-bar.is-authenticated {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 10041;
        width: min(20rem, 92vw);
        height: 100%;
        max-height: 100dvh;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        margin: 0;
        padding: 14px 12px 28px;
        overflow: auto;
        background: var(--bg-elev);
        border: none;
        border-left: 1px solid var(--border);
        border-radius: 16px 0 0 16px;
        box-shadow: -16px 0 40px rgba(15, 23, 42, 0.22);
        font-size: 0.86rem;
        transform: translateX(100%);
        transition: transform 0.2s ease;
        pointer-events: none;
      }
      body.header-menu-open .header-top-bar {
        transform: translateX(0);
        pointer-events: auto;
      }
      .header-menu-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: 0 0 4px;
        padding: 2px 2px 10px;
        border-bottom: 1px solid var(--border);
        color: var(--text);
        font-size: 0.92rem;
        font-weight: 700;
      }
      .header-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--bg);
        color: var(--text);
        font-size: 1.25rem;
        line-height: 1;
        cursor: pointer;
      }
      .header-top-bar .header-tb-item {
        width: 100%;
        min-height: 40px;
        padding: 8px 10px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--bg);
        box-sizing: border-box;
      }
      .header-top-bar .header-tb-item:has(.btn-theme),
      .header-top-bar .header-tb-item:has(a.btn-theme) {
        padding: 0;
        border: none;
        background: none;
        min-height: 0;
      }
      .header-top-bar .btn-theme {
        width: 100%;
        justify-content: flex-start;
        padding: 9px 10px;
        border-radius: 12px;
      }
      .header-top-bar > * {
        order: 2;
      }
      .header-menu-sheet-head {
        order: 0;
      }
      .header-primary-row {
        order: 1;
        flex-direction: column;
        align-items: stretch;
        align-self: stretch;
        width: 100%;
        margin-left: 0;
        gap: 8px;
      }
      .header-account-icons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
      }
      .header-toolbar-row {
        order: 2;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
      }
      .header-account-icon {
        width: 100%;
        height: auto;
        justify-content: flex-start;
        gap: 8px;
        padding: 9px 10px;
        border-radius: 12px;
      }
      .header-account-label {
        display: inline;
        font-size: 0.82rem;
        font-weight: 650;
      }
      #auth-entry-user {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
      }
      #compare-tray-badge {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        box-sizing: border-box;
        padding: 9px 10px;
        border-radius: 12px;
      }
    }
    .header-brand-block {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      width: 100%;
    }
    .header-brand-title {
      margin: 0;
      max-width: 38rem;
      font-size: clamp(1.08rem, 2.7vw, 1.58rem);
      font-weight: 800;
      letter-spacing: -0.02em;
      line-height: 1.25;
    }
    .region-switch {
      display: inline-grid;
      grid-template-columns: 1fr 1fr;
      width: min(100%, 34rem);
      padding: 4px;
      gap: 4px;
      border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
      border-radius: 14px;
      background:
        linear-gradient(
          165deg,
          color-mix(in srgb, var(--surface) 88%, var(--accent) 12%),
          color-mix(in srgb, var(--bg-elev) 92%, transparent)
        );
      box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
    }
    .region-switch__opt {
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: 0;
      padding: 0.58rem 0.78rem;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: var(--muted);
      font: inherit;
      font-size: clamp(0.8rem, 1.8vw, 0.95rem);
      font-weight: 650;
      line-height: 1.2;
      text-decoration: none;
      cursor: pointer;
      transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
    }
    .region-switch__label {
      min-width: 0;
      text-align: left;
    }
    .region-switch__code {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 2.1rem;
      padding: 0.18rem 0.42rem;
      border-radius: 999px;
      border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
      background: color-mix(in srgb, var(--bg) 55%, transparent);
      color: inherit;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      line-height: 1;
    }
    .region-switch__opt.is-active {
      background: color-mix(in srgb, var(--accent) 22%, var(--bg-elev));
      color: var(--text);
      box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 22%, transparent);
      cursor: default;
    }
    .region-switch__opt.is-active .region-switch__code {
      border-color: color-mix(in srgb, var(--accent) 45%, transparent);
      background: color-mix(in srgb, var(--accent) 28%, transparent);
      color: color-mix(in srgb, var(--accent) 35%, var(--text));
    }
    .region-switch__opt:not(.is-active):hover {
      color: var(--text);
      background: color-mix(in srgb, var(--accent) 10%, transparent);
      transform: translateY(-1px);
    }
    @media (max-width: 520px) {
      .region-switch {
        width: 100%;
      }
      .region-switch__opt {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 0.62rem 0.7rem;
      }
    }
    .header-meta-row {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      width: 100%;
    }
    @media (min-width: 721px) {
      .header-meta-row {
        flex-direction: row;
        align-items: baseline;
        gap: 12px 22px;
      }
      .header-meta-row .sub {
        margin-top: 0;
        flex: 1 1 auto;
        min-width: 0;
      }
    }
    .header-about-link {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin: 0;
      padding: 0;
      border: none;
      background: none;
      box-shadow: none;
      font-size: clamp(0.88rem, 2vw, 1rem);
      font-weight: 600;
      letter-spacing: 0.01em;
      color: var(--accent);
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 3px;
      text-decoration-color: var(--accent);
      white-space: nowrap;
      flex-shrink: 0;
      cursor: pointer;
      transition: color 0.16s ease, text-decoration-color 0.16s ease;
    }
    .header-about-link:hover {
      color: var(--accent-hover);
      text-decoration-color: var(--accent-hover);
    }
    .header-about-link:active {
      color: var(--accent-hover);
    }
    .header-about-icon {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      color: currentColor;
      opacity: 0.82;
      transition: opacity 0.16s ease, transform 0.16s ease;
    }
    .header-about-link:hover .header-about-icon {
      opacity: 1;
      transform: translateY(-1px);
    }
    .sub {
      color: var(--muted);
      font-size: 0.9rem;
      margin: 0;
      max-width: 36em;
    }
    .btn-theme {
      border: 1px solid var(--border); background: var(--surface); color: var(--text);
      padding: 10px 14px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 0.85rem;
      transition: transform 0.15s ease, border-color 0.15s;
    }
    .btn-theme:hover { transform: translateY(-1px); border-color: rgba(56, 137, 124, 0.45); }

    .landing-shell {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-bottom: 20px;
    }
    .landing-hero {
      background: linear-gradient(150deg, rgba(56, 137, 124, 0.2), rgba(167, 139, 250, 0.16));
      border: 1px solid var(--border);
      border-radius: 22px;
      padding: 26px 24px;
      box-shadow: var(--shadow);
    }
    .landing-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.74rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text);
      border: 1px solid rgba(56, 137, 124, 0.5);
      background: rgba(56, 137, 124, 0.14);
      padding: 6px 10px;
      border-radius: 999px;
    }
    .landing-hero h2 {
      margin: 12px 0 10px;
      font-size: 2rem;
      line-height: 1.15;
      letter-spacing: -0.02em;
      max-width: 21ch;
    }
    .landing-lead {
      margin: 0;
      color: var(--text-secondary);
      max-width: 66ch;
      line-height: 1.6;
      font-size: 1rem;
    }
    .landing-cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 20px;
    }
    .landing-top-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 10px;
    }
    .landing-top-nav a {
      text-decoration: none;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text-secondary);
      border-radius: 999px;
      padding: 6px 11px;
      font-size: 0.78rem;
      font-weight: 600;
    }
    .landing-top-nav a:hover {
      border-color: rgba(56, 137, 124, 0.45);
      color: var(--text);
    }
    .landing-kpi-grid {
      display: grid;
      gap: 10px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .landing-kpi-card {
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--bg-elev);
      padding: 14px;
    }
    .landing-kpi-title {
      margin: 0;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--text-secondary);
    }
    .landing-kpi-text {
      margin: 8px 0 0;
      font-size: 0.92rem;
      line-height: 1.5;
      color: var(--text);
    }
    .landing-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .landing-card {
      background: var(--bg-elev);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 16px;
      box-shadow: var(--shadow);
    }
    .landing-card h3 {
      margin: 0 0 10px;
      font-size: 1rem;
    }
    .landing-card ul,
    .landing-card ol {
      margin: 0;
      padding-left: 18px;
      color: var(--text-secondary);
      line-height: 1.55;
      font-size: 0.9rem;
    }
    .landing-card li + li {
      margin-top: 6px;
    }
    .landing-feature-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .landing-feature {
      border: 1px solid var(--border);
      border-radius: 14px;
      background: var(--surface);
      padding: 12px;
    }
    .landing-feature h4 {
      margin: 0;
      font-size: 0.9rem;
    }
    .landing-feature p {
      margin: 8px 0 0;
      font-size: 0.83rem;
      color: var(--text-secondary);
      line-height: 1.45;
    }
    .landing-audience-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .landing-audience-card {
      border: 1px solid var(--border);
      border-radius: 14px;
      background: var(--bg-elev);
      padding: 13px;
    }
    .landing-audience-card h4 {
      margin: 0 0 8px;
      font-size: 0.9rem;
    }
    .landing-audience-card p {
      margin: 0;
      font-size: 0.83rem;
      line-height: 1.48;
      color: var(--text-secondary);
    }
    .landing-proof {
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--bg-elev);
      padding: 14px;
    }
    .landing-proof h3 {
      margin: 0 0 10px;
      font-size: 1rem;
    }
    .landing-proof-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .landing-proof-item {
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 10px;
      background: var(--surface);
    }
    .landing-proof-title {
      margin: 0;
      font-size: 0.76rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--text-secondary);
    }
    .landing-proof-text {
      margin: 8px 0 0;
      font-size: 0.84rem;
      line-height: 1.45;
      color: var(--text);
    }
    .landing-cases-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .landing-case-card {
      border: 1px solid var(--border);
      border-radius: 14px;
      background: var(--bg-elev);
      padding: 12px;
    }
    .landing-case-card h4 {
      margin: 0 0 8px;
      font-size: 0.88rem;
    }
    .landing-case-card p {
      margin: 0;
      font-size: 0.82rem;
      line-height: 1.45;
      color: var(--text-secondary);
    }
    .landing-process {
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--bg-elev);
      padding: 14px;
    }
    .landing-process h3 {
      margin: 0 0 10px;
      font-size: 1rem;
    }
    .landing-process-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .landing-process-step {
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--surface);
      padding: 10px;
    }
    .landing-process-step p {
      margin: 0;
      font-size: 0.84rem;
      line-height: 1.5;
      color: var(--text-secondary);
    }
    .landing-step-num {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      border-radius: 999px;
      background: rgba(56, 137, 124, 0.2);
      color: var(--text);
      font-size: 0.78rem;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .landing-trust {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .landing-trust-item {
      border: 1px solid var(--border);
      border-radius: 14px;
      background: var(--bg-elev);
      padding: 12px;
      font-size: 0.84rem;
      line-height: 1.45;
      color: var(--text-secondary);
    }
    .landing-final-cta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: linear-gradient(140deg, rgba(56, 137, 124, 0.16), rgba(167, 139, 250, 0.12));
      padding: 16px;
      margin-bottom: 8px;
    }
    .landing-final-cta h3 {
      margin: 0 0 5px;
      font-size: 1.05rem;
    }
    .landing-final-cta p {
      margin: 0;
      color: var(--text-secondary);
      font-size: 0.88rem;
    }
    .landing-link {
      color: var(--accent-2);
      text-underline-offset: 2px;
    }
    @media (max-width: 920px) {
      .landing-kpi-grid,
      .landing-audience-grid,
      .landing-proof-grid,
      .landing-cases-grid,
      .landing-process-grid,
      .landing-feature-grid,
      .landing-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    @media (max-width: 720px) {
      .landing-hero {
        padding: 18px 16px;
        border-radius: 18px;
      }
      .landing-hero h2 {
        font-size: 1.48rem;
      }
      .landing-grid,
      .landing-kpi-grid,
      .landing-audience-grid,
      .landing-proof-grid,
      .landing-cases-grid,
      .landing-process-grid,
      .landing-feature-grid,
      .landing-trust {
        grid-template-columns: 1fr;
      }
      .landing-final-cta {
        align-items: flex-start;
      }
    }

    .parse-update-banner {
      display: flex;
      justify-content: center;
      margin-bottom: 14px;
      text-align: center;
    }
    .parse-update-banner .parse-update-pill {
      max-width: 100%;
      white-space: normal;
      justify-content: center;
      text-align: center;
      line-height: 1.35;
    }

    .stats {
      display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 22px;
    }
    @media (max-width: 1080px) { .stats { grid-template-columns: repeat(3, 1fr); } }
    .stat-card {
      background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 16px; box-shadow: var(--shadow);
      animation: cardIn 0.45s ease both;
    }
    .stat-card:nth-child(1) { animation-delay: 0.02s; }
    .stat-card:nth-child(2) { animation-delay: 0.06s; }
    .stat-card:nth-child(3) { animation-delay: 0.1s; }
    .stat-card:nth-child(4) { animation-delay: 0.14s; }
    .stat-card:nth-child(5) { animation-delay: 0.18s; }
    .stat-card:nth-child(6) { animation-delay: 0.22s; }
    @keyframes cardIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: none; }
    }
    .stat-card .label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
    .stat-card .value { font-size: 1.55rem; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
    @media (max-width: 768px) {
      .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 14px;
      }
      .stat-card {
        padding: 8px 10px;
        border-radius: 12px;
        box-shadow: none;
      }
      .stat-card .value {
        margin-top: 2px;
        font-size: 1.05rem;
      }
      .stat-card .label {
        font-size: 0.62rem;
        letter-spacing: 0.03em;
        line-height: 1.2;
      }
    }
    .stat-card[title] { cursor: help; }
    .stat-card-hint {
      cursor: help;
      -webkit-tap-highlight-color: rgba(56, 137, 124, 0.2);
    }
    .stat-card-hint .stat-card-hint-text {
      display: none;
      font-size: 0.78rem;
      color: var(--muted);
      margin: 12px 0 0;
      line-height: 1.4;
      font-weight: 500;
      text-transform: none;
      letter-spacing: normal;
    }
    .stat-card-hint.stat-card-hint-open .stat-card-hint-text {
      display: block;
    }
    @media (hover: hover) and (pointer: fine) {
      .stat-card-hint .stat-card-hint-text {
        display: none !important;
      }
      .stat-card-hint.stat-card-hint-open .stat-card-hint-text {
        display: none !important;
      }
    }

    .search-mode-extras {
      display: none;
      flex-direction: column;
      gap: 8px;
      margin-top: 10px;
      padding: 10px 12px;
      background: var(--bg-primary);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      font-size: 0.82rem;
      color: var(--text-secondary);
    }
    .search-flags-block {
      display: none;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px 20px;
      margin-top: 10px;
      padding: 10px 12px;
      background: var(--bg-primary);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      font-size: 0.82rem;
      color: var(--text-secondary);
    }
    .search-flags-block .search-extra-row {
      margin: 0;
    }
    .search-unclaimed-block {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 16px;
      padding: 8px 10px;
      border: 1px dashed var(--border-color);
      border-radius: 10px;
      background: color-mix(in srgb, var(--bg-primary) 82%, var(--border-color));
    }
    .search-unclaimed-block > .search-extra-hint {
      flex: 1 0 100%;
      font-weight: 600;
      color: var(--text-primary);
    }
    .search-outcome-wrap {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }
    .search-outcome-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
      gap: 8px 16px;
      width: 100%;
      min-width: 0;
    }
    .search-outcome-grid .search-extra-label {
      margin: 0;
      min-height: 1.5em;
      display: inline-flex;
      align-items: center;
    }
    .search-filters-toggle {
      margin-top: 10px;
      align-self: flex-start;
      border: 1px solid var(--border-color);
      background: var(--surface);
      color: var(--text-primary);
      border-radius: 10px;
      padding: 8px 12px;
      font-size: 0.82rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
    }
    .search-filters-toggle:hover {
      border-color: var(--accent);
    }
    .search-filters-panel {
      display: flex;
      flex-direction: column;
    }
    .search-filters-panel.is-collapsed,
    .search-filters-panel[hidden] {
      display: none;
    }
    .search-app-end-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 14px;
      margin-top: 10px;
      padding: 10px 12px;
      background: var(--bg-primary);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      font-size: 0.82rem;
      color: var(--text-secondary);
    }
    .search-app-end-row .search-date-input {
      min-height: 34px;
      padding: 4px 8px;
      border-radius: 8px;
      border: 1px solid var(--border-color);
      background: var(--bg-secondary);
      color: var(--text-primary);
      font-size: 0.86rem;
    }
    .search-app-end-row .search-select-input,
    .search-app-end-row .search-price-input {
      min-height: 34px;
      padding: 4px 8px;
      border-radius: 8px;
      border: 1px solid var(--border-color);
      background: var(--bg-secondary);
      color: var(--text-primary);
      font-size: 0.86rem;
    }
    .search-app-end-row .search-price-input {
      width: 7.5rem;
      max-width: 9rem;
    }
    .search-app-end-row .search-price-input.is-invalid {
      border-color: #c0392b;
      outline-color: #c0392b;
    }
    .search-mkad-price-block {
      margin-top: 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .search-mkad-price-block .search-app-end-row {
      margin-top: 0;
    }
    .search-app-end-clear {
      border: none;
      background: transparent;
      color: var(--muted);
      font-weight: 600;
      cursor: pointer;
      padding: 4px 6px;
      text-decoration: underline;
    }
    .search-app-end-clear:hover {
      color: var(--text-primary);
    }
    .search-app-end-hint-short,
    .search-app-end-clear-short { display: none; }
    @media (max-width: 720px) {
      .search-app-end-row {
        flex-wrap: wrap;
        gap: 6px 8px;
        padding: 8px 10px;
        font-size: 0.72rem;
        overflow-x: visible;
      }
      .search-app-end-row .search-app-end-hint-full,
      .search-app-end-row .search-app-end-clear-full { display: none; }
      .search-app-end-row .search-app-end-hint-short,
      .search-app-end-row .search-app-end-clear-short { display: inline; }
      /* Завершённые / срок подачи: полный заголовок и на мобиле */
      #app-end-filter-wrap .search-app-end-hint-full { display: inline; }
      #app-end-filter-wrap .search-app-end-hint-short { display: none; }
      .search-app-end-row .search-extra-hint {
        flex: 1 1 100%;
        white-space: normal;
        font-size: 0.72rem;
        font-weight: 600;
      }
      .search-app-end-row .search-extra-label {
        flex: 1 1 auto;
        min-width: 0;
        gap: 4px;
        white-space: nowrap;
        font-size: 0.7rem;
        font-weight: 500;
      }
      .search-app-end-row .search-date-input {
        min-height: 30px;
        width: 100%;
        max-width: 9rem;
        min-width: 0;
        padding: 3px 4px;
        font-size: 0.7rem;
        border-radius: 6px;
      }
      .search-app-end-row .search-select-input,
      .search-app-end-row .search-price-input {
        min-height: 30px;
        max-width: 6.5rem;
        padding: 3px 4px;
        font-size: 0.7rem;
        border-radius: 6px;
      }
      .search-app-end-row .search-price-input {
        max-width: 7rem;
        width: 100%;
      }
      .search-app-end-clear {
        flex: 0 0 auto;
        padding: 2px 4px;
        font-size: 0.7rem;
        white-space: nowrap;
      }
    }
    .search-extra-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px 16px;
      position: relative;
    }
    .search-filter-help {
      position: relative;
      display: inline-flex;
      align-items: center;
    }
    .search-filter-help-btn {
      width: 22px;
      height: 22px;
      padding: 0;
      border-radius: 50%;
      border: 1px solid var(--border-color);
      background: var(--bg-secondary);
      color: var(--muted);
      font-weight: 700;
      font-size: 0.85rem;
      line-height: 1;
      cursor: help;
    }
    .search-filter-help-pop {
      display: none;
      position: absolute;
      left: 0;
      top: calc(100% + 8px);
      z-index: 40;
      width: min(360px, 82vw);
      padding: 10px 12px;
      background: var(--bg-primary);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
      color: var(--text-primary);
      font-size: 0.82rem;
      font-weight: 500;
      line-height: 1.45;
      white-space: normal;
    }
    .search-filter-help.is-open .search-filter-help-pop,
    .search-filter-help:hover .search-filter-help-pop,
    .search-filter-help:focus-within .search-filter-help-pop {
      display: block;
    }
    .search-extra-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      user-select: none;
      color: var(--text-primary);
      font-weight: 500;
    }
    .search-extra-hint {
      font-weight: 600;
      color: var(--muted);
      margin-right: 4px;
    }
    .search-pager {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 10px 14px;
      margin: 0 0 16px;
      padding: 10px 12px;
      background: var(--bg-primary);
      border: 1px solid var(--border-color);
      border-radius: 12px;
    }
    .search-pager-meta {
      font-size: 0.88rem;
      color: var(--muted);
      font-weight: 600;
    }
    .search-pager-btn {
      min-height: 38px;
      padding: 8px 16px;
      font-size: 0.86rem;
      font-weight: 600;
      border-radius: 10px;
      cursor: pointer;
    }
    .search-pager-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .search-pager--footer {
      margin-top: 18px;
      margin-bottom: 0;
    }
    .search-pager-goto {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .search-pager-input {
      width: 4.25rem;
      max-width: 24vw;
      min-height: 38px;
      box-sizing: border-box;
      padding: 6px 8px;
      font-size: 0.9rem;
      font-weight: 600;
      text-align: center;
      border-radius: 10px;
      border: 1px solid var(--border-color);
      background: var(--bg-secondary);
      color: var(--text-primary);
    }
    .search-pager-input::-webkit-outer-spin-button,
    .search-pager-input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    .search-pager-input[type="number"] {
      appearance: textfield;
      -moz-appearance: textfield;
    }
    .search-scope-hint {
      font-size: 0.9rem;
      color: var(--muted);
      margin: 0 0 10px;
      line-height: 1.45;
    }
    .search-all-lots-row {
      margin-top: 4px;
    }
    .analog-search-controls {
      display: none;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
      margin-top: 4px;
      padding: 10px 12px;
      background: var(--bg-primary);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      color: var(--text-secondary);
      font-size: 0.86rem;
    }
    .analog-search-controls.is-active {
      display: flex;
    }
    .analog-search-prefix {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-weight: 700;
      color: var(--accent);
      word-break: break-word;
    }
    .analog-search-controls .btn-secondary:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .analog-search-controls .btn-secondary.is-loading {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      opacity: 0.82;
      cursor: wait;
    }
    .analog-search-controls .btn-secondary .spinner {
      width: 14px;
      height: 14px;
      flex: 0 0 auto;
    }

    .search-panel {
      background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 16px; margin-bottom: 18px; box-shadow: var(--shadow);
      display: flex; flex-direction: column; gap: 12px;
    }
    .search-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: stretch;
    }
    .search-strict-row {
      margin-top: -4px;
    }
    .search-strict-row[hidden] {
      display: none;
    }
    #text-search-row > #mkad-km-filter-row {
      display: flex;
      align-items: center;
      gap: 10px 14px;
      margin: 0;
      padding: 0;
      background: none;
      border: none;
      flex: 1 1 auto;
    }
    .search-strict-label {
      font-size: 0.88rem;
    }

    .search-row .search-input {
      flex: 1 1 220px;
      min-width: 0;
      width: 100%;
      box-sizing: border-box;
      padding: 12px 14px;
      border-radius: 12px;
      border: 2px solid rgba(56, 137, 124, 0.52);
      background: var(--surface);
      color: var(--text);
      font-size: 0.95rem;
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      font-family: inherit;
      box-shadow:
        0 0 0 1px rgba(56, 137, 124, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }

    [data-theme="light"] .search-row .search-input {
      border-color: rgba(47, 114, 104, 0.42);
      box-shadow:
        0 0 0 1px rgba(47, 114, 104, 0.2),
        inset 0 1px 2px rgba(15, 23, 42, 0.05);
    }

    .search-row .search-input:focus {
      border-color: rgba(56, 137, 124, 0.95);
      box-shadow:
        0 0 0 4px rgba(56, 137, 124, 0.28),
        0 0 0 1px rgba(56, 137, 124, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    [data-theme="light"] .search-row .search-input:focus {
      border-color: rgba(43, 106, 97, 0.9);
      box-shadow:
        0 0 0 4px rgba(47, 114, 104, 0.22),
        0 0 0 1px rgba(47, 114, 104, 0.35),
        inset 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .status-toggle {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      background: var(--bg-primary);
      border-radius: 16px;
      padding: 8px;
      border: 1px solid var(--border-color);
    }

    .status-btn {
      min-height: 42px;
      padding: 10px 16px;
      border: none;
      background: transparent;
      border-radius: 12px;
      cursor: pointer;
      font-size: 0.88rem;
      font-weight: 600;
      transition: all 0.2s;
      color: var(--text-secondary);
      font-family: inherit;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .status-btn.active {
      background: #2a6b61;
      color: #ffffff;
    }

    .transaction-filters .transaction-btn.active,
    .transaction-filters .transaction-btn:hover {
      background: #4ea394;
      border-color: #4ea394;
      color: #ffffff;
    }

    #highway-search-row {
      display: contents;
    }
    #highway-search-row[hidden] {
      display: none;
    }

    .transaction-filters {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .transaction-btn {
      min-height: 42px;
      padding: 10px 12px;
      background: var(--surface);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      cursor: pointer;
      font-size: 0.86rem;
      font-weight: 600;
      transition: all 0.2s;
      color: var(--text-primary);
      font-family: inherit;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .transaction-btn.active {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }

    .transaction-btn:hover {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }

    .search-mode-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .search-mode-row .transaction-btn {
      width: 100%;
    }

    #btn-standard-search-mode:hover,
    #btn-analog-search-mode:hover,
    #btn-highway-search-mode:hover {
      background: var(--surface);
      color: var(--text-primary);
      border-color: var(--border-color);
    }

    #btn-standard-search-mode.active,
    #btn-standard-search-mode.active:hover,
    #btn-analog-search-mode.active,
    #btn-analog-search-mode.active:hover,
    #btn-highway-search-mode.active,
    #btn-highway-search-mode.active:hover {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }

    @media (max-width: 720px) {
      .status-toggle {
        grid-template-columns: 1fr;
      }
      .transaction-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
      }
      .transaction-btn {
        min-height: 34px;
        padding: 6px 4px;
        font-size: 0.68rem;
        border-radius: 10px;
        line-height: 1.2;
      }
    }

    @media (max-width: 380px) {
      .transaction-filters {
        gap: 4px;
      }
      .transaction-btn {
        padding: 5px 2px;
        font-size: 0.62rem;
        min-height: 32px;
      }
    }

    .lot-card .completed-icon {
      color: inherit;
      filter: none;
    }

    .lot-card .status-pill.status-completed,
    .lot-card .status-pill.st-cancel-dark {
      background: #6b7280;
      color: white;
    }

    [data-theme="light"] .lot-card .status-pill.status-completed,
    [data-theme="light"] .lot-card .status-pill.st-cancel-dark {
      color: #ffffff;
    }

    .btn-primary {
      border: none; background: linear-gradient(135deg, rgba(56, 137, 124, 0.3), rgba(167, 139, 250, 0.18));
      color: var(--text); padding: 12px 22px; border-radius: 12px; font-weight: 700; cursor: pointer;
      min-width: 120px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      transition: opacity 0.2s, transform 0.15s;
    }
    .btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
    .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
    .btn-outline {
      border: 1px solid var(--border); background: var(--surface); color: var(--text);
      padding: 12px 18px; border-radius: 12px; font-weight: 600; cursor: pointer; font-size: 0.9rem;
      transition: border-color 0.2s, transform 0.15s;
    }
    .btn-outline:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(56, 137, 124, 0.45); }
    .btn-outline:disabled { opacity: 0.55; cursor: not-allowed; }

    .search-meta {
      display: none; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px;
      font-size: 0.92rem; border: 1px solid rgba(56, 137, 124, 0.45);
      background: rgba(56, 137, 124, 0.12); color: var(--text);
    }
    .search-meta.visible { display: block; animation: fadeIn 0.35s ease; }

    .empty-state {
      display: none; padding: 20px 18px; border-radius: var(--radius);
      border: 1px dashed var(--border); background: var(--bg-elev); margin-bottom: 16px;
    }
    .empty-state.visible { display: block; animation: fadeIn 0.35s ease; }
    .empty-state .empty-title { margin: 0 0 10px; font-size: 1rem; font-weight: 700; }
    .empty-state .empty-title strong { color: var(--accent); font-weight: 800; }
    .empty-state .empty-examples { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
    .empty-state .empty-try { margin: 12px 0 6px; font-size: 0.9rem; font-weight: 600; }
    .empty-state ul.empty-suggestions {
      margin: 0; padding-left: 1.25rem; font-size: 0.88rem; color: var(--muted); line-height: 1.55;
    }
    .empty-state ul.empty-suggestions li { margin-bottom: 6px; }
    .empty-state ul.empty-suggestions li.empty-districts { margin-top: 8px; list-style: none; margin-left: -1.25rem; }

    .search-meta .search-summary-line { margin: 0 0 8px; font-size: 0.95rem; }
    .search-meta .search-summary-line strong { font-variant-numeric: tabular-nums; }
    .search-meta .search-summary-districts { margin: 0; font-size: 0.88rem; color: var(--muted); }

    .lot-card-output { margin-bottom: 18px; }
    .lot-card-output .no-results {
      padding: 28px 22px; text-align: center; background: var(--bg-secondary);
      border: 1px solid var(--border); border-radius: 12px;
    }
    .lot-card-output .no-results .tips-block { margin-top: 20px; text-align: left; max-width: 520px; margin-left: auto; margin-right: auto; }
    .lot-card-output .no-results ul { margin: 8px 0 0; padding-left: 1.25rem; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
    .lot-card-output .district-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .district-btn {
      border: 1px solid var(--border); background: var(--surface); color: var(--text);
      padding: 8px 14px; border-radius: 10px; font-size: 0.86rem; font-weight: 600; cursor: pointer;
      transition: border-color 0.15s, transform 0.12s;
    }
    .district-btn:hover { border-color: rgba(56, 137, 124, 0.5); transform: translateY(-1px); }

    .lot-card-output .search-info {
      margin-bottom: 18px; padding: 14px 16px; background: var(--bg-primary);
      border: 1px solid var(--border); border-radius: 12px; font-size: 0.92rem;
    }
    .lot-card-output .search-info p { margin: 0 0 8px; }
    .lot-card-output .search-info p:last-child { margin-bottom: 0; }
    .lot-card-output .grid-lots {
      display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0;
    }
    @media (max-width: 720px) { .lot-card-output .grid-lots { grid-template-columns: minmax(0, 1fr); } }

    .spinner {
      width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.25);
      border-top-color: var(--accent); border-radius: 50%; animation: spin 0.65s linear infinite;
    }
    [data-theme="light"] .spinner { border-color: rgba(15, 23, 42, 0.15); border-top-color: #0d9488; }
    @keyframes spin { to { transform: rotate(360deg); } }

    .alert {
      padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 0.9rem;
      border: 1px solid var(--border); animation: fadeIn 0.35s ease;
    }
    .alert.err { border-color: rgba(251, 113, 133, 0.45); background: rgba(251, 113, 133, 0.08); }
    .alert.info { border-color: rgba(56, 137, 124, 0.45); background: rgba(56, 137, 124, 0.12); }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

    #alertBox { display: none !important; }

    .ui-toast-host {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 12000;
    }
    .ui-toast {
      position: fixed;
      max-width: min(360px, calc(100vw - 24px));
      padding: 10px 14px;
      border-radius: 12px;
      font-size: 0.88rem;
      font-weight: 600;
      line-height: 1.35;
      color: var(--text);
      border: 1px solid var(--border);
      box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
      background: var(--bg-elev);
      pointer-events: auto;
      opacity: 0;
      transform: translateY(6px) scale(0.98);
      transition: opacity 0.18s ease, transform 0.18s ease;
      word-break: break-word;
    }
    .ui-toast.is-visible {
      opacity: 1;
      transform: none;
    }
    .ui-toast.is-leaving {
      opacity: 0;
      transform: translateY(-4px) scale(0.98);
    }
    .ui-toast.info,
    .ui-toast.success {
      border-color: rgba(56, 137, 124, 0.55);
      background: color-mix(in srgb, var(--bg-elev) 82%, rgba(56, 137, 124, 0.28));
    }
    .ui-toast.err,
    .ui-toast.error,
    .ui-toast.warning {
      border-color: rgba(251, 113, 133, 0.55);
      background: color-mix(in srgb, var(--bg-elev) 82%, rgba(251, 113, 133, 0.22));
    }
    .ui-toast--rich {
      max-width: min(420px, calc(100vw - 24px));
      font-weight: 500;
    }
    .pano-hint-toast p {
      margin: 0 0 10px;
      font-weight: 600;
      line-height: 1.4;
    }
    .pano-hint-shots {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 14px;
      align-items: flex-end;
    }
    .pano-hint-shots figure {
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
      align-items: flex-start;
    }
    .pano-hint-shots img {
      display: block;
      height: auto;
      max-width: 100%;
      border-radius: 8px;
      border: 1px solid rgba(15, 23, 42, 0.12);
      background: #fff;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    }
    .pano-hint-shots figcaption {
      font-size: 0.72rem;
      font-weight: 500;
      color: var(--muted);
      line-height: 1.2;
    }

    .results-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; color: var(--muted); display: none; }
    .results-title.visible { display: block; }
    .grid-lots {
      display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0;
    }
    .analog-section-title {
      grid-column: 1 / -1;
      margin: 6px 0 0;
      font-size: 1.05rem;
      font-weight: 700;
      line-height: 1.35;
      color: var(--text, inherit);
    }
    @media (max-width: 720px) { .grid-lots { grid-template-columns: minmax(0, 1fr); } }

    .lot-card {
      background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 18px; box-shadow: var(--shadow);
      animation: fadeIn 0.4s ease;
      position: relative;
      min-width: 0;
      max-width: 100%;
    }
    .geo-risk-map {
      margin-top: 12px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--bg);
      overflow: hidden;
    }
    .geo-risk-map__stage { position: relative; height: 320px; }
    @media (min-width: 721px) {
      .geo-risk-map__stage { height: 380px; }
    }
    .geo-risk-map__canvas { height: 100%; width: 100%; background: #eef1ec; }
    .geo-risk-map__fail {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 10px; height: 100%; padding: 16px; text-align: center; color: var(--muted, #5a645c);
      font-size: 0.9rem; line-height: 1.4; box-sizing: border-box;
    }
    .geo-risk-map__fail p { margin: 0; max-width: 28em; }
    .geo-risk-map__retry { margin-top: 2px; }
    .geo-risk-map__spinner {
      position: absolute;
      inset: 0;
      z-index: 5000;
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 10px;
      background: #eef1ec;
      color: var(--muted);
      font-size: 0.85rem;
    }
    .geo-risk-map__stage.is-loading .geo-risk-map__spinner { display: flex; }
    .geo-risk-map__stage.is-loading .geo-risk-map__zoom { visibility: hidden; }
    .geo-risk-map__stage.is-loading ~ .geo-risk-map__legend,
    .geo-risk-map__stage.is-loading ~ .geo-risk-map__note { visibility: hidden; }
    .geo-risk-map__spinner-wheel {
      width: 28px;
      height: 28px;
      border: 3px solid #cfd6c8;
      border-top-color: #3f7a4c;
      border-radius: 50%;
      animation: geo-risk-spin 0.7s linear infinite;
    }
    @keyframes geo-risk-spin { to { transform: rotate(360deg); } }
    .geo-risk-map__zoom {
      position: absolute;
      right: 10px;
      top: 10px;
      z-index: 4000;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .geo-risk-map__zoom button {
      width: 34px;
      height: 34px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: #fff;
      color: var(--text);
      font: 700 1.15rem/1 inherit;
      cursor: pointer;
      box-shadow: 0 1px 4px rgba(0,0,0,.12);
    }
    .geo-risk-map__zoom button:hover { border-color: var(--accent, #3f7a4c); }
    .geo-risk-map__legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
    .geo-risk-map__chip {
      position: relative;
      font-size: 0.78rem;
      padding: 3px 8px;
      border-radius: 999px;
      background: var(--bg-elev);
      border: 1px solid var(--border);
    }
    .geo-risk-map__chip.is-hit { border-color: #c45c4a; color: #8a3b30; }
    .geo-risk-map__chip.is-hv { border-color: #dc2626; color: #991b1b; background: #fee2e2; }
    .geo-risk-map__chip[aria-label] { cursor: help; }
    .geo-risk-map__chip.is-focus { cursor: pointer; }
    .geo-risk-map__tip {
      display: none;
      position: absolute;
      left: 0;
      bottom: calc(100% + 6px);
      z-index: 40;
      width: min(320px, 72vw);
      padding: 8px 10px;
      border-radius: 8px;
      background: #2c2a26;
      color: #f4f1ea;
      font-size: 0.75rem;
      font-weight: 400;
      line-height: 1.4;
      box-shadow: 0 4px 14px rgba(0,0,0,.18);
      white-space: normal;
      pointer-events: none;
    }
    .geo-risk-map__chip:hover .geo-risk-map__tip,
    .geo-risk-map__chip:focus .geo-risk-map__tip { display: block; }
    .geo-risk-map__note { margin: 0 12px 10px; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
    .geo-risk-map__swatch {
      display: inline-block;
      width: 0.7em;
      height: 0.7em;
      border-radius: 50%;
      vertical-align: -0.05em;
      margin: 0 0.28em 0 0.08em;
    }
    .geo-risk-map__swatch.is-hv { background: #dc2626; border-radius: 50%; }
    .geo-risk-map__swatch.is-water { background: #3d7ea6; border-radius: 50%; }
    .lot-tool-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      width: 100%;
      min-height: 32px;
      padding: 8px 11px;
      border-radius: 10px;
      border: 1px solid rgba(71, 85, 105, 0.5);
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.1));
      color: var(--text);
      font-family: inherit;
      font-size: 0.8rem;
      font-weight: 500;
      line-height: 1.25;
      text-align: left;
      white-space: normal;
      cursor: pointer;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
      box-sizing: border-box;
      transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
    }
    .lot-asking-load-btn:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }
    .lot-tool-btn:hover:not(:disabled) {
      background: rgba(56, 137, 124, 0.08);
      border-color: rgba(56, 137, 124, 0.45);
      filter: none;
      transform: translateY(-1px);
    }
    .geo-risk-map__toggle.lot-tool-btn {
      background: rgba(37, 99, 235, 0.12);
      border-color: rgba(37, 99, 235, 0.32);
    }
    .geo-risk-map__toggle.lot-tool-btn:hover:not(:disabled) {
      background: rgba(37, 99, 235, 0.22);
      border-color: rgba(37, 99, 235, 0.55);
      transform: translateY(-1px);
      filter: none;
    }
    .geo-risk-map__sat-poles.lot-tool-btn {
      background: rgba(234, 88, 12, 0.12);
      border-color: rgba(234, 88, 12, 0.32);
    }
    .geo-risk-map__sat-poles.lot-tool-btn:hover:not(:disabled) {
      background: rgba(234, 88, 12, 0.22);
      border-color: rgba(234, 88, 12, 0.55);
      transform: translateY(-1px);
      filter: none;
    }
    .lot-access-mark {
      margin-left: auto;
      flex-shrink: 0;
      font-size: 0.95em;
      line-height: 1;
      opacity: 0.92;
    }
    .lot-access-mark--sub {
      color: #ca8a04;
    }
    @media (max-width: 720px) {
      .lot-access-mark,
      .header-access-legend {
        display: none !important;
      }
    }
    .geo-risk-map .lot-tool-btn {
      margin: 6px 12px;
      width: calc(100% - 24px);
    }
    @media (min-width: 721px) {
      .geo-risk-map {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 8px;
      }
      .geo-risk-map .lot-tool-btn {
        margin: 8px 0 8px 12px;
        width: auto;
        min-width: 0;
        justify-self: stretch;
      }
      .geo-risk-map .lot-tool-btn + .lot-tool-btn {
        margin-right: 12px;
        margin-left: 0;
      }
      .geo-risk-map__sat-result,
      .geo-risk-map__body {
        grid-column: 1 / -1;
      }
    }
    .geo-risk-map__sat-result { margin: 0 12px 20px; }
    .geo-risk-map__sat-result img { max-width: 100%; border-radius: 8px; display: block; }
    .geo-risk-map__sat-preview {
      position: relative;
      margin: 14px 0 16px;
      cursor: zoom-in;
      border-radius: 8px;
      overflow: hidden;
    }
    .geo-risk-map__sat-stage { position: relative; display: block; }
    .geo-risk-map__sat-stage img { width: 100%; height: auto; display: block; border-radius: 8px; }
    .geo-risk-map__sat-pole {
      position: absolute;
      width: 14px;
      height: 14px;
      margin-left: -7px;
      margin-top: -7px;
      border-radius: 50%;
      background: #f5c518;
      border: 2px solid #fff;
      box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
      pointer-events: none;
    }
    .geo-risk-map__sat-pole-label {
      position: absolute;
      left: 16px;
      top: -6px;
      white-space: nowrap;
      background: rgba(15, 23, 42, 0.88);
      color: #fff;
      font-size: 11px;
      line-height: 1.2;
      padding: 2px 6px;
      border-radius: 8px;
    }
    .geo-risk-map__sat-zoom {
      position: absolute;
      right: 10px;
      bottom: 10px;
      padding: 6px 10px;
      border-radius: 8px;
      background: rgba(15, 23, 42, 0.78);
      color: #fff;
      font-size: 0.78rem;
      pointer-events: none;
    }
    .geo-risk-map__sat-status {
      font-size: 0.95rem;
      color: var(--text);
      font-weight: 600;
      margin: 0 0 8px;
      line-height: 1.45;
    }
    .geo-risk-map__sat-marker {
      margin: 0 0 10px;
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.4;
    }
    .geo-risk-map__sat-disclaimer {
      margin: 0 0 8px;
      font-size: 0.86rem;
      color: var(--muted);
      line-height: 1.45;
    }
    .geo-risk-map__sat-pp861 {
      margin: 14px 0 10px;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.45;
    }
    .geo-risk-map__sat-guide {
      display: inline-block;
      margin: 0 0 22px;
      padding: 8px 14px;
      border-radius: 8px;
      background: #1d4ed8;
      color: #fff;
      text-decoration: none;
      font-size: 0.86rem;
      font-weight: 600;
    }
    .geo-risk-map__sat-guide:hover {
      filter: brightness(1.08);
      color: #fff;
    }
    .sat-scheme-lightbox {
      position: fixed;
      inset: 0;
      z-index: 10060;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 56px 16px 16px;
      box-sizing: border-box;
    }
    .sat-scheme-lightbox.is-open { display: flex !important; }
    .sat-scheme-lightbox__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.88);
      cursor: pointer;
    }
    .sat-scheme-lightbox__inner {
      position: relative;
      z-index: 1;
      width: min(96vw, 1200px);
      height: min(88vh, 960px);
      background: #111;
      border-radius: 12px;
      box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
      overflow: auto;
    }
    .sat-scheme-lightbox__inner .geo-risk-map__sat-stage {
      min-height: 100%;
    }
    .sat-scheme-lightbox__inner .geo-risk-map__sat-stage img {
      width: 100%;
      height: auto;
      border-radius: 12px;
    }
    .sat-scheme-lightbox__close {
      position: absolute;
      top: -44px;
      right: 0;
      width: 40px;
      height: 40px;
      border: none;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
      font-size: 1.5rem;
      line-height: 1;
      cursor: pointer;
      z-index: 2;
    }
    .sat-scheme-lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
    .lot-card-head {
      min-width: 0;
      max-width: 100%;
    }
    .lot-card-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      margin: 0 0 12px;
      min-width: 0;
      max-width: 100%;
    }
    .lot-card-top h2 {
      margin: 0;
      flex: 1;
      min-width: 0;
      font-size: 1.02rem;
      line-height: 1.35;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
    }
    .lot-card-top h2 > .lot-card-name {
      flex: 1 1 100%;
    }
    .lot-card-status-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 4px;
      min-width: 0;
      max-width: 100%;
      flex: 1 1 100%;
    }
    .lot-status-days {
      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 500;
      line-height: 1.3;
      white-space: nowrap;
    }
    .lot-card-side-pills {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 4px;
      min-width: 0;
      max-width: 100%;
    }
    .lot-card-status-row > .status-pill,
    .lot-card-side-pills .status-pill,
    .lot-card-side-pills .status-pill.status-pill--muted,
    .lot-card-side-pills .status-pill.status-pill--campaign-ext {
      margin-left: 0;
      flex: 0 1 auto;
      max-width: 100%;
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
      text-align: left;
      line-height: 1.25;
    }
    @media (max-width: 720px) {
      .lot-card-side-pills .status-pill.status-pill--muted,
      .lot-card-side-pills .status-pill.status-pill--campaign-ext {
        padding: 1px 6px;
        font-size: 0.62rem;
        font-weight: 600;
        line-height: 1.25;
      }
    }
    .lot-card-name-wrap {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      flex: 1 1 100%;
      min-width: 0;
      max-width: 100%;
    }
    .lot-card-name {
      display: block;
      word-break: break-word;
    }
    /* class display:block beats UA [hidden]; keep toggle working */
    .lot-card-name[hidden] {
      display: none !important;
    }
    .lot-name-toggle {
      appearance: none;
      margin: 0;
      padding: 0;
      border: 0;
      background: none;
      color: var(--accent, #3b82f6);
      font: inherit;
      font-size: 0.82rem;
      line-height: 1.3;
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .lot-name-toggle:hover {
      opacity: 0.85;
    }
    .lot-card-icons {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      flex: 0 0 auto;
      margin-top: 2px;
      position: relative;
      z-index: 50;
    }
    @media (max-width: 720px) {
      .lot-card-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
      }
      .lot-card-top h2 {
        display: contents;
      }
      .lot-card-name,
      .lot-card-name-wrap {
        order: 1;
        max-width: 100%;
      }
      .lot-card-icons {
        position: static;
        order: 2;
        justify-self: end;
        margin-top: 2px;
      }
      .lot-card-status-row {
        order: 3;
      }
    }
    .lot-icon-btn {
      appearance: none;
      width: 32px;
      height: 32px;
      padding: 0;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--bg-elev);
      color: var(--muted);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.95rem;
      line-height: 1;
    }
    .lot-icon-btn:hover {
      color: var(--text);
      border-color: var(--accent);
    }
    .lot-icon-btn.is-on,
    .lot-icon-btn.is-favorited,
    .lot-icon-btn[aria-pressed="true"] {
      color: #c47b00;
      border-color: #e0b35a;
      background: #fff8e8;
    }
    .lot-icon-btn.btn-lot-compare.is-on {
      color: #1d4ed8;
      border-color: #93c5fd;
      background: #eff6ff;
    }
    .lot-icon-btn.btn-lot-subscribe.is-on {
      color: #047857;
      border-color: #6ee7b7;
      background: #ecfdf5;
    }
    .lot-icon-btn.btn-lot-share .lot-share-plane {
      display: block;
      width: 16px;
      height: 16px;
    }
    #compare-tray-badge {
      display: none;
      align-items: center;
      gap: 6px;
      margin-left: 8px;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
    }
    #compare-tray-badge.is-visible { display: inline-flex; }
    .lot-card-pub {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      font-size: 0.86rem;
      color: var(--muted);
      margin: 0 0 12px 0;
    }
    .lot-card-pub .lot-pub-dates {
      min-width: 0;
      flex: 1 1 auto;
    }
    .lot-card-pub .lot-pub-sep {
      opacity: 0.55;
      margin: 0 2px;
    }
    .lot-card-pub .lot-procedure-epoch {
      flex: 1 1 100%;
      font-size: 0.82rem;
    }
    .lot-ext-span {
      margin-left: 6px;
      font-size: 0.82rem;
      color: var(--muted);
    }
    .lot-card-pub .lot-card-mkad {
      flex: 0 1 auto;
      margin-left: auto;
      text-align: right;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
      color: var(--muted);
    }
    .status-pill {
      display: inline-flex;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 0.76rem;
      font-weight: 700;
      max-width: 100%;
      box-sizing: border-box;
    }
    /* Active: PUBLISHED aliased to applications blue (no separate green). */
    .st-published,
    .st-applications {
      background: rgba(96, 165, 250, 0.2);
      color: #93c5fd;
    }
    .st-succeed-ok {
      background: rgba(52, 211, 153, 0.22);
      color: #6ee7b7;
    }
    .st-fail-hard {
      background: rgba(251, 113, 133, 0.2);
      color: #fda4af;
    }
    .st-fail-soft {
      background: rgba(251, 191, 36, 0.2);
      color: #fcd34d;
    }
    .st-cancel,
    .st-cancel-dark {
      background: #6b7280;
      color: #ffffff;
    }
    .st-succeed { background: rgba(52, 211, 153, 0.22); color: #6ee7b7; }
    .st-fail { background: rgba(251, 113, 133, 0.2); color: #fda4af; }
    .st-outcome-unknown { background: rgba(251, 191, 36, 0.18); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.35); }
    .st-default { background: var(--surface); color: var(--muted); }
    .outcome-dot {
      display: inline-block;
      width: 0.55em;
      height: 0.55em;
      border-radius: 50%;
      margin-right: 0.45em;
      vertical-align: 0.05em;
      flex-shrink: 0;
    }
    .outcome-dot--green { background: #34d399; }
    .outcome-dot--red { background: #fb7185; }
    .outcome-dot--yellow { background: #fbbf24; }
    /* Soft secondary plaques: procedures / campaign history — muted so status pill stays primary */
    .status-pill.status-pill--muted {
      margin-left: 8px;
      background: rgba(148, 163, 184, 0.12);
      border: 1px solid rgba(148, 163, 184, 0.28);
      color: #94a3b8;
      font-weight: 600;
    }
    .status-pill.status-pill--campaign-ext {
      margin-left: 8px;
      background: rgba(148, 163, 184, 0.1);
      border: 1px solid rgba(148, 163, 184, 0.26);
      color: #8b9aab;
      font-weight: 600;
    }
    .status-pill.status-pill--prior-cancel {
      margin-left: 8px;
      background: rgba(180, 83, 9, 0.12);
      border: 1px solid rgba(180, 83, 9, 0.35);
      color: #d6a06a;
      font-weight: 600;
    }
    [data-theme="light"] .st-published,
    [data-theme="light"] .st-applications { color: #1d4ed8; }
    [data-theme="light"] .st-succeed-ok,
    [data-theme="light"] .st-succeed { color: #047857; }
    [data-theme="light"] .st-fail-hard,
    [data-theme="light"] .st-fail { color: #be123c; }
    [data-theme="light"] .st-fail-soft { color: #b45309; }
    [data-theme="light"] .st-cancel,
    [data-theme="light"] .st-cancel-dark { background: #6b7280; color: #ffffff; }
    [data-theme="light"] .st-outcome-unknown { color: #b45309; }
    [data-theme="light"] .outcome-dot--green { background: #059669; }
    [data-theme="light"] .outcome-dot--red { background: #e11d48; }
    [data-theme="light"] .outcome-dot--yellow { background: #d97706; }
    [data-theme="light"] .status-pill.status-pill--muted {
      background: rgba(100, 116, 139, 0.08);
      border-color: rgba(100, 116, 139, 0.22);
      color: #64748b;
    }
    .status-pill.status-pill--conduct {
      margin-left: 8px;
      background: #1e2a3d;
      border-color: #3d5a80;
      color: #d0e4ff;
    }
    .lot-conduct {
      margin: 12px 0 4px;
      padding: 12px 14px;
      border: 1px solid var(--line, #2a3a52);
      border-radius: 12px;
      background: rgba(30, 42, 61, 0.45);
    }
    .lot-conduct h3 {
      margin: 0 0 6px;
      font-size: 0.95rem;
      font-weight: 650;
    }
    .lot-conduct-note,
    .lot-conduct-fact {
      margin: 0 0 8px;
      color: var(--muted);
      font-size: 0.86rem;
      line-height: 1.45;
    }
    .lot-conduct-sample {
      margin: 0 0 8px;
      font-size: 0.86rem;
      line-height: 1.45;
      font-weight: 600;
    }
    .lot-conduct svg {
      display: block;
      width: 100%;
      height: auto;
      max-height: 220px;
      margin: 8px 0 10px;
    }
    .lot-conduct .lot-meta {
      margin: 0 0 8px;
    }
    .lot-conduct-tactics {
      margin: 0;
      padding-left: 1.15rem;
      color: var(--muted);
      font-size: 0.86rem;
      line-height: 1.45;
    }
    .lot-conduct-guide {
      display: inline-block;
      margin-top: 6px;
      font-size: 0.86rem;
    }
    [data-theme="light"] .lot-conduct {
      background: #f4f7fb;
      border-color: #d5dee8;
    }
    [data-theme="light"] .status-pill.status-pill--campaign-ext {
      background: rgba(100, 116, 139, 0.07);
      border-color: rgba(100, 116, 139, 0.2);
      color: #6b7280;
    }

    .lot-meta {
      display: grid;
      grid-template-columns: minmax(0, 46%) minmax(0, 54%);
      column-gap: 10px;
      row-gap: 8px;
      font-size: 0.88rem;
      line-height: 1.45;
      align-items: baseline;
    }
    .lot-meta dt {
      color: var(--muted);
      margin: 0;
      padding: 0;
    }
    .lot-meta dd {
      margin: 0;
      padding: 0;
      min-width: 0;
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .lot-meta .highlight { color: var(--accent); font-weight: 600; }
    .lot-meta dd.notice-num {
      font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
      font-size: 0.92em;
      font-variant-numeric: tabular-nums;
    }
    .lot-cad-copy {
      display: inline;
      margin: 0;
      padding: 0;
      border: 0;
      background: none;
      color: var(--accent);
      font: inherit;
      font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
      font-variant-numeric: tabular-nums;
      text-decoration: underline;
      text-underline-offset: 2px;
      cursor: pointer;
      text-align: left;
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .lot-cad-copy:hover {
      filter: brightness(1.08);
    }
    .lot-cad-copy:focus-visible {
      outline: 2px solid rgba(56, 137, 124, 0.55);
      outline-offset: 2px;
      border-radius: 4px;
    }

    .lot-card .info-section {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
      font-size: 0.88rem;
    }
    .lot-card .info-title {
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--text);
    }
    .lot-card .info-row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 6px;
      align-items: flex-start;
    }
    .lot-card .info-row span:first-child { color: var(--muted); flex: 0 1 52%; }
    .lot-card .info-row span:last-child { text-align: right; word-break: break-word; flex: 1; }
    .lot-card .restrictions-json {
      margin-top: 6px;
      font-size: 0.82rem;
      white-space: pre-wrap;
      word-break: break-word;
      color: var(--muted);
      max-height: 8em;
      overflow-y: auto;
    }

    .lot-folds {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin: 0 0 8px;
    }
    .lot-fold,
    .campaign-extension-timeline-lazy {
      margin: 0;
      padding: 0;
      background: transparent;
      border: none;
      border-radius: 8px;
    }
    .lot-fold[open] {
      border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
      background: color-mix(in srgb, var(--accent) 5%, var(--bg-primary));
    }
    .lot-fold > summary,
    .lot-fold-trigger {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      min-height: 30px;
      margin: 0;
      padding: 4px 10px;
      box-sizing: border-box;
      cursor: pointer;
      list-style: none;
      user-select: none;
      border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
      border-radius: 8px;
      background: color-mix(in srgb, var(--accent) 9%, var(--bg-primary));
      color: var(--text);
      font-family: inherit;
      font-size: 0.8125rem;
      font-weight: 650;
      letter-spacing: 0.01em;
      line-height: 1.25;
      text-align: left;
    }
    .lot-fold[open] > summary {
      border-color: transparent;
      background: transparent;
      border-radius: 7px 7px 0 0;
    }
    .lot-fold > summary::-webkit-details-marker { display: none; }
    .lot-fold > summary::marker { content: ""; }
    .lot-fold-trigger {
      appearance: none;
      -webkit-appearance: none;
    }
    .lot-fold > summary::before,
    .lot-fold-trigger::before {
      content: "";
      width: 0.42em;
      height: 0.42em;
      border-right: 2px solid var(--accent);
      border-bottom: 2px solid var(--accent);
      transform: rotate(-45deg);
      transition: transform 0.15s ease;
      flex-shrink: 0;
      margin-top: -1px;
    }
    .lot-fold[open] > summary::before,
    .lot-fold-trigger[aria-expanded="true"]::before {
      transform: rotate(45deg);
      margin-top: 1px;
    }
    .lot-fold-title {
      flex: 1;
      min-width: 0;
      overflow-wrap: anywhere;
    }
    .lot-cko .lot-fold-note {
      margin: 8px 0 0;
      font-size: 0.75rem;
      color: var(--text-muted, #6b7280);
    }
    .lot-fold-count {
      flex-shrink: 0;
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--accent);
      background: color-mix(in srgb, var(--accent) 16%, transparent);
      border-radius: 999px;
      padding: 1px 7px;
      line-height: 1.35;
    }
    .lot-fold-trigger:hover,
    .lot-fold > summary:hover {
      background: color-mix(in srgb, var(--accent) 14%, var(--bg-primary));
      border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
    }
    .lot-fold[open] > summary:hover {
      background: transparent;
    }
    .lot-fold-trigger[hidden] {
      display: none !important;
    }
    .campaign-extension-timeline-lazy .campaign-extension-load-btn.is-loading,
    .campaign-extension-timeline-lazy .campaign-extension-load-btn.is-loading:disabled {
      cursor: wait;
      opacity: 0.78;
    }
    .campaign-extension-timeline-lazy .campaign-extension-load-btn:disabled:not(.is-loading) {
      cursor: default;
    }
    .campaign-extension-timeline-lazy.is-loaded {
      border: none;
      padding: 0;
      background: transparent;
    }
    .campaign-extension-timeline-lazy.is-open {
      border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
      background: color-mix(in srgb, var(--accent) 5%, var(--bg-primary));
    }
    .campaign-extension-timeline-lazy.is-open .lot-fold-trigger {
      border-color: transparent;
      background: transparent;
      border-radius: 7px 7px 0 0;
    }
    .campaign-extension-timeline-lazy.is-open .lot-fold-trigger:hover {
      background: transparent;
    }
    .campaign-extension-timeline-slot {
      margin-top: 0;
    }
    .campaign-extension-timeline-lazy:not(.is-loaded) .campaign-extension-timeline-slot:not([hidden]) {
      margin-top: 6px;
    }
    .lot-tools {
      margin: 0;
      padding: 0;
      background: transparent;
      border: none;
      border-radius: 8px;
    }
    .lot-tools.is-open {
      border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
      background: color-mix(in srgb, var(--accent) 5%, var(--bg-primary));
    }
    .lot-tools.is-open > .lot-fold-trigger.lot-tools-toggle {
      border-color: transparent;
      background: color-mix(in srgb, var(--accent) 8%, transparent);
      box-shadow: none;
      border-radius: 11px 11px 0 0;
    }
    .lot-tools.is-open > .lot-fold-trigger.lot-tools-toggle:hover {
      background: color-mix(in srgb, var(--accent) 10%, transparent);
    }
    .lot-fold-trigger.lot-tools-toggle {
      appearance: none;
      -webkit-appearance: none;
      min-height: 44px;
      padding: 8px 12px 8px 8px;
      gap: 10px;
      border-radius: 12px;
      border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--border));
      background:
        linear-gradient(
          180deg,
          color-mix(in srgb, var(--accent) 22%, var(--bg-elev)) 0%,
          color-mix(in srgb, var(--accent) 9%, var(--bg-primary)) 100%
        );
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 8px 18px rgba(56, 137, 124, 0.16);
      font-size: 0.88rem;
      font-weight: 750;
      letter-spacing: 0.01em;
    }
    .lot-fold-trigger.lot-tools-toggle::before {
      content: none;
      display: none;
    }
    .lot-fold-trigger.lot-tools-toggle::after {
      content: "";
      width: 0.46em;
      height: 0.46em;
      margin-left: auto;
      margin-top: -2px;
      border-right: 2px solid var(--accent);
      border-bottom: 2px solid var(--accent);
      transform: rotate(-45deg);
      transition: transform 0.15s ease;
      flex-shrink: 0;
    }
    .lot-fold-trigger.lot-tools-toggle[aria-expanded="true"]::after {
      transform: rotate(45deg);
      margin-top: 1px;
    }
    .lot-tools-icon {
      width: 30px;
      height: 30px;
      border-radius: 9px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      background: var(--accent);
      color: #fff;
      box-shadow: 0 4px 10px rgba(56, 137, 124, 0.32);
    }
    .lot-tools-icon svg {
      width: 16px;
      height: 16px;
      display: block;
    }
    .lot-fold-trigger.lot-tools-toggle .lot-fold-title {
      flex: 1 1 auto;
      min-width: 0;
    }
    .lot-fold-trigger.lot-tools-toggle:hover {
      border-color: color-mix(in srgb, var(--accent) 72%, var(--border));
      filter: brightness(1.04);
    }
    [data-theme="light"] .lot-fold-trigger.lot-tools-toggle {
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 6px 14px rgba(47, 114, 104, 0.12);
    }
    .lot-tools-panel {
      margin: 0;
      padding: 6px 10px 10px;
    }
    .lot-tools-panel[hidden] {
      display: none !important;
    }
    .lot-notices-by-tx {
      display: block;
    }
    .campaign-extension-list {
      margin: 0 10px 6px 1.35rem;
      padding: 0 0 2px;
      list-style: decimal;
      list-style-position: outside;
    }
    .campaign-extension-list > li {
      margin: 0 0 5px;
      font-size: 0.82rem;
      line-height: 1.35;
    }
    .parcel-timeline-list {
      margin: 0 10px 6px 1.35rem;
      padding: 0 0 2px;
    }
    .parcel-timeline-list > li {
      margin: 0 0 5px;
      font-size: 0.82rem;
      line-height: 1.35;
    }
    .parcel-show-procedure {
      display: inline-block;
      margin-left: 8px;
      font-size: 0.78rem;
      font-weight: 650;
      color: var(--accent, #3b82f6);
      text-decoration: underline;
    }
    .campaign-extension-section {
      margin: 0 10px 6px;
    }
    .campaign-extension-section h4 {
      margin: 0 0 4px 0;
      font-size: 0.75rem;
      font-weight: 650;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .campaign-extension-item {
      margin: 0 0 5px 0;
      font-size: 0.82rem;
      line-height: 1.35;
    }
    .campaign-extension-unofficial-label {
      color: #fdba74;
      font-size: 0.78rem;
    }
    .campaign-extension-empty {
      margin: 4px 10px 6px;
      font-size: 0.82rem;
    }
    .parcel-campaign-dates {
      margin-top: 6px;
      font-size: 0.82rem;
      color: var(--muted);
      display: grid;
      gap: 2px;
    }
    .parcel-campaign-stats {
      margin-top: 4px;
    }
    .parcel-chain-summary {
      margin: 0 10px 6px;
      font-size: 0.8rem;
      color: var(--muted);
    }

    .actions {
      display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px;
      border-top: 1px solid var(--border);
    }
    .action-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
      align-items: stretch;
    }
    .action-row--single {
      grid-template-columns: minmax(0, 1fr);
    }
    .action-row--avito {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .action-row > .btn-link,
    .action-row > .btn,
    .action-row > .geoportal-with-info,
    .action-row > .analog-search-with-info,
    .action-row > .avito-analogs-shell,
    .action-row > .lot-analysis-shell,
    .action-row > .lot-premium-with-info,
    .action-row > .lot-action-cell-spacer {
      min-width: 0;
    }
    .action-row > .btn-link,
    .action-row > .btn {
      justify-content: flex-start;
      text-align: left;
    }
    .lot-action-btn {
      min-height: 36px;
      padding: 8px 11px;
      border-radius: 10px;
      border: 1px solid rgba(71, 85, 105, 0.5);
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.1));
      color: var(--text);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
      font-family: inherit;
      font-size: 0.82rem;
      font-weight: 650;
      line-height: 1.2;
      letter-spacing: 0.01em;
      text-decoration: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      gap: 7px;
      white-space: nowrap;
      width: 100%;
      text-align: left;
    }
    .lot-action-btn:hover {
      filter: brightness(1.05);
      border-color: rgba(56, 137, 124, 0.58);
    }
    .lot-action-btn .lot-action-icon {
      width: 18px;
      height: 18px;
      border-radius: 6px;
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(56, 137, 124, 0.13);
      color: #2b7a70;
    }
    .lot-action-btn .lot-action-icon svg {
      width: 13px;
      height: 13px;
      display: block;
      fill: currentColor;
      stroke: currentColor;
      stroke-width: 1.8;
    }
    .lot-action-btn > span:not(.lot-action-icon):not(.lot-action-premium-badge):not(.lot-action-label) {
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: left;
    }
    .lot-card--skeleton {
      pointer-events: none;
      min-height: 140px;
    }
    .lot-skel-line {
      height: 12px;
      border-radius: 6px;
      margin: 0 0 12px;
      background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--border) 65%, transparent) 0%,
        color-mix(in srgb, var(--muted) 25%, transparent) 50%,
        color-mix(in srgb, var(--border) 65%, transparent) 100%
      );
      background-size: 200% 100%;
      animation: lot-skel-shimmer 1.1s ease-in-out infinite;
    }
    .lot-skel-line--title { height: 18px; width: 78%; }
    .lot-skel-line--meta { width: 92%; }
    .lot-skel-line--short { width: 55%; margin-bottom: 0; }
    @keyframes lot-skel-shimmer {
      0% { background-position: 100% 0; }
      100% { background-position: -100% 0; }
    }
    .search-info--loading p { color: var(--muted); margin: 0; }
    /* Compact search cards — classic lite buttons */
    .lot-card--compact .lot-btn-lite {
      min-height: 32px;
      padding: 6px 10px;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: transparent;
      box-shadow: none;
      font-family: inherit;
      font-size: 0.8125rem;
      font-weight: 500;
      line-height: 1.25;
      color: var(--text);
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      gap: 6px;
      width: 100%;
      text-decoration: none;
      cursor: pointer;
      text-align: left;
    }
    .lot-card--compact .lot-btn-lite:hover {
      background: rgba(56, 137, 124, 0.08);
      border-color: rgba(56, 137, 124, 0.45);
    }
    .lot-card--compact .lot-btn-lite--link {
      color: #2b6cb0;
    }
    .lot-card--compact .lot-btn-lite--link:hover {
      text-decoration: underline;
    }
    .lot-card--compact .lot-btn-lite:disabled {
      opacity: 0.65;
      cursor: default;
    }
    .lot-card--compact .lot-btn-lite.is-loading,
    .lot-card--compact .lot-btn-lite.is-loading:disabled {
      cursor: wait;
    }
    .lot-card--compact .lot-btn-lite .lot-btn-lite-spinner {
      width: 14px;
      height: 14px;
      border: 2px solid rgba(56, 137, 124, 0.25);
      border-top-color: #38897c;
      border-radius: 50%;
      animation: lot-enrich-spin 0.7s linear infinite;
      flex-shrink: 0;
    }
    @keyframes lot-enrich-spin {
      to { transform: rotate(360deg); }
    }
    .lot-card--compact .action-row--lite {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
    }
    .lot-card--compact .action-row--lite.action-row--avito {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .action-row--ai-tools .lot-action-btn--favorite.is-favorited,
    .btn-favorite-toggle.is-favorited {
      color: #c47b00;
      border-color: #e0b35a;
      background: #fff8e8;
    }
    .lot-action-btn--favorite .lot-fav-star {
      font-size: 1.05rem;
      line-height: 1;
    }
    .action-row--ai-tools {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      margin-bottom: 6px;
    }
    .action-row--ai-tools.action-row--ai-tools-solo {
      grid-template-columns: minmax(0, 1fr);
    }
    .action-row--ai-tools .lot-btn-lite {
      min-width: 0;
      white-space: nowrap;
    }
    .action-row--ai-tools .lot-btn-lite > span:not(.lot-access-mark) {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .action-row--ai-tools .lot-btn-lite.lot-btn-lite--paid,
    .lot-card--compact .action-row--ai-tools .lot-btn-lite.lot-btn-lite--paid {
      min-height: 36px;
      padding: 8px 10px;
      border: 1px solid rgba(27, 89, 80, 0.45);
      border-radius: 10px;
      background: var(--accent);
      color: #fff;
      font-weight: 650;
      box-shadow: 0 4px 12px rgba(56, 137, 124, 0.28);
    }
    .action-row--ai-tools .lot-btn-lite.lot-btn-lite--paid:hover:not(:disabled),
    .lot-card--compact .action-row--ai-tools .lot-btn-lite.lot-btn-lite--paid:hover:not(:disabled) {
      background: #2f756b;
      border-color: #2f756b;
      color: #fff;
      filter: brightness(1.08);
      transform: translateY(-1px);
    }
    .lot-asking-review {
      margin: 10px 0 8px;
      padding-top: 10px;
      border-top: 1px solid var(--border);
      font-size: 0.82rem;
      line-height: 1.35;
      color: var(--text);
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
    }
    @media (min-width: 721px) {
      .lot-asking-review {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 8px;
        align-items: start;
      }
      .lot-asking-col {
        min-width: 0;
      }
    }
    .lot-asking-col {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .lot-asking-review .lot-asking-status:empty {
      display: none;
      margin: 0;
    }
    .lot-asking-review .lot-asking-load-btn,
    .lot-asking-review .lot-gpzu-zouit-btn {
      width: 100%;
    }
    .lot-asking-review .lot-gpzu-zouit-body {
      margin: 6px 0 0;
      padding: 8px 10px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      font-size: 0.78rem;
      line-height: 1.4;
    }
    .lot-asking-review .lot-gpzu-zouit-body strong {
      color: var(--text);
      font-weight: 700;
    }
    .lot-asking-review .lot-gpzu-zouit-body ul {
      margin: 4px 0 0;
      padding-left: 1.15rem;
    }
    .lot-asking-review .lot-gpzu-zouit-body li {
      margin: 0 0 4px;
      color: var(--text);
    }
    .lot-asking-review .lot-gpzu-zouit-schemes {
      margin: 8px 0 0;
    }
    .lot-asking-review .lot-gpzu-zouit-schemes-title {
      font-weight: 700;
      margin: 0 0 6px;
    }
    .lot-asking-review .lot-gpzu-zouit-schemes-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .lot-asking-review .lot-gpzu-zouit-scheme {
      display: block;
      width: 100%;
      margin: 0;
      padding: 0;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      background: var(--surface);
      cursor: zoom-in;
      text-align: left;
      color: inherit;
    }
    .lot-asking-review .lot-gpzu-zouit-scheme:hover {
      border-color: var(--text);
    }
    .lot-asking-review .lot-gpzu-zouit-scheme img {
      display: block;
      width: 100%;
      height: 112px;
      object-fit: cover;
      background: #f3f4f6;
    }
    .lot-asking-review .lot-gpzu-zouit-scheme span {
      display: block;
      padding: 5px 7px 6px;
      font-size: 0.7rem;
      line-height: 1.3;
      color: var(--muted);
    }
    .lot-asking-review .lot-asking-disclaimer {
      color: var(--muted);
      margin: 8px 0 0;
      font-size: 0.75rem;
    }
    .lot-asking-review .lot-asking-method-note {
      margin: 6px 0 0;
      font-size: 0.78rem;
      line-height: 1.35;
      color: var(--muted);
    }
    .lot-asking-review .lot-asking-buyout-note {
      color: var(--muted);
    }
    .lot-asking-review .lot-asking-meta {
      margin: 8px 0;
      display: grid;
      gap: 3px;
      color: var(--text);
    }
    .lot-asking-review .lot-asking-basis {
      color: var(--muted);
      font-size: 0.92em;
    }
    .lot-asking-review .lot-asking-meta strong {
      color: var(--text);
      font-weight: 700;
    }
    .lot-asking-review .lot-asking-body {
      color: var(--text);
    }
    .lot-asking-brief-badge {
      display: inline-block;
      margin-left: 6px;
      padding: 1px 6px;
      border-radius: 4px;
      font-size: 0.75em;
      font-weight: 600;
      color: #0f5132;
      background: rgba(56, 137, 124, 0.18);
      vertical-align: middle;
    }
    .lot-asking-brief,
    .lot-asking-deep {
      margin-top: 8px;
    }
    .lot-asking-actions--deep {
      margin-top: 10px;
      padding-top: 8px;
      border-top: 1px solid var(--border);
    }
    .lot-asking-brief-empty,
    .lot-asking-brief-meta,
    .lot-market-summary-legacy-note {
      color: var(--muted, #667);
      font-size: 0.92em;
      margin: 0 0 8px;
    }
    .lot-market-summary-report p {
      margin: 0 0 0.65em;
    }
    .lot-market-summary-report-list {
      margin: 0 0 0.75em;
      padding-left: 1.2em;
    }
    .lot-asking-review .lot-asking-form {
      display: grid;
      gap: 6px;
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid var(--border);
      color: var(--text);
    }
    .lot-asking-review .lot-asking-verdicts {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 12px;
    }
    .lot-asking-review label {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      color: var(--text);
    }
    .lot-asking-review input[type="number"],
    .lot-asking-review textarea {
      width: 100%;
      box-sizing: border-box;
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 6px 8px;
      font: inherit;
      background: var(--bg);
      color: var(--text);
    }
    .lot-asking-review textarea {
      min-height: 56px;
      resize: vertical;
    }
    .lot-asking-review .lot-asking-body > .lot-asking-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
      flex-direction: row;
    }
    .lot-asking-review .lot-asking-status {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 0.75rem;
    }
    .lot-asking-review .lot-asking-hint {
      cursor: help;
      border-bottom: 1px dotted currentColor;
      color: var(--muted);
    }
    .lot-asking-review[data-expanded="1"] {
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--bg-elev);
      color: var(--text);
    }
    .lot-actions-primary {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      margin-bottom: 6px;
    }
    .lot-card--compact .lot-actions-primary .lot-action-btn,
    .lot-card--compact .lot-actions-primary .btn-link.lot-action-btn,
    .lot-card--compact .lot-actions-primary .btn-avito-analogs.lot-action-btn,
    .lot-card--compact .lot-actions-primary .btn-avito-analogs.lot-action-btn .lot-action-label {
      white-space: normal;
      height: auto;
      min-height: 32px;
      padding: 5px 8px;
      font-size: 0.75rem;
      font-weight: 500;
      line-height: 1.25;
      letter-spacing: normal;
      align-items: center;
    }
    .lot-card--compact .lot-actions-primary .lot-action-label--desktop,
    .lot-card--compact .lot-actions-primary .lot-action-btn > span:not(.lot-action-icon):not(.lot-action-premium-badge):not(.lot-action-label) {
      overflow: visible;
      text-overflow: clip;
      white-space: normal;
    }
    .lot-actions-primary-cell {
      min-width: 0;
    }
    .lot-actions-primary-cell > .btn-link,
    .lot-actions-primary-cell > .btn,
    .lot-actions-primary-cell > .geoportal-with-info,
    .lot-actions-primary-cell > .analog-search-with-info,
    .lot-actions-primary-cell > .avito-analogs-shell {
      width: 100%;
    }
    .lot-meta-side-actions {
      display: grid;
      grid-template-columns: minmax(0, 46%) minmax(0, 54%);
      column-gap: 10px;
      margin-top: 10px;
      align-items: center;
    }
    .lot-meta-side-actions .lot-easuz-video-row {
      grid-column: 1;
      margin-top: 0;
    }
    .lot-meta-side-actions .lot-docs-shell {
      grid-column: 2;
      justify-self: start;
    }
    .lot-meta-side-actions .lot-docs-trigger {
      width: auto;
    }
    .lot-docs-shell {
      position: relative;
      display: inline-block;
      max-width: 100%;
    }
    .lot-docs-popover,
    .lot-docs-subpopover {
      position: fixed;
      z-index: 55;
      min-width: 220px;
      max-width: min(320px, calc(100vw - 24px));
      padding: 6px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      background: #e9eef3;
      color: #1e293b;
      border: 1px solid #c5d0dc;
      border-radius: 8px;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
    }
    .lot-docs-popover[hidden] { display: none; }
    .lot-docs-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      width: 100%;
      text-align: left;
      text-decoration: none;
      color: #1e293b;
      background: rgba(15, 23, 42, 0.06);
      border: 1px solid rgba(15, 23, 42, 0.14);
      border-radius: 6px;
      padding: 6px 8px;
      font-size: 0.8125rem;
      line-height: 1.3;
      cursor: pointer;
    }
    .lot-docs-item:hover { background: rgba(56, 137, 124, 0.12); }
    .lot-docs-chevron { opacity: 0.7; flex-shrink: 0; }
    .lot-docs-empty { margin: 0; padding: 6px 8px; font-size: 0.8125rem; color: #334155; }
    .lot-actions-more-shell {
      position: relative;
      display: inline-block;
      width: fit-content;
      max-width: 100%;
      margin-top: 2px;
    }
    .lot-actions-more-trigger {
      width: auto;
      max-width: 100%;
      justify-content: flex-start;
      text-align: left;
      gap: 0;
      padding: 5px 11px;
      min-height: 30px;
      font-size: 0.8125rem;
      font-weight: 600;
      background: rgba(56, 137, 124, 0.11);
      border: 1px solid rgba(56, 137, 124, 0.38);
      border-radius: 8px;
    }
    .lot-actions-more-trigger:hover {
      background: rgba(56, 137, 124, 0.16);
      border-color: rgba(56, 137, 124, 0.52);
    }
    .lot-actions-more-trigger-label {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      white-space: nowrap;
    }
    .lot-actions-more-chevron {
      opacity: 0.78;
      font-size: 0.92rem;
      line-height: 1;
      flex-shrink: 0;
    }
    .lot-actions-more-popover {
      min-width: 220px;
      max-width: min(360px, calc(100vw - 24px));
      padding: 8px;
      gap: 6px;
      overflow: visible;
      background: #e9eef3 !important;
      color: #1e293b !important;
      border: 1px solid #c5d0dc !important;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1) !important;
    }
    .lot-actions-more-shell > .lot-actions-more-popover {
      left: 0;
      right: auto;
      top: calc(100% + 4px);
    }
    [data-theme="light"] .lot-actions-more-popover,
    [data-theme="dark"] .lot-actions-more-popover {
      background: #e9eef3 !important;
      color: #1e293b !important;
      border-color: #c5d0dc !important;
    }
    .lot-actions-more-popover .lot-action-btn,
    .lot-actions-more-popover .btn-link.lot-action-btn,
    .lot-actions-more-popover .avito-analogs-shell .lot-action-btn,
    .lot-actions-more-popover .lot-analysis-shell .lot-action-btn,
    .lot-actions-more-popover .geoportal-btn-shell .btn-rgis-main,
    .lot-actions-more-popover .geoportal-btn-shell .btn-dogasification,
    .lot-actions-more-popover .avito-analogs-btn-shell .btn-avito-analogs,
    .lot-actions-more-popover .analog-search-btn-shell .btn-view-analogs,
    .lot-actions-more-popover .lot-btn-lite {
      color: #334155 !important;
      background: rgba(15, 23, 42, 0.06) !important;
      border: 1px solid rgba(15, 23, 42, 0.14) !important;
      box-shadow: none !important;
      font-size: 0.8125rem !important;
      font-weight: 500 !important;
      line-height: 1.25 !important;
      letter-spacing: normal !important;
    }
    .lot-actions-more-popover .lot-action-btn .lot-action-label {
      font-size: inherit !important;
      font-weight: inherit !important;
      line-height: inherit !important;
      letter-spacing: normal !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
    }
    .lot-actions-more-popover .lot-action-btn:hover,
    .lot-actions-more-popover .btn-link.lot-action-btn:hover,
    .lot-actions-more-popover .avito-analogs-shell .lot-action-btn:hover,
    .lot-actions-more-popover .lot-analysis-shell .lot-action-btn:hover,
    .lot-actions-more-popover .lot-btn-lite:hover {
      background: rgba(56, 137, 124, 0.12) !important;
      border-color: rgba(56, 137, 124, 0.42) !important;
      filter: none !important;
    }
    .lot-actions-more-popover .lot-action-btn--premium {
      background: rgba(15, 23, 42, 0.06) !important;
      border-color: rgba(15, 23, 42, 0.14) !important;
      box-shadow: none !important;
      font-weight: 500 !important;
    }
    .lot-actions-more-popover .lot-action-btn--premium:hover {
      background: rgba(56, 137, 124, 0.12) !important;
      border-color: rgba(56, 137, 124, 0.42) !important;
      filter: none !important;
    }
    .lot-actions-more-popover .avito-analogs-menu-link,
    .lot-actions-more-popover .lot-analysis-menu-item {
      color: #1e293b !important;
    }
    .lot-actions-more-popover .lot-analysis-popover {
      background: rgba(15, 23, 42, 0.06) !important;
      color: #334155 !important;
      border-color: rgba(15, 23, 42, 0.14) !important;
    }
    .geoportal-popover.is-nested-help-open,
    .avito-analogs-help-popover.is-nested-help-open,
    .avito-analogs-shell > .avito-analogs-popover.is-nested-help-open {
      position: fixed;
      z-index: 90;
      max-width: min(320px, calc(100vw - 16px));
      min-width: 200px;
    }
    /* Подменю Участки / Дома Avito — светлая панель в обеих темах */
    .avito-analogs-shell > .avito-analogs-popover {
      background: #e9eef3 !important;
      color: #1e293b !important;
      border: 1px solid #c5d0dc !important;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14) !important;
    }
    .avito-analogs-shell > .avito-analogs-popover .avito-analogs-menu-link {
      color: #1e293b !important;
    }
    .avito-analogs-shell > .avito-analogs-popover .avito-analogs-menu-link:hover {
      background: rgba(56, 137, 124, 0.12) !important;
      color: #0f172a !important;
    }
    [data-theme="light"] .avito-analogs-shell > .avito-analogs-popover,
    [data-theme="dark"] .avito-analogs-shell > .avito-analogs-popover {
      background: #e9eef3 !important;
      color: #1e293b !important;
      border-color: #c5d0dc !important;
    }
    .lot-actions-more-item {
      width: 100%;
      min-width: 0;
    }
    .lot-actions-more-item .geoportal-with-info,
    .lot-actions-more-item .avito-analogs-shell,
    .lot-actions-more-item .analog-search-with-info,
    .lot-actions-more-item > .btn-link,
    .lot-actions-more-item > .btn {
      width: 100%;
    }
    @media (max-width: 720px) {
      .lot-actions-primary {
        display: none;
      }
      .lot-card--map .lot-actions-primary {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .lot-actions-more-item--mobile-only {
        display: block;
      }
      .lot-enrich-actions .action-row--ai-tools {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        margin-bottom: 6px;
      }
      .lot-enrich-actions .action-row--ai-tools.action-row--ai-tools-solo {
        grid-template-columns: minmax(0, 1fr);
      }
      .lot-enrich-actions .lot-analysis-shell {
        display: flex;
        flex-direction: column;
        min-width: 0;
        width: 100%;
      }
      .lot-enrich-actions .action-row--ai-tools .lot-btn-lite {
        min-height: 30px;
        padding: 4px 5px;
        font-size: 0.7rem;
        gap: 3px;
      }
      .lot-enrich-actions .action-row--ai-tools .lot-btn-lite.lot-btn-lite--paid {
        min-height: 36px;
        padding: 8px 8px;
        font-size: 0.78rem;
      }
      .lot-enrich-actions .lot-btn-lite {
        min-height: 34px;
      }
      .lot-actions-more-popover {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .lot-actions-more-item {
        width: auto;
        min-width: 0;
      }
    }
    @media (min-width: 721px) {
      .lot-actions-more-item--mobile-only {
        display: none;
      }
    }
    .lot-card--compact .lot-card-actions {
      margin-top: 4px;
    }
    .lot-card--compact .lot-enrich-badges {
      margin: 8px 0 6px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .lot-card--compact .lot-enrich-error {
      font-size: 0.8rem;
      color: #b45309;
      margin-top: 6px;
    }
    .lot-card--compact .lot-card-actions .lot-action-btn,
    .lot-card--compact .lot-card-actions .btn-link.lot-action-btn,
    .lot-card--compact .lot-card-actions .btn-avito-analogs.lot-action-btn,
    .lot-card--compact .lot-card-actions .btn-avito-analogs.lot-action-btn .lot-action-label {
      min-height: 32px;
      padding: 6px 10px;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: transparent;
      box-shadow: none;
      font-size: 0.8125rem;
      font-weight: 500;
      line-height: 1.25;
      letter-spacing: normal;
    }
    .lot-card--compact .lot-card-actions .lot-action-btn:hover,
    .lot-card--compact .lot-card-actions .btn-link.lot-action-btn:hover,
    .lot-card--compact .lot-card-actions .btn-avito-analogs.lot-action-btn:hover {
      background: rgba(56, 137, 124, 0.08);
      border-color: rgba(56, 137, 124, 0.45);
      filter: none;
    }
    .lot-card--compact .lot-actions-primary .avito-analogs-shell > .btn-avito-analogs.lot-action-btn,
    .lot-card--compact .lot-actions-primary .lot-action-btn--avito.lot-action-btn--pending,
    .lot-card--compact .lot-card-actions .avito-analogs-shell > .btn-avito-analogs.lot-action-btn {
      border: 1px solid var(--border);
      border-radius: 6px;
      background: transparent;
      box-shadow: none;
      color: var(--text);
      filter: none;
    }
    .lot-card--compact .lot-actions-primary .avito-analogs-shell > .btn-avito-analogs.lot-action-btn:hover,
    .lot-card--compact .lot-actions-primary .lot-action-btn--avito.lot-action-btn--pending:hover,
    .lot-card--compact .lot-card-actions .avito-analogs-shell > .btn-avito-analogs.lot-action-btn:hover {
      background: rgba(56, 137, 124, 0.08);
      border-color: rgba(56, 137, 124, 0.45);
      filter: none;
    }
    .lot-card--compact .lot-actions-primary .lot-action-btn--avito .lot-action-icon,
    .lot-card--compact .lot-card-actions .avito-analogs-shell .lot-action-btn--avito .lot-action-icon {
      background: #fff;
      color: #111827;
      box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    }
    .lot-card--compact .lot-actions-primary .lot-action-btn--cian .lot-action-icon,
    .lot-card--compact .lot-card-actions .avito-analogs-shell .lot-action-btn--cian .lot-action-icon {
      background: #fff;
      box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
      padding: 1px;
    }
    .lot-card--compact .lot-actions-primary .lot-action-btn--cian .lot-action-icon img,
    .lot-card--compact .lot-card-actions .avito-analogs-shell .lot-action-btn--cian .lot-action-icon img {
      width: 14px;
      height: 14px;
      object-fit: contain;
    }
    .lot-card--compact .lot-card-actions .lot-actions-more-trigger {
      width: auto;
      max-width: 100%;
      background: rgba(56, 137, 124, 0.11);
      border: 1px solid rgba(56, 137, 124, 0.38);
      font-weight: 600;
    }
    .lot-card--compact .lot-card-actions .lot-actions-more-trigger:hover {
      background: rgba(56, 137, 124, 0.16);
      border-color: rgba(56, 137, 124, 0.52);
    }
    .lot-card--compact .lot-card-actions .geoportal-with-info,
    .lot-card--compact .lot-card-actions .avito-analogs-shell,
    .lot-card--compact .lot-card-actions .analog-search-with-info {
      width: 100%;
    }
    .lot-card--compact .lot-card-actions .geoportal-btn-shell,
    .lot-card--compact .lot-card-actions .avito-analogs-btn-shell,
    .lot-card--compact .lot-card-actions .analog-search-btn-shell {
      width: 100%;
      min-height: 32px;
      padding: 0;
      gap: 4px;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: transparent;
      box-shadow: none;
    }
    .lot-card--compact .lot-card-actions .geoportal-btn-shell:hover,
    .lot-card--compact .lot-card-actions .avito-analogs-btn-shell:hover,
    .lot-card--compact .lot-card-actions .analog-search-btn-shell:hover {
      filter: none;
      background: rgba(56, 137, 124, 0.08);
      border-color: rgba(56, 137, 124, 0.45);
    }
    .lot-card--compact .lot-card-actions .geoportal-btn-shell .btn-rgis-main,
    .lot-card--compact .lot-card-actions .geoportal-btn-shell .btn-dogasification,
    .lot-card--compact .lot-card-actions .avito-analogs-btn-shell .btn-avito-analogs,
    .lot-card--compact .lot-card-actions .analog-search-btn-shell .btn-view-analogs {
      border: none !important;
      background: transparent !important;
      box-shadow: none !important;
      padding: 6px 8px;
      min-height: 32px;
      font-size: 0.8125rem;
      font-weight: 500;
    }
    .lot-card--compact .lot-card-actions .geoportal-btn-shell .btn-rgis-main:hover,
    .lot-card--compact .lot-card-actions .geoportal-btn-shell .btn-dogasification:hover,
    .lot-card--compact .lot-card-actions .avito-analogs-btn-shell .btn-avito-analogs:hover,
    .lot-card--compact .lot-card-actions .analog-search-btn-shell .btn-view-analogs:hover {
      filter: none;
    }
    .lot-card--compact .lot-card-actions .geoportal-info-btn {
      width: 18px;
      height: 18px;
      min-width: 18px;
      margin-right: 4px;
      font-size: 0.62rem;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--muted);
      box-shadow: none;
    }
    .lot-card--compact .lot-card-actions .lot-action-btn--pending {
      opacity: 0.72;
      cursor: wait;
    }
    .lot-card--compact .lot-card-actions .lot-action-btn--pending .geoportal-info-icon {
      margin-right: 4px;
      flex-shrink: 0;
    }
    .lot-card--compact .lot-card-actions .analog-search-btn-shell .geoportal-info-btn {
      margin-left: auto;
      margin-right: 4px;
    }
    .lot-action-label--desktop,
    .lot-action-label--mobile {
      flex: 0 1 auto;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: left;
    }
    .lot-action-label--mobile {
      display: none;
    }
    @media (max-width: 720px) {
      .lot-action-label--desktop {
        display: none;
      }
      .lot-action-label--mobile {
        display: inline;
      }
    }
    .lot-action-btn--external .lot-action-icon {
      background: rgba(37, 99, 235, 0.12);
      color: #2563eb;
    }
    .lot-easuz-video-row {
      margin-top: 10px;
    }
    .lot-water-order {
      margin-top: 8px;
      font-size: 14px;
      line-height: 1.45;
    }
    .lot-water-order-hint {
      margin: 0;
    }
    .lot-water-order-link {
      margin-left: 8px;
      font-weight: 700;
      white-space: nowrap;
    }
    .easuz-video-modal {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      background: rgba(15, 23, 42, 0.72);
    }
    .easuz-video-modal-card {
      width: min(960px, 100%);
      background: #0f172a;
      color: #f8fafc;
      border-radius: 12px;
      padding: 12px;
    }
    .easuz-video-modal-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
    }
    .easuz-video-modal-card iframe {
      width: 100%;
      aspect-ratio: 16 / 9;
      border: 0;
      background: #000;
    }
    .easuz-video-modal-card a {
      color: #93c5fd;
    }
    .easuz-video-modal-close {
      border: 0;
      background: transparent;
      color: inherit;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
    }
    .lot-action-btn--analog .lot-action-icon {
      background: rgba(217, 119, 6, 0.13);
      color: #d97706;
    }
    .lot-action-btn--premium {
      border-color: rgba(124, 58, 237, 0.52);
      background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(56, 137, 124, 0.14)),
        var(--surface);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035), 0 8px 18px rgba(15, 23, 42, 0.12);
      font-weight: 850;
    }
    .lot-action-btn--premium:hover {
      border-color: rgba(124, 58, 237, 0.78);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 22px rgba(124, 58, 237, 0.16);
    }
    .lot-action-btn--premium .lot-action-icon {
      background: linear-gradient(135deg, #7c3aed, #2563eb);
      color: #fff;
      box-shadow: 0 4px 10px rgba(124, 58, 237, 0.24);
    }
    .lot-action-btn--ai .lot-action-icon {
      font-size: 13px;
      line-height: 1;
    }
    .lot-action-premium-badge {
      flex: 0 0 auto !important;
      width: 24px !important;
      height: 24px;
      min-width: 0 !important;
      padding: 1px;
      border-radius: 999px;
      background: #fff;
      border: 1px solid rgba(245, 158, 11, 0.4);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      box-shadow: 0 2px 6px rgba(245, 158, 11, 0.18);
    }
    .lot-action-premium-badge img {
      width: 20px;
      height: 20px;
      display: block;
      object-fit: contain;
      pointer-events: none;
    }
    .lot-premium-with-info {
      position: relative;
      width: 100%;
      min-width: 0;
    }
    .lot-premium-btn-shell {
      display: flex;
      align-items: center;
      gap: 4px;
      width: 100%;
      min-width: 0;
      min-height: 36px;
      padding: 0 6px 0 0;
      border-radius: 10px;
      border: 1px solid rgba(124, 58, 237, 0.52);
      background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(56, 137, 124, 0.14)),
        var(--surface);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035), 0 8px 18px rgba(15, 23, 42, 0.12);
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .lot-premium-btn-shell:hover {
      border-color: rgba(124, 58, 237, 0.78);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 22px rgba(124, 58, 237, 0.16);
    }
    .lot-premium-btn-shell > .lot-action-btn--premium {
      flex: 1 1 0;
      min-width: 0;
      margin: 0;
      border: none;
      background: transparent;
      box-shadow: none;
    }
    .lot-premium-btn-shell > .lot-action-btn--premium:hover {
      filter: none;
      border-color: transparent;
      box-shadow: none;
    }
    .lot-action-premium-badge.lot-premium-info-btn {
      flex-shrink: 0;
      margin-left: auto;
      pointer-events: none;
      cursor: default;
      -webkit-tap-highlight-color: transparent;
    }
    .lot-premium-help-popover {
      z-index: 70;
      max-width: min(280px, calc(100vw - 32px));
    }
    @media (max-width: 720px) {
      .lot-action-premium-badge.lot-premium-info-btn {
        pointer-events: auto;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(245, 158, 11, 0.25);
      }
      .lot-action-premium-badge.lot-premium-info-btn:active {
        transform: scale(0.96);
      }
    }
    .lot-action-btn--geo .lot-action-icon {
      background: #fff;
      color: #099b66;
      padding: 1px;
    }
    .lot-action-btn--geo .lot-action-icon img {
      width: 14px;
      height: 14px;
      display: block;
      object-fit: contain;
    }
    .lot-action-btn--pkk .lot-action-icon {
      background: rgba(59, 130, 246, 0.13);
      color: #2563eb;
    }
    .lot-action-btn--gas .lot-action-icon {
      background: #fff;
      color: #059669;
      padding: 1px;
    }
    .lot-action-btn--gas .lot-action-icon img {
      width: 14px;
      height: 14px;
      display: block;
      object-fit: contain;
    }
    .lot-action-btn--route .lot-action-icon {
      background: rgba(14, 165, 233, 0.13);
      color: #0ea5e9;
    }
    .lot-action-btn--route .lot-action-icon svg text {
      stroke: none;
    }
    .lot-action-btn--avito .lot-action-icon {
      background: #fff;
      color: #111827;
      box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    }
    .lot-action-btn--avito .lot-action-icon svg {
      width: 15px;
      height: 15px;
      display: block;
    }
    .lot-action-btn--avito .lot-action-icon .btn-avito-icon {
      overflow: visible;
    }
    .lot-action-btn--cian .lot-action-icon {
      background: #fff;
      box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
      padding: 1px;
    }
    .lot-action-btn--cian .lot-action-icon img,
    .lot-action-btn--cian .lot-action-icon .btn-cian-icon {
      width: 14px;
      height: 14px;
      display: block;
      object-fit: contain;
    }
    .lot-action-btn--rts .lot-action-icon {
      background: rgba(234, 88, 12, 0.13);
      color: #ea580c;
    }
    .action-row > .avito-analogs-shell {
      width: 100%;
    }
    .avito-analogs-btn-shell {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .avito-analogs-btn-shell .geoportal-info-btn {
      flex-shrink: 0;
    }
    .avito-analogs-btn-shell .avito-analogs-trigger {
      flex: 1 1 0;
      min-width: 0;
    }
    .avito-analogs-with-info {
      position: relative;
      width: 100%;
      height: 100%;
    }
    .avito-analogs-btn-shell {
      border-color: rgba(255, 153, 0, 0.45);
      background: rgba(255, 153, 0, 0.1);
    }
    .avito-analogs-with-info > .geoportal-btn-shell .btn-avito-analogs {
      flex: 1 1 0;
      min-width: 0;
      width: auto;
      margin: 0;
      border: none;
      background: transparent;
      box-shadow: none;
      padding: 7px 6px 7px 11px;
      justify-content: flex-start;
      text-align: left;
    }
    .avito-analogs-with-info > .geoportal-btn-shell .btn-avito-analogs:hover {
      filter: none;
    }
    .action-row > .lot-analysis-shell {
      width: 100%;
    }
    .action-row > .avito-analogs-shell > .btn-avito-analogs {
      width: 100%;
      justify-content: flex-start;
      text-align: left;
    }
    @media (max-width: 720px) {
      .wrap {
        padding: 16px 12px 84px;
        overflow-x: clip;
      }
      .lot-card {
        padding: 14px 12px;
      }
      .lot-card-pub .lot-card-mkad {
        flex: 1 1 auto;
        margin-left: 0;
        text-align: left;
        white-space: normal;
      }
      .lot-card-price-list dd {
        overflow-wrap: anywhere;
        word-break: break-word;
      }
      .lot-card-photos {
        max-width: 100%;
      }
      .lot-fold-trigger.lot-tools-toggle {
        min-height: 42px;
        font-size: 0.84rem;
      }
      .action-row > .avito-analogs-shell,
      .action-row > .avito-analogs-with-info,
      .avito-analogs-with-info > .geoportal-btn-shell {
        width: 100%;
      }
      .avito-analogs-with-info > .geoportal-btn-shell .btn-avito-analogs {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
      }
      .action-row--avito > .avito-analogs-with-info {
        display: block;
      }
    }
    @media (max-width: 560px) {
      .wrap {
        padding-bottom: calc(24px + 48px + max(12px, env(safe-area-inset-bottom, 0px)));
      }
    }
    .geoportal-with-info {
      position: relative;
      width: 100%;
      min-width: 0;
      height: 100%;
    }
    .geoportal-btn-shell {
      display: flex;
      align-items: center;
      gap: 6px;
      width: 100%;
      min-width: 0;
      height: 100%;
      min-height: 36px;
      padding: 0 8px 0 0;
      border-radius: 10px;
      border: 1px solid rgba(71, 85, 105, 0.5);
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.1));
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
      transition: filter 0.15s ease;
    }
    .geoportal-btn-shell:hover {
      filter: brightness(1.07);
    }
    .geoportal-btn-shell .btn-rgis-main {
      flex: 1 1 0;
      min-width: 0;
      margin: 0;
      border: none;
      background: transparent;
      box-shadow: none;
      padding: 8px 6px 8px 11px;
      justify-content: flex-start;
      text-align: left;
    }
    .geoportal-btn-shell .btn-rgis-main:hover {
      filter: none;
    }
    .analog-search-btn-shell .btn-view-analogs {
      flex: 1 1 0;
      min-width: 0;
      margin: 0;
      border: none;
      background: transparent;
      box-shadow: none;
      padding: 8px 6px 8px 11px;
      justify-content: flex-start;
      text-align: left;
    }
    .analog-search-btn-shell .btn-view-analogs:hover {
      filter: none;
    }
    .geoportal-info-btn {
      flex-shrink: 0;
      width: 20px;
      height: 20px;
      min-width: 20px;
      padding: 0;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.95);
      background: #fff;
      color: #047857;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font: 700 0.7rem/1 Georgia, "Times New Roman", serif;
      font-style: italic;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
      transition: transform 0.12s ease, box-shadow 0.12s ease;
    }
    .geoportal-btn-shell .geoportal-info-btn {
      margin-left: auto;
    }
    .geoportal-info-btn:hover {
      transform: scale(1.06);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    }
    .geoportal-info-icon {
      margin-top: 1px;
    }
    .geoportal-popover {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      left: auto;
      min-width: 200px;
      max-width: min(320px, calc(100vw - 48px));
      padding: 12px 14px;
      font-size: 0.82rem;
      font-weight: 400;
      text-align: left;
      border-radius: 12px;
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
      z-index: 60;
      line-height: 1.5;
      background: #f1f5f9;
      color: #0f172a;
      border: 1px solid rgba(15, 23, 42, 0.14);
    }
    [data-theme="light"] .geoportal-popover {
      background: #0f172a;
      color: #f8fafc;
      border: 1px solid rgba(255, 255, 255, 0.14);
    }
    .geoportal-popover[hidden] {
      display: none !important;
    }
    .btn, .btn-ghost {
      border: 1px solid var(--border); background: var(--surface); color: var(--text);
      padding: 10px 14px; border-radius: 12px; font-weight: 600; cursor: pointer; font-size: 0.86rem;
    }
    .btn-ghost { background: transparent; }
    .btn-link {
      display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
      padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 0.86rem;
      background: rgba(56, 137, 124, 0.16); color: var(--text); border: 1px solid rgba(56, 137, 124, 0.36);
    }
    .btn-link:hover { filter: brightness(1.06); }
    .skeleton {
      border-radius: 12px; background: linear-gradient(90deg, var(--surface) 25%, rgba(56, 137, 124, 0.16) 50%, var(--surface) 75%);
      background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite;
    }
    @keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

    footer { margin-top: 32px; font-size: 0.78rem; color: var(--muted); }
    footer code { font-size: 0.85em; word-break: break-all; }

    .btn-yandex-route-mkad {
      border: 1px solid rgba(14, 165, 233, 0.45);
      background: rgba(14, 165, 233, 0.14);
      color: var(--text);
      text-decoration: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      font-size: 0.86rem;
      font-weight: 600;
    }
    .btn-yandex-route-mkad .btn-map-icon {
      width: 14px;
      height: 14px;
      display: inline-block;
      vertical-align: -2px;
      margin-right: 6px;
      fill: #22c55e;
    }
    .btn-yandex-route-mkad:hover,
    .btn-avito-analogs:hover,
    .btn-rts-etp:hover {
      filter: brightness(1.08);
    }
    .btn-rts-etp {
      border: 1px solid rgba(234, 88, 12, 0.42);
      background: rgba(234, 88, 12, 0.12);
      color: var(--text);
      text-decoration: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      font-size: 0.86rem;
      font-weight: 600;
    }
    .btn-link.lot-action-btn,
    .btn.lot-action-btn,
    .btn-rts-etp.lot-action-btn,
    .btn-rgis-main.lot-action-btn,
    .btn-avito-analogs.lot-action-btn,
    .lot-analysis-trigger.lot-action-btn,
    .btn-yandex-route-mkad.lot-action-btn {
      min-height: 36px;
      padding: 8px 11px;
      border-radius: 10px;
      border-color: rgba(71, 85, 105, 0.5);
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.1));
      font-size: 0.82rem;
      font-weight: 650;
      gap: 7px;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    }
    .lot-easuz-video-row .btn.lot-action-btn.btn-easuz-video {
      width: auto;
      min-height: 0;
      padding: 2px 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      color: var(--text);
      font-size: 0.82rem;
      font-weight: 650;
      line-height: 1.2;
      letter-spacing: 0.01em;
    }
    .lot-easuz-video-row .btn.lot-action-btn.btn-easuz-video:hover,
    .lot-easuz-video-row .btn.lot-action-btn.btn-easuz-video:focus {
      filter: none;
      border: 0;
      background: transparent;
      box-shadow: none;
      color: var(--text);
    }
    .lot-easuz-video-row .btn-easuz-video .lot-action-icon {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: rgba(37, 99, 235, 0.12);
      color: #2563eb;
    }
    .lot-easuz-video-row .btn-easuz-video .lot-action-icon svg {
      width: 18px;
      height: 18px;
    }
    .btn-avito-analogs.lot-action-btn .lot-action-label {
      font-size: inherit;
      font-weight: inherit;
      line-height: inherit;
      letter-spacing: normal;
    }
    .geoportal-btn-shell,
    .avito-analogs-btn-shell {
      gap: 6px;
    }
    .geoportal-btn-shell .btn-rgis-main.lot-action-btn,
    .avito-analogs-with-info > .geoportal-btn-shell .btn-avito-analogs.lot-action-btn {
      width: 100%;
      flex: 1 1 0;
      margin: 0;
      padding: 8px 6px 8px 11px;
      border: none;
      background: transparent;
      box-shadow: none;
      font-family: inherit;
      font-size: 0.8125rem;
      font-weight: 500;
      gap: 7px;
      justify-content: flex-start;
      text-align: left;
      letter-spacing: normal;
    }
    .action-row > .lot-analysis-shell > .lot-analysis-trigger.lot-action-btn {
      width: 100%;
    }
    .btn-yandex-route-mkad:disabled {
      opacity: 0.55;
      cursor: wait;
    }
    .avito-analogs-shell {
      position: relative;
      display: flex;
      align-items: stretch;
      min-width: 0;
      width: 100%;
    }
    .avito-analogs-shell > .avito-analogs-trigger {
      width: 100%;
      flex: 1 1 auto;
    }
    .avito-analogs-popover {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      left: auto;
      min-width: 168px;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      border-radius: 12px;
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
      z-index: 60;
      background: #e9eef3;
      color: #1e293b;
      border: 1px solid #c5d0dc;
    }
    .avito-analogs-popover[hidden] {
      display: none !important;
    }
    .avito-analogs-menu-link {
      display: block;
      padding: 8px 10px;
      border-radius: 8px;
      text-decoration: none;
      color: #1e293b;
      font-size: 0.84rem;
      font-weight: 600;
    }
    button.avito-analogs-menu-link {
      width: 100%;
      border: 0;
      background: transparent;
      text-align: left;
      cursor: pointer;
      font: inherit;
    }
    .avito-analogs-menu-link:hover {
      background: rgba(56, 137, 124, 0.12);
      color: #0f172a;
    }
    .btn-avito-analogs {
      border: 1px solid rgba(255, 153, 0, 0.45);
      background: rgba(255, 153, 0, 0.14);
      color: var(--text);
      text-decoration: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
    }
    .btn-avito-analogs .btn-map-icon,
    .btn-avito-analogs .btn-avito-icon {
      width: 14px;
      height: 14px;
      display: inline-block;
      vertical-align: -2px;
      margin-right: 6px;
      flex-shrink: 0;
    }
    .btn-rgis-card {
      border: 1px solid rgba(9, 155, 102, 0.45);
      background: rgba(9, 155, 102, 0.12);
      color: var(--text);
    }
    .btn-rgis-card:hover { filter: brightness(1.08); }
    .btn-rgis-card:disabled { opacity: 0.55; cursor: wait; }
    .btn-dogasification {
      border: 1px solid rgba(16, 185, 129, 0.45);
      background: rgba(16, 185, 129, 0.12);
      color: var(--text);
    }
    .btn-dogasification:hover { filter: brightness(1.08); }
    .btn-dogasification:disabled { opacity: 0.55; cursor: wait; }
    .lot-action-btn--placeholder {
      cursor: default;
      opacity: 0.5;
      border-style: dashed;
    }
    .lot-action-btn--placeholder:hover {
      filter: none;
      border-color: rgba(71, 85, 105, 0.5);
    }

    .ai-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.85);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      backdrop-filter: blur(8px);
    }

    .ai-modal-content {
      background: var(--bg-secondary);
      border-radius: 24px;
      width: 90%;
      max-width: 750px;
      max-height: 85vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
      animation: fadeInUp 0.3s ease;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ai-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      padding: 20px 28px;
      border-bottom: 1px solid var(--border-color);
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
      border-radius: 24px 24px 0 0;
      position: relative;
      z-index: 3;
    }

    .ai-modal-header-main {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .ai-billing-info {
      margin-top: 4px;
      font-size: 0.875rem;
      line-height: 1.5;
      color: #e8eef7;
      background: rgba(15, 23, 42, 0.72);
      border: 1px solid rgba(148, 163, 184, 0.4);
      border-radius: 10px;
      padding: 10px 12px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .ai-modal-header h3 {
      margin: 0;
      font-size: 1.35rem;
      font-weight: 600;
      color: var(--accent);
      letter-spacing: -0.3px;
    }

    .ai-modal-close {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      font-size: 28px;
      cursor: pointer;
      color: var(--text-secondary);
      transition: all 0.2s;
      line-height: 1;
      padding: 0 8px;
      border-radius: 12px;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ai-modal-close:hover {
      background: rgba(239, 68, 68, 0.2);
      color: #ef4444;
      transform: scale(1.05);
    }

    .ai-modal-body {
      flex: 1;
      overflow-y: auto;
      padding: 28px 32px;
      color: #ffffff;
      line-height: 1.7;
      max-height: calc(85vh - 80px);
      font-size: 1rem;
      position: relative;
      z-index: 0;
    }

    .ai-loading-spinner {
      width: 60px;
      height: 60px;
      border: 4px solid rgba(59, 130, 246, 0.2);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 30px auto 25px;
    }

    .ai-loading-text {
      text-align: center;
      font-size: 1.2rem;
      font-weight: 500;
      margin-bottom: 16px;
      color: #ffffff;
    }

    .ai-loading-stage {
      text-align: center;
      font-size: 0.95rem;
      color: rgba(255, 255, 255, 0.88);
      margin-bottom: 10px;
      line-height: 1.45;
      padding: 0 8px;
    }

    .ai-loading-detail {
      text-align: center;
      font-size: 0.82rem;
      color: rgba(255, 255, 255, 0.55);
      margin-bottom: 14px;
      line-height: 1.4;
      max-width: 520px;
      margin-left: auto;
      margin-right: auto;
      padding: 0 12px;
    }

    .ai-loading-timer {
      text-align: center;
      font-size: 1rem;
      color: var(--accent);
      font-family: monospace;
      font-weight: 500;
    }

    .ai-modal-result-wrap {
      display: flex;
      flex-direction: column;
      gap: 0;
      min-height: 0;
    }

    .ai-modal-result-wrap .sources-block {
      position: relative;
      z-index: 1;
    }

    .ai-doc-gallery {
      margin-bottom: 18px;
    }
    .ai-doc-gallery-title {
      font-size: 0.85rem;
      color: var(--accent);
      margin-bottom: 8px;
      font-weight: 600;
    }
    .ai-doc-gallery-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: flex-end;
    }
    .ai-doc-thumb-wrap {
      display: inline-block;
      border-radius: 6px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.12);
      line-height: 0;
    }
    .ai-doc-thumb {
      max-width: 120px;
      max-height: 90px;
      width: auto;
      height: auto;
      display: block;
      object-fit: cover;
      cursor: zoom-in;
    }

    .ai-doc-thumb-wrap {
      cursor: pointer;
      border: none;
      padding: 0;
      background: transparent;
      font: inherit;
    }

    .ai-image-lightbox {
      position: fixed;
      inset: 0;
      z-index: 10050;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      box-sizing: border-box;
    }
    .ai-image-lightbox.is-open {
      display: flex !important;
    }
    .ai-image-lightbox-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.88);
      cursor: pointer;
    }
    .ai-image-lightbox-inner {
      position: relative;
      z-index: 1;
      max-width: min(96vw, 1200px);
      max-height: 92vh;
      margin: auto;
    }
    .ai-image-lightbox-inner img {
      max-width: 100%;
      max-height: 88vh;
      width: auto;
      height: auto;
      display: block;
      border-radius: 8px;
      box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    }
    .ai-image-lightbox-close {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 3;
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
      border: none;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
      font-size: 1.5rem;
      line-height: 1;
      cursor: pointer;
    }
    .ai-image-lightbox-close:hover {
      background: rgba(255, 255, 255, 0.22);
    }
    .ai-image-lightbox-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 3;
      width: 48px;
      height: 48px;
      min-width: 48px;
      min-height: 48px;
      border: none;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.14);
      color: #fff;
      font-size: 1.6rem;
      line-height: 1;
      cursor: pointer;
      touch-action: manipulation;
    }
    .ai-image-lightbox-nav:hover {
      background: rgba(255, 255, 255, 0.24);
    }
    .ai-image-lightbox-nav--prev { left: 12px; }
    .ai-image-lightbox-nav--next { right: 12px; }
    .ai-image-lightbox-counter {
      position: absolute;
      left: 0;
      right: 0;
      bottom: -36px;
      text-align: center;
      color: rgba(255, 255, 255, 0.9);
      font-size: 0.9rem;
    }
    .ai-image-lightbox-lock {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      max-width: 440px;
      padding: 28px 32px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
    }
    .ai-image-lightbox-lock[hidden] { display: none !important; }
    .ai-image-lightbox-lock-title {
      margin: 0;
      font-size: 1.15rem;
      font-weight: 650;
    }
    .ai-image-lightbox-lock p { margin: 0; line-height: 1.45; }
    .ai-image-lightbox-lock-link {
      color: #fff;
      background: rgba(255, 255, 255, 0.16);
      padding: 8px 14px;
      border-radius: 8px;
      text-decoration: none;
    }
    .ai-image-lightbox-lock-link:hover { background: rgba(255, 255, 255, 0.26); }
    .lot-inspection-photo-entry {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      width: 100%;
      max-width: 360px;
      min-height: 72px;
      margin: 0 0 12px;
      padding: 12px 16px;
      border: 1px dashed var(--border);
      border-radius: 8px;
      background: var(--bg-primary);
      color: inherit;
      cursor: pointer;
      font: inherit;
      text-align: left;
    }
    @media (max-width: 720px) {
      .ai-image-lightbox-nav--prev { left: 8px; }
      .ai-image-lightbox-nav--next { right: 8px; }
      .ai-image-lightbox-close { top: 8px; right: 8px; }
      .ai-image-lightbox-counter { bottom: -28px; }
    }
    .lot-card-photos {
      display: flex;
      gap: 8px;
      margin: 0 0 12px;
      align-items: stretch;
      min-width: 0;
      max-width: 100%;
    }
    .lot-card-photo-btn {
      position: relative;
      flex: 1 1 0;
      min-width: 0;
      max-width: 220px;
      height: 132px;
      padding: 0;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      background: var(--bg-primary);
      cursor: zoom-in;
    }
    .lot-card-photo-btn img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .lot-card-photo-btn--locked img {
      filter: blur(6px);
      transform: scale(1.08);
    }
    .lot-card-photo-lock {
      position: absolute;
      left: 8px;
      right: 8px;
      bottom: 8px;
      padding: 4px 6px;
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.62);
      color: #fff;
      font-size: 0.72rem;
      line-height: 1.3;
      text-align: center;
      pointer-events: none;
    }
    .lot-card-photo-badge {
      position: absolute;
      right: 8px;
      bottom: 8px;
      padding: 2px 8px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.62);
      color: #fff;
      font-size: 0.75rem;
      line-height: 1.4;
      pointer-events: none;
    }
    .lot-card-price-stack {
      margin: 0 0 12px;
    }
    .lot-card-price-stack > .lot-card-price {
      margin-bottom: 0;
    }
    .lot-stats-forecast {
      margin: 4px 0 0;
      padding: 0;
    }
    .lot-stats-forecast[hidden] {
      display: none !important;
    }
    .lot-stats-forecast p {
      margin: 0;
      font-size: 0.82rem;
      line-height: 1.35;
      color: var(--muted, #3d4a5c);
    }
    .lot-card-price {
      margin: 0 0 12px;
      padding: 10px 12px 10px 13px;
      border: 1px solid var(--border);
      border-left: 3px solid rgba(255, 255, 255, 0.28);
      border-left-color: color-mix(in srgb, var(--text) 28%, transparent);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.04);
    }
    .lot-card-price-list {
      display: grid;
      grid-template-columns: minmax(0, 46%) minmax(0, 54%);
      column-gap: 10px;
      row-gap: 8px;
      margin: 0;
      align-items: baseline;
    }
    .lot-card-price-list dt {
      margin: 0;
      padding: 0;
      color: var(--muted);
      font-size: 0.76rem;
      letter-spacing: 0.04em;
      line-height: 1.35;
    }
    .lot-card-price-list dd {
      margin: 0;
      padding: 0;
      color: var(--text);
      font-size: 1.08rem;
      font-weight: 650;
      font-variant-numeric: tabular-nums;
      line-height: 1.3;
      min-width: 0;
      overflow-wrap: anywhere;
    }
    .lot-card-price-list dd.lot-card-price-final {
      font-weight: 750;
    }
    .lot-card-price-list dd.lot-card-price-asking {
      font-weight: 400;
    }
    .lot-card-price-list dd.lot-card-price-asking-below {
      font-size: calc(1.08rem - 1pt);
    }
    .lot-card-price-list dd.lot-card-price-locked,
    .lot-card-price-list dd.lot-card-price-empty,
    .lot-card-price-list dd.lot-card-price-pending {
      font-size: 0.82rem;
      font-weight: 550;
      color: var(--muted, #64748b);
      cursor: help;
    }
    .lot-card-price-list dd.lot-card-price-pending {
      color: #b45309;
    }
    .lot-card-price-list dd.lot-card-price-unvalued {
      font-size: 0.82rem;
      font-weight: 550;
      color: var(--muted, #64748b);
    }
    .lot-card-price-list .lot-card-price-note {
      grid-column: 1 / -1;
      margin: 2px 0 0;
      color: var(--muted, #64748b);
      font-size: 0.75rem;
      font-weight: 450;
      letter-spacing: normal;
      line-height: 1.45;
    }
    .lot-card-price-list .lot-card-price-note-sum {
      color: #111;
      font-size: 0.95rem;
      font-weight: 700;
      letter-spacing: normal;
    }
    [data-theme="dark"] .lot-card-price-list .lot-card-price-note-sum {
      color: #f8fafc;
    }
    .lot-hover-tip {
      position: relative;
    }
    .lot-hover-tip-pop {
      display: none;
      position: absolute;
      right: 0;
      bottom: calc(100% + 4px);
      z-index: 60;
      width: max-content;
      max-width: 240px;
      padding: 4px 8px;
      border: 1px solid #767676;
      border-radius: 2px;
      background: #fffef4;
      color: #111;
      font: 12px/1.35 Arial, Helvetica, sans-serif;
      font-weight: 400;
      letter-spacing: normal;
      text-align: left;
      white-space: normal;
      pointer-events: none;
      box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.18);
    }
    .lot-hover-tip:hover .lot-hover-tip-pop {
      display: block;
    }
    .lot-card-price-list dt.lot-buyout-dt {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .lot-buyout-help {
      position: relative;
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
    }
    .lot-buyout-help-btn {
      width: 16px;
      height: 16px;
      min-width: 16px;
      padding: 0;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--muted);
      cursor: help;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font: italic 700 0.68rem/1 Georgia, "Times New Roman", serif;
    }
    .lot-buyout-help-btn:hover,
    .lot-buyout-help.is-open .lot-buyout-help-btn {
      color: var(--text);
      border-color: rgba(56, 137, 124, 0.55);
    }
    .lot-buyout-help-pop {
      display: none;
      position: absolute;
      left: 0;
      top: calc(100% + 8px);
      z-index: 55;
      width: min(280px, 72vw);
      padding: 10px 12px;
      background: var(--bg-primary, var(--bg-elev));
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
      color: var(--text);
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: normal;
      line-height: 1.45;
      white-space: normal;
    }
    .lot-buyout-help.is-open .lot-buyout-help-pop {
      display: block;
    }
    [data-theme="light"] .lot-card-price {
      background: rgba(0, 0, 0, 0.03);
      border-left-color: rgba(15, 23, 42, 0.28);
    }
    @media (max-width: 720px) {
      .lot-card-photo-btn { height: 112px; max-width: none; }
      .lot-card-photos-rest { display: contents; }
    }
    @media (min-width: 721px) {
      .lot-card--compact {
        display: grid;
        grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
        gap: 12px 18px;
        align-items: start;
      }
      .lot-card--compact > .lot-card-photos {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
        align-self: start;
        flex-direction: column;
      }
      .lot-card--compact > .lot-card-price-stack {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
        align-self: start;
      }
      .lot-card--compact:not(:has(.lot-card-photos)) > .lot-card-price-stack {
        grid-row: 1;
      }
      .lot-card--compact > .lot-card-head {
        grid-column: 2;
        grid-row: 1 / span 2;
        min-width: 0;
      }
      .lot-card--compact > .lot-folds,
      .lot-card--compact > .parcel-timeline,
      .lot-card--compact > .campaign-extension-timeline,
      .lot-card--compact > .campaign-extension-timeline-lazy,
      .lot-card--compact > .actions {
        grid-column: 1 / -1;
      }
      .lot-card--compact .lot-card-photo-btn {
        max-width: none;
        flex: 0 0 auto;
        width: 100%;
      }
      .lot-card--compact .lot-card-photo-btn--hero,
      .lot-card--compact .lot-card-photos > .lot-card-photo-btn:first-child {
        height: 200px;
        width: 100%;
      }
      .lot-card--compact .lot-card-photos-rest {
        display: flex;
        gap: 8px;
        width: 100%;
      }
      .lot-card--compact .lot-card-photos-rest .lot-card-photo-btn {
        flex: 1 1 0;
        width: auto;
        height: 88px;
      }
    }

    .ai-details-electricity {
      margin: 8px 0;
      border: 1px solid rgba(56, 137, 124, 0.45);
      border-radius: 10px;
      background: rgba(56, 137, 124, 0.08);
      text-align: left;
      white-space: normal !important;
    }
    .ai-details-electricity[open] {
      background: rgba(56, 137, 124, 0.14);
      border-color: rgba(56, 137, 124, 0.65);
    }
    .ai-details-electricity-summary {
      list-style: none;
      padding: 10px 12px;
      cursor: pointer;
      font-weight: 700;
      font-size: 0.92rem;
      color: #99f6e4;
      margin: 0 !important;
      line-height: 1.2;
      white-space: normal !important;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .ai-details-electricity-summary::-webkit-details-marker {
      display: none;
    }
    .ai-details-electricity-summary::after {
      content: "Нажмите, чтобы раскрыть ▾";
      color: rgba(203, 213, 225, 0.88);
      font-size: 0.74rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      white-space: nowrap;
    }
    .ai-details-electricity[open] .ai-details-electricity-summary::after {
      content: "Скрыть ▴";
      color: #8af4e5;
    }
    .ai-details-icon {
      margin-right: 4px;
    }
    .ai-details-electricity-body {
      padding: 0 12px 10px;
      font-size: 0.88rem;
      line-height: 1.45;
      color: rgba(255, 255, 255, 0.92);
      white-space: normal !important;
      margin: 0 !important;
    }
    .ai-details-electricity-body p {
      margin: 0 !important;
    }
    .ai-result-content .ai-details-electricity-body p {
      margin: 0 !important;
    }
    .ai-result-content .ai-details-electricity {
      margin-top: 0 !important;
      margin-bottom: 0 !important;
    }
    .ai-result-content .ai-details-electricity-body br {
      display: none;
    }
    .ai-result-content .ai-details-electricity summary + .ai-details-electricity-body {
      margin-top: 0 !important;
      padding-top: 0 !important;
    }
    .ai-deferred-state {
      margin: 14px 0;
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 10px;
      background: rgba(0, 0, 0, 0.2);
      padding: 10px;
    }
    .ai-deferred-state-btn {
      width: 100%;
      text-align: left;
      border: 1px solid rgba(56, 137, 124, 0.45);
      background: rgba(56, 137, 124, 0.12);
      color: #c7f7ef;
      border-radius: 8px;
      padding: 10px 12px;
      font-weight: 700;
      cursor: pointer;
    }
    .ai-deferred-state-btn[disabled] {
      opacity: 0.75;
      cursor: default;
    }
    .ai-deferred-state-meta {
      margin-top: 8px;
      color: var(--muted);
      font-size: 0.82rem;
    }
    .ai-deferred-state-body {
      margin-top: 10px;
      border-top: 1px dashed rgba(255, 255, 255, 0.12);
      padding-top: 10px;
      display: none;
    }
    .ai-deferred-state.open .ai-deferred-state-body {
      display: block;
    }
    .ai-details-lead {
      opacity: 0.95;
    }
    .ai-details-electricity-body a {
      color: var(--accent);
      text-decoration: underline;
    }

    .ai-result-content {
      white-space: normal;
      word-wrap: break-word;
      color: #e8edf5;
      min-height: 0;
      font-size: 1.02rem;
      line-height: 1.72;
      letter-spacing: 0.01em;
    }
    .ai-result-content a,
    .ai-result-content a:link,
    .ai-result-content a:visited {
      color: #aee3ff;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .ai-result-content a:hover,
    .ai-result-content a:focus {
      color: #d6f1ff;
    }

    .ai-result-content p {
      margin: 14px 0;
      line-height: 1.7;
    }

    .ai-result-content strong {
      color: var(--accent);
      font-weight: 600;
    }

    .ai-result-content h1,
    .ai-result-content h2,
    .ai-result-content h3 {
      color: var(--accent);
      margin-top: 20px;
      margin-bottom: 12px;
    }

    .ai-result-content ul,
    .ai-result-content ol {
      margin: 12px 0;
      padding-left: 24px;
    }

    .ai-result-content li {
      margin: 6px 0;
      line-height: 1.6;
    }

    .ai-result-content hr {
      margin: 20px 0;
      border-color: rgba(255, 255, 255, 0.1);
    }

    .ai-result-content code {
      background: rgba(0, 0, 0, 0.3);
      padding: 2px 6px;
      border-radius: 6px;
      font-family: monospace;
      font-size: 0.9em;
    }

    .ai-result-content pre {
      background: rgba(0, 0, 0, 0.4);
      padding: 14px;
      border-radius: 12px;
      overflow-x: auto;
      font-size: 0.85rem;
      margin: 16px 0;
    }

    .ai-report-h2 {
      margin: 28px 0 14px;
      padding: 10px 14px;
      border-left: 4px solid rgba(56, 137, 124, 0.85);
      border-radius: 0 10px 10px 0;
      background: linear-gradient(90deg, rgba(56, 137, 124, 0.18), rgba(56, 137, 124, 0.04));
      color: #8ef5e8;
      font-size: 1.22rem;
      font-weight: 800;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }
    .ai-report-h3 {
      margin: 18px 0 10px;
      color: #b8f3ea;
      font-size: 1.02rem;
      font-weight: 700;
    }
    .ai-report-h3 em {
      font-style: normal;
      color: inherit;
    }
    .ai-report-p {
      margin: 10px 0;
      line-height: 1.72;
    }
    .ai-report-list {
      margin: 10px 0 14px;
      padding-left: 0;
      list-style: none;
    }
    .ai-report-li {
      position: relative;
      margin: 7px 0;
      padding: 8px 12px 8px 28px;
      border-radius: 8px;
      background: rgba(15, 23, 42, 0.45);
      border: 1px solid rgba(148, 163, 184, 0.14);
      line-height: 1.55;
    }
    .ai-report-li::before {
      content: "▸";
      position: absolute;
      left: 10px;
      color: #5eead4;
      font-weight: 700;
    }
    .ai-report-table {
      width: 100%;
      border-collapse: collapse;
      margin: 14px 0 18px;
      font-size: 0.96rem;
    }
    .ai-report-table th,
    .ai-report-table td {
      border: 1px solid rgba(148, 163, 184, 0.22);
      padding: 9px 11px;
      text-align: left;
      vertical-align: top;
    }
    .ai-report-table th {
      background: rgba(56, 137, 124, 0.2);
      color: #99f6e4;
      font-weight: 700;
    }
    .ai-report-table tr:nth-child(even) td {
      background: rgba(15, 23, 42, 0.35);
    }
    .ai-analog-card {
      margin: 16px 0;
      padding: 14px 16px;
      border: 1px solid rgba(56, 137, 124, 0.35);
      border-radius: 14px;
      background: linear-gradient(165deg, rgba(15, 23, 42, 0.72), rgba(10, 16, 27, 0.92));
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    }
    .ai-analog-title {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 8px;
      margin-bottom: 10px;
      font-size: 1.06rem;
      color: #f1f5f9;
    }
    .ai-analog-title strong {
      color: #7ef9e8;
      font-weight: 800;
    }
    .ai-analog-meta {
      color: rgba(203, 213, 225, 0.82);
      font-size: 0.9rem;
      font-weight: 500;
    }
    .ai-analog-facts {
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .ai-analog-facts li {
      margin: 6px 0;
      padding: 0;
      line-height: 1.55;
      font-size: 0.98rem;
    }
    .ai-analog-facts li span {
      color: rgba(148, 163, 184, 0.95);
      font-weight: 600;
      margin-right: 6px;
    }
    .ai-analog-actions {
      margin: 12px 0 0;
    }
    .ai-torgi-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 8px 14px;
      border-radius: 10px;
      border: 1px solid rgba(56, 137, 124, 0.55);
      background: rgba(56, 137, 124, 0.22);
      color: #d7fff8 !important;
      font-weight: 700;
      font-size: 0.9rem;
      text-decoration: none !important;
      transition: background 0.15s ease, border-color 0.15s ease;
    }
    .ai-torgi-btn:hover,
    .ai-torgi-btn:focus {
      background: rgba(56, 137, 124, 0.38);
      border-color: rgba(56, 137, 124, 0.85);
      color: #ffffff !important;
    }

    .ai-summary-card {
      border: 1px solid rgba(56, 137, 124, 0.34);
      border-radius: 16px;
      background: linear-gradient(160deg, rgba(10, 20, 33, 0.92), rgba(10, 16, 27, 0.98));
      box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
      padding: 14px;
      margin-bottom: 16px;
      overflow: hidden;
    }
    .ai-summary-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }
    .ai-summary-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid rgba(56, 137, 124, 0.45);
      background: rgba(56, 137, 124, 0.16);
      border-radius: 999px;
      color: #81efe0;
      font-size: 0.76rem;
      font-weight: 700;
      padding: 5px 10px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .ai-summary-score {
      text-align: right;
      border: 1px solid rgba(56, 137, 124, 0.25);
      border-radius: 10px;
      padding: 6px 9px;
      background: rgba(56, 137, 124, 0.1);
      min-width: 132px;
    }
    .ai-summary-score-label {
      color: rgba(226, 232, 240, 0.8);
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin: 0;
    }
    .ai-summary-score-value {
      color: #7ef9e8;
      font-size: 1rem;
      font-weight: 800;
      margin: 4px 0 0;
    }
    .ai-summary-title {
      margin: 0;
      font-size: 1.28rem;
      line-height: 1.2;
      letter-spacing: -0.01em;
      color: #f1f5f9;
    }
    .ai-summary-meta {
      margin: 6px 0 0;
      color: rgba(203, 213, 225, 0.84);
      font-size: 0.84rem;
      line-height: 1.35;
    }
    .ai-summary-kpi-grid {
      margin-top: 12px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .ai-summary-kpi {
      border: 1px solid rgba(148, 163, 184, 0.22);
      border-radius: 10px;
      background: rgba(15, 23, 42, 0.56);
      padding: 10px;
    }
    .ai-summary-kpi-label {
      margin: 0;
      color: rgba(148, 163, 184, 0.9);
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .ai-summary-kpi-value {
      margin: 6px 0 0;
      color: #f8fafc;
      font-size: 1.05rem;
      font-weight: 800;
      line-height: 1.2;
    }
    .ai-summary-kpi-value--accent {
      color: #39e0c5;
    }
    .ai-summary-kpi-value--warn {
      color: #fbbf24;
    }
    .ai-summary-structure {
      margin-top: 12px;
      border: 1px solid rgba(148, 163, 184, 0.2);
      border-radius: 10px;
      background: rgba(15, 23, 42, 0.42);
      padding: 10px;
    }
    .ai-summary-structure-label {
      margin: 0 0 8px;
      font-size: 0.72rem;
      color: rgba(148, 163, 184, 0.9);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .ai-summary-structure-items {
      display: grid;
      gap: 6px;
      margin: 0;
    }
    .ai-summary-structure-item {
      display: flex;
      align-items: center;
      gap: 8px;
      color: rgba(226, 232, 240, 0.92);
      font-size: 0.86rem;
      line-height: 1.3;
    }
    .ai-summary-structure-link {
      border: none;
      background: transparent;
      color: inherit;
      font: inherit;
      text-align: left;
      padding: 0;
      margin: 0;
      cursor: pointer;
      text-decoration: underline;
      text-decoration-color: rgba(56, 137, 124, 0.55);
      text-underline-offset: 2px;
    }
    .ai-summary-structure-link:hover {
      color: #99f6e4;
      text-decoration-color: rgba(56, 137, 124, 0.9);
    }
    .ai-summary-structure-link.is-active {
      color: #99f6e4;
      font-weight: 700;
      text-decoration-color: rgba(56, 137, 124, 0.95);
    }
    .ai-summary-structure-link:focus-visible {
      outline: 2px solid rgba(56, 137, 124, 0.8);
      outline-offset: 2px;
      border-radius: 4px;
    }
    .ai-summary-structure-num {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: rgba(56, 137, 124, 0.25);
      border: 1px solid rgba(56, 137, 124, 0.48);
      color: #8af4e5;
      font-weight: 700;
      font-size: 0.74rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .ai-summary-recommend {
      margin-top: 12px;
      border: 1px solid rgba(56, 137, 124, 0.36);
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.62);
      padding: 10px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .ai-summary-recommend-label {
      margin: 0;
      color: rgba(148, 163, 184, 0.94);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .ai-summary-recommend-value {
      margin: 5px 0 0;
      color: #ffffff;
      font-size: 1.08rem;
      font-weight: 800;
      line-height: 1.15;
    }
    .ai-summary-ready {
      border-radius: 999px;
      border: 1px solid rgba(56, 137, 124, 0.4);
      background: rgba(56, 137, 124, 0.18);
      color: #8af4e5;
      font-size: 0.74rem;
      font-weight: 700;
      padding: 6px 10px;
      flex-shrink: 0;
    }
    @media (max-width: 720px) {
      .ai-summary-title {
        font-size: 1.08rem;
      }
      .ai-summary-top {
        flex-direction: column;
        align-items: flex-start;
      }
      .ai-summary-score {
        width: 100%;
        text-align: left;
      }
      .ai-summary-kpi-grid {
        grid-template-columns: 1fr;
      }
      .ai-summary-recommend {
        flex-direction: column;
        align-items: flex-start;
      }
    }

    /* Блок с источниками */
    .sources-block {
      margin-top: 24px;
      border-top: 1px solid var(--border-color);
      padding-top: 16px;
    }

    .sources-header {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      padding: 10px 18px;
      background: var(--accent);
      color: white;
      border: none;
      border-radius: 30px;
      font-size: 0.85rem;
      font-weight: 500;
      font-family: inherit;
      transition: all 0.2s;
      user-select: none;
    }

    .sources-header:hover {
      background: var(--accent-hover);
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }

    .sources-header:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }

    .sources-toggle {
      font-size: 12px;
      display: inline-block;
      min-width: 1em;
      text-align: center;
    }

    .sources-content {
      display: none;
      padding: 16px;
      background: var(--bg-primary);
      border-radius: 16px;
      margin-top: 12px;
      font-size: 0.85rem;
      line-height: 1.5;
      color: var(--text-primary);
      border: 1px solid var(--border-color);
    }

    .sources-content.open {
      display: block;
    }

    .source-item {
      padding: 10px 0;
      border-bottom: 1px solid var(--border-color);
    }

    .source-item:last-child {
      border-bottom: none;
    }

    .source-title {
      font-weight: 600;
      color: var(--accent);
      margin-bottom: 6px;
      font-size: 0.85rem;
    }

    .source-value {
      font-family: monospace;
      font-size: 0.8rem;
      word-break: break-all;
      color: var(--text-primary);
    }

    .ai-modal-body .error {
      color: #f87171;
      background: rgba(239, 68, 68, 0.1);
      padding: 16px;
      border-radius: 12px;
      border-left: 3px solid #ef4444;
    }

    .ai-modal-body .loading-dots {
      display: inline-flex;
      gap: 4px;
    }

    .ai-modal-body .loading-dots span {
      animation: aiModalBlink 1.4s infinite;
      opacity: 0;
    }

    .ai-modal-body .loading-dots span:nth-child(2) {
      animation-delay: 0.2s;
    }

    .ai-modal-body .loading-dots span:nth-child(3) {
      animation-delay: 0.4s;
    }

    .lot-analysis-pdf-modal {
      position: fixed;
      inset: 0;
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1200;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(4px);
      padding: 16px;
    }

    .lot-analysis-pdf-modal.is-open {
      display: flex;
    }

    .lot-analysis-pdf-modal-content {
      width: min(420px, 100%);
      background: var(--bg-secondary, #0f172a);
      color: var(--text-primary, #e2e8f0);
      border: 1px solid rgba(148, 163, 184, 0.35);
      border-radius: 16px;
      padding: 22px 24px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
      text-align: center;
    }

    .lot-analysis-pdf-modal-content h3 {
      margin: 0 0 10px;
      font-size: 1.15rem;
      font-weight: 650;
      color: var(--accent, #60a5fa);
    }

    .lot-analysis-pdf-modal-content p {
      margin: 0;
      font-size: 0.95rem;
      line-height: 1.45;
      color: var(--text-secondary, #cbd5e1);
    }

    .lot-analysis-pdf-modal .loading-dots {
      display: inline-flex;
      gap: 4px;
      margin-top: 14px;
      font-size: 1.4rem;
      line-height: 1;
      color: var(--accent, #60a5fa);
    }

    .lot-analysis-pdf-modal .loading-dots span {
      animation: aiModalBlink 1.4s infinite;
      opacity: 0;
    }

    .lot-analysis-pdf-modal .loading-dots span:nth-child(2) {
      animation-delay: 0.2s;
    }

    .lot-analysis-pdf-modal .loading-dots span:nth-child(3) {
      animation-delay: 0.4s;
    }

    .detail-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(4px);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1100;
    }

    .detail-modal-content {
      background: var(--bg-elev);
      border-radius: 18px;
      width: 92%;
      max-width: 520px;
      max-height: 82vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
      border: 1px solid var(--border-color);
    }

    .detail-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 16px;
      border-bottom: 1px solid var(--border-color);
      background: var(--bg-primary);
      border-radius: 18px 18px 0 0;
    }

    .detail-modal-header h3 {
      margin: 0;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.01em;
    }

    .detail-modal-close {
      background: var(--bg-primary);
      border: 1px solid var(--border-color);
      font-size: 22px;
      cursor: pointer;
      color: var(--text);
      width: 30px;
      height: 30px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .detail-modal-close:hover {
      background: rgba(251, 113, 133, 0.18);
      color: var(--text);
      border-color: rgba(251, 113, 133, 0.45);
    }

    .detail-modal-body {
      flex: 1;
      overflow-y: auto;
      padding: 16px 18px 18px;
      line-height: 1.6;
      color: var(--text);
      font-size: 1rem;
    }

    .detail-modal-body p {
      margin: 10px 0;
    }

    .detail-modal-body strong {
      color: var(--text);
      font-weight: 700;
    }

    .detail-modal-body ul {
      margin: 8px 0 10px;
      padding-left: 18px;
    }

    .detail-modal-body li {
      margin: 6px 0;
      color: var(--text);
    }

    .detail-modal-body small {
      display: block;
      margin-top: 12px;
      padding-top: 10px;
      border-top: 1px solid var(--border-color);
      color: var(--text-secondary);
      font-size: 0.88rem;
      font-style: italic;
    }

    .detail-modal-body .stat-number {
      font-size: 1.55rem;
      font-weight: 800;
      color: var(--accent);
      display: inline-block;
      margin-right: 6px;
    }

    .detail-modal-body .stat-label {
      font-size: 1rem;
      color: var(--text);
      font-weight: 600;
    }

    .detail-modal-body .modal-lead {
      margin: 6px 0 10px;
      color: var(--text);
      font-size: 1.02rem;
      font-weight: 600;
    }

    #onboarding-tip-modal .detail-modal-content {
      max-width: 440px;
    }
    #onboarding-tip-modal .onboarding-tip-actions {
      margin-top: 16px;
      display: flex;
      justify-content: flex-end;
    }
    #onboarding-tip-modal .onboarding-tip-actions .btn-primary {
      min-width: 120px;
    }

    .detail-modal-body .modal-lead.modal-lead--plain {
      font-weight: 400;
    }

    .detail-modal-body .modal-section {
      margin-top: 8px;
      color: var(--text-secondary);
      font-size: 0.95rem;
      font-style: italic;
    }

    /* Личный кабинет: широкое модальное окно */
    .detail-modal-content.detail-modal-content--wide {
      max-width: min(1100px, 96vw);
      width: min(96vw, 1100px);
    }

    #lk-root {
      --lk-radius: 14px;
      --lk-pay-green: #16a34a;
      --lk-pay-sbp: #1ea359;
      --lk-pay-tinkoff: #ffdd2d;
      --lk-pay-yoomoney: #8b4dff;
    }

    #lk-root .lk-section-title {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 12px;
      font-size: 1rem;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.02em;
    }

    #lk-root .lk-section-title svg {
      flex-shrink: 0;
      opacity: 0.92;
    }

    #lk-root .lk-panel {
      border: 1px solid var(--border-color);
      border-radius: var(--lk-radius);
      padding: 14px 16px;
      background: linear-gradient(155deg, rgba(56, 137, 124, 0.07), rgba(255, 255, 255, 0.02));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    #lk-root .lk-profile-email-zone {
      margin-top: 10px;
      padding-top: 12px;
      border-top: 1px solid var(--border-color);
    }

    #lk-root .lk-balance-panel .lk-stat-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    #lk-root .lk-stat {
      border-radius: 12px;
      padding: 10px 12px;
      border: 1px solid var(--border-color);
      background: rgba(255, 255, 255, 0.03);
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-height: 72px;
      justify-content: center;
    }

    #lk-root .lk-stat--highlight {
      border-color: rgba(56, 137, 124, 0.45);
      background: linear-gradient(145deg, rgba(56, 137, 124, 0.18), rgba(56, 137, 124, 0.06));
      box-shadow: 0 6px 18px rgba(56, 137, 124, 0.12);
    }

    #lk-root .lk-stat-label {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--muted);
      font-weight: 600;
    }

    #lk-root .lk-stat-value {
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--text);
      line-height: 1.15;
      letter-spacing: -0.02em;
    }

    #lk-root .lk-stat-status {
      font-size: 0.88rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 999px;
      display: inline-block;
      width: fit-content;
      max-width: 100%;
    }

    #lk-root .lk-stat-status--ok {
      background: rgba(34, 197, 94, 0.18);
      color: #4ade80;
      border: 1px solid rgba(74, 222, 128, 0.35);
    }

    #lk-root .lk-stat-status--warn {
      background: rgba(251, 191, 36, 0.15);
      color: #fbbf24;
      border: 1px solid rgba(251, 191, 36, 0.35);
    }

    #lk-root .lk-pay-section {
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid var(--border-color);
    }

    #lk-root .lk-pay-security-note {
      font-size: 0.72rem;
      line-height: 1.45;
      color: var(--muted);
      opacity: 0.78;
      font-weight: 400;
      margin: -4px 0 12px;
      max-width: 48rem;
    }

    #lk-root .lk-pay-methods-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 10px;
    }

    #lk-root .lk-pay-tile {
      display: block;
      margin: 0;
      cursor: pointer;
      position: relative;
    }

    #lk-root .lk-pay-tile input {
      position: absolute;
      opacity: 0;
      width: 1px;
      height: 1px;
      margin: -1px;
      clip: rect(0, 0, 0, 0);
    }

    #lk-root .lk-pay-tile-card {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 72px;
      padding: 10px 12px;
      border-radius: 12px;
      border: 2px solid var(--border-color);
      background: rgba(255, 255, 255, 0.03);
      transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
    }

    #lk-root .lk-pay-tile:hover .lk-pay-tile-card {
      border-color: rgba(56, 137, 124, 0.35);
      background: rgba(56, 137, 124, 0.06);
    }

    #lk-root .lk-pay-tile input:focus-visible + .lk-pay-tile-card {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    #lk-root .lk-pay-tile input:checked + .lk-pay-tile-card {
      border-color: rgba(56, 137, 124, 0.85);
      background: linear-gradient(145deg, rgba(56, 137, 124, 0.22), rgba(56, 137, 124, 0.07));
      box-shadow: 0 8px 22px rgba(56, 137, 124, 0.18);
    }

    #lk-root .lk-pay-tile-svg {
      flex-shrink: 0;
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    }

    #lk-root .lk-pay-tile-svg svg {
      display: block;
    }

    #lk-root .lk-pay-tile-svg--all {
      background: linear-gradient(135deg, #1e3a5f, #0f766e);
      color: #e2e8f0;
    }

    #lk-root .lk-pay-tile-svg--bank_card {
      background: linear-gradient(145deg, #475569, #1e293b);
    }

    #lk-root .lk-pay-tile-svg--sberbank {
      background: linear-gradient(145deg, #15803d, #166534);
    }

    #lk-root .lk-pay-tile-svg--sbp {
      background: linear-gradient(145deg, var(--lk-pay-sbp), #0f766e);
    }

    #lk-root .lk-pay-tile-svg--tinkoff_bank {
      background: linear-gradient(145deg, #18181b, #27272a);
    }

    #lk-root .lk-pay-tile-svg--yoo_money {
      background: linear-gradient(145deg, #6d28d9, var(--lk-pay-yoomoney));
    }

    #lk-root .lk-pay-tile-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    #lk-root .lk-pay-tile-title {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.25;
    }

    #lk-root .lk-pay-tile-sub {
      font-size: 0.74rem;
      color: var(--muted);
      line-height: 1.3;
    }

    #lk-root .lk-packages-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin-top: 8px;
    }

    #lk-root .lk-package-card {
      border-radius: var(--lk-radius);
      padding: 20px 22px;
      border: 1px solid var(--border-color);
      display: flex;
      flex-direction: column;
      gap: 14px;
      min-height: 100%;
      position: relative;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.03);
      transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
    }

    #lk-root .lk-package-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 4px;
      opacity: 0.95;
    }

    #lk-root .lk-package-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    }

    #lk-root .lk-package-card--tier-start::before {
      background: linear-gradient(90deg, #38bdf8, #6366f1);
    }

    #lk-root .lk-package-card--tier-pro::before {
      background: linear-gradient(90deg, #a855f7, #ec4899);
    }

    #lk-root .lk-package-card--tier-business::before {
      background: linear-gradient(90deg, #f59e0b, #ea580c);
    }

    #lk-root .lk-package-card--tier-default::before {
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
    }

    #lk-root .lk-package-head {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
    }

    #lk-root .lk-package-name {
      font-size: 1.32rem;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.02em;
    }

    #lk-root .lk-package-badge {
      font-size: 0.88rem;
      font-weight: 700;
      padding: 5px 12px;
      border-radius: 999px;
      background: rgba(56, 137, 124, 0.15);
      color: var(--accent);
      border: 1px solid rgba(56, 137, 124, 0.35);
      white-space: nowrap;
    }

    #lk-root .lk-package-meta {
      font-size: 1rem;
      color: var(--muted);
      line-height: 1.5;
    }

    #lk-root .lk-package-features {
      margin: 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    #lk-root .lk-package-features li {
      position: relative;
      padding-left: 18px;
      font-size: 1rem;
      color: var(--muted);
      line-height: 1.5;
    }

    #lk-root .lk-package-features li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.52em;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent);
    }

    #lk-root .lk-package-price {
      font-size: 1.9rem;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.03em;
    }

    #lk-root .lk-package-price span {
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--muted);
      margin-left: 4px;
    }

    #lk-root .lk-package-card .lk-buy-btn,
    #lk-root .lk-package-card .lk-plan-active-btn {
      margin-top: auto;
      width: 100%;
      min-height: 48px;
      border-radius: 12px;
      font-size: 1.05rem;
      font-weight: 700;
    }

    #lk-root .lk-package-cta {
      margin-top: auto;
      width: 100%;
      position: relative;
    }

    #lk-root .guest-tariff-auth {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
    }

    #lk-root .guest-tariff-auth .btn-primary,
    #lk-root .guest-tariff-auth .btn-theme {
      width: 100%;
      min-height: 44px;
    }

    #lk-root .lk-package-card--current {
      border-color: var(--accent, #38897c);
      box-shadow: 0 0 0 1px rgba(56, 137, 124, 0.28);
    }

    #lk-root .lk-plan-active-hint {
      margin-top: 8px;
      padding: 8px 10px;
      border-radius: 10px;
      background: rgba(234, 179, 8, 0.16);
      border: 1px solid rgba(234, 179, 8, 0.45);
      color: var(--text);
      font-size: 0.82rem;
      line-height: 1.35;
      text-align: center;
    }

    #lk-root .lk-promo-row {
      margin-top: 10px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }
    #lk-root .lk-promo-input {
      width: 9em;
    }
    #lk-root .lk-card-feedback {
      flex: 1 1 100%;
      margin-top: 6px;
      min-height: 1.2em;
      font-size: 0.82rem;
      line-height: 1.35;
    }
    #lk-root .lk-card-feedback.is-error {
      color: var(--danger, #f87171);
    }

    #lk-root .lk-ledger-shell {
      overflow: auto;
      border: 1px solid var(--border-color);
      border-radius: var(--lk-radius);
      background: rgba(255, 255, 255, 0.02);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    #lk-root .lk-ledger-shell table {
      font-size: 0.82rem;
    }

    #lk-root .lk-ledger-shell thead tr {
      background: rgba(56, 137, 124, 0.12);
    }

    #lk-root .lk-ledger-shell tbody td {
      padding: 9px 12px;
      border-top: 1px solid var(--border-color);
      vertical-align: top;
    }

    #lk-root .lk-ledger-shell tbody tr:hover td {
      background: rgba(56, 137, 124, 0.06);
    }

    #lk-root .lk-ledger-filters {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 12px;
      margin: 0 0 10px;
      font-size: 0.86rem;
    }
    #lk-root .lk-ledger-filters input[type="date"] {
      padding: 6px 8px;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      background: var(--bg-primary);
      color: inherit;
    }
    #lk-root .lk-history-pager {
      margin: 10px 0 0;
    }

    #lk-root .lk-top-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 12px;
      margin-bottom: 4px;
    }

    @media (max-width: 520px) {
      #lk-root .lk-balance-panel .lk-stat-grid {
        grid-template-columns: 1fr;
      }

      #lk-root .lk-pay-methods-grid {
        grid-template-columns: 1fr;
      }

      #lk-root .lk-packages-grid {
        grid-template-columns: 1fr;
      }

      #lk-root .lk-package-name {
        font-size: 1.2rem;
      }

      #lk-root .lk-package-features li {
        font-size: 0.95rem;
      }
    }

    #auth-modal .detail-modal-content {
      max-width: 560px;
      width: min(94vw, 560px);
      border-radius: 22px;
      overflow: hidden;
    }

    #auth-modal .detail-modal-header {
      padding: 16px 18px;
      background:
        radial-gradient(circle at top right, rgba(167, 139, 250, 0.28), transparent 48%),
        linear-gradient(120deg, rgba(56, 137, 124, 0.22), rgba(21, 26, 36, 0.7));
    }

    #auth-modal-title {
      font-size: 1.08rem;
      letter-spacing: 0.01em;
    }

    .auth-subtitle {
      margin: 6px 0 12px;
      color: var(--text-secondary);
      font-size: 0.88rem;
      line-height: 1.45;
    }

    .auth-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 12px;
      padding: 4px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-color);
    }

    .auth-tabs .transaction-btn {
      min-height: 40px;
      border-radius: 10px;
      font-size: 0.84rem;
      font-weight: 700;
    }

    .auth-form-stack {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .auth-input {
      min-height: 40px;
      border-radius: 12px;
      border: 1px solid var(--border-color);
      background: rgba(255, 255, 255, 0.03);
      padding: 0 12px;
      font-size: 0.92rem;
    }

    .auth-input:focus {
      outline: none;
      border-color: rgba(56, 137, 124, 0.6);
      box-shadow: 0 0 0 3px rgba(56, 137, 124, 0.18);
    }

    .auth-login-mode {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .auth-login-mode-link {
      appearance: none;
      background: none;
      border: 0;
      box-shadow: none;
      padding: 0;
      margin: 0;
      min-height: 0;
      width: auto;
      font: inherit;
      font-size: 0.78rem;
      line-height: 1.2;
      color: var(--text-primary);
      opacity: 0.55;
      cursor: pointer;
      text-decoration: none;
    }
    .auth-login-mode-link.active {
      opacity: 1;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .auth-phone-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .auth-phone-prefix {
      flex: 0 0 auto;
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      padding: 0 12px;
      border-radius: 12px;
      border: 1px solid var(--border-color);
      color: var(--text-primary);
      font-weight: 700;
      user-select: none;
    }
    .auth-phone-row .auth-input {
      flex: 1 1 auto;
      min-width: 0;
    }

    /* Auth inputs reuse .search-input but sit outside .search-row — without explicit color
       browsers often render typed text black, invisible on dark modal background. */
    #auth-modal input.search-input.auth-input,
    #auth-modal .auth-input {
      color: var(--text-primary);
      caret-color: var(--text-primary);
    }
    #auth-modal input.search-input.auth-input::placeholder,
    #auth-modal .auth-input::placeholder {
      color: var(--text-secondary);
      opacity: 1;
    }

    .action-row > .lot-analysis-shell {
      width: 100%;
    }

    .action-row > .lot-analysis-shell > .lot-analysis-trigger {
      width: 100%;
      justify-content: center;
      text-align: center;
    }

    .lot-analysis-inline-progress {
      width: 100%;
      box-sizing: border-box;
      padding: 8px 10px;
      border: 1px solid #d8e1ec;
      border-radius: 10px;
      background: #f8fafc;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .lot-analysis-inline-progress__title {
      font-size: 12px;
      font-weight: 700;
      color: #1f2937;
      line-height: 1.3;
    }
    .lot-analysis-inline-progress__track {
      height: 8px;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.35);
      overflow: hidden;
      position: relative;
    }
    .lot-analysis-inline-progress__fill {
      position: absolute;
      inset: 0;
      width: 40%;
      border-radius: 999px;
      background: linear-gradient(90deg, #2563eb, #38bdf8);
      animation: lot-analysis-inline-indeterminate 1.2s ease-in-out infinite;
    }
    @keyframes lot-analysis-inline-indeterminate {
      0% { transform: translateX(-120%); }
      100% { transform: translateX(280%); }
    }
    .lot-analysis-inline-progress__timer {
      font-size: 11px;
      line-height: 1.35;
      color: #475569;
    }
    .lot-analysis-inline-progress__error {
      font-size: 12px;
      line-height: 1.4;
      color: #b91c1c;
      font-weight: 600;
    }
    .lot-analysis-inline-progress__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 2px;
    }

    .lot-analysis-status-col {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
      min-width: 0;
    }
    .lot-analysis-status-row {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .lot-analysis-dl-icons {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .lot-analysis-dl-icon {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      min-width: 42px;
      margin: 0;
      padding: 5px 6px 4px;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      background: #ffffff;
      color: #0f172a;
      cursor: pointer;
      line-height: 1;
      box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
      transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
    }
    .lot-analysis-dl-icon:hover {
      border-color: rgba(56, 137, 124, 0.55);
      background: #f0fdf9;
    }
    .lot-analysis-dl-icon:disabled,
    .lot-analysis-dl-icon.is-busy {
      opacity: 0.55;
      cursor: wait;
    }
    .lot-analysis-dl-icon:focus-visible {
      outline: 2px solid rgba(56, 137, 124, 0.55);
      outline-offset: 2px;
    }
    .lot-analysis-dl-icon svg {
      width: 18px;
      height: 18px;
      display: block;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.7;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .lot-analysis-dl-icon__label {
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.02em;
      color: #475569;
      text-transform: uppercase;
    }
    .lot-analysis-dl-icon--pdf { color: #b91c1c; }
    .lot-analysis-dl-icon--pdf .lot-analysis-dl-icon__label { color: #b91c1c; }
    .lot-analysis-dl-icon--csv { color: #0f766e; }
    .lot-analysis-dl-icon--csv .lot-analysis-dl-icon__label { color: #0f766e; }
    .lot-analysis-dl-icon--xlsx { color: #166534; }
    .lot-analysis-dl-icon--xlsx .lot-analysis-dl-icon__label { color: #166534; }

    .lot-analysis-extra-hint {
      font-size: 13px;
      line-height: 1.45;
      color: var(--text-muted);
      margin-bottom: 10px;
    }

    #auth-modal input.search-input.auth-input:-webkit-autofill,
    #auth-modal input.search-input.auth-input:-webkit-autofill:hover,
    #auth-modal input.search-input.auth-input:-webkit-autofill:focus {
      -webkit-text-fill-color: var(--text-primary);
      caret-color: var(--text-primary);
      transition: background-color 9999s ease-out;
    }

    .auth-captcha-card,
    .auth-otp-card {
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 8px;
      background: rgba(255, 255, 255, 0.03);
    }

    .auth-question {
      font-size: 0.86rem;
      color: var(--text-secondary);
      margin-bottom: 8px;
    }

    .auth-btn-wide {
      width: 100%;
      min-height: 40px;
    }

    .auth-oauth { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
    .auth-oauth a.btn-outline {
      display: flex; align-items: center; justify-content: center; gap: 10px;
      text-decoration: none; box-sizing: border-box;
    }
    .yandex-mark {
      width: 22px; height: 22px; border-radius: 50%; background: #fc3f1d; color: #fff;
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 700; line-height: 1; flex: 0 0 auto;
    }

    #auth-modal .detail-modal-body {
      padding: 12px 14px 14px;
    }
    .auth-subtitle {
      margin: 6px 0 10px;
    }

    #auth-register-captcha-status {
      margin-top: -2px;
      margin-bottom: 2px;
    }

    @media (max-width: 560px) {
      #auth-modal .detail-modal-content {
        max-height: 88vh;
      }
      .auth-tabs .transaction-btn {
        min-height: 38px;
        font-size: 0.8rem;
      }
      .auth-subtitle {
        font-size: 0.83rem;
      }
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes aiModalBlink {
      0%,
      100% {
        opacity: 0;
      }
      50% {
        opacity: 1;
      }
    }

    .assistant-widget {
      position: fixed;
      right: 18px;
      bottom: 18px;
      width: min(420px, calc(100vw - 28px));
      max-width: calc(100vw - 28px);
      z-index: 40;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: var(--bg-elev);
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .assistant-widget *,
    .assistant-widget *::before,
    .assistant-widget *::after {
      box-sizing: border-box;
      min-width: 0;
    }
    .assistant-widget[hidden] { display: none; }
    .assistant-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
      font-weight: 700;
      flex-wrap: wrap;
    }
    .assistant-scope-toggle {
      display: inline-flex;
      border: 1px solid var(--border, #d8dee8);
      border-radius: 0;
      overflow: hidden;
      width: 100%;
      max-width: none;
      border-left: none;
      border-right: none;
    }
    .assistant-scope-btn {
      border: 0;
      border-radius: 0;
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 600;
      background: transparent;
      color: inherit;
      cursor: pointer;
      flex: 1 1 0;
    }
    .assistant-scope-btn.active {
      background: var(--accent, #2f6fed);
      color: #fff;
    }
    .assistant-scope-btn + .assistant-scope-btn {
      border-left: 1px solid var(--border, #d8dee8);
    }
    .assistant-head-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }
    .assistant-widget.is-expanded {
      inset: 0;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      width: 100vw;
      max-width: none;
      height: 100dvh;
      max-height: none;
      border-radius: 0;
      z-index: 50;
      display: flex;
      flex-direction: column;
    }
    .assistant-widget.is-expanded .assistant-body {
      flex: 1 1 auto;
      min-height: 0;
      max-height: none;
      overflow: auto;
      display: flex;
      flex-direction: column;
    }
    .assistant-widget.is-expanded .assistant-answer {
      flex: 1 1 auto;
      min-height: 120px;
      max-height: none;
    }
    .assistant-body {
      display: grid;
      gap: 10px;
      padding: 12px;
    }
    .assistant-answer {
      max-height: 280px;
      overflow: auto;
      color: var(--text);
      font-size: 0.92rem;
      line-height: 1.45;
      background: var(--surface);
      border-radius: 12px;
      padding: 10px;
    }
    .assistant-answer p {
      margin: 0 0 0.65em;
    }
    .assistant-answer h2,
    .assistant-answer h3,
    .assistant-answer h4 {
      margin: 0.85em 0 0.35em;
      line-height: 1.3;
      font-weight: 700;
    }
    .assistant-answer h2 { font-size: 1.05rem; }
    .assistant-answer h3 { font-size: 0.98rem; }
    .assistant-answer h4 { font-size: 0.92rem; }
    .assistant-answer strong { font-weight: 700; }
    .assistant-answer ul,
    .assistant-answer ol {
      margin: 0.2em 0 0.7em;
      padding-left: 1.2em;
    }
    .assistant-answer li { margin: 0.15em 0; }
    .assistant-md-table {
      overflow-x: auto;
      margin: 0.4em 0 0.8em;
    }
    .assistant-answer table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.82rem;
    }
    .assistant-answer th,
    .assistant-answer td {
      border: 1px solid var(--border);
      padding: 4px 6px;
      text-align: left;
      vertical-align: top;
    }
    .assistant-answer th { font-weight: 700; }
    .assistant-md-who {
      margin: 0.8em 0 0.25em;
      color: var(--muted);
      font-size: 0.82rem;
    }
    .assistant-question {
      width: 100%;
      max-width: 100%;
      min-height: 74px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      color: var(--text);
      border-radius: 12px;
      padding: 10px;
      resize: vertical;
    }
    .assistant-lot-context {
      display: none;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: rgba(56, 137, 124, 0.08);
      padding: 10px;
      font-size: 0.82rem;
    }
    .assistant-lot-context.is-visible {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .assistant-lot-context-label {
      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 600;
    }
    .assistant-lot-cad-link {
      border: none;
      background: transparent;
      color: #2563eb;
      font-weight: 800;
      font-size: 0.86rem;
      padding: 0;
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 2px;
      font-family: inherit;
    }
    .assistant-lot-cad-link:hover {
      filter: brightness(1.08);
    }
    .assistant-lot-hint {
      margin: 0;
      flex: 1 1 100%;
      color: var(--muted);
      line-height: 1.45;
    }
    .lot-switch-lot {
      display: inline-flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 8px;
      max-width: 100%;
    }
    .lot-switch-lot-btn {
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.06);
      color: var(--text);
      border-radius: 8px;
      font-size: 0.75rem;
      font-weight: 600;
      padding: 2px 8px;
      cursor: pointer;
      font-family: inherit;
    }
    .lot-switch-lot-hint {
      flex: 1 1 100%;
      margin: 0;
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 500;
      line-height: 1.4;
    }
    .lot-switch-lot-hint[hidden] {
      display: none !important;
    }
    .assistant-lot-context-title {
      font-weight: 800;
      color: var(--text);
    }
    .assistant-lot-context-grid {
      display: grid;
      grid-template-columns: minmax(0, 36%) minmax(0, 64%);
      gap: 6px 12px;
      color: var(--muted);
    }
    .assistant-lot-context-grid dt {
      margin: 0;
      font-weight: 700;
      color: var(--text);
      font-size: 0.82rem;
      line-height: 1.35;
      overflow-wrap: break-word;
      word-break: break-word;
      hyphens: auto;
    }
    .assistant-lot-context-grid dd {
      margin: 0;
      font-size: 0.88rem;
      line-height: 1.35;
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .lot-modal-incomplete {
      margin: 10px 0 0;
      font-size: 0.82rem;
      color: #94a3b8;
    }
    .lot-modal-cta {
      margin: 14px 0 0;
    }
    .lot-modal-cta .btn-primary {
      display: inline-flex;
      text-decoration: none;
    }
    @media (max-width: 720px) {
      .assistant-lot-context-grid {
        grid-template-columns: minmax(0, 30%) minmax(0, 70%);
        gap: 8px 10px;
      }
      .assistant-lot-context-grid dt {
        font-size: 0.76rem;
      }
      .assistant-lot-context-grid dd {
        font-size: 0.86rem;
      }
    }
    .assistant-reference-toggle {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      flex: 1 1 220px;
      color: var(--muted);
      font-size: 0.84rem;
    }
    .assistant-reference-toggle input {
      accent-color: var(--accent);
    }
    .assistant-reference-help {
      left: auto;
      right: 0;
      top: calc(100% + 8px);
      width: min(320px, calc(100vw - 36px));
    }
    .assistant-sources {
      display: grid;
      gap: 6px;
      color: var(--muted);
      font-size: 0.82rem;
      overflow-wrap: anywhere;
    }
    .assistant-market-asking {
      margin: 8px 0 0;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid rgba(15, 23, 42, 0.1);
      background: rgba(15, 23, 42, 0.03);
      color: var(--text, #0f172a);
      line-height: 1.35;
    }
    .assistant-market-asking-title {
      font-size: 0.82rem;
      font-weight: 600;
      margin: 0 0 6px;
      color: #0f172a;
    }
    .assistant-market-asking-meta {
      display: grid;
      gap: 3px;
      margin: 0 0 8px;
      font-size: 0.78rem;
      color: var(--muted);
    }
    .assistant-market-asking-stale {
      margin: 0 0 8px;
      padding: 6px 8px;
      border-radius: 8px;
      background: rgba(180, 83, 9, 0.1);
      border: 1px solid rgba(180, 83, 9, 0.28);
      color: #92400e;
      font-size: 0.78rem;
      font-weight: 600;
    }
    .assistant-market-asking-disclaimer {
      margin: 0;
      font-size: 0.78rem;
      color: var(--muted);
      line-height: 1.4;
    }
    .assistant-billing-tip {
      display: none;
      margin: 8px 0 0;
      padding: 8px 10px;
      border-radius: 8px;
      background: rgba(15, 23, 42, 0.04);
      border: 1px solid rgba(15, 23, 42, 0.08);
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.35;
    }
    .assistant-billing-tip.is-visible { display: block; }
    .assistant-upsell {
      display: none;
      margin: 10px 0 0;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid rgba(37, 99, 235, 0.22);
      background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(248, 250, 252, 0.9));
    }
    .assistant-upsell.is-visible { display: block; }
    .assistant-upsell-title {
      font-size: 0.82rem;
      font-weight: 600;
      color: #0f172a;
      margin: 0 0 6px;
    }
    .assistant-upsell-note {
      font-size: 0.78rem;
      color: var(--muted);
      margin: 0 0 8px;
      line-height: 1.35;
    }
    .assistant-upsell-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .assistant-upsell-actions .btn-primary,
    .assistant-upsell-actions .btn-secondary {
      font-size: 0.8rem;
      padding: 6px 12px;
    }
    .assistant-progress {
      display: none;
      gap: 7px;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 9px;
      background: rgba(255,255,255,0.03);
    }
    .assistant-progress.is-active {
      display: grid;
    }
    .assistant-progress-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      color: var(--muted);
      font-size: 0.82rem;
    }
    .assistant-progress-track {
      height: 7px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(255,255,255,0.08);
    }
    .assistant-progress-bar {
      width: 8%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      transition: width 0.45s ease;
    }
    .assistant-actions {
      display: flex;
      gap: 8px;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    .assistant-actions .filter-select {
      flex: 1 1 130px;
      max-width: 180px;
    }
    .assistant-actions .btn-primary {
      flex: 0 0 auto;
    }
    .assistant-speed-toggle {
      display: inline-flex;
      border: 1px solid var(--border, #d8dee8);
      border-radius: 8px;
      overflow: hidden;
      flex: 0 0 auto;
    }
    .assistant-speed-btn {
      border: 0;
      border-radius: 0;
      padding: 8px 12px;
      font-size: 13px;
      background: transparent;
      color: inherit;
      cursor: pointer;
    }
    .assistant-speed-btn.active {
      background: var(--accent, #2f6fed);
      color: #fff;
    }
    .assistant-speed-btn + .assistant-speed-btn {
      border-left: 1px solid var(--border, #d8dee8);
    }
    .assistant-verify-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .assistant-feedback-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      font-size: 0.84rem;
      color: var(--muted);
    }
    .assistant-feedback-btn {
      appearance: none;
      border: 1px solid var(--border);
      background: var(--bg-elev, transparent);
      border-radius: 8px;
      width: 34px;
      height: 30px;
      cursor: pointer;
      line-height: 1;
    }
    .assistant-feedback-btn.is-on {
      border-color: var(--accent, #3b82f6);
      background: rgba(59, 130, 246, 0.12);
    }
    .assistant-feedback-status {
      font-size: 0.8rem;
    }
    .assistant-verify-result {
      display: grid;
      gap: 6px;
      color: var(--muted);
      font-size: 0.84rem;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 8px;
      background: rgba(255,255,255,0.03);
    }
    .assistant-verify-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 999px;
      padding: 4px 8px;
      font-weight: 700;
      font-size: 0.82rem;
    }
    .assistant-verify-badge.verified { color: #86efac; background: rgba(34,197,94,0.12); }
    .assistant-verify-badge.needs_review { color: #fde68a; background: rgba(245,158,11,0.12); }
    .assistant-verify-badge.risky { color: #fecaca; background: rgba(239,68,68,0.12); }
    .chat-fab-dock {
      display: contents;
    }
    .assistant-toggle,
    .lawyer-toggle {
      position: fixed;
      right: 18px;
      z-index: 39;
      box-sizing: border-box;
      width: 138px;
      min-width: 138px;
      max-width: 138px;
      height: 44px;
      padding: 10px 12px;
      font-size: 0.84rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      opacity: 0.72;
      color: #ffffff;
      border: 1px solid rgba(255,255,255,0.18);
      box-shadow: 0 8px 20px rgba(0,0,0,0.22);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    }
    .assistant-toggle:hover,
    .lawyer-toggle:hover {
      opacity: 0.9;
      transform: translateY(-1px);
      box-shadow: 0 10px 24px rgba(0,0,0,0.28);
    }
    .assistant-toggle {
      bottom: 18px;
      background: linear-gradient(
        135deg,
        rgba(56, 137, 124, 0.62),
        rgba(120, 110, 200, 0.48)
      );
    }
    .lawyer-toggle {
      bottom: 70px;
      background: linear-gradient(
        135deg,
        rgba(37, 99, 175, 0.55),
        rgba(56, 140, 190, 0.48)
      );
    }
    .help-toggle {
      position: fixed;
      right: 18px;
      bottom: 122px;
      z-index: 39;
      box-sizing: border-box;
      width: 138px;
      min-width: 138px;
      max-width: 138px;
      height: 44px;
      padding: 10px 12px;
      font-size: 0.84rem;
      font-weight: 600;
      opacity: 0.72;
      color: #ffffff;
      border: 1px solid rgba(255,255,255,0.18);
      box-shadow: 0 8px 20px rgba(0,0,0,0.22);
      background: linear-gradient(135deg, rgba(56, 137, 124, 0.7), rgba(37, 99, 175, 0.5));
    }
    .help-toggle:hover { opacity: 0.9; }
    .help-toggle[hidden],
    .help-widget[hidden] { display: none !important; }
    .help-widget {
      position: fixed;
      right: 18px;
      bottom: 176px;
      width: min(380px, calc(100vw - 28px));
      max-height: min(480px, calc(100vh - 200px));
      z-index: 40;
      display: flex;
      flex-direction: column;
      background: var(--bg-elev);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 14px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .help-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-bottom: 1px solid var(--border);
      font-weight: 600;
    }
    .help-body {
      flex: 1;
      overflow: auto;
      padding: 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-size: 0.9rem;
    }
    .help-msg { padding: 8px 10px; border-radius: 10px; line-height: 1.4; }
    .help-msg.user { background: rgba(56,137,124,0.18); align-self: flex-end; }
    .help-msg.bot { background: var(--surface); }
    .help-msg a { color: var(--accent); }
    .help-compose {
      display: flex;
      gap: 8px;
      padding: 10px;
      border-top: 1px solid var(--border);
    }
    .help-compose textarea {
      flex: 1;
      min-height: 44px;
      resize: vertical;
      background: var(--bg);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 8px;
      font: inherit;
    }
    .help-cta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
    .help-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 8px; }
    .help-chip {
      border: 1px solid var(--border);
      background: var(--bg);
      color: var(--text);
      border-radius: 999px;
      padding: 5px 10px;
      font: inherit;
      font-size: 0.82rem;
      cursor: pointer;
    }
    .help-captcha {
      display: flex;
      gap: 8px;
      align-items: center;
      padding: 0 10px 8px;
      font-size: 0.85rem;
    }
    .help-captcha[hidden] { display: none !important; }
    .help-captcha input {
      width: 72px;
      background: var(--bg);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 6px 8px;
      font: inherit;
    }
    .lawyer-toggle[hidden],
    .lawyer-widget[hidden] {
      display: none !important;
    }
    .lawyer-widget {
      position: fixed;
      right: 18px;
      bottom: 132px;
      width: min(380px, calc(100vw - 28px));
      max-height: min(520px, calc(100vh - 160px));
      z-index: 40;
      display: flex;
      flex-direction: column;
      background: var(--bg-elev);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 14px;
      box-shadow: var(--shadow);
      overflow: hidden;
      isolation: isolate;
      opacity: 1;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
    .lawyer-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-bottom: 1px solid var(--border);
      font-weight: 600;
      background: var(--bg-elev);
    }
    .lawyer-body {
      flex: 1;
      overflow: auto;
      padding: 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      background: var(--bg-elev);
    }
    .lawyer-msg {
      max-width: 92%;
      padding: 8px 10px;
      border-radius: 10px;
      font-size: 0.92rem;
      line-height: 1.35;
      white-space: pre-wrap;
    }
    .lawyer-msg.user { align-self: flex-end; background: rgba(14,165,233,0.22); }
    .lawyer-msg.admin { align-self: flex-start; background: rgba(255,255,255,0.08); }
    .lawyer-msg.system { align-self: center; background: transparent; color: #94a3b8; font-size: 0.8rem; }
    .lawyer-compose {
      display: flex;
      gap: 8px;
      padding: 10px;
      border-top: 1px solid var(--border);
      background: var(--bg-elev);
    }
    .lawyer-compose textarea {
      flex: 1;
      min-height: 44px;
      max-height: 90px;
      resize: vertical;
    }
    .lawyer-threads {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 8px;
    }
    .lawyer-thread-item {
      text-align: left;
      padding: 8px 10px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.03);
      cursor: pointer;
      font-size: 0.85rem;
    }
    .lawyer-thread-item.is-active { border-color: #0ea5e9; }
    .lawyer-thread-item.has-unread { border-color: rgba(14,165,233,0.55); }
    .lawyer-tabs {
      display: flex;
      gap: 6px;
      margin-bottom: 10px;
    }
    .lawyer-tab {
      flex: 1;
      padding: 7px 8px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.04);
      color: inherit;
      cursor: pointer;
      font-size: 0.82rem;
    }
    .lawyer-tab.is-active {
      border-color: #0ea5e9;
      background: rgba(14,165,233,0.18);
    }
    .lawyer-chat-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
      font-size: 0.82rem;
    }
    .lawyer-close-thread-btn {
      padding: 4px 8px;
      font-size: 0.78rem;
    }
    .lawyer-toggle-badge {
      position: absolute;
      top: -5px;
      right: -5px;
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      border-radius: 999px;
      background: #ef4444;
      color: #fff;
      font-size: 0.7rem;
      font-weight: 700;
      line-height: 18px;
      text-align: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    }
    .lawyer-admin-banner {
      margin: 0 0 12px;
      padding: 10px 12px;
      border-radius: 10px;
      background: rgba(29,78,216,0.18);
      border: 1px solid rgba(96,165,250,0.35);
      font-size: 0.9rem;
    }
    .assistant-toggle[hidden],
    .assistant-widget[hidden] {
      display: none !important;
    }
    .page-scroll-fab {
      position: fixed;
      right: 18px;
      bottom: 184px;
      z-index: 38;
      display: flex;
      flex-direction: column;
      gap: 6px;
      opacity: 0;
      pointer-events: none;
      transform: translateY(8px);
      transition: opacity 0.18s ease, transform 0.18s ease;
    }
    .page-scroll-fab.is-visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
    .page-scroll-fab-btn {
      width: 42px;
      height: 42px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(21, 26, 36, 0.92);
      color: var(--text);
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
      cursor: pointer;
      font-size: 18px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }
    .page-scroll-fab-btn:hover {
      border-color: rgba(56, 137, 124, 0.55);
      color: #fff;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
    }
    [data-theme="light"] .page-scroll-fab-btn {
      background: rgba(255, 255, 255, 0.94);
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    }
    @media (max-width: 640px) {
      .page-scroll-fab {
        right: 12px;
        /* Above lawyer FAB (bottom ~58 + height 40) + gap */
        bottom: 118px;
      }
      .page-scroll-fab-btn {
        width: 40px;
        height: 40px;
      }
    }
    .assistant-watch-badge {
      display: none;
      margin-left: 8px;
      padding: 2px 8px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: rgba(15, 23, 42, 0.55);
      color: #e2e8f0;
      font-size: 0.72rem;
      font-weight: 700;
      vertical-align: middle;
      white-space: nowrap;
    }
    @media (max-width: 560px) {
      :root {
        --chat-dock-height: calc(48px + max(12px, env(safe-area-inset-bottom, 0px)));
      }
      .chat-fab-dock {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 41;
        gap: 6px;
        align-items: stretch;
        padding: 8px 8px max(12px, env(safe-area-inset-bottom, 0px));
        background: var(--bg-elev);
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
      }
      .chat-fab-dock .assistant-toggle,
      .chat-fab-dock .lawyer-toggle,
      .chat-fab-dock .help-toggle {
        position: static;
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: none;
        height: 40px;
        right: auto;
        bottom: auto;
        padding: 8px 6px;
        font-size: 0.72rem;
        letter-spacing: 0;
        transform: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        white-space: nowrap;
      }
      .chat-fab-dock .lawyer-toggle {
        position: relative;
      }
      .chat-fab-dock .lawyer-toggle-badge {
        top: 2px;
        right: 2px;
      }
      .chat-fab-dock .assistant-toggle:hover,
      .chat-fab-dock .lawyer-toggle:hover,
      .chat-fab-dock .help-toggle:hover {
        transform: none;
      }
      .assistant-widget:not(.is-expanded) {
        left: 8px;
        right: 8px;
        bottom: calc(8px + var(--chat-dock-height));
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 16px - var(--chat-dock-height));
        border-radius: 16px;
      }
      .assistant-widget.is-expanded {
        z-index: 50;
      }
      .assistant-body {
        max-height: calc(100dvh - 74px - var(--chat-dock-height));
        overflow: auto;
        padding: 10px;
      }
      .assistant-answer {
        max-height: 34dvh;
      }
      .assistant-actions {
        display: grid;
        grid-template-columns: 1fr;
      }
      .assistant-actions .filter-select,
      .assistant-actions .btn-primary {
        width: 100%;
        max-width: none !important;
      }
      .help-widget {
        left: 8px;
        right: 8px;
        bottom: calc(8px + var(--chat-dock-height));
        width: auto;
        max-height: min(480px, calc(100dvh - 24px - var(--chat-dock-height)));
      }
      .lawyer-widget {
        left: 8px;
        right: 8px;
        bottom: calc(8px + var(--chat-dock-height));
        width: auto;
        max-height: min(520px, calc(100dvh - 24px - var(--chat-dock-height)));
      }
      .page-scroll-fab {
        right: 12px;
        bottom: calc(12px + var(--chat-dock-height));
      }
    }
    body.compare-pick-view .site-header,
    body.favorites-pick-view .site-header,
    body.analyses-pick-view .site-header,
    body.tracked-pick-view .site-header,
    body.procedure-pick-view .site-header,
    body.lot-view-pick-view .site-header,
    body.compare-pick-view .landing-shell,
    body.favorites-pick-view .landing-shell,
    body.analyses-pick-view .landing-shell,
    body.tracked-pick-view .landing-shell,
    body.procedure-pick-view .landing-shell,
    body.lot-view-pick-view .landing-shell,
    body.compare-pick-view .stats,
    body.favorites-pick-view .stats,
    body.analyses-pick-view .stats,
    body.tracked-pick-view .stats,
    body.procedure-pick-view .stats,
    body.lot-view-pick-view .stats,
    body.compare-pick-view .parse-update-banner,
    body.favorites-pick-view .parse-update-banner,
    body.analyses-pick-view .parse-update-banner,
    body.tracked-pick-view .parse-update-banner,
    body.procedure-pick-view .parse-update-banner,
    body.lot-view-pick-view .parse-update-banner,
    body.compare-pick-view .search-panel,
    body.favorites-pick-view .search-panel,
    body.analyses-pick-view .search-panel,
    body.tracked-pick-view .search-panel,
    body.procedure-pick-view .search-panel,
    body.lot-view-pick-view .search-panel,
    body.compare-pick-view footer,
    body.favorites-pick-view footer,
    body.analyses-pick-view footer,
    body.tracked-pick-view footer,
    body.procedure-pick-view footer,
    body.lot-view-pick-view footer,
    body.compare-pick-view .chat-fab-dock,
    body.favorites-pick-view .chat-fab-dock,
    body.analyses-pick-view .chat-fab-dock,
    body.tracked-pick-view .chat-fab-dock,
    body.procedure-pick-view .chat-fab-dock,
    body.lot-view-pick-view .chat-fab-dock,
    body.compare-pick-view .page-scroll-fab,
    body.favorites-pick-view .page-scroll-fab,
    body.analyses-pick-view .page-scroll-fab,
    body.tracked-pick-view .page-scroll-fab,
    body.procedure-pick-view .page-scroll-fab,
    body.lot-view-pick-view .page-scroll-fab,
    body.compare-pick-view #alertBox,
    body.favorites-pick-view #alertBox,
    body.analyses-pick-view #alertBox,
    body.tracked-pick-view #alertBox,
    body.procedure-pick-view #alertBox,
    body.lot-view-pick-view #alertBox {
      display: none !important;
    }
    body.compare-pick-view .compare-pick-bar,
    body.favorites-pick-view .compare-pick-bar,
    body.analyses-pick-view .compare-pick-bar,
    body.tracked-pick-view .compare-pick-bar,
    body.procedure-pick-view .compare-pick-bar,
    body.lot-view-pick-view .compare-pick-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 16px 0 8px;
    }
    body.compare-pick-view #lot-card,
    body.favorites-pick-view #lot-card,
    body.analyses-pick-view #lot-card,
    body.tracked-pick-view #lot-card,
    body.procedure-pick-view #lot-card,
    body.lot-view-pick-view #lot-card {
      display: block !important;
    }
    .procedure-preview {
      position: fixed;
      inset: 0;
      z-index: 800;
      overflow: auto;
      background: var(--bg, #0c0f14);
      box-sizing: border-box;
    }
    .procedure-preview[hidden] {
      display: none !important;
    }
    body.procedure-preview-open {
      overflow: hidden;
    }
    .procedure-preview-inner {
      max-width: 960px;
      margin: 0 auto;
      padding: 16px 16px 48px;
    }
    .procedure-preview .compare-pick-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 0 0 8px;
    }
    .compare-pick-missing {
      margin: 0 0 12px;
      color: var(--muted, #8a8f98);
    }
    .compare-pick-pager {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      margin: 16px 0 8px;
    }

    .lots-view-toggle {
      display: inline-grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
      margin: 0 0 12px;
    }
    .lots-view-toggle [data-lots-action="filters"] {
      display: none;
    }
    body.lots-view-map .lots-view-toggle {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    body.lots-view-map .lots-view-toggle [data-lots-action="filters"] {
      display: inline-flex;
    }
    body.lots-status-archival .lots-view-toggle [data-lots-view="map"],
    body.lots-status-archival .lots-view-toggle [data-lots-action="filters"] {
      display: none !important;
    }
    body.lots-status-archival .lots-view-toggle {
      grid-template-columns: minmax(0, 1fr);
    }
    .lots-view-toggle .transaction-btn {
      min-width: 0;
      gap: 6px;
    }
    .lots-view-toggle .lots-view-map-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      line-height: 0;
    }
    .lots-view-toggle .lots-view-map-icon svg {
      display: block;
    }
    .lots-view-toggle .transaction-btn.active,
    .lots-view-toggle .transaction-btn:hover {
      background: #dbeafe;
      color: #1e40af;
      border-color: #93c5fd;
    }
    body.lots-view-map #lot-card {
      display: none !important;
    }
    .lots-map-section[hidden] {
      display: none !important;
    }
    .lots-map-section {
      --lots-map-panel-w: 420px;
      position: relative;
      width: 100vw;
      margin-left: calc(50% - 50vw);
      height: calc(100dvh - 96px);
      min-height: 520px;
      display: grid;
      grid-template-columns: var(--lots-map-panel-w) minmax(0, 1fr);
      gap: 12px;
      padding: 0 12px;
      box-sizing: border-box;
      scroll-margin-top: 72px;
    }
    .lots-map-panel {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      min-height: 0;
      background: var(--bg-elev);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .lots-map-panel-head {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-bottom: 1px solid var(--border);
    }
    .lots-map-counter {
      flex: 1 1 auto;
      margin: 0;
      font-size: 0.9rem;
      color: var(--text);
    }
    .lots-map-counter-extra {
      display: block;
      margin-top: 2px;
      font-size: 0.78rem;
      color: var(--muted);
    }
    .lots-map-panel-close {
      flex: 0 0 auto;
      min-width: 34px;
      padding: 4px 8px;
    }
    .lots-map-sheet-handle {
      display: none;
    }
    .lots-map-panel-body {
      flex: 1 1 auto;
      min-height: 0;
      overflow: auto;
      overscroll-behavior: contain;
      padding: 12px;
    }
    .lots-map-panel-body .grid-lots {
      grid-template-columns: minmax(0, 1fr);
    }
    .lots-map-panel-hint {
      margin: 0 0 10px;
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1.45;
    }
    .lots-map-panel-title {
      margin: 0 0 8px;
      font-weight: 600;
    }
    .lots-map-legend {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 6px;
      font-size: 0.86rem;
    }
    .lots-map-legend li {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .lots-map-dot {
      display: inline-block;
      flex: 0 0 auto;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      border: 2px solid #fff;
      box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
    }
    .lots-map-dot--sale { background: #38897c; }
    .lots-map-dot--rent { background: #a78bfa; }
    .lots-map-dot--closed { background: #94a3b8; }
    .lots-map-cluster-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 6px;
    }
    .lots-map-cluster-row {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      text-align: left;
      font: inherit;
      font-size: 0.86rem;
      color: var(--text);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      cursor: pointer;
    }
    .lots-map-cluster-row:hover {
      border-color: var(--accent);
    }
    .lots-map-back {
      margin: 0 0 10px;
    }
    .lot-card--map .lot-card-name--map {
      display: block;
      font-size: 0.98rem;
      font-weight: 700;
      line-height: 1.35;
    }
    .lot-card--map .lot-card-map-sub {
      display: block;
      margin-top: 6px;
      font-size: 0.82rem;
      line-height: 1.4;
      word-break: break-word;
      color: var(--muted);
      font-weight: 500;
    }
    .lot-card--map .lot-card-map-addr {
      color: var(--muted);
      font-weight: 500;
    }
    .lot-card--map .lot-card-map-cad {
      display: inline;
      margin: 0;
      padding: 0;
      border: none;
      background: transparent;
      color: var(--accent);
      font: inherit;
      font-size: inherit;
      font-weight: 600;
      line-height: inherit;
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .lot-card--map .lot-card-top h2 {
      display: grid;
      gap: 8px;
    }
    .lot-map-details {
      margin: 8px 0 0;
    }
    .lot-fold-trigger.lot-map-details-toggle {
      width: 100%;
      min-height: 38px;
      padding: 7px 12px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--bg-elev);
      font-size: 0.84rem;
      font-weight: 650;
    }
    .lot-map-details-panel {
      margin-top: 8px;
    }
    .lot-map-details-panel[hidden] {
      display: none !important;
    }
    .lot-card-side-pills--map {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin: 0 0 8px;
    }
    .lot-card--map .lot-actions-more-shell {
      display: none;
    }
    .lot-card--map .lot-actions-primary {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      margin-bottom: 6px;
    }
    .lot-card--map .lot-actions-primary .lot-action-btn,
    .lot-card--map .lot-actions-primary .btn-link.lot-action-btn {
      font-size: 0.72rem;
      padding: 5px 6px;
      min-height: 32px;
    }
    .lots-map-canvas {
      position: relative;
      z-index: 0;
      min-height: 0;
      border-radius: var(--radius);
      background: #e8ecef;
    }

    body.lots-view-map .page-scroll-fab {
      display: none !important;
    }
    @media (min-width: 721px) {
      body.lots-view-map .assistant-toggle,
      body.lots-view-map .lawyer-toggle {
        right: auto;
        left: 24px;
      }
      body.lots-view-map .lots-map-panel-body {
        padding-bottom: 128px;
      }
      .lots-map-panel-body .lot-card--compact {
        display: block;
      }
      .lots-map-panel-body .lot-card--compact > .lot-card-price-stack {
        margin: 10px 0;
      }
    }
    @media (min-width: 561px) and (max-width: 720px) {
      body.lots-view-map .assistant-toggle,
      body.lots-view-map .lawyer-toggle {
        display: none !important;
      }
    }
    @media (max-width: 560px) {
      body.lots-view-map .lots-map-section {
        height: calc(100dvh - 64px - var(--chat-dock-height, 60px));
      }
    }

    @media (max-width: 720px) {
      .lots-view-toggle {
        display: grid;
        width: 100%;
      }
      body.lots-view-map .lots-view-toggle {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .lots-map-section {
        --lots-map-sheet-h: 76px;
        display: block;
        height: calc(100dvh - 64px);
        min-height: 420px;
        padding: 0;
        scroll-margin-top: 60px;
      }
      .lots-map-section[data-sheet="open"] { --lots-map-sheet-h: 60%; }
      .lots-map-section[data-sheet="full"] { --lots-map-sheet-h: 90%; }
      .lots-map-canvas {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: var(--lots-map-sheet-h);
        border-radius: 0;
        transition: bottom 0.2s ease;
      }
      .lots-map-panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: var(--lots-map-sheet-h);
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.18);
        transition: height 0.2s ease;
      }
      .lots-map-panel-head {
        position: relative;
        padding-top: 16px;
      }
      .lots-map-sheet-handle {
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        width: 72px;
        height: 16px;
        margin-left: -36px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
      }
      .lots-map-sheet-handle::before {
        content: "";
        display: block;
        width: 40px;
        height: 4px;
        margin: 6px auto 0;
        border-radius: 2px;
        background: var(--muted);
      }
      .lots-map-section[data-sheet="peek"] .lots-map-panel-body,
      .lots-map-section[data-sheet="peek"] .lots-map-panel-close {
        display: none;
      }
    }
