/* კალკულატორის კრიტიკული CSS სტილები და ცვლადები */
@import url("/css/tokens.css?v=20260728-foundation-v2");
@import url("/css/motion.css?v=20260728-foundation-v2");
@import url("/css/components.css?v=20260728-foundation-v2");

    /* Glassmorphism for cards */
    .site-card,
    .tier-row,
    .obj-type-card,
    .zone-card,
    .tier-card,
    .card,
    .proposal-shell,
    .summary-rail>div,
    .manifest {
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    /* CTAs: brand gradient is defined later (landing shell). Do not force cyan here. */

    .step.is-active {
      box-shadow: inset 3px 0 0 var(--ant-cyan);
    }

    html.light-mode body {
      background: var(--bg);
    }

    /* Topbar chrome is the glass pill (.topbar__inner); outer bar stays transparent. */
    html.light-mode .topbar {
      background: linear-gradient(to bottom, rgba(232, 228, 223, 0.8), transparent) !important;
      backdrop-filter: none;
      border-bottom-color: transparent;
    }

    /* Light-theme logo fix: the white PNG logo is invisible on a light background.
       This inverts it to black only when light mode is active. */
    html.light-mode .brand-logo {
      filter: invert(1);
    }

    html.light-mode .manifest {
      background: var(--surface) !important;
    }

    html.light-mode .site-card,
    html.light-mode .tier-row,
    html.light-mode .obj-type-card,
    html.light-mode .zone-card,
    html.light-mode .tier-card,
    html.light-mode .card,
    html.light-mode .archive-card {
      background-color: var(--surface) !important;
      backdrop-filter: blur(4px);
      border: 1px solid var(--border) !important;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    }

    html.light-mode .cyber-card {
      border: 1px solid rgba(15, 23, 42, 0.1);
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
    }

    html.light-mode .tier-row.is-active,
    html.light-mode .obj-type-card.is-active,
    html.light-mode .zone-card.is-active,
    html.light-mode .tier-card.is-active,
    html.light-mode .quick-object-card.is-active {
      background-color: #ffffff !important;
      border-color: var(--color-accent-cyan) !important;
      box-shadow: 0 4px 12px rgba(0, 128, 204, 0.08) !important;
    }

    html.light-mode .site-card:hover,
    html.light-mode .category-card:hover,
    html.light-mode .quick-object-card:hover,
    html.light-mode .card:hover {
      background-color: #ffffff !important;
      border-color: var(--color-accent-cyan) !important;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 128, 204, 0.08) !important;
    }

    html.light-mode .site-card.is-active {
        background-color: #ffffff !important;
        border-color: color-mix(in srgb, var(--ant-cyan) 25%, transparent) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 12px 30px color-mix(in srgb, var(--ant-cyan) 8%, transparent) !important;
        color: #0B0F17 !important;
    }

    html.light-mode .total-card__num {
      color: var(--text) !important;
      text-shadow: 0 0 24px color-mix(in srgb, var(--ant-cyan) 15%, transparent) !important;
    }

    html.light-mode .quote-total {
      color: var(--text) !important;
      text-shadow: 0 0 32px color-mix(in srgb, var(--ant-cyan) 15%, transparent) !important;
    }

    html.light-mode .quote-kicker {
      color: var(--text-3) !important;
    }

    html.light-mode .line-title {
      color: var(--text) !important;
    }

    html.light-mode .line-meta {
      color: var(--text-2) !important;
    }

    html.light-mode .quote-meta-strip {
      color: var(--text-2) !important;
    }

    html.light-mode .quote-meta-strip span::after {
      color: rgba(10, 11, 12, 0.15) !important;
    }

    html.light-mode .proposal-shell {
      background: var(--surface) !important;
      box-shadow: 0 1px 3px rgba(10, 11, 12, 0.05), 0 18px 44px -16px rgba(10, 11, 12, 0.08) !important;
      border-color: var(--border) !important;
    }

    html.light-mode .step.is-active .step__num {
      box-shadow: 0 0 10px color-mix(in srgb, var(--ant-cyan) 40%, transparent) !important;
    }

    html.light-mode .step.is-clickable:not(.is-active):hover {
      background: rgba(0, 0, 0, 0.02) !important;
      border-color: rgba(0, 0, 0, 0.06) !important;
    }

    html.light-mode .bg-orbs::before {
      background: radial-gradient(circle, color-mix(in srgb, var(--ant-cyan) 4%, transparent) 0%, transparent 70%) !important;
    }

    html.light-mode .bg-orbs::after {
      background: radial-gradient(circle, color-mix(in srgb, var(--ant-purple) 3%, transparent) 0%, transparent 70%) !important;
    }

    html.light-mode .bg-orbs .orb-3 {
      background: radial-gradient(circle, color-mix(in srgb, var(--ant-cyan) 2%, transparent) 0%, transparent 70%) !important;
    }

    html.light-mode ::-webkit-scrollbar-thumb {
      background: rgba(10, 11, 12, 0.12);
    }

    html.light-mode ::-webkit-scrollbar-thumb:hover {
      background: rgba(10, 11, 12, 0.22);
    }

    html.light-mode ::selection {
      background: color-mix(in srgb, var(--ant-cyan) 20%, transparent);
      color: #0A0B0C;
    }

    /* Animated floating gradient orbs */
    @keyframes orbFloat1 {

      0%,
      100% {
        transform: translate(0, 0) scale(1);
      }

      25% {
        transform: translate(6vw, -8vh) scale(1.08);
      }

      50% {
        transform: translate(-4vw, 6vh) scale(0.96);
      }

      75% {
        transform: translate(8vw, 4vh) scale(1.04);
      }
    }

    @keyframes orbFloat2 {

      0%,
      100% {
        transform: translate(0, 0) scale(1);
      }

      25% {
        transform: translate(-8vw, 6vh) scale(1.06);
      }

      50% {
        transform: translate(4vw, -8vh) scale(0.94);
      }

      75% {
        transform: translate(-6vw, -4vh) scale(1.1);
      }
    }

    @keyframes orbFloat3 {

      0%,
      100% {
        transform: translate(0, 0) scale(1);
      }

      33% {
        transform: translate(8vw, 8vh) scale(1.08);
      }

      66% {
        transform: translate(-10vw, -4vh) scale(0.92);
      }
    }

    /* Match landing: static radial body only — no floating cyber orbs. */
    .bg-orbs {
      display: none !important;
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .bg-orbs::before,
    .bg-orbs::after,
    .bg-orbs .orb-3 {
      content: '';
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      will-change: transform;
      transform: translate3d(0, 0, 0);
      /* Force GPU Hardware Acceleration in Chrome */
      backface-visibility: hidden;
      perspective: 1000px;
    }

    .bg-orbs::before {
      width: 500px;
      height: 500px;
      top: -10%;
      left: -5%;
      background: radial-gradient(circle, color-mix(in srgb, var(--color-accent-cyan) 8%, transparent) 0%, transparent 70%);
      animation: orbFloat1 25s ease-in-out infinite;
    }

    .bg-orbs::after {
      width: 400px;
      height: 400px;
      top: 40%;
      right: -8%;
      background: radial-gradient(circle, color-mix(in srgb, var(--color-accent-purple) 6%, transparent) 0%, transparent 70%);
      animation: orbFloat2 30s ease-in-out infinite;
    }

    .bg-orbs .orb-3 {
      width: 350px;
      height: 350px;
      bottom: -5%;
      left: 30%;
      background: radial-gradient(circle, color-mix(in srgb, var(--color-accent-cyan) 5%, transparent) 0%, transparent 70%);
      animation: orbFloat3 35s ease-in-out infinite;
    }

    .bg-noise {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      opacity: 0.3;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
      background-repeat: repeat;
      background-size: 256px 256px;
    }

    /* Landing dropped the fine grid; keep class harmless if markup remains. */
    .grid-bg-fine {
      display: none !important;
      background-image: none;
      opacity: 0;
    }

    html.light-mode .grid-bg-fine {
      background-image:
        radial-gradient(circle, rgba(10, 11, 12, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(10, 11, 12, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 11, 12, 0.02) 1px, transparent 1px);
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.08);
      border-radius: 8px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    html.light-mode ::-webkit-scrollbar-thumb {
      background: rgba(10, 11, 12, 0.08);
    }

    html.light-mode ::-webkit-scrollbar-thumb:hover {
      background: rgba(10, 11, 12, 0.16);
    }



    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: var(--font-sans);
      margin: 0;
      transition: background-color .3s ease, color .3s ease;
    }

    svg {
      max-width: 100%;
    }

    button {
      cursor: pointer;
      border: none;
      font-family: inherit;
    }

    /* Accessibility */
    .skip-link {
      position: absolute;
      left: 12px;
      top: -48px;
      z-index: 10000;
      background: var(--ant-cyan);
      color: #06231F;
      padding: 10px 16px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 14px;
      transition: top .2s ease;
      text-decoration: none;
    }

    .skip-link:focus {
      top: 12px;
      outline: 2px solid var(--text);
      outline-offset: 2px;
    }

    :focus-visible {
      outline: 2px solid var(--ant-cyan);
      outline-offset: 2px;
    }

    /* Full-screen branded loading state */
    #calc-boot-loader {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: var(--bg);
      gap: 18px;
      transition: opacity .3s ease;
    }

    #calc-boot-loader.is-hidden {
      opacity: 0;
      pointer-events: none;
    }

    .boot-logo {
      width: 56px;
      height: 56px;
      border-radius: 12px;
      background: linear-gradient(135deg, color-mix(in srgb, var(--ant-cyan) 20%, transparent), color-mix(in srgb, var(--ant-cyan) 5%, transparent));
      border: 1px solid color-mix(in srgb, var(--ant-cyan) 30%, transparent);
      color: var(--ant-cyan);
      display: grid;
      place-items: center;
      animation: bootPulse 1.6s ease-in-out infinite;
    }

    @keyframes bootPulse {

      0%,
      100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--ant-cyan) 25%, transparent);
      }

      50% {
        box-shadow: 0 0 0 14px transparent;
      }
    }

    .boot-spinner {
      width: 38px;
      height: 38px;
      border: 2px solid rgba(255, 255, 255, 0.08);
      border-top-color: var(--ant-cyan);
      border-radius: 50%;
      animation: bootSpin 0.9s linear infinite;
    }

    @keyframes bootSpin {
      to {
        transform: rotate(360deg);
      }
    }

    .boot-text {
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.16em;
      color: var(--text-2);
      text-transform: uppercase;
    }

    .boot-error {
      max-width: 440px;
      padding: 16px 18px;
      background: rgba(239, 68, 68, 0.08);
      border: 1px solid rgba(239, 68, 68, 0.30);
      border-radius: 10px;
      color: #F4F5F7;
      font-size: 13px;
      text-align: center;
    }

    .boot-error b {
      color: var(--ant-cyan);
    }

    .boot-error a {
      color: var(--ant-cyan);
      text-decoration: underline;
    }

    /* განლაგება (Layout) */
    .calc-layout {
      display: grid;
      grid-template-columns: clamp(248px, 18vw, 280px) minmax(0, 1fr);
      gap: clamp(24px, 2vw, 32px);
      width: min(var(--calc-shell-max), calc(100% - (var(--calc-shell-gutter) * 2)));
      max-width: none;
      margin: 0 auto;
      padding: 20px 0 48px;
      position: relative;
      z-index: 2;
    }

    /* Vertically center short steps (site-type, archive) inside the row height the
       grid already gives this column (it stretches to match .steps' height) —
       avoids a tall dead gap below content+actions on light steps, with zero
       effect on steps whose content already fills the available height. */
    .center-content {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    @media (max-width: 1199px) {
      .calc-layout {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 16px;
        gap: 16px;
      }

      .steps {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 12px;
        border-bottom: 2px solid var(--border);
        border-right: none;
        padding-bottom: 14px;
        padding-right: 0;
        gap: 0;
      }

      .steps__head {
        display: none;
      }

      .step {
        padding: 6px 4px;
        border: none;
        background: transparent !important;
        box-shadow: none !important;
        flex: 1;
        justify-content: center;
        opacity: 0.45;
      }

      .step.is-clickable {
        opacity: 0.85;
      }

      .step.is-active {
        opacity: 1;
        background: transparent !important;
        box-shadow: none !important;
        border-color: transparent !important;
        border-bottom: 2px solid var(--ant-cyan) !important;
        border-radius: 0;
        margin-bottom: -2px;
      }

      .step__body {
        display: none;
      }

      .step__num {
        width: 32px;
        height: 32px;
        font-size: 13px;
        margin: 0 auto;
      }

      .step.is-active .step__num {
        background: var(--ant-cyan);
        color: #040810;
        border-color: var(--ant-cyan);
        box-shadow: 0 0 12px color-mix(in srgb, var(--ant-cyan) 40%, transparent);
      }
    }

    @media (max-width: 768px) {
      .calc-layout {
        padding: 12px;
      }
    }

    /* Top bar — mirrors index.html pill-nav: bold brand, draft badge,
     EN | GE pair, theme toggle, primary CTA. */
    .topbar {
      background: rgba(8, 13, 22, 0.7);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      padding: 14px 24px;
      position: sticky;
      top: 0;
      z-index: 50;
      transition: background-color .3s ease, border-color .3s ease;
    }

    .topbar__inner {
      display: flex;
      align-items: center;
      gap: 14px;
      max-width: var(--content-shell);
      margin: 0 auto;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: var(--text);
      transition: opacity 0.2s;
    }

    .brand:hover {
      opacity: 0.85;
    }

    .brand__mark {
      display: inline-flex;
    }

    .brand__mark svg {
      width: 28px;
      height: 28px;
      color: var(--ant-cyan);
      filter: drop-shadow(0 0 8px color-mix(in srgb, var(--ant-cyan) 30%, transparent));
    }

    .brand__mark img {
      height: 28px;
      width: auto;
      display: block;
      border-radius: 6px;
    }

    .brand__name {
      font-weight: 700;
      font-size: 15px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .brand__divider {
      width: 1px;
      height: 22px;
      background: var(--border);
    }

    .brand__product {
      color: var(--text-2);
      font-size: 14px;
      font-weight: 500;
    }

    .draft-badge {
      font-size: 11px;
      font-family: var(--font-mono);
      color: var(--text-2);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--border);
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.03);
    }

    .draft-badge__dot {
      width: 6px;
      height: 6px;
      background: var(--ant-cyan);
      border-radius: 50%;
      animation: draftPulse 2.4s ease-in-out infinite;
      box-shadow: 0 0 6px var(--ant-cyan);
    }

    @keyframes draftPulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: .45
      }
    }

    .draft-badge__label {
      letter-spacing: 0.02em;
    }

    .topbar__spacer {
      flex: 1;
      min-width: 8px;
    }

    /* GE / EN language toggle — both labels visible, active is bright (matches index) */
    .topbar-lang {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.06em;
      color: var(--text-2);
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border);
      padding: 6px 12px;
      border-radius: 999px;
      transition: border-color 0.2s, color 0.2s;
      white-space: nowrap;
    }

    .topbar-lang:hover {
      color: var(--text);
      border-color: var(--border-2);
    }

    .topbar-lang span {
      transition: color 0.15s;
    }

    .topbar-lang__en,
    .topbar-lang__ka {
      color: var(--text-3);
      min-width: 1.4em;
      text-align: center;
    }

    .topbar-lang__sep,
    .topbar-lang .nav-lang-divider {
      color: var(--text-2);
      opacity: 0.75;
      letter-spacing: 0;
      user-select: none;
      pointer-events: none;
    }

    .topbar-lang .is-active {
      color: var(--text);
      font-weight: 700;
    }

    /* Theme toggle */
    .topbar-theme {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      color: var(--text-2);
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border);
      border-radius: 999px;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    .topbar-theme:hover {
      color: var(--text);
      background: var(--surface-3);
      border-color: var(--border-2);
    }

    /* Primary CTA — "Receive Offer" */
    .topbar-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      height: 34px;
      padding: 0 16px;
      background: var(--ant-cyan);
      color: #040810;
      border-radius: 999px;
      font-weight: 600;
      font-size: 13px;
      letter-spacing: -0.01em;
      box-shadow: 0 4px 14px color-mix(in srgb, var(--ant-cyan) 25%, transparent);
      transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) ease;
      white-space: nowrap;
    }

    .topbar-cta:hover {
      background: color-mix(in srgb, var(--ant-cyan) 90%, #fff);
      transform: translateY(-1px);
      box-shadow: 0 8px 20px color-mix(in srgb, var(--ant-cyan) 40%, transparent);
    }

    .topbar-cta:active {
      transform: translateY(0);
    }

    .topbar-cta svg {
      transition: transform 0.2s;
    }

    .topbar-cta:hover svg {
      transform: translateX(2px);
    }

    /* Compact stack on narrow viewports */
    @media (max-width: 720px) {
      .topbar {
        padding: 12px 14px;
      }

      .topbar__inner {
        flex-wrap: wrap;
        gap: 8px;
      }

      .brand__product {
        display: none;
      }

      .brand__divider {
        display: none;
      }

      .draft-badge {
        font-size: 10px;
        padding: 3px 8px;
      }

      .topbar-cta {
        padding: 0 12px;
        font-size: 12px;
      }

      .topbar-cta span {
        display: none;
      }
    }

    /* Legacy class kept for any stray references */
    .lang-btn,
    .icon-btn {
      background: transparent;
      color: var(--text-2);
      padding: 8px;
      border-radius: 8px;
      transition: color var(--calc-motion-fast) var(--calc-ease-state), background-color var(--calc-motion-fast) var(--calc-ease-state);
    }

    .lang-btn:hover,
    .icon-btn:hover {
      color: var(--text);
      background: var(--surface-3);
    }

    /* მარცხენა მენიუ / ნაბიჯები */
    .steps {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 20px;
      border: 1px solid var(--border);
      border-radius: var(--calc-shell-radius, 20px);
    }

    .steps__head {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--text-3);
      margin-bottom: 12px;
      font-family: var(--font-mono);
    }

    .step {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid transparent;
      background: transparent;
      transition: opacity var(--motion-fast) ease, color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-base) var(--ease-out);
      text-align: left;
      opacity: 0.48;
      cursor: not-allowed;
    }

    .step.is-active {
      border-color: color-mix(in srgb, var(--ant-cyan) 22%, transparent);
      background: color-mix(in srgb, var(--ant-cyan) 7%, var(--surface));
      opacity: 1;
      cursor: default;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .step.is-clickable:not(.is-active) {
      opacity: 0.78;
      cursor: pointer;
    }

    .step.is-clickable:not(.is-active):hover {
      opacity: 1;
      background: rgba(255, 255, 255, 0.03);
      border-color: rgba(148, 163, 184, 0.16);
    }

    .step__num {
      width: 28px;
      height: 28px;
      border-radius: 9px;
      background: color-mix(in srgb, var(--surface-2) 80%, transparent);
      border: 1px solid var(--border);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      font-family: var(--font-mono);
      color: var(--text-3);
      flex-shrink: 0;
      transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-base) var(--ease-out);
    }

    .step.is-active .step__num {
      background: color-mix(in srgb, var(--ant-cyan) 18%, var(--surface));
      border-color: color-mix(in srgb, var(--ant-cyan) 45%, transparent);
      color: var(--ant-cyan);
      box-shadow: none;
    }

    .step.is-done .step__num {
      background: color-mix(in srgb, var(--ant-cyan) 12%, var(--surface));
      border-color: color-mix(in srgb, var(--ant-cyan) 28%, transparent);
      color: var(--ant-cyan);
    }

    .step__body {
      min-width: 0;
      overflow-wrap: break-word;
      word-break: break-word;
    }

    .step__title {
      font-weight: 600;
      color: var(--text);
      font-size: 14px;
      line-height: 1.3;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: break-word;
    }

    .step__sub {
      font-size: 11px;
      color: var(--text-2);
      margin-top: 2px;
      white-space: normal;
      word-break: break-word;
    }

    /* ცენტრალური შიგთავსი */
    .step-head {
      margin-bottom: 16px;
    }

    .step-head__eyebrow {
      font-size: var(--fs-2xs);
      color: var(--ant-cyan);
      font-family: var(--font-mono);
      margin-bottom: 8px;
      letter-spacing: var(--tracking-label);
    }

    .step-head__title {
      font-size: clamp(22px, 2.2vw, 28px);
      font-weight: 680;
      letter-spacing: -0.03em;
      line-height: 1.25;
      margin: 0 0 10px 0;
      color: var(--text);
    }

    .step-head__sub {
      color: var(--text-2);
      margin: 0;
      font-size: 14px;
      line-height: 1.55;
      max-width: 48ch;
    }

    /* ბარათები (კამერები, ტიპები) */
    .site-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(var(--grid-col-min), 1fr));
      gap: var(--gap-tight);
    }

    /* Quality-tier cards (basic/std/prem) had no layout rule at all — they were
       falling back to normal block stacking (each full-width, one per row),
       forcing a tall page and unnecessary scrolling. Row of 3 on tablet/desktop,
       collapses to 1 column only on narrow phones. */
    .tier-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gap-tight);
    }

    @media (max-width: 640px) {
      .tier-cards {
        grid-template-columns: 1fr;
      }
    }

    .site-card {
      padding: 16px 18px;
      border-radius: var(--calc-card-radius, 16px);
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)), var(--surface);
      backdrop-filter: blur(16px) saturate(110%);
      -webkit-backdrop-filter: blur(16px) saturate(110%);
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      text-align: left;
      position: relative;
      overflow: hidden;
      transition: transform 0.24s var(--ease-out),
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.24s var(--ease-out);
      transform: translateZ(0);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .site-card::before {
      content: none;
    }

    .site-card:hover:not(.is-active) {
      border-color: color-mix(in srgb, var(--ant-cyan) 28%, var(--border));
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)), var(--surface-2);
      transform: translateY(-2px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .site-card:active:not(.is-active) {
      transform: translateY(-1px) scale(0.995);
    }

    .site-card.is-active {
      border-color: color-mix(in srgb, var(--ant-cyan) 55%, transparent);
      background: linear-gradient(145deg, color-mix(in srgb, var(--ant-cyan) 10%, transparent), color-mix(in srgb, var(--ant-cyan) 2%, transparent)), var(--surface);
      box-shadow: var(--elevation-active, 0 0 0 1px color-mix(in srgb, var(--ant-cyan) 40%, transparent), 0 12px 32px color-mix(in srgb, var(--ant-cyan) 12%, transparent));
      transform: translateY(-1px);
    }

    .site-card__name {
      font-weight: 650;
      font-size: var(--fs-md, 15.5px);
      line-height: 1.35;
      color: var(--text);
      margin-bottom: 4px;
      letter-spacing: -0.01em;
    }

    .site-card__desc {
      font-size: var(--fs-xs, 13px);
      color: var(--text-2);
      line-height: 1.5;
      letter-spacing: 0.01em;
    }

    /* Counters & Actions */
    .cam-stats {
      display: flex;
      align-items: center;
      gap: 32px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.002)), var(--surface);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      padding: var(--pad-3);
      border-radius: var(--radius-3);
      border: 1px solid var(--border);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .cam-stat__num-row {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-top: 16px;
    }

    .cam-stat__num {
      font-size: 24px;
      font-weight: 700;
      width: 40px;
      text-align: center;
      font-family: var(--font-tele);
      font-variant-numeric: tabular-nums;
    }

    .cam-stat__btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid var(--border-2);
      background: var(--surface-3);
      color: var(--text);
      font-size: 20px;
      display: grid;
      place-items: center;
      transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-base) var(--ease-out);
    }

    .cam-stat__btn:hover {
      background: var(--border);
      border-color: rgba(255, 255, 255, 0.2);
      transform: scale(1.05);
    }

    .cam-total {
      margin-top: 24px;
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 18px;
      color: var(--text-2);
    }

    .cam-total b {
      font-size: 24px;
      color: var(--text);
    }

    .actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-top: 32px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
      position: relative;
      z-index: 10;
    }

    /* Slider & Range */
    input[type="range"] {
      --fill: 0%;
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      background: transparent;
      height: 6px;
      border-radius: 3px;
      outline: none;
      transition: background 0.2s ease;
    }

    input[type="range"]::-webkit-slider-runnable-track {
      width: 100%;
      height: 6px;
      background: linear-gradient(to right, var(--color-accent-cyan) var(--fill), rgba(51, 65, 85, 0.25) var(--fill));
      border: 1px solid var(--border);
      border-radius: 3px;
    }

    html.light-mode input[type="range"]::-webkit-slider-runnable-track {
      background: linear-gradient(to right, var(--color-accent-cyan) var(--fill), rgba(15, 23, 42, 0.08) var(--fill));
    }

    input[type="range"]::-moz-range-track {
      width: 100%;
      height: 6px;
      background: rgba(51, 65, 85, 0.25);
      border: 1px solid var(--border);
      border-radius: 3px;
    }

    input[type="range"]::-moz-range-progress {
      height: 6px;
      background: var(--color-accent-cyan);
      border-radius: 3px 0 0 3px;
    }

    html.light-mode input[type="range"]::-moz-range-track {
      background: rgba(15, 23, 42, 0.08);
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 20px;
      height: 20px;
      background: var(--color-accent-cyan);
      border: 1px solid #FFFFFF;
      border-radius: 50%;
      cursor: pointer;
      margin-top: -8px;
      box-shadow: 0 0 10px color-mix(in srgb, var(--color-accent-cyan) 80%, transparent), inset 0 1px 2px rgba(255, 255, 255, 0.4);
      transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    input[type="range"]::-webkit-slider-thumb:hover {
      transform: scale(1.2);
    }

    input[type="range"]::-moz-range-thumb {
      width: 16px;
      height: 16px;
      background: var(--color-accent-cyan);
      border: 1px solid #FFFFFF;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 0 10px color-mix(in srgb, var(--color-accent-cyan) 80%, transparent), inset 0 1px 2px rgba(255, 255, 255, 0.4);
      transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    input[type="range"]::-moz-range-thumb:hover {
      transform: scale(1.2);
    }

    /* Slider + step buttons in one compact row — track shrinks to make room
       for the -/+ buttons at each end instead of adding them alongside a
       full-width slider. */
    .slider-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .slider-row input[type="range"] {
      flex: 1;
      min-width: 0;
    }

    .slider-step-btn {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      padding: 0;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text-2);
      font-size: 16px;
      font-weight: 700;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-base) var(--ease-out);
    }

    .slider-step-btn:hover:not(:disabled) {
      border-color: var(--ant-cyan);
      color: var(--ant-cyan);
      background: var(--surface-3);
    }

    .slider-step-btn:active:not(:disabled) {
      transform: scale(0.92);
    }

    .slider-step-btn:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }

    /* მარჯვენა მენიუ / ფინანსები */
    .manifest {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.002)), var(--surface);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      padding: var(--pad-3) var(--pad-2);
      border-radius: var(--radius-3);
      border: 1px solid var(--border);
      height: fit-content;
      display: flex;
      flex-direction: column;
      gap: var(--gap-grid);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .manifest__title {
      font-size: var(--fs-lg);
      font-weight: 600;
      margin-bottom: 4px;
    }

    .manifest__sub {
      font-size: 12px;
      color: var(--text-2);
    }

    .mblock__head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.05em;
      color: var(--text-3);
      text-transform: uppercase;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }

    .mrow {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: var(--fs-sm);
      margin-bottom: var(--gap-tight);
      color: var(--text-2);
      min-height: var(--row-h);
    }

    .mrow__val {
      color: var(--text);
      font-weight: 500;
      text-align: right;
      font-family: var(--font-tele);
      font-variant-numeric: tabular-nums;
    }

    .auto-chip {
      font-size: 9px;
      background: color-mix(in srgb, var(--ant-cyan) 15%, transparent);
      color: var(--ant-cyan);
      padding: 2px 6px;
      border-radius: 4px;
      border: 1px solid var(--ant-cyan);
      margin-left: 6px;
    }

    .total-card {
      margin-top: 8px;
      padding-top: 24px;
      border-top: 1px dashed var(--border);
    }

    .total-card__label {
      font-size: 14px;
      color: var(--text-2);
      margin-bottom: 8px;
    }

    .total-card__num {
      font-size: 28px;
      font-weight: 700;
      color: #ffffff;
      text-shadow: 0 0 24px color-mix(in srgb, var(--ant-cyan) 40%, transparent);
      font-variant-numeric: tabular-nums;
      font-family: var(--font-tele);
    }

    .total-card__currency {
      font-size: 20px;
      margin-left: 4px;
    }

    /* Progress Bar */
    .progress {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 32px;
      font-size: 12px;
      color: var(--text-2);
      font-family: var(--font-mono);
    }

    .progress__bar {
      flex: 1;
      height: 4px;
      background: var(--border);
      border-radius: 2px;
      overflow: hidden;
    }

    .progress__fill {
      height: 100%;
      background: var(--ant-cyan);
      transform-origin: left;
      transition: transform 0.3s;
    }

    /* Premium Quote Layout (Stripe/Vercel style) */
    :root {
      --radius-card: 20px;
      --border-strong: rgba(255, 255, 255, .08);
      --border-soft: rgba(255, 255, 255, .06);
    }

    .quote-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) 320px;
      gap: var(--gap-grid);
      align-items: start;
      margin-top: 16px;
    }

    @media (max-width: 1024px) {
      .quote-layout {
        grid-template-columns: 1fr;
        gap: 24px;
      }
    }

    .proposal-shell {
      background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)) padding-box, linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)) border-box;
      border: 1px solid transparent;
      border-radius: var(--radius-3);
      box-shadow: 0 1px 2px rgba(0, 0, 0, .24), 0 18px 44px rgba(0, 0, 0, .20);
      padding: var(--pad-3);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }

    @media (max-width: 768px) {
      .proposal-shell {
        padding: 24px;
      }
    }

    .quote-section {
      padding-block: 18px;
    }

    .quote-section+.quote-section {
      border-top: 1px solid var(--border-soft);
    }

    .line-item {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 10px 0;
    }

    .line-item+.line-item {
      border-top: 1px solid var(--border-soft);
    }

    .summary-rail {
      position: sticky;
      top: 88px;
      align-self: start;
      display: flex;
      flex-direction: column;
      gap: var(--gap-grid);
    }

    .quote-total {
      font-size: 32px;
      line-height: 0.96;
      letter-spacing: -0.035em;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      font-family: var(--font-tele);
      color: #ffffff;
      text-shadow: 0 0 32px color-mix(in srgb, var(--ant-cyan) 35%, transparent);
    }

    .quote-currency {
      font-size: 0.72em;
      opacity: 0.9;
      vertical-align: baseline;
      margin-left: 6px;
      font-family: var(--font-sans, "Inter", "Noto Sans Georgian", system-ui, sans-serif);
      font-weight: 700;
    }

    .quote-kicker {
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-weight: 600;
      color: rgba(255, 255, 255, .46);
      margin-bottom: 8px;
    }

    .line-title {
      font-size: var(--fs-sm);
      font-weight: 550;
      color: rgba(255, 255, 255, .92);
    }

    .line-meta {
      font-size: var(--fs-xs);
      line-height: 1.45;
      color: rgba(255, 255, 255, .58);
      font-family: var(--font-tele);
      font-variant-numeric: tabular-nums;
    }

    .quote-meta-strip {
      font-size: 12px;
      color: rgba(255, 255, 255, .58);
      font-family: var(--font-tele);
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .quote-meta-strip span {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-variant-numeric: tabular-nums;
    }

    .quote-meta-strip span:not(:last-child)::after {
      content: "·";
      color: rgba(255, 255, 255, .2);
    }

    .trust-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .trust-item {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: rgba(255, 255, 255, .58);
    }

    .trust-item svg {
      width: 14px;
      height: 14px;
      color: var(--ant-cyan);
      opacity: 0.6;
      flex-shrink: 0;
    }

    .price-lock-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 12px;
      padding: 6px 10px;
      border-radius: var(--radius-2);
      background: color-mix(in srgb, var(--color-warning) 10%, transparent);
      border: 1px solid color-mix(in srgb, var(--color-warning) 30%, transparent);
      font-size: var(--fs-xs);
      color: rgba(255, 255, 255, .68);
    }

    .price-lock-badge #countdown-timer {
      font-family: var(--font-tele);
      font-variant-numeric: tabular-nums;
      font-weight: 700;
      margin-left: 4px;
    }

    /* Success panel — a real card instead of bare h3+p floating in the summary rail */
    .quote-success-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 24px;
      border-radius: var(--radius-2);
      border: 1px solid var(--calc-border-default);
      /* var(--surface) here dropped a near-black panel inside the quote card at
         the very end of the flow. */
      background: linear-gradient(180deg, color-mix(in srgb, var(--ant-cyan) 5%, transparent), color-mix(in srgb, var(--ant-cyan) 1%, transparent)), var(--calc-surface-subtle);
    }

    .quote-success-state h3 {
      font-size: var(--fs-lg);
      font-weight: 600;
      color: var(--text);
      margin: 0 0 6px;
    }

    .quote-success-state p {
      font-size: var(--fs-sm);
      color: var(--text-2);
      margin: 0;
      line-height: 1.5;
    }

    /* No separate entrance animation here — the parent .quote-success-state already
       fades/scales in as a unit (inline priceReveal, dynamically delayed from JS
       based on BOM item count), so a second independently-timed animation on just
       the icon would run to completion before the panel is even visible. */
    .success-icon-wrap {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--ant-cyan);
      background: color-mix(in srgb, var(--ant-cyan) 12%, transparent);
      box-shadow: 0 0 0 1px color-mix(in srgb, var(--ant-cyan) 20%, transparent);
      margin-bottom: 14px;
    }

    .success-icon-wrap svg {
      width: 22px;
      height: 22px;
    }

    /* Input overlays matching home page */
    .input,
    select,
    textarea {
      background: rgba(255, 255, 255, 0.03) !important;
      border: 1px solid var(--border) !important;
      border-radius: 8px !important;
      color: var(--text) !important;
      font-family: var(--font-sans) !important;
      font-size: 14px !important;
      padding: 10px 12px !important;
      width: 100% !important;
      transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease !important;
      -webkit-appearance: none !important;
      appearance: none !important;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }

    .input:focus,
    select:focus,
    textarea:focus {
      outline: none !important;
      border-color: var(--color-accent-cyan) !important;
      background: var(--surface-2) !important;
      box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent-cyan) 50%, transparent), inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    }

    html.light-mode .input:focus,
    html.light-mode select:focus,
    html.light-mode textarea:focus {
      background: var(--color-surface) !important;
      box-shadow: 0 0 0 1px var(--color-accent-cyan), inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    }

    select option {
      background-color: #090e17 !important;
      color: #ffffff !important;
    }

    html.light-mode select option {
      background-color: #ffffff !important;
      color: #0F172A !important;
    }

    /* Quote submit — same brand gradient as landing nav-contact-cta */
    .btn-cta-primary {
      background: linear-gradient(128deg, rgba(24, 92, 176, 0.9) 0%, rgba(64, 74, 148, 0.84) 48%, rgba(135, 67, 82, 0.86) 100%);
      color: #fff;
      border-radius: 999px;
      min-height: 48px;
      font-weight: 700;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) ease, filter var(--motion-fast) ease;
      border: 1px solid rgba(220, 231, 255, 0.28);
      cursor: pointer;
      width: 100%;
      letter-spacing: -0.01em;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px rgba(33, 50, 102, 0.22);
    }

    .btn-cta-primary:hover {
      color: #fff;
      filter: brightness(1.08) saturate(1.06);
      transform: translateY(-1px);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 28px rgba(45, 39, 98, 0.28);
    }

    .quote-secondary-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin-top: 8px;
    }

    .btn-link-quiet {
      background: transparent;
      color: rgba(255, 255, 255, .46);
      font-size: 13px;
      border: none;
      cursor: pointer;
      transition: color 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px;
    }

    .btn-link-quiet:hover {
      color: rgba(255, 255, 255, .92);
    }

    .btn-link-quiet svg {
      width: 14px;
      height: 14px;
    }

    /* Misc Helpers */
    .toggle-row {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 20px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--surface);
      cursor: pointer;
      transition: border-color var(--motion-base) ease, background-color var(--motion-base) ease, transform var(--motion-base) var(--ease-out);
    }

    .toggle-row:hover:not(.is-on) {
      background: var(--surface-3);
      border-color: var(--border-2);
      transform: translateY(-1px);
    }

    .toggle-row.is-on {
      border-color: var(--ant-cyan);
      box-shadow: 0 0 0 1px color-mix(in srgb, var(--ant-cyan) 30%, transparent), 0 8px 22px color-mix(in srgb, var(--ant-cyan) 10%, transparent);
    }

    .switch {
      width: 44px;
      height: 24px;
      background: var(--border-2);
      border-radius: 12px;
      position: relative;
      margin-left: auto;
      transition: background 0.32s var(--ease-smooth);
    }

    .switch__knob {
      width: 18px;
      height: 18px;
      background: #fff;
      border-radius: 50%;
      position: absolute;
      top: 2px;
      left: 2px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
      transition: transform var(--calc-motion-state) var(--calc-ease-out),
        background-color var(--calc-motion-fast) var(--calc-ease-state);
    }

    .toggle-row.is-on .switch {
      background: var(--ant-cyan);
    }

    .toggle-row.is-on .switch__knob {
      transform: translateX(20px);
      background: #06231F;
      box-shadow: 0 0 12px color-mix(in srgb, var(--ant-cyan) 55%, transparent), 0 2px 6px rgba(0, 0, 0, 0.25);
    }

    @keyframes stepEnterRight {
      from {
        opacity: 0;
        transform: translateX(var(--motion-distance-sm));
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes stepEnterLeft {
      from {
        opacity: 0;
        transform: translateX(calc(var(--motion-distance-sm) * -1));
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes stepFadeIn {
      from {
        opacity: 0;
        transform: translateY(8px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .step-enter--forward {
      animation: stepEnterRight var(--motion-route) var(--ease-smooth) both;
    }

    .step-enter--backward {
      animation: stepEnterLeft var(--motion-route) var(--ease-smooth) both;
    }

    .step-enter--fade {
      animation: stepFadeIn var(--motion-route) var(--ease-smooth) both;
    }

    .manifest-enter {
      animation: stepFadeIn var(--motion-route) var(--ease-smooth) both;
    }

    .mval {
      font-variant-numeric: tabular-nums;
      display: inline-block;
      transition: color 0.25s ease, text-shadow 0.4s ease;
    }

    .mval.is-tweening {
      color: var(--ant-cyan);
      text-shadow: 0 0 10px rgba(77, 217, 194, 0.35);
    }

    .total-card__num .mval {
      transition: color var(--motion-fast) ease, text-shadow var(--motion-fast) ease;
    }

    .total-card__num .mval.is-tweening {
      filter: brightness(1.18);
      text-shadow: 0 0 16px rgba(77, 217, 194, 0.5);
    }

    /* ── Zone picker grid overrides ── */
    .zone-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: var(--pad-2) var(--pad-1) !important;
      border-radius: var(--radius-2) !important;
      border: 1px solid var(--border) !important;
      background: var(--surface) !important;
      cursor: pointer;
      text-align: center;
      transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-base) var(--ease-out), opacity var(--motion-fast) ease !important;
      gap: 4px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    }

    .zone-card:hover:not(.is-active) {
      border-color: rgba(255, 255, 255, 0.12) !important;
      background: var(--surface-3) !important;
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    }

    .zone-card.is-active {
      border-color: var(--ant-cyan) !important;
      background: linear-gradient(180deg, color-mix(in srgb, var(--ant-cyan) 6%, transparent), color-mix(in srgb, var(--ant-cyan) 1%, transparent)), var(--surface) !important;
      box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ant-cyan) 15%, transparent), 0 0 0 1px var(--ant-cyan), 0 8px 24px color-mix(in srgb, var(--ant-cyan) 12%, transparent) !important;
    }

    /* "Most popular" pill — sits on the card's top edge instead of a full-width bar */
    .tier-card__badge {
      position: absolute;
      top: -9px;
      right: 16px;
      padding: 3px 10px;
      border-radius: 999px;
      background: var(--ant-cyan);
      color: #000;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      box-shadow: 0 4px 12px color-mix(in srgb, var(--ant-cyan) 30%, transparent);
      z-index: 3;
    }

    html.light-mode .step-head__title {
      color: var(--text);
    }

    /* ── Zone presets overrides ── */
    .zone-preset-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px !important;
      border-radius: 20px !important;
      border: 1px solid var(--border) !important;
      background: var(--surface) !important;
      font-size: 12px;
      font-weight: 500;
      color: var(--text) !important;
      cursor: pointer;
      transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-base) var(--ease-out) !important;
      white-space: nowrap;
    }

    .zone-preset-btn:hover {
      border-color: rgba(255, 255, 255, 0.1) !important;
      background: var(--surface-3) !important;
    }

    .zone-preset-btn.is-active {
      border-color: var(--ant-cyan) !important;
      background: color-mix(in srgb, var(--ant-cyan) 8%, transparent) !important;
      color: var(--ant-cyan) !important;
    }

    @media (prefers-reduced-motion: reduce) {

      .step-enter--forward,
      .step-enter--backward,
      .step-enter--fade,
      .manifest-enter {
        animation: none;
      }

      .site-card,
      .tier-row,
      .obj-type-card,
      .btn,
      .switch__knob {
        transition-duration: 0.1s !important;
      }

      #calc-boot-loader,
      .boot-logo,
      .boot-spinner {
        animation: none !important;
      }
    }

    /* Premium Organic Micro-interactions */
    a,
    button,
    .cyber-card,
    .faq-accordion,
    .topbar-cta,
    .btn-cta-primary,
    .site-card,
    .tier-row,
    .obj-type-card,
    .zone-card,
    .tier-card,
    .card,
    .zone-preset-btn {
      transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-base) var(--ease-out), opacity var(--motion-fast) ease !important;
    }

    .site-card:hover,
    .tier-row:hover,
    .obj-type-card:hover,
    .zone-card:hover,
    .tier-card:hover,
    .zone-preset-btn:hover,
    .card:hover,
    .cyber-card:hover {
      transform: translateY(-2px) scale(1.005) !important;
      border-color: color-mix(in srgb, var(--color-accent-cyan) 40%, transparent) !important;
    }

    /* Premium B2B Overhaul */
    h1, h2, h3, h4, h5, h6,
    .font-display,
    .step-title,
    .card-title,
    .tier-title,
    .c-title,
    .c-step-title,
    .c-r-title,
    .c-q-title {
      font-family: 'Inter', 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
      letter-spacing: -0.025em !important;
    }

    .btn-primary,
    .btn-cta-primary,
    .topbar-cta,
    .c-btn-next,
    .bg-teal {
      background: var(--ant-cyan) !important;
      color: var(--color-accent-cta) !important;
      box-shadow: 0 4px 14px color-mix(in srgb, var(--ant-cyan) 25%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
      border: none !important;
    }

    .btn-primary:hover,
    .btn-cta-primary:hover,
    .topbar-cta:hover, /* This is handled by a more specific rule earlier, but we'll keep it consistent */
    .c-btn-next:hover,
    .bg-teal:hover {
      background: color-mix(in srgb, var(--ant-cyan) 90%, #fff) !important;
      box-shadow: 0 0 20px color-mix(in srgb, var(--ant-cyan) 30%, transparent), 0 8px 24px color-mix(in srgb, var(--ant-cyan) 20%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    }

    /* Satin Card Structure */
    .satin-card {
      background: rgba(9, 10, 11, 0.8);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.055);
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    }

    /* Marquee Track Hardware Acceleration */
    .marquee-track {
      transform: translate3d(0, 0, 0);
      will-change: transform;
      backface-visibility: hidden;
    }

    /* Cyber OS Desktop Frame Styling */
    .cyber-os-frame {
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 16px;
      box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.02);
      overflow: hidden;
    }

    .cyber-os-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      background: #08090b;
      border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    }

    .cyber-os-body {
      background-color: #040506 !important;
    }

    /* Responsiveness decoupling for narrow viewports */
    @media (max-width: 768px) {
      .cyber-os-frame {
        border-radius: 12px;
      }
      .cyber-os-body {
        padding: 16px 12px !important;
      }
      .cyber-os-body .grid {
        gap: 16px !important;
      }
      .cyber-os-body form {
        gap: 16px !important;
      }
    }

    /* Card Spotlight Highlight Border */
    .spotlight-card {
      position: relative;
    }
    .spotlight-card::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      padding: 1px;
      background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), color-mix(in srgb, var(--ant-cyan) 22%, transparent), transparent 45%);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
      z-index: 2;
    }
    .spotlight-card::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), color-mix(in srgb, var(--ant-cyan) 2%, transparent), transparent 45%);
      pointer-events: none;
      z-index: 1;
    }

/* --- Unified Matrix Architecture (Zoom-Inspired) --- */
.matrix-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: var(--content-wide);
  margin: 32px auto;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .matrix-container {
    grid-template-columns: 1fr !important; /* Stack columns vertically on tablets/mobile */
    gap: 20px !important;
    padding: 0 16px;
  }
  
  .category-card {
    padding: 20px !important;
  }

  .badge-recommended {
    top: -10px !important;
  }
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.2s ease;
}

.category-card.featured {
  border-color: var(--ant-cyan);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ant-cyan) 15%, transparent);
}

.category-card:hover {
  transform: translateY(calc(var(--motion-distance-xs) * -1));
  border-color: color-mix(in srgb, var(--ant-cyan) 40%, transparent);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.badge-recommended {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ant-cyan);
  color: #0B0F17;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--ant-cyan) 25%, transparent);
}

.category-card h3 {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0 6px 0;
  line-height: 1.3;
}

.card-meta {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.inline-counters {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.counter-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.counter-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

/* Lock dimensions to isolate layout reflow entirely */
.counter-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px !important;
  height: 34px !important; /* Strictly lock vertical height */
  width: 104px !important; /* Strictly lock horizontal width */
  overflow: hidden !important; /* Prevents text animation from leaking and pushing borders */
}

.counter-controls button {
  background: transparent !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 16px !important;
  color: var(--text-2);
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.counter-controls button:hover {
  background: var(--ant-cyan);
  color: #0B0F17;
}

/* Hardened Jitter-Free Input Typography */
.counter-input {
  width: 40px !important;
  height: 32px !important;
  border: none !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text);
  background: transparent !important;
  outline: none !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  line-height: 32px !important; /* Match heights exactly to prevent vertical jumping */
  /* Critical Jitter Fixes */
  font-variant-numeric: tabular-nums !important; /* Forces uniform digit sizing */
  transform-origin: center center !important;
  will-change: transform, opacity !important;
  -moz-appearance: textfield;
}

.counter-input::-webkit-outer-spin-button,
.counter-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Light Mode Overrides */
html.light-mode .category-card {
  background: #FFFFFF;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 6%, transparent);
  box-shadow: 0 4px 18px rgba(142, 155, 172, 0.08);
}

html.light-mode .category-card.featured {
  border-color: color-mix(in srgb, var(--ant-cyan) 20%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ant-cyan) 6%, transparent);
}

html.light-mode .category-card:hover {
  border-color: color-mix(in srgb, var(--ant-cyan) 25%, transparent);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--ant-cyan) 10%, transparent);
}

html.light-mode .badge-recommended {
  background: var(--ant-cyan);
  color: #FFFFFF;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--ant-cyan) 25%, transparent);
}

html.light-mode .category-card h3 {
  color: var(--text);
}

html.light-mode .card-meta {
  color: #4A5568;
}

html.light-mode .inline-counters {
  background: var(--surface-2);
}

html.light-mode .counter-group .counter-label {
  color: var(--text);
}

html.light-mode .counter-controls {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}

html.light-mode .counter-controls button {
  color: #4A5568 !important;
}

html.light-mode .counter-controls button:hover {
  background: var(--surface-2);
  color: var(--ant-cyan);
}

html.light-mode .counter-input {
  color: var(--text) !important;
}

/* --- Zone Wizard ("how many cameras do I need?") --- */
.zone-wizard {
  background: var(--calc-surface);
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-shell-radius, 16px);
  padding: 20px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.zone-wizard__head h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}
.zone-wizard__head p {
  font-size: 12.5px;
  color: var(--text-2);
  margin: 0;
}

.zone-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.zone-presets__label {
  font-size: 11.5px;
  color: var(--text-3);
  margin-right: 2px;
}
.zone-preset-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.zone-preset-btn:hover {
  background: var(--ant-cyan);
  border-color: var(--ant-cyan);
  color: #0B0F17;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.zone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  cursor: pointer;
  color: var(--text-2);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.zone-card:hover {
  border-color: color-mix(in srgb, var(--ant-cyan) 40%, transparent);
}
.zone-card.is-active {
  border-color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface-2));
  color: var(--text);
}
.zone-card__icon {
  width: 20px;
  height: 20px;
  color: var(--ant-cyan);
}
.zone-card__icon svg { width: 100%; height: 100%; }
.zone-card__name {
  font-size: 12.5px;
  font-weight: 600;
}
.zone-card__desc {
  font-size: 11px;
  color: var(--text-3);
}
.zone-card__counter {
  margin-top: 4px;
  cursor: default;
}

.zone-tier-info {
  cursor: default;
}
.zone-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 35%, transparent);
  color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 8%, transparent);
}
.zone-tier-badge::-webkit-details-marker { display: none; }
.zone-tier-badge::after {
  content: '▾';
  font-size: 8px;
  transition: transform 0.15s ease;
}
.zone-tier-info[open] .zone-tier-badge::after {
  transform: rotate(180deg);
}
.zone-tier-panel {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-2);
}
.zone-tier-row + .zone-tier-row {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.zone-tier-row__label {
  font-weight: 700;
  color: var(--text);
}
.zone-tier-row--safe .zone-tier-row__label {
  color: var(--ant-cyan);
}
.zone-tier-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 10px;
}
.zone-tier-pill--safe {
  border-color: color-mix(in srgb, var(--ant-cyan) 45%, transparent);
  color: var(--ant-cyan);
}
.zone-tier-example {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
}

.zone-summary {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ant-cyan);
}
.zone-summary--empty {
  color: var(--text-3);
  font-weight: 500;
}

/* The --calc-* ramp already flips with the theme, so these only need to exist
   for the components that are not yet on it. #FFFFFF/#4A5568/#E2E8F0/#94A3B8
   were pure-white and slate literals that clashed with the warm cream surface. */
html.light-mode .zone-preset-btn { background: var(--calc-surface-subtle); border-color: var(--calc-border-default); color: var(--calc-text-secondary); }

/* --- DORI / pixel-density preview --- */
.dori-preview, .poe-budget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dori-preview__head h3, .poe-budget__head h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 3px;
}
.dori-preview__head p, .poe-budget__head p {
  font-size: 11.5px;
  color: var(--text-3);
  margin: 0;
}

.dori-chips, .poe-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dori-chip, .poe-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dori-chip:hover, .poe-chip:hover { border-color: color-mix(in srgb, var(--ant-cyan) 40%, transparent); }
.dori-chip.is-active, .poe-chip.is-active {
  background: var(--ant-cyan);
  border-color: var(--ant-cyan);
  color: #0B0F17;
}

.dori-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dori-col {
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px;
}
.dori-col__tier {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.dori-col__level {
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 2px;
}
.dori-col__level--identify, .dori-col__level--recognize { color: var(--ant-cyan); }
.dori-col__level--observe { color: #F0B429; }
.dori-col__level--detect, .dori-col__level--none { color: var(--text-3); }
.dori-col__outcome {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.35;
}
.dori-col--selected {
  border-color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface-2));
}
.dori-col__select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dori-col__select:hover { border-color: var(--ant-cyan); color: var(--ant-cyan); }
.dori-col__select.is-active {
  background: var(--ant-cyan);
  border-color: var(--ant-cyan);
  color: #0b0d12;
  cursor: default;
}

/* --- PoE budget bar + cable-run check --- */
.poe-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.poe-bar__fill {
  height: 100%;
  width: 100%;
  background: var(--ant-cyan);
  border-radius: 999px;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform var(--motion-base) var(--ease-out);
}
.poe-bar__fill.is-over { background: #E5484D; }
.poe-bar__label {
  font-size: 11.5px;
  color: var(--text-2);
  font-family: var(--font-mono);
}
.poe-bar__label.is-over { color: #E5484D; font-weight: 600; }

.poe-run { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.poe-run__label { font-size: 12px; color: var(--text-2); }
.poe-run__warn {
  font-size: 11.5px;
  color: #E5484D;
  background: color-mix(in srgb, #E5484D 10%, transparent);
  border: 1px solid color-mix(in srgb, #E5484D 30%, transparent);
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.4;
}

.spec-range { color: var(--text-3); font-size: 10px; }

html.light-mode .dori-preview, html.light-mode .poe-budget { background: #FFFFFF; }
html.light-mode .dori-preview__head h3, html.light-mode .poe-budget__head h3 { color: var(--text); }
html.light-mode .dori-preview__head p, html.light-mode .poe-budget__head p { color: #94A3B8; }
html.light-mode .dori-chip, html.light-mode .poe-chip { background: var(--surface-2); border-color: #E2E8F0; color: #4A5568; }
html.light-mode .dori-col { background: var(--surface-2); border-color: #E2E8F0; }
html.light-mode .dori-col__outcome { color: #4A5568; }
html.light-mode .dori-col--selected { background: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface-2)); border-color: var(--ant-cyan); }
html.light-mode .dori-col__select { border-color: #E2E8F0; color: #4A5568; }
html.light-mode .dori-col__select:hover { border-color: var(--ant-cyan); color: var(--ant-cyan); }
html.light-mode .dori-col__select.is-active { background: var(--ant-cyan); border-color: var(--ant-cyan); color: #FFFFFF; }
html.light-mode .poe-bar { background: #E2E8F0; }
html.light-mode .poe-bar__label { color: #4A5568; }
html.light-mode .poe-run__label { color: #4A5568; }
html.light-mode .spec-range { color: #94A3B8; }

/* --- Step 2 technical-info tabs (compare / DORI / PoE) ---
   Collapses 3 previously-stacked full-height panels into 1, since only the
   active tab's panel is displayed — the single biggest lever for fitting
   Step 2 in one screen without scrolling. */
.cams-info-panel { display: flex; flex-direction: column; gap: 0; }
.cams-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.cams-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 4px;
  margin-right: 18px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cams-tab-btn:hover { color: var(--text-2); }
.cams-tab-btn.is-active { color: var(--ant-cyan); border-bottom-color: var(--ant-cyan); }

.cams-tab-panel { display: none; }
.cams-tab-panel.is-active { display: block; }
/* The DORI/PoE panels already carry their own top margin/border as
   standalone cards; strip that when nested inside a tab so they don't
   double up on spacing against the tab bar. */
.cams-tab-panel > .dori-preview,
.cams-tab-panel > .poe-budget {
  margin-top: 0;
  border: none;
  padding: 0;
  background: transparent;
}

html.light-mode .cams-tab-btn { color: #94A3B8; }
html.light-mode .cams-tab-btn:hover { color: #4A5568; }
html.light-mode .cams-tab-btn.is-active { color: var(--ant-cyan); border-bottom-color: var(--ant-cyan); }

/* --- Step 1 object sub-type picker (pharmacy/bank/... + restaurant/clinic/...) --- */
.site-subtype-picker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-subtype-picker__label { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.site-subtype-picker__opts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.site-subtype-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.site-subtype-btn:hover { border-color: color-mix(in srgb, var(--ant-cyan) 40%, transparent); }
.site-subtype-btn.is-active {
  background: var(--ant-cyan);
  border-color: var(--ant-cyan);
  color: #0B0F17;
  font-weight: 600;
}
.site-subtype-clear {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: underline;
}
.site-subtype-clear:hover { color: var(--text-2); }
html.light-mode .site-subtype-picker { background: #FFFFFF; }
html.light-mode .site-subtype-btn { background: var(--surface-2); border-color: #E2E8F0; color: #4A5568; }
html.light-mode .site-subtype-clear { color: #94A3B8; }
html.light-mode .site-subtype-clear:hover { color: #4A5568; }

/* --- RAID selector --- */
/* --- Step 1 "do you know your camera count?" fork --- */
.cams-entry-fork {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cams-entry-fork__q { font-size: 13px; font-weight: 600; color: var(--text); }
.cams-entry-fork__opts { display: flex; gap: 8px; flex-wrap: wrap; }
.cams-entry-fork__btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cams-entry-fork__btn:hover { border-color: color-mix(in srgb, var(--ant-cyan) 40%, transparent); }
.cams-entry-fork__btn.is-active {
  background: var(--ant-cyan);
  border-color: var(--ant-cyan);
  color: #0B0F17;
  font-weight: 600;
}
.cams-manual-hint {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}
html.light-mode .cams-entry-fork, html.light-mode .cams-manual-hint { background: #FFFFFF; }
html.light-mode .cams-entry-fork__q { color: var(--text); }
html.light-mode .cams-entry-fork__btn { background: var(--surface-2); border-color: #E2E8F0; color: #4A5568; }
html.light-mode .cams-manual-hint { color: #4A5568; }

.raid-selector {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.raid-selector__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.raid-options { display: flex; gap: 8px; flex-wrap: wrap; }
.raid-opt-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.raid-opt-btn:hover { border-color: color-mix(in srgb, var(--ant-cyan) 40%, transparent); }
.raid-opt-btn.is-active {
  background: var(--ant-cyan);
  border-color: var(--ant-cyan);
  color: #0B0F17;
  font-weight: 600;
}

/* Calculator action layout modifiers; color and motion come from components.css. */
.next-btn {
  padding: 12px 24px !important;
}

.back-btn {
  background: transparent !important;
  border: none !important;
  color: var(--text-3) !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.back-btn:hover {
  color: var(--text-2) !important;
}

html.light-mode .back-btn {
  color: #718096 !important;
}

html.light-mode .back-btn:hover {
  color: #4A5568 !important;
}

/* Gentle counter transition — plain ease-out fade+slide, no bounce/overshoot,
   so the digit change reads as smooth rather than kinetic. */
@keyframes counterSlideUp {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes counterSlideDown {
  0% { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-count-up {
  animation: counterSlideUp 0.2s ease-out;
}

.animate-count-down {
  animation: counterSlideDown 0.2s ease-out;
}

/* Premium Price Display & Tabular Num Alignment */
.price-display-amount {
  font-variant-numeric: tabular-nums !important; /* Prevents shifting layout layout jitter during price increments */
  transition: transform var(--motion-fast) var(--ease-out);
}

/* One-shot price feedback. No looping shimmer or animated gradient paint. */
@keyframes priceUpdateFeedback {
  0% { opacity: .72; transform: scale(.992); }
  100% { opacity: 1; transform: scale(1); }
}

.price-card-container.updating {
  animation: priceUpdateFeedback var(--calc-motion-feedback) var(--calc-ease-out) both !important;
}

/* Hardware-grade Telemetry Progress Bar Styling */
.telemetry-mini-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 10px;
}

html.light-mode .telemetry-mini-bar {
    background: #E2E8F0;
}

.telemetry-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--ant-cyan), #00C4FF);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform var(--motion-base) var(--ease-out);
}

/* Apple-style Mobile Glassmorphism Floating Action Bar */
@media (max-width: 768px) {
  /* Add safe padding to the main calculator wrapper to prevent fixed bar overlay overlap */
  .main-calculator-wrapper, body {
    padding-bottom: 90px !important;
  }

  .calculator-actions-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(11, 15, 25, 0.75) !important; /* Dark mode glass */
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-top: 1px solid var(--border) !important;
    padding: 16px 24px !important;
    z-index: 2000 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3) !important;
  }

  html.light-mode .calculator-actions-wrapper {
    background: rgba(255, 255, 255, 0.82) !important;
    border-top: 1px solid color-mix(in srgb, var(--ant-cyan) 8%, transparent) !important;
    box-shadow: 0 -8px 32px rgba(142, 155, 172, 0.12) !important;
  }
}

/* Right-Side Summary Layout Tweaks */
.right-summary-card {
  background: var(--calc-surface) !important;
  border: 1px solid var(--calc-border-default) !important;
  border-radius: var(--calc-shell-radius, 16px) !important;
  padding: 24px !important;
  box-shadow: none !important;
}

.right-summary-card .quote-total {
  color: var(--calc-text-primary) !important;
  text-shadow: none !important;
}

/* PDF Download Button Luxury Glow Override */
.pdf-download-btn {
  background: linear-gradient(135deg, var(--ant-cyan), color-mix(in srgb, var(--ant-cyan) 78%, #000)) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  border: none !important;
  padding: 14px 28px !important;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ant-cyan) 25%, transparent) !important;
  transition: background-color var(--motion-fast) ease, transform var(--motion-base) var(--ease-out), opacity var(--motion-fast) ease !important;
}

.pdf-download-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--ant-cyan) 35%, transparent) !important;
}

/* --- Step 4: Power Step --- */
.power-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-base) var(--ease-out), opacity var(--motion-fast) ease;
}
.power-toggle-card:not(.is-disabled):hover {
  border-color: var(--ant-cyan);
  background: var(--surface-2);
}
.power-toggle-card.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.power-toggle-label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
}
.power-toggle-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--surface-3);
  border-radius: 12px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.switch.is-on {
  background: var(--ant-cyan);
}
.switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform var(--calc-motion-state) var(--calc-ease-out);
}
.switch.is-on .switch__knob {
  transform: translateX(20px);
}

.ups-info-card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  opacity: 0.5;
  transition: opacity var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-base) var(--ease-out);
}
.ups-info-card.is-active {
  opacity: 1;
  border-color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 5%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--ant-cyan) 10%, transparent);
}
.ups-info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.ups-info-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
}
.ups-info-card.is-active .ups-info-icon {
  background: color-mix(in srgb, var(--ant-cyan) 10%, transparent);
  color: var(--ant-cyan);
}
.ups-info-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.ups-info-model {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.ups-info-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
}
.ups-info-stat {
  text-align: center;
}
.ups-info-stat-label {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 4px;
}
.ups-info-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ups-info-stat-value span {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

/* --- Visual Evidence Modal (Step 2) --- */

/* Action Link inside Cards */
.btn-view-sample {
  background: transparent !important;
  border: none !important;
  color: var(--ant-cyan) !important; /* Zoom Blue */
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  padding: 4px 0 !important;
  margin-top: 4px !important;
  transition: opacity 0.15s ease !important;
}

.btn-view-sample:hover {
  text-decoration: underline !important;
  opacity: 0.85;
}

/* Global Fixed Backdrop Modal Layer */
body.modal-open { overflow: hidden; }
.quality-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(2, 6, 23, 0.4) !important; /* Muted slate glass effect */
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 9999 !important; /* Overrides everything safely */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.quality-modal-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Premium Kinetic Window Box */
.quality-modal-window {
  background: #FFFFFF !important;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 8%, transparent) !important;
  border-radius: 16px !important;
  width: 90% !important;
  max-width: 580px !important;
  padding: 32px !important;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.16) !important;
  position: relative !important;
  transform: scale(0.98) translateY(var(--motion-distance-sm)) !important;
  transition: transform var(--motion-base) var(--ease-out) !important;
}

.quality-modal-overlay.active .quality-modal-window {
  transform: scale(1) translateY(0) !important;
}

/* Close UI button */
.modal-close-btn {
  position: absolute !important;
  top: 16px !important;
  right: 20px !important;
  background: transparent !important;
  border: none !important;
  font-size: 28px !important;
  color: #94A3B8 !important;
  cursor: pointer !important;
  transition: color 0.15s ease !important;
}

.modal-close-btn:hover {
  color: var(--text) !important;
}

.modal-badge {
  background: color-mix(in srgb, var(--ant-cyan) 6%, transparent) !important;
  color: var(--ant-cyan) !important;
  padding: 4px 10px !important;
  border-radius: 99px !important;
  font-size: 11px !important;
  font-weight: 600;
  display: inline-block !important;
  margin-bottom: 12px !important;
}

.quality-modal-window h4 {
  color: var(--text) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  margin: 0 0 4px 0 !important;
}

.quality-modal-window p {
  color: #4A5568 !important;
  font-size: 13px !important;
  margin: 0 0 20px 0 !important;
}

/* Image Frame Isolation */
.modal-image-wrapper {
  width: 100% !important;
  height: 300px !important;
  background: #F8FAFC !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid #E2E8F0 !important;
  position: relative !important;
}

.modal-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ============================================
   Runtime-injected styles, migrated from
   calculator.js's injectPremiumStyles() — kept
   as static CSS so this can no longer race the
   rest of this file on cascade order.
   ============================================ */
/* Atmosphere is set in the landing-page visual shell (body radials) below.
   Do not force background-image: none here — it kills landing parity. */

/* 1. Smooth Price & Number Transitions */
.mval {
  display: inline-block;
  transition: color var(--motion-fast) ease, transform var(--motion-base) var(--ease-out), background-color var(--motion-fast) ease, text-shadow var(--motion-fast) ease;
  font-variant-numeric: tabular-nums;
}
.mval.is-tweening {
  color: var(--ant-cyan, #00E6B8);
  text-shadow: 0 0 10px rgba(0,230,184,0.32);
}

/* 2. Step-by-Step Page Transitions */
@keyframes stepFadeSmooth { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes calcStepForward { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes calcStepBackward { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.step-enter--fade { animation: stepFadeSmooth var(--calc-motion-route) var(--calc-ease-out) both; }
.step-enter--forward { animation: calcStepForward var(--calc-motion-route) var(--calc-ease-out) both; }
.step-enter--backward { animation: calcStepBackward var(--calc-motion-route) var(--calc-ease-out) both; }
@keyframes bomReveal { from { opacity: 0; transform: translateX(calc(var(--motion-distance-sm) * -1)); } to { opacity: 1; transform: translateX(0); } }
@keyframes priceReveal { from { opacity: 0; transform: translateY(var(--motion-distance-sm)); } to { opacity: 1; transform: translateY(0); } }
.manifest-enter { animation: stepFadeSmooth var(--motion-route) var(--ease-out) forwards; }

/* 3. Tactile Toggle Switch Animation */
.toggle-row .switch {
  position: relative; width: 44px; height: 24px;
  background: var(--color-surface-3, rgba(255,255,255,0.1));
  border-radius: 12px; transition: background-color var(--calc-motion-state) var(--calc-ease-state), border-color var(--calc-motion-state) var(--calc-ease-state);
  border: 1px solid transparent; cursor: pointer; flex-shrink: 0;
}
.toggle-row.is-on .switch { background: var(--color-accent-cyan, #00E6B8); border-color: rgba(255,255,255,0.2); }
.toggle-row .switch__knob {
  position: absolute; top: 1px; left: 1px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform var(--calc-motion-state) var(--calc-ease-out), background-color var(--calc-motion-fast) var(--calc-ease-state);
}
.toggle-row.is-on .switch__knob { transform: translateX(20px); }

/* Card hover/active micro-interactions live earlier in this file (.site-card,
   .obj-type-card, .tier-card, .zone-card, .zone-preset-btn all have their
   own dedicated rules there, including the gradient top-border reveal) —
   this used to duplicate them here (in JS) with different lift/shadow
   values, which raced this file on cascade order. Removed; the rules
   earlier in calc.css are the single source of truth for these selectors. */

/* Inline validation error message */
.calc-inline-error {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 8px;
  background: color-mix(in srgb, var(--color-danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--color-danger) 35%, transparent);
  color: #F87171; font-size: 13px; font-weight: 500;
  animation: errShake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.calc-inline-error.hidden { display: none !important; }
.calc-inline-error::before { content: '⚠'; font-size: 15px; flex-shrink: 0; }
@keyframes spin360 { to { transform: rotate(360deg); } }
@keyframes errShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* Responsive Layout Fixes for Overlap */
@media (max-width: 1199px) {
  .calc-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
  }
  .steps {
    width: 100% !important;
    display: flex;
    overflow-x: auto;
  }
  .manifest { width: 100% !important; }
}

/* --- Premium B2B Overhaul & Kinetic UI --- */

/* --- Step 2: Camera Matrix Kinetic Counters --- */
.counter-controls {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.counter-controls button {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-2);
  font-size: 18px;
  transition: background 0.15s ease, color 0.15s ease;
}

.counter-controls button:hover {
  background: var(--ant-cyan);
  color: #0B0F17;
}

.counter-value-wrapper {
  position: relative;
  width: 36px;
  height: 32px;
  overflow: hidden; /* Keep overflow hidden to clip the animation */
}

/* Scoped to .counter-value-wrapper (the matrix counter's clipping container) only —
   this used to be a bare .counter-input rule, which also matched the unrelated
   .quick-camera-counter-header span counter and knocked it out of flow with
   position:absolute, teleporting its number away from its +/- buttons. */
.counter-value-wrapper .counter-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  line-height: 32px; /* Vertical centering */
  border: none;
  background: transparent;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.counter-value-wrapper .counter-input::-webkit-inner-spin-button,
.counter-value-wrapper .counter-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- Step 2: Comparison Table Tooltips --- */
.spec-label-column {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 13px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tech-tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-trigger {
  width: 16px;
  height: 16px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-1, 4px);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  user-select: none;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-base) var(--ease-out);
}

.tech-tooltip-container:hover .tooltip-trigger {
  background: var(--ant-cyan);
  color: #0B0F17;
  border-color: var(--ant-cyan);
}

.tooltip-content {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  width: 240px;
  background: var(--surface);
  color: var(--text-2);
  padding: 12px 16px;
  border-radius: var(--radius-1, 4px);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 15%;
  border-width: 5px;
  border-style: solid;
  border-color: var(--surface) transparent transparent transparent;
}

.tech-tooltip-container:hover .tooltip-content {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .tooltip-content {
    left: 0;
    transform: translateY(5px);
    width: 180px;
  }
  .tech-tooltip-container:hover .tooltip-content {
    transform: translateY(0);
  }
  .tooltip-content::after {
    left: 8px;
  }
}

/* --- Final page: the quote document ---
   The two columns must be the SAME sheet. They used to be a dark
   `var(--surface)` card next to a hard `#FFFFFF !important` one, which below
   1024px stacked into what read as two separate pages. */
.summary-left-container {
  background: var(--calc-surface);
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-shell-radius, 16px);
  padding: 24px;
  box-shadow: none;
}

.quote-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--calc-border-default);
}
.quote-letterhead__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--calc-text-primary);
  font-size: var(--fs-md, 14px);
  font-weight: 700;
}
.quote-letterhead__brand img { height: 20px; width: auto; display: block; border-radius: 4px; }
.quote-letterhead__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs, 11px);
  color: var(--calc-text-muted);
}
.quote-letterhead__meta span { margin: 0 6px; opacity: .4; }

.quote-disclaimer {
  font-size: var(--fs-xs, 11px);
  color: var(--calc-text-muted);
  text-align: center;
  line-height: 1.5;
}
.bom-list-container {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.summary-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-1, 4px);
  padding: 12px 16px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.summary-item-row:hover {
  background: var(--surface-3);
  border-color: var(--border-2);
}
.row-left-content { display: flex; align-items: center; gap: 12px; }
.summary-item-qty {
  font-family: var(--font-mono);
  color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 10%, transparent);
  padding: 4px 8px;
  border-radius: var(--radius-1, 4px);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.item-title { font-size: 14px; font-weight: 500; color: var(--text); }
.summary-item-subtext { display: block; font-size: 11px; color: var(--text-2); margin-top: 2px; }
.row-right-telemetry { font-family: var(--font-mono); font-size: 13px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-item-row.is-service { background: color-mix(in srgb, var(--ant-purple) 5%, transparent); border-color: color-mix(in srgb, var(--ant-purple) 15%, transparent); }
.summary-item-icon { color: var(--ant-purple); }
.is-service .item-title { color: var(--text); }
.is-service .row-right-telemetry { color: var(--ant-purple); }

/* Landing-page visual shell: keep the estimator logic intact while matching
   the glass navigation, radial backdrop and satin surfaces used site-wide. */
body {
  --calc-shell-max: var(--content-shell);
  --calc-review-max: 1320px;
  --calc-shell-gutter: var(--page-gutter-wide);
  --calc-motion-press: var(--motion-instant);
  --calc-motion-fast: var(--motion-fast);
  --calc-motion-state: var(--motion-base);
  --calc-motion-route: var(--motion-route);
  --calc-motion-feedback: 280ms;
  --calc-motion-number: var(--motion-slow);
  --calc-ease-state: cubic-bezier(0.2, 0, 0.38, 0.9);
  --calc-ease-out: var(--ease-out);
  /* Same radial atmosphere as css/style.css body (single-line for reliable parse) */
  background-color: var(--color-bg) !important;
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.15), transparent), radial-gradient(ellipse 50% 50% at 50% 30%, rgba(56, 189, 248, 0.05), transparent) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  font-family: var(--font-sans);
  letter-spacing: -0.011em;
}

html.light-mode body {
  background-image: radial-gradient(ellipse 80% 46% at 50% -8%, rgba(15, 138, 122, 0.075), transparent 72%), radial-gradient(ellipse 58% 40% at 2% 58%, rgba(196, 132, 26, 0.045), transparent 76%), radial-gradient(ellipse 52% 36% at 98% 76%, rgba(79, 163, 176, 0.05), transparent 78%) !important;
}

.topbar {
  width: 100%;
  padding: 0 clamp(12px, 4vw, 32px) !important;
  border: 0 !important;
  background: linear-gradient(to bottom, rgba(2, 6, 23, .72), transparent) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.topbar__inner {
  position: relative;
  isolation: isolate;
  width: min(100%, var(--calc-shell-max));
  min-height: 64px;
  margin: 16px auto !important;
  padding: 8px 18px;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: linear-gradient(112deg, rgba(4, 8, 26, .84), rgba(33, 83, 176, .49) 55%, rgba(93, 114, 139, .46));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.topbar__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, .22), rgba(207, 216, 227, .08) 30%, transparent 58%);
}

.brand__name { font-size: 13px; font-weight: 800; letter-spacing: .085em; }
.brand__mark img { width: 40px !important; height: 28px !important; border-radius: 0 !important; object-fit: contain; opacity: .86; }
.topbar-lang, .topbar-theme { border-color: transparent; background: transparent; }
.topbar-lang:hover, .topbar-theme:hover { background: rgba(255, 255, 255, .07); border-color: rgba(148, 163, 184, .18); }
.topbar-cta {
  border: 1px solid rgba(220, 231, 255, .3) !important;
  background: linear-gradient(128deg, rgba(24, 92, 176, .9), rgba(64, 74, 148, .82) 48%, rgba(135, 67, 82, .84)) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 10px 22px rgba(33, 50, 102, .22) !important;
}

.quick-step-card, .proposal-shell, .manifest, .summary-rail > div, .site-card, .tier-card, .category-card {
  border-color: rgba(148, 163, 184, .18) !important;
  background-image: linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  box-shadow: 0 20px 55px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .03);
}

html.light-mode .topbar { background: linear-gradient(to bottom, rgba(232, 228, 223, .8), transparent) !important; }
html.light-mode .topbar__inner {
  border-color: rgba(255, 255, 255, .62);
  background: linear-gradient(112deg, rgba(207, 216, 227, .78), rgba(133, 147, 163, .52) 54%, rgba(93, 114, 139, .42));
  box-shadow: 0 14px 34px rgba(4, 8, 26, .12), inset 0 1px 0 rgba(255, 255, 255, .44);
}

@media (max-width: 720px) {
  .topbar { padding-inline: 10px !important; }
  .topbar__inner { min-height: 56px; margin: 10px auto !important; padding: 6px 8px 6px 12px; flex-wrap: nowrap; }
  .brand__mark img { width: 34px !important; height: 24px !important; }
  .draft-badge { display: none; }
}

@media (hover: hover) and (pointer: fine) {
  .category-card:hover,
  .site-card:hover:not(.is-active),
  .tier-row:hover:not(.is-active),
  .obj-type-card:hover:not(.is-active),
  .zone-card:hover:not(.is-active),
  .tier-card:hover:not(.is-active),
  .cyber-card:hover { transform: translateY(calc(var(--motion-distance-xs) * -1)) !important; }
}

@media (hover: none), (pointer: coarse) {
  .category-card:hover,
  .site-card:hover,
  .tier-row:hover,
  .obj-type-card:hover,
  .zone-card:hover,
  .tier-card:hover,
  .cyber-card:hover,
  .quick-object-card:hover,
  .btn:hover,
  .topbar-cta:hover,
  .power-toggle-card:hover { transform: none !important; }
}

/* Adaptive estimator additions */
[hidden] { display: none !important; }

.project-context,
.ups-runtime-selector {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}
.project-context__head h3 { margin: 0 0 5px; font-size: 17px; color: var(--text); }
.project-context__head p,
.ups-runtime-selector > p { margin: 0 0 18px; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.context-fieldset,
.ups-runtime-selector { min-width: 0; margin: 16px 0 0; border: 0; }
.context-fieldset { padding: 0; }
.context-fieldset legend,
.ups-runtime-selector legend { padding: 0; margin-bottom: 9px; color: var(--text); font-size: 12px; font-weight: 700; }
.context-chip-row,
.runtime-options { display: flex; gap: 8px; flex-wrap: wrap; }
.context-chip,
.runtime-opt-btn {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--calc-control-radius, 8px);
  background: var(--surface);
  color: var(--text-2);
  font: 600 11px/1.25 var(--font-sans);
  cursor: pointer;
}
.context-chip.is-active,
.runtime-opt-btn.is-active {
  border-color: var(--ant-cyan);
  color: var(--text);
  background: color-mix(in srgb, var(--ant-cyan) 12%, var(--surface));
}
.context-counter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.context-counter { width: fit-content; }
.context-counter output { min-width: 38px; text-align: center; color: var(--text); font: 700 13px var(--font-mono); }
.context-help { margin: 8px 0 0; color: var(--text-3); font-size: 11px; line-height: 1.5; }

.zone-card__select {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.estimate-tax-note,
.estimate-final-note {
  display: block;
  margin: 6px 0 0;
  color: var(--text);
  font: 650 12px/1.4 var(--font-sans, system-ui, sans-serif);
  letter-spacing: 0.01em;
}
.result-hero__price .estimate-final-note {
  text-align: right;
  max-width: 18rem;
  margin-left: auto;
  color: color-mix(in srgb, var(--text) 88%, var(--ant-cyan));
}
.dossier-price .estimate-final-note {
  color: color-mix(in srgb, var(--calc-text, var(--text)) 90%, var(--ant-cyan));
  font-size: 12px;
  font-weight: 700;
}
.quote-contact-next {
  display: block;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.45;
}
.estimate-confidence { margin-top: 9px; color: var(--text-2); font-size: 12px; line-height: 1.5; }
.estimate-confidence__help {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-3, var(--text-2));
  opacity: 0.92;
  font-weight: 400;
}
.coverage-confidence-help {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-3, var(--text-2));
  font-weight: 400;
}
.card-capability {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.camera-choice {
  position: relative;
}
.camera-choice--recommended {
  border-color: color-mix(in srgb, var(--color-accent-cyan, #4FA3B0) 45%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent-cyan, #4FA3B0) 25%, transparent);
}
.camera-choice__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent-cyan, #4FA3B0) 18%, transparent);
  color: var(--color-accent-cyan, #4FA3B0);
}
.estimate-assumptions { margin-top: 12px; color: var(--text-2); font-size: 11px; }
.estimate-assumptions summary { cursor: pointer; color: var(--text); font-weight: 700; }
.estimate-assumptions ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }
.quote-contact-intro { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.quote-contact-intro strong { color: var(--text); font-size: 13px; }
.quote-contact-intro span { color: var(--text-2); font-size: 11px; line-height: 1.5; }
.quote-submit-error { padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--color-danger) 45%, transparent); border-radius: 9px; background: color-mix(in srgb, var(--color-danger) 10%, transparent); color: #fca5a5; font-size: 12px; }
.decree-rule-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.decree-rule-split > div { display: grid; gap: 4px; padding: 10px; border: 1px solid currentColor; border-radius: 9px; }
.decree-rule-split strong { font-size: 11px; }
.decree-rule-split span { font-size: 10px; line-height: 1.45; opacity: .82; }
.decree-source-link { display: inline-block; margin-top: 10px; color: inherit; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.decree-applicability-note { margin: 10px 0; padding: 9px 10px; border: 1px dashed currentColor; border-radius: 8px; font-size: 10px; line-height: 1.5; }

/* Both proposal columns sit on --calc-surface, so their contents just inherit
   the theme's text ramp. The previous block here pinned this text to #334155
   and then immediately re-overrode part of it back to var(--text) — which in
   dark mode painted the kicker, the contact headline and the headline total
   white-on-white. */
.summary-left-container,
.right-summary-card { color: var(--calc-text-primary) !important; }
.summary-left-container .decree-review-card,
.summary-left-container .decree-review-row,
.summary-left-container .decree-review-card__summary,
.summary-left-container .decree-source-link,
.summary-left-container .power-toggle-label,
.summary-left-container .power-toggle-desc,
.summary-left-container .ups-info-title,
.summary-left-container .ups-info-model,
.summary-left-container .ups-info-stat-label,
.summary-left-container .ups-info-stat-value,
.right-summary-card .quote-meta-strip,
.right-summary-card .estimate-tax-note,
.right-summary-card .estimate-confidence,
.right-summary-card .estimate-assumptions,
.right-summary-card .estimate-assumptions summary,
.right-summary-card .trust-item,
.right-summary-card .quote-contact-intro span,
.right-summary-card .btn-link-quiet { color: var(--calc-text-secondary) !important; }
.summary-left-container .decree-review-card__header,
.summary-left-container .summary-section-title,
.right-summary-card .quote-kicker,
.right-summary-card .quote-contact-intro strong { color: var(--calc-text-primary) !important; }
.summary-left-container .decree-review-card,
.summary-left-container .decree-rule-split > div,
.right-summary-card .quote-contact-intro { border-color: var(--calc-border-default) !important; }
.right-summary-card .contact-input-field {
  color: var(--calc-text-primary) !important;
  background: var(--calc-surface-subtle) !important;
  border-color: var(--calc-border-default) !important;
}
.right-summary-card .contact-input-field::placeholder { color: var(--calc-text-muted) !important; opacity: 1; }
.right-summary-card .quote-secondary-actions > span { color: var(--calc-text-muted) !important; }

/* Calculator product layout and productive-motion contract. This is the
   canonical responsive layer for the estimator, scoped away from the site. */
.calc-review-shell {
  width: min(var(--calc-shell-max), calc(100% - (var(--calc-shell-gutter) * 2)));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.calc-review-shell .quote-layout {
  width: 100%;
  max-width: var(--calc-review-max);
  margin-inline: auto;
}

.center-content,
.step-content { min-width: 0; width: 100%; }

.draft-badge--quiet { opacity: .45; font-size: 10px; }
.topbar-home-link { text-decoration: none; gap: 6px; font-size: 12px; }
.topbar-new-quote {
  gap: 6px;
  margin-left: 8px;
  color: var(--color-accent-cyan);
  border-color: var(--color-border);
  background: color-mix(in srgb, var(--color-accent-cyan) 10%, transparent);
  font-size: 12px;
  font-weight: 600;
}
.topbar-lang,
.topbar-cta { min-height: 44px; }

.price-card-container {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 32px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .018);
  transform-origin: center;
}
.price-card-container__label {
  color: var(--text-3);
  font: 500 10px/1.3 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.price-card-container .price-display-amount {
  color: var(--color-accent-cyan);
  font-size: 26px;
  font-weight: 800;
}
.price-card-container__note { color: var(--text-3); font-size: 11px; line-height: 1.45; opacity: .84; }

.steps-reset-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font: 500 12px/1.3 var(--font-mono);
  cursor: pointer;
}
.steps-reset-button:hover { color: #f87171; }

.calc-confirm-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(8px);
  animation: calcOverlayIn var(--calc-motion-feedback) var(--calc-ease-out) both;
}
.calc-confirm-dialog {
  width: min(100%, 380px);
  padding: 32px;
  border: 1px solid var(--border-2);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--surface), rgba(15, 22, 35, .96));
  box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
  text-align: center;
  animation: calcDialogIn var(--calc-motion-feedback) var(--calc-ease-out) both;
}

/* WCAG contrast for the compact active/completed step badge. */
.steps .step.is-active .step__num { color: #06283b !important; background: #7dd3fc !important; }
.calc-confirm-dialog__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 28%, transparent);
  border-radius: 14px;
  place-items: center;
  background: color-mix(in srgb, var(--ant-cyan) 12%, transparent);
  color: var(--ant-cyan);
  font-size: 26px;
  line-height: 1;
}
.calc-confirm-dialog__title { margin-bottom: 8px; color: var(--text); font-size: 17px; font-weight: 650; }
.calc-confirm-dialog__message { margin-bottom: 24px; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.calc-confirm-dialog__actions { display: flex; gap: 10px; }
.calc-confirm-button {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font: 600 14px/1.2 inherit;
  cursor: pointer;
}
.calc-confirm-button--cancel { border: 1px solid var(--border-2); background: transparent; color: var(--text-2); }
.calc-confirm-button--danger { border: 1px solid transparent; background: rgba(239, 68, 68, .18); color: #f87171; }

/* Keep confirmation surfaces native to the brighter calculator theme. */
html.light-mode .calc-confirm-overlay {
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(12px);
}
html.light-mode .calc-confirm-dialog {
  border-color: rgba(15, 23, 42, .14);
  background:
    radial-gradient(circle at 50% 0, rgba(14, 165, 233, .10), transparent 48%),
    linear-gradient(145deg, #fff, #f5f7fb);
  box-shadow: 0 24px 64px rgba(15, 23, 42, .22), 0 2px 8px rgba(15, 23, 42, .08);
}
html.light-mode .calc-confirm-dialog__icon {
  border-color: rgba(14, 165, 233, .22);
  background: rgba(14, 165, 233, .11);
  color: #0369a1;
}
html.light-mode .calc-confirm-dialog__title { color: #0f172a; }
html.light-mode .calc-confirm-dialog__message { color: #475569; }
html.light-mode .calc-confirm-button--cancel {
  border-color: rgba(15, 23, 42, .16);
  background: #fff;
  color: #334155;
}
html.light-mode .calc-confirm-button--cancel:hover {
  border-color: rgba(15, 23, 42, .26);
  background: #f8fafc;
  color: #0f172a;
}
html.light-mode .calc-confirm-button--danger {
  border-color: #dc2626;
  background: #dc2626;
  box-shadow: 0 8px 16px rgba(220, 38, 38, .18);
  color: #fff;
}
html.light-mode .calc-confirm-button--danger:hover {
  border-color: #b91c1c;
  background: #b91c1c;
}

@keyframes calcOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes calcDialogIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes calcPanelIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

#app-root :where(button, [role="button"], .btn, .site-card, .tier-row, .obj-type-card, .zone-card, .tier-card, .zone-preset-btn) {
  transition-property: color, background-color, border-color, opacity, transform !important;
  transition-duration: var(--calc-motion-fast) !important;
  transition-timing-function: var(--calc-ease-state) !important;
}

#app-root :where(.site-card, .tier-row, .obj-type-card, .zone-card, .tier-card, .zone-preset-btn).is-active {
  transition-duration: var(--calc-motion-state) !important;
}

#app-root :where(button, [role="button"], .btn):active:not(:disabled):not([aria-disabled="true"]) {
  transform: scale(.985) !important;
  transition-duration: var(--calc-motion-press) !important;
}

#app-root :where(button, [role="button"], .btn):focus-visible,
.calc-confirm-button:focus-visible {
  outline: 2px solid var(--ant-cyan);
  outline-offset: 3px;
}

#app-root :where(button, .btn):disabled {
  cursor: not-allowed;
  opacity: .48;
}

.site-card::before,
.tier-row::before,
.obj-type-card::before {
  transition: opacity var(--calc-motion-fast) var(--calc-ease-state) !important;
}

.cams-tab-panel.is-active { animation: calcPanelIn var(--calc-motion-state) var(--calc-ease-out) both; }
.animate-count-up { animation: counterSlideUp var(--calc-motion-fast) var(--calc-ease-out); }
.animate-count-down { animation: counterSlideDown var(--calc-motion-fast) var(--calc-ease-out); }
.mval { transition: color var(--calc-motion-fast) var(--calc-ease-state), opacity var(--calc-motion-fast) var(--calc-ease-state) !important; }
.telemetry-progress { transition: transform var(--calc-motion-state) var(--calc-ease-out); }

.context-chip,
.runtime-opt-btn,
.day-presets-wrapper button,
.cams-tab-btn,
.btn-increment,
.btn-decrement,
.cam-stat__btn,
.counter-controls button,
.btn,
.btn-cta-primary {
  min-height: 44px;
}

.btn-increment,
.btn-decrement,
.cam-stat__btn,
.counter-controls button { min-width: 44px; }

html[data-page-visible="false"] .bg-orbs::before,
html[data-page-visible="false"] .bg-orbs::after,
html[data-page-visible="false"] .bg-orbs .orb-3,
html[data-page-visible="false"] .draft-badge__dot { animation-play-state: paused !important; }

/* Smart discovery accordion: one decision at a time, with completed answers
   kept visible as compact summaries. */
.discovery-screen {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.discovery-flow {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}

.discovery-flow__progress {
  margin-bottom: 2px;
  color: var(--ant-cyan);
  font: 700 11px/1.3 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Micro-progress (site / cams / storage accordion) */
.micro-progress {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  max-width: 920px;
  width: 100%;
}
.micro-progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font: 600 11px/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.micro-progress__meta span:first-child { color: var(--ant-cyan, #4FA3B0); }
.micro-progress__track {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 80%, transparent);
  overflow: hidden;
}
.micro-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ant-cyan, #4FA3B0), color-mix(in srgb, var(--ant-cyan, #4FA3B0) 55%, #00C4FF));
  transition: width 220ms ease;
}

/* Resume draft banner */
.resume-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan, #4FA3B0) 40%, var(--border));
  background: color-mix(in srgb, var(--ant-cyan, #4FA3B0) 8%, var(--surface));
}
.resume-banner__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.resume-banner__copy strong {
  font-size: 14px;
  color: var(--text);
}
.resume-banner__copy span {
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--font-mono);
}
.resume-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dossier-generate-hint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-2);
}
.context-help--lead {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.discovery-turnover-panel .context-chip {
  flex: 1 1 140px;
  min-height: 44px;
  white-space: normal;
  text-align: left;
  line-height: 1.35;
  padding: 10px 12px;
}
@media (max-width: 640px) {
  .resume-banner { flex-direction: column; align-items: stretch; }
  .resume-banner__actions .btn { flex: 1; }
}

/* Sticky confirm on mobile */
/* Reduce paint thrash on dense choice grids during selection patches */
.site-grid,
.option-row-grid,
.context-chip-row,
.camera-choice-grid,
.camera-goal-grid,
.zone-grid,
.complexity-grid {
  contain: layout style;
}
.coverage-footer--sticky {
  position: sticky;
  bottom: 88px;
  z-index: 40;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--calc-card-radius, 12px);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 28px rgba(0,0,0,.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.coverage-footer__stats {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 180px;
}
.scale-defaults-note { margin-bottom: 12px; }
.discovery-conditions-panel {
  display: grid;
  gap: 0;
  max-width: 860px;
}
.conditions-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--calc-border-default, var(--border));
}
.conditions-block:first-child {
  padding-top: 4px;
}
.conditions-block__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.conditions-block__title {
  color: var(--calc-text-primary, var(--text));
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}
.conditions-block__desc {
  color: var(--calc-text-secondary, var(--text-2));
  font-size: 13.5px;
  line-height: 1.45;
}
.conditions-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-left: 0;
  width: 100%;
}
.condition-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 98px;
  padding: 16px 36px 16px 16px;
  border: 1px solid var(--calc-border-default, var(--border));
  border-radius: var(--calc-card-radius, 14px);
  color: var(--calc-text-primary, var(--text));
  background: var(--calc-surface-subtle, var(--surface-2));
  text-align: left;
  cursor: pointer;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.condition-choice-card strong,
.condition-choice-card__title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--calc-text-primary, var(--text));
}
.condition-choice-card > span:last-child,
.condition-choice-card__desc {
  color: var(--calc-text-secondary, var(--text-2));
  font-size: 13px;
  line-height: 1.45;
}
.condition-choice-card__check {
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: scale(.7);
  animation: none !important;
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}
.condition-choice-card:not(.is-active):not([aria-pressed="true"]) .condition-choice-card__check {
  opacity: 0;
  transform: scale(.7);
}
.condition-choice-card:is(.is-active,[aria-pressed="true"]) .condition-choice-card__check {
  opacity: 1;
  transform: scale(1);
}
.condition-choice-card:hover,
.condition-choice-card:focus-visible {
  border-color: color-mix(in srgb, var(--ant-cyan) 48%, var(--calc-border-default, var(--border)));
  background: color-mix(in srgb, var(--ant-cyan) 5%, var(--calc-surface-subtle, var(--surface-2)));
}
/* Shared responsive choice grid — variable option counts (2-5), unlike the
   fixed 3-column .conditions-choice-grid. Used by the internet toggle and
   the category discovery-question option cards so both wrap identically. */
.choice-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  width: 100%;
}
/* Category discovery-question counter: label+hint on the left, the shared
   .counter-controls stepper on the right — mirrors .exact-area-field's
   label/control row so it doesn't look like a stranded widget. */
.category-question-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.category-question-counter-row .conditions-block__head {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}
.conditions-run-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-left: 45px;
  padding: 13px 14px;
  border: 1px solid var(--calc-border-default, var(--border));
  border-radius: var(--calc-card-radius, 12px);
  background: var(--calc-surface-subtle, var(--surface-2));
}
.conditions-run-card__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.conditions-run-card__copy strong {
  color: var(--calc-text-primary, var(--text));
  font-size: 12px;
}
.conditions-run-card__copy small {
  color: var(--calc-text-secondary, var(--text-2));
  font-size: 10.5px;
  line-height: 1.4;
}
.conditions-run-control {
  display: grid;
  grid-template-columns: 38px minmax(90px, 118px) 38px;
  align-items: stretch;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--calc-border-default, var(--border));
  border-radius: var(--calc-control-radius, 10px);
  background: var(--calc-surface, var(--surface));
}
.conditions-run-control > button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 0;
  color: var(--calc-text-primary, var(--text));
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.conditions-run-control > button:first-child {
  border-right: 1px solid var(--calc-border-default, var(--border));
}
.conditions-run-control > button:last-child {
  border-left: 1px solid var(--calc-border-default, var(--border));
}
.conditions-run-control > button:hover,
.conditions-run-control > button:focus-visible {
  color: #061117;
  background: var(--ant-cyan);
}
.conditions-run-control label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 7px;
}
.conditions-run-control input {
  width: 58px;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--calc-text-primary, var(--text));
  background: transparent;
  font: 750 15px/1 var(--font-mono);
  text-align: right;
}
.conditions-run-control input:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ant-cyan) 35%, transparent);
}
.conditions-run-control label > span:last-child {
  color: var(--calc-text-secondary, var(--text-2));
  font-size: 11px;
  font-weight: 700;
}
.conditions-run-warning {
  min-height: 0;
  margin-left: 45px;
}
.conditions-run-warning:not(:empty) {
  margin-top: -3px;
}
.conditions-footer {
  margin-top: 0;
}
.conditions-footer__summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.conditions-footer__summary small {
  color: var(--calc-text-muted, var(--text-3));
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.conditions-footer__summary strong {
  overflow: hidden;
  color: var(--calc-text-primary, var(--text));
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .coverage-footer--sticky { bottom: 96px; }
  .conditions-choice-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
  .condition-choice-card {
    min-height: 72px;
    padding: 12px 40px 12px 13px;
  }
  .conditions-run-card {
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
  }
  .conditions-run-control {
    grid-template-columns: 42px minmax(110px, 1fr) 42px;
    width: 100%;
  }
  .conditions-run-warning {
    margin-left: 0;
  }
  .conditions-footer__summary strong {
    white-space: normal;
  }
}

.discovery-section {
  scroll-margin-top: 112px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  overflow: clip;
  /* No opacity transition — locked→active used to fade 0.48→1 and looked like a grid flash */
  transition: border-color var(--calc-motion-state) var(--calc-ease-state), background-color var(--calc-motion-state) var(--calc-ease-state);
}

.discovery-section.is-active {
  border-color: color-mix(in srgb, var(--ant-cyan) 58%, var(--border));
  background: color-mix(in srgb, var(--ant-cyan) 5%, var(--surface));
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18), 0 0 0 1px color-mix(in srgb, var(--ant-cyan) 8%, transparent);
}

/* Dim via filter (no opacity transition flash when unlocking) */
.discovery-section.is-locked { filter: grayscale(0.15) brightness(0.92); opacity: 1; }
.discovery-section.is-locked .discovery-section__header { opacity: 0.72; }
.discovery-section__heading { margin: 0; }

.discovery-section__header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 70px;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.discovery-section__header[data-action="edit-discovery"] { cursor: pointer; }
.discovery-section__header:disabled { cursor: default; opacity: 1 !important; }
.discovery-section__header[aria-disabled="true"] { cursor: default; }

.discovery-section__index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--text-3);
  background: var(--surface-2);
  font: 700 12px/1 var(--font-mono);
}

.discovery-section__index svg { width: 16px; height: 16px; }
.discovery-section.is-active .discovery-section__index {
  border-color: var(--ant-cyan);
  color: #071018;
  background: var(--ant-cyan);
}
.discovery-section.is-complete:not(.is-active) .discovery-section__index {
  border-color: color-mix(in srgb, var(--ant-cyan) 45%, var(--border));
  color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 10%, var(--surface));
}

.discovery-section__copy { display: grid; min-width: 0; gap: 4px; }
.discovery-section__title { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.discovery-section__hint,
.discovery-section__summary { color: var(--text-2); font-size: 12px; line-height: 1.45; }
.discovery-section__summary { color: var(--text); }
.discovery-section__edit {
  color: var(--ant-cyan);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.discovery-section__panel {
  padding: 4px 18px 20px 67px;
  /* CRITICAL: never fade panel in — every question open remounts this node.
     calcPanelIn (opacity 0→1) was the 1× flash on every grid open. */
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.discovery-section__panel .site-grid { margin: 0; }
.discovery-section__panel .site-card { min-height: 106px; }
.discovery-section__panel .site-card__icon span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--ant-cyan);
}

.discovery-auto-hint {
  margin: 10px 2px 0;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.45;
}

.discovery-subtype-picker,
.discovery-entry-fork,
.discovery-context-panel {
  margin: 0;
}

.site-subtype-btn--skip {
  border-style: dashed;
  color: var(--text-2);
}

.discovery-choice-fieldset { margin-top: 0; }
.discovery-choice-fieldset .context-chip { flex: 1 1 180px; min-height: 52px; }
.discovery-context-panel { padding: 18px; }
.discovery-context-panel .context-fieldset:first-child { margin-top: 0; }

.discovery-recommendation-note {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 32%, var(--border));
  border-radius: 11px;
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface));
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.45;
}
.discovery-recommendation-note span {
  color: var(--ant-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.discovery-choice.is-committing,
.camera-choice.is-committing,
.camera-goal-card.is-committing,
.option-row.is-committing {
  border-color: var(--ant-cyan) !important;
  background-color: color-mix(in srgb, var(--ant-cyan) 14%, var(--surface)) !important;
  transform: scale(1.02);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ant-cyan) 35%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

/* Visible “saved → next” toast after auto-advance */
.section-advance-toast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  max-height: 0;
  margin: 0 auto 0;
  padding: 0 14px;
  max-width: 920px;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  border-radius: 999px;
  font: 700 12px/1.3 var(--font-mono);
  letter-spacing: 0.03em;
  color: var(--ant-cyan, #4FA3B0);
  background: color-mix(in srgb, var(--ant-cyan, #4FA3B0) 12%, var(--surface));
  border: 1px solid transparent;
  transform: translateY(-6px);
  transition: max-height 220ms ease, opacity 220ms ease, transform 220ms ease, padding 220ms ease, margin 220ms ease, border-color 220ms ease;
  pointer-events: none;
}
.section-advance-toast.is-visible {
  max-height: 48px;
  margin: 0 auto 12px;
  padding: 10px 16px;
  opacity: 1;
  border-color: color-mix(in srgb, var(--ant-cyan, #4FA3B0) 40%, var(--border));
  transform: translateY(0);
}

/* Answered card briefly compresses before next opens */
.discovery-section.is-answering,
.camera-flow-section.is-answering {
  border-color: color-mix(in srgb, var(--ant-cyan) 70%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ant-cyan) 28%, transparent), 0 12px 32px rgba(0, 0, 0, .2);
}

/*
 * Newly opened question: static highlight only (no opacity / layout animation).
 * Any transform/opacity enter on a freshly injected grid reads as a 1× flash.
 */
.discovery-section.is-revealing,
.camera-flow-section.is-revealing,
.storage-flow-section.is-revealing {
  border-color: color-mix(in srgb, var(--ant-cyan) 70%, var(--border)) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ant-cyan) 28%, transparent), 0 14px 38px rgba(0, 0, 0, .16);
  z-index: 2;
  position: relative;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.discovery-section.is-revealing .discovery-section__panel,
.camera-flow-section.is-revealing .camera-flow-panel {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.discovery-section.is-revealing .discovery-section__index,
.camera-flow-section.is-revealing .camera-flow-header > span:first-child {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ant-cyan) 30%, transparent);
}

.micro-progress__fill {
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .discovery-section.is-revealing,
  .camera-flow-section.is-revealing,
  .storage-flow-section.is-revealing,
  .discovery-section.is-revealing .discovery-section__panel,
  .camera-flow-section.is-revealing .camera-flow-panel {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .discovery-choice.is-committing,
  .camera-choice.is-committing,
  .camera-goal-card.is-committing,
  .option-row.is-committing {
    transform: none;
  }
  .section-advance-toast {
    transition: none;
  }
}

html.light-mode .discovery-section {
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
html.light-mode .discovery-section.is-active { background: color-mix(in srgb, var(--ant-cyan) 5%, #fff); }

@media (max-width: 767px) {
  .discovery-screen { gap: 14px; }
  .discovery-flow { gap: 7px; }
  .discovery-flow__progress { margin-left: 2px; font-size: 10px; }
  .discovery-section { scroll-margin-top: 78px; border-radius: 12px; }
  .discovery-section__header {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 60px;
    padding: 10px 12px;
  }
  .discovery-section__index { width: 30px; height: 30px; font-size: 10px; }
  .discovery-section__title { font-size: 13px; }
  .discovery-section__hint,
  .discovery-section__summary { font-size: 11px; }
  .discovery-section__edit { font-size: 10px; }
  .discovery-section__panel { padding: 2px 12px 16px; }
  .discovery-section__panel .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-section__panel .site-card { min-height: 82px !important; }
  .discovery-choice-fieldset .context-chip { flex-basis: 100%; }
  .discovery-context-panel { padding: 13px; }
}

/* Cobalt Sky parity — calculator surfaces map to shared tokens.css (not olive editorial). */
#app-root {
  --calc-canvas: var(--bg);
  --calc-surface: var(--surface);
  --calc-surface-subtle: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
  --calc-surface-selected: color-mix(in srgb, var(--ant-cyan) 10%, var(--surface));
  --calc-surface-raised: var(--surface-2);
  --calc-text-primary: var(--text);
  --calc-text-secondary: var(--text-2);
  --calc-text-muted: var(--text-3);
  --calc-border-default: var(--border);
  --calc-border-selected: color-mix(in srgb, var(--ant-cyan) 62%, transparent);
  --calc-focus: var(--ant-cyan);
  --calc-warning: var(--color-warning, #F59E0B);
  --calc-success: #34d399;
  --calc-card-radius: 16px;
  --calc-control-radius: 11px;
  --calc-shell-radius: 20px;
  --calc-space: 8px;
  --calc-shadow-raised: 0 20px 55px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.light-mode #app-root {
  --calc-canvas: var(--bg);
  --calc-surface: var(--surface);
  --calc-surface-subtle: color-mix(in srgb, var(--surface-2) 80%, #fff);
  --calc-surface-selected: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface));
  --calc-surface-raised: #ffffff;
  --calc-text-primary: var(--text);
  --calc-text-secondary: var(--text-2);
  --calc-text-muted: var(--text-3);
  --calc-border-default: var(--border);
  --calc-border-selected: color-mix(in srgb, var(--ant-cyan) 55%, transparent);
  --calc-focus: var(--ant-cyan);
  --calc-warning: var(--color-warning, #D97706);
  --calc-success: #059669;
  --calc-shadow-raised: 0 18px 44px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

#app-root :where(.discovery-section, .camera-flow-section, .question-card, .summary-card, .metric-card) {
  border-color: var(--calc-border-default);
  color: var(--calc-text-primary);
  background: var(--calc-surface);
}

#app-root :where(.discovery-section, .camera-flow-section) {
  border-radius: var(--calc-card-radius);
  box-shadow: none;
}

#app-root :where(.discovery-section.is-active, .camera-flow-section.is-active) {
  border-color: var(--calc-border-selected);
  background: var(--calc-surface-raised);
  box-shadow: var(--calc-shadow-raised);
}

#app-root :where(button, input, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--calc-focus) 42%, transparent);
  outline-offset: 2px;
}

.choice-card,
.option-row,
.complexity-chip,
.premium-zone-card,
.summary-card,
.metric-card,
.status-note,
.context-footer {
  border: 1px solid var(--calc-border-default);
}

.choice-card,
.option-row,
.complexity-chip {
  position: relative;
  color: var(--calc-text-primary);
  background: var(--calc-surface-subtle);
  transition: transform 160ms cubic-bezier(.2,0,.38,.9), border-color 200ms cubic-bezier(.2,0,.38,.9), background-color 200ms cubic-bezier(.2,0,.38,.9);
}

.calc-choice-card {
  --spotlight-opacity: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--calc-border-default);
  background: var(--calc-surface-subtle);
  box-shadow: none;
  transition:
    transform var(--motion-base) var(--ease-out),
    border-color var(--motion-base) var(--ease-out),
    background-color var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out);
}

.calc-choice-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: var(--spotlight-opacity);
  background: radial-gradient(
    220px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    color-mix(in srgb, var(--ant-cyan) 13%, transparent),
    transparent 70%
  );
  transition: opacity var(--motion-base) var(--ease-out);
}

.calc-choice-card:hover:not(:disabled):not(.is-active) {
  border-color: color-mix(in srgb, var(--ant-cyan) 38%, var(--calc-border-default));
  background: var(--calc-surface-raised);
  box-shadow: none;
}

.calc-choice-card:is(.is-active, [aria-pressed="true"]) {
  border-color: var(--calc-border-selected);
  background: var(--calc-surface-selected);
  box-shadow: var(--elevation-active);
}

.choice-card:is(.is-active,[aria-pressed="true"]),
.option-row:is(.is-active,[aria-pressed="true"]),
.complexity-chip:is(.is-active,[aria-pressed="true"]) {
  border-color: var(--calc-border-selected);
  background: var(--calc-surface-selected);
}

.choice-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #071416;
  background: var(--ant-cyan);
  animation: calc-check-spring var(--motion-base) var(--ease-spring) both;
}

@keyframes calc-check-spring {
  from { opacity: 0; transform: scale(.55) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.choice-card__check:empty { display: none; }
.choice-card__check svg { width: 13px; height: 13px; }

.premium-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.premium-choice-grid .site-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 8px;
  min-height: 132px;
  padding: 20px;
  border-radius: var(--calc-card-radius);
  text-align: left;
}

.premium-choice-grid .site-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--calc-border-default);
  border-radius: 10px;
  color: var(--ant-cyan);
  background: var(--calc-surface);
}

.premium-choice-grid .site-card__icon svg { width: 18px; height: 18px; }
.premium-choice-grid .site-card__name { padding-right: 18px; font-size: 15px; line-height: 1.35; }
.premium-choice-grid .site-card__desc { color: var(--calc-text-secondary); font-size: 12px; line-height: 1.5; }
.premium-choice-grid .site-card--unsure { border-style: dashed; }

.catalog-search { margin-bottom: 14px; }
.catalog-search input,
.coverage-toolbar input,
.exact-area-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  font-size: 14.5px;
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-control-radius);
  color: var(--calc-text-primary);
  background: var(--calc-surface-subtle);
}
.catalog-search input::placeholder {
  color: var(--text-2);
  opacity: 0.8;
  font-size: 14px;
}

.question-card {
  padding: 20px;
  border-radius: var(--calc-card-radius);
}

.option-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-row {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--calc-control-radius);
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.option-row small { color: var(--calc-text-secondary); font-size: 10px; font-weight: 500; line-height: 1.35; }
.option-row:disabled { opacity: .46; cursor: not-allowed; background: var(--calc-surface-subtle); }

.exact-area-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  color: var(--calc-text-secondary);
  font-size: 12px;
}

.exact-area-field > span:last-child { display: flex; align-items: center; gap: 7px; }
.exact-area-field input { min-width: 0; }
.scale-counter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scale-counter { padding: 14px; border: 1px solid var(--calc-border-default); border-radius: var(--calc-control-radius); background: var(--calc-surface-subtle); }
.scale-counter legend { margin-bottom: 10px; font-size: 11px; }

.complexity-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.complexity-chip { min-height: 44px; padding: 9px 13px; border-radius: 999px; font-size: 11px; font-weight: 650; }

.context-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  /* Bleeds to the card edge by cancelling exactly the card's own side padding.
     Derived from --calc-card-pad so the two can never desync again (they had:
     the card was later re-set to 0 side padding while this stayed at -20px,
     leaving the footer hanging 19px outside the card on both sides). */
  margin: 20px calc(-1 * var(--calc-card-pad, 20px)) 0;
  padding: 14px 16px;
  border-width: 1px 0 0;
  border-radius: 0 0 var(--calc-card-radius) var(--calc-card-radius);
  color: var(--calc-text-secondary);
  background: var(--calc-surface-subtle);
  font-size: 11px;
}

.context-footer .btn { flex: 0 0 auto; min-height: 46px; }
.context-footer .btn svg { width: 16px; height: 16px; }
.status-note { padding: 11px 13px; border-radius: var(--calc-control-radius); color: var(--calc-text-secondary); background: var(--calc-surface-subtle); font-size: 11px; line-height: 1.5; }
.status-note--warning { border-color: color-mix(in srgb, var(--calc-warning) 55%, transparent); color: var(--calc-warning); }

/* Mode switch: had zero CSS, so it butted straight into the wizard below it. */
.coverage-mode-toggle { margin-bottom: 16px; }
.coverage-toolbar { display: grid; grid-template-columns: minmax(220px, .8fr) 1fr; gap: 12px; align-items: center; margin-bottom: 18px; }
.zone-groups { display: grid; gap: 22px; }
.zone-group h4 { margin: 0 0 10px; color: var(--calc-text-muted); font: 700 10px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.zone-group .zone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.premium-zone-card { padding: 0 !important; overflow: hidden; border-radius: var(--calc-card-radius); background: var(--calc-surface-subtle); }
.premium-zone-card.is-active { border-color: var(--calc-border-selected); background: var(--calc-surface-selected); }
.premium-zone-card .zone-card__select { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 82px; padding: 14px; }
.premium-zone-card .zone-card__select > span:nth-child(2) { display: grid; gap: 4px; text-align: left; }
.premium-zone-card .zone-card__desc { color: var(--calc-text-secondary); font-size: var(--fs-2xs, 10px); line-height: 1.4; }
/* Was 8px on a bare --calc-surface pill — the smallest type on the page, and
   near-invisible in light mode (#fffdf8 on #f6f2ea). Bordered and on the scale. */
.zone-environment { padding: 4px 8px; border-radius: 999px; border: 1px solid var(--calc-border-default); color: var(--calc-text-muted); background: var(--calc-surface); font: 700 var(--fs-2xs, 10px)/1 var(--font-mono); text-transform: uppercase; }
.zone-unit-editor { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--calc-border-default); }
.zone-unit-editor > span { color: var(--calc-text-secondary); font-size: var(--fs-xs, 11px); }
.zone-unit-editor p { grid-column: 1 / -1; margin: 0; color: var(--ant-cyan); font-size: var(--fs-2xs, 10px); }
.zone-unit-editor output { min-width: 32px; text-align: center; font-weight: 800; }
.coverage-footer > div { display: grid; gap: 4px; }
.coverage-footer > div span { color: var(--calc-text-muted); }

.storage-flow-screen { max-width: 920px; margin-inline: auto; }
.storage-question { display: grid; gap: 14px; }
.storage-flow .camera-flow-panel { padding-top: 4px; }

.actions--contextual { align-items: center; }
.actions__guidance { margin: 0 0 0 auto; color: var(--calc-text-muted); font-size: 12px; }
/* Primary actions use shared .btn--primary from components.css (no cyan override). */

.confirm-dossier { max-width: 1320px; }
.dossier-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
.dossier-main { display: grid; gap: 12px; }
.dossier-card { padding: 20px; border-radius: var(--calc-card-radius); animation: calcPanelIn 260ms cubic-bezier(.16,1,.3,1) both; }
.dossier-card:nth-child(2) { animation-delay: 40ms; }
.dossier-card:nth-child(3) { animation-delay: 80ms; }
.dossier-card:nth-child(4) { animation-delay: 120ms; }
.dossier-card > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.dossier-card > header > div { display: flex; align-items: center; gap: 10px; }
.dossier-card > header span { color: var(--ant-cyan); font: 700 10px/1 var(--font-mono); }
.dossier-card h3 { margin: 0; font-size: 15px; }
.dossier-card > strong { display: block; margin-bottom: 6px; font-size: 17px; }
.dossier-card > p, .dossier-card > small { color: var(--calc-text-secondary); line-height: 1.55; }
.dossier-card > p { margin: 0 0 4px; font-size: 12px; }
.dossier-card > small { font-size: 10px; }
.summary-card__edit { min-height: 44px; padding: 8px 12px; border: 1px solid var(--calc-border-default); border-radius: var(--calc-control-radius); color: var(--ant-cyan); background: transparent; font-size: 11px; font-weight: 700; }
.metric-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.metric-card { display: grid; gap: 5px; padding: 13px; border-radius: 12px; background: var(--calc-surface-subtle); }
.metric-card > span { color: var(--calc-text-muted); font: 700 9px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.metric-card strong { font-size: 12px; line-height: 1.35; }
.metric-card small { color: var(--calc-text-secondary); font-size: 9px; line-height: 1.4; }
.engineer-details { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--calc-border-default); }
.engineer-details summary { cursor: pointer; color: var(--calc-text-secondary); font-size: 11px; font-weight: 700; }
.dossier-card ul, .dossier-price ul { margin: 0; padding-left: 18px; color: var(--calc-text-secondary); font-size: 11px; line-height: 1.75; }
.dossier-card .decree-review-card { margin-top: 16px; }

.dossier-price {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-color: color-mix(in srgb, var(--ant-cyan) 48%, var(--calc-border-default));
  border-radius: 20px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--ant-cyan) 12%, var(--calc-surface)), var(--calc-surface));
  box-shadow: var(--calc-shadow-raised);
  animation: calcPanelIn 280ms cubic-bezier(.16,1,.3,1) both;
}
.dossier-price > span { color: var(--calc-text-secondary); font-size: 11px; font-weight: 700; }
.dossier-price > strong { color: var(--ant-cyan); font: 800 clamp(30px, 3vw, 42px)/1.05 var(--font-display); }
.dossier-price > p, .dossier-price > small { margin: 0; color: var(--calc-text-secondary); font-size: 10px; line-height: 1.5; }
.dossier-price__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dossier-price__metrics span { padding: 8px 6px; border: 1px solid var(--calc-border-default); border-radius: 9px; color: var(--calc-text-secondary); background: color-mix(in srgb, var(--calc-surface) 70%, transparent); font-size: 9px; text-align: center; }
.dossier-generate { width: 100%; min-height: 52px; justify-content: center; }
.dossier-generate svg { width: 18px; height: 18px; flex: 0 0 auto; }

@media (hover: hover) and (pointer: fine) {
  .choice-card:hover:not(:disabled), .option-row:hover:not(:disabled), .complexity-chip:hover:not(:disabled) { transform: translateY(-1px); border-color: color-mix(in srgb, var(--ant-cyan) 42%, var(--calc-border-default)); }
}

@media (max-width: 900px) {
  .premium-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dossier-grid { grid-template-columns: 1fr; }
  .dossier-price { position: static; grid-row: 1; }
}

@media (max-width: 767px) {
  .premium-choice-grid, .subtype-grid { grid-template-columns: 1fr 1fr !important; }
  .premium-choice-grid .site-card { min-height: 106px !important; padding: 14px !important; }
  .premium-choice-grid .site-card__name { font-size: 12px; }
  .premium-choice-grid .site-card__desc { font-size: 11px; }
  .question-card { --calc-card-pad: 14px; padding: 4px var(--calc-card-pad) 0; }
  .option-row-grid, .scale-counter-grid, .zone-group .zone-grid, .metric-card-grid { grid-template-columns: 1fr; }
  .exact-area-field, .coverage-toolbar { grid-template-columns: 1fr; }
  .context-footer { align-items: stretch; flex-direction: column; margin: 16px calc(-1 * var(--calc-card-pad, 14px)) 0; }
  .context-footer .btn { width: 100%; justify-content: center; }
  .premium-zone-card .zone-card__select { grid-template-columns: 32px minmax(0, 1fr); }
  .zone-environment { grid-column: 2; justify-self: start; }
  .coverage-footer > div { width: 100%; }
  .actions__guidance { margin-left: auto; max-width: 180px; text-align: right; }
  .dossier-card, .dossier-price { padding: 16px; }
  .dossier-price__metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .dossier-card, .dossier-price { animation: none !important; }
  .choice-card, .option-row, .complexity-chip { transform: none !important; }
}

/* Journey v2: camera flow, explicit review, and immutable result */
.price-card-container--locked { min-height: 104px; justify-content: center; }
.price-card-container__locked-copy { color: var(--text-2); font-size: 12px; line-height: 1.55; text-align: center; }
.camera-flow-screen { max-width: 920px; margin-inline: auto; }
.camera-flow { display: grid; gap: 10px; }
.camera-flow-section { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); }
.camera-flow-section.is-active { border-color: color-mix(in srgb, var(--ant-cyan) 46%, var(--border)); box-shadow: var(--calc-elevation-active, 0 0 0 1px color-mix(in srgb, var(--ant-cyan) 20%, transparent), 0 12px 32px rgba(0,0,0,.14)); }
.camera-flow-section.is-locked { filter: grayscale(0.12) brightness(0.94); opacity: 1; }
.camera-flow-section h3 { margin: 0; }
.camera-flow-header { width: 100%; min-height: 68px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border: 0; color: var(--text); background: transparent; text-align: left; }
.camera-flow-header > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-2); color: var(--text-2); font: 700 12px/1 var(--font-mono); }
.camera-flow-header > span:first-child svg { width: 15px; color: var(--ant-cyan); }
.camera-flow-header > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.camera-flow-header strong { font-size: 15px; }
.camera-flow-header small { overflow: hidden; color: var(--text-2); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.camera-flow-header em { color: var(--ant-cyan); font-size: 11px; font-style: normal; font-weight: 700; }
.camera-flow-panel {
  padding: 6px 18px 20px 66px;
  /* Same as discovery: remounted on every question — no opacity enter animation */
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.camera-choice-grid, .camera-goal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.camera-goal-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.camera-choice, .camera-goal-card { min-height: 116px; display: grid; align-content: center; gap: 7px; padding: 18px; border: 1px solid var(--border); border-radius: var(--calc-card-radius, 12px); color: var(--text); background: var(--surface-2); text-align: left; box-shadow: none; transition: transform var(--motion-fast) var(--calc-ease-state), border-color var(--motion-base) var(--calc-ease-state), background-color var(--motion-base) var(--calc-ease-state); }
.camera-choice:hover, .camera-goal-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--ant-cyan) 45%, var(--border)); }
.camera-choice span, .camera-goal-card span { color: var(--text-2); font-size: 12px; line-height: 1.5; }
.camera-goal-card.is-active { border-color: var(--ant-cyan); background: color-mix(in srgb, var(--ant-cyan) 10%, var(--surface-2)); }
.camera-recommendation-note { display: grid; gap: 4px; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--calc-card-radius, 12px); color: var(--text); background: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface)); box-shadow: none; }
.camera-recommendation-note span { color: var(--text-2); font-size: 12px; }
.manual-coverage-card { display: grid; gap: 12px; width: 100%; max-width: none; }
.manual-coverage-card > p,
.camera-count-card__help { margin: 0 0 4px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.camera-count-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 28%, var(--border));
  border-radius: var(--calc-card-radius, 16px);
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface-2));
}
.camera-count-total strong {
  font: 800 36px/1 var(--font-display, Inter, system-ui, sans-serif);
  color: var(--text);
  letter-spacing: -0.02em;
}
.camera-count-total span {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

/* —— Invoice-style final quote —— */
/* —— Invoice-style final quote (Executive Tech Dossier) —— */
.invoice-screen { max-width: 1180px; margin-inline: auto; }
.invoice-layout { margin-top: 0; gap: 24px; }
.invoice-doc {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-shell-radius, 20px);
  background: var(--calc-surface-card, var(--surface));
  box-shadow: var(--shadow-sm);
}

.invoice-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--calc-border-default);
}
.invoice-letterhead__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.invoice-letterhead__brand img {
  height: 34px;
  width: auto;
  border-radius: 8px;
}
.invoice-letterhead__brand strong {
  display: block;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--calc-text-primary);
}
.invoice-letterhead__brand span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--calc-text-secondary);
}
.invoice-letterhead__meta {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--calc-text-secondary);
  line-height: 1.5;
}
.invoice-letterhead__meta strong {
  display: inline-block;
  padding: 3px 10px;
  background: color-mix(in srgb, var(--ant-cyan) 10%, var(--calc-surface));
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 25%, transparent);
  border-radius: 20px;
  color: var(--ant-cyan);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Modern 2-Column Specification Cards */
.invoice-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 6px;
}
.invoice-fact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--calc-border-default);
  border-radius: 12px;
  background: var(--calc-surface-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.invoice-fact-card:hover {
  border-color: color-mix(in srgb, var(--ant-cyan) 35%, var(--calc-border-default));
}
.invoice-fact-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.invoice-fact-card__icon {
  font-size: 14px;
  margin-right: 2px;
}
.invoice-fact-card__label {
  font: 700 11px/1.2 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--calc-text-secondary, var(--text-2));
  flex-grow: 1;
}
.invoice-fact-card__value {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--calc-text-primary);
  line-height: 1.45;
  word-break: break-word;
}
.invoice-edit-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 25%, var(--calc-border-default));
  border-radius: 16px;
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--calc-surface));
  color: var(--ant-cyan);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.invoice-edit-chip:hover {
  background: color-mix(in srgb, var(--ant-cyan) 18%, var(--calc-surface));
  border-color: var(--ant-cyan);
  transform: translateY(-1px);
}
.invoice-lines { padding-block: 14px; }
.invoice-lines .summary-section-title {
  margin-bottom: 12px;
  font-size: 11.5px;
}
.invoice-doc-total {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding: 18px 0 6px;
  border-top: 1px solid var(--calc-border-default);
}
.invoice-doc-total__amount {
  font: 800 clamp(28px, 3vw, 36px)/1.05 var(--font-display, Inter, system-ui, sans-serif);
  letter-spacing: -0.03em;
  color: var(--calc-text-primary, var(--text));
  margin: 4px 0 6px;
  font-variant-numeric: tabular-nums;
}
.invoice-doc-total .quote-kicker { margin-bottom: 2px; text-align: right; }
.invoice-doc-total .estimate-tax-note {
  max-width: 320px;
  text-align: right;
  margin: 0;
}
.invoice-tech {
  margin-top: 18px;
  border-top: 1px dashed color-mix(in srgb, var(--calc-border-default) 90%, transparent);
  padding-top: 12px;
}
.invoice-tech > summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--calc-text-secondary);
  padding: 8px 0;
  user-select: none;
}
.invoice-tech > summary::-webkit-details-marker { display: none; }
.invoice-tech > summary::before {
  content: '▸ ';
  color: var(--ant-cyan);
  font-family: var(--font-mono);
}
.invoice-tech[open] > summary::before { content: '▾ '; }
.invoice-tech__body { display: grid; gap: 14px; padding: 8px 0 4px; }
.invoice-tech-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.invoice-tech-metrics > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--calc-border-default);
  border-radius: 10px;
  background: var(--calc-surface-subtle);
}
.invoice-tech-metrics span {
  font: 700 9.5px/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--calc-text-muted);
}
.invoice-tech-metrics strong { font-size: 12.5px; color: var(--calc-text-primary); }
.invoice-tech__assumptions {
  margin: 0;
  padding-left: 18px;
  color: var(--calc-text-secondary);
  font-size: 12.5px;
  line-height: 1.6;
}
.invoice-tech__why h4 {
  margin: 0 0 8px;
  font: 700 9.5px/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--calc-text-muted);
}
.invoice-tech__matrix {
  display: grid;
  gap: 6px;
}
.invoice-matrix-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--calc-border-default);
  border-radius: 10px;
  background: var(--calc-surface-subtle);
  font-size: 12.5px;
  color: var(--calc-text-secondary);
}
.invoice-matrix-row strong { color: var(--calc-text-primary); font-weight: 700; }
.invoice-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: var(--calc-shell-radius, 20px);
  border: 1px solid var(--calc-border-default);
  background: var(--calc-surface-card, var(--surface));
  box-shadow: var(--shadow-sm);
}
.invoice-rail__total {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ant-cyan) 8%, var(--calc-surface)), var(--calc-surface-subtle));
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 24%, var(--calc-border-default));
  box-shadow: 0 4px 16px color-mix(in srgb, var(--ant-cyan) 6%, transparent);
}
.invoice-rail__total .quote-kicker {
  font: 700 11px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ant-cyan);
}
.invoice-rail__total .quote-total {
  font: 800 clamp(32px, 3.5vw, 40px)/1.05 var(--font-display, Inter, system-ui, sans-serif);
  letter-spacing: -0.03em;
  color: var(--calc-text-primary);
  margin: 2px 0 4px;
  font-variant-numeric: tabular-nums;
}
.quote-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.quote-meta-strip span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--calc-surface);
  border: 1px solid var(--calc-border-default);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--calc-text-secondary);
}
.estimate-confidence {
  font-size: 12px;
  color: var(--calc-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.estimate-confidence strong {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: color-mix(in srgb, #10b981 12%, transparent);
  color: #10b981;
  font-size: 11.5px;
  font-weight: 700;
}
.estimate-tax-note {
  font-size: 11.5px;
  color: var(--calc-text-secondary);
  line-height: 1.45;
}
.estimate-tax-note--muted { opacity: 0.72; }

/* Premium Glassmorphic PDF Button */
.pdf-download-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 16px 20px !important;
  border: none !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px -4px rgba(14, 165, 233, 0.42) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.pdf-download-btn:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 12px 28px -4px rgba(14, 165, 233, 0.52) !important;
  transform: translateY(-2px) !important;
}

/* Trust list cards */
.trust-list--compact {
  display: grid;
  gap: 8px;
}
.trust-list--compact .trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--calc-border-default);
  border-radius: 12px;
  background: var(--calc-surface-subtle);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--calc-text-secondary);
}
.trust-list--compact .trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--ant-cyan);
  flex-shrink: 0;
}

/* Consultation & secondary action pills */
.result-followup {
  border: 1px solid var(--calc-border-default);
  border-radius: 16px;
  background: var(--calc-surface-subtle);
  overflow: hidden;
}
.engineer-contact-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--calc-text-primary);
  cursor: pointer;
  user-select: none;
  background: var(--calc-surface-card);
}
.quote-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  flex-wrap: wrap;
}
.quote-secondary-actions > span { display: none; }
.quote-secondary-actions .btn-link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--calc-border-default);
  border-radius: 20px;
  background: var(--calc-surface);
  color: var(--calc-text-secondary) !important;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quote-secondary-actions .btn-link-quiet:hover {
  border-color: var(--ant-cyan);
  color: var(--ant-cyan) !important;
  background: color-mix(in srgb, var(--ant-cyan) 10%, var(--calc-surface));
  transform: translateY(-1px);
}
.quote-channel-actions {
  display: grid;
  gap: 9px;
  padding: 14px 12px;
  border-top: 1px solid var(--calc-border-default);
}
.quote-channel-actions__label {
  color: var(--calc-text-secondary);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.4;
}
.quote-channel-actions__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.quote-channel-actions .quote-channel-button {
  min-width: 0;
  min-height: 56px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid var(--calc-border-default);
  border-radius: 10px;
  background: var(--calc-surface);
  color: var(--calc-text-secondary);
  font: 650 10.5px/1 var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.quote-channel-actions .quote-channel-button svg { width: 19px; height: 19px; flex: 0 0 auto; }
.quote-channel-actions .quote-channel-button:hover { transform: translateY(-1px); }
.quote-channel-actions .quote-channel-button--whatsapp:hover { color: #128c4a; border-color: color-mix(in srgb, #25d366 55%, var(--calc-border-default)); background: color-mix(in srgb, #25d366 9%, var(--calc-surface)); }
.quote-channel-actions .quote-channel-button--telegram:hover { color: #168dcc; border-color: color-mix(in srgb, #229ed9 55%, var(--calc-border-default)); background: color-mix(in srgb, #229ed9 9%, var(--calc-surface)); }
.quote-channel-actions .quote-channel-button--messenger:hover { color: #7467f0; border-color: color-mix(in srgb, #8b5cf6 55%, var(--calc-border-default)); background: color-mix(in srgb, #8b5cf6 9%, var(--calc-surface)); }
.quote-channel-actions .quote-channel-button:focus-visible { outline: 2px solid var(--ant-cyan); outline-offset: 2px; }
.quote-disclaimer {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--calc-surface-subtle);
  border: 1px solid var(--calc-border-default);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--calc-text-secondary);
}

@media (max-width: 720px) {
  .invoice-summary-grid { grid-template-columns: 1fr; gap: 10px; }
  .invoice-doc { padding: 20px 16px; }
  .invoice-tech-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invoice-doc-total { justify-content: flex-start; }
  .invoice-doc-total .estimate-tax-note { text-align: left; }
}

/* —— Light mode: invoice + calculator polish —— */
html.light-mode .invoice-doc,
html.light-mode .invoice-rail {
  background: var(--calc-surface) !important;
  border-color: var(--calc-border-default) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}
html.light-mode .invoice-letterhead {
  border-bottom-color: var(--calc-border-default);
}
html.light-mode .invoice-letterhead__brand strong,
html.light-mode .invoice-letterhead__meta strong,
html.light-mode .invoice-doc-total__amount,
html.light-mode .invoice-fact-card__value,
html.light-mode .invoice-rail__total .quote-total {
  color: #0f172a !important;
}
html.light-mode .invoice-letterhead__brand span,
html.light-mode .invoice-letterhead__meta,
html.light-mode .invoice-fact-card__label {
  color: #475569;
}
html.light-mode .invoice-fact-card,
html.light-mode .trust-list--compact .trust-item,
html.light-mode .quote-disclaimer {
  background: var(--calc-surface-subtle);
  border-color: var(--calc-border-default);
}
html.light-mode .invoice-fact-card:hover {
  background: var(--calc-surface);
  border-color: color-mix(in srgb, #0ea5e9 40%, var(--calc-border-default));
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
html.light-mode .invoice-edit-chip {
  background: color-mix(in srgb, #0ea5e9 10%, var(--calc-surface));
  border-color: color-mix(in srgb, #0ea5e9 30%, transparent);
  color: #0284c7;
}
html.light-mode .invoice-rail__total {
  background: linear-gradient(180deg, color-mix(in srgb, #0ea5e9 8%, var(--calc-surface)), var(--calc-surface-subtle));
  border-color: color-mix(in srgb, #0ea5e9 25%, var(--calc-border-default));
}
html.light-mode .quote-meta-strip span {
  background: var(--calc-surface);
  border-color: var(--calc-border-default);
  color: #334155;
}
html.light-mode .trust-list--compact .trust-item {
  background: var(--calc-surface-subtle);
  border-color: var(--calc-border-default);
  color: #334155;
}
html.light-mode .quote-secondary-actions .btn-link-quiet {
  background: var(--calc-surface);
  border-color: var(--calc-border-default);
  color: #334155 !important;
}
html.light-mode .quote-secondary-actions .btn-link-quiet:hover {
  background: color-mix(in srgb, #0ea5e9 10%, var(--calc-surface));
  border-color: #0ea5e9;
  color: #0284c7 !important;
}
html.light-mode .quote-disclaimer {
  background: var(--calc-surface-subtle);
  border-color: var(--calc-border-default);
  color: #64748b;
}
html.light-mode .invoice-lines .summary-section-title {
  color: #475569;
  border-bottom-color: rgba(15, 23, 42, 0.1);
}
html.light-mode .summary-item-row {
  background: #f8f6f3;
  border-color: rgba(15, 23, 42, 0.1);
}
html.light-mode .summary-item-row:hover {
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.35);
}
html.light-mode .summary-item-row.is-service {
  background: color-mix(in srgb, #4f46e5 5%, #ffffff);
  border-color: color-mix(in srgb, #4f46e5 14%, rgba(15, 23, 42, 0.1));
}
html.light-mode .item-title { color: #0f172a; }
html.light-mode .summary-item-subtext { color: #64748b; }
html.light-mode .summary-item-qty {
  color: #0284c7;
  background: color-mix(in srgb, #0ea5e9 12%, #ffffff);
}
html.light-mode .row-right-telemetry { color: #0f172a; }
html.light-mode .is-service .row-right-telemetry { color: #4f46e5; }
html.light-mode .invoice-doc-total {
  border-top-color: rgba(15, 23, 42, 0.14);
}
html.light-mode .invoice-rail {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.06) !important;
}
html.light-mode .invoice-rail .quote-total,
html.light-mode .invoice-doc-total__amount {
  color: #0f172a !important;
  text-shadow: none !important;
}
html.light-mode .invoice-tech {
  border-top-color: rgba(15, 23, 42, 0.12);
}
html.light-mode .invoice-tech > summary { color: #475569; }
html.light-mode .invoice-tech-metrics > div,
html.light-mode .invoice-matrix-row {
  background: #f8f6f3;
  border-color: rgba(15, 23, 42, 0.1);
}
html.light-mode .invoice-tech-metrics span { color: #64748b; }
html.light-mode .invoice-tech-metrics strong,
html.light-mode .invoice-matrix-row strong { color: #0f172a; }
html.light-mode .invoice-tech__assumptions { color: #475569; }
html.light-mode .quote-contact-intro {
  background: #f8f6f3;
  border-color: rgba(15, 23, 42, 0.1);
}
html.light-mode .quote-contact-intro strong { color: #0f172a !important; }
html.light-mode .quote-contact-intro span { color: #475569 !important; }
html.light-mode .contact-input-field {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}
html.light-mode .contact-input-field::placeholder { color: #94a3b8 !important; }
html.light-mode .contact-input-field:focus {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
html.light-mode .quote-disclaimer { color: #64748b !important; }
html.light-mode .trust-item { color: #475569 !important; }
html.light-mode .btn-link-quiet { color: #475569 !important; }
html.light-mode .quote-secondary-actions > span { color: #cbd5e1 !important; }
html.light-mode .quote-success-state {
  background: color-mix(in srgb, #0ea5e9 6%, #ffffff);
  border-color: color-mix(in srgb, #0ea5e9 22%, rgba(15, 23, 42, 0.1));
}
html.light-mode .quote-success-state h3 { color: #0f172a; }
html.light-mode .quote-success-state p { color: #475569; }

/* Light mode: working steps / cards / counts */
html.light-mode .camera-count-total {
  background: color-mix(in srgb, #0ea5e9 8%, #ffffff);
  border-color: color-mix(in srgb, #0ea5e9 28%, rgba(15, 23, 42, 0.1));
}
html.light-mode .camera-count-total strong { color: #0f172a; }
html.light-mode .camera-count-total span,
html.light-mode .camera-count-card__help { color: #475569; }
html.light-mode .manual-count-row {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}
html.light-mode .manual-count-row output { color: #0f172a; }
html.light-mode .storage-compare-details {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}
html.light-mode .storage-compare-details > summary { color: #475569; }
html.light-mode .storage-compare-details[open] > summary {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}
html.light-mode .feature-comparison-card {
  background: #f8f6f3;
  border-color: rgba(15, 23, 42, 0.1);
}
html.light-mode .feature-comparison-title { color: #0f172a; }
html.light-mode .comparison-box {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}
html.light-mode .camera-goal-card,
html.light-mode .option-row.calc-choice-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
html.light-mode .camera-goal-card span { color: #64748b; }
html.light-mode .camera-goal-card.is-active,
html.light-mode .option-row.calc-choice-card.is-active {
  background: color-mix(in srgb, #0ea5e9 8%, #ffffff);
  border-color: #0ea5e9;
}
html.light-mode .question-card,
html.light-mode .storage-recording-card,
html.light-mode .manual-coverage-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
}
html.light-mode .context-fieldset legend,
html.light-mode .step-head__title { color: #0f172a; }
html.light-mode .step-head__sub,
html.light-mode .step-head__eyebrow,
html.light-mode .context-help,
html.light-mode .status-note { color: #475569; }
html.light-mode .context-chip {
  background: #f8f6f3;
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}
html.light-mode .context-chip.is-active {
  background: color-mix(in srgb, #0ea5e9 12%, #ffffff);
  border-color: #0ea5e9;
  color: #0c4a6e;
}
html.light-mode .counter-controls button {
  background: #f8f6f3;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}
html.light-mode .counter-controls button:hover {
  border-color: #0ea5e9;
  color: #0284c7;
}
html.light-mode .price-card-container {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
html.light-mode .price-display-amount { color: #0f172a !important; }
html.light-mode .price-card-container__label,
html.light-mode .price-card-container__note,
html.light-mode .price-card-container__locked-copy { color: #64748b; }
html.light-mode .steps {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}
html.light-mode .step {
  border-color: transparent;
  color: #334155;
}
html.light-mode .step.is-active {
  background: #ffffff;
  border-color: #0ea5e9 !important;
  box-shadow: inset 3.5px 0 0 #0ea5e9, 0 4px 14px rgba(14, 165, 233, 0.08) !important;
}
html.light-mode .step__title { color: #0f172a; }
html.light-mode .step__sub { color: #64748b; }
html.light-mode .steps__head { color: #64748b; }
html.light-mode .topbar__inner {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
}
html.light-mode .brand__name,
html.light-mode .brand__product { color: #0f172a; }
html.light-mode .draft-badge { color: #64748b; border-color: rgba(15, 23, 42, 0.1); }
html.light-mode .context-footer {
  background: #f8f6f3;
  border-color: rgba(15, 23, 42, 0.1);
}
html.light-mode .coverage-footer--sticky {
  background: rgba(248, 246, 243, 0.96);
  border-top-color: rgba(15, 23, 42, 0.1);
}
html.light-mode .micro-progress__track { background: rgba(15, 23, 42, 0.08); }
html.light-mode .micro-progress__fill { background: #0ea5e9; }
html.light-mode .camera-flow-header strong { color: #0f172a; }
html.light-mode .camera-flow-header small,
html.light-mode .camera-flow-header em { color: #64748b; }
html.light-mode .decree-review-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}
html.light-mode .decree-review-card__header { color: #0f172a; }
html.light-mode .decree-applicability-note { color: #475569; }
html.light-mode .result-followup .btn-cta-primary,
html.light-mode .pdf-download-btn {
  color: #ffffff !important;
}
.manual-count-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.manual-count-row output { min-width: 42px; text-align: center; font: 700 18px/1 var(--font-mono); }
.camera-plan-card { display: grid; gap: 16px; }
.camera-plan-card__hero { display: grid; gap: 6px; padding: 22px; border: 1px solid color-mix(in srgb, var(--ant-cyan) 35%, var(--border)); border-radius: 16px; background: linear-gradient(145deg,color-mix(in srgb,var(--ant-cyan) 10%,var(--surface)),var(--surface)); }
.camera-plan-card__hero > span { color: var(--ant-cyan); font: 700 10px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.camera-plan-card__hero > strong { font: 800 32px/1.1 var(--font-display); }
.camera-plan-card__hero p { margin: 0; color: var(--text-2); font-size: 13px; }
.camera-plan-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.camera-plan-metrics > div, .result-resilience > div { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.camera-plan-metrics span, .result-resilience span { color: var(--text-3); font: 700 9px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.camera-plan-metrics strong, .result-resilience strong { font-size: 13px; }
.camera-advanced, .storage-advanced, .confirm-assumptions { padding: 16px; border: 1px solid var(--border); border-radius: var(--calc-card-radius, 12px); background: var(--surface); box-shadow: none; }
.camera-advanced > summary, .storage-advanced > summary { cursor: pointer; color: var(--text); font-size: 13px; font-weight: 700; }
.camera-advanced[open] > summary, .storage-advanced[open] > summary { margin-bottom: 18px; }
.storage-resilience-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.storage-resilience-card__head { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.storage-resilience-card__head p, .storage-rule-note { margin: 5px 0 0; color: var(--text-2); font-size: 12px; }
.storage-resilience-card .power-toggle-card { width: auto; min-width: 150px; margin: 0; padding: 10px 12px; }
.storage-resilience-card .ups-runtime-selector { margin-top: 16px; }
.longest-run-field { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 16px; color: var(--text-2); font-size: 12px; }
.longest-run-field input { width: 96px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border-2); border-radius: 9px; color: var(--text); background: var(--surface-2); font: 700 14px/1 var(--font-mono); }
/* No max-width here: it used to beat .confirm-dossier's 1320px (later rule,
   same specificity) and crush the two-column dossier grid into 940px. */
.confirm-screen { margin-inline: auto; }
.confirm-grid { display: grid; gap: 10px; }
.confirm-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 18px; border: 1px solid var(--border); border-radius: var(--calc-card-radius, 12px); background: var(--surface); box-shadow: none; }
.confirm-card > div { display: grid; gap: 5px; }
.confirm-card span { color: var(--text-3); font: 700 9px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.confirm-card strong { font-size: 15px; }
.confirm-card p { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.5; }
.confirm-card button, .result-edit-strip button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px; color: var(--ant-cyan); background: transparent; font-size: 11px; font-weight: 700; }
.confirm-assumptions h3 { margin: 0 0 10px; font-size: 14px; }
.confirm-assumptions ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.confirm-price-preview { display: grid; gap: 6px; padding: 22px; border: 1px solid color-mix(in srgb,var(--ant-cyan) 40%,var(--border)); border-radius: 16px; background: color-mix(in srgb,var(--ant-cyan) 8%,var(--surface)); text-align: center; }
.confirm-price-preview span, .confirm-price-preview small { color: var(--text-2); font-size: 11px; }
.confirm-price-preview strong { color: var(--ant-cyan); font: 800 32px/1.1 var(--font-display); }
.result-screen { max-width: 1320px; margin-inline: auto; }
.result-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px; align-items: end; margin-bottom: 18px; padding: 28px 30px; border: 1px solid color-mix(in srgb,var(--ant-cyan) 34%,var(--border)); border-radius: var(--calc-shell-radius, 16px); background: linear-gradient(135deg,color-mix(in srgb,var(--ant-cyan) 12%,var(--surface)),var(--surface)); animation: priceReveal var(--calc-motion-feedback) var(--ease-out) both; }
.result-hero__eyebrow { color: var(--ant-cyan); font: 700 10px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.result-hero h1 { max-width: 720px; margin: 8px 0; color: var(--text); font: 800 clamp(26px,3vw,40px)/1.12 var(--font-display); }
.result-hero p { margin: 0; color: var(--text-2); font: 500 11px/1.4 var(--font-mono); }
.result-hero__price { display: grid; gap: 5px; min-width: 300px; text-align: right; }
.result-hero__price > span { color: var(--text-2); font-size: 11px; font-weight: 700; }
.result-hero__price strong {
  color: var(--ant-cyan);
  font: 800 38px/1 var(--font-display);
  font-feature-settings: "tnum" 1;
}
.result-hero__price strong small { font-size: .65em; }
.result-hero__price strong,
.price-display-amount,
.dossier-price > strong {
  font-family: var(--font-display), var(--font-sans, "Inter", "Noto Sans Georgian", system-ui, sans-serif);
}
.result-hero__price em { color: var(--text-2); font-size: 10px; font-style: normal; }
.result-edit-strip { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
.result-resilience { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.result-followup {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 14px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 28%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--ant-cyan) 7%, var(--surface));
  animation: priceReveal var(--motion-route) var(--ease-out) backwards;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ant-cyan) 8%, transparent);
}
.result-contact-form { display: grid; gap: 12px; }
.quote-contact-required,
.quote-contact-hint { margin:0; color:var(--calc-text-muted); font-size:11px; line-height:1.45; }
.quote-contact-privacy { margin:0; color:var(--calc-text-muted); font-size:11px; line-height:1.5; }
.quote-contact-privacy a { color:var(--ant-cyan); text-underline-offset:3px; }
.quote-contact-required { text-align:right; }
.quote-contact-field { display:grid; min-width:0; gap:7px; color:var(--calc-text-muted); font-size:11px; font-weight:650; }
.quote-contact-field > span > span { color:var(--color-danger); }
.quote-contact-channel-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.result-contact-form .contact-input-field {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 48px;
  padding: 13px 14px;
  font-size: 14px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink, var(--text));
  outline: none;
  resize: vertical;
  transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.quantity-path-panel {
  max-width: 720px;
}
.quantity-decision-panel {
  display: grid;
  gap: 14px;
  max-width: 720px;
}
.quantity-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quantity-mode-choice {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--calc-border-default, var(--border));
  border-radius: var(--calc-card-radius, 12px);
  background: var(--calc-surface-subtle, var(--surface-2));
  color: var(--calc-text-primary, var(--text));
  text-align: left;
  cursor: pointer;
}
.quantity-mode-choice strong {
  font-size: 15px;
}
.quantity-mode-choice span {
  color: var(--calc-text-secondary, var(--text-2));
  font-size: 12px;
  line-height: 1.45;
}
.quantity-mode-choice:hover,
.quantity-mode-choice:focus-visible,
.quantity-mode-choice.is-active {
  border-color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 7%, var(--calc-surface-subtle, var(--surface-2)));
}
.quantity-path-panel__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--calc-text-muted, var(--text-3));
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.quantity-path-panel__divider::before,
.quantity-path-panel__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--calc-border-default, var(--border));
}
.quantity-guided-choice {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px dashed var(--calc-border-strong, var(--border));
  border-radius: var(--calc-control-radius, 10px);
  background: var(--calc-surface-subtle, var(--surface-2));
  color: var(--calc-text-primary, var(--text));
  text-align: left;
  cursor: pointer;
}
.quantity-guided-choice strong {
  font-size: 13px;
}
.quantity-guided-choice span {
  color: var(--calc-text-secondary, var(--text-2));
  font-size: 12px;
  line-height: 1.45;
}
.quantity-guided-choice:hover,
.quantity-guided-choice.is-active {
  border-color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 7%, var(--calc-surface-subtle, var(--surface-2)));
}
@media (max-width: 600px) {
  .quantity-decision-panel {
    gap: 10px;
  }
  .quantity-mode-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .quantity-mode-choice {
    min-height: 76px;
    padding: 13px 14px;
  }
  .quantity-path-panel {
    gap: 8px;
  }
  .quantity-path-panel .camera-count-card__help {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.45;
  }
  .quantity-path-panel .camera-count-total {
    min-height: 54px;
    padding: 9px 13px;
  }
  .quantity-path-panel .camera-count-total strong {
    font-size: 29px;
  }
  .quantity-path-panel .manual-count-row {
    min-height: 54px;
    padding: 9px 12px;
  }
  .quantity-path-panel__divider {
    gap: 8px;
  }
  .quantity-guided-choice {
    min-height: 62px;
    gap: 3px;
    padding: 10px 12px;
  }
  .quantity-guided-choice span {
    font-size: 11px;
    line-height: 1.35;
  }
}
.structure-direct-note {
  margin: 0;
  color: var(--calc-text-secondary, var(--text-2));
  font-size: 13px;
  line-height: 1.55;
}
.scale-counter-grid--single {
  grid-template-columns: minmax(0, 1fr) !important;
}
.result-contact-form textarea.contact-input-field { min-height:88px; }
.result-contact-form .contact-input-field.is-invalid {
  border-color:var(--color-danger) !important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--color-danger) 14%,transparent) !important;
}
.result-contact-form .contact-inline-error { margin:0; }
.result-contact-form .contact-input-field:focus {
  border-color: color-mix(in srgb, var(--ant-cyan) 62%, transparent);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ant-cyan) 13%, transparent);
}
html.light-mode .result-contact-form .contact-input-field {
  border-color: rgba(15, 23, 42, 0.13);
  background: rgba(15, 23, 42, 0.03);
}
html.light-mode .result-contact-form .contact-input-field:focus {
  background: rgba(255, 255, 255, 0.76);
}
.result-contact-form .btn-cta-primary {
  min-height: 52px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
}
.result-contact-form .btn-cta-primary span { width: 16px; display: grid; place-items: center; }
.quote-contact-intro { gap: 6px; padding: 14px !important; border-radius: 12px !important; }
.quote-contact-intro strong { font-size: 14px !important; }
.quote-contact-intro span,
.quote-contact-next { font-size: 12.5px !important; line-height: 1.5 !important; }

@media (max-width: 767px) {
  .quote-contact-channel-grid { grid-template-columns:1fr; }
  .result-followup {
    position: sticky;
    bottom: 8px;
    z-index: 6;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
  }
}

html.light-mode .camera-flow-section,
html.light-mode .camera-choice,
html.light-mode .camera-goal-card,
html.light-mode .camera-plan-card__hero,
html.light-mode .storage-resilience-card,
html.light-mode .camera-advanced,
html.light-mode .storage-advanced,
html.light-mode .confirm-card,
html.light-mode .confirm-assumptions,
html.light-mode .result-hero { background-color: #fff; }

@media (max-width: 767px) {
  .camera-flow-panel { padding: 4px 12px 16px; }
  .camera-choice-grid, .camera-goal-grid, .camera-plan-metrics, .result-resilience { grid-template-columns: 1fr; }
  .camera-choice, .camera-goal-card { min-height: 94px; }
  .camera-flow-header { grid-template-columns: 32px minmax(0,1fr) auto; padding: 11px 12px; }
  .storage-resilience-card__head, .longest-run-field { align-items: stretch; flex-direction: column; }
  .storage-resilience-card .power-toggle-card { width: 100%; }
  .result-hero { grid-template-columns: 1fr; padding: 20px 18px; }
  .result-hero__price { min-width: 0; text-align: left; }
  .result-hero__price .estimate-final-note { text-align: left; margin-left: 0; max-width: none; }
  .result-edit-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .result-edit-strip button { min-width: 0; padding-inline: 6px; font-size: 9px; }
  .result-screen > .mobile-result-summary { display: none; }
  .confirm-card { align-items: stretch; flex-direction: column; }
  .confirm-card button { align-self: flex-start; }
  .steps .price-card-container--locked { min-height: 0; grid-template-columns: 1fr !important; }
  .steps .price-card-container__locked-copy { font-size: 9px; text-align: left; }
}

@media (min-width: 1200px) {
  .calc-layout { --grid-col-min: 180px; align-items: start; }
  .steps {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 108px;
    align-self: start;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 132px);
    padding: 20px;
    overflow-y: auto;
  }
  .step { min-height: 66px; padding: 14px 16px; }
  .step__title { font-size: 15px; }
  .step__sub { margin-top: 4px; font-size: 12px; line-height: 1.4; }
  .step-head { margin-bottom: 24px; }
  .step-head__eyebrow { margin-bottom: 10px; font-size: 11px; }
  .step-head__title { margin-bottom: 10px; font-size: clamp(28px, 1.65vw, 30px); line-height: 1.18; }
  .step-head__sub { max-width: 760px; font-size: 14px; line-height: 1.55; }
  .site-grid { gap: 14px; }
  .site-card { min-height: 112px; padding: 18px 20px; border-radius: 14px; }
  .site-card__name,
  .tier-row__name { font-size: 16px; }
  .site-card__desc,
  .tier-row__desc { font-size: 13px; line-height: 1.45; }
  .obj-type-card,
  .tier-card,
  .zone-card { padding: 16px !important; }
  .actions { margin-top: 28px; }
  .calc-review-shell .quote-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); gap: 28px; }
}

@media (max-width: 1199px) {
  .calc-review-shell { width: 100%; padding: 24px 16px 48px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .steps {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border);
    overflow: visible !important;
  }
  .steps > div:first-child {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .steps__head,
  .steps > div:last-child { display: none !important; }
  .steps .step {
    min-width: 0;
    min-height: 64px;
    padding: 10px 12px;
  }
  .steps .step__title { font-size: 13px; }
  .steps .step__sub { font-size: 10px; line-height: 1.35; }
  .steps .price-card-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3px 16px;
    margin-top: 4px;
    padding: 10px 14px;
  }
  .steps .price-card-container__label { grid-column: 1; }
  .steps .price-display-amount { grid-row: 1 / span 2; grid-column: 2; font-size: 24px; }
  .steps .price-card-container__note { grid-column: 1; }
}

@media (hover: hover) and (pointer: fine) {
  #app-root :where(.site-card, .tier-row, .obj-type-card, .zone-card, .tier-card, .zone-preset-btn):hover:not(.is-active) {
    transform: translateY(-2px) !important;
  }
  #app-root :where(.btn, .btn-cta-primary):hover:not(:disabled) { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  #app-root *,
  #app-root *::before,
  #app-root *::after,
  .calc-confirm-overlay,
  .calc-confirm-dialog {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  #app-root :where(button, [role="button"], .btn):active:not(:disabled) { transform: none !important; }
  .bg-orbs::before,
  .bg-orbs::after,
  .bg-orbs .orb-3,
  .draft-badge__dot { animation: none !important; }
}

.mobile-result-summary { display: none; }

@media (max-width: 767px) {
  .topbar { overflow: clip; }
  .calc-review-shell { padding: 12px 12px 32px; }
  .topbar [data-action="reset-config"],
  .topbar [data-action="go-review"],
  .topbar [data-action="edit-result"],
  .topbar .topbar-theme { display: none !important; }
  .calc-layout { padding: 8px 12px 104px !important; gap: 10px !important; }
  .steps {
    position: static !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 8px !important;
    margin: 0 !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    overflow: visible !important;
  }
  .steps > div:first-child { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; width: 100%; }
  .steps__head,
  .steps > div:last-child { display: none !important; }
  .steps .step { min-width: 0; height: 32px; padding: 3px !important; border-radius: 8px !important; border: 1px solid transparent !important; }
  .steps .step.is-active { border-color: var(--ant-cyan) !important; box-shadow: none !important; margin: 0 !important; }
  .steps .step__num { width: 24px; height: 24px; font-size: 10px; }
  .steps .price-card-container {
    grid-column: 1 / -1;
    margin: 2px 0 0 !important;
    padding: 7px 10px !important;
    border-radius: 9px !important;
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 10px !important;
  }
  .steps .price-card-container > div:first-child { font-size: 8px !important; }
  .steps .price-card-container .price-display-amount { grid-row: 1 / span 2; grid-column: 2; font-size: 18px !important; }
  .steps .price-card-container > div:last-child { font-size: 8px !important; }
  .center-content { justify-content: flex-start !important; }
  .step-content > .fade-in { gap: 14px !important; }
  .step-head { margin-bottom: 0 !important; }
  .step-head__title { font-size: 22px !important; }
  .site-grid { gap: 8px !important; }
  .site-card { min-height: 72px !important; padding: 10px !important; }
  .project-context,
  .ups-runtime-selector { padding: 14px; }
  .context-counter-grid,
  .decree-rule-split { grid-template-columns: 1fr; }
  .calculator-actions-wrapper { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important; }
  .quote-layout,
  .summary-left-container,
  .right-summary-card { width: 100% !important; min-width: 0 !important; }
  .summary-left-container { padding: 20px 16px !important; }
  .right-summary-card { padding: 20px 16px !important; }
  .mobile-result-summary {
    display: grid;
    gap: 5px;
    margin: 0 0 12px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--ant-cyan) 38%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--ant-cyan) 9%, var(--surface));
    color: var(--text);
  }
  .mobile-result-summary > span { color: var(--text-2); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-result-summary > strong { color: var(--ant-cyan); font: 800 28px/1.1 var(--font-display); }
  .mobile-result-summary > small { color: var(--text-2); font-size: 10px; }
}
/* ===== Aesthetic pass A+B+C (geometry · brand · depth) ===== */
:root, body, #app-root {
  --calc-card-radius: 16px;
  --calc-control-radius: 11px;
  --calc-shell-radius: 20px;
  --calc-elevation-shell: 0 18px 48px rgba(0, 0, 0, 0.16);
  --calc-elevation-active: var(--elevation-active, 0 0 0 1px color-mix(in srgb, var(--ant-cyan) 40%, transparent), 0 12px 32px color-mix(in srgb, var(--ant-cyan) 12%, transparent));
}

/* A: secondary full-width fallback under 3-col grids — no orphan cells */
.discovery-choice-stack {
  display: grid;
  gap: 12px;
}
.discovery-choice-stack > .premium-choice-grid {
  margin: 0;
}
.site-card--secondary {
  width: 100%;
  min-height: 64px !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 14px 16px !important;
  border-style: dashed !important;
  border-radius: var(--calc-card-radius) !important;
  text-align: left;
  box-shadow: none !important;
  background-image: none !important;
}
.site-card--secondary .site-card__icon {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: var(--calc-control-radius);
}
.site-card--secondary .site-card__name {
  margin: 0;
  padding-right: 0 !important;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}
.site-card--secondary .site-card__desc {
  grid-column: 2;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
.site-card--secondary .choice-card__check {
  top: 12px;
  right: 12px;
}
/* Subtype "not listed" has no icon — collapse to single column */
.site-card--secondary:not(:has(.site-card__icon)) {
  grid-template-columns: minmax(0, 1fr);
}
.site-card--secondary:not(:has(.site-card__icon)) .site-card__desc {
  grid-column: 1;
}

/* A: micro-progress — single meta label */
.micro-progress__meta {
  justify-content: flex-start;
}
.micro-progress__meta span:first-child {
  color: var(--ant-cyan);
}

/* A+C: radius + depth hierarchy — shell quiet, cards hairline, active subtle */
.discovery-section,
.camera-flow-section,
.storage-flow-section {
  border-radius: var(--calc-shell-radius) !important;
  box-shadow: none !important;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}
.discovery-section.is-active,
.camera-flow-section.is-active,
.storage-flow-section.is-active {
  box-shadow: var(--calc-elevation-active) !important;
  background: color-mix(in srgb, var(--ant-cyan) 4%, var(--surface));
}
#app-root :where(.discovery-section, .camera-flow-section) {
  border-radius: var(--calc-shell-radius);
  box-shadow: none;
}
#app-root :where(.discovery-section.is-active, .camera-flow-section.is-active) {
  box-shadow: var(--calc-elevation-active);
}

/* C: choice cards — no stacked heavy shadow inside shells */
.premium-choice-grid .site-card,
.discovery-section .site-card,
.discovery-choice-stack .site-card {
  border-radius: var(--calc-card-radius) !important;
  box-shadow: none !important;
  background-image: none !important;
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  border: 1px solid var(--border);
  min-height: 120px;
}
.premium-choice-grid .site-card:hover:not(.is-active),
.discovery-section .site-card:hover:not(.is-active),
.site-card--secondary:hover:not(.is-active) {
  box-shadow: none !important;
  border-color: color-mix(in srgb, var(--ant-cyan) 35%, var(--border));
}
.premium-choice-grid .site-card.is-active,
.discovery-section .site-card.is-active,
.site-card--secondary.is-active {
  box-shadow: var(--elevation-active, 0 0 0 1px color-mix(in srgb, var(--ant-cyan) 40%, transparent)) !important;
  border-color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface));
}
.premium-choice-grid .site-card__icon {
  border-radius: var(--calc-control-radius);
}
.premium-choice-grid .site-card__name {
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.premium-choice-grid .site-card__desc {
  font-size: 13px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.01em;
}

/* Panel left gutter uses token math (index 36 + gap 12 + pad 16) */
.discovery-section__panel {
  padding: 4px 18px 20px calc(36px + 12px + 16px);
}
.discovery-section__header {
  gap: 12px;
  padding: 14px 16px;
  border-radius: 0;
}
.step {
  border-radius: var(--calc-card-radius);
}

/* C: sidebar tip + exit quieter than active step */
.price-card-container {
  margin-top: 20px !important;
  padding: 14px 14px !important;
  border-radius: var(--calc-card-radius) !important;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.price-card-container--locked {
  min-height: 88px !important;
}
.price-card-container__locked-copy {
  text-align: left !important;
  font-size: 11px !important;
  color: var(--text-3) !important;
}
.price-card-container__label {
  font-size: 10px !important;
  color: var(--text-3) !important;
}
.steps-reset-button {
  opacity: 0.72;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3) !important;
  transition: opacity var(--motion-fast) ease, color var(--motion-fast) ease;
}
.steps-reset-button:hover {
  opacity: 1;
  color: #f87171 !important;
}
.steps-reset-button svg {
  opacity: 0.85;
}

/* Light mode: surfaces from tokens, not legacy alabaster/blue */
html.light-mode .premium-choice-grid .site-card,
html.light-mode .discovery-section .site-card,
html.light-mode .site-card--secondary {
  background: var(--surface);
  border-color: var(--border);
}
html.light-mode .discovery-section,
html.light-mode .camera-flow-section {
  background: var(--surface);
}
html.light-mode .discovery-section.is-active,
html.light-mode .camera-flow-section.is-active {
  background: color-mix(in srgb, var(--ant-cyan) 5%, var(--surface));
}
html.light-mode .price-card-container {
  background: color-mix(in srgb, var(--surface) 70%, transparent) !important;
}

@media (max-width: 768px) {
  .discovery-section__panel {
    padding: 4px 12px 16px 12px;
  }
  .site-card--secondary {
    min-height: 56px !important;
    padding: 12px !important;
  }
  .premium-choice-grid .site-card {
    min-height: 100px;
  }
}
/* ===== Journey visual contract N1–N7 (discovery → result) ===== */

/* N1: option rows, scale, chips — same family as site cards */
.discovery-section .option-row,
.storage-flow .option-row,
.question-card .option-row {
  min-height: 56px;
  border-radius: var(--calc-card-radius, 12px) !important;
  box-shadow: none !important;
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  border: 1px solid var(--border);
  font-size: var(--fs-md, 14px);
  font-weight: 650;
}
.discovery-section .option-row small,
.storage-flow .option-row small,
.question-card .option-row small {
  font-size: var(--fs-xs, 11px);
  color: var(--text-2);
  font-weight: 500;
}
.discovery-section .option-row:hover:not(:disabled):not(.is-active),
.storage-flow .option-row:hover:not(:disabled):not(.is-active),
.question-card .option-row:hover:not(:disabled):not(.is-active) {
  border-color: color-mix(in srgb, var(--ant-cyan) 35%, var(--border));
  box-shadow: none !important;
}
.discovery-section .option-row.is-active,
.storage-flow .option-row.is-active,
.question-card .option-row.is-active,
.option-row:is(.is-active, [aria-pressed="true"]) {
  border-color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface));
  box-shadow: var(--elevation-active, 0 0 0 1px color-mix(in srgb, var(--ant-cyan) 35%, transparent)) !important;
}

.option-row-grid {
  gap: 12px;
}

.question-card,
.discovery-context-panel,
.project-context {
  --calc-card-pad: 20px;
  border-radius: var(--calc-card-radius, 12px) !important;
  box-shadow: none !important;
  /* The old `background: transparent` here never took effect — it loses to
     `#app-root :where(… .question-card …)` above on specificity. The card does
     paint a surface, so state that rather than pretending otherwise. */
  background: var(--calc-surface);
  padding: 4px var(--calc-card-pad) 0;
}

.scale-counter,
.context-fieldset .scale-counter {
  border-radius: var(--calc-card-radius, 12px) !important;
  border: 1px solid var(--border) !important;
  background: color-mix(in srgb, var(--surface-2) 40%, transparent) !important;
  box-shadow: none !important;
  padding: 14px !important;
}
.scale-counter-grid {
  gap: 12px;
}

.complexity-chip,
.context-chip,
.runtime-opt-btn {
  border-radius: 999px !important;
  border: 1px solid var(--border) !important;
  background: color-mix(in srgb, var(--surface-2) 50%, transparent) !important;
  box-shadow: none !important;
  font-size: var(--fs-xs, 11px) !important;
  font-weight: 600 !important;
  color: var(--text-2) !important;
}
.complexity-chip.is-active,
.context-chip.is-active,
.runtime-opt-btn.is-active,
.complexity-chip:is(.is-active, [aria-pressed="true"]),
.context-chip:is(.is-active, [aria-pressed="true"]) {
  border-color: var(--ant-cyan) !important;
  color: var(--text) !important;
  background: color-mix(in srgb, var(--ant-cyan) 10%, var(--surface)) !important;
}

.status-note,
.scale-defaults-note {
  border-radius: var(--calc-control-radius, 8px) !important;
  border: 1px solid var(--calc-border-default);
  background: var(--calc-surface-subtle) !important;
  box-shadow: none !important;
  font-size: var(--fs-xs, 11px) !important;
  color: var(--calc-text-secondary) !important;
}

/* Re-assert the warning variant: the blanket `color: … !important` above was
   overriding the amber, so warnings rendered as ordinary body text. */
.status-note--warning {
  border-color: color-mix(in srgb, var(--calc-warning) 55%, transparent) !important;
  background: color-mix(in srgb, var(--calc-warning) 8%, var(--calc-surface)) !important;
  color: var(--calc-warning) !important;
}

.catalog-search input,
.exact-area-field input,
.coverage-toolbar input {
  border-radius: var(--calc-control-radius, 8px) !important;
  min-height: 44px;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

/* subtype grid: match primary cards; secondary already full-width */
.subtype-grid.premium-choice-grid .site-card,
.subtype-grid .site-card {
  min-height: 96px !important;
}
.subtype-grid .site-card--secondary {
  min-height: 56px !important;
}

/* Object selection: collapse the chosen group and keep the subtype picker in-view. */
.site-group-summary {
  margin-bottom: 10px;
}

.site-group-summary__button {
  display: grid;
  width: 100%;
  min-height: 56px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 44%, var(--border));
  border-radius: var(--calc-card-radius);
  padding: 9px 14px;
  background: color-mix(in srgb, var(--ant-cyan) 7%, var(--surface));
  color: var(--text);
  text-align: left;
}

.site-group-summary__button .site-card__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-control-radius);
  color: var(--ant-cyan);
  background: var(--calc-surface);
}

.site-group-summary__button .site-card__icon svg {
  width: 17px;
  height: 17px;
}

.site-group-summary__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.site-group-summary__copy strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-group-summary__copy small {
  overflow: hidden;
  color: var(--calc-text-secondary);
  font-size: 10.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-group-summary__change {
  color: var(--ant-cyan);
  font-size: 11px;
  font-weight: 750;
}

.site-group-summary__button:hover {
  border-color: color-mix(in srgb, var(--ant-cyan) 66%, var(--border));
  background: color-mix(in srgb, var(--ant-cyan) 10%, var(--surface));
}

.site-group-summary__button:focus-visible {
  outline: 2px solid var(--ant-cyan);
  outline-offset: 3px;
}

.object-type-picker {
  display: grid;
  min-height: 0;
  gap: 8px;
}

.object-type-picker .catalog-search {
  margin: 0;
}

.object-type-picker .catalog-search input {
  min-height: 40px;
  padding-block: 8px;
}

.object-type-picker .discovery-choice-stack,
.object-type-picker .subtype-grid {
  gap: 8px;
}

.object-type-picker .subtype-grid .site-card {
  min-height: 72px !important;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 3px;
  padding: 10px 14px !important;
}

.object-type-picker .subtype-grid .site-card__name {
  font-size: 13px;
  line-height: 1.3;
}

.object-type-picker .subtype-grid .site-card__desc {
  font-size: 10.5px !important;
  line-height: 1.3;
}

.object-type-picker .site-card--secondary {
  min-height: 50px !important;
  padding-block: 9px !important;
}

.object-type-picker > .discovery-auto-hint {
  margin-top: 0;
}

@media (max-width: 767px) {
  .site-group-summary__button {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding-inline: 12px;
  }

  .site-group-summary__copy small {
    display: none;
  }

  .object-type-picker .subtype-grid {
    max-height: min(48dvh, 360px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-gutter: stable;
  }

  .object-type-picker .subtype-grid .site-card {
    min-height: 76px !important;
    padding: 9px 11px !important;
  }
}

/* N1.4 accordion header rhythm */
.discovery-section__title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: var(--tracking-head, -0.02em);
}
.discovery-section__hint,
.discovery-section__summary {
  font-size: var(--fs-xs, 11px) !important;
  line-height: 1.45;
}
.discovery-section__index {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

/* N2: camera choice / goal / plan */
.camera-choice,
.camera-goal-card {
  position: relative;
  border-radius: var(--calc-card-radius, 12px) !important;
  box-shadow: none !important;
  background: color-mix(in srgb, var(--surface-2) 55%, transparent) !important;
  border: 1px solid var(--border) !important;
  min-height: 112px;
  padding: 18px !important;
}
.camera-choice:hover,
.camera-goal-card:hover {
  border-color: color-mix(in srgb, var(--ant-cyan) 35%, var(--border)) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}
.camera-goal-card.is-active,
.camera-choice.is-active,
.camera-choice--recommended:focus-visible {
  border-color: var(--ant-cyan) !important;
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface)) !important;
}
.camera-choice__badge {
  display: inline-flex;
  align-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  font: 700 9px/1.2 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #071018;
  background: var(--ant-cyan);
}
.camera-choice strong,
.camera-goal-card strong {
  font-size: 15px;
  line-height: 1.3;
}
.camera-choice span,
.camera-goal-card span {
  font-size: var(--fs-xs, 11px) !important;
  line-height: 1.45;
  color: var(--text-2) !important;
}
.recommended-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 9px 5px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 38%, var(--border));
  background: color-mix(in srgb, var(--ant-cyan) 12%, var(--surface));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ant-cyan) 10%, transparent);
  font-weight: 750;
  white-space: nowrap;
  z-index: 1;
}
/* .camera-goal-card span sets color/font-size with !important at a higher
   specificity (class+element) than a bare .recommended-tag class selector —
   re-assert here so the tag keeps its cyan accent inside goal cards. */
.camera-goal-card span.recommended-tag,
span.recommended-tag {
  color: var(--ant-cyan) !important;
  font-size: 10px !important;
}
.camera-goal-card.is-recommended {
  isolation: isolate;
  overflow: visible;
  border: 1px solid color-mix(in srgb, #4285f4 58%, var(--border)) !important;
  background:
    radial-gradient(circle at 18% 0%, rgb(66 133 244 / 11%), transparent 48%),
    linear-gradient(145deg,
      color-mix(in srgb, #4285f4 6%, var(--surface-2)),
      color-mix(in srgb, #a142f4 3%, var(--surface-2)) 62%,
      var(--surface-2)) !important;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 48%) inset,
    0 8px 18px rgb(21 45 86 / 10%),
    0 18px 42px rgb(66 133 244 / 13%) !important;
}
.camera-goal-card.is-recommended::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: calc(var(--calc-card-radius, 12px) + 8px);
  background:
    radial-gradient(circle at 18% 18%, rgb(66 133 244 / 24%), transparent 46%),
    radial-gradient(circle at 82% 76%, rgb(161 66 244 / 16%), transparent 48%);
  filter: blur(14px);
  opacity: 0.62;
  pointer-events: none;
}
.camera-goal-card.is-recommended::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 18%;
  left: 18%;
  height: 2px;
  z-index: 2;
  border-radius: 999px;
  background: linear-gradient(90deg,
    transparent,
    rgb(66 133 244 / 72%) 28%,
    rgb(126 87 255 / 74%) 58%,
    transparent);
  box-shadow: 0 0 12px rgb(66 133 244 / 34%);
  pointer-events: none;
}
.camera-goal-card.is-recommended > * { position: relative; z-index: 1; }
.camera-goal-card.is-recommended:hover,
.camera-goal-card.is-recommended.is-active {
  border-color: color-mix(in srgb, #4285f4 78%, var(--border)) !important;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 56%) inset,
    0 10px 22px rgb(21 45 86 / 12%),
    0 22px 50px rgb(66 133 244 / 18%) !important;
}
.recommended-tag svg { width: 13px; height: 13px; stroke-width: 2.4; }
.camera-goal-card .recommended-tag > span { color: inherit !important; font: inherit !important; line-height: 1 !important; }

.camera-flow-panel {
  padding: 4px 18px 20px calc(36px + 12px + 16px) !important;
}
.camera-flow-header {
  gap: 12px !important;
  padding: 14px 16px !important;
  min-height: 64px;
}
.camera-flow-header > span:first-child {
  width: 32px !important;
  height: 32px !important;
}

.camera-plan-card__hero,
.camera-plan-metrics > div,
.result-resilience > div,
.manual-count-row {
  border-radius: var(--calc-card-radius, 12px) !important;
  box-shadow: none !important;
}
.camera-plan-card__hero {
  border-radius: var(--calc-shell-radius, 16px) !important;
}

.premium-zone-card,
.zone-card {
  border-radius: var(--calc-card-radius, 12px) !important;
  box-shadow: none !important;
}
.premium-zone-card.is-active,
.zone-card.is-active {
  border-color: var(--ant-cyan) !important;
  box-shadow: var(--elevation-active, 0 0 0 1px color-mix(in srgb, var(--ant-cyan) 30%, transparent)) !important;
}

.coverage-footer--sticky {
  border-radius: var(--calc-card-radius, 12px) !important;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: blur(12px);
}

/* N3: storage shares option-row rules above */
.storage-flow .question-card,
.storage-question {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.storage-resilience-card {
  border-radius: var(--calc-card-radius, 12px) !important;
  box-shadow: none !important;
}

/* N4: dossier + result */
.dossier-card,
.summary-card,
.metric-card,
.confirm-card,
.confirm-price-preview {
  border-radius: var(--calc-card-radius, 12px) !important;
  box-shadow: none !important;
  border: 1px solid var(--border) !important;
}
.confirm-price-preview,
.dossier-price,
.result-hero {
  border-radius: var(--calc-shell-radius, 16px) !important;
}
.result-hero {
  box-shadow: none !important;
}
.result-edit-strip button,
.confirm-card button,
.summary-card__edit {
  border-radius: var(--calc-control-radius, 8px) !important;
  min-height: 40px;
  border: 1px solid var(--border) !important;
  background: transparent !important;
  color: var(--ant-cyan) !important;
  font-size: var(--fs-xs, 11px) !important;
  font-weight: 700 !important;
}
.result-edit-strip button:hover,
.confirm-card button:hover {
  border-color: var(--ant-cyan) !important;
  background: color-mix(in srgb, var(--ant-cyan) 8%, transparent) !important;
}

/* N5: kill legacy stacked satin on journey interactive cells */
.discovery-section .site-card,
.camera-choice,
.camera-goal-card,
.option-row,
.premium-zone-card {
  background-image: none !important;
}

/* N6 flash: never re-animate panel enter on remount */
.discovery-section__panel,
.camera-flow-panel,
.discovery-section.is-revealing,
.camera-flow-section.is-revealing,
.storage-flow-section.is-revealing {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.discovery-section.is-revealing,
.camera-flow-section.is-revealing,
.storage-flow-section.is-revealing {
  /* keep border pulse only via transition on border/background, not opacity */
  transition: border-color var(--calc-motion-state, 200ms) ease, background-color var(--calc-motion-state, 200ms) ease, box-shadow var(--calc-motion-state, 200ms) ease !important;
}

/* N7 mobile symmetry */
@media (max-width: 768px) {
  .camera-flow-panel {
    padding: 4px 12px 16px 12px !important;
  }
  .option-row-grid {
    grid-template-columns: 1fr !important;
  }
  .camera-choice,
  .camera-goal-card {
    min-height: 88px !important;
    padding: 14px !important;
  }
  .scale-counter-grid {
    grid-template-columns: 1fr !important;
  }
  .result-hero {
    padding: 20px 16px !important;
  }
  .coverage-footer--sticky {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

html.light-mode .option-row,
html.light-mode .camera-choice,
html.light-mode .camera-goal-card,
html.light-mode .scale-counter,
html.light-mode .confirm-card,
html.light-mode .dossier-card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
html.light-mode .option-row.is-active,
html.light-mode .camera-goal-card.is-active,
html.light-mode .camera-choice.is-active {
  background: color-mix(in srgb, var(--ant-cyan) 6%, var(--surface)) !important;
}
/* ===== Decree #101 optional choice help ===== */
.discovery-decree-panel .context-chip-row { gap: 10px; }
.decree-help-card {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--calc-card-radius, 12px);
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}
.decree-help-card .decree-source-link { display: inline-block; margin-top: 8px; }
.decree-review-card--soft {
  border-color: color-mix(in srgb, var(--ant-cyan) 35%, var(--border));
  background: color-mix(in srgb, var(--ant-cyan) 6%, var(--surface));
}

/* ===== siteScale: contextual site structure, not a generic data dump ===== */
#app-root .structure-panel {
  --calc-card-pad: clamp(14px, 2vw, 20px);
  display: grid;
  gap: 14px;
  padding: var(--calc-card-pad) !important;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 35%, var(--calc-border-default)) !important;
  border-radius: var(--calc-shell-radius, 20px) !important;
  background: var(--calc-surface) !important;
  width: min(100%, 900px);
  margin-inline: auto;
}
.scale-area-block > legend {
  color: var(--calc-text-primary);
  font-size: var(--fs-sm, 12px);
  font-weight: 700;
  line-height: 1.35;
}
.discovery-inline-shortcut {
  justify-self: start;
  margin-top: 2px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan, #4FA3B0) 35%, var(--border));
  background: color-mix(in srgb, var(--ant-cyan, #4FA3B0) 8%, var(--surface));
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.discovery-inline-shortcut:hover {
  border-color: color-mix(in srgb, var(--ant-cyan, #4FA3B0) 55%, var(--border));
  background: color-mix(in srgb, var(--ant-cyan, #4FA3B0) 14%, var(--surface));
}
.scale-counter-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}
.scale-metric {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  height: 100%;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--calc-card-radius, 12px) !important;
  background: color-mix(in srgb, var(--surface-2) 44%, transparent) !important;
  box-shadow: none !important;
  box-sizing: border-box;
}
.scale-metric__copy {
  display: block;
  min-width: 0;
}
.scale-metric__label {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}
.scale-metric .counter-controls {
  margin-inline: 0;
  flex-shrink: 0;
}
.structure-toggle {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  padding: 13px 15px;
  border-radius: var(--calc-card-radius, 12px);
  text-align: left;
}
.structure-toggle__indicator {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ant-cyan);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.structure-toggle__indicator svg {
  width: 14px;
  height: 14px;
}
.structure-toggle > span:last-child {
  display: grid;
  gap: 4px;
}
.structure-toggle strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}
.structure-toggle small {
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.4;
}
.structure-toggle.is-active .structure-toggle__indicator {
  border-color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 12%, var(--surface));
}
.scale-area-disclosure {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--calc-card-radius, 12px);
  background: color-mix(in srgb, var(--surface-2) 28%, transparent);
}
.scale-area-disclosure > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 650;
}
.scale-area-disclosure > summary::-webkit-details-marker { display: none; }
.scale-area-disclosure > summary strong {
  color: var(--ant-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.scale-area-disclosure > p {
  margin: 0;
  padding: 0 15px 12px;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.45;
}
.scale-area-disclosure .scale-area-block {
  margin: 0 !important;
  padding: 0 15px 15px !important;
  border: 0 !important;
}
.scale-area-disclosure .exact-area-field {
  margin-top: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
}
/* Current site-scale layout: one visual language with the calculator choices. */
.scale-area-block {
  min-width: 0;
  margin: 0 !important;
  padding: 16px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--calc-border-default) !important;
}
.scale-area-block > legend {
  padding: 0 10px 0 0;
}
.structure-area-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
.structure-area-grid .option-row {
  min-height: 48px !important;
  padding: 10px 12px;
  font-size: var(--fs-sm, 12px) !important;
  text-align: center;
  justify-items: center;
}
.structure-area-unknown {
  border-style: dashed !important;
}
.structure-exact-area {
  grid-template-columns: minmax(0, 1fr) minmax(112px, 150px);
  gap: 10px;
  max-width: 360px;
  min-height: 54px;
  margin: 10px auto 0;
  padding: 9px 11px;
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-control-radius);
  background: var(--calc-surface-subtle);
}
.structure-exact-area > span:first-child {
  color: var(--calc-text-primary);
  font-weight: 650;
}
.structure-exact-area input {
  min-height: 40px;
  background: var(--calc-surface);
}
#app-root .structure-panel > .structure-footer {
  justify-content: center !important;
  margin: 2px calc(-1 * var(--calc-card-pad)) calc(-1 * var(--calc-card-pad)) !important;
  padding: 14px var(--calc-card-pad) !important;
  border: 0 !important;
  border-top: 1px solid var(--calc-border-default) !important;
  background: transparent !important;
}
html.light-mode .scale-metric,
html.light-mode .scale-area-disclosure,
html.light-mode .structure-exact-area {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
@media (max-width: 600px) {
  .scale-counter-grid {
    grid-template-columns: 1fr !important;
  }
  .scale-metric {
    min-height: 86px;
    padding: 12px 13px !important;
  }
  .scale-area-disclosure > summary {
    align-items: flex-start;
  }
  .scale-area-disclosure .exact-area-field {
    grid-template-columns: 1fr;
  }
  .structure-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .structure-area-unknown {
    grid-column: 1 / -1;
  }
  .structure-exact-area {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 145px);
    max-width: none;
  }
  #app-root .structure-panel > .structure-footer {
    align-items: stretch;
    flex-direction: column;
  }
  #app-root .structure-panel > .structure-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Tooltip, Decree Help List & UI Notes */
.calc-tooltip {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-left: 4px;
  vertical-align: middle;
}
.calc-tooltip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-3, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  color: var(--ant-cyan, #0ea5e9);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  user-select: none;
  transition: all 0.15s ease;
  line-height: 1;
}
.calc-tooltip__icon:hover,
.calc-tooltip__icon:focus-visible {
  background: var(--ant-cyan, #0ea5e9);
  color: #090d16;
  border-color: var(--ant-cyan, #0ea5e9);
  outline: none;
}
.calc-tooltip__popup {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 240px;
  padding: 8px 11px;
  background: #0d121d;
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 8px;
  color: #f3f4f6;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
  text-align: left;
  white-space: normal;
}
.calc-tooltip:hover .calc-tooltip__popup,
.calc-tooltip:focus-within .calc-tooltip__popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
html.light-mode .calc-tooltip__popup {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.decree-relationship-lead {
  margin: 0 0 12px 0;
  padding: 10px 14px;
  background: rgba(14, 165, 233, 0.06);
  border-left: 3px solid var(--ant-cyan);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.decree-help-list {
  margin: 10px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.decree-help-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.45;
}
.decree-help-item__bullet {
  color: var(--ant-cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.context-variance-note,
.review-variance-note {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.4;
}

/* ==========================================================================
   Enterprise UI/UX Enhancements (Animations, Mobile Bar, Blueprint, Slot Picker)
   ========================================================================== */

/* Keyframe Animations & Micro-Interactions */
@keyframes calc-item-pulse {
  0% { background-color: rgba(14, 165, 233, 0.25); transform: scale(1.01); }
  100% { background-color: transparent; transform: scale(1); }
}

.line-item.is-updated,
.price-display-amount.is-updated,
.quote-total.is-updated {
  animation: calc-item-pulse 0.45s ease-out forwards;
}

.calc-choice-card:active,
.context-chip:active,
.zone-card:active,
.survey-chip:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* Mobile Sticky Budget Bar */
.calc-mobile-budget-bar {
  display: none;
}

@media (max-width: 767px) {
  .calc-mobile-budget-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: color-mix(in srgb, var(--calc-surface) 92%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--calc-border-default);
    box-shadow: var(--calc-shadow-raised);
  }

  body.has-focused-input .calc-mobile-budget-bar {
    display: none !important;
  }

  .calc-mobile-budget-bar__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .calc-mobile-budget-bar__label {
    font-size: var(--fs-2xs, 10px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--calc-text-muted);
  }

  .calc-mobile-budget-bar__amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--calc-text-primary);
    font-family: var(--font-tele, monospace);
  }

  .calc-mobile-budget-bar__badge {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(14, 165, 233, 0.15);
    color: var(--ant-cyan, #0ea5e9);
  }

  .calc-mobile-budget-bar__btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
  }
}

/* Zone Blueprint Interactive Widget */
.zone-blueprint-preview {
  margin: 16px 0;
  padding: 16px;
  background: var(--calc-surface-subtle);
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-card-radius, 12px);
  overflow: hidden;
}

.zone-blueprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.zone-blueprint-title {
  font-size: var(--fs-xs, 11px);
  font-weight: 600;
  color: var(--calc-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blueprint-svg {
  width: 100%;
  height: auto;
  max-height: 180px;
  display: block;
  border-radius: 8px;
}

@keyframes blueprint-radar-pulse {
  0% { r: 6px; opacity: 0.9; }
  100% { r: 22px; opacity: 0; }
}

.radar-pulse {
  animation: blueprint-radar-pulse 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  transform-origin: center;
}

/* Engineer Survey Preferred Time Slot Picker */
.survey-time-picker {
  margin: 16px 0;
  padding: 16px;
  background: var(--calc-surface-subtle);
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-card-radius, 12px);
}

.survey-time-picker__title {
  font-size: var(--fs-sm, 13px);
  font-weight: 700;
  color: var(--calc-text-primary);
  margin-bottom: 4px;
}

.survey-time-picker__sub {
  font-size: var(--fs-xs, 11px);
  color: var(--calc-text-muted);
  margin-bottom: 12px;
}

.survey-picker-section {
  margin-bottom: 12px;
}

.survey-picker-section:last-child {
  margin-bottom: 0;
}

.survey-picker-label {
  display: block;
  font-size: var(--fs-xs, 11px);
  font-weight: 600;
  color: var(--calc-text-secondary);
  margin-bottom: 6px;
}

.survey-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Mirrors the canonical .context-chip recipe so the two chip families match. */
.survey-chip {
  min-height: 38px;
  padding: 8px 12px;
  font-size: var(--fs-xs, 11px);
  font-weight: 600;
  color: var(--calc-text-secondary);
  background: var(--calc-surface);
  border: 1px solid var(--calc-border-default);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out);
}

.survey-chip:hover {
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--calc-surface));
  border-color: color-mix(in srgb, var(--ant-cyan) 38%, var(--calc-border-default));
}

.survey-chip.is-active {
  background: color-mix(in srgb, var(--ant-cyan) 10%, var(--calc-surface));
  border-color: var(--calc-border-selected);
  color: var(--calc-text-primary);
}

/* Feature Comparison Cards (With vs. Without).
   Token-only: the accent colours tint the box, the body text stays on the
   primary ramp so it is legible on both the dark and the cream surface. */
.feature-comparison-card {
  margin: 16px 0;
  padding: 16px;
  background: var(--calc-surface-subtle);
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-card-radius, 12px);
}

.feature-comparison-title {
  font-size: var(--fs-sm, 13px);
  font-weight: 700;
  color: var(--calc-text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 580px) {
  .feature-comparison-grid {
    grid-template-columns: 1fr;
  }
}

.comparison-box {
  padding: 12px;
  border-radius: var(--calc-control-radius, 8px);
  border: 1px solid var(--calc-border-default);
  background: var(--calc-surface);
  font-size: var(--fs-xs, 11px);
  line-height: 1.45;
  color: var(--calc-text-secondary);
}

.comparison-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-xs, 11px);
  font-weight: 700;
}

.comparison-box p {
  margin: 0;
}

.comparison-box--with {
  border-color: color-mix(in srgb, var(--calc-success) 42%, transparent);
  background: color-mix(in srgb, var(--calc-success) 8%, var(--calc-surface));
}

.comparison-box--with strong { color: var(--calc-success); }

.comparison-box--without {
  border-color: color-mix(in srgb, var(--calc-warning) 42%, transparent);
  background: color-mix(in srgb, var(--calc-warning) 8%, var(--calc-surface));
}

.comparison-box--without strong { color: var(--calc-warning); }

/* Decree #101 Interactive Cards */
.decree-question-block {
  margin-bottom: 16px;
}

.decree-block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #ffffff);
  margin: 0 0 4px 0;
}

.decree-block-sub {
  font-size: 12px;
  color: var(--text-2, #94a3b8);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.decree-choice-grid {
  display: grid;
  gap: 10px;
}

.decree-choice-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.decree-choice-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
  .decree-choice-grid--2col,
  .decree-choice-grid--3col {
    grid-template-columns: 1fr;
  }
}

.decree-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--calc-border-default, rgba(255, 255, 255, 0.12));
  background: var(--calc-surface-subtle, rgba(255, 255, 255, 0.03));
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.decree-card-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.decree-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.decree-card-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #ffffff);
}

.decree-card-text small {
  font-size: 11px;
  color: var(--text-2, #94a3b8);
}

/* Decree #101 Info Trigger & Popover Tooltip */
.decree-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ant-cyan, #0ea5e9) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--ant-cyan, #0ea5e9) 40%, transparent);
  color: var(--ant-cyan, #0ea5e9);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  margin-left: 0;
  flex-shrink: 0;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s ease;
  padding: 0;
}

.decree-info-trigger:hover,
.decree-info-trigger:focus-visible {
  background: var(--ant-cyan, #0ea5e9);
  color: #0f172a;
  transform: scale(1.15);
}

.decree-tooltip-popover {
  margin: 12px 0 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--calc-surface-raised, rgba(30, 41, 59, 0.95));
  border: 1px solid color-mix(in srgb, var(--ant-cyan, #0ea5e9) 30%, var(--calc-border-default));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2, #cbd5e1);
  animation: fadeIn 0.2s ease-out;
}

.decree-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.decree-tooltip-header strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #ffffff);
}

.decree-tooltip-close {
  background: transparent;
  border: none;
  color: var(--text-2, #94a3b8);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.decree-tooltip-close:hover {
  color: var(--text, #ffffff);
}

.decree-tooltip-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ant-cyan, #0ea5e9);
  text-decoration: none;
}

.decree-tooltip-link:hover {
  text-decoration: underline;
}

/* Decree #101 Full Guide Banner & Category Chips */
.decree-guide-banner {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ant-cyan, #0ea5e9) 8%, var(--calc-surface-subtle, rgba(255, 255, 255, 0.03)));
  border: 1px solid color-mix(in srgb, var(--ant-cyan, #0ea5e9) 30%, var(--calc-border-default, rgba(255, 255, 255, 0.12)));
  transition: all 0.2s ease;
}

.decree-cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--calc-surface-raised, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--calc-border-default, rgba(255, 255, 255, 0.12));
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2, #cbd5e1);
}


/* ===== Site design parity lock (landing Cobalt Sky) ===== */
/* Wins last: keep estimator chrome on the same system as index.html */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg) !important;
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.15), transparent), radial-gradient(ellipse 50% 50% at 50% 30%, rgba(56, 189, 248, 0.05), transparent) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

html.light-mode body {
  background-image: radial-gradient(ellipse 80% 46% at 50% -8%, rgba(15, 138, 122, 0.075), transparent 72%), radial-gradient(ellipse 58% 40% at 2% 58%, rgba(196, 132, 26, 0.045), transparent 76%), radial-gradient(ellipse 52% 36% at 98% 76%, rgba(79, 163, 176, 0.05), transparent 78%) !important;
}

.draft-badge {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  font-weight: 600;
}

.topbar-lang {
  border-color: transparent !important;
  background: transparent !important;
  border-radius: 10px;
  min-height: 36px;
  font-family: var(--font-sans);
  font-weight: 750;
  letter-spacing: 0;
}

.topbar-theme {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border-color: transparent !important;
  background: transparent !important;
  flex-shrink: 0 !important;
  cursor: pointer;
}

.topbar-theme svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.topbar-lang:hover,
.topbar-theme:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

html.light-mode .topbar-lang:hover,
html.light-mode .topbar-theme:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

.topbar-cta {
  border: 1px solid rgba(220, 231, 255, 0.3) !important;
  background: linear-gradient(128deg, rgba(24, 92, 176, 0.9), rgba(64, 74, 148, 0.82) 48%, rgba(135, 67, 82, 0.84)) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 22px rgba(33, 50, 102, 0.22) !important;
}

.topbar-cta:hover {
  filter: brightness(1.08) saturate(1.06);
  background: linear-gradient(128deg, rgba(24, 92, 176, 0.95), rgba(64, 74, 148, 0.88) 48%, rgba(135, 67, 82, 0.9)) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 28px rgba(45, 39, 98, 0.3) !important;
}

html.light-mode .topbar-cta,
html.light-mode .btn-cta-primary {
  color: #fff !important;
}

/* Steps rail — card box container matching question cards */
.steps {
  gap: 8px;
  padding: 20px !important;
}

.steps__head {
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 14px;
}

.price-card-container {
  border-radius: 16px !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), var(--surface) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html.light-mode .price-card-container {
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
}

/* Discovery shells & steps box — glass panels like regulations / contact desk */
.discovery-section,
.camera-flow-section,
.storage-flow-section,
.question-card:not(.storage-question),
.steps {
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: var(--calc-shell-radius, 20px) !important;
  background: color-mix(in srgb, var(--surface) 88%, transparent) !important;
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
}

html:not(.light-mode) .discovery-section.is-active,
html:not(.light-mode) .camera-flow-section.is-active,
html:not(.light-mode) .storage-flow-section.is-active {
  background: color-mix(in srgb, #0b1220 88%, transparent) !important;
  border-color: rgba(220, 231, 255, 0.14) !important;
}

/* Light mode design box card definition for .steps, .question-card & .discovery-section */
html.light-mode .discovery-section,
html.light-mode .camera-flow-section,
html.light-mode .storage-flow-section,
html.light-mode .question-card:not(.storage-question),
html.light-mode .steps {
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: var(--calc-shell-radius, 20px) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.03) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.light-mode .steps .steps__head {
  color: #475569 !important;
  font-weight: 700 !important;
}

html.light-mode .steps .step {
  border-color: rgba(15, 23, 42, 0.06);
  color: #334155 !important;
}

html.light-mode .steps .step .step__title {
  color: #0f172a !important;
  font-weight: 600;
}

html.light-mode .steps .step .step__sub {
  color: #64748b !important;
}

html.light-mode .steps .step .step__num {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

html.light-mode .steps .step.is-clickable:hover {
  background: #f8fafc !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
}

html.light-mode .steps .step.is-active {
  background: #ffffff !important;
  border: 1.5px solid #0ea5e9 !important;
  box-shadow: inset 3.5px 0 0 #0ea5e9, 0 4px 14px rgba(14, 165, 233, 0.1) !important;
}

html.light-mode .steps .step.is-active .step__title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html.light-mode .steps .step.is-active .step__sub {
  color: #0284c7 !important;
}

html.light-mode .steps .step.is-active .step__num {
  background: #0ea5e9 !important;
  color: #ffffff !important;
  border-color: #0ea5e9 !important;
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35) !important;
}

html.light-mode .steps .step.is-done .step__num {
  background: color-mix(in srgb, #0ea5e9 14%, #ffffff) !important;
  color: #0284c7 !important;
  border-color: rgba(14, 165, 233, 0.35) !important;
}

html.light-mode .steps .price-card-container {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: none !important;
}

html.light-mode .steps .price-card-container__label,
html.light-mode .steps .price-card-container__note,
html.light-mode .steps .price-card-container__locked-copy {
  color: #64748b !important;
}

html.light-mode .steps .price-display-amount {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html.light-mode .steps .steps-reset-button {
  color: #64748b !important;
}

html.light-mode .steps .steps-reset-button:hover {
  color: #dc2626 !important;
  background: rgba(220, 38, 38, 0.06) !important;
}

/* Shared primary button: keep cyan from components, polish radius */
#app-root .btn {
  border-radius: 999px;
  min-height: 46px;
  font-weight: 700;
}

#app-root .btn--primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 18px color-mix(in srgb, var(--ant-cyan) 22%, transparent);
}

#app-root .btn--ghost {
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

/* Context chips like site soft pills */
.context-chip,
.runtime-opt-btn,
.complexity-chip {
  border-radius: 999px !important;
  min-height: 40px;
  font-weight: 650;
  border-color: rgba(148, 163, 184, 0.18);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.context-chip.is-active,
.runtime-opt-btn.is-active,
.complexity-chip.is-active {
  border-color: color-mix(in srgb, var(--ant-cyan) 50%, transparent) !important;
  background: color-mix(in srgb, var(--ant-cyan) 12%, var(--surface)) !important;
  color: var(--text) !important;
}

/* Manifest / proposal glass */
.manifest,
.proposal-shell,
.dossier-price,
.right-summary-card,
.summary-left-container {
  border-radius: var(--calc-shell-radius, 20px) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)), var(--surface) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html.light-mode .manifest,
html.light-mode .proposal-shell,
html.light-mode .dossier-price,
html.light-mode .right-summary-card,
html.light-mode .summary-left-container {
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

/* Mobile step numbers: numbered pills (desktop already) */
@media (max-width: 1199px) {
  .step__num {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
  .step.is-active .step__num {
    background: color-mix(in srgb, var(--ant-cyan) 88%, #000) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--ant-cyan) 28%, transparent) !important;
  }
}

/* Noise: subtle film only, matching premium landing restraint */
.bg-noise {
  opacity: 0.18;
}

html.light-mode .bg-noise {
  opacity: 0.12;
}

/* Kill remaining cyber neon glow on step numbers in light mode */
html.light-mode .step.is-active .step__num {
  box-shadow: none !important;
  background: color-mix(in srgb, var(--ant-cyan) 14%, var(--surface)) !important;
  color: var(--ant-cyan) !important;
}

/* --- Mobile Sticky Footer Padding & Touch Target Fix --- */
.camera-count-card,
.manual-coverage-card,
.camera-flow-panel,
.question-card,
.storage-question {
  padding-bottom: 96px !important;
}

@media (max-width: 768px) {
  .coverage-footer--sticky {
    position: sticky;
    bottom: 12px;
    z-index: 10;
    margin-top: 24px;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.4);
  }
}

/* ==========================================================================
   Decree #101 interactive eligibility assistant
   ========================================================================== */
.decree-assistant {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  padding: clamp(16px, 4vw, 40px);
  place-items: center;
}

.decree-assistant__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.decree-assistant__panel {
  position: relative;
  display: flex;
  width: min(760px, 100%);
  max-height: min(860px, calc(100dvh - 32px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 30%, var(--calc-border-default));
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--ant-cyan) 10%, transparent), transparent 34%),
    var(--surface);
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.52);
  color: var(--text);
  animation: decree-assistant-enter var(--motion-base) var(--ease-out) both;
}

.decree-assistant__header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--calc-border-default);
  padding: 14px 18px 14px 22px;
}

.decree-assistant__header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.decree-assistant__header strong {
  display: grid;
  width: 44px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 46%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ant-cyan) 12%, transparent);
  color: var(--ant-cyan);
  font: 750 12px/1 var(--font-mono, monospace);
}

.decree-assistant__header span {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 650;
}

.decree-assistant__close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--calc-border-default);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  color: var(--text);
  font: 400 27px/1 sans-serif;
  cursor: pointer;
}

.decree-assistant__progress {
  height: 3px;
  background: color-mix(in srgb, var(--calc-border-default) 68%, transparent);
}

.decree-assistant__progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ant-cyan), #67e8f9);
  transition: width var(--motion-base) var(--ease-out);
}

.decree-assistant__body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 5vw, 46px);
}

.decree-assistant__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--ant-cyan);
  font: 750 11px/1.3 var(--font-mono, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decree-assistant__question h2,
.decree-assistant__result h2 {
  max-width: 650px;
  margin: 0;
  color: var(--text);
  font-size: clamp(23px, 4vw, 34px);
  line-height: 1.2;
}

.decree-assistant__question h2:focus,
.decree-assistant__result h2:focus {
  outline: none;
}

.decree-assistant__question > p,
.decree-assistant__result > p {
  max-width: 630px;
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}

.decree-assistant__context {
  margin-top: 22px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 34%, var(--calc-border-default));
  border-radius: 14px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface-2));
  font-size: 17px;
  font-weight: 750;
}

.decree-assistant__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.decree-assistant__choice {
  display: grid;
  min-height: 82px;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--calc-border-default);
  border-radius: 14px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--surface-2) 68%, transparent);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease-out), background var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}

.decree-assistant__choice strong {
  font-size: 14px;
  line-height: 1.35;
}

.decree-assistant__choice span {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.45;
}

.decree-assistant__choice--primary {
  border-color: color-mix(in srgb, var(--ant-cyan) 55%, var(--calc-border-default));
  background: color-mix(in srgb, var(--ant-cyan) 12%, var(--surface-2));
}

@media (hover: hover) {
  .decree-assistant__choice:hover {
    border-color: color-mix(in srgb, var(--ant-cyan) 62%, var(--calc-border-default));
    background: color-mix(in srgb, var(--ant-cyan) 9%, var(--surface-2));
    transform: translateY(-2px);
  }
}

.decree-assistant__choice:focus-visible,
.decree-assistant__close:focus-visible,
.decree-assistant__source:focus-visible {
  outline: 2px solid var(--ant-cyan);
  outline-offset: 3px;
}

.decree-assistant__footer {
  border-top: 1px solid var(--calc-border-default);
  padding: 12px 22px;
}

.decree-assistant__result {
  text-align: left;
}

.decree-assistant__result-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 17px;
  background: color-mix(in srgb, var(--ant-cyan) 14%, var(--surface-2));
  color: var(--ant-cyan);
  font-size: 24px;
  font-weight: 800;
}

.decree-assistant__result--does_not_apply .decree-assistant__result-icon {
  color: var(--text-2);
}

.decree-assistant__result--unsure .decree-assistant__result-icon {
  background: color-mix(in srgb, #f59e0b 14%, var(--surface-2));
  color: #f59e0b;
}

.decree-assistant__result-note {
  margin-top: 18px;
  border-left: 3px solid color-mix(in srgb, var(--ant-cyan) 68%, transparent);
  padding: 10px 14px;
  background: color-mix(in srgb, var(--surface-2) 65%, transparent);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.55;
}

.decree-assistant__continue {
  min-height: 42px !important;
  margin-top: 20px;
  gap: 8px;
  padding: 0 16px !important;
  font-size: 12.5px;
  line-height: 1.25;
}

.decree-assistant__continue svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.decree-assistant__source {
  display: inline-flex;
  margin: 20px 0 0 14px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 650;
  text-underline-offset: 4px;
}

.decree-assessment-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid var(--calc-border-default);
  border-radius: 12px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--surface-2) 68%, transparent);
}

.decree-assessment-summary strong {
  font-size: 12px;
}

.decree-assessment-summary button {
  border: 0;
  padding: 5px;
  background: transparent;
  color: var(--ant-cyan);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.decree-plain-hint {
  margin-bottom: 12px;
  padding: 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.step.is-active .step__num { color: #06283b; }

.discovery-decree-panel .decree-legal-guidance-card,
.discovery-decree-panel .decree-help-card,
.discovery-decree-panel .status-note {
  background: transparent !important;
}

.discovery-decree-panel .decree-legal-guidance-card {
  border-color: color-mix(in srgb, var(--ant-cyan) 18%, var(--calc-border-default)) !important;
}

.decree-conditional-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 34%, var(--calc-border-default));
  border-radius: 12px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface-2));
}

.decree-conditional-badge > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ant-cyan) 18%, transparent);
  color: var(--ant-cyan);
  font-weight: 800;
}

.decree-conditional-badge--fail {
  border-color: color-mix(in srgb, #f59e0b 42%, var(--calc-border-default));
  background: color-mix(in srgb, #f59e0b 8%, var(--surface-2));
}

.decree-conditional-badge--fail > span {
  background: color-mix(in srgb, #f59e0b 18%, transparent);
  color: #f59e0b;
}

.decree-conditional-badge strong {
  display: block;
  font-size: 13px;
}

.decree-conditional-badge p {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}

.decree-review-row--review {
  color: var(--text-2);
}

.decree-adapt-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 18px;
  border-top: 1px solid var(--calc-border-default);
  padding-top: 18px;
}

.decree-adapt-action p {
  max-width: 420px;
  margin: 0;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.5;
}

@keyframes decree-assistant-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .decree-assistant {
    align-items: end;
    padding: 0;
  }

  .decree-assistant__panel {
    width: 100%;
    max-height: 94dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .decree-assistant__body {
    padding: 24px 16px 30px;
  }

  .decree-assistant__choices,
  .decree-assistant__choices--two {
    grid-template-columns: 1fr;
  }

  .decree-assistant__choice {
    min-height: 72px;
  }

  .decree-assistant__continue {
    width: 100%;
  }

  .decree-assistant__source {
    display: flex;
    justify-content: center;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .decree-assistant__panel {
    animation: none;
  }

  .decree-assistant__progress span,
  .decree-assistant__choice {
    transition: none;
  }
}

/* Calculator final-pass: one surface language, compact without shrinking controls. */
.decree-assistant__facts {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-control-radius);
  background: var(--calc-surface-subtle);
}
.decree-assistant__facts div {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
  color: var(--calc-text-secondary);
  font-size: 12px;
}
.decree-assistant__facts strong { color: var(--calc-text-primary); }

.camera-category-question-section {
  overflow: hidden;
  margin: 14px 0 18px;
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-card-radius, 16px);
  background: var(--calc-surface);
}
.category-question-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--calc-border-default);
  background: var(--calc-surface-subtle);
}
.category-question-section__head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.category-question-section__head strong {
  color: var(--calc-text-primary);
  font-size: 14px;
}
.category-question-section__head span {
  color: var(--calc-text-secondary);
  font-size: 11.5px;
  line-height: 1.45;
}
.category-question-cards {
  padding: 0 18px;
}
.category-question-cards > .category-question-block:last-child {
  border-bottom: 0;
}
.camera-recommendation-reasons {
  margin: 0;
  padding: 18px;
  border: 0;
  border-top: 1px solid var(--calc-border-default);
  border-radius: 0;
  background: var(--calc-surface-subtle);
}
.camera-recommendation-reasons > strong,
.camera-recommendation-reasons__head > strong { color: var(--calc-text-primary); font-size: 14px; }
.camera-recommendation-reasons__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.camera-recommendation-reasons__head > strong { display: flex; align-items: center; gap: 8px; }
.camera-recommendation-reasons__note { margin-bottom: 10px; color: var(--calc-text-secondary); font-size: 12px; line-height: 1.45; }
.camera-recommendation-reasons ul { display: grid; gap: 6px; margin: 10px 0 12px; padding-left: 20px; color: var(--calc-text-secondary); font-size: 12px; line-height: 1.5; }
.camera-recommendation-reasons details { border-top: 1px solid var(--calc-border-default); padding-top: 10px; }
.camera-recommendation-reasons summary { color: var(--ant-cyan); font-size: 12px; font-weight: 700; cursor: pointer; }
.camera-zone-breakdown { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.camera-zone-breakdown span { padding: 6px 9px; border: 1px solid var(--calc-border-default); border-radius: 999px; background: var(--calc-surface); color: var(--calc-text-secondary); font-size: 11px; }
.camera-zone-breakdown b { color: var(--ant-cyan); }
.camera-zone-plan {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.camera-zone-adjuster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 13px;
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-control-radius);
  min-height: 82px;
  background: var(--calc-surface);
}
.camera-zone-adjuster.is-adjusted {
  border-color: color-mix(in srgb, var(--ant-cyan) 36%, var(--calc-border-default));
  background: color-mix(in srgb, var(--ant-cyan) 5%, var(--calc-surface));
}
.camera-zone-adjuster.is-below {
  border-color: color-mix(in srgb, #f59e0b 42%, var(--calc-border-default));
  background: color-mix(in srgb, #f59e0b 5%, var(--calc-surface));
}
.camera-zone-adjuster__meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.camera-zone-adjuster__meta strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--calc-text-primary);
  font-size: 13px;
}
.camera-zone-adjuster__meta > span,
.camera-zone-adjuster__meta small {
  color: var(--calc-text-secondary);
  font-size: 10.5px;
  line-height: 1.4;
}
.camera-zone-adjuster.is-below .camera-zone-adjuster__meta small { color: #d97706; }
.camera-zone-adjuster__legal {
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 30%, var(--calc-border-default));
  border-radius: 999px;
  color: var(--ant-cyan);
  font: 700 8px/1.2 var(--font-mono);
  letter-spacing: .04em;
}
.camera-zone-adjuster__controls {
  display: grid;
  grid-template-columns: 34px 48px 34px;
  align-items: center;
  gap: 5px;
}
.camera-zone-adjuster__controls > button:not(.camera-zone-adjuster__reset),
.camera-zone-adjuster__controls > input {
  min-width: 0;
  height: 34px;
  border: 1px solid var(--calc-border-default);
  border-radius: 9px;
  background: var(--calc-surface-subtle);
  color: var(--calc-text-primary);
  text-align: center;
  font-weight: 750;
}
.camera-zone-adjuster__controls > button:not(.camera-zone-adjuster__reset) {
  cursor: pointer;
  color: var(--ant-cyan);
  font-size: 16px;
}
.camera-zone-adjuster__controls > button:disabled { opacity: .4; cursor: not-allowed; }
.camera-zone-adjuster__controls > input {
  width: 48px;
  appearance: textfield;
  font-variant-numeric: tabular-nums;
}
.camera-zone-adjuster__controls > input::-webkit-inner-spin-button,
.camera-zone-adjuster__controls > input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.camera-zone-adjuster__reset {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 3px 1px;
  border: 0;
  background: transparent;
  color: var(--ant-cyan);
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
}
.camera-zone-plan__warning {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, #f59e0b 36%, var(--calc-border-default));
  border-radius: var(--calc-control-radius);
  background: color-mix(in srgb, #f59e0b 8%, var(--calc-surface));
  color: color-mix(in srgb, #f59e0b 78%, var(--calc-text-primary));
  font-size: 10.5px;
  line-height: 1.5;
}
.camera-recommendation-reasons__disclaimer {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed color-mix(in srgb, var(--ant-cyan) 25%, var(--calc-border-default));
  color: var(--calc-text-secondary);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .category-question-section__head { align-items: stretch; flex-direction: column; }
  .category-question-section__head .context-chip { align-self: flex-start; }
  .category-question-cards { padding-inline: 14px; }
  .camera-recommendation-reasons { padding: 16px 14px; }
  .camera-zone-plan { grid-template-columns: 1fr; }
  .camera-zone-adjuster { grid-template-columns: 1fr; align-items: stretch; }
  .camera-zone-adjuster__controls { justify-self: stretch; grid-template-columns: 40px minmax(54px, 1fr) 40px; }
  .camera-zone-adjuster__controls > input { width: 100%; }
}

/* Final estimate trust and engineering-safety states */
.decree-trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, #10b981 35%, var(--calc-border-default));
  border-radius: var(--calc-card-radius, 14px);
  background: color-mix(in srgb, #10b981 8%, var(--calc-surface));
  color: #10b981;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}
.decree-trust-badge__icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, #10b981 20%, transparent);
  font-size: 14px;
  flex-shrink: 0;
}

.internet-toggle-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  margin: 14px 0;
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-card-radius, 14px);
  background: var(--calc-surface-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}
.internet-toggle-card:hover {
  border-color: color-mix(in srgb, var(--ant-cyan) 40%, var(--calc-border-default));
}
.internet-toggle-card.is-active {
  border-color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--calc-surface));
}
.router-toggle-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.router-toggle-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ant-cyan);
  cursor: pointer;
  flex-shrink: 0;
}
.router-toggle-check__copy {
  display: grid;
  gap: 2px;
  text-align: left;
  min-width: 0;
}
.router-toggle-check__copy strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--calc-text-primary);
}
.router-toggle-check__copy small {
  font-size: 12px;
  color: var(--calc-text-secondary);
}
.router-toggle-check__status {
  color: var(--calc-text-secondary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.internet-toggle-card.is-active .router-toggle-check__status {
  color: var(--ant-cyan);
}

.advanced-enterprise-drawer {
  margin-top: 16px;
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-card-radius, 14px);
  background: var(--calc-surface-subtle);
  overflow: hidden;
}
.advanced-enterprise-drawer > summary {
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--calc-text-primary);
  cursor: pointer;
  user-select: none;
  background: var(--calc-surface-card);
  list-style: none;
}
.advanced-enterprise-drawer > summary::-webkit-details-marker { display: none; }
.advanced-enterprise-drawer__body {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid var(--calc-border-default);
}

.engineering-required-card {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, #f59e0b 70%, var(--calc-border-default));
  border-radius: var(--calc-card-radius);
  background: color-mix(in srgb, #f59e0b 10%, var(--calc-surface));
  color: var(--calc-text-primary);
}

.storage-engineering-notice {
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 42%, var(--border));
  border-radius: var(--radius-card, 16px);
  background: color-mix(in srgb, var(--ant-cyan) 8%, var(--surface));
}

.storage-engineering-notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 14px;
}

.storage-engineering-notice p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}

.price-display-amount--engineering {
  max-width: 100%;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.25;
  white-space: normal;
}
.engineering-required-card strong { font-size: 16px; }
.engineering-required-card p { margin: 0; color: var(--calc-text-secondary); font-size: 12px; line-height: 1.6; }
.engineering-required-card small { color: #f59e0b; font-weight: 800; }
.quote-total--engineering { max-width: 300px; color: #f59e0b; font-size: 22px; line-height: 1.2; }
.estimate-confidence {
  margin-top: 8px;
  color: var(--calc-text-secondary);
  font-size: 11px;
}
.estimate-confidence strong { color: var(--ant-cyan); }
.invoice-price-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border-top: 1px solid var(--calc-border-default);
}
.invoice-price-breakdown span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--calc-text-secondary);
  font-size: 12px;
}
.invoice-price-breakdown b { color: var(--calc-text-primary); font-variant-numeric: tabular-nums; }
.engineer-contact-details {
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-control-radius);
  background: var(--calc-surface-subtle);
  overflow: hidden;
}
.engineer-contact-details > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  color: var(--calc-text-primary);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.engineer-contact-details > summary::-webkit-details-marker { display: none; }
.engineer-contact-details > summary::after { content: "+"; color: var(--ant-cyan); font-size: 18px; }
.engineer-contact-details[open] > summary::after { content: "−"; }
.engineer-contact-details .quote-contact-intro,
.engineer-contact-details .result-contact-form { margin: 0 12px 12px; }

@media (max-width: 640px) {
  .invoice-edit,
  .quote-secondary-actions .btn-link-quiet,
  .engineer-contact-details > summary {
    min-height: 44px;
  }
  .invoice-edit {
    display: inline-flex;
    align-items: center;
    padding: 10px 4px;
  }
  .quote-secondary-actions .btn-link-quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-block: 8px;
  }
  .row-right-telemetry {
    max-width: 145px;
    font-size: 10px;
    line-height: 1.45;
    text-align: right;
  }
}

.storage-recording-card { display: grid; gap: 12px; }
.recording-block {
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid var(--calc-border-default) !important;
  border-radius: var(--calc-card-radius) !important;
  background: var(--calc-surface-subtle) !important;
}
.recording-block > legend { display: flex; align-items: center; gap: 10px; padding: 0 4px 8px; color: var(--calc-text-primary); font-size: 15.5px; font-weight: 650; line-height: 1.35; }
.recording-block > legend > span { display: inline-grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ant-cyan) 18%, var(--calc-surface)); color: var(--ant-cyan); font: 700 12px/1 var(--font-mono); flex-shrink: 0; }
.archive-quick-options { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 10px !important; }
.archive-day-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  position: relative;
  border-radius: 12px;
  background: var(--calc-surface);
  border: 1px solid var(--calc-border-default);
  transition: all 0.2s ease;
}
.archive-day-card.is-active {
  border-color: var(--ant-cyan) !important;
  background: color-mix(in srgb, var(--ant-cyan) 12%, var(--calc-surface)) !important;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.16);
}
.storage-stat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ant-cyan) 6%, var(--calc-surface-subtle));
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 22%, var(--calc-border-default));
  margin-top: 14px;
}
.storage-stat-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--ant-cyan) 14%, var(--calc-surface));
  color: var(--ant-cyan);
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 30%, var(--calc-border-default));
}
.archive-range-control { display: grid; gap: 8px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--calc-border-default); border-radius: var(--calc-control-radius); background: var(--calc-surface); }
.archive-range-control label { display: flex; justify-content: space-between; gap: 12px; color: var(--calc-text-secondary); font-size: 13px; font-weight: 600; }
.archive-range-control output { color: var(--ant-cyan); font-weight: 750; }
.archive-range-control input { width: 100%; accent-color: var(--ant-cyan); cursor: pointer; }
.status-note--success { border-color: color-mix(in srgb, #10b981 42%, var(--calc-border-default)); color: #10b981; }
.h265-savings-gauge { margin-top: 14px; padding: 12px 16px; border: 1px solid var(--calc-border-default); border-radius: var(--calc-control-radius); background: var(--calc-surface-subtle); }
.h265-savings-gauge summary { color: var(--ant-cyan); font-size: 13px; font-weight: 700; cursor: pointer; }
.h265-savings-gauge p { margin: 9px 0 0; color: var(--calc-text-secondary); font-size: 12px; line-height: 1.5; }

.invoice-bom-details { margin-top: 18px; border: 1px solid var(--calc-border-default); border-radius: var(--calc-card-radius); background: var(--calc-surface-subtle); overflow: clip; }
.invoice-bom-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; color: var(--calc-text-primary); font-weight: 750; cursor: pointer; list-style-position: inside; }
.invoice-bom-details > summary small { color: var(--calc-text-secondary); font-size: 11px; font-weight: 600; }
.invoice-bom-details__body { padding: 0 18px 16px; border-top: 1px solid var(--calc-border-default); }
.pdf-download-btn--direct { width: 100%; margin: 14px 0 4px; }

/* Final estimate rail — one visual system with the invoice document. */
.invoice-layout { align-items: start; }
.invoice-rail {
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--calc-surface-card, var(--surface)) !important;
  border-color: var(--calc-border-default) !important;
  box-shadow: var(--shadow-sm) !important;
}
.ups-intent-grid,
.raid-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.ups-runtime-panel { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--calc-border-default); }
.ups-runtime-panel > p,
.raid-question-intro { margin: 0; color: var(--calc-text-secondary); font-size: 12.5px; line-height: 1.5; }
.ups-runtime-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.ups-sizing-note,
.ups-catalog-note,
.raid-catalog-warning { margin-top: 12px; background: transparent !important; border: 1px solid var(--calc-border-default); }
.raid-mode-grid { margin-top: 12px; }
.raid-mode-grid .option-row { min-height: 92px; align-content: center; }
.raid-mode-grid .option-row:nth-child(3) { grid-column: 1 / -1; min-height: 72px; }
@media (max-width: 700px) {
  .ups-runtime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ups-intent-grid,
  .raid-mode-grid { grid-template-columns: 1fr !important; }
  .raid-mode-grid .option-row:nth-child(3) { grid-column: auto; }
}
.invoice-rail > div {
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.invoice-rail__total {
  gap: 9px;
  padding: 28px 26px 24px;
  border: 0;
  border-bottom: 1px solid var(--calc-border-default);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.invoice-rail__total .quote-kicker {
  color: var(--calc-text-secondary);
  letter-spacing: .09em;
}
.invoice-rail__total .quote-total { margin: 4px 0 6px; }
.invoice-rail .quote-meta-strip span {
  border-radius: 8px;
  background: var(--calc-surface-subtle);
}
.invoice-rail .estimate-confidence strong {
  background: color-mix(in srgb, var(--ant-cyan) 10%, transparent);
  color: var(--ant-cyan);
}
.invoice-rail .pdf-download-btn--direct {
  width: calc(100% - 48px) !important;
  margin: 20px 24px 10px;
  padding: 13px 16px !important;
  border: 1px solid color-mix(in srgb, var(--ant-cyan) 42%, var(--calc-border-default)) !important;
  border-radius: var(--calc-control-radius) !important;
  background: color-mix(in srgb, var(--ant-cyan) 12%, var(--calc-surface)) !important;
  color: var(--ant-cyan) !important;
  box-shadow: none !important;
}
.invoice-rail .pdf-download-btn--direct:hover {
  background: color-mix(in srgb, var(--ant-cyan) 18%, var(--calc-surface)) !important;
  border-color: var(--ant-cyan) !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
}
.invoice-rail .trust-list--compact {
  gap: 0;
  margin: 0 24px 18px;
  border: 1px solid var(--calc-border-default);
  border-radius: var(--calc-control-radius);
  overflow: hidden;
}
.invoice-rail .trust-list--compact .trust-item {
  padding: 11px 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 550;
}
.invoice-rail .trust-list--compact .trust-item + .trust-item { border-top: 1px solid var(--calc-border-default); }
.invoice-rail .result-followup {
  margin: 0 24px 18px;
  border-radius: var(--calc-control-radius);
  background: transparent;
  box-shadow: none;
}
.invoice-rail .engineer-contact-details,
.invoice-rail .engineer-contact-details > summary { background: transparent; }
.invoice-rail .quote-secondary-actions {
  justify-content: flex-start;
  padding: 12px;
  border-top: 1px solid var(--calc-border-default);
}
.invoice-rail .quote-secondary-actions .btn-link-quiet {
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
}
.invoice-rail .quote-disclaimer {
  margin-top: 2px;
  padding: 17px 24px 20px;
  border: 0;
  border-top: 1px solid var(--calc-border-default);
  border-radius: 0;
  background: transparent;
}
html.light-mode .invoice-rail {
  background: rgba(255, 255, 255, .78) !important;
  border-color: rgba(15, 23, 42, .1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .05) !important;
}
html.light-mode .invoice-rail__total { background: transparent; border-color: rgba(15, 23, 42, .1); }
html.light-mode .invoice-rail .pdf-download-btn--direct {
  background: color-mix(in srgb, #0ea5e9 9%, #fff) !important;
  border-color: color-mix(in srgb, #0ea5e9 32%, rgba(15, 23, 42, .1)) !important;
  color: #0284c7 !important;
}
html.light-mode .invoice-rail .trust-list--compact .trust-item,
html.light-mode .invoice-rail .quote-disclaimer,
html.light-mode .invoice-rail .engineer-contact-details,
html.light-mode .invoice-rail .engineer-contact-details > summary { background: transparent !important; }

@media (max-width: 640px) {
  .invoice-rail__total { padding: 22px 18px 20px; }
  .invoice-rail .pdf-download-btn--direct { width: calc(100% - 32px) !important; margin-inline: 16px; }
  .invoice-rail .trust-list--compact,
  .invoice-rail .result-followup { margin-inline: 16px; }
  .invoice-rail .quote-disclaimer { padding-inline: 18px; }
}
html.light-mode .manual-count-row,
html.light-mode .counter-controls,
html.light-mode .recording-block,
html.light-mode .archive-range-control,
html.light-mode .camera-recommendation-reasons,
html.light-mode .camera-zone-breakdown span,
html.light-mode .invoice-bom-details {
  background: var(--calc-surface) !important;
  color: var(--calc-text-primary);
}

.storage-recording-card {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 16px;
}
@media (max-width: 700px) {
  .archive-quick-options { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .decree-assistant__facts div { grid-template-columns: 1fr; gap: 2px; }
  .invoice-bom-details > summary { align-items: flex-start; flex-direction: column; gap: 5px; }
}

/* Catalog Search Enhancements */
.site-card__group-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

html.light-mode .site-card__group-tag {
  background: rgba(0, 0, 0, 0.05);
  color: #64748B;
}

.catalog-search-no-results {
  padding: 16px;
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
}

/* Resolution/compliance contract: requested visual goal and effective camera
   tier are both explicit, so a regulated 2MP preference never masquerades as
   the hardware that is actually quoted. */
.camera-goal-card__compliance {
  display: block;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed color-mix(in srgb, var(--calc-warning) 38%, var(--border));
  color: var(--calc-warning) !important;
  font-size: 10.5px !important;
  font-weight: 700;
  line-height: 1.45;
}

.camera-goal-card.is-compliance-adjusted {
  border-style: solid;
}

/* Archive status hierarchy: engineering capacity is primary; modeled
   retention policy remains visible as a separate, reason-specific note. */
.storage-status-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.storage-status-stack .storage-engineering-notice,
.storage-status-stack .storage-policy-note {
  margin: 0;
}

.storage-status-stack .storage-engineering-notice {
  border-color: color-mix(in srgb, var(--calc-warning) 48%, var(--border));
  background: color-mix(in srgb, var(--calc-warning) 8%, var(--calc-surface));
}

.storage-status-stack .storage-engineering-notice strong {
  color: var(--calc-warning);
}

.storage-policy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

html.light-mode .camera-goal-card__compliance {
  border-top-color: color-mix(in srgb, #d97706 35%, rgba(15, 23, 42, .12));
  color: #b45309 !important;
}

html.light-mode .storage-status-stack .storage-engineering-notice {
  border-color: color-mix(in srgb, #d97706 35%, rgba(15, 23, 42, .12));
  background: color-mix(in srgb, #f59e0b 7%, #fff);
}

html.light-mode .storage-status-stack .storage-engineering-notice strong {
  color: #b45309;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.shared-config-warning {
  position: relative;
  z-index: 3;
  width: min(var(--calc-shell-max), calc(100% - 32px));
  margin: 12px auto 0;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--calc-warning) 48%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--calc-warning) 9%, var(--surface));
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

/* The final page already has section-level Edit controls. Hiding its redundant
   topbar action at tablet widths prevents the exact 768px overflow boundary. */
@media (max-width: 820px) {
  .topbar-cta[data-action="edit-result"] {
    display: none !important;
  }
}

