/* ===== Round 14 (26 Nov): only what Jonathan named. One block per change. ===== */

/* 3 · the AI apps switch from a little Dock under the window (was a row of text pills above it). Same tabs, same keys. */
@media (min-width: 761px) {
  .ai-in { grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .ai-in > .ai-tabs { order: 3; margin-block-start: 4px; } .ai-in > .ai-foot { order: 4; }
  .ai-tabs { gap: 10px; padding: 6px 10px 5px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 72%, transparent); box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .14), 0 10px 30px -14px rgb(var(--shade-rgb) / .35); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
  .ai-tabs button { flex-direction: column; gap: 3px; padding: 0; font-size: 0; background: none !important; box-shadow: none !important; border-radius: 12px; transition: translate .35s cubic-bezier(.2, .9, .3, 1.3); }
  .ai-tabs img, .ai-tabs .mk-openai { inline-size: 44px; block-size: 44px; border-radius: 11px; box-shadow: 0 1px 2px rgb(var(--shade-rgb) / .18), 0 4px 10px -4px rgb(var(--shade-rgb) / .3); }
  .ai-tabs .mk-openai { display: block; background: var(--graphite-bottom); position: relative; -webkit-mask: none; mask: none; }
  .ai-tabs .mk-openai::after { content: ""; position: absolute; inset: 9px; background: var(--white); -webkit-mask: url(img/logos/openai.svg) center / contain no-repeat; mask: url(img/logos/openai.svg) center / contain no-repeat; }
  .ai-tabs button::after { content: ""; inline-size: 4px; block-size: 4px; border-radius: 50%; background: transparent; transition: background .3s; }
  .ai-tabs button[aria-selected="true"]::after { background: var(--ink); }
  .ai-tabs button:hover { translate: 0 -5px; } .ai-tabs button:active { scale: .94; }
  .ai-tabs button::before { content: attr(data-name); position: absolute; inset: auto auto calc(100% + 10px) 50%; translate: -50% 4px; padding: 5px 10px; border-radius: 7px; white-space: nowrap; font: 500 12px/1 var(--font-text); color: var(--ink); background: var(--surface); box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .14), 0 6px 16px -8px rgb(var(--shade-rgb) / .35); opacity: 0; pointer-events: none; transition: opacity .15s, translate .2s; }
  .ai-tabs button:hover::before, .ai-tabs button:focus-visible::before { opacity: 1; translate: -50% 0; }
  .ai-tabs .fill { display: none; }
  @media (prefers-reduced-motion: reduce) { .ai-tabs button { transition: none; } .ai-tabs button:hover { translate: none; } }
}

/* 4 · the download: the button stays; and a little Stash app waits on the floor by the door. Drag it through the
   doorway (or click it) and it goes into the light: that's the download. Registered to the wall picture (same box). */
.door-layer { display: none; }
@media (min-width: 761px) {
  .door-layer { position: absolute; z-index: 2; display: block; inset: auto auto 0 50%; block-size: var(--wh); aspect-ratio: 4368 / 4200; translate: -50% 0; pointer-events: none; }
  .door-hole { position: absolute; inset: calc(2700 / 4200 * 100%) auto auto calc((1000 + 744) / 4368 * 100%); inline-size: calc(460 / 4368 * 100%); block-size: calc(1240 / 4200 * 100%); border-radius: 4px; pointer-events: none; }
  .door-app { position: absolute; inset: calc(3790 / 4200 * 100%) auto auto calc((640 + 744) / 4368 * 100%); display: grid; justify-items: center; gap: 5px; translate: -50% -100%; pointer-events: auto; text-decoration: none; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
  .door-app .da-ic { display: grid; place-items: center; inline-size: 54px; block-size: 54px; border-radius: 13px; color: var(--white); background: linear-gradient(var(--graphite-top), var(--graphite-bottom)); box-shadow: 0 10px 18px -8px rgb(var(--shade-rgb) / .55); }
  .door-app .da-ic svg { inline-size: 30px; block-size: 22px; }
  .door-app .da-n { padding: 2px 7px; border-radius: 5px; font: 500 12px/1.2 var(--font-text); color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); }
  .door-app:hover .da-ic { translate: 0 -3px; } .door-app .da-ic { transition: translate .3s cubic-bezier(.2, .9, .3, 1.3); }
  .door-app.drag { cursor: grabbing; } .door-app.drag .da-ic { transition: none; box-shadow: 0 22px 30px -12px rgb(var(--shade-rgb) / .5); }
  .door-app.drag .da-n { opacity: 0; }
  .door-app:focus-visible { outline: none; } .door-app:focus-visible .da-ic { outline: 2px solid var(--focus); outline-offset: 3px; }
  .door-hole.near { box-shadow: 0 0 60px 18px color-mix(in srgb, var(--butter) 60%, transparent); transition: box-shadow .3s; }
  .door-layer.went .door-hole { box-shadow: 0 0 120px 40px color-mix(in srgb, var(--butter) 75%, transparent); transition: box-shadow .5s; }
}

/* 1 · the chats, drawn from the real apps' current screenshots */
/* Cursor: a chat tab in the header, history and more; "Thought for 2 seconds" with its mark; "⌄ Called search_clips ✓" in a box, Parameters / Result */
.k-agent-top > span[data-title] { padding: 4px 9px; border-radius: 6px; background: var(--c-sel); font-weight: 500; }
.k-more i { display: inline-grid; place-items: center; inline-size: 22px; block-size: 22px; } .k-more i svg { inline-size: 13px; block-size: 13px; fill: none; stroke: var(--c-ink2); stroke-width: 1.4; stroke-linecap: round; }
.aw-cursor .m-think.done { gap: 6px; } .k-brain { inline-size: 14px; block-size: 14px; fill: none; stroke: var(--c-ink2); stroke-width: 1.1; stroke-linejoin: round; }
.aw-cursor .m-tool { border-radius: 8px; box-shadow: inset 0 0 0 1px var(--c-line); background: none; }
.aw-cursor .m-tool .th { flex-direction: row; } .aw-cursor .m-tool .th .chev { order: -1; rotate: 90deg; margin-inline-end: 2px; } .aw-cursor .m-tool .th .ok { order: 5; margin-inline-start: 4px; stroke: var(--success); }
.aw-cursor .m-tool .th .lbl { display: none; } .aw-cursor .m-tool .t-name { font-family: var(--font-text); font-weight: 500; }
.aw-cursor .m-me { border-radius: 8px; box-shadow: inset 0 0 0 1px var(--c-line); background: color-mix(in srgb, var(--white) 4%, transparent); }
/* VS Code: your messages are bubbles on the right; the edits bar sits on the input box; a file chip, + · Agent ⌄ · model · High · settings; Local · Default Approvals under it */
.aw-vs .m-me { align-self: flex-end; max-inline-size: 86%; border-radius: 12px; padding: 8px 12px; background: color-mix(in srgb, var(--sky-fill) 70%, var(--c-bg)); }
.aw-vs .work9 { margin: 0 12px -1px; padding: 6px 8px; border-radius: 8px 8px 0 0; box-shadow: inset 0 0 0 1px var(--c-line); background: var(--c-bar); }
.aw-vs .work9 .wf { gap: 6px; font: 500 12px/1 var(--font-text); } .aw-vs .work9 .vchev { color: var(--c-ink2); font-size: 14px; } .aw-vs .work9 .pl { color: var(--success); } .aw-vs .work9 .mi { color: var(--recording); }
.aw-vs .work9 .yes { color: var(--on-primary); background: var(--focus); border-radius: 4px; }
.aw-vs .work9 button[data-keep="undo"] { border-radius: 4px; box-shadow: inset 0 0 0 1px var(--c-line); }
.v-ctx { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 3px 7px; border-radius: 5px; border: 1px dashed var(--c-line); font: 400 11.5px/1 var(--font-text); color: var(--c-ink2); } .v-ctx em { font-style: italic; } .v-ctx .ts { font-size: 8px; }
.v-row { gap: 6px !important; } .v-row .v-i { font: 400 16px/1 var(--font-text); color: var(--c-ink2); } .v-sep { inline-size: 1px; block-size: 12px; background: var(--c-line); }
.v-row .k-mode { padding-inline: 2px; } .v-row .k-tools { margin-inline-start: 2px; }
.aw-vs .v-row .aw-send { inline-size: 22px; block-size: 22px; border-radius: 4px; }
.v-under { display: flex; align-items: center; gap: 10px; margin: -6px 14px 10px; font: 400 11.5px/1 var(--font-text); color: var(--c-ink2); } .v-under span { display: inline-flex; align-items: center; gap: 5px; } .v-under svg { inline-size: 13px; block-size: 13px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
/* ChatGPT: the round black voice button with its waveform while the box is empty, the arrow once you type */
.aw-gpt .aw-send { background: var(--ink); color: var(--surface); }
.aw-gpt .aw-send .g-wave { inline-size: 16px; block-size: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; display: none; }
.aw-gpt .aw-comp:has(input:placeholder-shown) .aw-send .g-wave { display: block; } .aw-gpt .aw-comp:has(input:placeholder-shown) .aw-send svg:not(.g-wave) { display: none; }
.aw-gpt .g-plus { font-size: 22px; font-weight: 300; }
.aw-cursor .m-tool .th { justify-content: flex-start; } .aw-cursor .m-tool .th > * { margin-inline: 0 !important; } .aw-cursor .m-tool .th .t-from { margin-inline-start: 2px !important; }
.v-row .k-mode { white-space: nowrap; }
.aw-gpt .aw-comp:has(input:placeholder-shown) .aw-send { opacity: 1 !important; background: var(--ink) !important; color: var(--surface) !important; }
/* Claude: the working line as Claude draws it now: its spark, a short title, a grey line under it with ›; your message a soft bubble on the right */
.m-think.t-claude { align-items: flex-start; gap: 10px; } .m-think.t-claude .c-spark { margin-block-start: 2px; }
.m-think.t-claude .ct { display: grid; gap: 4px; } .m-think.t-claude .ct b { font: 500 14px/1.3 var(--font-text); color: var(--ink); }
.m-think.t-claude .ct small { display: inline-flex; align-items: center; gap: 3px; font: 400 13.5px/1.3 var(--font-text); color: var(--ink-2); } .m-think.t-claude .ct .chev { inline-size: 11px; block-size: 11px; }
.m-think.t-claude .ct small.shine { animation: busy 1.1s ease-in-out infinite alternate; }
.aw-claude .m-me { border-radius: 12px; padding: 9px 14px; }

/* 1 · Claude, matched to Jonathan's recording of a real Claude chat (only the look):
   white page, light grey side bar with the Claude wordmark, quiet grey status lines with ›, a soft grey message bubble,
   serif answers, a one-line "Reply" box with ↵, and + · mic · voice ⌄ · the note · model · Auto under it */
.aw-claude { --cl-side: color-mix(in srgb, var(--surface) 97%, rgb(var(--ink-rgb))); --cl-bub: color-mix(in srgb, var(--surface) 93.5%, rgb(var(--ink-rgb))); --cl-line: color-mix(in srgb, var(--surface) 86%, rgb(var(--ink-rgb))); }
.aw-claude .aw-main { background: var(--surface); } .aw-claude .aw-side { background: var(--cl-side); box-shadow: inset -1px 0 0 var(--hairline); }
.aw-claude .aw .hc, .aw-claude .hc { inline-size: 12px; block-size: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cl-brand { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; padding: 0 6px; color: var(--ink); } .cl-brand b { font: 500 19px/1 var(--font-serif); letter-spacing: -.01em; }
.cl-brand svg { inline-size: 16px; block-size: 16px; fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; } .cl-tools { display: flex; gap: 2px; margin-inline-start: auto; } .cl-tools i { display: grid; place-items: center; inline-size: 24px; block-size: 24px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--hairline); }
.aw-claude .aw-side .it { font: 400 13.5px/1.2 var(--font-text); color: var(--ink); } .aw-claude .aw-side .it.new { color: var(--ink); }
.aw-claude .aw-side .it svg { stroke: var(--ink); } .aw-claude .aw-side .h { display: flex; align-items: center; gap: 3px; font: 500 11.5px/1 var(--font-text); color: var(--ink-2); }
.aw-claude .aw-side .it.on { background: color-mix(in srgb, var(--surface) 90%, rgb(var(--ink-rgb))); position: relative; } .aw-claude .aw-side .it.on[data-chat]::after { content: "•••"; position: absolute; inset-inline-end: 9px; font-size: 9px; letter-spacing: 1px; color: var(--ink-2); }
.aw-claude .me small { color: var(--ink-2); font-weight: 400; }
.aw-claude .aw-top { grid-template-columns: 1fr auto; box-shadow: inset 0 -1px 0 var(--hairline); } .aw-claude .c-title { gap: 4px; font: 500 13.5px/1 var(--font-text); } .aw-claude .c-title .hc { color: var(--ink-2); }
.cl-top-r { display: flex; align-items: center; gap: 10px; } .cl-top-r i svg { inline-size: 16px; block-size: 16px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; display: block; }
.aw-claude .c-share { display: inline-flex; align-items: center; gap: 5px; padding: 0; box-shadow: none; font: 500 13px/1 var(--font-text); } .aw-claude .c-share svg { inline-size: 15px; block-size: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.aw-claude .m-me { background: var(--cl-bub); border-radius: 12px; padding: 9px 15px; font: 400 14.5px/1.45 var(--font-text); }
.aw-claude .m-ai { font: 400 15.5px/1.55 var(--font-serif); }
/* status lines: grey words, a ›; while working, three small dots breathing */
.m-think.t-claude { align-items: center; gap: 7px; } .m-think.t-claude .lbl { font: 400 13.5px/1.3 var(--font-text); color: var(--ink-2); animation: none; } .m-think.t-claude.done .chev { stroke: var(--ink-2); }
.cl-dots { display: inline-flex; gap: 3px; } .cl-dots i { inline-size: 4px; block-size: 4px; border-radius: 50%; background: var(--coral-deep); animation: cldot 1s ease-in-out infinite; } .cl-dots i:nth-child(2) { background: var(--butter-deep); animation-delay: .15s; } .cl-dots i:nth-child(3) { background: var(--sky-text); animation-delay: .3s; }
@keyframes cldot { 0%, 100% { opacity: .3; translate: 0 1px; } 50% { opacity: 1; translate: 0 -1px; } }
.aw-claude .m-tool { box-shadow: none !important; background: none !important; border: 0; } .aw-claude .m-tool .th { padding: 0; gap: 5px; inline-size: auto; justify-self: start; font: 400 13.5px/1.3 var(--font-text); color: var(--ink-2); }
.aw-claude .m-tool .th > .ok, .aw-claude .m-tool .th .t-name, .aw-claude .m-tool .th .t-from, .aw-claude .m-tool .th .t-orb { display: none; } .aw-claude .m-tool .th .lbl { margin: 0 !important; color: var(--ink-2); } .aw-claude .m-tool .th .chev { stroke: var(--ink-2); margin: 0 !important; }
.aw-claude .m-tool.busy .th::before { content: ""; inline-size: 14px; block-size: 4px; background: radial-gradient(circle, var(--coral-deep) 1.6px, transparent 2px) 0 50% / 5px 4px repeat-x; animation: cldot 1s ease-in-out infinite; }
.c-after { gap: 0; } .c-after button { inline-size: 24px; block-size: 24px; } .c-after svg { inline-size: 14px; block-size: 14px; }
/* the reply box */
.aw-claude .aw-comp { position: relative; display: grid; gap: 8px; padding: 0; border-radius: 0; background: none; box-shadow: none; margin-block-end: 12px; }
.aw-claude .aw-comp input { block-size: 42px; padding: 0 44px 0 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--cl-line); font: 400 14.5px/1 var(--font-text); }
.aw-claude .aw-comp > .aw-send { position: absolute; inset: 9px 9px auto auto; inline-size: 24px; block-size: 24px; border-radius: 6px; color: var(--ink-2); background: none; opacity: 1; }
.aw-claude .aw-comp > .aw-send svg { inline-size: 16px; block-size: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.aw-claude .aw-comp:not(:has(input:placeholder-shown)) > .aw-send { color: var(--surface); background: var(--coral-deep); }
.aw-claude .c-row { gap: 6px; padding-inline: 4px; font: 400 12px/1 var(--font-text); color: var(--ink-2); } .aw-claude .c-row .c-btn { inline-size: auto; block-size: 22px; padding: 0 3px; box-shadow: none; color: var(--ink-2); }
.aw-claude .c-row .c-btn svg { inline-size: 15px; block-size: 15px; } .aw-claude .c-row .c-btn.wv { gap: 0; } .aw-claude .c-row .c-btn.wv .hc { inline-size: 10px; block-size: 10px; }
.cl-note { margin-inline: auto; font: 400 12px/1 var(--font-text); color: var(--ink-2); white-space: nowrap; }
.aw-claude .c-row .c-mod { margin: 0; font: 500 12.5px/1 var(--font-text); color: var(--ink); } .aw-claude .c-row .c-mod small { color: var(--ink-2); font-weight: 400; } .cl-auto { font: 500 12.5px/1 var(--font-text); color: var(--ink); margin-inline-start: 8px; }
.aw-claude .me span { white-space: nowrap; } .aw-claude .me span::after { content: "⌄"; margin-inline-start: 4px; font-size: 10px; color: var(--ink-2); }
