:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --read: var(--sans);
  --text-size: 16px;
  --r: 10px;
}

/* surfaces */
[data-mode="dark"] {
  --bg: #0b0e14; --side: #0e121a; --panel: #151b27; --raised: #1d2535; --line: #2a3447;
  --text: #e9edf5; --dim: #9ba6ba; --bubble: #1a2231;
  --lift: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 2px rgba(2, 6, 18, 0.6), 0 10px 28px rgba(2, 6, 18, 0.45);
  --press: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 0 rgba(2, 6, 18, 0.5), 0 4px 10px rgba(2, 6, 18, 0.35);
  --shade: rgba(4, 7, 14, 0.74); --warn: #f0b35a; --bad: #ff8b8b;
  color-scheme: dark;
}
[data-mode="light"] {
  --bg: #f5f6f9; --side: #eceef3; --panel: #ffffff; --raised: #e8ebf1; --line: #d2d7e1;
  --text: #141924; --dim: #586176; --bubble: #e6e9f0;
  --lift: inset 0 1px 0 #fff, 0 1px 2px rgba(30, 42, 70, 0.1), 0 10px 26px rgba(30, 42, 70, 0.1);
  --press: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 0 rgba(30, 42, 70, 0.2), 0 4px 10px rgba(30, 42, 70, 0.14);
  --shade: rgba(20, 26, 40, 0.45); --warn: #96600a; --bad: #b3261e;
  color-scheme: light;
}

/* the nine colors from the terminal app: fill, hover, text on the fill, and the same hue as readable text */
[data-color="blue"]   { --a: #2563eb; --a-up: #3b78f6; --on-a: #fff; --a-text: #86aeff; --a-ink: #1d4ed8; }
[data-color="red"]    { --a: #d42a2a; --a-up: #e34444; --on-a: #fff; --a-text: #ff9a9a; --a-ink: #b21f1f; }
[data-color="orange"] { --a: #c2500a; --a-up: #d66116; --on-a: #fff; --a-text: #ffab70; --a-ink: #a8440a; }
[data-color="gold"]   { --a: #e0ae1c; --a-up: #edc040; --on-a: #1c1500; --a-text: #f0cb58; --a-ink: #775800; }
[data-color="green"]  { --a: #15803d; --a-up: #1c964a; --on-a: #fff; --a-text: #74dc92; --a-ink: #12672f; }
[data-color="cyan"]   { --a: #0e7490; --a-up: #1389a9; --on-a: #fff; --a-text: #66d4ea; --a-ink: #0c5f76; }
[data-color="purple"] { --a: #7c3aed; --a-up: #8d52f2; --on-a: #fff; --a-text: #bba2ff; --a-ink: #6a2bd3; }
[data-color="pink"]   { --a: #d42672; --a-up: #e23f86; --on-a: #fff; --a-text: #ff98c4; --a-ink: #b51a5d; }
[data-color="white"]  { --a: #e9edf5; --a-up: #ffffff; --on-a: #0b0e14; --a-text: #ffffff; --a-ink: #141924; }
[data-mode="light"][data-color="white"] { --a: #1c2333; --a-up: #2b3550; --on-a: #fff; }
[data-mode="dark"] { --link: var(--a-text); }
[data-mode="light"] { --link: var(--a-ink); }

[data-font="serif"] { --read: var(--serif); }
[data-font="mono"]  { --read: var(--mono); }
[data-size="s"] { --text-size: 14.5px; }
[data-size="l"] { --text-size: 18px; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; padding-top: var(--bar, 0px); box-sizing: border-box; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); overflow: hidden; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* buttons */
.solid {
  background: var(--a); color: var(--on-a); border: 0; border-radius: var(--r); padding: 11px var(--s4);
  font-weight: 500; box-shadow: var(--press);
}
.solid:hover { background: var(--a-up); }
.solid:active { transform: translateY(1px); }
.solid:disabled { background: var(--raised); color: var(--dim); box-shadow: none; cursor: not-allowed; }
.solid.small { padding: 7px var(--s3); font-size: 14px; }
.ghost { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px var(--s4); font-weight: 500; }
.ghost:hover { background: var(--raised); border-color: var(--dim); }
.ghost.danger { color: var(--bad); }
.link { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  background: none; border: 0; color: var(--dim);
}
.icon:hover { background: var(--raised); color: var(--text); }

/* layout */
.app { display: grid; grid-template-columns: 272px 1fr; height: calc(var(--app-h, 100dvh) - var(--bar, 0px)); }
.app.closed { grid-template-columns: 0 1fr; }
.app.closed .side { visibility: hidden; }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s2) var(--s2) var(--s4); }
.logo { display: inline-block; width: 1em; height: 1em; background: var(--text); -webkit-mask: url(mark.png?v=2) center / contain no-repeat; mask: url(mark.png?v=2) center / contain no-repeat; flex: none; }
.mark { display: flex; align-items: center; gap: 8px; font: 500 19px/1 var(--mono); color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.mark .logo { width: 32px; height: 32px; }
.mark { border-radius: 8px; }
.head-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.head-title .logo { width: 26px; height: 26px; }
.login .logo { display: block; width: 40px; height: 40px; margin-bottom: var(--s3); }
.side-nav { padding: var(--s1) var(--s2) var(--s3); display: grid; gap: 2px; }
.nav-row { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 9px; padding: 9px 10px; text-align: left; font-size: 14.5px; color: var(--text); }
.nav-row svg { color: var(--dim); flex: none; }
.nav-row:hover { background: var(--raised); }
.nav-row:hover svg { color: var(--text); }
.main-row { background: var(--panel); box-shadow: var(--lift); font-weight: 500; margin-bottom: var(--s1); }
.main-row svg { color: var(--link); }
.main-row:hover { background: var(--raised); }
.search { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--dim); }
.search:focus-within { border-color: var(--link); }
.search input { flex: 1; min-width: 0; background: none; border: 0; padding: 8px 0; font-size: 14px; }
.search input:focus { outline: none; }
.search input::placeholder { color: var(--dim); }
.chats { flex: 1; overflow-y: auto; padding: 0 var(--s2) var(--s3); scrollbar-width: thin; }
.group { padding: var(--s3) 10px 6px; font-size: 12px; color: var(--dim); position: sticky; top: 0; background: var(--side); }
.chat-item { display: flex; align-items: center; border-radius: 9px; margin-bottom: 2px; }
.chat-item:hover, .chat-item.on { background: var(--raised); }
.chat-item .open {
  flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 8px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; border-radius: 9px; color: var(--dim);
}
.chat-item:hover .open, .chat-item.on .open { color: var(--text); }
.chat-item .del { width: 30px; height: 30px; margin-right: 2px; display: none; }
.chat-item:hover .del, .chat-item:focus-within .del { display: inline-grid; }
.none { padding: var(--s3) 10px; color: var(--dim); font-size: 14px; line-height: 1.45; }
.usage { margin: 2px 2px var(--s2); padding: 10px 12px; background: var(--panel); border-radius: 10px; box-shadow: var(--lift); font-size: 13px; }
.usage-line { display: flex; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); color: var(--dim); }
.usage-line .link { font-size: 13px; font-weight: 500; }
.usage-bar { height: 5px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: var(--a); border-radius: 3px; }
.side-foot { position: relative; padding: var(--s2); display: grid; gap: 2px; }
.menu { position: absolute; left: var(--s2); right: var(--s2); bottom: 58px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--lift); display: grid; z-index: 2; }
.menu button { text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px var(--s3); font-size: 14px; }
.menu button:hover, .menu button:focus-visible { background: var(--raised); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.avatar.empty { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.row-btn { display: flex; align-items: center; gap: var(--s3); width: 100%; background: none; border: 0; border-radius: 8px; padding: 9px var(--s2); text-align: left; font-size: 14px; }
.row-btn:hover { background: var(--raised); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--a); color: var(--on-a); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.who { flex: 1; min-width: 0; display: grid; }
.who span:first-child { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span:last-child { font-size: 12px; color: var(--dim); }
.account svg { color: var(--dim); flex: none; }
.shade { position: fixed; inset: 0; background: var(--shade); z-index: 5; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: calc(var(--app-h, 100dvh) - var(--bar, 0px)); }
.top { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); min-height: 52px; }
.app:not(.closed) #side-open { display: none; }
.title { flex: 1; min-width: 0; font-weight: 500; font-size: 14.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scroll { flex: 1; overflow-y: auto; min-height: 0; }
.column { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 var(--s4); }
.dock { padding-bottom: calc(var(--s2) + env(safe-area-inset-bottom)); }

/* a new chat: greeting and composer sit in the middle of the page */
.main.fresh .scroll { flex: 0 0 0; overflow: hidden; }
.main.fresh .dock { flex: 1; display: grid; align-content: center; padding-bottom: 12vh; }
.hello, .starts { display: none; }
.main.fresh .hello { display: block; text-align: center; margin-bottom: var(--s5); }
.main.fresh .starts { display: grid; }
.hello h1 { font: 400 40px/1.15 var(--serif); letter-spacing: -0.02em; margin: 0; display: inline-flex; align-items: center; gap: 14px; text-wrap: balance; }
.hello .logo { width: 0.92em; height: 0.92em; }
[data-font="sans"] .hello h1 { font-family: var(--serif); }
[data-font="mono"] .hello h1 { font: 500 28px/1.25 var(--mono); }
.starts { grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s4); }
.start { text-align: left; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); color: var(--dim); font-size: 14px; line-height: 1.4; }
.start:hover { border-color: var(--link); color: var(--text); background: var(--panel); }
.fine { text-align: center; font-size: 12px; color: var(--dim); margin: var(--s2) 0 0; }
.fine .link, .fine a { color: var(--dim); font-size: 12px; margin-left: 6px; }
.fine .link:hover, .fine a:hover { color: var(--text); }

/* composer */
.composer { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: var(--s3) var(--s3) var(--s2); box-shadow: var(--lift); }
.composer:focus-within { border-color: var(--link); }
textarea { display: block; width: 100%; resize: none; max-height: 220px; background: none; border: 0; padding: var(--s1) var(--s1) var(--s2); font: 400 16px/1.5 var(--read); }
textarea::placeholder { color: var(--dim); }
textarea:focus { outline: none; }
.tools { display: flex; align-items: center; gap: var(--s2); }
.file { position: relative; cursor: pointer; overflow: hidden; }
/* the real input is kept tiny and out of the way: Safari lets a full-size one spill over its neighbours. The label opens it. */
.file input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.status { flex: 1; text-align: right; font-size: 12px; color: var(--dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--a); color: var(--on-a); display: grid; place-items: center; box-shadow: var(--press); flex: none; }
.go:hover { background: var(--a-up); }
.go:active { transform: translateY(1px); }
.go .i-stop, .go.busy .i-send { display: none; }
.go.busy .i-stop { display: block; }
.chip { display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s1) var(--s2); font-size: 13px; color: var(--dim); }
.chip img { object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.chip span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* messages */
#log { padding-top: var(--s4); padding-bottom: var(--s5); }
.msg { margin-bottom: var(--s5); }
.msg.you { display: flex; flex-direction: column; align-items: flex-end; }
.msg.you .body { background: var(--bubble); border-radius: 16px 16px 4px 16px; padding: 10px var(--s4); max-width: 86%; white-space: pre-wrap; }
.body { font: 400 var(--text-size)/1.65 var(--read); overflow-wrap: anywhere; }
[data-font="mono"] .body { font-size: calc(var(--text-size) - 1px); }
.body > :first-child { margin-top: 0; }
.body > :last-child { margin-bottom: 0; }
.body p, .body ul, .body ol, .body pre { margin: 0 0 var(--s3); }
.body ul, .body ol { padding-left: var(--s5); }
.body li { margin-bottom: var(--s1); }
.body h3 { font: 600 1.05em/1.4 var(--read); margin: var(--s4) 0 var(--s2); }
.body code { font-family: var(--mono); background: var(--raised); padding: 1px 5px; border-radius: 5px; font-size: 0.88em; }
.body pre { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); overflow-x: auto; }
.body pre code { background: none; padding: 0; }
.body img { display: block; max-width: 240px; max-height: 240px; border-radius: 10px; margin-bottom: var(--s2); }
.msg.you > img.sent { display: block; max-width: min(260px, 72%); max-height: 300px; border-radius: 14px; border: 1px solid var(--line); margin: 0 0 6px; cursor: zoom-in; }
.msg.you .body:empty { display: none; }
.c-off { margin: 0 0 var(--s2); font-size: 13px; line-height: 1.4; color: var(--a-text, var(--link)); }
[data-mode="light"] .c-off { color: var(--a-ink, var(--link)); }
.made { margin: 0 0 var(--s3); }
.made img { display: block; width: auto; max-width: min(100%, 520px); max-height: 560px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); margin: 0 0 var(--s1); }
.made video { display: block; width: auto; max-width: min(100%, 640px); max-height: 560px; border-radius: 14px; border: 1px solid var(--line); background: #000; margin: 0 0 var(--s1); }
.made a { font-size: 13px; color: var(--dim); }
.to-video { background: none; border: 0; padding: 0; margin-left: var(--s4); font-size: 13px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.to-video:hover { color: var(--text); }
.made a:hover { color: var(--text); }
.filechip { display: inline-block; font: 400 12px/1.3 var(--mono); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; margin: 0 0 6px; color: var(--dim); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.think { margin-bottom: var(--s3); font-size: 14px; color: var(--dim); }
.think summary { cursor: pointer; width: fit-content; }
.think div { white-space: pre-wrap; border-left: 2px solid var(--line); padding-left: var(--s3); margin-top: var(--s2); line-height: 1.55; }
.composer.recording textarea, .composer.recording .tools, .composer.recording .chip { display: none; }
.rec { display: flex; align-items: center; gap: var(--s3); padding: 2px 0; }
.rec-mid { flex: 1; min-width: 0; }
#rec-wave { display: block; width: 100%; height: 44px; }
.rec-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-top: 2px; }
#rec-time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rec .ghost, .rec .solid { padding: 9px 16px; font-size: 14px; flex: none; }
.rec #rec-delete:hover { color: var(--bad); }
#mic.live { background: var(--bad); color: var(--bg); }
.notes { list-style: none; margin: 0 0 var(--s3); padding: 0; border-top: 1px solid var(--line); }
.notes:empty { display: none; }
#no-notes { margin: 0 0 14px; }
.notes li { display: flex; gap: var(--s3); justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmd input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px var(--s3); font-size: 16px; }
.cmd input:focus { outline: none; border-color: var(--link); }
.working { margin-bottom: var(--s3); }
.w-line { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--dim); }
.w-line .logo { width: 20px; height: 20px; animation: turn 2.2s linear infinite; }
.w-text { color: var(--text); }
.w-time { font: 400 13px/1 var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.w-frame { position: relative; margin-top: var(--s3); width: 100%; max-height: 520px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.w-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.w-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.14); }
.w-bar i { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, 0.9); transition: width 0.4s linear; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .w-line .logo { animation: none; } }
.note { font-size: 13px; color: var(--dim); margin-bottom: var(--s2); min-height: 1px; }
.note.warn { color: var(--warn); }
.acts { display: flex; gap: var(--s3); margin-top: var(--s2); }
.acts button { background: none; border: 0; padding: 4px 0; font-size: 13px; color: var(--dim); }
.acts button:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.notice { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: var(--s4); margin-bottom: var(--s5); box-shadow: var(--lift); }
.notice h2 { font: 600 17px/1.3 var(--sans); margin: 0 0 var(--s2); }
.notice p { margin: 0 0 var(--s3); color: var(--dim); }
.notice .split { margin: 0; }

/* dialogs */
dialog { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: var(--s5); width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 30px 80px rgba(2, 6, 18, 0.5); }
dialog::backdrop { background: var(--shade); }
dialog:focus { outline: none; }
.sheet-foot { margin: 16px 0 0; text-align: center; font-size: 12px; }
.sheet-foot a { color: var(--dim); }
.sheet-foot a:hover { color: var(--text); }
.fine a, .fine .link { white-space: nowrap; }
/* install on a phone */
.steps { margin: 0 0 var(--s4); padding-left: 22px; color: var(--dim); display: grid; gap: 10px; }
.steps strong { color: var(--text); font-weight: 500; }
dialog h2 { font: 600 20px/1.3 var(--sans); margin: 0; }
dialog > h2 { margin-bottom: var(--s3); }
dialog p { margin: 0 0 var(--s4); color: var(--dim); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.rules { list-style: none; margin: 0 0 var(--s4); padding: 0; border-top: 1px solid var(--line); }
.rules li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.rules strong { color: var(--text); font-weight: 500; }
.check { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s4); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--a); flex: none; }
.actions { display: flex; justify-content: flex-end; }
.label, .lead { color: var(--text); }
dialog .label { margin-bottom: var(--s2); }
.hint { font-size: 13px; color: var(--dim); margin: var(--s2) 0 0; }
dialog .hint { margin-bottom: 0; }
.error { color: var(--bad); font-size: 14px; margin: 0; }
.error:empty { display: none; }
.cmd { display: flex; gap: var(--s2); align-items: stretch; margin-bottom: var(--s3); }
.cmd code { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); font: 400 13px/1.5 var(--mono); overflow-x: auto; white-space: nowrap; }

.welcome { width: min(460px, calc(100vw - 24px)); padding: 36px 36px 28px; }
.welcome .logo { display: block; width: 46px; height: 46px; margin-bottom: 22px; }
.welcome h2 { font: 400 32px/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 10px; }
.welcome .sub { font-size: 15.5px; line-height: 1.5; margin-bottom: 26px; }
.points { margin: 0 0 24px; border-top: 1px solid var(--line); }
.points div { display: grid; grid-template-columns: 118px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.points dt { font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.points dd { margin: 0; color: var(--dim); font-size: 13.5px; line-height: 1.5; }
.welcome .check { margin-bottom: 18px; font-size: 14.5px; align-items: center; }
.welcome .check input { margin: 0; width: 18px; height: 18px; }
.welcome .check .link { font-size: inherit; }
.solid.wide { width: 100%; padding: 13px; font-size: 15.5px; }
.welcome .fine { margin: 14px 0 0; text-align: center; }
.welcome .corner { position: absolute; top: 14px; right: 14px; }
#auth { position: fixed; }
#auth .fields { margin-bottom: 0; }
#auth .seg.wide { margin-top: 0; }
/* usage, the way Claude shows it: what it is, when it refills, a bar, a percentage */
.u-top { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--text); font-weight: 500; }
.u-plan { color: var(--dim); font-weight: 400; font-size: 14px; }
.u-headline { font: 400 24px/1.25 var(--serif); letter-spacing: -0.015em; color: var(--text); margin: 0 0 16px; text-wrap: balance; }
.meters { border-top: 1px solid var(--line); margin-top: 6px; }
.m-row { display: grid; grid-template-columns: 170px 1fr 84px; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.m-what { display: grid; gap: 3px; }
.m-what span:first-child { font-weight: 500; font-size: 14.5px; }
.m-when { font-size: 13px; color: var(--dim); }
.m-bar { height: 4px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.m-fill { display: block; height: 100%; width: 0; background: var(--a); border-radius: 2px; }
.m-row.full .m-fill { background: var(--warn); }
.m-pct { text-align: right; font-size: 14px; color: var(--dim); white-space: nowrap; }
.usage { cursor: pointer; }
/* plans */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 14px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--lift); }
.card.current { border-color: var(--a); }
.card h3 { font: 400 26px/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 4px; }
.card p { margin: 0; }
.card .c-for { color: var(--dim); font-size: 14px; margin-bottom: 18px; }
.card .c-price { font: 600 22px/1.2 var(--sans); color: var(--text); }
.card .c-note { font-size: 13px; color: var(--dim); margin: 2px 0 16px; min-height: 2.9em; }
.card button { width: 100%; padding: 10px; }
.card ul { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 13.5px; color: var(--dim); line-height: 1.4; }
.card li { padding-left: 20px; position: relative; }
.card li::before { content: ""; position: absolute; left: 1px; top: 0.42em; width: 9px; height: 5px; border-left: 1.6px solid var(--link); border-bottom: 1.6px solid var(--link); transform: rotate(-45deg); }
#pay { width: min(520px, calc(100vw - 24px)); }
#pay[open] { display: flex; flex-direction: column; overflow: hidden; }
#pay > * { flex: none; }
#pay #checkout { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.pay-sum { color: var(--dim); margin: 0 0 var(--s4); }
.pay-sum strong { color: var(--text); font-weight: 500; }
#checkout { border-radius: 12px; overflow: hidden; background: #fff; }
#checkout:empty { display: none; }
#viewer { padding: 0; border: 0; background: none; box-shadow: none; width: auto; max-width: 100vw; max-height: 100dvh; overflow: visible; }
#viewer::backdrop { background: rgba(3, 5, 10, 0.92); }
#viewer img { display: block; max-width: min(96vw, 1400px); max-height: calc(100dvh - 96px); width: auto; height: auto; border-radius: 12px; margin: 0 auto; }
.viewer-bar { display: flex; justify-content: center; gap: 10px; padding-top: 14px; }
.viewer-bar .ghost { text-decoration: none; color: var(--text); font-size: 14px; padding: 9px 16px; }
.made img, .msg.you .body img { cursor: zoom-in; }
.made img:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.policy { width: min(680px, calc(100vw - 24px)); }
.policy .lead { margin-bottom: var(--s3); }
.hint .link, .rules .link { font-size: inherit; }
.codes { list-style: none; margin: 0 0 var(--s4); padding: var(--s4); display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--s5); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font: 500 16px/1.2 var(--mono); letter-spacing: 0.04em; }
.backup { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s4) 0; margin-bottom: var(--s4); }
.backup .lead { margin-bottom: var(--s1); }
.backup .hint { margin: 0 0 var(--s3); }
.fields .split { margin: var(--s2) 0 0; align-items: center; gap: var(--s4); }
.fields .split button { margin-top: 0; }

#settings[open] { display: grid; grid-template-columns: 196px 1fr; grid-template-rows: auto 1fr; padding: 0; width: min(840px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 32px)); overflow: hidden; }
#settings .dialog-head { grid-column: 1 / -1; margin: 0; padding: 16px 16px 16px 22px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-right: 1px solid var(--line); background: var(--side); overflow-y: auto; }
.tabs button { text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 12px; color: var(--dim); font-size: 14.5px; white-space: nowrap; }
.tabs button:hover { color: var(--text); background: var(--raised); }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--raised); font-weight: 500; }
#settings section { overflow-y: auto; padding: 24px 28px 28px; min-width: 0; }
#settings section .set:first-of-type { padding-top: 0; }
.set { border: 0; border-bottom: 1px solid var(--line); padding: 18px 0; margin: 0; display: flow-root; min-width: 0; }
.set:last-child { border-bottom: 0; }
.set legend { float: left; width: 150px; padding: 8px 0 0; font-weight: 500; font-size: 14.5px; }
.set > div, .set > p { margin-left: 150px; }
.set > .seg { display: flex; width: fit-content; }
.set .hint { margin-top: 8px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg.wide { display: flex; margin: 20px 0 var(--s4); }
.seg.wide label { flex: 1; text-align: center; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 13px; border-radius: 7px; font-size: 14px; color: var(--dim); }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { background: var(--raised); color: var(--text); font-weight: 500; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(2, 6, 18, 0.35); }
.seg input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 1px; }
.f-sans { font-family: var(--sans); } .f-serif { font-family: var(--serif); } .f-mono { font-family: var(--mono); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.swatch { position: relative; cursor: pointer; display: block; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch i { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.swatch input:checked + i { outline: 2px solid var(--text); outline-offset: 3px; }
.swatch input:focus-visible + i { outline: 2px solid var(--link); outline-offset: 3px; }
.swatch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fields { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.fields label { font-size: 14px; font-weight: 500; margin-top: var(--s2); }
.fields input { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px var(--s3); font-size: 16px; }
.fields input:focus { outline: none; border-color: var(--link); }
.fields button { justify-self: start; margin-top: var(--s2); }
.split { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.plans-old { width: 100%; border-collapse: collapse; margin-bottom: var(--s4); font-size: 14px; }
.plans th, .plans td { text-align: left; padding: 9px var(--s2); border-bottom: 1px solid var(--line); font-weight: 400; }
.plans thead th { font-weight: 600; }
.plans tbody th { color: var(--dim); }

body { overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
button, .start, .chat-item .open { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* fingers: bigger targets, and nothing that only appears on hover */
@media (pointer: coarse) {
  .icon { width: 44px; height: 44px; }
  .go { width: 44px; height: 44px; border-radius: 12px; }
  .chat-item .open { padding: 12px 10px; font-size: 15px; }
  .nav-row { padding: 12px 10px; font-size: 15px; }
  .chat-item .del { display: inline-grid; width: 40px; height: 40px; }
  .row-btn { padding: 12px var(--s2); }
  .menu button { padding: 12px var(--s3); font-size: 15px; }
  .acts button { padding: 10px 0; font-size: 14px; }
  .tabs button { padding: 11px 14px; }
  .seg span { padding: 10px var(--s3); }
}

/* phones and upright tablets: the chat list is a drawer, the greeting sits mid-screen and the composer stays at the bottom */
@media (max-width: 860px) {
  .app, .app.closed { grid-template-columns: 1fr; }
  .side { position: fixed; inset: var(--bar, 0px) auto 0 0; width: min(320px, 86vw); z-index: 6; visibility: hidden; transform: translateX(-100%); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .app.drawer .side, .app.closed.drawer .side { visibility: visible; transform: none; }
  .app #side-open, .app:not(.closed) #side-open { display: inline-grid; }
  .top { padding-top: calc(var(--s2) + env(safe-area-inset-top)); }
  .main.fresh .dock { display: flex; padding-bottom: calc(var(--s2) + env(safe-area-inset-bottom)); min-height: 0; }
  .main.fresh .dock .column { display: flex; flex-direction: column; min-height: 0; }
  .main.fresh .hello { flex: 1; display: grid; place-content: center; margin: 0; padding: var(--s4) 0; min-height: 0; }
  .hello h1 { font-size: 34px; display: block; }
  .hello .logo { display: block; margin: 0 auto var(--s3); width: 40px; height: 40px; }
  [data-font="mono"] .hello h1 { font-size: 24px; }
  .fine .long { display: none; }
  .main.fresh .starts { order: 2; display: flex; overflow-x: auto; margin: 0 calc(var(--s4) * -1) var(--s3); padding: 0 var(--s4); scroll-padding-left: var(--s4); scrollbar-width: none; scroll-snap-type: x proximity; }
  .starts::-webkit-scrollbar { display: none; }
  .starts .start { flex: 0 0 min(260px, 72vw); scroll-snap-align: start; }
  .main.fresh .composer { order: 3; }
  .main.fresh .fine { order: 4; }
  .msg.you .body { max-width: 92%; }
  .welcome { padding: 28px 22px 22px; }
  .welcome h2 { font-size: 28px; }
  .codes { grid-template-columns: 1fr; }
  #settings[open] { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; height: calc(100dvh - 24px - env(safe-area-inset-top)); width: calc(100vw - 16px); }
  .tabs { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  #settings section { padding: 18px 18px 24px; }
  .set { padding: 16px 0; }
  .set legend { float: none; width: auto; padding: 0 0 10px; }
  .set > div, .set > p { margin-left: 0; }
  .points div { grid-template-columns: 1fr; gap: 2px; }
  .cards { grid-template-columns: 1fr; }
  .card .c-note { min-height: 0; }
  .m-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .m-bar { grid-column: 1 / -1; order: 3; }
  .u-headline { font-size: 21px; }
  dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px - env(safe-area-inset-top)); border-radius: 18px; }

  dialog { padding: var(--s4); }
  .cmd { flex-direction: column; }
  .plans th, .plans td { padding: 8px 4px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } .solid:active, .go:active { transform: none; } }

/* the front door */
html:not([data-view]) .app, html:not([data-view]) .landing { visibility: hidden; }
.landing { min-height: calc(var(--app-h, 100dvh) - var(--bar, 0px)); overflow-y: auto; height: calc(var(--app-h, 100dvh) - var(--bar, 0px)); display: flex; flex-direction: column; padding: 0 clamp(20px, 6vw, 96px); }
.l-top { padding: 28px 0 0; }
.l-top .logo { width: 40px; height: 40px; }
.l-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: 24px 0; }
.l-copy { max-width: 520px; justify-self: center; width: 100%; text-align: center; }
.l-copy h1 { font: 400 clamp(40px, 5.2vw, 68px)/1.06 var(--serif); letter-spacing: -0.025em; margin: 0 0 18px; }
.l-sub { font: 400 19px/1.45 var(--serif); color: var(--dim); margin: 0 0 30px; }
.l-card { border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 12px; background: var(--side); }
.l-card .ghost.wide { width: 100%; padding: 13px; font-size: 15.5px; }
.l-fine { font-size: 12.5px; line-height: 1.5; color: var(--dim); margin: 6px 0 0; }
.l-fine .link { font-size: inherit; color: var(--dim); }
.l-points { list-style: none; margin: 26px 0 22px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--dim); }
.l-art { position: relative; justify-self: center; max-height: calc(100dvh - 150px); aspect-ratio: 832 / 1216; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.l-art img, .l-art video { display: block; width: 100%; height: 100%; object-fit: cover; background: #14110e; }
.l-art span { position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: rgba(255, 255, 255, 0.82); background: rgba(8, 11, 18, 0.55); padding: 4px 9px; border-radius: 7px; }
.l-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; padding: 8px 0 22px; font-size: 12.5px; }
.l-foot .link, .l-foot a { color: var(--dim); font-size: 12.5px; }
.l-foot .link:hover, .l-foot a:hover { color: var(--text); }
@media (max-width: 860px) {
  .l-grid { grid-template-columns: 1fr; padding-top: 12px; }
  .l-art { order: -1; max-height: 38dvh; aspect-ratio: 4 / 3; width: 100%; }
  .l-art img { object-position: 50% 30%; }
  .l-copy h1 { font-size: 40px; }
  .l-sub { font-size: 17px; margin-bottom: 22px; }
}

.w-late { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--dim); max-width: 520px; }

/* status pop-up */
.st-banner { margin: 0 0 var(--s4); padding: 14px var(--s4); border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; }
.st-banner.good { background: var(--a); color: var(--on-a); border-color: transparent; }
.st-banner.bad { border-color: var(--warn); color: var(--warn); }
.st-row { padding: var(--s3) 0 var(--s4); border-bottom: 1px solid var(--line); }
.st-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: 10px; }
.st-head h3 { margin: 0; font: 600 16px/1.3 var(--sans); }
.st-now { font-size: 14px; color: var(--text); text-align: right; }
.st-now.trouble, .st-now.reports { color: var(--warn); }
.st-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; height: 34px; }
.st-bars i { display: block; width: auto; min-width: 0; border-radius: 2px; background: var(--a); }
@media (max-width: 520px) { .st-bars { gap: 2px; } }
.st-bars i.trouble { background: var(--warn); }
.st-bars i.none { background: var(--line); }
.st-ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--dim); }
.st-report { margin: var(--s5) 0 var(--s3); }
.st-report h3 { margin: 0; font: 600 16px/1.3 var(--sans); }
.st-report .hint { margin: 0 0 var(--s2); }
.st-report select, .st-report textarea { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); padding: 10px var(--s3); font: inherit; font-size: 16px; width: 100%; }
.st-report textarea { resize: vertical; min-height: 84px; }
.st-report select:focus, .st-report textarea:focus { outline: none; border-color: var(--link); }
.st-report .opt { font-weight: 400; color: var(--dim); }
.st-report button { margin-top: var(--s2); justify-self: start; }

/* updates pop-up */
.policy h3.ver { margin: var(--s5) 0 var(--s2); font: 600 16px/1.3 var(--sans); display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.policy h3.ver span { font-weight: 400; font-size: 13px; color: var(--dim); }

/* a saved picture that is still on its way: a quiet box its own shape, never the description text */
.made img:not([src]) { width: min(100%, 384px); aspect-ratio: 4 / 5; color: transparent; font-size: 0; background: linear-gradient(100deg, var(--panel) 30%, var(--raised) 50%, var(--panel) 70%) 0 0 / 300% 100%; animation: wait 1.6s linear infinite; }
@keyframes wait { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .made img:not([src]) { animation: none; } }

#outage { position: fixed; top: 0; left: 0; right: 0; z-index: 4; width: 100%; margin: 0; border: 0; border-radius: 0; padding: calc(9px + env(safe-area-inset-top)) 16px 9px; text-align: center; font: inherit; font-size: 14px; line-height: 1.4; background: #f0b35a; color: #1a1205; cursor: pointer; }
#outage[hidden] { display: none; }

/* pictures and videos switched off: everything that offers them steps aside; what was already made stays in the chats */
[data-media="off"]:not([data-videos="on"]) #new-video, [data-media="off"] #m-videos, [data-media="off"]:not([data-videos="on"]) .to-video { display: none; }
[data-media="off"]:not([data-pics="on"]) #new-picture, [data-media="off"]:not([data-pics="on"]) #m-pictures { display: none; }

/* website panel beside the chat, the way an artifact opens */
.app.with-site .main { margin-right: max(420px, min(56vw, calc(100vw - 272px - 520px))); }
.app.closed.with-site .main { margin-right: max(420px, min(60vw, calc(100vw - 520px))); }
.site { position: fixed; top: var(--bar, 0px); right: 0; bottom: 0; width: max(420px, min(56vw, calc(100vw - 272px - 520px))); z-index: 3; display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 10px 0; box-sizing: border-box; }
.app.closed .site { width: max(420px, min(60vw, calc(100vw - 520px))); }
.site[hidden] { display: none; }
.site > * { background: var(--panel); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.site-top { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; }
.site-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.site-name strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-name span { font-size: 13px; color: var(--dim); white-space: nowrap; }
.site-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 2px; background: var(--bg); margin-right: 4px; }
.site-tabs button { border: 0; background: none; color: var(--dim); padding: 4px 11px; border-radius: 7px; font-size: 13px; }
.site-tabs button[aria-pressed="true"] { background: var(--raised); color: var(--text); }
.site-top .icon { width: 32px; height: 32px; }
.site-stage { flex: 1; min-height: 0; position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0 0 14px 14px; overflow: hidden; background: #fff; }
.site-stage:has(+ .site-err:not([hidden])) { border-radius: 0; }
.site-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.site-stage iframe[hidden], .site-source[hidden], .site-wait[hidden] { display: none; }
.site-wait { position: absolute; inset: 0; background: var(--panel); padding: 22px; overflow: auto; }
.site-wait .w-line { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.site-wait .logo, .build summary .logo { animation: turn 2.4s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.site-wait ul, .build ol { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; line-height: 2; color: var(--dim); }
.site-wait li.now, .build li.now { color: var(--text); }
.site-source { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.site-files { display: flex; gap: 2px; overflow-x: auto; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--panel); }
.site-files button { border: 0; background: none; color: var(--dim); padding: 5px 10px; border-radius: 7px; font: 12px var(--mono); white-space: nowrap; }
.site-files button[aria-selected="true"] { background: var(--raised); color: var(--text); }
.site-source pre { flex: 1; min-height: 0; margin: 0; padding: 14px 16px; overflow: auto; font: 12.5px/1.6 var(--mono); white-space: pre; color: var(--text); }
.site-err { margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; font-size: 13px; color: var(--warn); }
.site-card { display: flex; align-items: center; gap: 12px; width: min(100%, 420px); margin: 12px 0 6px; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.site-card:hover { border-color: var(--dim); }
.site-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--raised); color: var(--text); }
.site-what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.site-what strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-what small { font-size: 13px; color: var(--dim); }
.site-go { font-size: 14px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line); }
.build { margin: 10px 0 4px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; max-width: 420px; }
.build summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--dim); list-style: none; }
.build summary::-webkit-details-marker { display: none; }
.build-time { font-variant-numeric: tabular-nums; }
.build:not([open]) .logo { animation: none; }
.build ol { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .site-wait .logo, .build summary .logo { animation: none; } }
@media (max-width: 860px) {
  .app.with-site .main, .app.closed.with-site .main { margin-right: 0; }
  .site { position: fixed; inset: var(--bar, 0px) 0 0 0; z-index: 8; padding: 0; height: auto; background: var(--bg); }
  .site-top { border-radius: 0; } .site-stage, .site-err { border-radius: 0; }
}
.site-wait { display: flex; flex-direction: column; }
.site-pool { position: relative; flex: 1; min-height: 160px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; background: var(--raised); }
.site-pool canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---- Claude-inspired pass: quieter surfaces, roomier spacing, an account menu with icons ---- */
.side { background: var(--side); }
.side-nav { gap: 1px; padding-top: 2px; }
.side-nav .search { margin: 0 0 6px; background: var(--panel); border-color: var(--line); }
.main-row { background: var(--raised); box-shadow: none; font-weight: 500; margin: 0 0 2px; }
.main-row svg { color: var(--text); }
.main-row:hover { background: var(--line); }
.nav-row { padding: 8px 10px; font-size: 14.5px; }
.group { font-size: 12.5px; padding: 18px 10px 6px; }
.chat-item .open { font-size: 14.5px; padding: 7px 10px; }
.menu { padding: 6px; border-radius: 14px; bottom: 56px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; font-size: 14.5px; color: var(--text); }
.menu button svg { color: var(--dim); flex: none; }
.menu-who { margin: 4px 10px 6px; font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-who:empty { display: none; }
.menu-more { position: relative; }
.menu-chev { margin-left: auto; display: inline-flex; }
.menu.sub { position: static; width: auto; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 2px 27px; background: none; }
.menu.sub button { font-size: 14px; color: var(--dim); padding: 6px 10px; }
.menu.sub button:hover { color: var(--text); }
#menu-more[aria-expanded="true"] .menu-chev { transform: rotate(90deg); }
.menu { max-height: calc(100dvh - 90px); overflow-y: auto; }
.hello h1 { font: 400 clamp(30px, 3.4vw, 40px)/1.15 var(--serif); letter-spacing: -0.02em; display: flex; align-items: center; justify-content: center; gap: 14px; }
.hello h1 .logo { width: 38px; height: 38px; }
.composer { border-radius: 20px; padding: 14px 14px 10px 18px; }
.composer textarea { min-height: 52px; font-size: 16px; }
.main.fresh .starts { margin-top: 14px; }
.start { border-radius: 12px; }
/* settings, laid out like a preferences window: an icon list on the left, rows of label and control on the right */
#settings[open] { width: min(980px, calc(100vw - 24px)); height: min(720px, calc(100dvh - 32px)); }
.tabs { padding: 14px 10px; gap: 1px; }
.tabs button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 14.5px; }
.tabs button svg { flex: none; }
#settings section { padding: 26px 34px 34px; }
#settings .set { display: grid; grid-template-columns: minmax(150px, 0.8fr) 1.6fr; gap: 6px 24px; align-items: start; margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); }
#settings .set legend { float: left; padding: 6px 0 0; font-size: 15px; font-weight: 500; color: var(--text); }
#settings .set > :not(legend) { grid-column: 2; }
#settings .set .seg { justify-self: end; }
#settings .set .hint { justify-self: end; text-align: right; max-width: 420px; }
#settings .set .swatches { justify-self: end; }
@media (max-width: 860px) {
  #settings .set { grid-template-columns: 1fr; }
  #settings .set > :not(legend) { grid-column: 1; justify-self: start; text-align: left; }
}
#settings .set .swatches { flex-wrap: nowrap; }

/* settings, Claude-style: no title bar, a searchable list on the left, headed sections of rows on the right */
#settings[open] { grid-template-columns: 236px 1fr; grid-template-rows: 1fr; position: relative; }
#settings .set-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
#settings .tabs { padding: 16px 12px; background: var(--side); border-right: 1px solid var(--line); }
.set-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--dim); }
.set-search input { flex: 1; min-width: 0; background: none; border: 0; padding: 8px 0; font-size: 14px; color: var(--text); }
.set-search input:focus { outline: none; }
.set-search:focus-within { border-color: var(--link); }
.tabs-label { margin: 0 10px 6px; font-size: 12.5px; color: var(--dim); }
#settings section { padding: 30px 40px 40px; }
.pane-h { margin: 0 0 6px; font: 600 16px/1.3 var(--sans); }
.pane-h ~ .pane-h { margin-top: 34px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row > div:first-child { min-width: 0; }
.row-t { margin: 0; font-size: 15px; color: var(--text); }
.row-d { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.row-c { flex: none; display: flex; gap: 8px; }
.row-c .ghost { padding: 7px 14px; font-size: 14px; background: var(--raised); border-color: transparent; }
.row-c .ghost:hover { background: var(--line); }
.pill { display: inline-block; padding: 7px 12px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.row-form { padding: 6px 0 18px; border-bottom: 1px solid var(--line); max-width: 420px; margin-bottom: 0; }
.mem-lead { margin: 0 0 18px; font-size: 14px; max-width: 640px; }
.plan-now { margin-bottom: 18px; }
#settings .set { padding: 16px 0; }
#settings .set legend { font-weight: 400; font-size: 15px; }
.seg { background: var(--bg); border-color: var(--line); }
#pane-usage .u-top { font: 600 16px/1.3 var(--sans); margin-bottom: 18px; }
#pane-usage .u-headline { font: 600 26px/1.25 var(--sans); letter-spacing: -0.01em; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
#pane-usage .meters { border-top: 0; }
@media (max-width: 860px) {
  #settings[open] { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  #settings .tabs { flex-direction: row; flex-wrap: nowrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 50px 10px 8px; }
  .set-search, .tabs-label { display: none; }
  #settings section { padding: 20px 18px 28px; }
  .row { flex-wrap: wrap; }
}

/* start screen, a little ChatGPT: a plain list of things to try, each with an icon, under the message box */
.main.fresh .starts { display: grid; grid-template-columns: 1fr; gap: 0; max-width: none; margin: 22px 0 0; }
.start { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: none; color: var(--dim); text-align: left; font-size: 15.5px; box-shadow: none; }
.start:hover { background: var(--panel); color: var(--text); }
.start svg { flex: none; color: var(--dim); }
@media (max-width: 860px) { .main.fresh .starts { display: grid; overflow: visible; margin: 0 0 12px; padding: 0; } .start { min-width: 0; } }

.list-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 0 18px; font-size: 12.5px; color: var(--dim); }
.list-head .icon { width: 28px; height: 28px; }
.list-menu { left: auto; right: 6px; top: 34px; bottom: auto; width: 210px; z-index: 6; }
.list-menu .lm-h { margin: 6px 10px 2px; font-size: 12px; color: var(--dim); }
.list-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--text); }
.group { font-size: 12.5px; padding: 14px 10px 6px; }
/* the small print sits at the foot of the page, not right under the message box */
.main.fresh .dock { position: relative; }
.main.fresh .fine { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; }
.main:not(.fresh) .fine .long ~ * { }

/* start screen closer to ChatGPT: the list lines up with the left edge of the message box, larger quieter rows */
.start { padding: 13px 18px; font-size: 16px; gap: 16px; }
.start svg { width: 20px; height: 20px; }
.main.fresh .hello h1 { font-size: clamp(28px, 2.6vw, 34px); }

#new-picture { display: none !important; }

/* the small print lives in the account menu (Learn more), not under the message box */
.main .fine { display: none !important; }

/* mic on the right, next to send, like Claude and ChatGPT */
#status { margin-left: auto; }
#mic { order: 10; margin-left: auto; }
#status:not(:empty) ~ #mic { margin-left: 0; }
#send { order: 11; }

/* recording, the way Claude does it: one line inside the message box, a status, the live waveform, the time, cancel and done */
.composer.recording textarea, .composer.recording .tools > :not(#status) { display: none; }
.rec { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; }
.rec-label { flex: none; font-size: 15.5px; font-style: italic; color: var(--dim); }
#rec-wave { flex: 1; min-width: 60px; height: 32px; display: block; }
#rec-time { flex: none; font: 13px var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.rec-btn { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 0; display: grid; place-items: center; background: var(--raised); color: var(--text); }
.rec-btn:hover { background: var(--line); }
.rec-btn.ok { background: var(--a); color: var(--on-a); }
.rec-btn.ok:hover { background: var(--a-up); }
.rec-btn:disabled { opacity: 0.5; cursor: wait; }

/* the row under each answer: copy, read aloud, good, bad, try again, as icons */
.acts { gap: 2px; margin-top: 8px; }
.acts .act { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 8px; color: var(--dim); }
.acts .act:hover { background: var(--raised); color: var(--text); text-decoration: none; }
.acts .act.on { color: var(--text); }

.side-fine { margin: 0; padding: 8px 18px 2px; font-size: 11.5px; line-height: 1.6; color: var(--dim); }
.side-fine .link, .side-fine a { color: var(--dim); font-size: 11.5px; margin-right: 6px; text-decoration: none; }
.side-fine .link:hover, .side-fine a:hover { color: var(--text); text-decoration: underline; }

/* voice conversation, in the chat: the box becomes one line, and a soft light rises behind it with the voice */
.talk-glow { --lvl: 0; position: relative; height: 240px; margin-top: -240px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 38% 62% at 34% 100%, rgba(78, 132, 226, 0.55), transparent 72%),
              radial-gradient(ellipse 34% 52% at 66% 100%, rgba(108, 118, 232, 0.38), transparent 72%);
  filter: blur(30px); opacity: calc(0.22 + var(--lvl) * 0.78); transform: scaleY(calc(0.62 + var(--lvl) * 0.6)); transform-origin: 50% 100%;
  transition: opacity 140ms linear, transform 140ms linear; }
.talk-glow[hidden] { display: none; }
.talk-glow[data-state="thinking"] { animation: glow-think 1.8s ease-in-out infinite; }
@keyframes glow-think { 50% { opacity: 0.5; transform: scaleY(0.8); } }
.composer { position: relative; z-index: 1; }
.composer.talking textarea, .composer.talking .tools, .composer.talking .chip { display: none; }
.talk-bar { display: flex; align-items: center; gap: var(--s2); min-height: 44px; }
.talk-bar[hidden] { display: none; }
.talk-state { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 6px 4px; color: var(--dim); font: inherit; font-size: 16px; cursor: default; }
.talk-state.can { cursor: pointer; }
.talk-state.can:hover { color: var(--text); }
.talk-stop { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 0; cursor: pointer;
  background: rgba(78, 132, 226, 0.18); color: #8fb6ff; font: inherit; font-size: 15px; font-weight: 500; }
.talk-stop:hover { background: rgba(78, 132, 226, 0.28); }
[data-mode="light"] .talk-stop { color: #1f5fc4; background: rgba(48, 102, 206, 0.12); }
#talk-mute .talk-slash { display: none; }
#talk-mute[aria-pressed="true"] { color: var(--bad); }
#talk-mute[aria-pressed="true"] .talk-slash { display: inline; }
@media (prefers-reduced-motion: reduce) { .talk-glow { transition: none; transform: none; } .talk-glow[data-state="thinking"] { animation: none; } }
.held { visibility: hidden; }
.avatar { color: #fff; font-size: 14px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.avatar.empty { background: var(--raised) !important; }

/* code blocks: the language, a copy button, colored code */
.body .code { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin: 0 0 var(--s3); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); font: 12.5px/1 var(--mono); color: var(--dim); }
.code-copy { background: none; border: 0; border-radius: 7px; padding: 6px 9px; color: var(--dim); font: 500 12.5px/1 var(--sans); cursor: pointer; }
.code-copy:hover { background: var(--raised); color: var(--text); }
.body .code pre { margin: 0; border: 0; border-radius: 0; background: none; padding: 12px 14px; font: 13.5px/1.6 var(--mono); }
.t-c { color: #7f8ba3; font-style: italic; } .t-s { color: #9fd8a1; } .t-n { color: #f2b97a; } .t-k { color: #c3a6ff; } .t-f { color: #82c8ff; } .t-p { color: #82c8ff; }
[data-mode="light"] .t-c { color: #6b7280; } [data-mode="light"] .t-s { color: #18794e; } [data-mode="light"] .t-n { color: #b45309; } [data-mode="light"] .t-k { color: #6d28d9; } [data-mode="light"] .t-f, [data-mode="light"] .t-p { color: #0b65c2; }
/* tables */
.body .table { overflow-x: auto; margin: 0 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r); }
.body table { border-collapse: collapse; width: 100%; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.body th, .body td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.body th { font-weight: 600; background: var(--panel); }
.body tr:last-child td { border-bottom: 0; }
/* your own messages: copy and edit appear on hover */
.mine-acts { justify-content: flex-end; opacity: 0; transition: opacity 120ms linear; }
.msg.you:hover .mine-acts, .mine-acts:focus-within { opacity: 1; }
@media (hover: none) { .mine-acts { opacity: 1; } }
.edit-box { width: min(640px, 100%); min-height: 80px; resize: none; background: var(--panel); color: var(--text); border: 1px solid var(--link); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: var(--text-size); line-height: 1.5; }
.edit-box:focus { outline: none; }
.edit-row { display: flex; gap: var(--s2); margin-top: var(--s2); }
.edit-row button { padding: 8px 16px; font-size: 14px; }
/* the menu on a chat in the sidebar */
.chat-menu { position: fixed; z-index: 60; min-width: 170px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--lift); display: flex; flex-direction: column; }
.chat-menu[hidden] { display: none; }
.chat-menu button { text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 12px; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.chat-menu button:hover, .chat-menu button:focus-visible { background: var(--raised); outline: none; }
.chat-menu button.bad { color: var(--bad); }
.chat-item .rename { flex: 1; min-width: 0; margin: 3px 4px; padding: 6px 8px; background: var(--bg); color: var(--text); border: 1px solid var(--link); border-radius: 8px; font: inherit; font-size: 14.5px; }
/* a file being dragged over the chat */
.main.dropping::after { content: "Drop the file to add it"; position: absolute; inset: 12px; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--text); font-size: 16px; z-index: 30; pointer-events: none; }
.main { position: relative; }
/* a shared chat's public page */
body.shared { background: var(--bg); color: var(--text); min-height: 100dvh; }
.sh-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(16px, 4vw, 32px); background: var(--bg); border-bottom: 1px solid var(--line); }
.sh-brand .logo { width: 30px; height: 30px; }
.sh-try { text-decoration: none; }
.sh-main { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 64px; }
.sh-title { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 0 0 6px; text-wrap: balance; }
.sh-when { color: var(--dim); font-size: 14px; margin: 0 0 32px; }
.sh-foot { color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 40px; }
.sh-foot a { color: var(--link); }
/* instructions and project forms */
.instr { display: flex; flex-direction: column; gap: 8px; }
.instr label, .instr .lbl { font-size: 14px; font-weight: 500; margin-top: 8px; }
.instr textarea, .instr input[type="text"] { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; }
.instr textarea:focus, .instr input[type="text"]:focus { outline: none; border-color: var(--link); }
.instr .split { margin-top: 10px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.project-files { list-style: none; margin: 0; padding: 0; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.file-add { align-self: flex-start; position: relative; overflow: hidden; cursor: pointer; padding: 8px 14px; font-size: 14px; }
.file-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
/* share dialog */
.share-row { display: flex; gap: 8px; margin: 14px 0 6px; }
.share-row input { flex: 1; min-width: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 14px var(--mono); }
#share .split { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* projects in the sidebar */
.projects { padding: 0 6px; }
.project-item .open { display: flex; align-items: center; gap: 8px; }
.project-item .open svg { color: var(--dim); flex: none; }
.nav-row.sub { padding: 6px 10px 6px 34px; font-size: 13.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-row.sub:hover, .nav-row.sub.on { color: var(--text); }
.nav-row.new-in { color: var(--link); }
#projects-head[hidden] { display: none; }
/* temporary chat */
.temp-note { margin: 10px 0 0; color: var(--dim); font-size: 14.5px; text-align: center; }
.temp-note[hidden] { display: none; }
#temp[aria-pressed="true"] { color: var(--text); background: var(--raised); }
[data-temp="on"] .composer { border-style: dashed; }
/* follow-up questions under the newest answer */
.follow { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; }
.follow button { background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.follow button:hover { background: var(--raised); }
/* a file they sent: first page of a PDF, or its kind */
.filecard { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); max-width: 320px; white-space: normal; }
.filecard img { width: 44px; height: 58px; object-fit: cover; object-position: top; border-radius: 4px; background: #fff; border: 1px solid var(--line); flex: none; }
.fc-kind { width: 44px; height: 58px; border-radius: 6px; display: grid; place-items: center; background: var(--raised); color: var(--dim); font: 600 11px/1 var(--mono); flex: none; }
.fc-text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.fc-text b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-text small { color: var(--dim); font-size: 12.5px; }
.chip img#thumb { object-fit: cover; object-position: top; }
/* charts and diagrams */
.body .chart, .body .mermaid-box { margin: 0 0 var(--s3); padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow-x: auto; }
.body .chart svg { width: 100%; height: auto; display: block; }
.body .mermaid-box svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.ch-title { margin: 0 0 8px !important; font-weight: 600; font-size: 14.5px; }
.chart text { fill: var(--dim); font: 12px var(--sans); }
.chart .ch-grid { stroke: var(--line); stroke-width: 1; }
/* research toggle in the message box */
.research { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--dim); font: inherit; font-size: 13.5px; cursor: pointer; }
.research:hover { color: var(--text); background: var(--raised); }
.research[aria-pressed="true"] { color: #8fb6ff; border-color: rgba(78, 132, 226, 0.6); background: rgba(78, 132, 226, 0.14); }
[data-mode="light"] .research[aria-pressed="true"] { color: #1f5fc4; }
@media (max-width: 520px) { .research span { display: none; } .research { padding: 0 9px; } }
#site-pick[aria-pressed="true"] { color: #8fb6ff; background: rgba(78, 132, 226, 0.16); }
.follow .cont { font-weight: 500; }
.site-wait { padding: 0; } .site-pool { margin: 0; border: 0; border-radius: 0; }
/* computer / tablet / phone preview sizes */
.site-devices { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.site-devices button { display: grid; place-items: center; width: 30px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--dim); cursor: pointer; }
.site-devices button:hover { color: var(--text); }
.site-devices button[aria-pressed="true"] { background: var(--raised); color: var(--text); }
.site-stage[data-dev="tablet"], .site-stage[data-dev="phone"] { background: var(--bg); }
.site-stage[data-dev="tablet"] iframe, .site-stage[data-dev="phone"] iframe { left: 50%; transform: translateX(-50%); top: 12px; height: calc(100% - 24px); border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(2, 6, 18, 0.35); transition: width 180ms ease; }
.site-stage[data-dev="tablet"] iframe { width: min(820px, calc(100% - 24px)); }
.site-stage[data-dev="phone"] iframe { width: min(390px, calc(100% - 24px)); }
@media (max-width: 700px) { .site-devices { display: none; } }
/* incognito: the sidebar steps away, a quiet strip says where you are, the chat sits in a card */
.incog-bar { display: none; }
:root { --incog-bar: #ecebe7; --incog-ink: #1b1d22; }
[data-mode="light"] { --incog-bar: #1d2028; --incog-ink: #f1f1ee; }
html[data-temp="on"] body { background: var(--incog-bar); }
html[data-temp="on"] .incog-bar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 12px 0 22px; background: var(--incog-bar); color: var(--incog-ink); font-size: 15px; }
.incog-bar span { display: inline-flex; align-items: center; gap: 10px; }
.incog-bar .icon { color: var(--incog-ink); }
.incog-bar .icon:hover { background: rgba(0, 0, 0, 0.08); }
html[data-temp="on"] .app { grid-template-columns: 0 1fr; height: calc(var(--app-h, 100dvh) - 48px); padding: 0 10px 10px; background: var(--incog-bar); }
html[data-temp="on"] .app .side { visibility: hidden; }
html[data-temp="on"] .main { height: calc(var(--app-h, 100dvh) - 58px); border-radius: 16px; background: var(--bg); overflow: hidden; }
html[data-temp="on"] #side-open, html[data-temp="on"] #temp, html[data-temp="on"] #share-chat, html[data-temp="on"] .starts { display: none !important; }
html[data-temp="on"] .composer { border-style: dashed; box-shadow: none; }
.incog-note { display: none; }
html[data-temp="on"] .main.fresh .incog-note { display: block; margin: 22px auto 0; max-width: 560px; text-align: center; color: var(--dim); font-size: 14.5px; line-height: 1.55; }
.hello h1 { display: flex; align-items: center; justify-content: center; } .hello h1 .logo { flex: none; position: relative; top: 0.08em; }      /* the serif sits low in its line box; the mark follows it so they read as one line */
/* incognito on phones and upright tablets: one column, the note sits under the greeting, the box stays at the bottom */
.incog-mid { display: none; }
@media (max-width: 860px) {
  html[data-temp="on"] .app { grid-template-columns: 1fr; padding: 0 8px 8px; }
  html[data-temp="on"] .main { height: calc(var(--app-h, 100dvh) - 56px); }
  html[data-temp="on"] .main.fresh .incog-note { display: none; }
  html[data-temp="on"] .main.fresh .incog-mid { display: block; margin: 18px auto 0; max-width: 340px; color: var(--dim); font-size: 15px; line-height: 1.55; text-align: center; }
  html[data-temp="on"] .incog-bar { padding: 0 8px 0 18px; }
}
.hello h1 .logo { margin: 0; }
html[data-temp="on"] .get-app { display: none !important; } .incog-bar .icon:focus:not(:focus-visible) { background: none; }
.msg.held { display: none; }
.site-wait { z-index: 3; }      /* the water covers the running site while its photos are made, instead of animating unseen behind it */
/* sources under an answer */
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sources a { font-size: 12.5px; color: var(--dim); text-decoration: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sources a:hover { color: var(--text); background: var(--raised); }
/* earlier and later versions of an answer */
.versions { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; font: 12.5px var(--sans); color: var(--dim); font-variant-numeric: tabular-nums; }
.versions .act:disabled { opacity: 0.35; cursor: default; }
/* running a code block */
.code-btns { display: inline-flex; gap: 4px; }
.code-run { background: none; border: 0; border-radius: 7px; padding: 6px 9px; color: var(--link); font: 500 12.5px/1 var(--sans); cursor: pointer; }
.code-run:hover { background: var(--raised); }
.code-run:disabled { color: var(--dim); cursor: default; }
.code-out { border-top: 1px solid var(--line); padding: 10px 14px; font: 13px/1.55 var(--mono); white-space: pre-wrap; max-height: 320px; overflow: auto; background: color-mix(in srgb, var(--panel) 70%, var(--bg)); }
.code-out[hidden] { display: none; }
.code-out .err { color: var(--bad); }
/* share dialog: the link and its copy button as one control, turning it off as a quiet line under it */
.share-row { display: flex; gap: 0; margin: 16px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.share-row:focus-within { border-color: var(--link); }
.share-row input { flex: 1; min-width: 0; height: 46px; border: 0; border-radius: 0; background: none; padding: 0 14px; color: var(--text); font: 14px var(--mono); }
.share-row input:focus { outline: none; }
.share-row .solid { height: 38px; margin: 4px; padding: 0 16px; border-radius: 9px; white-space: nowrap; }
.share-foot { display: flex; align-items: center; gap: 14px; }
.share-foot .share-off { color: var(--bad); font-size: 14px; }
.share-foot .hint { margin: 0; }
/* the agent's step list and its files */
.agent-steps ol li.plan { color: var(--dim); padding-left: 14px; position: relative; }
.agent-steps ol li.plan::before { content: ""; position: absolute; left: 2px; top: 50%; width: 6px; height: 1px; background: var(--dim); }
.agent-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.agent-files .filecard { text-decoration: none; color: var(--text); margin: 0; }
.agent-files .filecard:hover { background: var(--raised); }
.agent-files .filecard img { background: #fff; }
/* picture shape chooser beside Research */
.shapes { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.shapes[hidden] { display: none; }
.shapes button { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 0; border-radius: 999px; background: none; color: var(--dim); font: inherit; font-size: 12.5px; cursor: pointer; }
.shapes button:hover { color: var(--text); }
.shapes button[aria-checked="true"] { background: var(--raised); color: var(--text); }
@media (max-width: 520px) { .shapes button span { display: none; } .shapes button { padding: 0 7px; } }
/* installed as an app on a phone, the page runs under the status bar: the newer top bars keep clear of it */
html[data-temp="on"] .incog-bar { height: auto; min-height: 48px; padding-top: env(safe-area-inset-top); }
html[data-temp="on"] .app { height: calc(var(--app-h, 100dvh) - 48px - env(safe-area-inset-top)); }
html[data-temp="on"] .main { height: calc(var(--app-h, 100dvh) - 58px - env(safe-area-inset-top)); }
.landing .l-top { padding-top: calc(28px + env(safe-area-inset-top)); }
.sh-top { padding-top: calc(12px + env(safe-area-inset-top)); }
/* notifications row in Settings: the note above its button, both aligned with the other controls */
#notify-note { margin: 0 0 8px; text-align: left; max-width: 360px; }
/* referrals */
.ref-hero { padding: 4px 0 8px; }
.ref-kicker { margin: 0 0 6px; color: var(--link); font-size: 13.5px; font-weight: 500; }
.ref-hero h3 { margin: 0 0 8px; font: 500 26px/1.2 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.ref-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.ref-stats div { background: var(--panel); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ref-stats span { font: 600 22px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.ref-stats small { color: var(--dim); font-size: 12.5px; }
.ref-how { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.ref-how li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.ref-how li::before { content: counter(step); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); font: 600 13px var(--sans); }
.ref-how b { font-weight: 500; font-size: 14.5px; }
.ref-how span { color: var(--dim); font-size: 13.5px; }
.l-invited { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--raised); font-size: 14px; text-align: center; }
.l-invited[hidden] { display: none; }
@media (max-width: 520px) { .ref-stats { grid-template-columns: repeat(2, 1fr); } .ref-hero h3 { font-size: 22px; } }
/* credits on the Usage page */
.credits { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.credits-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.credits-top > div { display: flex; flex-direction: column; gap: 2px; }
.credits-label { color: var(--dim); font-size: 13px; }
.credits-amount { font: 600 24px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.credits .hint { margin: 10px 0 8px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); transition: background 150ms ease; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--dim); transition: transform 150ms ease, background 150ms ease; }
.switch input:checked + .switch-ui { background: var(--a); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); background: var(--on-a); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--link); outline-offset: 2px; }
/* the profile picture: a slow, liquid blend of the account's own colors under its initial */
.avatar.flow { position: relative; overflow: hidden; isolation: isolate; background: var(--c1); }
.avatar.flow::before { content: ""; position: absolute; inset: -60%; z-index: -1;
  background: conic-gradient(from var(--spin), var(--c1), var(--c2), var(--c3), var(--c2), var(--c1));
  filter: blur(6px) saturate(1.05); animation: avatar-flow var(--pace) linear infinite; }
.avatar.flow::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), transparent 55%), radial-gradient(circle at 70% 85%, rgba(0, 0, 0, 0.25), transparent 60%);
  animation: avatar-light calc(var(--pace) * 0.8) ease-in-out infinite alternate; }
.avatar.flow[data-look="sheen"]::before { background: linear-gradient(var(--spin), var(--c1) 15%, var(--c2) 50%, var(--c3) 62%, var(--c2) 74%, var(--c1) 92%); filter: none; }
.avatar.flow[data-look="orb"]::before { background: radial-gradient(circle at 50% 38%, var(--c3) 0%, var(--c2) 22%, var(--c1) 46%); filter: blur(2px); }
.avatar.flow[data-look="bands"]::before { background: repeating-linear-gradient(var(--spin), var(--c1) 0 14%, var(--c2) 14% 26%, var(--c3) 26% 30%, var(--c2) 30% 38%); filter: blur(3px); }
@keyframes avatar-flow { to { transform: rotate(360deg); } }
@keyframes avatar-light { from { transform: translate(-6%, -4%) scale(1.05); } to { transform: translate(6%, 5%) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .avatar.flow::before, .avatar.flow::after { animation: none; } }
/* alive: new words fade in, sent messages rise into place */
.fresh { animation: fresh-in 360ms ease-out both; }
@keyframes fresh-in { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
.msg.sent-in { animation: sent-in 220ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sent-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* the earlier steps of what it's doing, listed above the current one */
.w-trail { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.w-trail:empty { display: none; }
.w-trail li { position: relative; padding-left: 30px; font-size: 13.5px; color: var(--dim); }
.w-trail li::before { content: ""; position: absolute; left: 8px; top: 50%; width: 9px; height: 5px; border-left: 1.6px solid var(--dim); border-bottom: 1.6px solid var(--dim); transform: translateY(-70%) rotate(-45deg); }
/* jump back down */
.dock { position: relative; }
.jump { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 13px; box-shadow: var(--lift); cursor: pointer; }
.jump[hidden] { display: none; }
.jump:hover { background: var(--raised); }
/* start screen: chats to pick up */
.resume { width: 100%; margin: 4px 0 6px; }
.resume[hidden] { display: none; }
.resume-h { margin: 0 0 8px; color: var(--dim); font-size: 13px; }
.resume-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.resume-card { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.resume-card:hover { background: var(--raised); }
.resume-card b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-card small { color: var(--dim); font-size: 12px; }
@media (max-width: 860px) { .resume { display: none !important; } }
/* link previews */
.link-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.link-card { display: flex; flex-direction: column; gap: 2px; width: min(260px, 100%); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); text-decoration: none; }
.link-card:hover { background: var(--raised); }
.link-card small { color: var(--dim); font-size: 12px; }
.link-card b { font-weight: 500; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-card span { color: var(--dim); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* faint water behind the greeting, only on the start screen */
.main { isolation: isolate; }
.hello-water { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 600ms ease; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 50% 42%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 55% 45% at 50% 42%, #000 0%, transparent 75%); }
.main.fresh .hello-water { opacity: 0.24; }          /* a touch brighter (2026-10-10) */
[data-mode="light"] .main.fresh .hello-water { opacity: 0.42; }
.hello-water canvas { width: 100%; height: 100%; display: block; filter: blur(1px); }
.hello-water .w-bar { display: none; }
html[data-temp="on"] .hello-water { display: none; }
@media (prefers-reduced-motion: reduce) { .fresh, .msg.sent-in { animation: none; } }
/* start screen stays compact and centered: two suggestions for them, two general ones */
.starts.has-for-you .start:not(.for-you):nth-child(n+5) { display: none; }
/* start screen like Claude and ChatGPT: the greeting and message box sit at the middle of the screen, and whatever is
   listed under them hangs below without pushing them up */
@media (min-width: 861px) {
  .main.fresh .dock { align-content: start; padding-top: max(24px, calc(54dvh - 215px)); padding-bottom: 32px; overflow-y: auto; }
}
.resume { margin-top: 22px; }
.share-row .share-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; margin: 4px 4px 4px 0; padding: 0 14px; border-radius: 9px; white-space: nowrap; }
@media (max-width: 520px) { .share-row .share-btn { padding: 0 10px; } .share-row .solid { padding: 0 12px; } }

/* the start screen's extras belong to the start screen only */
.main:not(.fresh) .resume { display: none; }

/* reminders, timers, tasks and calendar events, as cards in the reply and rows in Settings */
.act-card { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 4px 12px; margin: 4px 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); max-width: 520px; }
.act-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--raised); color: var(--text); }
.act-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-text b { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-text span { color: var(--dim); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.act-hint { color: var(--dim); font-size: 12.5px; }
.act-side { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.act-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 500 13px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.act-btn:hover { background: var(--raised); }
.act-btn.on { background: var(--text); color: var(--bg); border-color: transparent; }
.act-btn.on:hover { opacity: 1; filter: brightness(0.92); }
.act-btn:disabled { cursor: default; filter: none; }
.act-card.done .act-ic { color: var(--dim); }
.act-card.off { opacity: 0.7; }
.act-cal { grid-column: 2 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sched-push { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.sched-push div { display: flex; flex-direction: column; gap: 2px; }
.sched-push b { font-weight: 500; font-size: 14.5px; }
.sched-push span { color: var(--dim); font-size: 13.5px; }
.sched-push .solid { height: 36px; padding: 0 14px; border-radius: 9px; white-space: nowrap; }
.sched-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sched-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
@media (max-width: 520px) { .act-card { grid-template-columns: 36px 1fr; } .act-side { grid-column: 2; justify-content: flex-start; } }

/* full pages in the main area: Scheduled and Artifacts, opened from the sidebar like Claude's */
.main.paged .scroll, .main.paged .dock, .main.paged .hello-water { display: none !important; }
.page { flex: 1; min-height: 0; overflow-y: auto; padding: 48px 24px 64px; }
.page-in { max-width: 1040px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { margin: 0 0 6px; font: 500 34px/1.15 var(--serif); letter-spacing: -0.01em; }
.page-head p { margin: 0; color: var(--dim); font-size: 15px; }
.page-head .solid { height: 38px; padding: 0 16px; border-radius: 10px; white-space: nowrap; }
.page-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 0 32px; color: var(--dim); }
.page-empty svg { color: var(--text); opacity: 0.85; }
.page-empty p { margin: 0; font-size: 15px; }
.page-rule { height: 8px; margin: 28px 0 24px; background: radial-gradient(circle at 4px 4px, var(--line) 1.2px, transparent 1.6px) 0 0 / 10px 8px repeat-x; }
.templates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.template { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; text-align: left; padding: 14px 10px; border-radius: 12px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.template:hover { background: var(--panel); }
.template .act-ic { width: 40px; height: 40px; grid-row: span 3; }
.template b { font-weight: 500; font-size: 15.5px; }
.template span { color: var(--dim); font-size: 14px; line-height: 1.45; }
.template small { color: var(--dim); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.sched-row .act-side { display: flex; gap: 6px; }
.task-when { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.task-when span { display: flex; flex-direction: column; gap: 6px; }
.task-when select, .task-when input { height: 42px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 15px; color-scheme: dark; }
:root[data-mode="light"] .task-when select, :root[data-mode="light"] .task-when input { color-scheme: light; }
.nav-row.on { background: var(--raised); }
@media (max-width: 720px) { .templates { grid-template-columns: 1fr; } .page { padding: 24px 16px 48px; } .page-head h1 { font-size: 28px; } .task-when { grid-template-columns: 1fr 1fr; } .task-when span:first-child { grid-column: 1 / -1; } }

/* documents, slides and spreadsheets the assistant made: a card in the reply, a viewer, real downloads */
.doc-card { margin: 8px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); max-width: 560px; }
.doc-card > .hint { margin: 0; }
.doc-open { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; width: 100%; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.doc-saves { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0 48px; }
#doc-view { width: min(1000px, calc(100vw - 32px)); height: min(860px, calc(100dvh - 32px)); max-width: none; max-height: none; padding: 0; display: none; flex-direction: column; overflow: hidden; }
#doc-view[open] { display: flex; }
.doc-view-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.doc-view-head h2 { flex: 1; min-width: 0; margin: 0; font: 500 18px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-view-saves { display: flex; gap: 6px; }
.doc-view-body { flex: 1; overflow: auto; background: var(--bg); padding: 28px 20px 48px; }
.doc-view-body .paper { max-width: 760px; margin: 0 auto; background: #fff; color: #1b1f27; padding: 56px 64px; border-radius: 6px; box-shadow: 0 12px 40px rgba(10, 14, 22, 0.35); font: 16.5px/1.65 Georgia, "Times New Roman", serif; }
.doc-view-body .paper h1, .doc-view-body .paper h2, .doc-view-body .paper h3 { font-family: Georgia, serif; color: #11141a; line-height: 1.25; }
.doc-view-body .paper table { border-collapse: collapse; width: 100%; font: 14px var(--sans); }
.doc-view-body .paper th, .doc-view-body .paper td { border: 1px solid #d5d9e2; padding: 6px 9px; text-align: left; }
.doc-view-body .paper a { color: #2f5bea; }
.doc-view-body.v-slides { display: grid; justify-content: center; gap: 22px; }
.doc-view-body .slide { width: min(880px, calc(100vw - 80px)); aspect-ratio: 16 / 9; box-sizing: border-box; padding: 5% 7%; background: var(--s-ground, #fafaf7); color: var(--s-ink, #1b1f27); border-radius: 8px; position: relative; box-shadow: 0 12px 40px rgba(10, 14, 22, 0.35); font-family: var(--sans); overflow: hidden; }
.doc-view-body .slide h2 { margin: 0 0 4%; font: 400 clamp(20px, 3.4vw, 34px)/1.15 Georgia, serif; }
.doc-view-body .slide h2::after { content: ""; display: block; width: 52px; height: 3px; margin-top: 14px; background: var(--s-accent, #2f5bea); }
.doc-view-body .slide.first { background: var(--s-ink, #1b1f27); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.doc-view-body .slide.first h2 { font-size: clamp(26px, 4.6vw, 46px); }
.doc-view-body .slide li, .doc-view-body .slide p { font-size: clamp(13px, 2vw, 21px); margin: 0 0 10px; }
.doc-view-body .slide .sub { color: var(--s-dim, #5b6472); }
.doc-view-body .slide.first .sub, .doc-view-body .slide.first p { color: #c9ced8; }
.doc-view-body .slide .n { position: absolute; right: 3%; bottom: 4%; font-size: 12px; color: #5b6472; }
.sheet-wrap { overflow: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.sheet { border-collapse: collapse; font: 14px var(--sans); min-width: 100%; }
.sheet th { position: sticky; top: 0; background: var(--raised); font-weight: 500; text-align: left; }
.sheet th, .sheet td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 8px 12px; white-space: nowrap; }
.sheet td.num { text-align: right; font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
/* the Artifacts page */
.art-h { margin: 6px 0 12px; color: var(--dim); font-size: 14px; }
.art-new { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.art-tile { display: flex; flex-direction: column; gap: 3px; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.art-tile-pic { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); transition: transform 0.18s ease, border-color 0.18s ease; }
.art-tile:hover .art-tile-pic { transform: translateY(-2px); border-color: var(--dim); }
.art-tile.k-doc .art-tile-pic { background: linear-gradient(160deg, #172235, #121a28); }
.art-tile.k-slides .art-tile-pic { background: linear-gradient(160deg, #2b2216, #1d1810); }
.art-tile.k-sheet .art-tile-pic { background: linear-gradient(160deg, #13261d, #0f1c16); }
.art-tile.k-site .art-tile-pic { background: linear-gradient(160deg, #221a30, #171221); }
.art-tile.k-picture .art-tile-pic { background: linear-gradient(160deg, #2a1a1f, #1c1215); }
:root[data-mode="light"] .art-tile .art-tile-pic { background: var(--panel); }
.art-tile b { font-weight: 500; font-size: 15px; }
.art-tile small { color: var(--dim); font-size: 13px; }
.art-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.art-tabs button { height: 34px; padding: 0 14px; border-radius: 9px; border: 0; background: none; color: var(--dim); font: 500 14px var(--sans); cursor: pointer; }
.art-tabs button[aria-selected="true"] { background: var(--raised); color: var(--text); }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 14px; }
.art-card { display: flex; flex-direction: column; gap: 3px; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.art-pic { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); overflow: hidden; }
.art-pic img, .art-pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-card:hover .art-pic { border-color: var(--dim); }
.art-card b { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-card small { color: var(--dim); font-size: 13px; }
@media (max-width: 860px) { .art-new { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .art-new { grid-template-columns: repeat(2, minmax(0, 1fr)); } .art-grid { grid-template-columns: 1fr 1fr; } .doc-view-body .paper { padding: 28px 22px; } .doc-view-saves .act-btn { padding: 0 9px; } .doc-saves { margin-left: 0; } }

/* sidebar like Claude's: plain rows, a round plus for a new chat */
.side-nav .main-row { background: none; box-shadow: none; font-weight: 400; margin: 0; }
.side-nav .main-row:hover { background: var(--raised); }
.nav-plus { width: 22px; height: 22px; margin: -2px -2px -2px -2px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--text); flex: none; }
.main-row:hover .nav-plus { background: var(--line); }
.side-nav .nav-row { font-size: 15px; padding: 8px 10px; }
/* Customize: apps and skills */
.page-search { display: flex; align-items: center; gap: 8px; max-width: 420px; margin: 4px 0 18px; padding: 0 12px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--dim); }
.page-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.app-card { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.app-card.on { border-color: color-mix(in srgb, var(--good, #3fb27f) 45%, var(--line)); }
.app-card.on .act-text span { color: var(--good, #3fb27f); }
.app-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; padding: 6px; box-sizing: border-box; }
.app-logo.blank { display: grid; place-items: center; background: var(--raised); color: var(--text); font-weight: 600; padding: 0; }
.app-card .act-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.apps-fine { margin-top: 18px; max-width: 640px; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin-bottom: 26px; }
.skill-row { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: inherit; font: inherit; cursor: pointer; }
.skill-row:hover { border-color: var(--dim); }
.skill-row b { font-weight: 500; font-size: 14.5px; }
.skill-row span { color: var(--dim); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) { .app-grid, .skill-grid { grid-template-columns: 1fr; } }
.app-card.on .act-text span { display: flex; align-items: center; gap: 5px; font-weight: 500; }
.app-card.wait { border-color: var(--link); }
.app-card.wait .act-text span { color: var(--link); }

/* the side panel for files (shares the website panel's place and size) */
.canvas-top { gap: 8px; }
.canvas-tools { display: flex; align-items: center; gap: 2px; }
.canvas-saves { display: flex; gap: 6px; }
.canvas-hint { color: var(--dim); font-size: 13px; padding: 0 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.canvas-body { flex: 1; min-height: 0; overflow: auto; position: relative; border-top: 1px solid var(--line); }
.canvas-foot { display: flex; gap: 10px; overflow-x: auto; padding: 10px 12px; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.canvas .canvas-body:last-child, .canvas-foot[hidden] + * { border-radius: 0 0 14px 14px; }
.canvas .canvas-body { border-bottom: 1px solid var(--line); }
.canvas:has(.canvas-foot[hidden]) .canvas-body { border-radius: 0 0 14px 14px; }
/* slides: laid out at 1280x720, scaled by --k */
.canvas-body.v-slides { padding: 24px; background: var(--bg); display: flex; }
.stage { flex: 1; width: 100%; height: 100%; min-height: 0; position: relative; overflow: hidden; }
.stage > .slide { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--k, 0.5)); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.slide { width: 1280px; height: 720px; box-sizing: border-box; padding: 72px 88px; position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--s-bg); color: var(--s-ink); font-family: var(--s-text, "IBM Plex Sans"), Helvetica, Arial, sans-serif; border-radius: 6px; }
.slide .s-kick { margin: 0 0 18px; color: var(--s-accent); font: 600 22px/1.2 var(--s-text, "IBM Plex Sans"), Arial, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
.slide h2 { margin: 0; font: 600 64px/1.05 var(--s-head, "Source Serif 4"), Georgia, serif; letter-spacing: -0.015em; color: var(--s-ink); text-wrap: balance; }
.slide .s-sub { margin: 22px 0 0; color: var(--s-dim); font-size: 30px; line-height: 1.35; max-width: 1000px; }
.slide.l-title { justify-content: center; }
.slide.l-title h2 { font-size: 112px; }
.slide.first.l-title h2 { font-size: 128px; }
.slide ul { margin: 46px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; max-width: 1040px; }
.slide li { position: relative; padding-left: 34px; font-size: 32px; line-height: 1.35; }
.slide li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 3px; background: var(--s-accent); }
.slide .s-body { margin: 40px 0 0; font-size: 32px; line-height: 1.5; color: var(--s-ink); max-width: 1040px; }
.s-cards { margin-top: auto; display: grid; gap: 24px; }
.s-cards.n2 { grid-template-columns: 1fr 1fr; } .s-cards.n3 { grid-template-columns: 1fr 1fr 1fr; } .s-cards.n4 { grid-template-columns: 1fr 1fr; }
.s-card { background: var(--s-card); border: 1px solid color-mix(in srgb, var(--s-ink) 8%, transparent); border-radius: 10px; padding: 30px 30px 34px; display: flex; flex-direction: column; gap: 14px; }
.s-card b { color: var(--s-accent); font: 600 32px/1.2 "IBM Plex Sans", Arial, sans-serif; }
.s-card span { font-size: 25px; line-height: 1.45; color: var(--s-ink); }
.s-stats { margin-top: auto; display: grid; gap: 40px; } .s-stats.n1 { grid-template-columns: 1fr; } .s-stats.n2 { grid-template-columns: 1fr 1fr; } .s-stats.n3 { grid-template-columns: 1fr 1fr 1fr; }
.s-stats b { display: block; white-space: nowrap; color: var(--s-accent); font: 400 var(--stat, 112px)/1 "Source Serif 4", Georgia, serif; letter-spacing: -0.02em; }
.s-stats span { display: block; margin-top: 16px; font-size: 26px; line-height: 1.4; color: var(--s-dim); }
.slide.l-quote { justify-content: center; }
.slide blockquote { margin: 30px 0 0; font: italic 400 54px/1.25 var(--s-head, "Source Serif 4"), Georgia, serif; color: var(--s-ink); max-width: 1060px; }
.slide .s-by { margin: 28px 0 0; color: var(--s-accent); font-size: 26px; }
.slide .s-n { position: absolute; right: 48px; bottom: 36px; font-size: 18px; color: var(--s-dim); }
.thumb { flex: none; display: grid; gap: 4px; justify-items: center; padding: 0; background: none; border: 0; cursor: pointer; color: var(--dim); }
.thumb-in { width: 132px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; border: 2px solid transparent; position: relative; }
.thumb-in > .slide { transform: scale(var(--k, 0.1)); transform-origin: top left; position: absolute; top: 0; left: 0; }
.thumb.on .thumb-in { border-color: var(--link); }
.thumb small { font-size: 11px; }
.present { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; cursor: pointer; }
.present .stage { width: 100vw; height: 100vh; }
/* documents: a page you can edit, like Claude Docs */
.canvas-body.v-doc { background: var(--bg); padding: 56px 24px 96px; }
.doc-page { max-width: 720px; margin: 0 auto; outline: none; font-size: 16.5px; line-height: 1.7; color: var(--text); caret-color: var(--link); }
.doc-page h1:first-child { margin: 0 0 28px; font: 400 44px/1.15 var(--serif); letter-spacing: -0.015em; }
.doc-page h1, .doc-page h2, .doc-page h3 { font-family: var(--serif); font-weight: 500; line-height: 1.25; }
.doc-page h2 { font-size: 26px; margin: 34px 0 10px; } .doc-page h3 { font-size: 20px; margin: 26px 0 8px; }
.doc-page p { margin: 0 0 14px; }
.doc-page table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 10px 0 18px; }
.doc-page th, .doc-page td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.doc-page th { background: var(--panel); font-weight: 500; }
.doc-page blockquote { margin: 16px 0; padding-left: 16px; border-left: 3px solid var(--line); color: var(--dim); }
/* spreadsheets: a real grid */
.canvas-body.v-sheet { display: flex; flex-direction: column; background: var(--bg); }
.fx-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font: 13.5px var(--mono); background: var(--panel); position: sticky; top: 0; z-index: 2; }
.fx-ref { min-width: 44px; color: var(--dim); } .fx { color: var(--dim); font-style: italic; } .fx-val { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-wrap { flex: 1; overflow: auto; }
.grid { border-collapse: separate; border-spacing: 0; font: 14px var(--sans); min-width: 100%; }
.grid th { position: sticky; top: 0; z-index: 1; background: var(--panel); color: var(--dim); font: 500 12px var(--sans); padding: 5px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid th.rn { position: sticky; left: 0; z-index: 1; text-align: right; min-width: 34px; }
.grid th.corner { left: 0; z-index: 3; }
.grid td { padding: 7px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; cursor: cell; }
.grid td.hd { font-weight: 600; background: color-mix(in srgb, var(--panel) 60%, transparent); }
.grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid td.f { color: color-mix(in srgb, var(--link) 35%, var(--text)); }
.grid td.sel { outline: 2px solid var(--link); outline-offset: -2px; }
/* designs: an artboard on a dotted canvas */
.canvas-body.v-design { background: var(--bg) radial-gradient(circle, color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px; padding: 40px; }
.board-wrap { width: fit-content; margin: auto; }
.board-label { margin: 0 0 10px; color: var(--dim); font-size: 13.5px; }
.board { width: calc(900px * var(--z, 1)); max-width: none; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); background: #fff; border-radius: 4px; overflow: hidden; }
.board svg { display: block; width: 100%; height: auto; }
.board.html iframe { display: block; width: 100%; aspect-ratio: 3 / 2; border: 0; background: #fff; }
@media (max-width: 860px) { .canvas { inset: var(--bar, 0px) 0 0 0 !important; width: auto !important; padding: 0 !important; z-index: 40; } .canvas-saves .act-btn { padding: 0 9px; } .canvas-body.v-doc { padding: 28px 18px 72px; } }

/* projects live on their own page now, opened from the top of the sidebar */
#projects-head, #projects { display: none !important; }
.page-back { background: none; border: 0; color: var(--dim); font: inherit; font-size: 14px; padding: 0; margin: 0 0 16px; cursor: pointer; }
.page-back:hover { color: var(--text); }
.page-acts { display: flex; gap: 8px; }
.page-acts .ghost, .page-acts .solid { height: 38px; padding: 0 14px; border-radius: 10px; white-space: nowrap; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.proj-card { display: grid; grid-template-columns: 36px 1fr; gap: 3px 12px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: inherit; font: inherit; cursor: pointer; }
.proj-card:hover { border-color: var(--dim); }
.proj-card .act-ic { grid-row: span 3; }
.proj-card b { font-weight: 500; font-size: 15.5px; }
.proj-card span:not(.act-ic) { color: var(--dim); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-card small { color: var(--dim); font-size: 12.5px; margin-top: 4px; }
.proj-chats { display: grid; gap: 2px; }
.proj-chat { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.proj-chat:hover { background: var(--panel); }
.proj-chat b { font-weight: 400; font-size: 15px; }
.proj-chat small { color: var(--dim); white-space: nowrap; }
.art-tile.k-design .art-tile-pic { background: linear-gradient(160deg, #26201a, #1a1612); }
.board-cut { margin: 0; padding: 40px; color: #555; font-size: 15px; }
@media (max-width: 860px) {
  .canvas-top { flex-wrap: wrap; row-gap: 6px; padding: 10px 10px 8px 14px; border-radius: 0; }
  .canvas-top .site-name { flex: 1 1 calc(100% - 48px); order: 0; }
  .canvas-top .site-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .canvas-top #canvas-close { order: 1; }
  .canvas-tools { order: 2; flex: 1; }
  .canvas-saves { order: 3; }
  .canvas-foot { border-radius: 0; }
  .canvas:has(.canvas-foot[hidden]) .canvas-body { border-radius: 0; }
}
/* chat rows match the rows above them (New chat, Projects, Library…) */
.chat-item .open { font-size: 15px; padding: 8px 10px; color: var(--text); }
.made .pic-report { background: none; border: 0; padding: 0; margin-left: 14px; color: var(--dim); font: inherit; font-size: 13px; cursor: pointer; }
.made .pic-report:hover { color: var(--text); text-decoration: underline; }
/* incognito shows nothing from the account: no recent chats, no suggestions drawn from memory */
[data-temp="on"] .resume, [data-temp="on"] .starts .for-you { display: none !important; }
.doc-card.drawing { padding: 10px; }
.design-live { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; background: repeating-conic-gradient(var(--panel) 0 25%, var(--raised) 0 50%) 0 0 / 16px 16px; }

/* slides, round 2: pictures, motion, editing */
.slide .s-in { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.slide.l-title .s-in, .slide.l-quote .s-in { justify-content: center; }
.slide .s-n { z-index: 1; font: 600 18px var(--s-text, sans-serif); letter-spacing: 0.1em; }
.slide::before { content: ""; position: absolute; left: 88px; top: 0; width: 120px; height: 6px; background: var(--s-accent); z-index: 1; }
.slide .s-stats b, .slide .s-card b { font-family: var(--s-head, inherit); }
.s-pic { position: absolute; background: var(--s-card) center / cover no-repeat; opacity: 0; transition: opacity 0.8s ease; }
.s-pic:not(.in) { opacity: 1; background-image: linear-gradient(100deg, var(--s-card) 30%, color-mix(in srgb, var(--s-card), #fff 6%) 50%, var(--s-card) 70%); background-size: 300% 100%; animation: s-shimmer 1.6s linear infinite; }
.s-pic.in { opacity: 1; }
@keyframes s-shimmer { to { background-position: -150% 0; } }
.slide.has-pic:not(.l-title):not(.l-quote) .s-pic { top: 0; right: 0; bottom: 0; width: 44%; }
.slide.has-pic:not(.l-title):not(.l-quote) .s-in { max-width: 54%; }
.slide.has-pic:not(.l-title):not(.l-quote) .s-in h2 { font-size: 54px; }
.slide.has-pic:not(.l-title):not(.l-quote) li, .slide.has-pic:not(.l-title):not(.l-quote) .s-body { font-size: 27px; }
.slide.has-pic.l-title .s-pic, .slide.has-pic.l-quote .s-pic { inset: 0; }
.slide.has-pic.l-title .s-pic::after, .slide.has-pic.l-quote .s-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--s-bg) 8%, color-mix(in srgb, var(--s-bg), transparent 25%) 55%, color-mix(in srgb, var(--s-bg), transparent 70%)); }
/* entrance: the parts of a slide arrive one after another */
.stage .slide .s-top > *, .stage .slide li, .stage .slide .s-card, .stage .slide .s-stats > div, .stage .slide blockquote, .stage .slide .s-by, .stage .slide .s-body { animation: s-up 0.55s cubic-bezier(.2, .7, .2, 1) both; }
.stage .slide .s-top > :nth-child(2) { animation-delay: 0.08s; } .stage .slide .s-top > :nth-child(3) { animation-delay: 0.16s; }
.stage .slide li:nth-child(1), .stage .slide .s-card:nth-child(1), .stage .slide .s-stats > div:nth-child(1), .stage .slide blockquote, .stage .slide .s-body { animation-delay: 0.22s; }
.stage .slide li:nth-child(2), .stage .slide .s-card:nth-child(2), .stage .slide .s-stats > div:nth-child(2), .stage .slide .s-by { animation-delay: 0.3s; }
.stage .slide li:nth-child(3), .stage .slide .s-card:nth-child(3), .stage .slide .s-stats > div:nth-child(3) { animation-delay: 0.38s; }
.stage .slide li:nth-child(4), .stage .slide .s-card:nth-child(4) { animation-delay: 0.46s; }
.stage .slide li:nth-child(n+5) { animation-delay: 0.54s; }
.stage .slide .s-pic.in { animation: s-zoom 7s ease-out both; }
@keyframes s-up { from { opacity: 0; transform: translateY(26px); } }
@keyframes s-zoom { from { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .stage .slide *, .stage .slide .s-pic.in { animation: none !important; } }
.stage [contenteditable] { outline: none; border-radius: 6px; transition: box-shadow 0.15s; cursor: text; }
.stage [contenteditable]:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--s-accent), transparent 55%); }
.stage [contenteditable]:focus { box-shadow: 0 0 0 2px var(--s-accent); }
@media (max-width: 720px) { .edit-hint { display: none; } }
.fmt-bar { display: flex; gap: 2px; flex-wrap: wrap; }
.fmt { min-width: 30px; height: 30px; padding: 0 7px; border: 0; border-radius: 7px; background: none; color: var(--dim); font: 600 13px var(--sans); cursor: pointer; }
.fmt:hover { background: var(--raised); color: var(--text); }
.edit-toggle.on { background: var(--text); color: var(--bg); }
.edit-color { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.board svg.editing { cursor: grab; }
.board svg.editing text { cursor: text; }
.board svg.editing [data-picked] { outline: 2px dashed #4c8dff; outline-offset: 3px; filter: drop-shadow(0 0 2px #4c8dff) drop-shadow(0 0 1px #4c8dff); }
.retype { position: fixed; z-index: 200; box-sizing: border-box; padding: 0 6px; border: 2px solid #4c8dff; border-radius: 6px; background: #fff; color: #111; font-family: var(--sans); }
.u-fresh { margin-left: auto; margin-right: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 13px; font-weight: 400; }
#usage-refresh { width: 30px; height: 30px; }
#usage-refresh.spin svg { animation: u-spin 0.7s linear infinite; }
@keyframes u-spin { to { transform: rotate(360deg); } }
/* paying, inside bxzex */
#pay { width: min(560px, calc(100vw - 32px)); }
.pay-lead { margin: 0 0 16px; color: var(--dim); font-size: 15px; line-height: 1.5; }
.pay-cycle, .pay-packs { display: grid; gap: 10px; margin-bottom: 14px; }
.pay-cycle { grid-template-columns: 1fr 1fr; }
.pay-packs { grid-template-columns: repeat(4, 1fr); }
.pay-cycle button, .pay-packs button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.pay-cycle button:hover, .pay-packs button:hover { border-color: var(--dim); }
.pay-cycle button.on, .pay-packs button.on { border-color: var(--link); background: color-mix(in srgb, var(--link), var(--panel) 90%); }
.pay-cycle b, .pay-packs b { font-size: 16px; font-weight: 600; }
.pay-cycle span { color: var(--dim); font-size: 13px; }
.pay-cycle i, .pay-packs i { padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--link), transparent 82%); color: var(--link); font: 600 12px var(--sans); font-style: normal; }
.pay-cycle i { position: absolute; top: 12px; right: 12px; }
.pay-other { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; color: var(--dim); font-size: 14px; }
.pay-other input { width: 110px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; }
.pay-sum-box { padding: 6px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.ps-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 15px; color: var(--text); }
.ps-row span:first-child { color: var(--dim); }
.ps-row.total { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; font-weight: 600; }
.ps-row.total span:first-child { color: var(--text); }
.pay-cards { display: grid; gap: 8px; margin-bottom: 12px; }
.pay-cards:empty { display: none; }
.pc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.pc.on { border-color: var(--link); }
.pc-brand { text-transform: capitalize; font-weight: 600; min-width: 84px; }
.pc-exp { margin-left: auto; color: var(--dim); font-size: 13px; }
.pay-el { margin-bottom: 12px; min-height: 10px; }
.pay-fine { margin: 0 0 14px; color: var(--dim); font-size: 13px; line-height: 1.5; }
.pay-go { display: flex; justify-content: flex-end; }
.pay-go .solid { min-width: 170px; }
.c-year { margin: -6px 0 12px; color: var(--link); font-size: 13px; }
.c-year:empty { display: none; }
@media (max-width: 560px) { .pay-packs { grid-template-columns: 1fr 1fr; } .pay-cycle { grid-template-columns: 1fr; } }
/* the moment between pressing Pay and done */
.pay-busy { display: grid; place-items: center; gap: 14px; padding: 46px 0 40px; text-align: center; }
.pay-busy-text { margin: 0; font-size: 16px; color: var(--text); }
.pay-art { overflow: visible; color: var(--text); }
.pay-art .pa-card { fill: var(--panel); stroke: currentColor; stroke-width: 2; animation: pa-card 2.4s ease-in-out infinite; transform-origin: 72px 67px; }
.pay-art .pa-band, .pay-art .pa-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: 0.6; }
.pay-art .pa-coin circle { fill: var(--link); stroke: currentColor; stroke-width: 2; }
.pay-art .pa-coin path { fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; }
.pay-art .pa-coin { animation: pa-coin 1.4s cubic-bezier(.5, 0, .5, 1) infinite; transform-origin: 122px 34px; }
.pay-art .pa-check { fill: none; stroke: #3ccf91; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; opacity: 0; }
.pay-busy.done .pa-coin { animation: none; opacity: 0; transition: opacity 0.2s; }
.pay-busy.done .pa-card { animation: none; }
.pay-busy.done .pa-line { opacity: 0; }
.pay-busy.done .pa-check { opacity: 1; animation: pa-check 0.5s 0.1s ease-out forwards; }
@keyframes pa-coin { 0% { transform: translate(0, -28px) scaleX(1); opacity: 0; } 25% { opacity: 1; } 50% { transform: translate(-30px, 18px) scaleX(0.2); } 80% { transform: translate(-50px, 32px) scaleX(1); opacity: 1; } 100% { transform: translate(-50px, 32px); opacity: 0; } }
@keyframes pa-card { 50% { transform: rotate(-3deg) translateY(-3px); } }
@keyframes pa-check { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .pay-art * { animation: none !important; } .pay-busy.done .pa-check { stroke-dashoffset: 0; } }
#usage-in .split { margin: 18px 0 8px; gap: 10px; }
.avatar.has-pic { background-size: cover; background-position: center; }
.avatar.big { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background-color: var(--raised); font-size: 18px; font-weight: 600; cursor: pointer; }
.avatar-pick { cursor: pointer; border-radius: 50%; }
.avatar-pick:hover .avatar { outline: 2px solid var(--line); outline-offset: 2px; }
.row-in { width: 240px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 14.5px; }
select.row-in { color-scheme: dark; }
:root[data-mode="light"] select.row-in { color-scheme: light; }
.acct-id { padding: 4px 8px; border-radius: 6px; background: var(--raised); font: 13px var(--mono); color: var(--dim); }
.sess-wrap { overflow-x: auto; }
.sess { width: 100%; border-collapse: collapse; font-size: 14px; }
.sess th { text-align: left; font-weight: 500; color: var(--dim); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sess td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tag-now { margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--link), transparent 82%); color: var(--link); font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 720px) { .row-in { width: 100%; } }
.pv-more { border-bottom: 1px solid var(--line); }
.pv-more summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; cursor: pointer; list-style: none; font-size: 15px; color: var(--text); }
.pv-more summary::-webkit-details-marker { display: none; }
.pv-more summary::after { content: "›"; color: var(--dim); font-size: 20px; transition: transform 0.2s; }
.pv-more[open] summary::after { transform: rotate(90deg); }
.pv-more ul { margin: 0 0 14px; padding-left: 18px; color: var(--dim); font-size: 14px; line-height: 1.6; }
.shares-list { margin: 0 0 8px; }
.share-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.share-row a { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-row span { color: var(--dim); font-size: 13px; white-space: nowrap; }
.cookie-bar { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: min(420px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35); animation: cb-in 0.35s cubic-bezier(.2, .7, .2, 1); }
.cookie-bar .cb-t { margin: 0 0 10px; font-weight: 600; font-size: 16px; color: var(--text); }
.cookie-bar .cb-d { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--dim); }
.cookie-bar .wide { width: 100%; margin-bottom: 10px; }
.cb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@keyframes cb-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 560px) { .cookie-bar { left: 16px; right: 16px; bottom: 16px; width: auto; } }
#lang-dlg { width: min(860px, calc(100vw - 32px)); }
.lang-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; margin: 4px 0 14px; border: 1px solid var(--link); border-radius: 10px; color: var(--dim); }
.lang-search input { flex: 1; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 56vh; overflow-y: auto; }
.lang-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; position: relative; }
.lang-opt b { font-weight: 500; font-size: 15px; }
.lang-opt span { color: var(--dim); font-size: 13.5px; }
.lang-opt:hover { background: var(--raised); }
.lang-opt.on { background: color-mix(in srgb, var(--link), transparent 86%); }
.lang-opt.on::after { content: "✓"; position: absolute; right: 14px; top: 12px; color: var(--link); }
@media (max-width: 640px) { .lang-grid { grid-template-columns: 1fr 1fr; } }
.row.col { flex-direction: column; align-items: stretch; gap: 14px; }
.quiet { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.quiet label { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; }
.days { display: flex; gap: 8px; }
.day { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font: 600 13px var(--sans); cursor: pointer; }
.day.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.row-in.small { width: auto; min-width: 120px; }
.nudge { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 95; width: min(420px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35); animation: cb-in 0.35s cubic-bezier(.2, .7, .2, 1); }
.nudge .nd-t { margin: 0 0 6px; font-weight: 600; font-size: 16px; color: var(--text); }
.nudge .nd-d { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--dim); }
/* first run */
.onboard { width: min(680px, calc(100vw - 24px)); min-height: min(600px, calc(100vh - 40px)); padding: 26px 34px 26px; display: none; flex-direction: column; border-radius: 22px; overflow: hidden; }
.onboard[open] { display: flex; }
.onboard::backdrop { background: rgba(5, 7, 10, 0.78); backdrop-filter: none; }
.ob-top { display: flex; align-items: center; gap: 16px; }
.ob-top .logo { width: 30px; height: 30px; }
.ob-dots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.ob-dots i { width: 28px; height: 4px; border-radius: 4px; background: var(--line); transition: background 0.3s, width 0.3s; }
.ob-dots i.past { background: var(--dim); }
.ob-dots i.now { background: var(--text); width: 40px; }
.ob-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 26px 0 18px; }
.ob-stage.in { animation: ob-in 0.45s cubic-bezier(.2, .7, .2, 1); }
.ob-stage.in.back { animation-name: ob-back; }
@keyframes ob-in { from { opacity: 0; transform: translateX(34px); } }
@keyframes ob-back { from { opacity: 0; transform: translateX(-34px); } }
.ob-kick { margin: 0 0 10px; color: var(--link); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ob-stage h2 { margin: 0 0 10px; font: 400 clamp(28px, 4.4vw, 40px)/1.15 var(--serif); letter-spacing: -0.015em; color: var(--text); text-wrap: balance; }
.ob-sub { margin: 0 0 18px; color: var(--dim); font-size: 15.5px; }
.ob-in { margin-top: 18px; height: 56px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; font-size: 19px; outline: none; transition: border-color 0.2s; }
.ob-in:focus { border-color: var(--link); }
.ob-in.shake { animation: ob-shake 0.35s; }
@keyframes ob-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ob-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ob-chips.lang { max-height: 260px; overflow-y: auto; }
.ob-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; transition: transform 0.15s, border-color 0.15s, background 0.15s; animation: ob-pop 0.4s cubic-bezier(.2, .7, .2, 1) both; }
.ob-chip:nth-child(2) { animation-delay: 0.03s; } .ob-chip:nth-child(3) { animation-delay: 0.06s; } .ob-chip:nth-child(4) { animation-delay: 0.09s; } .ob-chip:nth-child(5) { animation-delay: 0.12s; } .ob-chip:nth-child(n+6) { animation-delay: 0.15s; }
.ob-chip:hover { border-color: var(--dim); transform: translateY(-1px); }
.ob-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.ob-e { font-size: 17px; line-height: 1; }
@keyframes ob-pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.ob-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.ob-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, transform 0.15s; animation: ob-pop 0.4s cubic-bezier(.2, .7, .2, 1) both; }
.ob-card b { font-size: 16.5px; font-weight: 600; }
.ob-card span { color: var(--dim); font-size: 14px; line-height: 1.45; }
.ob-card:hover { border-color: var(--dim); transform: translateY(-2px); }
.ob-card.on { border-color: var(--link); background: color-mix(in srgb, var(--link), var(--panel) 88%); }
.ob-foot { display: flex; justify-content: space-between; align-items: center; }
.ob-foot .solid { min-width: 150px; height: 46px; font-size: 15.5px; }
.ob-done { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ob-burst { width: 110px; height: 110px; margin-bottom: 10px; overflow: visible; }
.ob-burst circle { fill: none; stroke: var(--link); stroke-width: 4; stroke-dasharray: 214; stroke-dashoffset: 214; animation: ob-draw 0.6s ease-out forwards; }
.ob-burst path { fill: none; stroke: var(--text); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: ob-draw 0.4s 0.45s ease-out forwards; }
.ob-burst line { stroke: var(--link); stroke-width: 4; stroke-linecap: round; opacity: 0; transform-origin: 60px 60px; animation: ob-ray 0.6s ease-out forwards; }
@keyframes ob-draw { to { stroke-dashoffset: 0; } }
@keyframes ob-ray { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; translate: 0 -8px; } }
.ob-tries { display: grid; gap: 10px; width: 100%; max-width: 440px; margin-top: 8px; }
.ob-try { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; animation: ob-pop 0.45s 0.6s cubic-bezier(.2, .7, .2, 1) both; }
.ob-try:nth-child(2) { animation-delay: 0.7s; } .ob-try:nth-child(3) { animation-delay: 0.8s; }
.ob-try:hover { border-color: var(--dim); }
@media (max-width: 560px) { .onboard { padding: 20px; } .ob-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .onboard * { animation: none !important; } .ob-burst circle, .ob-burst path { stroke-dashoffset: 0; } }
.onboard::backdrop { background: rgba(5, 7, 10, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.onboard[open] { animation: ob-enter 0.5s cubic-bezier(.2, .7, .2, 1); }
.onboard.leaving { animation: ob-leave 0.42s cubic-bezier(.5, 0, .7, .4) forwards; }
.onboard.leaving::backdrop { animation: ob-unblur 0.42s ease forwards; }
@keyframes ob-enter { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes ob-leave { to { opacity: 0; transform: translateY(-14px) scale(0.96); } }
@keyframes ob-unblur { to { backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); background: rgba(5, 7, 10, 0); } }
#app.arrive .main { animation: app-arrive 0.7s cubic-bezier(.2, .7, .2, 1); }
@keyframes app-arrive { from { opacity: 0.4; transform: scale(0.985); filter: blur(3px); } }
.ob-points { margin: 8px 0 18px; }
.ob-points div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ob-points dt { font-weight: 600; color: var(--text); }
.ob-points dd { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.ob-agree { font-size: 15px; }
.ob-foot .solid:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 560px) { .ob-points div { grid-template-columns: 1fr; gap: 4px; } }
.sk-new { margin-left: 8px; padding: 1px 7px; border-radius: 6px; background: color-mix(in srgb, var(--link), transparent 82%); color: var(--link); font: 600 11.5px var(--sans); font-style: normal; vertical-align: 2px; }
.app-pick { position: relative; display: inline-flex; gap: 6px; }
.ap-chip { display: inline-flex; align-items: center; gap: 7px; }
.ap-logo { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; background: #fff; padding: 1px; flex: none; }
.ap-stack { display: inline-flex; }
.ap-stack .ap-logo + .ap-logo { margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); }
.ap-caret { font-size: 10px; color: var(--dim); }
.ap-menu { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 30; min-width: 220px; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35); }
.ap-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.ap-menu button:hover { background: var(--raised); }
.ap-menu .ap-more { color: var(--dim); font-size: 13.5px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.app-ideas { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); z-index: 25; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); animation: cb-in 0.3s cubic-bezier(.2, .7, .2, 1); }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; }
.ai-head b { flex: 1; font-size: 14.5px; color: var(--text); }
.ai-head .icon { width: 28px; height: 28px; font-size: 18px; }
.ai-idea { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.ai-idea:hover { background: var(--raised); }
.l-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 600px; margin: 0 auto 28px; padding: 0; list-style: none; }
.l-feats li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 13.5px; animation: ob-pop 0.5s cubic-bezier(.2, .7, .2, 1) both; }
.l-feats li svg { color: var(--dim); }
.l-feats li:nth-child(2) { animation-delay: 0.04s; } .l-feats li:nth-child(3) { animation-delay: 0.08s; } .l-feats li:nth-child(4) { animation-delay: 0.12s; } .l-feats li:nth-child(5) { animation-delay: 0.16s; } .l-feats li:nth-child(n+6) { animation-delay: 0.2s; }
.l-copy .l-sub { margin-bottom: 20px; }
.cycle-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.cycle-switch button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--dim); font: 500 14.5px var(--sans); cursor: pointer; }
.cycle-switch button.on { background: var(--text); color: var(--bg); }
.cycle-switch i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--link); }
.cycle-switch button.on i { color: var(--bg); opacity: 0.7; }
.art-pic { position: relative; }
.art-pic > img, .art-pic > video { position: absolute; inset: 0; }
.art-live { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.art-svg { width: 100%; height: 100%; object-fit: contain; background: #0b0d12; }
.art-slide .slide { position: absolute; left: 0; top: 0; transform: scale(var(--k, 0.22)); transform-origin: 0 0; border-radius: 0; }
.art-slide { background: #141414; }
.art-doc { background: #f7f6f2; }
.art-paper { width: 250%; transform: scale(0.4); transform-origin: 0 0; padding: 40px 48px; color: #1b1d22; font: 15px/1.55 var(--serif); }
.art-paper h1, .art-paper h2 { font-family: var(--serif); margin: 0 0 10px; color: #111; } .art-paper p { margin: 0 0 8px; } .art-paper .doc-card, .art-paper .code { display: none; }
.art-sheet { background: #fff; }
.art-sheet table { border-collapse: collapse; font: 11px var(--sans); color: #222; width: 100%; }
.art-sheet th, .art-sheet td { border: 1px solid #e3e5e8; padding: 5px 6px; white-space: nowrap; overflow: hidden; max-width: 90px; text-overflow: ellipsis; text-align: left; }
.art-sheet th { background: #f1f3f5; font-weight: 600; }
.art-site iframe { width: 1280px; height: 960px; border: 0; transform: scale(0.226); transform-origin: 0 0; background: #fff; }
#share .share-row { gap: 8px; }
#share .share-off { flex: none; color: #ff7b7b; border-color: color-mix(in srgb, #ff7b7b, transparent 60%); white-space: nowrap; }
#share .share-off:hover { background: color-mix(in srgb, #ff7b7b, transparent 88%); }
@media (max-width: 560px) { #share .share-row { flex-wrap: wrap; } #share .share-row input { flex-basis: 100%; } }
.doc-card.drawing { padding: 12px 14px; }
.draw-row { display: flex; align-items: center; gap: 14px; }
.design-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #0b0d12; border: 1px solid var(--line); flex: none; }
.draw-row b { display: block; font-size: 15px; color: var(--text); animation: pulse-t 1.4s ease-in-out infinite; }
.draw-row span { font-size: 13px; color: var(--dim); }
@keyframes pulse-t { 50% { opacity: 0.55; } }
.art-browser { background: linear-gradient(160deg, #221a30, #171221); display: flex; flex-direction: column; }
.ab-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: rgba(255,255,255,0.06); }
.ab-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.ab-bar span { margin-left: 8px; font-size: 10px; color: rgba(255,255,255,0.55); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ab-body { flex: 1; display: grid; place-content: center; text-align: center; gap: 4px; padding: 12px; }
.ab-body b { font: 600 20px var(--serif); color: #fff; } .ab-body small { color: rgba(255,255,255,0.6); font-size: 12px; }
.u-costs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 14px 0 6px; padding: 0; list-style: none; }
.u-costs li { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 14px; color: var(--text); }
.u-costs li b { font-weight: 500; } .u-costs li span { color: var(--link); font-weight: 600; }
.u-costs-note { margin: 0 0 4px; color: var(--dim); font-size: 13px; }
.mem-upload { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; cursor: pointer; color: var(--dim); }
.mem-upload:hover { border-color: var(--dim); color: var(--text); }
.mem-upload b { display: block; color: var(--text); font-size: 14.5px; font-weight: 500; } .mem-upload small { font-size: 13px; }
.art-tile.k-video .art-tile-pic { background: linear-gradient(160deg, #1a2a2a, #121c1c); }
[data-videos="off"] .art-tile.k-video { display: none; }
#new-video { display: none !important; }
[data-media="off"]:not([data-videos="on"]) #start-video { display: none; }
[data-videos="off"] #cost-video { display: none; }
.tools { flex-wrap: wrap; row-gap: 8px; }
/* Chat · Agent · Research, tabs on top of the message box */
#agent, #research { display: none !important; }
.mode-tabs { display: flex; gap: 2px; padding: 0 18px; margin-bottom: -1px; position: relative; z-index: 2; }
.mode-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border: 1px solid transparent; border-bottom: 0; border-radius: 12px 12px 0 0; background: none; color: var(--dim); font: 500 14px var(--sans); cursor: pointer; transition: color 0.15s, background 0.15s; }
.mode-tabs button:hover { color: var(--text); }
.mode-tabs button[aria-selected="true"] { background: var(--panel); border-color: var(--line); color: var(--text); }
.mode-tabs button[aria-selected="true"] { box-shadow: 0 2px 0 var(--panel); position: relative; }

.mode-starts .start { animation: ob-pop 0.35s cubic-bezier(.2, .7, .2, 1) both; }
.mode-starts .start:nth-child(2) { animation-delay: 0.04s; } .mode-starts .start:nth-child(3) { animation-delay: 0.08s; } .mode-starts .start:nth-child(4) { animation-delay: 0.12s; }
@media (max-width: 560px) { .mode-tabs { padding: 0 10px; } .mode-tabs button { padding: 0 12px; } }
.mode-tabs:has(+ .composer:focus-within) button[aria-selected="true"] { border-color: var(--link); }
[data-temp="on"] .mode-tabs button[aria-selected="true"] { border-style: dashed; }
.mode-tabs button[aria-selected="true"] { transition: color 0.15s, background 0.15s, border-color 0.15s; }
/* the app ideas card and the Apps list open above the Chat · Agent · Research tabs, never under them */
.mode-tabs + .composer .app-ideas { bottom: calc(100% + 48px); }
.mode-tabs + .composer .ap-menu { bottom: calc(100% + 48px); }
/* landing, the calm version: wordmark, one big line, one short line, a simple card, the film on the right */
.l-top { display: flex; align-items: center; gap: 12px; }
.l-top .logo { width: 34px; height: 34px; }
.l-word { font: 400 30px/1 var(--serif); letter-spacing: -0.02em; color: var(--text); }
.l-copy { max-width: 560px; }
.l-copy h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: 1.04; margin: 0 0 16px; }
.l-copy .l-sub { font: 400 21px/1.4 var(--serif); color: var(--text); opacity: 0.85; margin: 0 0 40px; }
.l-card { max-width: 460px; margin: 0 auto; padding: 30px; border-radius: 26px; background: transparent; }
.l-card .solid.wide, .l-card .ghost.wide { height: 46px; font-size: 15.5px; border-radius: 12px; }
.l-more { margin: 26px auto 0; max-width: 460px; color: var(--dim); font-size: 13.5px; line-height: 1.6; }
.l-art { aspect-ratio: 9 / 16; border-radius: 18px; }
@media (max-width: 860px) { .l-word { font-size: 24px; } .l-copy .l-sub { font-size: 18px; margin-bottom: 26px; } .l-art { aspect-ratio: 4 / 3; } }
/* folder look: the first tab grows straight out of the box's top-left edge, no rounded notch between them */
.mode-tabs { padding: 0; }
.mode-tabs:has(button:first-child[aria-selected="true"]) + .composer { border-top-left-radius: 0 !important; }          /* only when the tab above the corner is the open one */
.mode-tabs:not(:has(button:first-child[aria-selected="true"])) + .composer { border-top-left-radius: 20px !important; }
.mode-tabs button:first-child { border-top-left-radius: 14px; }
.mode-tabs button { border-radius: 14px 14px 0 0; }
/* phones: the tabs travel with the message box to the bottom, so they sit right on top of it, not above the suggestions */
@media (max-width: 720px) {
  .main.fresh .mode-tabs { order: 3; margin-top: 8px; }
  .main.fresh .mode-starts { order: 2; }
  .main.fresh .limit-warn, .main.fresh .under-box { order: 3; }          /* the 90% note, the model picker and the usage ring move down with the box */
  .under-box { margin-top: 4px; }
  .mode-tabs button { height: 34px; padding: 0 13px; font-size: 13.5px; }
}
.alt-in { display: grid; gap: 10px; margin-top: 16px; }
.alt-in .or { text-align: center; color: var(--dim); font-size: 13px; }
.alt-in .ghost.wide { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; }
.dev-wait { text-align: center; padding: 6px 0 4px; }
.dev-code { margin: 18px 0 12px; font: 600 38px/1 var(--mono); letter-spacing: 0.12em; color: var(--text); }
.pk-list { display: grid; gap: 6px; margin-top: 10px; }
.pk { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pk small { color: var(--dim); } .pk .link { margin-left: auto; font-size: 13px; }
.dev-approve { display: flex; gap: 8px; } .dev-approve .row-in { width: 130px; font-family: var(--mono); letter-spacing: 0.08em; }
@media (max-width: 720px) { .dev-approve { width: 100%; } .dev-approve .row-in { flex: 1; } }
/* sign-in alternatives: full width, even, with a proper divider */
.alt-in { width: 100%; margin-top: 22px; gap: 10px; }
.alt-in .ghost.wide { width: 100%; justify-self: stretch; height: 46px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.alt-in .or { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.alt-in .or::before, .alt-in .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#auth-form .split .solid { min-width: 140px; }
.alt-in[hidden] { display: none; }
/* landing: little drawings of what bxzex makes, each one moving, drifting around the film */
.l-anim .frm { fill: var(--panel); stroke: var(--line); stroke-width: 2; }
.l-anim .fill { fill: var(--link); } .l-anim .dim { fill: var(--dim); opacity: 0.45; } .l-anim .line { stroke: var(--line); stroke-width: 2; }
/* video: the sound wave pulses */
.a-video .wave rect { fill: var(--link); transform-box: fill-box; transform-origin: center; animation: la-wave 1s ease-in-out infinite; }
.a-video .wave rect:nth-child(2n) { animation-delay: 0.2s; } .a-video .wave rect:nth-child(3n) { animation-delay: 0.4s; }
@keyframes la-wave { 50% { transform: scaleY(0.35); } }
/* picture: the sun rises and sets behind the hills */
.a-pic .sun { fill: #f5b25a; animation: la-sun 5s ease-in-out infinite; }
.a-pic .hill { fill: var(--raised); stroke: var(--line); stroke-width: 2; }
@keyframes la-sun { 0%, 100% { transform: translateY(26px); } 50% { transform: translateY(-6px); } }
/* slides: the top slide flips away to the next one */
.a-slides .back { fill: var(--raised); }
.a-slides .flip { transform-box: fill-box; transform-origin: left center; animation: la-flip 4.5s ease-in-out infinite; }
@keyframes la-flip { 0%, 55% { transform: none; opacity: 1; } 70% { transform: perspective(300px) rotateY(-70deg); opacity: 0; } 71%, 85% { transform: translateY(8px); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* website: the page builds itself, piece by piece */
.a-site .b { fill: var(--raised); stroke: var(--line); stroke-width: 1; animation: la-build 5s ease-out infinite; opacity: 0; }
.a-site .b1 { fill: var(--link); stroke: none; } .a-site .b4 { fill: #3c4a68; }
.a-site .b2 { animation-delay: 0.3s; } .a-site .b3 { animation-delay: 0.6s; } .a-site .b4 { animation-delay: 0.9s; } .a-site .b5 { animation-delay: 1.2s; }
@keyframes la-build { 0% { opacity: 0; transform: translateY(4px); } 12%, 80% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
/* agent: each task ticks itself off */
.a-agent .box { fill: none; stroke: var(--dim); stroke-width: 2; }
.a-agent .tick { fill: none; stroke: #3ccf91; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; animation: la-tick 4.5s ease-out infinite; }
.a-agent .r2 .tick { animation-delay: 0.7s; } .a-agent .r3 .tick { animation-delay: 1.4s; }
@keyframes la-tick { 0%, 8% { stroke-dashoffset: 14; } 20%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 14; } }
/* chat: someone is typing */
.a-chat .dot { fill: var(--link); animation: la-dot 1.2s ease-in-out infinite; }
.a-chat .d2 { animation-delay: 0.15s; } .a-chat .d3 { animation-delay: 0.3s; }
@keyframes la-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }
.a-pic .sky { fill: #1b2436; } .a-pic .edge { fill: none; stroke: var(--line); stroke-width: 2; }
.a-pic .hill { fill: #2a3550; stroke: none; }
.a-slides .fill2 { fill: #f5b25a; }

/* the drawings live on their own layer across the whole welcome page, in three depths */
.landing { position: relative; overflow-x: hidden; }
.l-sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.landing > :not(.l-sky) { position: relative; z-index: 1; }
.lsk { position: absolute; width: var(--s); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
.lsk .l-anim { display: block; width: 100%; height: auto; overflow: visible; opacity: 0;
  animation: la-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards, la-drift 9s ease-in-out infinite; animation-delay: calc(var(--i) * 60ms + 200ms), calc(var(--i) * -1.3s); }
.lsk.d1 .l-anim { filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55)); }
.lsk.d2 { opacity: 0.75; } .lsk.d2 .l-anim { animation-duration: 0.5s, 11s; }
.lsk.d3 { opacity: 0.4; filter: blur(1.2px); } .lsk.d3 .l-anim { animation-duration: 0.5s, 13s; }
@keyframes la-in { from { opacity: 0; transform: translateY(12px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes la-drift { 0%, 100% { translate: 0 0; rotate: -2deg; } 33% { translate: 6px -10px; rotate: 1deg; } 66% { translate: -5px -4px; rotate: 2deg; } }
@media (max-width: 1180px) { .lsk.d3 { display: none; } .lsk { width: calc(var(--s) * 0.82); } }
@media (max-width: 860px) { .l-sky { display: none; } }
@media (prefers-reduced-motion: reduce) { .lsk, .lsk .l-anim, .lsk .l-anim * { animation: la-in 0.01ms forwards !important; transition: none !important; } }
.lsk { left: -999px; top: 0; }
/* the cursor that tours the drawings, and what each drawing does when it's clicked */
.l-cursor { position: absolute; left: 0; top: 0; z-index: 3; opacity: 0; transition: opacity 0.4s; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); pointer-events: none; }
.l-ring { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--link); opacity: 0; pointer-events: none; }
.lsk.act .a-video .wave rect { animation-duration: 0.35s; }
.lsk.act .a-video .fill { animation: la-play 0.6s cubic-bezier(0.16, 1, 0.3, 1); transform-box: fill-box; transform-origin: center; }
@keyframes la-play { 30% { transform: scale(1.25); } }
.lsk.act .a-agent .tick { animation: la-tick-now 1.6s ease-out forwards; }
.lsk.act .a-agent .r2 .tick { animation-delay: 0.25s; } .lsk.act .a-agent .r3 .tick { animation-delay: 0.5s; }
@keyframes la-tick-now { 0% { stroke-dashoffset: 14; } 35%, 100% { stroke-dashoffset: 0; } }
.lsk.act .a-slides .flip { animation: la-flip-now 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes la-flip-now { 0% { transform: none; opacity: 1; } 40% { transform: perspective(300px) rotateY(-75deg) translateX(-6px); opacity: 0; } 41% { transform: translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.lsk.act .a-site .b { animation: la-build-now 1.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
.lsk.act .a-site .b2 { animation-delay: 0.1s; } .lsk.act .a-site .b3 { animation-delay: 0.2s; } .lsk.act .a-site .b4 { animation-delay: 0.3s; } .lsk.act .a-site .b5 { animation-delay: 0.4s; }
@keyframes la-build-now { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
.lsk.act .a-chat .dot { animation-duration: 0.5s; }
.lsk.act .a-pic .sun { animation: la-sun-now 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes la-sun-now { 0% { transform: translateY(26px); } 100% { transform: translateY(-4px); } }

/* under the message box: the model picker and the usage ring (2026-10-08) */
.under-box { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: 6px 4px 0; position: relative; z-index: 3; }
.under-box[hidden] { display: none; }
.mp-wrap, .ur-wrap { position: relative; }
.mp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 9px; background: none; color: var(--dim); font: 500 13.5px var(--sans); cursor: pointer; }
.mp-btn:hover, .mp-btn[aria-expanded="true"] { background: var(--raised); color: var(--text); }
.mp-menu, .ur-pop { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 40; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); animation: cb-in 0.2s cubic-bezier(.2, .7, .2, 1); }
.mp-menu { width: min(330px, calc(100vw - 32px)); padding: 6px; }
.mp-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mp-menu button:hover { background: var(--raised); }
.mp-menu b { display: block; font-size: 14.5px; font-weight: 500; } .mp-menu small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.mp-tick { flex: none; color: var(--link); visibility: hidden; } .mp-menu [aria-checked="true"] .mp-tick { visibility: visible; }
.mp-note { margin: 4px 0 0; padding: 9px 12px 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); line-height: 1.45; }
.ur-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--link); cursor: pointer; }
.ur-btn:hover, .ur-btn[aria-expanded="true"] { background: var(--raised); }
.ur-btn.hot { color: var(--warn); }
.ur-btn circle { transition: stroke-dasharray 0.6s cubic-bezier(.2, .7, .2, 1); }
.ur-pop { width: min(380px, calc(100vw - 32px)); padding: 14px 16px 16px; }
.ur-head { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 0 6px; border: 0; background: none; color: var(--dim); font: 13px var(--sans); cursor: pointer; }
.ur-head b { color: var(--text); font-weight: 500; } .ur-head:hover { color: var(--text); }
.ur-row { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; font-size: 14px; }
.ur-row span { font-weight: 500; } .ur-row small { margin-left: auto; color: var(--dim); font-size: 12.5px; } .ur-row b { font: 500 13px var(--mono); min-width: 38px; text-align: right; }
.ur-bar { height: 5px; margin-top: 8px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.ur-bar i { display: block; height: 100%; width: 0; background: var(--link); border-radius: 3px; transition: width 0.6s cubic-bezier(.2, .7, .2, 1); } .ur-bar i.hot { background: var(--warn); }
.ur-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; } .ur-acts button { padding: 9px 12px; font-size: 14px; }
.ur-acts button[hidden] { display: none; } .ur-acts:has(button[hidden]) { grid-template-columns: 1fr; }
.limit-warn { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--dim); font-size: 14px; animation: cb-in 0.25s cubic-bezier(.2, .7, .2, 1); }
.limit-warn[hidden] { display: none; }
.limit-warn span { flex: 1; color: var(--text); }
.lw-go { padding: 7px 12px; border: 0; border-radius: 9px; background: var(--raised); color: var(--text); font: 500 13.5px var(--sans); cursor: pointer; white-space: nowrap; }
.lw-go:hover { filter: brightness(1.15); }
.limit-warn .icon { width: 30px; height: 30px; }
@media (max-width: 600px) { .limit-warn { font-size: 13px; } .mp-btn { font-size: 13px; } }
/* backup codes as the last welcome step (2026-10-08) */
.ob-codes { margin: 14px 0 12px; }
.ob-code-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ob-code-acts .ghost { padding: 8px 14px; font-size: 14px; }

/* phones in the browser: when the keyboard opens the page is fitted to what's left above it (app.js sets these) */
@media (max-width: 720px) { html.vv .app, html.vv .landing { transform: translateY(var(--app-top, 0px)); } }

/* every checkbox: an empty outlined box when off, a filled box with a tick when on, the same in every browser (2026-10-08) */
input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none; display: inline-grid; place-content: center; width: 20px; height: 20px; margin: 0;
  border: 1.5px solid var(--dim); border-radius: 6px; background: transparent; cursor: pointer; vertical-align: middle; transition: background .15s, border-color .15s, transform .1s; }
input[type="checkbox"]::before { content: ""; width: 11px; height: 11px; background: var(--on-a, #111); clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 22%, 86% 8%, 40% 70%); transform: scale(0); transition: transform .15s cubic-bezier(.2, .9, .3, 1.3); }
input[type="checkbox"]:checked { background: var(--a); border-color: var(--a); }
input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="checkbox"]:hover { border-color: var(--text); }
input[type="checkbox"]:active { transform: scale(.92); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: .45; cursor: default; }
/* landing drawings added 2026-10-08 so no feature shows twice: design, spreadsheet, research */
.a-design .shape { fill: none; stroke: var(--link); stroke-width: 2.4; } .a-design .s2 { stroke: #f5b25a; }
.a-design .s1 { transform-box: fill-box; transform-origin: center; animation: la-breathe 4s ease-in-out infinite; }
.a-design .pen { fill: var(--dim); opacity: .7; transform-box: fill-box; transform-origin: 0 100%; animation: la-pen 3.2s ease-in-out infinite; }
.a-sheet .line { fill: none; } .a-sheet .cell { fill: var(--link); opacity: .85; animation: la-cell 4s steps(1) infinite; }
.a-research .ring { fill: none; stroke: var(--link); stroke-width: 3; } .a-research .handle { stroke: var(--link); stroke-width: 4; stroke-linecap: round; }
.a-research .lens { animation: la-scan 5s ease-in-out infinite; }
@keyframes la-breathe { 50% { transform: scale(1.08); } }
@keyframes la-pen { 50% { transform: rotate(-12deg) translate(-4px, -2px); } }
@keyframes la-cell { 0% { transform: translate(0, 0); } 33% { transform: translate(30px, 0); } 66% { transform: translate(0, -16px); } }
@keyframes la-scan { 50% { transform: translate(-30px, -8px); } }

/* the install offer: a sheet that slides up from the bottom over a blurred page (2026-10-08) */
.get-app { position: fixed; inset: 0; z-index: 80; }
.get-app[hidden] { display: none; }
.ga-shade { position: absolute; inset: 0; background: rgba(4, 7, 14, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s ease; }
.ga-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; padding: 10px 22px calc(18px + env(safe-area-inset-bottom)); background: var(--panel); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .45); display: grid; justify-items: center; text-align: center; transform: translateY(105%); transition: transform .42s cubic-bezier(.2, .9, .25, 1); }
.get-app.on .ga-shade { opacity: 1; } .get-app.on .ga-sheet { transform: none; }
.ga-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 18px; }
.ga-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ga-icon .logo { width: 44px; height: 44px; }
.ga-sheet h2 { margin: 16px 0 4px; font: 400 26px/1.2 var(--serif); letter-spacing: -0.01em; }
.ga-sub { margin: 0 0 16px; color: var(--dim); font-size: 14.5px; }
.ga-perks, .ga-steps { list-style: none; margin: 0 0 18px; padding: 0; width: 100%; display: grid; gap: 10px; text-align: left; }
.ga-perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; } .ga-perks svg { color: var(--link); flex: none; }
.ga-steps { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.ga-steps li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.4; }
.ga-steps b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--raised); font: 600 12.5px var(--sans); }
.ga-steps svg { vertical-align: -3px; color: var(--link); }
.ga-go { width: 100%; padding: 14px; font-size: 16px; border-radius: 14px; }
.ga-no { margin-top: 6px; padding: 12px; border: 0; background: none; color: var(--dim); font: 500 15px var(--sans); cursor: pointer; }
@media (min-width: 721px) { .ga-sheet { bottom: 24px; border-radius: 26px; border-bottom: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) { .ga-sheet, .ga-shade { transition: none; } }
html.vv, html.vv body { height: var(--app-h, 100dvh); overflow: hidden; overscroll-behavior: none; }
.ga-steps.go li:nth-child(2) { color: var(--text); } .ga-steps.go li:nth-child(2) b { background: var(--a); color: var(--on-a); }

/* phones: settings, the payment sheet and the welcome steps scroll as one whole sheet, not a box inside a clipped box,
   which the iPhone home-screen app often refuses to scroll (worst when the finger starts on the card number field) */
@media (max-width: 720px) {
  #settings[open] { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  #settings .tabs { position: sticky; top: 0; z-index: 3; background: var(--bg); padding-right: 60px; }
  #settings .set-close { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 4; }
  #settings section { overflow: visible; height: auto; }
  #pay[open] { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  #pay #checkout { overflow: visible; min-height: 0; }
  .onboard { min-height: 0; max-height: calc(100dvh - 24px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .onboard[open] { display: block; }
}
@media (max-width: 720px) { .ob-codes { grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 15px; } }

/* the page-load preloader: the bxzex mark breathing inside a slowly turning ring (2026-10-08) */
.preload { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--bg); transition: opacity .35s ease; }
.preload[hidden] { display: none; }
.preload.done { opacity: 0; pointer-events: none; }
.preload .pl-mark { position: relative; display: grid; place-items: center; width: 84px; height: 84px; }
.preload .logo { width: 44px; height: 44px; animation: pl-breathe 1.8s ease-in-out infinite; }
.preload .pl-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--text); animation: pl-spin 1.1s linear infinite; }
@keyframes pl-breathe { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1); opacity: 1; } }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .preload .logo, .preload .pl-ring { animation: none; } }

/* the 404 page */
body.nf { min-height: 100dvh; display: grid; place-items: center; background: var(--bg); color: var(--text); padding: 24px; }
.nf-main { max-width: 460px; text-align: center; display: grid; justify-items: center; }
.nf-brand .logo { width: 34px; height: 34px; } .nf-brand { margin-bottom: 26px; }
.nf-art { width: min(260px, 70vw); height: auto; margin-bottom: 18px; overflow: visible; }
.nf-bubble { fill: var(--panel); stroke: var(--line); stroke-width: 2.5; stroke-linejoin: round; }
.nf-q { fill: var(--dim); font: 600 36px var(--serif, serif); letter-spacing: .04em; }
.nf-ring { fill: var(--bg); stroke: var(--text); stroke-width: 4; } .nf-handle { stroke: var(--text); stroke-width: 6; stroke-linecap: round; }
.nf-lens { animation: nf-search 4.5s ease-in-out infinite; transform-origin: 184px 96px; }
@keyframes nf-search { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-58px, -24px); } 60% { transform: translate(-108px, -6px); } }
.nf-main h1 { margin: 0 0 8px; font: 400 32px/1.2 var(--serif, serif); letter-spacing: -0.01em; }
.nf-main p { margin: 0 0 24px; color: var(--dim); font-size: 15.5px; line-height: 1.5; }
.nf-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; } .nf-acts a { text-decoration: none; padding: 11px 20px; }
@media (prefers-reduced-motion: reduce) { .nf-lens { animation: none; } }

/* a reload inside a chat: the start screen never flashes while that chat comes back */
html[data-reopen] .main.fresh .hello, html[data-reopen] .main.fresh .hello-water, html[data-reopen] .main.fresh .starters, html[data-reopen] .main.fresh .resume { visibility: hidden; }
/* a file being made looks like a reply working: the turning logo, what it's doing, a clock */
.doc-card:has(> .file-working) { border: 0; background: none; padding: 0; margin: 8px 0 12px; }
.file-working { margin: 8px 0 12px; }
.working .w-frame + .w-trail, .working .w-frame ~ .w-line { margin-top: 10px; }
.working > .w-frame:first-child { margin-top: 0; }
/* documents: bold display headings, a clear hierarchy, callout boxes (2026-10-09) */
.doc-page { font-size: 17px; line-height: 1.75; }
.doc-page h1, .doc-page h1:first-child { font: 800 46px/1.08 "Fraunces", var(--serif); letter-spacing: -0.02em; margin: 0 0 22px; color: var(--text); }
.doc-page h2 { font: 700 28px/1.2 "Fraunces", var(--serif); letter-spacing: -0.01em; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.doc-page h3 { font: 600 19px/1.3 var(--sans); margin: 28px 0 8px; letter-spacing: -0.005em; }
.doc-page strong, .doc-page b { font-weight: 600; color: var(--text); }
.doc-page ul, .doc-page ol { padding-left: 22px; margin: 6px 0 16px; } .doc-page li { margin: 5px 0; padding-left: 4px; }
.doc-page li::marker { color: var(--link); font-weight: 600; }
.doc-page blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--link); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--link) 9%, transparent); color: var(--text); }
.doc-view-body .paper h1 { font: 800 40px/1.1 "Fraunces", Georgia, serif; letter-spacing: -0.02em; }
.doc-view-body .paper h2 { font: 700 26px/1.2 "Fraunces", Georgia, serif; border-bottom: 1px solid #e3e6ec; padding-bottom: 6px; margin-top: 34px; }
.doc-view-body .paper h3 { font: 600 18px/1.3 var(--sans); }
.doc-view-body .paper blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid #2f5bea; background: #eef2fd; border-radius: 0 8px 8px 0; }
.art-paper h1, .art-paper h2 { font-family: "Fraunces", var(--serif); font-weight: 800; }
/* a design waiting on its painted pictures: hidden until they're in, the working line under the board */
.board.painting > svg { visibility: hidden; }
.board-wait { margin: 14px auto 0; display: flex; justify-content: center; }
.deck-wait { height: 100%; align-items: center; margin: 0; }
.board.painting { position: relative; background: var(--panel); }
.board-pool { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.board-pool canvas { width: 100%; height: 100%; display: block; }
.doc-card:has(> .file-build) { border: 0; background: none; padding: 0; margin: 0; }
/* One progress look everywhere (2026-10-09, Brian: "the same way the chat does it"): no box. On top, the turning logo with
   what it's doing now and a clock; underneath, each finished step with a check. Used by replies, research, pictures,
   videos, websites, documents, spreadsheets, slides, designs and the agent. */
.working:not(.note) { display: flex; flex-direction: column; margin: 8px 0; }
.working:not(.note) > .w-frame { order: -1; margin: 0 0 12px; }
.working .w-trail { margin: 8px 0 0; }
.working .w-time { font: 400 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--dim); }
.board-wait.working, .deck-wait.working { margin: 14px auto 0; }
.build { border: 0; border-radius: 0; padding: 0; max-width: none; margin: 8px 0; }
.build summary { color: var(--text); font-size: 14.5px; gap: 10px; cursor: default; }
.build summary .logo { width: 20px; height: 20px; }
.build summary > span:nth-child(2), .build .b-label { color: var(--text); }
.build-time, .b-clock { font: 400 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--dim); }
.build ol { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; line-height: 1.45; }
.build ol li { position: relative; padding-left: 30px; font-size: 13.5px; color: var(--dim); }
.build ol li::before { content: ""; position: absolute; left: 8px; top: 50%; width: 9px; height: 5px; border-left: 1.6px solid var(--dim); border-bottom: 1.6px solid var(--dim); transform: translateY(-70%) rotate(-45deg); }
.build ol li.now { color: var(--text); }
.build ol li.now::before { width: 6px; height: 6px; left: 10px; border: 0; border-radius: 50%; background: var(--text); transform: translateY(-50%); animation: pulse-t 1.4s ease-in-out infinite; }
.agent-steps ol li.plan::before { border: 0; transform: translateY(-50%); }
/* a deck waiting on its pictures: the same water as everything else, in a slide-shaped frame */
.deck-loading { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.deck-pool { position: relative; width: min(100%, 960px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.deck-pool canvas { width: 100%; height: 100%; display: block; }
.deck-loading .deck-wait { height: auto; margin-top: 14px; }
/* the side panel while a file is being made: the flowing water fills it, with what it's doing at the bottom */
.canvas-body.v-loading { position: relative; overflow: hidden; padding: 0; }
.panel-pool { position: absolute; inset: 0; }
.panel-pool canvas { width: 100%; height: 100%; display: block; }
.panel-wait.working { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(6, 9, 15, 0.55); white-space: nowrap; }
.working .w-trail li.now { color: var(--text); }
.working .w-trail li.now::before { display: block; width: 6px; height: 6px; left: 10px; border: 0; border-radius: 50%; background: var(--text); transform: translateY(-50%); animation: pulse-t 1.4s ease-in-out infinite; }
/* a see-through picture sits on a soft checkerboard so you can tell it has no background */
figure.made img[src^="data:image/png"] { background: repeating-conic-gradient(#2a2f38 0 25%, #1c2028 0 50%) 0 0 / 22px 22px; }

/* ---- the landing page (2026-10-10, rebuilt plain): real product UI and plain lists, no icon cards, labels or glass ---- */
.landing { scroll-behavior: smooth; }
.l-nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 14px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.l-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 20px/1 var(--serif); }
.l-brand .logo { width: 28px; height: 28px; }
.l-links { display: flex; gap: 24px; }
.l-links a { color: var(--dim); text-decoration: none; font-size: 14.5px; }
.l-links a:hover { color: var(--text); }
.l-nav-cta { margin-left: auto; display: flex; gap: 8px; }
.l-grid { min-height: calc(var(--app-h, 100dvh) - 130px); }
.landing h2 { font: 400 clamp(30px, 3.6vw, 44px)/1.12 var(--serif); letter-spacing: -0.015em; margin: 0 0 18px; }
.l-row { max-width: 1120px; width: 100%; margin: 0 auto; padding: 120px 0 0; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.l-row-flip .l-text { order: 0; }
.l-text p { color: var(--dim); font-size: 16.5px; line-height: 1.65; margin: 0 0 14px; max-width: 46ch; }
.l-quiet { font-size: 14.5px !important; }
.l-quiet .link { font-size: inherit; text-decoration: underline; color: var(--text); }
#l-private { grid-template-columns: minmax(0, 1fr); } #l-private .l-text p { max-width: 62ch; }
/* a real chat, drawn with the app's own look */
.l-demo { margin: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--side); overflow: hidden; }
.d-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.d-bar .logo { width: 18px; height: 18px; } .d-bar b { font-weight: 600; } .d-bar span:last-child { color: var(--dim); margin-left: auto; }
.d-body { padding: 22px 22px 26px; display: grid; gap: 18px; font-size: 15px; line-height: 1.6; }
.d-you { justify-self: end; max-width: 82%; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 10px 14px; }
.d-ai p { margin: 0 0 12px; }
.d-file { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; background: var(--bg); }
.d-ic { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.d-file div { display: grid; gap: 2px; margin-right: auto; } .d-file b { font-size: 14.5px; } .d-file div span { font-size: 13px; color: var(--dim); }
.d-file em { font-style: normal; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; }
/* what it makes: a plain list with hairlines */
.l-list { margin: 0; border-top: 1px solid var(--line); }
.l-list div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.l-list dt { font-weight: 600; font-size: 15.5px; } .l-list dd { margin: 0; color: var(--dim); font-size: 15.5px; line-height: 1.55; }
/* plans as a table */
.l-pricing { max-width: 1120px; width: 100%; margin: 0 auto; padding: 120px 0 0; }
.l-table { border-top: 1px solid var(--line); font-size: 15px; }
.t-row { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: center; }
.t-row > span:first-child { color: var(--dim); }
.t-head span { font-weight: 600; font-size: 16px; color: var(--text) !important; }
.t-row b { font: 400 22px/1 var(--serif); }
.t-cta { border-bottom: 0; padding-top: 22px; }
.l-close { max-width: 1120px; width: 100%; margin: 0 auto; padding: 120px 0 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.l-close h2 { margin: 0; }
.l-close .solid { padding: 13px 22px; font-size: 15.5px; }
.l-bigfoot { max-width: 1120px; width: 100%; margin: 0 auto; padding: 32px 0 40px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.l-flinks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.l-flinks .link { color: var(--dim); font-size: 14px; } .l-flinks .link:hover { color: var(--text); }
.l-copy-note { margin: 0 0 0 auto; color: var(--dim); font-size: 13.5px; }
.landing .link:focus-visible, .landing a:focus-visible, .landing button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 900px) {
  .l-links { display: none; }
  .l-row { grid-template-columns: 1fr; gap: 32px; padding-top: 80px; }
  .l-pricing, .l-close { padding-top: 80px; }
  .t-row { grid-template-columns: 1fr 1fr 1fr 1fr; font-size: 13.5px; gap: 10px; }
}
@media (max-width: 520px) {
  .l-nav-cta .ghost { display: none; }
  .l-list div { grid-template-columns: 1fr; gap: 4px; }
  .t-row { grid-template-columns: 1.1fr repeat(3, 1fr); font-size: 12.5px; }
  .t-row b { font-size: 17px; }
  .d-file { flex-wrap: wrap; }
  .l-copy-note { margin-left: 0; }
}
.d-ic { display: grid; place-items: center; color: var(--text); }
.t-cta button { padding: 9px 16px; font-size: 14px; white-space: nowrap; min-height: 38px; }
@media (max-width: 520px) { .t-cta button { padding: 8px 9px; font-size: 12px; min-height: 34px; } }

/* ---- the landing page in the chat's own interface (2026-10-10): its start screen, composer and starter rows, then
   sections drawn as the app's panels and rows, all in the app's colors ---- */
.l-hero { max-width: 760px; width: 100%; margin: 0 auto; padding: clamp(56px, 10vh, 120px) 0 24px; display: grid; gap: 0; }
.l-hello { font: 400 clamp(34px, 4vw, 44px)/1.15 var(--serif); letter-spacing: -0.02em; margin: 0 0 12px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.l-hello .logo { width: 42px; height: 42px; }
.l-hero .l-sub { text-align: center; color: var(--dim); font: 400 17px/1.5 var(--sans); margin: 0 auto 30px; max-width: 520px; }
.l-hero .l-invited { text-align: center; margin: 0 0 14px; }
.l-composer { border-radius: 20px; padding: 14px 14px 10px 18px; }
.l-composer textarea { width: 100%; min-height: 56px; resize: none; border: 0; background: none; color: var(--text); font: 16px/1.5 var(--sans); outline: none; }
.l-composer .grow { flex: 1; }
.l-hint { color: var(--dim); font-size: 13px; }
.l-starts { display: grid; margin-top: 18px; }
.l-start { display: flex !important; }
.l-auth { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.l-auth button { padding: 11px 20px; font-size: 15px; }
.l-hero .l-fine { text-align: center; color: var(--dim); font-size: 12.5px; line-height: 1.5; margin: 14px auto 0; max-width: 480px; }
.l-hero .l-fine .link { font-size: inherit; color: var(--dim); text-decoration: underline; }
/* sections: the app's panels */
.landing h2 { font: 400 clamp(28px, 3vw, 36px)/1.15 var(--serif); letter-spacing: -0.02em; }
.l-row, .l-pricing { padding-top: 88px; }
.l-list { border: 1px solid var(--line); border-radius: 18px; background: var(--side); overflow: hidden; }
.l-list div { padding: 16px 20px; grid-template-columns: 170px minmax(0, 1fr); }
.l-list div:last-child { border-bottom: 0; }
.l-demo { background: var(--bg); box-shadow: var(--lift); border-radius: 18px; }
.d-bar { background: var(--side); }
.d-you { background: var(--bubble); border: 0; border-radius: 18px; }
.d-file { background: var(--panel); box-shadow: var(--lift); border-color: var(--line); }
#l-private .l-text { border: 1px solid var(--line); border-radius: 18px; background: var(--side); padding: 32px; }
.l-table { border: 1px solid var(--line); border-radius: 18px; background: var(--side); overflow: hidden; }
.t-row { padding: 15px 20px; }
.t-head { background: var(--panel); }
.t-cta { padding: 18px 20px 20px; }
.l-close { border-bottom: 0; }
@media (max-width: 560px) { .l-auth { flex-direction: column; } .l-list div { grid-template-columns: 1fr; } .t-row { padding: 13px 12px; } }
