:root {
    --bg: #f3f4f6;
    --surface: #ffffff;
    --ink: #0a0a0a;
    --muted: #6b7280;
    --muted-2: #9ca3af;
    --lime: #a3e635;
    --lime-deep: #84cc16;
    --mint: #d1fae5;
    --sky: #dbeafe;
    --peach: #fee2e2;
    --sand: #f5f5f4;
    --stroke: rgba(0,0,0,0.06);
    --shadow: 0 8px 28px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.06);
    --radius: 24px;
    --radius-sm: 16px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --display: "Outfit", "DM Sans", system-ui, sans-serif;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 140px; }
  body {
    font-family: "DM Sans", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y pinch-zoom;
    position: relative;
  }
  .page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(900px 520px at 92% -8%, rgba(163, 230, 53, 0.22), transparent 58%),
      radial-gradient(700px 480px at 8% 12%, rgba(148, 163, 184, 0.14), transparent 55%),
      linear-gradient(180deg, #eef1f4 0%, #f3f4f6 42%, #f6f7f9 100%);
  }
  .page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image: radial-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 18px 18px;
  }

  section[id] { scroll-margin-top: 88px; }

  .territory-tabs {
    display: none;
  }
  .territory-tabs::-webkit-scrollbar { display: none; }
  .ttab {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    border-radius: 14px;
    padding: 9px 14px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s;
    position: relative;
  }
  .ttab-name { display: block; font-weight: 700; font-size: 13px; color: #e5e7eb; letter-spacing: -0.01em; }
  .ttab-n { display: block; font-size: 10px; color: #9ca3af; margin-top: 2px; font-weight: 600; }
  .ttab:hover { background: rgba(255,255,255,0.08); }
  .ttab.active {
    background: var(--lime);
    box-shadow: 0 6px 18px rgba(163, 230, 53, 0.35);
    animation: tabPop 0.35s var(--ease);
  }
  .ttab.active .ttab-name { color: var(--ink); }
  .ttab.active .ttab-n { color: #3f6212; }
  @keyframes tabPop {
    0% { transform: scale(0.94); }
    60% { transform: scale(1.04); }
    100% { transform: scale(1); }
  }

  .hero-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
  }
  .cmp-row {
    display: grid;
    grid-template-columns: minmax(110px, 1.1fr) 1.5fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--stroke);
  }
  .cmp-row:last-child { border-bottom: none; }
  .cmp-lab { font-size: 12.5px; font-weight: 600; color: #1f2937; line-height: 1.35; }
  .cmp-bars { display: flex; flex-direction: column; gap: 4px; }
  .cmp-track { height: 9px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
  .cmp-m, .cmp-j { display: block; height: 100%; border-radius: 999px; }
  .cmp-m { background: #d1d5db; }
  .cmp-j { background: var(--lime); }
  .cmp-vals { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 78px; }
  .cmp-vals span { font-size: 11px; font-weight: 600; color: var(--muted); }
  .cmp-vals .strong { font-size: 13px; color: var(--ink); font-weight: 700; }
  .pair { font-size: 12px; color: #4b5563; font-weight: 500; }
  .pair em { font-style: normal; font-weight: 700; color: var(--ink); }

  /* Questionnaire Q&A */
  .q-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
    align-items: start;
  }
  .q-intro {
    overflow: visible;
    padding: 14px 16px !important;
  }
  .q-intro-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }
  .q-intro-title {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
  }
  .q-intro .section-sub {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.45;
  }
  .q-toc-rail {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
    margin: 0 -2px;
    scrollbar-width: none;
    background: #f3f4f6;
    border-radius: 16px;
    border: 1px solid var(--stroke);
  }
  .q-toc-rail::-webkit-scrollbar { display: none; }
  .q-toc-seg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 4px 6px 4px 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }
  .q-toc-seg + .q-toc-seg {
    position: relative;
  }
  .q-toc-chips {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .q-toc-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
  }
  .q-toc-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--ink);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  }
  .q-toc-item:hover { background: #ecfccb; transform: translateY(-1px); }
  .q-toc-item.active {
    background: var(--ink);
    color: var(--lime);
    border-color: var(--ink);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  }
  /* legacy aliases */
  .q-toc-wrap { display: contents; }
  .q-toc-group { display: contents; }
  .q-card {
    scroll-margin-top: 130px;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--q-accent, #64748b);
    opacity: 0;
    transform: translateY(14px);
    animation: qFadeUp 0.55s var(--ease) forwards;
    animation-delay: var(--stagger, 0s);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }
  .q-card.block-bg { --q-accent: #64748b; }
  .q-card.block-info { --q-accent: #3b82f6; }
  .q-card.block-trust { --q-accent: #84cc16; }
  .q-card.block-vote { --q-accent: #0a0a0a; }
  .q-card.block-demo { --q-accent: #94a3b8; }
  @media (hover: hover) and (pointer: fine) {
    .q-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
    }
  }
  @keyframes qFadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
  .q-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  .q-num {
    flex: 0 0 auto;
    min-width: 48px;
    height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    background: var(--ink);
    color: var(--lime);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 15px;
    font-weight: 800;
    transform: rotate(-3deg);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  }
  .q-meta { flex: 1; min-width: 0; }
  .q-title {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.3;
    margin: 0 0 8px;
  }
  .q-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 12px;
  }
  .q-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
  }
  .q-legend .lg-m0 {
    width: 14px; height: 14px; border-radius: 4px;
    background: #94a3b8;
  }
  .q-legend .lg-m {
    width: 14px; height: 14px; border-radius: 4px;
    background: #475569;
  }
  .q-legend .lg-j {
    width: 14px; height: 14px; border-radius: 4px;
    background: var(--lime);
    box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.25);
  }
  .ans-list { display: flex; flex-direction: column; gap: 0; }
  .ans-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid var(--stroke);
  }
  .ans-row:last-child { border-bottom: none; }
  .ans-lab {
    font-size: 12.5px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
  }
  .ans-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: end;
  }
  .ans-triple {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    align-items: end;
  }
  .ans-wave {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    align-items: center;
    min-width: 0;
  }
  .ans-badge {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }
  .ans-badge.m0 { background: #94a3b8; color: #fff; }
  .ans-badge.m { background: #475569; color: #fff; }
  .ans-badge.j {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 0 12px rgba(163, 230, 53, 0.45);
  }
  .ans-wave-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .ans-wave-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
  }
  .ans-wave-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .ans-wave-tag.m0 { color: #94a3b8; }
  .ans-wave-tag.m { color: #475569; }
  .ans-wave-tag.j { color: #4d7c0f; }
  .ans-wave-pct {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-family: var(--display);
  }
  .ans-wave-pct.m0 { color: #64748b; }
  .ans-wave-pct.m { color: #334155; }
  .ans-wave-pct.j { color: #0a0a0a; }
  .ans-track {
    height: 13px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
  }
  .ans-track i {
    display: block;
    height: 100%;
    border-radius: 999px;
    width: 0;
    transition: width 0.9s var(--ease);
  }
  .ans-track i.m0 { background: #94a3b8; }
  .ans-track i.m { background: #475569; }
  .ans-track i.j {
    background: linear-gradient(90deg, #a3e635, #84cc16);
    box-shadow: 0 0 10px rgba(163, 230, 53, 0.55);
  }
  .q-card.inview .ans-track i { width: var(--bar-w, 0%); }
  .ans-delta {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
  }
  .ans-delta .chip {
    font-size: 11px;
    padding: 5px 9px;
    font-weight: 800;
  }
  .chip.up.strong-delta { background: #d9f99d; color: #365314; box-shadow: 0 0 0 2px rgba(163,230,53,0.35); }
  .chip.down.strong-delta { background: #fecaca; color: #7f1d1d; box-shadow: 0 0 0 2px rgba(248,113,113,0.25); }
  .ans-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    margin-top: 2px;
  }
  .ans-bridge b { color: var(--ink); font-family: var(--display); }
  .ans-bridge b.j { color: #4d7c0f; }
  .ans-single {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 8px;
    align-items: center;
  }
  .ans-single .ans-track { height: 13px; }
  .ans-single .ans-wave-pct { font-size: 14px; }
  .wave-dot.m0 { background: #94a3b8; }
  .wave-dot.m { background: #475569; }

  .q-count-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .brand-place {
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .brand-place.swap {
    opacity: 0;
    transform: translateY(4px);
  }

  .bnav-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: currentColor; opacity: 0.35;
  }
  .bnav.active .bnav-dot { opacity: 1; background: #65a30d; }

  .dash .wide-grid, .dash .bottom-grid, .dash .full { margin-bottom: 18px; }

  .shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 48px;
    width: 100%;
  }

  /* Masthead */
  .masthead {
    position: sticky;
    top: 12px;
    z-index: 40;
    margin-bottom: 20px;
    padding: 14px 16px 12px;
    border-radius: 24px;
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(163, 230, 53, 0.18), transparent 55%),
      linear-gradient(160deg, #111827 0%, #0a0a0a 55%, #111827 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22), 0 2px 6px rgba(15, 23, 42, 0.12);
    animation: fadeUp 0.7s var(--ease) both;
  }
  .mast-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .masthead .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: #fff;
  }
  .masthead .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--lime);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(163, 230, 53, 0.35);
  }
  .masthead .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 3px;
  }
  .masthead .brand-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
  }
  .masthead .brand-place {
    font-size: 12px;
    font-weight: 600;
    color: #a3e635;
  }
  .mast-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .wave-pill,
  .n-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }
  .wave-pill {
    background: rgba(255,255,255,0.08);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .wave-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
  }
  .wave-dot.m { background: #94a3b8; }
  .wave-dot.j { background: var(--lime); }
  .wave-arrow { opacity: 0.55; margin: 0 1px; }
  .n-pill {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(163, 230, 53, 0.35);
  }
  .mast-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
    margin: 0 -2px;
    scrollbar-width: none;
    background: rgba(255,255,255,0.06);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
  }
  .mast-tabs::-webkit-scrollbar { display: none; }

  /* Legacy nav (unused in masthead layout) */
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    animation: fadeUp 0.7s var(--ease) both;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
  }
  .brand-mark {
    width: 28px; height: 28px;
    border-radius: 9px;
    background: var(--ink);
    display: grid; place-items: center;
    color: var(--lime);
    font-size: 14px;
    font-weight: 700;
  }
  .nav-pills {
    display: flex;
    background: var(--ink);
    border-radius: 999px;
    padding: 5px;
    gap: 2px;
  }
  .nav-pills a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    transition: background 0.25s var(--ease), color 0.25s;
  }
  .nav-pills a.active,
  .nav-pills a:hover {
    background: #fff;
    color: var(--ink);
  }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .btn-lime {
    background: var(--lime);
    color: var(--ink);
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(163, 230, 53, 0.45);
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
  }
  .btn-lime:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(163, 230, 53, 0.55);
  }
  .icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--stroke);
    background: var(--surface);
    display: grid; place-items: center;
    box-shadow: var(--shadow);
    cursor: pointer;
  }
  .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a3e635, #22c55e);
    box-shadow: var(--shadow);
  }

  /* Cards */
  .card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--stroke);
    padding: 22px;
    transform-style: preserve-3d;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    will-change: transform;
  }
  .card:hover {
    box-shadow: var(--shadow-lg);
  }
  .card.tilt:hover {
    transform: perspective(900px) rotateX(2deg) rotateY(-2deg) translateY(-4px);
  }

  .section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .card-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
  }
  .big-num {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
  }
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
  }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
  }
  .chip.up { background: #ecfccb; color: #3f6212; }
  .chip.down { background: #fee2e2; color: #991b1b; }
  .chip.neutral { background: #f3f4f6; color: #374151; }
  .chip.warn { background: #fef3c7; color: #92400e; }
  .chip.info { background: var(--sky); color: #1e3a8a; }

  /* Layout grids */
  .hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
    animation: fadeUp 0.7s var(--ease) both;
  }
  .mid-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
    animation: fadeUp 0.7s var(--ease) 0.08s both;
  }
  .bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 18px;
    animation: fadeUp 0.7s var(--ease) 0.12s both;
  }
  .wide-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
    animation: fadeUp 0.7s var(--ease) 0.16s both;
  }
  .full { margin-bottom: 18px; animation: fadeUp 0.7s var(--ease) 0.2s both; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-delay: 0ms !important;
      transition-duration: 0.01ms !important;
    }
    .q-card {
      opacity: 1 !important;
      transform: none !important;
    }
    .q-card .ans-track i {
      width: var(--bar-w, 0%) !important;
    }
  }

  .mini-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
  }
  .mini {
    background: var(--sand);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
  }
  .mini:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background: #fff;
  }
  .mini .val { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
  .mini .lbl { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 500; }

  /* Charts */
  .chart-wrap { position: relative; width: 100%; }
  .chart-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }

  .line-path {
    fill: none;
    stroke: var(--ink);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1.8s var(--ease) 0.4s forwards;
  }
  .line-area {
    fill: url(#areaGrad);
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
  }
  .dot {
    fill: var(--ink);
    opacity: 0;
    animation: popDot 0.4s var(--ease) forwards;
  }

  .bar-col {
    transform-origin: bottom;
    transform: scaleY(0);
    animation: growBar 0.9s var(--ease) forwards;
  }
  .hbar {
    transform-origin: left;
    transform: scaleX(0);
    animation: growHBar 0.9s var(--ease) forwards;
  }

  .bubble {
    transition: transform 0.45s var(--ease);
    transform-origin: center;
    animation: bubbleIn 0.9s var(--ease) both;
  }
  .bubble:hover { transform: scale(1.06); }

  .progress-track {
    display: flex;
    gap: 3px;
    margin-top: 10px;
    height: 18px;
    align-items: flex-end;
  }
  .progress-track span {
    flex: 1;
    background: #e5e7eb;
    border-radius: 2px;
    height: 40%;
    transform: scaleY(0);
    transform-origin: bottom;
    animation: growBar 0.5s var(--ease) forwards;
  }
  .progress-track span.on {
    background: var(--lime);
    height: 100%;
  }

  .dot-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-top: 10px;
  }
  .dot-grid i {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #e5e7eb;
    display: block;
    transform: scale(0);
    animation: popDot 0.35s var(--ease) forwards;
  }
  .dot-grid i.on { background: var(--lime); }
  .dot-grid i.warn { background: #fca5a5; }

  /* Territory cards */
  .territory {
    border-radius: var(--radius);
    padding: 20px;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.35s var(--ease), box-shadow 0.35s;
    transform-style: preserve-3d;
    border: 0;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .territory:hover {
    transform: perspective(800px) rotateY(4deg) translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
  .territory.lime { background: linear-gradient(145deg, #bef264, #a3e635); }
  .territory.mint { background: linear-gradient(145deg, #a7f3d0, #6ee7b7); }
  .territory.sky { background: linear-gradient(145deg, #bfdbfe, #93c5fd); }
  .territory .t-label { font-size: 12px; font-weight: 600; opacity: 0.7; }
  .territory .t-title { font-size: 20px; font-weight: 700; margin: 4px 0 12px; letter-spacing: -0.02em; }
  .territory .t-num { font-size: 32px; font-weight: 700; letter-spacing: -0.04em; }
  .territory .t-sub { font-size: 12px; font-weight: 500; opacity: 0.75; margin-top: 4px; }

  /* List */
  .list { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow: auto; }
  .list-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 14px;
    transition: background 0.2s;
  }
  .list-row:hover { background: #f9fafb; }
  .list-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 13px;
    font-weight: 700;
    background: #f3f4f6;
  }
  .list-name { font-size: 14px; font-weight: 600; }
  .list-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .pill {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
  }
  .pill.ok { background: #ecfccb; color: #3f6212; }
  .pill.bad { background: #fee2e2; color: #991b1b; }
  .pill.warn { background: #fef3c7; color: #92400e; }
  .pill.mute { background: #f3f4f6; color: #4b5563; }
  .list-val { font-weight: 700; font-size: 14px; text-align: right; min-width: 56px; }

  /* Table */
  table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  table.data th {
    text-align: left;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    padding: 8px 10px;
    border-bottom: 1px solid var(--stroke);
  }
  table.data td {
    padding: 10px;
    border-bottom: 1px solid var(--stroke);
    font-weight: 500;
  }
  table.data tr:last-child td { border-bottom: none; }
  table.data tr { transition: background 0.2s; }
  table.data tbody tr:hover { background: #f9fafb; }
  .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

  .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
  }
  .legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
  }
  .swatch {
    width: 10px; height: 10px;
    border-radius: 3px;
  }

  .callout {
    background: #ecfccb;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    margin-top: 14px;
  }
  .callout.warn { background: #fef3c7; }
  .callout.danger { background: #fee2e2; }

  .footer {
    text-align: center;
    color: var(--muted-2);
    font-size: 12px;
    padding: 24px 8px 8px;
  }

  .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 16px;
  }
  .section-head h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  /* Stacked budget bars */
  .budget-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    height: 160px;
    padding-top: 8px;
  }
  .budget-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    gap: 2px;
  }
  .budget-bar .seg {
    width: 100%;
    border-radius: 6px 6px 2px 2px;
    transform: scaleY(0);
    transform-origin: bottom;
    animation: growBar 0.85s var(--ease) forwards;
  }
  .budget-bar .lbl {
    text-align: center;
    font-size: 10px;
    color: var(--muted);
    margin-top: 6px;
    font-weight: 600;
  }
  .hatch {
    background: repeating-linear-gradient(
      -45deg,
      #e5e7eb,
      #e5e7eb 3px,
      #f9fafb 3px,
      #f9fafb 6px
    );
  }

  @keyframes drawLine {
    to { stroke-dashoffset: 0; }
  }
  @keyframes fadeIn {
    to { opacity: 1; }
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes growBar {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
  }
  @keyframes growHBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
  @keyframes popDot {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  @keyframes bubbleIn {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

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

  .scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .scroll-x table.data { min-width: 520px; }

  .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
  .brand-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
  .brand-sub { display: none; font-size: 11px; font-weight: 500; color: var(--muted); }
  .brand-place { font-size: 12px; font-weight: 600; }

  .mobile-chips {
    display: none;
  }
  .bottom-nav {
    display: none;
  }

  .hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.4;
  }
  .section-sub {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 4px;
  }

  .analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
    animation: fadeUp 0.7s var(--ease) 0.18s both;
  }

  .kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
    animation: fadeUp 0.7s var(--ease) 0.22s both;
  }
  .kpi-tile {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--stroke);
    padding: 18px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s;
  }
  .kpi-tile:hover { box-shadow: var(--shadow-lg); }
  .kpi-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
  .kpi-val { font-size: 32px; font-weight: 700; letter-spacing: -0.04em; margin: 8px 0; }
  .kpi-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
  }
  .kpi-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--lime);
    border-radius: 999px;
    animation: fillBar 1.2s var(--ease) 0.3s forwards;
  }
  .kpi-bar i { --target: var(--w); }
  @keyframes fillBar {
    to { width: var(--w); }
  }
  .kpi-sub { font-size: 11px; color: var(--muted); margin-top: 8px; font-weight: 500; }

  /* Funnel */
  .funnel { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
  .funnel-row {
    display: grid;
    grid-template-columns: 110px 1fr 52px;
    gap: 10px;
    align-items: center;
  }
  .funnel-row .fl { font-size: 12px; font-weight: 600; color: #374151; }
  .funnel-row .fv { font-size: 12px; font-weight: 700; text-align: right; }
  .funnel-track {
    height: 28px;
    display: flex;
    justify-content: center;
  }
  .funnel-track b {
    display: block;
    height: 100%;
    border-radius: 8px;
    transform: scaleX(0);
    transform-origin: center;
    animation: growHBar 0.9s var(--ease) forwards;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  /* Conclusions */
  .conclusions-card { overflow: hidden; }
  .insight-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 22px;
  }
  .insight-kpi {
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease);
  }
  .insight-kpi:hover { transform: translateY(-3px); }
  .insight-kpi.danger { background: #fef2f2; }
  .insight-kpi.ok { background: #f7fee7; }
  .insight-kpi.warn { background: #fffbeb; }
  .ik-num { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; }
  .ik-lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
  .ik-tag {
    align-self: flex-start;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
  }

  .concl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .concl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .concl-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
  }
  .concl-badge.dark { background: var(--ink); color: #fff; }
  .concl-badge.lime { background: var(--lime); color: var(--ink); }
  .concl-count { font-size: 12px; color: var(--muted); font-weight: 500; }

  .concl-list { display: flex; flex-direction: column; gap: 10px; }
  .concl-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 14px;
    background: var(--sand);
    border-radius: 16px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
    animation: fadeUp 0.6s var(--ease) var(--d, 0s) both;
  }
  .concl-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
    background: #fff;
  }
  .ci-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 12px;
    font-weight: 700;
  }
  .ci-icon.danger { background: #fecaca; color: #7f1d1d; }
  .ci-icon.ok { background: #d9f99d; color: #365314; }
  .ci-icon.warn { background: #fde68a; color: #78350f; }
  .ci-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--ink); letter-spacing: -0.01em; }
  .ci-text { font-size: 13px; color: #1f2937; line-height: 1.5; font-weight: 500; }
  .ci-meter {
    height: 5px;
    background: #e5e7eb;
    border-radius: 999px;
    margin-top: 8px;
    overflow: hidden;
  }
  .ci-meter i {
    display: block;
    height: 100%;
    width: 0;
    background: #0a0a0a;
    border-radius: 999px;
    animation: fillBar 1s var(--ease) 0.4s forwards;
  }
  .ci-meter.ok i { background: var(--lime-deep); }
  .ci-meter.danger i { background: #f87171; }
  .ci-meter.warn i { background: #fbbf24; }

  .rec-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .rec-card {
    border-radius: 18px;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: var(--shadow);
    transition: transform 0.35s var(--ease), box-shadow 0.35s;
    animation: fadeUp 0.6s var(--ease) var(--d, 0s) both;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 188px;
  }
  .rec-card:hover {
    transform: perspective(700px) rotateX(2deg) translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
  .rec-card.p1 { border-top: 4px solid var(--lime); }
  .rec-card.p2 { border-top: 4px solid #0a0a0a; }
  .rec-card.p3 { border-top: 4px solid #60a5fa; }
  .rec-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
  }
  .rec-prio {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: var(--ink);
    color: var(--lime);
    padding: 5px 10px;
    border-radius: 8px;
    line-height: 1;
  }
  .rec-card.p1 .rec-prio { background: var(--lime); color: var(--ink); }
  .rec-card.p3 .rec-prio { background: #dbeafe; color: #1e3a8a; }
  .rec-effort {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .rec-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ink);
  }
  .rec-text {
    font-size: 13.5px;
    color: #1f2937;
    line-height: 1.55;
    font-weight: 500;
    margin-bottom: 14px;
  }
  .rec-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
  }
  .rec-metrics span {
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    padding: 6px 11px;
    border-radius: 999px;
    color: #111827;
    border: 1px solid #e5e7eb;
    line-height: 1.25;
  }
  .rec-card.p1 .rec-metrics span {
    background: #f7fee7;
    border-color: #d9f99d;
    color: #365314;
  }
  .rec-metrics span b {
    font-weight: 700;
    color: #6b7280;
    margin-right: 4px;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .rec-card.p1 .rec-metrics span b { color: #4d7c0f; }

  .priority-matrix { margin-top: 22px; }
  .pm-title {
    font-size: 14px; font-weight: 700;
    margin-bottom: 12px;
  }
  .pm-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  .pm-cell {
    border-radius: 16px;
    padding: 14px 12px;
    background: var(--sand);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
    animation: fadeUp 0.5s var(--ease) both;
    border: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
    color: inherit;
  }
  .pm-cell:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow);
    background: #fff;
  }
  .pm-cell.hot { background: linear-gradient(160deg, #bef264, #a3e635); }
  .pm-cell.warm { background: linear-gradient(160deg, #a7f3d0, #6ee7b7); }
  .pm-cell.cold { background: linear-gradient(160deg, #fecaca, #fca5a5); }
  .pm-cell.mid { background: linear-gradient(160deg, #bfdbfe, #93c5fd); }
  .pm-name { font-size: 12px; font-weight: 700; }
  .pm-score { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 2px; }
  .pm-meta { font-size: 10px; font-weight: 600; opacity: 0.75; }
  .pm-action {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  /* ========== TABLET ========== */
  @media (max-width: 1100px) {
    .hero-grid,
    .mid-grid,
    .wide-grid,
    .bottom-grid,
    .analytics-grid {
      grid-template-columns: 1fr 1fr;
    }
    .hero-kpis { grid-template-columns: 1fr 1fr; }
    .kpi-strip { grid-template-columns: 1fr 1fr; }
    .insight-kpis { grid-template-columns: 1fr 1fr; }
    .concl-grid { grid-template-columns: 1fr; }
    .pm-grid { grid-template-columns: repeat(3, 1fr); }
    .desktop-only { display: none !important; }
    .nav-pills { display: none; }
  }

  /* ========== MOBILE APP SHELL ========== */
  @media (max-width: 760px) {
    html {
      scroll-padding-top: 120px;
      scroll-behavior: auto; /* smooth + sticky breaks iOS scroll */
    }
    section[id] { scroll-margin-top: 120px; }

    body {
      background: #eef0f3;
      overflow-x: hidden;
      overscroll-behavior-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    /* Don't leave transform after entry animation — breaks fixed/sticky on iOS */
    .hero-grid,
    .mid-grid,
    .wide-grid,
    .bottom-grid,
    .analytics-grid,
    .kpi-strip,
    .hero-kpis,
    .full,
    .nav,
    .rec-card,
    .concl-item,
    .pm-cell,
    .bubble,
    .bar-col,
    .hbar,
    .dot {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
    .line-path {
      stroke-dashoffset: 0 !important;
      animation: none !important;
    }
    .line-area { opacity: 1 !important; animation: none !important; }
    .kpi-bar i,
    .ci-meter i {
      width: var(--w) !important;
      animation: none !important;
    }
    .funnel-track b {
      transform: none !important;
      animation: none !important;
    }
    .budget-bar .seg {
      transform: none !important;
      animation: none !important;
    }
    .progress-track span {
      transform: none !important;
      animation: none !important;
    }
    .dot-grid i {
      transform: none !important;
      animation: none !important;
      opacity: 1 !important;
    }

    .shell {
      max-width: 100%;
      padding: 12px 12px calc(96px + env(safe-area-inset-bottom));
      padding-top: calc(12px + env(safe-area-inset-top));
    }

    .app-topbar,
    .masthead {
      position: sticky;
      top: 0;
      z-index: 40;
      margin: 0 0 12px;
      padding: 12px;
      border-radius: 20px;
      animation: none;
    }
    .masthead .brand-mark { width: 36px; height: 36px; border-radius: 12px; font-size: 15px; }
    .masthead .brand-title { font-size: 16px; }
    .wave-pill { display: none; }
    .q-count-pill { display: none; }
    .q-stack { grid-template-columns: 1fr; }
    .ans-dual { grid-template-columns: 1fr 1fr; gap: 6px; }
    .ans-triple { grid-template-columns: 1fr; gap: 8px; }
    .q-num { transform: none; min-width: 42px; height: 38px; }
    .q-card { animation: none; opacity: 1; transform: none; }
    .q-card.inview .ans-track i { width: var(--bar-w, 0%); }
    .ttab { padding: 8px 12px; }
    .ttab-name { font-size: 12px; }
    .brand-sub { display: block; }
    .brand { gap: 8px; }
    .btn-lime {
      padding: 8px 12px;
      font-size: 12px;
      min-height: 36px;
    }
    .avatar, .icon-btn { width: 36px; height: 36px; }

    .mobile-chips {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding: 2px 2px 12px;
      margin: 0 -4px 8px;
      scrollbar-width: none;
    }
    .mobile-chips::-webkit-scrollbar { display: none; }
    .mchip {
      flex: 0 0 auto;
      text-decoration: none;
      color: var(--muted);
      background: #fff;
      border: 1px solid var(--stroke);
      border-radius: 999px;
      padding: 8px 14px;
      font-size: 12px;
      font-weight: 600;
      box-shadow: var(--shadow);
      transition: background 0.2s, color 0.2s;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }
    .mchip.active {
      background: var(--ink);
      color: #fff;
      border-color: var(--ink);
    }

    .hero-grid,
    .mid-grid,
    .wide-grid,
    .bottom-grid,
    .analytics-grid,
    .kpi-strip,
    .concl-grid,
    .insight-kpis,
    .rec-cards {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .rec-card {
      min-height: 0;
      padding: 18px;
    }
    .rec-title { font-size: 17px; }
    .rec-text { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
    .rec-metrics span { font-size: 13px; padding: 7px 12px; }
    .rec-prio { font-size: 13px; padding: 6px 11px; }
    .rec-effort { font-size: 12px; }
    .ci-title { font-size: 15px; }
    .ci-text { font-size: 14px; line-height: 1.55; }

    .card {
      border-radius: 20px;
      padding: 16px;
    }
    .big-num { font-size: 36px; }
    .kpi-val { font-size: 28px; }
    .ik-num { font-size: 24px; }

    .mini-row {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .territory-row {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      padding-bottom: 4px;
      margin: 0 -4px;
      padding-left: 4px;
      padding-right: 4px;
    }
    .territory-row .territory {
      flex: 0 0 78%;
      max-width: 280px;
      scroll-snap-align: start;
      min-height: 150px;
    }

    .pm-grid {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      padding-bottom: 4px;
    }
    .pm-cell {
      flex: 0 0 42%;
      min-width: 140px;
      scroll-snap-align: start;
    }

    .funnel-row {
      grid-template-columns: 78px 1fr 44px;
      gap: 6px;
    }
    .funnel-track { height: 22px; }
    .list-row {
      grid-template-columns: 36px 1fr auto;
      gap: 8px;
    }
    .list-row .list-val { grid-column: 3; }
    .list-row .pill {
      grid-column: 2;
      justify-self: start;
      margin-top: 4px;
    }
    /* Re-layout list rows for mobile: icon | text+pill / value */
    .list {
      gap: 6px;
      max-height: none;
    }
    .list-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      padding: 12px 10px;
      background: #fafafa;
      border-radius: 14px;
    }
    .list-row .list-icon { flex: 0 0 36px; width: 36px; height: 36px; }
    .list-row > div:nth-child(2) { flex: 1 1 120px; min-width: 0; }
    .list-row .pill { margin-left: auto; }
    .list-row .list-val { flex: 0 0 auto; min-width: 48px; }

    .section-head {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .budget-bars { height: 140px; gap: 8px; }

    /* Soften motion / disable heavy 3D on phones */
    .card.tilt:hover,
    .territory:hover,
    .kpi-tile:hover,
    .rec-card:hover {
      transform: none;
    }
    .concl-item:hover { transform: none; }

    .footer {
      padding-bottom: 8px;
      font-size: 11px;
      line-height: 1.4;
    }

    .hero-kpis { grid-template-columns: 1fr; }
    .cmp-row { grid-template-columns: 1fr; gap: 6px; }
    .q-stack { grid-template-columns: 1fr; }
    .ans-dual { grid-template-columns: 1fr 1fr; gap: 6px; }
    .ans-triple { grid-template-columns: 1fr; gap: 8px; }
    .q-head { flex-direction: column; gap: 8px; }
    .q-title { font-size: 14px; }
    .cmp-vals { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; }

    .bottom-nav {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      position: fixed;
      left: 0; right: 0; bottom: 0;
      z-index: 50;
      background: rgba(255,255,255,0.96);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-top: 1px solid var(--stroke);
      box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
      padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
      transform: none;
      pointer-events: auto;
    }
    .bnav {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      text-decoration: none;
      color: var(--muted-2);
      font-size: 9px;
      font-weight: 600;
      padding: 6px 1px;
      border-radius: 12px;
      transition: color 0.2s, background 0.2s;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      min-height: 44px;
      justify-content: center;
    }
    .bnav svg {
      width: 22px;
      height: 22px;
    }
    .bnav.active {
      color: var(--ink);
      background: #ecfccb;
    }
    .bnav.active svg { stroke: #3f6212; }
  }

  @media (max-width: 420px) {
    .chips { gap: 6px; }
    .chip { font-size: 11px; padding: 4px 8px; }
    .big-num { font-size: 32px; }
    .territory-row .territory { flex-basis: 85%; }
    .pm-cell { flex-basis: 55%; }
    .btn-lime { padding: 8px 10px; }
  }

  @media (min-width: 761px) and (max-width: 1100px) {
    .shell { padding: 16px; }
    .hero-grid > :first-child { grid-column: 1 / -1; }
    .analytics-grid > :nth-child(1),
    .analytics-grid > :nth-child(2) { grid-column: span 1; }
  }

  @media (hover: none) and (pointer: coarse) {
    .card.tilt,
    .territory,
    .kpi-tile.tilt,
    .rec-card {
      transform: none !important;
    }
  }

