/* Round 9 · the AI windows: one quality, and everything that looks like a button is one (ai9.js). Tokens only. */
.aw button { font: inherit; color: inherit; } .aw :is(.it, .f, .ed-tabs button, .k-icons button, .v-act button, .c-btn, .c-mod, .c-share, .g-share, .g-plus, .g-micb, .v-cmd, .g-after button, .aw-pop button, .m-page button) { border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; } .aw button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.aw-side .it { display: flex; align-items: center; gap: 9px; inline-size: 100%; padding: 6px 9px; border-radius: 8px; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s; } .aw-side .it:hover { background: rgb(var(--ink-rgb) / .045); } .aw-side .it:active { scale: .985; } .aw-side .it.on { background: rgb(var(--ink-rgb) / .075); }
.aw-side .me { gap: 10px; padding-block: 8px; font-weight: 500; } .aw-side .me i { inline-size: 26px; block-size: 26px; background: linear-gradient(160deg, var(--graphite-top), var(--graphite-bottom)); color: var(--white); } .aw-side .me i svg { inline-size: 15px; block-size: 11px; fill: currentColor; stroke: none; }
.c-share, .g-share { transition: background .15s; } .c-share:hover, .g-share:hover, .c-btn:hover, .c-mod:hover, .g-micb:hover, .g-plus:hover { background: rgb(var(--ink-rgb) / .055); } .c-mod { padding: 5px 8px; border-radius: 8px; } .aw-claude .c-btn { inline-size: 30px; block-size: 30px; padding: 0; justify-content: center; } .g-micb, .g-plus { display: grid; place-items: center; flex: none; inline-size: 34px; block-size: 34px; padding: 0; border-radius: 50%; } .aw-gpt .aw-comp { padding-inline-start: 9px; gap: 6px; }
.k-icons { gap: 4px; } .k-icons button { display: grid; place-items: center; inline-size: 26px; block-size: 26px; padding: 0; border-radius: 6px; color: var(--c-ink2); } .k-icons button:hover { background: var(--c-sel); color: var(--c-ink); } .k-icons button svg { inline-size: 16px; block-size: 16px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; } .k-icons [aria-pressed="false"] { opacity: .55; }
.g-after { display: flex; gap: 2px; } .g-after button { display: grid; place-items: center; inline-size: 28px; block-size: 28px; padding: 0; border-radius: 7px; } .g-after button:hover { background: rgb(var(--ink-rgb) / .06); } .g-after .yes svg { fill: currentColor; } .g-after [data-g="copy"].yes svg { fill: none; }

/* ChatGPT: the calm white one */
.aw-gpt .aw-side { background: color-mix(in srgb, var(--paper) 78%, var(--surface)); } .aw-gpt .aw-top { padding-inline: 20px 14px; } .g-model { font-weight: 600; } .aw-gpt .m-ai { font-size: 16px; line-height: 1.65; } .aw-gpt .m-me { font-size: 15.5px; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); } .aw-gpt .aw-comp { box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / .1), 0 10px 30px -14px rgb(var(--shade-rgb) / .28); }

/* the two editors */
.aw-code .ed-tree { background: var(--c-side); color: var(--c-ink); padding: 10px 8px; } .ed-tree .f { display: flex; align-items: center; gap: 8px; inline-size: 100%; padding: 5px 8px; border-radius: 6px; text-align: start; white-space: nowrap; opacity: .86; transition: background .12s; } .ed-tree .f:hover { background: var(--c-sel); opacity: 1; } .ed-tree .f.i { padding-inline-start: 20px; } .ed-tree .f.i2 { padding-inline-start: 33px; } .ed-tree .f.on { background: var(--c-sel); opacity: 1; }
.ed-tree i, .ed-tabs i { inline-size: 17px; flex: none; font: 600 9.5px/1 var(--font-mono); font-style: normal; text-align: center; } .ed-tabs i { margin: 0; color: var(--c-key); } .ed-tabs i.md { color: var(--c-type, var(--c-key)); }
.ed-tabs { block-size: 38px; overflow-x: auto; scrollbar-width: none; } .ed-tabs button { display: flex; align-items: center; gap: 7px; padding: 0 14px; color: var(--c-ink2); border-inline-end: 1px solid var(--c-line); white-space: nowrap; } .ed-tabs button:hover { color: var(--c-ink); } .ed-tabs button.on { color: var(--c-ink); background: var(--c-bg); box-shadow: inset 0 1.5px 0 var(--c-accent); }
.k-ed > .ed-code, .v-mid > .ed-code { grid-row: 3; grid-column: 1; overflow: auto; scrollbar-width: none; } .ed-code[hidden] { display: none; } .ed-code { font-size: 13px; padding-block: 12px; } .crumbs { padding: 8px 16px 2px; font-size: 12px; }
.k-agent-top, .v-chat-top { font: 500 13px/1 var(--font-text); letter-spacing: 0; text-transform: none; padding-inline: 16px 8px; color: var(--c-ink); } .k-agent { grid-template-rows: 38px minmax(0, 1fr) auto; } .v-chat { grid-template-rows: 38px minmax(0, 1fr) auto; } .v-chat-top, .k-agent-top { border-block-end: 1px solid var(--c-line); }
.aw-code .aw-log { padding: 16px; gap: 14px; font-size: 14px; } .aw-code .m-me { font-size: 14px; padding: 10px 13px; } .aw-code .aw-comp { padding: 12px 10px 9px 14px; border-radius: 12px; } .k-mode { padding: 4px 2px; background: none; font-size: 12px; } .k-row { gap: 12px; }
.aw-vs .v-cmd { color: var(--c-ink2); } .aw-vs .v-cmd:hover { color: var(--c-ink); } .v-status { block-size: 25px; background: var(--c-side); color: var(--c-ink2); border-block-start: 1px solid var(--c-line); font-size: 12px; padding-inline: 14px; } .v-act button { display: grid; place-items: center; inline-size: 46px; block-size: 34px; padding: 0; color: var(--c-ink3); position: relative; } .v-act { gap: 8px; } .v-act button:hover, .v-act .on { color: var(--c-ink); } .v-act svg, .v-act svg.on { stroke: currentColor; } .v-act .on::before { content: ""; position: absolute; inset: 4px auto 4px 0; inline-size: 2px; border-radius: 2px; background: var(--c-accent); }
.ed-side { min-block-size: 0; overflow: auto; } .ed-side p { margin: 0; padding: 3px 8px; white-space: normal; opacity: .8; display: block; } .ed-side .h { padding-block: 2px 8px; } .ed-side input { inline-size: 100%; box-sizing: border-box; margin: 2px 0 8px; padding: 6px 9px; border: 0; border-radius: 6px; font: 400 12.5px/1.2 var(--font-text); color: var(--c-ink); background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-line); outline: 0; } .ed-side input:focus { box-shadow: inset 0 0 0 1.5px var(--c-accent); } .ed-side b { margin-inline-start: auto; font: 600 11px/1 var(--font-mono); color: var(--success); } .ed-side .f small { margin-inline-start: auto; color: var(--c-ink2); }
@media (min-width: 981px) { .aw-cursor.no-tree .k-body { grid-template-columns: 0 minmax(0, 1fr) 340px; } .aw-cursor.no-chat .k-body { grid-template-columns: 168px minmax(0, 1fr) 0; } .aw-cursor.no-tree.no-chat .k-body { grid-template-columns: 0 minmax(0, 1fr) 0; } .no-tree .ed-tree, .no-chat .k-agent { visibility: hidden; padding: 0; border: 0; overflow: hidden; } .k-body { transition: grid-template-columns .42s cubic-bezier(.16, 1, .3, 1); } }

/* pages inside a chat: lists, a greeting */
.m-page { display: grid; gap: 4px; } .aw-log .m-page h4 { margin: 4px 0 10px; font: 500 25px/1.2 var(--font-serif); letter-spacing: -.015em; } .aw-gpt .aw-log .m-page h4, .aw-code .aw-log .m-page h4 { font: 600 22px/1.25 var(--font-text); } .aw-code .aw-log .m-page h4 { font-size: 15px; margin-block-end: 4px; } .m-page .ro { display: flex; align-items: baseline; gap: 14px; padding: 10px 12px; border-radius: 10px; text-align: start; inline-size: 100%; } .m-page button.ro:hover { background: rgb(var(--ink-rgb) / .05); } .aw-code .m-page button.ro:hover { background: var(--c-sel); } .m-page .ro small { margin-inline-start: auto; color: var(--ink-2); white-space: nowrap; } .aw-code .m-page { color: var(--c-ink); } .aw-code .m-page small, .aw-code .m-page p { color: var(--c-ink2); }
.m-page.hello { margin-block: auto; text-align: center; justify-items: center; gap: 12px; } .aw-claude .m-page.hello h4 { font-size: 32px; } .m-page .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; } .m-page .chips button { padding: 8px 14px; border-radius: 99px; font: 400 13.5px/1.2 var(--font-text); box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .14); } .aw-code .m-page .chips button { box-shadow: inset 0 0 0 1px var(--c-line); } .m-page .chips button:hover { background: rgb(var(--ink-rgb) / .05); } .aw-code .m-page .chips button:hover { background: var(--c-sel); }
.m-page .pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .m-page .pics span { block-size: 112px; border-radius: 12px; background: var(--bg) center / cover; } .aw-log .m-ai ol, .aw-log .m-ai ul { margin: 6px 0 0; padding-inline-start: 1.3em; }
.ap { display: flex; align-items: center; gap: 12px; } .ap i { display: grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: 9px; color: var(--white); background: var(--graphite-bottom); } .ap i svg { inline-size: 20px; block-size: 14px; }

/* small menus */
.aw-pop { position: absolute; z-index: 9; min-inline-size: 190px; padding: 5px; border-radius: 12px; font: 400 13.5px/1.3 var(--font-text); color: var(--ink); background: var(--surface); box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .18), 0 18px 44px -16px rgb(var(--shade-rgb) / .45); transform-origin: var(--ox, 50%) var(--oy, 0%); animation: awpop .24s cubic-bezier(.2, .9, .3, 1); } @keyframes awpop { from { opacity: 0; transform: scale(.95); } } .aw-code .aw-pop { color: var(--c-ink); background: var(--c-bar); } .aw-pop button { display: flex; align-items: center; gap: 10px; inline-size: 100%; padding: 8px 10px; border-radius: 8px; text-align: start; } .aw-pop button:hover, .aw-pop button.at { background: rgb(var(--ink-rgb) / .06); } .aw-code .aw-pop button:is(:hover, .at) { background: var(--c-sel); } .aw-pop button b { margin-inline-start: auto; font-weight: 400; color: var(--focus); } .aw-pop p { margin: 0; padding: 8px 10px; max-inline-size: 240px; color: var(--ink-2); } .aw-code .aw-pop p { color: var(--c-ink2); } .aw-pop input { inline-size: 100%; box-sizing: border-box; padding: 9px 10px; border: 0; border-radius: 8px; outline: 0; font: 400 14px/1.2 var(--font-text); color: inherit; background: rgb(var(--ink-rgb) / .05); margin-block-end: 4px; } .aw-code .aw-pop input { background: var(--c-bg); } .aw-pop.big { inline-size: min(380px, 80%); } .sw9 { position: relative; margin-inline-start: auto; inline-size: 32px; block-size: 19px; border-radius: 99px; background: rgb(var(--ink-rgb) / .2); transition: background .2s; } .sw9::after { content: ""; position: absolute; inset: 2px auto 2px 2px; inline-size: 15px; border-radius: 50%; background: var(--white); transition: transform .3s var(--spring); } [aria-checked="true"] .sw9 { background: var(--success); } [aria-checked="true"] .sw9::after { transform: translateX(13px); }
@media (max-width: 860px) { .g-share, .c-mod { display: none; } .aw-gpt .aw-comp { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .aw-pop, .k-body { animation: none !important; transition: none !important; } }
