/* Miracue design system v2 (TEST, 28 Sept 2026): the app (library, editor, prompter, account).
   STAGING ONLY (see v2-fonts.css). Loaded after css/app.css and overrides it; app.css is
   untouched, so live keeps v1. When Luke approves v2 and its palette, this folds into app.css.
   Rules (Luke, binding): one typeface, no serif or mono; never the accent beside a calm fill; calm, flat, no
   glows, except the prompter's voice-follow zone, which glows at full strength in the palette's
   text colour (Luke, 15 Oct 2026; see .pr-zone below); the
   reading surface stays true black in the default palette; Emergency and errors stay red.
   Colours come from css/v2-tokens.css only. */

/* ---------- the app's own tokens, re-pointed at v2 ----------
   app.css paints everything from --l-* and --d-*. body.paper restates them, so the
   same values are restated there, and the paper grain, stock and lift are retired. */
:root,body,body.paper{
  --l-bg:var(--tint); --l-surface:var(--white); --l-hair:var(--line);
  --l-fg:var(--ink); --l-fg-2:var(--ink-2); --l-muted:var(--ink-3);
  --stock:var(--white); --folder:var(--calm-2); --folder-tab:var(--calm-2);
  --l-surface-2:var(--tint);
  --lift:none; --grain:none;
  --mono:var(--sans);
  --dot:currentColor;
}
body{font-family:var(--sans);font-weight:400;background:var(--tint);color:var(--ink)}
/* Tabular figures on the body made a 1 read like a lowercase l in prose. They stay on the numbers
   that tick or line up: times, counters, durations, the prompter's readouts. */
.tnum,#pr-info,#pr-start-i,.pr-speedn,#ed-words,#ed-duration,.set-lab span[id$="-val"],#select-count{font-variant-numeric:tabular-nums}
body.paper::before,.card::after,.folder-tile::after{display:none}
.wordmark{font-family:var(--sans);font-weight:700;letter-spacing:0}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* ---------- buttons: ink with accent text is the one primary ---------- */
.btn:hover{transform:none;opacity:.9}
/* buttons: the one family lives in css/v2-controls.css */
.btn-link{color:var(--ink-2);text-decoration-color:var(--field-edge);font-weight:600}
.btn-link:hover{color:var(--ink);text-decoration-color:var(--ink)}
.btn-link.faint{color:var(--ink-3);text-decoration-color:var(--line)}
.split .split-main{border-radius:var(--r-s) 0 0 var(--r-s)}
.split .split-arrow{border-radius:0 var(--r-s) var(--r-s) 0;border-left-color:rgba(255,225,77,.28)}
body.guest .split .split-main{border-radius:var(--r-s)}
/* Signed in, both halves open the one New menu, so they read as one button. */
body:not(.guest) .split .split-arrow{border-left-color:transparent;padding-left:0}
.icon-btn{border-color:var(--line);background:var(--white);color:var(--ink)}
.icon-btn:hover{border-color:var(--field-edge)}
.icon-btn.solid{background:var(--ink);border-color:var(--ink);color:var(--accent)}
.acct-chip{background:var(--calm-2);color:var(--ink);font-weight:700}

/* ---------- sign in ---------- */
.login-card{background:var(--white);border:1px solid var(--line);border-radius:var(--r);box-shadow:none}
.login-card h1{font-size:var(--fs-title);font-weight:500;letter-spacing:0}
.login-card .byline{color:var(--ink-2)}
.f-label{font-size:var(--fs-small);font-weight:600;letter-spacing:0;text-transform:none;color:var(--ink)}
.login-input{background:var(--white);border-color:var(--field-edge);border-radius:var(--r-s);min-height:52px}
.login-input:focus{border-color:var(--ink)}
.login-error{color:var(--danger);font-weight:600}
.login-input[aria-invalid=true]{border-color:var(--danger)}
.login-forgot{display:flex;align-items:center;gap:2px;margin:-14px 0 4px;font-size:var(--fs-small);color:var(--ink-3)}
.login-forgot .btn-link{padding:0 4px;font-size:var(--fs-small);min-height:44px}
@media (max-width:640px){.login-card{background:transparent;border:0}}

/* ---------- app bar ---------- */
.app-bar,body.paper .app-bar{background:rgba(255,255,255,.96);border-bottom-color:var(--line);backdrop-filter:none;-webkit-backdrop-filter:none}
.app-name{font-weight:700;font-size:var(--fs-body);letter-spacing:0}
.app-icon{border-radius:var(--r-s);width:30px;height:30px}
.plan-tag{font-family:var(--sans);font-weight:700;letter-spacing:.06em;border-radius:var(--r-s);font-size:var(--fs-micro)}
.plan-tag.lite{color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--field-edge)}
.plan-tag.pro{background:var(--ink);color:var(--accent)}
.plan-tag.studio{background:var(--ink);color:var(--accent);box-shadow:none;margin-right:0}
#guest-bar,#offline-bar{background:var(--calm-2);border-bottom:0;color:var(--ink)}

/* ---------- library ---------- */
.lib-head h2{font-size:var(--fs-title);font-weight:500;letter-spacing:0}
.lib-meta{color:var(--ink-2);font-size:var(--fs-small)}
.lib-meta.stamp{font-size:var(--fs-small);letter-spacing:0}
.rowlab{font-size:var(--fs-label);font-weight:600;letter-spacing:.04em;color:var(--ink-2)}
#lib-q{border-color:var(--line);background:var(--white)}
#lib-q:focus{border-color:var(--ink)}
#lib-q:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.lib-sort-wrap{background:var(--calm-2);border-color:transparent}
.lib-sort-label{font-weight:600}
.view-toggle{background:var(--calm-2);border-color:transparent}
.view-btn{color:var(--ink-2)}
.view-btn[aria-pressed="true"]{background:var(--white);color:var(--ink)}

/* folders: a quiet fill, flat, radius 16. The user's colour choice survives as a tint of
   the tile and its dot; the paper tab is gone with the paper. */
.folders{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.folder-tile{height:auto;min-height:92px;padding:16px 44px 16px 18px;justify-content:flex-end;border-radius:var(--r);
  background:var(--calm-2);box-shadow:none;transition:transform var(--v2-ease),background-color var(--v2-ease)}
.folder-tile::before{display:none}
.folder-tile:hover{transform:translateY(-3px);box-shadow:none}
/* Colour 13 (1 Oct 2026): a project's colour is its soft tone, the same one its name wears in the shoot bar */
.folder-tile[data-colour]{background:var(--soft-sand)}
.folder-tile[data-colour="terracotta"]{background:var(--proj-terracotta)}
.folder-tile[data-colour="ochre"]{background:var(--proj-ochre)}
.folder-tile[data-colour="sage"]{background:var(--proj-sage)}
.folder-tile[data-colour="slate"]{background:var(--proj-slate)}
.folder-tile[data-colour="plum"]{background:var(--proj-plum)}
.folder-tile[data-colour="stone"]{background:var(--proj-stone)}
.folder-tile .f-dot{top:18px;right:auto;left:18px;width:10px;height:10px}
.folder-tile[data-colour]{padding-top:40px}
.f-name{font-size:var(--fs-ui);font-weight:600;letter-spacing:0}
.f-meta{font-size:var(--fs-small);color:var(--ink-2)}
.f-menu{color:var(--ink-2)}
.f-menu:hover{background:var(--ink-a08)}
.folder-tile.over{background:var(--ink)}
.folder-tile.over .f-name{color:var(--on-ink)}
.folder-tile.over .f-meta,.folder-tile.over .f-menu{color:rgba(255,255,255,.7)}
.folder-ic,body.lib-paper .folder-ic{background:var(--calm-2);border-color:transparent;border-radius:var(--r-s)}
@media (max-width:640px){
  .folders{grid-template-columns:repeat(2,1fr);gap:10px}
  .folder-tile{min-height:76px;padding:12px 38px 12px 14px}
  .folder-tile[data-colour]{padding-top:32px}
  .folder-tile .f-dot{top:14px;left:14px}
  .f-name{font-size:var(--fs-small)}
  .f-meta{font-size:var(--fs-label)}
}

/* scripts: white cards on the tint canvas, a line border, no shadow, no grain */
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--r);box-shadow:none;
  transition:transform var(--v2-ease),border-color var(--v2-ease),opacity .2s}
.card:hover{transform:translateY(-3px);box-shadow:none;border-color:var(--field-edge)}
.card .face{color:var(--ink-2);font-size:var(--fs-small);line-height:1.55}
.card .foot{border-top-color:var(--line)}
.card .foot b{font-size:var(--fs-ui);letter-spacing:0}
.card .meta{font-size:var(--fs-label);color:var(--ink-3);letter-spacing:0}
.card.on{box-shadow:0 0 0 2px var(--ink)}
.card-acts .icon-btn{border-radius:50%}

/* the list: one white card, line between rows */
.rows,body:not(.paper) .rows{background:var(--white);border:1px solid var(--line);border-radius:var(--r);box-shadow:none}
.row,body.lib-paper .row{background:var(--white);border:1px solid var(--line);border-radius:var(--r);box-shadow:none}
body.lib-paper .row:hover,.row:hover{transform:none;border-color:var(--field-edge);box-shadow:none}
.rows .row,body.lib-paper .rows .row{border:0;border-bottom:1px solid var(--line);border-radius:0}
.rows .row:hover{background:var(--tint)}
.rows .row .icon-btn.solid{background:var(--white);border-color:var(--line);color:var(--ink)}
.rows .row.next .icon-btn.solid{background:var(--ink);border-color:var(--ink);color:var(--accent)}
.row.on,body.lib-paper .row.on{box-shadow:0 0 0 2px var(--ink)}
.rows .row.on{box-shadow:inset 3px 0 0 var(--ink)}
.row .txt b{letter-spacing:0}
.row .txt span,body.lib-paper .row .txt span{font-size:var(--fs-label);color:var(--ink-3);letter-spacing:0}
.row.folder.over,body.lib-paper .row.folder.over{background:var(--ink);box-shadow:none}
.done-tick{border-color:var(--field-edge)}
.done-tick.on{background:var(--ink);border-color:var(--ink);color:var(--white)}
.row.done .txt b{color:var(--ink-3);text-decoration-color:var(--ink-3)}
.sel-tick{border-color:var(--ink-3);border-radius:6px}
.on > .sel-tick,.on .sel-tick{background:var(--ink);border-color:var(--ink);color:var(--accent)}

/* the hub's shoot card */
.shoot-card{border:1px solid var(--line);border-radius:var(--r);box-shadow:none}
.shoot-top{border-bottom-color:var(--line)}
.shoot-top .ico{background:var(--ink);color:var(--accent);border-radius:var(--r-s)}
.shoot-top b{letter-spacing:0}
.shoot-top .meta,.door i{font-size:var(--fs-label);letter-spacing:0;color:var(--ink-3)}
.door{border-right-color:var(--line)}
.door:hover,.door:focus-visible{background:var(--tint)}
.release-card:hover .shoot-top,.release-card:focus-visible .shoot-top{background:var(--tint)}
.release-card:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* bin, nudge, empty */
.bin-foot{border-color:var(--field-edge);border-radius:var(--r)}
.bin-foot .k{letter-spacing:0}
.nudge{border-color:var(--line);border-radius:var(--r);box-shadow:none}
.nudge-chips button{border-color:var(--field-edge);border-radius:var(--pill);color:var(--ink)}
.nudge-chips button:hover{border-color:var(--ink)}
.nudge-note input{border-color:var(--field-edge);border-radius:var(--r-s)}
.app-foot{font-size:var(--fs-label);letter-spacing:0;color:var(--ink-3)}

/* ---------- floating things: menus, sheets, the select bar, toasts ---------- */
.menu{background:var(--white);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--float)}
.menu-item{border-radius:var(--r-s)}
.menu-item:hover{background:var(--tint)}
.menu-item.separated{border-top-color:var(--line)}
.menu-group{color:var(--ink-3)}
.menu-group.separated{border-top-color:var(--line)}
.menu-item small,.menu .swatch-lab,.menu-head .pill{letter-spacing:.04em}
.menu .sw{box-shadow:none}
.menu .sw.paper{background:var(--calm-2);box-shadow:none}
.menu .sw.on{outline-color:var(--ink)}
.select-bar{background:var(--ink);border-radius:var(--r);box-shadow:var(--float)}
.sel-act{border-radius:var(--r-s)}
.toast{background:var(--ink);color:var(--on-ink);border-radius:var(--r);box-shadow:var(--float)}
.toast-action{color:var(--accent)}
.dg-card{border-color:var(--line);border-radius:var(--r);box-shadow:var(--float)}
.drag-ghost.many .dg-card{box-shadow:var(--float),5px 5px 0 -1px var(--white),5px 5px 0 0 var(--line),10px 10px 0 -1px var(--white),10px 10px 0 0 var(--line)}
.dg-count{background:var(--ink);color:var(--accent)}

/* ---------- modals ---------- */
.modal-back{background:var(--ink-a35)}
.modal{background:var(--white);border:0;border-radius:var(--r);box-shadow:var(--float)}
.modal h3{font-size:var(--fs-lead);font-weight:500;letter-spacing:0}
.modal input,.modal select,#import-paste,.afield input,.take-note{background:var(--white);border-color:var(--field-edge);border-radius:var(--r-s)}
.modal input:focus,.afield input:focus,.take-note:focus{border-color:var(--ink)}
.import-list,.offer-diff{border-color:var(--line);border-radius:var(--r)}
.offer-diff{background:var(--tint)}
.offer-diff ins{background:var(--ink-a08)}
#share-qr-img,#device-qr-img{border-color:var(--line)}
/* the Pro waitlist card (js/app.js maybeWaitlistCard) */
.wl-card .wl-small{font-size:var(--fs-label);line-height:1.5;color:var(--ink-3);margin:-6px 0 18px}
.wl-card .wl-never{display:block;margin:10px auto 0;font-size:var(--fs-label);font-weight:500}
.wl-card .wl-done{font-size:var(--fs-ui);line-height:1.55;color:var(--ink);margin:0}
.h-stamp,.import-formats,.offer-sum b{letter-spacing:.04em}

/* the tour: no left-border cards; a white card, and the chosen one takes an ink ring */
.modal.tour{border-radius:var(--r)}
.tour h3{font-size:var(--fs-lead);font-weight:500;letter-spacing:0}
.tour .t-top .k{letter-spacing:.06em;font-size:var(--fs-micro);font-weight:700}
.tour .dashes i{height:3px;border-radius:var(--pill)}
.tour .choice{background:var(--white);border:1px solid var(--line);border-radius:var(--r-s)}
.tour .choice.on{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.tour .feat div{background:var(--calm-2);border-radius:var(--r)}
.tour .feat div.dark{background:var(--ink);color:var(--on-ink)}
.tour .feat div.dark span{color:rgba(255,255,255,.75)}
.tour-hole{border-radius:var(--r);box-shadow:0 0 0 9999px var(--ink-a35)}
#tour-modal.modal-back{background:transparent}

/* ---------- the editor ---------- */
.ed-bar,body.paper .ed-bar{background:rgba(255,255,255,.96);border-bottom-color:var(--line);backdrop-filter:none;-webkit-backdrop-filter:none}
.ed-bar .ed-title{font-weight:600;letter-spacing:0;border-radius:var(--r-s)}
.ed-bar .ed-title:hover{background:var(--tint)}
.ed-bar .ed-title:focus{border-color:var(--field-edge)}
.chip{font-size:var(--fs-label);font-weight:600;letter-spacing:0;text-transform:none;color:var(--ink-2);background:var(--calm-2);border-color:transparent}
.ed-select{border-color:var(--line);background:var(--white);font-weight:600}
.ed-select:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.ed-col{background:var(--tint)}
.ed-doc,body.paper .ed-doc{background:var(--white);border:1px solid var(--line);border-radius:var(--r);box-shadow:none;padding:28px 30px 22px}
body.paper .ed-doc:hover{border-color:var(--field-edge)}
.ed-doc:focus-within{outline:2px solid var(--ink);outline-offset:2px;border-radius:var(--r)}
.ed-title{letter-spacing:0;font-weight:600}
.ed-text{font-weight:400;color:var(--ink);font-size:var(--fs-body);line-height:1.7}
.ed-meta{font-size:var(--fs-label);letter-spacing:0;color:var(--ink-3);border-top-color:var(--line)}
.ed-mark{background:var(--ink);color:var(--white);box-shadow:none;font-weight:700}
.ed-fab{background:var(--ink);color:var(--white);box-shadow:0 0 0 3px var(--tint)}
.ed-from{background:var(--calm-1);border-bottom:0;color:var(--ink)}

/* the workbench: tint panel, tabs on a calm pill track */
.ed-work,body:not(.paper) .ed-work{background:var(--tint);border-left-color:var(--line)}
.wb-tabs{background:var(--calm-2);border:0;border-radius:var(--pill);padding:4px;gap:2px;margin:16px 16px 10px;width:max-content;max-width:calc(100% - 32px)}
.wb-tab,.wb-tab:hover{min-height:36px;padding:0 14px;border-radius:var(--pill);color:var(--ink-2);font-size:var(--fs-small);background:transparent}
.wb-tab:hover{color:var(--ink)}
.wb-tab[aria-selected="true"]{background:var(--white);color:var(--ink);font-weight:700;box-shadow:none}
.wb-tab .n,.wb-tab[aria-selected="true"] .n{font-size:var(--fs-label);font-weight:600}
.wb-foot{border-top-color:var(--line);display:flex;gap:8px;flex-wrap:wrap}
/* print and the prompter keys: two quiet icon buttons (15 Oct 2026, replacing a
   text link and a mono fold-out card) */
.wb-tool{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px 0 12px;border:1px solid var(--line);
  border-radius:var(--pill);background:var(--white);color:var(--ink);font-size:var(--fs-small);font-weight:600}
.wb-tool:hover{border-color:var(--ink-3)}
.wb-tool svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:900px){.wb-keys{display:none}}
.keys-modal{width:420px}
.keys-list{margin:16px 0 22px}
.keys-list div{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;border-bottom:1px solid var(--line)}
.keys-list div:last-child{border-bottom:0}
.keys-list dd{margin:0;color:var(--ink);font-size:var(--fs-small)}
.keys-list dt{display:flex;align-items:center;gap:4px;color:var(--ink-3);order:2}
.keys-list kbd{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:28px;padding:0 8px;
  font:600 var(--fs-label)/1 var(--mono,ui-monospace,Menlo,monospace);color:var(--ink);background:var(--white);
  border:1px solid var(--line);border-bottom-width:2px;border-radius:7px}
.wb-empty{color:var(--ink-2)}
.shot{border-bottom-color:var(--line)}
.shot .s-tick,.shot-add .plus{border-radius:6px;border:1.5px solid var(--ink);width:22px;height:22px;background:var(--white)}
.shot .s-tick:hover{border-color:var(--ink)}
.shot.on .s-tick{background:var(--ink);border-color:var(--ink);color:var(--accent)}
.shot-add .plus{border-color:var(--field-edge);color:var(--ink-3)}
/* a placeholder longer than the side panel ends in an ellipsis, not cut mid-word (design review, 11 Oct 2026) */
.shot-add input{text-overflow:ellipsis}
.shot input{color:var(--ink)}
.shot.on input{color:var(--ink-3)}
.bm-num{border-color:var(--field-edge);color:var(--ink)}

/* takes: the chosen take is ink with a accent number; a starred take keeps an ink ring */
.take{border-color:var(--line);background:var(--white);color:var(--ink)}
.take.star{background:var(--white);border:2px solid var(--ink);color:var(--ink)}
.take.sel,.take.star.sel{background:var(--ink);border-color:var(--ink);color:var(--accent)}
.take .vmark{background:var(--ink);color:var(--white);border-color:var(--tint)}
.take-star:hover{background:var(--calm-2)}
.meter{background:var(--calm-2)}
.meter i{background:var(--ink)}
.pbtn{background:var(--accent);color:var(--ink)}
.pbtn svg{fill:var(--ink)}
.scrub{background:var(--line)}
.speed{border-color:var(--field-edge);color:var(--ink)}
.pro-gate{background:var(--calm-1);border-radius:var(--r)}
@media (max-width:900px){
  .ed-bar,body.paper .ed-bar{background:var(--white)}
  .ed-work,body:not(.paper) .ed-work{background:var(--white);border-top-color:var(--line);box-shadow:var(--float)}
  .wb-tabs{margin:10px 8px 10px 12px}
  .wb-collapse{border-radius:var(--r-s)}
}
@media (max-width:640px){
  .app-bar,body.paper .app-bar{background:var(--white)}
  .lib-head h2{font-size:var(--fs-lead)}
  /* The phone bar holds three things, each a full thumb target: the logo, New, and the
     account circle (Luke, 28 Sept: "so many buttons, some of them tiny"). Install and help
     live in the account menu here; a guest reaches them from the dots. */
  #btn-install,#btn-help{display:none !important}
  .app-bar{padding:10px 16px;gap:12px}
  .bar-actions{gap:10px !important}
  .app-bar .btn{min-height:44px}
  .split .split-main{padding:0 18px}
  .split .split-arrow{min-width:44px}
  .acct-chip{width:44px;height:44px;font-size:var(--fs-ui)}
  #btn-overflow{width:44px;height:44px}
}
@media (max-width:400px){
  /* A narrow phone keeps the icon and the plan and lets the word go: the icon is the mark
     people recognise, and the account circle must never be squeezed. */
  .app-name{font-size:0;gap:0}
  .app-name .plan-tag{font-size:var(--fs-micro);margin-left:10px}
}
.acct-chip,#btn-overflow{flex:0 0 auto}
/* Start prompter and the call button are one control: square inner corners, a hairline
   between them, and they dim together on hover (Luke, 28 Sept: "connect these two"). */
.ed-split #btn-ed-prompt{border-radius:var(--r-s) 0 0 var(--r-s)}
.ed-split .ed-call-seg{border-radius:0 var(--r-s) var(--r-s) 0;border:0;border-left:1px solid rgba(255,225,77,.3);margin:0}
@media (min-width:901px){.ed-split:has(#btn-ed-call[hidden]) #btn-ed-prompt{border-radius:var(--r-s)}}
.ed-split .btn:hover{opacity:1}
.ed-split:hover .btn{opacity:.9}
@media (max-width:900px){.ed-split #btn-ed-prompt,.ed-split .ed-call-seg{border-radius:0}}

/* ---------- account ---------- */
.asec{border-color:var(--line);border-radius:var(--r);box-shadow:none}
.asec h3{font-size:var(--fs-body);font-weight:600;letter-spacing:0}
.asub,.amuted{color:var(--ink-2)}
.arow{border-top-color:var(--line)}
.arow .am{border-color:var(--line);border-radius:var(--r-s);background:var(--calm-2)}
.afield span{font-size:var(--fs-small);font-weight:600;letter-spacing:0;text-transform:none;color:var(--ink)}
.acct-rail a{border-left:0;border-radius:var(--pill)}
.acct-rail a.on{background:var(--calm-2);color:var(--ink);font-weight:700}
.aplan .abig{font-weight:500;letter-spacing:0}
.aplan .asmall,.stamp-line{letter-spacing:0;font-size:var(--fs-label)}
.seg{background:var(--calm-2);border-color:transparent}
.seg button.on{background:var(--white);color:var(--ink);font-weight:700}
.toggle{background:var(--field-edge)}
.toggle[aria-checked="true"]{background:var(--ink)}
@media (max-width:820px){
  .acct-rail{background:var(--tint)}
  .acct-rail a{border-color:var(--line)}
  .acct-rail a.on{background:var(--ink);color:var(--accent);border-color:var(--ink)}
}

/* ================= the prompter =================
   The reading surface keeps the chosen palette (Standard is true black). The chrome around
   it is an ink dock: white icons, the voice button accent when voice follow is on. The dock
   is ink on every palette, so it reads on Ink on cream as well as on black. */
#view-prompter{
  --d-bg-2:var(--ink); --d-hair:rgba(255,255,255,.12); --d-hair-2:rgba(255,255,255,.2);
  --d-s1:rgba(255,255,255,.08); --d-s2:rgba(255,255,255,.14);
  --d-fg:var(--on-ink); --d-fg-2:rgba(255,255,255,.72); --d-muted:rgba(255,255,255,.55)}
.pr-mini{letter-spacing:.06em}

/* The voice-follow zone keeps v1's full strength (app.css: band 7.5%, rails 85%, both glows)
   in the palette's text colour, so citrus text gives a citrus glow (Luke, 15 Oct 2026). The
   28 Sept restyle cut it to a third under a "calm, flat, no glows" rule; Luke never asked for
   that and wants it strong: do not soften it in a restyle. .pr-glow-bold, the strongest set,
   is on for everyone (Luke chose it on his iPad, 16 Oct 2026). */
.pr-glow-bold .pr-zone{background:color-mix(in srgb, var(--pr-ink) 8%, transparent)}
.pr-glow-bold .pr-zone::before{box-shadow:0 0 24px color-mix(in srgb, var(--pr-ink) 50%, transparent),0 0 80px color-mix(in srgb, var(--pr-ink) 26%, transparent),0 0 180px color-mix(in srgb, var(--pr-ink) 10%, transparent);
  animation-name:zone-breathe-bold}
.pr-glow-bold .pr-zone::after{box-shadow:0 0 36px color-mix(in srgb, var(--pr-ink) 70%, transparent),0 0 140px color-mix(in srgb, var(--pr-ink) 34%, transparent),0 0 280px color-mix(in srgb, var(--pr-ink) 14%, transparent);
  opacity:min(1, calc(var(--mic-level,0) * 1.5))}
.pr-glow-bold .pr-zone.waiting{background:color-mix(in srgb, var(--pr-ink) 3%, transparent);border-color:color-mix(in srgb, var(--pr-ink) 24%, transparent)}
.pr-glow-bold .pr-zone.waiting::before{animation-name:zone-idle}
.pr-glow-bold .pr-zone.waiting::after{opacity:calc(var(--mic-level,0) * 0.7)}
@keyframes zone-breathe-bold{0%,100%{opacity:.7}50%{opacity:1}}
@media (prefers-reduced-motion: reduce){
  .pr-glow-bold .pr-zone::before{animation:none;opacity:1}
  .pr-glow-bold .pr-zone.waiting::before{animation:none;opacity:0}
}
.pr-eyeline{border-top-color:color-mix(in srgb, var(--pr-ink) 30%, transparent)}

/* the dock: floating and centred on a desktop or tablet, a full-width ink bar on a phone.
   Call mode and the pinned window keep their own see-through bar (27 Sept). */
#view-prompter:not(.pr-call):not(.pr-pinned) .pr-controls{background:var(--ink);border-top:0;backdrop-filter:none;-webkit-backdrop-filter:none}
@media (min-width:641px) and (min-height:501px){
  #view-prompter:not(.pr-call):not(.pr-pinned) .pr-controls{left:50%;right:auto;bottom:calc(max(22px,env(safe-area-inset-bottom)) + var(--vv-lift,0px));transform:translateX(-50%);
    width:max-content;max-width:calc(100% - 32px);padding:8px;gap:8px;border-radius:var(--pill)}
  #view-prompter:not(.pr-call):not(.pr-pinned) .pr-controls.faded{transform:translateX(-50%)}
  .pr-sheet{bottom:112px}
}
#view-prompter:not(.pr-call):not(.pr-pinned) .pctl:not(.pctl-edge){color:var(--on-ink);background:rgba(255,255,255,.08);border-color:transparent}
#view-prompter:not(.pr-call):not(.pr-pinned) .pctl:not(.pctl-edge):hover{background:rgba(255,255,255,.16)}
#view-prompter:not(.pr-call):not(.pr-pinned) .pctl.pctl-big:not(.pctl-edge),
#view-prompter:not(.pr-call):not(.pr-pinned) .pctl.active:not(.pctl-edge){background:var(--on-ink);border-color:var(--on-ink);color:var(--ink)}
#view-prompter:not(.pr-call):not(.pr-pinned) .pr-speedgroup{background:rgba(255,255,255,.08);border-color:transparent}
#view-prompter:not(.pr-call):not(.pr-pinned) .pr-speedgroup .pctl{background:transparent}
#view-prompter:not(.pr-call):not(.pr-pinned) .pr-speedlab,#view-prompter:not(.pr-call):not(.pr-pinned) .pr-speedn{color:var(--on-ink)}
#view-prompter:not(.pr-call):not(.pr-pinned) .pr-mic-dot{box-shadow:0 0 0 2px var(--accent)}
/* the one accent: voice follow on, in every mode */
#view-prompter .pctl#pr-voice.active{background:var(--accent);border-color:var(--accent);color:var(--ink)}
.pr-speedchip,.pr-speedlab{font-family:var(--sans)}
.pr-speedlab{letter-spacing:.06em;font-weight:700}

/* the settings sheet: ink, floating */
.pr-sheet{background:var(--ink);border:0;border-radius:var(--r);box-shadow:var(--float)}
.pr-sheet h4{font-size:var(--fs-body);font-weight:600;letter-spacing:0}
.set-lab{font-size:var(--fs-micro);font-weight:700;letter-spacing:.06em}
.set-lab span:last-child{font-family:var(--sans);font-size:var(--fs-label)}
.pal-chip{border-radius:var(--r-s);border-color:rgba(255,255,255,.2)}
.pal.on .pal-chip{outline-color:var(--accent)}
.pal-name{font-size:10px;color:rgba(255,255,255,.75)}
.pr-bm-flash,.pr-note{background:var(--ink);border:0;border-radius:var(--r);box-shadow:var(--float)}
.pr-sheet .btn-primary{background:var(--accent);color:var(--ink)}

/* the pinned tab's stand-in */
#pin-standin{background:var(--ink)}
.standin-chip{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.08);letter-spacing:.06em}

@media (prefers-reduced-motion:reduce){.card,.folder-tile,.btn{transition:none}.card:hover,.folder-tile:hover{transform:none}}

/* The project page, direction B "Work | Client" (Luke chose it, 4 Oct 2026; js/app.js
   renderFolder). The Desk's language: sentence-case section headings at 19px, each with
   its own action on the right; the work on the left (Shoot, Moodboard, Scripts), the
   client on the right (Waiting on you, the client link, earlier sends: approval-chat.css).
   From 1100 px down one column, the client first. Tokens from v2-tokens.css only. */
.pv .lib-head{align-items:center;margin-bottom:10px}
.pv .lib-side{display:none}
.pv .lib-head h2{flex:1 1 auto;gap:6px;font-size:var(--fs-title);font-weight:700;line-height:1.15}
.pv .lib-title-text{flex:0 1 auto;max-width:none}
.pv-head-acts{display:flex;gap:8px;flex:none;margin-left:auto}
.lib-head h2 .pv-head-acts .lib-board-btn{margin-left:0}
.pv-sum{margin:0 2px 24px;font-size:var(--fs-ui);font-weight:500;color:var(--ink-2)}
.pv-sum[hidden]{display:none}
.pv-body{display:flex;flex-direction:column;gap:26px;min-width:0}
.pv-main{display:flex;flex-direction:column;gap:26px;min-width:0}
.pv-client{display:flex;flex-direction:column;gap:20px;min-width:0}
.pv-client:empty{display:none}
@media (min-width:1100px){
  .pv-body.has-client{display:grid;grid-template-columns:minmax(0,1fr) 372px;grid-template-areas:"main client";gap:24px;align-items:start}
  .pv-body.has-client .pv-main{grid-area:main}
  .pv-body.has-client .pv-client{grid-area:client}
}
.pv-sec{display:flex;flex-direction:column;gap:12px;min-width:0}
.pv-sec-head{display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap;min-height:40px}
.pv-sec-title{margin:0;font:700 var(--fs-body)/1.2 var(--sans);color:var(--ink);letter-spacing:0}
.pv-sec-note,.pv .pv-sec-head .lib-meta{font-size:var(--fs-small);color:var(--ink-2)}
.pv-sec-acts{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.pv-sec-acts:empty{display:none}
.pv-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pv-empty{margin:0;font-size:var(--fs-small);color:var(--ink-2)}
/* the shoot card is as it was; New shoot sits on the heading */
.pv .shoot-add{margin-top:0}
.pv .shoot-empty{margin-bottom:0}
/* the moodboard: even tiles that fit the column, never a hidden sideways scroll */
.pv .board-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;overflow:visible;padding:0;margin:0}
.pv .board-tile{height:auto;aspect-ratio:16/10;border-radius:var(--r)}
.pv .board-strip .board-empty{grid-column:1/-1}
/* the scripts: the toolbar on the heading, the count beside the title */
.pv-meta-slot{display:inline-flex}
.pv .pv-sec-head .lib-meta{min-width:0;text-align:left}
.pv-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pv-tools #lib-q{width:176px}
.pv-tools #lib-q:focus{width:200px}
.pv .pv-scripts .cards{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.pv .pv-scripts .rows{margin-bottom:0}
@media (max-width:640px){
  .pv .lib-head h2{font-size:var(--fs-lead);flex-wrap:wrap;row-gap:10px}
  .pv .lib-title-text{order:2;flex:1 1 calc(100% - 56px);white-space:normal}
  .pv .lib-head h2 > button{order:3}
  .pv-head-acts{order:4;margin-left:0}
  .pv-sum{font-size:var(--fs-small);margin-bottom:18px}
  .pv .board-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pv .board-tile:nth-child(n+7){display:none}
  .pv-scripts-head .pv-sec-acts{margin-left:0;flex-basis:100%;justify-content:flex-start}
  .pv-tools{justify-content:flex-start}
  .pv-tools .lib-search{flex:1 1 100%}
  .pv-tools #lib-q,.pv-tools #lib-q:focus{width:100%}
}

/* the way back to the library from a project, in words: the Desk or the Library (4 Oct 2026) */
.lib-head h2 .lib-back{min-height:40px;padding:0 16px 0 12px;margin-right:4px;background:var(--calm-2);color:var(--ink);font-family:var(--sans);font-size:var(--fs-ui);font-weight:600}
.lib-head h2 .lib-back:hover{background:var(--calm-1)}
.lib-head h2 .lib-back:focus-visible{outline:2px solid var(--ink)}
/* the project's Moodboard button, beside its name (30 Sept 2026) */
.lib-head h2 .lib-board-btn{margin-left:4px}
/* the project's moodboard: its first pictures (a grid on the project page, .pv .board-strip) */
.board-strip{display:flex;gap:10px;align-items:stretch;overflow-x:auto;padding-bottom:4px;margin-bottom:6px}
.board-tile{flex:none;height:120px;padding:0;border:0;border-radius:var(--r-s);overflow:hidden;background:var(--calm-3);cursor:pointer}
.board-tile img{display:block;width:100%;height:100%;object-fit:cover}
.board-empty{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:18px 20px;border:1px dashed var(--field-edge);border-radius:var(--r);background:var(--white);color:var(--ink);font-family:var(--sans);text-align:left;cursor:pointer}
.board-empty b{font-size:var(--fs-ui)}
.board-empty span{font-size:var(--fs-small);color:var(--ink-2)}
/* New shoot on the project page (2 Oct 2026): under the shoots, or the section's empty state */
.shoot-add{margin-top:12px}
.shoot-add svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.shoot-empty{margin-bottom:6px}

/* the plan picker (30 Sept 2026): plans on the right, what the chosen one adds on the left */
.pp-veil{position:fixed;inset:0;z-index:80;background:var(--ink-a35);display:flex;align-items:center;justify-content:center;padding:16px}
.pp-dlg{background:var(--white);border-radius:var(--r);box-shadow:var(--float);width:min(820px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:24px;display:flex;flex-direction:column;gap:16px;font-family:var(--sans);color:var(--ink)}
.pp-top{display:flex;align-items:center;justify-content:space-between}
.pp-top h2{margin:0;font-size:var(--fs-lead);font-weight:500}
.pp-x{width:44px;height:44px;border:0;border-radius:50%;background:var(--calm-2);font-size:24px;line-height:1;cursor:pointer;color:var(--ink)}
.pp-why{margin:-6px 0 0;background:var(--calm-1);border-radius:var(--r-s);padding:10px 14px;font-size:var(--fs-ui)}
.pp-bill{display:inline-flex;align-self:center;background:var(--calm-2);border-radius:var(--pill);padding:4px;gap:2px}
.pp-bill button{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border:0;border-radius:var(--pill);background:transparent;font:inherit;font-size:var(--fs-ui);color:var(--ink);cursor:pointer}
.pp-bill button.on{background:var(--white);font-weight:700}
.pp-save{font-size:var(--fs-micro);font-weight:700;padding:2px 8px;border-radius:var(--pill);background:var(--accent)}
.pp-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
@media (max-width:700px){.pp-body{grid-template-columns:1fr}.pp-list{order:-1}}
.pp-detail h3{margin:0;font-size:var(--fs-lead);font-weight:600}
.pp-line{margin:2px 0 12px;color:var(--ink-2)}
.pp-plus{margin:0 0 6px;font-weight:700;font-size:var(--fs-ui)}
.pp-detail ul{list-style:none;margin:0;padding:0}
.pp-detail li{display:flex;gap:10px;padding:5px 0;font-size:var(--fs-ui);color:var(--ink-2)}
.pp-detail li::before{content:"\2713";color:var(--ink);font-weight:700}
.pp-list{display:flex;flex-direction:column;gap:8px}
.pp-plan{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid var(--line);border-radius:var(--r);background:var(--white);padding:14px 16px;font:inherit;color:var(--ink);cursor:pointer;min-height:64px}
.pp-plan.on{border:2px solid var(--ink);padding:13px 15px}
.pp-plan-t{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.pp-plan-t b{font-size:var(--fs-ui)}
.pp-plan-t span{font-size:var(--fs-small);color:var(--ink-2)}
.pp-plan-p{font-size:var(--fs-small);font-weight:600;text-align:right;max-width:40%}
.pp-foot{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:16px}
.pp-sum{flex:1;margin:0;font-weight:600}
.pp-tax{margin:-8px 0 0;font-size:var(--fs-label);color:var(--ink-3)}
/* the account's current plan, in numbers */
.ausage{display:flex;flex-direction:column;gap:2px;margin-top:10px;border-top:1px solid var(--line);padding-top:10px}
.ausage[hidden]{display:none}
.ausage-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;font-size:var(--fs-ui)}
.ausage-row span{color:var(--ink-2)}
.asketch{margin:14px 0 8px;padding-top:12px;border-top:1px solid var(--line)}.asketch h4{margin:0 0 6px;font-size:var(--fs-ui);font-weight:700}.asketch p{margin:2px 0;font-size:var(--fs-small)}.asketch .btn-link{margin-top:6px}
.ausage .btn-link{align-self:flex-start;margin-top:6px}
/* Plan and billing (gap review G14): the plan name sits under its section heading, and the ways
   to act are buttons on the card's edge, not links set in from it */
.aplan .abig{font-size:var(--fs-body);font-weight:600;line-height:1.3}
.ausage .btn{align-self:flex-start;margin-top:16px}
.asketch{margin-bottom:0}.asketch .btn{margin-top:12px}
@media (max-width:600px){.aplan .spacer{display:none}}   /* a wrapped button starts on the card edge */
/* A project's name keeps room to be read; the controls beside it wrap under
   it instead of squeezing it to "Brand…" (1 Oct 2026) */
.lib-head{flex-wrap:wrap;row-gap:10px;align-items:center}   /* one centre line for title, view switch, search and count (design review, 11 Oct 2026) */
.lib-title-text{flex-shrink:0;max-width:min(60vw,720px)}
/* Units and region (1 Oct 2026) */
.arow-units{flex-wrap:wrap;align-items:flex-start}
.units-set{display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:10px 14px;width:100%;margin-top:4px}
.units-set .afield select{width:100%;height:40px;border:1px solid var(--field-edge);border-radius:var(--r-s);padding:0 10px;font:inherit;font-size:var(--fs-small);color:var(--ink);background:var(--white)}
@media (max-width:560px){.units-set{grid-template-columns:1fr}}
/* Phone prompter (11 Oct 2026 design review): the chapter buttons on the right edge sat over the
   words. js/prompter.js reads this and pads that side of the text clear of them (20px + 52px + a gap). */
@media (max-width:600px){#view-prompter{--pr-edge-room:84px}#view-prompter.pr-pinned{--pr-edge-room:0px}}
/* Phone tap targets (11 Oct 2026 design review): the library's Covers/List switch and filter pills
   (31px), a card's options (32px), the project's card/list switch (30px) and the editor's colour dots
   (28px) were under 44px. The pills keep their look and get an invisible 44px hit area; the editor's
   format buttons simply grow on a phone. */
@media (max-width:600px){
  button.lp-seg,button.lp-pill,button.view-btn{position:relative}
  button.lp-seg::after,button.lp-pill::after,button.view-btn::after,button.lp-cmenu::after{content:"";position:absolute;inset:-7px -3px}
  button.lp-cmenu::after{inset:-6px}
  .fmt-btn{width:44px;height:44px}
  .fmt-dot{width:44px;height:44px}
}

/* One stroke for every line icon (design review, 11 Oct 2026): 1.5px on screen whatever the icon's size.
   Every app icon is drawn on a 24 grid, so the viewBox picks out icons and leaves logos and drawings alone. */
svg[viewBox="0 0 24 24"] :is(path,line,polyline,polygon,circle,rect,ellipse){vector-effect:non-scaling-stroke;stroke-width:1.5px}

/* Editor on a touch phone (Luke, 12 Oct 2026: "narrow the text"): the chapter and keyboard buttons
   float at the left edge, so the text column starts clear of them (8px edge, 36px button, 16px
   margin), and they never sit over a word. His 28 Aug rule stands: nothing covers the script. */
@media (hover:none) and (pointer:coarse) and (max-width:600px){
  body.view-editor .ed-float{left:max(8px,env(safe-area-inset-left))}
  body.view-editor .ed-doc,body.paper.view-editor .ed-doc{padding-left:calc(60px - var(--sp-4) - 1px)}
}
