/* Design tokens & frosted glass surfaces */
    :root {
      --studio-bg: #f3f4f6;
      --studio-surface: #ffffff;
      --studio-aluminum: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.88) 55%, rgba(226, 232, 240, 0.92) 100%);
      --studio-charcoal: #1e2426;
      --studio-emerald: #07833e;
      --studio-emerald-bright: #10b981;
      --studio-rim: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(15, 23, 42, 0.06);
    }

    *, *::before, *::after {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    /* Full-page fixed background over local assets/images/sudo_image.jpg with adjustable white mask */
    body {
      margin: 0;
      background-image:
        linear-gradient(135deg, rgba(248, 250, 252, 0.34) 0%, rgba(241, 245, 249, 0.26) 50%, rgba(226, 232, 240, 0.36) 100%),
        url('../assets/images/sudo_image.jpg'),
        url('https://images.unsplash.com/photo-1597852074816-d933c7d2b988?fm=jpg&q=60&w=3000&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8aGFyZCUyMGRyaXZlfGVufDB8fDB8fHww');
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      background-repeat: no-repeat;
      color: #1e293b;
      overflow-x: hidden;
    }

    #publicAppView,
    #adminAppView {
      background: transparent;
    }

    .font-mono-code {
      font-family: 'JetBrains Mono', monospace;
    }

    /* Terminal prompt badge ($_) with constant $ and blinking _ */
    .sudo-terminal-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      background: linear-gradient(145deg, #1e293b, #0f172a);
      color: #f8fafc;
      border: 1px solid rgba(16, 185, 129, 0.5);
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2), 0 0 18px rgba(16, 185, 129, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      user-select: none;
    }

    .sudo-prompt-dollar {
      color: #34d399;
      display: inline-block;
      font-family: 'JetBrains Mono', monospace;
    }

    .sudo-cursor {
      display: inline-block;
      color: #6ee7b7;
      font-family: 'JetBrains Mono', monospace;
      text-shadow: 0 0 12px rgba(52, 211, 153, 0.95);
      animation: sudoBlink 0.9s steps(1, end) infinite;
    }

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

    .ai-avatar-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 9999px;
      border: 1.5px solid rgba(34, 211, 238, 0.85);
      background: #09090b;
      box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35), 0 0 8px rgba(244, 63, 94, 0.25);
      overflow: hidden;
      flex-shrink: 0;
    }

    .ai-bear-avatar {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      display: block;
    }

    .studio-nav {
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      background: rgba(248, 250, 252, 0.88);
      border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    }

    .hero-content-frame {
      background: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.86) 60%, rgba(241, 245, 249, 0.92) 100%);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1.5px solid rgba(255, 255, 255, 0.95);
      box-shadow:
        0 24px 54px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(7, 131, 62, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }

    .section-heading-frame {
      background: linear-gradient(160deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 250, 252, 0.84) 100%);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.92);
      box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    }

    .studio-card {
      background: var(--studio-aluminum);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.88);
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04), var(--studio-rim);
      transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    }

    .studio-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 24px 44px rgba(15, 23, 42, 0.13), 0 4px 12px rgba(7, 131, 62, 0.08), var(--studio-rim);
    }

    .studio-pedestal-frame {
      background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.84) 60%, rgba(226, 232, 240, 0.92) 100%);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.95);
      box-shadow: 0 25px 60px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }

    .emerald-cta {
      background: linear-gradient(135deg, #10b981 0%, #07833e 100%);
      color: #ffffff;
      box-shadow: 0 10px 22px rgba(7, 131, 62, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
      transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    }

    .emerald-cta:hover {
      transform: translateY(-2px);
      filter: brightness(1.04);
      box-shadow: 0 14px 28px rgba(7, 131, 62, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .aluminum-btn {
      background: linear-gradient(180deg, #ffffff 0%, #e5e7eb 100%);
      color: #1e293b;
      border: 1px solid #cbd5e1;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff;
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .aluminum-btn:hover {
      transform: translateY(-1px);
      background: linear-gradient(180deg, #ffffff 0%, #dbeafe 100%);
    }

    .service-thumb {
      width: 100%;
      height: 175px;
      object-fit: cover;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.85);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
      transition: transform 0.35s ease;
    }

    .studio-card:hover .service-thumb {
      transform: scale(1.03);
    }

    .chat-scroll::-webkit-scrollbar {
      width: 6px;
    }

    .chat-scroll::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 999px;
    }

    .hero-typewriter {
      display: inline-block;
      color: #07833e;
      border-right: 2px solid #07833e;
      padding-right: 4px;
      min-height: 1.15em;
    }

    .issue-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      justify-content: center;
    }

    @media (min-width: 1024px) {
      .issue-chips {
        justify-content: flex-start;
      }
    }

    .issue-chips .chip {
      display: inline-flex;
      align-items: center;
      gap: 0.38rem;
      padding: 0.32rem 0.68rem;
      border-radius: 9999px;
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid #cbd5e1;
      color: #1e293b;
      font-size: 0.75rem;
      font-weight: 600;
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    }

    .issue-chips .chip svg {
      color: #07833e;
      flex-shrink: 0;
    }

    @media (max-width: 639px) {
      input, select, textarea {
        font-size: 16px !important;
      }
      .service-thumb {
        height: 190px;
      }
    }

    #aiChatWindow {
      height: min(560px, 76dvh);
      max-height: 76dvh;
    }

    @media (min-width: 1024px) {
      #aiChatWindow {
        height: 550px;
        max-height: 82vh;
      }
    }
