/* FeedPilot web -- one stylesheet, no framework.
   Tokens first, then layout, then the pieces, then motion. Logical
   properties throughout so Persian lays out mirrored for free. */

/* the tokens -- colours, type, space, shape, motion -- are tokens.css, linked first */
/* the app's own frame: the top bar's height, the side menu's width, the page's margin */
:root{--top:56px;--side:248px;--gutter:clamp(16px,3vw,32px);--edge:var(--line-strong)}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/var(--lh) var(--font);
  -webkit-font-smoothing:antialiased;min-height:100dvh}
/* Persian is set in the face the post cards are drawn in (assets/fonts, the
   same two files as core/text_render.py), served from here: a name alone
   only works on a machine that happens to have the font installed. */
@font-face{font-family:"Vazirmatn";font-weight:100 599;font-display:swap;src:url("Vazirmatn-Medium.woff2?v=1") format("woff2")}
@font-face{font-family:"Vazirmatn";font-weight:600 900;font-display:swap;src:url("Vazirmatn-Bold.woff2?v=1") format("woff2")}
[lang=fa] body,html[lang=fa]{font-family:var(--font-fa)}
html[lang=fa] body{line-height:var(--lh-fa)}
/* a numbered list counts in the page's own digits: ۱. ۲. ۳. in Persian, never 1. 2. 3. */
html[lang=fa] ol{list-style-type:persian}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
h1,h2,h3,h4{margin:0;font-weight:650;letter-spacing:-.01em}
h1{font-size:var(--fs-2xl);line-height:var(--lh-tight)}h2{font-size:var(--fs-xl);line-height:var(--lh-tight)}h3{font-size:var(--fs-lg)}
p{margin:.4rem 0}
.muted{color:var(--muted)}.small{font-size:var(--fs-sm)}.bold{font-weight:650}
bdi{unicode-bidi:isolate}
img{max-width:100%}
button{font:inherit;color:inherit}
input,select,textarea{font:inherit;color:inherit;background:var(--surface);border:1px solid var(--line-2);border-radius:var(--radius-sm);
  padding:.55rem .7rem;width:100%;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft-2)}
input::placeholder,textarea::placeholder{color:var(--ink-2);opacity:.85}
textarea{min-height:5.2rem;resize:vertical}
/* One height for every one-line field -- a list, a number, a word, a date --
   so fields side by side line up (operator, 2026-10-05). A list draws its own
   arrow: the browser's own select keeps its own height and ignores padding. */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),select{height:var(--field);line-height:1.2}
select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-inline-end:2.1rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239c9ba9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-size:.75rem;background-position:right .8rem center}
[dir=rtl] select{background-position:left .8rem center}
label{display:block;font-size:.82rem;color:var(--muted);margin:.7rem 0 .25rem}
label:first-child{margin-top:0}
.fld>label{margin-top:.7rem}.fld:first-child>label{margin-top:0}
.grid2>.fld>label{margin-top:.7rem}
.grid2:has(>.fld){align-items:end}   /* a two-line label never pushes its field below its neighbour's */
input[type=file]{padding:.4rem}
input[type=checkbox]{width:auto;accent-color:var(--accent)}
::selection{background:var(--accent-soft-2)}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* --- a form's pieces (the design system) ------------------------------------ */
/* a field's hint under it, and what is wrong with it */
.hint{color:var(--ink-2);font-size:var(--fs-sm);margin:.3rem 0 0}
.err{color:var(--bad-ink);font-size:var(--fs-sm);font-weight:var(--w-medium);margin:.3rem 0 0}
/* a follow-up question grows inside the card that asked it: indented under
   its parent, never a new card or a new page (app.js reveal) */
.follow{margin-top:var(--s3);padding-inline-start:var(--s3);border-inline-start:2px solid var(--accent-soft-2)}
.follow:not([hidden]){animation:grow var(--dur-3) var(--ease)}
.follow>label:first-child{margin-top:0}
@keyframes grow{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
/* a required field left empty tints its whole card, not only the box (app.js needs) */
.invalid:is(.card,.fold,fieldset,.fld,.follow){background:var(--bad-soft);border-color:var(--bad);box-shadow:none}
.fld.invalid,.follow.invalid{border-radius:var(--r-sm);padding:var(--s2) var(--s3);margin-inline:calc(-1 * var(--s3))}
.invalid :is(input,select,textarea){border-color:var(--bad)}
.invalid>label,.invalid>.fld>label{color:var(--bad-ink)}
/* a finger's size wherever a finger is the pointer */
@media (pointer:coarse){.btn{min-height:var(--tap)}.btn.sm{min-height:2.5rem}.icon{min-width:var(--tap);min-height:var(--tap)}.chip{min-height:2.5rem}}

/* --- layout ------------------------------------------------------------- */
.app{display:grid;grid-template-columns:var(--side) 1fr;grid-template-rows:var(--top) 1fr;min-height:100dvh}
.top{grid-column:1/-1;position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:.8rem;padding:0 var(--gutter);height:var(--top);
  background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}
.top-spacer{flex:1}
/* the search, beside the brand's name: a real magnifier, larger than the other icons */
.search-btn{width:42px;height:42px;color:var(--ink)}
.search-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.search-btn:hover{background:var(--surface-2)}
.top-actions{display:flex;align-items:center;gap:.4rem}
.brand-mark{display:flex;align-items:center;gap:.55rem;color:inherit;font-weight:700;font-size:1.05rem;letter-spacing:-.01em;min-width:0}
.brand-mark b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40vw}
.brand-mark:hover{text-decoration:none}
/* a phone: five icons and the brand fit one row (the ❓ help made it five) */
@media (max-width:480px){.top{gap:.3rem}.top .icon{width:40px;height:40px;min-width:40px;min-height:40px}.top-actions{gap:0}.brand-mark{gap:.35rem}.brand-mark b{max-width:26vw}}
@media (max-width:400px){.top{padding-inline:12px}.brand-mark b{max-width:22vw}}
.mark{width:26px;height:26px;flex:none;border-radius:6px}
.side{position:sticky;top:var(--top);height:calc(100dvh - var(--top));overflow:auto;padding:1rem .8rem;border-inline-end:1px solid var(--line);background:var(--bg)}
.main{padding:1.4rem var(--gutter) 6rem;max-width:1040px;width:100%;justify-self:center;min-width:0}
.bottom{display:none}
.menu-btn{display:none}
@media (max-width:920px){
  .app{grid-template-columns:minmax(0,1fr)}   /* never wider than the phone, whatever a row holds */
  /* closed, the menu stays inside the screen, clipped away from its own edge (slid past the
     edge, a right-to-left page grew 5px wider than the phone) and out of reach of the keyboard */
  .side{position:fixed;inset-inline-start:0;top:var(--top);width:min(84vw,320px);z-index:30;box-shadow:var(--shadow-lg);
    clip-path:inset(0 100% 0 0);visibility:hidden;transition:clip-path .32s var(--ease),visibility 0s .32s}
  [dir=rtl] .side{clip-path:inset(0 0 0 100%)}
  .side.open,[dir=rtl] .side.open{clip-path:inset(0 -60px -60px -60px);visibility:visible;transition:clip-path .32s var(--ease)}
  .menu-btn{display:grid}
  /* the tab bar, as an app's (operator, 2026-10-18): frosted, a line icon a
     door and a pill that slides to the door you are in; docked to the bottom
     edge, its frost running down under the home indicator (2026-10-21: "fill
     the space between the menu and the bottom of the page") */
  .bottom{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;inset-inline:0;bottom:0;z-index:20;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;
    background:color-mix(in srgb,var(--surface) 82%,transparent);backdrop-filter:saturate(1.8) blur(22px);-webkit-backdrop-filter:saturate(1.8) blur(22px);
    border-top:1px solid color-mix(in srgb,var(--line-2) 60%,transparent);box-shadow:0 -6px 24px rgba(0,0,0,.18)}
  .bottom .ind{position:absolute;top:6px;bottom:calc(6px + env(safe-area-inset-bottom));inset-inline-start:calc(8px + var(--i,0) * (100% - 16px) / var(--n,4));width:calc((100% - 16px) / var(--n,4));
    border-radius:20px;background:var(--accent-soft);transition:inset-inline-start .5s var(--spring)}
  .bottom button{position:relative;z-index:1;display:grid;justify-items:center;gap:3px;border:0;background:none;padding:8px 2px 6px;border-radius:20px;
    font-size:.68rem;font-weight:500;letter-spacing:.01em;color:var(--muted);transition:color .25s;-webkit-tap-highlight-color:transparent}
  .bottom button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .4s var(--spring)}
  .bottom button.on{color:var(--accent);font-weight:700}
  .bottom button.on svg{transform:translateY(-1px) scale(1.08);stroke-width:2.1}
  .bottom button:active svg{transform:scale(.86)}
  .main{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
  .pill.status span:not(.dot){display:none}.pill.status{padding:.3rem .45rem}
}

/* --- side nav ------------------------------------------------------------- */
.side .grp{margin:.2rem 0 .9rem}
.side .grp-title{display:flex;align-items:center;gap:.5rem;padding:.55rem .7rem;border-radius:12px;font-weight:650;cursor:pointer;user-select:none;transition:background .2s}
.side .grp-title:hover{background:var(--surface-2)}
.side .grp-title .em{width:1.4rem;text-align:center}
/* "›" is a mirrored character: inside right-to-left text the browser already
   draws it as "‹", and the turns below then pointed it the wrong way (closed:
   right, open: up). Kept left-to-right here, so a chevron is what its rule
   says in every language (operator, 2026-09-30). */
.chev{display:inline-block;direction:ltr;unicode-bidi:isolate}
.side .grp-title .chev{margin-inline-start:auto;transition:transform .3s var(--ease);opacity:.5}
.side .grp.open .grp-title .chev{transform:rotate(90deg)}
[dir=rtl] .side .grp-title .chev{transform:rotate(180deg)}[dir=rtl] .side .grp.open .grp-title .chev{transform:rotate(90deg)}
.side .items{display:grid;gap:2px;padding-inline-start:.6rem;max-height:0;overflow:hidden;transition:max-height .35s var(--ease)}
.side .grp.open .items{max-height:600px}
.side .item{position:relative;display:flex;align-items:center;gap:.5rem;border:0;background:none;text-align:start;padding:.45rem .7rem .45rem 1rem;border-radius:10px;cursor:pointer;color:var(--muted);transition:color .2s,background .2s}
[dir=rtl] .side .item{padding:.45rem 1rem .45rem .7rem}
.side .item:hover{background:var(--surface-2);color:var(--ink)}
.side .item.on{color:var(--ink);background:var(--accent-soft)}
.side .item::before{content:"";position:absolute;inset-inline-start:.2rem;top:50%;width:3px;height:0;border-radius:3px;background:var(--accent);transform:translateY(-50%);transition:height .3s var(--spring)}
.side .item.on::before{height:60%}
.side .foot{margin-top:1.2rem;padding:.6rem .7rem;font-size:.8rem;color:var(--muted)}

/* --- header pieces ------------------------------------------------------------ */
.icon{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:12px;background:transparent;cursor:pointer;transition:background .2s,transform .2s var(--spring)}
.icon:hover{background:var(--surface-2)}.icon:active{transform:scale(.92)}
.icon.line svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.icon.line{color:var(--ink-2)}.icon.line:hover{color:var(--ink)}
:is(#helpBtn,.sheet-help)[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
/* the theme button offers the other theme: a moon while light, a sun while dark */
.theme-sun{display:none}
:root[data-theme=dark] .theme-sun{display:block}:root[data-theme=dark] .theme-moon{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .theme-sun{display:block}:root:not([data-theme=light]) .theme-moon{display:none}}
.menu-btn span,.menu-btn span::before,.menu-btn span::after{display:block;width:18px;height:2px;background:var(--ink);border-radius:2px;position:relative;transition:transform .3s var(--ease)}
.menu-btn span::before,.menu-btn span::after{content:"";position:absolute;inset-inline-start:0}
.menu-btn span::before{top:-6px}.menu-btn span::after{top:6px}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-weight:700;font-size:.85rem;overflow:hidden;flex:none}
.avatar img{width:100%;height:100%;object-fit:cover}
.pill{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .7rem;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:.85rem;cursor:pointer;transition:border-color .2s,background .2s,transform .2s var(--spring)}
.pill:hover{border-color:var(--line-2);background:var(--surface-2)}.pill:active{transform:scale(.96)}
.pill.on{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.pill .dot{width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft)}
.pill.paused .dot{background:var(--warn);box-shadow:0 0 0 3px var(--warn-soft)}
.dd{position:relative}
.dd-menu{position:absolute;inset-inline-end:0;top:calc(100% + 6px);min-width:220px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);padding:.4rem;z-index:40;
  transform-origin:top;animation:pop .22s var(--spring)}
.dd-menu button,.dd-menu a{display:flex;width:100%;align-items:center;gap:.6rem;border:0;background:none;padding:.55rem .7rem;border-radius:10px;cursor:pointer;text-align:start;color:inherit}
.dd-menu button:hover,.dd-menu a:hover{background:var(--surface-2);text-decoration:none}
.dd-menu hr{border:0;border-top:1px solid var(--line);margin:.3rem 0}

/* --- cards & content ----------------------------------------------------------- */
.hero{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:.8rem;margin:0 0 1.2rem}
.hero .sub{color:var(--muted);margin-top:.15rem}
fieldset.sub{border:0;border-top:1px solid var(--line);border-radius:0;padding:.9rem 0 0;margin:1rem 0 0;min-width:0}
fieldset.sub h3{margin:0 0 .2rem}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem 1.2rem;margin:.8rem 0;box-shadow:var(--shadow);transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .2s}
.card.hover:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:var(--line-2)}
.card h3{display:flex;align-items:center;gap:.5rem;margin-bottom:.6rem}
.card h3 .count{font-weight:500;color:var(--muted);font-size:.85rem}
.card.note{background:var(--warn-soft);border-color:transparent}
.card.soft{background:var(--surface-2);border-color:transparent;box-shadow:none}
.grid{display:grid;gap:.8rem;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.grid2{display:grid;gap:.8rem;grid-template-columns:1fr 1fr}
@media (max-width:640px){.grid2{grid-template-columns:1fr}}
.row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.row.end{justify-content:flex-end}.row.between{justify-content:space-between}
/* a field in a row of buttons takes the whole line on a phone: its hint is never cut ("@usernam") */
@media (max-width:480px){.row>input.grow,.row>input.minw{flex-basis:100%}}
.stack{display:grid;gap:.5rem}
.list .li{display:flex;gap:.8rem;align-items:center;padding:.7rem 0;border-top:1px solid var(--line);cursor:pointer;transition:background .15s;margin:0 -.5rem;padding-inline:.5rem;border-radius:10px}
.list .li:first-child{border-top:0}
.list .li:hover{background:var(--surface-2)}
.list .li .th{width:56px;height:56px;border-radius:12px;object-fit:cover;background:var(--surface-2);flex:none;display:grid;place-items:center;font-size:1.4rem}
.list .li .body{flex:1;min-width:0}
.list .li .t{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list .li .s{color:var(--muted);font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list .li .chev{opacity:.4}
/* a connection's lines say which account, until when, what is tagged: they wrap, never "…" */
[data-list=platforms] .li{flex-wrap:wrap;align-items:center}
[data-list=platforms] .li .t,[data-list=platforms] .li .s{white-space:normal;overflow:visible}
/* what follows the name -- the tags line, the buttons -- each a full line under it, in line with the name */
[data-list=platforms] .li>:not(.th):not(.body){flex-basis:100%;margin-inline-start:calc(56px + .8rem);margin-top:0}
[data-list=platforms] .li>.acts{margin-top:.45rem}
[dir=rtl] .list .li .chev{transform:scaleX(-1)}
.chip{display:inline-flex;align-items:center;gap:.3rem;border:1px solid var(--line-2);border-radius:999px;padding:.25rem .75rem;margin:.15rem;cursor:pointer;background:var(--surface);font-size:.9rem;user-select:none;transition:background .2s,border-color .2s,color .2s,transform .15s var(--spring)}
.chip:hover{border-color:var(--accent)}.chip:active{transform:scale(.95)}
.chip.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.chip.static{cursor:default}
.tag{display:inline-flex;align-items:center;gap:.3rem;font-size:var(--fs-xs);font-weight:var(--w-medium);padding:.15rem .55rem;border-radius:var(--r-pill);background:var(--surface-2);color:var(--ink-2)}
.tag.ok{background:var(--ok-soft);color:var(--ok-ink)}.tag.bad{background:var(--bad-soft);color:var(--bad-ink)}.tag.warn{background:var(--warn-soft);color:var(--warn-ink)}.tag.acc{background:var(--accent-soft);color:var(--accent-soft-ink)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;font-weight:600;min-height:2.5rem;padding:.5rem 1rem;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface);cursor:pointer;line-height:1.3;
  transition:transform .15s var(--spring),background .2s,border-color .2s,box-shadow .2s,opacity .2s;white-space:nowrap}
.btn:hover{background:var(--surface-2);text-decoration:none}.btn:active{transform:scale(.96)}
.btn.p{background:var(--accent);color:var(--accent-ink);border-color:transparent;box-shadow:var(--e1)}
.btn.p:hover{background:var(--accent-hover)}
.btn.d{color:var(--bad-ink)}.btn.d:hover{background:var(--bad-soft)}
/* the quiet button (Cancel, Back, a second choice): filled and outlined, so it reads as a
   button on any ground -- see-through, a sheet's Cancel was faint words (operator, 2026-11-23) */
.btn.ghost{background:var(--surface-2);border-color:var(--edge)}
.btn.ghost:hover{background:var(--surface-2);border-color:var(--accent)}
/* a screen's 📖 Manual stays a link beside its title */
.hero a.btn.ghost{background:none;border-color:transparent}
/* tonal: what makes something new -- seen first, without competing with the one filled button */
.btn.t{background:var(--accent-soft);color:var(--accent-soft-ink);border-color:transparent}.btn.t:hover{background:var(--accent-soft-2)}
.btn.sm{min-height:2.125rem;padding:.3rem .7rem;font-size:var(--fs-sm)}
.btn[disabled]{opacity:.45;cursor:not-allowed;transform:none}
.btn.busy{position:relative;color:transparent!important;pointer-events:none}
.btn.busy>.busy-hide{visibility:hidden;display:inline-flex;align-items:center;gap:inherit}
.btn.busy::after{content:"";position:absolute;width:16px;height:16px;border:2px solid currentColor;border-color:var(--muted) transparent var(--muted) transparent;border-radius:50%;animation:spin .7s linear infinite}
.btn.p.busy::after{border-color:var(--accent-ink) transparent var(--accent-ink) transparent}
.switch{position:relative;display:inline-flex;align-items:center;gap:.6rem;cursor:pointer;user-select:none}
.switch i{width:40px;height:24px;border-radius:999px;background:var(--line-2);position:relative;transition:background .25s;flex:none}
.switch i::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .3s var(--spring)}
.switch.on i{background:var(--accent)}
.switch.on i::after{transform:translateX(16px)}
[dir=rtl] .switch.on i::after{transform:translateX(-16px)}
.kv{display:grid;grid-template-columns:auto 1fr;gap:.3rem 1rem;align-items:baseline}
.kv b{font-weight:600}
.empty{padding:2rem 1rem;text-align:center;color:var(--muted)}
.empty .em{font-size:2rem;display:block;margin-bottom:.4rem}
.meter{height:6px;border-radius:6px;background:var(--surface-2);overflow:hidden}
.meter i{display:block;height:100%;background:var(--accent);border-radius:6px;transition:width .6s var(--ease)}
.meter.full i{background:var(--bad)}
.drop{border:1.5px dashed var(--line-2);border-radius:var(--radius-sm);padding:1rem;text-align:center;color:var(--muted);cursor:pointer;transition:border-color .2s,background .2s;position:relative}
.drop.over,.drop:hover{border-color:var(--accent);background:var(--accent-soft)}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.drop img,.drop video{max-height:180px;border-radius:10px;display:block;margin:0 auto .5rem}
.prog{position:absolute;inset-inline:0;bottom:0;height:4px;background:var(--accent);transform-origin:left;transform:scaleX(0);transition:transform .2s}
[dir=rtl] .prog{transform-origin:right}
.working .prog{animation:pulse 1.2s ease-in-out infinite}
pre.post{white-space:pre-wrap;font:inherit;margin:0}
.draft{display:grid;grid-template-columns:96px 1fr;gap:1rem}
.draft .pic{width:96px;height:96px;border-radius:12px;object-fit:cover;background:var(--surface-2)}
.draft .pics{display:grid;gap:.3rem}
.draft .pics .pic{height:46px}
/* the workshop's ▶ Draft today's posts, a line of its own: a step away from the switches under it */
.ws .ws-first{margin-bottom:.6rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.5rem}
.ws .ws-first .btn{min-height:var(--tap)}
.ws .ws-first:has([data-wsgo="today/picks"]){grid-template-columns:minmax(0,1fr) auto}.ws .ws-first .btn{white-space:normal;text-align:center}
.ws .tools{border-top:1px solid var(--line);padding-top:.6rem;margin-top:.2rem;gap:.25rem}
/* the day's facts: short counts, each its own */
.facts{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 .85rem}
.fact{display:inline-flex;align-items:center;gap:.3rem;padding:.25rem .65rem;border-radius:var(--r-pill);background:var(--surface-2);color:var(--ink-2);font-size:var(--fs-sm);max-width:100%}
/* a draft's quieter buttons, under its main ones; 🗑 at the row's end */
.draft .acts.quiet{margin-top:.4rem;padding-top:.45rem;border-top:1px dashed var(--line);gap:.2rem}
.draft .acts.quiet .btn{font-weight:500;color:var(--ink-2)}.draft .acts.quiet .btn.d{color:var(--bad-ink)}
.acts .btn.end{margin-inline-start:auto;border-color:transparent;background:transparent}.acts .btn.end:hover{background:var(--bad-soft)}
/* 🎞 Media and every other sheet: the post's pictures as tiles, a thumbnail
   beside its label -- the card's own sizes are .draft-only, and in a sheet a
   picture fell back to its full size */
.sheet .pics{display:flex;flex-wrap:wrap;gap:.5rem;margin:.4rem 0 .8rem}
.sheet .pics .pic{width:150px;height:150px;object-fit:cover;border-radius:12px;background:var(--surface-2)}
.sheet .th:not(.framed){width:44px;height:44px;object-fit:cover;border-radius:8px;vertical-align:middle;flex:none}
.sheet .btn .th:not(.framed){width:32px;height:32px}
.sheet .btn:has(.th){display:inline-flex;align-items:center;gap:.4rem}
@media (max-width:520px){.draft{grid-template-columns:1fr}.draft .pic{width:100%;height:180px}}
.draft .text{max-height:9.5rem;overflow:hidden;position:relative;line-height:1.6}
.draft .text.open{max-height:none}
.draft .text:not(.open)::after{content:"";position:absolute;inset-inline:0;bottom:0;height:3rem;background:linear-gradient(transparent,var(--surface))}
.draft .acts{margin-top:.7rem}
.pulse{animation:pulse 1.6s ease-in-out infinite}
.stat{display:grid;gap:.15rem}.stat b{font-size:1.5rem;font-weight:700;letter-spacing:-.02em}.stat span{color:var(--muted);font-size:.82rem}
.ol{padding-inline-start:1.2rem;margin:.3rem 0}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.86rem}
.tt{position:relative}
.tt[data-tt]:hover::after{content:attr(data-tt);position:absolute;inset-inline-start:0;top:calc(100% + 6px);background:var(--ink);color:var(--bg);font-size:.78rem;padding:.3rem .55rem;border-radius:8px;white-space:nowrap;z-index:5;animation:pop .2s var(--spring)}

.grow{flex:1}.minw{min-width:8rem}.w5{width:5rem}.wa{width:auto}.mt{margin-top:.8rem}.mb{margin:.3rem 0}.of{font-size:1rem}
.list .li.static{cursor:default}.list .li.static:hover{background:transparent}
.dd-head{padding:.3rem .7rem}
fieldset.card{border:1px solid var(--line);min-width:0}fieldset[disabled]{opacity:.7}

.strip{display:flex;flex-wrap:wrap;gap:.5rem}
.pic-t{position:relative;margin:0;width:88px;height:88px;border-radius:12px;overflow:hidden;background:var(--surface-2);border:1px solid var(--line)}
button.pic-t{padding:0;cursor:pointer;font:inherit;color:inherit;transition:transform .15s var(--spring)}button.pic-t:active{transform:scale(.96)}
.pic-t.sel{outline:3px solid var(--accent);outline-offset:2px}
.pic-b.set{inset-block-end:4px;inset-inline-end:4px}
/* one picture open (picPane): every control large enough to touch; ‹ › drawn as written (ltr), since browsers differ on mirroring them in a right-to-left page */
.ppane .fview{margin-inline:auto}
.pphead b{text-align:center}
.ppane .pphead .btn{direction:ltr;unicode-bidi:isolate;font-size:1.9rem;font-weight:700;line-height:1;min-width:52px;min-height:48px;padding:0 .6rem;justify-content:center}
.pptools{display:flex;flex-wrap:wrap;gap:.4rem;margin:.7rem 0 .2rem}.pptools .chip{margin:0;min-height:40px}
.ppane .btn{min-height:40px}
.ppacts{display:grid;grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));gap:.4rem}.ppacts .btn{justify-content:center}
.ppend{border-top:1px solid var(--line);padding-top:.7rem}
.pic-t.cover{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.pic-t img{width:100%;height:100%;object-fit:cover;display:block}
.th.framed{position:relative;overflow:hidden;display:block}
.pic.framed{position:relative;overflow:hidden;display:block}
.pic.framed.sq{aspect-ratio:1/1;max-width:420px}
.pic-b{position:absolute;pointer-events:none;border:0;border-radius:8px;font-size:.75rem;line-height:1;padding:.2rem .35rem;background:rgba(10,8,20,.62);color:#fff;backdrop-filter:blur(4px)}
.pic-b.tagc{inset-block-end:4px;inset-inline-start:4px;background:var(--accent);color:var(--accent-ink);cursor:default}
.aview{width:min(100%,420px);border-radius:10px;overflow:hidden;background:#111;display:grid;place-items:center}
.aview canvas{display:block;max-width:100%;max-height:420px;height:auto}
.aview video{display:block;width:auto;height:auto;max-width:100%;max-height:min(420px,60vh)}
.ppane .aview{margin-inline:auto}
.adj .small:first-child{min-width:7.5em}
.adjv{min-width:3.2em;text-align:end;font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}
.fview canvas.fcv{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0}
.pic-t video{width:100%;height:100%;object-fit:cover;display:block}
.pic-b.vtag{inset-block-start:4px;left:50%;transform:translateX(-50%);cursor:default}
.fview{position:relative;width:min(100%,420px);aspect-ratio:1/1;overflow:hidden;border-radius:10px;touch-action:none;cursor:grab;background:#111}
.fview:active{cursor:grabbing}
.fview img{position:absolute;left:0;top:0;max-width:none;user-select:none;-webkit-user-drag:none;transform-origin:0 0}
.pic-t.add{display:grid;place-items:center;align-content:center;gap:2px;border-style:dashed;cursor:pointer;color:var(--muted);font-size:1.6rem}.pic-t.add small{font-size:.8rem;line-height:1;opacity:.85}
.pic-t.add:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.pic-t.add input{position:absolute;inset:0;opacity:0;cursor:pointer}

/* --- sheet (editor) --------------------------------------------------------------- */
.sheet{position:fixed;inset:0;z-index:50;display:grid;place-items:end center;background:rgba(10,8,20,.42);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:fade .25s var(--ease)}
.sheet[hidden]{display:none}
.sheet.closing{animation:fade .2s var(--ease) reverse forwards}
.sheet-card{width:min(100%,640px);max-height:92dvh;overflow:auto;background:var(--surface);border-radius:22px 22px 0 0;padding:1.2rem 1.3rem calc(1.4rem + env(safe-area-inset-bottom));box-shadow:var(--shadow-lg);
  animation:rise .38s var(--spring)}
.sheet.closing .sheet-card{animation:drop .2s var(--ease) forwards}
@media (min-width:720px){.sheet{place-items:center}.sheet-card{border-radius:22px;animation:pop .3s var(--spring)}}
.sheet-card h2{margin-bottom:.4rem}
.sheet .grab{width:40px;height:4px;border-radius:4px;background:var(--line-2);margin:0 auto .8rem}
@media (min-width:720px){.sheet .grab{display:none}}
.sheet .foot{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end;margin-top:1.1rem;position:sticky;bottom:-1.4rem;background:var(--surface);padding:.8rem 0 .2rem}
/* a yes/no: the answer full width on a phone, red and solid when it deletes */
.btn.d.solid{background:var(--bad);color:var(--on-bad);border-color:transparent}.btn.d.solid:hover{filter:brightness(1.08);background:var(--bad)}
@media (max-width:640px){.sheet .foot.confirm{flex-direction:column-reverse}.sheet .foot.confirm .btn{width:100%;min-height:var(--tap)}}
/* a list's count, beside its title */
.hero h1 .count{display:inline-grid;place-items:center;min-width:1.7em;height:1.7em;padding:0 .45em;margin-inline-start:.35rem;border-radius:var(--r-pill);
  background:var(--surface-2);color:var(--ink-2);font-size:var(--fs-sm);font-weight:var(--w-strong);vertical-align:.25em}

/* --- toast, palette, skeleton --------------------------------------------------- */
.toast{position:fixed;bottom:calc(1.2rem + env(safe-area-inset-bottom));inset-inline-start:50%;transform:translate(-50%,20px);background:var(--ink);color:var(--bg);padding:.6rem 1rem;border-radius:12px;opacity:0;pointer-events:none;
  transition:opacity .25s,transform .35s var(--spring);z-index:60;max-width:min(92vw,480px);box-shadow:var(--shadow-lg);font-size:.92rem}
[dir=rtl] .toast{transform:translate(50%,20px)}
.toast.on{opacity:1;transform:translate(-50%,0)}[dir=rtl] .toast.on{transform:translate(50%,0)}
.toast.bad{box-shadow:inset 4px 0 0 var(--bad),var(--e3)}.toast.ok{box-shadow:inset 4px 0 0 var(--ok),var(--e3)}
[dir=rtl] .toast.bad{box-shadow:inset -4px 0 0 var(--bad),var(--e3)}[dir=rtl] .toast.ok{box-shadow:inset -4px 0 0 var(--ok),var(--e3)}
@media (max-width:920px){.toast{bottom:calc(5.2rem + env(safe-area-inset-bottom))}}
.palette{position:fixed;inset:0;z-index:55;display:grid;place-items:start center;padding-top:12vh;background:rgba(10,8,20,.42);backdrop-filter:blur(6px);animation:fade .2s var(--ease)}
.palette[hidden]{display:none}
.palette .box{width:min(92vw,560px);background:var(--surface);border-radius:18px;box-shadow:var(--shadow-lg);overflow:hidden;animation:pop .25s var(--spring)}
.palette input{border:0;border-radius:0;border-bottom:1px solid var(--line);padding:.9rem 1.1rem;font-size:1.05rem;box-shadow:none!important;height:auto}
.palette .res{max-height:50vh;overflow:auto;padding:.4rem}
.palette .res button{display:flex;width:100%;gap:.6rem;align-items:center;border:0;background:none;padding:.6rem .8rem;border-radius:10px;cursor:pointer;text-align:start;color:inherit}
.palette .res button:hover,.palette .res button.sel{background:var(--accent-soft)}
.palette .res .k{margin-inline-start:auto;color:var(--muted);font-size:.8rem}
.skeleton{display:grid;gap:.8rem}
.sk-line,.sk-card{border-radius:12px;background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface) 50%,var(--surface-2) 75%);background-size:200% 100%;animation:shimmer 1.4s linear infinite}
.sk-line{height:28px;width:40%}.sk-card{height:120px}
/* a screen's data on its way (app.js waitBody): the card's shape in shimmer */
.card.wait{display:grid;gap:.7rem}.card.wait .sk-line{height:14px;width:100%}.card.wait .sk-line.short{width:62%}
.card.note.bad{background:var(--bad-soft);color:var(--bad-ink)}.card.note.bad p{margin:0 0 .6rem}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* --- login ----------------------------------------------------------------------- */
.page-login{display:grid;place-items:center;min-height:100dvh;overflow:hidden}
.login{position:relative;width:100%;min-height:100dvh;display:grid;place-items:center;padding:1rem;overflow:hidden}
.login-card{position:relative;z-index:1;width:min(92vw,420px);background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border:1px solid var(--line);border-radius:24px;padding:2rem 1.8rem;box-shadow:var(--shadow-lg);text-align:center;animation:rise .6s var(--spring)}
.login-card .mark{width:44px;height:44px;margin-bottom:.8rem}
.login-card h1{font-size:1.5rem}
.login-card .lead{color:var(--muted);margin:.5rem 0 1.4rem}
.login-card .flash{background:var(--warn-soft);color:var(--warn);border-radius:10px;padding:.5rem .7rem}
.btn.big{width:100%;padding:.8rem 1rem;font-size:1.02rem;justify-content:center}
.login-card .btn.big{margin-top:.2rem}
.email-login{display:flex;gap:.5rem;margin-top:.6rem}#otherLogin .btn.big{width:100%}.email-login input{flex:1;min-width:0}
.or{display:flex;align-items:center;gap:.7rem;margin:1.1rem 0 .3rem;color:var(--muted);font-size:.84rem}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.orbs{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.orbs i{position:absolute;border-radius:50%;filter:blur(60px);opacity:.55;animation:drift 14s ease-in-out infinite alternate}
.orbs i:nth-child(1){width:46vmax;height:46vmax;background:var(--accent-soft-2);top:-20vmax;inset-inline-start:-10vmax}
.orbs i:nth-child(2){width:38vmax;height:38vmax;background:#c7d2fe;bottom:-16vmax;inset-inline-end:-8vmax;animation-delay:-5s}
.orbs i:nth-child(3){width:28vmax;height:28vmax;background:#fbcfe8;bottom:10vmax;inset-inline-start:30vmax;animation-delay:-9s}
:root[data-theme=dark] .orbs i:nth-child(2){background:#312e81}:root[data-theme=dark] .orbs i:nth-child(3){background:#4a1d4a}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .orbs i:nth-child(2){background:#312e81}:root:not([data-theme=light]) .orbs i:nth-child(3){background:#4a1d4a}}

/* --- motion ----------------------------------------------------------------------- */
.reveal{animation:rise .5s var(--ease) both;animation-delay:calc(var(--i,0)*45ms)}
.screen{animation:fade .3s var(--ease)}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes drop{to{opacity:0;transform:translateY(20px)}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes pop{from{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes shimmer{to{background-position:-200% 0}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.45}}
@keyframes drift{to{transform:translate(8vmax,6vmax) scale(1.08)}}
::view-transition-old(root){animation:fade .18s var(--ease) reverse}
::view-transition-new(root){animation:rise .28s var(--ease)}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
.gridwrap{overflow-x:auto;margin:.6rem -.2rem;-webkit-overflow-scrolling:touch}
table.igrid{width:100%;border-collapse:collapse;font-size:.9rem}
table.igrid th{text-align:start;font-weight:600;color:var(--muted);padding:.4rem;border-bottom:1px solid var(--line);white-space:nowrap}
table.igrid td{padding:.35rem .4rem;border-bottom:1px solid var(--line);vertical-align:top}
table.igrid tr:not(.on) td{opacity:.62}table.igrid tr:not(.on) td:first-child{opacity:1}
table.igrid input[type=checkbox]{width:1.35rem;height:1.35rem;margin:.55rem .2rem 0;cursor:pointer}table.igrid input[type=checkbox]:disabled{cursor:default}
table.igrid th:first-child,table.igrid td:first-child{width:2.2rem;text-align:center}table.igrid th input[type=checkbox]{margin:0 .2rem}
table.igrid input:not([type=checkbox]){min-width:9rem;padding:.3rem .45rem;font-size:.88rem}
table.igrid input.num{min-width:4rem;width:4.5rem}
table.igrid .gth{width:44px;height:44px;border-radius:8px;object-fit:cover;background:var(--surface-2);display:grid;place-items:center}
table.igrid .what{min-width:12rem;font-size:.84rem}
table.igrid .gpic{position:relative;width:52px}
table.igrid .gvid{position:absolute;bottom:.2rem;inset-inline-end:.1rem;font-size:.8rem;background:var(--surface);border-radius:6px;padding:0 .15rem}
.chip .cnt{display:inline-block;min-width:1.4em;margin-inline-start:.35rem;padding:0 .4em;border-radius:999px;background:var(--surface-2);font-size:.8em;text-align:center}
.chip.on .cnt{background:rgba(255,255,255,.25)}
.gsel{text-align:center;margin:.5rem 0;padding:.45rem .6rem;border-radius:10px;background:var(--accent-soft)}
.gpager{align-items:center;gap:.4rem}
/* a list's search box and its choices (app.js FINDS) */
.findbar{margin:0 0 .6rem}.findbar select{max-width:14rem}
.findfoot{text-align:center;margin:.5rem 0}
@media (max-width:600px){.findbar input[type=search]{flex-basis:100%}}
.list .li > .tickgap{width:1.35rem;flex:none}
.list .li > input[type=checkbox]{width:1.35rem;height:1.35rem;flex:none;cursor:pointer}
/* a sheet's choices, a row each: the box as large as a list's, its name beside it (📜 Send again) */
.picks{display:grid;gap:.15rem;margin:.6rem 0}
.pickrow{display:flex;align-items:center;gap:.7rem;margin:0;padding:.6rem .5rem;border-radius:var(--radius-sm);cursor:pointer;color:var(--ink);font-size:1rem}
.pickrow:hover{background:var(--surface-2)}
.pickrow input[type=checkbox]{width:1.35rem;height:1.35rem;flex:none;margin:0;cursor:pointer}
.pickrow .name{font-weight:600}.pickrow .muted{margin-inline-start:auto}
/* 📜 Published rows: the chips wrap side by side and never break inside; on a
   phone the two buttons go under the post, full width (operator, 2026-10-26) */
.list .li.pubrow{flex-wrap:wrap}
.pubrow .chips{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.35rem}.pubrow .chips .chip{margin:0;white-space:nowrap}
.list .li.pubrow .s.why{white-space:normal}
@media (max-width:640px){.pubrow .acts{flex-basis:100%}.pubrow .acts .btn{flex:1}}
.phead{flex-wrap:wrap}.phead .pbar{gap:.35rem;flex-wrap:wrap;width:100%}
.list .gpager{justify-content:center;margin-top:.6rem}
.gfoot{flex-wrap:wrap;gap:.5rem;margin-top:.6rem}
.drop.busy{opacity:.6;pointer-events:none}
/* 🎵 music: one button that picks the file (a drop box too), a player, small chips, one choice */
.drop.pick{display:flex;align-items:center;justify-content:center;gap:.4rem;border-style:solid;border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:600;padding:.75rem 1rem}
.row .drop.pick{flex:1;padding:.5rem .8rem;font-size:.9rem}
.music-play{width:100%;height:40px;margin-bottom:.5rem}
/* ✂️ the stretch of the song that plays: one bar, two handles */
.cut{display:flex;flex-direction:column;gap:.15rem;margin:-.1rem 0 .6rem}
.cut-track{position:relative;height:30px}
.cut-track::before{content:"";position:absolute;inset-inline:11px;top:13px;height:4px;border-radius:2px;background:var(--line)}
.cut-fill{position:absolute;top:13px;height:4px;border-radius:2px;background:var(--accent)}
.cut-track input{position:absolute;inset:0;width:100%;height:30px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
.cut-track input::-webkit-slider-runnable-track{background:none;height:30px}
.cut-track input::-webkit-slider-thumb{pointer-events:auto;-webkit-appearance:none;width:22px;height:22px;margin-top:4px;border-radius:50%;background:var(--surface);border:2px solid var(--accent);box-shadow:var(--shadow);cursor:grab}
.cut-track input::-moz-range-track{background:none}
.cut-track input::-moz-range-thumb{pointer-events:auto;width:18px;height:18px;border-radius:50%;background:var(--surface);border:2px solid var(--accent);cursor:grab}
.cut-t{color:var(--muted)}
.seg{display:flex;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:3px;gap:3px}
.seg button{flex:1;border:0;background:none;border-radius:9px;padding:.45rem .3rem;font:inherit;font-size:.85rem;color:var(--muted);cursor:pointer}
.seg button.on{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.18)}

/* help mode (app.js HELP): everything that can be explained is marked, and a
   click shows its note in a pop-up beside it -- a card along the bottom on a phone */
.helpmode :is(#main,.sheet,#side,#bottomNav,.top) :is(button,a,.chip,.li,.item,label.switch,input,select,textarea,.pic-t,.drop){cursor:help;outline:1.5px dashed var(--accent);outline-offset:2px}
.helpmode :is(#helpBtn,[data-hm-toggle]){background:var(--accent);color:var(--accent-ink)}
.sheet-card{position:relative}
.sheet-help{position:absolute;top:.7rem;inset-inline-end:.8rem}
.help-bar{position:fixed;top:6px;inset-inline:0;margin:0 auto;min-height:44px;width:max-content;max-width:calc(100% - 32px);z-index:60;display:flex;align-items:center;gap:.7rem;
  padding:.35rem .5rem;padding-inline-start:1rem;border-radius:14px;background:var(--accent);color:var(--accent-ink);box-shadow:var(--shadow-lg);font-size:.9rem;animation:rise .25s var(--ease)}
.help-pop{position:fixed;z-index:70;width:min(380px,calc(100vw - 24px));max-height:70dvh;overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--line-2);
  border-radius:16px;padding:.9rem 1rem;box-shadow:var(--shadow-lg);animation:pop .18s var(--ease)}
.help-pop[hidden]{display:none}
.help-pop .hp-name{display:block;margin-bottom:.25rem}
.help-pop p{margin:.3rem 0}
.help-pop .row{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin-top:.6rem}
.help-pop .hp-more{border-top:1px solid var(--line);margin-top:.5rem;padding-top:.4rem;font-size:.92rem}
.help-pop .hp-more ul,.help-pop .hp-more ol{padding-inline-start:1.2rem;margin:.3rem 0}
.help-pop .hp-more .btn{display:inline-block;padding:0 .4rem;border-radius:6px;background:var(--surface-2);border:1px solid var(--line);font-size:.88em;white-space:nowrap}
/* the Instagram export, step by step, on the import page: the manual's own text (instagram_export.steps) */
.steps{margin:.6rem 0;border:1px solid var(--line);border-radius:10px;padding:.5rem .8rem}
.steps summary{cursor:pointer;font-weight:600}
.steps .help-body{font-size:.94rem;margin-top:.4rem}
.steps .help-body ul,.steps .help-body ol{padding-inline-start:1.2rem;margin:.3rem 0}
.steps .help-body li{margin:.15rem 0}
.steps .help-body .btn{display:inline-block;padding:0 .4rem;border-radius:6px;background:var(--surface-2);border:1px solid var(--line);font-size:.88em;white-space:nowrap}
.help-bar .btn{background:var(--surface);color:var(--ink);border-color:transparent}
.help-bar .hb-short{display:none}
@media (max-width:640px){.help-bar .hb-long{display:none}.help-bar .hb-short{display:inline}}
@media (max-width:639px){.help-pop{left:12px!important;right:12px;top:auto!important;bottom:calc(12px + env(safe-area-inset-bottom));width:auto}}

.prev{margin:.75rem 0;min-height:4rem;display:grid;place-items:center}
/* a sample that has not come (or will not: no logo yet) holds no empty band open */
.prev:empty{min-height:0;margin:0}
.prev img{max-width:min(100%,360px);border-radius:12px;display:block}
.prev.sm{margin:.5rem 0 1rem;justify-items:start}.prev.sm img{max-width:min(100%,200px)}
.samples{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.75rem;margin:.75rem 0}
.samples figure{margin:0;display:flex;flex-direction:column;gap:.4rem}
.samples img{width:100%;border-radius:10px;display:block}

/* a press at work with no button of its own: a thin bar along the top (app.js press) */
body.working::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%;
  background-repeat: no-repeat; animation: workbar 1.1s linear infinite; }
@keyframes workbar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { body.working::before { animation: none; background: var(--accent); opacity: .6; } }

/* 💳 the brand's subscription beside its publishing status (app.js renderTop) */
.pill.tier { cursor: pointer; background: var(--accent-soft); color: var(--ink); }
@media (max-width: 560px) { .pill.tier { display: none; } }   /* the phone's bar is full: Account shows it */

/* a toast longer than a few words stays until it is closed (app.js toast) */
.toast.stays{pointer-events:auto;cursor:pointer;display:flex;align-items:flex-start;gap:.6rem;max-width:min(560px,calc(100vw - 32px))}
.toast.stays .x{background:none;border:0;color:inherit;font-size:1rem;line-height:1;padding:.1rem .2rem;cursor:pointer;opacity:.8}
.toast.stays .x:hover{opacity:1}
.toast:not(.on){pointer-events:none}

/* ⏸ paused: one line and ▶ Resume; the rest under ⓘ */
.pause-bar{padding:.6rem .9rem}.pause-bar .row{flex-wrap:nowrap;align-items:center;gap:.5rem}
.pause-bar .grow{font-weight:600;font-size:.93rem;line-height:1.45}.pause-bar .pause-more{margin:.5rem 0 0;color:var(--muted)}
.pause-bar .icon.sm{width:32px;height:32px;flex:none}
/* 📲 the install offer: a card that rises above the tab bar */
.install-card{position:fixed;z-index:40;inset-inline:12px;bottom:calc(84px + env(safe-area-inset-bottom));display:flex;gap:.8rem;align-items:flex-start;padding:.9rem 1rem;border-radius:20px;
  background:var(--surface);border:1px solid var(--line-2);box-shadow:var(--shadow-lg);transform:translateY(24px);opacity:0;transition:transform .45s var(--spring),opacity .3s}
.install-card.on{transform:none;opacity:1}
@media (max-width:920px){body.has-install .main{padding-bottom:calc(260px + env(safe-area-inset-bottom))}}
.install-card img{width:48px;height:48px;border-radius:12px;flex:none}
.install-card p{margin:.2rem 0 .6rem}
@media (min-width:921px){.install-card{inset-inline:auto 24px;bottom:24px;width:380px}}
/* opened from the home screen: the status bar sits over the page's top */
@media (display-mode:standalone){:root{--top:calc(56px + env(safe-area-inset-top))}.top{padding-top:env(safe-area-inset-top)}}
/* 💳 the plans: each its own tile, a step apart (operator, 2026-10-18: "too compact") */
.plans{display:grid;gap:.7rem;margin-top:.8rem}
.plans .li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem .9rem;padding:.85rem 1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.plans .li.cur{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent-soft)}
.plans .li .body{flex:1 1 220px;min-width:0}.plans .li details{margin-top:.35rem}
/* 🗂 My music: a song's name typed in place, its player beside */
.song-name{width:100%;margin-bottom:.35rem}.li .body audio{width:100%;height:34px}
#musPick,#mdSong{width:100%;margin-bottom:.5rem}

/* 😀 a story's sticker editor (web/static/marks.js): the story on the left,
   its tools beside it; one column on a phone, the story first */
.page-marks{min-height:100dvh}
.mk{max-width:980px;margin:0 auto;padding:0 var(--gutter) 2rem}
.mk-top{display:flex;align-items:center;gap:.6rem;height:var(--top)}
.mk-top .mark{width:26px;height:26px}
.mk-title{font-size:1.05rem}
.mk-lead{margin:.2rem 0 .8rem}
.mk-frames{margin:.4rem 0 .8rem}
.mk-work{display:grid;grid-template-columns:minmax(0,auto) minmax(260px,1fr);gap:1.2rem;align-items:start}
@media (max-width:760px){.mk-work{grid-template-columns:1fr;gap:.6rem}.mk-lead{font-size:.86rem;margin-bottom:.5rem}
  .mk-stage{width:min(100%,calc(56dvh * 9 / 16))!important}.mk-top{height:46px}}
/* a definite width, % only as a cap: the stage's grid column is sized by it (a % of that
   auto column was 0, and the editor showed no picture on a wide screen, 2026-10-22) */
.mk-stage{position:relative;width:min(calc((100dvh - 150px) * 9 / 16),420px);max-width:100%;aspect-ratio:9/16;margin-inline:auto;
  border-radius:14px;overflow:hidden;background:#111;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:var(--shadow-lg)}
.mk-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.mk-layer{position:absolute;inset:0}
.mk-making{display:flex;align-items:center;gap:.6rem;font-weight:600}
.mk-spin{flex:none;width:18px;height:18px;border:2px solid var(--accent);border-color:var(--accent) transparent var(--accent) transparent;border-radius:50%;animation:spin .8s linear infinite}
@media (prefers-reduced-motion:reduce){.mk-spin{animation-duration:2.4s}}
.mk-mark{position:absolute;white-space:nowrap;cursor:grab;line-height:1.22;font-family:"Vazirmatn",system-ui,sans-serif;font-weight:700;
  padding:.06em;border-radius:.3em;outline:2px solid transparent;outline-offset:2px}
.mk-mark.on{outline-color:rgba(255,255,255,.95);box-shadow:0 0 0 4px rgba(124,58,237,.65)}
.mk-mark.emoji{line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.mk-words{text-align:center}
.mk-words:not(.box){-webkit-text-stroke:calc(1em / 16) var(--ol,#111);paint-order:stroke fill}
.mk-words.box{padding:.22em .45em;border-radius:.42em}
.mk-panel label{display:block;margin:.5rem 0 .2rem;font-weight:600;font-size:.9rem}
.mk-panel textarea,.mk-panel input:not([type]){width:100%;font:inherit;font-family:"Vazirmatn",system-ui,sans-serif;padding:.55rem .7rem;border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink)}
.mk-panel input[type=range]{width:100%}
.mk-panel .row{margin-top:.7rem}
.mk-check{display:flex!important;align-items:center;gap:.4rem;font-weight:500!important}
.mk-colors{display:flex;flex-wrap:wrap;gap:.45rem;margin:.6rem 0}
.mk-color{width:32px;height:32px;border-radius:50%;border:2px solid var(--line-2);cursor:pointer;padding:0}
.mk-color.on{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft-2)}
.mk-emojis{display:grid;grid-template-columns:repeat(8,1fr);gap:.25rem}
.mk-emoji{font-size:1.6rem;line-height:1.2;background:none;border:0;border-radius:8px;cursor:pointer;padding:.15rem}
.mk-emoji:hover{background:var(--surface-2)}
.mk-stickers{display:flex;flex-wrap:wrap;gap:.5rem}
.mk-sticker{font:700 1rem/1.3 "Vazirmatn",system-ui,sans-serif;border:0;border-radius:.6em;padding:.4em .8em;cursor:pointer;box-shadow:var(--shadow)}
.mk-foot{margin:1rem 0 .5rem}
.mk-looks{display:flex;flex-wrap:wrap;gap:.5rem}
.mk-looks img{width:140px;aspect-ratio:9/16;object-fit:cover;border-radius:10px}
/* 👁 the operator's read-only look at a brand */
.op-bar{border-inline-start:4px solid var(--accent);font-size:.92rem}

/* --- a product's sheet, folded (operator, 2026-11-05: "group, compact and simplify") --- */
.mt0{margin-top:0}
.sheet .acts{margin:.1rem 0 .4rem}
.fold{border:1px solid var(--line);border-radius:var(--radius-sm);margin-top:.6rem;background:var(--surface)}
.fold>summary{display:flex;align-items:center;gap:.6rem;padding:.65rem .85rem;cursor:pointer;list-style:none;user-select:none}
.fold>summary::-webkit-details-marker{display:none}
.fold>summary b{flex:none;font-weight:600}
.grid2.name-price,.grid2.name-price:has(>.fld){align-items:start;margin-top:.7rem}
.fold>summary .fsum{unicode-bidi:isolate;flex:1;min-width:0;color:var(--muted);font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:end}
/* the arrow is drawn, not typed: "›" is a mirrored character, already "‹" in
   right-to-left text, so any turn given to it points the wrong way there (as
   .chev above). Closed: toward the line's end, as text reads; open: down. */
.fold>summary::after{content:'';flex:none;width:.42rem;height:.42rem;margin-inline:.15rem;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(-45deg);transition:transform .2s var(--ease)}
[dir=rtl] .fold>summary::after{transform:rotate(135deg)}
.fold[open]>summary::after,[dir=rtl] .fold[open]>summary::after{transform:rotate(45deg)}
.fold[open]>summary{border-bottom:1px solid var(--line)}
.fold>.fbody{padding:.2rem .85rem .85rem}
.fold>.fbody>p:first-child,.fold>.fbody>div:first-child>p:first-child{margin-top:.6rem}
.tips{margin:.35rem 0 0}.tips>summary{cursor:pointer;color:var(--muted);width:max-content}
.tips p{margin:.4rem 0 0}
/* a picture's controls show on hover where there is a mouse; a touch screen keeps them */
.preline{white-space:pre-line}
.sheet textarea[data-f=pitch],.sheet textarea[data-f=details]{resize:none;overflow:hidden}

/* --- 🧭 guided journeys (the redesign of 2026-11-08) -------------------------------------
   One question a slide, the answer chosen already, few things on the screen.
   Home: one next step and three doors. A journey: a full screen layer -- a top
   line (close, where you are), the question large, its picker, and a foot with
   ‹ Back and the one filled button. */
.j-home{max-width:34rem;margin:0 auto;display:grid;gap:var(--s5)}
.j-hello{margin:0;color:var(--ink-2);font-weight:600}
.j-h{font-size:var(--fs-2xl);margin:var(--s2) 0 0}
.j-next-card{display:grid;gap:var(--s2);justify-items:start;padding:var(--s6) var(--s5);margin:0}
.j-next-card h1{font-size:var(--fs-2xl);line-height:1.3}
.j-next-card p{margin:0}
.j-next-card .btn.big{width:auto;min-width:12rem;margin-top:var(--s3)}
.j-em{font-size:1.6rem;line-height:1}
.j-doors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s3)}
.j-door{display:grid;justify-items:center;gap:var(--s2);padding:var(--s5) var(--s2);border-radius:var(--r);border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;box-shadow:var(--e1);
  transition:transform var(--dur-1) var(--ease),border-color var(--dur-2)}
.j-door:hover{border-color:var(--accent)}.j-door:active{transform:scale(.97)}
.j-door b{font-weight:600;font-size:var(--fs-sm);text-align:center}
.j-links{display:flex;justify-content:center;gap:var(--s5);font-size:var(--fs-sm)}
.j-links a{color:var(--ink-2)}
.j-list{display:grid;gap:var(--s2)}
.j-row{display:flex;align-items:center;gap:var(--s3);width:100%;min-height:3.75rem;padding:var(--s3) var(--s4);border-radius:var(--r);border:1px solid var(--line);background:var(--surface);
  color:var(--ink);font:inherit;text-align:start;cursor:pointer;transition:border-color var(--dur-2),background var(--dur-2)}
.j-row:hover{border-color:var(--accent)}.j-row[disabled]{opacity:.5;cursor:not-allowed}
.j-row.sm{min-height:var(--tap);padding-block:var(--s2)}
.j-row.bad b{color:var(--bad-ink)}
.j-row .chev{margin-inline-start:auto;color:var(--ink-3)}
[dir=rtl] .j-row .chev{transform:scaleX(-1)}
.j-txt{display:grid;gap:.1rem;min-width:0;flex:1}   /* the words take the row: its › sits at the end, either direction */.j-txt b{font-weight:600}.j-txt small{color:var(--ink-2);font-size:var(--fs-sm);line-height:1.45}
.j-more{margin-top:0}
.j-backlink{display:inline-flex;align-items:center;gap:.25rem;margin:0 0 var(--s3);padding:.3rem .5rem .3rem .2rem;border:0;border-radius:var(--r-sm);background:none;color:var(--ink-2);font:inherit;font-size:var(--fs-sm);cursor:pointer}
.j-backlink:hover{color:var(--ink);background:var(--surface-2)}
.j-backlink svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
[dir=rtl] .j-backlink svg{transform:scaleX(-1)}

/* the journey's layer */
.journey{position:fixed;inset:0;z-index:45;display:grid;grid-template-rows:auto 1fr auto;background:var(--bg);animation:fade var(--dur-2) var(--ease)}
.journey.closing{animation:fade var(--dur-2) var(--ease) reverse forwards}
body.in-journey{overflow:hidden}
.j-top{display:flex;align-items:center;gap:var(--s3);padding:var(--s2) var(--gutter);padding-top:calc(var(--s2) + env(safe-area-inset-top));max-width:40rem;width:100%;margin:0 auto}
.j-top .icon svg{width:22px;height:22px}
.j-title{margin-inline-start:auto;color:var(--ink-2);font-size:var(--fs-sm);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.j-dots{display:flex;gap:6px;align-items:center}
.j-dots i{width:8px;height:8px;border-radius:99px;background:var(--line-strong);opacity:.45;transition:width var(--dur-3) var(--ease),background var(--dur-2),opacity var(--dur-2)}
.j-dots i.done{background:var(--accent);opacity:.55}
.j-dots i.on{width:22px;background:var(--accent);opacity:1}
.j-slide{overflow:auto;padding:var(--s6) var(--gutter) var(--s5);max-width:40rem;width:100%;margin:0 auto;display:grid;align-content:start;gap:var(--s3)}
.j-slide.fwd{animation:slideIn var(--dur-3) var(--ease)}.j-slide.bwd{animation:slideBack var(--dur-3) var(--ease)}
@keyframes slideIn{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@keyframes slideBack{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none}}
[dir=rtl] .j-slide.fwd{animation-name:slideBack}[dir=rtl] .j-slide.bwd{animation-name:slideIn}
.j-q{font-size:var(--fs-2xl);line-height:1.3;margin:0}
.j-hint{margin:0;color:var(--ink-2)}
.j-body{margin-top:var(--s3);display:grid;gap:var(--s3)}
.j-foot{display:flex;align-items:center;gap:var(--s2);padding:var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));max-width:40rem;width:100%;margin:0 auto;
  border-top:1px solid var(--line);background:var(--bg)}
.j-foot .btn{min-height:var(--tap)}
.j-foot .j-next,.deck-foot [data-dk=publish]{min-width:9rem}
/* pickers */
.j-cards{display:grid;gap:var(--s2)}
.j-card{display:flex;align-items:center;gap:var(--s3);width:100%;min-height:4rem;padding:var(--s3) var(--s4);border-radius:var(--r);border:1.5px solid var(--line);background:var(--surface);color:var(--ink);
  font:inherit;text-align:start;cursor:pointer;transition:border-color var(--dur-2),background var(--dur-2),transform var(--dur-1) var(--ease)}
.j-card:hover{border-color:var(--line-strong)}.j-card:active{transform:scale(.99)}
.j-card.on{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent) inset}
.j-card[disabled]{opacity:.5;cursor:not-allowed}
.j-thumb{width:56px;height:56px;border-radius:var(--r-sm);object-fit:cover;flex:none;background:var(--surface-2)}
.j-chips{display:flex;flex-wrap:wrap;gap:var(--s2)}
.j-chips .chip{margin:0;min-height:var(--tap);padding:.4rem 1rem;font-size:var(--fs-md)}
.j-range{display:grid;gap:var(--s3);justify-items:center;padding:var(--s4) 0}
.j-big{font-size:3.5rem;font-weight:700;line-height:1;color:var(--accent)}
.j-range input{width:100%;accent-color:var(--accent);height:2rem}
.j-ends{display:flex;justify-content:space-between;width:100%}
.j-input{font-size:1.25rem;height:3.25rem!important}
.j-other{margin-top:var(--s2)}.j-other summary{cursor:pointer;color:var(--accent);font-weight:600;padding:var(--s2) 0}
.j-other .row{margin-top:var(--s2);flex-wrap:nowrap}.j-other select{max-width:7rem}
.j-sum{display:flex;align-items:center;gap:var(--s3);margin:0}.j-sum.col{display:grid;gap:var(--s2)}
.j-add{justify-self:start}
/* the review deck: the post as it will look, then three buttons */
.deck .j-slide{gap:var(--s3)}
.j-pic{width:100%;max-height:46dvh;object-fit:cover;border-radius:var(--r);background:var(--surface-2)}
.j-meta{display:flex;justify-content:space-between;align-items:center}
.j-text{line-height:1.7}
.j-end{justify-items:center;text-align:center;padding-top:15vh}.j-end .j-em{font-size:3rem}
@media (min-width:921px){.journey{background:color-mix(in srgb,var(--bg) 96%,transparent)}}

/* the side menu: the four doors, each with the tab bar's line icon */
.side .grp-title .em svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.side .grp.open .grp-title{background:var(--accent-soft);color:var(--accent-soft-ink)}

/* a screen's intro: two lines, the rest a tap away (few words on a screen; the redesign of 2026-11-08) */
.hero .sub.clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;cursor:pointer}
.hero .sub.clamp.open{display:block;-webkit-line-clamp:unset;line-clamp:unset}
/* 📝 a screen's words a line each, the first shown, the rest under More (leadHtml) */
.lead{display:block}
.lead .ln{display:block}
.lead .ln+.ln{margin-top:.2rem}
.lead .x{display:none}
.lead.open .x{display:block}
.more-btn{background:none;border:0;padding:0;margin-top:.25rem;color:var(--accent);font:inherit;font-size:.85rem;cursor:pointer}
/* 🗂 a card folded to its title and what is chosen in it (foldCards) */
.foldc>.foldh{cursor:pointer;display:flex;align-items:center;gap:.6rem;margin-bottom:0;user-select:none}
.foldc:not(.shut)>.foldh{margin-bottom:.7rem}
.foldc>.foldh .fsum{unicode-bidi:isolate;flex:1;min-width:0;color:var(--muted);font-size:.84rem;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:end}
.foldc>.foldh::after{content:'';flex:none;width:.42rem;height:.42rem;margin-inline:.15rem;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s var(--ease)}
.foldc.shut>.foldh::after{transform:rotate(-45deg)}
[dir=rtl] .foldc.shut>.foldh::after{transform:rotate(135deg)}
.foldc.shut>:not(.foldh){display:none}
.foldc.shut{padding-block:.85rem}
/* 🧭 the setup's journey: where the owner stands, one step, Back and Next */
.su-dots{display:flex;flex-wrap:wrap;gap:.45rem;margin:0 0 1rem}
.su-dot{width:2.1rem;height:2.1rem;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--muted);font:inherit;font-size:.85rem;cursor:pointer;display:grid;place-items:center}
.su-dot.done{color:var(--ok);border-color:var(--ok)}
.su-dot.on{background:var(--accent);border-color:var(--accent);color:#fff}
.su-nav{margin-top:.2rem}
/* 💬 Replies: a choice that is one tap -- a big row, its letter or ✅ first */
.opts{display:grid;gap:.5rem;margin:.6rem 0}
.opt{display:flex;gap:.7rem;align-items:flex-start;width:100%;text-align:start;border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;padding:.75rem .9rem;cursor:pointer;transition:border-color .2s,background .2s}
.opt:hover{border-color:var(--accent)}
.opt.on{border-color:var(--accent);background:var(--accent-soft)}
.opt .k{flex:none;font-weight:700;color:var(--accent);min-width:1.2rem}
details.own{margin-top:.4rem}details.own summary{cursor:pointer;color:var(--accent);font-weight:600;padding:.3rem 0}
/* ➕ another word, typed in the row of words itself: a chip, not a reply box */
.chip.addw{border-style:dashed;padding:.1rem .6rem;cursor:text}
.chip.addw input{border:0;background:transparent;padding:.15rem 0;min-width:0;width:auto;font:inherit;color:inherit;outline:none;box-shadow:none}
.list .li .t.wrap{white-space:normal}
.su-done{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.6rem}
/* 📡 a source's name whole on a phone: its row's buttons are the ticked bar's */
@media (max-width:640px){
  .list[data-list=src] .li>.btn{display:none}
  .list[data-list=src] .li .th{width:42px;height:42px;font-size:1.15rem}
  .list[data-list=src] .li .t,.list[data-list=src] .li .s{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}
/* ← → on a picture tile (operator, 2026-11-23), over its lower half: the pair follows the page, so each arrow sits on the side it points to (← → are never mirrored) */
.pic-w{position:relative;flex:none}
.pic-mv{position:absolute;inset-block-end:30px;left:50%;transform:translateX(-50%);display:flex;gap:4px}
.pic-mv button{border:0;border-radius:8px;cursor:pointer;font-size:.85rem;line-height:1;padding:.3rem .5rem;min-width:28px;min-height:26px;background:rgba(10,8,20,.62);color:#fff;backdrop-filter:blur(4px)}
.pic-mv button:hover{background:var(--accent);color:var(--accent-ink)}
.pic-c{position:absolute;inset-block-start:4px;inset-inline-start:4px;border:0;border-radius:8px;cursor:pointer;font-size:.85rem;line-height:1;padding:.3rem .45rem;min-width:28px;min-height:26px;background:rgba(10,8,20,.62);color:#fff;backdrop-filter:blur(4px)}
.pic-c:hover{background:var(--accent);color:var(--accent-ink)}
/* 🌐 a brand made on the web: one question a screen (web/pages.new_brand) */
.email-login.col{flex-direction:column}
.email-login.col input{width:100%;padding:.75rem .9rem;font-size:1rem}
.email-login.col .btn{width:100%}
.nb-card{text-align:start}
.nb-card .mark{display:block;margin-inline:auto}
.nb-dots{display:flex;justify-content:center;gap:.45rem;margin:0 0 1.2rem}
.nb-dots i{width:.5rem;height:.5rem;border-radius:50%;background:var(--line);transition:all .25s var(--ease)}
.nb-dots i.done{background:var(--accent-soft)}
.nb-dots i.on{width:1.5rem;border-radius:99px;background:var(--accent)}
.nb-step h2{font-size:1.3rem;margin:0 0 .35rem}
.nb-step p.muted{margin:0 0 1rem;font-size:.92rem}
.nb-choices{display:grid;gap:.55rem}
.nb-choices input{width:100%;font-size:1.05rem;padding:.75rem .9rem}
.nb-choice{display:flex;flex-direction:column;gap:.15rem;align-items:flex-start;text-align:start;width:100%;padding:.85rem 1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;transition:border-color .15s,background .15s}
.nb-choice span{color:var(--muted);font-size:.86rem}
.nb-choice:hover{border-color:var(--accent)}
.nb-choice.on{border-color:var(--accent);background:var(--accent-soft)}
.nb-sum{display:grid;grid-template-columns:auto 1fr;gap:.4rem 1rem;margin:0}
.nb-sum dt{color:var(--muted)}.nb-sum dd{margin:0;font-weight:600}
.nb-nav{display:flex;align-items:center;gap:.6rem;margin-top:1.3rem}
.nb-card .flash{margin-top:.9rem}
.nb-card [hidden]{display:none!important}
.draft .notes{margin-top:.6rem;padding:.5rem .7rem;border-radius:10px;background:var(--surface-2);color:var(--muted);white-space:pre-line}
.nt-bar .row{align-items:center;gap:.5rem;flex-wrap:wrap}
.nt-email{align-items:center;gap:.5rem;margin-top:.6rem;font-size:.92rem}
.nt-email{display:flex}
.nt-email input{width:auto;flex:none;margin:0}
