/* The dark look "B · Raycast" for the whole site: tokens, fonts, base and the small set of components every page uses.
   site/LOOK.md says where each value comes from and lists every adaptation. Dark only. Corners are literal values on
   the source's scale (6, 8, 12, 16 px and the 9999px pill; 50% for an avatar or a dot; 4px for ticks, 5px for keycaps),
   so the corner scan in look.test.mjs can read them. */

/* Self-hosted fonts (site/LOOK.md, Fonts): one face per weight and subset, each with its subset's unicode range. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/inter-400-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/inter-400-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/inter-500-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/inter-500-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/inter-600-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/inter-600-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/jetbrains-mono-400-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/jetbrains-mono-600-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Sans Thai";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/ibm-plex-sans-thai-400-thai.woff2") format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}
@font-face{font-family:"IBM Plex Sans Thai";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/ibm-plex-sans-thai-500-thai.woff2") format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}
@font-face{font-family:"IBM Plex Sans Thai";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/ibm-plex-sans-thai-600-thai.woff2") format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}

/* The source's tokens (spec 5.2) and depth levels (spec 5.4). Every colour is one of these or mixed from them with
   color-mix(in srgb, …), or one of the few literal values the spec writes itself (hovers, rings, veils). */
:root{
  color-scheme:dark;
  --bg:#07080a;--surface:#101111;--raise:#1b1c1e;
  --fg:#f9f9f9;--fg-strong:#ffffff;--fg-2:#cecece;--muted:#9c9c9d;--meta:#6a6b6c;
  --border:rgba(255,255,255,.06);--border-input:rgba(255,255,255,.08);--border-btn:rgba(255,255,255,.1);--divider:#252829;
  --blue:hsl(202,100%,67%);--ok:hsl(151,59%,59%);--warn:hsl(43,100%,60%);--red:#FF6363;
  --cta:hsla(0,0%,100%,.815);--cta-fg:#18191a;
  --key-1:#121212;--key-2:#0d0d0d;
  --glow-warm:0 0 20px 5px rgba(215,201,175,.05);
  --focus-ring:0 0 0 3px hsla(202,100%,67%,.35);
  --ring:0 0 0 1px #1b1c1e,inset 0 0 0 1px #07080a;
  --raised:inset 0 1px 0 rgba(255,255,255,.05),0 1.189px 2.377px rgba(0,0,0,.28),0 0 0 1px rgba(255,255,255,.06);
  --floating:0 0 0 1px rgba(255,255,255,.08),0 0 0 2px rgba(0,0,0,.5),0 0 14px rgba(255,255,255,.06),0 24px 48px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.05);
  --keycap:0 1.5px .5px 2.5px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(0,0,0,.6);
  /* Mixed from the tokens: the chosen and pressed fill, this turn's change tint in From scratch's pane, and the easing
     of every arrival and move. */
  --chosen:color-mix(in srgb,var(--blue) 12%,var(--surface));
  --change:color-mix(in srgb,var(--blue) 14%,var(--bg));
  --ease:cubic-bezier(.16,1,.3,1);
  --font:Inter,"IBM Plex Sans Thai",system-ui,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,monospace;
}

/* Base: body and UI text is Inter 500 with +0.2px tracking on the page's near-black; type scale 13/15/17/21/27/35. */
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:500 15px/1.5 var(--font);letter-spacing:.2px;font-feature-settings:"calt","kern","liga","ss03";-webkit-font-smoothing:antialiased}
h1,h2,h3{margin:0;line-height:1.2;text-wrap:balance}
h1{font-size:27px;font-weight:600}
h2{font-size:21px;font-weight:600}
h3{font-size:17px;font-weight:600}
b,strong{font-weight:600}
th{font-weight:600}
p{margin:0;text-wrap:pretty}
a{color:var(--blue);text-decoration-thickness:1px;text-underline-offset:3px}
img,svg{max-width:100%}
img{height:auto}
/* The browser sets letter-spacing:normal on controls; they take the body's tracking. */
button,input,textarea,select{font:inherit;color:inherit;letter-spacing:inherit}
/* Mono is for small labels only (Adaptation Note 1): step lines, chips, paths, meta lines. */
code,.mono{font-family:var(--mono);font-size:13px}
/* Focus is an outline in the focus ring's colour and width, so the layout check doesn't count it as ink and
   forced-colors mode keeps it (Adaptation Note 19); a field also brightens its hairline. */
:focus-visible{outline:3px solid hsla(202,100%,67%,.35);outline-offset:0}
:is(input,select,textarea):focus-visible:not(.prompt-box *){border-color:rgba(255,255,255,.16)}

/* Buttons: neutral by default, transparent on the Raised depth, dimming to .6 on hover; the one main action of a
   screen is the white pill, which brightens to white instead (Adaptation Note 4, M16). */
.btn,.prompt-box .send{display:inline-flex;align-items:center;justify-content:center;justify-self:start;gap:8px;min-height:40px;padding:8px 16px;border:0;border-radius:6px;background:transparent;color:var(--fg);box-shadow:var(--raised);font:600 15px/1.2 var(--font);letter-spacing:.3px;text-decoration:none;cursor:pointer;transition:opacity 150ms ease}
/* Only under a pointer that hovers: a tap leaves :hover behind on a touch screen. The open view never dims. */
@media (hover:hover) and (pointer:fine){.btn:hover{opacity:.6}}
.views .btn[aria-pressed="true"]:hover{opacity:1}
.btn.primary,.prompt-box .send{background:var(--cta);color:var(--cta-fg);border-radius:9999px;box-shadow:none;font-weight:600;transition:background-color 150ms ease}
.btn.primary:hover,.prompt-box .send:hover{opacity:1;background:var(--fg-strong)}
/* A main action that can't go is a neutral button; this comes after the hover, so a disabled Send never turns white. */
.btn:disabled,.btn[aria-disabled="true"],.prompt-box .send:disabled{opacity:.5;cursor:not-allowed}
.btn.primary:is(:disabled,[aria-disabled="true"]),.prompt-box .send:disabled{opacity:.5;background:transparent;color:var(--fg);box-shadow:var(--raised)}
/* An icon button has a hairline but no depth: it sits in the 56 px rail with 9 px to each side. */
.icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;padding:0;border:1px solid var(--border-btn);border-radius:6px;background:transparent;color:var(--fg);cursor:pointer;transition:background-color 150ms ease}
.icon-btn:hover{background:rgba(255,255,255,.06)}
.icon-btn:disabled{opacity:.5;cursor:not-allowed}

/* Containers: the surface on the Ring depth. */
.box{padding:16px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring)}
.card{display:grid;gap:12px;padding:12px 16px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring)}
.chip{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:4px 8px;border:0;border-radius:9999px;background:var(--surface);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);color:var(--fg);font:500 13px/1.3 var(--mono);text-decoration:none}
button.chip{cursor:pointer}
button.chip:hover:not([aria-pressed="true"]){background:var(--raise)}
/* What you chose or pressed is the blue ring on the blue tint; where you are is the raised fill. */
.chip[aria-pressed="true"],.icon-btn[aria-pressed="true"]{background:var(--chosen);box-shadow:inset 0 0 0 1px var(--blue);color:var(--fg-strong)}
.icon-btn[aria-current="page"]{background:var(--raise);color:var(--fg-strong)}

/* Feedback: a banner is an account-wide line (paused, a payment to finish); a notice belongs to one place on the
   page. Both are the source's alert card: the surface, the Ring, and a 3 px bar on the left in the status colour. */
.banner,.main>.banner{padding:8px 16px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring),inset 3px 0 0 var(--warn);color:var(--fg);font-size:15px;line-height:1.5}
.main>.banner{flex:none;margin:12px 12px 0}
/* A link in a banner is a few words: it stays on one line, whole to tap. */
.main>.banner a{color:var(--fg);text-decoration:underline;white-space:nowrap}
.notice{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:8px 12px;border:0;border-radius:12px;background:var(--surface);color:var(--fg);box-shadow:var(--ring)}
.notice.ok{box-shadow:var(--ring),inset 3px 0 0 var(--ok)}
.notice.warn{box-shadow:var(--ring),inset 3px 0 0 var(--warn)}
.notice.bad{box-shadow:var(--ring),inset 3px 0 0 var(--red)}

/* The workspace frame: a fixed sidebar (a 56 px rail, 240 px opened; a sheet over the page under 780 px) and the
   main area beside it, 8 px of page away so the two never touch, which scrolls by itself so the page never does. */
.side{position:fixed;inset:0 auto 0 0;z-index:10;display:flex;flex-direction:column;align-items:center;gap:8px;width:56px;padding:12px 0;border-right:1px solid var(--divider);background:var(--bg);overflow:hidden auto;transition:width 150ms ease}
.side.open{align-items:stretch;width:240px;padding:12px}
.main{display:flex;flex-direction:column;min-width:0;height:100dvh;margin-left:64px;overflow-y:auto}
.side.open~.main{margin-left:248px}
/* The word a page shows while it asks who is signed in, in the middle of the window. */
.boot{display:grid;place-items:center;height:100dvh;font-family:var(--mono);font-size:13px;color:var(--muted)}
.head{position:relative;display:flex;flex:none;flex-wrap:wrap;align-items:center;gap:12px;min-height:56px;padding:8px 16px;border-bottom:1px solid var(--border);background:var(--bg)}
.head h1{min-width:0;font-size:21px;overflow-wrap:anywhere}
@media (max-width:779px){
  .side.open~.main{margin-left:64px}
  .head{padding:8px 12px}
}
.head:empty{display:none}

/* The sidebar's parts (side.js). */
.side-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;padding:0;border:1px solid var(--border-btn);border-radius:6px;background:transparent;color:var(--fg);cursor:pointer;transition:background-color 150ms ease}
.side-btn:hover{background:rgba(255,255,255,.06)}
/* A side button whose panel or menu is open is chosen blue. */
.side-btn[aria-expanded="true"]{background:var(--chosen);box-shadow:inset 0 0 0 1px var(--blue);color:var(--fg-strong)}
.side-btn:disabled{opacity:.5;cursor:not-allowed}
.side-btn svg{flex:none;width:20px;height:20px}
.side-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
/* Folded, only the icons show; opened, the words do, and search is its field. */
.side:not(.open) :is(.wordmark,.label,.find,.games,.who-text),.side.open :is(.find-btn,.games-btn){display:none}
.side.open .new-game{width:100%;justify-content:flex-start;gap:8px;padding:0 12px;font-weight:600}
.find{flex:none;width:100%;min-height:36px;padding:4px 8px;border:1px solid var(--border-input);border-radius:8px;background:var(--bg);color:var(--fg)}
.find::placeholder,.rename-field::placeholder{color:var(--meta)}
/* The games scroll by themselves, so the account stays at the foot. A long or unbroken name is cut, whole in its title. */
.games{display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-height:0;overflow-y:auto}
.games :focus-visible{outline-offset:-3px}
.side-label{padding-top:4px;font:400 13px/1.4 var(--mono);color:var(--muted)}
.game,.thread{display:flex;align-items:center;gap:8px;min-width:0;padding:6px 8px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.game{flex:none;font-weight:600}
.game span,.thread span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game svg{flex:none;width:14px;height:14px;transition:transform 150ms ease}
.game[aria-expanded="false"] svg{transform:rotate(-90deg)}
.game:hover,.thread:hover{background:rgba(255,255,255,.04)}
/* A project's row: its heading takes the room New session and the menu's button leave. The dot says a connected
   Studio has one of its places open, as the connection's dot does. Its menu opens under it, in the list. */
.proj{display:flex;flex:none;align-items:center;gap:8px;min-width:0}
.proj .game{flex:1 1 auto}
.game .dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--ok)}
.new-chat,.proj-more{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer}
.new-chat svg,.proj-more svg{width:16px;height:16px}
.proj-more svg{stroke-width:4}
.new-chat:hover,.proj-more:hover{background:rgba(255,255,255,.06)}
.proj-more[aria-expanded="true"]{background:var(--chosen);box-shadow:inset 0 0 0 1px var(--blue);color:var(--fg-strong)}
.proj-menu{position:fixed;z-index:30;display:flex;flex-direction:column;gap:8px;width:200px;padding:8px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--floating)}
.proj-menu button{min-height:32px;padding:4px 8px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;font-size:14px;text-align:left;cursor:pointer}
.proj-menu button:hover{background:rgba(255,255,255,.04)}
.proj:is(.asking,.naming){flex-wrap:wrap;gap:8px;padding:8px;border:1px solid var(--border);border-radius:12px;font-size:14px}
.proj.asking span{flex:1 1 100%}
.row{display:flex;flex:none;align-items:center;gap:8px;margin-left:16px}
.thread{flex:1;justify-content:space-between;font-size:14px}
.thread small{flex:none;font:400 12px/1.4 var(--mono);color:var(--muted)}
/* A session with a job that hasn't ended: a still mark before its day. */
.thread .busy{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:var(--blue);vertical-align:middle}
/* The chat the page shows is where you are: the raised fill. */
.thread.on,.thread.on:hover{background:var(--raise);color:var(--fg-strong)}
.thread.on small{color:var(--muted)}
.rename,.trash{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;overflow:hidden;cursor:pointer}
.rename svg,.trash svg{width:16px;height:16px}
.rename:hover,.trash:hover{background:rgba(255,255,255,.06)}
/* With a mouse, the pencil and the trash take the day's place on the row it points at or the row with the focus, so
   the titles keep their width; on a touch screen they always show. */
@media (hover:hover){
  .row:not(.asking):not(.naming):not(:hover):not(:focus-within){gap:0}
  .row:not(.asking):not(.naming):not(:hover):not(:focus-within) :is(.rename,.trash){width:0;visibility:hidden}
  .row:is(:hover,:focus-within) .thread small{display:none}
}
.row:is(.asking,.naming){flex-wrap:wrap;gap:8px;padding:8px;border:1px solid var(--border);border-radius:12px;font-size:14px}
.row.asking span{flex:1 1 100%}
.rename-field{flex:1 1 100%;width:0;min-width:0;height:32px;padding:0 8px;border:1px solid var(--border-input);border-radius:8px;background:var(--bg);color:var(--fg)}
/* Confirm in a row: Yes is the white pill at small size, No the neutral button (spec 5.5). */
.yes,.no{min-height:32px;padding:4px 12px;border:1px solid var(--border-btn);border-radius:6px;background:transparent;color:var(--fg);font:600 14px/1.2 var(--font);letter-spacing:.3px;cursor:pointer;transition:opacity 150ms ease}
@media (hover:hover) and (pointer:fine){.no:hover{opacity:.6}}
.yes{border-color:transparent;border-radius:9999px;background:var(--cta);color:var(--cta-fg)}
.yes:hover{background:var(--fg-strong)}
.yes:disabled{background:transparent;color:var(--fg);border-color:var(--border-btn)}
.yes:disabled,.no:disabled{opacity:.5;cursor:not-allowed}
/* The foot: the account. The Studio's state shows on the send box's chip only (the owner, 2026-10-30). */
.who{display:flex;flex:none;align-items:center;gap:8px;min-width:0;margin-top:auto}
.avatar{overflow:hidden;font-weight:600}
.avatar.face img{width:100%;height:100%;object-fit:cover}
.who-text{display:grid;min-width:0;line-height:1.3}
.who-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.side .credits{font-size:13px;color:var(--muted);white-space:nowrap}
.side .credits b{font:600 13px/1.3 var(--mono);color:var(--fg)}
/* The account menu opens beside the rail, or above the account in the opened panel. */
.account-menu{position:fixed;z-index:30;left:64px;bottom:12px;display:grid;gap:8px;width:min(256px,calc(100vw - 80px));padding:12px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--floating)}
.side.open~.account-menu{left:12px;bottom:68px;width:216px}
/* The name and the note start where the items' words do; the items' hover fill reaches 8 px past them. */
.account-menu b{padding-inline:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu nav{display:grid;gap:4px}
.account-menu a,.account-menu button{display:block;width:100%;padding:6px 8px;border:0;border-radius:8px;background:none;color:var(--fg);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.account-menu a:hover,.account-menu button:hover{background:rgba(255,255,255,.04)}
.account-menu a[aria-current="page"]{background:var(--raise);color:var(--fg-strong)}
.account-menu p{padding-inline:8px;font-size:13px;color:var(--muted)}
.account-menu p[role="alert"]{color:var(--fg)}
.side-scrim{display:none}
@media (max-width:779px){
  .side.open+.side-scrim{display:block;position:fixed;inset:0;z-index:9;background:rgba(0,0,0,.6)}
}

/* The prompt box: the textarea, the Studio selection line above it, and Send, the screen's main action. */
.prompt-box{position:relative;display:grid;gap:8px;padding:12px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--floating)}
/* Owner 2026-10-30: the buttons in the job feed and the prompt box do not press in; they keep the Raised depth. */
.job .btn,.prompt-box :is(.btn,.send,.stop),.job .btn:active,.prompt-box :is(.btn,.send,.stop):active{transform:none}
/* Focused, the box adds the focus ring; its transparent outline draws nothing here, but forced-colors mode paints it,
   so the box keeps a visible focus there. */
.prompt-box:focus-within{box-shadow:var(--floating),var(--focus-ring);outline:3px solid transparent;outline-offset:0}
.prompt-box textarea{display:block;width:100%;min-height:72px;max-height:min(40dvh,180px);field-sizing:content;padding:4px;border:0;background:transparent;font:500 15px/1.5 var(--font);resize:none}
.prompt-box textarea:focus-visible{outline:none}
.prompt-box textarea::placeholder{color:var(--meta)}
.prompt-box .send{justify-self:end}
/* Send that can't go isn't the screen's main action; nor is Send while the Get Plugin card is up (a Send then goes as a
   text job): the card's button is the one white pill (Adaptation Note 4). Either way Send is the neutral button, its
   text never --cta-fg on a dark fill. */
.prompt-box .send:disabled{background:transparent;color:var(--fg);box-shadow:var(--raised)}
/* Till the stream's first word on Studios the line about Build keeps its room, unseen, as the card does. */
.prompt-box .plan-line.held{visibility:hidden}
.dock:has(>.plugin-card:not([hidden],.held)) .prompt-box .send{background:transparent;color:var(--fg);box-shadow:var(--raised)}
.dock:has(>.plugin-card:not([hidden],.held)) .prompt-box .send:hover:not(:disabled){opacity:.6;background:transparent;color:var(--fg)}
.sel-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;color:var(--muted);font:400 13px/1.4 var(--mono);overflow-wrap:anywhere}

/* The card that asks for the Studio plugin; its Get Plugin button is the screen's main action. */
.plugin-card{display:grid;gap:12px;padding:16px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring)}
.plugin-card h2{font-size:17px}
.plugin-card .acts{display:flex;flex-wrap:wrap;gap:12px}
/* Till the stream first says which Studios are on, the card keeps its room, unseen: the box under it doesn't move. */
.plugin-card.held{visibility:hidden}

/* The workspace (workspace.js): the head names the chat, the feed of jobs scrolls by itself, and the dock under it
   holds the lines about Studio and the send box. Before a chat's first job the dock sits in the middle, the question
   over the box and the templates under it (site rebuild spec §6.3). Everything sits in one 760 px column. */
.head h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.head small{flex:0 1 auto;min-width:0;font:400 13px/1.4 var(--mono);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The view switch in the workspace's head (projects spec §4): one pill, a well with the two buttons in it; the open
   view draws the raised thumb under its word (its ::before, which M12 moves); a view the plan doesn't open carries a
   lock, as a locked level does. */
.views{display:flex;flex:none;align-items:center;gap:8px;margin-left:auto;padding:3px;border-radius:9999px;background:var(--bg);box-shadow:inset 0 0 0 1px var(--border)}
.views .btn{position:relative;isolation:isolate;border-radius:9999px;box-shadow:none;background:transparent}
.views .btn[aria-pressed="true"]{background:transparent;box-shadow:none;color:var(--fg-strong)}
.views .btn[aria-pressed="true"]::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:9999px;background:var(--raise);box-shadow:0 0 0 1px rgba(255,255,255,.1),inset 0 1px 0 rgba(255,255,255,.06);transform-origin:left}
.views .btn:not([aria-pressed="true"]){z-index:1}
.views .lock{flex:none;width:14px;height:14px}
.views:not([hidden])~.conn{margin-left:0}
.conn{display:inline-flex;flex:none;align-items:center;gap:8px;min-height:28px;margin-left:auto;padding:2px 10px;border:0;border-radius:9999px;background:var(--surface);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);color:var(--fg);font:500 13px/1.3 var(--mono);white-space:nowrap}
.conn .dot{flex:none;width:10px;height:10px;border-radius:50%}
.conn[data-s="live"] .dot{background:var(--ok)}
.conn[data-s="reconnecting"] .dot{background:var(--warn)}
.main>.body.ws{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.feed{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;container:feed / inline-size}
.feed>*{--col:max(16px,calc((100% - 760px) / 2))}
/* The tip is the alert card with a blue bar. */
.feed>.tip{display:flex;flex:none;align-items:center;gap:12px;margin:12px var(--col) 9px;padding:8px 12px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring),inset 3px 0 0 var(--blue);font-size:14px}
.feed>.tip span{flex:1;min-width:0}
/* It gives way to the code box, which needs the room, as the old-plugin warning does. */
.feed:has(>.dock>.trust:not([hidden])) :is(.tip,.oldplug){display:none}
/* The page itself keeps the feed at its end or where the reader put it (workspace.js). The browser's scroll anchoring
   would move it a line up for each line a full card folds away, so it is off here; that takes the jobs out of the
   short window's anchoring too, where the whole feed scrolls. That feed keeps its own: a card brought into view there
   stays in view while what is above it changes. */
/* The feed scrolls without a scrollbar, so its cards keep the composer's width (Adaptation Note 20). */
.jobs{display:flex;flex:1 1 0;flex-direction:column;gap:16px;min-height:0;padding:16px var(--col);overflow-y:auto;overflow-anchor:none;scrollbar-width:none}
.jobs::-webkit-scrollbar{display:none}
/* Under a tip that shows, the feed's clip line keeps 8 px below the tip's ring (its 9 px margin) and the first card
   still starts 16 px under the tip. */
@media (min-height:521px){.feed:not(:has(>.dock>.trust:not([hidden])))>.tip+.jobs{padding-top:7px}}
.jobs>*{flex:none}
.dock{display:flex;flex:0 1 auto;flex-direction:column;gap:12px;min-height:0;padding:0 var(--col) 12px}
.dock>*{flex:none}
/* The code box gives up room before the send box does, and scrolls; the jobs keep 72 px beside it. */
.dock>.trust{flex:0 1 auto}
.feed:has(>.dock>.trust:not([hidden])) .jobs{min-height:72px}
.feed.empty .jobs{flex:none;padding-bottom:0}
.feed.empty .jobs:empty{display:none}
.feed.empty .dock{margin-block:auto;padding-top:16px}
.prompt-q{text-align:center}
h1.prompt-q,.pair .card.key h1{letter-spacing:0}
.templates{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
/* While the box holds a request the templates keep their room, unseen: the box doesn't move under the typing. */
.templates.held{visibility:hidden}
.dock>.notice .btn{flex:none}
/* An older plugin: a warning with its title, and its Store link whole on one line. */
.oldplug{flex-wrap:nowrap;align-items:flex-start;font-size:14px}
.oldplug>svg{flex:none;width:20px;height:20px}
.oldplug-text{min-width:0}
.oldplug-text a{white-space:nowrap}
.btn.sm{min-height:32px;padding:4px 12px;font-size:14px}
.btn svg{flex:none;width:16px;height:16px}
/* A pressed toggle is chosen blue, as a chosen state is. */
.btn[aria-pressed="true"]{background:var(--chosen);box-shadow:inset 0 0 0 1px var(--blue);color:var(--fg-strong)}

/* The selection line: what Studio has selected, the Studio chip (and Open on another project's place), and ×. */
.sel-what{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.sel-now{display:flex;flex:1 1 auto;align-items:center;gap:6px;min-width:0}
.sel-dot{flex:none;font-style:normal;color:var(--ok)}
.sel-in{flex:none}
.sel-one{display:flex;gap:4px;min-width:0;white-space:nowrap}
.sel-path{min-width:0;color:var(--fg);overflow:hidden;text-overflow:ellipsis}
.sel-class{flex:none}
.sel-line.out .sel-now{text-decoration:line-through}
.sel-out{display:inline-flex;flex:none;align-items:center;justify-content:center;width:28px;height:28px;margin-left:auto;padding:0;border:1px solid var(--border-btn);border-radius:6px;background:transparent;color:var(--fg);cursor:pointer;transition:background-color 150ms ease}
.sel-out svg{width:14px;height:14px}
.chip svg{flex:none;width:12px;height:12px}
.studio-pick{max-width:100%}
.studio-pick span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-pick .dot{flex:none;width:10px;height:10px;border-radius:50%}
.studio-pick[data-s="here"] .dot{background:var(--ok)}
.studio-pick[data-s="paused"] .dot,.studio-pick[data-s="many"] .dot{background:var(--warn)}
/* The box's row: + (images), Settings, then Send or Stop at its end. Send that can't go is Raised, whose ring takes
   1 px of the gap above it: the row keeps 12 px from what is over it. */
.c-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:4px}
.c-row .sp{flex:1;min-width:0}
/* Where the row wraps, Send (or Stop) goes under, at the right. */
.c-row :is(.send,.stop){margin-left:auto}
/* The send keys (spec 5.6): keycaps 12 px left of Send, so Enter's drawn shadow keeps 8 px from it, and 4 px apart,
   one shortcut drawn as one element (Adaptation Note 21); only where a hardware keyboard is likely, dim with a Send that
   can't go, and gone while Stop takes Send's place or the feed is narrow. Scoped to the row: .key is also /pair's key
   card and the back office's secret. */
.c-row .keys{display:none;gap:4px;align-items:center}
@media (hover:hover) and (pointer:fine){
  .c-row .keys{display:inline-flex;margin-left:auto;margin-right:0}
  .c-row:has(>.send:disabled) .keys{opacity:.5}
  @container feed (min-width:521px){.c-row .keys+.send{margin-left:0}}
}
.c-row:has(>.send[hidden]) .keys{display:none}
@container feed (max-width:520px){.c-row .keys{display:none}}
.c-row .keys .key{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:5px;font:500 11px/1 var(--font);letter-spacing:0;color:var(--fg-2);background:linear-gradient(var(--key-1),var(--key-2));box-shadow:var(--keycap)}
.attach{display:inline-flex;flex:none;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid var(--border-btn);border-radius:6px;background:transparent;color:var(--fg);cursor:pointer;transition:background-color 150ms ease}
.attach svg,.settings svg{flex:none;width:16px;height:16px}
.settings{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:36px;padding:4px 10px;border:1px solid var(--border-btn);border-radius:6px;background:transparent;color:var(--fg);font:600 14px/1.2 var(--font);cursor:pointer;transition:background-color 150ms ease}
.settings span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Hover lightens an icon button; one whose pop-over is open, or x that leaves the selection out, is chosen blue. */
:is(.attach,.settings,.sel-out):hover{background:rgba(255,255,255,.06)}
.settings[aria-expanded="true"],.sel-out[aria-pressed="true"]{background:var(--chosen);box-shadow:inset 0 0 0 1px var(--blue);color:var(--fg-strong)}
/* Stop is the neutral button. */
.prompt-box .stop{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 16px;border:0;border-radius:6px;background:transparent;color:var(--fg);box-shadow:var(--raised);font:600 15px/1.2 var(--font);letter-spacing:.3px;cursor:pointer;transition:opacity 150ms ease}
@media (hover:hover) and (pointer:fine){.prompt-box .stop:hover{opacity:.6}}
.prompt-box .stop i{width:10px;height:10px;background:var(--fg)}
.count{font:400 12px/1.3 var(--mono);text-align:right;color:var(--muted)}
.count.over,.ref-line.bad{color:var(--fg);font-weight:600}
.ref-line{font-size:13px;color:var(--muted)}
.mode-line .keep{padding:0;border:0;background:none;color:var(--fg);font:inherit;text-decoration:underline;white-space:nowrap;cursor:pointer}
.refs{display:flex;flex-wrap:wrap;gap:12px}
.ref{position:relative;flex:none;width:64px;height:64px;border:0;border-radius:12px;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 30px 60px rgba(0,0,0,.55);overflow:hidden}
.ref img{display:block;width:100%;height:100%;object-fit:cover}
.ref .see:focus-visible{outline-offset:-3px}
.ref .see{cursor:zoom-in}
.ref.wait{display:grid;place-items:center}
/* x on a picture: a small neutral icon button, on the surface so it reads over any image. */
.ref .rm{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid var(--border-btn);border-radius:6px;background:var(--surface);color:var(--fg);cursor:pointer;transition:background-color 150ms ease}
.ref .rm:hover{background:var(--raise)}
.ref .rm svg{width:12px;height:12px}
.prompt-box.drop{outline:2px dashed var(--blue);outline-offset:2px}

/* The box's pop-overs (settings, the Studio picker, the selection's list) open above it (dom.js fitAbove). */
.feed .pop{position:absolute;z-index:20;left:var(--x,12px);bottom:calc(100% + 16px);display:grid;gap:4px;width:min(400px,calc(100% - 24px));padding:8px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--floating);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--raise) transparent}
.feed .pop.over{bottom:0}
.feed .pop.level{width:min(470px,calc(100% - 24px))}
.feed .opt{display:block;width:100%;padding:8px 12px;border:1px solid var(--border-btn);border-radius:8px;background:transparent;color:var(--fg);font:inherit;font-size:14px;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.pop .opt{border-color:transparent}
.feed .opt b{display:block;font-weight:600}
.feed .opt span{display:block;font-size:13px;color:var(--muted)}
.feed :is(.opt,.lv,.lv-own):hover{background:rgba(255,255,255,.04)}
.feed :is(.opt,.lv,.lv-own)[aria-checked="true"]{background:var(--chosen);box-shadow:inset 0 0 0 1px var(--blue);color:var(--fg-strong)}
.feed .opt[aria-checked="true"] span,.lv-own[aria-checked="true"] span{color:inherit}
.lv-group{display:grid;gap:4px}
.lv-group[hidden]{display:none}
.lv,.lv-head{display:grid;grid-template-columns:92px repeat(3,minmax(0,1fr));align-items:center;gap:4px 12px;width:100%;padding:8px;text-align:left}
.lv-head{font:400 12px/1.3 var(--mono);color:var(--muted)}
.lv{border:0;border-radius:8px;background:none;color:var(--fg);font:inherit;font-size:14px;cursor:pointer}
.lv b,.lv-own b{font-weight:600;white-space:nowrap}
/* A level the account may not pick shows, with a lock, and can't be picked. */
.lv:disabled{color:var(--meta);cursor:not-allowed}
.feed .lv:disabled:hover{background:none}
.lv b{display:inline-flex;align-items:center;gap:4px}
.lv .lock{flex:none;width:14px;height:14px}
.m{display:flex;align-items:center}
.m i{position:relative;flex:1;height:6px;background:var(--raise)}
.m i::before{content:"";position:absolute;inset:0 auto 0 0;width:calc(var(--v) / 6 * 100%);background:var(--fg-2)}
/* the mark at 5: past it the bar is amber */
.m i::after{content:"";position:absolute;left:83.333%;top:-3px;bottom:-3px;width:2px;background:var(--muted)}
.m.over i::before{background:linear-gradient(90deg,var(--fg-2) 0 calc(5 / var(--v) * 100%),var(--warn) calc(5 / var(--v) * 100%) 100%)}
.lv-own{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:4px 12px;width:100%;padding:8px;border:0;border-top:1px solid var(--divider);border-radius:0;background:none;color:var(--fg);font:inherit;font-size:14px;text-align:left;text-decoration:none;cursor:pointer}
.lv-own span{min-width:0;font:400 13px/1.3 var(--mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Above the box, Mode and Thinking stay at the list's foot, over its padding, and only the levels scroll; a list that
   covers the box (.over, a very short window) scrolls as one, so a level scrolled to its foot is never under them. */
.lv-hows{display:flex;flex-wrap:wrap;gap:8px 16px;padding:8px;border-top:1px solid var(--divider);background:var(--surface)}
.feed .pop:not(.over) .lv-hows{position:sticky;bottom:-8px}
.lv-pair{display:flex;align-items:center;gap:8px}
.lv-how{font-size:13px}
.team-roles{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px 16px;padding:8px}
.team-roles[hidden]{display:none}
.team-title{grid-column:1/-1;font-size:13px;color:var(--muted)}
.team-roles .lv-pair{justify-content:space-between}
.lv-hows select.choice,.team-roles select.choice{height:32px;padding:0 8px;border:1px solid var(--border-input);border-radius:8px;background:var(--bg);color:var(--fg);cursor:pointer}
.pop-title{padding:4px 8px 0;font:600 13px/1.4 var(--mono)}
.pop-note{padding:4px 8px;font-size:13px;color:var(--muted)}
.pop-guide{display:block;padding:0 8px 4px;font-size:13px}
.sel-pop ul{display:grid;gap:6px;margin:0;padding:0 8px;list-style:none}
.sel-pop li{display:flex;align-items:baseline;gap:8px;font-size:13px}
.sel-pop li em{flex:none;width:96px;font:400 12px/1.4 var(--mono);color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.sel-pop .path{flex:1;min-width:0;overflow-wrap:anywhere}
@container feed (max-width:520px){
  .lv,.lv-head{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:8px}
  /* The three heads at 11 px fill their columns at 360 px, so they set no tracking. */
  .lv-head{font:600 11px/1.3 var(--font);letter-spacing:0}
  .lv-head span:first-child{display:none}
  .lv b{grid-column:1 / -1}
  .lv-own{grid-template-columns:minmax(0,1fr)}
}

/* The feed: a request on the raised fill, then its job's card. */
.ask{align-self:flex-end;max-width:min(80%,560px);padding:8px 12px;border:0;border-radius:12px;background:var(--raise);overflow-wrap:anywhere;white-space:pre-wrap}
.shots{display:grid;grid-template-columns:repeat(4,minmax(0,96px));gap:12px}
/* A picture is a window: 12 px, a hairline ring and mockup B's window shadow (the ask strip too, at 64 px). */
.shots .shot{display:block;aspect-ratio:1;padding:0;border:0;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px rgba(255,255,255,.08),0 30px 60px rgba(0,0,0,.55);overflow:hidden;cursor:zoom-in}
.shots img{display:block;width:100%;height:100%;object-fit:cover}
.shots.ask-refs{align-self:flex-end;grid-template-columns:none;grid-auto-columns:64px;grid-auto-flow:column;margin-top:-4px}
.ask-gone{align-self:flex-end;margin-top:-4px;font-size:13px;color:var(--muted)}
.earlier{font-size:13px;text-align:center;color:var(--muted)}
.jobs .fresh .from{color:var(--muted)}
.name-new{display:flex;flex-wrap:wrap;gap:12px}
.name-new input,.q .other input{flex:1 1 160px;min-width:0;height:40px;padding:0 12px;text-overflow:ellipsis;border:1px solid var(--border-input);border-radius:8px;background:var(--bg);color:var(--fg)}
.q .other input:focus-visible,.lv-hows select.choice:focus-visible,.team-roles select.choice:focus-visible{border-color:rgba(255,255,255,.16)}
:is(.name-new,.q .other,.trust) input::placeholder{color:var(--meta)}
/* A job is a card on the Ring (spec 5.5): its status, steps and buttons, and what the crew says back (its summary, or
   its question) in a well inside it. A From scratch turn is not a card: it talks, a job does work. */
.job{display:grid;gap:12px;width:100%;padding:14px 16px;border-radius:12px;background:var(--surface);box-shadow:var(--ring)}
.job>*{min-width:0}
/* The job a link from History opened is marked by a blue bar on its left, as a chosen state is blue. */
.job.sel{box-shadow:var(--ring),inset 3px 0 0 var(--blue)}
.job.turn{padding:0;border-radius:0;background:none;box-shadow:none}
.st{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.st b{font-weight:600;color:var(--fg-strong)}
.st span{font-size:14px;color:var(--muted)}
.st em{margin-left:auto;padding:2px 8px;border:0;border-radius:6px;background:var(--raise);font:400 12px/1.3 var(--mono);white-space:nowrap}
.ic{display:grid;flex:none;place-items:center;width:20px;height:20px}
.ic svg{width:18px;height:18px}
.ic.ok{color:var(--ok)}
.ic.hold{color:var(--warn)}
.ic.off{color:var(--muted)}
/* A running job's mark: four blue dots that light in turn around their square (the owner, 2026-10-30: no bar, a
   small touch as Claude's). */
.dots{display:grid;grid-template-columns:repeat(2,5px);gap:3px}
.dots i{width:5px;height:5px;border-radius:50%;background:var(--blue);animation:blink 1.2s ease-in-out infinite}
.dots i:nth-child(2){animation-delay:.3s}
.dots i:nth-child(4){animation-delay:.6s}
.dots i:nth-child(3){animation-delay:.9s}
.spin{width:16px;height:16px;border:2px solid var(--raise);border-top-color:var(--fg);border-radius:50%;animation:turn .9s linear infinite}
/* The safe line is the alert card with a warn bar. */
.job .safe{padding:8px 12px;border-radius:12px;background:var(--surface);box-shadow:var(--ring),inset 3px 0 0 var(--warn);font-size:14px}
.job :is(.hint,.warn,.preview,.scripts){font-size:13px;color:var(--muted)}
.scripts ul{margin:4px 0 0;padding:0;list-style:none}
/* Publish (Blender design §3.7): what was published, the words before a press (an alert card with a warn bar, as
   the safe line), and the game's auto-publish. Its parts keep the card's 12 px apart. */
.publish{display:grid;gap:12px;font-size:13px}
.publish p,.publish ul{margin:0}
.pub-ids{display:grid;gap:12px;padding:0;list-style:none;font-family:var(--mono)}
.pub-ids a{color:var(--fg);overflow-wrap:anywhere}
.pub-said,.pub-auto{color:var(--muted)}
.pub-auto{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.pub-ask{display:grid;gap:12px;padding:12px;border-radius:12px;background:var(--bg);box-shadow:var(--ring),inset 3px 0 0 var(--warn)}
.pub-words{font-size:14px}
.pub-auto-box{display:flex;align-items:center;gap:8px;cursor:pointer}
.pub-buttons{display:flex;flex-wrap:wrap;gap:12px}
.scripts li{font-family:var(--mono);overflow-wrap:anywhere}
/* Step lines are small labels, in mono (Adaptation Note 1). */
.lines{display:grid;gap:4px;margin:0;padding:0;font:400 13px/1.45 var(--mono);list-style:none}
.lines li{display:flex;align-items:baseline;gap:8px;overflow-wrap:anywhere}
.lines li::before{content:"";flex:none;width:6px;height:6px;background:var(--meta);transform:translateY(-2px)}
.lines li.now::before{background:var(--blue)}
.lines li.old{display:none}
.job.all .lines li.old{display:flex}
.lines li.grp,.job.all .lines li.grp.old{display:block}
.lines li.grp::before{content:none}
.grp-head{display:flex;align-items:center;gap:8px;min-height:24px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.grp-head svg{flex:none;width:14px;height:14px;transform:rotate(-90deg);transition:transform 150ms ease}
.grp-head[aria-expanded="true"] svg{transform:none}
.grp-lines{display:grid;gap:4px;margin:4px 0 0 22px;padding:0;list-style:none}
.diff{flex:none;white-space:nowrap}
.diff .add{color:var(--ok)}
.diff .cut{color:var(--red)}
.fold{justify-self:start;padding:0;border:0;background:none;color:var(--fg);font:500 13px/1.4 var(--font);text-decoration:underline;cursor:pointer}
.todos{display:grid;gap:8px;margin:0;padding:0;font-size:14px;list-style:none}
.todos li{display:flex;align-items:flex-start;gap:12px;overflow-wrap:anywhere}
.todos li:is(.done,.todo){color:var(--muted)}
/* A tick is a hairline ring; done fills green with a dark check; the step in progress is ringed blue with a halo and
   its words are bright; a planned one is dashed. */
.todos .tick{display:grid;flex:none;place-items:center;width:16px;height:16px;margin-top:2px;border:0;border-radius:4px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.todos .tick svg{width:12px;height:12px}
.todos .done .tick{background:var(--ok);color:var(--bg);box-shadow:none}
.todos li.doing{color:var(--fg)}
.todos .doing .tick{box-shadow:inset 0 0 0 1.5px var(--blue),0 0 0 3px hsla(202,100%,67%,.15)}
.todos .todo .tick{outline:1px dashed rgba(255,255,255,.16);outline-offset:-1px;box-shadow:none}
.job .at{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.job .at .spin{flex:none;width:14px;height:14px}
.job .at .used{flex:none;margin-left:auto;font:400 13px/1.3 var(--mono);white-space:nowrap}
/* The crew's reply: its summary or its question, a well inside the card. A turn's reply is plain text on the page. */
.job :is(.why,.q){padding:12px 16px;border:1px solid var(--border);border-radius:12px;background:var(--bg)}
.job.turn .why{padding:3px;margin:-3px;border:0;background:none}
.q{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.q p{overflow-wrap:anywhere}
.q .qs{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.q .qb{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.q .qsend,.q .qnext{justify-self:start}
.q .qpager{display:flex;align-items:center;justify-self:end;gap:8px}
.q .qcount{font:400 13px/1.3 var(--mono);color:var(--muted);white-space:nowrap}
.q .qreview{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 12px;margin:0}
.q .qreview dt{font:400 12px/1.6 var(--mono)}
.q .qreview dd{margin:0;overflow-wrap:anywhere}
.q .qh{justify-self:start;padding:2px 8px;border:0;border-radius:6px;background:var(--raise);font:400 12px/1.4 var(--mono)}
.answers{display:flex;flex-wrap:wrap;gap:12px}
/* The question's options are .choose cards on the Ring; each ring takes 1 px of the gap, so it widens to 12 px. */
.opts.choose{display:grid;gap:12px}
.q .other{display:flex;flex-wrap:wrap;gap:12px}
.end{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.end .said{font-size:13px;color:var(--muted)}
/* The summary's Markdown (markdown.js): GitHub's markdown-body block spacing, code chip, quote bar and ruled table, in
   this look's ink. Its box clips what overflows it, so a wide table or a long code line scrolls in its own box and a
   long word or path breaks. */
.why{font-size:14px;line-height:1.55;overflow-wrap:anywhere;overflow:hidden}
.why :where(p,ul,ol,pre,blockquote,hr){margin:0}
.why>*+*,.why li>*+*,.why blockquote>*+*{margin-top:8px}
.why strong,.why .md-h{font-weight:600}
.why .md-h1{font-size:17px}
.why .md-h2{font-size:15px}
.why ul,.why ol{padding-left:22px}
.why ul{list-style:disc}
.why ol{list-style:decimal}
.why li+li{margin-top:4px}
.why li::marker{color:var(--muted)}
.why code{padding:1px 4px;border-radius:6px;background:var(--raise)}
.why pre{padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:var(--bg);overflow-x:auto;overflow-wrap:normal}
.why pre code{padding:0;background:none;font-size:12px;line-height:1.5;white-space:pre}
.why blockquote{padding-left:12px;border-left:4px solid var(--divider)}
.why hr{border:0;border-top:1px solid var(--divider)}
.why .md-table{overflow-x:auto}
.why table{width:100%;border-collapse:collapse}
.why th,.why td{min-width:72px;padding:4px 12px;border:1px solid var(--divider);text-align:left;vertical-align:top;overflow-wrap:normal}
.why th{font-weight:600;background:var(--raise)}
.why tbody tr:nth-child(2n){background:rgba(255,255,255,.02)}
.why a{color:var(--blue);text-decoration:underline}
/* The code a browser without a grant types, from its Studio's panel. Where the feed is short it scrolls. */
.trust{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:12px;min-height:0;padding:16px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring);text-align:center;overflow-y:auto}
.trust form{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;width:100%}
.trust label{flex:1 0 100%;font-size:14px}
.trust input{flex:1 1 200px;min-width:0;height:44px;padding:0 12px;border:1px solid var(--border-input);border-radius:8px;background:var(--bg);color:var(--fg);font:600 18px/1 var(--mono);letter-spacing:.2em;text-align:center;text-transform:uppercase}
.trust input:disabled{opacity:.5}
.trust .said{font-size:13px}
.trust .said:empty{display:none}
/* A render or a request's image, big: a floating dialog over a dark veil; the picture is a window. */
.shot-dlg{width:min(560px,calc(100% - 32px));max-height:calc(100% - 32px);margin:auto;padding:16px;border:0;border-radius:16px;background:var(--surface);color:var(--fg);box-shadow:var(--floating);overflow:auto;overscroll-behavior:contain}
.shot-dlg::backdrop{background:rgba(0,0,0,.6)}
.shot-dlg img{display:block;width:100%;height:auto;border-radius:12px;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 30px 60px rgba(0,0,0,.55)}
.shot-dlg .btn{display:flex;margin:16px 0 0 auto}
/* From scratch (projects spec §4, §5; scratch.js, docs.js): the interview's turns and no line about Studio, and the
   pane with the game card and the GDD, beside the feed from 780 px on and a sheet on a phone. The pane alone is the game
   card's own view (?card=1), in the 760 px column. A turn is not a card; the pane is the page's near-black with a left
   hairline. A change of this turn is tinted blue, and a tab the reader hasn't looked at carries a blue dot (Adaptation
   Note 15). */
.feed.scratch .sel-line{display:none}
.scratch-empty{font-size:17px;text-align:center}
/* A running turn's credits used so far, at its status line's end, as a job card has them beside its spinner. */
.turn .st .used{margin-left:auto;font:400 13px/1.3 var(--mono);white-space:nowrap}
.pane{display:flex;flex:none;flex-direction:column;min-width:0;min-height:0;background:var(--bg)}
.ws.card-only .pane{flex:1 1 auto}
/* The tabs are neutral buttons on the Raised depth, 12 px apart and 12 px under the head (each ring takes 1 px); the
   open one is where you are. */
.pane .tabs{display:flex;flex:none;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border)}
.pane .tab{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:4px 12px;border:0;border-radius:6px;background:transparent;color:var(--fg);box-shadow:var(--raised);font:600 14px/1.2 var(--font);letter-spacing:.3px;cursor:pointer;transition:opacity 150ms ease}
@media (hover:hover) and (pointer:fine){.pane .tab:hover:not([aria-selected="true"]){opacity:.6}}
.pane .tab[aria-selected="true"]{background:var(--raise);color:var(--fg-strong)}
.pane .tab .dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--blue)}
.pane-close{display:none;margin-left:auto}
.pane .doc{display:grid;flex:1 1 auto;align-content:start;gap:16px;min-height:0;padding:16px;overflow-y:auto}
.ws.card-only .pane .doc{padding-inline:max(16px,calc((100% - 760px) / 2))}
/* The note is the alert card with a warn bar. */
.doc-note{padding:8px 12px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring),inset 3px 0 0 var(--warn);font-size:14px}
.card-view,.gdd-view,.doc-sec{display:grid;gap:8px}
.card-view,.gdd-view{gap:16px}
.doc-sec h3{font-size:15px}
.doc-lines{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.doc-lines li,.gdd-sec p{padding:2px 8px;border-radius:8px;overflow-wrap:anywhere;white-space:pre-wrap}
.doc-lines li.changed,.gdd-sec.changed p{background:var(--change)}
.doc-lines li.changed+li.changed{margin-top:4px}
.undecided{font:400 12px/1.3 var(--mono);color:var(--muted)}
.doc-empty{font-size:14px;color:var(--muted)}
.card-edit-open{justify-self:start}
.card-edit{display:grid;gap:16px}
.card-sec{display:grid;gap:12px;min-width:0;margin:0;padding:12px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring)}
.card-sec legend{padding:0 4px;font-size:14px;font-weight:600}
.line-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.line-field{flex:1 1 160px;min-width:0;height:36px;padding:0 8px;border:1px solid var(--border-input);border-radius:8px;background:var(--bg);color:var(--fg)}
.line-field::placeholder{color:var(--meta)}
.line-move{flex:0 1 auto;min-width:0;max-width:100%;height:36px;padding:0 8px;border:1px solid var(--border-input);border-radius:8px;background:var(--bg);color:var(--fg);cursor:pointer}
.line-add{justify-self:start}
.card-edit .acts{display:flex;flex-wrap:wrap;gap:12px}
/* After a refused Save (RF4): the reader's own lines, each with its Add a line, over the newer card's fields. */
.kept{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.kept-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring)}
.kept-line{flex:1 1 160px;min-width:0;font-size:14px;overflow-wrap:anywhere}
@media (min-width:780px){
  .main>.body.ws.split{flex-direction:row}
  .ws.split .pane{order:2;flex:0 0 clamp(280px,36%,440px);border-left:1px solid var(--divider)}
}
@media (max-width:779px){
  .pane .tabs{padding:8px 12px}
  .ws.split .pane:not(.open) .doc{display:none}
  /* The sheet covers the page beside the sidebar's rail, which stays (.main's margin). */
  .ws.split .pane.open{position:fixed;inset:0 0 0 64px;z-index:20}
  .ws.split .pane.open .pane-close{display:inline-flex}
}
/* Motion (M3, M4): a card that comes rises in; a line, a checklist item and a summary's parts that join come in from blur.
   .lines li.in comes after .feed .in and is more specific, so a step line blurs in and doesn't rise. */
@keyframes m-rise{from{opacity:0;transform:translateY(10px)}}
@keyframes m-blur{from{opacity:0;filter:blur(5px);transform:translateY(3px)}}
.feed .in{animation:m-rise 460ms var(--ease) backwards}
.lines li.in,.todos li[data-in]{animation:m-blur 400ms var(--ease) backwards}
.job.all .lines li.old{animation:none}
.why.m-in>*{animation:m-blur 400ms var(--ease) backwards}
.why.m-in>:nth-child(2){animation-delay:60ms}
.why.m-in>:nth-child(3){animation-delay:120ms}
.why.m-in>:nth-child(4){animation-delay:180ms}
.why.m-in>:nth-child(5){animation-delay:240ms}
.why.m-in>:nth-child(6){animation-delay:300ms}
.why.m-in>:nth-child(n+7){animation-delay:360ms}
/* Motion (M2): Send presses the keycaps and sweeps a red stripe over the box, as mockup B's keyp and lbar. */
.keys.m-press .key{animation:m-press 320ms ease-out}
@keyframes m-press{30%{transform:translateY(1.5px);box-shadow:0 .5px .5px 1px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.04)}}
.prompt-box.m-launch::before{content:"";position:absolute;left:16px;right:16px;top:-3px;height:6px;border-radius:9999px;background:repeating-linear-gradient(-45deg,var(--red) 0 5px,transparent 5px 9px);transform-origin:left;pointer-events:none;animation:m-launch 950ms var(--ease) both}
@keyframes m-launch{0%{opacity:1;transform:scaleX(0)}55%{opacity:1;transform:scaleX(1)}100%{opacity:0;transform:scaleX(1)}}
/* Motion (M5, M6, M14): status words that change come in, and breathe while the model thinks; a card the crew works on
   glows; the busy marks pulse while a job runs. */
@keyframes m-words{from{opacity:0;transform:translateY(6px)}}
.st b.m-words{animation:m-words 300ms var(--ease) backwards}
@keyframes breath{to{opacity:.55}}
.job.thinking .st b{animation:breath 1.3s ease-in-out infinite alternate}
.job.thinking .st b.m-words{animation:m-words 300ms var(--ease) backwards,breath 1.3s ease-in-out 300ms infinite alternate}
.job.working{box-shadow:var(--ring),var(--glow-warm)}
.job.sel.working{box-shadow:var(--ring),var(--glow-warm),inset 3px 0 0 var(--blue)}
@keyframes pulse{50%{opacity:.45;transform:scale(.75)}}
.row.busy .busy,.feed.running .studio-pick[data-s="here"] .dot,.feed.running .studio-pick[data-s="many"] .dot{animation:pulse 1.1s ease-in-out infinite}
/* Motion (M7): credits that change count over the number that is already right; the text stays the last number. */
:is(.job .at .used,.side .credits b){position:relative}
:is(.job .at .used,.side .credits b).counting{color:transparent}
.job .at .used.counting::after{content:attr(data-shown);content:attr(data-shown) / "";position:absolute;right:0;top:0;color:var(--muted);white-space:nowrap}
.side .credits b.counting::after{content:attr(data-shown);content:attr(data-shown) / "";position:absolute;left:0;top:0;color:var(--fg)}
/* Motion (M8): a question page comes in from the side it comes from, and the box's height glides between pages. */
@keyframes m-from-right{from{opacity:0;transform:translateX(12px)}}
@keyframes m-from-left{from{opacity:0;transform:translateX(-12px)}}
.q .m-from-right{animation:m-from-right 300ms var(--ease) backwards}
.q .m-from-left{animation:m-from-left 300ms var(--ease) backwards}
.q.m-gliding{overflow:clip;overflow-clip-margin:6px}
/* Motion (M9): a job that becomes done draws its check where its dots fade, rings once, and its results rise in. The
   class sits on the card's .st, since tests read the article's and the icon's classes exactly. A fresh card keeps m-rise
   in its list, so it never rises again. */
.ic{position:relative}
.st.m-done .ic svg{stroke-dasharray:24;animation:m-check 500ms var(--ease) both}
@keyframes m-check{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}
.st.m-done .ic::before{content:"";position:absolute;left:50%;top:50%;width:13px;height:13px;margin:-6.5px 0 0 -6.5px;background:radial-gradient(circle,var(--blue) 2.5px,transparent 2.6px) -1.5px -1.5px/8px 8px;pointer-events:none;animation:m-dots-out 220ms both}
@keyframes m-dots-out{to{opacity:0;transform:scale(0)}}
@keyframes m-ring{18%{box-shadow:0 0 0 1px color-mix(in srgb,var(--ok) 95%,transparent),inset 0 0 0 1px var(--bg),0 0 26px color-mix(in srgb,var(--ok) 28%,transparent)}}
@keyframes m-ring-sel{18%{box-shadow:0 0 0 1px color-mix(in srgb,var(--ok) 95%,transparent),inset 0 0 0 1px var(--bg),inset 3px 0 0 var(--blue),0 0 26px color-mix(in srgb,var(--ok) 28%,transparent)}}
.job:has(>.st.m-done){animation:m-ring 1.4s ease-out}
.job.sel:has(>.st.m-done){animation-name:m-ring-sel}
.feed .job.in:has(>.st.m-done){animation:m-rise 460ms var(--ease) backwards,m-ring 1.4s ease-out}
.feed .job.sel.in:has(>.st.m-done){animation-name:m-rise,m-ring-sel}
.job:has(>.st.m-done) :is(.shots,.scripts,.preview,.end){animation:m-rise 460ms var(--ease) backwards}
/* Motion (M10): a checklist item that becomes done fills its tick, and the one that becomes in progress rings. */
.todos .tick.m-tick{animation:m-tick 380ms var(--ease)}
@keyframes m-tick{from{background:transparent;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}}
.todos .tick.m-tick svg{stroke-dasharray:24;animation:m-check 380ms var(--ease) both}
.todos .tick.m-doing{animation:m-doing 380ms var(--ease)}
@keyframes m-doing{from{box-shadow:inset 0 0 0 1.5px var(--blue),0 0 0 0 transparent}}
/* Motion (M11, M12, M13, M15): From scratch's pane slides in, without making the page scroll sideways, and the lines a
   new version brings rise in turn; a tab's unread dot pops. The view switch's thumb slides (workspace.js). The level
   list pops and its bars grow. Undo's words come in and its icon fades in. */
@keyframes m-pane{from{opacity:0;transform:translateX(24px)}}
.pane.m-pane{animation:m-pane 420ms var(--ease) backwards}
.main>.body.ws{overflow-x:clip}
/* The phone's open sheet is fixed over the page, so it can't make it scroll; it is never cut by the page's box. */
@media (max-width:779px){
  .main>.body.ws.split:has(>.pane.open){overflow-x:visible}
}
.pane .m-line{animation:m-rise 350ms var(--ease) backwards;animation-delay:min(calc(var(--i,0) * 60ms), 360ms)}
@keyframes m-dot{0%{transform:scale(0)}70%{transform:scale(1.5)}}
.tab .dot.m-dot{animation:m-dot 450ms var(--ease)}
@keyframes m-pop{from{opacity:0;transform:translateY(6px) scale(.985)}}
.pop.level.m-pop{transform-origin:bottom left;animation:m-pop 220ms var(--ease) backwards}
@keyframes m-bar{from{transform:scaleX(0)}}
.pop.level.m-pop .m i::before{transform-origin:left;animation:m-bar 620ms var(--ease) backwards}
.pop.level.m-pop .lv:nth-child(3) .m i::before{animation-delay:55ms}
.pop.level.m-pop .lv:nth-child(4) .m i::before{animation-delay:110ms}
.pop.level.m-pop .lv:nth-child(5) .m i::before{animation-delay:165ms}
.pop.level.m-pop .lv:nth-child(6) .m i::before{animation-delay:220ms}
@keyframes m-fade{from{opacity:0}}
.undo svg.m-fade{animation:m-fade 300ms var(--ease)}
.said.m-words{display:inline-block;animation:m-words 300ms var(--ease) backwards}
@keyframes turn{to{transform:rotate(360deg)}}
@keyframes blink{0%,100%{opacity:.25}30%{opacity:1}}
@container feed (max-width:420px){
  .feed>*{--col:8px}
  .job{padding:12px}
  .ask{max-width:88%}
}
/* A short window (a phone held sideways, or with its keyboard up): the feed scrolls as one, from its first job to the
   send box, so nothing in it shrinks to a sliver (review round 2, N1). The tip waits for a taller window. */
@media (max-height:520px){
  .feed{overflow-y:auto;scrollbar-width:none}
  .feed::-webkit-scrollbar{display:none}
  .feed>*{flex:none}
  .feed>.tip{display:none}
  .jobs{flex:1 0 auto;padding-block:8px;overflow:visible}
  .trust{padding:12px;overflow:visible}
  .prompt-box textarea{min-height:40px}
}

/* The sign-in hero (hero.js, and the landing's first screen): headline, line, Sign in with Roblox, fine print. */
.hero{display:flex;flex-direction:column;align-items:flex-start;gap:16px;max-width:640px}
.hero .line{font-size:18px;color:var(--fg-2)}
.hero .btn.primary{box-shadow:var(--glow-warm)}
.hero .fine,.hero .down{font:400 13px/1.4 var(--mono);color:var(--muted)}
.hero .fine a{color:var(--blue);text-decoration:underline}
/* Why the last sign-in didn't work (?signin=): a warning line above the button. */
.hero .why{margin:0;padding:8px 12px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring),inset 3px 0 0 var(--warn);color:var(--fg);font-size:15px;line-height:1.5}
/* A workspace page while nobody is signed in, or while the service can't be reached: the landing's top bar and its
   first screen (spec §5.2), which scroll by themselves. It is a page on the source's scale, not a card. */
.gate{display:flex;flex-direction:column;height:100dvh;overflow-y:auto;font:500 16px/1.6 var(--font);letter-spacing:.2px;background:var(--bg);color:var(--fg)}

/* The landing page (spec §5.1): a top bar, the hero filling the first screen, then a short page. Each block keeps a
   16 px gutter and a 960 px column. The landing uses the source's scale (spec 5.3): body 16/1.6. */
.landing{font-size:16px;line-height:1.6}
.site-top,.landing main>section,.gate .hero,.site-foot{padding-inline:max(16px,calc((100% - 960px) / 2))}
.site-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;min-height:56px;padding-block:8px;border-bottom:1px solid var(--border);background:var(--bg)}
.wordmark{font:600 17px/1.2 var(--font);color:var(--fg);text-decoration:none}
/* A link in a sentence is a few words: it stays on one line, whole to tap. */
.landing p a,.gate p a{white-space:nowrap}
.site-nav{display:flex;gap:16px}
.site-nav a{color:var(--muted)}
.site-nav a:hover{color:var(--fg)}
.landing .hero,.gate .hero{justify-content:center;max-width:none;min-height:calc(100svh - 56px);padding-block:32px}
.landing .hero h1,.gate .hero h1{max-width:640px;font-size:64px;line-height:1.1;letter-spacing:0}
.landing .hero .line,.gate .hero .line{max-width:640px}
.landing main>section:not(.hero){padding-block:96px;border-top:1px solid var(--divider)}
.landing main>section>h2{margin-bottom:16px;font-size:24px;letter-spacing:0}
.points ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:0;padding:0;list-style:none}
.points .card{align-content:start;border-radius:16px}
/* Pricing is two groups side by side, stacked on a phone: credits on our models, and the own-model plans. Each plan is
   its name and price on one line, what it gets under them. */
.price-groups{display:grid;grid-template-columns:3fr 2fr;gap:24px;align-items:start}
.price-group h3{font-size:20px}
.group-line{margin-top:4px;margin-bottom:12px;color:var(--muted)}
.plans{border:0;border-radius:16px;background:var(--surface);box-shadow:var(--ring)}
.plans table{width:100%;border-collapse:collapse}
.plans tr{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:10px 12px}
.plans tbody tr+tr{border-top:1px solid var(--divider)}
.plans th,.plans td{padding:0;text-align:left;vertical-align:top}
.plans tbody th,.plans td:nth-child(2){white-space:nowrap}
.plans td:nth-child(2){font-weight:600}
.plans td:last-child{grid-column:1 / -1}
.levels-line{margin-top:16px}
.pricing .note{margin-top:24px}
.note{color:var(--muted);font-size:13px}
.faq details{padding:12px 16px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring)}
.faq details+details{margin-top:12px}
.faq summary{font-weight:600;cursor:pointer}
.faq details p{margin-top:8px}
.site-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding-block:16px;border-top:1px solid var(--border);background:var(--bg);font-size:13px}
@media (max-width:1099px){
  .landing .hero h1,.gate .hero h1{font-size:48px}
  .landing main>section:not(.hero){padding-block:64px}
}
@media (max-width:779px){
  .landing .hero h1,.gate .hero h1{font-size:36px}
  .landing main>section:not(.hero){padding-block:40px}
  .price-groups{grid-template-columns:minmax(0,1fr)}
}

/* The legal pages, /levels and the 404 page: the landing's top bar and foot around one column of text, on the source's
   scale (spec 5.3): body 16/1.6, the page title 40, a section heading 24. */
.legal{max-width:760px;margin:0 auto;padding:32px 16px 48px;font-size:16px;line-height:1.6}
.legal h1{margin-top:16px;font-size:40px;letter-spacing:0}
.legal h2{margin-top:32px;font-size:24px;letter-spacing:0}
.legal :is(p,ul,table){margin-top:12px}
.legal .updated{font:400 13px/1.4 var(--mono);color:var(--muted)}
.legal ul{padding-left:20px}
.legal li+li{margin-top:4px}
/* A table wider than a phone scrolls in its own box. */
.legal table{display:block;max-width:100%;border-collapse:collapse;overflow-x:auto}
.legal th,.legal td{padding:8px 12px;border:1px solid var(--divider);text-align:left;vertical-align:top}
.legal thead th{font:600 13px/1.4 var(--mono);color:var(--muted)}
@media (max-width:779px){
  .legal h1{font-size:32px}
}

/* The workspace's other pages (History, Models, Billing, the back office, /pair): the page's name in the head, with the
   way back to the workspace at its end, and one column under it that scrolls with the main area. */
.head .sp{flex:1 1 0}
.page{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:12px;width:100%;max-width:792px;margin:0 auto;padding:16px 16px 32px}
.page.billing{max-width:1072px}
.page.pair{max-width:552px}
.page>h2,.plans-head{margin-top:12px}
.page>h2,.plans-head h2,.pay-col h2{font-size:17px}
.page p{overflow-wrap:anywhere}
/* A line the page brings into view (what came of a press) keeps a little room to the window's edge. */
.page :is([role=status],[role=alert]){scroll-margin-block:12px}
/* The foot rows of History, the payment page and the back office (div.more, div.back); not the question's Other. */
div.more,div.back{display:flex}
div.more{justify-content:center}
/* A row of a list: what it is, a line of facts, a tag, and its buttons; a press that takes something away asks in it. */
.hrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0;padding:8px 12px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring)}
.hrow>div{flex:1 1 240px;min-width:0}
.hrow b{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hrow span{display:block;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
/* A row's tag is a badge, as the status line's is. */
.hrow em{flex:none;padding:2px 8px;border:0;border-radius:6px;background:var(--raise);font:400 12px/1.4 var(--mono);white-space:nowrap}
.hrow .ask-line{flex:1 1 100%;font-size:14px;color:var(--fg)}
.manage b{white-space:normal}
.uface{display:grid;flex:none;place-items:center;width:36px;height:36px;border:1px solid var(--border-btn);border-radius:50%;overflow:hidden;font-style:normal;font-weight:600}
.uface img{width:100%;height:100%;object-fit:cover}
.acts,.tabs{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
/* The back office's tabs mark the open tab with aria-pressed: that is where you are, the raised fill, not chosen blue. */
.page.office .tabs .btn[aria-pressed="true"]{background:var(--raise);box-shadow:var(--raised);color:var(--fg-strong)}
/* The back office's secret (admin.js); /pair's key card, div.card.key, stays in the page's Inter. */
p.key{font:600 17px/1.5 var(--mono);letter-spacing:.06em;overflow-wrap:anywhere}

/* A form of these pages: two columns of labelled fields (one on a phone), the long ones across both. */
.byo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.byo label{display:grid;gap:4px;align-content:start;font-size:13px;color:var(--muted)}
.byo>:is(label.wide,p,div,.btn){grid-column:1 / -1}
/* Its fields are wells of the page's near-black with a hairline. */
.byo :is(input,select),.qr-dlg input{width:100%;min-width:0;height:40px;padding:0 12px;border:1px solid var(--border-input);border-radius:8px;background:var(--bg);color:var(--fg);font-size:15px}
.byo :is(input,select):disabled{opacity:.5}
.byo label.tick{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--fg);cursor:pointer}
.byo label.tick input{flex:none;width:18px;height:18px;margin:0;padding:0;accent-color:var(--blue)}
.byo .probe{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.byo .probe>p{flex:1 1 240px}
.byo .found{display:grid;gap:4px;font-size:13px;color:var(--muted)}
.selfhost{display:grid;gap:8px;padding:12px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring);font-size:13px}
.selfhost ol{display:grid;gap:4px;margin:0;padding-left:20px}
.selfhost p{color:var(--muted)}
@media (max-width:519px){
  .byo{grid-template-columns:minmax(0,1fr)}
}
/* Which models run the jobs: two choices, each a card on the Ring; the one in use is chosen blue. The same rules draw
   the crew question's options in the feed (div.opts.choose). */
.choose{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}
.choose .opt{display:grid;align-content:start;gap:4px;padding:12px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.choose .opt b{font-weight:600}
.choose .opt span{font-size:13px;color:var(--muted)}
.choose .opt:not(:disabled):not([aria-checked="true"]):hover{background:rgba(255,255,255,.04)}
.choose .opt[aria-checked="true"]{background:var(--chosen);box-shadow:inset 0 0 0 1px var(--blue),var(--ring);color:var(--fg-strong)}
.choose .opt[aria-checked="true"] span{color:inherit}
.choose .opt:disabled{opacity:.5;cursor:not-allowed}

/* Billing's plans, each a 16 px card on the Ring: its name, what it is for, its price, what it gets, and its button.
   The plan held now is chosen blue: the blue ring over the blue tint. */
.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}
.plan{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px;border:0;border-radius:16px;background:var(--surface);box-shadow:var(--ring)}
.plan.now{background:var(--chosen);box-shadow:inset 0 0 0 1px var(--blue),var(--ring)}
.plan-top{display:flex;align-items:center;gap:12px}
.plan h3{flex:1;min-width:0;font-size:21px;font-weight:600;overflow-wrap:anywhere}
.plan-top em{flex:none;padding:2px 8px;border:0;border-radius:6px;background:var(--raise);font:400 12px/1.4 var(--mono);white-space:nowrap}
.plan .tagline{font-size:14px;color:var(--muted)}
.plan .price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding-top:12px;border-top:1px solid var(--divider)}
.plan .price b{font-size:35px;font-weight:600;line-height:1;letter-spacing:0}
.plan .price span{font-size:13px;color:var(--muted)}
.perks{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.perks li{display:flex;align-items:flex-start;gap:8px;font-size:14px;overflow-wrap:anywhere}
.perks svg{flex:none;width:16px;height:16px;margin-top:2px}
.perks.gets svg{color:var(--ok)}
.perks.lacks li{color:var(--muted)}
.lacks-head{font:400 12px/1.4 var(--mono);color:var(--muted)}
.plan-foot{display:grid;gap:12px;margin-top:auto;padding-top:4px}
.plan-foot .reason{font-size:13px}
.plan-foot .btn,.pay-col .go{justify-self:stretch}
.plans-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
/* The payment page: the plan chosen beside the ways to pay, one radio row each, a card on the Ring; the one chosen is
   chosen blue. */
.pay{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;align-items:start}
.pay-col{display:grid;gap:12px;min-width:0}
.methods{display:grid;gap:12px;min-width:0;margin:0;padding:0;border:0}
.method{display:flex;align-items:flex-start;gap:12px;padding:12px;border:0;border-radius:12px;background:var(--surface);box-shadow:var(--ring);cursor:pointer}
.method:not(.off):not(:has(input:checked)):hover{background:rgba(255,255,255,.04)}
.method:has(input:checked){background:var(--chosen);box-shadow:inset 0 0 0 1px var(--blue),var(--ring)}
.method.off{color:var(--muted);cursor:not-allowed}
.method input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--blue)}
.method .words{display:grid;gap:4px;min-width:0}
.method b{font-weight:600}
.method .words>span{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.method .reason{color:var(--fg)}
/* The PromptPay QR's dialog: a floating dialog over a dark veil. */
.qr-dlg{width:min(400px,calc(100% - 32px));max-height:calc(100% - 32px);margin:auto;padding:16px;border:0;border-radius:16px;background:var(--surface);color:var(--fg);box-shadow:var(--floating);overflow:auto;overscroll-behavior:contain}
.qr-dlg::backdrop{background:rgba(0,0,0,.6)}
.qr-dlg h2{overflow-wrap:anywhere}
.qr-dlg form{display:grid;gap:12px;margin-top:16px}
.qr-dlg label{font-size:13px;color:var(--muted)}
.qr-dlg form .btn{justify-self:start}
.qr-dlg>:is(.line,.notice){margin-top:12px}
.qr-dlg .line{font-size:14px}
/* The QR stays dark on a white tile, so bank apps still scan it (spec 5.5). */
.qr-dlg .qr{display:block;width:220px;max-width:100%;aspect-ratio:1;margin:16px auto 0;padding:12px;border:0;border-radius:12px;background:#ffffff}
.qr-dlg .amount{margin-top:16px;font-size:35px;font-weight:600;line-height:1;letter-spacing:0;text-align:center}
.qr-dlg .amount+.line{text-align:center}
.qr-dlg .wait{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:14px}
.qr-dlg .left{margin-left:auto;font:400 12px/1.4 var(--mono);white-space:nowrap}
.qr-dlg .acts{justify-content:flex-end;margin-top:16px}

/* /pair: one card, with the code's field as the Studio panel shows it. */
.pair .card{grid-template-columns:minmax(0,1fr)}
.pair .card form{display:flex;flex-wrap:wrap;gap:12px}
.pair .card label{flex:1 0 100%;font-size:13px;color:var(--muted)}
.pair .card input{flex:1 1 200px;min-width:0;height:44px;padding:0 12px;border:1px solid var(--border-input);border-radius:8px;background:var(--bg);color:var(--fg);font:600 18px/1 var(--mono);letter-spacing:.2em;text-align:center;text-transform:uppercase}
/* This rule outweighs the base field focus, so it brightens its own hairline. */
.pair .card input:focus-visible{border-color:rgba(255,255,255,.16)}
.pair .card .fine{font-size:13px;color:var(--muted)}
/* Its link is too long for a phone's line: it starts a line of its own, as one box to tap. */
.pair .card .fine a{display:inline-block}
/* The connect key (plugin 0.13.0 on): the code to copy, in its own case, and under it the older plugins' card. */
.pair .card+.card{margin-top:24px}
.pair .card h2{font-size:17px}
.pair .card .btn{justify-self:start}
.pair .keyrow{display:flex;flex-wrap:wrap;gap:12px}
.pair .card #key{flex:1 1 240px;font-size:15px;letter-spacing:.04em;text-transform:none}
.pair .keystate{font-size:14px}

/* Read by screen readers only. */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
