:root {
      --bg: #050505;
      --panel: #0d0d0d;
      --panel-2: #141414;
      --ink: #f4f4ef;
      --muted: #a3a39d;
      --line: #353535;
      --acid: #d7ff3f;
      --pink: #ff5ec7;
      --blue: #5ee7ff;
      --orange: #ff8a3d;
      --shadow: 8px 8px 0 #000;
      --radius: 0px;
      --max: 1320px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--ink);
      background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.11) 1px, transparent 1.2px) 0 0 / 16px 16px,
        var(--bg);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      overflow: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: .18;
      mix-blend-mode: screen;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
    }

    button, input, textarea { font: inherit; }
    button { color: inherit; }

    .app {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 290px minmax(0, 1fr);
      max-width: var(--max);
      margin: 0 auto;
      border-inline: 1px solid var(--line);
      background: rgba(5,5,5,.92);
    }

    .rail {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      overflow-y: auto;
      border-right: 1px solid var(--line);
      background: #090909;
    }

    .identity {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      column-gap: 16px;
      padding: 22px;
      border-bottom: 1px solid var(--line);
    }

    .mark {
      width: 54px;
      height: 54px;
      display: grid;
      place-items: center;
      margin: 0;
      background: var(--acid);
      color: #000;
      border: 1px solid #000;
      box-shadow: 5px 5px 0 var(--pink);
      font: 900 23px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      transform: rotate(-2deg);
    }

    .identity h1 {
      margin: 0;
      font-size: clamp(28px, 3vw, 39px);
      line-height: .9;
      letter-spacing: -.065em;
      text-transform: uppercase;
    }

    .identity p {
      grid-column: 1 / -1;
      margin: 16px 0 0;
      max-width: 24ch;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .rail-label {
      padding: 16px 20px 10px;
      color: #72726d;
      font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .15em;
      text-transform: uppercase;
    }

    .suggestions {
      display: grid;
      gap: 8px;
      padding: 0 12px;
    }

    .suggestion {
      width: 100%;
      padding: 13px 14px;
      border: 1px solid var(--line);
      background: #0f0f0f;
      text-align: left;
      cursor: pointer;
      transition: transform .15s ease, background .15s ease, border-color .15s ease;
    }

    .suggestion:hover,
    .suggestion:focus-visible {
      transform: translate(3px, -3px);
      border-color: var(--acid);
      background: #171717;
      outline: none;
      box-shadow: -3px 3px 0 var(--acid);
    }

    .suggestion strong {
      display: block;
      font-size: 13px;
      line-height: 1.25;
    }

    .suggestion span {
      display: block;
      margin-top: 4px;
      color: #777;
      font-size: 11px;
    }

    .rail-footer {
      margin-top: auto;
      padding: 18px 20px 20px;
      border-top: 1px solid var(--line);
      color: #7f7f79;
      font-size: 11px;
      line-height: 1.5;
    }

    .status-dot {
      display: inline-block;
      width: 7px;
      height: 7px;
      margin-right: 7px;
      background: var(--acid);
      box-shadow: 0 0 12px var(--acid);
    }

    .main {
      min-width: 0;
      height: 100vh;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .topbar {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 14px 22px;
      border-bottom: 1px solid var(--line);
      background: rgba(7,7,7,.96);
    }

    .context {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .context-badge {
      flex: 0 0 auto;
      padding: 7px 9px;
      border: 1px solid #000;
      background: var(--blue);
      color: #000;
      font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      text-transform: uppercase;
      box-shadow: 3px 3px 0 #000;
    }

    .context-copy {
      min-width: 0;
    }

    .context-copy strong,
    .context-copy span { display: block; }
    .context-copy strong { font-size: 13px; }
    .context-copy span {
      margin-top: 3px;
      color: #777;
      font-size: 11px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

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

    .icon-button {
      width: 38px;
      height: 38px;
      border: 1px solid var(--line);
      background: #111;
      cursor: pointer;
      transition: .15s ease;
    }

    .icon-button:hover,
    .icon-button:focus-visible {
      border-color: var(--pink);
      color: var(--pink);
      transform: translateY(-2px);
      outline: none;
    }

    .conversation {
      min-height: 0;
      overflow-y: auto;
      padding: 38px clamp(18px, 4vw, 60px) 28px;
      scrollbar-width: thin;
      scrollbar-color: #4b4b4b #0a0a0a;
    }

    .thread {
      width: min(840px, 100%);
      margin: 0 auto;
    }

    .message-scroll-spacer {
      width: 1px;
      height: 0;
      pointer-events: none;
      transition: height .18s ease;
    }

    .intro {
      padding: 0 0 30px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 20px;
      color: var(--acid);
      font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      text-transform: uppercase;
      letter-spacing: .12em;
    }

    .eyebrow::before {
      content: "";
      width: 36px;
      height: 2px;
      background: currentColor;
    }

    .intro h2 {
      margin: 0;
      max-width: 780px;
      font-size: clamp(42px, 7vw, 88px);
      line-height: .92;
      letter-spacing: -.072em;
      text-transform: uppercase;
    }

    .intro h2 em {
      color: var(--acid);
      font-style: normal;
      text-shadow: 5px 5px 0 #2c3600;
    }

    .intro > p {
      max-width: 630px;
      margin: 25px 0 0;
      color: #b8b8b2;
      font-size: clamp(16px, 2vw, 20px);
      line-height: 1.5;
    }

    .starter-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 28px;
    }

    .starter {
      min-height: 106px;
      padding: 17px;
      border: 1px solid var(--line);
      background: #101010;
      text-align: left;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform .16s ease, border-color .16s ease;
    }

    .starter::after {
      content: "↗";
      position: absolute;
      right: 13px;
      top: 11px;
      color: #60605c;
      font-size: 17px;
      transition: .16s ease;
    }

    .starter:hover,
    .starter:focus-visible {
      transform: translate(-4px, -4px);
      border-color: var(--blue);
      box-shadow: 4px 4px 0 var(--blue);
      outline: none;
    }

    .starter:nth-child(2):hover,
    .starter:nth-child(2):focus-visible { border-color: var(--pink); box-shadow: 4px 4px 0 var(--pink); }
    .starter:nth-child(3):hover,
    .starter:nth-child(3):focus-visible { border-color: var(--orange); box-shadow: 4px 4px 0 var(--orange); }
    .starter:nth-child(4):hover,
    .starter:nth-child(4):focus-visible { border-color: var(--acid); box-shadow: 4px 4px 0 var(--acid); }

    .starter:hover::after { color: var(--ink); transform: translate(2px, -2px); }
    .starter small {
      display: block;
      margin-bottom: 16px;
      color: #74746f;
      font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      text-transform: uppercase;
    }
    .starter strong { display: block; max-width: 28ch; font-size: 14px; line-height: 1.35; }

    .message {
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr);
      gap: 13px;
      margin: 24px 0;
      animation: rise .28s ease both;
    }

    .message.user {
      grid-template-columns: minmax(0, 1fr) 38px;
      padding-left: clamp(20px, 12vw, 120px);
    }

    .message.user .avatar { order: 2; background: var(--pink); color: #000; }
    .message.user .bubble { order: 1; background: var(--pink); color: #000; border-color: #000; box-shadow: 5px 5px 0 #000; }

    .avatar {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border: 1px solid #000;
      background: var(--acid);
      color: #000;
      font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      box-shadow: 3px 3px 0 #000;
    }

    .bubble {
      padding: 17px 18px;
      border: 1px solid var(--line);
      background: #111;
      box-shadow: 5px 5px 0 #000;
      line-height: 1.58;
      font-size: 15px;
    }

    .bubble p { margin: 0 0 12px; }
    .bubble p:last-child { margin-bottom: 0; }
    .bubble strong { color: var(--ink); }

    .answer-kicker {
      margin-bottom: 12px;
      color: var(--blue);
      font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .1em;
      text-transform: uppercase;
    }

    .answer-card {
      margin-top: 14px;
      padding: 16px;
      border: 1px solid #464646;
      background: #0b0b0b;
      position: relative;
    }

    .answer-card::before {
      content: "";
      position: absolute;
      inset: 7px -5px -5px 7px;
      border-right: 1px solid #343434;
      border-bottom: 1px solid #343434;
      pointer-events: none;
    }

    .answer-card h3 {
      margin: 0 0 8px;
      font-size: 18px;
      letter-spacing: -.03em;
    }

    .answer-card p { color: #b2b2ad; }

    .message-head {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
      color: #7e7e78;
      font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .message-head i {
      width: 6px;
      height: 6px;
      display: inline-block;
      background: var(--acid);
      box-shadow: 0 0 10px rgba(215,255,63,.55);
    }

    .meta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 12px;
    }

    .tag {
      padding: 6px 8px;
      border: 1px solid #4a4a4a;
      color: #aaa;
      font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      text-transform: uppercase;
    }

    .inline-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 15px;
    }

    .inline-action {
      padding: 9px 11px;
      border: 1px solid #555;
      background: #171717;
      cursor: pointer;
      font-size: 12px;
      transition: .15s ease;
    }

    .inline-action:hover,
    .inline-action:focus-visible {
      background: var(--acid);
      border-color: #000;
      color: #000;
      outline: none;
      transform: translateY(-2px);
      box-shadow: 0 3px 0 #000;
    }


    a.inline-action {
      color: var(--ink);
      text-decoration: none;
    }

    .inline-action.external {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .inline-action.external::after {
      content: "↗";
      color: var(--acid);
      font-size: 14px;
      transition: transform .15s ease;
    }

    .inline-action.external:hover::after,
    .inline-action.external:focus-visible::after {
      color: #000;
      transform: translate(2px, -2px);
    }

    .tool-receipt {
      margin-top: 15px;
      padding: 14px;
      border: 1px solid #4b4b42;
      background: #0b0b08;
      box-shadow: 4px 4px 0 #181a08;
    }

    .tool-receipt-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: baseline;
      padding-bottom: 10px;
      margin-bottom: 11px;
      border-bottom: 1px dashed #3b3b34;
    }

    .tool-receipt-head small {
      color: var(--acid);
      font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .09em;
      text-transform: uppercase;
    }

    .tool-receipt-head strong {
      font-size: 15px;
      text-align: right;
    }

    .tool-signal-list {
      display: grid;
      gap: 7px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .tool-signal-list li {
      position: relative;
      padding-left: 17px;
      color: #b5b5af;
      font-size: 12px;
      line-height: 1.48;
    }

    .tool-signal-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: .55em;
      width: 6px;
      height: 6px;
      background: var(--acid);
      box-shadow: 0 0 8px rgba(215,255,63,.35);
    }

    .typing .bubble {
      width: fit-content;
      min-width: 260px;
      max-width: 420px;
    }

    .typing-row {
      display: grid;
      gap: 12px;
      min-width: min(360px, 72vw);
    }

    .loader-line {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 18px;
    }

    .loader-copy {
      color: #8f8f88;
      font-size: 12px;
      line-height: 1.4;
    }

    .matrix-loader {
      --cols: 8;
      display: grid;
      grid-template-columns: repeat(var(--cols), 6px);
      gap: 4px;
      width: max-content;
      padding: 2px 0;
    }

    .matrix-loader span {
      width: 6px;
      height: 6px;
      border-radius: 1px;
      background: rgba(215,255,63,.16);
      box-shadow: inset 0 0 0 1px rgba(215,255,63,.06);
      animation: matrixWave 1.5s ease-in-out infinite;
      animation-delay: calc(var(--delay) * 65ms);
    }

    .matrix-loader.matrix-blue span {
      background: rgba(77,203,255,.16);
      box-shadow: inset 0 0 0 1px rgba(77,203,255,.08);
    }

    .matrix-loader.matrix-pink span {
      background: rgba(255,78,177,.16);
      box-shadow: inset 0 0 0 1px rgba(255,78,177,.08);
    }

    .matrix-loader .hot {
      background: var(--acid);
      box-shadow: 0 0 10px rgba(215,255,63,.42);
    }

    .matrix-loader.matrix-blue .hot {
      background: var(--blue);
      box-shadow: 0 0 10px rgba(77,203,255,.42);
    }

    .matrix-loader.matrix-pink .hot {
      background: var(--pink);
      box-shadow: 0 0 10px rgba(255,78,177,.42);
    }

    .composer-wrap {
      border-top: 1px solid var(--line);
      background: rgba(7,7,7,.98);
      padding: 15px clamp(14px, 3vw, 30px) 18px;
    }

    .composer-shell {
      width: min(900px, 100%);
      margin: 0 auto;
    }

    .composer {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: end;
      gap: 10px;
      padding: 10px;
      border: 1px solid #4a4a4a;
      background: #101010;
      box-shadow: 7px 7px 0 #000;
      transition: border-color .15s ease, box-shadow .15s ease;
      overflow: hidden;
    }

    .composer:focus-within {
      border-color: var(--acid);
      box-shadow: 7px 7px 0 #263000;
    }

    .composer textarea {
      grid-column: 1;
      width: 100%;
      min-height: 50px;
      max-height: 140px;
      resize: none;
      border: 0;
      outline: none;
      margin: 0;
      padding: 12px 12px 10px 24px;
      color: var(--ink);
      background: transparent;
      line-height: 1.45;
      text-align: left;
    }

    .composer textarea::placeholder { color: #777; }

    .send {
      grid-column: 2;
      align-self: end;
      justify-self: end;
      width: 50px;
      min-width: 50px;
      height: 50px;
      border: 1px solid #000;
      background: var(--acid);
      color: #000;
      cursor: pointer;
      font-weight: 1000;
      box-shadow: 3px 3px 0 var(--pink);
      transition: transform .14s ease, box-shadow .14s ease;
    }

    .send:hover,
    .send:focus-visible {
      transform: translate(-2px, -2px);
      box-shadow: 5px 5px 0 var(--pink);
      outline: none;
    }

    .composer-note {
      margin: 11px 2px 0;
      color: #696965;
      font-size: 10px;
      line-height: 1.4;
      text-align: center;
    }

    .input-suggestion {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 9px;
      margin-top: 9px;
      padding: 9px 10px;
      border: 1px solid #353535;
      background: rgba(12,12,12,.96);
      box-shadow: 4px 4px 0 #000;
      animation: rise .16s ease both;
    }

    .input-suggestion[hidden] { display: none; }

    .suggestion-label {
      color: var(--acid);
      font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .08em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .suggestion-use {
      min-width: 0;
      padding: 2px 0;
      border: 0;
      background: transparent;
      color: #c7c7c0;
      text-align: left;
      cursor: pointer;
      font-size: 12px;
      line-height: 1.4;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .suggestion-use strong {
      color: var(--ink);
      font-weight: 750;
    }

    .suggestion-use:hover,
    .suggestion-use:focus-visible {
      color: var(--ink);
      outline: none;
    }

    .suggestion-use kbd {
      margin-left: 7px;
      padding: 2px 5px;
      border: 1px solid #454545;
      background: #171717;
      color: #777;
      font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    }

    .suggestion-dismiss {
      width: 26px;
      height: 26px;
      display: grid;
      place-items: center;
      border: 1px solid #393939;
      background: #151515;
      color: #777;
      cursor: pointer;
      font-size: 15px;
      line-height: 1;
    }

    .suggestion-dismiss:hover,
    .suggestion-dismiss:focus-visible {
      border-color: var(--pink);
      color: var(--ink);
      outline: none;
    }

    @media (max-width: 600px) {
      .input-suggestion {
        grid-template-columns: 1fr auto;
        gap: 6px 9px;
      }

      .suggestion-label {
        grid-column: 1 / -1;
      }

      .suggestion-use {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }

      .suggestion-use kbd { display: none; }
    }

    .mobile-toggle { display: none; }

    .command-menu {
      position: fixed;
      left: 50%;
      top: 50%;
      z-index: 20;
      width: min(620px, calc(100vw - 28px));
      transform: translate(-50%, -46%) scale(.98);
      border: 1px solid #555;
      background: #0c0c0c;
      box-shadow: 12px 12px 0 #000;
      opacity: 0;
      pointer-events: none;
      transition: .16s ease;
    }

    .command-menu.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
    .command-head { padding: 18px; border-bottom: 1px solid var(--line); }
    .command-head strong { display: block; font-size: 15px; }
    .command-head span { display: block; margin-top: 5px; color: #777; font-size: 11px; }
    .command-list { padding: 10px; display: grid; gap: 6px; }
    .command-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 13px;
      border: 1px solid #333;
      background: #101010;
      cursor: pointer;
      text-align: left;
    }
    .command-item:hover,
    .command-item:focus-visible { border-color: var(--blue); background: #171717; outline: none; }
    .command-item code { color: var(--acid); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
    .scrim { position: fixed; inset: 0; z-index: 19; background: rgba(0,0,0,.74); opacity: 0; pointer-events: none; transition: .16s ease; }
    .scrim.open { opacity: 1; pointer-events: auto; }

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

    @keyframes blink {
      0%, 70%, 100% { opacity: .25; transform: translateY(0); }
      35% { opacity: 1; transform: translateY(-3px); }
    }

    @media (max-width: 860px) {
      body { overflow: hidden; }
      .app { grid-template-columns: 1fr; border: 0; }
      .rail {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 30;
        width: min(320px, 88vw);
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 14px 0 0 #000;
      }
      .rail.open { transform: translateX(0); }
      .mobile-toggle { display: inline-grid; place-items: center; }
      .main { width: 100vw; }
      .topbar { min-height: 64px; padding: 11px 14px; }
      .conversation { padding: 27px 16px 24px; }
      .intro h2 { font-size: clamp(48px, 16vw, 74px); }
    }

    @media (max-width: 600px) {
      .starter-grid { grid-template-columns: 1fr; }
      .intro > p { font-size: 16px; }
      .message { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
      .message.user { grid-template-columns: minmax(0, 1fr) 32px; padding-left: 15px; }
      .avatar { width: 32px; height: 32px; font-size: 10px; }
      .bubble { padding: 14px; font-size: 14px; }
      .context-copy span { max-width: 160px; }
      .composer-wrap { padding-bottom: calc(13px + env(safe-area-inset-bottom)); }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
    }


    /* Refined chat interface */
    :root {
      --line: #2b2b2b;
      --line-strong: #454545;
      --panel: #0b0b0b;
      --panel-2: #111111;
      --shadow: 4px 4px 0 #000;
    }

    body,
    .app,
    .rail,
    .main {
      min-height: 100dvh;
    }

    .app {
      height: 100dvh;
      overflow: hidden;
    }

    .main {
      height: 100dvh;
    }

    .topbar {
      min-height: 76px;
      padding: 13px 20px;
      gap: 18px;
      background: rgba(7,7,7,.985);
    }

    .context {
      gap: 12px;
    }

    .context-badge {
      padding: 8px 10px;
      background: var(--acid);
      box-shadow: 3px 3px 0 #263000;
      letter-spacing: .04em;
    }

    .context-copy strong {
      font-size: 14px;
      line-height: 1.1;
      letter-spacing: -.015em;
    }

    .context-copy span {
      margin-top: 5px;
      color: #8c8c86;
      font-size: 11px;
    }

    .top-actions {
      gap: 7px;
    }

    .icon-button {
      width: 40px;
      height: 40px;
      display: inline-grid;
      place-items: center;
      padding: 0;
      border-color: #353535;
      background: #0d0d0d;
    }

    .icon-button svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: square;
      stroke-linejoin: miter;
    }

    .conversation {
      padding-top: 34px;
      padding-bottom: 34px;
    }

    .message {
      align-items: start;
      gap: 12px;
      margin: 26px 0;
    }

    .message.user {
      padding-left: clamp(52px, 18vw, 190px);
    }

    .message.user .bubble {
      justify-self: end;
      width: fit-content;
      max-width: 100%;
      border-color: #ff8dd8;
      box-shadow: 3px 3px 0 #2b001d;
      font-weight: 600;
    }

    .avatar {
      border: 1px solid #171717;
      box-shadow: 2px 2px 0 #000;
    }

    .bubble {
      width: 100%;
      padding: 19px 20px;
      border-color: #3b3b3b;
      background: #0f0f0f;
      box-shadow: 3px 3px 0 #000;
      font-size: 15px;
      line-height: 1.62;
    }

    .bubble p {
      margin-bottom: 14px;
    }

    .answer-kicker {
      margin-bottom: 15px;
      color: var(--acid);
      letter-spacing: .13em;
    }

    .answer-card {
      margin-top: 16px;
      padding: 17px;
      border-color: #383838;
      background: #0a0a0a;
    }

    .answer-card::before {
      display: none;
    }

    .answer-card h3 {
      margin-bottom: 9px;
      font-size: 17px;
    }

    .tag {
      padding: 7px 9px;
      border-color: #424242;
      background: #101010;
      color: #bdbdb7;
    }

    .inline-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
      padding-top: 16px;
      margin-top: 18px;
      border-top: 1px dashed #353535;
    }

    .inline-action {
      min-height: 46px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 11px 13px;
      border-color: #414141;
      background: #111;
      text-align: left;
      line-height: 1.3;
    }

    .inline-action::after {
      content: "↗";
      flex: 0 0 auto;
      color: var(--acid);
      font-size: 17px;
      line-height: 1;
    }

    .inline-action:hover,
    .inline-action:focus-visible {
      background: #171717;
      border-color: var(--acid);
      color: var(--ink);
      box-shadow: 3px 3px 0 #263000;
    }

    .composer-wrap {
      padding: 13px clamp(14px, 3vw, 28px) 16px;
      background: rgba(6,6,6,.99);
    }

    .composer-shell {
      width: min(860px, 100%);
    }

    .composer {
      gap: 8px;
      min-height: 66px;
      padding: 7px;
      border-color: #3e3e3e;
      background: #0d0d0d;
      box-shadow: 4px 4px 0 #000;
    }

    .composer:focus-within {
      border-color: var(--acid);
      box-shadow: 4px 4px 0 #263000;
    }

    .composer textarea {
      min-height: 50px;
      padding: 13px 12px 9px;
      font-size: 15px;
    }

    .send {
      align-self: center;
      width: 52px;
      min-width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 1px solid #151515;
      box-shadow: 3px 3px 0 var(--pink);
    }

    .send svg {
      width: 23px;
      height: 23px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: square;
      stroke-linejoin: miter;
    }

    .send:active {
      transform: translate(1px, 1px);
      box-shadow: 1px 1px 0 var(--pink);
    }

    @media (max-width: 860px) {
      .topbar {
        min-height: 70px;
        padding: 11px 14px;
      }

      .conversation {
        padding: 28px 18px 30px;
      }
    }

    @media (max-width: 600px) {
      .topbar {
        gap: 10px;
      }

      .context {
        flex: 1 1 auto;
        gap: 9px;
      }

      .context-badge {
        padding: 7px 8px;
        font-size: 9px;
        box-shadow: 2px 2px 0 #263000;
      }

      .context-copy strong {
        font-size: 13px;
      }

      .context-copy span {
        max-width: 150px;
        font-size: 10px;
      }

      .top-actions {
        flex: 0 0 auto;
      }

      #commandButton {
        display: none;
      }

      .icon-button {
        width: 38px;
        height: 38px;
      }

      .conversation {
        padding: 22px 14px 26px;
      }

      .message {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 9px;
        margin: 22px 0;
      }

      .message.user {
        grid-template-columns: minmax(0, 1fr) 30px;
        padding-left: 26px;
      }

      .avatar {
        width: 30px;
        height: 30px;
        font-size: 9px;
      }

      .bubble {
        padding: 16px;
        font-size: 14px;
        line-height: 1.58;
      }

      .message.user .bubble {
        padding: 15px 16px;
      }

      .answer-kicker {
        margin-bottom: 13px;
      }

      .answer-card {
        margin-top: 14px;
        padding: 14px;
      }

      .inline-actions {
        grid-template-columns: 1fr;
      }

      .inline-action {
        min-height: 45px;
      }

      .composer-wrap {
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
      }

      .composer {
        min-height: 62px;
        padding: 6px;
        box-shadow: 3px 3px 0 #000;
      }

      .composer textarea {
        min-height: 48px;
        padding: 12px 10px 8px;
        font-size: 14px;
      }

      .send {
        width: 49px;
        min-width: 49px;
        height: 49px;
        box-shadow: 2px 2px 0 var(--pink);
      }
    }


    /* Structured conversational content */
    .work-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 16px;
    }

    .work-link {
      min-height: 132px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 18px;
      padding: 16px;
      border: 1px solid #3a3a3a;
      background: #090909;
      color: var(--ink);
      text-decoration: none;
      transition: transform .14s ease, border-color .14s ease, background .14s ease;
    }

    .work-link:hover,
    .work-link:focus-visible {
      transform: translate(2px, -2px);
      border-color: var(--acid);
      background: #121212;
      outline: none;
      box-shadow: -3px 3px 0 #263000;
    }

    .work-link small {
      color: var(--acid);
      font: 800 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .1em;
      text-transform: uppercase;
    }

    .work-link strong {
      display: block;
      margin-top: 8px;
      font-size: 17px;
      letter-spacing: -.02em;
    }

    .work-link p {
      margin: 8px 0 0;
      color: #a4a49e;
      font-size: 12px;
      line-height: 1.5;
    }

    .work-link .visit {
      color: var(--pink);
      font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      text-transform: uppercase;
    }

    .response-note {
      margin-top: 14px;
      padding: 11px 12px;
      border-left: 3px solid var(--blue);
      background: #0a1012;
      color: #b8c4c7;
      font-size: 12px;
      line-height: 1.5;
    }

    .calendly-card {
      margin-top: 18px;
      overflow: hidden;
      border: 1px solid #414141;
      background: #fff;
      box-shadow: 4px 4px 0 #000;
    }

    .calendly-head {
      padding: 14px 16px;
      border-bottom: 1px solid #2f2f2f;
      background: #0b0b0b;
      color: var(--ink);
    }

    .calendly-head strong {
      display: block;
      font-size: 14px;
    }

    .calendly-head span {
      display: block;
      margin-top: 4px;
      color: #8e8e88;
      font-size: 11px;
    }

    .calendly-inline-widget {
      width: 100%;
      min-width: 0 !important;
      height: 700px;
      background: #fff;
    }


    @media (max-width: 600px) {
      .work-grid { grid-template-columns: 1fr; }
      .work-link { min-height: 118px; }
      .calendly-card {
        margin-inline: -8px;
        box-shadow: 2px 2px 0 #000;
      }
      .calendly-inline-widget { height: 720px; }
    }

    /* Adaptive conversation engine */
    .context-badge {
      min-width: 48px;
      max-width: 108px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: center;
      transition: background .18s ease, box-shadow .18s ease, color .18s ease;
    }

    .context-badge[data-audience="technical"] { background: var(--blue); box-shadow: 3px 3px 0 #00343d; }
    .context-badge[data-audience="product"] { background: var(--pink); box-shadow: 3px 3px 0 #42002d; }
    .context-badge[data-audience="executive"] { background: var(--orange); box-shadow: 3px 3px 0 #4a2000; }
    .context-badge[data-audience="risk"] { background: var(--acid); box-shadow: 3px 3px 0 #263000; }
    .context-badge[data-audience="investor"] { background: #fff; box-shadow: 3px 3px 0 #505050; }
    .context-badge[data-audience="recruiter"] { background: #c9a9ff; box-shadow: 3px 3px 0 #2e1950; }

    .answer-body > *:first-child { margin-top: 0; }
    .answer-body > *:last-child { margin-bottom: 0; }

    .answer-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 9px;
      margin-top: 16px;
    }

    .answer-grid:has(.answer-panel:nth-child(4)) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .answer-panel {
      min-height: 138px;
      padding: 15px;
      border: 1px solid #3c3c3c;
      background: #0a0a0a;
      position: relative;
      overflow: hidden;
    }

    .answer-panel::after {
      content: "";
      position: absolute;
      right: -26px;
      bottom: -26px;
      width: 58px;
      height: 58px;
      border: 1px solid #2e2e2e;
      transform: rotate(45deg);
    }

    .answer-panel small,
    .comparison-grid small {
      display: block;
      margin-bottom: 12px;
      color: var(--acid);
      font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .answer-panel strong,
    .comparison-grid strong {
      display: block;
      font-size: 15px;
      line-height: 1.22;
      letter-spacing: -.02em;
    }

    .answer-panel p,
    .comparison-grid p {
      margin: 9px 0 0;
      color: #a7a7a1;
      font-size: 12px;
      line-height: 1.5;
    }

    .answer-list {
      display: grid;
      gap: 9px;
      margin: 16px 0 0;
      padding: 0;
      list-style: none;
      counter-reset: answer-list;
    }

    .answer-list li {
      position: relative;
      padding: 12px 13px 12px 38px;
      border: 1px solid #343434;
      background: #0b0b0b;
      color: #b7b7b1;
      font-size: 13px;
      line-height: 1.52;
    }

    .answer-list li::before {
      counter-increment: answer-list;
      content: counter(answer-list, decimal-leading-zero);
      position: absolute;
      left: 12px;
      top: 14px;
      color: var(--pink);
      font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    }

    ul.answer-list li::before {
      content: "↳";
      color: var(--blue);
      font-size: 12px;
    }

    .comparison-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 16px;
    }

    .comparison-grid > div {
      min-height: 150px;
      padding: 16px;
      border: 1px solid #3a3a3a;
      background: #0a0a0a;
    }

    .comparison-grid > div:first-child { border-top: 3px solid var(--pink); }
    .comparison-grid > div:last-child { border-top: 3px solid var(--acid); }

    .flow-list {
      display: grid;
      gap: 8px;
      margin: 16px 0 0;
      padding: 0;
      list-style: none;
    }

    .flow-list li {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
      padding: 12px;
      border: 1px solid #353535;
      background: #0a0a0a;
    }

    .flow-list li > span {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      background: var(--acid);
      color: #000;
      font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      box-shadow: 2px 2px 0 #263000;
    }

    .flow-list strong { display: block; font-size: 14px; }
    .flow-list p { margin: 5px 0 0; color: #a8a8a2; font-size: 12px; line-height: 1.5; }

    .variant-brief .bubble {
      max-width: 690px;
      background: #10100d;
      border-color: #4a4a35;
    }

    .variant-scan .answer-kicker { color: var(--blue); }
    .variant-flow .answer-kicker { color: var(--orange); }
    .variant-comparison .answer-kicker { color: var(--pink); }
    .variant-work .answer-kicker { color: var(--blue); }
    .variant-booking .answer-kicker { color: var(--acid); }

    .thinking-label {
      color: #777772;
      font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .loading-subcopy {
      color: #686863;
      font: 700 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    @keyframes matrixWave {
      0%, 100% {
        transform: translateY(0) scale(1);
        opacity: .28;
      }
      35% {
        transform: translateY(-1px) scale(1.05);
        opacity: .55;
      }
      50% {
        transform: translateY(-4px) scale(1.18);
        opacity: 1;
      }
      70% {
        transform: translateY(-1px) scale(1.05);
        opacity: .62;
      }
    }

    .calendar-fallback {
      min-height: 180px;
      display: grid;
      place-items: center;
      padding: 24px;
      background: #fff;
      color: #111;
      text-align: center;
    }

    .calendar-fallback a { color: #111; font-weight: 800; }

    @media (max-width: 760px) {
      .answer-grid,
      .answer-grid:has(.answer-panel:nth-child(4)) {
        grid-template-columns: 1fr;
      }

      .answer-panel { min-height: 0; }
      .comparison-grid { grid-template-columns: 1fr; }
      .comparison-grid > div { min-height: 0; }
    }

    @media (max-width: 600px) {
      .context-badge {
        min-width: 42px;
        max-width: 78px;
        padding-inline: 6px;
      }

      .answer-list li { padding-left: 36px; }
      .thinking-label { display: none; }
    }


    /* Chat-first landing, richer material texture, and reliable side drawer */
    :root {
      --surface-grain: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NDAiIGhlaWdodD0iNjQwIiB2aWV3Qm94PSIwIDAgNjQwIDY0MCI+CjxmaWx0ZXIgaWQ9ImZpbmUiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPgogIDxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjcyIiBudW1PY3RhdmVzPSI1IiBzZWVkPSIyMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIgcmVzdWx0PSJuIi8+CiAgPGZlQ29sb3JNYXRyaXggaW49Im4iIHR5cGU9InNhdHVyYXRlIiB2YWx1ZXM9IjAiIHJlc3VsdD0iZyIvPgogIDxmZUNvbXBvbmVudFRyYW5zZmVyIGluPSJnIj4KICAgIDxmZUZ1bmNSIHR5cGU9ImdhbW1hIiBhbXBsaXR1ZGU9IjEuMTUiIGV4cG9uZW50PSIxLjYiIG9mZnNldD0iLTAuMDgiLz4KICAgIDxmZUZ1bmNHIHR5cGU9ImdhbW1hIiBhbXBsaXR1ZGU9IjEuMTUiIGV4cG9uZW50PSIxLjYiIG9mZnNldD0iLTAuMDgiLz4KICAgIDxmZUZ1bmNCIHR5cGU9ImdhbW1hIiBhbXBsaXR1ZGU9IjEuMTUiIGV4cG9uZW50PSIxLjYiIG9mZnNldD0iLTAuMDgiLz4KICAgIDxmZUZ1bmNBIHR5cGU9InRhYmxlIiB0YWJsZVZhbHVlcz0iMCAuMDgiLz4KICA8L2ZlQ29tcG9uZW50VHJhbnNmZXI+CjwvZmlsdGVyPgo8ZmlsdGVyIGlkPSJjbG91ZCIgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSI+CiAgPGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuMDE4IDAuMDM0IiBudW1PY3RhdmVzPSI0IiBzZWVkPSI4IiBzdGl0Y2hUaWxlcz0ic3RpdGNoIiByZXN1bHQ9ImMiLz4KICA8ZmVDb2xvck1hdHJpeCBpbj0iYyIgdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPgogIDxmZUNvbXBvbmVudFRyYW5zZmVyPgogICAgPGZlRnVuY1IgdHlwZT0iZ2FtbWEiIGFtcGxpdHVkZT0iMSIgZXhwb25lbnQ9IjEuOCIgb2Zmc2V0PSItLjE4Ii8+CiAgICA8ZmVGdW5jRyB0eXBlPSJnYW1tYSIgYW1wbGl0dWRlPSIxIiBleHBvbmVudD0iMS44IiBvZmZzZXQ9Ii0uMTgiLz4KICAgIDxmZUZ1bmNCIHR5cGU9ImdhbW1hIiBhbXBsaXR1ZGU9IjEiIGV4cG9uZW50PSIxLjgiIG9mZnNldD0iLS4xOCIvPgogICAgPGZlRnVuY0EgdHlwZT0idGFibGUiIHRhYmxlVmFsdWVzPSIwIC4xIi8+CiAgPC9mZUNvbXBvbmVudFRyYW5zZmVyPgo8L2ZpbHRlcj4KPHJlY3Qgd2lkdGg9IjY0MCIgaGVpZ2h0PSI2NDAiIGZpbGw9IiNmZmYiIGZpbHRlcj0idXJsKCNjbG91ZCkiIG9wYWNpdHk9Ii40MiIvPgo8cmVjdCB3aWR0aD0iNjQwIiBoZWlnaHQ9IjY0MCIgZmlsbD0iI2ZmZiIgZmlsdGVyPSJ1cmwoI2ZpbmUpIiBvcGFjaXR5PSIuNzIiLz4KPGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9Ii41NSIgb3BhY2l0eT0iLjEwIj4KICA8cGF0aCBkPSJNMzggMTA5Yzc2LTggMTI4LTcgMjA1LTJNMzQ3IDgxYzg5IDcgMTQzIDUgMjM5LTRNOTQgNDYzYzg1IDggMTU1IDcgMjU5LTNNNDE2IDUxNGM1Ny0zIDExMi0yIDE4MSA0Ii8+CiAgPHBhdGggZD0iTTExOSAzNGMtNCA3OC0yIDEyNiAzIDE5Nk01MzQgMjYzYzMgNzcgMiAxMzItNCAyMTUiLz4KPC9nPgo8ZyBmaWxsPSIjZmZmIiBvcGFjaXR5PSIuMTIiPgogIDxjaXJjbGUgY3g9IjcyIiBjeT0iMjc0IiByPSIuOCIvPjxjaXJjbGUgY3g9IjE5MyIgY3k9IjM4NyIgcj0iLjU1Ii8+PGNpcmNsZSBjeD0iMzAzIiBjeT0iMTQ4IiByPSIuNyIvPgogIDxjaXJjbGUgY3g9IjQ3OSIgY3k9IjEwNiIgcj0iLjY1Ii8+PGNpcmNsZSBjeD0iNTY4IiBjeT0iMzk4IiByPSIuNzUiLz48Y2lyY2xlIGN4PSI0MDkiIGN5PSI1NzgiIHI9Ii41NSIvPgo8L2c+Cjwvc3ZnPg==");
    }

    body {
      background-color: #050505;
      background-image:
        radial-gradient(circle at 1px 1px, rgba(215,255,63,.07) .72px, transparent .9px),
        var(--surface-grain);
      background-size: 18px 18px, 640px 640px;
      background-blend-mode: screen, soft-light;
    }

    body::before {
      inset: 0;
      z-index: 0;
      opacity: .42;
      mix-blend-mode: soft-light;
      background-image: var(--surface-grain);
      background-size: 520px 520px;
      filter: contrast(1.12);
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      opacity: .16;
      background-image:
        radial-gradient(circle at 18% 24%, rgba(255,255,255,.16) 0 .55px, transparent .8px),
        radial-gradient(circle at 81% 67%, rgba(255,255,255,.11) 0 .45px, transparent .72px);
      background-size: 137px 151px, 193px 181px;
      mix-blend-mode: screen;
    }

    .app {
      position: relative;
      z-index: 1;
      background-color: rgba(5,5,5,.84);
      background-image: var(--surface-grain);
      background-size: 760px 760px;
      background-blend-mode: soft-light;
    }

    .rail {
      background-color: rgba(8,8,8,.95);
      background-image: var(--surface-grain);
      background-size: 680px 680px;
      background-blend-mode: soft-light;
    }

    .conversation {
      background: rgba(3,3,3,.16);
    }

    .rail-mobile-head {
      display: flex;
      min-height: 72px;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px 10px 16px;
      border-bottom: 1px solid var(--line);
    }

    .rail-brand {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .rail-brand .mark {
      width: 42px;
      height: 42px;
      flex: 0 0 auto;
      font-size: 17px;
      box-shadow: 4px 4px 0 var(--pink);
    }

    .rail-brand h1 {
      margin: 0;
      font-size: 23px;
      line-height: .88;
      letter-spacing: -.055em;
      text-transform: uppercase;
    }

    .rail-close {
      display: none;
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 1px solid #3b3b3b;
      background: #0d0d0d;
      cursor: pointer;
    }

    .rail-close svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: square;
    }

    .rail-close:hover,
    .rail-close:focus-visible {
      color: var(--pink);
      border-color: var(--pink);
      outline: none;
    }

    .intro {
      padding: 4px 0 28px;
    }

    .intro-chat {
      width: min(780px, 100%);
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr);
      gap: 13px;
      align-items: start;
    }

    .intro-avatar {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border: 1px solid #1a1a1a;
      background: var(--acid);
      color: #050505;
      box-shadow: 2px 2px 0 #000;
      font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    }

    .intro-stack { min-width: 0; }

    .intro-meta {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 28px;
      margin-bottom: 6px;
      color: #7e7e78;
      font-size: 11px;
    }

    .intro-meta strong { color: #d8d8d2; font-size: 12px; }
    .intro-meta span { display: inline-flex; align-items: center; gap: 6px; }
    .intro-meta i {
      width: 6px;
      height: 6px;
      display: inline-block;
      background: var(--acid);
      box-shadow: 0 0 10px rgba(215,255,63,.55);
    }

    .intro-bubble {
      position: relative;
      padding: 20px;
      border: 1px solid #3a3a3a;
      background-color: rgba(15,15,15,.94);
      background-image: var(--surface-grain);
      background-size: 590px 590px;
      background-blend-mode: soft-light;
      box-shadow: 3px 3px 0 #000;
    }

    .intro-bubble::before {
      content: "";
      position: absolute;
      left: -7px;
      top: 14px;
      width: 12px;
      height: 12px;
      border-left: 1px solid #3a3a3a;
      border-bottom: 1px solid #3a3a3a;
      background: #0f0f0f;
      transform: rotate(45deg);
    }

    .intro-bubble p {
      max-width: 62ch;
      margin: 0;
      color: #aaa9a3;
      font-size: 14px;
      line-height: 1.58;
    }

    .intro-bubble .intro-lead {
      color: var(--ink);
      font-size: clamp(17px, 2.1vw, 21px);
      line-height: 1.42;
      letter-spacing: -.025em;
    }

    .intro-bubble p + p { margin-top: 10px; }

    .starter-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 18px;
      padding-top: 17px;
      border-top: 1px dashed #343434;
    }

    .starter {
      min-height: 72px;
      padding: 12px 36px 12px 13px;
      border-color: #3d3d3d;
      background: rgba(12,12,12,.86);
    }

    .starter::after {
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--acid);
    }

    .starter:hover::after { transform: translate(2px, calc(-50% - 2px)); }
    .starter small { margin-bottom: 6px; font-size: 9px; }
    .starter strong { font-size: 13px; line-height: 1.32; }

    .composer::before {
      content: "";
      position: absolute;
      left: 12px;
      top: 13px;
      width: 7px;
      height: 7px;
      background: var(--acid);
      box-shadow: 0 0 12px rgba(215,255,63,.5);
      pointer-events: none;
    }

    .composer textarea { padding-left: 24px; }

    @media (max-width: 860px) {
      .rail {
        visibility: hidden;
        transform: translate3d(-105%,0,0);
        transition: transform .24s cubic-bezier(.2,.75,.25,1), visibility 0s linear .24s;
        will-change: transform;
      }

      .rail.open {
        visibility: visible;
        transform: translate3d(0,0,0);
        transition: transform .24s cubic-bezier(.2,.75,.25,1), visibility 0s;
      }

      .rail-close { display: grid; }
      .rail.open .rail-close { animation: rise .2s .08s ease both; }
      body.menu-open { touch-action: none; }
    }

    @media (max-width: 600px) {
      .intro { padding-top: 0; }
      .intro-chat { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; }
      .intro-avatar { width: 30px; height: 30px; font-size: 9px; }
      .intro-meta { min-height: 24px; margin-bottom: 5px; }
      .intro-bubble { padding: 16px; }
      .intro-bubble::before { top: 11px; }
      .intro-bubble .intro-lead { font-size: 16px; }
      .intro-bubble p { font-size: 13px; }
      .starter-grid { grid-template-columns: 1fr; gap: 7px; }
      .starter { min-height: 64px; }
      .context-copy span { max-width: 190px; }
    }

  

    /* Prominent live spelling replacement popover */
    .composer-shell {
      position: relative;
    }

    .input-suggestion {
      position: absolute;
      left: 0;
      right: 0;
      bottom: calc(100% + 11px);
      z-index: 40;
      margin-top: 0;
      padding: 11px 12px;
      border: 1px solid var(--acid);
      background: #0d0d0d;
      box-shadow: 5px 5px 0 #263000;
    }

    .input-suggestion::after {
      content: "";
      position: absolute;
      left: 24px;
      bottom: -7px;
      width: 12px;
      height: 12px;
      border-right: 1px solid var(--acid);
      border-bottom: 1px solid var(--acid);
      background: #0d0d0d;
      transform: rotate(45deg);
    }

    .suggestion-label {
      color: var(--acid);
    }

    .suggestion-use strong {
      color: #fff;
    }

    /* Angled lime swipe feedback for every clickable control */
    button,
    a.inline-action {
      position: relative;
      overflow: hidden;
      isolation: isolate;
    }

    button::before,
    a.inline-action::before {
      content: "";
      position: absolute;
      z-index: 8;
      top: -70%;
      left: -42%;
      width: 30%;
      height: 240%;
      background: var(--acid);
      opacity: 0;
      pointer-events: none;
      transform: translateX(-230%) rotate(11deg);
      will-change: transform, opacity;
    }

    button.button-swipe::before,
    a.inline-action.button-swipe::before {
      animation: buttonSwipe .46s cubic-bezier(.2,.72,.18,1) both;
    }

    button > *,
    a.inline-action > * {
      position: relative;
      z-index: 9;
    }

    @keyframes buttonSwipe {
      0% {
        opacity: 0;
        transform: translateX(-230%) rotate(11deg);
      }
      12% { opacity: .9; }
      72% { opacity: .82; }
      100% {
        opacity: 0;
        transform: translateX(610%) rotate(11deg);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      button.button-swipe::before,
      a.inline-action.button-swipe::before {
        animation-duration: .01ms;
      }
    }


    /* Theme system, guided tools, and refined interaction behavior */
    :root {
      color-scheme: dark light;
      --scroll-track: #080808;
      --scroll-thumb: var(--acid);
      --surface: #111;
      --surface-soft: #0b0b0b;
      --surface-raised: #171717;
      --field: #101010;
      --deep-shadow: #000;
      --assistant-bubble: #111;
    }

    html[data-theme="light"] {
      --bg: #eeece4;
      --panel: #f8f6ef;
      --panel-2: #e7e4da;
      --ink: #11110f;
      --muted: #5e5e58;
      --line: #b9b6ab;
      --shadow: 8px 8px 0 #c8c4b8;
      --scroll-track: #d8d4c8;
      --scroll-thumb: #6f8500;
      --surface: #f8f6ef;
      --surface-soft: #ece9df;
      --surface-raised: #fffdf5;
      --field: #fbf9f2;
      --deep-shadow: #c5c1b5;
      --assistant-bubble: #fbf9f2;
      color-scheme: light;
    }

    html[data-theme="dark"] { color-scheme: dark; }

    * {
      scrollbar-width: thin;
      scrollbar-color: var(--scroll-thumb) var(--scroll-track);
    }

    *::-webkit-scrollbar { width: 12px; height: 12px; }
    *::-webkit-scrollbar-track {
      background: var(--scroll-track);
      border-left: 1px solid var(--line);
    }
    *::-webkit-scrollbar-thumb {
      min-height: 40px;
      background: var(--scroll-thumb);
      border: 3px solid var(--scroll-track);
      box-shadow: inset 0 0 0 1px rgba(0,0,0,.22);
    }
    *::-webkit-scrollbar-thumb:hover { background: var(--pink); }
    *::-webkit-scrollbar-corner { background: var(--scroll-track); }

    .conversation { scrollbar-color: var(--scroll-thumb) var(--scroll-track); }

    .theme-toggle {
      width: 100%;
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      margin: 0 0 17px;
      padding: 10px;
      border: 1px solid var(--line);
      background: var(--surface);
      text-align: left;
      cursor: pointer;
      box-shadow: 3px 3px 0 var(--deep-shadow);
    }

    .theme-toggle:hover,
    .theme-toggle:focus-visible {
      border-color: var(--acid);
      outline: none;
      transform: translateY(-2px);
    }

    .theme-toggle-icon {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      background: var(--panel-2);
      overflow: hidden;
    }

    .theme-toggle-orbit {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--acid);
      box-shadow: 8px -6px 0 var(--field), 0 0 12px rgba(215,255,63,.45);
      transition: transform .28s ease, box-shadow .28s ease;
    }

    html[data-theme="light"] .theme-toggle-orbit {
      transform: rotate(180deg);
      box-shadow: 0 0 0 4px rgba(215,255,63,.2), 0 0 12px rgba(111,133,0,.35);
    }

    .theme-toggle-copy strong,
    .theme-toggle-copy small { display: block; }
    .theme-toggle-copy strong { color: var(--ink); font-size: 11px; }
    .theme-toggle-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.3; }

    .privacy-toggle {
      width: 100%;
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      margin: 0 0 17px;
      padding: 10px;
      border: 1px solid var(--line);
      background: var(--surface);
      text-align: left;
      cursor: pointer;
      box-shadow: 3px 3px 0 var(--deep-shadow);
    }

    .privacy-toggle:hover,
    .privacy-toggle:focus-visible {
      border-color: var(--blue);
      outline: none;
      transform: translateY(-2px);
    }

    .privacy-toggle-icon {
      width: 30px;
      height: 30px;
      display: grid;
      grid-template-columns: repeat(3, 4px);
      grid-template-rows: repeat(3, 4px);
      place-content: center;
      gap: 3px;
      border: 1px solid var(--line);
      background: var(--panel-2);
    }

    .privacy-toggle-icon i {
      width: 4px;
      height: 4px;
      background: var(--muted);
      transition: background .18s ease, box-shadow .18s ease;
    }

    .privacy-toggle[data-consent="granted"] .privacy-toggle-icon i {
      background: var(--acid);
      box-shadow: 0 0 7px rgba(215,255,63,.38);
    }

    .privacy-toggle[data-consent="denied"] .privacy-toggle-icon i:nth-child(odd) {
      background: var(--pink);
    }

    .privacy-toggle-copy strong,
    .privacy-toggle-copy small { display: block; }
    .privacy-toggle-copy strong { color: var(--ink); font-size: 11px; }
    .privacy-toggle-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.3; }

    .consent-chat-card {
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr);
      gap: 13px;
      margin: 24px 0;
      animation: rise .28s ease both;
    }

    .consent-chat-card[hidden] { display: none !important; }

    .consent-bubble {
      position: relative;
      padding: 18px;
      border: 1px solid var(--line);
      background: var(--assistant-bubble);
      box-shadow: 5px 5px 0 var(--deep-shadow);
    }

    .consent-bubble::before {
      content: "";
      position: absolute;
      left: -7px;
      top: 14px;
      width: 12px;
      height: 12px;
      border-left: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: var(--assistant-bubble);
      transform: rotate(45deg);
    }

    .consent-kicker {
      margin-bottom: 8px;
      color: var(--blue);
      font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .1em;
      text-transform: uppercase;
    }

    .consent-bubble h3 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(18px, 2.3vw, 23px);
      letter-spacing: -.03em;
    }

    .consent-bubble p {
      max-width: 68ch;
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .consent-facts {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 15px;
    }

    .consent-fact {
      padding: 10px;
      border: 1px solid var(--line);
      background: var(--surface-soft);
      color: var(--muted);
      font-size: 11px;
      line-height: 1.45;
    }

    .consent-fact strong {
      display: block;
      margin-bottom: 4px;
      color: var(--ink);
      font-size: 11px;
    }

    .consent-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px;
    }

    .consent-action {
      min-height: 42px;
      padding: 10px 13px;
      border: 1px solid var(--line);
      background: var(--surface-raised);
      color: var(--ink);
      cursor: pointer;
      font-weight: 800;
      font-size: 12px;
      box-shadow: 3px 3px 0 var(--deep-shadow);
    }

    .consent-action.primary {
      border-color: #000;
      background: var(--acid);
      color: #080808;
    }

    .consent-action[aria-pressed="true"] {
      outline: 2px solid var(--blue);
      outline-offset: 2px;
    }

    .consent-status {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-top: 13px;
      color: var(--muted);
      font: 700 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
      text-transform: uppercase;
      letter-spacing: .05em;
    }

    .consent-status i {
      width: 7px;
      height: 7px;
      background: var(--orange);
      box-shadow: 0 0 9px rgba(255,138,61,.4);
    }

    .consent-chat-card[data-consent="granted"] .consent-status i {
      background: var(--acid);
      box-shadow: 0 0 9px rgba(215,255,63,.45);
    }

    .consent-chat-card[data-consent="denied"] .consent-status i {
      background: var(--pink);
      box-shadow: 0 0 9px rgba(255,94,199,.4);
    }

    @media (max-width: 600px) {
      .consent-chat-card { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; }
      .consent-chat-card > .avatar { width: 30px; height: 30px; font-size: 9px; }
      .consent-bubble { padding: 15px; }
      .consent-facts { grid-template-columns: 1fr; }
      .consent-actions { display: grid; grid-template-columns: 1fr; }
      .consent-action { width: 100%; text-align: left; }
    }

    html[data-theme="light"] body {
      background:
        radial-gradient(circle at 1px 1px, rgba(0,0,0,.1) 1px, transparent 1.2px) 0 0 / 16px 16px,
        var(--bg);
    }

    html[data-theme="light"] body::before {
      opacity: .09;
      mix-blend-mode: multiply;
    }

    html[data-theme="light"] .app { background: rgba(238,236,228,.94); }
    html[data-theme="light"] .rail { background: #e8e5db; }
    html[data-theme="light"] .topbar,
    html[data-theme="light"] .composer-wrap { background: rgba(242,240,233,.97); }
    html[data-theme="light"] .suggestion,
    html[data-theme="light"] .icon-button,
    html[data-theme="light"] .starter,
    html[data-theme="light"] .bubble,
    html[data-theme="light"] .answer-card,
    html[data-theme="light"] .answer-panel,
    html[data-theme="light"] .comparison-grid > div,
    html[data-theme="light"] .flow-list li,
    html[data-theme="light"] .inline-action,
    html[data-theme="light"] .command-menu,
    html[data-theme="light"] .command-item,
    html[data-theme="light"] .composer,
    html[data-theme="light"] .input-suggestion,
    html[data-theme="light"] .intro-bubble,
    html[data-theme="light"] .guided-card,
    html[data-theme="light"] .guided-option,
    html[data-theme="light"] .guided-summary {
      background: var(--surface);
      color: var(--ink);
    }

    html[data-theme="light"] .intro-bubble::before,
    html[data-theme="light"] .input-suggestion::after { background: var(--surface); }
    html[data-theme="light"] .consent-bubble,
    html[data-theme="light"] .consent-bubble::before { background: var(--assistant-bubble); }

    html[data-theme="light"] .message.user .bubble { background: var(--pink); color: #000; }
    html[data-theme="light"] .message.user .bubble strong { color: #000; }
    html[data-theme="light"] .answer-card p,
    html[data-theme="light"] .answer-panel p,
    html[data-theme="light"] .flow-list p,
    html[data-theme="light"] .bubble p,
    html[data-theme="light"] .intro-bubble p { color: #474741; }
    html[data-theme="light"] .bubble strong,
    html[data-theme="light"] .answer-card h3,
    html[data-theme="light"] .answer-panel strong { color: #11110f; }
    html[data-theme="light"] .context-copy span,
    html[data-theme="light"] .suggestion span,
    html[data-theme="light"] .thinking-label,
    html[data-theme="light"] .loading-subcopy,
    html[data-theme="light"] .intro-meta { color: #61615b; }
    html[data-theme="light"] .message-head,
    html[data-theme="light"] .intro-meta strong {
      color: #1a1a17;
    }
    html[data-theme="light"] .suggestion-use strong { color: var(--ink); }
    html[data-theme="light"] .calendar-fallback { background: #fffdf5; }

    .guided-card {
      margin-top: 16px;
      padding: 16px;
      border: 1px solid var(--line);
      background: var(--surface-soft);
      box-shadow: 4px 4px 0 var(--deep-shadow);
    }

    .guided-progress {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      margin-bottom: 14px;
    }

    .guided-progress-track {
      height: 7px;
      border: 1px solid var(--line);
      background: var(--scroll-track);
      overflow: hidden;
    }

    .guided-progress-fill {
      height: 100%;
      background: var(--acid);
      transform-origin: left;
      transition: width .25s ease;
    }

    .guided-progress span {
      color: var(--muted);
      font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .guided-question {
      margin: 0;
      color: var(--ink);
      font-size: 16px;
      line-height: 1.42;
      letter-spacing: -.015em;
    }

    .guided-help {
      margin: 7px 0 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    .guided-options {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 15px;
    }

    .guided-option {
      min-height: 58px;
      padding: 11px 12px;
      border: 1px solid var(--line);
      background: var(--surface);
      text-align: left;
      cursor: pointer;
      transition: border-color .15s ease, transform .15s ease, background .15s ease;
    }

    .guided-option:hover,
    .guided-option:focus-visible {
      border-color: var(--acid);
      transform: translateY(-2px);
      outline: none;
    }

    .guided-option.is-selected {
      border-color: var(--acid);
      background: var(--acid);
      color: #000;
      box-shadow: 3px 3px 0 var(--pink);
    }

    .guided-option strong,
    .guided-option small { display: block; }
    .guided-option strong { font-size: 12px; line-height: 1.3; }
    .guided-option small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
    .guided-option.is-selected small { color: rgba(0,0,0,.65); }

    .guided-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px dashed var(--line);
    }

    .guided-input-hint {
      color: var(--muted);
      font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
    }

    .guided-continue {
      padding: 9px 12px;
      border: 1px solid #000;
      background: var(--acid);
      color: #000;
      cursor: pointer;
      font-weight: 800;
    }

    .guided-continue:disabled {
      opacity: .35;
      cursor: not-allowed;
    }

    .guided-summary {
      display: grid;
      gap: 8px;
      margin-top: 14px;
      padding: 14px;
      border: 1px solid var(--line);
      background: var(--surface-soft);
    }

    .guided-summary-row {
      display: grid;
      grid-template-columns: 110px minmax(0, 1fr);
      gap: 10px;
      font-size: 12px;
      line-height: 1.45;
    }
    .guided-summary-row strong { color: var(--muted); font-size: 10px; text-transform: uppercase; }

    .composer.is-guided {
      border-color: var(--acid);
      box-shadow: 7px 7px 0 #263000;
    }

    .composer.is-guided::after {
      content: "Guided answer";
      position: absolute;
      left: 12px;
      bottom: 4px;
      color: var(--acid);
      font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .1em;
      text-transform: uppercase;
      pointer-events: none;
    }

    .composer.is-guided textarea { padding-bottom: 17px; }

    /* One slow swipe only */
    button.button-swipe::before,
    a.inline-action.button-swipe::before {
      animation: buttonSwipe 1.08s cubic-bezier(.28,.05,.22,1) 1 both;
    }

    @keyframes buttonSwipe {
      0% { opacity: 0; transform: translateX(-240%) rotate(11deg); }
      10% { opacity: .84; }
      86% { opacity: .78; }
      100% { opacity: 0; transform: translateX(650%) rotate(11deg); }
    }

    @media (max-width: 600px) {
      .guided-options { grid-template-columns: 1fr; }
      .guided-summary-row { grid-template-columns: 1fr; gap: 3px; }
      .guided-footer { align-items: flex-start; flex-direction: column; }
      .theme-toggle { margin-bottom: 14px; }
    }


    /* Complete light-mode coverage */
    html[data-theme="light"] .conversation,
    html[data-theme="light"] .main { background: transparent; }

    html[data-theme="light"] .identity,
    html[data-theme="light"] .rail-label,
    html[data-theme="light"] .rail-footer,
    html[data-theme="light"] .command-head,
    html[data-theme="light"] .guided-footer { border-color: var(--line); }

    html[data-theme="light"] .suggestion:hover,
    html[data-theme="light"] .suggestion:focus-visible,
    html[data-theme="light"] .icon-button:hover,
    html[data-theme="light"] .icon-button:focus-visible,
    html[data-theme="light"] .inline-action:hover,
    html[data-theme="light"] .inline-action:focus-visible,
    html[data-theme="light"] .command-item:hover,
    html[data-theme="light"] .command-item:focus-visible {
      background: #eef7bf;
      color: #11110f;
    }

    html[data-theme="light"] .message:not(.user) .bubble,
    html[data-theme="light"] .variant-brief .bubble,
    html[data-theme="light"] .typing .bubble {
      background: var(--assistant-bubble);
      border-color: var(--line);
      box-shadow: 3px 3px 0 var(--deep-shadow);
    }

    html[data-theme="light"] .avatar {
      border-color: #11110f;
      box-shadow: 2px 2px 0 #a9a598;
    }

    html[data-theme="light"] .tag,
    html[data-theme="light"] .answer-list li,
    html[data-theme="light"] .work-link,
    html[data-theme="light"] .tool-receipt,
    html[data-theme="light"] .response-note,
    html[data-theme="light"] .suggestion-use kbd,
    html[data-theme="light"] .suggestion-dismiss,
    html[data-theme="light"] .rail-mobile-head,
    html[data-theme="light"] .rail-close {
      background: var(--surface-soft);
      border-color: var(--line);
      color: var(--ink);
    }

    html[data-theme="light"] .tool-receipt {
      background: #f1f4df;
      box-shadow: 4px 4px 0 #c8cba8;
    }

    html[data-theme="light"] .tool-receipt-head { border-color: #aeb38b; }
    html[data-theme="light"] .tool-signal-list li,
    html[data-theme="light"] .answer-list li,
    html[data-theme="light"] .work-link p,
    html[data-theme="light"] .response-note,
    html[data-theme="light"] .command-head span,
    html[data-theme="light"] .guided-help,
    html[data-theme="light"] .guided-input-hint,
    html[data-theme="light"] .guided-interaction-head span,
    html[data-theme="light"] .loading-subcopy,
    html[data-theme="light"] .thinking-label,
    html[data-theme="light"] .composer-note,
    html[data-theme="light"] .rail-footer,
    html[data-theme="light"] .rail-label { color: var(--muted); }

    html[data-theme="light"] .answer-panel::after { border-color: #d4d0c4; }
    html[data-theme="light"] .response-note { background: #e7f5f7; color: #274249; }
    html[data-theme="light"] .calendly-card { box-shadow: 4px 4px 0 var(--deep-shadow); }
    html[data-theme="light"] .calendly-head { background: #f1eee5; color: var(--ink); border-color: var(--line); }
    html[data-theme="light"] .calendly-head span { color: var(--muted); }
    html[data-theme="light"] .input-suggestion { box-shadow: 4px 4px 0 var(--deep-shadow); }
    html[data-theme="light"] .composer:focus-within,
    html[data-theme="light"] .composer.is-guided { box-shadow: 4px 4px 0 #a7b861; }
    html[data-theme="light"] .command-menu { box-shadow: 10px 10px 0 var(--deep-shadow); }
    html[data-theme="light"] .scrim { background: rgba(35,34,30,.36); }

    .guided-dialog-question {
      margin: 16px 0 8px !important;
      max-width: 54ch;
      color: var(--ink) !important;
      font-size: clamp(18px, 2.2vw, 23px);
      line-height: 1.35;
      letter-spacing: -.025em;
    }

    .guided-dialog-help {
      max-width: 62ch;
      color: var(--muted) !important;
      font-size: 13px;
    }

    .guided-controls-reveal {
      position: relative;
      margin-top: 22px;
      opacity: 0;
      transform: translateY(12px);
      animation: guidedControlsReveal .48s .58s cubic-bezier(.2,.72,.22,1) forwards;
    }

    .guided-controls-reveal::before {
      content: "";
      position: absolute;
      left: 0;
      top: -10px;
      width: 72px;
      height: 3px;
      background: var(--acid);
      box-shadow: 0 0 14px rgba(215,255,63,.35);
    }

    .guided-interaction-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 13px;
    }

    .guided-interaction-head strong {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .guided-interaction-head span {
      color: var(--muted);
      font-size: 10px;
    }

    @keyframes guidedControlsReveal {
      to { opacity: 1; transform: translateY(0); }
    }

    .fit-receipt {
      border-color: var(--acid);
      box-shadow: 5px 5px 0 #263000;
    }

    .fit-celebration {
      position: relative;
      margin: 14px 0 16px;
      padding: 17px 18px 17px 21px;
      border: 1px solid #62731e;
      background-color: #111607;
      background-image: radial-gradient(circle at 1px 1px, rgba(215,255,63,.2) 1px, transparent 1.2px);
      background-size: 13px 13px;
      overflow: hidden;
    }

    .fit-celebration::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 6px;
      background: var(--acid);
    }

    .fit-celebration span {
      display: block;
      margin-bottom: 8px;
      color: var(--acid);
      font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
      letter-spacing: .14em;
    }

    .fit-celebration h3 {
      margin: 0;
      max-width: 52ch;
      color: var(--ink);
      font-size: clamp(18px, 2.2vw, 24px);
      line-height: 1.25;
      letter-spacing: -.035em;
    }

    .fit-celebration p {
      max-width: 68ch;
      margin: 10px 0 0 !important;
      color: #c5c9b0;
      font-size: 13px;
      line-height: 1.55;
    }

    html[data-theme="light"] .fit-celebration {
      border-color: #7d941a;
      background-color: #f0f8c9;
      background-image: radial-gradient(circle at 1px 1px, rgba(70,84,0,.18) 1px, transparent 1.2px);
      color: #11110f;
    }

    html[data-theme="light"] .fit-celebration h3,
    html[data-theme="light"] .fit-celebration p { color: #202313; }
    html[data-theme="light"] .fit-celebration span { color: #526200; }
    html[data-theme="light"] .fit-receipt { box-shadow: 5px 5px 0 #aebd70; }

    @media (prefers-reduced-motion: reduce) {
      .guided-controls-reveal { animation: none; opacity: 1; transform: none; }
    }

  

    /* Keep the mobile drawer above the page scrim. The app itself must not
       create a stacking context or the fixed rail cannot escape beneath it. */
    .app {
      z-index: auto;
    }

    .main {
      position: relative;
      z-index: 1;
    }

    @media (max-width: 860px) {
      .rail {
        z-index: 31;
        pointer-events: auto;
      }

      .rail.open {
        pointer-events: auto;
      }

      .scrim {
        z-index: 20;
      }

      .command-menu {
        z-index: 31;
      }
    }
