    :root {
      --bg: #f4efe6;
      --panel: rgba(255, 252, 246, 0.92);
      --panel-strong: #fffaf1;
      --text: #1f1d1a;
      --muted: #6e665c;
      --line: rgba(31, 29, 26, 0.12);
      --accent: #20d3e6;
      --accent-dark: #0a8ea1;
      --green: #45d483;
      --ok: #1f7a58;
      --warn: #9d6b00;
      --bad: #9f2f2f;
      --shadow: 0 24px 60px rgba(48, 33, 20, 0.10);
      --hero-bg: #13283a;
      --hero-panel: rgba(245, 251, 252, 0.08);
      --hero-line: rgba(86, 201, 213, 0.18);
      --hero-muted: #c7d5de;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      overflow-x: clip;
      font-family: "Segoe UI", "Helvetica Neue", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(32, 211, 230, 0.10), transparent 32%),
        radial-gradient(circle at right, rgba(69, 212, 131, 0.08), transparent 28%),
        linear-gradient(180deg, #eef5f3 0%, #f7f3ea 48%, #f1e8da 100%);
    }

    .shell {
      width: min(1280px, calc(100vw - 32px));
      margin: 0 auto 48px;
    }

    .site-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 28px;
      padding: 22px 4px 4px;
      color: var(--muted);
      font-size: 13px;
    }

    .site-footer-links {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }

    .site-footer a {
      color: var(--muted);
      text-decoration: none;
      font-weight: 700;
    }

    .site-footer a:hover {
      color: var(--text);
    }

    html.app-mode .hero,
    html.app-mode #platform-story,
    html.app-mode #product-intro {
      display: none;
    }

    html.app-mode .layout {
      margin-top: 24px;
    }

    html.public-home #product-intro,
    html.public-home #quickstart-wizard,
    html.public-home #app-area-tabs,
    html.public-home #main-layout,
    html.public-home #floating-search-actions,
    html.public-home #wizard-toggle-btn {
      display: none !important;
    }

    html.has-run-id #floating-search-actions {
      display: none !important;
    }

    #gi-explorer-card {
      display: none;
    }

    html.app-mode #gi-explorer-card {
      display: none;
    }

    html.gi-explorer-mode .hero,
    html.gi-explorer-mode #platform-story,
    html.gi-explorer-mode #product-intro,
    html.gi-explorer-mode #quickstart-wizard,
    html.gi-explorer-mode #brand-input-card,
    html.gi-explorer-mode .summary-grid,
    html.gi-explorer-mode #search-core-card,
    html.gi-explorer-mode #run-preview-card,
    html.gi-explorer-mode #market-evidence-card,
    html.gi-explorer-mode #brand-profile-card,
    html.gi-explorer-mode #history-card,
    html.gi-explorer-mode #templates-card,
    html.gi-explorer-mode #live-run-card,
    html.gi-explorer-mode #run-completion-card,
    html.gi-explorer-mode #event-log-card,
    html.gi-explorer-mode #results,
    html.gi-explorer-mode #export-intelligence-header,
    html.gi-explorer-mode #export-intelligence-workspace,
    html.gi-explorer-mode #workspace-rail,
    html.gi-explorer-mode #floating-search-actions {
      display: none !important;
    }

    html.gi-explorer-mode .app-topbar {
      display: flex;
    }

    html.gi-explorer-mode .layout {
      grid-template-columns: minmax(0, 1fr);
      margin-top: 24px;
    }

    html.gi-explorer-mode #gi-explorer-card {
      display: block;
    }

    .app-topbar {
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      width: auto;
      margin-left: calc(50% - 50vw);
      margin-right: calc(50% - 50vw);
      padding: 16px max(18px, calc((100vw - 1280px) / 2 + 18px));
      border-bottom: 1px solid rgba(32, 211, 230, 0.18);
      background:
        linear-gradient(rgba(164, 231, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(164, 231, 237, 0.04) 1px, transparent 1px),
        linear-gradient(135deg, #18364d, #102437);
      background-size: 42px 42px, 42px 42px, auto;
      color: #f8fbff;
    }

    html.app-mode .app-topbar {
      display: flex;
    }

    .app-topbar-nav {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .app-topbar .secondary,
    .app-topbar .button-link.secondary {
      border: 1px solid rgba(170, 231, 238, 0.30);
      background: rgba(245, 251, 252, 0.08);
      color: #e9f7fb;
      box-shadow: none;
      border-radius: 8px;
    }

    .app-topbar .button-link.secondary.active {
      background: rgba(32, 211, 230, 0.18);
      border-color: rgba(170, 231, 238, 0.52);
      color: #ffffff;
    }
    .nav-dropdown {
      position: relative;
    }
    .nav-dropdown-summary {
      list-style: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }
    .nav-dropdown-summary::-webkit-details-marker {
      display: none;
    }
    .nav-dropdown-summary::after {
      content: "";
      width: 8px;
      height: 8px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg) translateY(-1px);
      transform-origin: center;
      opacity: 0.8;
      transition: transform 160ms ease;
      box-sizing: border-box;
    }
    .nav-dropdown[open] > .nav-dropdown-summary::after {
      transform: rotate(225deg) translateY(1px);
    }
    .nav-dropdown-panel {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      min-width: 168px;
      padding: 8px;
      border: 1px solid rgba(170, 231, 238, 0.22);
      border-radius: 14px;
      background: #102437;
      box-shadow: 0 18px 36px rgba(6, 15, 24, 0.28);
      display: grid;
      gap: 8px;
      z-index: 20;
    }
    .nav-dropdown-panel .button-link {
      justify-content: flex-start;
      width: 100%;
    }

    .hero {
      position: relative;
      overflow: hidden;
      display: grid;
      gap: 34px;
      width: auto;
      margin-left: calc(50% - 50vw);
      margin-right: calc(50% - 50vw);
      min-height: 680px;
      padding: 28px max(34px, calc((100vw - 1280px) / 2 + 34px)) 38px;
      border: 1px solid rgba(70, 218, 232, 0.28);
      border-right: 0;
      border-left: 0;
      border-radius: 0;
      color: #f8fbff;
      background:
        linear-gradient(rgba(164, 231, 237, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(164, 231, 237, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 78% 42%, rgba(32, 211, 230, 0.19), transparent 27%),
        radial-gradient(circle at 12% 10%, rgba(69, 212, 131, 0.10), transparent 25%),
        linear-gradient(135deg, #18364d 0%, #112b40 48%, #102437 100%);
      background-size: 42px 42px, 42px 42px, auto, auto, auto;
      box-shadow: 0 28px 70px rgba(40, 63, 75, 0.20);
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(16, 36, 55, 0.66) 0%, rgba(16, 36, 55, 0.14) 54%, rgba(16, 36, 55, 0.42) 100%),
        linear-gradient(180deg, rgba(16, 36, 55, 0) 72%, rgba(16, 36, 55, 0.34) 100%);
      pointer-events: none;
    }

    .hero > * {
      position: relative;
      z-index: 1;
    }

    .hero-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
    }

    .hero-nav {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .locale-select {
      width: auto;
      min-width: 76px;
      height: 49px;
      padding: 0 34px 0 16px;
      border-radius: 8px;
      border: 1px solid rgba(170, 231, 238, 0.30);
      background: rgba(245, 251, 252, 0.08);
      color: #e9f7fb;
      font-weight: 800;
      cursor: pointer;
      box-shadow: none;
    }

    .locale-select option {
      color: #1f1d1a;
      background: #f8fbff;
    }

    .hero-brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 38px;
      color: #f8fbff;
      font-weight: 800;
      letter-spacing: 0;
      text-decoration: none;
    }

    .hero-mark {
      display: grid;
      width: 34px;
      height: 34px;
      place-items: center;
      border: 1px solid rgba(69, 212, 131, 0.55);
      border-radius: 8px;
      background: rgba(69, 212, 131, 0.16);
      color: var(--green);
      font-size: 13px;
      font-weight: 900;
    }

    .eyebrow {
      max-width: 58ch;
      font-size: 15px;
      letter-spacing: 0;
      color: var(--accent);
      font-weight: 900;
      line-height: 1.35;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
      gap: 32px;
      align-items: center;
      min-height: 510px;
    }

    .hero-copy {
      position: relative;
      z-index: 2;
      display: grid;
      gap: 22px;
      max-width: 720px;
    }

    h1 {
      margin: 0;
      font-size: 64px;
      line-height: 1;
      letter-spacing: 0;
      max-width: 16ch;
    }

    .subcopy {
      max-width: 64ch;
      color: var(--hero-muted);
      font-size: 18px;
      line-height: 1.6;
    }

    .hero-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .hero .primary,
    .hero .secondary,
    .hero .button-link {
      border-radius: 8px;
    }

    .hero .primary {
      flex: 0 1 auto;
      background: linear-gradient(135deg, #34dce9, #44d483);
      color: #06101d;
      box-shadow: 0 16px 34px rgba(32, 211, 230, 0.22);
    }

      .hero .secondary,
      .hero .button-link.secondary {
      border: 1px solid rgba(170, 231, 238, 0.30);
      background: rgba(245, 251, 252, 0.08);
      color: #e9f7fb;
      box-shadow: none;
    }

    .hero-signals {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      max-width: 760px;
    }

    .hero-signal {
      min-height: 92px;
      padding: 14px;
      border: 1px solid rgba(170, 231, 238, 0.20);
      border-radius: 8px;
      background: rgba(245, 251, 252, 0.075);
    }

    .hero-signal strong {
      display: block;
      color: #f8fbff;
      font-size: 15px;
      margin-bottom: 7px;
    }

    .hero-signal span {
      color: var(--hero-muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .hero-visual {
      position: relative;
      min-height: 520px;
      display: grid;
      place-items: center;
      pointer-events: none;
      user-select: none;
    }

    .globe-wrap {
      position: relative;
      width: min(100%, 540px);
      aspect-ratio: 1;
      display: grid;
      place-items: center;
    }

    .globe-svg {
      width: 100%;
      height: 100%;
      overflow: visible;
      filter: drop-shadow(0 0 32px rgba(32, 211, 230, 0.12));
    }

    .globe-orbit,
    .globe-arc,
    .globe-link {
      fill: none;
      stroke-linecap: round;
    }

    .globe-orbit {
      stroke: rgba(153, 223, 230, 0.25);
      stroke-width: 1;
    }

    .globe-arc {
      stroke: rgba(32, 211, 230, 0.36);
      stroke-width: 1.2;
    }

    .globe-link {
      stroke: rgba(128, 188, 255, 0.24);
      stroke-width: 1.3;
      stroke-dasharray: 170;
      stroke-dashoffset: 170;
      animation: traceLink 8s ease-in-out infinite;
    }

    .globe-link.delay-1 { animation-delay: 1.2s; }
    .globe-link.delay-2 { animation-delay: 2.4s; }

    .globe-node {
      fill: #20d3e6;
      filter: drop-shadow(0 0 8px rgba(32, 211, 230, 0.8));
      transform-box: fill-box;
      transform-origin: center;
      animation: pulseNode 3.8s ease-in-out infinite;
    }

    .globe-node.green {
      fill: #45d483;
      filter: drop-shadow(0 0 8px rgba(69, 212, 131, 0.72));
    }

    .globe-node.delay-1 { animation-delay: 0.5s; }
    .globe-node.delay-2 { animation-delay: 1s; }
    .globe-node.delay-3 { animation-delay: 1.5s; }
    .globe-node.delay-4 { animation-delay: 2s; }

    .intel-label {
      position: absolute;
      display: grid;
      gap: 2px;
      min-width: 128px;
      padding: 9px 11px;
      border: 1px solid rgba(99, 225, 236, 0.24);
      border-radius: 8px;
      background: rgba(15, 36, 55, 0.78);
      color: #eefcff;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
    }

    .intel-label span {
      color: var(--hero-muted);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0;
    }

    .intel-label strong {
      font-size: 14px;
    }

    .intel-label.buyer { top: 14%; right: 4%; }
    .intel-label.market { left: 0; top: 42%; }
    .intel-label.score { right: 9%; bottom: 12%; }

    .hero-intel-card {
      position: absolute;
      left: 6%;
      bottom: 5%;
      width: min(340px, 92%);
      padding: 16px;
      border: 1px solid rgba(170, 231, 238, 0.24);
      border-radius: 8px;
      background: rgba(245, 251, 252, 0.085);
      box-shadow: 0 22px 48px rgba(0, 0, 0, 0.14);
      backdrop-filter: blur(14px);
    }

    .hero-intel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
      color: var(--hero-muted);
      font-size: 11px;
      text-transform: uppercase;
      font-weight: 800;
    }

    .hero-intel-status {
      color: #45d483;
    }

    .hero-intel-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }

    .hero-intel-metric {
      padding: 10px;
      border: 1px solid rgba(170, 231, 238, 0.16);
      border-radius: 8px;
      background: rgba(15, 36, 55, 0.36);
    }

    .hero-intel-metric span {
      display: block;
      color: var(--hero-muted);
      font-size: 11px;
      margin-bottom: 5px;
    }

    .hero-intel-metric strong {
      color: #f8fbff;
      font-size: 18px;
    }

    .hero-intel-list {
      display: grid;
      gap: 8px;
    }

    .hero-intel-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      color: #eefcff;
      font-size: 13px;
    }

    .hero-intel-row span {
      color: var(--hero-muted);
    }

    .hero-intel-row strong {
      color: #45d483;
    }

    .story-section {
      margin-top: 18px;
      display: grid;
      gap: 18px;
    }

    .story-band {
      padding: 30px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: rgba(255, 252, 246, 0.82);
      box-shadow: var(--shadow);
    }

    .section-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }

    .section-heading h2 {
      margin: 8px 0 0;
      font-size: 36px;
      line-height: 1.04;
      max-width: 18ch;
    }

    .section-heading p {
      margin: 0;
      max-width: 56ch;
      color: var(--muted);
      line-height: 1.6;
    }

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

    .story-card {
      padding: 18px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.62);
      min-height: 160px;
    }

    .story-card span {
      display: inline-grid;
      place-items: center;
      width: 32px;
      height: 32px;
      margin-bottom: 14px;
      border-radius: 8px;
      background: rgba(32, 211, 230, 0.13);
      color: var(--accent-dark);
      font-weight: 900;
    }

    .story-card strong {
      display: block;
      margin-bottom: 8px;
      font-size: 17px;
    }

    .story-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.5;
      font-size: 14px;
    }

    .research-example-band {
      background:
        linear-gradient(135deg, rgba(15, 70, 67, 0.98), rgba(18, 61, 79, 0.96)),
        linear-gradient(rgba(164, 231, 237, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(164, 231, 237, 0.055) 1px, transparent 1px);
      background-size: auto, 34px 34px, 34px 34px;
      color: #f8fbff;
    }

    .research-example-band .eyebrow,
    .research-example-band .section-heading p {
      color: rgba(248, 251, 255, 0.74);
    }

    .research-example-grid {
      display: grid;
      grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
      gap: 18px;
      align-items: stretch;
    }

    .research-example-summary,
    .research-example-dashboard {
      display: grid;
      gap: 14px;
      min-height: 100%;
    }

    .research-example-context {
      padding: 18px;
      border: 1px solid rgba(170, 231, 238, 0.22);
      border-radius: 8px;
      background: rgba(245, 251, 252, 0.08);
    }

    .research-example-context span {
      display: block;
      margin-bottom: 8px;
      color: rgba(248, 251, 255, 0.68);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0;
    }

    .research-example-context strong {
      display: block;
      font-size: 30px;
      line-height: 1.06;
    }

    .research-example-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .research-example-stat {
      padding: 16px;
      border: 1px solid rgba(170, 231, 238, 0.18);
      border-radius: 8px;
      background: rgba(245, 251, 252, 0.07);
    }

    .research-example-stat strong {
      display: block;
      margin-bottom: 4px;
      color: #45d483;
      font-size: 34px;
      line-height: 1;
    }

    .research-example-stat span {
      color: rgba(248, 251, 255, 0.72);
      font-size: 13px;
      line-height: 1.35;
    }

    .research-example-note {
      margin: 0;
      color: rgba(248, 251, 255, 0.70);
      font-size: 13px;
      line-height: 1.5;
    }

    .research-example-dashboard {
      padding: 18px;
      border: 1px solid rgba(170, 231, 238, 0.22);
      border-radius: 8px;
      background: rgba(245, 251, 252, 0.08);
    }

    .research-dashboard-head,
    .research-buyer-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
    }

    .research-dashboard-head strong,
    .research-buyer-row strong {
      display: block;
      font-size: 15px;
    }

    .research-dashboard-head span,
    .research-buyer-row span {
      color: rgba(248, 251, 255, 0.68);
      font-size: 13px;
    }

    .research-funnel {
      display: grid;
      gap: 10px;
    }

    .research-funnel-row {
      display: grid;
      grid-template-columns: 110px minmax(0, 1fr) 44px;
      gap: 10px;
      align-items: center;
      color: rgba(248, 251, 255, 0.74);
      font-size: 13px;
      font-weight: 800;
    }

    .research-funnel-track {
      overflow: hidden;
      height: 10px;
      border-radius: 999px;
      background: rgba(245, 251, 252, 0.12);
    }

    .research-funnel-fill {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #20d3e6, #45d483);
    }

    .research-buyer-list {
      display: grid;
      gap: 8px;
    }

    .research-buyer-row {
      padding: 11px 12px;
      border: 1px solid rgba(170, 231, 238, 0.16);
      border-radius: 8px;
      background: rgba(6, 22, 28, 0.18);
    }

    .research-buyer-score {
      display: inline-flex;
      min-height: 30px;
      align-items: center;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(69, 212, 131, 0.16);
      color: #45d483;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .output-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }

    .output-tile {
      padding: 16px;
      min-height: 120px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(245,251,252,0.58));
    }

    .output-tile strong {
      display: block;
      margin-bottom: 8px;
      font-size: 15px;
    }

    .output-tile p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .sample-shortlist {
      display: grid;
      grid-template-columns: minmax(0, 0.7fr) minmax(420px, 1fr);
      gap: 18px;
      align-items: start;
    }

    .sample-copy h2 {
      margin: 8px 0 12px;
      font-size: 34px;
      line-height: 1.05;
    }

    .sample-copy p {
      margin: 0 0 16px;
      color: var(--muted);
      line-height: 1.6;
    }

    .sample-actions {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }

    .sample-toggle {
      display: inline-flex;
      padding: 4px;
      gap: 4px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.58);
    }

    .sample-toggle button {
      min-height: 38px;
      padding: 9px 12px;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      box-shadow: none;
    }

    .sample-toggle button.active {
      background: rgba(32, 211, 230, 0.15);
      color: var(--accent-dark);
    }

    .sample-table {
      overflow: hidden;
      border: 1px solid rgba(31, 29, 26, 0.10);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.72);
    }

    .sample-row {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) 0.58fr 0.62fr 0.38fr;
      gap: 12px;
      padding: 14px 16px;
      align-items: center;
      border-bottom: 1px solid rgba(31, 29, 26, 0.08);
    }

    .sample-row:last-child {
      border-bottom: 0;
    }

    .sample-row.header {
      color: var(--muted);
      font-size: 11px;
      text-transform: uppercase;
      font-weight: 800;
      background: rgba(31, 29, 26, 0.035);
    }

    .sample-company strong,
    .sample-score strong {
      display: block;
    }

    .sample-company span,
    .sample-type,
    .sample-contact,
    .sample-score span {
      color: var(--muted);
      font-size: 13px;
    }

    .sample-contact {
      word-break: break-word;
    }

    .sample-score strong {
      color: var(--ok);
    }

    .showcase-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .showcase-card {
      display: grid;
      gap: 14px;
      min-height: 360px;
      padding: 20px;
      border: 1px solid rgba(31, 29, 26, 0.09);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 251, 252, 0.62));
    }

    .showcase-card.featured {
      background:
        linear-gradient(135deg, rgba(15, 70, 67, 0.96), rgba(18, 61, 79, 0.94)),
        linear-gradient(rgba(164, 231, 237, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(164, 231, 237, 0.055) 1px, transparent 1px);
      background-size: auto, 34px 34px, 34px 34px;
      color: #f8fbff;
    }

    .showcase-card h3,
    .workflow-card h3,
    .difference-card h3,
    .faq-card h3 {
      margin: 0;
      font-size: 22px;
      line-height: 1.15;
    }

    .showcase-card p,
    .workflow-card p,
    .difference-card p,
    .faq-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
    }

    .showcase-card.featured p,
    .showcase-card.featured .mock-label,
    .showcase-card.featured .mock-helper {
      color: rgba(248, 251, 255, 0.74);
    }

    .mock-panel {
      display: grid;
      gap: 10px;
      padding: 14px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.72);
    }

    .showcase-card.featured .mock-panel {
      border-color: rgba(170, 231, 238, 0.22);
      background: rgba(245, 251, 252, 0.08);
    }

    .mock-panel.dark {
      color: #f8fbff;
      background: rgba(6, 22, 28, 0.32);
    }

    .mock-label {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0;
      text-transform: uppercase;
    }

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

    .mock-metric {
      padding: 12px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: rgba(255, 252, 246, 0.70);
    }

    .showcase-card.featured .mock-metric {
      border-color: rgba(170, 231, 238, 0.20);
      background: rgba(15, 36, 55, 0.30);
    }

    .mock-metric strong {
      display: block;
      margin-top: 5px;
      font-size: 24px;
      line-height: 1;
    }

    .mock-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 11px 12px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.64);
    }

    .showcase-card.featured .mock-row {
      border-color: rgba(170, 231, 238, 0.18);
      background: rgba(245, 251, 252, 0.07);
    }

    .mock-row strong {
      display: block;
      font-size: 15px;
    }

    .mock-row span,
    .mock-helper {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
    }

    .mock-pill {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(32, 211, 230, 0.14);
      color: var(--accent-dark);
      font-weight: 900;
      font-size: 12px;
      white-space: nowrap;
    }

    .showcase-card.featured .mock-pill {
      color: #45d483;
      background: rgba(69, 212, 131, 0.16);
    }

    .buyer-room-files {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .buyer-room-file {
      padding: 10px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: rgba(255, 252, 246, 0.68);
      font-weight: 800;
      font-size: 13px;
    }

    .workflow-card,
    .difference-card,
    .faq-card,
    .ai-difference-card,
    .decision-card,
    .seo-card,
    .final-cta {
      display: grid;
      gap: 16px;
      padding: 24px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.68);
    }

    .workflow-map {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 8px;
      align-items: stretch;
    }

    .workflow-step {
      min-height: 112px;
      padding: 13px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(255, 252, 246, 0.88), rgba(245, 251, 252, 0.62));
    }

    .workflow-step span {
      display: block;
      margin-bottom: 8px;
      color: var(--accent-dark);
      font-weight: 900;
      font-size: 12px;
    }

    .workflow-step strong {
      display: block;
      font-size: 15px;
      line-height: 1.2;
    }

    .difference-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .difference-column {
      display: grid;
      gap: 8px;
      padding: 14px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: rgba(255, 252, 246, 0.66);
    }

    .difference-column.highlight {
      background: rgba(32, 211, 230, 0.10);
      border-color: rgba(32, 211, 230, 0.26);
    }

    .difference-column h4 {
      margin: 0 0 4px;
      font-size: 16px;
    }

    .difference-item {
      padding: 10px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.74);
      font-weight: 800;
      font-size: 14px;
    }

    .audience-grid,
    .use-case-grid,
    .ai-difference-grid,
    .decision-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .audience-item,
    .use-case-card,
    .ai-difference-item,
    .decision-item {
      min-height: 118px;
      padding: 16px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: rgba(255, 252, 246, 0.70);
    }

    .audience-item strong,
    .use-case-card strong,
    .ai-difference-item strong,
    .decision-item strong {
      display: block;
      margin-bottom: 8px;
      font-size: 15px;
    }

    .audience-item p,
    .use-case-card p,
    .ai-difference-item p,
    .decision-item p,
    .seo-card p,
    .final-cta p {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
      font-size: 14px;
    }

    .decision-card {
      background:
        linear-gradient(135deg, rgba(15, 70, 67, 0.96), rgba(18, 61, 79, 0.94)),
        linear-gradient(rgba(164, 231, 237, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(164, 231, 237, 0.055) 1px, transparent 1px);
      background-size: auto, 34px 34px, 34px 34px;
      color: #f8fbff;
    }

    .decision-card .eyebrow,
    .decision-card p,
    .decision-card .decision-item p {
      color: rgba(248, 251, 255, 0.76);
    }

    .decision-card .decision-item {
      border-color: rgba(170, 231, 238, 0.20);
      background: rgba(245, 251, 252, 0.08);
    }

    .seo-card {
      grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
      align-items: start;
    }

    .seo-copy {
      columns: 2 280px;
      column-gap: 28px;
    }

    .seo-copy p + p {
      margin-top: 12px;
    }

    .final-cta {
      justify-items: start;
      background:
        radial-gradient(circle at 88% 12%, rgba(32, 211, 230, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(230, 245, 244, 0.92));
    }

    .final-cta h2 {
      margin: 0;
      max-width: 18ch;
      font-size: 42px;
      line-height: 1.03;
    }

    .final-cta-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .faq-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .faq-item {
      padding: 16px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 8px;
      background: rgba(255, 252, 246, 0.70);
    }

    .faq-item strong {
      display: block;
      margin-bottom: 8px;
      font-size: 16px;
    }

    .faq-item p {
      margin: 0;
      color: var(--muted);
      line-height: 1.5;
      font-size: 14px;
    }

    @keyframes traceLink {
      0%, 24% { stroke-dashoffset: 170; opacity: 0.12; }
      42%, 64% { stroke-dashoffset: 0; opacity: 0.84; }
      100% { stroke-dashoffset: -170; opacity: 0.16; }
    }

    @keyframes pulseNode {
      0%, 100% { opacity: 0.72; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.35); }
    }

    .layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 22px;
      margin-top: 18px;
      align-items: start;
    }

    .product-intro {
      margin-top: 18px;
      padding: 28px;
      background:
        radial-gradient(circle at 12% 12%, rgba(16, 87, 78, 0.10), transparent 28%),
        linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(242, 234, 220, 0.94));
    }

    .product-intro-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
      gap: 22px;
      align-items: stretch;
    }

    .product-intro h2 {
      margin: 10px 0 12px;
      font-size: 42px;
      line-height: 1;
      letter-spacing: 0;
      max-width: 18ch;
    }

    .product-intro p {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
      font-size: 15px;
      max-width: 68ch;
    }

    .product-proof {
      display: grid;
      gap: 10px;
      align-content: stretch;
    }

    .product-proof-item {
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.64);
      padding: 16px;
    }

    .product-proof-item strong {
      display: block;
      margin-bottom: 6px;
      font-size: 15px;
    }

    .product-proof-item span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .wizard-panel {
      margin-top: 18px;
      padding: 0;
      overflow: hidden;
      background: linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(244, 234, 219, 0.94));
      border: 1px solid rgba(166, 75, 42, 0.16);
      position: sticky;
      top: 10px;
      z-index: 18;
    }

    .wizard-body {
      padding: 20px 24px 24px;
      display: grid;
      gap: 16px;
    }

    .wizard-steps {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
    }

    .wizard-step {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.6);
      border: 1px solid rgba(31, 29, 26, 0.08);
      color: #2f2a25;
      cursor: pointer;
      text-align: left;
      font: inherit;
    }

    .wizard-step-num {
      width: 36px;
      height: 36px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      font-weight: 800;
      background: rgba(31, 29, 26, 0.08);
      color: var(--muted);
    }

    .wizard-step strong {
      display: block;
      font-size: 14px;
      margin-bottom: 4px;
    }

    .wizard-step p {
      margin: 0;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.5;
    }

    .wizard-step.active {
      border-color: rgba(166, 75, 42, 0.35);
      box-shadow: inset 0 0 0 1px rgba(166, 75, 42, 0.18);
    }

    .wizard-step.active .wizard-step-num {
      background: rgba(166, 75, 42, 0.2);
      color: var(--accent-dark);
    }

    .wizard-step.done {
      opacity: 0.7;
    }

    .wizard-next {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 16px 18px;
      border-radius: 18px;
      background: rgba(31, 29, 26, 0.04);
      border: 1px solid rgba(31, 29, 26, 0.08);
      flex-wrap: wrap;
    }

    .wizard-next-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
      font-weight: 700;
      margin-bottom: 6px;
    }

    .wizard-next-title {
      font-size: 16px;
      font-weight: 800;
      margin: 0 0 4px;
    }

    .wizard-next-desc {
      margin: 0;
      font-size: 13px;
      color: var(--muted);
    }

    .layout.rail-collapsed {
      grid-template-columns: minmax(0, 1fr);
    }

    .layout.rail-collapsed .panel-sidebar {
      display: none;
    }

    .panel {
      border: 1px solid var(--line);
      border-radius: 24px;
      background: var(--panel);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
    }

    .panel-results {
      padding: 24px;
    }

    .panel-results > .panel-header {
      margin: -24px -24px 0;
    }

    .panel-sidebar {
      position: sticky;
      top: 18px;
      max-height: calc(100vh - 36px);
      overflow: auto;
      display: none;
    }

    .panel-header {
      padding: 24px 24px 12px;
      border-bottom: 1px solid rgba(31, 29, 26, 0.08);
    }

    .panel-header h2 {
      margin: 0;
      font-size: 18px;
      letter-spacing: 0;
    }

    .panel-header p {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .panel-header.inline {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .panel-header.inline .panel-copy {
      min-width: 0;
    }

    .form {
      padding: 20px 24px 24px;
      display: grid;
      gap: 16px;
    }

    .field {
      display: grid;
      gap: 8px;
    }

    label {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    input, select, textarea {
      width: 100%;
      padding: 14px 14px;
      border-radius: 14px;
      border: 1px solid rgba(31, 29, 26, 0.12);
      background: var(--panel-strong);
      color: var(--text);
      font-size: 15px;
      outline: none;
      transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    }

    input:focus, select:focus, textarea:focus {
      border-color: rgba(166, 75, 42, 0.65);
      box-shadow: 0 0 0 4px rgba(166, 75, 42, 0.10);
      transform: translateY(-1px);
    }

    textarea {
      min-height: 100px;
      resize: vertical;
    }

    input[type="file"] {
      padding: 12px;
      background: rgba(255, 250, 241, 0.8);
    }

    .checkbox-card {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 12px 14px;
      border: 1px solid rgba(31, 29, 26, 0.10);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.56);
      color: var(--text);
      letter-spacing: normal;
      text-transform: none;
    }

    .checkbox-card input[type="checkbox"] {
      width: 18px;
      height: 18px;
      margin-top: 2px;
      padding: 0;
      flex: 0 0 auto;
    }

    .checkbox-card strong {
      display: block;
      font-size: 13px;
      color: var(--text);
    }

    .helper {
      font-size: 12px;
      line-height: 1.5;
      color: var(--muted);
    }

    .collapsed-copy {
      padding: 16px 20px 20px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }

    .hidden {
      display: none !important;
    }

    .actions {
      display: flex;
      gap: 10px;
      padding-top: 4px;
      flex-wrap: wrap;
      align-items: center;
    }

    .module-inline-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
      white-space: nowrap;
    }

    .module-inline-status .inline-spinner {
      width: 14px;
      height: 14px;
      border-width: 2px;
    }

    button, .button-link {
      appearance: none;
      border: 0;
      cursor: pointer;
      border-radius: 14px;
      padding: 14px 16px;
      font-size: 14px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
    }

    button.button-loading {
      position: relative;
      gap: 10px;
    }

    button.button-loading::before {
      content: "";
      width: 14px;
      height: 14px;
      border-radius: 999px;
      border: 2px solid currentColor;
      border-right-color: transparent;
      display: inline-block;
      animation: button-spin 0.75s linear infinite;
      flex: 0 0 auto;
    }

    @keyframes button-spin {
      to { transform: rotate(360deg); }
    }

    button:hover, .button-link:hover {
      transform: translateY(-1px);
    }

    button:disabled {
      opacity: 0.48;
      cursor: not-allowed;
      filter: saturate(0.55);
      transform: none;
    }

    .primary {
      flex: 1;
      background: linear-gradient(135deg, var(--accent), var(--accent-dark));
      color: #fff8f3;
      box-shadow: 0 12px 24px rgba(166, 75, 42, 0.28);
    }

    .secondary {
      background: rgba(31, 29, 26, 0.06);
      color: var(--text);
    }

    .meta {
      padding: 0 24px 24px;
      display: grid;
      gap: 10px;
    }

    .badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.03em;
      background: rgba(31, 29, 26, 0.06);
      color: var(--text);
    }

    .badge.ok { background: rgba(31, 122, 88, 0.12); color: var(--ok); }
    .badge.warn { background: rgba(157, 107, 0, 0.12); color: var(--warn); }
    .badge.bad { background: rgba(159, 47, 47, 0.12); color: var(--bad); }

    .status-box {
      padding: 18px 20px;
      border-radius: 18px;
      background: rgba(31, 29, 26, 0.04);
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .status-title {
      margin: 0 0 8px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
      font-weight: 700;
    }

    .status-text {
      margin: 0;
      font-size: 15px;
      line-height: 1.5;
    }

    .results-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 0 0 18px;
    }

    .results-nav-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid rgba(31, 29, 26, 0.12);
      background: rgba(255, 252, 246, 0.9);
      color: var(--text);
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    }

    .results-nav-btn:hover {
      transform: translateY(-1px);
      border-color: rgba(31, 29, 26, 0.2);
      background: rgba(255, 255, 255, 0.96);
    }

    .results-nav-btn.leads {
      border-color: rgba(31, 122, 88, 0.2);
      background: rgba(31, 122, 88, 0.08);
    }

    .results-nav-btn.strategic {
      border-color: rgba(186, 122, 0, 0.24);
      background: rgba(186, 122, 0, 0.08);
    }

    .results-nav-btn.competitors {
      border-color: rgba(157, 107, 0, 0.24);
      background: rgba(157, 107, 0, 0.1);
    }

    .results-nav-btn.discarded {
      border-color: rgba(31, 29, 26, 0.12);
      background: rgba(31, 29, 26, 0.05);
    }

    .results-nav-count {
      display: inline-flex;
      min-width: 24px;
      justify-content: center;
      padding: 2px 8px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.88);
      font-size: 12px;
    }

    .result-section {
      margin-top: 18px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 22px;
      background: rgba(255, 252, 246, 0.82);
      overflow: hidden;
      scroll-margin-top: 88px;
    }

    .result-section.leads {
      border-color: rgba(31, 122, 88, 0.14);
      background: linear-gradient(180deg, rgba(31, 122, 88, 0.05), rgba(255, 252, 246, 0.9));
    }

    .result-section.strategic {
      border-color: rgba(186, 122, 0, 0.18);
      background: linear-gradient(180deg, rgba(186, 122, 0, 0.05), rgba(255, 252, 246, 0.9));
    }

    .result-section.competitors {
      border-color: rgba(157, 107, 0, 0.22);
      background: linear-gradient(180deg, rgba(157, 107, 0, 0.07), rgba(255, 252, 246, 0.92));
    }

    .result-section.discarded {
      background: rgba(31, 29, 26, 0.03);
    }

    .result-section-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      padding: 18px 20px 12px;
    }

    .result-section-head h3 {
      margin: 0;
      font-size: 17px;
    }

    .result-section-head p {
      margin: 6px 0 0;
      color: var(--muted);
    }

    .result-section-count {
      flex: 0 0 auto;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.9);
      font-weight: 800;
      font-size: 12px;
    }

    details.discarded-box {
      margin-top: 16px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 18px;
      background: rgba(31, 29, 26, 0.03);
      overflow: hidden;
    }

    details.discarded-box summary {
      cursor: pointer;
      list-style: none;
      padding: 18px 20px;
      font-weight: 700;
    }

    details.discarded-box summary::-webkit-details-marker {
      display: none;
    }

    details.competitor-box {
      margin-top: 16px;
      border: 1px solid rgba(157, 107, 0, 0.22);
      border-radius: 18px;
      background: rgba(157, 107, 0, 0.06);
      overflow: hidden;
    }

    details.competitor-box summary {
      cursor: pointer;
      list-style: none;
      padding: 18px 20px;
      font-weight: 800;
    }

    details.competitor-box summary::-webkit-details-marker {
      display: none;
    }

    .competitor-list {
      display: grid;
      gap: 12px;
      padding: 0 16px 16px;
    }

    .competitor-item {
      border: 1px solid rgba(157, 107, 0, 0.16);
      border-radius: 16px;
      background: rgba(255, 252, 246, 0.86);
      padding: 16px;
    }

    .discarded-list {
      display: grid;
      gap: 12px;
      padding: 0 16px 16px;
    }

    .discarded-item {
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 16px;
      background: rgba(255, 252, 246, 0.8);
      padding: 16px;
    }

    .result-section-body {
      padding: 0 16px 16px;
    }

    .result-section-list {
      display: grid;
      gap: 16px;
    }

    .workspace {
      padding: 24px;
      display: grid;
      gap: 16px;
    }

    .app-area-tabs {
      display: none;
      max-width: 1560px;
      margin: 0 auto 18px;
      padding: 8px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      border: 1px solid rgba(31, 29, 26, 0.1);
      border-radius: 18px;
      background: rgba(255, 253, 248, 0.94);
      box-shadow: 0 14px 34px rgba(28, 55, 48, 0.09);
      position: sticky;
      top: 10px;
      z-index: 30;
    }

    html.split-app-mode .app-area-tabs {
      display: grid;
    }

    .app-area-tab {
      min-height: 58px;
      border: 0;
      border-radius: 12px;
      background: transparent;
      color: #62584d;
      font-weight: 800;
      cursor: pointer;
    }

    .app-area-tab.active {
      color: #fff;
      background: #123247;
      box-shadow: 0 8px 20px rgba(18, 50, 71, 0.2);
    }

    .ice-logo-mark {
      display: inline-grid;
      place-items: center;
      min-width: 42px;
      height: 24px;
      padding: 0 7px;
      border: 1px solid rgba(0, 84, 166, 0.18);
      border-radius: 4px;
      background: #fff;
      color: #0054a6;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: -0.04em;
      line-height: 1;
      box-shadow: inset 3px 0 0 #009246, inset -3px 0 0 #ce2b37;
    }

    .app-area-tab .ice-logo-mark {
      margin-left: 6px;
      transform: translateY(-1px);
    }

    .ice-branding-banner {
      max-width: 1560px;
      margin: 0 auto 18px;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      gap: 12px;
      border: 1px solid rgba(0, 84, 166, 0.16);
      border-radius: 14px;
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(232, 245, 241, 0.94));
      box-shadow: 0 12px 28px rgba(28, 55, 48, 0.08);
      color: #1f1d1a;
    }

    .ice-branding-banner strong {
      font-size: 18px;
      line-height: 1.2;
    }

    .ice-branding-banner span:last-child {
      color: #6f665d;
      font-size: 14px;
      font-weight: 700;
    }

    .ice-branding-debug {
      max-width: 1560px;
      margin: -6px auto 18px;
      padding: 12px 14px;
      border: 1px dashed rgba(0, 84, 166, 0.38);
      border-radius: 12px;
      background: rgba(245, 250, 255, 0.94);
      color: #163044;
      font-size: 12px;
      line-height: 1.45;
    }

    .ice-branding-debug strong {
      display: block;
      margin-bottom: 6px;
      font-size: 13px;
    }

    .ice-branding-debug code {
      display: block;
      max-height: 210px;
      overflow: auto;
      white-space: pre-wrap;
      word-break: break-word;
      color: #163044;
    }

    .hero-brand-ice-badge {
      margin-left: 8px;
      transform: translateY(-1px);
    }

    .split-view-hidden,
    .runtime-feature-hidden {
      display: none !important;
    }

    html:not(.ice-branding-mode) #ice-branding-banner {
      display: none !important;
    }

    .buyer-room-hub {
      padding: 32px;
      border: 1px solid rgba(20, 188, 204, 0.24);
      border-radius: 22px;
      background: linear-gradient(135deg, #102f43, #165166);
      color: #fff;
    }

    .buyer-room-hub h2 {
      margin: 0 0 10px;
      font-size: clamp(26px, 4vw, 44px);
    }

    .buyer-room-hub p {
      max-width: 720px;
      color: rgba(255, 255, 255, 0.78);
    }

    .buyer-room-hub-list {
      display: grid;
      gap: 10px;
      margin-top: 22px;
    }

    .buyer-room-hub-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: center;
      padding: 16px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.08);
    }

    .buyer-room-hub-item strong,
    .buyer-room-hub-item span {
      display: block;
    }

    .buyer-room-hub-item span {
      margin-top: 4px;
      color: rgba(255, 255, 255, 0.68);
    }

    @media (max-width: 760px) {
      .app-area-tabs {
        position: static;
        grid-template-columns: 1fr;
      }

      .app-area-tab {
        min-height: 48px;
      }
    }

    .panel-results > .workspace {
      padding: 18px 0 0;
    }

    .panel-results .summary-grid,
    .panel-results .search-core-card,
    .panel-results .run-preview-card {
      margin-left: 0;
      margin-right: 0;
    }

    .brand-input-card {
      padding: 0;
      overflow: hidden;
      background:
        linear-gradient(rgba(32, 211, 230, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 211, 230, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(246, 238, 225, 0.98));
      background-size: 34px 34px, 34px 34px, auto;
      border: 1px solid rgba(32, 211, 230, 0.20);
    }

    .brand-input-card .panel-header {
      background:
        radial-gradient(circle at 92% 12%, rgba(32, 211, 230, 0.14), transparent 30%),
        rgba(255, 255, 255, 0.38);
    }

    .brand-input-card .form {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: start;
    }

    .brand-input-card #store-url-field,
    .brand-input-card #catalog-file-field,
    .brand-input-card #catalog-text-field,
    .brand-input-card #seed-urls-field,
    .brand-input-card #search-setup-card,
    .brand-input-card .actions {
      grid-column: 1 / -1;
    }

    .search-core-card {
      padding: 26px;
      gap: 16px;
      background: linear-gradient(180deg, rgba(255, 249, 240, 0.95), rgba(249, 239, 224, 0.98));
      border: 1px solid rgba(166, 75, 42, 0.18);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    }

    .search-core-card h3 {
      margin: 0;
      font-size: 24px;
      letter-spacing: 0;
    }

    .search-core-copy {
      margin: -2px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .search-builder-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
      align-items: start;
    }

    .search-builder-grid .field-span-2 {
      grid-column: span 2;
    }

    .search-builder-grid .field {
      display: grid;
      grid-template-rows: auto 60px minmax(0, auto);
      gap: 7px;
      min-width: 0;
    }

    .search-builder-grid .field label {
      min-height: 18px;
      display: flex;
      align-items: end;
    }

    .search-builder-grid .field input,
    .search-builder-grid .field select {
      width: 100%;
      min-width: 0;
      height: 60px;
    }

    .search-builder-grid .field .helper {
      min-height: 38px;
      margin: 0;
    }

    .search-builder-grid #center_run_name,
    .search-builder-grid #center_product,
    .search-builder-grid #center_geographic_focus_text,
    .search-builder-grid #center_manual_queries {
      min-width: 0;
    }

    .search-builder-actions {
      display: flex;
      gap: 10px;
      padding-top: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .search-builder-actions .workspace-jump-btn {
      flex: 0 0 auto;
    }

    .search-builder-actions .primary {
      flex: 1 1 320px;
      min-width: 240px;
    }

    .floating-search-actions {
      display: none !important;
    }

    .floating-search-actions .primary {
      flex: 1 1 320px;
      min-width: 240px;
    }

    .floating-search-actions .workspace-jump-btn {
      flex: 0 0 auto;
    }

    body.has-sticky-search-actions {
      padding-bottom: 0;
    }

    html.has-run-id body.has-sticky-search-actions {
      padding-bottom: 0;
    }

    @media (max-width: 1100px) {
      .search-builder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .search-builder-grid .field-span-2 {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 680px) {
      .search-core-card {
        padding: 18px;
      }

      .search-builder-grid {
        grid-template-columns: 1fr;
      }

      .search-builder-grid .field,
      .search-builder-grid .field-span-2 {
        grid-column: 1 / -1;
      }
    }

    .layout-toggle {
      white-space: nowrap;
      display: none;
    }

    .run-preview-card {
      padding: 24px;
      background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(247, 240, 229, 0.96));
    }

    .market-strategy-card,
    .country-rules-card,
    .export-module-card {
      padding: 22px;
      background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(246, 238, 225, 0.98));
      border: 1px solid rgba(31, 29, 26, 0.1);
      border-radius: 20px;
      display: grid;
      gap: 12px;
    }

    .gi-explorer-card {
      background:
        radial-gradient(circle at top left, rgba(20, 91, 81, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(246, 238, 225, 0.98));
    }

    .gi-explorer-heading {
      margin: -4px 0 0;
      font-size: clamp(28px, 3.6vw, 42px);
      line-height: 1.08;
      letter-spacing: -0.03em;
      max-width: 14ch;
      color: #173446;
    }

    .gi-explorer-controls {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }

    .gi-explorer-map-shell {
      display: grid;
      grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
      gap: 14px;
      align-items: start;
    }

    .gi-explorer-map-card,
    .gi-explorer-guide-card,
    .gi-explorer-result-card {
      padding: 14px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 10px;
    }

    .gi-explorer-map-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .gi-explorer-map-title h4,
    .gi-explorer-guide-card h4,
    .gi-explorer-result-card h4 {
      margin: 0;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
    }

    .gi-explorer-map-board {
      width: 100%;
      min-height: 240px;
      padding: 12px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(18, 40, 58, 0.96), rgba(21, 48, 68, 0.94));
      border: 1px solid rgba(32, 211, 230, 0.18);
      box-shadow: inset 0 0 0 1px rgba(170, 231, 238, 0.06);
    }

    .gi-explorer-map-board svg {
      display: block;
      width: 100%;
      height: auto;
    }

    .gi-map-region {
      cursor: pointer;
      transition: opacity 160ms ease;
      transform-box: fill-box;
      transform-origin: center center;
    }

    .gi-map-region rect {
      fill: rgba(245, 251, 252, 0.1);
      stroke: rgba(170, 231, 238, 0.26);
      stroke-width: 1;
      rx: 12;
    }

    .gi-map-region text {
      fill: #eefcff;
      font-size: 11px;
      font-weight: 700;
    }

    .gi-map-region.active rect {
      fill: rgba(32, 211, 230, 0.24);
      stroke: rgba(170, 231, 238, 0.62);
    }

    .gi-explorer-region-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .gi-region-chip {
      display: inline-flex;
      align-items: center;
      padding: 7px 10px;
      border-radius: 999px;
      background: rgba(31, 29, 26, 0.06);
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
    }

    .gi-region-chip.active {
      background: rgba(20, 91, 81, 0.12);
      color: var(--accent-dark);
    }

    .gi-explorer-summary {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.6;
    }

    #gi-explorer-empty-copy {
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(33, 84, 61, 0.08);
      border: 1px solid rgba(33, 84, 61, 0.14);
      font-size: 14px;
      line-height: 1.6;
      color: #244f31;
    }

    #gi-explorer-empty-copy.loading {
      font-size: 18px;
      font-weight: 800;
      letter-spacing: 0.01em;
      color: #244f31;
      background: rgba(214, 140, 69, 0.14);
      border-color: rgba(214, 140, 69, 0.28);
      box-shadow: 0 10px 24px rgba(214, 140, 69, 0.12);
    }

    #gi-explorer-empty-copy.warn {
      color: #7a4a12;
      background: rgba(214, 140, 69, 0.14);
      border-color: rgba(214, 140, 69, 0.28);
    }

    #gi-explorer-empty-copy.error {
      color: #8d2f2f;
      background: rgba(180, 59, 59, 0.10);
      border-color: rgba(180, 59, 59, 0.2);
    }

    .gi-explorer-results {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .gi-explorer-meta {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .gi-explorer-source-list {
      display: grid;
      gap: 6px;
      font-size: 13px;
    }

    .gi-explorer-source-list a {
      color: var(--accent-dark);
      text-decoration: none;
      word-break: break-word;
    }

    .gi-explorer-source-list a:hover {
      text-decoration: underline;
    }

    .export-intelligence-header {
      padding: 24px;
      border-radius: 24px;
      border: 1px solid rgba(31, 29, 26, 0.1);
      background:
        radial-gradient(circle at top right, rgba(197, 113, 47, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 252, 246, 0.98), rgba(238, 225, 202, 0.92));
      display: grid;
      gap: 12px;
    }

    .export-intelligence-header-top {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      justify-content: space-between;
    }

    .export-intelligence-toolbar {
      display: inline-flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .export-intelligence-workspace.is-collapsed {
      display: none;
    }

    .export-intelligence-header h3 {
      margin: 0;
      font-family: "Fraunces", Georgia, serif;
      font-size: clamp(24px, 3vw, 34px);
      color: var(--ink);
    }

    .export-intelligence-header p {
      margin: 0;
      color: var(--muted);
      max-width: 780px;
      line-height: 1.65;
    }

    .export-intelligence-progress {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .export-intelligence-pill,
    .module-status-badge {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .export-intelligence-pill {
      padding: 7px 10px;
      color: #5f4a2e;
      background: rgba(255, 255, 255, 0.66);
      border: 1px solid rgba(31, 29, 26, 0.08);
      cursor: pointer;
      transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
    }

    .export-intelligence-pill:hover {
      transform: translateY(-1px);
      border-color: rgba(166, 75, 42, 0.22);
      color: var(--text);
    }

    .export-intelligence-pill:focus-visible {
      outline: 0;
      border-color: rgba(166, 75, 42, 0.52);
      box-shadow: 0 0 0 4px rgba(166, 75, 42, 0.10);
    }

    .export-intelligence-pill.ready {
      color: #244f31;
      background: rgba(164, 211, 154, 0.32);
      border-color: rgba(36, 79, 49, 0.16);
    }

    .export-intelligence-storage {
      font-size: 12px;
      color: var(--muted);
    }

    .status-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }

    .module-status-badge {
      padding: 5px 8px;
      color: #6a5232;
      background: rgba(31, 29, 26, 0.06);
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .module-status-badge.saved,
    .module-status-badge.ready {
      color: #244f31;
      background: rgba(164, 211, 154, 0.32);
      border-color: rgba(36, 79, 49, 0.16);
    }

    .module-status-badge.pro {
      color: #6d3d13;
      background: rgba(224, 154, 78, 0.22);
      border-color: rgba(151, 86, 28, 0.18);
    }

    .market-strategy-card.module-ready,
    .country-rules-card.module-ready,
    .export-module-card.module-ready {
      border-color: rgba(36, 79, 49, 0.22);
      box-shadow: 0 16px 36px rgba(36, 79, 49, 0.08);
    }

    .market-strategy-grid,
    .country-rules-grid,
    .export-module-grid {
      display: grid;
      gap: 10px;
    }

    .market-strategy-section,
    .country-rules-section,
    .export-module-section {
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.55);
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .market-strategy-section h4,
    .country-rules-section h4,
    .export-module-section h4 {
      margin: 0 0 6px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
    }

    .market-strategy-section ul,
    .country-rules-section ul,
    .export-module-section ul {
      margin: 0;
      padding-left: 18px;
      font-size: 14px;
      line-height: 1.6;
      color: #2f2a25;
    }

    .market-decision-card {
      position: relative;
      overflow: hidden;
      display: grid;
      gap: 14px;
      padding: 22px;
      border-radius: 24px;
      color: #102033;
      background:
        linear-gradient(rgba(59, 130, 246, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 88% 10%, rgba(34, 211, 238, 0.18), transparent 26%),
        radial-gradient(circle at 98% 84%, rgba(52, 211, 153, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.92));
      background-size: 42px 42px, 42px 42px, auto, auto, auto;
      border: 1px solid rgba(34, 211, 238, 0.28);
      box-shadow: 0 18px 44px rgba(8, 25, 40, 0.10);
    }

    .market-decision-card::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 6px;
      background: linear-gradient(180deg, #22d3ee, #34d399);
    }

    .market-decision-card::after {
      content: "";
      position: absolute;
      right: 24px;
      top: 22px;
      width: 132px;
      height: 132px;
      border-radius: 50%;
      border: 1px solid rgba(34, 211, 238, 0.18);
      background:
        radial-gradient(circle at 68% 24%, rgba(52, 211, 153, 0.55) 0 4px, transparent 5px),
        radial-gradient(circle at 28% 60%, rgba(34, 211, 238, 0.55) 0 4px, transparent 5px),
        linear-gradient(72deg, transparent 48%, rgba(34, 211, 238, 0.18) 49%, transparent 51%),
        linear-gradient(116deg, transparent 48%, rgba(59, 130, 246, 0.16) 49%, transparent 51%);
      box-shadow:
        inset 0 0 0 22px rgba(34, 211, 238, 0.026),
        inset 0 0 0 43px rgba(34, 211, 238, 0.022);
      pointer-events: none;
    }

    .market-decision-card > * {
      position: relative;
      z-index: 1;
    }

    .market-decision-card h4,
    .market-decision-card h5 {
      color: #0b2233;
    }

    .market-decision-card ul {
      color: #2f3a45;
    }

    .market-decision-kicker {
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #0ea5b7;
    }

    .market-decision-title {
      font-size: clamp(20px, 3vw, 30px);
      font-weight: 900;
      line-height: 1.1;
      max-width: 860px;
      color: #0b2233;
      letter-spacing: -0.04em;
    }

    .market-decision-card p {
      max-width: 860px;
      color: #52606b;
    }

    .market-decision-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 10px;
    }

    .market-decision-mini {
      padding: 15px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.82);
      border: 1px solid rgba(13, 49, 64, 0.10);
      box-shadow: 0 8px 20px rgba(8, 25, 40, 0.05);
    }

    .market-decision-mini h5 {
      margin: 0 0 6px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: #0d3140;
    }

    .market-validation-hero {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 18px;
      align-items: end;
      padding: 28px;
      border-radius: 28px;
      color: #f8fbff;
      background:
        linear-gradient(rgba(59, 130, 246, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 86% 12%, rgba(34, 211, 238, 0.18), transparent 28%),
        linear-gradient(135deg, #0b2233 0%, #0d3140 58%, #081928 100%);
      background-size: 42px 42px, 42px 42px, auto, auto;
      border: 1px solid rgba(125, 211, 252, 0.16);
      box-shadow: 0 18px 44px rgba(8, 25, 40, 0.16);
    }

    .market-validation-country {
      font-size: clamp(36px, 6vw, 70px);
      line-height: 0.95;
      letter-spacing: -0.07em;
      font-weight: 900;
      color: #ffffff;
    }

    .market-validation-score {
      text-align: right;
      font-size: clamp(36px, 5vw, 62px);
      line-height: 0.9;
      letter-spacing: -0.06em;
      font-weight: 900;
      color: #34d399;
    }

    .market-validation-score small {
      display: block;
      margin-top: 8px;
      color: rgba(248, 251, 255, 0.70);
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .market-validation-verdict {
      margin: 16px 0 0;
      max-width: 820px;
      font-size: 22px;
      line-height: 1.25;
      font-weight: 850;
      color: #ffffff;
    }

    .market-validation-copy {
      margin: 12px 0 0;
      max-width: 860px;
      color: rgba(248, 251, 255, 0.80);
      font-size: 16px;
      line-height: 1.55;
    }

    .market-validation-badges,
    .market-validation-watchouts {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 18px;
    }

    .market-validation-badges span,
    .market-validation-watchouts span {
      padding: 8px 11px;
      border-radius: 999px;
      background: rgba(22, 58, 78, 0.76);
      border: 1px solid rgba(125, 211, 252, 0.18);
      color: #f8fbff;
      font-size: 13px;
      font-weight: 800;
    }

    .market-hero-reasons {
      display: grid;
      gap: 7px;
      margin: 18px 0 0;
      padding: 0;
      list-style: none;
      color: rgba(248, 251, 255, 0.88);
      font-size: 14px;
    }

    .market-hero-reasons li {
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      gap: 7px;
    }

    .market-hero-reasons li::before {
      content: "✓";
      color: #34d399;
      font-weight: 900;
    }

    .market-validation-section {
      display: grid;
      gap: 12px;
      padding: 20px;
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.76);
      border: 1px solid rgba(13, 49, 64, 0.09);
    }

    .market-validation-section h4 {
      margin: 0;
      color: #0b2233;
      font-size: 21px;
      letter-spacing: -0.03em;
      text-transform: none;
    }

    .market-driver-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
    }

    .market-driver-card {
      padding: 15px;
      border-radius: 18px;
      background: #ffffff;
      border: 1px solid rgba(13, 49, 64, 0.10);
      box-shadow: 0 8px 20px rgba(8, 25, 40, 0.04);
    }

    .market-driver-card span {
      display: block;
      color: #66737f;
      font-size: 11px;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      font-weight: 850;
    }

    .market-driver-card strong {
      display: block;
      margin-top: 8px;
      color: #0b2233;
      font-size: 30px;
      letter-spacing: -0.05em;
      line-height: 1;
    }

    .market-driver-impact {
      display: inline-flex;
      margin-top: 8px;
      padding: 5px 8px;
      border-radius: 999px;
      color: #047857;
      background: rgba(52, 211, 153, 0.10);
      font-size: 11px;
      font-weight: 850;
    }

    .market-driver-impact.is-negative {
      color: #b45309;
      background: rgba(245, 158, 11, 0.10);
    }

    .market-driver-card ul {
      display: grid;
      gap: 6px;
      margin: 12px 0 0;
      padding: 0;
      list-style: none;
      color: #43515c;
      font-size: 13px;
      line-height: 1.35;
    }

    .market-driver-card li {
      display: grid;
      grid-template-columns: 16px minmax(0, 1fr);
      gap: 5px;
    }

    .market-driver-card li::before {
      content: "✓";
      color: #059669;
      font-weight: 900;
    }

    .market-driver-card li.is-caution::before {
      content: "!";
      color: #d97706;
    }

    .market-score-method {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 2px;
    }

    .market-score-method span {
      padding: 7px 10px;
      border-radius: 999px;
      color: #36505f;
      background: rgba(14, 165, 183, 0.08);
      border: 1px solid rgba(14, 165, 183, 0.14);
      font-size: 12px;
      font-weight: 800;
    }

    .market-compare-table {
      width: 100%;
      border-collapse: collapse;
      overflow: hidden;
      border-radius: 18px;
      background: #ffffff;
      border: 1px solid rgba(13, 49, 64, 0.09);
    }

    .market-compare-table th,
    .market-compare-table td {
      padding: 13px 14px;
      border-bottom: 1px solid rgba(13, 49, 64, 0.08);
      text-align: left;
      vertical-align: top;
    }

    .market-compare-table th {
      color: #66737f;
      font-size: 11px;
      letter-spacing: 0.09em;
      text-transform: uppercase;
    }

    .market-compare-table td:nth-child(2) {
      width: 90px;
      font-weight: 900;
      color: #0b2233;
    }

    .market-compare-table tr.is-target td {
      background: rgba(34, 211, 238, 0.08);
    }

    .market-rank {
      display: inline-grid;
      place-items: center;
      min-width: 30px;
      margin-right: 6px;
      font-size: 18px;
    }

    .market-practical-box {
      padding: 18px;
      border-radius: 20px;
      background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(52, 211, 153, 0.08));
      border: 1px solid rgba(34, 211, 238, 0.20);
      color: #26333d;
      line-height: 1.6;
    }

    .market-action-list,
    .market-final-reasons {
      display: grid;
      gap: 9px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .market-action-list li,
    .market-final-reasons li {
      display: grid;
      grid-template-columns: 22px minmax(0, 1fr);
      gap: 8px;
      color: #26333d;
      line-height: 1.45;
    }

    .market-reliability {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 16px;
      align-items: center;
    }

    .market-reliability-grade {
      display: grid;
      place-items: center;
      min-width: 112px;
      min-height: 92px;
      padding: 14px;
      border-radius: 20px;
      background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(34, 211, 238, 0.10));
      border: 1px solid rgba(5, 150, 105, 0.18);
      color: #047857;
      text-align: center;
      font-size: 25px;
      font-weight: 900;
    }

    .market-reliability-grade small {
      display: block;
      margin-top: 4px;
      color: #52616d;
      font-size: 10px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .market-reliability-facts {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 8px;
    }

    .market-reliability-facts span {
      padding: 10px 12px;
      border-radius: 14px;
      background: #ffffff;
      border: 1px solid rgba(13, 49, 64, 0.09);
      color: #43515c;
      font-size: 13px;
      font-weight: 750;
    }

    .market-final-decision {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 20px;
      align-items: end;
      padding: 26px;
      border-radius: 28px;
      color: #f8fbff;
      background:
        radial-gradient(circle at 90% 10%, rgba(52, 211, 153, 0.18), transparent 28%),
        linear-gradient(135deg, #0b2233, #0d3140);
      border: 1px solid rgba(125, 211, 252, 0.17);
      box-shadow: 0 18px 44px rgba(8, 25, 40, 0.14);
    }

    .market-final-decision h4 {
      margin: 5px 0 8px;
      color: #ffffff;
      font-size: clamp(30px, 4vw, 48px);
      letter-spacing: -0.05em;
    }

    .market-final-decision p,
    .market-final-decision li {
      color: rgba(248, 251, 255, 0.82);
    }

    .market-final-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px;
    }

    .market-final-meta span {
      padding: 8px 11px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #ffffff;
      font-size: 12px;
      font-weight: 800;
    }

    .market-final-actions {
      display: grid;
      gap: 9px;
      min-width: 220px;
    }

    .market-final-actions button {
      width: 100%;
    }

    .market-inline-help {
      margin-top: 2px;
      opacity: 0.82;
    }

    .market-inline-help summary {
      padding: 10px 2px;
      color: #66737f;
      font-size: 12px;
    }

    .market-validation-details {
      border-radius: 20px;
      border: 1px solid rgba(13, 49, 64, 0.10);
      background: rgba(255, 255, 255, 0.64);
      overflow: hidden;
    }

    .market-validation-details summary {
      cursor: pointer;
      padding: 15px 18px;
      color: #0b2233;
      font-weight: 850;
      list-style: none;
    }

    .market-validation-details summary::-webkit-details-marker {
      display: none;
    }

    .market-validation-details summary::after {
      content: "+";
      float: right;
      color: #0ea5b7;
      font-weight: 900;
    }

    .market-validation-details[open] summary::after {
      content: "–";
    }

    .market-validation-details-body {
      padding: 0 18px 18px;
    }

    @media (max-width: 760px) {
      .market-validation-hero,
      .market-final-decision {
        grid-template-columns: 1fr;
      }

      .market-validation-score {
        text-align: left;
      }

      .market-final-actions {
        min-width: 0;
      }

      .market-reliability {
        grid-template-columns: 1fr;
      }
    }

    .executive-module-hero {
      position: relative;
      overflow: hidden;
      display: grid;
      gap: 14px;
      padding: 22px;
      border-radius: 24px;
      color: #f8fbff;
      background:
        linear-gradient(rgba(59, 130, 246, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.18), transparent 30%),
        radial-gradient(circle at 94% 84%, rgba(52, 211, 153, 0.13), transparent 28%),
        linear-gradient(135deg, #0b2233 0%, #0d3140 54%, #081928 100%);
      background-size: 42px 42px, 42px 42px, auto, auto, auto;
      border: 1px solid rgba(125, 211, 252, 0.16);
      box-shadow: 0 18px 44px rgba(8, 25, 40, 0.18);
    }

    .executive-module-hero::after {
      content: "";
      position: absolute;
      right: 26px;
      top: 20px;
      width: 150px;
      height: 150px;
      border-radius: 50%;
      border: 1px solid rgba(34, 211, 238, 0.20);
      background:
        radial-gradient(circle at 68% 24%, rgba(52, 211, 153, 0.70) 0 5px, transparent 6px),
        radial-gradient(circle at 26% 58%, rgba(34, 211, 238, 0.70) 0 5px, transparent 6px),
        linear-gradient(72deg, transparent 48%, rgba(34, 211, 238, 0.23) 49%, transparent 51%),
        linear-gradient(116deg, transparent 48%, rgba(59, 130, 246, 0.20) 49%, transparent 51%);
      box-shadow:
        inset 0 0 0 25px rgba(34, 211, 238, 0.035),
        inset 0 0 0 49px rgba(34, 211, 238, 0.03);
      pointer-events: none;
    }

    .executive-module-hero > * {
      position: relative;
      z-index: 1;
    }

    .executive-module-hero .kicker {
      font-size: 11px;
      font-weight: 850;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #22d3ee;
    }

    .executive-module-hero h4 {
      margin: 0;
      color: #ffffff;
      font-size: clamp(21px, 3vw, 31px);
      line-height: 1.08;
      letter-spacing: -0.03em;
      text-transform: none;
    }

    .executive-module-hero p {
      margin: 0;
      color: rgba(248, 251, 255, 0.84);
      line-height: 1.55;
    }

    .executive-pill-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .executive-pill-row span {
      padding: 7px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      color: #2f2a25;
      background: rgba(31, 29, 26, 0.055);
      border: 1px solid rgba(31, 29, 26, 0.10);
    }

    .executive-module-hero .executive-pill-row span,
    .market-decision-card .executive-pill-row span {
      color: #f8fbff;
      background: rgba(22, 58, 78, 0.74);
      border-color: rgba(125, 211, 252, 0.20);
    }

    .executive-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 10px;
    }

    .executive-card {
      padding: 13px 14px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(13, 49, 64, 0.10);
      display: grid;
      gap: 6px;
    }

    .executive-module-hero .executive-card {
      background: rgba(22, 58, 78, 0.72);
      border-color: rgba(125, 211, 252, 0.18);
    }

    .executive-card .label {
      font-size: 10px;
      font-weight: 850;
      letter-spacing: 0.13em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .executive-module-hero .executive-card .label {
      color: rgba(248, 251, 255, 0.64);
    }

    .executive-card strong {
      font-size: 15px;
      line-height: 1.35;
      color: #1f1d1a;
    }

    .executive-module-hero .executive-card strong {
      color: #ffffff;
    }

    .timeline-strip {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 10px;
      counter-reset: timeline-step;
    }

    .timeline-step {
      position: relative;
      padding: 14px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.68);
      border: 1px solid rgba(31, 29, 26, 0.08);
      counter-increment: timeline-step;
    }

    .timeline-step::before {
      content: counter(timeline-step);
      display: inline-grid;
      place-items: center;
      width: 26px;
      height: 26px;
      margin-bottom: 9px;
      border-radius: 999px;
      color: #081928;
      background: linear-gradient(135deg, #22d3ee, #34d399);
      font-size: 12px;
      font-weight: 900;
    }

    .readiness-severity-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 10px;
    }

    .severity-card {
      padding: 14px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .severity-card.critical {
      border-color: rgba(158, 71, 58, 0.24);
      background: rgba(158, 71, 58, 0.07);
    }

    .severity-card.important {
      border-color: rgba(224, 154, 78, 0.28);
      background: rgba(224, 154, 78, 0.08);
    }

    .severity-card.optional {
      border-color: rgba(36, 79, 49, 0.18);
      background: rgba(164, 211, 154, 0.14);
    }

    .module-copy-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-bottom: 10px;
    }

    .module-copy-actions button {
      padding: 7px 10px;
      font-size: 12px;
    }

    .market-evidence-manual-card {
      display: grid;
      gap: 12px;
      margin: 14px 0 18px;
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.6);
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .market-evidence-manual-head {
      display: grid;
      gap: 6px;
    }

    .market-evidence-manual-head h4 {
      margin: 0;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
    }

    .market-evidence-manual-head p {
      margin: 0;
      font-size: 13px;
      line-height: 1.6;
      color: #62584d;
    }

    .market-evidence-manual-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 10px;
    }

    .market-evidence-manual-grid .field {
      display: grid;
      gap: 6px;
    }

    .market-evidence-manual-grid label {
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 800;
    }

    .market-evidence-manual-grid input,
    .market-evidence-manual-grid textarea {
      width: 100%;
    }

    .market-evidence-manual-grid textarea {
      min-height: 96px;
    }

    .market-evidence-manual-notes-field {
      grid-column: 1 / -1;
    }

    .export-cost-metrics {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
    }

    .export-cost-basis-grid,
    .export-cost-editor-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 10px;
    }

    .export-cost-basis-card,
    .export-cost-editor-card {
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 6px;
    }

    .export-cost-basis-card strong,
    .export-cost-editor-card strong {
      font-size: 16px;
      color: #1f1d1a;
    }

    .export-cost-editor-card label {
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 800;
    }

    .export-cost-editor-card input {
      width: 100%;
      min-height: 44px;
    }

    .export-cost-editor-note {
      margin: 0;
      font-size: 12px;
      color: var(--muted);
      line-height: 1.55;
    }

    .export-cost-metric {
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 4px;
    }

    .export-cost-metric-label {
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .export-cost-metric-value {
      font-size: 24px;
      font-weight: 700;
      color: #1f1d1a;
    }

    .export-cost-metric-note {
      font-size: 12px;
      color: var(--muted);
    }

    .export-cost-bars {
      display: grid;
      gap: 10px;
    }

    .export-cost-bar-row {
      display: grid;
      gap: 6px;
    }

    .export-cost-bar-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      font-size: 13px;
      color: #2f2a25;
    }

    .export-cost-bar-track {
      height: 10px;
      border-radius: 999px;
      background: rgba(31, 29, 26, 0.08);
      overflow: hidden;
    }

    .export-cost-bar-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #21543d, #d68c45);
    }

    .export-cost-scenario-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 10px;
    }

    .export-cost-scenario {
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.66);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 6px;
    }

    .export-cost-scenario h4 {
      margin: 0;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
    }

    .export-cost-kv {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      font-size: 13px;
      color: #2f2a25;
    }

    .export-cost-assumptions {
      display: grid;
      gap: 6px;
    }

    .export-cost-assumption {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      font-size: 13px;
      padding-bottom: 6px;
      border-bottom: 1px dashed rgba(31, 29, 26, 0.08);
    }

    .product-signal-card {
      display: grid;
      gap: 16px;
      padding: 18px 20px;
      border-radius: 20px;
      background:
        radial-gradient(circle at top right, rgba(32, 211, 230, 0.10), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 252, 246, 0.96));
      border: 1px solid rgba(32, 211, 230, 0.16);
      box-shadow: 0 18px 36px rgba(40, 63, 75, 0.08);
    }

    .product-signal-head {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr);
      gap: 16px;
      align-items: stretch;
    }

    .product-signal-title {
      display: grid;
      gap: 8px;
    }

    .product-signal-title h4 {
      margin: 0;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--accent-dark);
    }

    .product-signal-title strong {
      font-size: 28px;
      line-height: 1.15;
      color: #163247;
      font-weight: 800;
    }

    .product-signal-title .helper {
      font-size: 14px;
      line-height: 1.65;
      color: #4c5d66;
    }

    .product-signal-confidence {
      display: grid;
      gap: 8px;
      align-content: start;
      padding: 16px 18px;
      border-radius: 18px;
      background: linear-gradient(135deg, #163247, #0f2433);
      color: #f4fbff;
      box-shadow: 0 16px 32px rgba(16, 36, 55, 0.18);
    }

    .product-signal-confidence-label {
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(233, 247, 251, 0.78);
    }

    .product-signal-confidence-value {
      font-size: 40px;
      line-height: 1;
      font-weight: 800;
      color: #ffffff;
    }

    .product-signal-confidence-note {
      font-size: 13px;
      line-height: 1.5;
      color: rgba(233, 247, 251, 0.84);
    }

    .product-signal-kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
    }

    .product-signal-kpi {
      display: grid;
      gap: 6px;
      padding: 14px 16px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.84);
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .product-signal-kpi-label {
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .product-signal-kpi-value {
      font-size: 26px;
      line-height: 1.08;
      font-weight: 800;
      color: #163247;
    }

    .product-signal-kpi-note {
      font-size: 13px;
      line-height: 1.55;
      color: #4c5d66;
    }

    .product-signal-meta {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .product-signal-meta-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(22, 50, 71, 0.06);
      border: 1px solid rgba(22, 50, 71, 0.08);
      color: #32424c;
      font-size: 13px;
    }

    .product-signal-body {
      display: grid;
      gap: 10px;
      font-size: 15px;
      line-height: 1.7;
      color: #24333c;
    }

    .product-signal-body p {
      margin: 0;
    }

    .product-signal-body strong {
      color: #163247;
    }

    .product-signal-candidates {
      display: grid;
      gap: 6px;
      padding-top: 4px;
    }

    .product-signal-candidates-label {
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .product-signal-candidates-value {
      font-size: 14px;
      line-height: 1.6;
      color: #32424c;
    }

    .action-plan-sprint-grid,
    .action-plan-kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 10px;
    }

    .action-plan-sprint,
    .action-plan-kpi {
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .action-plan-sprint h4,
    .action-plan-kpi h4 {
      margin: 0 0 8px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
    }

    .action-plan-sprint ul,
    .action-plan-kpi ul {
      margin: 0;
      padding-left: 18px;
      font-size: 14px;
      line-height: 1.55;
      color: #2f2a25;
    }

    .action-plan-draft {
      white-space: pre-wrap;
      font-size: 14px;
      line-height: 1.65;
      color: #2f2a25;
    }

    .insight-score-hero {
      display: grid;
      gap: 6px;
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .insight-score-label {
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .insight-score-value {
      font-size: 30px;
      font-weight: 700;
      color: #1f1d1a;
    }

    .insight-score-summary {
      font-size: 13px;
      color: #62584d;
      line-height: 1.55;
    }

    .insight-bar-grid {
      display: grid;
      gap: 10px;
    }

    .insight-bar-row {
      display: grid;
      gap: 6px;
    }

    .insight-bar-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      font-size: 13px;
      color: #2f2a25;
    }

    .insight-bar-track {
      height: 10px;
      border-radius: 999px;
      background: rgba(31, 29, 26, 0.08);
      overflow: hidden;
    }

    .insight-bar-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #21543d, #d68c45);
    }

    .priority-target-grid,
    .priority-mix-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 10px;
    }

    .priority-target-card,
    .priority-mix-card {
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 6px;
    }

    .priority-target-rank {
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .priority-target-name {
      font-size: 18px;
      font-weight: 700;
      color: #1f1d1a;
      word-break: break-word;
    }

    .priority-target-meta {
      font-size: 13px;
      color: #62584d;
      word-break: break-word;
    }

    .country-rules-sources {
      display: grid;
      gap: 6px;
      font-size: 13px;
      color: var(--muted);
    }

    .country-rules-sources a {
      color: var(--accent);
      text-decoration: none;
      word-break: break-word;
    }

    .country-rules-sources a:hover {
      text-decoration: underline;
    }

    .run-preview-card.stale {
      border: 1px solid rgba(157, 107, 0, 0.22);
      box-shadow: inset 0 0 0 1px rgba(157, 107, 0, 0.08);
    }

    .run-preview-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
      gap: 16px;
      align-items: start;
      margin-top: 18px;
    }

    .preview-blocks {
      display: grid;
      gap: 10px;
    }

    .preview-block {
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.52);
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .preview-block strong {
      display: block;
      margin-bottom: 6px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
    }

    .preview-block p {
      margin: 0;
      font-size: 14px;
      line-height: 1.6;
      color: #2f2a25;
      word-break: break-word;
    }

    .preview-editor {
      margin: 0;
      display: grid;
      gap: 8px;
    }

    .preview-editor textarea {
      min-height: 260px;
      font-family: Consolas, "SFMono-Regular", Monaco, monospace;
      font-size: 14px;
      line-height: 1.5;
    }

    .summary-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }

    .metric {
      padding: 16px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.5);
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .metric span {
      display: block;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--muted);
      font-weight: 700;
      margin-bottom: 10px;
    }

    .metric strong {
      display: block;
      font-size: 24px;
      letter-spacing: 0;
    }

    .results {
      display: grid;
      gap: 12px;
    }

    .brand-summary {
      padding: 18px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.52);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 10px;
    }

    .run-debug-card {
      padding: 0;
      overflow: hidden;
    }

    .run-debug-details {
      display: grid;
      gap: 14px;
    }

    .run-debug-details summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 18px;
      cursor: pointer;
      list-style: none;
    }

    .run-debug-details summary::-webkit-details-marker {
      display: none;
    }

    .run-debug-details[open] {
      padding-bottom: 18px;
    }

    .run-debug-details[open] summary {
      border-bottom: 1px solid rgba(31, 29, 26, 0.08);
    }

    .run-debug-details > .collapsed-copy,
    .run-debug-details > .run-debug-section,
    .run-debug-details > .serp-audit-card,
    .run-debug-details > .mini-lead-log {
      margin-inline: 18px;
    }

    .run-debug-section {
      display: grid;
      gap: 12px;
    }

    .copilot-shell {
      position: fixed !important;
      z-index: 220;
      inset: 12px 12px 12px auto !important;
      width: min(700px, calc(100vw - 24px));
      height: auto;
      max-height: calc(100dvh - 24px);
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      gap: 16px;
      padding: 0;
      margin: 0 !important;
      background: #fbf8f1;
      border: 1px solid rgba(255, 250, 241, 0.74);
      border-radius: 28px;
      box-shadow: -18px 18px 64px rgba(31, 29, 26, 0.24);
      transform: translateX(calc(100% + 32px));
      visibility: hidden;
      transition: transform 220ms ease, visibility 220ms ease;
    }

    body.copilot-drawer-wide .copilot-shell {
      width: min(90vw, calc(100vw - 24px));
    }

    body.copilot-drawer-open .copilot-shell {
      transform: translateX(0);
      visibility: visible;
    }

    body.copilot-drawer-open .floating-search-actions {
      display: none !important;
    }

    .copilot-drawer-launcher {
      position: fixed !important;
      z-index: 210;
      right: 18px;
      bottom: 18px;
      min-height: 52px;
      padding: 13px 18px;
      border-radius: 14px;
      box-shadow: 0 16px 34px rgba(28, 64, 62, 0.28);
      max-width: min(360px, calc(100vw - 36px));
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    body.support-launcher-visible .copilot-drawer-launcher {
      bottom: 86px;
    }

    .support-drawer-launcher {
      position: fixed !important;
      z-index: 210;
      right: 18px;
      bottom: 18px;
      min-height: 52px;
      padding: 13px 18px;
      border-radius: 14px;
      box-shadow: 0 16px 34px rgba(28, 64, 62, 0.18);
      max-width: min(300px, calc(100vw - 36px));
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      background: #fffaf1;
    }

    .floating-search-actions:not(.hidden) + .copilot-drawer-launcher {
      bottom: 112px;
    }

    .floating-search-actions:not(.hidden) ~ .support-drawer-launcher {
      bottom: 112px;
    }

    body.support-launcher-visible .floating-search-actions:not(.hidden) + .copilot-drawer-launcher {
      bottom: 180px;
    }

    body.copilot-drawer-open .copilot-drawer-launcher {
      visibility: hidden;
    }

    body.support-drawer-open .support-drawer-launcher {
      visibility: hidden;
    }

    .copilot-drawer-close {
      flex: 0 0 auto;
      min-width: 42px;
      min-height: 42px;
      padding: 8px;
      font-size: 20px;
      line-height: 1;
    }

    .copilot-drawer-controls {
      display: flex;
      gap: 8px;
      align-items: center;
      flex: 0 0 auto;
    }

    .copilot-drawer-size {
      min-width: 58px;
      min-height: 42px;
      padding: 8px 12px;
      font-weight: 900;
      line-height: 1;
    }

    .copilot-shell .copilot-hero {
      position: sticky;
      z-index: 3;
      top: 0;
    }

    .copilot-drawer-backdrop {
      position: fixed;
      z-index: 200;
      inset: 0;
      background: rgba(31, 29, 26, 0.22);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 220ms ease, visibility 220ms ease;
    }

    body.copilot-drawer-open .copilot-drawer-backdrop {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .support-drawer-backdrop {
      position: fixed;
      z-index: 200;
      inset: 0;
      background: rgba(31, 29, 26, 0.18);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 220ms ease, visibility 220ms ease;
    }

    body.support-drawer-open .support-drawer-backdrop {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    @media (min-width: 721px) {
      .copilot-drawer-backdrop,
      .support-drawer-backdrop {
        display: none;
      }
    }

    @media (max-width: 720px) {
      body.copilot-drawer-open,
      body.support-drawer-open {
        overflow: hidden;
      }
    }

    #brand-memory-card:not(.copilot-shell) {
      display: none;
    }

    .support-shell {
      position: fixed !important;
      z-index: 220;
      right: 12px;
      bottom: 12px;
      width: min(520px, calc(100vw - 24px));
      max-height: calc(100dvh - 24px);
      overflow: auto;
      overscroll-behavior: contain;
      margin: 0 !important;
      border-radius: 24px;
      box-shadow: -18px 18px 64px rgba(31, 29, 26, 0.20);
      transform: translateY(calc(100% + 32px));
      visibility: hidden;
      pointer-events: none;
      transition: transform 220ms ease, visibility 220ms ease;
    }

    body.support-drawer-open .support-shell {
      transform: translateY(0);
      visibility: visible;
      pointer-events: auto;
    }

    .support-shell-head {
      margin-bottom: 14px;
    }

    .support-drawer-close {
      flex: 0 0 auto;
      min-width: 42px;
      min-height: 42px;
      padding: 8px;
      font-size: 20px;
      line-height: 1;
    }

    .copilot-empty-close {
      position: absolute;
      z-index: 4;
      top: 14px;
      right: 14px;
    }

    .copilot-hero {
      display: grid;
      gap: 16px;
      padding: 22px;
      background:
        linear-gradient(135deg, rgba(28, 64, 62, 0.96), rgba(47, 89, 83, 0.94) 54%, rgba(116, 92, 52, 0.92));
      color: #fffaf0;
    }

    .copilot-hero .panel-header {
      margin: 0;
    }

    .copilot-hero .secondary {
      background: rgba(255, 255, 255, 0.14);
      color: #fffaf0;
      border-color: rgba(255, 255, 255, 0.22);
    }

    .copilot-hero .secondary:hover {
      background: rgba(255, 255, 255, 0.22);
    }

    .copilot-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      padding: 7px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.13);
      border: 1px solid rgba(255, 255, 255, 0.20);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255, 250, 240, 0.86);
    }

    .copilot-ai-mark {
      display: inline-grid;
      place-items: center;
      width: 24px;
      height: 24px;
      border-radius: 8px;
      background: #fffaf0;
      color: #1c403e;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0;
    }

    .copilot-title {
      display: grid;
      gap: 8px;
    }

    .copilot-title h3 {
      margin: 0;
      color: #fffaf0;
      font-size: 28px;
      line-height: 1.05;
    }

    .copilot-title p {
      margin: 0;
      max-width: 760px;
      color: rgba(255, 250, 240, 0.82);
      line-height: 1.55;
    }

    .copilot-scope {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .copilot-scope .pill {
      background: rgba(255, 255, 255, 0.15);
      color: rgba(255, 250, 240, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .copilot-status-grid {
      display: grid;
      grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, 1fr));
      gap: 10px;
    }

    .copilot-metric {
      display: grid;
      gap: 6px;
      min-height: 86px;
      padding: 14px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .copilot-metric-label {
      color: rgba(255, 250, 240, 0.70);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .copilot-metric-value {
      color: #fffaf0;
      font-size: 26px;
      line-height: 1;
      font-weight: 900;
    }

    .copilot-metric.primary .copilot-metric-value {
      font-size: 16px;
      line-height: 1.35;
    }

    .copilot-body {
      display: grid;
      gap: 14px;
      padding: 18px;
    }

    .copilot-recommendation {
      display: grid;
      gap: 10px;
      padding: 16px;
      border-radius: 16px;
      background: #fffaf8;
      border: 1px solid rgba(116, 92, 52, 0.18);
      box-shadow: 0 10px 24px rgba(31, 29, 26, 0.06);
    }

    .copilot-recommendation h3,
    .copilot-panel h3 {
      margin: 0;
      font-size: 13px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #6c6258;
    }

    .copilot-recommendation p {
      margin: 0;
      color: #1f1d1a;
      font-size: 16px;
      line-height: 1.55;
      font-weight: 700;
    }

    .copilot-priority-list {
      display: grid;
      gap: 8px;
    }

    .copilot-priority-lead {
      display: grid;
      grid-template-columns: 28px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.72);
    }

    .copilot-priority-rank {
      display: grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: #1c403e;
      color: #fffaf0;
      font-size: 11px;
      font-weight: 900;
    }

    .copilot-priority-copy {
      min-width: 0;
    }

    .copilot-priority-copy strong,
    .copilot-priority-copy span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .copilot-priority-copy span {
      margin-top: 3px;
      color: var(--muted);
      font-size: 11px;
    }

    .copilot-priority-lead button {
      min-height: 36px;
      padding: 8px 10px;
    }

    .copilot-command-bar {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .copilot-command {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: 10px;
      min-height: 58px;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid rgba(31, 29, 26, 0.10);
      background: #f5efe4;
      color: #1f1d1a;
      font-weight: 800;
      text-align: left;
    }

    .copilot-command:hover {
      transform: translateY(-1px);
      border-color: rgba(28, 64, 62, 0.30);
      background: #eef4f1;
    }

    .copilot-command-icon {
      display: inline-grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: #1c403e;
      color: #fffaf0;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0;
    }

    .copilot-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
      gap: 14px;
      align-items: start;
    }

    .copilot-panel {
      display: grid;
      gap: 12px;
      padding: 16px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.74);
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .copilot-pack-preview {
      max-height: 320px;
      overflow: auto;
      white-space: pre-wrap;
      word-break: break-word;
      margin: 0;
      padding: 14px;
      border-radius: 12px;
      background: #1f2f2d;
      color: #fffaf0;
      font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      letter-spacing: 0;
    }

    .copilot-chat-form {
      gap: 14px;
      background: #fffaf8;
      border-color: rgba(28, 64, 62, 0.14);
    }

    .copilot-chat-form .input-row {
      grid-template-columns: minmax(0, 1fr) auto;
      background: #f5efe4;
      border-radius: 14px;
      padding: 8px;
    }

    .copilot-chat-form input {
      border: 0;
      background: transparent;
      box-shadow: none;
      min-height: 44px;
      font-weight: 700;
    }

    .copilot-chat-form textarea {
      width: 100%;
      border: 0;
      background: transparent;
      box-shadow: none;
      min-height: 86px;
      max-height: 220px;
      resize: vertical;
      font-weight: 700;
      line-height: 1.45;
      padding: 12px 10px;
      overflow: auto;
    }

    .copilot-chat-form input:focus,
    .copilot-chat-form textarea:focus {
      outline: none;
      box-shadow: none;
    }

    .copilot-chat-form .primary {
      min-height: 44px;
      padding: 0 18px;
    }

    @media (max-width: 860px) {
      .copilot-status-grid,
      .copilot-command-bar,
      .copilot-grid {
        grid-template-columns: 1fr;
      }

      .copilot-hero,
      .copilot-body {
        padding: 16px;
      }

      .copilot-chat-form .input-row {
        grid-template-columns: 1fr;
      }
    }

    .copilot-thread {
      display: grid;
      gap: 12px;
      background: transparent;
      border: 0;
      padding: 0;
    }

    .copilot-message {
      display: grid;
      gap: 8px;
      max-width: 980px;
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      background: rgba(255, 255, 255, 0.58);
    }

    .copilot-message.user {
      justify-self: end;
      max-width: min(760px, 100%);
      background: rgba(164, 211, 209, 0.24);
    }

    .copilot-message.assistant {
      justify-self: start;
      background: rgba(255, 251, 245, 0.88);
    }

    .copilot-role {
      font-size: 12px;
      font-weight: 800;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .copilot-content {
      display: grid;
      gap: 10px;
      color: var(--text);
      line-height: 1.65;
      font-size: 14px;
    }

    .copilot-content p,
    .copilot-content ul {
      margin: 0;
    }

    .copilot-content ul {
      padding-left: 20px;
    }

    .copilot-content li + li {
      margin-top: 5px;
    }

    .copilot-message .lead-meta {
      margin-top: 4px;
    }

    .loading-card {
      padding: 18px;
      border-radius: 20px;
      background: linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(245, 239, 228, 0.92));
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 10px;
    }

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

    .inline-spinner {
      width: 18px;
      height: 18px;
      border-radius: 999px;
      border: 3px solid rgba(166, 75, 42, 0.16);
      border-top-color: var(--accent);
      animation: live-spin 0.9s linear infinite;
      flex: 0 0 auto;
    }

    .loading-card strong {
      font-size: 16px;
      letter-spacing: -0.02em;
    }

    .loading-card p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .market-evidence-progress {
      display: grid;
      gap: 12px;
      margin-top: 12px;
      padding: 16px 18px;
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(245, 239, 228, 0.92));
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .market-evidence-progress.hidden {
      display: none;
    }

    .market-evidence-progress-steps {
      display: grid;
      gap: 8px;
    }

    .market-evidence-progress-step {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: #5e554b;
    }

    .market-evidence-progress-dot {
      width: 12px;
      height: 12px;
      border-radius: 999px;
      border: 2px solid rgba(33, 84, 61, 0.18);
      background: rgba(255, 255, 255, 0.9);
      flex: 0 0 auto;
    }

    .market-evidence-progress-step.running .market-evidence-progress-dot {
      border-color: rgba(166, 75, 42, 0.25);
      background: var(--accent);
      box-shadow: 0 0 0 6px rgba(166, 75, 42, 0.12);
    }

    .market-evidence-progress-step.done .market-evidence-progress-dot {
      border-color: rgba(33, 84, 61, 0.22);
      background: #2f7a4c;
    }

    .market-evidence-progress-step.failed .market-evidence-progress-dot {
      border-color: rgba(150, 48, 48, 0.18);
      background: #b44a4a;
    }

    .loading-skeleton {
      display: grid;
      gap: 10px;
      margin-top: 4px;
    }

    .loading-skeleton-row {
      height: 14px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(31, 29, 26, 0.06), rgba(31, 29, 26, 0.12), rgba(31, 29, 26, 0.06));
      background-size: 200% 100%;
      animation: loading-shimmer 1.2s ease-in-out infinite;
    }

    .loading-skeleton-row.short {
      width: 44%;
    }

    .loading-skeleton-row.mid {
      width: 68%;
    }

    @keyframes loading-shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    .live-run-card {
      padding: 18px;
      border-radius: 20px;
      background: linear-gradient(135deg, rgba(255, 251, 245, 0.94), rgba(245, 239, 228, 0.92));
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 12px;
    }

    .live-run-card.running {
      padding: 28px;
      border: 2px solid rgba(32, 190, 210, 0.42);
      background: linear-gradient(135deg, rgba(230, 251, 255, 0.96) 0%, rgba(255, 251, 245, 0.98) 100%);
      box-shadow: 0 24px 64px rgba(32, 190, 210, 0.18);
      gap: 16px;
    }

    .live-run-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .live-run-heading {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .live-run-spinner {
      width: 14px;
      height: 14px;
      border-radius: 999px;
      border: 2px solid rgba(166, 75, 42, 0.18);
      border-top-color: var(--accent);
      animation: live-spin 0.9s linear infinite;
      flex: 0 0 auto;
    }

    .live-run-card.running .live-run-spinner {
      width: 30px;
      height: 30px;
      border-width: 4px;
    }

    .live-run-spinner.done {
      animation: none;
      border-color: rgba(31, 122, 88, 0.18);
      border-top-color: var(--ok);
    }

    .live-run-spinner.bad {
      animation: none;
      border-color: rgba(159, 47, 47, 0.18);
      border-top-color: var(--bad);
    }

    .live-run-copy {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .live-run-copy h3 {
      margin: 0;
      font-size: 18px;
      letter-spacing: 0;
    }

    .live-run-card.running .live-run-copy h3 {
      font-size: clamp(24px, 2vw, 32px);
      text-transform: uppercase;
    }

    .live-run-copy p {
      margin: 0;
      color: var(--muted);
      line-height: 1.5;
      font-size: 14px;
    }

    .live-run-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .live-run-card.failed .live-run-actions .secondary {
      border-color: #d99393;
      background: #ffffff;
      color: #8b2424;
      font-weight: 800;
    }

    .live-run-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .live-run-progress {
      height: 12px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(15, 23, 42, 0.08);
    }

    .live-run-progress span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #13b8c7 0%, #20bed2 48%, #0f9f7b 100%);
      transition: width 0.35s ease;
    }

    .live-run-running-note {
      color: #0f2433;
      font-weight: 850;
      font-size: 15px;
    }

    .run-pipeline {
      display: grid;
      gap: 11px;
      padding: 15px;
      border: 1px solid #cfe1ed;
      border-radius: 10px;
      background: #ffffff;
    }

    .run-pipeline-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      color: #19324a;
      font-size: 14px;
    }

    .run-pipeline-head span {
      color: #0f5671;
      font-weight: 800;
    }

    .run-pipeline-steps {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
      padding: 0;
      margin: 0;
      list-style: none;
    }

    .run-pipeline-steps li {
      display: flex;
      align-items: center;
      gap: 7px;
      min-width: 0;
      padding: 8px;
      border: 1px solid #d9e3ee;
      border-radius: 8px;
      background: #f8fafc;
      color: #718096;
      font-size: 12px;
      line-height: 1.25;
    }

    .run-pipeline-steps li span {
      display: grid;
      place-items: center;
      width: 20px;
      height: 20px;
      flex: 0 0 auto;
      border-radius: 50%;
      background: #e2e8f0;
      color: #526174;
      font-size: 11px;
      font-weight: 850;
    }

    .run-pipeline-steps li b {
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .run-pipeline-steps li.done {
      border-color: #bfe1d5;
      background: #f2fbf7;
      color: #22634f;
    }

    .run-pipeline-steps li.done span {
      background: #218560;
      color: #ffffff;
    }

    .run-pipeline-steps li.active {
      border: 2px solid #0f7193;
      background: #eaf8fd;
      color: #10334d;
      box-shadow: 0 0 0 3px rgba(15, 113, 147, 0.10);
    }

    .run-pipeline-steps li.active span {
      background: #0f7193;
      color: #ffffff;
    }

    .run-pipeline.failed {
      border-color: #f2c9c9;
      background: #fffafa;
    }

    .run-pipeline.failed .run-pipeline-head span {
      color: #a52a2a;
    }

    .run-pipeline.failed .run-pipeline-steps li.active {
      border-color: #b13a3a;
      background: #fff1f1;
      box-shadow: 0 0 0 3px rgba(177, 58, 58, 0.10);
    }

    .run-pipeline.failed .run-pipeline-steps li.active span {
      background: #b13a3a;
    }

    .run-pipeline-explanation {
      margin: 0;
      color: #41556e;
      font-size: 14px;
      line-height: 1.45;
    }

    @media (max-width: 900px) {
      .run-pipeline-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @keyframes live-spin {
      to {
        transform: rotate(360deg);
      }
    }

    .stack-list {
      display: grid;
      gap: 10px;
    }

    .stack-list > button.status-box {
      width: 100%;
      text-align: left;
      color: var(--text);
      cursor: pointer;
      font: inherit;
      display: grid;
      gap: 6px;
    }

    .stack-list > button.status-box:hover {
      border-color: rgba(32, 190, 210, 0.42);
      background: rgba(32, 190, 210, 0.08);
      transform: translateY(-1px);
    }

    .stack-list > button.status-box p {
      margin: 0;
      color: var(--muted);
      line-height: 1.45;
    }

    .stack-item {
      padding: 14px;
      border-radius: 16px;
      background: rgba(255, 250, 241, 0.84);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 8px;
    }

    .templates-summary {
      padding: 0;
      overflow: hidden;
    }

    .templates-disclosure {
      display: grid;
    }

    .templates-disclosure summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      min-height: 68px;
      padding: 16px 18px;
      cursor: pointer;
      list-style: none;
    }

    .templates-disclosure summary::-webkit-details-marker {
      display: none;
    }

    .templates-disclosure-heading {
      display: grid;
      gap: 3px;
      min-width: 0;
    }

    .templates-disclosure-heading strong {
      color: var(--text);
      font-size: 18px;
      line-height: 1.2;
    }

    .templates-disclosure-heading small {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .templates-disclosure-chevron {
      width: 10px;
      height: 10px;
      border-right: 2px solid var(--muted);
      border-bottom: 2px solid var(--muted);
      transform: rotate(45deg) translateY(-3px);
      transition: transform 160ms ease;
      flex: 0 0 auto;
    }

    .templates-disclosure[open] .templates-disclosure-chevron {
      transform: rotate(225deg) translate(-2px, -1px);
    }

    .templates-disclosure[open] summary {
      border-bottom: 1px solid rgba(31, 29, 26, 0.08);
    }

    .templates-disclosure-content {
      padding: 14px 18px 18px;
    }

    .templates-list {
      display: grid;
      gap: 10px;
    }

    .template-card {
      display: grid;
      gap: 12px;
      padding: 16px;
      border: 1px solid rgba(31, 29, 26, 0.09);
      border-radius: 12px;
      background: #ffffff;
    }

    .template-card-heading {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 12px;
    }

    .template-card h4 {
      margin: 0;
      min-width: 0;
      color: var(--text);
      font-size: 19px;
      line-height: 1.3;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }

    .template-card-country {
      flex: 0 0 auto;
      padding: 4px 8px;
      border: 1px solid rgba(32, 190, 210, 0.24);
      border-radius: 999px;
      color: #0b6474;
      background: rgba(32, 190, 210, 0.08);
      font-size: 12px;
      font-weight: 800;
    }

    .template-card-focus {
      display: grid;
      gap: 3px;
    }

    .template-card-focus span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .template-card-focus strong {
      color: var(--text);
      font-size: 15px;
      line-height: 1.35;
      font-weight: 650;
    }

    .template-card-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 12px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .template-card-meta span:not(:last-child)::after {
      content: "";
      margin-left: 12px;
      border-right: 1px solid rgba(31, 29, 26, 0.14);
    }

    .card-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .card-actions button,
    .feedback-actions button {
      padding: 10px 12px;
      font-size: 12px;
      box-shadow: none;
    }

    .feedback-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .inline-note {
      min-height: 88px;
    }

    .feedback-btn-active {
      background: rgba(166, 75, 42, 0.14);
      color: var(--accent-dark);
      box-shadow: inset 0 0 0 1px rgba(166, 75, 42, 0.26);
    }

    .log-list {
      display: grid;
      gap: 8px;
      max-height: 820px;
      overflow: auto;
      padding-right: 4px;
    }

    .log-item {
      padding: 10px 12px;
      border-radius: 14px;
      background: rgba(255, 250, 241, 0.84);
      border: 1px solid rgba(31, 29, 26, 0.08);
      font-size: 13px;
      line-height: 1.5;
    }

    .log-head {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 6px;
      color: var(--muted);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 700;
    }

    .profile-bar {
      height: 8px;
      border-radius: 999px;
      background: rgba(31, 29, 26, 0.08);
      overflow: hidden;
    }

    .profile-bar span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    }

    .mini-lead-log {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 8px;
    }

    .mini-lead-log-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
    }

    .mini-lead-log-head h3 {
      margin: 0;
      font-size: 15px;
    }

    .serp-audit-lookup {
      display: grid;
      gap: 8px;
      padding: 12px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      background: rgba(255, 250, 241, 0.56);
    }

    .serp-audit-lookup input {
      width: 100%;
    }

    .serp-audit-lookup-result {
      display: grid;
      gap: 6px;
    }

    .mini-lead-log-list {
      display: grid;
      gap: 6px;
    }

    .live-leads-preview {
      padding: 16px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.64);
    }

    .live-run-leads-preview {
      margin-top: 0;
      border-radius: 10px;
      background: #ffffff;
    }

    .live-leads-progress {
      height: 8px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(31, 29, 26, 0.08);
    }

    .live-leads-progress span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--accent-dark), var(--accent));
      transition: width 180ms ease;
    }

    .mini-lead-log-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 8px 10px;
      border-radius: 12px;
      background: rgba(255, 250, 241, 0.72);
      border: 1px solid rgba(31, 29, 26, 0.06);
    }

    .mini-lead-log-row.live-lead-row.selected {
      border-color: rgba(15, 109, 100, 0.32);
      background: rgba(216, 241, 237, 0.45);
    }

    .mini-lead-log-main {
      min-width: 0;
      display: grid;
      gap: 3px;
    }

    .mini-lead-log-title {
      font-weight: 700;
      font-size: 13px;
      line-height: 1.3;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mini-lead-log-sub {
      font-size: 11px;
      color: var(--muted);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mini-lead-log-metrics {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 6px;
    }

    .mini-lead-log-pill {
      padding: 4px 7px;
      border-radius: 999px;
      background: rgba(31, 29, 26, 0.06);
      font-size: 10px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font-weight: 700;
      color: var(--muted);
    }

    .brand-summary h3 {
      margin: 0;
      font-size: 18px;
      letter-spacing: 0;
    }

    .raw-results-details {
      display: grid;
      gap: 12px;
    }

    .raw-results-details summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      cursor: pointer;
      color: var(--text);
      font-weight: 700;
      list-style: none;
    }

    .raw-results-details summary::-webkit-details-marker {
      display: none;
    }

    .raw-results-details summary::before {
      content: "+";
      display: inline-grid;
      width: 22px;
      height: 22px;
      place-items: center;
      border-radius: 50%;
      background: rgba(8, 127, 156, 0.1);
      color: var(--accent-dark);
      font-size: 16px;
      line-height: 1;
    }

    .raw-results-details[open] summary::before {
      content: "-";
    }

    .raw-results-details summary > span:first-child {
      flex: 1;
    }

    .raw-results-count {
      min-width: 28px;
      padding: 3px 8px;
      border: 1px solid rgba(8, 127, 156, 0.18);
      border-radius: 999px;
      color: var(--muted);
      font-size: 12px;
      font-variant-numeric: tabular-nums;
      text-align: center;
    }

    .brand-product-grid {
      --brand-grid-columns-mobile: 1;
      --brand-grid-columns-tablet: 2;
      --brand-grid-columns-desktop: 4;
      display: grid;
      grid-template-columns: repeat(var(--brand-grid-columns-mobile), minmax(0, 1fr));
      gap: 12px;
      align-items: start;
    }

    @media (min-width: 760px) {
      .brand-product-grid {
        grid-template-columns: repeat(var(--brand-grid-columns-tablet), minmax(0, 1fr));
      }
    }

    @media (min-width: 1240px) {
      .brand-product-grid {
        grid-template-columns: repeat(var(--brand-grid-columns-desktop), minmax(0, 1fr));
      }
    }

    .brand-product-card {
      display: grid;
      gap: 10px;
      padding: 12px;
      border-radius: 16px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      background: rgba(255, 255, 255, 0.68);
    }

    .brand-product-thumb {
      width: 100%;
      aspect-ratio: 1 / 1;
      border-radius: 12px;
      object-fit: cover;
      background: rgba(31, 29, 26, 0.06);
      border: 1px solid rgba(31, 29, 26, 0.06);
    }

    .brand-product-title {
      margin: 0;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.35;
    }

    .brand-product-desc {
      margin: 0;
      font-size: 12px;
      line-height: 1.45;
      color: var(--muted);
    }

    .brand-product-link {
      font-size: 12px;
      font-weight: 700;
      color: var(--accent-dark);
      text-decoration: none;
    }

    .lead-card {
      padding: 18px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.58);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 14px;
    }

    .lead-card-body[hidden] {
      display: none !important;
    }

    .lead-card-header {
      display: grid;
      gap: 12px;
    }

    .lead-card-summary-copy {
      display: grid;
      gap: 6px;
    }

    .lead-header-summary {
      margin: 0;
      font-size: 14px;
      line-height: 1.6;
      color: #2f2a25;
    }

    .lead-card-toggle-row {
      display: flex;
      justify-content: flex-start;
    }

    .lead-card-toggle {
      min-width: 148px;
    }

    .lead-review-explanation {
      display: grid;
      gap: 8px;
      padding: 14px 16px;
      border-radius: 16px;
      border: 1px solid rgba(24, 111, 151, 0.2);
      background: rgba(247, 251, 253, 0.96);
      color: #173047;
    }

    .lead-review-explanation strong {
      font-size: 14px;
    }

    .lead-review-explanation p {
      margin: 0;
      line-height: 1.55;
      color: #29445b;
    }

    .lead-review-explanation ul {
      margin: 0;
      padding-left: 18px;
      line-height: 1.5;
    }

    .lead-review-explanation .review-verdict {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .ai-commercial-verdict {
      display: grid;
      gap: 14px;
      padding: 16px;
      border: 1px solid #bfd8e8;
      border-radius: 16px;
      background: #fbfdff;
      color: #142a3d;
    }

    .ai-commercial-verdict-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
    }

    .ai-commercial-verdict-kicker {
      display: block;
      margin-bottom: 4px;
      color: #0d718d;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .ai-commercial-verdict h4 {
      margin: 0;
      color: #142a3d;
      font-size: 17px;
      line-height: 1.3;
    }

    .ai-commercial-verdict-badges {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 6px;
    }

    .ai-commercial-verdict-badges .pill.ai {
      background: #d9f6fb;
      border: 1px solid #86d8e7;
      color: #075c75;
    }

    .ai-commercial-verdict-summary {
      margin: 0;
      color: #29445b;
      font-weight: 650;
      line-height: 1.55;
    }

    .ai-commercial-metrics {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
    }

    .ai-commercial-metric {
      display: grid;
      align-content: start;
      gap: 5px;
      min-height: 118px;
      padding: 12px;
      border: 1px solid #d6e3ec;
      border-radius: 12px;
      background: #ffffff;
    }

    .ai-commercial-metric > span {
      color: #50677a;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.07em;
      text-transform: uppercase;
    }

    .ai-commercial-metric > strong {
      color: #102e43;
      font-size: 22px;
      line-height: 1.1;
    }

    .ai-commercial-metric > small {
      color: #567085;
      font-size: 12px;
      line-height: 1.42;
    }

    .ai-commercial-reasons {
      display: grid;
      gap: 6px;
      padding-top: 2px;
      border-top: 1px solid #d8e4ec;
      color: #29445b;
      font-size: 13px;
      line-height: 1.5;
    }

    .ai-commercial-reasons strong {
      color: #142a3d;
    }

    .ai-commercial-reasons ul {
      margin: 0;
      padding-left: 18px;
    }

    .lead-review-flags,
    .lead-advanced-actions {
      color: #526b83;
      font-size: 13px;
    }

    .lead-review-flags summary,
    .lead-advanced-actions > summary {
      cursor: pointer;
      font-weight: 700;
    }

    .lead-advanced-actions {
      margin-top: 8px;
    }

    .results-map-launch {
      padding: 12px 14px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.52);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 18px;
    }

    .results-map-launch-copy {
      display: grid;
      gap: 3px;
      min-width: 0;
    }

    .results-map-launch-copy strong {
      font-size: 14px;
    }

    .results-map-launch-copy span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .modal-panel.results-map-modal-panel {
      width: min(1780px, calc(100vw - 24px));
      height: min(94dvh, 1120px);
      max-height: calc(100dvh - 24px);
      overflow: hidden;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      background: #fbf8f1;
      box-shadow: 0 30px 90px rgba(18, 24, 32, 0.34);
    }

    .results-map-modal-backdrop {
      z-index: 320;
      padding: 12px;
      background: rgba(18, 24, 32, 0.58);
      backdrop-filter: blur(3px);
    }

    body.results-map-modal-open {
      overflow: hidden;
    }

    .results-map-modal-body {
      padding: 8px 14px 14px;
      overflow: auto;
      min-height: 0;
    }

    .results-map-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(330px, 0.34fr);
      gap: 14px;
      align-items: stretch;
    }

    .results-map-frame {
      min-height: min(76vh, 900px);
      border-radius: 18px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      background: rgba(31, 29, 26, 0.04);
      overflow: hidden;
      position: relative;
    }

    .results-map-canvas {
      width: 100%;
      height: 100%;
      min-height: min(76vh, 900px);
      background: linear-gradient(135deg, rgba(32, 211, 230, 0.08), rgba(22, 50, 71, 0.08));
    }

    .results-map-fallback {
      min-height: inherit;
      height: 100%;
      display: grid;
      place-items: center;
      padding: 28px;
      color: var(--text);
    }

    .results-map-fallback-card {
      max-width: 680px;
      display: grid;
      gap: 14px;
      padding: 24px;
      border-radius: 20px;
      border: 1px solid rgba(31, 29, 26, 0.1);
      background: rgba(255, 250, 241, 0.9);
      box-shadow: 0 18px 45px rgba(31, 29, 26, 0.08);
    }

    .results-map-fallback-card h3 {
      margin: 0;
      font-size: clamp(22px, 3vw, 34px);
    }

    .results-map-fallback-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
    }

    .results-map-fallback-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .results-map-placeholder {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      padding: 24px;
      text-align: center;
      color: var(--muted);
      pointer-events: none;
    }

    .results-map-list {
      display: grid;
      gap: 8px;
      max-height: min(78vh, 860px);
      overflow: auto;
      padding-right: 4px;
    }

    .results-map-row {
      display: grid;
      gap: 6px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      background: rgba(255, 250, 241, 0.84);
      font-size: 13px;
      line-height: 1.45;
    }

    .results-map-row strong {
      line-height: 1.25;
    }

    .results-map-status {
      font-size: 12px;
      line-height: 1.5;
      color: var(--muted);
    }

    .lead-insight-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 10px;
    }

    .lead-insight-metric {
      border: 1px solid rgba(31, 29, 26, 0.08);
      border-radius: 16px;
      padding: 12px;
      background: rgba(255, 255, 255, 0.62);
      display: grid;
      gap: 6px;
      align-content: start;
    }

    .lead-insight-metric span {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      font-weight: 700;
    }

    .lead-insight-metric strong {
      font-size: 22px;
      line-height: 1;
    }

    .lead-insight-metric.pending {
      gap: 8px;
    }

    .lead-insight-metric.pending strong {
      font-size: 16px;
      line-height: 1.2;
      font-weight: 700;
    }

    .lead-insight-metric.pending .helper {
      font-size: 11px;
      line-height: 1.45;
      color: var(--muted);
    }

    .company-intelligence {
      margin-top: 10px;
      padding: 18px;
      border-radius: 18px;
      border: 1px solid rgba(22, 50, 71, 0.16);
      background: linear-gradient(135deg, rgba(32, 211, 230, 0.09), rgba(255, 250, 241, 0.94) 58%);
      display: grid;
      gap: 16px;
    }

    .company-intelligence-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 14px;
      flex-wrap: wrap;
    }

    .company-intelligence-head h3,
    .company-intelligence-head p {
      margin: 0;
    }

    .company-intelligence-head h3 {
      font-size: 18px;
      line-height: 1.25;
    }

    .company-intelligence-head p {
      margin-top: 5px;
      max-width: 760px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .company-intelligence-grid {
      display: grid;
      grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.4fr);
      gap: 14px;
    }

    .company-intelligence-panel {
      padding: 15px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 10px;
      align-content: start;
    }

    .company-intelligence-panel h4 {
      margin: 0;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--muted);
    }

    .company-intelligence-value {
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(28px, 4vw, 42px);
      line-height: 1;
      color: #1f1d1a;
    }

    .technology-groups {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 10px;
    }

    .technology-group {
      padding: 11px;
      border-radius: 14px;
      background: rgba(255, 250, 241, 0.8);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 7px;
      align-content: start;
    }

    .technology-group strong {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .technology-chip-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .technology-chip {
      padding: 5px 8px;
      border-radius: 999px;
      background: rgba(32, 211, 230, 0.1);
      border: 1px solid rgba(22, 50, 71, 0.12);
      font-size: 12px;
      font-weight: 700;
    }

    .evidence-source-list {
      display: grid;
      gap: 8px;
    }

    .evidence-source-row {
      padding: 9px 10px;
      border-radius: 12px;
      background: rgba(31, 29, 26, 0.035);
      font-size: 12px;
      line-height: 1.5;
      overflow-wrap: anywhere;
    }

    @media (max-width: 820px) {
      .company-intelligence-grid {
        grid-template-columns: 1fr;
      }
    }

    .lead-next-action {
      display: grid;
      gap: 8px;
    }

    .lead-next-action strong {
      font-size: 15px;
    }

    .lead-next-action-cta {
      display: grid;
      gap: 8px;
      margin-top: 6px;
    }

    .lead-cta-button {
      width: 100%;
      min-height: 54px;
      padding: 16px 20px;
      font-size: 15px;
      letter-spacing: 0.01em;
      box-shadow: 0 16px 28px rgba(166, 75, 42, 0.24);
    }

    .lead-buyer-room-status {
      min-height: 18px;
    }

    .lead-buyer-room-status.ok {
      color: var(--ok);
    }

    .lead-buyer-room-status.warn {
      color: var(--warn);
    }

    .lead-reclassify {
      margin-top: 12px;
      padding: 14px;
      border-radius: 16px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      background: rgba(255, 255, 255, 0.55);
      display: grid;
      gap: 10px;
    }

    .lead-reclassify.compact {
      margin-top: 14px;
    }

    .lead-reclassify-copy strong {
      display: block;
      font-size: 13px;
      margin-bottom: 4px;
    }

    .lead-reclassify-controls {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
    }

    .lead-reclassify-controls select {
      flex: 1 1 220px;
      min-width: 200px;
      border-radius: 12px;
      border: 1px solid rgba(31, 29, 26, 0.14);
      background: #fffdf8;
      color: var(--text);
      padding: 12px 14px;
      font: inherit;
    }

    .lead-reclassify-controls button {
      flex: 0 0 auto;
    }

    .lead-top {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: start;
    }

    .lead-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 8px;
    }

    .lead-badge {
      display: inline-flex;
      align-items: center;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      background: rgba(166, 75, 42, 0.12);
      color: var(--accent-dark);
    }

    .lead-badge.preview {
      background: rgba(31, 122, 88, 0.14);
      color: var(--ok);
    }

    .lead-upgrade {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px dashed rgba(166, 75, 42, 0.38);
      background: rgba(255, 248, 238, 0.85);
      margin-top: 12px;
      flex-wrap: wrap;
    }

    .lead-upgrade strong {
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent-dark);
    }

    .lead-upgrade button {
      padding: 10px 14px;
      font-size: 12px;
      border-radius: 999px;
    }

    .lead-title {
      margin: 0;
      font-size: 22px;
      letter-spacing: 0;
    }

    .lead-title-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .lead-logo {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: rgba(31, 29, 26, 0.08);
      border: 1px solid rgba(31, 29, 26, 0.08);
      object-fit: cover;
      flex: 0 0 auto;
    }

    .lead-logo.placeholder {
      background: rgba(31, 29, 26, 0.06);
    }

    .lead-link {
      color: var(--accent);
      text-decoration: none;
      font-size: 14px;
      word-break: break-word;
    }

    .lead-link:hover {
        text-decoration: underline;
      }

      .locked-link {
        color: var(--muted);
        text-decoration: none;
        cursor: not-allowed;
      }

    .score-chip {
      min-width: 104px;
      padding: 10px 12px;
      border-radius: 16px;
      background: rgba(31, 29, 26, 0.06);
      text-align: center;
    }

    .score-stack {
      display: grid;
      gap: 6px;
      justify-items: stretch;
      min-width: 104px;
    }

    .score-stack .score-chip {
      min-width: 0;
    }

    .score-chip.ai-score-chip {
      background: rgba(32, 211, 230, 0.12);
      border: 1px solid rgba(32, 211, 230, 0.24);
    }

    .score-chip.ai-score-chip strong {
      font-size: 20px;
    }

    .score-chip strong {
      display: block;
      font-size: 24px;
      letter-spacing: 0;
    }

    .score-chip span {
      display: block;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
      font-weight: 700;
    }

    .lead-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .pill {
      padding: 7px 10px;
      border-radius: 999px;
      background: rgba(31, 29, 26, 0.06);
      font-size: 12px;
      color: var(--muted);
      font-weight: 700;
    }

    .lead-text {
      margin: 0;
      font-size: 14px;
      line-height: 1.7;
      color: #2f2a25;
    }

    .lead-columns {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .buyer-pack-grid {
      display: grid;
      gap: 12px;
    }

    .discarded-item {
      padding: 18px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.5);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 14px;
    }

    .buyer-pack-grid.key {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .buyer-pack-card {
      padding: 14px;
      border-radius: 16px;
      background: rgba(255, 250, 241, 0.84);
      border: 1px solid rgba(31, 29, 26, 0.08);
      display: grid;
      gap: 10px;
    }

    .buyer-pack-card.key {
      background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(244, 237, 224, 0.92));
    }

    .buyer-pack-card h3 {
      margin: 0;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
    }

    .buyer-pack-card p,
    .buyer-pack-card ul {
      margin: 0;
      font-size: 14px;
      line-height: 1.6;
      color: #2f2a25;
    }

    .buyer-pack-card ul {
      padding-left: 18px;
    }

    .mini-block {
      padding: 14px;
      border-radius: 16px;
      background: #fff;
      border: 1px solid rgba(31, 29, 26, 0.08);
    }

    .mini-block h3 {
      margin: 0 0 8px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
    }

    .mini-block p, .mini-block ul {
      margin: 0;
      font-size: 14px;
      line-height: 1.6;
      color: #2f2a25;
    }

    .raw-candidate-revalidation {
      margin: 14px 0;
    }

    .raw-candidate-revalidation .section-heading-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .raw-candidate-revalidation strong {
      display: block;
      margin-bottom: 4px;
    }

    @media (max-width: 680px) {
      .raw-candidate-revalidation .section-heading-row {
        align-items: stretch;
        flex-direction: column;
      }
    }

    .mini-block ul {
      padding-left: 18px;
    }

    .pdf-branding-shortcut {
      display: grid;
      gap: 10px;
      margin-top: 12px;
      border-color: rgba(32, 190, 210, 0.26);
      background: linear-gradient(135deg, rgba(230, 251, 255, 0.84), rgba(255, 250, 241, 0.92));
    }

    .pdf-branding-shortcut .actions {
      margin-top: 0;
    }

    .expansion-query-ai-actions {
      margin-top: 10px;
      margin-bottom: 0;
    }

    .expansion-query-suggestions {
      display: grid;
      gap: 10px;
      margin-top: 12px;
      padding: 14px;
      border: 1px solid #b8ddea;
      border-radius: 8px;
      background: #f5fbfd;
    }

    .expansion-query-suggestions-header,
    .expansion-query-suggestion {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
    }

    .expansion-query-suggestions-header .helper,
    .expansion-query-suggestion p {
      margin: 4px 0 0;
    }

    .expansion-query-suggestion-list {
      display: grid;
      gap: 8px;
    }

    .expansion-query-suggestion {
      padding: 12px;
      border: 1px solid #d9e7ee;
      border-radius: 7px;
      background: #fff;
    }

    .expansion-query-suggestion strong {
      display: block;
      color: #102d40;
    }

    .expansion-query-suggestion span {
      display: inline-block;
      margin-top: 5px;
      color: #14617a;
      font-size: 0.84rem;
      font-weight: 700;
    }

    .expansion-query-suggestion p {
      color: #526273;
      font-size: 0.9rem;
    }

    button.compact {
      flex: 0 0 auto;
      min-height: 34px;
      padding: 7px 11px;
      font-size: 0.88rem;
    }

    .pdf-branding-inline-form {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .pdf-branding-inline-form .field {
      margin: 0;
    }

    @media (max-width: 900px) {
      .pdf-branding-inline-form {
        grid-template-columns: 1fr;
      }
    }

    .empty {
      padding: 32px 24px;
      border-radius: 20px;
      border: 1px dashed rgba(31, 29, 26, 0.16);
      text-align: center;
      color: var(--muted);
      background: rgba(255, 255, 255, 0.3);
    }

    .error {
      white-space: pre-wrap;
      color: var(--bad);
    }

    .auth-inline-summary {
      padding-top: 18px;
    }

    .auth-inline-summary .actions {
      margin-top: 2px;
    }

    .toast {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 60;
      min-width: 280px;
      max-width: min(420px, calc(100vw - 32px));
      padding: 14px 16px;
      border-radius: 16px;
      border: 1px solid rgba(31, 29, 26, 0.1);
      background: rgba(255, 250, 241, 0.98);
      box-shadow: var(--shadow);
      transform: translateY(-8px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 180ms ease, transform 180ms ease;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    .progress-overlay {
      position: fixed;
      inset: 0;
      z-index: 70;
      display: grid;
      place-items: center;
      background: rgba(18, 24, 32, 0.42);
      backdrop-filter: blur(4px);
      padding: 18px;
    }

    .progress-card {
      width: min(440px, calc(100vw - 32px));
      padding: 24px;
      border-radius: 24px;
      border: 1px solid rgba(31, 29, 26, 0.1);
      background: rgba(255, 250, 241, 0.98);
      box-shadow: var(--shadow);
      display: grid;
      gap: 10px;
      text-align: center;
    }

    .progress-spinner {
      width: 44px;
      height: 44px;
      margin: 0 auto 4px;
      border-radius: 999px;
      border: 4px solid rgba(166, 75, 42, 0.16);
      border-top-color: var(--accent);
      animation: ew-spin 0.9s linear infinite;
    }

    .progress-title {
      margin: 0;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .progress-text {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .progress-helper {
      margin: -2px 0 0;
      color: rgba(47, 42, 37, 0.72);
      font-size: 12px;
      line-height: 1.5;
    }

    @keyframes ew-spin {
      to { transform: rotate(360deg); }
    }

    .toast.ok { border-color: rgba(31, 122, 88, 0.18); color: var(--ok); }
    .toast.warn { border-color: rgba(157, 107, 0, 0.18); color: var(--warn); }
    .toast.bad { border-color: rgba(159, 47, 47, 0.18); color: var(--bad); }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 50;
      display: grid;
      place-items: center;
      padding: 20px;
      background: rgba(31, 29, 26, 0.32);
      backdrop-filter: blur(10px);
    }

    .modal-panel {
      width: min(560px, calc(100vw - 24px));
      max-height: min(90vh, 840px);
      overflow: auto;
      border-radius: 26px;
      border: 1px solid rgba(31, 29, 26, 0.08);
      background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(246, 238, 225, 0.98));
      box-shadow: var(--shadow);
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: start;
      padding: 24px 24px 12px;
    }

    .modal-header h2 {
      margin: 0;
      font-size: 28px;
      letter-spacing: 0;
    }

    .modal-header p {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .modal-panel > .stack-list {
      padding: 0 24px 24px;
    }

    .modal-close {
      min-width: 44px;
      background: rgba(31, 29, 26, 0.06);
    }

    .tab-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      padding: 0 24px 8px;
    }

    .tab-button {
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(31, 29, 26, 0.06);
      color: var(--muted);
      box-shadow: none;
    }

    .tab-button.active {
      background: linear-gradient(135deg, var(--accent), var(--accent-dark));
      color: #fff8f3;
    }

    .modal-form {
      padding-top: 12px;
    }

    .modal-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    @media (max-width: 720px) {
      .toast {
        left: 12px;
        right: 12px;
        top: 12px;
        max-width: none;
      }

      .modal-backdrop {
        padding: 12px;
      }

      .modal-header,
      .tab-row,
      .modal-form {
        padding-left: 18px;
        padding-right: 18px;
      }
    }

    @media (max-width: 980px) {
      .layout {
        grid-template-columns: 1fr;
      }

      .hero {
        min-height: auto;
      }

      .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
      }

      .hero-visual {
        min-height: 440px;
      }

      .product-intro-grid,
      .story-grid,
      .research-example-grid,
      .output-grid,
      .sample-shortlist,
      .showcase-grid,
      .audience-grid,
      .use-case-grid,
      .ai-difference-grid,
      .decision-grid,
      .seo-card,
      .difference-grid,
      .faq-grid {
        grid-template-columns: 1fr;
      }

      .workflow-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .mock-metric-grid,
      .buyer-room-files {
        grid-template-columns: 1fr;
      }

      .wizard-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .panel-sidebar {
        position: static;
        max-height: none;
      }

      .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .product-signal-head {
        grid-template-columns: 1fr;
      }

      .brand-input-card .form,
      .search-builder-grid,
      .run-preview-layout {
        grid-template-columns: 1fr;
      }

      .gi-explorer-controls,
      .gi-explorer-map-shell,
      .gi-explorer-results,
      .results-map-grid {
        grid-template-columns: 1fr;
      }

      .results-map-launch {
        align-items: stretch;
        flex-direction: column;
      }

      .results-map-frame,
      .results-map-canvas {
        min-height: 52vh;
      }

      .results-map-list {
        max-height: 34vh;
      }

      .floating-search-actions {
        width: calc(100vw - 18px);
        bottom: 8px;
        padding: 10px;
      }
    }

    @media (max-width: 720px) {
      .copilot-shell {
        inset: 8px !important;
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 22px;
      }

      body.copilot-drawer-wide .copilot-shell {
        width: calc(100vw - 16px);
      }

      .copilot-drawer-launcher {
        right: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
      }

      .shell {
        width: min(100vw - 18px, 100%);
        margin-top: 0;
      }

      .hero {
        gap: 18px;
        padding: 18px 16px;
      }

      .hero-top {
        align-items: flex-start;
      }

      .hero-nav {
        justify-content: flex-start;
      }

      .app-topbar {
        align-items: flex-start;
        flex-direction: column;
      }

      .app-topbar-nav {
        width: 100%;
        justify-content: flex-start;
      }

      h1 {
        font-size: 32px;
        line-height: 1.06;
        max-width: 100%;
      }

      .subcopy {
        font-size: 15px;
        line-height: 1.5;
      }

      .hero-grid,
      .hero-copy {
        gap: 16px;
      }

      .hero-signals {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
      }

      .hero-signal {
        flex: 0 0 188px;
        min-height: 86px;
        scroll-snap-align: start;
      }

      .hero-visual {
        position: absolute;
        right: -54px;
        bottom: -46px;
        z-index: 0;
        width: 250px;
        min-height: 250px;
        opacity: 0.52;
        pointer-events: none;
      }

      .globe-wrap {
        width: 250px;
      }

      .intel-label {
        display: none;
      }

      .hero-intel-card {
        display: none;
      }

      .gi-explorer-map-board {
        min-height: 320px;
      }

      .product-intro h2 {
        font-size: 32px;
      }

      .story-band {
        padding: 22px 18px;
      }

      .section-heading h2,
      .sample-copy h2 {
        font-size: 28px;
      }

      .sample-row {
        grid-template-columns: 1fr;
      }

      .panel-header,
      .form,
      .meta,
      .workspace {
        padding-left: 18px;
        padding-right: 18px;
      }

      .summary-grid,
      .lead-columns,
      .buyer-pack-grid.key,
      .wizard-steps {
        grid-template-columns: 1fr;
      }

      .lead-top {
        flex-direction: column;
      }

      .score-chip {
        width: 100%;
      }

      .product-signal-card {
        padding: 16px;
      }

      .product-signal-title strong {
        font-size: 24px;
      }

      .product-signal-confidence-value {
        font-size: 34px;
      }

      .product-signal-kpi-value {
        font-size: 22px;
      }
    }
    /* App visual refresh: scoped to the logged-in application only. */
    html.app-mode body {
      background:
        linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
        linear-gradient(180deg, #eef7f8 0%, #f7fafb 42%, #f3f6f8 100%);
      background-size: 40px 40px, 40px 40px, auto;
    }

    html.app-mode .shell {
      width: min(1440px, calc(100vw - 128px));
      margin-bottom: 64px;
    }

    html.app-mode #app-area-tabs,
    html.app-mode #ice-branding-banner,
    html.app-mode #main-layout,
    html.app-mode .site-footer {
      width: min(100%, 1240px);
      margin-left: auto;
      margin-right: auto;
    }

    html.app-mode .app-topbar {
      padding-top: 18px;
      padding-bottom: 18px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.20);
      background:
        linear-gradient(rgba(125, 211, 252, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.035) 1px, transparent 1px),
        linear-gradient(135deg, #0f2433 0%, #12384a 54%, #0b1824 100%);
      background-size: 38px 38px, 38px 38px, auto;
      box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    }

    html.app-mode .brand {
      gap: 12px;
      font-weight: 850;
      letter-spacing: -0.01em;
    }

    html.app-mode .app-topbar .secondary,
    html.app-mode .app-topbar .button-link.secondary {
      min-height: 48px;
      border-color: rgba(226, 232, 240, 0.22);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.08);
      color: #eef8fb;
    }

    html.app-mode .app-topbar .button-link.secondary.active {
      background: rgba(34, 211, 238, 0.20);
      border-color: rgba(34, 211, 238, 0.48);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    }

    html.app-mode .layout {
      gap: 18px;
      margin-top: 22px;
    }

    html.app-mode .panel {
      border-color: rgba(15, 23, 42, 0.10);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
      backdrop-filter: blur(10px);
    }

    html.app-mode .panel-results {
      padding: 28px;
    }

    html.app-mode .panel-results > .panel-header {
      margin: -28px -28px 24px;
      padding: 28px;
      background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
      border-bottom-color: rgba(15, 23, 42, 0.08);
    }

    html.app-mode .panel-header h2 {
      font-size: 22px;
      line-height: 1.15;
      color: #111827;
    }

    html.app-mode .panel-header p {
      max-width: 820px;
      color: #64748b;
      font-size: 14px;
    }

    html.app-mode .app-area-tabs {
      position: sticky;
      top: 12px;
      z-index: 22;
      display: flex;
      gap: 8px;
      align-items: center;
      margin: 20px auto 24px;
      padding: 8px;
      border: 1px solid rgba(15, 23, 42, 0.10);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.88);
      box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
      backdrop-filter: blur(14px);
    }

    html.app-mode #app-copilot-tab,
    html.app-mode #app-support-tab {
      display: none !important;
    }

    html.app-mode .app-area-tab {
      flex: 1 1 0;
      min-height: 58px;
      padding: 12px 14px;
      border: 1px solid transparent;
      border-radius: 8px;
      background: transparent;
      color: #475569;
      font-size: 15px;
      font-weight: 850;
      box-shadow: none;
    }

    html.app-mode .app-area-tab.active {
      background: linear-gradient(135deg, #0f2433, #12384a);
      border-color: rgba(34, 211, 238, 0.24);
      color: #ffffff;
      box-shadow: 0 14px 28px rgba(15, 36, 51, 0.20);
    }

    html.app-mode .brand-input-card,
    html.app-mode .search-core-card,
    html.app-mode .run-preview-card,
    html.app-mode #market-evidence-card,
    html.app-mode .export-module-card,
    html.app-mode .brand-summary,
    html.app-mode .status-box,
    html.app-mode .empty {
      border-radius: 10px;
      border-color: rgba(15, 23, 42, 0.10);
      background: #ffffff;
      box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
    }

    html.app-mode .brand-input-card {
      background: #ffffff;
      border-top: 4px solid #22d3ee;
    }

    html.app-mode .brand-input-card .panel-header {
      background:
        linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 56%),
        #ffffff;
      padding: 30px;
    }

    html.app-mode .brand-input-card .form {
      gap: 18px 20px;
      padding: 28px 30px 30px;
    }

    html.app-mode .search-core-card {
      padding: 30px;
      background: #ffffff;
      border-top: 4px solid #0f2433;
    }

    html.app-mode .search-core-card h3,
    html.app-mode .brand-input-card .panel-header h2 {
      font-size: 24px;
      color: #111827;
    }

    html.app-mode .search-core-copy {
      max-width: 860px;
      color: #64748b;
      font-size: 14px;
    }

    html.app-mode .search-builder-grid {
      gap: 18px 20px;
    }

    html.app-mode .search-builder-grid .field {
      grid-template-rows: auto minmax(58px, auto) minmax(0, auto);
      gap: 8px;
    }

    html.app-mode label {
      color: #475569;
      font-size: 11px;
      font-weight: 850;
      letter-spacing: 0.10em;
    }

    html.app-mode input,
    html.app-mode select,
    html.app-mode textarea {
      border: 1px solid #dbe4ea;
      border-radius: 10px;
      background: #fbfdff;
      color: #111827;
      box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
    }

    html.app-mode input:hover,
    html.app-mode select:hover,
    html.app-mode textarea:hover {
      border-color: #b8c8d4;
    }

    html.app-mode input:focus,
    html.app-mode select:focus,
    html.app-mode textarea:focus {
      border-color: #22d3ee;
      box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
      transform: none;
    }

    html.app-mode .helper {
      color: #64748b;
      font-size: 12px;
    }

    html.app-mode button,
    html.app-mode .button-link {
      border-radius: 10px;
      font-weight: 850;
      transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
    }

    html.app-mode .primary {
      background: linear-gradient(135deg, #0891b2, #0f766e);
      color: #ffffff;
      box-shadow: 0 12px 24px rgba(8, 145, 178, 0.22);
    }

    html.app-mode .primary:hover {
      box-shadow: 0 16px 32px rgba(8, 145, 178, 0.28);
    }

    html.app-mode .secondary {
      border: 1px solid rgba(15, 23, 42, 0.10);
      background: #f8fafc;
      color: #111827;
      box-shadow: none;
    }

    html.app-mode .secondary:hover {
      border-color: rgba(8, 145, 178, 0.30);
      background: #ffffff;
      box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
    }

    html.app-mode .search-builder-actions {
      gap: 12px;
      padding-top: 14px;
      border-top: 1px solid rgba(15, 23, 42, 0.08);
    }

    html.app-mode .search-builder-actions .primary {
      min-height: 56px;
      font-size: 15px;
    }

    html.app-mode .summary-grid {
      gap: 12px;
      margin: 22px 0;
    }

    html.app-mode .metric {
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 10px;
      background: #ffffff;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
    }

    html.app-mode .metric span {
      color: #64748b;
    }

    html.app-mode .metric strong {
      color: #0f2433;
    }

    html.app-mode .floating-search-actions {
      border: 1px solid rgba(15, 23, 42, 0.10);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
      backdrop-filter: blur(14px);
    }

    html.app-mode .copilot-drawer-launcher,
    html.app-mode .support-drawer-launcher {
      border-radius: 12px;
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.20);
    }

    html.app-mode .copilot-drawer-launcher {
      background: linear-gradient(135deg, #0f2433, #12384a);
      color: #ffffff;
    }

    html.app-mode .support-drawer-launcher {
      border: 1px solid rgba(15, 23, 42, 0.10);
      background: #ffffff;
      color: #0f2433;
    }

    html.app-mode .copilot-shell,
    html.app-mode .support-shell {
      border-radius: 12px;
      background: #ffffff;
      box-shadow: -18px 18px 54px rgba(15, 23, 42, 0.22);
    }

    @media (max-width: 760px) {
      html.app-mode .shell {
        width: min(100% - 24px, 1600px);
      }

      html.app-mode #app-area-tabs,
      html.app-mode #ice-branding-banner,
      html.app-mode #main-layout,
      html.app-mode .site-footer {
        width: 100%;
      }

      html.app-mode .panel-results {
        padding: 16px;
      }

      html.app-mode .panel-results > .panel-header {
        margin: -16px -16px 18px;
        padding: 22px 18px;
      }

      html.app-mode .app-area-tabs {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
      }

      html.app-mode .brand-input-card .form,
      html.app-mode .search-core-card {
        padding: 20px;
      }
    }

    html.app-mode .brand-input-card .panel-header h2,
    html.app-mode .search-core-card h3 {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    html.app-mode .brand-input-card .panel-header h2::before,
    html.app-mode .search-core-card h3::before {
      display: inline-grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      color: #ffffff;
      font-size: 14px;
      font-weight: 900;
      box-shadow: 0 10px 22px rgba(8, 145, 178, 0.24);
      flex: 0 0 auto;
    }

    html.app-mode .brand-input-card .panel-header h2::before {
      content: "1";
      background: linear-gradient(135deg, #2563eb, #22d3ee);
    }

    html.app-mode .search-core-card h3::before {
      content: "2";
      background: linear-gradient(135deg, #0f766e, #34d399);
    }

    html.app-mode #run-preview-card,
    html.app-mode .run-preview-card {
      border-top: 4px solid #2563eb;
    }

    html.app-mode .run-preview-card .status-title,
    html.app-mode .status-title {
      color: #475569;
      letter-spacing: 0.10em;
    }

    html.app-mode .badge,
    html.app-mode .pill {
      border: 1px solid rgba(15, 23, 42, 0.08);
      background: #f8fafc;
      color: #334155;
    }

    html.app-mode .badge.ok,
    html.app-mode .pill.ok {
      border-color: rgba(16, 185, 129, 0.16);
      background: rgba(16, 185, 129, 0.10);
      color: #047857;
    }

    html.app-mode .badge.warn {
      border-color: rgba(245, 158, 11, 0.18);
      background: rgba(245, 158, 11, 0.10);
      color: #92400e;
    }

    html.app-mode .badge.bad {
      border-color: rgba(239, 68, 68, 0.18);
      background: rgba(239, 68, 68, 0.10);
      color: #991b1b;
    }

    .buyer-archetype-panel {
      display: grid;
      gap: 14px;
      padding: 18px;
      border: 1px solid #d9e3ee;
      border-radius: 12px;
      background: #ffffff;
    }

    .panel-header.compact {
      padding: 0;
      border-bottom: 0;
    }

    .buyer-archetype-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 14px;
    }

    .buyer-archetype-card {
      display: grid;
      align-content: start;
      gap: 10px;
      min-height: 182px;
      padding: 18px;
      border: 1px solid #d7e0ea;
      border-radius: 10px;
      background: #ffffff;
      box-shadow: none;
    }

    .buyer-archetype-card.primary {
      border: 2px solid #0f5671;
      background: #f4fbfd;
    }

    .buyer-archetype-rank {
      color: #0f5671;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.10em;
      text-transform: uppercase;
    }

    .buyer-archetype-card h4,
    .buyer-query-route h4 {
      margin: 0;
      color: #172033;
      font-size: 17px;
      line-height: 1.3;
    }

    .buyer-archetype-card p {
      margin: 0;
      color: #40516a;
      font-size: 14px;
      line-height: 1.5;
    }

    .buyer-archetype-card.primary .buyer-archetype-rank {
      color: #0b4d66;
    }

    .buyer-archetype-card.primary h4 {
      color: #fff;
    }

    .buyer-archetype-card.primary p {
      color: #fff;
    }

    .buyer-archetype-card .lead-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 7px;
      margin-top: auto;
    }

    .buyer-archetype-card .lead-meta .pill {
      display: inline-flex;
      align-items: center;
      min-height: 0;
      padding: 5px 9px;
      border: 1px solid #cbd8e5;
      border-radius: 999px;
      background: #f8fafc;
      color: #334155;
      font-size: 12px;
      font-weight: 750;
      line-height: 1.2;
    }

    .buyer-query-route-preview {
      display: grid;
      gap: 12px;
    }

    .buyer-query-route-list {
      display: grid;
      gap: 10px;
    }

    .buyer-query-route {
      display: grid;
      gap: 10px;
      padding: 14px;
      border: 1px solid rgba(15, 23, 42, 0.10);
      border-radius: 12px;
      background: #ffffff;
    }

    .buyer-query-route-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .buyer-query-route ul {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .buyer-query-route li {
      display: grid;
      gap: 4px;
      padding: 10px 12px;
      border-radius: 10px;
      background: #f8fafc;
    }

    .buyer-query-route li strong {
      color: #0f2433;
      font-size: 13px;
    }

    .buyer-query-route li span,
    .buyer-query-route li p {
      margin: 0;
      color: #64748b;
      font-size: 12px;
      line-height: 1.4;
    }

