/* THE TOOLS' SHARED LOOK (2026-10-31) - /tool-shell.css, after /site.css.
   The operator: "Go through all the tools they need to be consistent". Every tool on the site -
   Weave, Forge, Kernel, Sculpt, Easel, Pocket, Anthem - is its own page, and they all look and
   behave as one suite because they share these parts, by these class names. Change the look here and
   every tool follows; a tool's own parts (a 3D viewport, a timeline) keep their own prefix.

   THE CONTRACT (keep these names; tell the other tools before renaming one):
     The tool's colour        --tc on the tool's root element (the Tools page's colour for it).
     Page frame               html.studio-page > body.studio > .studio-root (full height, a column).
                              .studio-root.st-at-home = on the tool's home menu: the site's header shows,
                              the tool bar does not; inside the tool it is the other way round.
     Home menu                .th > a.st-back ("← All apps") + .th-head (.th-icon, .th-title > .th-kind,
                              h1, .th-say; .btn.th-new) + .th-mine > .th-row (h2, .th-count) + .th-grid of
                              .th-card (.th-thumb [--th hue] > b or img, .th-info > b + small, .th-badge);
                              .th-add = the New card; .th-ghost = loading; .th-none, .th-fine = notes.
     Tool bar                 .st-bar > a.st-home (WELUX mark, to /apps), .st-brand (icon + b),
                              .st-tool (a plain button: "← Your …", Undo, Redo, Preview/Play),
                              .st-chip (the project's name, the page/scene - with a caret),
                              .st-saved (Saving… / Saved), .st-gap (pushes the rest right),
                              .st-seg (a segmented switch), .btn (the one main action: Publish, Download…),
                              .st-preview-on (Preview/Play pressed). Words that fold away on a phone: .st-word.
     Work area                .st-main = the rail (76px) + .st-stage (what is being made, filling it).
     Rail and its panels      .st-rail > button[data-panel][aria-pressed] (an icon + span); one panel open
                              at a time in .st-drawer: .dr-head (h2 + close), .dr-say, .dr-h (a small heading),
                              .dr-list > li (.dr-go + .dr-mini buttons; li.on), .dr-grid > .dr-tile,
                              .dr-field (label + output + range/select), .dr-colours > .dr-colour,
                              .dr-form, .dr-how (a row of buttons), .dr-switch, .dr-note, .dr-busy.
     The AI, floating         .st-float at the stage's foot: .st-convo (.st-chat-head + .st-lines of .st-line
                              me/ai/note/bad), .st-reply (its answer, .txt), .st-work (working… with .st-stop),
                              form.st-ask (.st-convo-btn, textarea, .st-ai-hide, .btn.st-send).
                              Folded away it is one small button, .st-ai-pill ("Ask AI").
     Sheets, menus, notes     .st-sheet > .card (.top > h2 + close), .st-menu (buttons, hr, .danger,
                              .st-badge), .st-form / .st-col, .st-msg (.bad/.ok), .st-toast (.bad), .st-spin.
   THE SAME KEYS everywhere: Ctrl+Z undo, Ctrl+Shift+Z or Ctrl+Y redo, "/" opens the AI bar,
   Esc closes a sheet, then a menu, then the open panel. */

html.studio-page,html.studio-page body{height:100%}
body.studio{margin:0;overflow:hidden;background:var(--bg)}
.studio-root{display:flex;flex-direction:column;height:100dvh;min-height:100%}
.studio-root [hidden]{display:none!important}
.studio-root>header{flex:none}
.studio-root>header .bar{min-height:58px}
.studio-root.st-at-home .st-bar{display:none}
/* Inside a tool there is no site header (2026-10-31, the operator: "I don't want a navbar when actually
   inside of the tool... only while ... selecting/creating a project"): the tool's own bar is the top. */
.studio-root:not(.st-at-home)>header{display:none}

/* ---------------------------------------------------------------- the tool bar */
.st-bar{display:flex;align-items:center;gap:8px;min-height:60px;padding:0 14px;border-bottom:1px solid var(--line);background:var(--bg);flex:none;min-width:0}
.st-home{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;flex:none}
.st-home svg{width:26px;height:28px}
.st-home:hover{background:var(--soft)}
.st-brand{display:flex;align-items:center;gap:9px;padding-right:10px;margin-right:2px;border-right:1px solid var(--line);flex:none}
.st-brand img{width:30px;height:30px}
.st-brand b{font:800 18px var(--display);letter-spacing:-.01em}
.st-chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;max-width:260px;padding:0 12px;border-radius:10px;border:1px solid transparent;background:none;color:var(--ink);font:700 15px var(--body);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-chip:hover,.st-chip[aria-expanded="true"]{background:var(--soft);border-color:var(--line)}
.st-chip small{color:var(--muted);font-weight:600}
.st-chip .caret{flex:none;opacity:.6}
.st-gap{flex:1;min-width:8px}
.st-seg{display:inline-flex;padding:3px;gap:2px;background:var(--soft);border:1px solid var(--line);border-radius:11px}
.st-seg button{border:0;background:none;color:var(--muted);min-width:34px;height:30px;padding:0 8px;border-radius:8px;display:grid;place-items:center;cursor:pointer;font:700 13px var(--body)}
.st-seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 0 var(--line2)}
.st-tool{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:10px;border:1px solid var(--line2);background:none;color:var(--ink);font:600 14px var(--body);cursor:pointer;text-decoration:none;white-space:nowrap}
.st-tool svg{flex:none}
.st-tool:hover{border-color:var(--gold);color:var(--gold)}
.st-tool[disabled]{opacity:.4;cursor:not-allowed;border-color:var(--line2);color:var(--ink)}
.st-tool.st-icon{width:36px;padding:0;justify-content:center}
.st-bar .btn{min-height:38px;padding:0 16px;font-size:15px}
.st-saved{min-width:64px;font:600 12.5px var(--body);color:var(--faint);white-space:nowrap}
.st-saved.error{color:var(--warn)}
.st-preview-on{color:var(--on-gold)!important;background:var(--gold)!important;border-color:var(--gold)!important}

/* ---------------------------------------------------------------- the work area: rail + stage */
.st-main{flex:1;display:grid;grid-template-columns:76px minmax(0,1fr);min-height:0;position:relative}
.st-stage{grid-column:2;grid-row:1;position:relative;display:flex;align-items:center;justify-content:center;padding:14px 14px 112px;min-width:0;min-height:0;overflow:hidden;
  background:radial-gradient(70% 60% at 50% 40%,color-mix(in srgb,var(--tc) 14%,transparent),transparent 70%),var(--soft)}
.st-rail{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:12px 8px;border-right:1px solid var(--line);background:var(--bg);z-index:3;overflow-y:auto}
.st-rail button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 2px;border-radius:12px;border:0;background:none;color:var(--muted);font:700 11.5px var(--body);cursor:pointer}
.st-rail button:hover{background:var(--soft);color:var(--ink)}
.st-rail button[aria-pressed="true"]{background:color-mix(in srgb,var(--tc) 18%,var(--soft));color:var(--ink)}
.st-rail hr{border:0;border-top:1px solid var(--line);margin:6px 8px}
/* Previewing (or playing): only the thing itself. */
.studio-root.st-previewing .st-rail,.studio-root.st-previewing .st-drawer,.studio-root.st-previewing .st-float,.studio-root.st-previewing .st-ai-pill{display:none!important}
.studio-root.st-previewing .st-main{grid-template-columns:minmax(0,1fr)}
.studio-root.st-previewing .st-stage{grid-column:1;padding:14px}

/* ---------------------------------------------------------------- a panel of the rail */
.st-drawer{position:absolute;top:0;bottom:0;left:76px;width:min(360px,calc(100% - 76px));z-index:30;overflow-y:auto;padding:18px 18px 28px;background:var(--surface);border-right:1px solid var(--line);box-shadow:24px 0 48px -32px rgba(0,0,0,.7)}
.dr-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.dr-head h2{flex:1;font-size:22px}
.dr-say{margin:0 0 16px;color:var(--muted);font-size:14.5px}
.dr-h{margin:20px 0 8px;font:800 12px var(--body);letter-spacing:.1em;text-transform:uppercase;color:var(--faint)}
.dr-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.dr-list li{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:12px;background:var(--soft);padding:4px}
.dr-list li.on{border-color:color-mix(in srgb,var(--tc) 60%,var(--line))}
.dr-go{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:7px 9px;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;border-radius:9px}
span.dr-go{cursor:default}
.dr-go b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.dr-go small{color:var(--muted);font-size:12.5px}
.dr-mini{width:34px;height:34px;flex:none;display:grid;place-items:center;border:0;border-radius:9px;background:none;color:var(--muted);cursor:pointer}
.dr-mini:hover{background:var(--surface);color:var(--ink)}
.dr-mini[disabled]{opacity:.3;cursor:default;background:none}
.dr-mini.danger:hover{color:var(--warn)}
.dr-parts .dr-mini{width:30px}
.dr-form{display:flex;gap:8px;margin-top:12px}
.dr-form input{flex:1;min-width:0;font:500 15px var(--body);color:var(--ink);background:var(--soft);border:1px solid var(--line);border-radius:11px;padding:10px 12px}
.dr-form input:focus,.dr-var input:focus{outline:none;border-color:var(--gold)}
.dr-how{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.dr-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dr-tile{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--soft);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.dr-tile:hover{border-color:color-mix(in srgb,var(--tc) 60%,var(--line));transform:translateY(-1px)}
.dr-tile[disabled]{opacity:.5;cursor:default;transform:none}
.dr-tile.on{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}
.dr-tile b{font-size:14.5px}
.dr-tile small{color:var(--muted);font-size:12.5px;line-height:1.35}
.dr-swatch{display:flex;height:26px;width:100%;border-radius:8px;overflow:hidden;margin-bottom:6px;box-shadow:0 0 0 1px var(--line2)}
.dr-swatch i{flex:1}
.dr-chips{display:flex;flex-wrap:wrap;gap:6px}
.dr-chips button{border:1px solid var(--line2);background:var(--soft);color:var(--ink);border-radius:999px;padding:7px 12px;font:600 13.5px var(--body);cursor:pointer}
.dr-chips button:hover{border-color:var(--gold);color:var(--gold)}
.dr-var{display:grid;gap:6px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--soft);margin-bottom:8px}
.dr-var label{display:flex;justify-content:space-between;gap:8px;font:700 13px var(--body);color:var(--muted)}
.dr-var label small{font-weight:600;color:var(--faint)}
.dr-var .row{display:flex;gap:6px}
.dr-var input,.dr-var textarea{flex:1;min-width:0;font:500 15px var(--body);color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:9px 11px}
.dr-var p{margin:0;color:var(--muted);font-size:13px}
.dr-note{margin-top:10px;color:var(--muted);font-size:13px}
.dr-check{display:flex;align-items:center;gap:10px;margin-top:8px;font:600 14px var(--body);color:var(--ink);cursor:pointer}
.dr-check input{width:18px;height:18px;accent-color:var(--gold)}
.dr-cell{display:grid;gap:4px;font:700 12.5px var(--body);color:var(--muted)}
.dr-cell input,.dr-cell textarea,.dr-form select{font:500 15px var(--body);color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px 10px;min-width:0}
.dr-cell textarea{resize:vertical}
.dr-form select{background:var(--soft);flex:none;max-width:130px}
.dr-busy{opacity:.55;pointer-events:none}
.dr-colours{display:grid;gap:8px;margin-top:10px}
.dr-colour{display:flex;align-items:center;gap:10px;font:600 14px var(--body);color:var(--ink);cursor:pointer}
.dr-colour small{color:var(--faint);font-weight:600}
.dr-colour input{width:38px;height:30px;padding:0;border:1px solid var(--line2);border-radius:8px;background:none;cursor:pointer}
.dr-field{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center;margin-top:10px;font:700 13px var(--body);color:var(--muted)}
.dr-field select,.dr-field input[type=range]{grid-column:1/-1;width:100%}
.dr-field select{font:500 15px var(--body);color:var(--ink);background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:9px 10px}
.dr-field output{font-weight:600;color:var(--faint)}
.dr-field input[type=range]{accent-color:var(--gold)}
.dr-switch{position:relative;display:inline-block;width:40px;height:24px;flex:none;margin:0 4px}
.dr-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
.dr-switch span{position:absolute;inset:0;border-radius:999px;background:var(--line2);transition:background .15s}
.dr-switch span::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--surface);transition:transform .15s}
.dr-switch input:checked+span{background:var(--gold)}
.dr-switch input:checked+span::after{transform:translateX(16px)}
.dr-switch input:disabled+span{opacity:.4}

/* ---------------------------------------------------------------- the AI, floating at the stage's foot */
.st-float{position:absolute;left:calc(50% + 38px);bottom:18px;transform:translateX(-50%);width:min(720px,calc(100% - 120px));z-index:25;display:flex;flex-direction:column;gap:8px;border:0;background:none;max-height:calc(100% - 36px);pointer-events:none}
.st-float>*{pointer-events:auto}
.st-ask{display:flex;flex-direction:row;align-items:flex-end;gap:8px;padding:7px;border:1px solid var(--line2);border-radius:20px;background:var(--surface);box-shadow:0 24px 54px -22px rgba(0,0,0,.7)}
.st-ask:focus-within{border-color:color-mix(in srgb,var(--tc) 70%,var(--line2))}
.st-ask textarea{flex:1;min-width:0;min-height:44px;max-height:180px;resize:none;border:0;background:transparent;padding:11px 4px;font:500 15.5px/1.4 var(--body);color:var(--ink)}
.st-ask textarea:focus{outline:none}
.st-send{width:44px;min-height:44px!important;padding:0!important;border-radius:14px;flex:none}
.st-convo-btn{flex:none;width:44px;height:44px;border-radius:14px;border:0;display:grid;place-items:center;cursor:pointer;background:color-mix(in srgb,var(--tc) 18%,var(--soft));color:var(--tc)}
.st-convo-btn[aria-expanded="true"]{background:var(--tc);color:#fff}
.st-ai-hide{flex:none;width:32px;height:44px;border-radius:12px;border:0;display:grid;place-items:center;cursor:pointer;background:none;color:var(--faint)}
.st-ai-hide:hover{color:var(--ink);background:var(--soft)}
.st-ai-pill{position:absolute;right:18px;bottom:18px;z-index:25;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px 0 12px;border-radius:999px;border:1px solid var(--line2);background:var(--surface);color:var(--ink);font:700 14.5px var(--body);cursor:pointer;box-shadow:0 18px 40px -18px rgba(0,0,0,.7)}
.st-ai-pill svg{color:var(--tc)}
.st-ai-pill:hover{border-color:color-mix(in srgb,var(--tc) 70%,var(--line2))}
.st-convo{display:flex;flex-direction:column;min-height:0;max-height:min(58vh,560px);border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:0 24px 54px -26px rgba(0,0,0,.7);overflow:hidden}
.st-chat-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}
.st-chat-head img{width:26px;height:26px}
.st-chat-head b{flex:1;font-size:15px}
.st-chat-head .st-seg button{width:auto;padding:0 10px;font:700 12px var(--body)}
.st-lines{flex:1;min-height:80px;overflow-y:auto;margin:0;padding:16px 14px;list-style:none;display:flex;flex-direction:column;gap:10px}
.st-line{max-width:92%;padding:10px 13px;border-radius:14px;font-size:15px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.st-line.me{align-self:flex-end;background:color-mix(in srgb,var(--gold) 16%,var(--surface));border:1px solid color-mix(in srgb,var(--gold) 35%,transparent)}
.st-line.ai{align-self:flex-start;background:var(--soft);border:1px solid var(--line)}
.st-line.note{align-self:center;background:none;border:0;padding:2px 8px;font-size:13px;color:var(--faint);text-align:center}
.st-line.bad{border-color:color-mix(in srgb,var(--warn) 60%,transparent)}
.st-line .again{display:block;margin-top:8px}
.st-asks{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.st-asks p{width:100%;margin:0 0 2px;font-weight:600}
.st-asks button{border:1px solid var(--line2);background:var(--surface);color:var(--ink);border-radius:999px;padding:5px 11px;font:600 13px var(--body);cursor:pointer}
.st-asks button:hover{border-color:var(--gold);color:var(--gold)}
.st-reply{display:flex;align-items:flex-start;gap:10px;padding:12px 12px 12px 16px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 20px 44px -24px rgba(0,0,0,.7);animation:st-rise .2s ease}
.st-reply.bad{border-color:color-mix(in srgb,var(--warn) 60%,var(--line))}
.st-reply .txt{flex:1;min-width:0;font-size:15px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;max-height:30vh;overflow-y:auto}
.st-reply .st-asks{margin-top:8px}
.st-reply .more{display:inline-block;margin-top:6px;border:0;background:none;padding:0;color:var(--gold);font:700 13px var(--body);cursor:pointer}
.st-work{padding:12px 14px;border:1px solid color-mix(in srgb,var(--tc) 45%,var(--line));border-radius:14px;background:var(--surface);box-shadow:0 20px 44px -24px rgba(0,0,0,.7)}
.st-work b{display:flex;align-items:center;gap:8px;font-size:14px}
.st-work b span{flex:1}
.st-work p{margin-top:6px;font-size:14px;color:var(--muted);white-space:pre-wrap}
.st-work ol{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:3px;font-size:13px;color:var(--muted)}
.st-work li.on{color:var(--ink);font-weight:700}
.st-work li.done{color:var(--faint);text-decoration:line-through}
.st-stop{margin-left:auto;border:1px solid var(--line2);background:var(--surface);color:var(--ink);border-radius:999px;padding:4px 12px;font:700 12.5px var(--body);cursor:pointer}
.st-stop:hover{border-color:var(--warn);color:var(--warn)}
@keyframes st-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------------------------------------------------------------- a short word, menus, sheets */
.st-toast{position:absolute;left:50%;top:14px;transform:translateX(-50%);z-index:40;max-width:min(560px,calc(100% - 32px));padding:10px 16px;border-radius:12px;background:var(--surface);color:var(--ink);border:1px solid var(--line2);font:600 14px var(--body);box-shadow:0 18px 40px -20px rgba(0,0,0,.7);animation:st-rise .18s ease;pointer-events:none}
.st-toast.bad{border-color:color-mix(in srgb,var(--warn) 70%,var(--line2));color:var(--warn)}
/* above a panel (a phone's panel is a sheet at 65), below a sheet (70) */
.st-menu{position:fixed;z-index:68;min-width:240px;max-width:min(340px,calc(100vw - 20px));max-height:70vh;overflow-y:auto;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:6px;box-shadow:0 18px 40px -18px rgba(0,0,0,.6)}
.st-menu button,.st-menu a{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:9px 11px;border-radius:9px;border:0;background:none;color:var(--ink);font:600 14.5px var(--body);text-decoration:none;cursor:pointer}
.st-menu button:hover,.st-menu a:hover{background:var(--soft)}
.st-menu button[aria-current="true"]{color:var(--gold)}
.st-menu hr{border:0;border-top:1px solid var(--line);margin:6px 4px}
.st-menu .danger{color:var(--warn)}
.st-badge{flex:none;margin-left:auto;padding:1px 7px;border-radius:6px;border:1px solid var(--line2);color:var(--muted);font:800 11px/1.5 var(--body);letter-spacing:.04em}
.st-badge.d3{color:var(--tc);border-color:color-mix(in srgb,var(--tc) 55%,transparent)}
.st-sheet{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:16px;background:rgba(3,6,14,.62)}
.st-sheet .card{width:min(860px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;padding:26px}
.st-sheet .top{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}
.st-sheet .top h2{flex:1;font-size:28px}
.st-sheet .top p{color:var(--muted);margin-top:6px}
.st-form{display:flex;flex-wrap:wrap;gap:8px}
.st-form input{flex:1 1 220px;font:500 16px var(--body);color:var(--ink);background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:11px 14px}
.st-col{flex-direction:column;flex-wrap:nowrap;gap:14px}
.st-col label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700;color:var(--muted)}
.st-col input,.st-col textarea{flex:none;width:100%;font:500 16px var(--body);color:var(--ink);background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:11px 14px}
.st-col textarea{min-height:90px;resize:vertical}
.st-col input:focus,.st-col textarea:focus{outline:none;border-color:var(--gold)}
.st-col .btn{align-self:flex-start}
.st-msg{margin-top:4px;font-size:15px;font-weight:600}
.st-msg.bad{color:var(--warn)}.st-msg.ok{color:var(--ok)}
.st-msg a{color:var(--gold)}
.st-spin{display:inline-block;width:14px;height:14px;border:2px solid var(--line2);border-top-color:var(--gold);border-radius:50%;animation:st-spin .8s linear infinite;flex:none}
@keyframes st-spin{to{transform:rotate(360deg)}}

/* ---------------------------------------------------------------- THE TOOL'S HOME: the same menu in every tool */
/* home-menu: begin */
.st-start{flex:1;overflow-y:auto;background:radial-gradient(60% 50% at 30% 0%,color-mix(in srgb,var(--tc) 16%,transparent),transparent 70%),var(--bg)}
.st-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:14px;color:var(--gold);font-weight:700;text-decoration:none;background:none;border:0;cursor:pointer;font-size:15px;padding:0}
.th{max-width:1180px;margin:0 auto;padding:40px 20px 72px}
.th-head{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.th-icon{width:72px;height:72px;flex:none;filter:drop-shadow(0 12px 22px rgba(0,0,0,.35))}
.th-title{flex:1;min-width:240px}
.th-kind{margin:0;color:var(--gold);font:800 12px var(--body);letter-spacing:.12em;text-transform:uppercase}
.th-title h1{margin:2px 0 0;font:800 clamp(36px,4.8vw,56px)/1.02 var(--display);letter-spacing:-.02em}
.th-say{margin:10px 0 0;color:var(--muted);font-size:17.5px;max-width:60ch}
.th-new{flex:none;min-height:48px;padding:0 22px;font-size:16px}
.th-why{margin-top:18px}
.th-mine{margin-top:34px}
.th-row{display:flex;align-items:baseline;gap:10px;margin-bottom:14px}
.th-row h2{font-size:22px}
.th-count{color:var(--faint);font-weight:700}
.th-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.th-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;text-align:left;border-radius:18px;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;font:inherit;min-height:200px;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.th-card:hover,.th-card:focus-visible{transform:translateY(-2px);border-color:color-mix(in srgb,var(--tc) 60%,var(--line));box-shadow:0 18px 40px -24px rgba(0,0,0,.6)}
.th-thumb{display:grid;place-items:center;height:128px;background:linear-gradient(135deg,hsl(var(--th,200) 72% 52%),hsl(calc(var(--th,200) + 38) 66% 30%));color:#fff;overflow:hidden}
.th-thumb img{width:100%;height:100%;object-fit:cover}
.th-thumb b{font:800 44px var(--display);letter-spacing:-.02em;text-shadow:0 6px 18px rgba(0,0,0,.25)}
.th-info{display:flex;flex-direction:column;gap:3px;padding:14px 16px 16px}
.th-info b{font-size:16.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-info small{color:var(--muted);font-size:13.5px}
.th-badge{position:absolute;top:10px;right:10px;padding:3px 9px;border-radius:999px;background:rgba(5,8,18,.6);color:#fff;font:700 12px var(--body)}
.th-add{border-style:dashed;background:transparent}
.th-add .th-thumb{background:color-mix(in srgb,var(--tc) 14%,var(--soft));color:var(--tc)}
.th-add .th-thumb b{font-size:56px;text-shadow:none}
.th-ghost{cursor:default;background:var(--soft);animation:th-pulse 1.2s ease-in-out infinite alternate}
@keyframes th-pulse{from{opacity:.45}to{opacity:.9}}
.th-signin{cursor:default;justify-content:space-between;padding:18px;gap:14px}
.th-signin .th-info{padding:0}
.th-signin .btn{align-self:flex-start}
.th-none{grid-column:1/-1;color:var(--muted);margin:4px 2px 0}
.th-fine{margin-top:14px;color:var(--faint);font-size:13.5px}
.th-create .ideas{display:flex;flex-wrap:wrap;gap:6px}
.th-create .ideas button{border:1px dashed var(--line2);background:none;color:var(--muted);border-radius:999px;padding:5px 11px;font:600 13px var(--body);cursor:pointer}
.th-create .ideas button:hover{color:var(--gold);border-color:var(--gold)}
.th-create .go{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:560px){.th{padding-top:26px}.th-new{width:100%}.th-grid{grid-template-columns:1fr 1fr;gap:10px}.th-card{min-height:170px}.th-thumb{height:96px}.th-thumb b{font-size:34px}}
/* home-menu: end */

/* ---------------------------------------------------------------- phones: the rail folds into the project menu */
@media(max-width:1000px){
  .st-main{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .st-stage{grid-column:1;padding:8px 8px 96px}
  .st-rail{display:none}
  .st-drawer{position:fixed;left:0;right:0;top:auto;bottom:0;width:auto;max-height:72dvh;border-right:0;border-top:1px solid var(--line);border-radius:20px 20px 0 0;box-shadow:0 -24px 48px -24px rgba(0,0,0,.7);z-index:65}
  .st-float{left:50%;width:calc(100% - 16px);bottom:8px}
  .st-ai-pill{right:10px;bottom:10px}
  .st-hide-sm{display:none!important}
  .st-chip{max-width:150px}
}
@media(max-width:560px){
  .st-brand{display:none}
  .st-bar{gap:4px;padding:0 8px}
  .st-word{display:none}
  .st-tool{padding:0 10px}
  .st-chip{max-width:none;flex:1 1 auto;min-width:0}
  .st-gap{display:none}
  .st-saved{display:none}
  #st-theme{display:none}
}
