/* Kin creator PWA. Ported from ../brief/prototype/index.html, 4-home-soft.html,
   5-chat-soft.html, 9-feedback.html. No external fonts, no CDN, no build step. */

/* ---------- colours (one place) ----------
   Every colour in the app is one of these. :root is the light look, exactly as it was. Dark mode (Lyndon 2026-10-27:
   "can you add a dark mode to kin"): it follows the device (prefers-color-scheme), unless the "Dark mode" switch on the profile screen
   was flipped (saved on the account) and forces light or dark (data-theme on <html>, set in index.html's head before first paint). The two dark blocks below
   hold the SAME values (test/dark-mode.test.js keeps them identical); change both. */
:root{--hl-1:rgba(170,140,215,.16);--hl-2:rgba(130,200,215,.2);--hl-3:rgba(140,170,235,.18);--side-w:340px;--chat-w:600px;--notif:#6b4a8f;--notif-ink:#5b3f7a;--sw-on:#5b3f7a;--rate-fill:#e6dcf2;--ask-bd:#e6dccf;--bg-out:#ece5dc;--bg:#f7f2ea;--bg-raised:#f7f2ea;--surface:#fffdf9;--hover-bg:#fffdf9;--knob:#fff;--check:#fff;--raised-a:#efe8de;--card-soft:#faf5ee;--side:#efe8de;--hero-a:#f5eee6;--hero-b:#eef2ea;--hero-c:#eef0f6;--hero-d:#f6f0f2;--note-lilac:#fbf8fe;--sel-bg:#efe6f8;--sel-b:#e9def5;--first-bg:#f2ebf8;--unr:#e7d9f4;--unr-card:#f3ebf9;--unr-side:#dccbee;--me-bg:#e9dcf5;--blush:#f6e7e3;--petal:#EAD6D1;--tbl-bg:#F8F3EC;--toast-bg:#2e2733;--glass-1:rgba(255,255,255,.55);--glass-2:rgba(255,255,255,.6);--glass-3:rgba(255,255,255,.72);--glass-4:rgba(255,255,255,.8);--dim-1:rgba(43,39,36,.28);--dim-2:rgba(43,39,36,.32);--dots-off:rgba(59,54,49,.15);--dot:#c4b9ad;--grab:#d8cfc4;--sw-off:#ddd4c8;--done-bg:#b9c9ad;--sage-ink:#7d8a68;--accent-dis:#d9cfe6;--tile-0:#f1e4e0;--tile-1:#e8eee2;--tile-2:#ece3ef;--tile-3:#f6e9dd;--tile-4:#e9e0e3;--pal-0:#e6dcf0;--pal-1:#dbe5ee;--pal-2:#f3dfcf;--pal-3:#d9e6d3;--pal-4:#f0d9de;--pal-5:#f2e6c9;--pal-6:#ece6df;--bl-lilac:#e7dcf1;--bl-sage:#dfead8;--bl-pink:#f1dfe6;--bl-green:#dbe8d4;--bl-who:#c9b8de;--flora:#7d8a68;--text:#3b3631;--text-h:#33302c;--text-x1:#2a2320;--text-x2:#2f2a26;--text-x3:#2f2b27;--text-btn:#4a443e;--text-2:#55504a;--text-2b:#5c544c;--text-2c:#5d5650;--text-3:#6e655c;--text-3b:#6f6560;--text-3c:#7a6f6a;--text-4:#7d746a;--text-4b:#7d7368;--text-5:#8a7f74;--text-5b:#8a8178;--text-5c:#8a7f88;--muted:#9a9086;--muted-b:#a39a90;--muted-c:#a1968f;--muted-d:#a0897f;--muted-e:#b3aaa0;--muted-g:#b3aa9f;--on-accent:#fbf8f3;--accent:#4e3566;--accent-bg:#5b3f7a;--accent-2:#6b5aa6;--pk-sel:#3e3470;--chip-q:#4a3a63;--h4:#4e3566;--link:#7a4fa8;--dnl:#7b6593;--arrow:#9b84b5;--marker:#a07fc0;--danger:#a0564a;--danger-bg:#a0564a;--line:#e6ddd1;--line-b:#ece4d9;--line-e:#ece3d8;--line-f:#efe7dc;--line-c:#e3d9cc;--line-d:#e3dacd;--line-lilac2:#e3d9ea;--line-first:#e3d6ef;--bd-lilac:#d9cdee;--tick:#d6ccc0;--spin:#e2d9cd;--side-bd:#e9e1d6;--hair-a:#f0e9df;--hair-b:#f1ebe3;--hair-c:#f2ece4;--sel-bd:#c7b3e3;--hover-bd:#d3c3e8;--unr-bd:#d3bfe6;--blush-bd:#e3bfb4;--edge-a:rgba(78,53,102,.07);--edge-b:rgba(78,53,102,.12);--sh-1:rgba(43,39,36,.15);--sh-2:rgba(43,39,36,.18);--sh-3:rgba(43,39,36,.22);--glow-1:rgba(78,53,102,.07);--glow-2:rgba(78,53,102,.08);--glow-3:rgba(78,53,102,.09);--glow-4:rgba(78,53,102,.12);--grain-o:.85;--grain-m:multiply;--logo-f:none;--plant-f:none;--img-dim:none;--frame:#2b2724;--sage:#A7B29A;--me-bg-2:#d9c6ee;--me-ink:#2e2240;--canvas:#e9e2e4;--toast-link:#d9c6ee;--frame-sh:rgba(46,34,64,.12);--accent-hover:#4a3166;--nw-tag:#be185d}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--hl-1:rgba(140,100,200,.14);--hl-2:rgba(40,150,190,.12);--hl-3:rgba(60,100,210,.12);--side-w:340px;--chat-w:600px;--notif:#a895c6;--notif-ink:#cbbedd;--sw-on:#7a5aa6;--rate-fill:#43355a;--ask-bd:#38383a;--bg-out:#10100f;--bg:#1c1c1b;--bg-raised:#201f1e;--surface:#272625;--hover-bg:#2e2d2c;--knob:#efe8df;--check:#efe8df;--raised-a:#302f2e;--card-soft:#2a2928;--side:#151414;--hero-a:#262423;--hero-b:#1f2420;--hero-c:#282725;--hero-d:#272027;--note-lilac:#292827;--sel-bg:#393836;--sel-b:#393836;--first-bg:#2c2b2a;--unr:#363431;--unr-card:#2d2c2a;--unr-side:#413f3b;--me-bg:#4c425b;--blush:#3d2b2e;--petal:#352c38;--tbl-bg:#272625;--toast-bg:#3c3a38;--glass-1:rgba(255,255,255,.05);--glass-2:rgba(255,255,255,.06);--glass-3:rgba(255,255,255,.1);--glass-4:rgba(255,255,255,.1);--dim-1:rgba(0,0,0,.5);--dim-2:rgba(0,0,0,.55);--dots-off:rgba(239,232,223,.18);--dot:#6e6578;--grab:#4e4c4a;--sw-off:#41403e;--done-bg:#5f7355;--sage-ink:#a7b29a;--accent-dis:#413f3d;--tile-0:#43353a;--tile-1:#323a2f;--tile-2:#33373d;--tile-3:#45382d;--tile-4:#3a3536;--pal-0:#44464c;--pal-1:#34465a;--pal-2:#5a4636;--pal-3:#3f5238;--pal-4:#5a3d46;--pal-5:#5a5030;--pal-6:#4a4540;--bl-lilac:#2f2e2c;--bl-sage:#2f3a2c;--bl-pink:#44313a;--bl-green:#2f3d2c;--bl-who:#9a9a9e;--flora:#a7b29a;--text:#efe8df;--text-h:#f3ece3;--text-x1:#faf5ee;--text-x2:#f6efe7;--text-x3:#f6efe7;--text-btn:#e6ddd3;--text-2:#cfc6bd;--text-2b:#cfc6bd;--text-2c:#c4bab1;--text-3:#b8aea6;--text-3b:#b8aea6;--text-3c:#b0a59e;--text-4:#b8aea6;--text-4b:#b0a69e;--text-5:#a69b92;--text-5b:#a0968d;--text-5c:#a29d98;--muted:#968c86;--muted-b:#968c86;--muted-c:#968c86;--muted-d:#9a8a82;--muted-e:#8a8179;--muted-g:#8a8179;--on-accent:#fbf6ff;--accent:#c9b3e8;--accent-bg:#7a5aa6;--accent-2:#9b7ccb;--pk-sel:#ddd0f0;--chip-q:#d2c2ea;--h4:#efe6f5;--link:#c9adf0;--dnl:#b8a3d0;--arrow:#a08cc0;--marker:#8d7aa8;--danger:#e8a090;--danger-bg:#b25a4a;--line:#373634;--line-b:#373634;--line-e:#373634;--line-f:#373634;--line-c:#403f3d;--line-d:#403f3d;--line-lilac2:#3e3c3a;--line-first:#3f3e3c;--bd-lilac:#444240;--tick:#5e5b58;--spin:#4e4c4a;--side-bd:#2c2b29;--hair-a:#2c2b29;--hair-b:#2c2b29;--hair-c:#2c2b29;--sel-bd:#76726f;--hover-bd:#656260;--unr-bd:#5f536f;--blush-bd:#6b4a44;--edge-a:rgba(255,255,255,.08);--edge-b:rgba(255,255,255,.12);--sh-1:rgba(0,0,0,.45);--sh-2:rgba(0,0,0,.45);--sh-3:rgba(0,0,0,.5);--glow-1:rgba(0,0,0,.3);--glow-2:rgba(0,0,0,.3);--glow-3:rgba(0,0,0,.35);--glow-4:rgba(0,0,0,.4);--grain-o:.38;--grain-m:screen;--logo-f:invert(1) hue-rotate(180deg) brightness(1.12);--plant-f:invert(1) hue-rotate(180deg);--img-dim:brightness(.92);--frame:#0c0c0b;--sage:#a7b29a;--me-bg-2:#3c3448;--me-ink:#f3eff6;--canvas:#121211;--toast-link:#d9c6ee;--frame-sh:rgba(0,0,0,.5);--accent-hover:#8a69b8;--nw-tag:#ff3dbb}}
:root[data-theme=dark]{color-scheme:dark;--hl-1:rgba(140,100,200,.14);--hl-2:rgba(40,150,190,.12);--hl-3:rgba(60,100,210,.12);--side-w:340px;--chat-w:600px;--notif:#a895c6;--notif-ink:#cbbedd;--sw-on:#7a5aa6;--rate-fill:#43355a;--ask-bd:#38383a;--bg-out:#10100f;--bg:#1c1c1b;--bg-raised:#201f1e;--surface:#272625;--hover-bg:#2e2d2c;--knob:#efe8df;--check:#efe8df;--raised-a:#302f2e;--card-soft:#2a2928;--side:#151414;--hero-a:#262423;--hero-b:#1f2420;--hero-c:#282725;--hero-d:#272027;--note-lilac:#292827;--sel-bg:#393836;--sel-b:#393836;--first-bg:#2c2b2a;--unr:#363431;--unr-card:#2d2c2a;--unr-side:#413f3b;--me-bg:#4c425b;--blush:#3d2b2e;--petal:#352c38;--tbl-bg:#272625;--toast-bg:#3c3a38;--glass-1:rgba(255,255,255,.05);--glass-2:rgba(255,255,255,.06);--glass-3:rgba(255,255,255,.1);--glass-4:rgba(255,255,255,.1);--dim-1:rgba(0,0,0,.5);--dim-2:rgba(0,0,0,.55);--dots-off:rgba(239,232,223,.18);--dot:#6e6578;--grab:#4e4c4a;--sw-off:#41403e;--done-bg:#5f7355;--sage-ink:#a7b29a;--accent-dis:#413f3d;--tile-0:#43353a;--tile-1:#323a2f;--tile-2:#33373d;--tile-3:#45382d;--tile-4:#3a3536;--pal-0:#44464c;--pal-1:#34465a;--pal-2:#5a4636;--pal-3:#3f5238;--pal-4:#5a3d46;--pal-5:#5a5030;--pal-6:#4a4540;--bl-lilac:#2f2e2c;--bl-sage:#2f3a2c;--bl-pink:#44313a;--bl-green:#2f3d2c;--bl-who:#9a9a9e;--flora:#a7b29a;--text:#efe8df;--text-h:#f3ece3;--text-x1:#faf5ee;--text-x2:#f6efe7;--text-x3:#f6efe7;--text-btn:#e6ddd3;--text-2:#cfc6bd;--text-2b:#cfc6bd;--text-2c:#c4bab1;--text-3:#b8aea6;--text-3b:#b8aea6;--text-3c:#b0a59e;--text-4:#b8aea6;--text-4b:#b0a69e;--text-5:#a69b92;--text-5b:#a0968d;--text-5c:#a29d98;--muted:#968c86;--muted-b:#968c86;--muted-c:#968c86;--muted-d:#9a8a82;--muted-e:#8a8179;--muted-g:#8a8179;--on-accent:#fbf6ff;--accent:#c9b3e8;--accent-bg:#7a5aa6;--accent-2:#9b7ccb;--pk-sel:#ddd0f0;--chip-q:#d2c2ea;--h4:#efe6f5;--link:#c9adf0;--dnl:#b8a3d0;--arrow:#a08cc0;--marker:#8d7aa8;--danger:#e8a090;--danger-bg:#b25a4a;--line:#373634;--line-b:#373634;--line-e:#373634;--line-f:#373634;--line-c:#403f3d;--line-d:#403f3d;--line-lilac2:#3e3c3a;--line-first:#3f3e3c;--bd-lilac:#444240;--tick:#5e5b58;--spin:#4e4c4a;--side-bd:#2c2b29;--hair-a:#2c2b29;--hair-b:#2c2b29;--hair-c:#2c2b29;--sel-bd:#76726f;--hover-bd:#656260;--unr-bd:#5f536f;--blush-bd:#6b4a44;--edge-a:rgba(255,255,255,.08);--edge-b:rgba(255,255,255,.12);--sh-1:rgba(0,0,0,.45);--sh-2:rgba(0,0,0,.45);--sh-3:rgba(0,0,0,.5);--glow-1:rgba(0,0,0,.3);--glow-2:rgba(0,0,0,.3);--glow-3:rgba(0,0,0,.35);--glow-4:rgba(0,0,0,.4);--grain-o:.38;--grain-m:screen;--logo-f:invert(1) hue-rotate(180deg) brightness(1.12);--plant-f:invert(1) hue-rotate(180deg);--img-dim:brightness(.92);--frame:#0c0c0b;--sage:#a7b29a;--me-bg-2:#3c3448;--me-ink:#f3eff6;--canvas:#121211;--toast-link:#d9c6ee;--frame-sh:rgba(0,0,0,.5);--accent-hover:#8a69b8;--nw-tag:#ff3dbb}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) ::placeholder{color:var(--muted)}}
:root[data-theme=dark] ::placeholder{color:var(--muted)}
/* The logged-out page (story + sign-in) is always light (Lyndon 2026-10-27: "Can the homepage jsut be in lightmode"). :has() outranks
   both dark blocks above, so device dark mode and a saved Dark switch only apply once someone is signed in. Same values as :root. */
:root:has(#s-login.on){color-scheme:light;--hl-1:rgba(170,140,215,.16);--hl-2:rgba(130,200,215,.2);--hl-3:rgba(140,170,235,.18);--side-w:340px;--chat-w:600px;--notif:#6b4a8f;--notif-ink:#5b3f7a;--sw-on:#5b3f7a;--rate-fill:#e6dcf2;--ask-bd:#e6dccf;--bg-out:#ece5dc;--bg:#f7f2ea;--bg-raised:#f7f2ea;--surface:#fffdf9;--hover-bg:#fffdf9;--knob:#fff;--check:#fff;--raised-a:#efe8de;--card-soft:#faf5ee;--side:#efe8de;--hero-a:#f5eee6;--hero-b:#eef2ea;--hero-c:#eef0f6;--hero-d:#f6f0f2;--note-lilac:#fbf8fe;--sel-bg:#efe6f8;--sel-b:#e9def5;--first-bg:#f2ebf8;--unr:#e7d9f4;--unr-card:#f3ebf9;--unr-side:#dccbee;--me-bg:#e9dcf5;--blush:#f6e7e3;--petal:#EAD6D1;--tbl-bg:#F8F3EC;--toast-bg:#2e2733;--glass-1:rgba(255,255,255,.55);--glass-2:rgba(255,255,255,.6);--glass-3:rgba(255,255,255,.72);--glass-4:rgba(255,255,255,.8);--dim-1:rgba(43,39,36,.28);--dim-2:rgba(43,39,36,.32);--dots-off:rgba(59,54,49,.15);--dot:#c4b9ad;--grab:#d8cfc4;--sw-off:#ddd4c8;--done-bg:#b9c9ad;--sage-ink:#7d8a68;--accent-dis:#d9cfe6;--tile-0:#f1e4e0;--tile-1:#e8eee2;--tile-2:#ece3ef;--tile-3:#f6e9dd;--tile-4:#e9e0e3;--pal-0:#e6dcf0;--pal-1:#dbe5ee;--pal-2:#f3dfcf;--pal-3:#d9e6d3;--pal-4:#f0d9de;--pal-5:#f2e6c9;--pal-6:#ece6df;--bl-lilac:#e7dcf1;--bl-sage:#dfead8;--bl-pink:#f1dfe6;--bl-green:#dbe8d4;--bl-who:#c9b8de;--flora:#7d8a68;--text:#3b3631;--text-h:#33302c;--text-x1:#2a2320;--text-x2:#2f2a26;--text-x3:#2f2b27;--text-btn:#4a443e;--text-2:#55504a;--text-2b:#5c544c;--text-2c:#5d5650;--text-3:#6e655c;--text-3b:#6f6560;--text-3c:#7a6f6a;--text-4:#7d746a;--text-4b:#7d7368;--text-5:#8a7f74;--text-5b:#8a8178;--text-5c:#8a7f88;--muted:#9a9086;--muted-b:#a39a90;--muted-c:#a1968f;--muted-d:#a0897f;--muted-e:#b3aaa0;--muted-g:#b3aa9f;--on-accent:#fbf8f3;--accent:#4e3566;--accent-bg:#5b3f7a;--accent-2:#6b5aa6;--pk-sel:#3e3470;--chip-q:#4a3a63;--h4:#4e3566;--link:#7a4fa8;--dnl:#7b6593;--arrow:#9b84b5;--marker:#a07fc0;--danger:#a0564a;--danger-bg:#a0564a;--line:#e6ddd1;--line-b:#ece4d9;--line-e:#ece3d8;--line-f:#efe7dc;--line-c:#e3d9cc;--line-d:#e3dacd;--line-lilac2:#e3d9ea;--line-first:#e3d6ef;--bd-lilac:#d9cdee;--tick:#d6ccc0;--spin:#e2d9cd;--side-bd:#e9e1d6;--hair-a:#f0e9df;--hair-b:#f1ebe3;--hair-c:#f2ece4;--sel-bd:#c7b3e3;--hover-bd:#d3c3e8;--unr-bd:#d3bfe6;--blush-bd:#e3bfb4;--edge-a:rgba(78,53,102,.07);--edge-b:rgba(78,53,102,.12);--sh-1:rgba(43,39,36,.15);--sh-2:rgba(43,39,36,.18);--sh-3:rgba(43,39,36,.22);--glow-1:rgba(78,53,102,.07);--glow-2:rgba(78,53,102,.08);--glow-3:rgba(78,53,102,.09);--glow-4:rgba(78,53,102,.12);--grain-o:.85;--grain-m:multiply;--logo-f:none;--plant-f:none;--img-dim:none;--frame:#2b2724;--sage:#A7B29A;--me-bg-2:#d9c6ee;--me-ink:#2e2240;--canvas:#e9e2e4;--toast-link:#d9c6ee;--frame-sh:rgba(46,34,64,.12);--accent-hover:#4a3166;--nw-tag:#be185d}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
/* Manifold's own sans, FK Grotesk (Lyndon 2026-11-04: "Can we change the text to FK Grotesk"). Same files as
   help.manifold.xyz and Studio; Medium covers 500-700. Headings keep the serif. */
@font-face{font-family:"FK Grotesk";src:url(fonts/FKGrotesk-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"FK Grotesk";src:url(fonts/FKGrotesk-Medium.woff2) format("woff2");font-weight:500 700;font-style:normal;font-display:swap}
html,body{margin:0;height:100%}
body{background:var(--bg-out);font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;
  color:var(--text);display:flex;align-items:center;justify-content:center;overflow:hidden}
button,input,textarea{font-family:inherit}

.ph{width:100%;height:100%;max-width:430px;background:var(--bg);position:relative;overflow:hidden}
@media (min-width:600px){.ph{width:390px;height:844px;border-radius:54px;border:12px solid var(--frame)}}
.grain{position:absolute;inset:0;pointer-events:none;opacity:var(--grain-o);mix-blend-mode:var(--grain-m);z-index:9}

.scr{position:absolute;inset:0;display:none;flex-direction:column;animation:in .35s ease}
.scr.on{display:flex}
@keyframes in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.hide{display:none !important}

/* ---------- shared bits ---------- */
.feat{position:relative;flex:none;padding:calc(env(safe-area-inset-top) + 34px) 28px 22px;overflow:hidden}
.blob{position:absolute;pointer-events:none}
.dots{position:relative;display:flex;gap:6px}
.dots i{display:block;width:22px;height:5px;border-radius:3px;background:var(--dots-off)}
.dots i.on{background:var(--accent-bg)}
.who{position:relative;display:flex;align-items:center;gap:10px;margin-top:26px;font-size:14px;color:var(--text-4);font-weight:500}
.h{position:relative;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:28px;
  line-height:1.2;margin-top:12px;color:var(--text-h);max-width:320px;letter-spacing:-.01em}
.p{position:relative;font-size:16px;line-height:1.5;color:var(--text-2);margin-top:10px;max-width:310px}
.ans{flex:1;min-height:0;overflow:auto;padding:20px 22px 0;display:flex;flex-direction:column;gap:10px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile,.opt{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:13px 12px;display:flex;
  align-items:center;gap:10px;font-size:15.5px;cursor:pointer;user-select:none;transition:background .15s;
  text-align:left;color:inherit}
.opt{padding:11px 16px;gap:12px}
.tile.sel,.opt.sel{background:var(--sel-bg);border-color:var(--sel-bd);font-weight:600}
.opt .s{font-size:13.5px;color:var(--muted);margin-top:1px;font-weight:400}
.tick{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--tick);flex:none;margin-left:auto}
.opt.sel .tick{background:var(--accent-bg);border-color:var(--accent-bg);box-shadow:inset 0 0 0 4px var(--sel-bg)}
.hint{font-size:13.5px;color:var(--muted);padding:0 4px}
.lab{font-size:13.5px;color:var(--text-4);margin:4px 4px -4px;font-weight:500}
.field{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:13px 16px;font-size:18px;
  display:flex;align-items:center;gap:4px}
.field input{border:0;outline:0;font:inherit;color:var(--text);background:none;flex:1;min-width:0}
.field.ta{align-items:flex-start}
.field textarea{border:0;outline:0;font:inherit;color:var(--text);background:none;flex:1;min-width:0;resize:none;line-height:1.45;min-height:96px}
.pcs{display:flex;gap:8px;flex-wrap:wrap}
.pc{padding:8px 16px;border-radius:99px;background:var(--surface);border:1px solid var(--line);font-size:14.5px;
  font-weight:500;color:var(--text-2b);cursor:pointer}
.pc.on{background:var(--accent-bg);color:var(--on-accent);border-color:var(--accent-bg)}
.foot{flex:none;padding:12px 24px calc(env(safe-area-inset-bottom) + 24px);display:flex;align-items:center;
  justify-content:space-between}
.skip{color:var(--muted);font-weight:500;font-size:15px;cursor:pointer;background:none;border:0;padding:8px 2px}
.next{padding:14px 26px;border-radius:99px;background:var(--accent-bg);color:var(--on-accent);font-weight:600;font-size:16px;
  line-height:18px;border:0;cursor:pointer}
.next:disabled{opacity:.35}
.err{color:var(--danger);font-size:14px;min-height:18px;padding:0 4px}

/* ---------- login ---------- */
.login{flex:1;display:flex;flex-direction:column;justify-content:center;padding:0 30px;position:relative}
.login .h{margin-bottom:8px}
.login .field{margin-top:10px}
.login .next{margin-top:18px;width:100%;text-align:center}
.login .err{margin-top:10px}
#s-login{overflow-y:auto;-webkit-overflow-scrolling:touch}
#s-login .login{flex:none;min-height:100%;justify-content:flex-start;padding-top:max(14vh,calc(env(safe-area-inset-top) + 48px));padding-bottom:calc(env(safe-area-inset-bottom) + 40px)}
.about{margin-top:64px;padding-top:44px;border-top:1px solid var(--edge-b);color:var(--text)}
.about .ab-k{font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--text-5c);font-weight:600;margin:56px 0 16px}
.about .ab-k:first-child{margin-top:0}
.about .ab-lead{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:24px;line-height:1.32;color:var(--accent);margin:0;letter-spacing:-.01em}
.about .ab-sub{font-size:15px;line-height:1.6;color:var(--text-3b);margin:14px 0 0}
.about .ab-ex{font-size:11.5px;color:var(--muted-c);margin-top:12px;text-align:center;letter-spacing:.02em}
/* logged-out landing + sign-in view (Lyndon 2026-10-27) */
#s-login .lp{padding-top:calc(env(safe-area-inset-top) + 22px)}
.lp-top{display:flex;align-items:center;justify-content:flex-end;position:relative}
.lp .lp-h{font-weight:400;font-size:clamp(38px,10vw,56px);line-height:1.04;letter-spacing:-.01em;max-width:none;margin:40px 0 0}
.lp .lp-h span{display:block;color:var(--accent);font-style:normal;font-size:.62em;margin-top:12px;letter-spacing:0}
.lp .lp-p{font-size:17px;max-width:440px;margin:18px 0 0;color:var(--text-3b)}
.lp-btns{display:flex;gap:10px;margin-top:28px}
.lp-b{flex:1;display:inline-block;text-align:center;text-decoration:none;font:600 16px/1 inherit;font-family:inherit;padding:16px 22px;border-radius:99px;cursor:pointer;box-sizing:border-box}
.lp-b-in{background:var(--accent);color:#fff;border:1px solid var(--accent)}
.lp-b-req{background:var(--glass-3);color:var(--accent);border:1px solid var(--line)}
.lp-note{font-size:13px;color:var(--text-5c);text-align:center;margin-top:10px}
.lp .about{margin-top:48px}
.lp-form{background:var(--glass-2);border:1px solid var(--edge-a);border-radius:24px;padding:18px 16px}
.lp-fp{font-size:14.5px;line-height:1.5;color:var(--text-3b);margin-bottom:6px}
.lp-form .field{margin-top:9px}
.lp-form .err{margin-top:10px}
.lp-full{width:100%;margin-top:14px;text-align:center}
.lp-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.lp-thanks{background:var(--surface);border:1px solid var(--line-b);border-radius:20px;padding:20px 16px;text-align:center}
.lp-tk-h{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:22px;color:var(--accent);letter-spacing:-.01em}
.lp-tk-p{font-size:14.5px;line-height:1.5;color:var(--text-3c);margin-top:6px}
/* The playing chat (Lyndon 2026-11-06: "something similar [to the creator-agent page's video] in the chat view" ... "use
   the exisiting ux in kin"). A small copy of today's computer layout: left bar, chat, and the built-thing pane beside it.
   Same tokens as the real app (--side, --surface, --me-bg, .b.me/.b.ag radii), so it changes when the app does.
   Phones show only the chat column. landing-demo.js fills it. */
.kw{display:flex;height:480px;margin-top:40px;border-radius:20px;overflow:hidden;background:var(--bg);border:1px solid var(--line);
  box-shadow:0 30px 70px -36px var(--sh-3);font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;color:var(--text);text-align:left}
.kw-side{display:none;flex:none;width:228px;background:var(--side);border-right:1px solid var(--side-bd);flex-direction:column;padding:12px 8px 10px}
.kw-sbar{display:flex;align-items:center;justify-content:space-between;padding:0 4px}
.kw-col{width:20px;height:20px;border-radius:6px;background:var(--surface);font-size:12px;display:flex;align-items:center;justify-content:center;color:var(--text-3)}
.kw-seg{display:flex;gap:4px}
.kw-seg i{width:28px;height:22px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:var(--text-3)}
.kw-seg i.on{background:var(--surface);box-shadow:0 1px 2px var(--glow-2)}
.kw-new{display:flex;align-items:center;gap:9px;margin:12px 2px 0;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--card-soft);font-size:14px;font-weight:500}
.kw-new span{width:20px;height:20px;border-radius:50%;background:var(--accent-bg);color:var(--on-accent);display:flex;align-items:center;justify-content:center;font-size:14px}
.kw-k{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:14px 8px 6px;font-weight:500}
.kw-list{flex:1;min-height:0;overflow:hidden}
.kw-r{padding:9px 10px 10px 20px;border-radius:12px;transition:background .25s}
.kw-r.on{background:var(--surface);box-shadow:0 1px 2px var(--glow-1)}
.kw-r .t{display:flex;justify-content:space-between;gap:8px;font-size:13.5px;font-weight:500;color:var(--text-h)}
.kw-r .t span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kw-r .t span:last-child{font-size:11.5px;color:var(--muted);font-weight:400;flex:none}
.kw-r .s{font-size:12px;color:var(--text-5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.kw-me{display:flex;align-items:center;gap:8px;border-top:1px solid var(--side-bd);padding:10px 6px 0;font-size:13.5px}
.kw-av{width:22px;height:22px;border-radius:50%;background:var(--me-bg);color:var(--accent);font-size:11px;display:flex;align-items:center;justify-content:center;font-weight:600}
.kw-main{flex:1;min-width:0;display:flex}
.kw-chat{flex:1;min-width:0;display:flex;flex-direction:column}
.kw-top{display:flex;align-items:center;gap:10px;padding:14px 18px 12px;border-bottom:1px solid var(--hair-a)}
.kw-top>div{flex:1;min-width:0}
.kw-tt{font-size:17px;font-weight:500;color:var(--text-h);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kw-ts{font-size:12px;color:var(--text-5);margin-top:1px}
.kw-addp{display:none;font-size:12px;font-weight:500;color:var(--accent);border:1px solid var(--line);border-radius:99px;padding:5px 10px;background:var(--card-soft);white-space:nowrap}
.kw-more{color:var(--text-5);letter-spacing:1px}
.kw-msgs{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:14px 16px}
.kw-msgs>*{flex:none;animation:kwin .35s ease both}
@keyframes kwin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.kw-day{align-self:center;font-size:11.5px;color:var(--muted)}
.kw-b{max-width:88%;font-size:14.5px;line-height:1.55}
.kw-b.me{align-self:flex-end;background:linear-gradient(180deg,var(--me-bg),var(--me-bg-2));color:var(--me-ink);border-radius:20px 20px 6px 20px;padding:8px 14px;line-height:1.4}
.kw-b.ag{align-self:flex-start;background:var(--surface);border:1px solid var(--line-b);border-radius:20px 20px 20px 6px;padding:12px 16px}
.kw-b p{margin:0}
.kw-b p+p,.kw-b p+ul,.kw-b ul+p,.kw-b ul+h4{margin-top:9px}
.kw-b ul{margin:4px 0 0;padding-left:16px}
.kw-b li{margin:4px 0}
.kw-b li::marker{color:var(--marker)}
.kw-b b{font-weight:600;color:var(--text-x3)}
.kw-b h4{margin:0 0 4px;font-size:15px;font-weight:700;color:var(--h4)}
.kw-typing{align-self:flex-start;background:var(--surface);border:1px solid var(--line-b);border-radius:20px 20px 20px 6px;padding:12px 14px;display:flex;gap:5px}
.kw-typing i{width:6px;height:6px;border-radius:50%;background:var(--dot);animation:bl 1.2s infinite}
.kw-typing i:nth-child(2){animation-delay:.2s}
.kw-typing i:nth-child(3){animation-delay:.4s}
.kw-ract{align-self:flex-start;display:flex;gap:12px;align-items:center;color:var(--muted);margin:-4px 0 0 6px;font-size:11.5px}
.kw-ract svg{width:14px;height:14px}
.kw-file{display:flex;align-items:center;gap:9px;padding:8px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--line-b);font-size:13px;max-width:88%;align-self:flex-start}
.kw-file.me{align-self:flex-end}
.kw-file .ext{font-size:10px;font-weight:700;padding:4px 6px;border-radius:7px;background:var(--petal);color:var(--accent)}
.kw-file .sz{opacity:.55;font-size:11.5px}
.kw-bar{display:flex;gap:8px;align-items:center;padding:10px 16px 14px;border-top:1px solid var(--hair-a)}
.kw-cir{width:32px;height:32px;border-radius:50%;background:var(--raised-a);color:var(--text-4);display:flex;align-items:center;justify-content:center;flex:none;font-size:16px}
.kw-inp{flex:1;min-width:0;background:var(--surface);border:1px solid var(--line-b);border-radius:20px;padding:8px 14px;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:19px}
.kw-ph{color:var(--muted)}
.kw-cur{display:inline-block;width:1.5px;height:15px;background:var(--accent);vertical-align:-2px;animation:bl 1s infinite}
.kw-bld{flex:0 0 0;min-width:0;overflow:hidden;background:var(--raised-a);display:none;flex-direction:column;transition:flex-basis .6s ease}
.kw.bld-on .kw-bld{flex-basis:44%}
.kw-bbar{display:flex;align-items:flex-start;justify-content:space-between;padding:12px 14px 8px;white-space:nowrap}
.kw-bn{font-size:14.5px;font-weight:600;color:var(--text-h)}
.kw-bs{font-size:11.5px;color:var(--text-4);margin-top:2px}
.kw-bs i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--dot);margin-right:5px;vertical-align:1px}
.kw-open{font-size:12px;font-weight:500;border:1px solid var(--line);background:var(--surface);border-radius:99px;padding:4px 11px}
.kw-bbody{flex:1;min-height:0;margin:0 12px 12px;border-radius:12px;background:var(--surface);overflow:hidden}
.kw-mini{padding:16px 16px 0;font-size:11.5px;color:var(--text-2);line-height:1.45}
.kw-mini h5{margin:0;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-size:20px;font-weight:500;color:var(--text-x2)}
.kw-msub{color:var(--text-5)}
.kw-pic{height:92px;border-radius:10px;margin:12px 0;background:linear-gradient(135deg,#e7c9a9,#c98e6a 55%,#8c5a43)}
.kw-pic.bread{background:linear-gradient(135deg,#f0dcc0,#d7a874 60%,#a86c3c)}
.kw-rows div{display:flex;justify-content:space-between;border-top:1px solid var(--hair-b);padding:6px 0}
.kw-pill{display:inline-block;margin-top:10px;background:var(--accent-bg);color:var(--on-accent);border-radius:99px;padding:5px 12px;font-size:11px}
.kw-nums{display:flex;gap:16px;margin-top:10px}
.kw-nums b{display:block;font-size:18px;color:var(--accent);font-weight:600}
.kw-bars{display:flex;align-items:flex-end;gap:4px;height:90px;margin-top:12px}
.kw-bars i{flex:1;background:var(--accent-2);border-radius:3px 3px 0 0;opacity:.8}
.kw-mo{display:flex;justify-content:space-between;font-size:9.5px;color:var(--muted);margin-top:4px}
/* idea cards, plans, FAQ */
.lp-ideas{display:grid;grid-template-columns:1fr;gap:10px}
.lp-idea{display:block;width:100%;box-sizing:border-box;text-align:left;font:inherit;color:inherit;background:var(--glass-2);border:1px solid var(--edge-a);border-radius:18px;padding:14px 16px}
button.lp-idea{cursor:pointer}
.lp-idea b{display:block;font-weight:600;color:var(--accent);font-size:16px}
.lp-idea span{display:block;color:var(--text-3c);font-size:14px;margin-top:4px;line-height:1.45}
.lp-idea.on{border-color:var(--accent)}
.lp .lp-h2{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:clamp(32px,8vw,48px);letter-spacing:-.01em;margin:64px 0 0;color:var(--text-h)}
.lp-sub{color:var(--text-3c);margin:8px 0 0;font-size:16px}
.lp-plans{display:grid;grid-template-columns:1fr;gap:12px;margin-top:22px}
.lp-plan{background:var(--glass-2);border:1px solid var(--edge-a);border-radius:22px;padding:20px 18px}
.lp-plan.hi{border-color:var(--accent)}
.lp-plan .pn{font-weight:600;color:var(--text-h);font-size:16px}
.lp-plan .pp{font-size:38px;color:var(--text-h);margin-top:6px;letter-spacing:-.02em}
.lp-plan .pp small{font-size:14px;color:var(--muted);margin-left:4px;letter-spacing:0}
.lp-plan .pd{font-size:14px;color:var(--text-3c);line-height:1.45;margin-top:6px;min-height:42px}
.lp-pb,.lp-soon{display:block;width:100%;box-sizing:border-box;text-align:center;margin-top:14px;padding:10px 16px;border-radius:99px;font:inherit;font-weight:600;font-size:14px;border:0}
.lp-pb{background:var(--glass-4);color:var(--text-btn);cursor:pointer}
.lp-pb.pri{background:var(--accent-bg);color:var(--on-accent)}
.lp-soon{background:var(--raised-a);color:var(--muted)}
.lp-plan dl{margin:16px 0 0;font-size:13.5px}
.lp-plan dt{color:var(--muted);font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin-top:10px}
.lp-plan dd{margin:2px 0 0;color:var(--text)}
.lp-faq{margin-top:18px}
.lp-faq details{border-top:1px solid var(--edge-b);padding:16px 2px}
.lp-faq details:last-child{border-bottom:1px solid var(--edge-b)}
.lp-faq summary{cursor:pointer;font-size:17px;color:var(--text-h);font-weight:500;list-style:none;display:flex;justify-content:space-between;gap:12px}
.lp-faq summary::-webkit-details-marker{display:none}
.lp-faq summary::after{content:"+";color:var(--accent);font-size:20px;line-height:1}
.lp-faq details[open] summary::after{content:"\2013"}
.lp-faq p{margin:10px 0 0;color:var(--text-3b);line-height:1.6;font-size:15px}
.lp-brand{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:600;font-size:20px;color:var(--accent);margin-right:auto}
.lp-nav{display:none}
.lp-faq+.ab-k{margin-top:72px}
@media (prefers-reduced-motion:reduce){.kw-msgs>*{animation:none}.kw-bld{transition:none}}
/* Landing on computers (Lyndon 2026-10-29: "might be too mobile focused - Can we make sure this looks good on web
   and mobile?"). Phones and narrow windows keep the single column above. From 1000px: a 1040px page, a centred
   hero, the playing chat at full width with its left bar and built pane, ideas in 3s, the four plans in one row. */
@media (min-width:1000px){
  #s-login .lp{--gut:max(48px,env(safe-area-inset-left),env(safe-area-inset-right),calc((100% - 1040px)/2));padding-top:calc(env(safe-area-inset-top) + 28px)}
  .lp .lp-h{text-align:center;font-size:76px;margin-top:72px}
  .lp .lp-h span{font-size:.58em;margin-top:16px}
  .lp .lp-p{text-align:center;font-size:19px;line-height:1.55;max-width:620px;margin:26px auto 0}
  .lp-btns{justify-content:center;margin-top:36px}
  .lp-b{flex:0 0 auto;min-width:200px}
  .lp .about{margin-top:88px;padding-top:64px}
  .lp .about .ab-k{text-align:center;margin:88px 0 22px}
  .lp .about .ab-k:first-child{margin-top:0}
  .kw{height:620px;margin-top:64px}
  .kw-side,.kw-bld{display:flex}
  .kw-addp{display:inline-block}
  .kw.bld-on .kw-addp{display:none}
  .kw-msgs,.kw-bar,.kw-top{padding-left:28px;padding-right:28px}
  .lp-ideas{grid-template-columns:1fr 1fr 1fr;gap:16px}
  .lp-plans{grid-template-columns:repeat(4,1fr);gap:16px}
  .lp .lp-h2{text-align:center;margin-top:120px}
  .lp-sub{text-align:center}
  .lp-faq{max-width:760px;margin-left:auto;margin-right:auto}
  .lp-nav{display:flex;gap:24px;margin-right:24px}
  .lp-nav a{color:var(--text-3c);text-decoration:none;font-size:15px}
  .lp-nav a:hover{color:var(--accent)}
  .lp-form,.lp-thanks,.lp-already{max-width:560px;margin-left:auto;margin-right:auto}
  .lp-form{padding:24px 22px}
}
.lp-already,.lp-si-alt{text-align:center;font-size:14.5px;color:var(--text-3c);margin-top:28px}
.lp-already a,.lp-already button,.lp-si-alt button{font:inherit;font-weight:600;color:var(--accent);background:none;border:0;padding:0;text-decoration:underline;cursor:pointer}
.lp-back{align-self:flex-start;text-decoration:none;font:500 15px/1 inherit;font-family:inherit;color:var(--text-3c);background:none;border:0;padding:6px 0;cursor:pointer;margin-bottom:10vh}
.lp-si-help{font-size:13.5px;color:var(--text-5c);text-align:center;margin-top:16px;line-height:1.5}
.lp-si-alt{margin-top:40px;padding-top:22px;border-top:1px solid var(--edge-b)}
#s-login .lp-si{padding-top:calc(env(safe-area-inset-top) + 22px)}

/* ---------- research ---------- */
.rs{flex:1;display:flex;flex-direction:column;justify-content:center;padding:0 30px}
.quote{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-size:25px;line-height:1.3;
  color:var(--text-h);position:relative}
.qs{font-size:16px;color:var(--text-3);margin-top:14px;line-height:1.5;position:relative}
.steps{margin-top:34px;display:flex;flex-direction:column;gap:14px;position:relative}
.st{display:flex;align-items:center;gap:12px;font-size:16px;color:var(--muted-b);transition:color .3s}
.st .ic{width:24px;height:24px;border-radius:50%;flex:none;border:2px solid var(--spin);display:flex;
  align-items:center;justify-content:center}
.st.run{color:var(--text)}
.st.run .ic{border-color:var(--sel-bd);border-top-color:var(--accent-2);animation:spin 1s linear infinite}
.st.done{color:var(--text-2)}
.st.done .ic{background:var(--done-bg);border-color:var(--done-bg)}
.st.done .ic:after{content:"";width:9px;height:5px;border-left:2px solid var(--check);border-bottom:2px solid var(--check);
  transform:rotate(-45deg) translate(1px,-1px)}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- chat ---------- */
.top{flex:none;display:flex;align-items:center;gap:12px;padding:calc(env(safe-area-inset-top) + 30px) 20px 12px;
  border-bottom:1px solid var(--hair-a);position:relative;z-index:2}
.bk{font-size:30px;color:var(--text-5);line-height:1;cursor:pointer;padding-right:4px;background:none;border:0}
.th{flex:1;min-width:0}
/* Chat titles stay on one line and end in "…" (Lyndon 2026-10-18), here and in the list. */
.tt{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:20px;color:var(--text-h);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
.ts{font-size:13px;color:var(--muted);font-weight:500}
/* Rename a chat (Lyndon 2026-10-26): tap the title. */
#ctitle{cursor:text}
.tt.rn{display:block;width:100%;box-sizing:border-box;border:0;outline:0;margin:-3px 0 -3px -8px;padding:3px 8px;
  border-radius:10px;background:var(--side);user-select:text;-webkit-user-select:text;touch-action:auto}
/* Sent while Kin is replying: faded until it goes, with a small note under it (Lyndon 2026-10-26). */
.b.me.queued{opacity:.6}
.qnote{align-self:flex-end;font-size:12.5px;color:var(--muted);margin:-6px 4px 0}
.msgs{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 16px;
  display:flex;flex-direction:column;gap:10px;position:relative;z-index:2}
/* anchor the conversation to the bottom of the scroller when it is short */
.msgs>:first-child{margin-top:auto}
.b{flex:none;max-width:82%;padding:11px 15px;font-size:16px;line-height:1.42;white-space:pre-wrap;
  overflow-wrap:anywhere}
.ag{align-self:flex-start;background:var(--surface);border:1px solid var(--line-b);border-radius:22px 22px 22px 6px}
/* Kin's formatted messages (titles, bullets, numbers). Long ones use nearly the full width. */
.b.fmt{white-space:normal}
.b.wide{max-width:94%}
.b.fmt p{margin:0}
/* Lyndon 11-05: "more space between lines so it's visually easier to read" */
.b.ag{line-height:1.6}
/* Lyndon 11-05: "more room inside the bubble" (computers; phones keep theirs) */
@media (min-width:1000px) and (min-height:500px){.ph.sided .b.ag.fmt{padding:18px 24px}}
.b.fmt p+p,.b.fmt p+ul,.b.fmt p+ol,.b.fmt ul+p,.b.fmt ol+p,.b.fmt ul+h4,.b.fmt ol+h4,.b.fmt p+h4{margin-top:16px}
.b.fmt h4{margin:0 0 8px;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-size:17.5px;
  font-weight:700;color:var(--h4);letter-spacing:.1px}
.b.fmt h4:not(:first-child){margin-top:22px}
.b.fmt ul,.b.fmt ol{margin:6px 0 0;padding-left:18px}
.b.fmt li{margin:8px 0;padding-left:2px}
.b.fmt li::marker{color:var(--marker)}
.b.fmt b{font-weight:700;color:var(--text-x3)}
.b.fmt a{color:var(--link);font-weight:600;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.me{align-self:flex-end;background:linear-gradient(180deg,var(--me-bg),var(--me-bg-2));color:var(--me-ink);border-radius:22px 22px 6px 22px}
.day{flex:none;align-self:center;font-size:12px;color:var(--muted-b);font-weight:500;margin:2px 0}
.day.stamp{font-size:13px;margin:14px 0 2px}
.day.stamp b{font-weight:600}
.res{flex:none;background:var(--surface);border:1px solid var(--line-b);border-radius:20px;overflow:hidden;align-self:stretch}
.res .hd{background:var(--hero-b);padding:11px 15px;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;
  font-size:16px;color:var(--text-h)}
.res .row{display:flex;justify-content:space-between;gap:12px;padding:8px 15px;font-size:14px;
  border-top:1px solid var(--hair-c)}
.res .row span:first-child{color:var(--text-4);flex:none}
.res .row span:last-child{text-align:right}
.rep .sec{padding:12px 15px 4px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600;
  border-top:1px solid var(--hair-c)}
.rep .hd+.sec{border-top:0}
.rep .row{border-top:0;padding:5px 15px}
.rep .top{padding:6px 15px 8px}
.rep .top a{color:inherit;text-decoration:none;display:block;background:var(--card-soft);border:1px solid var(--line-f);border-radius:14px;padding:9px 12px}
.rep .top>div{background:var(--card-soft);border:1px solid var(--line-f);border-radius:14px;padding:9px 12px}
.rep .tt2{font-weight:600;font-size:14.5px}
.rep .st2{font-size:13px;color:var(--accent-2);margin-top:2px}
.rep .why{font-size:13.5px;color:var(--text-3);margin-top:4px;line-height:1.4}
.rep ul{margin:2px 0 10px;padding:0 15px 0 32px;font-size:14px;line-height:1.45;color:var(--text)}
.rep li{margin:3px 0}
.rep .chn{padding:3px 0}
.rep .chn .row{padding:4px 15px 0}
.rep .chn .cn{padding:0 15px 4px;font-size:13px;color:var(--text-3);line-height:1.35}
.rep .first{margin:4px 15px 12px;background:var(--first-bg);border:1px solid var(--line-first);border-radius:14px;padding:10px 12px;
  font-size:14.5px;line-height:1.45;color:var(--text)}
.rep .nc{padding:10px 15px 12px;font-size:12.5px;color:var(--muted);line-height:1.4;border-top:1px solid var(--hair-c)}
.note{flex:none;align-self:stretch;background:var(--hero-b);border-radius:22px;padding:14px 16px;position:relative;
  overflow:hidden}
.note .k{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:17px;color:var(--text-h);margin-bottom:4px}
.note .d{font-size:14.5px;color:var(--text-2)}
.note .acts{display:flex;gap:8px;margin-top:12px}
.btn{display:inline-block;line-height:18px;padding:9px 16px;border-radius:99px;font-weight:600;font-size:14px;
  background:var(--glass-4);color:var(--text-btn);border:0;cursor:pointer}
.btn.pri{background:var(--accent-bg);color:var(--on-accent)}
.chips{flex:none;align-self:flex-start;display:flex;gap:8px;flex-wrap:wrap}
.chips span{padding:8px 14px;border-radius:99px;background:var(--surface);border:1px solid var(--line);font-size:14px;
  font-weight:500;color:var(--text-2b);cursor:pointer}
.typing{flex:none;align-self:flex-start;background:var(--surface);border:1px solid var(--line-b);
  border-radius:22px 22px 22px 6px;padding:14px 16px;display:flex;gap:5px}
.typing i{width:7px;height:7px;border-radius:50%;background:var(--dot);display:block;animation:bl 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}
.typing i:nth-child(3){animation-delay:.4s}
@keyframes bl{0%,80%,100%{opacity:.3}40%{opacity:1}}
.mark{flex:none;align-self:flex-start;font-size:12px;color:var(--muted-d);margin:-4px 0 0 6px}
/* Under each Kin reply (Lyndon 2026-10-27, Claude's row): copy, thumbs up, thumbs down, how long ago. */
.ract{flex:none;align-self:flex-start;display:flex;align-items:center;gap:2px;margin:-6px 0 0 2px;color:var(--muted)}
.ract button{width:32px;height:32px;border:0;background:none;border-radius:9px;display:flex;align-items:center;
  justify-content:center;color:inherit;cursor:pointer;padding:0}
.ract button:hover{background:var(--raised-a);color:var(--text-2b)}
.ract button.sel{color:var(--accent)}
.ract button.sel svg{fill:var(--rate-fill)}
.ract .ago{font-size:13px;margin-left:8px;color:var(--muted-b)}
.ract .ract-br{display:none}
/* On a computer the row waits for the mouse, like Claude; the latest reply and rated ones keep it. */
@media (hover:hover) and (pointer:fine){
  .ract{opacity:0;transition:opacity .15s}
  .ract .ract-br{display:flex} /* "New chat from here" (Lyndon 2026-11-01): a visible button on computers; phones hold the bubble */
  .b.ag:hover+.ract,.ract:hover,.ract.last,.ract.on,.ract:focus-within{opacity:1}
}
.toast{flex:none;align-self:center;background:var(--accent-bg);color:var(--on-accent);font-size:13.5px;border-radius:99px;
  padding:8px 14px}
.shot{flex:none;align-self:flex-end;max-width:62%;border-radius:18px;border:1px solid var(--line-b)}
.bar{flex:none;display:flex;gap:10px;align-items:flex-end;padding:10px 14px calc(env(safe-area-inset-bottom) + 16px);
  border-top:1px solid var(--hair-a);background:var(--bg);position:relative;z-index:3}
.cir{color:var(--text-4);width:40px;height:40px;border-radius:50%;background:var(--raised-a);flex:none;display:flex;align-items:center;
  justify-content:center;border:0;cursor:pointer;padding:0}
.inp{flex:1;min-width:0;background:var(--surface);border:1px solid var(--line-b);border-radius:22px;padding:10px 16px;
  font:inherit;font-size:16px;color:var(--text);outline:0}
/* Message box wraps onto new lines and grows like iMessage, up to 5 lines, then scrolls. */
textarea.inp{display:block;resize:none;line-height:20px;height:42px;max-height:122px;overflow-y:hidden}
.attached{flex:none;align-self:flex-end;font-size:12.5px;color:var(--text-4);background:var(--raised-a);border-radius:99px;
  padding:5px 12px}
/* Photos and files waiting to be sent, above the message box (Lyndon 2026-10-26: drag a file onto the chat). */
.pend{flex:none;display:flex;flex-wrap:wrap;gap:8px;padding:8px 14px 0;background:var(--bg);border-top:1px solid var(--hair-a);position:relative;z-index:3}
.pend:not(.hide)+.bar{border-top:0}
.pchip{display:flex;align-items:center;gap:8px;max-width:100%;min-width:0;padding:4px 6px 4px 4px;border-radius:14px;background:var(--surface);border:1px solid var(--line);font-size:13px;color:var(--text)}
.pchip img{display:block;width:34px;height:34px;object-fit:cover;border-radius:9px;background:var(--raised-a)}
.pchip .ext{flex:none;font-size:10.5px;font-weight:600;letter-spacing:.04em;padding:6px 7px;border-radius:9px;background:var(--petal);color:var(--accent)}
.pchip .nm{min-width:0;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pchip .x{flex:none;width:24px;height:24px;border-radius:50%;border:0;background:var(--raised-a);color:var(--text-4);font-size:15px;line-height:1;cursor:pointer;padding:0}
.pend .attached,.pend .pnote{align-self:center}
.pend .pnote{font-size:12.5px;color:var(--danger);background:var(--blush);border-radius:99px;padding:5px 12px}
/* Dragging files over the chat: a soft sheet over the whole chat. It never takes the drop itself. */
.dropveil{position:absolute;inset:0;z-index:9;display:flex;align-items:center;justify-content:center;pointer-events:none;
  background:color-mix(in srgb,var(--bg) 88%,transparent);border:2px dashed var(--tick);border-radius:18px;margin:8px}
.dropveil>div{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:22px;color:var(--accent);letter-spacing:-.01em}
/* What they attached, under their own message */
.me-media{flex:none;align-self:flex-end;display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:86%}
.me-media .kin-shots{align-self:flex-end;justify-content:flex-end}
.me-media .kin-file{align-self:flex-end}

/* long press menu + feedback sheet (9-feedback.html) */
.dim{position:absolute;inset:0;background:var(--dim-1);z-index:6}
.menu{position:absolute;z-index:7;background:var(--hover-bg);border-radius:16px;overflow:hidden;width:230px;
  box-shadow:0 10px 30px var(--sh-2)}
.menu button{width:100%;padding:12px 16px;font-size:15.5px;border:0;border-top:1px solid var(--hair-b);
  display:flex;justify-content:space-between;align-items:center;background:var(--hover-bg);cursor:pointer;color:var(--text)}
.menu button:first-child{border-top:0}
.menu button svg{color:var(--text-4)}
.menu button.cp{color:var(--text-4)}
.menu button.br{color:var(--accent);font-weight:600}
.menu button.danger{color:var(--danger)}
.menu button.br svg{color:var(--accent)}
.b.held{transform:scale(1.02);box-shadow:0 8px 24px var(--sh-2);transition:transform .12s}
.sheet{position:absolute;left:0;right:0;bottom:0;z-index:8;background:var(--bg-raised);border-radius:28px 28px 0 0;
  padding:10px 20px calc(env(safe-area-inset-bottom) + 24px);box-shadow:0 -10px 30px var(--sh-1);
  max-height:88%;overflow-y:auto}
.grab{width:40px;height:5px;border-radius:3px;background:var(--grab);margin:0 auto 14px}
.quote-of{background:var(--surface);border:1px solid var(--line-b);border-radius:14px;padding:10px 12px;font-size:14px;
  color:var(--text-3);border-left:4px solid var(--sel-bd)}
.sh{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:22px;color:var(--text-h);margin:16px 0 10px;letter-spacing:-.01em}
.ld{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ld button{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:13px;text-align:center;
  font-weight:600;font-size:15.5px;display:flex;align-items:center;justify-content:center;gap:8px;
  cursor:pointer;color:var(--text)}
.ld button.sel{background:var(--blush);border-color:var(--blush-bd)}
.sub{font-size:15px;color:var(--text-2);margin:16px 0 8px}
.tags{display:flex;flex-wrap:wrap;gap:8px}
.tags button{padding:7px 13px;border-radius:99px;background:var(--surface);border:1px solid var(--line);font-size:13.5px;
  color:var(--text-2b);cursor:pointer}
.tags button.sel{background:var(--accent-bg);color:var(--on-accent);border-color:var(--accent-bg)}
.sheet .tags.hide+.sub{margin-top:16px}
.ta{margin-top:12px;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 14px;
  font-size:15px;color:var(--text);min-height:74px;outline:0;resize:none}
.send-fb{margin-top:14px;width:100%;display:block;text-align:center;padding:14px;border-radius:99px;
  background:var(--accent-bg);color:var(--on-accent);font-weight:600;font-size:16px;border:0;cursor:pointer}

/* "New chat from here" (Lyndon 2026-11-01): the sheet, the Carried over card in the new chat, the pill in the old one. */
.bsheet .sh-h{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:23px;color:var(--text-h);margin:0;letter-spacing:-.01em}
.bsheet .sh-d{font-size:14.5px;color:var(--text-4);margin-top:4px;line-height:1.4}
.bsheet .lbl{display:block;font-size:12.5px;font-weight:700;letter-spacing:.04em;color:var(--muted);text-transform:uppercase;margin:18px 0 7px}
.bsheet .field{display:block;width:100%;box-sizing:border-box;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:12px 14px;font:inherit;font-size:16px;color:var(--text-h);outline:0}
.bsheet .field:focus{border-color:var(--sel-bd)}
.bring{background:var(--hero-b);border-radius:18px;padding:13px 15px;font-size:14.5px;line-height:1.45;color:var(--text-2)}
.bring div{display:flex;gap:9px}.bring div+div{margin-top:6px}
.bring i{font-style:normal;color:var(--sage-ink);flex:none}
.br-err{min-height:0;font-size:13.5px;color:var(--text-2);margin-top:10px}
.br-err:empty{display:none}
.bacts{display:flex;gap:10px;margin-top:20px}
.bbtn{flex:1;text-align:center;padding:13px 16px;border-radius:99px;font:inherit;font-weight:600;font-size:15px;background:var(--side);color:var(--text-2);border:0;cursor:pointer}
.bbtn.pri{background:var(--accent-bg);color:var(--on-accent)}
.bbtn:disabled{opacity:.6;cursor:default}
.carry{flex:none;align-self:stretch;background:var(--hero-b);border-radius:20px;padding:13px 15px}
.carry .k{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--sage-ink);margin-bottom:7px}
.carry .q{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-size:15px;color:var(--text-2);border-left:2px solid var(--sage);padding-left:10px;margin-bottom:9px;line-height:1.4}
.carry ul{list-style:none;margin:0;padding:0;font-size:14px;color:var(--text-2);line-height:1.45}
.carry li{display:flex;gap:8px}.carry li+li{margin-top:4px}.carry li::before{content:"\00b7";color:var(--sage-ink);font-weight:700}
.bmark{flex:none;align-self:center;display:flex;align-items:center;gap:7px;font:inherit;font-size:13px;color:var(--text-4);background:var(--side);border:0;border-radius:99px;padding:6px 12px;cursor:pointer;max-width:92%}
.bmark span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.bmark b{color:var(--accent);font-weight:600}
#csub a{color:var(--accent);text-decoration:none;font-weight:600}
#csub{margin-top:5px} /* Lyndon 2026-11-05: "more spacing between the project name and the text below" */
#ctop .cmore{flex:none;display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border-radius:999px;color:var(--text-3)}
#ctop .cmore.hide{display:none}

/* ---------- home ---------- */
.hsc{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;
  scrollbar-width:none;padding-bottom:calc(env(safe-area-inset-bottom) + 12px)}
.hsc::-webkit-scrollbar{display:none}
.hfeat{position:relative;flex:none;min-height:340px;padding:calc(env(safe-area-inset-top) + 20px) 26px 26px;
  overflow:hidden;background:var(--hero-a)}
.htxt{position:relative;z-index:2}
.htxt .h,.htxt .p{max-width:228px}
/* daily plant (botanical.js), static, half opacity */
.flora,.dflora,.flora-leaf{color:var(--flora)}
.flora{position:absolute;right:-34px;top:calc(env(safe-area-inset-top) + 40px);width:206px;height:275px;z-index:1;
  opacity:.5;pointer-events:none}
.flora-leaf{display:none} /* parallax accent; overlapped the goal text once static */
.hbar{position:relative;display:flex;justify-content:space-between;align-items:center}
.from{position:relative;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-4);font-weight:500}
.pfp{color:var(--text-4);width:34px;height:34px;border-radius:50%;background:var(--glass-3);border:0;display:flex;
  align-items:center;justify-content:center;cursor:pointer;flex:none;padding:0}
.acts{position:relative;margin-top:18px;display:flex;gap:10px;flex-wrap:wrap}
.lh{flex:none;display:flex;justify-content:space-between;align-items:center;padding:16px 26px 4px}
.lh b{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-size:21px;font-weight:500;color:var(--text-h);letter-spacing:-.01em}
.plus{width:34px;height:34px;border-radius:50%;background:var(--accent-bg);color:var(--on-accent);display:flex;align-items:center;
  justify-content:center;font-size:0;line-height:0;border:0;cursor:pointer;padding:0;position:relative}
/* The + is drawn, not typed (Lyndon 2026-11-05: "the centering of the + is too high"): a text "+" sits wherever the
   font puts it, so the buttons were 2-5px high. Two bars are centred on the circle whatever the font or size. */
.plus::before,.plus::after{content:"";position:absolute;left:50%;top:50%;width:40%;height:2px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%)}
.plus::after{transform:translate(-50%,-50%) rotate(90deg)}
.list{padding-bottom:8px}
.li{display:flex;gap:14px;align-items:center;padding:11px 26px;cursor:pointer;position:relative}
.ln{flex:1;min-width:0}
.ln .t{display:flex;justify-content:space-between;gap:8px;font-weight:600;font-size:16.5px}
.ln .t .tn{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ln .t .wh{font-weight:500;color:var(--muted-b);font-size:13px;flex:none}
.ln .s{display:flex;gap:8px;align-items:baseline;color:var(--text-4);font-size:15px;margin-top:2px}
.ln .s .sl{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ln .s .n{flex:none;font-size:12px;color:var(--muted-e);font-variant-numeric:tabular-nums}
.ln .s .n.mc{white-space:nowrap} /* "12 messages" stays on one line; the summary line gives way (Lyndon 2026-11-06). Not .msgs: that is the chat pane */
.lt{display:flex;align-items:center;gap:10px;min-width:0}
/* "N new": a small plum pill next to Your chats that points them at the unread ones (Lyndon 2026-10-18). */
.newpill{background:var(--notif);color:var(--on-accent);border:0;border-radius:999px;padding:3px 10px;font-family:inherit;font-weight:600;font-size:12.5px;line-height:1.4;cursor:pointer;flex:none;white-space:nowrap}
/* Unread (Lyndon 2026-10-26 picked C, "not obnoxious but obvious"): iMessage-style plum dot on the row's left edge,
   a soft plum tint on the whole row, and a darker title and preview. No red, no count. */
.un{width:10px;height:10px;border-radius:50%;background:var(--accent-bg);flex:none;position:absolute;top:50%;margin-top:-5px;
  left:max(8px,calc(var(--gut,26px) - 17px))}
.li.unr{background:var(--unr)} /* "The slight purple can be a little darker" (Lyndon 2026-10-27) */
.li.unr .ln .t .tn{font-weight:800;color:var(--text-x1)}
.li.unr .ln .s .sl{color:var(--text-x1);font-weight:600}
.empty{padding:18px 26px;color:var(--muted);font-size:15px}
.install{margin:10px 22px 0;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:13px 15px;
  font-size:14.5px;color:var(--text-2);display:flex;gap:10px;align-items:flex-start}
.install button{background:none;border:0;color:var(--muted);font-size:18px;line-height:1;cursor:pointer;padding:0 2px}

/* ---------- profile ---------- */
.prof{flex:1;min-height:0;overflow-y:auto;padding:0 22px calc(env(safe-area-inset-bottom) + 28px)}
.sect{margin-top:24px}
.sect h3{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-size:19px;font-weight:500;
  color:var(--text-h);margin:0 0 10px;letter-spacing:-.01em}
.kn{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:11px 14px;margin-bottom:8px;
  display:flex;gap:10px;align-items:flex-start}
.kn .kt{flex:1;font-size:15px;line-height:1.4}
.kn .kk{font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-b);margin-bottom:2px}
.kn button{background:none;border:0;color:var(--text-5);font-size:13.5px;font-weight:600;cursor:pointer;padding:2px 4px}
.toggle{display:flex;align-items:center;justify-content:space-between;background:var(--surface);border:1px solid var(--line);
  border-radius:16px;padding:13px 15px;font-size:15.5px}
.sw{width:46px;height:27px;border-radius:99px;background:var(--sw-off);border:0;position:relative;cursor:pointer;
  flex:none;transition:background .2s}
.sw:after{content:"";position:absolute;left:3px;top:3px;width:21px;height:21px;border-radius:50%;background:var(--knob);
  transition:left .2s}
.sw.on{background:var(--sw-on)}
.sw.on:after{left:22px}
.sw:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#dark-note:empty{display:none}
.prof .lab{display:block;margin:12px 4px 6px}
.prof .lab:first-of-type{margin-top:0}
.field.nm{font-size:16px;padding:12px 15px;border-radius:16px}
.linkbtn{background:none;border:0;color:var(--danger);font-weight:600;font-size:15.5px;cursor:pointer;padding:10px 0}

/* Getting to know you: obstacle picker + new chat card (v6) */
.pick{flex:none;align-self:stretch;display:flex;flex-wrap:wrap;gap:8px;padding:2px 0 4px}
.pk{border:1px solid var(--line-d);background:var(--surface);border-radius:99px;padding:9px 14px;font-size:15px;color:var(--text);text-align:left;font-family:inherit}
.pk.sel{background:var(--sel-b);border-color:var(--sel-bd);color:var(--pk-sel)}
.pk.other{border-style:dashed;color:var(--text-4)}
.pk-go{flex-basis:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px}
.pk-hint{font-size:13px;color:var(--muted)}
.pk-go .btn[disabled]{opacity:.45}
.note .lbl{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:6px}
.note.newchat{border-color:var(--bd-lilac);background:var(--note-lilac)}
.projects{display:flex;flex-direction:column;gap:10px;align-self:stretch}
.note.project{border-color:var(--bd-lilac);background:var(--note-lilac)}
.note.project .ms{color:var(--text-h);font-weight:600;margin-bottom:4px}
.projects .acts.none{margin-top:2px}
.li .s .researching{font-style:normal;color:var(--muted)}
.typing.researching{display:flex;align-items:center;gap:8px}
.typing.researching span{font-size:13px;color:var(--muted)}
[data-open-chat]{cursor:pointer;text-decoration:underline}

/* Confirm what we know (v7) */
.known{flex:none;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:6px 16px}
.known .kr{display:flex;gap:12px;padding:11px 0;border-top:1px solid var(--hair-c);align-items:baseline}
.known .kr:first-child{border-top:0}
.known .kl{flex:none;width:92px;font-size:13px;color:var(--muted)}
.known .kv{font-size:16px;color:var(--text-h);line-height:1.35}
/* Their standout piece on the findings card (v7) */
.rep .hero{display:block;position:relative;text-decoration:none;color:inherit}
.rep .hero img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--bg-out)}
.rep .hero .cap{padding:10px 15px 4px}
.rep .hero .cap .tt2{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:17px}
/* Evidence line under a home idea (v7) */
#feat-ev{font-size:13.5px;color:var(--text-4);margin-top:10px;line-height:1.4;position:relative;max-width:300px}
#feat-ev:before{content:"Why: ";font-weight:600;color:var(--text-3)}
/* A quote on the empty home card (quotes.js): same serif, a little smaller, author small and grey */
.hfeat.quote #feat-h{font-size:23px !important;line-height:1.3}
#feat-by{position:relative;font-size:13.5px;color:var(--text-5b);margin-top:10px;letter-spacing:.01em}
#feat-by:before{content:"\2014\00a0"}

/* "Send a screenshot" chip in the audience step (v8) */
.chips .photo-chip{border-style:dashed}
.chips.quick span{cursor:pointer;border-color:var(--sel-bd);color:var(--chip-q)}
.season .sr{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--hair-c);font-size:15px}
.season .sr:first-child{border-top:0}
.vision-text{font-size:15.5px;line-height:1.45;color:var(--text-h);margin-bottom:6px}
.vision-text.empty{color:var(--muted);font-size:14.5px}
.vision-in{border:0;outline:0;font:inherit;font-size:16px;line-height:1.4;color:var(--text);background:none;flex:1;min-width:0;resize:none}
.vision-btns{display:flex;gap:16px;margin-top:8px}
.season .sr .st small{display:block;color:var(--muted);font-size:12.5px}
.season .rm{flex:none;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--text-4b);font-size:18px;line-height:1;cursor:pointer}
/* Pictures Kin attached to a reply (ui.images) */
.kin-shots{flex:none;align-self:flex-start;display:flex;gap:8px;flex-wrap:wrap;max-width:86%}
.kin-shots a{display:block;flex:1 1 140px;max-width:260px}
.kin-shots img{display:block;width:100%;max-height:360px;object-fit:cover;object-position:top;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.kin-media{flex:none;align-self:flex-start;max-width:86%}
.kin-media video{display:block;width:100%;max-width:320px;max-height:420px;border-radius:14px;background:#000}
.kin-media audio{display:block;width:280px;max-width:100%}
.kin-file{flex:none;align-self:flex-start;display:flex;align-items:center;gap:10px;max-width:86%;padding:10px 14px;border-radius:14px;
  background:var(--surface);border:1px solid var(--line);color:inherit;text-decoration:none}
.kin-file .ext{flex:none;font-size:11px;font-weight:600;letter-spacing:.04em;padding:6px 7px;border-radius:8px;background:var(--petal);color:var(--accent)}
.kin-file .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.kin-file .sz{flex:none;font-size:12px;opacity:.6}
.chips .photo-chip:before{content:"";display:inline-block;width:14px;height:11px;margin-right:6px;vertical-align:-1px;
  border:1.6px solid currentColor;border-radius:3px;box-sizing:border-box}

/* A table Kin drafted (ui.table): ivory card, plum header text, petal rows; wide tables scroll inside the card */
.tbl{flex:none;align-self:stretch;min-width:0;max-width:100%;background:var(--tbl-bg);border:1px solid var(--petal);border-radius:20px;overflow:hidden}
.tbl .hd{padding:12px 15px 6px;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:17px;color:var(--accent)}
.tbl .sc{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
.tbl table{border-collapse:separate;border-spacing:0;font-size:14px;line-height:1.35;min-width:100%}
.tbl th{background:var(--petal);color:var(--accent);font-weight:700;text-align:left;padding:8px 12px;white-space:nowrap}
.tbl td{padding:8px 12px;border-top:1px solid var(--petal);color:var(--text);vertical-align:top;min-width:96px}
.tbl th:first-child,.tbl td:first-child{position:sticky;left:0;z-index:1;background:var(--tbl-bg);font-weight:600;min-width:84px}
.tbl th:first-child{background:var(--petal)}
.tbl .nt{padding:8px 15px 0;font-size:13.5px;font-style:normal;color:var(--text-3)}
.tbl .acts{display:flex;gap:8px;flex-wrap:wrap;padding:12px 15px 14px}
.tbl .btn:not(.pri){background:var(--surface);border:1px solid var(--bd-lilac);color:var(--accent)}
.tbl .btn[disabled]{opacity:.55}

/* ---------- bigger screens (iPad, computer) ----------
   The same app as the phone, one column, just wider. Same screens, same order, same navigation.
   Phones (under 700px wide) keep everything above, unchanged.
   --gut is the side padding that centres a readable column: 760px for home, chat and profile,
   560px for sign-in and onboarding. Backgrounds and dividers still run edge to edge like on the phone. */
@media (min-width:700px){
  .ph{width:100%;height:100%;max-width:none;border:0;border-radius:0;
    --gut:max(40px,env(safe-area-inset-left),env(safe-area-inset-right),calc((100% - 760px)/2))}
  .scr:not(#s-home):not(#s-chat):not(#s-profile){--gut:max(40px,env(safe-area-inset-left),env(safe-area-inset-right),calc((100% - 560px)/2))}
  .feat,.ans,.foot,.login,.rs,.top,.msgs,.bar,.prof,.hfeat,.lh,.li,.empty{padding-left:var(--gut);padding-right:var(--gut)}
  .install{margin-left:var(--gut);margin-right:var(--gut)}
  .sheet{left:max(0px,calc(var(--gut) - 20px));right:max(0px,calc(var(--gut) - 20px))}
  .ph .cmodal{left:calc(50% - 200px);right:auto;width:400px} /* the delete box: phone width, centred (Lyndon 2026-11-04) */

  /* Home: the same list of chats, a little larger type. */
  .lh{padding-top:22px}
  .lh b{font-size:23px}
  .li{padding-top:13px;padding-bottom:13px}
  .ln .t{font-size:17.5px}
  .ln .s{font-size:15.5px}

  /* Chat: same bubbles and cards, a little larger type; the message box spans the column. */
  .tt{font-size:22px}
  .msgs{padding-top:20px;padding-bottom:20px;gap:12px}
  .b{font-size:17px}
  .b.fmt h4{font-size:18.5px}
  .note .k{font-size:18px}
  .note .d,.res .row{font-size:15px}
  .bar{padding-top:12px;padding-bottom:calc(env(safe-area-inset-bottom) + 22px)}
  .inp{font-size:17px}
  .rep .hero img{aspect-ratio:4/3}

  /* Delete tile (Lyndon 2026-10-18: "move it next to the chat title, inside the column"): the header still
     runs edge to edge, so the tile sits at the column's right edge, not the window's. It slides in from that
     edge, so mask the header there (a mask, unlike clip-path, leaves the gutter draggable); the bottom
     1px divider stays full width. */
  #ctop{-webkit-mask:linear-gradient(#000,#000) 0 0/calc(100% - var(--gut)) 100% no-repeat,linear-gradient(#000,#000) 0 100%/100% 1px no-repeat;
    mask:linear-gradient(#000,#000) 0 0/calc(100% - var(--gut)) 100% no-repeat,linear-gradient(#000,#000) 0 100%/100% 1px no-repeat}
  #ctop .trash{right:var(--gut)}
}
/* The roomier home card only when there is height for it: a landscape phone is 700px+ wide
   but short, so it keeps the phone card (inside the wider column above). */
@media (min-width:700px) and (min-height:500px){
  .hfeat{min-height:380px;padding-top:calc(env(safe-area-inset-top) + 32px)}
  .htxt .h,.htxt .p{max-width:430px}
  #feat-ev{max-width:430px;font-size:14.5px}
  #feat-h{font-size:32px !important}
  .hfeat.quote #feat-h{font-size:27px !important}
  #feat-by{font-size:14.5px}
  .htxt .p{font-size:17px}
  .flora{right:calc(var(--gut) - 30px);top:calc(env(safe-area-inset-top) + 44px);width:250px;height:333px}
  #h-blob{right:calc(var(--gut) - 170px) !important}
}

/* ---------- the chat list on the left (Lyndon 2026-10-26: "a left hand bar that shows the different chats and on
   the right side is the conversation, similar to claude/gpt") ----------
   Computer screens only (1000px and up): home, a chat and the profile sit to the right of the list. Phones, iPad
   portrait and narrow windows are unchanged. Home's own list is hidden there, since the left list is the same one. */
.side{display:none}
.col-drag{display:none}
@media (min-width:1000px) and (min-height:500px){
  .ph.sided .side{display:flex;flex-direction:column;position:absolute;left:0;top:0;bottom:0;width:var(--side-w);z-index:3;
    background:var(--side);border-right:1px solid var(--side-bd);padding-top:env(safe-area-inset-top)}
  .ph.sided>.scr{left:var(--side-w)} /* Lyndon 2026-10-27: "Side bar can be slightly wider" (was 300) */
  .ph.sided{--gut:max(40px,calc((100% - 760px)/2))}
  .ph.sided #s-home .lh,.ph.sided #s-home #topics,.ph.sided #s-home #list,.ph.sided #open-profile{display:none !important}
  /* Home on a computer is the dashboard (Lyndon 2026-10-26): the message box, the last 3 chats with Kin's next steps,
     then Kin's idea card if there is one. The phone's top card only shows when it carries an idea or the intro. */
  .ph.sided #s-home .hdash{display:block}
  .ph.sided #s-home #home-news{display:none !important} /* the computer home shows them under the box */
  .ph.sided #s-home .hsc{display:flex;flex-direction:column;align-items:center;padding:0 40px 48px}
  /* A little above the middle (Lyndon 2026-10-27: "can this be a little more vertically centered?"): two spacers share
     the free height 2:3, so the greeting, box, What's new and Ask Kin sit just above centre; when they need more room
     than the screen has, the spacers shrink to 40px and the page scrolls as before. */
  .ph.sided #s-home .hsc::before,.ph.sided #s-home .hsc::after{content:"";flex:2 1 0;min-height:40px}
  .ph.sided #s-home .hsc::after{order:3;flex-grow:3}
  .ph.sided #s-home .hdash{padding-top:0}
  .ph.sided #s-home .hfeat{order:2;width:100%;max-width:760px;min-height:0;margin-top:22px;padding:24px 28px;border-radius:24px;
    border:1px solid var(--line-e);flex:none}
  .ph.sided #s-home .hfeat.quote,.ph.sided #s-home .hbar,.ph.sided #s-home .hfeat .flora,.ph.sided #s-home #h-blob,.ph.sided #s-home .install{display:none !important}
  .ph.sided #s-home .hfeat #feat-hi{margin-top:0}
  .ph.sided #s-home .hfeat #feat-h{font-size:24px !important}
  .ph.sided #s-home .htxt .h,.ph.sided #s-home .htxt .p{max-width:none}
  /* Feedback opens as a popup in the middle of the chat, like Claude (Lyndon 2026-10-27: "opens a modal"). */
  .ph.sided .sheet{left:calc(var(--side-w) + (100% - var(--side-w) - 560px)/2);right:auto;width:560px;top:50%;bottom:auto;
    transform:translateY(-50%);border-radius:24px;padding:22px 24px 24px;max-height:86%}
  .ph.sided .sheet .grab{display:none}
  .ph.sided #ctop .bk,.ph.sided #s-profile .top .bk{visibility:hidden;width:0;padding:0;margin-right:-12px}
  .sbar{display:flex;align-items:center;justify-content:space-between;padding:22px 16px 14px 20px}
  .sbrand{display:flex;align-items:center;gap:8px;background:none;border:0;padding:4px 6px;margin-left:-6px;border-radius:10px;cursor:pointer;
    font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:21px;color:var(--accent);letter-spacing:-.01em}
  .sbrand:hover{background:var(--glass-1)}
  .side .pfp.sel{box-shadow:0 0 0 2px var(--accent)}
  /* New chat and Search: two matching plain rows, no border or fill; a soft wash on hover (Lyndon 2026-11-06: "similar style and non
     buttons on the top of the left column", option A). */
  .stop{display:flex;flex-direction:column;gap:2px;margin:0 10px 18px}
  .srow{display:flex;align-items:center;gap:12px;width:100%;padding:9px 12px;border:0;border-radius:10px;background:none;font:inherit;font-size:15px;font-weight:500;color:var(--text);cursor:pointer;text-align:left}
  .srow:hover{background:var(--glass-2)}
  .srow .ic{width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex:none;color:var(--text-3)}
  .srow.hide{display:none}
  .slab{padding:6px 20px 6px;font-size:12.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted-b)}
  .slist{flex:1;min-height:0;overflow-y:auto;padding:0 8px calc(env(safe-area-inset-bottom) + 14px);scrollbar-width:thin}
  /* Every left-bar chat row breathes like Projects home's Recent (Lyndon 2026-11-05: "similar spacing between the chats within the
     projects and the main chat tab? those are still tighter"). */
  .side .li.sr{gap:11px;padding:13px 10px 14px 12px;border-radius:14px;margin-bottom:6px}
  .side .li.sr:hover{background:var(--glass-2)}
  .side .li.sr.sel{background:var(--surface);box-shadow:0 1px 6px var(--glow-2)}
  .side .li.sr.unr{background:var(--unr-side)}
  .side .li.sr.sel.unr{background:var(--surface)}
  /* No chat icons on computer screens (Lyndon 2026-10-27, after small tiles and an emoji mock: picked "a", no icons):
     not in the left list or the chat header. Phones keep their plant tiles. */
  .ph.sided .side .tile-av,.ph.sided #cav{display:none}
  /* The unread dot gets its own lane and every title starts after it, so dot and text never crowd
     (Lyndon 2026-10-27: "the indicator and text beside it is really crammed ... let this breathe"). */
  .ph.sided .side .li.sr{padding-left:32px}
  .side .ln .t{font-size:14.5px}
  .side .ln .t .wh{font-size:11.5px}
  .side .ln .s{font-size:13px;margin-top:3px}
  .side .ln .s .n{font-size:11.5px}
  .side .un{left:12px;width:8px;height:8px;margin-top:-4px}
  .sempty{padding:10px 20px;color:var(--muted);font-size:14px}
  /* Lyndon 2026-11-04: both edges in the three-column project workspace drag. The 10px target straddles the hairline;
     the visible mark appears only on hover/focus/drag, so the columns stay quiet until someone reaches for the edge. */
  .ph.pj-side>.side-drag,.ph.pj-side #s-chat.has-bld>.chat-drag{display:block;position:absolute;top:0;bottom:0;width:10px;z-index:6;
    cursor:col-resize;touch-action:none;outline:0}
  .ph.pj-side>.side-drag{left:calc(var(--side-w) - 5px)}
  .ph.pj-side #s-chat.has-bld>.chat-drag{left:calc(var(--chat-w) - 5px)}
  .col-drag::after{content:"";position:absolute;left:4px;top:0;bottom:0;width:2px;background:var(--accent-2);opacity:0;transition:opacity .12s}
  .col-drag:hover::after,.col-drag:focus-visible::after,body.col-dragging .col-drag::after{opacity:.55}
  body.col-dragging{cursor:col-resize;user-select:none}
  /* Same as the phone list: "N new" next to Your chats (Lyndon 2026-10-27). */
  .slab{display:flex;align-items:center;gap:8px}
  .slab .newpill{text-transform:none;letter-spacing:0;font-size:12px;padding:2px 9px}
}

/* ---------- "What's new around you" (Lyndon 2026-10-27): up to 2 things Kin saw change around them ---------- */
.news{margin-top:34px}
.news.m{margin:18px 26px 4px}
.newsl{display:flex;flex-direction:column;gap:10px}
.nwi{background:var(--bg);border:1px solid var(--line-e);border-radius:22px;padding:15px 20px 14px}
.nwk{font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--dnl)}
.nwt{font-weight:700;font-size:15.5px;color:var(--text-x2);margin-top:5px;line-height:1.35}
.nwb{font-size:14.5px;line-height:1.45;color:var(--text-2c);margin:5px 0 0}
.nwa{display:flex;align-items:center;gap:16px;margin-top:11px}
.nwgo{font:inherit;font-weight:600;font-size:13.5px;color:var(--notif-ink);background:var(--surface);border:1px solid var(--hover-bd);border-radius:999px;
  padding:6px 14px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.nwgo:hover{border-color:var(--sel-bd)}
.nwsee{font-size:13px;color:var(--muted-b);text-decoration:none}
.nwsee:hover{color:var(--text-4);text-decoration:underline}

/* ---------- computer home dashboard (Lyndon 2026-10-26) ---------- */
.hdash{display:none;position:relative;width:100%;max-width:760px;padding-top:max(9vh,56px)}
.dflora{position:absolute;right:-60px;top:12px;width:190px;height:254px;opacity:.38;pointer-events:none}
.dhi{position:relative;font-size:15px;color:var(--text-5);font-weight:500}
.dh{position:relative;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:34px;color:var(--text-h);margin:6px 0 22px;line-height:1.15;letter-spacing:-.01em}
.dbox{position:relative;display:flex;align-items:flex-end;gap:10px;background:var(--surface);border:1px solid var(--line-c);border-radius:26px;
  padding:14px 14px 14px 22px;box-shadow:0 6px 24px var(--glow-1)}
.dbox:focus-within{border-color:var(--sel-bd);box-shadow:0 6px 28px var(--glow-4)}
.dbox textarea{flex:1;border:0;outline:0;resize:none;background:none;font:inherit;font-size:17px;line-height:1.45;color:var(--text);
  min-height:50px;max-height:200px;padding:4px 0}
.dsend{color:var(--on-accent);width:40px;height:40px;border-radius:50%;border:0;background:var(--accent-bg);display:flex;align-items:center;justify-content:center;
  cursor:pointer;flex:none;padding:0}
.dsend:disabled{background:var(--accent-dis);cursor:default}
.dhint{font-size:12.5px;color:var(--muted-b);margin:9px 0 0 22px}
.dlab{font-size:12.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted-b);margin:0 0 12px 4px}
.dq{margin-top:44px;text-align:center;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-size:18px;color:var(--text-4)}
.dq span{font-size:14px;color:var(--muted-b);white-space:nowrap}

/* ---------- delete chat (Lyndon 2026-10-18): drag the header left, confirm, 10 s undo ---------- */
#ctop{overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none}
/* Holding a bubble opens Kin's menu ("New chat from here", Lyndon 2026-11-01), not the phone's own Copy / Look Up callout. */
@media (hover:none){#msgs .b{-webkit-touch-callout:none}}
#cslide{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
#cslide.snap{transition:margin-right .18s ease}
.trash{position:absolute;right:16px;bottom:9px;width:58px;height:58px;border-radius:20px;border:0;background:var(--blush);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--danger);font:inherit;
  font-size:11.5px;font-weight:600;cursor:pointer;transform:translateX(90px);pointer-events:none}
.trash.snap{transition:transform .18s ease}
.trash.open{pointer-events:auto}
.cdim{position:absolute;inset:0;background:var(--dim-2);z-index:60}
.cmodal{position:absolute;z-index:61;left:28px;right:28px;top:50%;transform:translateY(-50%);background:var(--bg-raised);border-radius:26px;
  padding:24px 22px 20px;box-shadow:0 14px 40px var(--sh-3);text-align:center}
.cmodal[hidden],.cdim[hidden],.utoast[hidden]{display:none}
.cmodal .ic{color:var(--danger);width:52px;height:52px;border-radius:18px;background:var(--blush);margin:0 auto 12px;display:flex;align-items:center;justify-content:center}
.cmodal h3{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:22px;color:var(--text-h);margin:0 0 8px;letter-spacing:-.01em}
.cmodal p{font-size:15px;line-height:1.45;color:var(--text-2);margin:0;overflow-wrap:anywhere}
.cmodal .err{margin-top:10px}
.cmodal .acts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.cmodal button{padding:13px;border-radius:99px;font:inherit;font-weight:600;font-size:15.5px;border:0;cursor:pointer}
.cmodal .no{background:var(--surface);border:1px solid var(--line);color:var(--text)}
.cmodal .yes{background:var(--danger-bg);color:var(--on-accent)}
.cmodal button:disabled{opacity:.6}
.utoast{position:absolute;z-index:62;left:20px;right:20px;bottom:calc(env(safe-area-inset-bottom) + 26px);background:var(--toast-bg);color:var(--on-accent);
  border-radius:18px;padding:13px 16px;display:flex;align-items:center;gap:8px;font-size:14.5px;box-shadow:0 10px 30px var(--sh-3)}
.utoast .dot{opacity:.6}
.utoast button{background:none;border:0;color:var(--toast-link);font:inherit;font-weight:600;font-size:14.5px;cursor:pointer;padding:4px 2px;margin-left:auto}

/* Kin brand (Lyndon 2026-10-18): ivory #F8F3EC, petal #EAD6D1, mauve #C9B1B5,
   sage #A7B29A, plum #4E3566; headings and text in FK Grotesk, Manifold's own sans (Lyndon 2026-11-04 "Headings can use fk grotesk too"). No logo inside the app or on the
   landing (Lyndon 2026-10-29: "remove the logo ... a little less strong"). Never the app icon next to the word. */
.mark{border-radius:28%;flex:none;display:block;opacity:.95}
.who .wm{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-size:19px;color:var(--accent);font-weight:500;letter-spacing:.01em}

/* Chat tiles: brand plant on a soft tint (petal, sage, lilac, apricot, mauve). */
.tile-av{width:48px;height:48px;border-radius:15px;flex:none;display:flex;align-items:center;justify-content:center}
.tile-av img{display:block;width:28px;height:28px;filter:var(--plant-f)}
/* Chat header: the chat's own tile, a little smaller than on home. */
.cav{flex:none;display:flex}
.cav .tile-av{width:40px;height:40px;border-radius:13px}
.cav .tile-av img{width:24px;height:24px}

/* God Mode (Lyndon 2026-10-27): a team member viewing a creator's Kin, read only. Nothing that writes is shown. */
.godbar{position:fixed;z-index:200;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom) + 16px);display:flex;align-items:center;gap:12px;
  background:var(--toast-bg);color:var(--on-accent);border-radius:999px;padding:8px 8px 8px 16px;font-size:13.5px;box-shadow:0 6px 20px var(--sh-2);white-space:nowrap;max-width:calc(100vw - 24px)}
.godbar span{overflow:hidden;text-overflow:ellipsis}
.godbar button{background:var(--accent-bg);color:var(--on-accent);border:0;border-radius:999px;padding:6px 14px;font:inherit;font-weight:600;cursor:pointer}
.godbar.hide{display:none}
.viewing #s-chat .bar,.viewing #side-new,.viewing #new-chat,.viewing #dash-form,.viewing #dash-hint,.viewing #ctrash,.viewing .ract [data-act=like],.viewing .ract [data-act=dislike],.viewing .ract .ract-br,.viewing #logout{display:none}
.viewing #s-chat .msgs{padding-bottom:72px}
.viewing .hfeat button,.viewing .pick,.viewing .chips{pointer-events:none}

/* A message from someone on the Manifold team in this chat (Lyndon 2026-10-27): their photo + name, a soft sage bubble. */
.tmsg-who{align-self:flex-start;display:flex;align-items:center;gap:7px;margin:4px 0 -4px 2px;font-size:13px;color:var(--text-3)}
.tmsg-who b{font-weight:600;color:var(--text-2)}
.tmsg-from{color:var(--muted)}
.tmsg-av{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none;display:inline-flex;align-items:center;justify-content:center}
.tmsg-ini{background:var(--bl-sage);color:var(--sage-ink);font-size:12px;font-weight:700}
.b.tmsg{align-self:flex-start;background:var(--bl-sage);border:1px solid var(--line-b);border-radius:6px 22px 22px 22px}

/* ---------- Studio, phase 1a: Chat | Projects (Lyndon 2026-11-03) ----------
   Only drawn for a creator the team switched Projects on for (app.js "studio"). Colours are the variables above. */
.seg{display:inline-flex;gap:2px;background:var(--raised-a);border-radius:999px;padding:2px;flex:none}
.seg.hide{display:none}
.seg button{font:inherit;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:600;font-size:12.5px;line-height:1.2;color:var(--text-4);background:none;border:0;padding:4px 12px;border-radius:999px;cursor:pointer;position:relative;white-space:nowrap}
.seg button.on{background:var(--surface);color:var(--text-x2);box-shadow:0 1px 3px var(--sh-1)}
.seg .sdot{position:absolute;top:3px;right:4px;width:6px;height:6px;border-radius:50%;background:var(--notif)}
.seg .segi{display:none} /* phones keep the words; the left column on computers shows the icons */
.ph.sided #side-seg .segi{display:block}
#h-seg{margin:0 10px 0 auto}
.hbar{gap:8px}
.pill{display:inline-block;flex:none;background:var(--unr);color:var(--notif-ink);font-size:11.5px;font-weight:600;line-height:1.3;padding:2px 9px;border-radius:999px;margin-left:8px}
.psc{padding-bottom:40px}
.pbar{display:flex;align-items:center;gap:10px;padding:calc(env(safe-area-inset-top) + 22px) 20px 6px}
.pbrand{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:21px;color:var(--accent);flex:1;min-width:0;letter-spacing:-.01em}
.pin{padding:6px 20px 0;max-width:900px;width:100%;box-sizing:border-box}
.phi{font-size:15px;color:var(--text-5);font-weight:500;margin-top:14px}
.ph1{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:30px;line-height:1.15;color:var(--text-h);margin:6px 0 18px;letter-spacing:-.01em}
.pj-sec{margin:6px 0 18px}
.pj-lab{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:21px;color:var(--text-h);margin:20px 0 10px;display:flex;align-items:center;gap:8px;letter-spacing:-.01em}
.pj-lab .cnt{font-family:inherit;font-size:12.5px;font-weight:700;background:var(--notif);color:var(--on-accent);border-radius:999px;padding:1px 9px;line-height:1.5}
.needs{display:grid;gap:12px}
.need{background:var(--surface);border:1px solid var(--line-c);border-radius:22px;padding:15px 18px 16px;box-shadow:0 4px 18px var(--glow-1)}
.nd-p{font-size:12.5px;color:var(--muted-b);font-weight:600;letter-spacing:.02em;margin-bottom:3px}
.nd-t{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:19px;line-height:1.25;color:var(--text-h);letter-spacing:-.01em}
.nd-w{font-size:14.5px;line-height:1.45;color:var(--text-3);margin:6px 0 0}
.need .btn{margin-top:12px;border:0;cursor:pointer;font-family:inherit}
.pj-create{display:inline-flex;align-items:center;gap:8px;margin:8px 0 6px;padding:11px 20px 11px 16px;border:0;border-radius:999px;background:var(--accent-2);color:var(--on-accent);font:inherit;font-weight:600;font-size:15.5px;cursor:pointer;box-shadow:0 4px 14px var(--glow-1)}
.pj-create span{font-size:20px;line-height:1;font-weight:400}
.pj-create:hover{filter:brightness(1.06)}
.pnew{display:flex;align-items:flex-end;gap:10px;background:var(--surface);border:1px solid var(--line-c);border-radius:26px;padding:9px 10px 9px 18px;box-shadow:0 4px 18px var(--glow-1);margin:6px 0 4px}
.pnew:focus-within{border-color:var(--sel-bd);box-shadow:0 6px 28px var(--glow-4)}
.pnew textarea{flex:1;border:0;outline:0;resize:none;background:none;font:inherit;font-size:16.5px;line-height:1.45;color:var(--text);min-height:30px;max-height:200px;padding:5px 0}
.pj-err{font-size:14px;color:var(--text-4);padding:6px 6px 0}

.pl-more{font:inherit;font-size:13.5px;font-weight:500;color:var(--text-3);background:none;border:0;padding:4px 2px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;letter-spacing:0}
.pl-more::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.pl-more[aria-expanded="true"]::after{transform:translateY(1px) rotate(-135deg)}
.pl-more:hover{color:var(--text-h)}
.pl-more.hide{display:none}
/* Recently built (Lyndon 2026-11-06 approved mock): four square tiles to a row, a picture, a page's look or a doc icon; title, then kind and time. */
.mg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.mg-t{display:flex;flex-direction:column;min-width:0}
.mg-th{display:block;position:relative;overflow:hidden;aspect-ratio:1/1;border-radius:12px;background:var(--surface);border:1px solid var(--line-c);cursor:pointer;text-decoration:none}
.mg-th img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:var(--img-dim)}
.mg-th.pgcv .pg-look{position:absolute;top:0;left:0;width:500%;height:500%;border:0;transform:scale(.2);transform-origin:0 0;pointer-events:none}
.mg-th:hover{border-color:var(--accent-2)}
.mg-file{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--raised-a);color:var(--text-3)}
.mg-file span{font-size:13px;font-weight:700;letter-spacing:.06em;border:1.5px solid currentColor;border-radius:6px;padding:6px 8px}
.mg-n{margin-top:8px;font-size:14px;font-weight:500;line-height:1.3;color:var(--text-h);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.mg-n:hover{text-decoration:underline}
.mg-k{margin-top:2px;font-size:12.5px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:699px){.mg{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The project tile at the top of the left column inside a project, and the crumb above a project chat's title (Lyndon 2026-11-06 mock). */
/* Quiet unless you are on the project page (Lyndon 2026-11-06: "have the project tile be grey when it's not selected. it looks too active
   here"): no white card, no shadow, the bar's own background and muted text; selected = the white card with the accent edge. */
.ptl{display:flex;align-items:center;gap:12px;width:calc(100% - 16px);margin:0 8px 10px;padding:10px;border:1px solid var(--line-c);border-radius:14px;background:var(--raised-a);font:inherit;text-align:left;color:var(--text-4);cursor:pointer}
.ptl:hover{background:var(--glass-2)}
.ptl.sel{box-shadow:0 2px 8px var(--glow-3);background:var(--surface);color:var(--text)}
.ptl.sel:hover{background:var(--surface)}
.ptl-cv{filter:saturate(.7);opacity:.85}
.ptl.sel .ptl-cv{filter:none;opacity:1}
.ptl-cv{width:56px;height:56px;border-radius:12px;flex:none;font-size:24px}
.ptl-cv.nocv span{font-size:24px}
.ptl-cv.pgcv .pg-look{width:1000%;height:1000%;transform:scale(.1)}
.ptl-b{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.ptl-n{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:15.5px;line-height:1.25;color:var(--text-4);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ptl.sel .ptl-n{color:var(--text-h)}
.pj-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent-bg);margin-left:6px;flex:none;align-self:center}
.crumb{display:flex;align-items:center;gap:6px;max-width:100%;margin:0 0 3px;padding:2px 6px 2px 0;border:0;background:none;font:inherit;font-size:12.5px;line-height:1.2;color:var(--text-3);cursor:pointer;text-align:left}
.crumb.hide{display:none}
.crumb:hover .cr-n{color:var(--text-h);text-decoration:underline}
.cr-cv{width:20px;height:20px;border-radius:6px;flex:none;font-size:11px}
.cr-cv.nocv span{font-size:11px}
.cr-cv.pgcv .pg-look{width:2500%;height:2500%;transform:scale(.04)}
.cr-n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.cr-go{flex:none;font-size:14px;line-height:1}
.pgrid{display:grid;gap:12px;grid-template-columns:1fr}
.pcard{position:relative;background:var(--surface);border:1px solid var(--line-c);border-radius:22px;padding:0;overflow:hidden;cursor:pointer}
.pc-b{padding:13px 18px 14px}
.pc-cv{height:120px;border-radius:0}
/* A project's picture (studio.js coverHtml): the image, or its colour and first letter */
.pcv{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}
.pcv img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:var(--img-dim)}
/* A live look at a built page (studio.js pageLookHtml): the top of the page at desktop width, scaled to fit, no clicks */
.pgcv{background:var(--surface);align-items:flex-start;justify-content:flex-start}
.pgcv .pg-look{position:absolute;top:0;left:0;width:400%;height:400%;border:0;transform:scale(.25);transform-origin:0 0;pointer-events:none}
.ph-cv.pgcv .pg-look{width:800%;height:800%;transform:scale(.125)}
.pcv.nocv span{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:44px;color:var(--text-3);opacity:.75;letter-spacing:-.01em}
.pal0{background:var(--pal-0)}.pal1{background:var(--pal-1)}.pal2{background:var(--pal-2)}.pal3{background:var(--pal-3)}.pal4{background:var(--pal-4)}.pal5{background:var(--pal-5)}.pal6{background:var(--pal-6)}
/* The project's banner on its page */
#ptop .th{visibility:hidden} /* the banner below says the name (#p-hero) */
/* The project page (Lyndon 2026-11-03): ask box, Needs you, Made in this project, Recent chats */
.pj-h2{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:21px;color:var(--text-h);margin:6px 0 10px;display:flex;align-items:center;justify-content:space-between;letter-spacing:-.01em}
.pj-h2 .plus{width:30px;height:30px}
.viewing .md{background:var(--surface);border:1px solid var(--line-c);border-radius:16px;overflow:hidden;cursor:pointer}
.md:hover{box-shadow:0 4px 18px var(--glow-1)}
.md-im{position:relative;height:104px;background:var(--tbl-bg)}
.md-im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:var(--img-dim)}
.md-k{display:flex;align-items:center;justify-content:center}
.md-k span{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:22px;color:var(--text-4);letter-spacing:-.01em}
.md-b{padding:9px 12px 11px}
.md-t{font-size:14.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.md-s{font-size:12.5px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.md-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--dot);margin-right:5px;vertical-align:1px}
.md-dot.live{background:var(--sage-ink)}
/* Recent chats on a project page (Lyndon 2026-11-04): an unread row's purple runs edge to edge, and its dot has its own lane. */
#p-chatsw .pc-list{background:var(--surface);border:1px solid var(--line-c);border-radius:18px;padding:0;overflow:hidden}
#p-chatsw .pc-list .li{padding:13px 20px 13px 40px}
#p-chatsw .pc-list .li .un{left:18px;width:8px;height:8px;margin-top:-4px}
/* Project page, Lyndon 2026-11-04 review: a plain summary line, Made as link rows with the address, a lighter line under each chat
   title, "Add chats" to move chats in, "Move" in a project chat's header */
/* Recent on a project page (Lyndon 2026-11-04): up to 5 newest chats, each a row with a thumbnail (Kin's newest picture, else
   a look at the page it built), title, when, summary and a link to the newest thing it made. */
.rc{background:var(--surface);border:1px solid var(--line-c);border-radius:18px;overflow:hidden}
.rc-r{position:relative;display:flex;gap:18px;align-items:center;padding:16px 20px;cursor:pointer;border-top:1px solid var(--hair-a)}
.rc-r:first-child{border-top:0}
.rc-r:hover{background:var(--hover-bg)}
.rc-r.unr{background:var(--unr)}
.rc-r .un{position:absolute;left:7px;top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;background:var(--accent-bg)}
.rc-th{flex:none;position:relative;width:80px;height:80px;border-radius:14px;overflow:hidden;border:1px solid var(--line-b);background:var(--tbl-bg)}
.rc-th img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:var(--img-dim)}
.rc-th.pgcv .pg-look{width:500%;height:500%;transform:scale(.2)}
.rc-th.none{display:flex;align-items:center;justify-content:center;color:var(--muted)}
.rc-tx{flex:1;min-width:0}
.rc-t{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-weight:600;font-size:16.5px;color:var(--text)}
.rc-t .tn{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-t .wh{flex:none;font-weight:500;font-size:13px;color:var(--muted-b)}
.rc-s{font-size:14.5px;line-height:1.4;color:var(--text-4);margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rc-l{display:inline-flex;align-items:center;gap:7px;margin-top:8px;font-size:14px;color:var(--accent);text-decoration:none;max-width:100%}
.rc-l .rc-lt{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
a.rc-l:hover .rc-lt{text-decoration:underline}
.rc-l .kd{flex:none;font-size:11px;font-weight:600;color:var(--muted);background:var(--raised-a);border-radius:99px;padding:2px 8px;text-transform:uppercase;letter-spacing:.04em}
.rc-l .rc-ar{flex:none}
.rc-dead{color:var(--muted)}
.rc-more{display:none;padding:12px 20px;font-size:13.5px;color:var(--muted);border-top:1px solid var(--hair-a)}
.ph.sided .rc-more{display:block} /* only where the left column lists them; phones get All chats under Recent */
@media (max-width:699px){.rc-r{gap:14px;padding:14px 16px}.rc-th{width:64px;height:64px;border-radius:12px}}
/* The project's Timeline (Lyndon 2026-11-04) */
.pdates{background:var(--surface);border:1px solid var(--line-c);border-radius:18px;padding:2px 14px}
.pd{display:flex;align-items:center;gap:14px;padding:12px 2px;border-top:1px solid var(--hair-b);cursor:pointer}
.pd:first-child{border-top:0}
.pd-d{flex:none;width:40px;text-align:center;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;color:var(--text-h);line-height:1}
.pd-d b{display:block;font-weight:400;font-size:22px}
.pd-d i{display:block;font-style:normal;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-size:11.5px;color:var(--muted);margin-top:3px;text-transform:uppercase;letter-spacing:.04em}
.pd-tx{flex:1;min-width:0}
.pd-t{font-size:15px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-n{font-size:13.5px;color:var(--text-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-w{flex:none;font-size:12.5px;color:var(--text-4)}
.pd.soon .pd-w{color:var(--accent);font-weight:600}
#p-chats .li .ln .s .sl{color:var(--text-4);font-weight:400}
.ac-list{margin-top:14px;max-height:46vh;overflow-y:auto;border:1px solid var(--line-c);border-radius:16px;background:var(--surface)}
.ac-row{display:flex;align-items:center;gap:12px;padding:11px 14px;border-top:1px solid var(--hair-b);cursor:pointer}
.ac-row:first-child{border-top:0}
.ac-row input{width:18px;height:18px;flex:none;accent-color:var(--accent-bg)}
.ac-tx{flex:1;min-width:0}
.ac-t{display:block;font-size:15px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-s{display:block;font-size:13.5px;color:var(--text-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-w{flex:none;font-size:12.5px;color:var(--muted)}
.ac-none{margin-top:14px;font-size:14.5px;color:var(--text-4)}
/* A link card under Kin's words (studio.js linkCardHtml; Lyndon 2026-11-03): host, title, a live look at the page, Preview or Live */
.lcard{display:block;max-width:440px;margin:10px 0 4px;padding:12px 14px 12px;border:1px solid var(--line-c);border-left:4px solid var(--accent-2);border-radius:14px;background:var(--surface);text-decoration:none;color:inherit}
.lcard:hover{box-shadow:0 4px 18px var(--glow-1)}
.b.fmt a.lcard{color:inherit;font-weight:400;text-decoration:none;white-space:normal} /* beats .b.fmt a: no underline, bold or nowrap on the card */
.b.fmt a.lcard span{text-decoration:none}
.b.fmt a.kin-chatlink{white-space:normal}
/* A chat link on its own line: a card (fmt.js kin-chatcard). Calm: hairline border, the chat's name, a quiet Open. */
.b.fmt a.kin-chatcard{display:flex;align-items:center;gap:12px;max-width:440px;margin:10px 0 4px;padding:12px 14px;border:1px solid var(--line-c);border-radius:14px;background:var(--surface);color:inherit;font-weight:400;text-decoration:none}
.b.fmt a.kin-chatcard:hover{box-shadow:0 4px 18px var(--glow-1)}
.kin-chatcard .cc-i{flex:none;width:34px;height:34px;border-radius:10px;background:var(--tbl-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23857a9c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center/18px no-repeat}
.kin-chatcard .cc-x{flex:1;min-width:0}
.kin-chatcard .cc-h{display:block;font-size:12.5px;color:var(--text-4)}
.kin-chatcard .cc-t{display:block;font-size:15.5px;font-weight:600;color:var(--text-h);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kin-chatcard .cc-go{flex:none;font-size:13.5px;color:var(--link)} /* a link to another of their chats (Check-ins): it wraps like text, and opens in the app */
.b.fmt a.lcard .lc-t{font-weight:600}
.lc-h{display:block;font-size:13px;color:var(--link)}
.lc-t{display:block;font-size:16px;font-weight:600;color:var(--text-h);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Half the old size (Lyndon 2026-11-06 "link previews are way too big"): same page view, scaled to .25 */
.lc-pv{display:block;position:relative;width:50%;height:100px;margin-top:10px;border-radius:10px;overflow:hidden;background:var(--tbl-bg);border:1px solid var(--line-b)}
.lc-pv iframe{position:absolute;top:0;left:0;width:400%;height:400%;border:0;transform:scale(.25);transform-origin:0 0;pointer-events:none}
.lc-st{display:block;font-size:13px;color:var(--text-4);margin-top:9px}
.phero{display:flex;align-items:center;gap:16px;margin:6px 0 16px} /* the project's header: its picture as a small square, then name and line (Lyndon 2026-11-03: no wide banner) */
.phero .ph-cv{width:72px;height:72px;border-radius:18px;flex:none;border:1px solid var(--line-c)}
.phero .ph-cv span{font-size:34px}
.ph-tx{min-width:0}
.ph-n{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:30px;line-height:1.15;color:var(--text-h);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.01em}
.ph-n.rn{display:block;width:100%;box-sizing:border-box;border:0;outline:0;margin:-3px 0 -3px -8px;padding:3px 8px;border-radius:10px;background:var(--surface);box-shadow:0 0 0 1px var(--line-b);color:var(--text-h);font:inherit;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:30px;letter-spacing:-.01em}
html:not(.viewing) #p-hero .ph-n{cursor:text}
.ph-s{font-size:14.5px;margin-top:4px;color:var(--text-3)}
.pcard:hover{background:var(--hover-bg);box-shadow:0 4px 18px var(--glow-1)}
.pcard.unr{background:var(--unr-card)}
.pcard .un{left:5px;width:7px;height:7px;margin-top:-3px}
.pc-t{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.pc-n{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:20px;color:var(--text-h);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.01em}
.pc-t .wh{font-size:12px;color:var(--muted);flex:none}
.pc-d{font-size:12.5px;color:var(--muted);margin-top:2px}
.pc-s{font-size:14.5px;line-height:1.4;color:var(--text-3);margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-m{font-size:13px;color:var(--muted);margin-top:9px;display:flex;align-items:center}
/* Project card tags and its two newest chats (Lyndon 2026-11-04: "the two most recent threads ... and if there are (new) items") */
.pc-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.pc-tag{font-size:12.5px;line-height:1.35;border-radius:999px;padding:3px 10px;background:var(--unr-card);color:var(--text-h);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-tag b{font-weight:600}
.pc-tag.new{border:1px solid var(--unr-bd);padding:2px 9px} /* still a pill on a tinted (unread) card */
.pc-tag.need{background:var(--unr);color:var(--notif-ink)}
.pc-th{margin-top:9px;border-top:1px solid var(--line-c)}
.pc-r{position:relative;display:flex;align-items:baseline;gap:10px;padding:8px 0 8px 16px;border-bottom:1px solid var(--line-c);font-size:14px;min-width:0}
.pc-r:last-child{border-bottom:0;padding-bottom:0}
.pc-r .pr-t{color:var(--text-h);flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-r .pr-s{color:var(--text-3);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-r .wh{font-size:12px;color:var(--muted);flex:none}
.pc-r.unr .pr-t{font-weight:600}
.pc-r.unr::before{content:"";position:absolute;left:2px;top:50%;width:7px;height:7px;margin-top:-3px;border-radius:50%;background:var(--accent-bg)}
.pc-r:hover .pr-t{text-decoration:underline}
.pj-arch{margin-top:10px}
.pj-arch .arow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 4px;color:var(--text-3);font-size:15px}
.pj-arch .arow .btn{border:0;background:var(--glass-3);color:var(--accent);cursor:pointer;font-family:inherit}
/* one project */
.pmore{background:none;border:0;font-size:22px;line-height:1;color:var(--text-4);cursor:pointer;padding:4px 8px;border-radius:10px}
.pmore:hover{background:var(--glass-2)}
.ptabs{display:flex;gap:4px;align-self:center;background:var(--raised-a);border-radius:999px;padding:3px;margin:10px auto 2px;width:max-content;flex:none}
.ptabs button{font:inherit;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:600;font-size:14px;color:var(--text-4);background:none;border:0;padding:6px 20px;border-radius:999px;cursor:pointer}
.ptabs button.on{background:var(--surface);color:var(--text-x2);box-shadow:0 1px 4px var(--glow-2)}
.pblk{background:var(--surface);border:1px solid var(--line-c);border-radius:22px;padding:16px 20px 18px;margin:12px 0}
.pb-h{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:21px;color:var(--text-h);display:flex;align-items:center;justify-content:space-between;letter-spacing:-.01em}
.pb-s{font-size:13px;color:var(--muted);margin:2px 0 10px}
.brief{font-size:15.5px;line-height:1.5;color:var(--text-2)}
.brief p{margin:0}.brief p+p,.brief p+ul,.brief ul+p,.brief p+ol,.brief ol+p,.brief ul+h4,.brief ol+h4,.brief p+h4{margin-top:9px}
.brief h4{margin:12px 0 3px;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-size:17px;font-weight:500;color:var(--text-h)}
.brief h4:first-child{margin-top:0}
.brief ul,.brief ol{margin:4px 0 0;padding-left:20px}.brief li{margin:3px 0}
.brief b{font-weight:700;color:var(--text-x3)}
.brief a{color:var(--link);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.brief-empty{font-size:15px;line-height:1.5;color:var(--muted)}
.pc-list .li{padding-left:6px;padding-right:6px}
.pc-list .li .un{left:-6px}
.pc-list .ln .s .n,.slist .ln .s .n{margin-left:auto}
.pblk .plus{width:30px;height:30px}
/* Add to project, in a loose chat's header */
.addp{flex:none;background:var(--glass-3);color:var(--accent);border:1px solid var(--line-c);border-radius:999px;font:inherit;font-weight:600;font-size:13.5px;padding:7px 14px;cursor:pointer;white-space:nowrap}
.addp:hover{background:var(--hover-bg)}
.addp.hide{display:none}
.addp .ap-s{display:none}
.menu.pjm{width:250px;max-height:60%;overflow-y:auto}
.menu.pjm button{text-align:left;display:block}
.menu.pjm button.cur{color:var(--accent);font-weight:600}
.menu.pjm .msep{height:6px;background:var(--raised-a)}
.menu.pjm .msep+button{border-top:0}
.menu.pjm .mnote{padding:12px 16px;font-size:14px;color:var(--muted)}
#csub a[data-brief]{color:var(--accent);font-weight:600;text-decoration:none}
#csub a[data-brief]:hover{text-decoration:underline}
.spj{display:none}
@media (max-width:999px){.addp .ap-l{display:none}.addp .ap-s{display:inline}.addp{padding:6px 11px;font-size:13px}}
@media (min-width:700px) and (max-width:999px){.pgrid{grid-template-columns:1fr 1fr}}
@media (min-width:1000px) and (min-height:500px){
  .ph.sided #side-seg:not(.hide){display:inline-flex;margin:0 16px 10px;align-self:flex-start}
  .ph.sided.acct-bottom .sbar{display:none}
  .ph.sided.acct-bottom #side-seg:not(.hide){margin-top:22px}
  /* Chat | Projects as two icons at the top right of the left column, with room below before Your chats
     (Lyndon 2026-11-04: "more space between chats/projects and the Your chats below ... align it to top right"). */
  .ph.sided #side-seg:not(.hide){align-self:flex-end;margin:18px 14px 22px 0}
  .ph.sided #side-seg button{display:flex;align-items:center;justify-content:center;padding:3px 8px;min-height:24px}
  .ph.sided #side-seg .segi{width:15px;height:15px}
  .ph.sided #side-seg .segl{display:none}
  .ph.sided #side-seg .sdot{top:2px;right:3px}
  .ph.sided #side-seg button.on{color:var(--accent-bg)} /* the open side's icon is the active colour (Lyndon 2026-11-04: "can the active icon be orange?"; plum since Paper & Plum) */
  /* No Recent chats on a project page on computers: the left column already lists the project's chats
     (Lyndon 2026-11-04: "in the home page of the projects - let's remove the recent chats for now"). Phones keep it. */
  .ph.sided #s-project #p-chatsw,.ph.sided #s-project #p-recent-w{display:none} /* Recent threads: phones only (Lyndon 2026-11-06 mock: the left bar lists the chats, with their pictures) */
  .ph.sided .pbar,.ph.sided #h-seg{display:none !important}
  .ph.sided #ptop .bk{display:none !important}
  .ph.sided #p-needs-w:not(.hide){display:block !important}
  .ph.sided #s-projects .hsc,.ph.sided #s-project .hsc{display:block;padding:0 40px 48px}
  /* One reading width on computers (Lyndon 2026-11-04: "these wide panels don't need to stretch the width of the screen"):
     home, Projects, a project, a chat all use the same 760px column, so the left edge doesn't move between screens. */
  .ph.sided #s-project .pin{max-width:760px}
  .ph.sided #s-projects .pin{max-width:920px} /* the dashboard's two panels side by side (Lyndon's mock A, 900 wide) */
  /* The project page needs no top bar on computers: the "…" floats over the page, level with the project's name,
     at the right edge of the column (no full-width strip and divider holding one button). */
  .ph.sided #ptop{position:absolute;top:0;left:0;right:0;z-index:3;border-bottom:0;background:transparent;pointer-events:none;padding-top:65px} /* level with the project name */
  .ph.sided #ptop .pmore{pointer-events:auto}
  .ph.sided #s-project .pin{padding-top:40px}
  /* Room to breathe on a project page (Lyndon 2026-11-04: "I find the vertical nature of this very cramped. Can we space
     things out a bit so it's more relaxing?"): more air under the header and the ask box, between sections, under each
     section title. */
  .ph.sided #s-project .pin{padding-top:56px}
  .ph.sided #s-project .phero{margin-bottom:30px}
  .ph.sided #s-project .pj-sec{margin:0 0 48px}
  .ph.sided #s-project .pj-h2{margin:0 0 16px}
  /* Settings are a few names and switches: a narrower 560px column. */
  .ph.sided #s-profile{--gut:max(40px,calc((100% - 560px)/2))}
  /* The delete box sits over the page beside the left column, 400px wide, like the feedback popup. */
  .ph.sided .cmodal{left:calc(var(--side-w) + (100% - var(--side-w) - 400px)/2);right:auto;width:400px}
  .ph.sided .phero{margin-top:0}
  .ph.sided #ptop{padding-left:max(40px,calc((100% - 760px)/2));padding-right:max(40px,calc((100% - 760px)/2))}
  .ph.sided #s-project .hsc{padding-top:6px}
  .ph.sided .pin{padding:0;margin:0 auto}
  .ph.sided #s-projects .pin{padding-top:max(5vh,28px)}
  .ph.sided .ph1{font-size:34px}
  .ph.sided .pgrid{grid-template-columns:1fr;gap:14px} /* one project per row, its page on the left (Lyndon 2026-11-04, B) */
  .ph.sided .pcard{display:flex;align-items:stretch}
  .ph.sided .pc-cv{width:240px;height:auto;min-height:170px;flex:none}
  .ph.sided .pc-b{flex:1;min-width:0;padding:16px 22px 16px}
  .ph.sided .pc-n{font-size:22px}
  .ph.sided .needs{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
  .ph.pj-side #side-new,.ph.pj-side .side>.slab,.ph.pj-side #side-list{display:none}
  .ph.pj-side .spj{display:flex;flex-direction:column;flex:1;min-height:0}
  .spj .slab{display:flex;align-items:center;justify-content:space-between}
  .spj .slist{flex:1;min-height:0}
  .pj-all{display:flex;align-items:center;gap:6px;align-self:flex-start;margin:0 14px 8px;padding:4px 6px;border:0;border-radius:8px;background:none;font:inherit;font-size:14px;color:var(--text-4);cursor:pointer;text-align:left}
  .pj-all:hover{color:var(--text)}
  .pj-all span{font-size:18px;line-height:1}
  /* New chat in <project>, then Search, under the tile, the same rows as the top (which hides inside a project, but not in the rail). */
  .spj .pj-new,.spj .pj-find{width:calc(100% - 20px);margin:0 10px}
  .spj .pj-new{margin-top:-2px}
  .spj .pj-find{margin-top:2px;margin-bottom:14px}
  .spj .ptl + .pj-find{margin-top:-2px} /* God Mode: no New chat row */
  .ph.pj-side:not(.rail) #side-top{display:none}
  .spj .li.sr{padding-left:32px}
  /* Each thread in a project gets a small arrow in the dot's lane; a new thread's arrow turns purple instead of a dot
     (Lyndon 2026-11-06: "it helps visually organize things but i dont like that the first line is indented. maybe we can remove the dot for 'new'"). */
  .spj .li.sr.pj-th::before{content:'';position:absolute;left:11px;top:15px;width:14px;height:14px;background:var(--text-4);opacity:.55;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 4v8a5 5 0 0 0 5 5h9'/><path d='M15 13l4 4-4 4'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 4v8a5 5 0 0 0 5 5h9'/><path d='M15 13l4 4-4 4'/></svg>") center/contain no-repeat}
  .spj .li.sr.pj-th.unr::before{background:var(--accent);opacity:1}
  .spj .li.sr.pj-th .un{display:none}
  .spj .li.brow .t{font-weight:600}
  .ph.pj-side .side .li.sr.sel{background:var(--surface);box-shadow:0 1px 6px var(--glow-2)}
}

/* ---------- Studio, phase 1b: builders next to the chat, account menu, Usage (Lyndon 2026-11-03) ----------
   The builder pane: a column right of the chat on computers; on phones a pill in the chat header opens it full screen, its bar
   pinned at the bottom. All colours are the theme variables. */
.bld{display:none}
.bld-bar{flex:none;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 18px;background:var(--bg);border-bottom:1px solid var(--hair-a)}
.bld-bk{flex:none;padding:0 2px}
.bld-t{flex:1;min-width:0}
.bld-n{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:19px;color:var(--text-h);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
.bld-st{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);font-weight:500}
.bld-st i{width:8px;height:8px;border-radius:50%;background:var(--tick);flex:none}
.bld-st.live{color:var(--sage-ink)}
.bld-st.live i{background:var(--flora)}
.bld-st:not(.live) i{background:var(--muted-e)}
.bld-acts{display:flex;gap:8px;flex:none}
.bbtn{font:inherit;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:600;font-size:14px;line-height:1;text-decoration:none;text-align:center;
  padding:9px 15px;border-radius:999px;border:1px solid var(--line-c);background:var(--surface);color:var(--text-2);cursor:pointer;white-space:nowrap}
.bbtn:hover{background:var(--hover-bg)}
.bbtn.pri{background:var(--accent-bg);border-color:var(--accent-bg);color:var(--on-accent)}
.bbtn:disabled{opacity:.5;cursor:default}
.bld-body{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--bg-raised)}
.bld-frame{flex:1;width:100%;min-height:0;border:0;background:var(--surface)}
.bld-card{margin:auto;max-width:300px;text-align:center;padding:24px}
.bld-ct{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:21px;color:var(--text-h);letter-spacing:-.01em}
.bld-cs{font-size:14.5px;color:var(--muted);margin-top:6px}
.addp.bldp{background:var(--accent-bg);border-color:var(--accent-bg);color:var(--on-accent)}
.addp.bldp.live{background:var(--glass-3);border-color:var(--line-c);color:var(--sage-ink)}
/* Phone and narrow windows: full screen over the chat, bar at the bottom. */
#s-chat.bld-open>.bld{display:flex;flex-direction:column;position:absolute;inset:0;z-index:5;background:var(--bg)}
#s-chat.bld-open>.bld .bld-body{order:1}
#s-chat.bld-open>.bld .bld-bar{order:2;border-bottom:0;border-top:1px solid var(--hair-a);padding:12px 16px calc(env(safe-area-inset-bottom) + 14px);box-shadow:0 -6px 20px var(--sh-1)}
#s-chat.bld-open>.bld .bld-t{flex:1 1 0}
#s-chat.bld-open>.bld .bld-acts{flex-basis:100%;display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
#s-chat.bld-open>.bld .bld-acts .bbtn{padding:12px 8px;font-size:15px}
#s-chat.bld-open .bld-bk{display:block}
.bld-bk{display:none}
/* Hide the right side (Lyndon 2026-11-06): » in the bar, and the card top right that brings it back. Computers only. */
.bld-hide,.bld-peek{display:none}
/* Computers: chat on the left, the builder on the right (nothing built: the chat stays full width). */
@media (min-width:1000px) and (min-height:500px){
  .ph.sided #cbld{display:none !important}
  .ph.sided #s-chat.has-bld .bld-hide{display:inline-block;padding:9px 12px;font-size:16px;color:var(--text-3)}
  .ph.sided #s-chat>.bld-peek:not(.hide){display:flex;align-items:center;gap:10px;position:absolute;top:calc(env(safe-area-inset-top) + 22px);right:22px;z-index:6;
    max-width:260px;padding:7px 12px 7px 7px;border:1px solid var(--line-c);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;cursor:pointer;box-shadow:0 4px 18px var(--glow-1);text-align:left}
  .ph.sided #s-chat.bld-peeking>#ctop{padding-right:300px}
  .ph.sided #s-chat>.bld-peek:hover{border-color:var(--hover-bd)}
  .bld-peek .pk-cv{position:relative;flex:none;display:block;width:58px;height:38px;border-radius:6px;overflow:hidden;background:var(--tbl-bg);border:1px solid var(--line-b)}
  .bld-peek .pk-cv .pg-look{width:400%;height:400%;transform:scale(.25)}
  .bld-peek .pk-t{min-width:0;display:flex;flex-direction:column;gap:2px}
  .bld-peek .pk-n{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bld-peek .pk-s{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:5px}
  .bld-peek .pk-a{flex:none;color:var(--text-3);font-size:16px;margin-left:2px}
  .ph.sided #s-chat.has-bld>.top,.ph.sided #s-chat.has-bld>.msgs,.ph.sided #s-chat.has-bld>.bar,.ph.sided #s-chat.has-bld>.pend{width:var(--chat-w);box-sizing:border-box} /* the chat column; flex (msgs grows, the bar sits at the bottom) is left as it was */
  .ph.sided #s-chat.has-bld>.top,.ph.sided #s-chat.has-bld>.msgs,.ph.sided #s-chat.has-bld>.bar{padding-left:22px;padding-right:22px} /* the chat column is narrow: not the centred 760px reading column */
  .ph.sided #s-chat.has-bld .b{max-width:92%}
  .ph.sided #s-chat.has-bld>#ctop{--gut:22px}
  .ph.sided #s-chat.has-bld>.bld{display:flex;flex-direction:column;position:absolute;top:0;bottom:0;right:0;left:var(--chat-w);background:var(--bg-raised);border-left:1px solid var(--side-bd)}
  .ph.sided #s-chat.has-bld>.bld,.ph.sided #s-chat.has-bld>.bld .bld-bar{background:var(--canvas)}
  .ph.sided #s-chat.has-bld>.bld .bld-bar{border-bottom-color:transparent}
  .ph.sided #s-chat.has-bld .bld-body{background:var(--canvas);padding:0 18px 18px}
  .ph.sided #s-chat.has-bld .bld-frame{position:relative;z-index:10;border-radius:14px;box-shadow:0 0 0 1px var(--line),0 14px 40px var(--frame-sh)}
  .ph.sided #s-chat.has-bld>.bld .bld-bar{padding-top:calc(env(safe-area-inset-top) + 22px);padding-left:22px;padding-right:22px;min-height:76px;box-sizing:border-box}
  .ph.sided #s-chat.has-bld .bld-bk{display:none}
  .ph.sided #s-chat.has-bld #csub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ph.sided #s-chat.has-bld.bld-open>.bld{inset:auto;top:0;bottom:0;right:0;left:var(--chat-w)}
  .ph.sided #s-chat.has-bld.bld-open>.bld .bld-bar{order:0;border-top:0;border-bottom:1px solid var(--hair-a);box-shadow:none}
  .ph.sided #s-chat.has-bld.bld-open>.bld .bld-body{order:0}
  .ph.sided #s-chat.has-bld.bld-open>.bld .bld-acts{flex-basis:auto;display:flex}
  .ph.sided #s-chat.has-bld.bld-open>.bld .bld-acts .bbtn{padding:9px 15px;font-size:14px}
}
/* mark on the preview (Lyndon 2026-11-13: "they drag and then it shows a marker on the left they can write? i like 1"; "just turn it on for
   evernyone ... if we don't like it can jsut remove"). All of the feature's CSS is this block: take it out with marks.js, #bld-mark, #mk-rows
   in index.html and the `marks:` lines in app.js. The orange is an annotation colour, the same on every page and in every theme, so it is
   written here and not made a theme variable. Computers only: the button stays hidden on phones (no tab capture there). */
.bld-mark{display:none}
@media (min-width:1000px) and (min-height:500px){
  .ph.sided #s-chat.has-bld .bld-mark:not(.hide){display:inline-block}
  .ph.sided #s-chat.has-bld>.mk-rows{width:var(--chat-w);box-sizing:border-box;padding-left:22px;padding-right:22px}
}
.bbtn.bld-mark.on{background:var(--accent-bg);border-color:var(--accent-bg);color:var(--on-accent)}
.mk-layer{position:absolute;z-index:12;inset:0 18px 18px;border-radius:14px;cursor:crosshair;touch-action:none;user-select:none;-webkit-user-select:none;overflow:hidden}
.mk-hint{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:2;font-size:13px;line-height:1.3;padding:6px 13px;border-radius:99px;
  background:var(--accent-bg);color:var(--on-accent);white-space:nowrap;pointer-events:none;box-shadow:0 4px 14px var(--sh-1)}
.mk-pins{position:absolute;inset:0;pointer-events:none}
.mk-box{position:absolute;box-sizing:border-box;border:2px dashed rgb(232,116,59);background:rgba(232,116,59,.14);border-radius:4px;pointer-events:none}
.mk-pin{position:absolute;box-sizing:border-box;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;background:rgb(232,116,59);color:rgb(255,255,255);border:2px solid rgb(255,255,255);
  font-size:12.5px;font-weight:700;line-height:20px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.35);pointer-events:none}
.mk-pin.at-box{margin:4px 0 0 4px}
.mk-layer.mk-grab .mk-pins,.mk-layer.mk-grab .mk-hint,.mk-layer.mk-grab .mk-draft{visibility:hidden}
.mk-rows{flex:none;padding:10px 14px 6px;background:var(--bg);border-top:1px solid var(--hair-a);position:relative;z-index:3}
.mk-rows.mk-busy{opacity:.6;pointer-events:none}
.mk-head{font-size:12.5px;font-weight:600;color:var(--text-3);margin:0 2px 6px}
.mk-list{display:flex;flex-direction:column;gap:6px;max-height:232px;overflow-y:auto}
.mk-row{display:flex;align-items:center;gap:8px;padding:5px 6px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.mk-n{flex:none;width:22px;height:22px;border-radius:50%;background:rgb(232,116,59);color:rgb(255,255,255);font-size:12px;font-weight:700;line-height:22px;text-align:center}
.mk-cut{flex:none;width:46px;height:34px;border-radius:8px;overflow:hidden;background:var(--raised-a);border:1px solid var(--line-b)}
.mk-cut img{display:block;width:100%;height:100%;object-fit:cover}
.mk-note{flex:1;min-width:0;border:0;background:none;outline:0;font:inherit;font-size:14px;color:var(--text);padding:6px 4px}
.mk-kind{flex:none;display:flex;gap:4px}
.mk-kind button{border:1px solid var(--line-c);background:var(--surface);color:var(--text-3);border-radius:99px;font:inherit;font-size:12px;font-weight:600;padding:4px 10px;cursor:pointer}
.mk-kind button.on{background:var(--accent-bg);border-color:var(--accent-bg);color:var(--on-accent)}
.mk-x{flex:none;width:24px;height:24px;border-radius:50%;border:0;background:var(--raised-a);color:var(--text-4);font-size:15px;line-height:1;cursor:pointer;padding:0}
/* ---------- Content page (Lyndon 2026-11-25/26: "they can drop links of inspiration/content that they like. This can also source trending media in
   their circle."; "Niches = tabs"; "on the left she has the dashboard and then the Content tab will be right above projects"). Kin's own variables
   and font only, so dark mode follows. public/app/content.js draws it. ---------- */
.cpin .dp-t .ct-tt{display:flex;align-items:center;gap:8px;min-width:0}
.cpin .dp-t .ct-tt b{flex:0 1 auto;min-width:0}
.ct-pill{flex:none;font-style:normal;font-size:11px;line-height:1;padding:3px 8px;border-radius:999px;background:var(--bl-sage);color:color-mix(in srgb,var(--sage-ink) 55%,var(--text-h))}
.ct-pill.hide{display:none}
#dpin-side:not(.hide) + #cpin-side{margin-top:-6px}
#cpin-home{width:calc(100% - 2*var(--gut,20px));margin:6px var(--gut,20px) 14px}
#dpin-home:not(.hide) + #cpin-home{margin-top:-6px}
@media (min-width:1000px) and (min-height:500px){
  .ph.sided #cpin-home{display:none !important}
  .ph.pj-side:not(.rail) #cpin-side{display:none}
  .ph.sided #s-content .dx-nav{display:none}
  .ph.sided #s-content .dx-in{padding:30px 40px 60px}
}
@media not all and (min-width:1000px) and (min-height:500px){#s-content .ct-h1{display:none}}
#s-content{background:var(--bg)}
.ct-upd{font-size:13px;color:var(--muted)}
.ct-h1{margin:4px 0 0;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:28px;line-height:1.15;color:var(--text-h);letter-spacing:-.01em}
.ct-add{display:flex;gap:10px;margin-top:20px;max-width:820px}
.ct-url{flex:1;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 15px;font-size:14.5px;color:var(--text-h)}
.ct-url:focus{outline:0;border-color:var(--sel-bd);box-shadow:0 0 0 3px var(--sel-bg)}
.ct-save{flex:none;border:0;border-radius:12px;padding:0 20px;background:var(--accent-bg);color:var(--on-accent);font-size:14px;font-weight:500;cursor:pointer}
.ct-save:hover{background:var(--accent-hover)}
.ct-add :disabled{opacity:.55;cursor:default}
html.viewing .ct-add,html.viewing .ct-ia,html.viewing .ct-x{pointer-events:none}
.ct-msg{font-size:12.5px;color:var(--text-5b);margin-top:9px}
.ct-msg.err{color:var(--danger)}
.ct-links{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px}
.ct-fl{font-size:12px;color:var(--muted);margin-right:4px}
.ct-lk{display:inline-flex;align-items:center;gap:2px;max-width:100%;padding:2px 3px 2px 10px;border-radius:999px;background:var(--card-soft);border:1px solid var(--line-b);font-size:12.5px;color:var(--text-3)}
.ct-lk>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct-x{flex:none;width:22px;height:22px;border:0;border-radius:50%;background:none;color:var(--muted);font-size:15px;line-height:1;cursor:pointer;padding:0}
.ct-x:hover{background:var(--raised-a);color:var(--text-h)}
.ct-tabs{display:flex;gap:4px;margin-top:22px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.ct-tabs::-webkit-scrollbar{display:none}
.ct-tab{flex:none;padding:9px 14px 10px;font-size:14.5px;color:var(--text-4);background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;white-space:nowrap}
.ct-tab i{font-style:normal;font-size:12px;color:var(--muted);margin-left:6px}
.ct-tab:hover{color:var(--text-h)}
.ct-tab.on{color:var(--text-h);font-weight:500;border-bottom-color:var(--accent-bg)}
.ct-work{margin-top:18px;display:flex;gap:14px;align-items:flex-start;background:var(--surface);border:1px solid var(--line-b);border-radius:14px;padding:14px 18px}
.ct-lb{flex:none;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--sage-ink);margin-top:4px;white-space:nowrap}
.ct-work p{margin:0;font-size:15px;line-height:1.45;color:var(--text-h)}
.ct-work small{display:block;font-size:12.5px;color:var(--muted);margin-top:3px;line-height:1.4}
.ct-panel{margin-top:16px;background:var(--surface);border:1px solid var(--line-b);border-radius:16px;padding:16px 18px 18px}
.ct-filters{display:flex;gap:6px;align-items:center;overflow-x:auto;scrollbar-width:none;margin-bottom:14px}
.ct-filters::-webkit-scrollbar{display:none}
.ct-chip{flex:none;font-size:13px;padding:6px 13px;border-radius:999px;border:1px solid var(--line);background:none;color:var(--text-2);cursor:pointer;white-space:nowrap}
.ct-chip:hover{border-color:var(--hover-bd)}
.ct-chip.on{background:var(--accent-bg);border-color:var(--accent-bg);color:var(--on-accent)}
.ct-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.ct-card{display:flex;flex-direction:column;min-width:0;background:var(--card-soft);border:1px solid var(--line-b);border-radius:12px;overflow:hidden}
.ct-im{position:relative;aspect-ratio:9/16;background:var(--raised-a);overflow:hidden}
.ct-img{width:100%;height:100%;object-fit:cover;display:block}
.ct-img.ad{object-fit:contain}
.ct-vid{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain;background:var(--frame)}
.ct-tag,.ct-new,.ct-plat{position:absolute;font-size:11px;line-height:1.2;padding:3px 8px;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.ct-tag{left:8px;top:8px;max-width:calc(100% - 62px);background:color-mix(in srgb,var(--surface) 92%,transparent);color:var(--text-2)}
.ct-tag.me{background:var(--bl-lilac);color:var(--accent)}
.ct-new{right:8px;top:8px;background:var(--bl-sage);color:color-mix(in srgb,var(--sage-ink) 55%,var(--text-h))}
.ct-plat{right:8px;bottom:8px;max-width:calc(100% - 16px);background:color-mix(in srgb,var(--frame) 78%,transparent);color:var(--check)}
.ct-pm{position:absolute;left:50%;top:50%;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;background:color-mix(in srgb,var(--frame) 55%,transparent);pointer-events:none}
.ct-pm:after{content:"";position:absolute;left:15px;top:11px;border-left:12px solid var(--check);border-top:8px solid transparent;border-bottom:8px solid transparent}
.ct-hit{position:absolute;left:0;top:0;display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:pointer}
.ct-hit:focus-visible{outline:2px solid var(--accent-bg);outline-offset:-2px}
.ct-cb{display:flex;flex-direction:column;gap:5px;min-width:0;padding:10px 12px 12px}
.ct-cx{display:flex;align-items:baseline;gap:6px;font-size:12.5px;color:var(--text-3)}
.ct-cx b{font-weight:500;color:var(--sage-ink)}
.ct-cx b.low{color:var(--danger)}
.ct-cc{font-size:13.5px;line-height:1.35;color:var(--text-h);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.ct-ch{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Numbers + the reason a post was picked (Lyndon 2026-11-26: "show the metrics that they did ... We want to show why you picked it too"). A pair is never cut: it wraps whole.
   The dot is drawn in front of each pair and the row is pulled 9px left under overflow:hidden, so the pair that starts a line has its dot clipped. */
.ct-mx{overflow:hidden;font-size:12px;line-height:1.45;color:var(--muted);min-height:4.35em} /* 3 lines: the most a row of 5 cards wraps to, so the captions below start level */
.ct-mx>div{display:flex;flex-wrap:wrap;margin-left:-9px}
.ct-m{position:relative;padding-left:9px;white-space:nowrap}
.ct-m:before{content:"\00b7";position:absolute;left:0;top:0;width:9px;text-align:center}
.ct-m b{font-weight:500;color:var(--text-h)}
.ct-why{font-size:12px;line-height:1.4;color:var(--text-3);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:4.2em}
.ct-why b{font-weight:500;font-variant-caps:all-small-caps;letter-spacing:.06em;font-size:12.5px;line-height:1;color:var(--sage-ink)}
.ct-why.none{min-height:4.2em}
.ct-open{align-self:flex-start;font-size:12px;color:var(--link);text-decoration:none}
.ct-open:hover{text-decoration:underline}
.ct-watch{margin-top:14px;font-size:12.5px;line-height:1.5;color:var(--muted)}
.ct-watch b{font-weight:500;color:var(--text-2)}
.ct-empty{padding:26px 0;text-align:center;font-size:14px;color:var(--muted)}
.ct-ph{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:4px}
.ct-ph h2{margin:0;font-weight:500;font-size:17px;color:var(--text-h)}
.ct-ph span{font-size:12.5px;color:var(--muted)}
.ct-idea{display:grid;grid-template-columns:minmax(0,1fr) 132px 78px 184px;align-items:center;gap:12px;padding:12px 2px;border-top:1px solid var(--line-b);transition:opacity .2s}
.ct-ph + .ct-idea{border-top:0}
.ct-it b{display:block;font-weight:500;font-size:14.5px;color:var(--text-h)}
.ct-it small{display:block;margin-top:2px;font-size:12.5px;line-height:1.4;color:var(--muted)}
.ct-iw{font-size:13px;color:var(--text-2)}
.ct-fit{justify-self:start;font-size:11.5px;padding:2px 10px;border-radius:999px}
.ct-fit.good{background:var(--accent-bg);color:var(--on-accent)}
.ct-fit.poss{background:var(--sel-bg);color:var(--accent);border:1px solid var(--sel-bd)}
.ct-fit.wild{border:1px solid var(--line);color:var(--text-3)}
.ct-ia{display:flex;gap:6px;align-items:center;justify-content:flex-end}
.ct-btn{font-size:12.5px;padding:6px 11px;border-radius:999px;border:1px solid var(--line);background:none;color:var(--text-2);cursor:pointer;white-space:nowrap}
.ct-btn.yes:hover{background:var(--sel-bg);border-color:var(--sel-bd);color:var(--accent)}
.ct-btn.no:hover{background:var(--raised-a)}
.ct-btn.undo{border-color:transparent;padding:6px 8px;color:var(--link)}
.ct-st{font-size:12.5px;font-weight:500;color:var(--text-2)}
.ct-idea.skipped{opacity:.5}
@media (max-width:699px){
  .ct-in{padding-left:16px;padding-right:16px}
  .ct-url{font-size:16px} /* 16px keeps iPhone from zooming in; content.js shortens the placeholder here */
  .ct-save{padding:0 18px}
  .ct-work{flex-direction:column;gap:6px}
  .ct-panel{padding:14px 12px 14px}
  .ct-ph span{display:none} /* the hint beside "Ideas from this" does not fit a phone */
  .ct-idea{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center}
  .ct-mx{font-size:11.5px}
  .ct-it{flex:1 1 100%}
  .ct-ia{margin-left:auto}
}
@media (min-width:700px){.ct-grid{grid-template-columns:repeat(auto-fill,minmax(176px,1fr))}}
/* ---------- Private creator dashboard (Lyndon 2026-11-24: "the dashboard lives inside the creator's own Kin account, behind the login she
   already has"; "Can we just style it like kin"; "I don't like all the hero numbers ... it should be a panel with a list. Simple ... feels
   very much like the daily digest"). Kin's own variables and font only, so dark mode follows. public/app/dashboard.js draws it. ---------- */
.dpin{display:flex;align-items:center;gap:12px;width:calc(100% - 20px);margin:0 10px 12px;padding:11px 12px;border:0;border-radius:12px;background:var(--sel-bg);color:var(--text-h);font-size:15px;text-align:left;cursor:pointer}
.dpin.hide{display:none}
.dpin:hover{background:var(--sel-b)}
.dpin.sel{box-shadow:inset 0 0 0 1px var(--sel-bd)}
.dpin .dp-ic{flex:none;display:flex;color:var(--text-3)}
.dpin .dp-t{flex:1;min-width:0}
.dpin .dp-t b{display:block;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dpin .dp-t small{display:block;font-size:12px;color:var(--text-5b);margin-top:1px}
.dpin .dp-lk{flex:none;display:flex;color:var(--text-5b)}/* Left bar (Lyndon 2026-11-26: "I dont think we need these tiles ... it takes up too much attention"): Dashboard and Content are plain rows like New chat; the phone home keeps its tiles. */.ph:not(.rail) #dpin-side,.ph:not(.rail) #cpin-side{gap:12px;margin:0 10px 2px;padding:9px 12px;border-radius:10px;background:none;box-shadow:none;font-weight:500;color:var(--text)}.ph:not(.rail) #dpin-side:hover,.ph:not(.rail) #cpin-side:hover{background:var(--glass-2)}.ph:not(.rail) #dpin-side.sel,.ph:not(.rail) #cpin-side.sel{background:var(--sel-bg)}.ph:not(.rail) #dpin-side .dp-ic,.ph:not(.rail) #cpin-side .dp-ic{width:24px;justify-content:center}.ph:not(.rail) #dpin-side small,.ph:not(.rail) #cpin-side small,.ph:not(.rail) #dpin-side .dp-lk{display:none}.ph:not(.rail) #dpin-side .dp-t b,.ph:not(.rail) #cpin-side .dp-t b{font-weight:500}.ph:not(.rail) #cpin-side .ct-pill{background:none;padding:0;color:var(--text-5b);font-weight:400}.ph:not(.rail) #dpin-side:not(.hide)+#cpin-side{margin-top:0}.ph:not(.rail) #cpin-side:not(.hide){margin-bottom:12px}
#dpin-home{width:calc(100% - 2*var(--gut,20px));margin:6px var(--gut,20px) 14px}
@media (min-width:1000px) and (min-height:500px){
  .ph.sided #dpin-home{display:none !important}
  .ph.sided.rail .dpin{order:5;width:38px;height:38px;margin:0 0 8px;padding:0;justify-content:center;gap:0}
  .ph.sided.rail .dpin .dp-t,.ph.sided.rail .dpin .dp-lk{display:none}
  .ph.pj-side:not(.rail) #dpin-side{display:none}
}
#s-dash{background:var(--bg)}
.dx-nav{flex:none;display:flex;align-items:center;gap:10px;padding:calc(env(safe-area-inset-top) + 22px) 16px 4px}
.dx-nt{font-weight:500;font-size:17px;color:var(--text-h);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.dx-lock{margin-left:auto;flex:none;display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-5b)}
.dx-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}
.dx-in{max-width:1080px;margin:0 auto;padding:12px 20px calc(env(safe-area-inset-bottom) + 48px);color:var(--text)}
@media (min-width:1000px) and (min-height:500px){
  .ph.sided #s-dash .dx-nav{display:none}
  .ph.sided #s-dash .dx-in{padding:30px 40px 60px}
}
.dx-top{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.dx-date{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.dx-h1{margin:4px 0 0;font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:30px;line-height:1.15;color:var(--text-h);letter-spacing:-.01em}
.dx-src{font-size:12.5px;color:var(--text-5b);text-align:right;line-height:1.5}
.dx-tabs{display:flex;gap:4px;margin:20px 0 22px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.dx-tabs::-webkit-scrollbar{display:none}
.dx-tab{flex:none;padding:9px 13px;font-size:14px;color:var(--text-4);background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;white-space:nowrap}
.dx-tab:hover{color:var(--text-h)}
.dx-tab.on{color:var(--text-h);border-bottom-color:var(--accent-bg)}
.dx-page{display:flex;flex-direction:column;gap:16px}
.dx-strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);background:var(--surface);border:1px solid var(--line-b);border-radius:14px}
.dx-strip.n1{grid-template-columns:1fr}.dx-strip.n2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.dx-strip.n3{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}
.dx-strip>div{padding:13px 18px;border-left:1px solid var(--line-f);min-width:0}
.dx-strip>div:first-child{border-left:0}
.dx-sl{font-size:12px;color:var(--text-5b)}
.dx-sv{font-size:17px;color:var(--text-h);margin-top:3px}
.dx-sc{font-size:12px;color:var(--text-4)}
.dx-sc.up{color:var(--sage-ink)}.dx-sc.down{color:var(--danger)}
.dx-r small.dx-chg{text-align:right}.dx-chg.up{color:var(--sage-ink)}.dx-chg.down{color:var(--danger)}
.dx-cols{display:grid;grid-template-columns:1.45fr 1fr;gap:16px;align-items:start}
.dx-cols.r-even{grid-template-columns:1fr 1fr}.dx-cols.r-wr{grid-template-columns:1fr 1.45fr}
.dx-stack{display:flex;flex-direction:column;gap:16px;min-width:0}
.dx-pn{background:var(--surface);border:1px solid var(--line-b);border-radius:14px;padding:16px 18px 8px;min-width:0}
.dx-ph{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:6px}
.dx-pt{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3)}
.dx-count{font-size:12px;color:var(--muted)}
.dx-pl,.dx-a{background:none;border:0;padding:0;font:inherit;font-size:12px;color:var(--link);cursor:pointer;white-space:nowrap}
.dx-pl{text-decoration:underline;text-underline-offset:2px}
.dx-a{font-size:12.5px}
.dx-a:disabled{color:var(--muted);cursor:default}
html.viewing .dx-ask{pointer-events:none}
.dx-r{display:grid;gap:14px;align-items:baseline;padding:10px 0;border-top:1px solid var(--line-f);font-size:14px;color:var(--text-2)}.dx-r.dx-join{border-top:0;padding-top:2px}.dx-r small.dx-tag{display:inline;margin:0 0 0 8px}
.dx-ph+.dx-r,.dx-hd+.dx-r,.dx-ph+.dx-mbody>.dx-r:first-child{border-top:0}
.dx-r b,.dx-trow b{font-weight:500;color:var(--text-h)}
.dx-r small,.dx-dsub{display:block;font-size:12.5px;color:var(--text-5b);margin-top:1px}
.dx-r small a{color:inherit;text-decoration:none}
.dx-r small a:hover,.dx-r b a:hover{text-decoration:underline}
.dx-r b a{color:inherit;text-decoration:none}
.dx-dpane .dx-pt{text-transform:none;letter-spacing:0;font-size:17px;color:var(--text-h);font-weight:500}
.dx-dsub{margin:0 0 8px}
.dx-m{color:var(--text-5b);font-size:13px}
.dx-r .dx-m{white-space:nowrap}
.dx-in .r,.dx-mb .r{text-align:right}.dx-mb:empty{display:none}
.dx-hd{display:grid;gap:14px;font-size:11.5px;color:var(--muted);padding:4px 0 6px;border-bottom:1px solid var(--line-f)}
.g-lta{grid-template-columns:150px minmax(0,1fr) auto}
.g-lv{grid-template-columns:minmax(0,1fr) auto}
.g-lv.has-act{grid-template-columns:minmax(0,1fr) auto auto}
.g-3{grid-template-columns:minmax(0,1fr) 120px 100px}
.g-3.has-act{grid-template-columns:minmax(0,1fr) 120px 100px auto}
.g-acc{grid-template-columns:minmax(0,1fr) 110px minmax(0,1.3fr)}
.dx-note{font-size:12.5px;color:var(--text-5b);padding:10px 0 8px;border-top:1px solid var(--line-f)}
.dx-tip{display:block;line-height:1.5}
.dx-brow{grid-template-columns:minmax(110px,190px) minmax(0,1fr) auto;align-items:center}
.dx-track{display:block;height:8px;border-radius:99px;background:var(--raised-a);overflow:hidden}
.dx-track i{display:block;height:100%;border-radius:99px;background:var(--marker)}
.dx-dt.two,.dx-dm{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;align-items:start}
.dx-dm{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
.dx-dside{position:sticky;top:12px;min-width:0}
.dx-dside:empty{display:none}
.dx-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:2px 0 10px}
.dx-q{flex:1 1 180px;min-width:0;padding:8px 12px;border:1px solid var(--line-b);border-radius:10px;background:var(--bg);color:var(--text);font-size:14px;outline:0;-webkit-appearance:none;appearance:none}
.dx-q:focus{border-color:var(--sel-bd)}
.dx-chips{display:flex;flex-wrap:wrap;gap:6px}
.dx-chip{padding:5px 10px;border:1px solid var(--line-b);border-radius:99px;background:none;color:var(--text-3);font-size:12.5px;cursor:pointer}
.dx-chip i{font-style:normal;color:var(--muted);margin-left:3px}
.dx-chip.on{background:var(--sel-bg);border-color:var(--sel-bd);color:var(--text-h)}
.dx-thead,.dx-trow{display:grid;gap:14px;align-items:baseline;padding:10px 0;font-size:14px;color:var(--text-2)}
.dx-thead{font-size:11.5px;color:var(--muted);padding:4px 0 6px;border-bottom:1px solid var(--line-f)}
.dx-trow{border-top:1px solid var(--line-f);cursor:pointer}
.dx-thead+.dx-trow{border-top:0}
.dx-trow:hover{background:var(--glass-2)}
.dx-trow.sel,.dx-pick.sel{background:var(--sel-bg);margin:0 -10px;padding-left:10px;padding-right:10px;border-radius:10px;border-top-color:transparent}
.dx-pick{cursor:pointer}
.dx-trow>span,.dx-r>span{min-width:0;overflow-wrap:anywhere}
.dx-empty{padding:14px 0 10px;font-size:13.5px;color:var(--text-5b)}
.dx-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 8px;border-top:1px solid var(--line-f);font-size:12.5px;color:var(--text-5b)}
.dx-back{display:none;margin:0 0 8px;padding:0;background:none;border:0;font:inherit;font-size:14px;color:var(--link);cursor:pointer}
@media (max-width:999px){
  .dx-cols,.dx-cols.r-even,.dx-cols.r-wr,.dx-dt.two,.dx-dm{grid-template-columns:minmax(0,1fr)}
  .dx-dside{position:static}
}
@media (max-width:699px){
  .dx-lock span{display:none}
  .dx-in{padding-top:6px}
  .dx-top{flex-direction:column;align-items:flex-start;gap:8px}
  .dx-src{text-align:left}
  .dx-h1{font-size:25px}
  .dx-strip,.dx-strip.n3,.dx-strip.n4{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .dx-strip>div:nth-child(odd){border-left:0}
  .dx-strip>div:nth-child(n+3){border-top:1px solid var(--line-f)}
  .dx-pn{padding:14px 14px 6px}
  .g-lta,.g-lta.dx-hd{grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
  .dx-hd.g-lta{display:none}
  .g-lta>.c1{grid-column:1/-1;grid-row:2}
  .g-lta>.ca{grid-column:2;grid-row:1}.g-lta:has(>.c2)>.c1{grid-column:1}.g-lta>.c2{grid-column:2;grid-row:2}.g-lta.dx-join>.c0{display:none}.g-lta.dx-join>.c1,.g-lta.dx-join>.c2{grid-row:1} /* phone: a time stays on its class's line; a joined row is one line */
  .g-3,.g-3.has-act{grid-template-columns:minmax(0,1fr) auto auto}
  .g-acc{grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
  .g-acc>span:nth-child(3){grid-column:1/-1;grid-row:2;font-size:12.5px;color:var(--text-5b)}
  .dx-hd.g-acc{display:none}
  .dx-brow{grid-template-columns:minmax(0,1fr) auto;row-gap:6px}
  .dx-brow>.dx-track{grid-column:1/-1;grid-row:2}
  .dx-thead{display:none}
  .dx-trow{display:block}
  .dx-trow>span{display:inline}
  .dx-trow>.c0{display:block}
  .dx-trow>span:not(.c0):not(:last-child)::after{content:"\00b7";margin:0 .45em}
  .dx-dt.two.open .dx-tlist,.dx-dm.open .dx-mlist{display:none}
  .dx-dt.two:not(.open) .dx-dside,.dx-dm:not(.open) .dx-dside{display:none}
  .dx-back{display:inline-block}
  .dx-dm .dx-hd.dx-free{font-size:11px}
}
/* Account menu, bottom of the left bar */
.sacct{display:none}
@media (min-width:1000px) and (min-height:500px){
  .ph.sided .sacct:not(.hide){display:flex;align-items:center;gap:10px;flex:none;margin:6px 10px 12px;padding:9px 10px;border-radius:14px;border:0;background:none;font:inherit;font-weight:600;font-size:14.5px;color:var(--text);cursor:pointer;text-align:left;
    border-top:1px solid var(--side-bd);border-radius:0 0 14px 14px;padding-top:12px}
  .sacct:hover{background:var(--glass-2)}
  .sacct .ini{width:28px;height:28px;border-radius:50%;background:var(--petal);color:var(--accent);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex:none}
  .sacct .nm{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sacct .cv{color:var(--muted);font-size:13px;margin-left:auto}
  .sacct .plan{flex:none;font-size:11.5px;font-weight:600;color:var(--muted);border:1px solid var(--line-c);border-radius:99px;padding:2px 8px}
}
/* Chat thumbnails in the left bar (Lyndon 2026-11-06 approved mock): up to 3 of Kin's pictures, 34px, then a +N tile. */
.sth{display:flex;align-items:center;gap:5px;margin-top:7px}
.sth img{display:block;width:34px;height:34px;border-radius:7px;object-fit:cover;border:1px solid var(--line);background:var(--raised-a);filter:var(--img-dim)}
.sth-m{width:34px;height:34px;box-sizing:border-box;border-radius:7px;background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:11.5px;color:var(--text-3)}
/* The left bar folds to an icon rail (Lyndon 2026-11-06 approved mock): « top left folds it, » opens it. Computers only; app.js sets
   --side-w to 60px with the .rail class on #ph. */
.scol,.srail-new{display:none}
@media (min-width:1000px) and (min-height:500px){
  .ph.sided .scol{display:flex;align-items:center;justify-content:center;position:absolute;left:12px;top:14px;z-index:2;width:24px;height:24px;padding:0;border-radius:8px;border:0;background:var(--surface);color:var(--text-3);font:inherit;font-size:15px;line-height:1;cursor:pointer}
  .ph.sided .scol:hover{color:var(--text-h)}
  .ph.sided #side-seg:not(.hide){margin-top:14px} /* level with the « button, as in the mock */
  .ph.sided.acct-bottom #side-seg:not(.hide){margin-top:14px}
  .ph.sided.rail .side{overflow:hidden;align-items:center}
  .ph.sided.rail .scol{position:static;margin:14px 0 10px;width:38px;height:38px}
  .ph.sided.rail #side-seg:not(.hide){order:2}
  .ph.sided.rail .srail-new{order:3}
  .ph.sided.rail .sacct{order:9}
  .ph.sided.rail .scol{order:0}
  .ph.sided.rail #side-seg:not(.hide){display:flex;flex-direction:column;margin:0 0 8px;align-self:center;background:none;padding:0;gap:6px}
  .ph.sided.rail #side-seg button{width:38px;height:38px;padding:0;border-radius:10px}
  .ph.sided.rail #side-seg::before{display:none}
  .ph.sided.rail .stop{order:4;margin:0 0 8px;align-items:center}
  .ph.sided.rail .srow{width:38px;height:38px;padding:0;justify-content:center;gap:0}
  .ph.sided.rail .srow-l{display:none}
  .ph.sided.rail #side-list,.ph.sided.rail .spj,.ph.sided.rail .side>.slab,.ph.sided.rail .sbar{display:none !important}
  .ph.sided.rail #side-new{display:none}
  .ph.sided.rail .srail-new{display:flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0 0 8px;padding:0;border:0;border-radius:10px;background:none;color:var(--text-3);cursor:pointer}
  .ph.sided.rail .srail-new:hover{background:var(--glass-2)}
  .ph.sided.rail .sacct:not(.hide){margin:auto 0 12px;padding:6px;border-top:0;border-radius:99px}
  .ph.sided.rail .sacct .nm,.ph.sided.rail .sacct .cv,.ph.sided.rail .sacct .plan{display:none}
  .ph.pj-side.rail>.side-drag{display:none}
}
/* Usage and Upgrade plan sheets */
.us-k{font-size:13px;color:var(--muted);font-weight:600;letter-spacing:.04em;text-transform:uppercase;margin:2px 0 4px}
.us-big{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:40px;line-height:1.1;color:var(--text-h);letter-spacing:-.01em}
.us-big span{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-size:15px;color:var(--muted);margin-left:8px}
.us-meter{height:10px;border-radius:5px;background:var(--raised-a);margin:14px 0 8px;overflow:hidden}
.us-meter i{display:block;height:100%;background:var(--accent-bg);border-radius:5px}
.us-row{display:flex;justify-content:space-between;font-size:14px;color:var(--text-3)}
.us-note{font-size:14px;line-height:1.5;color:var(--muted);margin-top:16px}
.us-lead{font-size:15.5px;color:var(--text-2);margin:4px 0 6px}
/* Upgrade plan: the four plans (Lyndon 2026-11-06). Stacked on phones, four across in a wider popup on computers. */
.pl-grid{display:grid;grid-template-columns:1fr;gap:12px;margin:14px 0 18px}
.pl-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px 16px 14px;display:flex;flex-direction:column}
.pl-n{font-size:15px;font-weight:600;color:var(--text-h);line-height:1.4;margin-top:2px}
.pl-p{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-weight:500;font-size:32px;line-height:1.1;color:var(--text-h);margin-top:6px;letter-spacing:-.01em}
.pl-p span{font-size:14px;color:var(--muted);margin-left:6px;font-weight:400}
.pl-l{font-size:14px;line-height:1.45;color:var(--text-3);margin-top:8px}
.pl-b{margin:14px 0 4px;border:1px solid var(--line-c);background:var(--raised-a);color:var(--muted);border-radius:99px;padding:9px 12px;font-size:14px;font-weight:600;cursor:default}
.pl-b.pl-buy{background:var(--accent-bg);color:var(--on-accent);border-color:var(--accent-bg);cursor:pointer}
.pl-b.pl-buy:hover:not(:disabled){background:var(--accent-hover)}
.pl-b.pl-buy:disabled{opacity:.55;cursor:default}
.pl-card.cur{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.pl-link{font:inherit;color:var(--link);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.pl-link.off{text-decoration:none;color:var(--text-3)}
.pl-notice{margin-top:8px}
.pl-err{color:var(--danger);margin-top:8px}
.pl-f{margin:10px 0 0;font-size:13.5px;line-height:1.4}
.pl-f dt{color:var(--muted);font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;margin-top:10px}
.pl-f dd{margin:2px 0 0;color:var(--text-2)}
@media (min-width:700px){.sheet.plans .pl-grid{grid-template-columns:1fr 1fr}.sheet.plans .pl-grid.pl-paid{grid-template-columns:1fr 1fr 1fr}}
/* Upgrade plan with payments: close at the top right (no Okay button), a grey line under their plan when they pay. */
.sh-x{position:absolute;top:16px;right:16px;width:34px;height:34px;border-radius:50%;border:0;background:var(--raised-a);color:var(--text-3);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.sh-x:hover{color:var(--text-h)}
.sheet.billing .sh{padding-right:44px}
.pl-sep{height:1px;background:var(--line);margin:18px 0 4px}
.pl-mb{display:block;margin-top:6px}
.sheet.billing .pl-grid{margin-bottom:4px}
@media (min-width:1000px) and (min-height:500px){
  .ph.sided .sheet.plans{width:min(980px,calc(100% - var(--side-w) - 48px));left:calc(var(--side-w) + (100% - var(--side-w) - min(980px,calc(100% - var(--side-w) - 48px)))/2)}
  .ph.sided .sheet.plans .pl-grid{grid-template-columns:repeat(4,1fr)}
  .ph.sided .sheet.plans .pl-grid.pl-paid{grid-template-columns:1fr 1fr 1fr}
  .ph.sided .sheet.billing{padding-top:24px}
  .ph.sided .sheet.billing .grab{display:none} /* a popup on computers: the close button, not the phone's drag handle */
}

/* ---------- small motion (Lyndon 2026-11-04: "can we add some small animations to make interactions more fun? Say highlighting the
   send button the color changes a little" -> [Q6] "1"). Quick (about a fifth of a second), eases to a stop, no bounce, no loops,
   only in answer to something the creator did. "Reduce motion" on the device turns all of it off (bottom of this block). */
/* 1. Send wakes up when there is something to send, deepens on hover, squishes on press, the arrow nudges forward as it goes. */
#send{transition:background-color .2s ease,color .2s ease,transform .15s ease}
#send.ready{background:var(--accent-bg);color:var(--on-accent);transform:scale(1.05)}
#send.ready:hover,#send.ready:focus-visible{background:var(--accent-hover)}
#send.ready:active{transform:scale(.92)}
#send.go svg{animation:k-nudge .32s ease-out}
@keyframes k-nudge{0%{transform:none}45%{transform:translateX(4px)}100%{transform:none}}
/* 2. A new message rises into place (theirs from the reply box, Kin's fades up); old messages on opening a chat do not move. */
.b.rise{animation:k-rise .24s ease-out both}
.b.ag.rise{animation-name:k-fade}
@keyframes k-rise{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@keyframes k-fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
/* 3. Buttons and chips press in a little; a picked answer gives a small pop (picked, not sent). */
.btn,.plus,.pk,.cir,.dsend,.newpill,.chips span,.seg button,.send-fb{transition:transform .12s ease,background-color .2s ease,border-color .2s ease,color .2s ease}
.btn:active,.plus:active,.pk:active,.cir:active,.dsend:active,.newpill:active,.chips span:active,.seg button:active,.send-fb:active{transform:scale(.96)}
.btn:disabled:active,.dsend:disabled:active{transform:none}
.pk.sel{animation:k-pop .22s ease-out}
@keyframes k-pop{0%{transform:scale(1)}50%{transform:scale(1.05)}100%{transform:scale(1)}}
/* 4. Chat | Projects: the highlight slides to the other side (app.js paintSeg measures the open button into --seg-x/--seg-w). */
.seg{position:relative}
.seg button{position:relative;z-index:1}
.seg.slid::before{content:"";position:absolute;top:2px;bottom:2px;left:0;width:var(--seg-w);transform:translateX(var(--seg-x));border-radius:999px;
  background:var(--surface);box-shadow:0 1px 3px var(--sh-1);transition:transform .22s ease,width .22s ease}
.seg.slid button.on{background:none;box-shadow:none}
.seg.slid:not(.moved)::before{transition:none}
/* 5. The new-message dot pulses once when it appears, then sits still. Lists are redrawn on every refresh, so app.js marks a dot
   .fresh only the first time it shows for that chat or project (watchDots). */
.un.fresh{animation:k-dot .6s ease-out 1}
@keyframes k-dot{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.25);opacity:1}100%{transform:scale(1)}}
/* 6. A new version of the site fades in over the canvas instead of flashing white (app.js paintBuilder adds .ld once it loads). */
.bld-frame{opacity:0;transition:opacity .3s ease}
.bld-frame.ld{opacity:1}
/* 7. Reduce motion: everything above, and the screen fade, stops. The typing dots keep blinking (they say Kin is writing). */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .typing i{animation-duration:1.2s!important;animation-iteration-count:infinite!important}
  #send.ready{transform:none}
}

/* The note over a chat Kin just put in a new project (Lyndon 2026-11-05): one line, Rename and Undo. */
.placed{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 16px 0;padding:10px 12px 10px 16px;border-radius:16px;border:1px solid var(--line-c);background:var(--surface);font-size:14px;color:var(--text-2)}
.placed.hide{display:none}
.placed .cpl-t{flex:1;min-width:0}
.placed .cpl-t b{color:var(--text-h);font-weight:600}
.placed .cpl-b{font:inherit;font-size:13px;font-weight:600;padding:6px 12px;border-radius:999px;border:1px solid var(--line-c);background:none;color:var(--text-2);cursor:pointer}
.placed .cpl-b:hover{background:var(--hover-bg)}
.placed .cpl-in{font:inherit;font-weight:600;color:var(--text-h);background:var(--bg);border:1px solid var(--sel-bd);border-radius:8px;padding:3px 8px;width:220px}
@media (min-width:1000px) and (min-height:500px){.ph.sided .placed{width:min(760px,calc(100% - 48px));margin:12px auto 0}}
/* Projects home, an overview (Lyndon 2026-11-05: "its not clear that this is some kind of home or dashboard"; "It should be a tile
   and then the text ... I dont' think they take actions here ... The focus here is an overview"; "function/information over
   aesthetics"): greeting with + New project, Kin's update with no box, one tile per project (a thumbnail, then the name, the plan
   bar, its 2 latest threads). No "waiting for you" (Lyndon 2026-11-06). */
.gl-day{font-size:14.5px;color:var(--text-5)}
.dh{display:none;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:10px}
.psc.has-pj .dh{display:flex}
.dh-hi{font-family:"FK Grotesk",-apple-system,"SF Pro Text",sans-serif;font-size:19px;font-weight:500;color:var(--text-h);letter-spacing:-.015em;margin-top:4px;line-height:1.15}
.dh-new{flex:none;font:inherit;font-size:14.5px;font-weight:600;padding:10px 18px;border-radius:999px;border:0;background:var(--accent-bg);color:var(--on-accent);cursor:pointer}
.dh-new:hover{background:var(--accent-hover)}
.dupd{display:flex;gap:14px;align-items:flex-start;margin-top:22px}
.dupd-av{width:34px;height:34px;border-radius:50%;background:var(--accent-bg);color:var(--on-accent);display:flex;align-items:center;justify-content:center;font-weight:600;flex:none}
.dupd-k{font-size:12.5px;font-weight:600;color:var(--text-5)}
.gl-line{font-size:18px;line-height:1.45;color:var(--text-2);margin-top:3px}
.gl-line em{font-style:normal;color:var(--link);font-weight:500}
.psec{margin-top:30px}
/* Every project tile the same height, the tallest one's (Lyndon 2026-11-06: "the different heights of tiles in the all projects
   page is distracting"): a project with no plan bar or fewer threads keeps the empty room at its bottom. */
.ptiles{display:grid;gap:14px;grid-auto-rows:1fr}
.ptile{display:flex;align-items:flex-start;gap:30px;background:var(--surface);border:1px solid var(--line-c);border-radius:22px;padding:20px 24px 20px 20px;cursor:pointer;min-width:0}
.ptile:hover{background:var(--hover-bg)}
.ptile:hover .pt-n{color:var(--link)}
.ptile .pt-cv{width:88px;height:88px;border-radius:16px;flex:none;font-size:42px}
.ptile .pt-cv img{width:100%;height:100%;object-fit:cover;display:block}
.pt-b{flex:1;min-width:0}
.pt-n{font-size:27px;font-weight:500;color:var(--text-h);letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt-top{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:14px;min-width:0}
.pt-top .pt-n{flex:1 1 0;min-width:60%}
/* A phone: the name keeps its room (the count drops under it when both do not fit), a smaller picture and gap. */
@media (max-width:699px){.ptile{gap:18px;padding:16px 16px 16px 14px}.ptile .pt-cv{width:72px;height:72px;font-size:36px}.pt-top .pt-c{flex-basis:100%}}
/* Threads and messages, top right (Lyndon 2026-11-06), quiet next to the name. */
.pt-c{flex:none;font-size:13px;color:var(--text-5);white-space:nowrap}
.pt-s{font-size:14px;color:var(--text-5);margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt-th{display:flex;flex-direction:column;gap:6px;margin-top:12px;font-size:14px;color:var(--text-4);min-width:0}
.pt-th span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;padding-left:12px}
/* A thread nobody has read yet (chats.unread, so a new suggestion chat too) = a purple dot before its title and bold text (Lyndon
   2026-11-06: "a purple dot and bolded text for 'new' or chats with unread messages"); read threads are plain. */
.pt-th span.unr{font-weight:700;color:var(--text-h)}
.pt-th span.unr::before{content:"";position:absolute;left:0;top:.5em;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.pt-go{flex:none;font-size:26px;color:var(--text-4);line-height:1;align-self:center}
.dpan-h{display:flex;align-items:center;gap:8px;padding:0 0 12px;font-size:13px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-5)}
.dpan-h .hn{letter-spacing:0;text-transform:none;font-weight:600;color:var(--link)}
.hlab-a{margin-left:auto;font:inherit;font-size:13.5px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--link);background:none;border:0;padding:0;cursor:pointer}
.psc.has-pj #pj-create{display:none}
@media (min-width:1000px) and (min-height:500px){
  .ph.sided .dh-hi{font-size:20px}
}

/* ---------- Search chats in the left column (Lyndon 2026-11-06: "let's have a search in the left column, the chat name stays put and they
   rename it.") ----------
   Then: "the search bar takes up too much room right now. it would be better if you click on search and it opens up a search modal".
   So the left column keeps a plain Search row under New chat (.stop, above); it opens a search window over the page: the box on top,
   the matching chats under it (the same rows, the hit marked, the project small).
   Computers only, like the left column. Theme variables only. */
.sdim{position:fixed;inset:0;background:var(--dim-2);z-index:70}
.smodal{position:fixed;z-index:71;left:50%;top:12vh;transform:translateX(-50%);width:min(560px,calc(100vw - 40px));max-height:70vh;display:flex;flex-direction:column;
  background:var(--bg-raised);border-radius:20px;box-shadow:0 14px 40px var(--sh-3);overflow:hidden}
.sdim[hidden],.smodal[hidden]{display:none}
.ssrch{position:relative;flex:none;border-bottom:1px solid var(--line)}
.ssrch .si{position:absolute;left:20px;top:50%;margin-top:-8px;width:16px;height:16px;color:var(--muted);pointer-events:none}
.ssrch input{display:block;width:100%;padding:18px 48px 18px 48px;border:0;background:none;font:inherit;font-size:16px;color:var(--text);outline:0}
.ssrch .sx{position:absolute;right:14px;top:50%;width:26px;height:26px;margin-top:-13px;padding:0;border:0;border-radius:50%;background:none;font:inherit;font-size:12px;line-height:1;color:var(--muted);cursor:pointer}
.ssrch .sx:hover{color:var(--text-h);background:var(--glass-3)}
.shits{flex:1;min-height:0;overflow-y:auto;padding:8px;scrollbar-width:thin}
.shits .sempty{padding:14px 12px;color:var(--muted)}
.shits .li{border-radius:12px;padding-left:16px} /* no unread-dot lane in the window */
.shits .sp{margin-top:3px;font-size:11.5px;color:var(--muted-b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shits .hl{background:var(--sel-bg);color:inherit;border-radius:3px;padding:0 1px}

/* The never-opened dot's pulse (.oh-nwtag, below): outside the one-home block, whose selector check would read 0%/50% as selectors */
@keyframes oh-nwpulse{0%,100%{box-shadow:0 0 4px 1px color-mix(in srgb,var(--nw-tag) 60%,transparent)}50%{box-shadow:0 0 0 3px color-mix(in srgb,var(--nw-tag) 22%,transparent),0 0 8px 2px color-mix(in srgb,var(--nw-tag) 70%,transparent)}}
/* ---------- One home (Lyndon 2026-11-06: "i dont want it to be overwhelming. it should be a zen place of creation and focus") ----------
   Only with the team's per-creator One home switch on: app.js puts .one-home on #ph. Everything here is scoped under it, so with the switch off
   none of it applies. Theme variables only (no hex): dark mode follows. The one purple thing is Send; selected rows, + New project, the avatar
   and links are neutral (overridden here, the theme tokens are untouched). */
.soh{display:none}
.oh-phone{display:none}
.oh-pfp{display:none} /* the phone home's account button (index.html #oh-profile); css below shows it on phones with one home */
/* No Chat | Projects switch and no hint, plan pill or "with Kin" line. The switch keeps its room on computers (hidden, not removed) so the top
   of the bar doesn't jump; on phones it goes. */
.ph.one-home #side-seg,.ph.one-home #p-seg,.ph.one-home #h-seg{visibility:hidden;pointer-events:none}
@media not all and (min-width:1000px) and (min-height:500px){.ph.one-home #side-seg,.ph.one-home #p-seg,.ph.one-home #h-seg{display:none !important}}
.ph.one-home #dash-hint,.ph.one-home #csub.plain{display:none !important}
/* "(Trial)" after the name: plain muted text, no pill, so the calm home stays calm (Lyndon 2026-11-06). */
.ph.one-home .sacct .plan{border:0;padding:0;font-size:13px;font-weight:500;color:var(--muted)}
/* Neutral instead of purple */
.ph.one-home .sacct .ini{background:var(--raised-a);color:var(--text-3)}
.ph.one-home .brief a,.ph.one-home .gl-line a,.ph.one-home .gl-line em{color:var(--text-h)}
.ph.one-home .li.unr,.ph.one-home .side .li.sr.unr{background:none}
.ph.one-home .li.unr:hover,.ph.one-home .side .li.sr.unr:hover{background:var(--glass-2)}
.ph.one-home .un{background:var(--text-h)}
/* Chats with updates read like Discord's threads: bright bold title, read chats grey; no box (Lyndon 2026-11-06: "what do you think about the way
   discord marks unread/read threads. Threads with updates are white and those without updates are grey", then "i like teh half dots on the left like
   discord"). In the left bar a half dot sits on the column's edge, level with the title line; the main panel has none ("We don't need the half dot
   for the threads in the main panel"). A thread they never opened also gets a glowing pink dot by its title. */
.ph.one-home .li.sr.oh-r .ln .t .tn,.ph.one-home .li.sr.oh-r .ln .s .sl{color:var(--muted);font-weight:500}
.ph.one-home .li.sr.oh-r.unr .ln .t .tn{color:var(--text-x1);font-weight:700}
.ph.one-home .li.sr.oh-r.unr .ln .s .sl{color:var(--text-2);font-weight:500}
/* Under the title, everything steps back: description and time in regular weight at .55, the message count at .45, so the title reads first
   (Lyndon 2026-11-07: "the descriptions under the thread title, the day/time these should all be a less visible and not as bold. The information all
   loooks like it's one weight right now", picked "B"). */
.ph.one-home .li.sr.oh-r .ln .s .sl,.ph.one-home .li.sr.oh-r.unr .ln .s .sl,.ph.one-home .li.sr.oh-r .ln .t .wh{font-weight:400;opacity:.55}
.ph.one-home .li.sr.oh-r .oh-n{font-weight:400;opacity:.45}
.ph.one-home .li.sr.oh-r .sth{opacity:.55}
.ph.one-home .li.sr.oh-r.unr .sth{opacity:1}
.ph.one-home .li.sr.oh-r .un{display:none}
.ph.one-home .side .li.sr.oh-r.unr .un,.ph.one-home .side .soh .oh-ch .li.sr.oh-r.unr .un{display:block;animation:none;left:-8px;top:15px;margin-top:0;width:4px;height:8px;border-radius:0 4px 4px 0;background:var(--text-x1)}
.ph.one-home .side .soh .oh-ch .li.sr.oh-r.unr .un{left:-38px}
.ph.one-home .side .li.sr.oh-r.unr{overflow:visible} /* the half dot sits outside the row, on the column edge */
.li.oh-nw .ln .t .tn{flex:0 1 auto}
/* A never-opened thread: a glowing pink dot by its title that pulses three times, then stays lit (Lyndon 2026-11-06: "Instead of the New pill can we
   just have a glowing pink dot that pulses a few times"). Reduce motion: the global rule cuts it to ~0ms, so it just shows lit. Pulse: @keyframes oh-nwpulse. */
.oh-nwtag{flex:none;width:6px;height:6px;margin:0 auto 0 8px;border-radius:50%;background:var(--nw-tag);box-shadow:0 0 4px 1px color-mix(in srgb,var(--nw-tag) 60%,transparent);align-self:center;animation:oh-nwpulse 1.6s ease-in-out 3} /* slightly smaller (Lyndon 2026-11-06) */
.ph.one-home .side .li.sr.sel,.ph.one-home .side .li.sr.sel.unr{background:color-mix(in srgb,var(--text-h) 6%,transparent);border:1px solid transparent;box-shadow:none} /* light grey, not a white card (Lyndon 2026-11-06: "too loud") */

/* Phones (< 1000px): the same calm home as the computer (Lyndon 2026-11-06: "Can we make sure we update the mobile view to include the changes we've
   made along the way? removing the icon. Removing the quotes etc"). Gone: the quote card and its author, the fern, the purple circle, the card's top
   bar (and so the Chat | Projects switch), the install card. What stays is the computer's greeting and message box, then Projects, then Other chats
   as the left bar's own row. */
@media not all and (min-width:1000px) and (min-height:500px){
  .ph.one-home #s-home .hfeat.quote,.ph.one-home #s-home .hbar,.ph.one-home #s-home .hfeat .flora,.ph.one-home #s-home #h-blob,.ph.one-home #s-home .install,.ph.one-home #s-home #h-seg,.ph.one-home #s-home .dflora,.ph.one-home #s-home #dash-news{display:none !important}
  .ph.one-home #s-home .hdash{display:block;padding:calc(env(safe-area-inset-top) + 76px) 18px 0;max-width:none}
  .ph.one-home #s-home .hdash .dhi{font-size:15px}
  .ph.one-home #s-home .oh-pfp{display:flex;position:absolute;top:calc(env(safe-area-inset-top) + 20px);right:18px}
  .ph.one-home #s-home .hdash .dbox{margin-top:12px}
  .ph.one-home #s-home .hfeat:not(.quote){margin:22px 18px 0;min-height:0;padding:24px 22px;border-radius:24px;border:1px solid var(--line-e)}
  .ph.one-home #s-home .hfeat #feat-hi{margin-top:0}
  .ph.one-home #s-home .hfeat #feat-h{font-size:24px !important}
  .ph.one-home #s-home .htxt .h,.ph.one-home #s-home .htxt .p{max-width:none}
  .ph.one-home .oh-phone:not(.hide){display:block;margin-top:34px}
  .ph.one-home .oh-phone:not(.hide) + .lh{margin-top:18px} /* a clearly bigger gap between the projects and the other chats */
  .oh-pl{display:flex;flex-direction:column;margin:0 18px}
  .oh-pr{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;padding:18px 8px;border:0;border-bottom:1px solid var(--line);background:none;font:inherit;font-weight:600;font-size:16px;color:var(--text-h);text-align:left;cursor:pointer}
  .oh-pr .oh-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .oh-pr .oh-un{flex:none;font-size:12.5px;font-weight:500;color:var(--text-h)}
  .oh-pr .oh-pn{flex:none;font-size:13px;font-weight:400;color:var(--muted-b);font-variant-numeric:tabular-nums}
  .oh-pr .oh-go{flex:none;color:var(--muted);font-size:20px;line-height:1}
  .oh-phone .oh-plh{margin-top:0}
  /* The + next to Other chats is neutral (purple is only for Send) */
  .ph.one-home #new-chat{background:var(--raised-a);color:var(--text-3)}
  .ph.one-home #list.oh-list{margin:0 18px;padding-bottom:8px}
  .ph.one-home #list .li.sr.oh-r:last-child{border-bottom:0}
  /* Inside a chat on a phone nothing is purple but Send: their own bubbles are a neutral card, the plant tile by the title is gone (the computer hides it too) */
  .ph.one-home #s-chat .b.me{background:var(--raised-a);color:var(--text)}
  .ph.one-home #s-chat #cav{display:none}
}

/* The left bar: Projects, then Other chats, on every screen (computers) */
@media (min-width:1000px) and (min-height:500px){
  .ph.one-home #side-list,.ph.one-home .side>.slab,.ph.one-home .spj{display:none !important}
  .ph.one-home .soh{display:block;flex:1;min-height:0;overflow-y:auto;padding:4px 8px calc(env(safe-area-inset-bottom) + 14px);scrollbar-width:thin}
  .ph.one-home.rail .soh{display:none !important}
  /* A smaller top (Lyndon 2026-11-06: "In the top section with this can be smaller. Maybe it's just a magnifying glass icon on the top right of
     the column. And we can get soem vertical space back"): Search is a small magnifier top right, the twin of « top left; the hidden switch
     gives its room back and New chat moves up under them. The folded rail keeps its own layout. */
  .ph.one-home.sided:not(.rail) #side-seg{display:none !important}
  .ph.one-home.sided:not(.rail) .stop{margin:52px 10px 10px}
  .ph.one-home.sided:not(.rail) #side-sopen{position:absolute;top:14px;right:12px;z-index:2;width:24px;height:24px;padding:0;gap:0;justify-content:center;border-radius:8px;background:var(--surface);color:var(--text-3)}
  .ph.one-home.sided:not(.rail) #side-sopen:hover,.ph.one-home.sided:not(.rail) #side-sopen:focus-visible{color:var(--text-h)}
  .ph.one-home.sided:not(.rail) #side-sopen .srow-l{display:none}
  .ph.one-home.sided:not(.rail) #side-sopen .ic{width:24px;height:24px}
  .ph.one-home.sided:not(.rail) #side-sopen .ic svg{width:15px;height:15px}
  .ph.one-home.sided:not(.rail) .soh .oh-lab:first-child{padding-top:4px}
  .soh .oh-lab{padding:14px 12px 8px;display:flex;align-items:center;justify-content:space-between}
  .soh .oh-lab:first-child{padding-top:6px}
  .soh .oh-other{padding-top:0;margin-top:34px} /* a clearly bigger gap between the projects and the other chats */
  .soh .oh-new{font:inherit;font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--muted-b);background:none;border:0;border-radius:8px;padding:3px 7px;cursor:pointer}
  .soh .oh-new:hover{color:var(--text-h);background:var(--glass-2)}
  .oh-pj{margin-bottom:6px}
  .oh-ph{display:flex;align-items:center;gap:2px;border-radius:14px;padding:2px 6px 2px 2px;border:1px solid transparent}
  .oh-ph:hover,.oh-pj.cur>.oh-ph{background:var(--surface);border-color:var(--line-c);box-shadow:0 1px 4px var(--sh-1)}
  .oh-arr{flex:none;width:26px;height:26px;margin:4px 6px 4px 6px;padding:0;border:0;border-radius:8px;background:none;font:inherit;font-size:11px;line-height:1;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center}
  .oh-ph:hover .oh-arr{background:var(--raised-a);color:var(--text-3)}
  .oh-arr:hover,.oh-arr:focus-visible{background:var(--line-c) !important;color:var(--text-h) !important}
  .oh-nm{flex:1;min-width:0;display:flex;align-items:center;gap:8px;padding:8px 4px 8px 2px;border:0;background:none;font:inherit;font-weight:500;font-size:16px;letter-spacing:-.005em;color:var(--text-h);text-align:left;cursor:pointer}
  .oh-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .oh-go{flex:none;font-size:13px;font-weight:500;color:var(--muted);opacity:0;transition:opacity .12s}
  .oh-ph:hover .oh-go,.oh-nm:focus-visible .oh-go{opacity:1}
  .oh-un{flex:none;font-size:12px;color:var(--muted-b);font-variant-numeric:tabular-nums}
  .oh-ph:hover .oh-un{display:none}
  .oh-pj .pj-new{width:calc(100% - 28px);margin:2px 0 2px 28px;padding:7px 10px;font-size:14px;font-weight:500;color:var(--text-3)}
  .oh-pj .pj-new .ic{width:20px;height:20px}
  .oh-ch{margin:2px 0 4px;padding-left:12px}
  .oh-all{display:block;width:100%;text-align:left;font:inherit;font-size:13px;color:var(--muted-b);background:none;border:0;border-radius:10px;padding:6px 12px 8px 32px;cursor:pointer}
  .oh-all:hover{color:var(--text-h);background:var(--glass-2)}
  .oh-none{padding:6px 12px;opacity:.55} /* quieter than the PROJECTS label above it (Lyndon 2026-11-07: "no projects yet should be less visible (less opacity)") */
}

/* A chat row, today's left-bar row at ONE fixed height (a row with no pictures keeps the empty space, so the list isn't jumpy) */
.li.sr.oh-r{height:112px;box-sizing:border-box;overflow:hidden;align-items:flex-start;gap:11px;padding:10px 16px 10px 36px;border-radius:14px} /* room inside the box on both sides (Lyndon 2026-11-06: "way too close to the text") */
.li.sr.oh-r .ln{display:flex;flex-direction:column;height:100%}
.li.sr.oh-r .ln .t{font-size:14.5px}
.li.sr.oh-r .ln .t .wh{font-size:11.5px}
.li.sr.oh-r .ln .s{font-size:13px;margin-top:3px;min-height:17px;flex:none}
.li.sr.oh-r .ln .s .sl{flex:1;min-width:0}
.li.sr.oh-r .un{left:16px;top:17px;margin-top:0;width:8px;height:8px}
.li.sr.oh-r:hover{background:var(--glass-2)}
.li.sr.oh-r .sth{margin-top:8px;height:34px;flex:none}
.li.sr.oh-r .sth-0{align-items:center}
.oh-n{font-size:12px;color:var(--muted-b);font-variant-numeric:tabular-nums}
.sth-f{position:relative;display:block;width:34px;height:34px;flex:none}
.sth-f img{width:34px;height:34px}
.sth-c{position:absolute;right:2px;bottom:2px;max-width:30px;padding:2px 4px;border-radius:99px;background:rgba(24,22,20,.66);color:rgba(255,255,255,.96);font-style:normal;font-size:10px;font-weight:600;line-height:1;letter-spacing:.01em;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:clip}
.soh .li.sr.oh-r.sel{background:var(--surface)}
/* Left bar as a tree (Lyndon 2026-11-06, Claude-style: "You see an icon for the project and then the lines underneath to the threads to show that it's
   under that project"; "I'd like the horizontal line to point to the title of the thread. we dont need horizontal lines between the threads. the
   selected project doesn't have to be white, i can just be a lighter grey"). A folder icon in the arrow's place (the arrow shows on hover), ONE
   hairline straight down from the folder's centre, a short straight tick to each chat's title, stopping at the last chat. A new chat shows by its
   bold title (its tick stays the same grey). Rows with no pictures shrink to their text ("Let's try 1"). Polish ("make this more elegant. Look a the few lines
   that runs into the project tile bubble. Or the spacing between the end of the horizontal lines and where the title starts"): the line starts below
   the bubble; tick 10px, then 10px to the title. */
.soh .li.sr.oh-r{margin-bottom:0}
.soh .oh-ph:hover,.soh .oh-pj.cur>.oh-ph{background:color-mix(in srgb,var(--text-h) 6%,transparent);border-color:transparent;box-shadow:none}
.soh .oh-arr{position:relative}
.soh .oh-arr>span{visibility:hidden}
.soh .oh-arr::before{content:'';position:absolute;inset:3px;background:var(--text-3);pointer-events:none;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'><path d='M3.5 7.5A1.5 1.5 0 0 1 5 6h4.2l2 2.2H19a1.5 1.5 0 0 1 1.5 1.5v8.3A1.5 1.5 0 0 1 19 19.5H5A1.5 1.5 0 0 1 3.5 18z'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'><path d='M3.5 7.5A1.5 1.5 0 0 1 5 6h4.2l2 2.2H19a1.5 1.5 0 0 1 1.5 1.5v8.3A1.5 1.5 0 0 1 19 19.5H5A1.5 1.5 0 0 1 3.5 18z'/></svg>") center/contain no-repeat}
.soh .oh-ph:hover .oh-arr::before,.soh .oh-arr:focus-visible::before{display:none}
.soh .oh-ph:hover .oh-arr>span,.soh .oh-arr:focus-visible>span{visibility:visible}
.soh .oh-ch{position:relative;padding-left:30px}
.soh .oh-ch .li.sr.oh-r{padding-left:20px;overflow:visible} /* the tick ends 14px before the title: as long as the tick itself, with more room inside the box (Lyndon 2026-11-06: "way too close to the text") */
.soh .oh-ch .li.sr.oh-r .un{display:none}
.soh .oh-ch .li.sr.oh-r::before{content:'';position:absolute;left:-8px;top:0;width:14px;height:20px;border-left:1px solid color-mix(in srgb,var(--text-4) 38%,transparent);border-bottom:1px solid color-mix(in srgb,var(--text-4) 38%,transparent);pointer-events:none}
.soh .oh-ch .li.sr.oh-r:first-child::before{top:4px;height:16px} /* the line starts clear of the project's bubble, never inside it */
.soh .oh-ch .li.sr.oh-r:has(+ .oh-r)::after{content:'';position:absolute;left:-8px;top:20px;bottom:0;border-left:1px solid color-mix(in srgb,var(--text-4) 38%,transparent);pointer-events:none}
/* every tick the same colour and weight, a new chat too (Lyndon 2026-11-06: "the horizontal line is a brighte grey than the others. this sohuld be all
   the same color thickness"): a new chat shows by its bold title */
.soh .oh-ch .oh-all{padding-left:12px}
.soh .li.sr.oh-r:has(.sth-0){height:auto}
.soh .li.sr.oh-r:has(.sth-0) .sth{height:auto;margin-top:4px}
/* Tighter left bar (Lyndon 2026-11-09: "elements in the sidebar are spaced a little too much vertically. can it be a a little tighter"):
   thread rows lose their slack, project names and labels sit closer; the tree ticks still point at each title. Computer left bar only. */
.soh .li.sr.oh-r{height:96px;padding-top:8px;padding-bottom:8px}
.soh .li.sr.oh-r .ln .s{margin-top:2px}
.soh .li.sr.oh-r .sth{margin-top:6px}
.soh .li.sr.oh-r:has(.sth-0) .sth{margin-top:2px}
.soh .oh-ch .li.sr.oh-r::before{height:18px}
.soh .oh-ch .li.sr.oh-r:first-child::before{top:4px;height:14px}
.soh .oh-ch .li.sr.oh-r:has(+ .oh-r)::after{top:18px}
.soh .oh-pj{margin-bottom:2px}
.soh .oh-nm{padding-top:5px;padding-bottom:5px}
.soh .oh-lab{padding-top:10px;padding-bottom:6px}
.soh .oh-other{margin-top:24px}
.soh .oh-all{padding-top:4px;padding-bottom:6px}

/* The project page: hero, a calm box to start a chat, tabs, the open tab (approved mock 6) */
.ph.one-home #s-project .pin>.pj-sec{display:none !important} /* the old sections: their content lives in the tabs */
.ph.one-home #s-project .phero{margin-bottom:32px} /* 32px between the hero and the start-a-chat box */
.oh-box{display:block;background:var(--surface);border:1px solid var(--line-c);border-radius:20px;padding:16px 16px 12px 20px;margin:0;box-shadow:0 2px 10px var(--sh-1)}
.oh-box.hide{display:none}
.oh-box:focus-within{border-color:var(--text-4)}
.oh-box textarea{display:block;width:100%;min-height:48px;max-height:200px;border:0;outline:0;resize:none;background:none;font:inherit;font-size:17px;line-height:1.45;color:var(--text);padding:0}
.oh-box textarea::placeholder{color:var(--muted)}
.oh-bar{display:flex;justify-content:flex-end;margin-top:8px}
.oh-send{width:34px;height:34px;border-radius:50%;border:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--on-accent);background:var(--accent-bg)}
.oh-send:disabled{background:var(--accent-dis);color:var(--muted);cursor:default}
.viewing .oh-box{display:none}
.oh-tabs{display:flex;gap:40px;border-bottom:1px solid var(--line-c);margin:44px 0 20px;overflow-x:auto;scrollbar-width:none}
.oh-tabs.hide,.oh-pane.hide{display:none}
.oh-tabs button{flex:none;font:inherit;font-weight:500;font-size:17px;color:var(--muted);background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:0 0 14px;cursor:pointer;white-space:nowrap}
.oh-tabs button:hover{color:var(--text-h)}
.oh-tabs button.on{color:var(--text-h);border-bottom-color:var(--text-h)}
.oh-c{margin-left:8px;font-size:14px;font-weight:400;color:var(--muted-b);font-variant-numeric:tabular-nums}
.oh-empty{padding:22px 2px;color:var(--muted);font-size:15.5px}
/* The project page's chat rows: unboxed, one faint line under each, room to breathe (Lyndon 2026-11-06: "can we make sure things are spaced better and have more space to breathe?") */
.oh-list{display:flex;flex-direction:column;gap:0}
.oh-list .li.sr.oh-r{height:144px;padding:20px 28px 20px 48px;gap:20px;border-radius:0;background:none;border-bottom:1px solid var(--line);overflow:visible}
.oh-list .li.sr.oh-r:hover{background:var(--glass-2)}
.oh-list .li.sr.oh-r .un{left:24px;top:28px} /* inside the box, 24px from its edge */
.oh-list .li.sr.oh-r .ln .t{font-size:16px}
.oh-list .li.sr.oh-r .ln .t .wh{font-size:12.5px}
.oh-list .li.sr.oh-r .ln .s{font-size:14.5px;margin-top:6px}
.oh-list .li.sr.oh-r .sth{margin-top:20px} /* 20px between the text and the thumbnail strip */
.oh-list .li.sr.oh-r .sth-0{margin-top:10px}
.oh-g3{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:16px}
@media (max-width:699px){.oh-g3{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.oh-tabs{gap:20px}.oh-tabs button{font-size:14px}.oh-c{margin-left:5px;font-size:12px}}
.oh-card{display:flex;flex-direction:column;min-width:0;background:var(--surface);border:1px solid var(--line-c);border-radius:14px;overflow:hidden;text-decoration:none;color:inherit}
.oh-card:hover{border-color:var(--text-4)}
.oh-pv{position:relative;display:block;height:148px;background:var(--raised-a);overflow:hidden}
.oh-pv .pg-look{position:absolute;top:0;left:0;width:400%;height:400%;border:0;transform:scale(.25);transform-origin:0 0;pointer-events:none}
.oh-ct{display:block;padding:10px 14px 0;font-size:15px;font-weight:500;color:var(--text-h);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oh-cs{display:block;padding:2px 14px 12px;font-size:13px;line-height:1.35;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oh-pdf .oh-cs{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.oh-ver{display:block;padding:0 14px 12px;margin-top:-6px;font-size:12.5px;color:var(--muted-b)}
.oh-more{margin-top:14px;font-size:13.5px;color:var(--muted)}
/* 6px between chats in a project, so two purple boxes never touch (Lyndon 2026-11-06: "i don't like this where the tiles connect", picked C:
   tint only, no outline, a gap); the tree's line carries on through the gap. */
.soh .oh-ch .li.sr.oh-r{margin-bottom:6px}
.soh .oh-ch .li.sr.oh-r:has(+ .oh-r)::after{bottom:-6px}

/* The Timeline tab on an event project (Lyndon 2026-11-29, Clem first): one line a week. Muted date on the left, the line, and the current week raised
   with "This week" at the right; the event day is bold. Theme variables only, so light and dark both work. */
.oh-tl-date{color:var(--text-3)}
.oh-tl-sub{font-size:14px;color:var(--muted);margin:0 0 14px}
.oh-tl-list{display:flex;flex-direction:column;gap:2px}
.oh-tl-row{display:flex;align-items:baseline;gap:20px;padding:12px 16px;border-radius:10px;font-size:15.5px;line-height:1.45;color:var(--text)}
.oh-tl-d{flex:none;width:64px;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.oh-tl-t{flex:1;min-width:0;overflow-wrap:anywhere}
.oh-tl-w{flex:none;margin-left:auto;padding-left:12px;font-size:12.5px;color:var(--muted);white-space:nowrap}
.oh-tl-row.oh-tl-now{background:var(--raised-a)}
.oh-tl-row.oh-tl-ev .oh-tl-t{font-weight:600;color:var(--text-h)}
@media (max-width:699px){.oh-tl-row{gap:14px;padding:11px 12px;font-size:14.5px}.oh-tl-d{width:52px;font-size:13px}.oh-tl-w{font-size:11.5px;padding-left:8px}}

/* The Guests tab on an event project (Lyndon 2026-11-29, Clem first): private and grouped. A quiet counts line, then a group per who they are (uppercase muted
   header, its seat total at the right), one line per guest or party (name, muted detail, seats, status), Open held seats, Cancelled last and muted, one note.
   Theme variables only, so light and dark both work. */
.oh-gl-list{display:flex;flex-direction:column}
.oh-gl-gh{display:flex;justify-content:space-between;align-items:baseline;margin:22px 0 2px;font-size:12.5px;font-weight:500;color:var(--muted)}
.oh-gl-gh span:first-child{letter-spacing:.04em;text-transform:uppercase}
.oh-gl-row{display:flex;align-items:baseline;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:15.5px;line-height:1.45;color:var(--text-h)}
.oh-gl-n{flex:1;min-width:0;overflow-wrap:anywhere}
.oh-gl-d{margin-left:10px;font-size:13.5px;color:var(--muted)}
.oh-gl-s{flex:none;width:48px;text-align:right;font-size:14px;color:var(--text-3);font-variant-numeric:tabular-nums}
.oh-gl-st{flex:none;width:92px;text-align:right;font-size:13.5px;color:var(--muted)}
.oh-gl-st.oh-gl-ok{color:var(--sage-ink)}
.oh-gl-row.oh-gl-off .oh-gl-n,.oh-gl-row.oh-gl-off .oh-gl-s{color:var(--muted)}
.oh-gl-tag{margin-left:10px;padding:1px 8px;border:1px solid var(--line);border-radius:99px;font-size:12px;color:var(--muted);white-space:nowrap}
.oh-gl-empty{padding:12px 0 4px;font-size:14px;color:var(--muted)}
.oh-gl-note{margin-top:14px;font-size:13.5px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
@media (max-width:699px){.oh-gl-row{gap:10px;padding:10px 0;font-size:14.5px}.oh-gl-d{display:block;margin:2px 0 0;font-size:13px}.oh-gl-tag{margin-left:0;display:inline-block;margin-top:4px}.oh-gl-s{width:30px}.oh-gl-st{width:76px;font-size:12.5px}}

/* talk-to-Kin motion (Lyndon 2026-11-07: "I'd like you to look at modern and polished interactive animations that could make this site
   feel more polished." -> [Q4] "1", all three in one PR). Spent where they talk to Kin: 1. the home box becomes the chat bar, 2. a shimmering
   line says Kin is working until the words fade in, 3. in the left bar one highlight glides between chats and a new chat slides in.
   Calm: nothing over .55 s, ease-out. Only the "Kin is working" line loops (it says something, like the old dots) and it stops when words
   arrive. Reduce motion turns every bit of it off (end of this block). Layout, colours and copy are untouched. */
/* 1. The home box becomes the chat bar (app.js openFromDash puts view-transition-name k-mbox on #dash-form, then on #s-chat .bar). */
::view-transition-old(root),::view-transition-new(root){animation-duration:.3s}
::view-transition-group(k-mbox){animation-duration:.5s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
::view-transition-old(k-mbox),::view-transition-new(k-mbox){animation-duration:.5s;height:100%;object-fit:none;object-position:left center} /* the box and the bar are different shapes: keep each picture its own size (no stretched words) while the frame between them changes */
.dsend{transition:transform .15s ease,opacity .2s ease,background-color .2s ease,color .2s ease}
.dsend:disabled,.dsend:disabled:active{transform:scale(.88);opacity:.6}
.dsend:not(:disabled){transform:scale(1)}
.dsend:not(:disabled):active{transform:scale(.96)}
/* 2. "Kin is working": one plain line, its words shimmer (a light sweep across them), no bubble. A tool event swaps the words (slides up). */
.typing.k-mline{background:none;border:0;border-radius:0;padding:8px 4px 8px 16px;display:block}
.ph.sided .typing.k-mline{padding-left:24px}
.k-mthink{display:inline-block;font-size:15px;line-height:1.4;color:var(--text-5)}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .k-mthink{background:linear-gradient(100deg,var(--text-5) 0%,var(--text-5) 38%,var(--text) 50%,var(--text-5) 62%,var(--text-5) 100%) 100% 0/250% 100% no-repeat;
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:k-mshim 1.6s linear infinite}
  .k-mthink.swap{animation:k-mshim 1.6s linear infinite,k-mswap .25s ease-out}
}
@keyframes k-mshim{from{background-position:100% 0}to{background-position:0 0}}
@keyframes k-mswap{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* Kin's new words fade in (app.js fadeNewWords wraps the last ~.4 s of text in these, already part-way through their fade). */
.k-mw{animation:k-mword .4s ease-out both}
@keyframes k-mword{from{opacity:0;filter:blur(3px)}to{opacity:1;filter:none}}
/* 3. Left bar, computers with a mouse: one pill glides to the row under the pointer; a new chat slides in. The pill sits under the rows
   (z-index -1 inside the list's own stacking context), so .sel and unread rows keep their own backgrounds on top of it. */
.k-mglide{display:none}
@media (hover:hover) and (pointer:fine){
  .ph.sided .slist,.ph.sided .soh{position:relative;isolation:isolate}
  .ph.sided .k-mglide{display:block;position:absolute;z-index:-1;left:0;top:0;width:0;height:0;border-radius:14px;background:var(--glass-2);opacity:0;pointer-events:none;
    transition:top .28s cubic-bezier(.3,.8,.2,1),height .28s cubic-bezier(.3,.8,.2,1),opacity .2s ease-out}
  .ph.sided .k-mglide.on{opacity:1}
  .ph.sided .k-mglide.k-mnow{transition:none}
  .side.k-mg .li.sr:not(.sel):not(.unr):hover{background:none}
}
.li.sr.k-min{animation:k-mslide .35s cubic-bezier(.2,.8,.2,1) both}
@keyframes k-mslide{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
/* Reduce motion: no view transition, no shimmer (the words just sit there), no word fade, no glide (the row's own hover comes back), no slide-in. */
@media (prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
  .k-mthink,.k-mthink.swap{animation:none!important;background:none!important;-webkit-text-fill-color:currentColor!important}
  .k-mw,.li.sr.k-min{animation:none!important}
  .k-mglide{display:none!important}
  .dsend:disabled,.dsend:disabled:active{transform:none}
}

/* Home greeting (Lyndon 2026-11-07: "The welcome message looks terrible right now. Can you space it properly? larger white text on dark
   mode etc."). The Projects page's own `.dh{display:none}` (2026-11-05) also hid the home's big line "What would you like to work on?",
   leaving only the small grey greeting on top of the box. Scoped to #hdash: the greeting sits small and soft, the question big in the
   heading colour (near white in dark), centred over the box with room to breathe. Phones keep it left-aligned and a size smaller. */
#hdash .dhi{font-size:17px;color:var(--text-4);text-align:center;letter-spacing:-.005em}
#hdash .dh{display:block;font-size:38px;color:var(--text-h);text-align:center;margin:10px 0 34px;line-height:1.15;letter-spacing:-.015em}
@media not all and (min-width:1000px) and (min-height:500px){
  .ph #hdash .dhi{text-align:left}
  .ph #hdash .dh{font-size:28px;text-align:left;margin:6px 0 20px}
}
/* Home background: a hint of lilac with fine grain (Lyndon 2026-11-07: "I think we can do a very slight version of lilac, but with grain.
   It should just be a hint of color here. We don't want to focus too much on the visuals here."; earlier "Can there be a slight animation
   and have it grainier?"). Painted on the home screen itself (no extra element, nothing over the text), it drifts very slowly and
   stands still under Reduce motion. The plant drawing and everything else on home stay as they are. */
#s-home{ /* colours: --hl-1..3 in the colour blocks at the top */
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .16 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    radial-gradient(55% 60% at 28% 26%,var(--hl-1),transparent 70%),radial-gradient(55% 60% at 78% 42%,var(--hl-2),transparent 70%),
    radial-gradient(60% 55% at 50% 92%,var(--hl-3),transparent 72%);
  background-size:200px 200px,140% 140%,140% 140%,140% 140%;background-repeat:repeat,no-repeat,no-repeat,no-repeat;
  background-position:0 0,0% 0%,100% 0%,50% 100%;animation:k-hl 40s ease-in-out infinite alternate}
@keyframes k-hl{to{background-position:0 0,30% 20%,70% 30%,40% 70%}}
@media (prefers-reduced-motion:reduce){#s-home{animation:none!important}}

/* Home, Lyndon 2026-11-07: "For the main page, lets get rid of the leaf and image behind the chat. Can we have a bit more of the ocean
   colors in the background as well. Can we add more grain too". The day's plant drawing beside the box is gone on every screen size
   (phones already hid it); the lilac background keeps its lilac top-left and turns teal and ocean blue elsewhere (--hl-2/3), with
   stronger grain. */
#hdash .dflora{display:none}

/* Chat on computers: a wider column, and Kin's replies sit on the page without a bubble so long content can use the full width;
   the creator's own messages keep their bubble (Lyndon 2026-11-11: "on web i think this could be wider - to optimize space for the
   user/creators messages lets's leave it in the bubble. for resposnes from the agent can we remove the bubble?"). Kin's lines stop
   short of the full width and the column keeps wide side margins, so it stays easy to read. Phones too ("For 252 can we do the same
   thing for mobile too", Lyndon 2026-11-13): no bubble on Kin's replies, full width of the phone's own margins. */
#s-chat .b.ag{background:none;border:0;border-radius:0;padding:2px 0;max-width:100%}
@media (min-width:1000px) and (min-height:500px){
  .ph.sided #s-chat:not(.has-bld){--gut:max(64px,calc((100% - 820px)/2))} /* "a bit more paddding horizontally ... clean and easy to read" (Lyndon 2026-11-13), then "can we make the chat area of this a little wider? there's alot of empty space on the left and right" (2026-11-28), option A: an 820px column (was 760), at least 64px each side */
  .ph.sided #s-chat .b.ag{background:none;border:0;border-radius:0;padding:4px 0;max-width:min(100%,660px)} /* "agents lines can be a little more narrow and not stretch the full width" (Lyndon 2026-11-11); "a little more padding on the right? it blends with the creat'rs message" (2026-11-13): stops 160px short of the column's right edge, where the creator's bubble ends; 660px with the wider column (2026-11-28, was 600) */
  .ph.sided #s-chat .b.ag.fmt{padding:4px 0}
  .ph.sided #s-chat .ract{margin-left:-6px}
}
/* Bigger tap areas on touch screens, nothing moves (Lyndon 2026-11-11: "what other optimizations can we do to make sure this works
   well on mobile?" -> "1"). Each small control gets an invisible pad so the area a thumb can hit is at least 44px; icons, sizes and
   spacing stay exactly as they are. Pads only reach into empty space, never over a neighbour that does something else. */
@media (pointer:coarse){
  :where(.bk,.pmore,.oh-send,.pfp,.dsend,.crumb,#ctop .cmore,.oh-tabs button){position:relative}
  .bk::after,.pmore::after,.oh-send::after,.pfp::after,.dsend::after,.crumb::after,#ctop .cmore::after,.oh-tabs button::after{content:"";position:absolute}
  .bk::after{top:-6px;bottom:-6px;left:-14px;right:-10px}
  .pmore::after{inset:-8px}
  .oh-send::after,.pfp::after,.dsend::after{inset:-5px}
  #ctop .cmore::after{inset:-3px}
  .crumb::after{top:-14px;bottom:-6px;left:0;right:0}
  .oh-tabs button::after{top:-11px;bottom:0;left:-5px;right:-5px}
  .oh-tabs{padding-top:11px;margin-top:33px} /* the tab row scrolls sideways and so clips anything above it: give the pads room inside it (44 - 11 = 33 keeps the row where it was) */
  .plus{border:5px solid transparent;background-clip:padding-box;margin:-5px;width:44px;height:44px}
  .pj-h2 .plus,.pblk .plus{width:40px;height:40px}
}
/* delight motion (Lyndon 2026-11-07: "can you show me how these would look? sounds good, i like small animations that make the experience
   more polished and delightful" -> "lets do 2, 3, 4, 5"). Small touches that confirm what you did: 2. copy turns into a tick with a short
   "Copied", 3. menus and panels grow from where you pressed (and shrink away), 4. soft placeholders while a chat loads, 5. a finished
   build glows once. Calm: 2 and 3 take at most .35 s, ease-out, no bounce past scale 1.12. Only the placeholder shimmer loops, and only
   while a chat loads. The glow plays once. Reduce motion keeps all of it still (end of this block). Layout, colours and copy are untouched. */
/* 2. Copy: the check draws itself and pops, the button turns the accent colour; "Copied" rises and fades (app.js tickCopy, copiedLabel). */
.ract button.k-dok{color:var(--accent)}
.k-dtick{animation:k-dpop .3s cubic-bezier(.2,.8,.2,1)}
.k-dtick path{stroke-dasharray:26;stroke-dashoffset:26;animation:k-ddraw .3s ease-out forwards}
.k-dfade{animation:k-dfadein .15s ease-out}
@keyframes k-ddraw{to{stroke-dashoffset:0}}
@keyframes k-dpop{0%{transform:scale(.6)}65%{transform:scale(1.12)}100%{transform:scale(1)}}
.k-dcopied{position:fixed;z-index:60;transform:translate(-50%,-110%);font-size:12px;line-height:1.3;padding:4px 9px;border-radius:8px;background:var(--toast-bg);color:var(--on-accent);
  white-space:nowrap;pointer-events:none;animation:k-dtip 1.4s ease-out forwards}
@keyframes k-dtip{0%{opacity:0;transform:translate(-50%,-70%)}15%{opacity:1;transform:translate(-50%,-110%)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-160%)}}
/* 3. Menus and sheets grow from where you pressed (app.js openMenu sets --k-dox/--k-doy); closing shrinks them for .14 s (closeOverlay). */
.menu{transform-origin:var(--k-dox,50%) var(--k-doy,0);animation:k-dmenu .2s cubic-bezier(.2,.8,.2,1) backwards}
.menu button{animation:k-ditem .2s ease-out backwards}
.menu button:nth-child(2){animation-delay:.03s}
.menu button:nth-child(3){animation-delay:.06s}
.menu button:nth-child(n+4){animation-delay:.09s}
.dim{animation:k-dfadein-flat .2s ease-out backwards}
.sheet{animation:k-dsheet .25s cubic-bezier(.2,.8,.2,1) backwards}
.menu.k-dout,.sheet.k-dout{animation:k-dout .14s ease-out forwards;pointer-events:none}
.dim.k-dout{animation:k-ddimout .14s ease-out forwards;pointer-events:none}
@keyframes k-dmenu{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}
@keyframes k-ditem{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
@keyframes k-dfadein-flat{from{opacity:0}to{opacity:1}}
@keyframes k-dsheet{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes k-dout{to{opacity:0;transform:scale(.96)}}
@keyframes k-ddimout{to{opacity:0}}
@media (min-width:1000px) and (min-height:500px){ /* the centred popup on computers (.ph.sided .sheet keeps its translateY(-50%)) */
  .ph.sided .sheet{animation:k-dpopc .22s cubic-bezier(.2,.8,.2,1) backwards}
  .ph.sided .sheet.k-dout{animation:k-doutc .14s ease-out forwards}
}
@keyframes k-dpopc{from{opacity:0;transform:translateY(-50%) scale(.96)}to{opacity:1;transform:translateY(-50%)}}
@keyframes k-doutc{to{opacity:0;transform:translateY(-50%) scale(.96)}}
/* 4. Soft placeholders while a chat opens (only if it takes over 150 ms; app.js skeletonLater), then the messages fade in (fadeInMessages). */
.msgs>.k-dsk:first-child{margin-top:0}
.k-dsk{flex:none;display:flex;flex-direction:column;gap:16px;width:100%;padding:6px 0}
.k-dsk i{display:block;height:16px;width:70%;border-radius:8px;background-color:var(--line-c);
  background-image:linear-gradient(90deg,transparent 0%,var(--glass-3) 50%,transparent 100%);background-size:60% 100%;background-repeat:no-repeat;background-position:-80% 0;
  animation:k-dsweep 1.3s linear infinite}
.k-dsk i:nth-child(1),.k-dsk i:nth-child(4){align-self:flex-end;width:38%;height:40px;border-radius:18px}
.k-dsk i:nth-child(2){width:72%}
.k-dsk i:nth-child(3){width:58%}
.k-dsk i:nth-child(5){width:66%}
.k-dsk i:nth-child(6){width:60%}
@keyframes k-dsweep{from{background-position:-80% 0}to{background-position:180% 0}}
.k-din{animation:k-dfadein .3s ease-out backwards}
@keyframes k-dfadein{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
/* 5. A finished build glows once: a lilac ring over the preview (a pseudo-element above the frame, so the frame's own edge does not clip it)
   and a small label at the top of the pane. app.js buildReadyGlow adds .k-dglow for 1.9 s and a .k-dready that removes itself. */
.bld-body{position:relative}
.bld-body.k-dglow::after{content:"";position:absolute;inset:0 18px 18px;border-radius:14px;z-index:11;pointer-events:none;animation:k-dring 1.8s ease-out forwards}
@keyframes k-dring{0%{box-shadow:inset 0 0 0 0 rgba(201,179,232,0),0 0 0 0 rgba(160,120,220,0)}
  22%{box-shadow:inset 0 0 0 2px rgba(201,179,232,.95),inset 0 0 60px rgba(160,120,220,.35),0 0 30px 4px rgba(160,120,220,.45)}
  100%{box-shadow:inset 0 0 0 0 rgba(201,179,232,0),inset 0 0 0 rgba(160,120,220,0),0 0 0 0 rgba(160,120,220,0)}}
.k-dready{position:absolute;z-index:12;top:12px;left:50%;transform:translateX(-50%);font-size:13px;line-height:1.3;padding:6px 13px;border-radius:99px;
  background:var(--accent-bg);color:var(--on-accent);white-space:nowrap;pointer-events:none;animation:k-dlabel 2.2s ease forwards}
@keyframes k-dlabel{0%{opacity:0;transform:translate(-50%,-6px)}12%{opacity:1;transform:translate(-50%,0)}80%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,0)}}
/* Reduce motion: the tick just swaps in, menus and sheets appear and go at once (closeOverlay removes them), the placeholders sit still,
   the messages simply appear, no glow, and the label just sits for a second (app.js removes it). */
@media (prefers-reduced-motion:reduce){
  .k-dtick,.k-dtick path,.k-dfade,.k-dcopied,.k-din,.k-dsk i,.menu,.menu button,.dim,.sheet,.ph.sided .sheet,.k-dready{animation:none!important}
  .k-dtick path{stroke-dasharray:none;stroke-dashoffset:0}
  .k-dcopied{transform:translate(-50%,-110%)}
  .k-dready{transform:translateX(-50%)}
  .bld-body.k-dglow::after{display:none}
}

/* Media tab (Lyndon 2026-11-28): one tile per graphic, the name and its versions under it, the file type in a pill top right; a tap opens the viewer sheet (.mv-sheet). */
.mv-g{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px 14px;align-items:start}
.mv-tile{display:block;min-width:0;padding:10px 0 0;font:inherit;color:inherit;background:none;border:0;text-align:left;cursor:pointer}
.mv-pic{position:relative;display:block}
.mv-st::before,.mv-st::after{content:"";position:absolute;left:8px;right:8px;top:-5px;height:10px;border-radius:10px 10px 0 0;background:var(--sel-bg);border:1px solid var(--line-c)}
.mv-st::after{left:16px;right:16px;top:-10px;background:var(--raised-a)}
.mv-im{position:relative;z-index:1;display:block;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:var(--raised-a);border:1px solid var(--line-c)}
.mv-im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;filter:var(--img-dim)}
a.mv-tile{text-decoration:none;color:inherit} /* a page or PDF tile is a link: no underline */
.mv-pg{background:var(--surface)}
.mv-pg .pg-look{position:absolute;top:0;left:0;width:800%;height:800%;border:0;transform:scale(.125);transform-origin:0 0;pointer-events:none} /* a page tile shows the page itself (Lyndon 2026-11-29: Created folded into Media) */
.mv-tile:hover .mv-im,.mv-tile:focus-visible .mv-im{border-color:var(--text-4)}
.mv-pill{position:absolute;top:7px;right:7px;padding:3px 7px;border-radius:99px;background:rgba(24,22,20,.66);color:rgba(255,255,255,.94);font-style:normal;font-size:10.5px;font-weight:600;line-height:1;letter-spacing:.03em;white-space:nowrap}
.mv-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:9px;font-size:14px;line-height:1.3;font-weight:500;color:var(--text-h)}
.mv-sub{display:block;margin-top:2px;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The viewer: the plans sheet's close button, a popup on computers and a sheet from the bottom on phones. */
.sheet.mv-sheet{outline:0}
.mv-h{margin:6px 44px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mv-v{margin-top:3px;font-size:13.5px;line-height:1.35;color:var(--text-3)}
.mv-big{display:flex;gap:12px;justify-content:safe center;align-items:flex-start;margin:16px 0 12px;overflow-x:auto}
.mv-big img{flex:none;display:block;height:min(300px,26vh);width:auto;max-width:none;border-radius:10px;filter:var(--img-dim)}
.mv-acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.mv-btn{border:1px solid var(--line);background:none;color:var(--text-h);font:inherit;font-size:13.5px;font-weight:500;line-height:18px;padding:8px 16px;cursor:pointer;text-decoration:none;white-space:nowrap}
.mv-btn:hover{border-color:var(--text-4)}
.mv-btn[hidden]{display:none}
.mv-lab{margin:18px 0 6px;font-size:12.5px;font-weight:500;letter-spacing:.02em;text-transform:uppercase;color:var(--muted)}
.mv-ls{display:flex;flex-direction:column}
.mv-r{display:flex;align-items:center;gap:14px;width:100%;padding:7px 8px;border:0;border-bottom:1px solid var(--hair-a);border-radius:10px;background:none;font:inherit;color:var(--text);text-align:left;cursor:pointer}
.mv-r:hover{background:var(--glass-2)}
.mv-r.on{background:var(--raised-a);border-bottom-color:transparent}
.mv-r:focus-visible,.mv-btn:focus-visible,.mv-tile:focus-visible{outline:2px solid var(--sel-bd);outline-offset:2px}
.mv-t{flex:none;width:48px;height:48px;border-radius:7px;overflow:hidden;border:1px solid var(--line-c)}
.mv-t img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.mv-d{flex:1;min-width:0;font-size:14.5px;line-height:1.3}
.mv-r.on .mv-d{color:var(--text-h);font-weight:500}
.mv-w{flex:none;font-size:12.5px;color:var(--muted);white-space:nowrap;text-align:right}
/* Phones: a square and a story side by side fit the width (the row still scrolls for three or more). */
@media (max-width:699px){.mv-g{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.mv-w{font-size:12px}.mv-big img{height:min(300px,26vh,calc((100vw - 52px) / 1.6))}}
/* pane + attachment motion (Lyndon 2026-11-07: "2,3" = 2. the preview pane opens and closes smoothly, 3. attached photos and files scale in and
   shrink away; [Q8] "1" = build both as one PR). 2. The preview slides in beside the chat while the chat column eases to its narrower width, and
   slides away when it is hidden (») or its link closes; on phones it slides up from the pill and down on the back button. 3. A photo or file
   pops in when attached and shrinks away when removed (×), the others sliding over. Calm: at most .45 s, ease-out in, ease-in out, nothing past
   scale 1.04, nothing loops. Reduce motion keeps all of it still (end of this block). Layout, colours and copy are untouched. */
/* 2. Computers. app.js paintBuilder adds .k-pin to #bld (and .k-pslide to #s-chat) when the pane opens in the chat you are in; hiding it keeps the
   pane painted as .k-pout for .3 s (the rules below repeat what .has-bld gives it) and fades the small card in after. Switching chats, the first
   paint, a resize and the column drag add none of these. */
@media (min-width:1000px) and (min-height:500px){
  .ph.sided #s-chat>.bld.k-pin{animation:k-pin .42s cubic-bezier(.2,.8,.2,1) backwards}
  .ph.sided #s-chat.k-pslide>.top,.ph.sided #s-chat.k-pslide>.msgs,.ph.sided #s-chat.k-pslide>.bar{animation:k-pcol .42s cubic-bezier(.2,.8,.2,1)}
  .ph.sided #s-chat.k-pslide>.pend{animation:k-pcolw .42s cubic-bezier(.2,.8,.2,1)}
  .ph.sided #s-chat>.bld.k-pout{display:flex;flex-direction:column;position:absolute;top:0;bottom:0;right:0;left:var(--chat-w);z-index:5;pointer-events:none;
    background:var(--canvas);border-left:1px solid var(--side-bd);animation:k-pout .28s ease-in forwards}
  .ph.sided #s-chat>.bld.k-pout .bld-bar{background:var(--canvas);border-bottom-color:transparent;padding:calc(env(safe-area-inset-top) + 22px) 22px 12px;min-height:76px}
  .ph.sided #s-chat>.bld.k-pout .bld-body{background:var(--canvas);padding:0 18px 18px}
  .ph.sided #s-chat>.bld.k-pout .bld-frame{position:relative;z-index:10;border-radius:14px;box-shadow:0 0 0 1px var(--line),0 14px 40px var(--frame-sh)}
  .ph.sided #s-chat>.bld.k-pout .bld-hide{display:inline-block;padding:9px 12px;font-size:16px;color:var(--text-3)}
  .ph.sided #s-chat>.bld-peek.k-ppeek:not(.hide){animation:k-ppeek .2s ease-out .28s backwards}
}
@keyframes k-pin{from{opacity:0;transform:translateX(48px)}to{opacity:1;transform:none}}
@keyframes k-pout{70%{opacity:1}to{opacity:0;transform:translateX(48px)}} /* solid while it slides: the widening chat never shows through it */
@keyframes k-pcol{from{width:var(--k-cw);padding-left:var(--k-pl);padding-right:var(--k-pl)}to{width:var(--k-cw2);padding-left:var(--k-pl2);padding-right:var(--k-pl2)}}
@keyframes k-pcolw{from{width:var(--k-cw)}to{width:var(--k-cw2)}}
@keyframes k-ppeek{from{opacity:0}to{opacity:1}}
/* Phones: the full-screen pane slides up from the pill (.k-pup) and down on the back button (.k-pdown, app.js bldBack waits .25 s before it closes). */
@media not all and (min-width:1000px) and (min-height:500px){
  #s-chat.bld-open>.bld.k-pup{animation:k-pup .32s cubic-bezier(.2,.8,.2,1) backwards}
  #s-chat.bld-open>.bld.k-pdown{animation:k-pdown .24s ease-in forwards;pointer-events:none}
}
@keyframes k-pup{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes k-pdown{to{opacity:0;transform:translateY(24px)}}
/* 3. Attached photos and files (app.js paintPending, the × handler). A new chip pops in (a touch past full size, then settles); a removed one
   shrinks and fades while its width and margin close up so the others slide over (app.js pins --k-pw to its width first); the row itself eases open. */
.pchip.k-pnew{animation:k-pnew .28s cubic-bezier(.2,.8,.2,1) backwards}
.pchip.k-pbye{animation:k-pbye .2s ease-in forwards;overflow:hidden;pointer-events:none}
.pend.k-prow{animation:k-prow .2s ease-out backwards}
@keyframes k-pnew{0%{opacity:0;transform:scale(.7)}70%{opacity:1;transform:scale(1.04)}100%{opacity:1;transform:scale(1)}}
@keyframes k-pbye{from{opacity:1;transform:scale(1);max-width:var(--k-pw,200px);margin-right:0}to{opacity:0;transform:scale(.7);max-width:0;margin-right:-8px;padding-left:0;padding-right:0;border-width:0}}
@keyframes k-prow{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* Reduce motion: the pane, the chat column and the chips appear and go at once, as before (app.js also adds none of the classes). */
@media (prefers-reduced-motion:reduce){
  .ph.sided #s-chat>.bld.k-pin,.ph.sided #s-chat>.bld.k-pout,#s-chat.bld-open>.bld.k-pup,#s-chat.bld-open>.bld.k-pdown,
  .ph.sided #s-chat.k-pslide>.top,.ph.sided #s-chat.k-pslide>.msgs,.ph.sided #s-chat.k-pslide>.bar,.ph.sided #s-chat.k-pslide>.pend,
  .ph.sided #s-chat>.bld-peek.k-ppeek,.pchip.k-pnew,.pchip.k-pbye,.pend.k-prow{animation:none!important}
}
