/* Landing page 2 of Kairos Studio v2: the app as a live demo, "works with" and one sentence.
   Measures follow dusk.bot's stage, window, row and statement (data in the PR); colours are the page's
   own tokens: a light ground, Duskbot's neutrals and the theme's accent, never orange, blue or purple.
   Everything here is scoped to #walkthrough. */

/* The orb's tint is a registered colour so a theme switch fades the glass instead of swapping it. */
@property --orb-tint {
  syntax: "<color>";
  inherits: true;
  initial-value: #2a2d33;
}

@scope (#walkthrough) {
  /* The page's tokens under the names this section was measured with (dusk.bot's neutrals), and its
     own per-theme colours: the stage behind the window and the five session tints. Graphite, MatchLab's
     orchestrator orb (tokens.ts ORB_COLORS.nemotron), is Kairos itself in both themes. Every "-ink"
     carries white text at 4.5 to 1 or more. */
  :scope {
    --ink-3: var(--ink-soft);
    --text: var(--ink);
    --placeholder: var(--ink-soft);
    --bg: var(--ground);
    --wash: color-mix(in oklab, var(--ink) 4%, var(--surface));
    --line: #e9e9e6;
    --line-2: #ececec;
    --side: #f7f7f7;
    --pane: #fdfdfd;
    --bubble: #f1f1f0;
    --pressed: rgb(0 0 0 / 0.06);
    --font: var(--sans);
    --mono: var(--sans);
    --accent-wash: var(--accent-soft);
    --stage-top: #fafaf9;
    --stage-bottom: #dcdcda;
    --stage-glow: rgb(255 255 255 / 0.9);
    --stage-glow-2: rgb(150 152 156 / 0.28);
    --win-shadow: rgb(20 21 24 / 0.36);
    --t0: #2a2d33;
    --t0-ink: #2a2d33;
    --t1: #55585e;
    --t1-ink: #4a4d53;
    --t2: #73767c;
    --t2-ink: #575a60;
    --t3: #3f4247;
    --t3-ink: #3f4247;
    --t4: #8c8f94;
    --t4-ink: #5e6167;
  }

  [data-theme="sage"] :scope {
    --stage-top: #f4f9f6;
    --stage-bottom: #cfe3d7;
    --stage-glow: rgb(255 255 255 / 0.85);
    --stage-glow-2: rgb(95 158 134 / 0.3);
    --win-shadow: rgb(20 60 45 / 0.36);
    --t1: #3d7a5e;
    --t1-ink: #336a51;
    --t2: #5c8f72;
    --t2-ink: #3f6e55;
    --t3: #2f5d4f;
    --t3-ink: #2f5d4f;
    --t4: #7aa38a;
    --t4-ink: #4a7259;
  }

  [data-tint="0"] { --orb-tint: var(--t0); --tint-ink: var(--t0-ink); }
  [data-tint="1"] { --orb-tint: var(--t1); --tint-ink: var(--t1-ink); }
  [data-tint="2"] { --orb-tint: var(--t2); --tint-ink: var(--t2-ink); }
  [data-tint="3"] { --orb-tint: var(--t3); --tint-ink: var(--t3-ink); }
  [data-tint="4"] { --orb-tint: var(--t4); --tint-ink: var(--t4-ink); }

  :scope {
    background: var(--bg);
    color: var(--ink);
    font: 450 16px/1.55 var(--font);
    padding-top: clamp(72px, 10vh, 120px);
  }

  button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
  }

  svg {
    flex: none;
  }

  table {
    font-variant-numeric: tabular-nums;
  }

  /* ---------- The glass orb: MatchLab agent-chat/Orb.tsx, its gradient and shadow as CSS ---------- */

  .orb {
    --orb-size: 34px;
    position: relative;
    display: inline-block;
    flex: none;
    width: var(--orb-size);
    height: var(--orb-size);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #fff 0%, color-mix(in oklab, var(--orb-tint) 35%, white) 22%, var(--orb-tint) 62%, color-mix(in oklab, var(--orb-tint) 70%, black) 100%);
    box-shadow:
      0 0 0 1px color-mix(in oklab, var(--orb-tint) 30%, transparent),
      0 calc(var(--orb-size) / 10) calc(var(--orb-size) / 3) color-mix(in oklab, var(--orb-tint) 38%, transparent);
    transition: --orb-tint 320ms ease;
  }

  /* Thinking, from MatchLab agent-trace/orbs/orbs.module.css: a ring breathing outwards and a soft core breath. */
  .orb.thinking {
    animation: wt-orb-breathe 1600ms ease-in-out infinite;
  }

  .orb.thinking::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 2px solid color-mix(in oklab, var(--orb-tint) 55%, transparent);
    opacity: 0;
    animation: wt-orb-ring 1600ms var(--ease-out) infinite;
  }

  /* ---------- Stage and window ---------- */

  .stage-wrap {
    max-width: 1388px;
    margin: 12px auto 0;
    padding: 0 24px;
  }

  .stage {
    position: relative;
    isolation: isolate;
    overflow: clip;
    border-radius: 28px;
    padding: max(34px, 3.4%) max(12px, 2.4%) max(12px, 2.4%);
    background:
      radial-gradient(60% 70% at 88% 4%, var(--stage-glow), transparent 70%),
      radial-gradient(55% 60% at 6% 100%, var(--stage-glow-2), transparent 72%),
      linear-gradient(180deg, var(--stage-top), var(--stage-bottom));
  }

  .peek {
    position: absolute;
    z-index: 0;
    top: max(14px, calc(3.4% - 18px));
    right: 9.5%;
    display: flex;
    gap: 18px;
  }

  .peek-orb {
    --orb-size: 46px;
  }

  .peek-orb:nth-child(2) {
    --orb-size: 40px;
    margin-top: 6px;
  }

  .peek-orb:nth-child(3) {
    --orb-size: 34px;
    margin-top: 12px;
  }

  .win {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 14px;
    background: #fcfcfc;
    box-shadow: 0 40px 90px -30px var(--win-shadow), 0 0 0 1px rgb(0 0 0 / 0.04);
  }

  .win-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    background: #f5f5f5;
  }

  .lights {
    display: flex;
    gap: 8px;
  }

  /* The window's lights stay grey, as on a Mac window in the background, so no traffic-light colour enters the page. */
  .lights i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d6d6d4;
    box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.1);
  }

  .win-title {
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
  }

  .win-note {
    justify-self: end;
    color: var(--ink-3);
    font: 500 12px/12px var(--mono);
  }

  .win-body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, 303fr) minmax(0, 628fr) minmax(290px, 345fr);
    height: clamp(600px, 51vw, 735px);
    color: var(--text);
    font-size: 15px;
    letter-spacing: 0.01em;
  }

  .win-body[data-detail="closed"] {
    grid-template-columns: minmax(230px, 303fr) minmax(0, 973fr) 0;
  }

  .win-body[data-detail="closed"] .detail {
    display: none;
  }

  .round {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.07), 0 1px 2px rgb(0 0 0 / 0.04);
    transition: transform 160ms var(--ease-out), background-color 160ms ease;
  }

  .round svg {
    width: 19px;
    height: 19px;
  }

  button.round:active {
    transform: scale(0.95);
  }

  /* ---------- Sessions ---------- */

  .side {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px 14px 16px 13px;
    background: var(--side);
  }

  .side-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    margin-bottom: 18px;
  }

  .side-search {
    flex: 1;
  }

  .side-search input {
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.07);
    font-size: 14px;
    outline: none;
  }

  .side-search input:focus-visible {
    box-shadow: 0 0 0 2px var(--accent);
  }

  .side-search input::placeholder {
    color: var(--placeholder);
  }

  .sessions {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
  }

  .session {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 62px;
    padding: 8px;
    border-radius: 16px;
    text-align: left;
    transition: background-color 160ms ease;
  }

  .session .orb {
    justify-self: center;
  }

  .session[aria-current="true"] {
    background: #ebebea;
  }

  .session-text {
    display: grid;
    min-width: 0;
  }

  .session-text b {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .preview {
    overflow: hidden;
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 20px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .preview.wait {
    color: var(--accent-ink);
  }

  .dot {
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--accent);
  }

  .side-empty {
    margin: 8px 10px;
    color: var(--ink-3);
    font-size: 14px;
  }

  .side-foot {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
  }

  .me {
    color: var(--ink-2);
  }

  .connect {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 38px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.07), 0 1px 2px rgb(0 0 0 / 0.04);
    font-size: 15px;
    font-weight: 500;
    transition: transform 160ms var(--ease-out);
  }

  .connect:active {
    transform: scale(0.98);
  }

  .marks {
    display: inline-flex;
    gap: 4px;
    color: var(--ink-2);
  }

  .marks svg {
    width: 12px;
    height: 12px;
  }

  .connect-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 6px);
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(16 24 40 / 0.14), 0 0 0 1px rgb(16 24 40 / 0.06);
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 20px;
    transform-origin: 50% 100%;
    animation: wt-pop-in 160ms var(--ease-out);
  }

  /* ---------- Chat ---------- */

  .chat {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 0 18px 16px 17px;
    background: var(--pane);
  }

  .chip {
    position: absolute;
    z-index: 2;
    top: 11px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100% - 36px);
    padding: 6px 16px 6px 9px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.04), 0 4px 14px rgb(0 0 0 / 0.07);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    transform: translateX(-50%);
    transition: transform 160ms var(--ease-out);
  }

  .chip:active {
    transform: translateX(-50%) scale(0.97);
  }

  .chip .orb {
    --orb-size: 22px;
  }

  .chip-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .convos {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 58px 0 8px;
    mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
    scrollbar-width: thin;
  }

  .convo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .convo[hidden] {
    display: none;
  }

  /* The run-through moves focus to the conversation it opens; the conversation itself needs no ring. */
  .convo:focus {
    outline: none;
  }

  .time {
    align-self: center;
    margin: 0;
    padding: 0 0 4px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 16px;
  }

  .bubble {
    max-width: 76%;
    margin: 0;
    padding: 10px 13px;
    border-radius: 18px;
    background: var(--bubble);
    font-size: 15px;
    line-height: 22px;
    text-wrap: pretty;
  }

  .bubble.mine {
    align-self: flex-end;
    background: var(--tint-ink);
    color: #fff;
  }

  .bubble.arrived {
    animation: wt-bubble-in 260ms var(--ease-out);
  }

  .card {
    max-width: 76%;
    border-radius: 18px;
    background: var(--bubble);
  }

  .table-card {
    padding: 8px 16px;
  }

  .table-card table {
    border-collapse: collapse;
  }

  .table-card th,
  .table-card td {
    padding: 11px 24px 11px 0;
    font-size: 15px;
    line-height: 22px;
    text-align: left;
    vertical-align: top;
  }

  .table-card th {
    color: var(--ink-3);
    font-weight: 450;
  }

  .table-card tr > :last-child {
    padding-right: 0;
  }

  .table-card .num {
    text-align: right;
  }

  .question {
    width: 100%;
    max-width: 100%;
    padding: 20px 18px 12px;
    border-radius: 22px;
  }

  .question-text {
    margin: 0 0 8px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 22px;
  }

  .options {
    display: grid;
  }

  .options button {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    margin: 0 -8px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 15px;
    text-align: left;
    transition: background-color 160ms ease, opacity 200ms ease;
  }

  .options kbd {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgb(0 0 0 / 0.06);
    color: var(--ink-3);
    font: 500 12px/1 var(--font);
    transition: background-color 200ms ease, color 200ms ease;
  }

  .options button[aria-checked="true"] kbd {
    background: var(--tint-ink);
    color: #fff;
  }

  .options button:disabled {
    cursor: default;
  }

  .options button:disabled:not([aria-checked="true"]) {
    opacity: 0.45;
  }

  .next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 7px 12px 7px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line);
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 20px;
    text-align: left;
    transition: box-shadow 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
  }

  .next svg {
    width: 16px;
    height: 16px;
  }

  .next:active {
    transform: scale(0.97);
  }

  .clip {
    display: flex;
    gap: 14px;
    padding: 12px;
    align-items: flex-end;
  }

  .clip-frame {
    position: relative;
    display: grid;
    place-items: end center;
    width: 92px;
    aspect-ratio: 9 / 16;
    padding: 0 6px 18px;
    overflow: hidden;
    border-radius: 12px;
    background:
      radial-gradient(70% 45% at 50% 38%, color-mix(in oklab, var(--orb-tint) 55%, white), transparent 72%),
      linear-gradient(170deg, color-mix(in oklab, var(--orb-tint) 45%, #1b1b1f), #17171a);
  }

  .clip-caption {
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-align: center;
  }

  .clip-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.85);
    color: #17171a;
    transform: translate(-50%, -70%);
  }

  .clip-play svg {
    width: 16px;
    height: 16px;
  }

  .clip-meta {
    display: grid;
    gap: 2px;
    padding-bottom: 4px;
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 20px;
  }

  .clip-meta b {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
  }

  .drafts {
    padding: 4px 16px;
  }

  .draft {
    display: flex;
    gap: 12px;
    padding: 11px 0;
  }

  .draft + .draft {
    border-top: 1px solid rgb(0 0 0 / 0.06);
  }

  .draft-mark {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--ink);
  }

  .draft b {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 20px;
  }

  .draft p {
    margin: 0;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 22px;
  }

  .week {
    width: 100%;
    max-width: 100%;
    padding: 12px;
  }

  .days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .days li {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 108px;
    padding: 8px 5px;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.7);
  }

  .days b {
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .slot {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 8px;
    background: color-mix(in oklab, var(--orb-tint) 16%, white);
    color: var(--text);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 14px;
    white-space: nowrap;
  }

  .slot svg {
    width: 11px;
    height: 11px;
  }

  .composer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 6px 6px 6px 8px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 2px 10px rgb(0 0 0 / 0.05);
  }

  .composer:focus-within {
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--tint-ink) 45%, transparent), 0 2px 10px rgb(0 0 0 / 0.05);
  }

  .composer .add {
    width: 30px;
    height: 30px;
    background: rgb(0 0 0 / 0.05);
    box-shadow: none;
  }

  .composer .add svg {
    width: 17px;
    height: 17px;
  }

  .composer textarea {
    flex: 1;
    min-width: 0;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 14.5px;
    line-height: 22px;
    caret-color: var(--tint-ink);
    resize: none;
    outline: none;
  }

  .composer textarea::placeholder {
    color: var(--placeholder);
  }

  .mic {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--tint-ink);
    color: #fff;
    transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 320ms ease;
  }

  .mic svg {
    width: 17px;
    height: 17px;
  }

  .mic:active {
    transform: scale(0.94);
  }

  .mic[aria-pressed="true"] {
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--tint-ink) 22%, transparent);
  }

  /* ---------- Detail ---------- */

  .detail {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 14px 17px 18px;
    overflow-y: auto;
    border-left: 1px solid #efefee;
    background: #fff;
    scrollbar-width: thin;
  }

  .detail-tools {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .profile {
    display: grid;
    justify-items: center;
    margin-top: 6px;
  }

  .orb-big {
    --orb-size: 62px;
  }

  .profile-name {
    margin: 16px 0 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.01em;
  }

  .profile-session {
    margin: 0;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 18px;
  }

  .tabs {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 14px 0 18px;
  }

  .tabs button {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 18px;
    transition: background-color 160ms ease, color 160ms ease;
  }

  .tabs button[aria-selected="true"] {
    background: var(--pressed);
    color: var(--text);
  }

  .panel-label {
    margin: 0 0 8px 13px;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 18px;
  }

  .card-line {
    position: relative;
    margin: 0;
    padding: 2px 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgb(0 0 0 / 0.03);
    list-style: none;
  }

  .card-line + .card-line {
    margin-top: 12px;
  }

  .job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
  }

  .job b {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .job span span {
    display: block;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 18px;
  }

  .switch {
    position: relative;
    width: 36px;
    height: 22px;
    border-radius: 999px;
    background: #e4e4e2;
    transition: background-color 200ms ease;
  }

  .switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
    transition: transform 200ms var(--ease-out);
  }

  .switch[aria-checked="true"] {
    background: var(--tint-ink);
  }

  .switch[aria-checked="true"]::after {
    transform: translateX(14px);
  }

  .model-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    font-size: 14px;
    line-height: 20px;
  }

  .model-row.sub {
    min-height: 30px;
    color: var(--ink-3);
    font-size: 13px;
  }

  .model-row.sub span:last-child {
    color: var(--ink-2);
  }

  .program {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 6px 4px 7px;
    border-radius: 999px;
    box-shadow: 0 0 0 1px var(--line);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 20px;
    transition: box-shadow 160ms ease, transform 160ms var(--ease-out);
  }

  .program svg {
    width: 16px;
    height: 16px;
  }

  .program .chev {
    width: 14px;
    height: 14px;
    color: var(--ink-3);
  }

  .program:active {
    transform: scale(0.97);
  }

  .program-list {
    position: absolute;
    z-index: 3;
    top: 42px;
    right: 10px;
    min-width: 170px;
    margin: 0;
    padding: 5px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(16 24 40 / 0.16), 0 0 0 1px rgb(16 24 40 / 0.06);
    list-style: none;
    transform-origin: 100% 0;
    animation: wt-pop-in 150ms var(--ease-out);
  }

  .program-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
  }

  .program-list li svg {
    width: 17px;
    height: 17px;
  }

  .program-list li[aria-selected="true"] {
    background: var(--pressed);
    font-weight: 500;
  }

  .model-note {
    margin: 4px 0 10px;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 18px;
  }

  .screen {
    display: flex;
    flex-direction: column;
    aspect-ratio: 16 / 10;
    padding: 14px 16px 0;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(160deg, color-mix(in oklab, var(--orb-tint) 20%, white), color-mix(in oklab, var(--orb-tint) 40%, #f4f4f2));
  }

  .screen-bar {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 8px 8px 0 0;
    background: #f3f3f2;
  }

  .screen-bar i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d6d6d4;
  }

  .screen-lines {
    flex: 1;
    margin: 0;
    padding: 4px 12px;
    background: #fff;
    list-style: none;
  }

  .screen-lines li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    font-size: 12.5px;
    line-height: 17px;
    font-variant-numeric: tabular-nums;
  }

  .screen-lines li + li {
    border-top: 1px solid var(--line);
  }

  .screen-lines b {
    font-weight: 500;
  }

  .screen-lines span {
    color: var(--ink-3);
    text-align: right;
  }

  .screen-caption {
    margin: 10px 0 0;
    color: var(--ink-3);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
  }

  .rights li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    line-height: 20px;
  }

  .rights li + li {
    border-top: 1px solid var(--line);
  }

  .rights svg {
    width: 17px;
    height: 17px;
    color: var(--ink-3);
  }

  .rights svg.yes {
    color: var(--tint-ink);
  }

  .rights span {
    margin-left: auto;
    color: var(--ink-3);
    font-size: 13px;
  }

  .rights + .model-note {
    margin-top: 10px;
  }

  /* ---------- Works with ---------- */

  .runs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 40px;
    max-width: 1208px;
    margin: 44px auto 0;
    padding: 0 24px;
    font-size: 15.5px;
    line-height: 24px;
  }

  .runs p {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
  }

  .providers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    margin: 0;
    padding: 0;
    color: var(--ink-2);
    font-weight: 500;
    list-style: none;
  }

  .providers li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .providers svg {
    width: 20px;
    height: 20px;
  }

  .providers .via {
    margin: 0 2px;
    color: var(--ink-soft);
  }

  /* ---------- Statement ---------- */

  .statement-wrap {
    max-width: 1208px;
    margin: 150px auto 0;
    padding: 0 24px 160px;
  }

  .statement {
    max-width: 20.8em;
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 4.3vw, 56px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.04em;
    text-wrap: pretty;
  }

  .orb-inline {
    --orb-size: 0.78em;
    --orb-tint: var(--t0);
    margin: 0 0.06em;
    vertical-align: -0.08em;
  }

  .inline-mark {
    display: inline-block;
    height: 0.9em;
    width: auto;
    margin: 0 0.04em;
    color: var(--ink);
    vertical-align: -0.14em;
  }

  .inline-mark.mac {
    transform: rotate(-4deg);
  }

  .inline-mark.cal {
    transform: rotate(5deg);
  }

  .mac-screen,
  .cal-day {
    fill: var(--accent);
    transition: fill 320ms ease;
  }

  /* ---------- Hover, only where a pointer hovers ---------- */

  @media (hover: hover) and (pointer: fine) {
    .session:hover:not([aria-current="true"]) { background: var(--hover); }
    .round:hover,
    .connect:hover { background: #fafafa; }
    .options button:hover:not(:disabled) { background: rgb(0 0 0 / 0.04); }
    .next:hover { box-shadow: 0 0 0 1px color-mix(in oklab, var(--tint-ink) 50%, transparent); color: var(--text); }
    .tabs button:hover { color: var(--text); }
    .program:hover { box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 25%, transparent); }
    .program-list li:hover { background: var(--hover); }
  }

  /* ---------- Narrower windows: the profile becomes a sheet over the chat ---------- */

  @media (max-width: 1180px) {
    .win-body,
    .win-body[data-detail="closed"] {
      grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
    }

    .win-body .detail {
      position: absolute;
      z-index: 4;
      top: 0;
      right: 0;
      bottom: 0;
      width: min(340px, 100%);
      box-shadow: -20px 0 40px -24px rgb(0 0 0 / 0.25);
    }
  }

  @media (max-width: 760px) {
    .stage-wrap {
      padding: 0 12px;
    }

    .stage {
      border-radius: 22px;
    }

    .peek {
      right: 7%;
      gap: 10px;
    }

    .peek-orb { --orb-size: 30px; }
    .peek-orb:nth-child(2) { --orb-size: 26px; }
    .peek-orb:nth-child(3) { --orb-size: 22px; }

    .win-bar {
      grid-template-columns: auto 1fr auto;
      gap: 10px;
    }

    .win-note {
      display: none;
    }

    .win-body,
    .win-body[data-detail="closed"] {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: auto minmax(0, 1fr);
      height: 640px;
    }

    .side {
      padding: 10px 10px 8px;
    }

    .side-tools,
    .side-foot,
    .side-empty {
      display: none;
    }

    .sessions {
      flex-direction: row;
      gap: 4px;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .sessions li {
      flex: none;
    }

    .session {
      grid-template-columns: auto auto;
      gap: 8px;
      min-height: 44px;
      padding: 6px 12px 6px 6px;
      border-radius: 999px;
    }

    .session .orb { --orb-size: 26px; }
    .preview,
    .session .dot { display: none; }

    .chat {
      padding: 0 10px 10px;
    }

    .bubble,
    .card { max-width: 90%; }

    .table-card th,
    .table-card td { padding-right: 14px; font-size: 14px; }

    .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .days li { min-height: 72px; }

    .runs {
      margin-top: 36px;
      padding: 0 16px;
    }

    .statement-wrap {
      margin-top: 96px;
      padding: 0 16px 110px;
    }
  }

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

    .orb.thinking,
    .orb.thinking::after {
      animation: none !important;
    }

    .orb.thinking::after {
      opacity: 0.45;
      transform: scale(1.2);
    }

    .switch::after,
    .chip,
    .round,
    .next,
    .mic,
    .program {
      transition-property: background-color, color, box-shadow, opacity;
    }
  }
}

@keyframes wt-orb-ring {
  0% { opacity: 0.55; transform: scale(0.85); }
  70%, 100% { opacity: 0; transform: scale(1.45); }
}

@keyframes wt-orb-breathe {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.12) saturate(1.1); }
}

@keyframes wt-pop-in {
  from { opacity: 0; transform: scale(0.97) translateY(4px); }
}

@keyframes wt-bubble-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
}
