
/* GRID, not a column: the ribbon spans the whole window, as it does in
   PowerPoint, and the thumbnail column starts below it. That gives the
   controls the width they need without making either rail wider. */
.deck{position:fixed;inset:0;z-index:100;background:var(--chrome-0);
  color:var(--chrome-ink);
  display:grid;grid-template-columns:auto minmax(0,1fr);
  grid-template-rows:auto auto auto minmax(0,1fr);font-family:var(--sans);}
/* Row 1 is the document's own bar, and only ever one of these two is in
   it: .deck-qat while editing, .deck-top while presenting. Rows 2 and 3
   are the full-width tab strip and ribbon; thumbnails and stage share
   row 4. */
.deck-top,.deck-qat{grid-column:1/-1;grid-row:1;}
.deck>.deck-create{grid-column:1;grid-row:4;min-height:0;}
.deck>.rbn-tabs{grid-column:1/-1;grid-row:2;}
.deck>.edit-tools{grid-column:1/-1;grid-row:3;}
.deck-main{grid-column:2;grid-row:4;}
.deck[hidden]{display:none!important;}
/* Parked editor. Back to the collection hides the editor with its deck
   still in hand; display:none would throw away its whole style and layout
   for Open as slides to rebuild. Parked, it keeps them: hidden to the
   page's scripts ([hidden]); its contents skipped (not styled, laid out,
   drawn, focused, found or read out) until shown (content-visibility);
   and its own empty box off the page, where nothing is hit. Nothing
   inherited changes (visibility, pointer-events), so showing it again
   restyles nothing underneath (cpsPark in 64b-collection-slides.js). */
.deck.parked[hidden]{display:grid!important;content-visibility:hidden;
  transform:translateX(-300vw);}
@media print{.deck.parked[hidden]{display:none!important;}}
.deck [hidden]{display:none!important;}
body.deck-open{overflow:hidden;}

.deck-top{display:flex;align-items:center;gap:9px;padding:10px 18px;
  border-bottom:1px solid var(--chrome-line);background:var(--chrome-1);
  flex:none;}
/* ---- Presenting: the bar is folded away ----
   Out of the grid (so the slide has the whole height) and above the top
   edge until asked for: .top-peek while the pointer is at the top,
   .top-pinned from the Controls tab, or when a control inside it has
   focus. Only while presenting; editing never shows .deck-top. */
.deck:not(.editing):not(.creating) .deck-top{position:absolute;left:0;
  right:0;top:0;z-index:40;transform:translateY(-100%);opacity:0;
  pointer-events:none;box-shadow:0 10px 30px #0007;
  transition:transform .18s ease,opacity .18s ease;}
.deck.top-peek:not(.editing):not(.creating) .deck-top,
.deck.top-pinned:not(.editing):not(.creating) .deck-top,
.deck:not(.editing):not(.creating) .deck-top:focus-within{transform:none;
  opacity:1;pointer-events:auto;}
/* the faint tab that is left: half-hidden until the pointer finds it,
   gone while the bar is out, and never in the editor */
.deck-top-handle{position:absolute;top:0;left:50%;translate:-50% 0;
  z-index:39;height:20px;padding:0 10px;display:flex;align-items:center;
  gap:5px;border:1px solid var(--chrome-line);border-top:none;
  border-radius:0 0 8px 8px;background:var(--chrome-1);
  color:var(--chrome-ink-2);font:10.5px var(--sans);cursor:pointer;
  opacity:.22;transition:opacity .15s ease;}
.deck-top-handle .bic{width:12px;height:12px;}
.deck-top-handle:hover,.deck-top-handle:focus-visible{opacity:1;}
.deck.editing .deck-top-handle,.deck.creating .deck-top-handle,
.deck.top-peek .deck-top-handle,.deck.top-pinned .deck-top-handle{
  display:none;}
@media print{.deck-top-handle{display:none!important;}}
/* The global presentations rail is inert behind a full-screen deck. This
   drawer belongs to the deck, so it can take focus and stays usable while
   presenting; it lists what is open now: the deck on screen and the open
   notebooks. */
.deck-pres-drawer{position:absolute;z-index:35;left:14px;top:58px;
  width:min(340px,calc(100vw - 28px));max-height:calc(100vh - 74px);
  display:flex;flex-direction:column;gap:9px;padding:11px;
  overflow:auto;border:1px solid var(--chrome-line);border-radius:9px;
  background:var(--chrome-2);box-shadow:0 16px 48px #0008;}
.deck-pres-drawer[hidden]{display:none!important;}
.deck-pres-drawer-head{display:flex;align-items:center;gap:8px;
  padding-bottom:8px;border-bottom:1px solid var(--chrome-line);
  color:var(--chrome-ink);font:600 12px var(--sans);}
.deck-pres-list{display:flex;flex-direction:column;gap:5px;min-height:24px;}
.deck-pres-row{display:flex;align-items:center;gap:8px;min-width:0;
  padding:8px 9px;border:1px solid var(--chrome-line);border-radius:6px;
  background:#ffffff05;color:var(--chrome-ink);cursor:pointer;text-align:left;
  font:12px var(--sans);}
.deck-pres-row:hover,.deck-pres-row.current{border-color:var(--cyan);
  background:color-mix(in srgb,var(--accent) 13%,transparent);}
.deck-pres-row .bic{width:14px;height:14px;flex:none;color:var(--cyan);}
.deck-pres-row-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.deck-pres-row-kind{flex:none;color:var(--chrome-ink-2);
  font:500 11px var(--sans);}
.deck-pres-empty{padding:8px;border:1px dashed var(--chrome-line);
  border-radius:6px;color:var(--chrome-ink-2);font:11px var(--sans);}
.deck-pres-doors{display:flex;gap:6px;}
.deck-pres-doors .dbtn{flex:1 1 auto;min-width:0;justify-content:center;
  white-space:nowrap;}
.deck-pres-row[disabled]{cursor:default;}
/* ---- The open-items bar, where you put it ----
   A pop-up is the rules above. A rail sits flush down the left and the
   stage gives up the width, as for an inspector pane; a strip lies across
   the top and the stage gives up the height. Both drop the pop-up's shadow
   and floating corners on the docked edge. A docked bar is a track of the
   deck's own grid rather than positioned over the deck, so the stage
   measures its own smaller size and sizeSlideTo fits the page to it, as
   .deck.pane-open does. */
.deck{--openbar-w:264px;--openbar-h:104px;}
.deck-pres-drawer.dock-left,.deck-pres-drawer.dock-top{
  position:static;max-height:none;border-radius:0;box-shadow:none;}
/* a rail: a third column, ahead of the slide column and the stage */
.deck.openbar-left{grid-template-columns:auto auto minmax(0,1fr);}
.deck.openbar-left>.deck-pres-drawer{grid-column:1;grid-row:4;
  width:var(--openbar-w);min-height:0;border-width:0 1px 0 0;}
.deck.openbar-left>.deck-create{grid-column:2;}
.deck.openbar-left>.rbn-tabs,.deck.openbar-left>.edit-tools{grid-column:1/-1;}
.deck.openbar-left>.deck-main{grid-column:3;}
/* a strip: a band of its own under the document bar, full width */
.deck.openbar-top{grid-template-rows:auto auto auto auto minmax(0,1fr);}
.deck.openbar-top>.deck-pres-drawer{grid-column:1/-1;grid-row:2;
  width:auto;max-height:var(--openbar-h);border-width:0 0 1px;}
.deck.openbar-top>.deck-create{grid-row:5;}
.deck.openbar-top>.rbn-tabs{grid-row:3;}
.deck.openbar-top>.edit-tools{grid-row:4;}
.deck.openbar-top>.deck-main{grid-row:5;}
/* across the top it is a ROW of rows, not a column: the head, the items
   and the doors flow left to right so the strip stays one band deep */
.deck-pres-drawer.dock-top{flex-direction:row;align-items:center;
  gap:12px;padding:7px 12px;overflow-x:auto;}
.deck-pres-drawer.dock-top .deck-pres-drawer-head{flex:none;
  padding:0 12px 0 0;border-bottom:0;border-right:1px solid var(--chrome-line);}
.deck-pres-drawer.dock-top .deck-pres-list{flex-direction:row;flex-wrap:wrap;
  align-items:center;gap:6px;flex:1;min-width:0;}
.deck-pres-drawer.dock-top .deck-pres-row{width:auto;max-width:260px;
  padding:5px 8px;}
.deck-pres-drawer.dock-top .deck-pres-sec{margin:0;}
.deck-pres-drawer.dock-top .deck-pres-doors{flex:none;}
/* a section heading inside the bar, so three lists read as three */
.deck-pres-sec{margin:5px 0 0;color:var(--chrome-ink-2);
  font:600 11px var(--sans);}
/* the verbs on a row. They are quiet until the row is under the pointer,
   because "very little controls" must not become a wall of icons -- and
   they float over the row's right end rather than taking a column of it,
   so five icons do not clip the name down to "presentat…" on every row
   whether you are pointing at it or not. */
.deck-pres-row{position:relative;}
.deck-pres-acts{display:flex;gap:2px;flex:none;opacity:0;
  position:absolute;right:5px;top:50%;transform:translateY(-50%);
  padding-left:14px;border-radius:5px;
  background:linear-gradient(90deg,transparent,var(--chrome-2) 14px);
  transition:opacity .12s;}
.deck-pres-row:hover .deck-pres-acts,
.deck-pres-row:focus-within .deck-pres-acts,
.deck-pres-acts:has(>.deck-pres-act.on){opacity:1;}
.deck-pres-act{display:inline-flex;align-items:center;justify-content:center;
  width:21px;height:21px;padding:0;border:1px solid transparent;
  border-radius:5px;background:none;color:var(--chrome-ink-2);
  cursor:pointer;}
.deck-pres-act:hover{border-color:var(--chrome-line);
  background:color-mix(in srgb,var(--accent) 22%,transparent);
  color:var(--chrome-ink);}
.deck-pres-act.on{color:var(--cyan);opacity:1;}
.deck-pres-act .bic{width:12px;height:12px;}
.deck-pres-ver .deck-pres-row-name{color:var(--chrome-ink-2);}
.deck-brand{font:600 12px var(--sans);color:var(--cyan);}
.deck-status{font-family:var(--sans);font-size:11.5px;padding:0 10px;
  height:30px;box-sizing:border-box;display:inline-flex;align-items:center;
  border-radius:15px;background:var(--surface-active);
  color:var(--chrome-ink-2);letter-spacing:0;
  white-space:nowrap;}
.deck-status.draft{background:color-mix(in srgb,var(--warning) 15%,transparent);
  color:var(--warning);}
.deck-status.saved{background:color-mix(in srgb,var(--success) 15%,transparent);
  color:var(--success);}
/* "unsaved, saving…" with autosave armed is the ordinary state after every
   edit, so it reads quietly, not as a warning */
.deck-status.draft.pending{background:var(--surface-active);
  color:var(--chrome-ink-2);}
.deck-status:empty{display:none;}
.deck-spring{flex:1;}
/* the sans, like .toggle (core.css) */
.dbtn{font-family:var(--sans);font-size:12px;
  border:1px solid var(--btn-border,#ffffff22);
  background:var(--btn-bg,#ffffff0a);color:var(--btn-ink,#cdd9e3);
  padding:6px 11px;border-radius:6px;
  cursor:pointer;
  /* what changes on hover, press and disable, not `all`: `all` makes every
     restyle of a button compare every animatable property, and eases any
     geometry a class changes (as in the ribbon) */
  transition:color .15s,background-color .15s,border-color .15s,
    box-shadow .15s,opacity .15s;}
.dbtn:hover{border-color:var(--cyan);color:var(--chrome-ink);}
/* the way out of a modal state: coral so it reads as "stop", but an
   outline rather than a fill, because it undoes rather than commits */
.dbtn.dbtn-warn{border-color:color-mix(in srgb,var(--danger) 45%,transparent);
  color:var(--danger);}
.dbtn.dbtn-warn:hover{border-color:var(--danger);color:var(--danger);
  background:color-mix(in srgb,var(--danger) 12%,transparent);}
.dbtn.primary{background:var(--cyan);border-color:var(--cyan);
  color:var(--on-accent);
  font-weight:600;box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 40%,transparent),0 2px 12px color-mix(in srgb,var(--accent) 40%,transparent);}
.dbtn.primary:hover{background:color-mix(in srgb,var(--accent) 88%,white);
  border-color:color-mix(in srgb,var(--accent) 88%,white);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 53%,transparent),0 2px 16px color-mix(in srgb,var(--accent) 53%,transparent);}
/* pressed is the deep accent the button inherits (cyan in the default
   theme, the tab's own hue in the colourful one), so a lit control never
   wears a colour its neighbours do not */
.dbtn[aria-pressed="true"]{background:var(--accent-deep,var(--cyan-deep));
  border-color:var(--accent-deep,var(--cyan-deep));
  color:var(--on-accent-deep,#fff);}
.deck-save{display:flex;gap:7px;align-items:center;}


/* ---------- the thin document bar (editing) --------------------------
   28px of controls that never change with the selection. File, Save,
   undo, redo and the save readout share one line that no tab can take
   away. */
.deck-qat{display:flex;align-items:center;gap:6px;padding:4px 10px;
  border-bottom:1px solid var(--chrome-line);background:var(--chrome-1);
  flex:none;min-height:34px;flex-wrap:nowrap;overflow-x:clip;}
.deck-qat[hidden]{display:none!important;}
/* nowrap and flex:none: a squeezed flex item shrinks to min-content and
   its label wraps inside the button ("File" over its caret). The bar's
   width pressure goes to fitQat's rungs instead. */
.deck-qat .dbtn{padding:4px 9px;white-space:nowrap;flex:none;}
/* No transition on what the fitters measure. .dbtn transitions `all`, so a
   rung's padding change would animate over 150ms: fitQat's synchronous
   measurement right after adding a class would see the old padding, judge
   the rung a failure and try the next, and the observer on the bar would
   re-run it against a half-way size, flip-flopping forever. Colour and
   border still ease; geometry snaps. The ribbon's rungs change padding too
   and get the same rule. */
.deck-qat .dbtn,.deck .edit-tools .dbtn{
  transition-property:border-color,color,background-color,box-shadow;}
/* One height, one baseline: every control has the ribbon's button height
   and a button centres its own content. The readout keeps inline-block
   because its ellipsis needs a block container (see below). */
.deck-qat .dbtn,.deck-qat .qat-name,.deck-qat .qat-nameedit{
  height:var(--rbn-btn-h);box-sizing:border-box;
  padding-top:0;padding-bottom:0;}
.deck-qat .qat-name{line-height:calc(var(--rbn-btn-h) - 2px);}
.deck-qat .rbn-stack{flex-direction:row;align-items:center;gap:6px;}
.deck-qat .rbn-cell{height:var(--rbn-btn-h);gap:3px;}
.deck-qat .dc-menuwrap,.deck-qat .dc-savegrp{display:inline-flex;
  align-items:center;height:var(--rbn-btn-h);}
.qat-sep{width:1px;align-self:stretch;margin:3px 3px;
  background:var(--chrome-line);flex:none;}
.qat-btn{white-space:nowrap;flex:none;}
/* the name reads as a title, not a button, until you go near it */
/* flex:none: every button on this bar is flex:none and the two springs
   have a zero basis, so the name would be the one item the bar could
   shrink, and it would shrink to "pres..." before fitQat sees an
   overflow. The name keeps its width and the bar's pressure goes to
   fitQat's rungs. */
.qat-name{font-family:var(--sans);font-size:12.5px;color:var(--chrome-ink-2);
  background:none;border:1px solid transparent;border-radius:6px;
  padding:3px 9px;cursor:text;flex:none;max-width:34vw;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;}
.qat-name:hover{border-color:var(--chrome-line);color:var(--chrome-ink);}
.qat-name:empty::before{content:"untitled";color:var(--chrome-ink-3);}
.qat-nameedit{font-family:var(--sans);font-size:12.5px;
  background:var(--input-bg);color:var(--chrome-ink);
  border:1px solid var(--cyan);border-radius:6px;padding:3px 9px;
  min-width:190px;outline:none;}
/* The save readout, beside the Save button it reports on. text-overflow
   needs a block container, and .deck-status is an inline-flex whose bare
   text is an anonymous flex item no ellipsis can reach, so long text would
   be cut mid-glyph. inline-block centres by line-height as align-items did
   and gives the ellipsis somewhere to land. */
.deck-qat .deck-status{display:inline-block;height:var(--rbn-btn-h);
  line-height:var(--rbn-btn-h);
  font-size:11px;flex:none;width:34ch;max-width:34ch;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
/* Keep the readout's slot even while it is empty.  Autosave changes this
   text from "unsaved" to "saving" to a destination and back; hiding the
   whole item for the empty state made every control after Save jump when
   the state changed.  The slot is only removed by fitQat's deliberate
   compact rung. */
.deck-qat .deck-status:empty{visibility:hidden;}
/* the countdown rewrites itself once a second; a fixed cell keeps the
   button — and so the whole bar — from twitching on every tick */
.deck-qat .qat-auto .qat-tick{display:inline-block;min-width:4.2ch;
  text-align:right;font-variant-numeric:tabular-nums;}
/* ---- fitQat's rungs (see fitQat in deck.js): this bar never clips ----
   Rung 1 tightens spacing and swaps the .qat-long/.qat-short label pair
   ("Autosave" to "Auto"): words are shortened, never hidden. Rung 2 drops
   the save readout (informative, not a control; the Save button's tooltip
   carries the same words). The cheap rung comes first, so a small
   shortfall does not drop 219px of words. The floor scrolls the bar
   sideways so Present and Help are always reachable; its menus float via
   floatMenu (position:fixed), so the scroll box cannot cut them off. */
.deck-qat .qat-short{display:none;}
.deck-qat.qat-c1{gap:3px;}
.deck-qat.qat-c1 .dbtn{padding-left:6px;padding-right:6px;}
.deck-qat.qat-c1 .qat-name{max-width:16vw;}
.deck-qat.qat-c1 .qat-long{display:none;}
.deck-qat.qat-c1 .qat-short{display:inline;}
.deck-qat.qat-c2 .deck-status{display:none;}
.deck-qat.qat-scroll{overflow-x:auto;overflow-y:hidden;
  scrollbar-width:thin;}
/* ---- The title row ----
   This bar is the title row, split as PowerPoint splits it. Left: app.js
   moves #open-tabs-row in (Home and the open files, as tabs). Middle: the
   command search. Right: Save, the readout, Autosave and undo/redo. File,
   Find, Full screen and Present are on the strip below. While the tabs
   are here the bar is a shade darker than the strip, the tab on screen
   takes the strip's colour (--tab-on) and the line under the bar is drawn
   inside it, so that tab joins the strip. The tab names the deck, so the
   name steps aside (File > Rename... and a double-click on the tab rename
   it, the edit field taking the name's place while typing). */
.deck-qat{--tab-on:var(--chrome-1);--tab-row:var(--chrome-0);}
.deck-qat:has(> .open-tabs-row:not([hidden])){background:var(--chrome-0);
  border-bottom-width:0;box-shadow:inset 0 -1px 0 var(--chrome-line);}
.deck-qat:has(> .open-tabs-row:not([hidden])) .qat-name{display:none;}
.deck-qat .open-tabs-row{margin-left:-6px;}
/* the save readout gives up its width before the tabs do: at 1440px
   with four decks open it kept all 34ch while every tab was down to
   "p...". Its width still comes from the room, never from its words, so
   a new state does not move the controls after it (the reason it has a
   fixed slot); the full words are its tooltip */
.deck-qat .deck-status{flex:0 4 34ch;width:auto;min-width:11ch;}
.deck-qat.qat-c1 .open-tabs-row{min-width:160px;}
/* the command search, centred between the tabs and the saving corner. It
   gives up its width before the tabs do (shrink 4, as the readout's). Its
   floor is where "Search commands" is still whole: the words need a 146px
   box. */
.deck-qat .rbn-search{flex:0 4 260px;min-width:150px;height:var(--rbn-btn-h);
  box-sizing:border-box;margin:0 8px;}
/* building: no ribbon to search, and the panel is narrow */
.deck.creating .deck-qat .rbn-search{display:none;}
/* in the narrow creating panel the name's kept width (above) would push
   Autosave half out and undo and redo off the end, sending the bar
   straight to its scroll rung. There the name is the one thing that can
   give: it shrinks to an ellipsis (its tooltip and File > Rename... keep
   it whole) before fitQat's rungs start. While the open files are tabs,
   the presentation's own tab is lit in the notebook's title row beside
   the panel, so the name steps aside there as in the editor's title
   row. */
.deck.creating .deck-qat .qat-name{flex:0 1 auto;min-width:72px;}
body.tabs-row-on .deck.creating .deck-qat .qat-name{display:none;}
/* ---- The strip under the title row ----
   Like PowerPoint's File Home Insert row: File first, the ribbon's tabs,
   then the verbs at the right before the fold (only Present and the zoom;
   Find is on Home, Full screen and Auto-hide on View). Button-high for a
   28px strip. While building there is no ribbon, so the strip is File and
   Present alone. Its buttons use the tabs' own sans so the row has one
   face. */
.rbn-tabs .rbn-filewrap,.rbn-tabs .qat-playgrp{align-self:center;
  display:inline-flex;align-items:center;flex:none;}
.rbn-tabs .rbn-filewrap{margin-right:10px;}
.rbn-tabs #dc-file,
.rbn-tabs .qat-playgrp .dbtn{height:22px;box-sizing:border-box;
  padding:0 9px;line-height:1;font-family:var(--sans);font-size:12px;
  white-space:nowrap;display:inline-flex;align-items:center;gap:5px;
  transition-property:border-color,color,background-color,box-shadow;}
.rbn-tabs .qat-playgrp{margin:0 10px 0 4px;}
.rbn-tabs .qat-playgrp #dc-playmore{padding:0 7px;}
.rbn-tabs .qat-play .bic{width:12px;height:12px;}
.deck.creating .rbn-tabs .rbn-tabset,.deck.creating .rbn-tabs .et-hint,
.deck.creating .rbn-tabs .rbn-fold,
.deck:not(.editing) .rbn-tabs .rbn-hidebtn{display:none;}
/* fitTabStrip's rungs (05-figures-and-ribbon.js), each a step down from
   the resting sizes above: tighter tabs and buttons and no hint; then the
   tab words a point smaller; then the strip scrolls. Geometry must not
   transition under a fitter, so the strip's buttons ease their colours
   only. */
.rbn-tabs .dbtn{
  transition-property:border-color,color,background-color,box-shadow;}
.rbn-tabs.rt-c1 .rbn-tab{padding:0 8px;}
.rbn-tabs.rt-c1 .rbn-filewrap{margin-right:6px;}
.rbn-tabs.rt-c1 .qat-playgrp{margin-right:6px;}
.rbn-tabs.rt-c1 #dc-file,
.rbn-tabs.rt-c1 .qat-playgrp .dbtn{padding-left:6px;padding-right:6px;}
.rbn-tabs.rt-c1 .et-hint{display:none;}
.rbn-tabs.rt-c2 .rbn-tab{padding:0 6px;font-size:12px;}
/* closer again, before the strip gives up and scrolls */
.rbn-tabs.rt-c3 .rbn-tab{padding:0 3px;}
.rbn-tabs.rt-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;}
/* ---- The zoom, in the tab row ----
   In the tab row it costs no height and is on every tab. Button-high for
   the 28px strip, like Find and Present beside it; editing only, since the
   builder has no page to zoom. */
.deck-zoombar{display:none;align-self:center;align-items:center;gap:2px;
  flex:none;margin-left:4px;}
.deck.editing .deck-zoombar{display:inline-flex;}
/* two classes on the button, so the RIBBON's density rungs (the erc1-3
   and erc-tight rules on its small buttons) do not reach up into this
   row: the strip has its own ladder, and a width the ribbon's fitter
   changes under fitTabStrip is a width fitTabStrip measured wrong */
.rbn-tabs .deck-zoombar .dbtn.rbn-sm,.rbn-tabs .deck-zoombar .dbtn.rbn-ico{
  height:22px;min-height:0;box-sizing:border-box;padding:0 8px;
  line-height:1;font-family:var(--sans);font-size:12px;white-space:nowrap;
  display:inline-flex;
  align-items:center;justify-content:center;}
.rbn-tabs .deck-zoombar .dbtn.rbn-ico{width:24px;padding:0;font-size:13px;}
.rbn-tabs.rt-c1 .deck-zoombar .dbtn.rbn-sm{padding:0 6px;}
/* text in the middle or at the foot of a box that keeps a height
   (min-height, so text that outgrows it still grows the box) */
/* (.an-text is a flex ROW -- the words and the move handle -- so the
   vertical place is the cross axis) */
.an-item.an-text.an-va-m{align-items:center;}
.an-item.an-text.an-va-b{align-items:flex-end;}
/* the mini toolbar: the ribbon's own faces, beside the text run */
.mini-tb{position:fixed;z-index:70;display:flex;align-items:center;gap:3px;
  padding:4px;border-radius:9px;background:var(--chrome-1);
  border:1px solid var(--chrome-line);box-shadow:0 6px 20px var(--shadow);}
.mini-tb[hidden]{display:none;}
.deck:not(.editing) .mini-tb{display:none;}
.mini-tb .dbtn{font-family:var(--sans);font-size:12px;height:26px;
  min-width:26px;padding:0 7px;justify-content:center;}
.mini-tb .mini-b{font-weight:700;}
.mini-tb .mini-door{font-size:11px;height:22px;padding:0 6px;white-space:nowrap;}
.mini-tb .mini-i{font-style:italic;font-family:Georgia,serif;}
.mini-tb .mini-u{text-decoration:underline;}
.mini-tb .mini-s{text-decoration:line-through;}
.mini-tb .dbtn[aria-pressed="true"]{background:var(--accent-deep,var(--cyan-deep));
  border-color:var(--accent-deep,var(--cyan-deep));color:var(--on-accent-deep,#fff);}
.mini-tb .mini-sw{display:inline-flex;gap:3px;padding:0 2px 0 4px;
  border-left:1px solid var(--chrome-line);margin-left:2px;}
.mini-tb .mini-swb{width:18px;height:18px;border-radius:50%;
  border:1px solid #ffffff44;padding:0;cursor:pointer;}
/* the highlighter's markers: square, as a marker's tip is */
.hl-row{display:flex;align-items:center;gap:5px;padding:4px 6px 6px;}
.hl-sw{width:20px;height:20px;border-radius:4px;border:1px solid #00000040;
  padding:0;cursor:pointer;}
.hl-sw:hover{outline:2px solid var(--cyan);outline-offset:1px;}
.hl-row .hl-none{font-size:11.5px;padding:3px 8px;margin-left:4px;}
.mini-tb .mini-hl{display:inline-flex;border-left:1px solid var(--chrome-line);
  margin-left:2px;padding-left:2px;}
.mini-tb .hl-row{padding:0 2px;gap:3px;}
.mini-tb .hl-sw{width:16px;height:16px;}
.mini-tb .hl-none{height:22px;min-width:22px;padding:0 4px;margin-left:1px;}
/* "Slide 3 of 14, Methods", at the head of the slide list beside the
   chooser of how the slides are listed. The column is too narrow (~185px
   on a 1366 laptop) for both on one line, so the head wraps: the chooser
   keeps its word whole and the readout drops under it, using an ellipsis
   only if its own line is too short. In a wider column the two share the
   line. Same face and height as the chooser. */
.deck-where{display:none;flex:0 1 auto;min-width:0;max-width:100%;}
.deck.editing .deck-where{display:flex;}
/* four classes, so neither the small-button base rule nor the
   ribbon's density rungs (erc1-3 and erc-tight, later in this file)
   resize it */
.film-head .deck-where .dbtn.rbn-sm{min-width:0;font-size:11px;
  padding:4px 8px;gap:5px;line-height:1.4;}
.film-head .deck-where .dbtn.rbn-sm .bic{width:12px;height:12px;}
.deck-where #where-t{overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.qat-play{flex:none;white-space:nowrap;}

/* ---------- the tab strip ---------------------------------------------
   One job's worth of groups at a time. Tabs, the permanent ribbon-layout
   chooser and the hint stay in one button-high strip. */
.rbn-tabs{display:flex;align-items:stretch;gap:2px;padding:0 10px;
  background:var(--chrome-1);border-bottom:1px solid var(--chrome-line);
  flex:none;height:28px;overflow-x:clip;}
.rbn-tabs[hidden]{display:none!important;}
.rbn-tab{font-family:var(--sans);font-size:13px;letter-spacing:0;font-weight:500;
  background:none;border:none;border-bottom:2px solid transparent;
  color:var(--chrome-ink-2);padding:0 13px;cursor:pointer;white-space:nowrap;
  transition:color .12s,border-color .12s;}
.rbn-tab:hover{color:var(--chrome-ink);}
.rbn-tab[aria-selected="true"]{color:var(--chrome-ink);
  border-bottom-color:var(--cyan);}
.rbn-tab[hidden]{display:none;}
/* The contextual tabs a selection brings stand apart from the ones always
   there: a short rule before the first of them, and their names in the
   accent, as PowerPoint tints its contextual tabs. Only the first one
   showing draws the rule, so Object alone (a picture) still has it. */
.rbn-tabs .rbn-tab.rbn-ctx{position:relative;margin-left:9px;
  color:color-mix(in srgb,var(--cyan) 62%,var(--chrome-ink));}
.rbn-tabs .rbn-tab.rbn-ctx:hover,
.rbn-tabs .rbn-tab.rbn-ctx[aria-selected="true"]{
  color:color-mix(in srgb,var(--cyan) 80%,var(--chrome-ink));}
.rbn-tabs .rbn-tab.rbn-ctx::before{content:"";position:absolute;left:-6px;
  top:6px;bottom:6px;width:1px;background:var(--chrome-ink-2);opacity:.55;}
.rbn-tabs .rbn-tab.rbn-ctx:not(.rbn-tab-off):not([hidden])~.rbn-ctx{
  margin-left:0;}
.rbn-tabs .rbn-tab.rbn-ctx:not(.rbn-tab-off):not([hidden])~.rbn-ctx::before{
  display:none;}
/* the contrast theme keeps its own white names; the rule still parts them */
body.th-contrast .rbn-tabs .rbn-tab.rbn-ctx{color:#c8dae6;}
body.th-contrast .rbn-tabs .rbn-tab.rbn-ctx[aria-selected="true"]{color:#fff;}
/* a group belongs to exactly one tab and is out of the row entirely when
   that tab is not the one showing — display:none, never visibility, so it
   costs no width in the fit measurement */
.rbn-grp[data-off]{display:none!important;}
/* folded: the group row goes, the tab strip stays. A bar that vanishes
   completely leaves no way to ask for it back. */
.deck.rbn-fold>.edit-tools{display:none;}
/* ---- Auto-hiding the bar (off by default) ----
   Uses transform, never display:none. fitEditRibbon bails on a folded bar
   because it measures 0, so a peek that used the fold would re-fit the row
   from nothing sixty times a second. Rolled up, the bar is still laid out
   and measurable, and the density ladder is unaffected. The row goes to
   zero so the stage takes the height; the bar keeps its 106px and parks
   behind the tab strip, which never moves, so there is always something to
   reach for. `:not(.rbn-fold)` is the present bar's precedence rule
   (body.pb-auto.pb-peek:not(.pb-folded), app.css): an explicit fold beats
   a peek, so the two cannot fight.
   The bar is in front of the slide. Nothing between it and the slide makes
   a stacking context, so the slide's own layers (.annot-layer at 6, its
   svg, the boxes in it) are ranked against the bar directly. 130 is over
   the stage's layers and the auto-hidden slide column (120), ties the
   column's resize handles and beats them by coming later, and stays under
   the strip (131) and the title row (132) it parks behind. Menus (240),
   .vfull (135) and the other full-window surfaces are above it. */
.deck.editing.rbn-auto{grid-template-rows:auto auto 0 minmax(0,1fr);}
.deck.editing.rbn-auto>.edit-tools{position:relative;z-index:130;
  transform:translateY(-100%);transition:transform .18s ease;}
.deck.editing.rbn-auto.rbn-peek:not(.rbn-fold)>.edit-tools{transform:none;
  box-shadow:0 18px 40px #00000066;}
/* search the commands: a field in the title row, its list a floating
   surface of the editor's */
.rbn-search{align-self:center;display:inline-flex;align-items:center;
  gap:5px;flex:0 1 210px;min-width:120px;margin-right:6px;height:22px;
  padding:0 7px;border:1px solid var(--chrome-line);border-radius:6px;
  background:var(--chrome-1);}
.rbn-search:focus-within{border-color:var(--cyan);}
.rbn-search .bic{width:12px;height:12px;flex:none;opacity:.7;}
.rbn-search input{flex:1;min-width:0;border:none;outline:none;
  background:none;color:var(--chrome-ink);font:12px var(--sans);}
.rbn-search input::placeholder{color:var(--chrome-ink-3);}
/* Advanced, at the end of the box: its word and its mark */
.rbn-search-adv{all:unset;flex:none;display:inline-flex;align-items:center;
  gap:4px;margin-right:-4px;padding:0 6px;height:16px;border-radius:4px;
  cursor:pointer;font:11px var(--sans);color:var(--chrome-ink-2);
  border-left:1px solid var(--chrome-line);}
.rbn-search-adv:hover{background:#ffffff12;color:var(--chrome-ink);}
.rbn-search-adv:focus-visible{outline:2px solid var(--cyan);}
.rbn-search-adv .bic{width:11px;height:11px;opacity:.8;}
.rbn-search-find{border-top:1px solid var(--chrome-line);margin-top:3px;}
.find-where{align-items:center;flex-wrap:wrap;row-gap:4px;}
.find-sel,.find-num{font:inherit;font-size:12px;padding:2px 4px;
  border-radius:5px;border:1px solid var(--chrome-line);
  background:var(--chrome-1);color:var(--chrome-ink);}
.find-num{width:52px;}
.find-span{display:inline-flex;align-items:center;gap:5px;font-size:12px;}
.find-span[hidden]{display:none;}
.rbn-search-list{position:fixed;z-index:320;width:min(420px,92vw);
  max-height:60vh;overflow-y:auto;padding:4px;border-radius:9px;
  background:var(--chrome-1);border:1px solid var(--chrome-line);
  box-shadow:0 12px 34px var(--shadow);}
.rbn-search-list[hidden]{display:none;}
.rbn-search-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;
  align-items:center;gap:8px;width:100%;text-align:left;background:none;
  border:none;border-radius:6px;padding:6px 8px;cursor:pointer;
  color:var(--chrome-ink);font:12.5px var(--sans);}
.rbn-search-row .bic,.rbn-search-row svg{width:16px;height:16px;}
.rbn-search-row.on,.rbn-search-row:hover{
  background:color-mix(in srgb,var(--accent) 16%,transparent);}
.rbn-search-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rbn-search-w{color:var(--chrome-ink-3);font-size:11px;white-space:nowrap;}
.rbn-search-none{padding:8px 10px;color:var(--chrome-ink-2);
  font:12px var(--sans);}
/* a command the selection does not allow yet is greyed, and shows what to
   select in place of where it lives */
.rbn-search-row.is-need .rbn-search-t{color:var(--chrome-ink-2);}
/* the show's keys, over the slide */
/* the comments sheet of a PDF, and the pane's name and edit */
.print-comments{background:#fff!important;color:#111!important;
  padding:32px 40px;box-sizing:border-box;font:12pt/1.45 var(--sans);
  height:auto!important;min-height:0!important;}
.print-comments h2{font-size:18pt;margin:0 0 12px;}
.print-comments h3{font-size:12.5pt;margin:14px 0 4px;}
.print-comments ul{margin:0 0 6px;padding-left:1.3em;}
.cmt-name{margin-right:auto;font-size:11.5px;}
.cmt-reedit{font-size:11px;margin-left:6px;}
/* a custom show's length beside its name */
.pl-cutlen{color:var(--chrome-ink-3);font-size:11px;margin-left:4px;}
/* the mini toolbar's typeface list */
.mini-font{font:12px var(--sans);max-width:150px;height:24px;
  border-radius:5px;border:1px solid var(--chrome-line);
  background:var(--chrome-1);color:var(--chrome-ink);}
.jv-keysbox{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);
  z-index:400;max-width:min(560px,92vw);max-height:86vh;overflow-y:auto;
  background:var(--chrome-1);color:var(--chrome-ink);
  border:1px solid var(--chrome-line);
  border-radius:12px;padding:16px 20px;box-shadow:0 18px 50px var(--shadow);
  font:13px var(--sans);cursor:default;}
.jv-keys-h{font-size:15px;font-weight:600;margin-bottom:10px;}
.jv-keys-list{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;
  align-items:center;}
.jv-keys-k{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;}
.jv-keys-k kbd{font:11.5px var(--mono,monospace);padding:2px 6px;
  border-radius:5px;border:1px solid var(--chrome-line);
  background:var(--chrome-2);
  white-space:nowrap;}
.jv-keys-f{margin-top:12px;font-size:11.5px;color:var(--chrome-ink-2);}
.rbn-search-row.is-need .rbn-search-w{color:var(--chrome-ink-2);}
/* the control a search ran, outlined for a moment so you learn where
   it lives */
.cmd-found{outline:2px solid var(--cyan)!important;outline-offset:2px;
  transition:outline-color .3s;}
/* Scoped to the strip. Unscoped, `.rbn-fold` would also match the deck's
   own `.rbn-fold` state class and put padding on a position:fixed;inset:0
   element, so folding the tools would make the stage smaller. */
.rbn-tabs .rbn-fold{align-self:center;padding:1px 9px;line-height:1;
  flex:none;font-size:10px;}
/* Auto-hide, right beside the fold: button-high for the strip, like the
   zoom, with its pressed state showing whether it is on */
.rbn-tabs .dbtn.rbn-sm.rbn-hidebtn{height:22px;min-height:0;
  box-sizing:border-box;align-self:center;flex:none;gap:4px;padding:0 7px;
  margin:0 0 0 4px;line-height:1;font-family:var(--sans);font-size:12px;
  white-space:nowrap;display:inline-flex;align-items:center;}
.rbn-tabs .rbn-hidebtn .bic{width:12px;height:12px;}
.deck:not(.editing) .rbn-tabs .dbtn.rbn-sm.rbn-hidebtn{display:none;}
.rbn-tabs.rt-c1 .dbtn.rbn-sm.rbn-hidebtn{padding:0 5px;}
/* the long word is dropped a rung later than Autosave's; "Hide" alone still
   reads as a command */
.rbn-hidebtn .hide-short{display:none;}
.rbn-tabs.rt-c2 .rbn-hidebtn .hide-long{display:none;}
.rbn-tabs.rt-c2 .rbn-hidebtn .hide-short{display:inline;}
/* the reminder is text in the ribbon's own sans, as the folded menus'
   choice is */
.rbn-tabs .et-hint{align-self:center;font-family:var(--sans);
  font-size:11px;color:var(--chrome-ink-3);white-space:nowrap;padding:0 8px;}
.deck.erc-nohint .rbn-tabs .et-hint{display:none;}

/* ---------- find & replace -------------------------------------------- */
.find-pop{position:fixed;top:96px;right:22px;z-index:220;width:308px;
  background:var(--chrome-3);border:1px solid var(--chrome-line);
  border-radius:10px;padding:10px;box-shadow:0 18px 52px var(--shadow);
  display:flex;flex-direction:column;
  gap:7px;font-family:var(--sans);}
.find-pop[hidden]{display:none!important;}
.find-head{display:flex;align-items:center;justify-content:space-between;}
.find-t{font:600 12px var(--sans);color:var(--chrome-ink-2);}
.find-row{display:flex;gap:5px;align-items:center;}
/* the Text / Formatting switch: the same treatment the ribbon tabs get,
   because it is the same idea — one surface, two sets of controls */
.find-modes{display:flex;gap:4px;}
.find-mode{flex:1;font:600 11.5px var(--sans);padding:4px 6px;}
.find-mode.on{background:color-mix(in srgb,var(--accent) 22%,transparent);
  color:#fff;border-color:var(--accent);}
body.light .find-mode.on{color:var(--ink);}
.find-fmt{display:flex;flex-direction:column;gap:6px;}
.find-fmt[hidden]{display:none!important;}
.find-fmt .find-ck{padding:2px 3px;border-radius:5px;}
.find-fmt .find-ck:hover{background:#ffffff0d;}
.find-fmt .ff-row{display:flex;align-items:center;gap:6px;}
.find-fmt .ff-row .find-ck{flex:1;min-width:0;}
/* the control beside a change row is narrow on purpose: the popover is
   308px and the label has to stay readable */
.find-fmt .ff-in{width:74px;font-family:var(--sans);font-size:11.5px;
  background:var(--chrome-0,#0b141d);color:var(--chrome-ink);
  border:1px solid #ffffff26;border-radius:6px;padding:3px 5px;
  outline:none;}
.find-fmt select.ff-in{width:110px;}
.find-fmt input[type=color].ff-in{width:34px;padding:1px;height:22px;}
.find-fmt .ff-none{font-size:11.5px;color:var(--chrome-ink-2);line-height:1.4;}
/* ---------- the box the style check just took you to ----------
   Edit mode only, by the same rule the guides follow: a note to the
   author, never ink on the page. The ordinary selection ring is what every
   click puts on a box, so it would not say why the box was selected.
   Removed after a moment by the chip that added it. */
.deck.editing .an-item.an-mismatch{
  outline:2px solid #f0a848;outline-offset:3px;
  box-shadow:0 0 0 6px color-mix(in srgb,#f0a848 22%,transparent);
  border-radius:2px;}
@media print{.an-item.an-mismatch{outline:none!important;
  box-shadow:none!important;}}

/* ---------- deck tokens ---------- */
.canvas-menu .ff-none{font-size:11.5px;color:var(--chrome-ink-2);line-height:1.4;
  padding:2px 4px 4px;}
.canvas-menu .ff-row{display:flex;align-items:center;gap:6px;}
.canvas-menu .ff-in{width:74px;font-family:var(--sans);font-size:11.5px;
  background:var(--chrome-0,#0b141d);color:var(--chrome-ink);
  border:1px solid #ffffff26;border-radius:6px;padding:3px 5px;
  outline:none;}
.canvas-menu input[type=color].ff-in{width:34px;padding:1px;height:22px;}
/* a panel of rows, one under another, rather than the columns the
   right-click menu uses: the preview, colours and notes would otherwise be
   dealt out across them */
.sh-menu.canvas-menu.tok-pop{display:flex;flex-direction:column;gap:4px;
  width:min(330px,94vw);padding:8px 10px 10px;}
.sh-menu.canvas-menu.tok-pop[hidden]{display:none;}
.tok-nm{flex:1;min-width:0;font-size:11.5px;color:var(--chrome-ink);}
body.light .tok-nm{color:var(--ink-2);}
/* a deck colour reads as a chip you can point at, not a preset: the
   ring says "this one has a name" */
.sw.sw-tok{box-shadow:0 0 0 1px #ffffff40 inset,0 0 0 2px #ffffff1a;}
/* what a deck colour is used on, beside its name. Quiet, and quieter still
   when the answer is "nothing": the row is an offer then, not a fault. */
.tok-use{flex:none;margin-left:auto;padding-right:8px;
  font-family:var(--mono);font-size:10px;letter-spacing:.04em;
  color:var(--chrome-ink-3,#8ea2b3);}
.tok-use.tok-none{opacity:.55;font-style:italic;}
/* the spare colours nothing uses, behind one row, so the list does not
   show entries that are not used */
.ff-more{display:block;width:100%;text-align:left;background:none;
  border:1px dashed var(--chrome-line,#ffffff26);border-radius:6px;
  color:var(--chrome-ink-3,#8ea2b3);font-family:var(--sans);
  font-size:11px;padding:5px 9px;margin:2px 0 0;cursor:pointer;}
.ff-more:hover{border-color:var(--cyan);color:var(--chrome-ink);}
.sw-tokrow{display:flex;flex-wrap:wrap;align-items:center;gap:3px;
  width:100%;padding-bottom:3px;margin-bottom:2px;
  border-bottom:1px solid #ffffff14;}
body.light .find-fmt .find-ck:hover{background:var(--surface-hover);}
.find-in{flex:1;min-width:0;font-family:var(--sans);font-size:12px;
  background:var(--chrome-0,#0b141d);color:#eaf2f8;
  border:1px solid #ffffff26;border-radius:6px;padding:5px 8px;
  outline:none;}
.find-in:focus{border-color:var(--cyan);}
.find-opts{display:flex;gap:12px;}
.find-pop [data-fmode][hidden]{display:none;}
.find-ck[hidden]{display:none!important;}   /* restates [hidden], which display rules beat */
.find-ck{font-size:11px;color:var(--chrome-ink-2);display:flex;align-items:center;
  gap:4px;cursor:pointer;}
.find-foot{display:flex;align-items:center;gap:5px;}
.find-count{font-family:var(--mono);font-size:10px;color:var(--chrome-ink-2);}
.find-list{max-height:210px;overflow-y:auto;display:flex;
  flex-direction:column;gap:2px;}
.find-hit{text-align:left;font-size:11.5px;line-height:1.35;
  background:none;border:1px solid transparent;border-radius:6px;
  color:#b9cad8;padding:4px 7px;cursor:pointer;}
.find-hit:hover{background:#ffffff0f;color:#fff;}
.find-hit.cur{border-color:var(--cyan);color:var(--chrome-ink);
  background:color-mix(in srgb,var(--accent) 12%,transparent);}
.find-hit .fh-n{font-family:var(--mono);font-size:9.5px;color:var(--chrome-ink-2);
  margin-right:6px;}
.find-hit mark{background:var(--cyan);color:var(--on-accent);border-radius:2px;
  padding:0 1px;}

.deck-main{flex:1;display:flex;min-height:0;}
.deck-stagewrap{flex:1;display:flex;flex-direction:column;min-width:0;
  position:relative;}
.deck-stage{flex:1;min-height:0;display:flex;padding:26px 78px 6px;
  overflow:hidden;}
/* it holds the keyboard for the editor (deckFocusTake) -- the whole
   canvas ringed every time a deck opened from the keyboard is no help;
   the selection outline is what says where you are */
.deck-stage:focus{outline:none;}

/* editing: the slide is a real bounded page surface (16:9 by default —
   the Page dropdown can make it 4:3 or a poster), so you can see exactly
   where things will sit when presented */
/* the stage is padded 18px at the foot as at the head, so the page gets the
   rest: sizeSlideTo measures this padding */
.deck.editing .deck-stage{align-items:center;justify-content:center;
  padding:18px 26px 18px;}
.deck.editing .slide{flex:none;width:100%;max-height:100%;
  aspect-ratio:var(--page-ar,16/9);margin:auto;background:var(--chrome-0,#0b141d);
  border:2px solid #ffffff2b;border-radius:12px;
  box-shadow:0 14px 60px #00000066,inset 0 0 0 1px #00000055;}
/* zoomed past the window: the stage scrolls, content anchors top-left
   (margin:auto still centers it while it fits) */
.deck.editing .deck-stage.zoomed{overflow:auto;
  align-items:flex-start;justify-content:flex-start;}
/* An item dragged past the page edge must stay reachable. `.spill` is
   stamped by renderAnnots when anything actually sits outside the page, so
   scrollbars appear only when something is out there, not permanently at
   the edge of the canvas. */
.deck.editing .deck-stage.spill{overflow:auto;}
/* the slide keeps its own size; the room the strays need is made by
   padding the stage, so nothing on the page moves when one appears */
.deck.editing .deck-stage.spill .slide{margin:auto;}
.deck.editing .an-item{--spill-guard:0;}
/* strays are shown, not hidden: dimmed and outlined so it is obvious
   they are off the page rather than just badly placed */
.deck.editing .an-item.an-offpage{outline:1px dashed #e5484d99;
  outline-offset:2px;}
/* a custom page (poster / portrait) letterboxes in playback too */
.deck.custom-page .vpage{display:flex;}
/* the Page dropdown menu */
.sh-menu.page-menu{display:block;width:300px;padding:6px;}
.page-menu .page-opt{display:block;width:100%;text-align:left;}
.page-menu .page-opt[aria-pressed="true"]{color:#fff;
  background:var(--cyan-deep);border-radius:6px;}
/* ---- Panes dock, they do not cover ----
   Layers, Animation, Versions, Notebooks and Print check share one shell.
   Each is a list consulted while working on the thing underneath, so it
   must not cover it. The stage gives up the width instead: .deck.pane-open
   pads the stage by the pane's width, and because sizeSlideTo fits the
   page to stage.clientWidth the slide gets smaller and stays fully
   visible. One variable drives both, so they cannot disagree. */
/* 272px: a row is a kind dot, a name, an eye, a lock and a build number,
   and at 232 the name is the thing that gives way. A width the user
   chooses is remembered per pane. */
.deck{--pane-w:272px;}
/* the resize handle down the left edge */
.selpane-grip{position:absolute;left:0;top:0;bottom:0;width:7px;
  cursor:ew-resize;border-radius:10px 0 0 10px;z-index:2;}
.selpane-grip:hover,.selpane-grip:active{
  background:color-mix(in srgb,var(--accent) 45%,transparent);}
.sh-menu.sp-actions{min-width:236px;}
.deck.editing .deck-stage{padding-right:42px;}
.deck.pane-open .deck-stage{padding-right:calc(var(--pane-w) + 40px);}
.deck.pane-left-open .deck-stage{padding-left:calc(var(--pane-left-w) + 26px);}
.deck.pane-open.rbn-side .deck-stage{
  padding-right:calc(var(--pane-w) + var(--rbn-side-w) + 40px);}
/* the Objects pane: everything on the slide — select, hide, lock */
.selpane{position:absolute;top:8px;right:8px;bottom:8px;
  width:var(--pane-w);
  z-index:60;background:var(--chrome-3,#101c28);border:1px solid #ffffff22;
  border-radius:10px;display:flex;flex-direction:column;
  box-shadow:0 14px 44px #00000066;}
.selpane[hidden]{display:none;}
/* panes resize by their native corner grip and drag by their header; the
   position and size chosen are remembered */
/* every pane is the editor's: the Chart, Columns, Clip and other panes
   left open must not show over the show */
.deck:not(.editing) .selpane{display:none;}
.selpane{resize:both;overflow:hidden;min-width:190px;min-height:120px;}
.side-pane{top:0;right:0;bottom:0;border-radius:0;border-top:0;
  border-bottom:0;box-shadow:-8px 0 28px #0000004d;}
.side-pane.dock-left{left:0;right:auto;box-shadow:8px 0 28px #0000004d;}
.side-pane.dock-left .selpane-grip{left:auto;right:0;}
.side-pane .selpane-h{flex-wrap:wrap;}
.side-pane .pane-head-actions{flex:1 1 100%;min-width:0;flex-wrap:wrap;
  justify-content:flex-end;}
.pane-side{font-size:10px;padding:3px 5px;white-space:nowrap;}
.pane-head-actions{display:flex;align-items:center;margin-left:auto;}
.pane-tabs{position:absolute;right:0;top:50%;z-index:59;
  display:flex;flex-direction:column;gap:2px;transform:translateY(-50%);
  transition:right .15s ease;}
.pane-tab{width:34px;min-height:82px;padding:7px 5px;border:1px solid
  var(--chrome-line);border-right:0;border-radius:7px 0 0 7px;
  background:var(--chrome-2);color:var(--chrome-ink-2);cursor:pointer;
  font:11px/1.1 var(--sans);writing-mode:vertical-rl;
  display:flex;align-items:center;justify-content:center;gap:6px;}
.pane-tab .bic{width:14px;height:14px;transform:rotate(90deg);}
.pane-tab:hover,.pane-tab[aria-pressed="true"]{color:var(--chrome-ink);
  background:var(--surface-active);border-color:var(--accent);}
.linkpane-body{display:flex;flex-direction:column;gap:8px;
  padding:9px;overflow:auto;}
.lp-intro,.lp-empty{font:12px/1.45 var(--sans);color:var(--chrome-ink-2);}
.lp-source,.lp-set-h{display:flex;flex-direction:column;gap:2px;
  padding:8px;border-radius:7px;background:var(--chrome-2);
  font:12px/1.35 var(--sans);color:var(--chrome-ink);}
.lp-source span,.lp-set-h span{font-size:11px;color:var(--chrome-ink-2);}
.lp-head{margin-top:4px;font:600 11.5px var(--sans);color:var(--chrome-ink);}
.linkpane-body>.lp-action,.linkpane-body>.lp-secondary{width:100%;
  justify-content:flex-start;padding:7px 9px;}
.linkpane-body>.lp-action{border-color:var(--accent);}
.lp-set{display:flex;flex-direction:column;gap:4px;padding-bottom:8px;}
.lp-copy{width:100%;justify-content:flex-start;padding:6px 8px;}
.lp-copy.on{border-color:var(--accent);background:var(--surface-active);}
.linkpane-body>.cmp-grid{grid-template-columns:1fr 1fr;}
/* the edge tabs are the editor's and are never shown in the show (they
   would sit over the slide's right edge); View > Side tabs hides them and
   the stage takes back the strip they kept */
.deck:not(.editing) .pane-tabs,.deck.no-pane-tabs .pane-tabs{display:none;}
.deck.editing.no-pane-tabs:not(.pane-open) .deck-stage{padding-right:26px;}
.deck.pane-open .pane-tabs{right:var(--pane-w);}
.deck.rbn-side .pane-tabs{right:var(--rbn-side-w);}
.deck.pane-open.rbn-side .pane-tabs{
  right:calc(var(--pane-w) + var(--rbn-side-w));}
.pane-tabs.pane-tabs-left{left:0;right:auto;}
.deck.pane-left-open .pane-tabs-left{left:var(--pane-left-w);right:auto;}
.pane-tabs-left .pane-tab{border-right:1px solid var(--chrome-line);
  border-left:0;border-radius:0 7px 7px 0;}
/* the Background menu is rows, not the shape gallery's 3-column grid it
   would otherwise inherit from .sh-menu */
.sh-menu.bg-menu{display:block;width:230px;}
.bg-menu .hd-row{display:flex;gap:4px;align-items:center;}
.bg-chip{width:26px;height:20px;border-radius:5px;padding:0;
  border:1px solid #ffffff33;}
.bg-auto,.bg-w{font-size:10.5px;padding:3px 8px;flex-direction:row;}
/* wrap, don't clip: five tools never fit the pane's default width on one
   line, and a clipped "New folder" is a tool that does not exist */
.sp-tools{display:flex;flex-wrap:wrap;gap:5px;padding:4px 4px 9px;}
.sp-tool{font-size:10.5px;padding:4px 9px;white-space:nowrap;}
.sp-tool .bic{width:11px;height:11px;vertical-align:-2px;}
.sp-tool[disabled]{opacity:.4;cursor:default;}
.sp-quick{display:flex;gap:3px;align-items:center;}
.sp-quick-b{width:29px;height:27px;padding:5px;display:grid;place-items:center;}
.sp-quick-b .bic{width:13px;height:13px;}
.sp-quick-b[disabled]{opacity:.35;cursor:default;}
.sw-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px;margin:0 0 8px;}
.sw-target{justify-content:center;font-size:11px;padding:6px 10px;}
.sw-target.on{border-color:var(--amber);background:var(--amber-soft);}
.sp-folder{display:flex;align-items:center;gap:6px;padding:5px 6px;
  border-radius:6px;background:#ffffff0a;margin-top:6px;cursor:pointer;}
.sp-folder:hover{background:#ffffff14;}
.sp-gcol{width:12px;height:12px;border-radius:3px;border:none;
  cursor:pointer;flex:none;padding:0;}
.sp-gname{font-weight:600;}
.sp-row.sp-ing{margin-left:10px;border-left:2px solid transparent;
  padding-left:6px;}
/* the ribbon sits above the stage wrap now, so the panes' own 8px is
   already clear of it (the 106px clearance dated from the ribbon living
   inside the same box) */
.deck.editing:not(.rbn-side) .selpane{top:8px;}
/* a pane's title, as a dialog's is (.eq-t) */
.selpane-h{display:flex;align-items:center;justify-content:space-between;
  padding:8px 8px 7px 12px;font-family:var(--sans);font-size:12.5px;
  font-weight:600;letter-spacing:0;color:var(--chrome-ink);
  border-bottom:1px solid #ffffff14;}
.selpane-list{flex:1;overflow-y:auto;padding:5px;}
.selpane-empty{color:var(--chrome-ink-3);font-size:12.5px;line-height:1.5;padding:12px;}
.sp-row{display:flex;align-items:center;gap:7px;
  border-radius:7px;padding:6px 7px;color:#c9d6e2;font-size:12px;
  cursor:pointer;}
.sp-row:hover{background:#ffffff0c;}
.sp-row.sel{background:color-mix(in srgb,var(--accent) 28%,transparent);
  color:#fff;box-shadow:inset 3px 0 var(--accent);}
.sp-row.offrow .sp-t{opacity:.45;text-decoration:line-through;}
.sp-kind{flex:none;width:8px;height:8px;border-radius:2px;
  background:#8ba0b2;}
.sp-kind.k-cell{background:var(--cyan);}
.sp-kind.k-text{background:#f0a848;}
.sp-kind.k-rect,.sp-kind.k-arrow{background:#ff6b57;}
.sp-kind.k-image{background:#46a892;}
.sp-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
/* The build column: monospace and a fixed width so the numbers line up as
   a column readable straight down. Dim until the object has a build,
   because the common answer is "no build" and a list of bright dots would
   be noise. */
.sp-step{flex:none;display:flex;align-items:center;gap:3px;
  background:none;border:none;color:var(--chrome-ink-3);cursor:pointer;
  font-family:var(--mono);font-size:10px;padding:1px 4px;
  border-radius:4px;line-height:1;min-width:34px;justify-content:flex-end;}
.sp-step:hover{color:var(--chrome-ink);background:var(--surface-active);}
.sp-step.on{color:var(--cyan);}
/* the one hue with no token of its own: a tie is neither a warning nor an
   accent, so it gets a light value here rather than an extra entry in
   every theme */
.sp-step.tied{color:color-mix(in srgb,#a07be0 70%,var(--chrome-ink));}
.sp-stepn{letter-spacing:.02em;}
/* a row listed under the click it leaves on, in the by-build view: it is
   not arriving here, and a list that showed both the same way would read
   as the object appearing twice */
.sp-row.sp-leaving .sp-t{opacity:.6;font-style:italic;}
/* and said, not just dimmed: the same object is listed twice in this
   view -- once where it arrives, once where it goes -- and two identical
   rows would read as a duplicate rather than as a swap. */
.sp-row.sp-leaving .sp-t::before{content:"goes — ";
  font-style:normal;color:var(--danger);}
.sp-act{flex:none;background:none;border:none;color:var(--chrome-ink-3);
  cursor:pointer;font-size:12px;padding:1px 3px;border-radius:4px;
  line-height:1;}
.sp-act:hover{color:#fff;background:#ffffff14;}
.sp-act.on{color:var(--cyan);}
/* the middle state of the three-state lock: on, but not all the way.
   Amber rather than a dimmer cyan, so "position only" is a different
   thing at a glance and not a half-rendered version of the full one. */
.sp-act.on.half{color:var(--amber);}
/* opaque: a panel you read lists through must not show the page through
   it */
body.light .selpane{background:var(--chrome-2);
  border-color:var(--chrome-line);}
body.light .sp-row{color:var(--ink-2);}
body.light .sp-row.sel{background:color-mix(in srgb,var(--accent) 24%,transparent);
  color:var(--ink);}
body.light .sp-act:hover{color:var(--ink);background:var(--surface-active);}
/* Fully locked objects: visible but untouchable on the canvas */
.deck.editing .an-locked,.deck.editing .an-locked *{
  pointer-events:none!important;cursor:default!important;}
/* Position locked: everything still works except moving it, so the only
   thing to say is "this will not drag" — said with the cursor on the
   body, and left alone on the handles, which do still resize. */
.deck.editing .an-pinned{cursor:default;}

/* vertical "code trail": each slide can descend into the cells that
   made it (down arrow / ArrowDown), one step per screen */
.vstack{flex:1;min-width:0;display:flex;flex-direction:column;
  transition:transform .35s ease;}
.vslide{flex:none;height:100%;display:flex;min-height:0;min-width:0;}
.vslide.vstep{padding:10px 0 4px;}
.vstep-in{flex:1;display:flex;flex-direction:column;min-height:0;
  min-width:0;background:var(--chrome-1,#0e1926);border:1px solid #ffffff10;
  border-radius:12px;padding:16px 20px;}
.vstep-head{display:flex;align-items:center;gap:10px;flex:none;
  margin-bottom:10px;min-width:0;}
.vstep-t{font-size:15px;font-weight:600;color:var(--chrome-ink);flex:1;
  min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.vstep-n{font-family:var(--mono);font-size:10.5px;color:var(--chrome-ink-2);
  flex:none;}
.vstep-body{flex:1;min-height:0;overflow:auto;}
.vstep-none{color:var(--chrome-ink-2);font-size:13px;}
.vstep-thumb{flex:none;height:34px;max-width:56px;object-fit:contain;
  border-radius:5px;background:#fff;padding:2px;}

/* the trace map: minimised, numbered steps grouped per plot, arranged
   like the plots on the slide; colours tie group <-> plot */
.vslide.voverview{padding:10px 0 4px;}
.vo-in{flex:1;display:flex;flex-direction:column;min-height:0;
  min-width:0;gap:12px;}
.vo-title{flex:none;font:600 12px var(--sans);color:var(--chrome-ink-2);
  text-align:center;display:flex;gap:10px;align-items:center;
  justify-content:center;flex-wrap:wrap;}
/* match the docs top-bar toggles so the trail feels part of the same tool */
.vo-xall,.vo-fbtn{font-family:var(--mono);font-size:11px;letter-spacing:.04em;
  text-transform:none;background:var(--surface-hover);border:1px solid var(--chrome-line);
  color:var(--chrome-ink);border-radius:var(--rad);padding:6px 12px;cursor:pointer;
  display:inline-flex;align-items:center;gap:7px;
  transition:color .15s,background-color .15s,border-color .15s,
    box-shadow .15s,opacity .15s;}
.vo-xall:hover,.vo-fbtn:hover{border-color:var(--cyan);color:var(--chrome-ink);}
/* the trail's Code-types / Output-types filter dropdowns */
.vo-fdrop{position:relative;display:inline-block;}
.vo-fmenu{position:absolute;top:calc(100% + 5px);left:0;z-index:40;
  background:var(--chrome-2,#16273a);border:1px solid #ffffff22;border-radius:8px;padding:5px;
  min-width:150px;display:flex;flex-direction:column;text-align:left;
  box-shadow:0 12px 34px #00000077;}
.vo-fmenu[hidden]{display:none;}
.vo-fmenu .ckf-row{display:flex;align-items:center;gap:8px;padding:5px 8px;
  border-radius:5px;cursor:pointer;color:var(--chrome-ink);font-size:12px;
  font-family:var(--sans);text-transform:none;letter-spacing:0;}
.vo-fmenu .ckf-row:hover{background:color-mix(in srgb,var(--accent) 13%,transparent);}
.vo-step.vo-filtered{display:none;}
.vo-plots{flex:none;display:flex;gap:16px;justify-content:center;
  flex-wrap:wrap;}
.vo-plot{display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:9px 11px;border-radius:10px;background:var(--chrome-1,#0e1926);
  border:2px solid #ffffff22;}
.vo-plot img{max-height:11vh;max-width:16vw;width:auto;height:auto;
  object-fit:contain;border-radius:6px;background:#fff;padding:2px;}
.vo-plot-t{font-size:11px;color:var(--chrome-ink);max-width:16vw;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.vo-groups{flex:1;min-height:0;display:flex;gap:14px;}
.vo-col{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;
  border:1.5px solid #ffffff1f;border-radius:12px;padding:11px;
  overflow:auto;background:var(--chrome-1,#0e1926);}
.vo-col-h{flex:none;font-size:12.5px;font-weight:600;color:var(--chrome-ink);
  display:flex;align-items:center;gap:8px;min-width:0;}
.vo-col-h span{overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
/* section (## heading) + subsection (### heading) dividers in the trace */
.vo-sec{font:600 11.5px var(--sans);color:var(--chrome-ink);
  padding:8px 2px 4px;margin-top:6px;
  border-bottom:1px solid #ffffff1f;
  display:flex;align-items:center;gap:7px;}
.vo-col>.vo-sec:first-of-type,.vo-col-h+.vo-sec{margin-top:0;}
/* section collapse chevron + hide eye (mirror the docs sidebar/section head) */
.vo-sec-chev{flex:none;font-size:11px;line-height:1;color:var(--chrome-ink-2);
  cursor:pointer;transition:transform .15s,color .15s;}
.vo-sec-chev:hover{color:var(--chrome-ink);}
.vo-sec.collapsed .vo-sec-chev{transform:rotate(-90deg);}
.vo-sec-lab{flex:1;min-width:0;cursor:pointer;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.vo-sec-eye{flex:none;font-size:11px;line-height:1;color:var(--chrome-ink-2);
  cursor:pointer;opacity:0;padding:1px 4px;border-radius:4px;
  transition:opacity .12s,color .12s,background .12s;}
.vo-sec:hover .vo-sec-eye{opacity:.65;}
.vo-sec-eye:hover{opacity:1;color:var(--chrome-ink);background:var(--surface-active);}
.vo-sec-body{display:flex;flex-direction:column;gap:8px;}
.vo-sec-body.vo-sec-fold{display:none;}
.vo-subsec{font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;
  color:var(--chrome-ink-2);padding:5px 2px 2px;}
.vo-step{display:flex;flex-direction:column;background:var(--chrome-4,#12202e);
  border:1px solid #ffffff14;border-radius:8px;overflow:hidden;
  flex:none;min-width:0;transition:border-color .15s;}
.vo-step-h{display:flex;align-items:center;gap:9px;width:100%;
  padding:9px 11px;background:none;border:none;cursor:pointer;
  text-align:left;font-family:var(--sans);color:var(--chrome-ink);min-width:0;}
.vo-step-h:hover{background:#1a2c3d;}
.vo-num{font-family:var(--mono);font-size:11px;font-weight:600;
  width:22px;height:22px;border-radius:6px;display:flex;
  align-items:center;justify-content:center;flex:none;
  background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--cyan);}
.vo-step-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-size:12.5px;}
.vo-chev{flex:none;color:var(--chrome-ink-2);font-size:13px;
  transition:transform .2s;}
.vo-step.open .vo-chev{transform:rotate(90deg);}
.vo-full{background:none;border:none;color:var(--chrome-ink-2);cursor:pointer;
  font-size:13px;flex:none;padding:2px 5px;border-radius:4px;}
.vo-full:hover{color:var(--chrome-ink);background:var(--surface-active);}
/* eyeball: hide a step while presenting */
.vo-eye{background:none;border:none;color:var(--chrome-ink-2);cursor:pointer;
  font-size:12px;flex:none;padding:2px 5px;border-radius:4px;
  line-height:1;opacity:.75;position:relative;}
.vo-eye:hover{color:var(--chrome-ink);background:var(--surface-active);opacity:1;}
.vo-eye.off{color:var(--chrome-ink-3);}
.vo-eye.off::after{content:"";position:absolute;left:4px;right:4px;
  top:calc(50% - 1px);height:1.6px;background:currentColor;
  transform:rotate(-18deg);border-radius:2px;}
.vo-step.hidden{opacity:.5;border-style:dashed;}
.vo-step.hidden .vo-step-t::after{content:"Hidden";margin-left:8px;
  color:var(--chrome-ink-2);font:500 11px var(--sans);}
.vo-xall.on,.vo-fbtn.on{border-color:var(--cyan);color:var(--chrome-ink);
  background:color-mix(in srgb,var(--accent) 13%,transparent);}
.vo-step-b{display:none;padding:2px 10px 10px;}
.vo-step.open .vo-step-b{display:block;}

/* scrollable playback: the slide fills the screen, the trace flows
   beneath it — scroll (or ArrowDown) between them */
.deck-stage.scrolly{display:block;overflow-y:auto;
  scroll-snap-type:y proximity;padding-top:0;padding-bottom:0;}
/* the slide fills the viewport exactly so the code trace sits fully
   below the fold — its buttons never peek out under the slide */
/* Playback fills the screen. The stage's 78px side padding clears the
   arrows and its 26/6 floats the page clear of the ribbon; both are
   editing affordances, and in a talk they would be dead width and height
   fed into sizeSlideTo's fit. Nothing needs the room: the arrows, the Show
   code pill and the slide count are all position:absolute over the stage.
   Specificity 0,3,0, so it beats the 860px media query's bare .deck-stage
   and, being later in the file, .deck-stage.scrolly and .deck.pane-open
   too; .deck.rbn-side is toggled off unless mode==='edit' so it cannot
   fight this. */
.deck:not(.editing) .deck-stage{padding:0;}
/* ...and the page wrapper gives up its own 22+8 for the same reason:
   height:100% now really is the viewport, so the slide sized to the
   full stage height sits in it exactly instead of overflowing it by
   30px and bleeding over the trail. */
.vpage{height:100%;box-sizing:border-box;padding:0;
  display:flex;flex-direction:column;min-width:0;
  scroll-snap-align:start;}
.vtrace{scroll-snap-align:start;display:flex;flex-direction:column;
  gap:14px;padding:64px 78px 60px;min-height:70%;}
/* top clears the ↑ arrow; the 78px sides are the reading margin the stage
   used to provide, now on the thing that needs to be inset to be read. The
   slide above goes full-bleed instead. */
.vtrace .vo-groups{flex:none;align-items:flex-start;}
.vtrace .vo-col{overflow:visible;}
/* several plots: the thumbnails PICK which trace shows */
.vo-plots .vo-thumb-btn{cursor:pointer;opacity:.45;
  transition:opacity .15s;}
.vo-plots .vo-thumb-btn:hover{opacity:.8;}
.vo-plots .vo-thumb-btn.sel{opacity:1;}
/* the docs dependency tree, hosted under a slide (always dark — the
   playback canvas is dark in both themes) */
.deck-tracetree .treeview{display:block;padding:0 4px 30px;}
.deck-tracetree .tt-present{display:none;}
.deck-tracetree .tree-toolbar{
  background:linear-gradient(var(--chrome-0,#0b141d) 72%,transparent);}
.deck-tracetree .tree-toolbar .tt-title{color:var(--chrome-ink-2);}
.deck-tracetree .tt-btn{background:var(--chrome-3,#101c28);border-color:#ffffff22;
  color:var(--chrome-ink);}
.deck-tracetree .tt-btn:hover{border-color:var(--cyan);color:var(--chrome-ink);}
.deck-tracetree .tree-scroll{border-color:#ffffff1a;background:
  radial-gradient(circle at 1px 1px,#ffffff12 1px,transparent 0)
  0 0/22px 22px,var(--chrome-1,#0e1926);}
.deck-tracetree .tree-node{
  background:color-mix(in srgb,var(--nc) 12%,var(--chrome-3,#101c28));
  border-color:#ffffff1c;border-top-color:var(--nc);
  box-shadow:0 1px 3px #00000040;}
.deck-tracetree .tree-node.active{border-color:var(--cyan);}
.deck-tracetree .tn-title{color:var(--chrome-ink);}
.deck-tracetree .tn-btn{color:var(--chrome-ink-2);}
.deck-tracetree .tn-btn:hover{background:#ffffff14;}
.deck-tracetree .tn-resize{border-color:#8ba0b2;}
.deck-tracetree .tree-node-body{border-top-color:#ffffff14;}
.deck-tracetree .tree-node.tn-off{border-top-color:#ffffff1c;}
.deck-tracetree .tree-node.tn-off .tn-title{color:var(--chrome-ink-2);}
.deck-tracetree .tree-empty{color:var(--chrome-ink-2);}
.deck-codepill{position:absolute;left:50%;transform:translateX(-50%);
  bottom:16px;z-index:7;display:flex;align-items:center;gap:8px;
  background:color-mix(in srgb,var(--chrome-2,#16273a) 88%,transparent);border:1px solid #ffffff2e;border-radius:22px;
  color:var(--chrome-ink);font-family:var(--mono);font-size:11.5px;
  padding:9px 17px;cursor:pointer;backdrop-filter:blur(4px);
  transition:border-color .15s,color .15s;}
.deck-codepill:hover{border-color:var(--cyan);color:var(--chrome-ink);}
.deck-codepill[hidden]{display:none;}
.cp-arr{font-size:14px;line-height:1;}
.deck-arrow.up{left:50%;top:12px;transform:translateX(-50%);
  width:44px;height:44px;font-size:24px;}
/* the way back up is the same worded button as the way down */
.deck-codepill.up{top:12px;bottom:auto;}
.deck-count{position:absolute;right:18px;bottom:12px;z-index:7;
  font-family:var(--mono);font-size:11.5px;color:var(--chrome-ink-2);}
.deck.creating .deck-count,.deck.editing .deck-count{display:none;}

/* one step, full screen */
.vfull{position:fixed;inset:0;z-index:135;background:color-mix(in srgb,var(--chrome-0,#0b141d) 98%,transparent);
  display:flex;flex-direction:column;padding:22px 44px 30px;}
.vfull[hidden]{display:none;}
.vfull-head{display:flex;align-items:center;gap:12px;flex:none;
  margin-bottom:14px;}
.vfull-t{font-size:17px;font-weight:600;color:var(--chrome-ink);flex:1;
  min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.vfull-body{flex:1;min-height:0;overflow:auto;}

/* the figure "Plot trace" button, and View > Variables' Trace this
   variable, which wears its look but not its class: .plot-trace-btn is a
   figure's Trace, to the page and to whatever finds one */
/* the card's actions live together at the top right */
.plot-trace-btn{margin-left:auto;}
.plot-trace-btn+.cell-eye{margin-left:0;}
.plot-trace-btn,.var-trace{flex:none;font:500 11.5px var(--sans);
  letter-spacing:0;border:1px solid var(--line);background:none;
  color:var(--ink-2);border-radius:5px;padding:3px 9px;cursor:pointer;
  transition:background .15s,color .15s,border-color .15s;white-space:nowrap;}
.plot-trace-btn:hover,.var-trace:hover{background:color-mix(in srgb,var(--accent) 9%,transparent);color:var(--cyan-deep);
  border-color:color-mix(in srgb,var(--accent) 33%,transparent);}
body:not(.light) .plot-trace-btn:hover,body:not(.light) .var-trace:hover{color:var(--cyan);border-color:color-mix(in srgb,var(--accent) 40%,transparent);}
/* ---- Plot-trace TAB: a real notebook shell holding just this plot's
   lineage cells, so every global filter + per-card control works inside it.
   No sidebar — the content spans the full width. ---- */
/* :not([hidden]) both raises specificity above .nbshell[hidden]{display:none}
   and stops matching once activate() hides the tab, so switching tabs works */
.nbshell.tracetab:not([hidden]){display:grid;}
.nbshell.tracetab .stage{width:100%;}
.tracetab-head{margin:0 0 14px;padding-bottom:12px;
  border-bottom:1px solid #ffffff14;position:relative;}
/* Cells | Tree switcher, right in the trace header */
.trace-viewsw{position:absolute;right:0;top:6px;display:flex;gap:6px;}
.dbtn.tvw.on{background:var(--cyan-deep);border-color:var(--cyan-deep);
  color:var(--on-accent-deep,#fff);}
body.light .trace-viewsw .dbtn{background:var(--btn-bg);
  border-color:var(--btn-border);color:var(--btn-ink);}
body.light .trace-viewsw .dbtn.tvw.on{background:var(--cyan-deep);
  border-color:var(--cyan-deep);color:var(--on-accent-deep,#fff);}
.tracetab-eyebrow{display:block;font:600 11.5px var(--sans);color:var(--cyan);}
.tracetab-t{margin:5px 0 2px;font-size:22px;font-weight:650;color:#eef4f8;
  line-height:1.2;}
.tracetab-sub{font-size:12.5px;color:#8fa6b4;}
.tracetab-graph{margin:0 0 18px;}
.tracetab-graph .plotgraph-wrap{margin:0;}
body.light .tracetab-head{border-color:var(--line);}
body.light .tracetab-t{color:var(--ink);}
body.light .tracetab-sub{color:var(--ink-3);}
/* what the trace found in the repository's files (app.js rtSay), and those
   files as cards of their own, marked as the repository's by a dashed edge
   and their badge */
.trace-repo{margin:0 0 16px;padding:9px 12px;border-radius:8px;
  border:1px solid color-mix(in srgb,var(--accent) 26%,transparent);
  background:color-mix(in srgb,var(--accent) 6%,transparent);
  font-family:var(--sans);font-size:12.5px;line-height:1.45;
  color:var(--chrome-ink-2);}
.trace-repo[hidden]{display:none;}
.trace-repo-l{margin:0;}
.trace-repo-l+.trace-repo-l{margin-top:4px;}
.trace-repo-bad{color:var(--amber);}
.trace-repo-go{margin-top:8px;}
body.light .trace-repo{color:var(--ink-2);}
.card.repo-card{border-style:dashed;}
.card.repo-card .badge{color:var(--amber);}
.repo-card-via{margin:0;font-size:12px;color:var(--chrome-ink-2);}
.repo-card-via code{font-family:var(--mono);font-size:11.5px;}
body.light .repo-card-via{color:var(--ink-3);}
.navitem-repo .navitem-t{font-style:italic;}
.pg-node.pg-repo rect{stroke:#ffffffb3;stroke-width:1.4;
  stroke-dasharray:4 3;}
.vo-step.vo-repo .chain-badge{color:var(--amber);}
.vo-repo-note{margin:4px 0 8px;font-size:12px;color:var(--chrome-ink-2);}
/* what could not be followed into the repository, said in the Code trail
   and Where this came from as the plot trace says it */
.vo-repo-note.vo-repo-bad,.prov-repo-bad{color:var(--amber);}
/* a piece's names as written: the step label is set in capitals, and
   Python's names are case-sensitive (np is not NP) */
.steplabel .rt-names{text-transform:none;letter-spacing:0;}
.var-line .var-trace{margin-left:0;padding:1px 8px;font-size:10.5px;}
/* the ◈ badge + tint that marks a Plot-trace tab in the tab strip */
/* a Plot-trace SUB-tab: smaller + indented + cyan-tinted so it reads as a
   child of the notebook tab immediately before it */
.tab.tab-sub{margin-left:6px;max-width:200px;font-size:12px;
  padding:0 8px 0 10px;background:color-mix(in srgb,var(--accent) 6%,transparent);border-color:color-mix(in srgb,var(--accent) 24%,transparent);}
.tab.tab-sub:hover{background:color-mix(in srgb,var(--accent) 11%,transparent);}
.tab.tab-sub.current{background:color-mix(in srgb,var(--accent) 13%,transparent);color:#dff3f8;
  border-color:color-mix(in srgb,var(--accent) 48%,transparent);}
.tab-trace-ic{color:var(--cyan);margin-right:4px;font-size:12px;flex:none;
  opacity:.85;}
.tab.tab-sub .tab-t{max-width:150px;}
/* a small gap + hook line before a sub-tab hints the parent→child nesting */
.tab.tab-sub::before{content:"";width:8px;height:1px;background:color-mix(in srgb,var(--accent) 40%,transparent);
  margin:0 1px 0 -6px;align-self:center;flex:none;}
body.light .tab.tab-sub{background:color-mix(in srgb,var(--accent) 7%,transparent);border-color:color-mix(in srgb,var(--accent) 30%,transparent);}
body.light .tab.tab-sub.current{background:color-mix(in srgb,var(--accent) 15%,transparent);color:var(--accent-deep);}
/* per-plot dependency graph */
.plotgraph-wrap{margin:0 0 18px;padding:12px 12px 6px;
  background:var(--chrome-1);border:1px solid var(--chrome-line);
  border-radius:10px;}
.pg-eyebrow{font:600 11.5px var(--sans);color:var(--chrome-ink-3);margin-bottom:8px;}
.plotgraph{display:block;width:100%;height:auto;}
.pg-edge{fill:none;stroke:#f0a848;stroke-width:1.6;opacity:.6;}
.pg-node{cursor:pointer;}
.pg-node rect{stroke:#ffffff26;stroke-width:1;
  transition:filter .15s;}
.pg-node:hover rect,.pg-node:focus rect{filter:brightness(1.18);
  stroke:#ffffff66;}
.pg-node:focus{outline:none;}
/* the node fills are the code-kind palette, the same in every scheme, so
   the label ink is fixed too (--chrome-0 goes near-white in the light
   schemes, which has poor contrast on the mid-tone fills) */
.pg-node text{font-family:var(--sans);font-size:12px;fill:#0b141d;
  font-weight:600;pointer-events:none;}

.slide{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;
  animation:slidein .28s ease;}
@keyframes slidein{from{opacity:0;transform:translateY(8px);}
  to{opacity:1;transform:none;}}
.slide-titlecard{align-items:center;justify-content:center;text-align:center;
  gap:12px;}
.slide-eyebrow{font:600 12px var(--sans);color:var(--cyan);margin:0;}
.slide-titlecard h2{font-size:clamp(28px,4.5vw,54px);font-weight:600;
  letter-spacing:-.02em;color:var(--chrome-ink);margin:0;max-width:82%;line-height:1.15;}
.slide-meta{font-family:var(--mono);font-size:12px;color:var(--chrome-ink-2);margin:0;}
.slide-empty{align-items:center;justify-content:center;color:var(--chrome-ink-2);
  font-size:14px;text-align:center;}

.slide-head h3{font-size:clamp(18px,2.2vw,28px);font-weight:600;color:#eef4f8;
  margin:0 0 14px;letter-spacing:-.015em;}
.slide-body{flex:1;display:flex;gap:26px;min-height:0;}
.slide-fig{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0;}
.slide-fig .cardbody{flex:1;min-height:0;display:flex;flex-direction:column;
  padding-left:0;}
.slide-fig .figframe{flex:1;min-height:0;display:flex;align-items:center;
  justify-content:center;border:none;border-radius:10px;padding:14px;
  overflow:hidden;background:none;}
.slide-fig .figframe img{max-width:100%;max-height:100%;width:auto;height:auto;
  object-fit:contain;margin:0;}
.slide-fig .note{background:var(--output-paper);color:var(--output-ink-2);
  border-radius:12px;
  padding:26px 32px;overflow:auto;font-size:16.5px;line-height:1.7;}
.slide-fig .caption{flex:none;color:var(--chrome-ink);margin-top:12px;padding-left:2px;
  font-size:14.5px;}
.slide-fig pre.result,.slide-fig pre.stream{flex:none;overflow:auto;}
.slide-fig .jv-xr{flex:1;min-height:0;overflow:auto;}

/* halves / quarters slide layouts */
.slide-grid{flex:1;display:grid;gap:16px;min-height:0;}
.slide-grid.halves{grid-template-columns:1fr 1fr;}
.slide-grid.quarters{grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;}
.spane{display:flex;flex-direction:column;min-width:0;min-height:0;
  background:var(--chrome-1,#0e1926);border:1px solid #ffffff10;border-radius:10px;
  padding:12px 14px;}
.spane-t{font-size:13.5px;font-weight:600;color:var(--chrome-ink);margin:0 0 8px;
  letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;flex:none;}
.spane .cardbody{flex:1;min-height:0;display:flex;flex-direction:column;
  padding-left:0;}
.spane .figframe{flex:1;min-height:0;display:flex;align-items:center;
  justify-content:center;border:none;border-radius:8px;padding:8px;
  overflow:hidden;}
.spane .figframe img{max-width:100%;max-height:100%;width:auto;height:auto;
  object-fit:contain;margin:0;}
.spane .note{flex:1;min-height:0;background:var(--output-paper);
  color:var(--output-ink-2);
  border-radius:8px;padding:14px 18px;overflow:auto;font-size:13.5px;
  line-height:1.6;}
.spane .jv-xr,.spane pre.result,.spane pre.stream{overflow:auto;
  min-height:0;}
.spane.empty{align-items:center;justify-content:center;color:var(--chrome-ink-3);
  font:600 12px var(--sans);}

.chain-sec{border-top:1px solid #ffffff10;}
.chain-sec:first-child{border-top:none;}
.chain-h{display:flex;align-items:center;gap:10px;width:100%;
  padding:9px 4px;margin:0;background:none;border:none;cursor:pointer;
  font:600 12px var(--sans);color:var(--chrome-ink-2);text-align:left;border-radius:6px;
  transition:color .15s,background .15s;}
.chain-h:hover{color:var(--chrome-ink);background:var(--surface-hover);}
.chain-chev{display:inline-block;font-size:14px;line-height:1;flex:none;
  transition:transform .2s;}
.chain-h[aria-expanded="true"] .chain-chev{transform:rotate(90deg);}
.chain-badge{font-size:9px;padding:2px 7px;border-radius:4px;
  background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--cyan);letter-spacing:.1em;flex:none;
  text-transform:lowercase;}
.chain-badge.ckmain-imports{background:#8a6d4a2b;
  color:color-mix(in srgb,#8a6d4a 40%,var(--chrome-ink));}
.chain-badge.ckmain-function{background:#46a8922b;
  color:color-mix(in srgb,#46a892 40%,var(--chrome-ink));}
.chain-badge.ckmain-data{background:#4d90c02b;
  color:color-mix(in srgb,#4d90c0 40%,var(--chrome-ink));}
.chain-badge.ckmain-constant{background:#9a7cc02b;
  color:color-mix(in srgb,#9a7cc0 40%,var(--chrome-ink));}
.chain-badge.ckmain-settings{background:#5b75892b;
  color:color-mix(in srgb,#5b7589 40%,var(--chrome-ink));}
.chain-badge.ckmain-plotting{background:color-mix(in srgb,var(--accent) 17%,transparent);color:var(--cyan);}
.chain-badge.ckmain-print{background:#cf9a4e2b;
  color:color-mix(in srgb,#cf9a4e 40%,var(--chrome-ink));}
.chain-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.chain-b{padding:0 4px 10px;}

.deck-arrow{position:absolute;top:50%;transform:translateY(-50%);width:52px;
  height:52px;border-radius:50%;border:1px solid var(--chrome-line);
  background:var(--surface-hover);color:var(--chrome-ink);font-size:30px;line-height:1;cursor:pointer;z-index:5;
  transition:color .15s,background-color .15s,border-color .15s,
    box-shadow .15s,opacity .15s;}
.deck-arrow:hover{border-color:var(--cyan);color:var(--chrome-ink);background:color-mix(in srgb,var(--accent) 13%,transparent);}
.deck-arrow:disabled{opacity:.22;cursor:default;}
.deck-arrow.prev{left:13px;}
.deck-arrow.next{right:13px;}
/* with a mouse the keys, a click and the wheel move the show, so the two
   circles at the slide's edges are not needed. A touch screen keeps them
   as the visible way on. */
@media (hover:hover) and (pointer:fine){
  .deck-arrow.prev,.deck-arrow.next{display:none;}
}

.deck-foot{display:flex;align-items:center;justify-content:center;gap:16px;
  padding:9px 18px 13px;flex:none;}
.deck-count{font-family:var(--mono);font-size:11.5px;color:var(--chrome-ink-2);}
.deck-drawer{max-height:44vh;overflow-y:auto;background:#0e1b25;
  border-top:1px solid #ffffff14;padding:14px 78px 22px;flex:none;}
.deck-drawer .steplabel{color:#8fa3b4;}
.deck-drawer pre.result,.deck-drawer pre.stream{background:#13222f;
  border-color:#ffffff14;color:#b6c6d3;}

/* ---------- create mode: deck docks left, document stays interactive */
.deck.creating{width:min(var(--dc-w),94vw);right:auto;
  border-right:1px solid #ffffff22;box-shadow:8px 0 40px #00000055;}
.deck.creating .deck-stagewrap{display:none;}
.deck.creating .deck-top{display:none;}

/* there is no .dc-head: the create panel's header (File, Save, undo/redo
   and the save readout) is the thin bar across the top of the window
   (.deck-qat), where a document's own controls belong. */
.dbtn[disabled]{opacity:.4;cursor:default;pointer-events:none;}
/* ---- Poster mode chrome: same density as slides ----
   Inflated ribbon chips, including the six invisible contextual format
   groups held in the wrap flow, would wrap the toolbar into 5-7 blank rows
   and leave an A0 portrait about 300px wide. The editor's chrome is
   chrome; only the page deserves the space. The template catalog keeps its
   two-up poster previews. */
.deck.poster-page .lay-picker{grid-template-columns:repeat(2,1fr);
  max-height:300px;}
.deck.poster-page .lay-lb{font-size:9.5px;}
.deck.poster-page .dbtn.lay{padding:5px;}
/* a poster's strip tile has a taller (portrait) icon, which leaves its
   label one line where a slide tile's gets two, so the name must not wrap:
   it is the template's short name (00-page.js) at the slide tiles' size,
   with the full name on the tooltip */
.deck.poster-page .lay-strip .lay-lb{white-space:nowrap;
  text-overflow:ellipsis;font-size:8px;}
.dc-menuwrap{position:relative;}
.dc-menu{position:absolute;left:0;top:calc(100% + 6px);z-index:30;
  background:var(--chrome-2,#16273a);border:1px solid #ffffff22;border-radius:8px;
  padding:5px;min-width:214px;display:flex;flex-direction:column;
  box-shadow:0 12px 34px #00000066;}
/* display:flex beats the UA's [hidden], and only menus inside .deck had
   `.deck [hidden]` to fall back on, so a menu outside it (the reader's App
   menu, one on the tab row) must restate it */
.dc-menu[hidden]{display:none!important;}
/* File in two columns, since New, Open and the App menu's rows joined it:
   one column would be taller than a laptop screen. Each column is an
   ordinary column of rows; a window too narrow for two gets one, and a
   window too short for the menu scrolls it rather than cutting it */
.dc-menu.dc-menu-cols{flex-direction:row;align-items:flex-start;gap:4px;
  max-height:calc(100vh - 16px);overflow-y:auto;}
.dc-menu-cols>.dc-mcol{display:flex;flex-direction:column;min-width:214px;}
.dc-menu-cols>.dc-mcol+.dc-mcol{border-left:1px solid #ffffff14;
  padding-left:4px;}
@media (max-width:560px){.dc-menu.dc-menu-cols{flex-direction:column;}
  .dc-menu-cols>.dc-mcol+.dc-mcol{border-left:0;padding-left:0;}}
.dc-mi{text-align:left;background:none;border:none;color:var(--chrome-ink);
  font-size:12.5px;font-family:var(--sans);padding:8px 11px;
  border-radius:5px;cursor:pointer;transition:background .12s;}
.dc-mi:hover{background:color-mix(in srgb,var(--accent) 15%,transparent);}
.dc-msep{height:1px;background:#ffffff14;margin:4px 6px;}
/* a link can be a row too (Support, in the Help menu) */
a.dc-mi{display:block;text-decoration:none;}
/* a menu row's shortcut, at its right edge, as .vw-opt rows do */
.dc-mi kbd{float:right;margin-left:14px;font-family:var(--mono);
  font-size:9.5px;opacity:.7;}
/* the "Saved to" picker: a heading + a tick beside the current target */
/* a menu's heading is a word, as .hd-lab is, not 9px spaced capitals in
   the mono */
.dc-mhead{font-family:var(--sans);font-size:11px;font-weight:600;
  letter-spacing:0;text-transform:none;color:var(--chrome-ink-2);
  padding:7px 11px 3px;}
.dc-mhead::first-letter{text-transform:uppercase;}
/* File's headings are set apart from its rows (a rule above, the accent's
   ink, a little more room), and a kind's choices are one row of boxes
   (.dc-mchips) */
#dc-menu .dc-mhead,#target-menu .dc-mhead,#play-menu .dc-mhead{
  color:color-mix(in srgb,var(--accent) 70%,
  var(--chrome-ink));font-size:11.5px;font-weight:700;
  margin-top:6px;padding:9px 11px 5px;
  border-top:1px solid var(--chrome-line,#ffffff14);}
#dc-menu .dc-mcol>.dc-mhead:first-child{margin-top:0;border-top:0;
  padding-top:5px;}
#dc-menu .dc-mhead-warn{color:var(--coral,#ff6b57);}
.dc-mchips{display:flex;flex-wrap:wrap;gap:5px;padding:2px 9px 6px;
  max-width:300px;}
.dc-mchips>.dc-mi{padding:5px 9px;font-size:12px;border-radius:6px;
  border:1px solid var(--chrome-line,#ffffff1f);
  background:color-mix(in srgb,var(--chrome-ink) 5%,transparent);}
.dc-mchips>.dc-mi[hidden]{display:none;}
.dc-mchips>a.dc-mi{display:inline-block;}
body.light .dc-mchips>.dc-mi{border-color:#0000001f;background:#00000008;}
.dc-mi[aria-pressed="true"]{color:var(--chrome-ink);}
/* a pressed .dbtn row is an accent-deep fill and keeps that fill's ink:
   the row rule above and body.light .dc-mi outrank .dbtn[aria-pressed] and
   would put dark text on it */
.dbtn.dc-mi[aria-pressed="true"]{color:var(--on-accent-deep,#fff);}
.dc-mi[aria-pressed="true"]::before{content:"\2713  ";color:var(--cyan);}
.dc-mi[disabled]{opacity:.45;cursor:default;}
/* A named version is one selectable row plus its lifecycle. Keep the verbs
   worded and beside the name; a hidden right-click route is not a
   lifecycle. */
#play-menu{min-width:min(330px,calc(100vw - 16px));}
/* the custom-show rows are built as .dbtn, whose flex box would centre
   "Every slide", a show's name and "New custom show" under the
   left-aligned rows written into the markup */
#play-menu .dbtn.dc-mi{justify-content:flex-start;}
/* every row starts at one edge: an icon then its text, and the custom show
   on the list is ticked at the far end so the icons stay in a column */
#play-menu .dc-mi,#play-menu .dbtn.dc-mi{display:flex;align-items:center;
  gap:9px;box-sizing:border-box;width:100%;min-height:0;height:auto;
  padding:8px 11px;font-size:12.5px;line-height:normal;}
#play-menu .dc-mi>.bic{width:15px;height:15px;flex:none;opacity:.85;}
#play-menu .dc-mi[aria-pressed="true"]::before{content:none;}
#play-menu .dc-mi[aria-pressed="true"]::after{content:"\2713";
  margin-left:auto;padding-left:10px;}
.pl-cutrow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;
  gap:3px;align-items:stretch;}
.pl-cutpick{min-width:0;white-space:normal;}
.pl-cutact{font-size:10px;padding:5px 7px;white-space:nowrap;}
.pl-cutact .bic{width:10px;height:10px;}
/* the label is a bare chevron now, so there is nothing left to clip —
   and an ellipsis on a live control is hiding a word by another name */
.dbtn.dc-target{font-family:var(--mono);font-size:10.5px;
  letter-spacing:.02em;white-space:nowrap;}
.dbtn.dc-target.tg-file{border-color:#46a89266;
  color:color-mix(in srgb,#46a892 40%,var(--chrome-ink));}
body.light .dc-mhead{color:var(--ink-3);}
/* the document moves aside for the docked editor (create mode) only. Under
   the full editor (slide-editing) it is covered whole, and laying it out
   again narrower there, and back at its own width on the way out, would
   be most of the layout of every switch between a deck and the page behind
   it, and would move the page's scroll each time */
body.creating-docs:not(.slide-editing) .docs{
  margin-left:min(var(--dc-w),94vw);}
/* ...and a card says it can be placed only there too: under the full
   editor no card can be pointed at, and the cursor, inherited by all that
   is in a card, would restyle every card's contents on each switch */
body.creating-docs:not(.slide-editing) .card{cursor:copy;}
body.creating-docs:not(.slide-editing) .card:hover{
  outline:2px solid var(--cyan);outline-offset:2px;}

.deck-create{flex:1;overflow-y:auto;display:flex;flex-direction:column;
  min-height:0;background:var(--chrome-1,#0e1926);}
/* fixed so it hugs the panel's right edge in both creating (docked
   deck) and editing (flex column) modes, and survives panel scroll */
.dc-resize{position:fixed;top:0;bottom:0;width:6px;z-index:130;
  cursor:col-resize;
  left:calc(var(--presrail-w) + min(var(--dc-w),94vw) - 1px);}
/* in the editor the column starts where the editor does, after the Files
   pane when that is open (app.css, --deck-left) */
.deck.editing .dc-resize{
  left:calc(var(--deck-left,var(--presrail-w)) + min(var(--dc-w),94vw) - 1px);}
.dc-resize:hover,.dc-resize.on{background:color-mix(in srgb,var(--accent) 40%,transparent);}
@media(max-width:860px){.dc-resize{display:none;}}
.dc-block{padding:10px 14px 9px;border-bottom:1px solid #ffffff14;}
/* the slides list is the main working area — give it the lion's share
   and let it be the panel's primary scroller */
.dc-block.dc-film{flex:1 1 auto;display:flex;flex-direction:column;
  min-height:240px;border-bottom:none;padding-bottom:8px;}
.dc-block.dc-film .film-list{flex:1;overflow-y:auto;min-height:0;}
.dc-label{display:block;font:600 11.5px var(--sans);color:var(--chrome-ink-2);
  margin-bottom:8px;}
.dc-row{display:flex;gap:6px;flex-wrap:wrap;}
.dc-hint{font-size:11.5px;color:var(--chrome-ink-2);line-height:1.5;margin:9px 0 0;}
.dc-spring{flex:1;}
/* the presentation name lives on the left rail — no need to repeat it
   in the builder; keep the element for the File > Rename flow only */
#pres-current{display:none;}
/* the name block is a zero-height sliver until a rename is active. It
   exists so the rename input is not inside .dc-controls, which is
   display:none while editing. */
.dc-name{padding:0;border-bottom:none;}
.dc-name:has(>#pres-name:not([hidden])){padding:10px 14px 9px;
  border-bottom:1px solid #ffffff14;}
.dc-controls{display:flex;flex-direction:column;gap:9px;}
#pres-name{width:100%;background:var(--chrome-2,#16273a);border:1px solid #ffffff22;
  color:#dce6ee;font-family:var(--sans);font-size:12.5px;padding:7px 9px;
  border-radius:6px;box-sizing:border-box;}
#pres-name:focus{outline:none;border-color:var(--cyan);}
.dbtn.lay[aria-pressed="true"]{background:var(--accent-deep,var(--cyan-deep));
  border-color:var(--accent-deep,var(--cyan-deep));
  color:var(--on-accent-deep,#fff);}
/* layout picker: little diagrams instead of words */
.dbtn.lay{padding:5px 7px;line-height:0;}
.layico{display:grid;gap:2px;width:34px;height:22px;}
.layico.full{grid-template-columns:1fr;}
.layico.halves{grid-template-columns:1fr 1fr;}
.layico.rows{grid-template-rows:1fr 1fr;}
.layico.quarters{grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;}
.layico i{background:#8ba0b2;border-radius:2px;display:block;}
.dbtn.lay[aria-pressed="true"] .layico i{background:#fff;}
.layico.title{display:block;position:relative;}
.layico.title i{position:absolute;border-radius:2px;}
.layico.title .tl1{left:15%;right:15%;top:26%;height:24%;}
.layico.title .tl2{left:28%;right:28%;top:62%;height:12%;opacity:.5;}
.layico.blank{display:block;border:1.5px dashed #8ba0b2;
  border-radius:3px;}
.dbtn.lay[aria-pressed="true"] .layico.blank{border-color:#fff;}
/* scrollable slide-template catalog (buttons generated from LAYOUTS) */
.lay-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;
  max-height:224px;overflow-y:auto;overflow-x:hidden;
  padding:2px 3px 4px;margin:0;}
.lay-picker .lay{padding:4px;display:flex;flex-direction:column;
  align-items:stretch;gap:3px;line-height:1;height:auto;}
.layico2{position:relative;width:100%;aspect-ratio:16/9;background:var(--chrome-0,#0b141d);
  border:1px solid #ffffff1a;border-radius:3px;overflow:hidden;}
.dbtn.lay[aria-pressed="true"] .layico2{border-color:#fff;}
.layico2 .li-cell{position:absolute;background:#2a4761;
  border:1px solid #4d7ea3;border-radius:1px;box-sizing:border-box;}
.layico2 .li-text{position:absolute;box-sizing:border-box;opacity:.8;
  background:repeating-linear-gradient(#9fb2c2 0 1.5px,transparent 1.5px 4px);}
/* slots for a picture, a table, a chart; a footer and a number */
.layico2 .li-cell.li-picture{background:#2f4a3a;border-color:#6aa37f;}
.layico2 .li-cell.li-table{background:#2a4761 repeating-linear-gradient(
  #4d7ea3 0 1px,transparent 1px 25%);}
.layico2 .li-cell.li-chart{background:linear-gradient(90deg,
  #4d7ea3 0 20%,transparent 20% 40%,#4d7ea3 40% 60%,transparent 60% 80%,
  #4d7ea3 80%) bottom/100% 60% no-repeat,#2a4761;}
.layico2 .li-text.li-footer,.layico2 .li-text.li-num{opacity:.5;}
/* the deck colours' shades, a column under each colour */
.sw-tokshades{display:grid;gap:3px;margin:2px 0 6px;justify-content:start;}
/* the page's own eye dropper: a crosshair over everything, the colour
   under the pointer in a swatch beside it, and what to do */
.cp-slidedrop{position:fixed;inset:0;z-index:9000;cursor:crosshair;}
/* the command search's keys and its Recently used heading */
.rbn-search-k{flex:none;margin-left:auto;padding:1px 6px;border-radius:4px;
  font:600 10.5px var(--mono);color:var(--chrome-ink-2);
  border:1px solid var(--chrome-line,#ffffff33);background:#ffffff0a;}
.rbn-search-k+.rbn-search-w{margin-left:8px;}
.rbn-search-head{padding:6px 10px 3px;font:600 10.5px var(--sans);
  color:var(--chrome-ink-3,var(--chrome-ink-2));text-transform:none;}
.cp-dropchip{position:fixed;pointer-events:none;min-width:58px;height:24px;
  padding:0 8px 0 30px;border-radius:12px;box-sizing:border-box;
  display:flex;align-items:center;font:600 11px var(--mono);
  color:var(--chrome-ink,#e8f1f8);background:var(--chrome-1,#0e1926);
  border:1px solid var(--chrome-line,#ffffff33);
  box-shadow:0 4px 14px #0007;}
.cp-dropchip::before{content:"";position:absolute;left:4px;top:3px;
  width:16px;height:16px;border-radius:50%;background:var(--cpc);
  box-shadow:0 0 0 1px #0006,inset 0 0 0 1px #fff4;}
.cp-dropchip[hidden]{display:none;}
.cp-droptip{position:fixed;top:14px;left:50%;translate:-50% 0;
  pointer-events:none;padding:6px 12px;border-radius:8px;
  font:12px var(--sans);color:var(--chrome-ink,#e8f1f8);
  background:var(--chrome-1,#0e1926);border:1px solid var(--chrome-line,#ffffff33);
  box-shadow:0 6px 18px #0006;}
.sw-tokshades .sw.sw-shade{width:22px;height:14px;border-radius:3px;
  margin:0;}
/* The name wraps inside the tile. An ellipsis needs a width to bite on and
   this span has none: the button is a centred flex column, so a long name
   would grow past the tile and paint across its neighbour. max-width pins
   it to the tile and the words wrap into the room the icon leaves (three
   8px lines fit in the 48px a tile has under its 17px icon). overflow:
   hidden stays as the floor for a name longer than any built-in one; the
   button also carries the full name as its title. */
/* the label is the ribbon's own sans at 9.5px, and the tile is sized so
   two lines of it fit whole under the icon (which gives up 14px of width
   for it). The grid takes the short name too. */
.lay-lb{font-family:var(--sans);font-size:9.5px;letter-spacing:0;
  color:var(--chrome-ink-2);text-align:center;line-height:1.1;
  max-width:100%;max-height:2.2em;overflow:hidden;}
.dbtn.lay[aria-pressed="true"] .lay-lb{color:var(--on-accent-deep);}
/* title-slide text inputs */
.title-editor{display:flex;flex-direction:column;gap:7px;}
.title-editor[hidden]{display:none;}
.title-editor input{background:var(--chrome-2,#16273a);border:1px solid #ffffff22;
  color:#dce6ee;font-family:var(--sans);font-size:12.5px;padding:8px 9px;
  border-radius:6px;}
.title-editor input:focus{outline:none;border-color:var(--cyan);}
.pane-editor[hidden]{display:none;}
#dc-edit{width:100%;}
/* freeform slot editor + film thumbnails: boxes at frame positions */
.pane-editor.freeform{display:block;position:relative;}
.pane-editor.freeform .pane.slot{position:absolute;padding:4px 16px
  4px 6px;}
.pane-editor.freeform .pane.slot .pane-t{font-size:9.5px;
  -webkit-line-clamp:2;}
/* the slide drawn behind the frames (slideBackdrop), filling the view edge
   to edge, as the frames' percentages do; the frames over it are outlines,
   dashed when pointed at and solid when chosen */
.pane-editor.freeform .pe-back{position:absolute;inset:0;width:auto;
  height:auto;padding:0;border:0;border-radius:inherit;
  pointer-events:none;}
.pane-editor.has-back .pane.filled .an-cell{background:none;
  border-color:transparent;}
.pane-editor.has-back .pane.slot.filled:hover{
  outline:1px dashed color-mix(in srgb,var(--accent) 70%,transparent);
  outline-offset:1px;}
.mini-diagram.free{display:block;position:relative;}
.mini-diagram.free .mini-pane{position:absolute;}
/* a thumbnail draws every kind of item, not just placed cells. Each sits
   at its page percentage, so the strip is a true scale model of the
   slide. */
.mini-tx{position:absolute;color:var(--tk-ink,#dbe6ee);line-height:1.2;
  white-space:pre-wrap;overflow:hidden;max-width:100%;
  transform-origin:0 0;pointer-events:none;}
/* a light deck's thumbnails carry dark text, as the page does */
.page-light .mini-tx{color:var(--tk-ink,#1b2733);}
/* a title slide's text and a heading-style box, in Heading text, as on the
   canvas (.an-title, .an-head) */
.mini-tx.is-head{color:var(--tk-heading,#dbe6ee);}
.page-light .mini-tx.is-head{color:var(--tk-heading,#16222c);}
/* a placeholder in a thumbnail is as faint as on the canvas (.an-ph), with
   a hairline box so the slot's shape reads at strip size */
.mini-tx.is-ph{opacity:.38;outline:1px solid currentColor;
  outline-offset:1px;border-radius:1px;}
.mini-tx.is-t,.mini-tx.is-s{text-align:center;transform-origin:50% 50%;}
/* a code box, with the canvas box's own metrics (.an-code-pre) */
.mini-tx.mini-code{font-family:var(--mono);line-height:1.45;
  padding:.6em .8em;border-radius:2px;box-sizing:border-box;}
/* ...and its kept output under a rule */
.mini-code-out{display:block;margin:.4em -.8em 0;padding:.3em .8em 0;
  border-top:1px solid currentColor;opacity:.75;font-size:.9em;}
.mini-code-out.bad{color:var(--danger);}
.mini-code-fig{display:block;max-width:100%;height:auto;margin-top:.4em;}
/* folded, the count of the lines not shown */
.mini-code-fold{opacity:.7;font-size:.82em;}
.mini-it{position:absolute;overflow:hidden;pointer-events:none;}
.mini-it>svg{width:100%;height:100%;display:block;overflow:visible;}
/* a chart's text is its own, not the strip's */
.mini-it.is-chart{font-weight:400;letter-spacing:normal;}
/* a shape's outline sits on its edge, half outside: clipped, a thin
   rectangle lost its bottom edge in the strip */
.mini-it.is-shape{overflow:visible;}
/* a shape's text, in its rectangle of it */
.mini-it.mini-shw{box-sizing:border-box;display:flex;align-items:flex-start;
  overflow:visible;}
.mini-it.mini-shw.is-mid{align-items:center;}
.mini-it.mini-shw.is-end{align-items:flex-end;}
.mini-shw>.mini-tx{position:static;}
.mini-it.is-img img{width:100%;height:100%;object-fit:contain;
  display:block;}
.mini-it.is-img.is-crop img{object-fit:cover;}
.mini-it.is-img.is-win img{position:absolute;object-fit:fill;max-width:none;}
/* a placed note or code cell is its own rendered body, zoomed to the
   thumbnail by the canvas's rule; nothing inside a miniature scrolls */
.mini-it.is-cell.an-cell .note,.mini-it.is-cell.an-cell pre,
.mini-it.is-cell.an-cell .cardbody{overflow:hidden;}
/* arrows share one overlay in the page's own 0..100 space */
.mini-svg{position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;overflow:visible;}
.mini-diagram.title{grid-template-columns:1fr;}
.mini-pane.is-title{background:var(--tk-surface,var(--chrome-4));}
.mini-pane.is-title::before{content:"";position:absolute;left:18%;
  right:18%;top:32%;height:18%;background:#4d90c0;border-radius:1px;}
.mini-pane.is-title::after{content:"";position:absolute;left:30%;
  right:30%;top:60%;height:9%;background:#4d90c066;}

/* ---------- slide editor ----------
   Editing docks like an IDE: the builder panel stays on the left and
   the slide canvas takes the document area. The document chrome (tabs,
   filters) is hidden while editing — it acts on the hidden documents —
   and comes back for cell-picking / on Done. */
/* The editor starts after the shared app rail, so its logo and live open
   items are the same navigation in both views. The reader's header is not
   shown at all: the open tabs are in the editor's own top bar (app.js
   re-homes #open-tabs-row), so tabs are not stacked over a row of
   controls. */
.deck.editing{left:var(--deck-left,var(--presrail-w));top:0;}
body.slide-editing .apptop{display:none;}
/* The editor's auto-hidden slide strip translates left over its own grid
   column. Keep the shared application rail above it, including while an
   auto-hidden rail peeks back in, so Home is never covered. */
body.slide-editing .presrail,body.slide-editing .presrail-show{z-index:134;}
/* while editing, the panel is just chrome + film strip (the template
   catalog lives in the ribbon's Layouts dropdown) — keep it slim so the
   slide canvas gets the width */
/* 200px: the panel is only thumbnails now, and the width goes to the
   toolbar and canvas instead */
/* 200px is the resting width, not a ceiling. The old expression stays as
   the clamp's default, so a session that has never touched the resize
   handle is unchanged. */
/* The upper bound is measured, not 46vw. The column and the ribbon are two
   tracks of one grid, so a strip dragged past the width the row of tools
   needs would clip the end of that row (overflow-x:clip, and no rung
   left). fitFilmMax() publishes the ribbon's own floor as --film-max; the
   46vw fallback applies before JS has run once. */
.deck.editing .deck-create{
  width:clamp(150px,var(--film-w,min(var(--dc-w),200px)),var(--film-max,46vw));
  border-right:1px solid #ffffff22;}
.deck.creating .deck-create{width:min(var(--dc-w),94vw);}
/* ---- the column hides itself (off by default) -------------------------
   Same taskbar model as the document view's presentations panel
   (body.prrail-auto, app.css): the surface leaves, the page takes the
   width, and it slides back when the pointer reaches the left edge.
   The track goes to zero, not the panel. .deck-create is grid track 1,
   so its clamp width is what holds the stage narrow -- but the PANEL has
   to keep that width or translateX(-100%) is 100% of nothing and its
   contents simply overflow a 0px box (the exact failure app.css:411-414
   records for the rail). Keeping it a grid item on grid-row:2/5 is also
   what puts it under the QAT with no measured offset.
   Slides (#vw-versions) is the manual half and stays as it is: it hides
   the thumbnails inside a column that keeps its width. This hides the
   column. */
.deck.editing.film-auto{grid-template-columns:0 minmax(0,1fr);}
.deck.editing.film-auto>.deck-create{position:relative;z-index:120;
  transform:translateX(-100%);transition:transform .18s ease;
  box-shadow:0 0 40px #00000066;}
.deck.editing.film-auto.film-peek>.deck-create{transform:none;}
.deck.editing.strip-off>.deck-create{display:none;}
.deck.editing.film-right{grid-template-columns:minmax(0,1fr) auto;}
.deck.editing.film-right>.deck-main{grid-column:1;}
.deck.editing.film-right>.deck-create{grid-column:2;border-right:0;
  border-left:1px solid var(--chrome-line);}
.deck.editing.film-right.film-auto{grid-template-columns:minmax(0,1fr) 0;}
.deck.editing.film-right.film-auto>.deck-create{transform:translateX(100%);}
.deck.editing.film-right.film-auto.film-peek>.deck-create{transform:none;}
.deck.editing #layout-row{display:none;}
.deck.editing .dc-resize{display:none;}
/* ---- PowerPoint-style ribbon: labelled groups, always the same height ----
   One wrapping flow: the static groups and the contextual format groups are
   display:contents, so every group flows into the same rows — no dedicated
   row per section, no wasted band. min-height reserves two rows so
   selecting/deselecting never grows the ribbon or shifts the canvas. */
/* One row that scrolls sideways when it must, never a stack of rows.
   Wrapping was what made this read as "rows of things": a group could
   break across rows, so its label landed under whatever happened to be
   beneath it and nothing marked where one group ended. PowerPoint never
   wraps either. A constant height also means selecting an item can no
   longer shift the canvas. */
/* ---- The ribbon's measurements, in one place ----
   The ribbon's numbers are tokens, so a density change is one line and no
   rule can miss a copy. The values follow PowerPoint's: its small command
   is a ~16px icon, a ~4px gap, the word and ~10px of side padding. The
   button height stays 26px and the air around it is taken out instead.
   In Compact a group's name costs the bar nothing: it shows under the
   group while the pointer rests on it, so the bar is the band plus a few
   px either side. Full size shows the names under the groups at rest, so
   its bar is 80px: the band, the name under it and the air around them.
   tests/test_ribbon_metrics.py pins these values. ---- */
.deck{
  --rbn-bar-h:80px;        /* the bar: a group's whole stack + its rule */
  --rbn-btn-h:26px;        /* a worded button, everywhere */
  --rbn-track:28px;        /* the grid row it is centred in */
  --rbn-row-gap:4px;       /* between the two tracks */
  --rbn-band:60px;         /* 2 tracks + the gap: a group's body */
  --rbn-col-gap:3px;       /* between columns */
  --rbn-btn-px:6px;        /* a button's side padding */
  --rbn-btn-gap:4px;       /* its icon to its word */
  --rbn-grp-px:6px;        /* a group's side padding */
  --rbn-tile-w:64px;       /* The tile */
  --rbn-tile-h:56px;
  --rbn-tile-gap:4px;      /* and the step the gallery arrows scroll by,
                              which is --rbn-tile-h + this (ROW in
                              55-sections-and-strip.js) */
  --rbn-txstrip-max:684px; /* ceiling of the text-type strip: its tiles are name-wide up to this */
}
/* Compact (.rbn-dense, set in 05-figures-and-ribbon.js): the same ribbon
   with less air, the default in a browser, where there is less space than
   in the app. Only heights move. The words stay 12px, and the widths and
   the density ladder's rungs are untouched (a rung must be a step down
   from the resting width, and that width has not changed), so nothing
   folds sooner than at full size. The gallery's row step follows the tile
   (ROW_DENSE in 55-sections-and-strip.js). */
.deck.rbn-dense{
  --rbn-bar-h:59px;
  --rbn-btn-h:24px;
  --rbn-track:26px;
  --rbn-row-gap:2px;
  --rbn-band:54px;
  --rbn-tile-h:50px;
}
.deck.rbn-dense:not(.rbn-side) .edit-tools .rbn-grp{padding-top:2px;
  padding-bottom:2px;}
.deck.rbn-dense .edit-tools .dbtn.rbn-sm{padding-top:2px;padding-bottom:2px;}
.deck.rbn-dense .edit-tools .fx-tile{gap:3px;}
.deck.rbn-dense .edit-tools .fx-tile .bic{width:20px;height:20px;}
.deck.rbn-dense .rbn-tabs{height:26px;}
.deck.rbn-dense .deck-qat{min-height:30px;padding-top:2px;padding-bottom:2px;}
/* One row, and it neither wraps nor scrolls. Wrapping fragmented groups
   across rows ("just all these rows of things"); a sideways scrollbar was
   rejected just as flatly. So width comes from density: fitEditRibbon()
   walks the .erc1-.erc4 ladder below until it fits, and no stage ever
   hides a word — that has been refused twice before. If even the tightest
   stage cannot fit, the toolbar moves to the right-hand edge, where it
   has a whole column to use. */
.edit-tools.ribbon{display:flex;flex-wrap:nowrap;align-items:stretch;
  gap:0;padding:0 10px;border-bottom:1px solid #ffffff14;
  background:var(--chrome-1,#0e1926);flex:none;height:var(--rbn-bar-h);
  /* Clip sideways only. A plain overflow:hidden would also clip every
     dropdown that opens downward, so a menu such as Shape would look cut
     off at the ribbon's edge. One rule here covers every menu, including
     ones added later, instead of floatMenu() at each call site. */
  overflow-x:clip;overflow-y:visible;}
/* The first open of a session draws the slide before the ribbon's first
   fit (ribbonFitAfterFrame); for that frame the bar is there at its height
   and its controls are hidden, so an unfitted row is never seen. Along the
   top they are not even laid out until then (the bar's height is a token
   and it spans the stage's 1fr column, so neither the stage nor the
   strip's column is sized by its contents); a side ribbon is a column
   sized by its contents, so it only hides them. */
.edit-tools.ribbon.rbn-unfit>*{visibility:hidden;}
/* In front of the slide column's handle. #film-resize is fixed, z-index
   130 and the window's whole height, and the bar is not otherwise
   positioned, so the handle would lie over the ribbon where the column
   meets it. The bar takes z-index 130 as well; coming later in the markup
   it wins the tie, and it stays under the tab strip (131) and the title
   row (132). */
.deck.editing>.edit-tools{position:relative;z-index:130;}
.deck:not(.rbn-side)>.edit-tools.ribbon.rbn-unfit{content-visibility:hidden;}
.rbn-static{display:contents;}
/* A group is the unit you scan: its controls sit together over one
   centred label, with a rule between it and the next. Its padding is
   --rbn-grp-px (about PowerPoint's): the rule between two groups does the
   separating, not a wide margin. At full size there is 4px over the band
   and 2px under the name, with 2px between them; the name is the band's
   foot, not a row of its own. In Compact the name is out of the stack (it
   shows on hover, below), so the group is the band and 2px either side
   (.deck.rbn-dense below). The side ribbon keeps the name in its column as
   a heading. */
.rbn-grp{display:flex;flex-direction:column;align-items:center;
  justify-content:space-between;gap:2px;
  padding:4px var(--rbn-grp-px) 2px;
  position:relative;min-width:0;flex:none;
  border-right:1px solid #ffffff1c;}
.rbn-grp:last-child{border-right:none;}
/* the hint sits after the last group and must not look like a group */
/* The hint is a reminder, not a control, so it is the first thing to go
   when the row is tight — but it goes whole. An ellipsis ("Clic…") is
   text truncation, which is the same sin as hiding a word; it is dropped
   by measurement in fitEditRibbon, before any density rung. */
.edit-tools.ribbon .et-hint{border-left:none;align-self:center;
  margin-left:auto;padding:0 10px;flex:none;white-space:nowrap;}
.deck.erc-nohint .edit-tools.ribbon .et-hint{display:none;}
.rbn-grp[hidden]{display:none;}
/* the body holds big buttons and stacks of small ones side by side */
/* A grid of two fixed rows, filling column by column. Wrapping a flex row
   is guesswork: the contextual groups are eleven bare buttons each, and
   capping their width to force two rows would produce four or more rows
   inside a clipped 58px box. Two 26px rows flowed by column cannot do
   that: a control either has a cell or the group is visibly wider. */
/* The track is --rbn-track and the button inside it is --rbn-btn-h,
   deliberately the smaller of the two: the button is a target hit all day,
   and the 2px of track around it lets a control that arrives a little
   taller be absorbed rather than burst the band. */
/* Column-major, the PowerPoint way. Controls fill a column top to bottom,
   two to a column, before the next column starts, so the two buttons that
   share a column share a width and nothing else does (a row-major grid
   made every column as wide as its widest member in either row). A tall
   control spans both rows and takes a column of its own. The markup pairs
   neighbours deliberately. */
.rbn-row{display:grid;grid-auto-flow:column;
  grid-auto-columns:max-content;
  grid-template-rows:var(--rbn-track) var(--rbn-track);
  row-gap:var(--rbn-row-gap);column-gap:var(--rbn-col-gap);
  align-items:stretch;justify-items:start;height:var(--rbn-band);}
/* the tall things span both rows rather than sitting in one */
.rbn-row>.rbn-stack{grid-row:1/span 2;}
/* ...but never a cell. It is one track high by rule, so a `rbn-tall` on
   one would reserve a row nothing can fill. sizeRibbonGroups counts it as
   one cell to match. `.rbn-odd` is excepted: it means "the last cell of an
   odd group, centred in the band", a span the cell really does want. */
.rbn-row>.rbn-cell.rbn-tall:not(.rbn-odd){grid-row:auto;}
/* a dropdown's wrapper is the cell; the button fills it */
.rbn-row>.sh-drop,.rbn-row>.dc-menuwrap{display:flex;}
/* ...and a wrapper whose button is hidden must not keep its cell. The
   column count skips it ("a wrapper counts as the one cell it
   contributes") but the grid would not, so the overflow would land in an
   implicit third row and, for example, the opacity slider would print over
   the colour caption when it shares a group with the sometimes-hidden Fill
   button. One rule covers every wrapper, including ones added later. */
.rbn-row>.sh-drop:has(>.dbtn[hidden]),
.rbn-row>.dc-menuwrap:has(>.dbtn[hidden]){display:none;}
.rbn-row>.sh-drop>.dbtn,.rbn-row>.dc-menuwrap>.dbtn{width:100%;height:100%;}
/* the one wrapper that holds two real buttons rather than one. Scoped to
   .tx-split so the rule above still governs every other wrapper: Text
   takes the cell and the caret takes what it needs (about 18px). The caret
   is never hidden, because the :has(>.dbtn[hidden]) rule above would take
   the whole control down with it. */
.rbn-row>.sh-drop.tx-split>.dbtn{width:auto;}
.rbn-row>.sh-drop.tx-split>.dbtn[data-tool]{flex:1;min-width:0;}
.rbn-row>.sh-drop.tx-split>.tx-caret{flex:none;padding-left:4px;
  padding-right:4px;}
/* the split whose button is a tile (Send it away): the caret is the tile's
   height, centred beside it, not the band's */
.rbn-row>.sh-drop.tx-split.rbn-tall>.tx-caret{height:var(--rbn-tile-h);
  align-self:center;}
/* ...and the two are one control, as Present and its caret are on the row
   above: no gap, the inner corners square, one faint seam between them */
.rbn-row>.sh-drop.tx-split.rbn-tall{gap:0;align-items:center;}
.rbn-row>.sh-drop.tx-split.rbn-tall>.fx-tile{border-top-right-radius:0;
  border-bottom-right-radius:0;}
.rbn-row>.sh-drop.tx-split.rbn-tall>.tx-caret{border-top-left-radius:0;
  border-bottom-left-radius:0;border-left-color:#ffffff14;margin-left:-1px;
  padding-left:5px;padding-right:5px;}
.rbn-row>.sh-drop.tx-split.rbn-tall>.tx-caret:hover{
  border-left-color:var(--cyan);}
.tx-type-menu{min-width:248px;}
/* two or three controls that are one decision and therefore one cell —
   the zoom stepper, for instance, whose minus and plus must never end up
   on different rows */
.rbn-cell{display:flex;align-items:stretch;gap:3px;height:var(--rbn-track);}
/* The readout renames itself from "Zoom 25%" to "Zoom 100%", and it is the
   widest thing in the View group's first column — so without a floor the
   whole group breathed as you zoomed and shoved Output sideways with it.
   Held to the longest label it can hold, in characters so it survives
   every density rung, which is the same fix the app bar's view column
   already uses for the Tree button that renames itself. */
#zoom-val{min-width:calc(9ch + 2 * var(--rbn-btn-px) + 2px);
  justify-content:center;}
/* the group's name: 10px sans in sentence case, which stays readable where
   spaced capitals at 8.5px were tiny. It is the line the band stands on: a
   word's height and no more, with its descenders in the group's 2px foot.
   The buttons' words stay 12px; a name is a label, not a target. */
.rbn-lab{font-family:var(--sans);font-size:10px;letter-spacing:0;
  text-transform:none;color:var(--chrome-ink-2);line-height:1;white-space:nowrap;}
/* ---- The group name on hover ----
   In Compact a group's name is a small label hung under the group while
   the pointer rests on it or the keyboard is inside it (.rbn-kbd,
   initRibbonNames in 05-figures-and-ribbon.js), over the slide's margin,
   so it costs neither height nor width. It stays in the group's markup, is
   read out with it, and is still the name of the menu when the group folds
   (a folded menu says its name, so it shows none). Pointer events pass
   through it to the slide. A short delay keeps a sweep across the row from
   flashing every name. At rest it is a 1px clipped box (the
   visually-hidden pattern), not opacity:0: a name wider than its group
   would stand out past it, and even an invisible box widens the bar's
   scroll width, which the fit and the never-wraps check both read. Not
   display:none either, which would hide the name from screen readers. The
   fade is an animation, since the box only gets its size as it is shown. */
/* Compact's. At full size the name stands under its group, in the stack,
   except under a folded group's menu button, which says its name itself */
.deck:not(.rbn-dense):not(.rbn-side) .edit-tools .rbn-grp.rbn-folded>.rbn-lab{
  visibility:hidden;}
.deck.rbn-dense:not(.rbn-side) .edit-tools .rbn-grp{justify-content:center;}
.deck.rbn-dense:not(.rbn-side) .edit-tools .rbn-grp>.rbn-lab{position:absolute;
  left:50%;top:calc(100% - 4px);transform:translateX(-50%);z-index:5;
  width:1px;height:1px;padding:0;border:0;overflow:hidden;
  clip-path:inset(50%);border-radius:5px;background:var(--chrome-3);
  font-size:11px;color:var(--chrome-ink);pointer-events:none;}
.deck.rbn-dense:not(.rbn-side) .edit-tools .rbn-grp:not(.rbn-folded):hover>.rbn-lab,
.deck.rbn-dense:not(.rbn-side) .edit-tools .rbn-grp.rbn-kbd:not(.rbn-folded)>.rbn-lab{
  width:auto;height:auto;padding:3px 8px;border:1px solid var(--chrome-line);
  overflow:visible;clip-path:none;box-shadow:0 4px 14px var(--shadow);
  animation:rbn-lab-in .12s .25s both;}
@keyframes rbn-lab-in{from{opacity:0;}to{opacity:1;}}

/* --- One button size, everywhere ---
   Emphasis is for colour: Present is accented and everything else is
   identical, so the eye has one thing to land on. There is no .rbn-big
   (icon-over-label) button. */
/* every ribbon button is the same height and sits on the same baseline */
/* The height of a ribbon button, in one place. A joined run is on this list
   too: .rbn-cell is a fixed --rbn-track so a dropdown wrapper fills its
   grid track, and align-items:stretch would push the segments inside a run
   taller than the buttons beside them. The run takes the canonical height
   and its segments fill it, so they cannot drift apart at any density
   rung. */
.rbn-row>.dbtn,.rbn-row .sh-drop>.dbtn,
.rbn-row .dc-menuwrap>.dbtn,
.rbn-row>.rbn-cell.rbn-seg{height:var(--rbn-btn-h);box-sizing:border-box;
  align-self:center;}
/* two or three small buttons stacked in the height of one big one */
.rbn-stack{display:flex;flex-direction:column;gap:3px;
  justify-content:center;}
.rbn-stack.rbn-cols{flex-direction:row;align-items:stretch;gap:3px;}
.rbn-stack .rbn-col{display:flex;flex-direction:column;gap:3px;
  justify-content:center;}
.dbtn.rbn-sm{display:flex;align-items:center;gap:var(--rbn-btn-gap);
  padding:3px var(--rbn-btn-px);
  font-family:var(--sans);font-size:12px;white-space:nowrap;min-height:0;
  line-height:1.4;}
/* the flex gap is the only spacer here: `.dbtn .bic` also carries
   margin-right:4px, which stacked on it, so a button with a .bic had
   10px between icon and word and one with a bare svg had 6px -- two
   rhythms on one row, and 4px of width on most of the bar. */
.dbtn.rbn-sm i,.dbtn.rbn-sm svg{width:15px;height:15px;flex:none;
  margin-right:0;}
/* a row of icon-only squares, for things whose icon says it all */
.dbtn.rbn-ico{display:flex;align-items:center;justify-content:center;
  width:var(--rbn-btn-h);height:var(--rbn-btn-h);padding:0;font-size:12px;}
.dbtn.rbn-ico i,.dbtn.rbn-ico svg{width:14px;height:14px;}
/* Save + its destination chevron, welded into one split button so they
   read as one decision rather than two rival save controls */
.dc-savegrp{display:flex;align-items:stretch;}
.dc-savegrp .dbtn{border-radius:0;}
.dc-savegrp>.dbtn:first-child{border-radius:6px 0 0 6px;}
.dc-savegrp .dc-menuwrap>.dbtn{border-radius:0 6px 6px 0;
  border-left-color:#ffffff14;padding-left:6px;padding-right:6px;}
.dc-savegrp .dc-menuwrap>.dbtn:hover{border-left-color:var(--cyan);}
/* ---- Two regions ----
   The rule the bar keeps above all others: nothing that is always there
   may move when something is selected.
   Left is constant. File, Slide and View are on screen in that order
   whatever is selected, and nothing further right can push them, because
   flex lays out in order and they come first.
   Right is the region that changes: Notebooks and Insert while nothing is
   selected, the selected item's own groups when something is. The swap
   therefore happens at one boundary, at the far end, and the constant half
   never feels it.
   Groups pack left rather than being flung at the window edge by an auto
   margin, which would turn every spare pixel into one void in the middle
   of the bar. ---- */
.rbn-file{order:1;}
.rbn-slide{order:0;}      /* the page itself first on Design */
.rbn-pagesize{order:0;}   /* its size beside it, then the layouts */
/* the Background block: two columns of two tracks each and the deck-wide
   verb, on the shelf or in a group */
/* Background on the row: Page colour, Border, Apply to
   (60-saving-and-export.js bgBoot) */
.bg-block{display:flex;align-items:center;gap:6px;}
.bg-block>.fx-tile.rbn-tall{height:var(--rbn-tile-h);align-self:center;
  position:relative;}
/* the colour in use, a bar under the icon as Word's font colour has: a
   label that wraps to two lines cannot push it out of the tile */
.bg-door-bar{display:block;width:22px;height:4px;border-radius:2px;
  margin:-3px auto 1px;box-shadow:0 0 0 1px var(--chrome-line);flex:none;
  order:1;}
.bg-door>.bg-door-t{order:2;}
/* the word and its arrow on one line, inside the tile: "Page colour" would
   otherwise wrap and push the arrow out under the tile's edge, so the tile
   is as wide as the line */
.bg-door{padding:0 6px;gap:4px;}
.bg-door>.bg-door-t{white-space:nowrap;}
.bg-door-bar.is-off{background:repeating-linear-gradient(135deg,
  transparent 0 3px,var(--chrome-line) 3px 4px)!important;}
/* Apply to, a grid: its word down the left across both rows, then two even
   columns (This | All over Range | its box) */
.bg-scope{display:grid;grid-template-columns:auto 1fr minmax(74px,1fr);
  grid-template-rows:var(--rbn-track) var(--rbn-track);
  align-items:center;column-gap:4px;row-gap:4px;}
.bg-scope-lab{grid-row:1/3;grid-column:1;align-self:center;
  font-size:11px;color:var(--chrome-ink-2);white-space:nowrap;
  margin-right:2px;}
.bg-scope>.bg-sc,.bg-scope>.bg-range{justify-self:stretch;min-width:0;}
/* the box takes its column's width and gives the column none of its own,
   or its default 20 characters set the width of both columns */
.bg-scope>.bg-range{width:0;min-width:100%;padding:2px 5px;}
/* Watermark and Deck colours in a logbook are full tiles by the general
   rule (.rbn-lone, sizeRibbonGroups) */
.bg-scope>.bg-sc{justify-content:flex-start;}
/* ...and in the side toolbar's column (225px) the block wraps: Page colour
   and Border, then Apply to over its two even columns */
.deck.rbn-side .rbn-row>.bg-block{flex:1 1 100%;min-width:0;flex-wrap:wrap;}
.deck.rbn-side .bg-scope{grid-template-columns:1fr 1fr;width:100%;
  grid-template-rows:auto var(--rbn-track) var(--rbn-track);}
.deck.rbn-side .bg-scope-lab{grid-row:1;grid-column:1/3;}
.bg-sc{white-space:nowrap;}
.bg-sc[aria-pressed="true"]{border-color:var(--accent);color:var(--chrome-ink);
  background:color-mix(in srgb,var(--accent) 18%,transparent);}
.bg-range{box-sizing:border-box;width:92px;height:calc(var(--rbn-track) - 2px);
  font:12px var(--sans);padding:2px 7px;border-radius:6px;
  border:1px solid var(--chrome-line);background:var(--input-bg);
  color:var(--chrome-ink);}
.bg-range.is-on{border-color:var(--accent);}
.bg-range:focus-visible{outline:2px solid var(--accent);outline-offset:1px;}
.sh-menu.sw-menu.bg-menu{box-sizing:border-box;width:min(296px,calc(100vw - 12px));}
.bg-menu .bg-auto-row{flex:0 0 100%;box-sizing:border-box;
  display:flex;align-items:center;
  justify-content:flex-start;gap:9px;padding:6px 8px;text-align:left;
  white-space:normal;height:auto;}
.bg-auto-sw{display:inline-block;flex:0 0 22px;width:22px;height:22px;
  border-radius:5px;
  box-shadow:0 0 0 1.5px #ffffff38 inset;}
body.light .bg-auto-sw{box-shadow:0 0 0 1.5px #0000002e inset;}
.bg-auto-t{font:12px/1.3 var(--sans);color:var(--chrome-ink-2);}
.bg-auto-t b{color:var(--chrome-ink);font-weight:600;}
.bg-auto-row[aria-pressed="true"]{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 14%,transparent);}
.bg-menu .bg-ws{flex:0 0 100%;display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;}
.bg-menu .bg-w{display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:3px;
  padding:5px 2px;height:auto;font-size:11px;white-space:normal;
  text-align:center;line-height:1.15;}
.bg-menu .bg-w[aria-pressed="true"]{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 16%,transparent);}
.bg-frame-ic{display:block;color:var(--chrome-ink);}
.sw-menu>.hd-lab.bg-sec2{border-top:1px solid #ffffff1c;padding-top:8px;
  margin-top:3px;}
body.light .sw-menu>.hd-lab.bg-sec2{border-top-color:var(--chrome-line);}
/* a colour or a border under the pointer, on the live page only */
.deck .deck-stage .slide.pv-page{background:var(--pv)!important;}
.deck .deck-stage .slide.pv-border{box-shadow:var(--pv)!important;}
.rbn-view{order:3;}
/* the Window group comes after View, at the tab's end: it is set once and
   left alone */
.rbn-window{order:4;}
/* View's groups between Views and Window, in the markup's order */
.rbn-vguides,.rbn-vover,.rbn-vcheck,.rbn-vpanels{order:3;}
/* Design reads Slide, Page furniture, Type, in the markup's order. Without
   a rung Page furniture would sit at 0 and come first. */
.rbn-furn{order:3;}
/* ---- everything below here is the changing region. Output and Notebooks
   belong to it because they stand down for a selection: a group that can
   disappear cannot be part of the half that promises never to move. ---- */
/* Output is gone: Print check was its only control, and one button under
   its own heading does no work. It sits with the other ways of looking at
   the page. */
.rbn-type{order:4;}
/* the deck's type on Text follows Write; the deck-wide colours and spacing
   on Design follow Page furniture */
.rbn-decktype{order:6;}
/* Typing (AutoCorrect's switch) comes after the deck's type; with no rung
   it would sit at 0 and come first */
.rbn-typing{order:7;}
.rbn-deckwide{order:4;}
/* the Style system is a tall tile, like History (sized by the one
   standing-tile rule beside .fx-tile) */
/* The default contextual surface is two tabs rather than one long tray:
   Style is how a thing looks; Object is where it is, where it came from
   and how it is reused. */
.rbn-fontgrp{order:0;}
.rbn-paragrp{order:1;}
/* Text style after Paragraph (the same rung, later in the page); Case and
   Clear share the face's column */
.rbn-txstyle{order:1;}
.rbn-row>.fmt-caseclear{display:flex;align-items:center;gap:3px;}
.rbn-row>.fmt-caseclear>.sh-drop{display:flex;}
.rbn-linegrp{order:2;}
/* transitions lead the Animation tab, the way the Transitions tab leads
   Animations in PowerPoint. Exit and Page turn get rungs too: without one
   a group sits at 0 and comes first, so "Disappear" and a flip book's page
   turn would arrive ahead of "Appear". */
/* Slide transition is on the Present tab, after the talk's own groups
   (Play, Version, Talk are 1-3) */
.rbn-trans{order:4;}
.rbn-transpv{order:4;}    /* beside it */
.rbn-anim{order:1;}
.rbn-exit{order:3;}
.rbn-mop{order:3;}        /* after Exit */
.rbn-focus{order:3;}      /* after Leaves early, before Motion */
.rbn-motion{order:4;}     /* after Leaves, before the slide */
.rbn-flipfx{order:5;}
/* The choosers lead and the two groups of verbs follow them. They are the
   buttons you press rather than the options you pick, so they keep a place
   of their own that no chooser can push around. They follow the choosers
   rather than being pushed to the far edge: the shelf takes a line of its
   own (below), so a margin-left:auto would only leave a hole in the middle
   of the row, and this tab's groups would not pack from the left. */
.rbn-build{order:8;}
.rbn-rule{order:9;}   /* the verb about many slides, after them */
/* Build order leads. With four groups on the tab there is no row to
   squeeze it out of, and the Animation panel is the one entry point that
   holds everything the tab no longer shows, so it comes first, where a
   narrow window never reaches it. */
.rbn-order{order:0;}
/* ---- The shelf ----
   One strip in the ribbon that a chooser's whole row moves into, so the
   options land in the bar rather than in a pop-up over the slide, one row
   at a time. It takes the middle: the choosers are to its left, the verb
   groups to its right, and it collapses to nothing when empty so the
   ribbon looks as it normally does. */
/* The shelf gets a row of its own while open and no space while closed.
   The bar is a two-row grid while a shelf is open: every group is pinned
   to row one and auto-placed across it in order-modified document order
   (the same `order` the flex row honours), so row one clips sideways
   exactly as the closed bar does, and the shelf is row two across the
   whole width. Wrapping a flex row instead would let the last group fall
   onto the shelf's line when the fold ladder runs out. The grid has
   sixty-three max-content columns and a 1fr tail rather than an implicit
   grid: the shelf spans 1/-1, which needs explicit lines, and the tail
   lets it reach the far edge. The shelf's own width is contained so its
   content cannot widen the columns the groups sit in. A side rail never
   opens a shelf and keeps its column. .shelf-open is set by rbnShelfOpen
   and cleared by rbnShelfClose, the only two writers of the shelf's
   `hidden`; a :has() on the bar would make every ribbon change re-walk its
   elements. */
.deck:not(.rbn-side) .edit-tools.ribbon.shelf-open{
  display:grid;grid-template-rows:var(--rbn-bar-h) auto;
  grid-template-columns:repeat(63,max-content) minmax(0,1fr);
  height:auto;min-height:var(--rbn-bar-h);}
.deck:not(.rbn-side) .edit-tools.ribbon.shelf-open .rbn-grp{
  grid-row:1;}
.deck:not(.rbn-side) .edit-tools.ribbon>.rbn-shelf:not([hidden]){
  grid-row:2;grid-column:1/-1;contain:inline-size;min-width:0;}
.rbn-shelf{min-width:0;display:flex;
  align-items:center;gap:9px;padding:2px 12px;
  background:var(--chrome-1,#0e1926);
  border-top:1px solid var(--chrome-line,#ffffff1f);}
.rbn-shelf[hidden]{display:none!important;}
/* a word in the sans, as a menu's heading is, not spaced capitals in the
   mono */
.rbn-shelf-name{flex:none;color:var(--chrome-ink-2);
  font:600 11px var(--sans);letter-spacing:0;text-transform:none;}
/* The scroller is the body, not the shelf. Twenty-two shapes are wider
   than any window, and if the shelf itself scrolled, its name and close
   button would scroll away under the tiles. Only the row moves; the two
   things that frame it stay put. */
.rbn-shelf-body{display:flex;align-items:center;flex:1 1 auto;min-width:0;
  overflow-x:auto;overflow-y:hidden;}
/* One line, not the group's two. A .rbn-row is a two-track grid that
   flows down and then across, which is right inside a group 90px tall
   and wrong on a shelf that has a whole width to spend: it showed three
   of the thirteen movements and hid the rest in a second track nothing
   could see. Here the row is a flex line and everything is on it. */
.rbn-shelf-body>.rbn-row{display:flex;align-items:center;
  height:auto;column-gap:var(--rbn-col-gap);}
.rbn-shelf-body>.rbn-row>*{flex:none;}
/* A tile strip is a scroll box inside its group -- a fixed height, wrap
   on, overflow hidden, and little arrows to page through it. On the
   shelf there is nothing to scroll past: it lays its tiles out in one
   line and shows all of them, which is the whole point of coming here.
   The arrows go with the scrolling. */
.rbn-shelf-body .strip-frame{overflow:visible;width:max-content;
  flex:none;}
.rbn-shelf-body .strip-frame>.fx-strip.fx-strip{flex-wrap:nowrap;overflow:visible;
  width:max-content;max-width:none;}   /* doubled class outranks each strip's own, later, width rule */
.rbn-shelf-body .strip-nav{display:none;}   /* hides the column, not just its buttons */
.rbn-shelf-body .strip-more,.rbn-shelf-body .strip-prev,
.rbn-shelf-body .strip-next{display:none;}
/* a row too wide for the bar fades at the edge instead of simply ending.
   The fade is on the scroller, so it marks the edge the tiles run off and
   leaves the name and the close button alone. */
.rbn-shelf.can-scroll .rbn-shelf-body{
  mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);}
/* last in the line, outside the scroller, so it is always reachable and
   never over a tile */
.rbn-shelf-close{flex:none;align-self:center;}
/* ---- The shelf is one slim line ----
   The shelf lays its options out as 30px tiles with the icon beside its
   word, not as full ribbon tiles (56px, icon over word), so opening Shapes
   adds little chrome and the slide does not shrink. The scrollbar is thin
   and the wheel scrolls the line (rbnShelfBoot). Selected by id so no
   strip's own size rule further down can put the tall tile back. */
#rbn-shelf-body{scrollbar-width:thin;}
#rbn-shelf-body .strip-frame,#rbn-shelf-body .fx-strip{height:auto;}
/* The timing shelf wraps its sections. Start, Text sequence, Each text
   step and Words flow in are four labelled sections, too wide for one
   line; the last two would run off the end of a scrolling line with
   nothing saying they are there. A section that does not fit starts a
   second slim line instead: still a shelf of 30px tiles, never a scroll.
   Shapes and the other one-strip shelves still scroll. */
#rbn-shelf-body>.rbn-row:has(>.tm-sec){flex-wrap:wrap;row-gap:4px;
  padding:2px 0;}
#rbn-shelf-body>.rbn-row:has(>.tm-sec)>.tm-sec{min-height:32px;}
/* a strip on the shelf is as wide as its tiles, whatever width a strip's
   own id gives it in the row */
#rbn-shelf-body .strip-frame>.fx-strip.fx-strip{width:max-content;
  max-width:none;}
#rbn-shelf-body .strip-frame{border:0;background:none;}
#rbn-shelf-body .fx-tile{flex-direction:row;height:30px;min-height:0;
  width:auto;min-width:0;flex:none;padding:0 9px;gap:6px;
  white-space:nowrap;}
#rbn-shelf-body .fx-tile .bic{width:16px;height:16px;}
#rbn-shelf-body .fx-tile .sh-ico{width:18px;height:15px;}
/* the door that owns the shelf reads as pressed while it does */
.rbn-grp.rbn-shelved .rbn-foldbtn{
  background:color-mix(in srgb,var(--accent) 30%,transparent);
  border-color:var(--accent,var(--cyan));}
/* the effect tiles, in the row. A tall cell spanning both rows (rbn-tall
   counts as two, like a stack), five tiles of icon over word as in
   PowerPoint, the one that is on lit. Disabled with nothing selected. */
.rbn-row>.rbn-tall{grid-row:1/span 2;}
.fx-strip{display:flex;gap:var(--rbn-tile-gap);align-items:stretch;
  height:var(--rbn-band);}
/* Every tall ribbon control (an effect, a layout, a shape, a text type, a
   page size, New slide, the Keep up to date buttons) has the same shape
   and is --rbn-tile-h tall, whether it stands alone or sits in a frame
   over a scrollbar. */
/* A tile is never narrower than its longest word. It is --rbn-tile-w
   wide, or as wide as its longest word if that is more. min-content does
   this: a multi-word label still wraps inside the tile, while a single
   word that cannot wrap widens it instead of overflowing. A tile in a
   strip keeps its flex-basis, so a gallery stays a whole number of tiles
   wide. */
.fx-tile{width:min-content;min-width:var(--rbn-tile-w);
  display:flex;flex-direction:column;
  align-items:center;
  white-space:normal;text-align:center;
  justify-content:center;gap:5px;font-family:var(--sans);font-size:11px;
  line-height:1.1;color:#c9d6e2;background:none;
  border:1px solid #ffffff1f;border-radius:6px;cursor:pointer;
  padding:0 2px;}
.fx-tile .bic{width:24px;height:24px;}
.fx-tile:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent) 55%,transparent);
  color:var(--chrome-ink);background:color-mix(in srgb,var(--accent) 10%,transparent);}
.fx-tile.on{background:var(--accent-deep,var(--cyan-deep));
  border-color:var(--accent-deep,var(--cyan-deep));
  color:var(--on-accent-deep,#fff);}
.fx-tile:disabled{opacity:.35;cursor:default;}
body.light .fx-tile{color:var(--ink-2);border-color:var(--line);}
body.light .fx-tile.on{color:var(--on-accent-deep,#fff);}
/* ...and one rule for a tile that stands in the row: --rbn-tile-h tall
   and centred in the band, whether it is the tall control itself or
   the tile inside a menu's wrapper. This was eight copies -- one per
   id -- and three tiles (Equation, Markdown, Table) had no copy at all
   and stood 60px tall beside their 56px neighbours. */
.rbn-row>.fx-tile.rbn-tall,.rbn-row>.rbn-tall>.fx-tile{
  height:var(--rbn-tile-h);align-self:center;}
/* The current choice shown under a tile's word. A tile with one closes its
   gaps so icon, word and choice fit the height; when pressed, the choice
   takes the tile's own ink. It uses the ribbon's sans font, not a
   monospace one. */
.fx-tile>.rbn-foldval{display:block;font:600 10px var(--sans);
  color:var(--cyan);max-width:118px;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}   /* room for "On click · By bullet" */
.fx-tile>.rbn-foldval[hidden]{display:none;}
.fx-tile.has-val{gap:2px;}
.fx-tile.has-val>span:first-of-type{white-space:nowrap;}
.fx-tile.on>.rbn-foldval,.fx-tile[aria-pressed="true"]>.rbn-foldval{
  color:inherit;}
body.light .fx-tile>.rbn-foldval{color:var(--cyan-deep);}
/* View actions are full-height icon-over-word tiles, like Animation and
   Text. They are the real, independently movable controls, not proxy
   copies, which keeps custom ribbon layouts, keyboard state and the
   narrow View menu consistent. */
.rbn-row>.view-tile{position:relative;}
/* Keyboard hints are useful, but a third flex row made the words stop
   fitting in a 56px tile. Pin the hint into its corner instead. */
.view-tile kbd{position:absolute;top:2px;right:3px;font-size:8px;
  line-height:1;opacity:.62;background:none;border:0;padding:0;}
/* A pair stacked two high (Rulers / Grid, Guides / Guide box) shows its key
   after its word, and drops it with the other hints. */
.view-sm kbd{margin-left:1px;font:8.5px/1 var(--mono);opacity:.62;
  background:none;border:0;padding:0;}
.deck.erc-nohint .view-sm kbd{display:none;}
/* The build numbers show whenever the Animation tab is up, not only while
   the order pane or Quick animate is. */
.deck.tab-animation .an-buildno{display:flex;}
/* Start, sequence and text-step behaviour sit beside the entrance effect
   as separate choices, in labelled sections of the one Timing menu. */
.rbn-timing{order:2;}
.tm-sec{display:flex;align-items:center;gap:6px;flex:none;}
.tm-sec+.tm-sec{border-left:1px solid var(--chrome-line,#ffffff1f);
  padding-left:10px;margin-left:4px;}
.tm-lab{flex:none;font:600 11.5px var(--sans);color:var(--chrome-ink-2);}
.anim-delaywrap .fmt-num{width:44px;}
.rbn-start .dbtn:disabled{opacity:.4;cursor:default;}
/* The lit chip must read as selected even under a theme. The colourful
   theme paints every .dbtn at three classes deep, which beats the two of
   .seq-fxb.on, so these selectors are deeper. */
.rbn-row .seq-fx .seq-fxb[aria-pressed="true"],
.rbn-row .rbn-cell .dbtn.rbn-sm[aria-pressed="true"]{
  background:var(--accent-deep,var(--cyan-deep));
  color:var(--on-accent-deep,#fff);
  border-color:var(--accent-deep,var(--cyan-deep));}
.rbn-insert{order:6;}
/* Write and Draw share Insert's rung and follow it by source order: place
   a thing, write words, draw a line */
.rbn-write{order:6;}
/* Links follows Write on the same rung, by source order */
.rbn-links{order:6;}
/* Shapes sit between Write and Draw */
.rbn-shapes{order:6;}
/* Icons follow Shapes, by source order */
.rbn-icons{order:6;}
.rbn-draw{order:6;}
/* Home's layout groups follow Slides and View keeps its place. The saved
   layouts and the refresh buttons come last, so they fold first on a
   narrow window and the everyday toggles stay in view. */
.rbn-layout,.rbn-this,.rbn-arrange{order:1;}
.rbn-sources{order:2;}
/* Save version is last. Without a rung it sat at 0, between New slide and
   This slide. */
.rbn-vers{order:9;}
.rbn-show{order:3;}
/* Spacing follows Layout */
.rbn-spacing{order:2;}
/* on Design: Layout, then Apply to other slides, then Slide */
/* last, so it is what folds first on a narrow window */
.rbn-apply{order:1;}
/* the two commands that reach the sources, drawn in the accent */
.dbtn.dbtn-accent{border-color:color-mix(in srgb,var(--accent) 60%,transparent);
  background:color-mix(in srgb,var(--accent) 14%,transparent);color:#eaf6fa;}
.dbtn.dbtn-accent:hover{border-color:var(--cyan);
  background:color-mix(in srgb,var(--accent) 24%,transparent);}
body.light .dbtn.dbtn-accent{color:var(--ink);}
/* The Keep up to date tiles use the effect tiles' shape, wider and with a
   bigger icon. Also used by the rows of the All images pane. */
.big-strip{gap:var(--rbn-tile-gap);}
/* a standing tile is the in-frame tile's height, centred in its cell */
.rbn-row>.fx-strip.big-strip{align-items:center;}
.big-strip .fx-tile{height:var(--rbn-tile-h);}
.fx-tile.big-tile[aria-pressed="true"]{background:var(--accent-deep,var(--cyan-deep));
  border-color:var(--accent-deep,var(--cyan-deep));
  color:var(--on-accent-deep,#fff);}
.img-row{display:flex;align-items:center;gap:8px;padding:6px 7px;
  border-radius:7px;cursor:pointer;color:#c9d6e2;}
.img-row:hover{background:#ffffff0c;}
.img-th{flex:none;width:46px;height:32px;border-radius:4px;
  background:var(--chrome-0,#0b141d);border:1px solid #ffffff14;
  display:flex;align-items:center;justify-content:center;overflow:hidden;}
.img-th img{width:100%;height:100%;object-fit:cover;display:block;}
.img-th .bic{width:18px;height:18px;opacity:.7;}
.img-mid{flex:1;min-width:0;}
.img-t{font-size:12px;}
/* the source line under the path: the figure's number, its commit and the
   verbs, as low-weight text on their own row */
/* the one toast that can be answered */
.toast-act{font:inherit;font-size:11px;margin-left:8px;padding:2px 8px;
  border:1px solid var(--accent);border-radius:5px;background:transparent;
  color:var(--accent);cursor:pointer;}
.toast-act:hover{background:var(--accent);color:var(--chrome-1);}
.img-acts{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;
  margin-top:3px;}
.img-num{font-size:10px;color:var(--chrome-ink-3);
  font-variant-numeric:tabular-nums;}
.img-act{font:inherit;font-size:10px;line-height:1.4;padding:1px 6px;
  border:1px solid var(--chrome-line);border-radius:4px;
  background:var(--chrome-2);color:var(--chrome-ink-2);cursor:pointer;}
.img-act:hover{background:var(--chrome-3);color:var(--chrome-ink);}
.img-act.on{border-color:var(--accent);color:var(--accent);}
.img-from{font-family:var(--mono);font-size:10px;color:var(--chrome-ink-2);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body.light .img-row{color:var(--ink-2);}
/* a saved layout's tile: the dialog's thumbnail at tile size */
.lay-strip .lay-savedth{display:block;overflow:hidden;}
.lay-strip .lay-savedth>*{width:100%;height:100%;}
/* the Drawing group follows Draw; it exists only while a tool is armed */
.rbn-cancel{order:6;}
/* A folded group is one worded button over a popover holding its row. The
   row holds the real controls, moved rather than copied, and is laid out
   exactly as in the ribbon. */
.sh-menu.rbn-foldmenu{display:block;width:auto;padding:8px 10px;
  /* never wider than the window: a group of seventy controls would
     otherwise open a popover far wider than the viewport. The row wraps
     instead. */
  max-width:calc(100vw - 16px);box-sizing:border-box;}
.rbn-foldmenu .rbn-row{height:auto;display:flex;flex-wrap:wrap;
  align-items:center;gap:var(--rbn-row-gap) var(--rbn-col-gap);}
.rbn-grp.rbn-folded>.rbn-foldwrap{display:flex;height:var(--rbn-band);
  align-items:center;}
/* The text strip: a specimen "Aa" over the type's name. The strip scrolls,
   and a tile cut at the edge shows that there is more. */
/* the layout tiles and the shape tiles are strips too */
.lay-strip .dbtn.lay{flex:0 0 var(--rbn-tile-w);scroll-snap-align:start;
  display:flex;width:var(--rbn-tile-w);
  min-width:0;white-space:normal;text-align:center;
  flex-direction:column;align-items:center;justify-content:center;
  gap:4px;padding:3px 3px;line-height:1.1;}
.lay-strip .layico2{width:calc(var(--rbn-tile-w) - 22px);}
/* the picker writes a heading into each of its homes; the group label
   is the strip's heading */
.lay-strip>.hd-lab,.lay-strip>.lay-sec{display:none;}
/* the one this slide wears: the review's sweep marks it, as it does
   in the two menus */
.lay-strip .dbtn.lay[aria-pressed="true"]{background:var(--accent-deep,var(--cyan-deep));
  border-color:var(--accent-deep,var(--cyan-deep));}
.shape-strip .fx-tile{flex:0 0 var(--rbn-tile-w);scroll-snap-align:start;}
.shape-strip .fx-tile .sh-ico{width:26px;height:22px;}
/* the provenance cell on the Object tab: a label over a name */
.fmt-path{max-width:170px;}
.fmt-path b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  display:block;max-width:170px;}
/* the folder under the file's name, quieter and cut first */
.fmt-path i{display:block;max-width:170px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;font-style:normal;
  font-size:10px;color:var(--chrome-ink-3);}
/* three page sizes in sight, the rest a scroll or the chevron away.
   Design has to seat Layout in front of this group. */
.page-strip .fx-tile{flex:0 0 var(--rbn-tile-w);scroll-snap-align:start;}
/* Text types use the same full-height gallery as Animation. The first
   visible tile is the ordinary Text box, and the frame's More button shows
   every type. */
.strip-frame>.fx-strip.tx-strip{flex-wrap:nowrap;align-content:initial;
  overflow-x:hidden;overflow-y:hidden;}
/* A name is never cut. The tile is the specimen ("Heading 1" set as a
   heading), so a text tile is as wide as its name, on one line, and never
   narrower than the tile. The strip is as wide as its tiles, up to a
   ceiling (--rbn-txstrip-max) that the compaction ladder lowers a rung at
   a time, and the arrows step by whole tiles past that. The nine built-in
   types fit under the ceiling at rest. */
.strip-frame .tx-strip .fx-tile{height:var(--rbn-tile-h);
  flex:0 0 auto;width:min-content;min-width:var(--rbn-tile-w);
  max-width:none;flex-direction:column;padding:2px 8px;gap:4px;
  scroll-snap-align:start;}
.tx-tile-n{display:block;line-height:1.1;font-family:var(--sans);
  white-space:nowrap;}
/* the page-size tiles, each drawn at its own proportion */
.page-ico{display:block;border:1.5px solid currentColor;border-radius:2px;
  opacity:.85;box-sizing:border-box;}
/* the armed mode's status: two short lines over Cancel */
.et-status{min-width:150px;}
.deck.erc-tight .et-status span+span{display:none;}
/* A text box that is empty shows only a faint dashed edge, not generated
   placeholder text. */
.deck.editing .an-item.an-text:not(.sel):has(>.an-tx:empty){
  outline:1px dashed #ffffff3a;outline-offset:-1px;}
/* Lit for the page it is on, not for the app's colour scheme. Keyed on
   body.light the dash was white on a white slide in the dark app and black
   on a navy slide in the light app. */
.deck.editing .page-light .an-item.an-text:not(.sel):has(>.an-tx:empty){
  outline-color:#0000002e;}
/* The editor's hints that sit straight on the page (a placeholder, an
   empty book, a frame waiting for its notebook) also follow the page, not
   the app. Inside a slide the chrome palette is the dark page's, so on a
   light page they take the light page's quiet ink, as .an-handle does. */
.page-light .an-flipempty,.page-light .an-verwait,
.page-light .an-cell .fp-count{color:#5a6b78;}
/* the whole-deck commands at the foot of the Text styles window */
.style-mgr .opt-row{margin-top:2px;}
.style-mgr .opt-row .dbtn.rbn-sm{flex:1 1 auto;justify-content:center;}
.et-fmt .rbn-grp{order:7;flex:none;}
.edit-tools.ribbon .et-hint{order:9;margin-left:0;}
.deck-title{font-family:var(--sans);font-size:12.5px;color:var(--chrome-ink-2);
  margin-left:16px;padding-left:16px;border-left:1px solid #ffffff1a;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40vw;}
.deck-title:empty{display:none;}
.deck-topslot{display:flex;align-items:center;gap:8px;margin-left:2px;
  flex-wrap:nowrap;}
.deck-topslot:empty{display:none;}
.deck-topright{display:flex;align-items:center;gap:8px;}
.deck-topright:empty{display:none;}
/* One line, one height, nothing wrapping. "File ▾" used to break after
   the word and make its button taller than its neighbours. */
.deck-topslot .dbtn,.deck-topright .dbtn{height:30px;box-sizing:border-box;
  white-space:nowrap;display:inline-flex;align-items:center;
  justify-content:center;line-height:1;}
.deck-topslot .dc-menuwrap,.deck-topslot .dc-savegrp{display:flex;
  align-items:center;}
.deck-topslot .deck-status{height:30px;box-sizing:border-box;}

/* ---- The compaction ladder ----
   Every rung trades space, never words and never type. PowerPoint folds a
   group rather than shrinking its words, and folding is a tall tile here.
   So every rung keeps its padding and gap steps and has no font-size
   step. */
/* ...and the row-gap is not a step: erc1 used the `gap` shorthand,
   which reset the row gap too, so from the first rung the changing
   half's two rows sat closer together than the constant half's -- two
   baselines on one bar. Column only. */
.deck.erc1 .rbn-grp{padding-left:4px;padding-right:4px;}
/* The text strip is the widest thing on its tab and already a scroll box,
   so it gives width back first: a rung takes 80px off its ceiling and the
   arrows page the rest into view. Every tile stays whole. */
.deck.erc1{--rbn-txstrip-max:604px;}
.deck.erc1 .rbn-row{column-gap:2px;}
.deck.erc2 .dbtn.rbn-sm{padding:3px 5px;gap:3px;}
/* The tile compacts too. A tile has a fixed --rbn-tile-w, so a group made
   of tiles could not shrink at any rung. The token lets a rung shrink the
   width by one line, and no rung touches the type: the label just wraps a
   little sooner. */
.deck.erc2{--rbn-tile-w:58px;--rbn-txstrip-max:524px;}
.deck.erc2 .rbn-stack,.deck.erc2 .rbn-stack .rbn-col{gap:2px;}
/* Spend box width before type size. On 1366-1440px laptops the ladder
   used to run to erc3's small type while the font select stayed at 94px
   and the size box at 44px. Capping the boxes at erc2 stops erc3 firing
   at those widths. */
.deck.erc2 .et-fmt .rbn-row .fmt-num{width:38px;}
.deck.erc2 .et-fmt .rbn-row select.etm{max-width:76px;}
.deck.erc2 .et-fmt .rbn-row .fmt-range{width:66px;}
/* No rung hides an icon. Stripping them buys width but costs the whole
   big/small hierarchy — a label-only wall is the same flat wall that was
   rejected, arrived at from the other side. Density only, to the end. */
.deck.erc3 .rbn-grp{padding-left:3px;padding-right:3px;}
.deck.erc3{--rbn-txstrip-max:444px;}
.deck.erc3 .dbtn.rbn-sm,.deck.erc3 .rbn-row .dbtn.etm{
  padding-left:4px;padding-right:4px;}
.deck.erc3 .rbn-row .fmt-range{width:56px;}
.deck.erc3 .et-fmt .rbn-row select.etm{max-width:68px;}
.deck.erc3 .et-fmt .rbn-row .fmt-num{width:34px;}

/* every cell-sized control has to actually be cell-sized, or it pushes
   its row past the group and over the label */
.rbn-row .dbtn.etm,.rbn-row .fmt-num,.rbn-row select.etm,
.rbn-row .fmt-opwrap,.rbn-row .fmt-szwrap,.rbn-row .rbn-partslot{
  height:var(--rbn-btn-h);box-sizing:border-box;
  padding-top:0;padding-bottom:0;}
.rbn-row .dbtn.etm{display:inline-flex;align-items:center;
  justify-content:center;font-size:12px;
  padding-left:var(--rbn-btn-px);padding-right:var(--rbn-btn-px);}
.et-fmt #fmt-path{order:-2;}
.et-fmt #fmt-srcwrap{order:-1;}
/* Object tools read from the thing itself outwards: source and basic
   appearance first, then geometry, then structure. Typography and
   line/shape treatment belong to the Style tab.
   A group's place comes from the control it holds. The layout engine
   writes it once as data-fmt-ord when it puts controls in groups
   (rbnFmtOrder, from applyRibbonLayout), instead of :has(#fmt-...) rules
   that every change in the ribbon would re-check. The held-control orders
   come after the two class rules on purpose: the old :has() rules carried
   an id's specificity and beat them, and source order keeps that. */
.et-fmt .rbn-grp[data-tab="object"].rbn-picture{order:6;}
.et-fmt .rbn-grp[data-tab="object"].rbn-clones{order:2;}
.et-fmt .rbn-grp[data-tab="object"].rbn-clonelinks{order:7;}
.et-fmt .rbn-grp[data-tab="object"][data-fmt-ord="1"]{order:1;}
.et-fmt .rbn-grp[data-tab="object"][data-fmt-ord="3"]{order:3;}
/* Source comes first, ahead of Arrange */
.deck .et-fmt .rbn-grp[data-tab="object"].rbn-sources{order:-1;}
/* A flip book's own group follows Info. Every group here is order 7
   unless stated otherwise, so without this it was drawn last, after
   Picture, and was the first to fold. */
.et-fmt .rbn-grp[data-tab="object"].rbn-fliptools{order:1;}
.et-fmt .rbn-grp[data-tab="object"][data-fmt-ord="4"]{order:4;}
.et-fmt .rbn-grp[data-tab="object"][data-fmt-ord="5"]{order:5;}
.et-fmt .rbn-grp[data-tab="object"][data-fmt-ord="6"]{order:6;}
/* Align and Equal gaps are last on the tab. They fold first, since Arrange
   keeps every one of their rows. */
.et-fmt .rbn-grp[data-tab="object"].rbn-alignrow{order:8;}
.et-fmt .rbn-grp[data-tab="object"].rbn-alignrow[data-spare="2"]{order:9;}
/* ...and folded, it stands down altogether rather than becoming a door:
   a door would cost the row the room it was folded to free, and every
   row behind it is one click away in Arrange (ribbonFitMeasure knows it
   as a door 0px wide) */
.deck .edit-tools .rbn-grp.rbn-alignrow.rbn-folded{display:none;}
/* the two clone menus: a name box, and the kind that is on */
.cmp-menu .cmp-name{display:block;width:100%;box-sizing:border-box;
  margin:2px 0 6px;padding:5px 7px;font:inherit;font-size:12.5px;
  color:inherit;background:var(--input-bg);border:1px solid var(--line);
  border-radius:6px;}
.cmp-menu .vw-opt.on{background:color-mix(in srgb,var(--accent) 22%,
  transparent);color:var(--chrome-ink);}
.cmp-menu .vw-opt.on::after{content:"on";margin-left:auto;
  font-family:var(--mono);font-size:9px;opacity:.8;}
.cmp-menu .vw-opt[disabled]{opacity:.45;pointer-events:none;}
/* the place the Add a clone button goes, the clone you are on, and Link's
   own button */
.cmp-menu .vw-opt.last::after{content:"the button does this";
  margin-left:auto;padding-left:10px;font-size:10px;opacity:.7;}
#cmp-inst-menu .vw-opt.here{background:color-mix(in srgb,var(--accent) 22%,
  transparent);}
#cmp-inst-menu .vw-opt.here::after{content:"selected";margin-left:auto;
  padding-left:10px;font-size:10px;opacity:.75;}
.cmp-menu .vw-opt.cmp-go{justify-content:center;font-weight:600;
  border-color:color-mix(in srgb,var(--accent) 60%,transparent);}
/* some of the selected objects are linked in this, not all of them */
.cmp-menu .vw-opt.part{background:color-mix(in srgb,var(--accent) 9%,
  transparent);}
.cmp-menu .vw-opt.part::after{content:"some";margin-left:auto;
  font-family:var(--mono);font-size:9px;opacity:.8;}
/* the Link pop-up: a title, then ticks, then which one the others match
   (the name of each beside it), then Link them */
.cmp-pop{min-width:300px;}
.cmp-pop-h{font:600 13px/1.3 var(--sans);color:var(--chrome-ink);
  padding:4px 6px 6px;}
.cmp-pop .vw-opt .fh-n{margin-left:auto;padding-left:10px;max-width:150px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.75;
  font-size:10.5px;}
.cmp-pop .vw-opt.cmp-go{margin-top:6px;background:color-mix(in srgb,
  var(--accent) 26%,transparent);}
.cmp-pop .vw-opt.cmp-go[disabled]{opacity:.45;}
/* what a selected clone or linked object is linked to, shown under it */
.an-cmpchip{position:absolute;z-index:5;margin-top:7px;display:flex;
  align-items:center;gap:5px;padding:2px 7px 2px 5px;white-space:nowrap;
  background:var(--chrome-1,#0e1926);color:var(--chrome-ink,#cdd9e3);
  border:1px solid var(--cyan);border-radius:6px;
  font:600 11px/1.2 var(--sans);cursor:pointer;box-shadow:0 1px 5px #0004;}
.an-cmpchip .bic{width:12px;height:12px;color:var(--cyan);}
.an-linkpills{position:absolute;z-index:6;display:flex;flex-wrap:wrap;
  gap:3px;pointer-events:none;transform:translateY(-50%);}
.an-linkpill{padding:2px 6px;border:1px solid var(--pill-col,var(--cyan));
  border-radius:999px;background:var(--chrome-1,#0e1926);
  color:var(--chrome-ink,#cdd9e3);font:600 9.5px/1.15 var(--sans);
  white-space:nowrap;box-shadow:0 1px 4px #0005;}
/* Link lines: an arrow per link, in its type's colour, over the slide's
   objects and under the label above. Only the lines take a click. While
   snipping, the whole slide is the cutting board. */
/* (the layer's own rule gives every svg directly in it the pointer while
   editing -- the arrows' -- so these name the layer to outrank it) */
.annot-layer>svg.an-lnk{position:absolute;inset:0;width:100%;height:100%;
  z-index:4;overflow:visible;pointer-events:none;}
.deck.editing .annot-layer>svg.an-lnk.snip{pointer-events:all;
  cursor:crosshair;}
.deck.editing .annot-layer>svg.an-lnk:not(.snip){pointer-events:none;}
.an-lnk .lnk-halo,.lnk-g-svg .lnk-halo{fill:none;stroke:rgba(0,0,0,.5);
  stroke-width:5;stroke-linecap:round;}
.an-lnk .lnk-col,.lnk-g-svg .lnk-col{fill:none;stroke-width:2.4;
  stroke-linecap:round;}
.an-lnk .lnk-hit,.lnk-g-svg .lnk-hit{fill:none;stroke:transparent;
  stroke-width:14;pointer-events:stroke;cursor:pointer;}
.an-lnk.snip .lnk-hit{cursor:crosshair;}
.an-lnk .lnk-ln:hover .lnk-col,.lnk-g-svg .lnk-ln:hover .lnk-col{
  stroke-width:3.6;}
.an-lnk .lnk-cut{fill:none;stroke:#ff5a5a;stroke-width:2;
  stroke-dasharray:6 4;}
.lnk-snipping .annot-layer{cursor:crosshair;}
.an-lnkstub{position:absolute;z-index:5;transform:translateY(-50%);
  padding:2px 7px;max-width:260px;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;background:var(--chrome-1,#0e1926);
  color:var(--chrome-ink,#cdd9e3);border:1.5px solid;border-radius:6px;
  font:600 10.5px/1.25 var(--sans);cursor:pointer;box-shadow:0 1px 5px #0004;}
/* a link type's colour, as a short stroke beside its name */
.lnk-sw{display:inline-block;flex:none;width:16px;height:0;
  border-top:3px solid var(--lnk);border-radius:2px;vertical-align:middle;}
.lnk-sw.dash{border-top-style:dashed;}
/* or as the type's icon, drawn in that colour */
.lnk-ic{display:inline-grid;place-items:center;flex:none;width:16px;
  height:16px;color:var(--lnk);}
.lnk-ic .bic{width:15px;height:15px;}
.lnk-ic-turn .bic{transform:rotate(90deg);}
.lnk-menu{min-width:260px;}
/* the link graph: the Tree view's lanes, in a pop-up */
.sh-menu.lnk-graph:not([hidden]){position:fixed;z-index:245;display:flex;
  flex-direction:column;gap:8px;left:50%;top:150px;
  width:min(960px,92vw);max-height:calc(100vh - 190px);
  margin-left:max(-480px,-46vw);
  padding:10px 12px;}
.lnk-g-head{display:flex;align-items:baseline;gap:10px;}
.lnk-g-head .cmp-pop-h{padding:0;}
.lnk-g-sub{font:12px/1.3 var(--sans);color:var(--chrome-ink-2);}
.lnk-g-close{margin-left:auto;}
.lnk-g-box{overflow:auto;min-height:120px;border-radius:8px;
  background:color-mix(in srgb,var(--chrome-ink,#cdd9e3) 5%,transparent);}
.lnk-g-pane{position:relative;}
.lnk-g-svg{position:absolute;left:0;top:0;overflow:visible;}
.lnk-g-node{position:absolute;display:flex;flex-direction:column;
  justify-content:center;gap:1px;padding:4px 10px;text-align:left;
  background:var(--chrome-1,#0e1926);color:var(--chrome-ink,#cdd9e3);
  border:1px solid var(--chrome-line,#2a3a4a);border-radius:8px;
  cursor:pointer;box-shadow:0 1px 4px #0003;}
.lnk-g-node:hover{border-color:var(--cyan);}
.lnk-g-node.root{border:2px solid var(--accent);}
.lnk-g-sl{font:600 10px/1.2 var(--sans);color:var(--chrome-ink-2);}
.lnk-g-nm{font:600 12px/1.25 var(--sans);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.lnk-g-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;
  font:11.5px/1.3 var(--sans);color:var(--chrome-ink);}
.lnk-g-legend>span{display:inline-flex;align-items:center;gap:6px;}
.lnk-g-tip{color:var(--chrome-ink-2);margin-left:auto;}
.lnk-g-none{font:12.5px/1.4 var(--sans);color:var(--chrome-ink-2);
  padding:14px 4px;}
.an-cmpchip:hover{background:color-mix(in srgb,var(--cyan) 24%,
  var(--chrome-1,#0e1926));}
/* Object info: the name, a line under it, then only what is true of this
   object, its links as a count and a list, and its buttons */
.sh-menu.obj-info:not([hidden]){display:flex;flex-direction:column;
  gap:0;width:340px;max-width:calc(100vw - 16px);padding:14px 16px 12px;
  font:13px/1.4 var(--sans);}
.obj-info .oi-title{font:600 15px/1.3 var(--sans);color:var(--chrome-ink);
  overflow-wrap:anywhere;}
.obj-info .oi-sub{color:var(--chrome-ink-2);margin:1px 0 11px;}
.obj-info .oi-rows{display:grid;grid-template-columns:72px 1fr;
  column-gap:10px;row-gap:5px;}
.obj-info .oi-k{color:var(--chrome-ink-2);}
.obj-info .oi-v{color:var(--chrome-ink);overflow-wrap:anywhere;}
.obj-info .oi-sec{border-top:1px solid var(--chrome-line);margin-top:12px;
  padding-top:11px;}
.obj-info .oi-sechd{display:flex;align-items:center;gap:10px;}
.obj-info .oi-count{font-weight:600;color:var(--chrome-ink);flex:1;}
.obj-info .oi-lines{flex:none;font-size:12px;}
.obj-info .oi-list{display:flex;flex-direction:column;gap:3px;margin-top:8px;
  max-height:164px;overflow-y:auto;}
.obj-info .oi-go{width:100%;justify-content:flex-start;font-size:12.5px;}
.obj-info .oi-go>span{overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;min-width:0;}
.obj-info .oi-btns{display:flex;flex-wrap:wrap;gap:6px;
  border-top:1px solid var(--chrome-line);margin-top:12px;padding-top:11px;}
.rbn-row .fmt-range{width:96px;}
/* The File group is assembled in JS out of nodes that were built for the
   docked panel, so it is sized here rather than in markup. They arrive
   carrying the panel's 30px height, which would burst the ribbon's
   grid rows and push the whole bar taller. (Dead since the File
   controls moved to the document bar; kept because applyRibbonLayout
   can still put a .rbn-file group back.) */
.rbn-file .dbtn{padding:3px 8px;font-size:10.5px;height:26px;
  box-sizing:border-box;display:inline-flex;align-items:center;
  justify-content:center;line-height:1;white-space:nowrap;}
/* The readout sits at the far end of the bar while editing, not in the
   File group. It changes text as you work, and a changing width in the
   constant half would drag every group after it along. Pinned right with
   nothing beyond it, its width moves nothing, so it can show the whole
   string. */
/* the theme/support pair and the save readout sit in the thin bar at the
   top, beside the rest of the document's own controls */
/* It goes at the same stage as the hint, before any control tightens. It
   is text, not a control, so dropping it hides nothing clickable. It is
   worth about 110px.
   The stage matters as much as the rule. If it survived into the rung
   ladder, going from "" to "unsaved" would be enough to buy a rung, and
   that rung would compact Insert by 56px. A readout must not change the
   size of the buttons. */
.deck.erc-nostatus .edit-tools.ribbon>.deck-status{display:none;}
.deck.rbn-side .edit-tools.ribbon>.deck-status{margin-left:0;
  align-self:stretch;justify-content:center;margin-top:6px;}
.rbn-file .dc-menuwrap,.rbn-file .dc-savegrp{display:inline-flex;
  align-items:center;height:26px;}
/* The contextual format groups flow into the same rows as the static
   ones. Hidden means removed from layout: visibility:hidden would reserve
   every row they would wrap into, a large dead band on a narrowed poster
   stage. The ribbon's min-height still reserves two rows, so selecting
   and deselecting does not shift the canvas. A selection whose groups
   need a third row may grow it slightly. */
.et-fmt{display:contents;}
.et-fmt[hidden]{display:none;}
/* A selection swaps the Insert group for the contextual format groups, as
   PowerPoint's contextual tab does. The toolbar keeps its two rows and
   the canvas keeps its size. */
/* Selecting something swaps the ribbon over to that item's tools, as
   PowerPoint does with a contextual tab. The contextual groups replace
   the standby ones instead of being appended to them, which needed
   2135px of a 1409px window. File, Slide and View stay, because you still
   save, zoom, change page and consult the object list while an item is
   selected. Present, Notebooks and Insert return when you deselect. */
/* Nothing stands down for a selection: the tab decides what is in the
   row, so Insert cannot collide with the format groups, which are on
   different tabs. fmt-open is kept only as a styling hook. */
/* Present is in the bar at the top, above the tabs, so no tab and no
   selection can hide it. */
/* the seam between the always-there groups and the groups that arrive with
   a selection. On Home it is still a real boundary: Editing is always in
   the row, the format groups only arrive with a selection. */
.et-fmt>.rbn-grp:first-of-type{
  border-left:4px double #ffffff38;margin-left:2px;}
/* Present is accented but must not read as pressed: outline, not fill */
#dc-play.primary{background:color-mix(in srgb,var(--accent) 14%,
  transparent);color:var(--accent);box-shadow:none;
  border-color:var(--accent);font-weight:600;}
#dc-play.primary:hover{background:var(--accent);color:var(--on-accent);}
/* Slide must not step aside for a selection. That moved View 168px to the
   left on an ordinary click, which the toolbar must never do. The width
   comes from the extra rung below instead, which the changing region can
   afford and the constant half never pays. */
/* with nothing selected there is no group to stand aside, so the big
   buttons give up their last few pixels instead — smaller, never fewer
   words */
/* The last rung spends spacing, never type and never an icon. At a 909px
   ribbon, dropping the group padding, column gap, button padding and icon
   gap by 1px each buys 40px, where taking the type from 9px to 8px would
   buy 48px and be unreadable. */
.deck.erc-tight{--rbn-tile-w:52px;--rbn-txstrip-max:364px;}
/* a readout gives up its last few characters at the tightest rung; the
   whole name is on the tooltip */
.deck.erc-tight .fx-tile>.rbn-foldval{max-width:56px;}
/* A fold button is 82px wide by rule (its floor, below), so its readout
   has 76px of content box. The 56px cap would cut "Every slide" to
   "Every sl…" with room to spare. The cap is the button's own width: it
   never widens for its readout at this rung, and nothing that fits is
   cut. */
.deck.erc-tight .rbn-foldwrap .fx-tile.rbn-foldbtn>.rbn-foldval{max-width:76px;}
.deck.erc-tight .rbn-grp{padding-left:2px;padding-right:2px;}
.deck.erc-tight .rbn-row{column-gap:2px;}
/* The layouts gallery shows three to a row at this rung, as the page sizes
   do. One layout tile less in sight (the arrows and Show all still reach
   every one) gives Save version its row back at about 1300px. Sections
   stays the one fold button (rbn-foldfirst). */
.deck.erc-tight .strip-frame>.fx-strip.lay-strip{
  width:calc(3 * var(--rbn-tile-w) + 2 * var(--rbn-tile-gap) + 8px);}
.deck.erc-tight .dbtn.rbn-sm,.deck.erc-tight .rbn-row .dbtn.etm{
  padding-left:3px;padding-right:3px;gap:3px;}
/* Narrowing the square glyph buttons (zoom's minus and plus, undo and
   redo) was tried here and measured at zero: none of them is the widest
   control in its grid column, so the column keeps the width of the worded
   button above it and the saving never reaches the row. */

/* ---- The constant half opts out of the ladder ----
   Every rung above trades type and padding for width, and applying any of
   them to File, Slide or View would move those groups. They are reset
   here once, after the ladder, instead of being excluded rung by rung, so
   a rung added later cannot forget a reset. Specificity is deliberately
   above every rung (four and five classes against their three and four),
   so this wins wherever it sits in the file. */
.deck .edit-tools .rbn-grp.rbn-fixed{padding-left:7px;padding-right:7px;}
.deck .edit-tools .rbn-fixed .rbn-row{
  column-gap:var(--rbn-col-gap);row-gap:var(--rbn-row-gap);}
.deck .edit-tools .rbn-fixed .dbtn.rbn-sm,
.deck .edit-tools .rbn-fixed .rbn-row .dbtn.etm{
  padding-left:var(--rbn-btn-px);padding-right:var(--rbn-btn-px);
  gap:var(--rbn-btn-gap);}
.deck .edit-tools .rbn-fixed .rbn-stack{gap:3px;}
/* ...but it still has to answer to the window. These rungs are keyed on
   the ribbon's width alone (fitEditRibbon's ERCW, set before it measures
   anything), and the ribbon is exactly as wide with something selected as
   without — so they can only fire on a resize, never on a click. The
   status readout and the zoom readout are sized in ch, so they follow
   these steps down on their own rather than needing a rung each. */
.deck.ercw1 .edit-tools .rbn-grp.rbn-fixed{padding-left:5px;padding-right:5px;}
.deck.ercw1 .edit-tools .rbn-fixed .rbn-row{column-gap:2px;row-gap:4px;}
.deck.ercw1 .edit-tools .rbn-fixed .dbtn.rbn-sm,
.deck.ercw1 .edit-tools .rbn-fixed .rbn-row .dbtn.etm{
  padding-left:5px;padding-right:5px;gap:4px;}
.deck.ercw2 .edit-tools .rbn-grp.rbn-fixed{padding-left:4px;padding-right:4px;}
.deck.ercw2 .edit-tools .rbn-fixed .rbn-row{column-gap:2px;row-gap:4px;}
.deck.ercw2 .edit-tools .rbn-fixed .dbtn.rbn-sm,
.deck.ercw2 .edit-tools .rbn-fixed .rbn-row .dbtn.etm{
  padding-left:4px;padding-right:4px;gap:3px;}
.deck.ercw3 .edit-tools .rbn-grp.rbn-fixed{padding-left:3px;padding-right:3px;}
.deck.ercw3 .edit-tools .rbn-fixed .rbn-row{column-gap:2px;row-gap:3px;}
.deck.ercw3 .edit-tools .rbn-fixed .dbtn.rbn-sm,
.deck.ercw3 .edit-tools .rbn-fixed .rbn-row .dbtn.etm{
  padding-left:3px;padding-right:3px;gap:3px;}
.deck.ercw4 .edit-tools .rbn-grp.rbn-fixed{padding-left:2px;padding-right:2px;}
/* ercw4 had no .rbn-row rule at all, so the last width rung inherited
   ercw3's gaps and bought nothing but 1px of group padding. */
.deck.ercw4 .edit-tools .rbn-fixed .rbn-row{column-gap:2px;row-gap:3px;}
.deck.ercw4 .edit-tools .rbn-fixed .dbtn.rbn-sm,
.deck.ercw4 .edit-tools .rbn-fixed .rbn-row .dbtn.etm{
  padding-left:3px;padding-right:3px;gap:3px;}

/* ---- ...and the changing region pays for it, with a rung of its own.
   It is relaid out on every selection anyway, so extra density there
   costs nobody a moved button — and it is where the width has to come
   from now that no constant group is allowed to step aside. Worth 40px
   on a text selection, which is the 35px that was over. ---- */
.deck.erc-tight .et-fmt .rbn-grp{padding-left:2px;padding-right:2px;}
.deck.erc-tight .et-fmt .rbn-row{column-gap:2px;}
.deck.erc-tight .et-fmt .dbtn.rbn-sm,
.deck.erc-tight .et-fmt .rbn-row .dbtn.etm{
  padding-left:3px;padding-right:3px;gap:3px;}
.deck.erc-tight .et-fmt .rbn-row .fmt-range{width:56px;}
/* the boxes you type into rather than read: a font name still shows, a
   point size is at most three digits, and neither needs its resting width
   when the row is at its last rung */
.deck.erc-tight .et-fmt .rbn-row .fmt-num{width:32px;}
.deck.erc-tight .et-fmt .rbn-row select.etm{max-width:62px;}
.deck.erc-tight .et-fmt .fmt-szwrap,
.deck.erc-tight .et-fmt .fmt-opwrap{gap:2px;}
.fmt-lab{margin-left:2px;}
.et-hint{font-size:11px;color:var(--chrome-ink-2);align-self:center;margin-left:auto;
  padding:0 4px 10px;}
/* the "+ Shapes" dropdown */
.sh-drop{position:relative;display:inline-block;}
#sh-btn[aria-pressed="true"]{background:var(--cyan-deep);
  border-color:var(--cyan-deep);color:var(--on-accent-deep,#fff);}
.sh-menu{position:absolute;top:calc(100% + 5px);left:0;z-index:60;
  background:var(--chrome-2,#16273a);border:1px solid #ffffff26;border-radius:9px;padding:6px;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;
  box-shadow:0 14px 38px #0009;width:210px;}
.sh-menu[hidden]{display:none;}
/* ---- Option windows ----
   One worded button on the ribbon opens a panel holding a cluster of
   related controls: the font, the paragraph, the line, the source. The
   real controls live inside, moved there in the markup rather than
   copied, so every handler, state and test keeps addressing the same
   element, and a ribbon layout moves the window as one atom. A tall
   window scrolls; nothing is clipped. */
.sh-menu.opt-panel{display:block;width:auto;min-width:320px;
  max-width:min(94vw,560px);padding:10px 12px 12px;
  max-height:min(72vh,560px);overflow-y:auto;overflow-x:hidden;}
/* hidden means hidden, whatever display a row or grid asked for */
.opt-panel [hidden]{display:none!important;}
.opt-panel .hd-lab{padding:8px 2px 4px;}
.opt-panel>.hd-lab:first-child{padding-top:0;}
.opt-row{display:flex;flex-wrap:wrap;gap:4px;align-items:center;}
.opt-row.opt-grid2{display:grid;grid-template-columns:1fr 1fr;}
.opt-cols{display:flex;gap:16px;align-items:flex-start;}
.opt-cols>*{flex:1 1 auto;min-width:0;}
/* the ribbon's cell-sizing and its density rungs do not reach inside a
   window (!important, because the rungs are five classes deep): a
   control here is as tall as its words need and never shrinks */
.opt-panel .dbtn.etm,.opt-panel .dbtn.rbn-sm{height:auto!important;
  min-height:26px;padding:4px 9px!important;font-size:12px!important;
  justify-content:flex-start;white-space:nowrap;display:inline-flex;
  align-items:center;gap:6px;}
.opt-panel .opt-grid2>.dbtn{width:100%;}
.opt-panel select.etm{height:26px;max-width:none!important;width:100%;}
.opt-panel .fmt-szwrap{height:26px;}
.opt-panel .fmt-szwrap .fmt-num{width:54px!important;}
/* A section inside a window: its old button stays in the DOM because the
   drawn menus are wired to it, and is never shown. Its menu is laid out
   flat where a dropdown used to hang. */
.opt-panel .opt-sec{display:block;position:static;}
.opt-panel .opt-sec>.opt-sec-btn{display:none!important;}
.opt-panel .opt-sec>.sh-menu{position:static;box-shadow:none;border:none;
  padding:0;width:auto;max-width:none;background:none;border-radius:0;}
.opt-panel .opt-sec>.hd-lab{padding-top:8px;}
.opt-cols>.opt-sec>.hd-lab{padding-top:0;}
/* worded rows, full width, the way a menu reads */
.sh-menu.opt-panel.opt-list{display:flex;flex-direction:column;gap:3px;
  min-width:224px;}
.opt-panel.opt-list>.dbtn{width:100%;justify-content:flex-start;
  text-align:left;gap:8px;padding:6px 9px!important;}
/* Source is the important answer, not a drawer. Keep its provenance
   actions on the same row as the path and Source label. The existing
   buttons and handlers are reused; only the containment changes. */
#fmt-srcwrap.src-flat:not([hidden]),
#fmt-srcwrap.src-flat:not([hidden]) #fmt-src-menu{
  display:contents!important;}
/* the wrapper's [hidden] must still win, or every layout that flattens the
   source row shows Source / Where it came from… / Lock figure with
   nothing selected */
#fmt-srcwrap.src-flat[hidden]{display:none!important;}
#fmt-srcwrap.src-flat #fmt-src-menu>.dbtn{width:auto;min-height:26px;
  padding:4px 7px!important;font-size:11px!important;}
/* a chip: one of several answers, and it shows which one is on */
.dbtn.opt-chip{padding:4px 10px;font-size:11px;line-height:1.4;}
.dbtn.opt-chip[aria-pressed="true"]{
  background:color-mix(in srgb,var(--accent) 22%,transparent);
  border-color:var(--accent);color:#fff;}
.dbtn.opt-chip:disabled{opacity:.4;cursor:default;}
body.light .dbtn.opt-chip[aria-pressed="true"]{color:var(--ink);}
.opt-val{font-family:var(--mono);font-size:10px;color:var(--chrome-ink-2);
  padding:0 4px;}
.line-panel .style-menu .sh-opt,.line-panel .sw-menu .sh-opt{
  padding:3px 6px;}
.sh-opt{display:flex;flex-direction:column;align-items:center;gap:3px;
  background:none;border:1px solid transparent;border-radius:7px;
  padding:7px 4px 5px;cursor:pointer;color:var(--chrome-ink-2);font-family:var(--sans);}
.sh-opt:hover{background:color-mix(in srgb,var(--accent) 13%,transparent);border-color:color-mix(in srgb,var(--accent) 40%,transparent);color:var(--chrome-ink);}
/* a row that cannot act here looks disabled; its tooltip says why */
.sh-opt:disabled{opacity:.4;cursor:default;background:none;
  border-color:transparent;}
.sh-ico{width:26px;height:22px;display:block;}
/* filled crop-shape preview in the Crop menu (same clip-path as the effect) */
.crop-ico{width:30px;height:22px;display:block;border-radius:2px;
  background:linear-gradient(135deg,var(--accent-soft),var(--accent));}
/* a shape-cropped figure fills its frame so the mask actually bites into it
   (a contained figure would just have its letterbox clipped, looking unchanged) */
.an-cell.an-cropped .figframe{padding:0;}
.an-cell.an-cropped .figframe img{object-fit:cover;width:100%;height:100%;
  max-width:none;max-height:none;}
/* the "Same size" picker: a plain single-column list of text options */
/* the View menu: worded rows, each a toggle that shows its own state */
.sh-menu.vw-menu{display:flex;flex-direction:column;width:236px;
  padding:6px;gap:3px;}
.vw-opt{display:flex;align-items:center;gap:8px;width:100%;
  justify-content:flex-start;text-align:left;font-family:var(--sans);
  font-size:12.5px;padding:6px 9px;}
.vw-opt kbd{margin-left:auto;font-family:var(--mono);font-size:9px;
  border:1px solid #ffffff26;border-radius:3px;padding:0 4px;
  color:var(--chrome-ink-2);}
/* two columns, left to right beside top to bottom, at a readable size */
.sh-menu.align-menu{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px;
  width:540px;max-width:calc(100vw - 24px);padding:10px;}
.align-menu .hd-lab{grid-column:1/-1;}
.align-menu .sh-opt{flex-direction:row;justify-content:flex-start;
  gap:10px;padding:3px 8px;text-align:left;}
.align-menu .sh-opt-t{font-size:13px;letter-spacing:0;}
.align-menu .sh-opt-ic{display:inline-flex;flex:none;}
.align-menu .sh-opt-ic .bic{width:24px;height:24px;}
.align-menu>[data-al="p:both"],.align-menu>[data-al="o:row"]{grid-column:1/-1;}
.ar-grid{grid-column:1/-1;display:flex;align-items:center;gap:14px;}
.ar-grid[hidden]{display:none;}
.ar-grid>.sh-opt{flex:1 1 auto;}
.ar-grid label{display:inline-flex;align-items:center;gap:6px;
  font:13px var(--sans);color:var(--chrome-ink-2);}
.ar-grid input{width:56px;height:28px;padding:0 6px;box-sizing:border-box;
  font:13px var(--sans);color:var(--chrome-ink);background:var(--input-bg,#0000);
  border:1px solid #ffffff26;border-radius:5px;}
.sh-menu.same-menu{display:block;width:196px;padding:6px;}
.same-menu .sh-opt{flex-direction:row;justify-content:flex-start;
  width:100%;padding:7px 9px;font-size:12px;text-align:left;}
/* the animation pane: effect picker + build-order sequence */
/* The animation pane's body. The pane is docked, so it takes the pane's
   width and scroll rather than carrying its own. */
.anim-pane{display:block;text-align:left;}
.selpane.animpane .selpane-list{padding:10px 11px;}
.anim-h{font-family:var(--sans);font-size:11px;font-weight:600;
  letter-spacing:0;color:var(--chrome-ink-2);margin:0 2px 6px;}
.anim-h::first-letter{text-transform:uppercase;}
.anim-mini{background:var(--chrome-2,#16273a);border:1px solid #ffffff1f;color:var(--chrome-ink);
  border-radius:6px;padding:5px 8px;font-size:11.5px;cursor:pointer;
  font-family:var(--sans);white-space:nowrap;}
.anim-mini.wide{flex:1;width:100%;margin-top:10px;}
/* ---- The animation panel ----
   Sections of chips and sliders above the list of clicks. Chips wrap
   because there are thirteen movements and the pane is 232px by default.
   Every slider is label, track and a live readout on one line. */
/* ---- Configure | Order ----
   Two tabs under the pane's heading, with an underline showing the one
   that is open. The pane's Order tab holds the order; configuring the
   animation details is on the other. Same style as the ribbon's own tab
   strip, at the size a 272px pane can hold. */
.anim-tabs{display:flex;gap:2px;flex:none;padding:0 8px;
  border-bottom:1px solid var(--chrome-line,#ffffff1f);}
.anim-tab{display:inline-flex;align-items:center;gap:5px;flex:1;
  justify-content:center;padding:7px 6px 6px;border:0;background:none;
  border-bottom:2px solid transparent;margin-bottom:-1px;
  color:var(--chrome-ink-2);font:600 11.5px var(--sans);cursor:pointer;
  white-space:nowrap;}
.anim-tab .bic{width:12px;height:12px;}
.anim-tab:hover{color:var(--chrome-ink);}
.anim-tab[aria-selected="true"]{color:var(--chrome-ink);
  border-bottom-color:var(--accent,var(--cyan));}
.anim-cfg{display:block;margin-bottom:10px;}
.anim-cfg:empty{display:none;}
/* Quick animate at the head of the Order tab: the same card as a
   configuration section, set off from the list it is writing */
.anim-quick{margin:0 0 10px;padding-bottom:9px;
  border-bottom:1px solid var(--chrome-line,#ffffff1f);}
.anim-cfg .anim-h{margin-top:10px;}
.anim-cfg .anim-h:first-child{margin-top:0;}
.cfg-note{font-size:11.5px;line-height:1.45;color:var(--chrome-ink-2);
  margin:0 2px 6px;}
/* how to read the Order list, one line under its count */
.anim-key{font-size:11px;line-height:1.4;color:var(--chrome-ink-2);
  margin:-2px 2px 8px;}
/* Configure's object card says which clicks it is on */
.cfg-clicks{font-size:11.5px;line-height:1.45;color:var(--chrome-ink);
  margin:-2px 2px 8px;}
.cfg-clicks b{color:var(--amber,#cf9a4e);font-weight:700;}
/* the slide-wide presets are not about the selected object, so they sit
   under a rule of their own */
.anim-cfg .anim-h.cfg-slide{margin-top:14px;padding-top:10px;
  border-top:1px solid var(--chrome-line,#ffffff1f);}
.cfg-who{display:flex;align-items:center;gap:6px;font-size:12.5px;
  color:#fff;background:var(--chrome-2,#16273a);border-radius:7px;
  padding:6px 8px;margin-bottom:8px;min-width:0;}
.cfg-who>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.cfg-who .bic{width:13px;height:13px;flex:none;color:var(--cyan);}
.cfg-more{flex:none;font:500 11px var(--sans);color:var(--chrome-ink-2);}
.cfg-chips{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 8px;}
.cfg-chip{display:inline-flex;align-items:center;gap:4px;
  background:var(--chrome-3,#101c28);border:1px solid var(--chrome-line,#ffffff1f);
  color:#bcccd8;border-radius:6px;padding:4px 7px;font-size:11px;
  font-family:var(--sans);cursor:pointer;min-width:0;}
.cfg-chip .bic{width:12px;height:12px;flex:none;}
.cfg-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.cfg-chip:hover:not(:disabled){
  border-color:color-mix(in srgb,var(--accent) 53%,transparent);color:var(--chrome-ink);}
.cfg-chip.on{background:var(--accent-deep,var(--cyan-deep));
  border-color:var(--accent-deep,var(--cyan-deep));
  color:var(--on-accent-deep,#fff);}
.cfg-chip:disabled{opacity:.4;cursor:default;}
.cfg-range,.cfg-sel{display:flex;align-items:center;gap:6px;
  margin:0 2px 6px;font-size:11px;color:var(--chrome-ink-2);}
.cfg-rl{flex:0 0 62px;}
.cfg-range input[type="range"]{flex:1;min-width:0;accent-color:var(--cyan);
  height:14px;}
.cfg-rv{flex:0 0 auto;max-width:96px;font-family:var(--mono);font-size:9.5px;
  color:var(--cyan);overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.cfg-sel select{flex:1;min-width:0;}
.cfg-acts{margin-top:2px;}
.cfg-acts .anim-mini{flex:1;}
.anim-mini.primary{background:var(--accent-deep,var(--cyan-deep));
  border-color:var(--accent-deep,var(--cyan-deep));
  color:var(--on-accent-deep,#fff);}
.cfg-seqwhat{font-size:12px;color:#c9d6e2;background:var(--chrome-2,#16273a);
  border-radius:7px;padding:7px 9px;margin-bottom:6px;}
.cfg-seqwhat b{color:var(--cyan);}
body.light .cfg-chip{background:#fff;color:var(--ink-2);}
body.light .cfg-who,body.light .cfg-seqwhat{background:#fff;
  color:var(--ink);}
body.light .cfg-note,body.light .cfg-range,body.light .cfg-sel{
  color:var(--ink-2);}
body.light .cfg-rv{color:var(--cyan-deep);}
.anim-mini:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent) 53%,transparent);color:var(--chrome-ink);}
.anim-mini:disabled{opacity:.4;cursor:default;}
/* One row per click. The number is the click the space bar counts, the
   name is a button that selects the thing on the slide, and the detail
   line says how it arrives. A page of a flip book (or a series of a
   chart, a page of a text box) is a row of its own, indented, with a
   hollow number: it has a click but no order of its own. */
.anim-seq{display:flex;flex-direction:column;gap:4px;}
.anim-step{display:flex;align-items:center;gap:8px;background:var(--chrome-3,#101c28);
  border:1px solid #ffffff12;border-radius:8px;padding:5px 7px;}
.anim-step.cur{border-color:var(--cyan);}
.anim-num{flex:none;width:20px;height:20px;border-radius:50%;
  background:var(--amber);color:var(--on-accent);font-family:var(--mono);font-size:11px;
  font-weight:700;display:flex;align-items:center;justify-content:center;}
/* a row that costs several clicks says so as a range, and a 20px circle
   cannot hold "3–6". Only then -- an ordinary row is untouched. */
.anim-num.wide{width:auto;min-width:20px;padding:0 6px;border-radius:10px;}
.anim-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;}
.anim-name{background:none;border:none;padding:0;color:var(--chrome-ink);
  font:12.5px var(--sans);text-align:left;cursor:pointer;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.anim-name:hover{color:var(--chrome-ink);text-decoration:underline;}
/* the effect word at the end of the row; a row for the selected thing that
   is not on the list yet; its two actions side by side */
.anim-tag{flex:none;font-size:10.5px;color:var(--chrome-ink-2);
  white-space:nowrap;}
.anim-num.off{background:none;border:1px solid #ffffff33;
  color:var(--chrome-ink-2);}
.anim-step.anim-off{margin-top:6px;border-style:dashed;}
.anim-stepctr.row{flex-direction:row;gap:4px;}
.anim-step.anim-sub{margin-left:18px;background:var(--chrome-4,#0e1824);
  padding-top:3px;padding-bottom:3px;}
.anim-step.anim-sub .anim-num{background:none;border:1px solid var(--amber);
  color:var(--amber);font-weight:600;}
.anim-step.anim-sub .anim-name{font-size:12px;color:var(--chrome-ink-2);}
/* The controls are a second line under the name, on every row that has
   them. Beside the name they crushed it in a 250px pane; under it the
   text stays readable and the buttons always show. */
.anim-step{flex-wrap:wrap;}
.anim-stepctr{flex:1 0 100%;display:flex;flex-direction:row;
  justify-content:flex-end;align-items:center;gap:3px;}
.anim-stepctr.row{flex:none;}
.anim-updown{display:flex;flex-direction:row;gap:3px;}
/* Rows drag; the landing edge is drawn on the row under the pointer. */
.anim-step[draggable="true"]{cursor:grab;}
.anim-step.dragging{opacity:.5;}
.anim-step.drop-above{box-shadow:0 -3px 0 0 var(--cyan);}
.anim-step.drop-below{box-shadow:0 3px 0 0 var(--cyan);}
/* the middle of a row takes a drop onto its click, so the whole row lights
   rather than one edge */
.anim-step.drop-with{box-shadow:inset 0 0 0 2px var(--cyan);
  background:color-mix(in srgb,var(--cyan) 12%,var(--chrome-3,#101c28));}
/* A second row on the same click hangs off the first, close under it with
   an outline number, so the list's shape shows that the two happen
   together. */
.anim-step.anim-with{margin-top:-3px;border-top-left-radius:2px;
  border-top-right-radius:2px;border-top-color:transparent;}
.anim-step.anim-with .anim-num{background:none;border:1px dashed var(--amber);
  color:var(--amber);}
.anim-stepctr .anim-mini{padding:2px 6px;font-size:10.5px;}
/* four controls on a row (Earlier, Later, With prev, Remove); in a narrow
   pane they wrap to a second line rather than clip the last */
.anim-stepctr{flex-wrap:wrap;row-gap:3px;}
.anim-stepctr .anim-mini{padding:2px 5px;white-space:nowrap;}
.sh-ico path,.sh-ico rect,.sh-ico ellipse,.sh-ico text{transition:fill .1s;}
.sh-opt-t{font-size:9.5px;letter-spacing:.02em;}

/* ---- Line menus draw the option instead of naming it ----
   For a dash pattern, an arrowhead or a thickness the picture is the
   answer. Every row draws the real thing and keeps its name in the
   tooltip. currentColor throughout, so the preview brightens with the row
   it is in and the selected one reads as selected. */
/* The swatch menus are not part of the drawn line-style menu: stacking
   their chips one per row under the deck-colour row made the popup
   T-shaped. They lay out as a pad: a labelled row of the deck's colours,
   a labelled block of presets, then recents. */
.sh-menu.style-menu{display:flex;flex-direction:column;
  gap:2px;width:auto;}
.style-menu .sh-opt,.sw-menu .sh-opt{flex-direction:row;align-items:center;
  gap:8px;padding:4px 8px;}
.ln-prev{display:block;flex:none;}
.sw-val{font-family:var(--mono);font-size:9.5px;color:var(--chrome-ink-2);flex:none;
  width:46px;text-align:right;white-space:nowrap;}
.sh-opt:hover .sw-val,.sh-opt[aria-pressed="true"] .sw-val{color:var(--chrome-ink);}
/* Ends: three labelled rows, not eighteen lines all starting with the
   same word. The headings are headings, not options — naming a section is
   not the same as naming every row in it. */
.sh-menu.head-menu{display:flex;flex-direction:column;gap:2px;width:auto;}
.hd-row{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;}
.hd-row.hd-sz{grid-template-columns:repeat(4,1fr);}
/* a heading inside a menu is a word, not 8.5px spaced capitals */
.hd-lab{font-family:var(--sans);font-size:11px;font-weight:600;letter-spacing:0;
  text-transform:none;color:var(--chrome-ink-2);padding:6px 3px 3px;}
.hd-lab::first-letter{text-transform:uppercase;}
.head-menu .sh-opt{padding:3px 1px;}
.hd-ico{display:block;width:100%;height:16px;}
.sh-menu.bend-menu{display:grid;grid-template-columns:repeat(5,1fr);
  gap:3px;width:auto;}
.bend-menu .sh-opt{padding:4px 2px;}
.bd-ico{display:block;width:100%;height:28px;}
/* which one you are on. A set of pictures with no answer to "and which am
   I?" is the one thing the worded lists were no better at. */
.sh-opt[aria-pressed="true"]{background:color-mix(in srgb,var(--accent) 20%,transparent);border-color:var(--accent);
  color:var(--chrome-ink);}
.dbtn.viewtoggle{border-color:color-mix(in srgb,var(--accent) 36%,transparent);color:var(--cyan);}
.dbtn.viewtoggle:hover{border-color:var(--cyan);color:var(--chrome-ink);
  background:color-mix(in srgb,var(--accent) 12%,transparent);}
/* the floating "back to slide" toggle shown while scrolling the notebook */
/* SVG shapes fill their frame; the div carries no border/box for these */
.an-rect.an-svgshape{border:none!important;border-radius:0;
  background:none!important;}
.an-shape-svg{position:absolute;inset:0;width:100%;height:100%;
  overflow:visible;display:block;pointer-events:none;}
/* var() doesn't resolve in an SVG font-family attribute — set it via CSS */
.an-shape-svg text,.sh-ico text{font-family:var(--sans);}
/* A shape with words in it. The box is the text box's. What it is drawn
   on is the shape's svg, behind its words, or, for a rectangle and an
   ellipse, the same CSS box they are without any. */
.an-text.an-shaped{background:none;border-radius:0;gap:0;overflow:visible;
  box-sizing:border-box;border-color:transparent;}
.an-text.an-shaped.nobg{border:0 solid transparent;}
.an-text.an-shaped.an-shbox{border-radius:var(--tk-rad,4px);}
.an-text.an-shaped>.an-tx{position:relative;}
/* an empty one is a shape, and says nothing about being empty */
.deck.editing .an-item.an-text.an-shaped:not(.sel):has(>.an-tx:empty){
  outline:none;}
/* PowerPoint's yellow handle: a value of the shape, dragged on it */
.an-adj{position:absolute;width:13px;height:13px;margin:-7px 0 0 -7px;
  box-sizing:border-box;border-radius:50%;background:#f2c94c;
  border:2px solid var(--grip-ring,#0b141d);display:none;z-index:7;
  cursor:pointer;touch-action:none;}
.an-item.sel>.an-adj{display:block;}
.an-adj:hover{background:#ffe08a;}
.adj-menu{width:auto;min-width:208px;}
.sh-menu.adj-menu{display:flex;flex-direction:column;gap:4px;padding:6px 8px 8px;}
.adj-row .opt-num{display:flex;justify-content:flex-end;width:100%;}
.adj-row .opt-num>input{order:1;}
.adj-row .opt-num>.opt-unit{order:2;width:12px;}
.adj-reset{margin-top:4px;justify-content:flex-start;font-size:12px;}
.adj-reset .bic{width:15px;height:15px;}
/* every shape, in its groups */
.sh-menu.shape-menu{display:block;width:min(474px,calc(100vw - 24px));
  box-sizing:border-box;max-height:min(70vh,620px);overflow:auto;padding:8px;}
.shape-menu .shp-row{display:grid;grid-template-columns:repeat(12,1fr);gap:1px;}
.shape-menu .shp-row[hidden],.shape-menu .hd-lab[hidden]{display:none;}
.shape-menu .sh-opt{padding:4px 1px;}
.shape-menu .sh-ico{width:30px;height:24px;}
.shape-menu .sh-opt[hidden]{display:none;}
.strip-find.shp-find{display:block;width:100%;max-width:none;margin:0 0 2px;
  box-sizing:border-box;}
/* the ribbon's row shows the shapes; their groups are named in the window */
.shape-strip>.shp-head{display:none;}
.sh-menu.strip-all .fx-strip>.shp-head:not([hidden]){display:block;
  flex:0 0 100%;height:auto;padding:4px 2px 0;}
#shape-strip-all{width:min(748px,calc(100vw - 16px));}
#shape-strip-all .shape-tile{width:84px;flex:0 0 84px;justify-content:center;
  padding:3px 4px;}
#shape-strip-all .shape-tile .sh-ico{width:30px;height:24px;}
#rbn-shelf-body>.rbn-row>#shape-all{font-weight:600;}
.dbtn.et[aria-pressed="true"]{background:var(--cyan-deep);
  border-color:var(--cyan-deep);color:var(--on-accent-deep,#fff);}
.dbtn.etm{padding:5px 9px;font-family:var(--sans);font-size:12px;}
.dbtn.etm>svg,.dbtn.etm>i[data-ic]{width:15px;height:15px;flex:none;}
/* A small button's readout: its choice beside its word, in the same face
   as the tiles' readout (Change layout: "Title + text"; Styles:
   "Heading 2"). It gives way first when the row is tight. */
.dbtn.rbn-sm>.rbn-foldval,.dbtn.etm>.rbn-foldval{display:inline-block;
  font:600 10px var(--sans);color:var(--cyan);margin-left:5px;
  max-width:110px;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;flex:0 1 auto;min-width:0;}
.dbtn.rbn-sm>.rbn-foldval[hidden],.dbtn.etm>.rbn-foldval[hidden]{
  display:none;}
.dbtn.rbn-sm[aria-pressed="true"]>.rbn-foldval,
.dbtn.etm[aria-pressed="true"]>.rbn-foldval{color:inherit;}
body.light .dbtn.rbn-sm>.rbn-foldval,body.light .dbtn.etm>.rbn-foldval{
  color:var(--cyan-deep);}
.deck.erc-tight .dbtn.rbn-sm>.rbn-foldval,
.deck.erc-tight .dbtn.etm>.rbn-foldval{max-width:56px;}
/* the typeface select wears the ribbon's one surface, like the other
   controls in the Font group */
select#fmt-font{background:var(--btn-bg,#ffffff0a);
  border:1px solid var(--btn-border,#ffffff22);
  color:var(--btn-ink,#cdd9e3);font-family:var(--sans);font-size:12px;
  padding:4px 6px;border-radius:6px;}
select#fmt-font:hover{border-color:var(--cyan);color:var(--chrome-ink);}
select#fmt-font[hidden]{display:none;}
.dbtn.etm[aria-pressed="true"]{background:var(--cyan-deep);
  border-color:var(--cyan-deep);color:var(--on-accent-deep,#fff);}
/* precise point-size input + opacity slider live in the format bar */
.fmt-szwrap,.fmt-opwrap{display:inline-flex;align-items:center;gap:4px;
  flex:none;}
.fmt-szwrap[hidden]{display:none;}
.fmt-num{width:44px;background:var(--chrome-2,#16273a);border:1px solid #ffffff22;
  color:var(--chrome-ink);font-family:var(--mono);font-size:11px;padding:4px 5px;
  border-radius:6px;-moz-appearance:textfield;}
.fmt-num::-webkit-outer-spin-button,
.fmt-num::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.fmt-unit,.fmt-opval{font-family:var(--mono);font-size:10.5px;color:var(--chrome-ink-2);}
.fmt-opval{min-width:34px;text-align:right;}
/* the opacity readout is a field */
input.fmt-opval{width:40px;min-width:0;height:22px;box-sizing:border-box;
  padding:0 3px;border:1px solid var(--chrome-line,#ffffff22);
  border-radius:5px;background:transparent;-moz-appearance:textfield;}
input.fmt-opval::-webkit-outer-spin-button,
input.fmt-opval::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
input.fmt-opval:focus{outline:none;border-color:var(--accent);
  color:var(--chrome-ink);}
/* a typed number in a window's section: line spacing, paragraph spacing,
   a weight of your own */
.opt-num{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;
  color:var(--chrome-ink);white-space:nowrap;}
.opt-num input{width:58px;height:24px;box-sizing:border-box;font:inherit;
  font-family:var(--mono);font-size:11px;padding:0 5px;
  border:1px solid var(--chrome-line,#ffffff22);border-radius:5px;
  background:var(--chrome-1,#0f1b26);color:var(--chrome-ink);}
.opt-num input:focus{outline:none;border-color:var(--accent);}
.opt-unit{font-family:var(--mono);font-size:10.5px;color:var(--chrome-ink-2);}
.opt-row.opt-nums{gap:12px;margin-top:4px;}
.sw-own{flex:0 0 100%;padding:6px 2px 1px;margin-top:2px;
  border-top:1px solid var(--chrome-line,#ffffff1a);}
.fmt-range{width:96px;accent-color:var(--cyan);cursor:pointer;height:16px;}
.sw{width:18px;height:18px;border-radius:50%;padding:0;cursor:pointer;
  border:2px solid #ffffff30;}
.sw[aria-pressed="true"]{border-color:#fff;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 67%,transparent);}
.fmt-lab{font:600 11px var(--sans);color:var(--chrome-ink-2);}
.sw.trans{background:var(--chrome-2,#16273a);position:relative;overflow:hidden;}
.sw.trans::after{content:"";position:absolute;left:-2px;right:-2px;
  top:50%;height:2px;background:#ff6b57;
  transform:rotate(-45deg);}
/* recent colours, newest first, filled from the custom picker's history
   whenever a colour menu opens */
/* The row wraps, like .sw-tokrow below. `.sw-menu .fmt-lab` gives the
   heading `flex:0 0 100%` and the chips are `flex:none`, so on a nowrap
   row the heading takes the whole width and pushes the chips out past
   the right edge of the 216px card. */
.sw-recrow{display:flex;flex-wrap:wrap;align-items:center;gap:7px;}
.sw-recrow[hidden]{display:none!important;}
.sw-rc{width:18px;height:18px;border-radius:50%;padding:0;cursor:pointer;
  border:2px solid #ffffff30;flex:none;}
/* custom-colour swatch: a rainbow chip that opens the full picker */
.sw.sw-custom{background:conic-gradient(from 0deg,#ff6b57,#f0a848,#46a892,
  var(--accent),#7a6cff,#ff6b57);position:relative;overflow:hidden;}
.sw.sw-custom::after{content:"+";position:absolute;inset:0;display:flex;
  align-items:center;justify-content:center;font-size:11px;line-height:1;
  color:#fff;font-weight:800;text-shadow:0 1px 2px #000b;}
/* professional colour picker popover (hex / rgb / rgba + alpha + recents) */
.color-pop{position:fixed;z-index:160;width:236px;background:#0e1b28;
  border:1px solid #ffffff26;border-radius:10px;padding:12px;
  box-shadow:0 16px 46px #000a;display:flex;flex-direction:column;gap:9px;
  font-family:var(--sans);}
.color-pop[hidden]{display:none;}
.cp-head{font:600 11.5px var(--sans);color:var(--chrome-ink-2);}
/* the square and the rainbow; a press on them keeps the focus */
.cp-headrow{display:flex;align-items:center;justify-content:space-between;
  gap:8px;}
.cp-drop{display:inline-flex;align-items:center;gap:5px;flex:none;
  font:12px var(--sans);padding:3px 8px;}
.cp-pad{position:relative;height:96px;border-radius:6px;cursor:crosshair;
  border:1px solid #ffffff22;box-sizing:border-box;touch-action:none;
  background:linear-gradient(to top,#000,#0000),
    linear-gradient(to right,#fff,#0000),
    hsl(var(--cp-h,190),100%,50%);}
.cp-pad-dot{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;
  box-sizing:border-box;border-radius:50%;border:2px solid #fff;
  box-shadow:0 0 0 1px #0009;pointer-events:none;}
.cp-hue{position:relative;height:12px;border-radius:6px;cursor:ew-resize;
  touch-action:none;margin:0 1px;
  background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);}
.cp-hue-dot{position:absolute;top:50%;width:8px;height:16px;
  margin:-8px 0 0 -4px;box-sizing:border-box;border-radius:3px;
  border:2px solid #fff;box-shadow:0 0 0 1px #0009;pointer-events:none;}
.cp-row{display:flex;align-items:center;gap:8px;}
.cp-lab{font:600 11.5px var(--sans);color:var(--chrome-ink-2);width:38px;flex:none;}
.cp-in{flex:1;min-width:0;background:var(--chrome-2,#16273a);border:1px solid #ffffff22;
  color:var(--chrome-ink);font-family:var(--mono);font-size:12px;padding:6px 8px;
  border-radius:6px;}
.cp-in:focus{outline:none;border-color:var(--cyan);}
.cp-in.bad{border-color:#ff6b57;}
.cp-alpha{flex:1;min-width:0;accent-color:var(--cyan);}
.cp-aval{font-family:var(--mono);font-size:10px;color:var(--chrome-ink-2);width:34px;
  text-align:right;flex:none;}
.cp-recent{display:flex;flex-wrap:wrap;gap:5px;}
.cp-recent:empty{display:none;}
.cp-sw-chk{background-image:linear-gradient(45deg,#33475a 25%,transparent 25%,
  transparent 75%,#33475a 75%),linear-gradient(45deg,#33475a 25%,#1a2836 25%,
  #1a2836 75%,#33475a 75%);background-size:8px 8px;
  background-position:0 0,4px 4px;}
.cp-rsw{width:18px;height:18px;border-radius:4px;border:1px solid #ffffff22;
  cursor:pointer;padding:0;position:relative;overflow:hidden;}
.cp-rsw::after{content:"";position:absolute;inset:0;background:var(--cpc);}
.cp-foot{display:flex;align-items:center;gap:8px;}
.cp-preview{width:28px;height:28px;border-radius:6px;border:1px solid #ffffff26;
  flex:none;position:relative;overflow:hidden;}
.cp-preview::after{content:"";position:absolute;inset:0;
  background:var(--cpc,var(--accent));}
.cp-apply{background:var(--cyan-deep);border-color:var(--cyan-deep);
  color:var(--on-accent-deep,#fff);}
.deck.editing .deck-arrow,.deck.editing .deck-foot{display:none;}
.slide{position:relative;}
/* image annotations */
/* ---- tables ----
   The rules are drawn in --tbl-sw, which drawTable sets from strokePx,
   the same page-relative unit every other stroke on the canvas uses. A
   fixed 1px hairline would disappear on an A0 poster and be a fence at
   10% zoom. */
.an-table{position:absolute;overflow:hidden;}
.an-tbl{width:100%;height:100%;border-collapse:collapse;
  table-layout:fixed;font-family:inherit;font-size:inherit;color:inherit;}
.an-tbl td,.an-tbl th{border:var(--tbl-sw,1px) solid var(--tbl-line,
  currentColor);padding:var(--tbl-pad,.28em .45em);vertical-align:top;
  overflow-wrap:anywhere;text-align:left;font-weight:inherit;}
.an-tbl th{font-weight:700;
  background:color-mix(in srgb,currentColor 12%,transparent);}
.an-table.nogrid .an-tbl td,.an-table.nogrid .an-tbl th{border-color:
  transparent;}
.an-tbl td[contenteditable="plaintext-only"],
.an-tbl th[contenteditable="plaintext-only"]{outline:2px solid var(--cyan);
  outline-offset:-2px;cursor:text;}
.deck.editing .an-table{cursor:move;}
.deck.editing .an-table.sel{outline:2px solid var(--cyan);outline-offset:1px;}
/* a grip per column boundary: widths are dragged, never typed */
.an-tblgrip{position:absolute;top:0;bottom:0;width:9px;margin-left:-4.5px;
  cursor:col-resize;z-index:6;}
.an-tblgrip:hover{background:color-mix(in srgb,var(--accent) 35%,
  transparent);}
.an-image{position:absolute;}
/* a live page. The cover is the editor's handle on it. */
.an-web{position:absolute;overflow:hidden;background:#fff;
  border-radius:var(--tk-rad,4px);}
.an-webframe{width:100%;height:100%;border:0;display:block;}
/* the kept picture of a page, and the box while it is taken */
.an-websnap{width:100%;height:100%;object-fit:cover;display:block;}
.deck.web-snapping .an-webcover,.deck.web-snapping .an-item.sel::after,
.deck.web-snapping .an-resize,.deck.web-snapping .an-rotate{
  visibility:hidden!important;}
.deck.web-snapping .an-item.an-web{outline:none!important;}
.web-menu{min-width:260px;max-width:340px;}
.web-zoomrow{display:flex;align-items:center;gap:6px;padding:2px 6px 8px;}
.web-zoomval{min-width:42px;text-align:center;font:600 12px var(--mono);}
.web-say{font-size:11.5px;line-height:1.4;color:var(--chrome-ink-2);
  padding:6px 8px 4px;}
.web-say.web-warn{color:var(--warn,#f0a848);}
.an-webempty{display:flex;align-items:center;justify-content:center;
  height:100%;color:#44525c;font:12px var(--sans);}
.an-webcover{position:absolute;inset:0;display:flex;align-items:flex-end;
  padding:6px;cursor:move;
  background:linear-gradient(transparent 72%,#0009);}
.an-webcover span{font:10.5px var(--mono);color:#fff;background:#0b141dcc;
  padding:2px 6px;border-radius:4px;}
/* A box of code. Its fill, ink and edge are the theme's, written inline;
   the face is a <pre>. While typing, a transparent textarea lies over it
   with the same font, size, padding and wrapping, so the caret and
   selection sit on the coloured letters underneath. Change any of these
   four on one and not the other and the caret drifts off its letter. */
.an-code{position:absolute;border:1px solid transparent;
  border-radius:var(--tk-rad,8px);font-family:var(--mono);line-height:1.45;}
.deck.editing .an-code{cursor:move;}
.an-code.an-editing{cursor:text;}
.an-code-pre,.an-code-ta{display:block;margin:0;padding:.6em .8em;
  font:inherit;line-height:inherit;letter-spacing:0;white-space:pre-wrap;
  overflow-wrap:anywhere;tab-size:4;-moz-tab-size:4;border:0;
  border-radius:inherit;box-sizing:border-box;
  text-rendering:auto;font-variant-ligatures:none;font-kerning:none;}
.an-code-pre{background:none;color:inherit;}
.an-code-pre code{font:inherit;background:none;color:inherit;padding:0;}
.an-code-ta{position:absolute;inset:0;width:100%;height:100%;resize:none;
  overflow:hidden;background:transparent;color:transparent;outline:none;
  cursor:text;z-index:1;}
.an-code-ta::selection{background:var(--cb-sel);color:transparent;}
/* the textarea's words are transparent, so its hint takes the box's ink */
.an-code-ta::placeholder{color:var(--cb-ink);opacity:.5;font-style:italic;}
.an-code-ph{opacity:.5;font-style:italic;}
.an-code.an-editing .an-code-ph{display:none;}
/* the source in a frame of its own: the editor's textarea lies over it and
   not over the output under it */
.an-code-src{position:relative;border-radius:inherit;}
/* A code walkthrough. Lines not lit at a step are dimmed, the light moves
   from step to step as it changes, and a box shorter than its code
   (--cw-rows lines) has the code scrolled under it. Typing shows all of
   it. A step's words all sit in one place, as tall as the longest, so
   nothing moves as they change. With reduced motion the light and the
   scroll still play, since each is a press of the show's. */
.cw-ln{transition:opacity .35s ease;}
.cw-dim .cw-ln{opacity:.28;}
.cw-dim .cw-ln.lit{opacity:1;}
.an-code-walk .an-code-out{transition:opacity .35s ease;}
.cw-dim:not(.cw-lit-out) .an-code-out{opacity:.28;}
.cw-no-out .an-code-out{display:none;}
.an-code-walk .an-code-pre{transition:transform .45s cubic-bezier(.4,0,.2,1);}
.cw-window:not(.an-editing)>.an-code-src{overflow:hidden;
  height:calc(var(--cw-rows)*1.45em + 1.2em);}
.an-code-walk.an-editing .an-code-pre{transform:none!important;}
.cw-say{display:grid;font-family:var(--tk-font,var(--sans));line-height:1.35;}
.cw-t{grid-area:1/1;visibility:hidden;opacity:0;white-space:pre-wrap;
  padding:.5em .85em .6em;border-top:1px solid var(--cb-edge);
  transition:opacity .35s ease;}
.cw-t.on{visibility:visible;opacity:1;}
.an-code-walk.an-editing .cw-say{visibility:hidden;}
/* the pane: the code to drag over, then the steps */
.cwpane .selpane-list{display:flex;flex-direction:column;gap:8px;
  padding:8px 10px 14px;}
.cw-note{font-size:11.5px;line-height:1.4;color:var(--chrome-ink-2);}
.cw-code{flex:none;max-height:min(34vh,260px);overflow:auto;border-radius:6px;
  border:1px solid var(--chrome-line);padding:5px 0;cursor:text;
  user-select:none;touch-action:none;font:11.5px/1.5 var(--mono);}
.cw-cl{display:flex;width:max-content;min-width:100%;opacity:.55;}
.cw-cl.on{opacity:1;background:color-mix(in srgb,var(--accent) 24%,transparent);}
.cw-no{flex:none;width:30px;padding-right:8px;text-align:right;opacity:.6;}
.cw-tx{white-space:pre;padding-right:10px;}
.cw-do{display:flex;flex-wrap:wrap;gap:5px;}
.cw-b{padding:3px 8px;font:12px var(--sans);}
.cw-b:disabled{opacity:.4;}
.cw-row{display:flex;flex-direction:column;gap:5px;padding:7px 8px 8px;
  border:1px solid var(--chrome-line);border-radius:7px;}
.cw-row.on{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 9%,transparent);}
.cw-head{display:flex;gap:8px;align-items:baseline;width:100%;padding:0;
  border:0;background:none;color:var(--chrome-ink);cursor:pointer;
  text-align:left;font:12.5px var(--sans);}
.cw-head b{min-width:14px;}
.cw-f{display:flex;gap:7px;align-items:baseline;font-size:11.5px;
  color:var(--chrome-ink-2);}
.cw-f>span{flex:none;min-width:38px;}
.cw-in{flex:1;min-width:0;padding:3px 6px;border-radius:5px;resize:none;
  border:1px solid var(--chrome-line);background:var(--chrome-1);
  color:var(--chrome-ink);font:12px/1.4 var(--sans);}
.cw-in.cw-num{flex:none;width:64px;}
.cw-more{display:flex;flex-direction:column;gap:7px;align-items:flex-start;
  padding-top:8px;border-top:1px solid var(--chrome-line);}
.cw-more .md-check{display:flex;align-items:center;gap:7px;
  text-transform:none;letter-spacing:0;font-size:12px;}
/* A slim label on the top edge, with the language and Run, just outside
   the selection outline. Shown only while the box is selected or being
   typed in. */
.an-code-tab{position:absolute;left:-3px;bottom:calc(100% + 5px);
  display:none;align-items:center;gap:5px;padding:1px 2px 1px 6px;
  background:var(--chrome-1,#0e1926);color:var(--chrome-ink,#cdd9e3);
  border:1px solid var(--cyan);border-radius:6px;
  font:600 11px/1.2 var(--sans);white-space:nowrap;z-index:5;
  cursor:default;box-shadow:0 1px 5px #0004;}
.an-code.sel .an-code-tab,.an-code.an-editing .an-code-tab{display:flex;}
/* Edit in Present: in the show the box takes the pointer (the layer does
   not) and wears no label */
.an-code.an-code-live{pointer-events:auto;cursor:text;}
/* the label holds the top edge, so the rotate grip goes under the box; on
   top, centred, it sat on the label of any narrow box */
.an-code .an-rotate{top:auto;bottom:-30px;}
.an-code .an-rotate::after{top:auto;bottom:100%;}
.an-code-ic{display:inline-flex;color:var(--cyan);}
.an-code-ic svg{width:13px;height:13px;}
/* Run (Stop while running): a word and an icon, after the language */
.an-code-run{display:inline-flex;align-items:center;gap:3px;
  padding:1px 6px 1px 4px;font:inherit;color:inherit;cursor:pointer;
  background:color-mix(in srgb,var(--cyan) 14%,transparent);
  border:1px solid color-mix(in srgb,var(--cyan) 55%,transparent);
  border-radius:4px;}
.an-code-run:hover,.an-code-run:focus-visible{outline:none;
  background:color-mix(in srgb,var(--cyan) 30%,transparent);}
.an-code-run.busy,#cb-run.busy{border-color:#e8a33d;
  background:color-mix(in srgb,#e8a33d 18%,transparent);}
.an-code-run svg{width:11px;height:11px;}
/* Run, down the box's side: outside its left edge, level with its first
   line, the word under the icon. Always there in the editor, not only
   while selected. On the right when the box is against the page's left
   edge. Chrome-sized, so it does not grow with the code's type. */
.an-code-run.an-code-side{position:absolute;right:calc(100% + 6px);top:0;
  flex-direction:column;justify-content:center;gap:2px;width:38px;
  padding:5px 0 4px;font:600 10.5px/1.1 var(--sans);
  background:var(--chrome-1,#0e1926);color:var(--chrome-ink,#cdd9e3);
  border:1px solid color-mix(in srgb,var(--cyan) 70%,transparent);
  border-radius:6px;box-shadow:0 1px 4px #0004;z-index:5;}
.an-code-run.an-code-side:hover,.an-code-run.an-code-side:focus-visible{
  background:color-mix(in srgb,var(--cyan) 26%,var(--chrome-1,#0e1926));}
.an-code-run.an-code-side svg{width:14px;height:14px;color:var(--cyan);}
.an-code-run.an-code-side.busy svg{color:var(--warning);}
.an-code-run.an-code-side.an-code-side-r{right:auto;left:calc(100% + 6px);}
/* Collapse and expand arrows in a column, as Jupyter has them. They sit in
   the box's left margin, one in front of each line that opens a block (and
   the first line, which collapses the whole code), and the output's level
   with its first line. They point down while open, right while collapsed,
   in the code's own ink. They show while the pointer is on the box or it
   is selected, and a collapsed one always shows. The column is the pre's
   left padding: a zero-width box at the start of each line
   (.an-code-gt), so no text moves. */
.an-code-gt{display:inline-block;position:relative;width:.8em;
  margin-left:-.8em;height:1.45em;vertical-align:top;}
.an-code-chev{display:flex;align-items:center;justify-content:center;
  box-sizing:border-box;width:100%;height:100%;padding:0;margin:0;
  background:none;border:0;border-radius:3px;color:var(--cb-ink);
  opacity:.5;cursor:pointer;visibility:hidden;}
.an-code:hover .an-code-chev,.an-code.sel .an-code-chev,
.an-code-chev.shut,.an-code-chev:focus-visible{visibility:visible;}
.an-code-chev svg{width:.66em;height:.66em;stroke-width:2.6;
  transition:transform .12s ease;}
.an-code-chev.shut svg{transform:rotate(-90deg);}
.an-code-chev.shut{opacity:.8;}
.an-code-chev:hover,.an-code-chev:focus-visible{opacity:1;outline:none;
  background:color-mix(in srgb,var(--cb-ink) 14%,transparent);}
.an-code-out{position:relative;}
/* the output's: its words are .9em, padded .45em of that */
.an-code-chev.an-code-chev-out{position:absolute;left:0;top:.405em;
  width:.8em;height:1.26em;z-index:2;}
/* A folded line ends in a short ⋯. Collapsed output is the ⋯ alone; what
   is hidden is its tooltip, and a click shows it again. */
.an-code-more{display:inline-block;margin-left:.5em;padding:0 .45em;
  font:inherit;line-height:1.2;color:var(--cb-ink);opacity:.75;
  background:color-mix(in srgb,var(--cb-ink) 13%,transparent);
  border:1px solid color-mix(in srgb,var(--cb-ink) 22%,transparent);
  border-radius:.35em;vertical-align:baseline;}
.an-code-more::after{content:'\22ef';}
.an-code-more[data-ln],button.an-code-more{cursor:pointer;}
.an-code-more[data-ln]:hover,button.an-code-more:hover,
button.an-code-more:focus-visible{opacity:1;outline:none;
  border-color:var(--cb-acc,var(--cb-ink));}
.an-code-out.an-code-out-folded{padding:.3em 0;}
.an-code-more.an-code-more-out{margin:0 0 0 .8em;font-size:.9em;
  justify-self:start;align-self:center;}
/* Run in the output's top left corner (Code > Run on output): a column of
   its own, level with the first line printed, with the output beside it,
   as a notebook's prompt sits beside a cell's output. In the code's own
   colours, a step smaller than the output's text, so it grows with the
   code's type. The arrow is placed on the whole row, not in a column,
   because an absolutely placed child of a grid with a column takes that
   column as its box. */
.an-code-out.an-code-out-hasrun{display:grid;
  grid-template-columns:auto minmax(0,1fr);align-items:start;}
.an-code-out-hasrun>*{grid-column:2;}
.an-code-out-hasrun>.an-code-chev{grid-column:auto;grid-row:auto;}
.an-code-out-hasrun>.an-code-run.an-code-onout{grid-column:1;
  grid-row:1 / span 99;}
/* as tall as the output's first line and level with it (its text is .9em
   at 1.4 high, padded .45em of that; this is .72em) */
.an-code-run.an-code-onout{position:relative;box-sizing:border-box;
  height:1.75em;margin:.5625em 0 0 1.11em;gap:.3em;padding:0 .55em 0 .4em;
  font:600 .72em/1 var(--sans);align-items:center;
  color:var(--cb-ink);
  background:color-mix(in srgb,var(--cb-ink) 9%,transparent);
  border:1px solid color-mix(in srgb,var(--cb-ink) 26%,transparent);
  border-radius:.35em;white-space:nowrap;}
.an-code-run.an-code-onout:hover,.an-code-run.an-code-onout:focus-visible{
  outline:none;background:color-mix(in srgb,var(--cb-ink) 17%,transparent);
  border-color:var(--cb-acc,var(--cb-ink));}
.an-code-run.an-code-onout svg{width:1.05em;height:1.05em;
  color:var(--cb-acc,var(--cb-ink));}
.an-code-run.an-code-onout.busy{border-color:var(--cb-err);
  background:color-mix(in srgb,var(--cb-err) 12%,transparent);}
.an-code-run.an-code-onout.busy svg{color:var(--cb-err);}
.an-code-out-hasrun .an-code-out-tx{padding-left:.6em;}
.an-code-out-hasrun .an-code-fig{margin-left:.6em;
  max-width:calc(100% - 1.4em);}
.an-code-out.an-code-out-none{padding-bottom:.4em;}
.an-code-out-folded.an-code-out-hasrun>.an-code-run.an-code-onout{
  margin-top:0;}
.an-code-out-folded.an-code-out-hasrun .an-code-more-out{margin-left:.5em;}
/* What the code printed, inside the box, as a notebook draws a cell's
   output: under the source, a rule between, in the box's own colours and
   font a step smaller. An error uses the error colour. It is part of the
   slide (kept with the deck), so it prints and shows. */
.an-code-out{border-top:1px solid var(--cb-edge);
  border-radius:0 0 var(--tk-rad,8px) var(--tk-rad,8px);cursor:auto;}
.an-code-out-tx{margin:0;padding:.45em .8em .6em;font:inherit;
  font-size:.9em;line-height:1.4;color:inherit;background:none;
  white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;user-select:text;}
.an-code-out.bad .an-code-out-tx{color:var(--cb-err);}
/* a plot the run drew, as wide as the box at most, in its own shape */
.an-code-fig{display:block;max-width:calc(100% - 1.6em);height:auto;
  margin:.45em .8em .6em;border-radius:3px;}
.an-code-out-tx+.an-code-fig{margin-top:0;}
/* a table the run made, as a notebook draws a DataFrame: header ruled,
   index in bold, numbers to the right, wider than the box scrolled within
   it */
.an-code-table{margin:.45em .8em .6em;max-width:calc(100% - 1.6em);
  max-height:22em;overflow:auto;user-select:text;}
.an-code-out-tx+.an-code-table{margin-top:0;}
.an-code-out-hasrun .an-code-table{margin-left:.6em;max-width:calc(100% - 1.4em);}
.an-code-table table{border-collapse:collapse;font-size:.85em;line-height:1.35;}
.an-code-table th,.an-code-table td{padding:.18em .7em;text-align:right;
  white-space:nowrap;border-bottom:1px solid var(--cb-edge);}
.an-code-table thead th{font-weight:600;
  border-bottom-color:color-mix(in srgb,var(--cb-ink,currentColor) 45%,transparent);}
.an-code-table tbody th{font-weight:600;text-align:left;}
.an-code-table tbody tr:nth-child(even){
  background:color-mix(in srgb,var(--cb-ink,currentColor) 5%,transparent);}
.an-code-table-more{font-size:.8em;opacity:.7;padding:.3em .2em 0;}
.an-code-out.busy .an-code-out-tx,.an-code-out.empty .an-code-out-tx{
  opacity:.6;font-style:italic;}
/* ---- The Code tab's controls: a caption over each field, and the deck's
   colours as swatches ---- */
/* one ribbon row each, the caption before the control: a caption over
   it made each field two rows, and the group taller than the ribbon */
.cb-field{display:inline-flex;align-items:center;gap:6px;margin:0 4px;}
.cb-field[hidden]{display:none;}
.cb-cap{font:600 11px/1.2 var(--sans);opacity:.85;min-width:5.6em;}
.cb-field select{max-width:13em;}
/* Background and Border open the colour menu; the chip in each shows the
   colour the code box (or the next one) uses */
.cb-chip{display:inline-block;width:14px;height:14px;border-radius:3px;
  border:1px solid #ffffff55;box-sizing:border-box;vertical-align:-2px;
  flex:none;}
/* One square in both buttons with the same outer edge: the background's
   filled, the border's a ring of its colour inside that edge. */
.cb-chip.cb-chip-bd{background:transparent;border-width:1px;
  box-shadow:inset 0 0 0 3px var(--cb-ring,#ffffff55);}
.cb-chip.none{background:repeating-linear-gradient(45deg,transparent 0 3px,
  #ff6b5780 3px 4px);box-shadow:none;}
/* The Code tab in columns that line up. The ribbon's grid leaves each
   control at its own width (justify-items:start), so the size field was
   wider than Apply to under it and Border was centred where Background
   was left. Here the two of a column share its width and start at its
   left edge. */
.rbn-cb-style>.rbn-row,.rbn-row.cb-pairs{justify-items:stretch;}
.rbn-cb-style>.rbn-row>.dbtn,.rbn-row.cb-pairs>.dbtn{
  justify-content:flex-start;}
.cb-colbtn{gap:6px;}
.cb-colbtn .cb-chip{margin-left:auto;}
.cb-colbtn .caret{padding-left:2px;opacity:.75;}
/* ...and the same two rows when Selected code is folded into More: the
   pop-up laid the row out in one line, a tall tile between flat buttons
   (the folded menu's own rule is a wrapping flex line) */
.rbn-foldmenu .rbn-row.cb-pairs{display:grid;grid-auto-flow:column;
  grid-auto-columns:max-content;
  grid-template-rows:var(--rbn-track) var(--rbn-track);
  height:var(--rbn-band);align-items:stretch;}
#cb-themewrap .cb-cap,#cb-langwrap .cb-cap{min-width:4.6em;}
.cb-field #cb-deftheme,.cb-field #cb-lang{width:7.2em;}
/* A box of HTML. The frame is laid out at the box's size on a 720-tall
   page and scaled to the slide (53d-html-box.js), so it is positioned
   and scaled from its top-left corner. Transparent, so the slide shows
   through wherever the HTML paints nothing. An iframe whose colour scheme
   differs from its page's paints an opaque backdrop, so it asks for the
   same scheme its page has (none). */
.an-html{position:absolute;}
.deck.editing .an-html{cursor:move;}
.an-html.an-editing{cursor:text;}
.an-htmlframe{position:absolute;left:0;top:0;border:0;display:block;
  transform-origin:0 0;background:transparent;color-scheme:normal;}
/* The editor picks the box up by its face. Everywhere else (the show, the
   scrolling page, a standalone export) a click goes through a box to the
   next build unless its scripts run, when the box takes it. Even then its
   frame takes no pointer until the box is woken by a press on it
   (hbKeyGuard), because a frame given the pointer can be given the
   keyboard. The scrolling page and an export have no .deck round them, so
   this is not scoped to one. */
.an-htmlframe{pointer-events:none;}
.an-html.an-html-live{pointer-events:auto;cursor:pointer;}
.an-html.an-html-live.an-awake .an-htmlframe{pointer-events:auto;}
.deck.editing .an-htmlframe{pointer-events:none;}
/* a box whose scripts or internet loading arrived from somewhere else
   and are held here: said on its face, in the editor only, with the
   button that allows them */
.an-html-held{position:absolute;left:4px;right:4px;bottom:4px;z-index:3;
  display:none;flex-wrap:wrap;align-items:center;gap:4px 8px;
  padding:5px 8px;border-radius:5px;background:var(--chrome-1,#0e1926);
  color:var(--chrome-ink,#cdd9e3);border:1.5px solid var(--amber,#e0a84b);
  font:600 11px/1.3 var(--sans);cursor:default;box-shadow:0 2px 8px #0005;}
.deck.editing .an-html-held{display:flex;}
.an-html.an-editing .an-html-held{display:none;}
.an-html-held button{display:inline-flex;align-items:center;gap:4px;
  font:inherit;color:inherit;background:color-mix(in srgb,var(--cyan) 22%,
  transparent);border:1px solid var(--cyan);border-radius:4px;
  padding:3px 7px;cursor:pointer;text-align:left;}
.an-html-held button svg{width:12px;height:12px;flex:none;}
.an-html-held button:hover,.an-html-held button:focus-visible{
  background:color-mix(in srgb,var(--cyan) 38%,transparent);outline:none;}
.an-html-ph{position:absolute;inset:0;display:none;align-items:center;
  justify-content:center;text-align:center;padding:6px;
  font:12px/1.3 var(--sans);color:var(--tk-ink,#cdd9e3);opacity:.65;
  border:1px dashed currentColor;border-radius:4px;}
.deck.editing .an-html.an-html-empty .an-html-ph{display:flex;}
.an-html.an-editing .an-htmlframe,.an-html.an-editing .an-html-ph{
  visibility:hidden;}
/* its source, typed: the code box's textarea over a coloured <pre>,
   in a box that keeps its size, so the source scrolls in it. The two
   keep the same gutter for a scroll bar, or they would wrap at two
   widths and the caret would drift off its letter. */
.an-html-src{position:absolute;inset:0;z-index:2;overflow:hidden;
  border:1px solid transparent;border-radius:4px;font-family:var(--mono);
  line-height:1.45;cursor:text;}
.an-html-pre,.an-html-ta{position:absolute;inset:0;width:100%;
  height:100%;margin:0;padding:.6em .8em;font:inherit;
  line-height:inherit;letter-spacing:0;white-space:pre-wrap;
  overflow-wrap:anywhere;tab-size:4;-moz-tab-size:4;border:0;
  box-sizing:border-box;text-rendering:auto;font-variant-ligatures:none;
  font-kerning:none;scrollbar-gutter:stable;}
.an-html-pre{overflow:hidden;background:none;color:inherit;}
.an-html-pre code{font:inherit;background:none;color:inherit;padding:0;}
.an-html-ta{resize:none;overflow:auto;background:transparent;
  color:transparent;outline:none;z-index:1;}
.an-html-ta::selection{background:var(--cb-sel);color:transparent;}
.an-html-ta::placeholder{color:var(--cb-ink);opacity:.5;font-style:italic;}
/* a long source is coloured when typing pauses; until then the textarea
   shows its own text and the coloured copy waits */
.an-html-src.an-src-raw .an-html-ta{color:var(--cb-ink);}
.an-html-src.an-src-raw .an-html-pre{visibility:hidden;}
/* its tab is the code box's, shown the same way */
.an-html.sel .an-code-tab,.an-html.an-editing .an-code-tab{display:flex;}
/* by the slide's right edge the tab lines up with the box's right edge
   (hbTabFit), a code box's as an HTML box's */
.an-tab-end>.an-code-tab{left:auto;right:-3px;}
.an-html .an-rotate{top:auto;bottom:-30px;}
.an-html .an-rotate::after{top:auto;bottom:100%;}
/* the code box's label is slim (gap 5px, for an icon, a name and Run); an
   HTML box's tab holds three controls with their own padding, so it keeps
   a tight gap */
.an-html-tab{gap:1px;}
.an-html-name{margin-right:6px;}
.an-html-tab button,.an-html-opt{display:inline-flex;align-items:center;
  gap:4px;font:inherit;color:inherit;background:transparent;border:0;
  border-radius:4px;padding:3px 6px;cursor:pointer;}
.an-html-tab button svg{width:13px;height:13px;}
.an-html-tab button:hover,.an-html-tab button:focus-visible,
.an-html-opt:hover,.an-html-opt:focus-within{
  background:color-mix(in srgb,var(--cyan) 18%,transparent);outline:none;}
.an-html-opt input{margin:0;accent-color:var(--cyan);cursor:pointer;}
.an-html-tab button+.an-html-opt,.an-html-opt+.an-html-opt{margin-left:2px;}
.mini-it.is-html img{object-fit:fill;}
/* Contain by default: cover would silently clip the picture on any
   non-proportional resize. A crop must still fill first, or the mask
   would only bite the letterbox, as in the cell rule below. */
.an-image.an-cropped .an-imgel{object-fit:cover;}
/* a window onto the picture: the img is scaled and offset so the window
   fills the box, and the box clips the rest */
/* The window clips in a wrapper, not the item, so the item's own handles
   (which stand outside its box) are never cut off. */
.an-imgwin{position:absolute;inset:0;overflow:hidden;border-radius:inherit;}
.an-image.an-win .an-imgel{position:absolute;object-fit:fill;max-width:none;}
/* While trimming, the part being cut away is still there, faint, as
   PowerPoint shows it. */
.an-crop-ghost{position:absolute;inset:0;width:100%;height:100%;
  object-fit:contain;opacity:.28;pointer-events:none;}
.zc-box{position:absolute;border:1.5px dashed var(--cyan);
  background:color-mix(in srgb,var(--cyan) 14%,transparent);
  pointer-events:none;}
.an-imgel{width:100%;height:100%;object-fit:contain;display:block;
  pointer-events:none;border-radius:2px;}
.deck.editing .an-image{cursor:move;}
.deck.editing .an-image.sel{outline:2px solid var(--cyan);outline-offset:1px;}
/* a clip. Black behind a letterboxed film, the deck's surface behind a
   sound-only one. While editing the element takes no clicks, so the box
   drags and selects like a picture. */
.an-video{position:absolute;background:#000;border-radius:2px;
  overflow:hidden;}
.an-video.an-audio{background:#16273a;}
.an-mediael{width:100%;height:100%;display:block;object-fit:contain;}
.an-audio .an-mediael{height:auto;position:absolute;left:0;right:0;
  bottom:0;width:100%;}
.deck.editing .an-mediael{pointer-events:none;}
.deck.editing .an-video{cursor:move;}
.deck.editing .an-video.sel{outline:2px solid var(--cyan);outline-offset:1px;}
.md-preview{width:100%;max-height:160px;background:#000;border-radius:4px;
  display:block;margin:4px 0 8px;}
.md-preview.md-audio{max-height:40px;}
/* the trim bar: the whole clip, the part that plays lit between two grips,
   and the preview's place and the poster frame marked on it */
.md-trim{margin:0 0 8px;}
.md-trim[hidden]{display:none;}
.md-trim-track{position:relative;height:22px;border-radius:5px;
  background:color-mix(in srgb,var(--chrome-ink) 10%,transparent);
  border:1px solid var(--chrome-line,#ffffff1f);cursor:pointer;
  margin:0 7px;touch-action:none;}
.md-trim-kept{position:absolute;top:0;bottom:0;
  background:color-mix(in srgb,var(--accent,var(--cyan)) 34%,transparent);
  border-top:2px solid var(--accent,var(--cyan));
  border-bottom:2px solid var(--accent,var(--cyan));pointer-events:none;}
.md-trim-head{position:absolute;top:-3px;bottom:-3px;width:2px;
  margin-left:-1px;background:var(--chrome-ink);pointer-events:none;
  border-radius:1px;}
.md-trim-head[hidden]{display:none;}
.md-trim-poster{position:absolute;top:-6px;width:10px;height:10px;
  margin-left:-5px;background:var(--amber,#f0a848);pointer-events:none;
  clip-path:polygon(0 0,100% 0,50% 100%);}
.md-trim-poster[hidden]{display:none;}
.md-trim-grip{position:absolute;top:-4px;bottom:-4px;width:12px;
  margin-left:-6px;border-radius:4px;cursor:ew-resize;
  background:var(--accent,var(--cyan));
  box-shadow:0 0 0 1px #0006;touch-action:none;}
.md-trim-grip::after{content:"";position:absolute;left:5px;top:6px;
  bottom:6px;width:2px;background:#0008;border-radius:1px;}
.md-trim-grip:focus-visible{outline:2px solid var(--chrome-ink);
  outline-offset:1px;}
.md-trim-grip.held{scale:1.15;}
.md-trim-say{font-size:11px;color:var(--chrome-ink-2);margin-top:5px;
  font-variant-numeric:tabular-nums;}
.mediapane .md-check,.chartpane .md-check{display:flex;align-items:center;
  gap:8px;
  text-transform:none;letter-spacing:0;}
.mediapane .md-btns{gap:6px;flex-wrap:wrap;}
.mediapane .md-info{opacity:.75;font-size:11px;}
.mediapane .empty > *:not(#md-name){display:none;}
/* The Chart pane. Rows wrap; a series row is a colour well, its name and
   the switches; the pressed switch wears the accent. */
.chartpane .cp-row{flex-wrap:wrap;gap:4px;align-items:center;}
.chartpane .cp-series{padding:4px 0;border-top:1px solid #ffffff12;}
.chartpane .cp-col{width:26px;height:22px;padding:0;flex:none;
  border:1px solid #ffffff26;border-radius:4px;background:none;
  cursor:pointer;}
.chartpane .cp-name,.chartpane .cp-text{flex:1 1 90px;min-width:70px;}
.chartpane .cp-btn{font-size:11px;padding:2px 7px;}
.chartpane .cp-btn.on{background:color-mix(in srgb,var(--accent) 22%,
  transparent);border-color:color-mix(in srgb,var(--accent) 55%,
  transparent);color:var(--chrome-ink);}
.chartpane .cp-tags{font-size:10px;opacity:.7;flex:1 0 100%;}
/* The chart gallery: a picture of each type over its name, four to a row,
   the same tiles in the pane and under the ribbon's button. The first
   series wears the accent and the rest the chrome's ink, so it reads in
   both lights. */
.ck-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:3px;}
.ck-tile{display:flex;flex-direction:column;align-items:center;gap:3px;
  min-width:0;padding:5px 2px 4px;border:1px solid transparent;
  border-radius:6px;background:none;color:var(--chrome-ink-2);
  font-family:var(--sans);font-size:10.5px;line-height:1.2;
  text-align:center;cursor:pointer;}
.ck-tile span{overflow-wrap:anywhere;}
.ck-tile:hover{background:color-mix(in srgb,var(--chrome-ink) 9%,
  transparent);color:var(--chrome-ink);}
.ck-tile:focus-visible{outline:2px solid var(--accent);outline-offset:-1px;}
.ck-tile.on{background:color-mix(in srgb,var(--accent) 20%,transparent);
  border-color:color-mix(in srgb,var(--accent) 55%,transparent);
  color:var(--chrome-ink);}
.ck-pic{width:46px;height:31px;display:block;flex:none;}
.ck-pic .ck-a{fill:var(--accent);}
.ck-pic .ck-b{fill:var(--chrome-ink-2);}
.ck-pic .ck-c{fill:var(--chrome-ink-3);opacity:.65;}
.ck-pic .ck-la,.ck-pic .ck-lb{fill:none;stroke-width:1.8;
  stroke-linejoin:round;stroke-linecap:round;stroke:var(--accent);}
.ck-pic .ck-lb{stroke:var(--chrome-ink-2);}
.ck-pic .ck-ax,.ck-pic .ck-w{fill:none;stroke:var(--chrome-ink-3);
  stroke-width:1;}
.ck-pic .ck-ax{opacity:.7;}
.ck-pic .ck-m{fill:none;stroke:var(--chrome-ink);stroke-width:1.6;}
.sh-menu.chart-gallery{display:block;width:min(400px,94vw);
  padding:8px 10px 10px;}
.chart-gallery .ck-tile{font-size:12px;padding:8px 3px 6px;gap:5px;}
.chart-gallery .ck-pic{width:68px;height:45px;}
/* a number box of the pane, its word beside it */
.chartpane .cp-num,.chart-data .cp-num{width:76px;flex:none;}
.chartpane .cp-lim{display:flex;align-items:center;gap:5px;
  font-family:var(--sans);font-size:11px;color:var(--chrome-ink-2);}
/* an axis's name and its Automatic, over its least and most */
.chartpane .cp-limhead{display:flex;align-items:center;
  justify-content:space-between;}
.chart-data .cp-bins{display:flex;align-items:center;gap:4px;margin:4px 0;}
.chart-data .cd-binlab{font-family:var(--sans);font-size:12px;
  font-weight:600;color:var(--chrome-ink-2);padding-right:4px;}
.chart-data .cp-btn{height:24px;font-size:12px;padding:0 9px;}
.chart-data .cp-btn.on{background:color-mix(in srgb,var(--accent) 22%,
  transparent);border-color:var(--accent);color:var(--chrome-ink);}
/* a structured table. The group row reads as a heading above the heading,
   the footer is ruled off from the body it sums, and a numeric column
   gets figures of one width so its digits stack. */
.an-tbl-grouprow th{font-weight:600;opacity:.9;
  border-bottom:1px solid color-mix(in srgb,currentColor 24%,transparent);}
.an-tbl-grouprow th.an-tbl-gapgroup{border-bottom:0;}
.an-tbl-calc td{font-weight:600;
  border-top:2px solid color-mix(in srgb,currentColor 40%,transparent);}
.an-tbl td.an-tbl-num{font-variant-numeric:tabular-nums;}
.tablepane .tp-row{flex-wrap:wrap;gap:4px;align-items:center;}
.tablepane .tp-cols{gap:3px;}
.tablepane .tp-btn{font-size:11px;padding:2px 7px;}
.tablepane .tp-btn.on{background:color-mix(in srgb,var(--accent) 22%,
  transparent);border-color:color-mix(in srgb,var(--accent) 55%,
  transparent);color:var(--chrome-ink);}
.tablepane .tp-in{flex:0 1 84px;min-width:56px;}
.tablepane .tp-in.tp-wide{flex:1 1 140px;}
.tablepane .tp-col{width:26px;height:22px;padding:0;flex:none;
  border:1px solid #ffffff26;border-radius:4px;background:none;
  cursor:pointer;}
/* The References pane (23e-ref-pane.js): Find, Used here / Not used / All,
   Kept in, each source on one line as its citation, title or key, and
   Maximise over the page. */
#citepane{width:340px;}
.refp-hbtn{font-size:11px;padding:3px 8px;gap:4px;white-space:nowrap;}
.refp-hbtn .bic{width:12px;height:12px;}
.citepane .refp-body{display:flex;flex-direction:column;overflow:hidden;padding:0;}
.refp-top{display:flex;flex-direction:column;gap:7px;padding:9px 10px 8px;
  border-bottom:1px solid var(--chrome-line);}
.refp-qwrap{position:relative;display:flex;align-items:center;}
.refp-qwrap>.bic{position:absolute;left:9px;width:13px;height:13px;opacity:.6;
  pointer-events:none;}
.refp-q{width:100%;box-sizing:border-box;padding:6px 8px 6px 29px;
  border:1px solid var(--chrome-line);border-radius:7px;
  background:var(--chrome-2);color:var(--chrome-ink);font:12.5px var(--sans);}
.refp-q:focus{outline:none;border-color:var(--accent);}
.refp-seg{display:flex;border:1px solid var(--chrome-line);border-radius:7px;
  overflow:hidden;}
.refp-seg>button{flex:1 1 0;min-width:0;border:0;
  border-right:1px solid var(--chrome-line);background:transparent;
  color:var(--chrome-ink-2);font:12px var(--sans);padding:5px 6px;
  cursor:pointer;white-space:nowrap;display:flex;align-items:center;
  justify-content:center;gap:5px;}
.refp-seg>button:last-child{border-right:0;}
.refp-seg>button:hover{color:var(--chrome-ink);background:#ffffff0c;}
.refp-seg>button.on{color:var(--chrome-ink);font-weight:600;
  background:color-mix(in srgb,var(--accent) 24%,transparent);}
.refp-n{font:600 10.5px var(--mono);opacity:.75;}
.refp-opts{display:flex;flex-direction:column;align-items:stretch;gap:7px;}
.refp-inl,.refp-showl{display:flex;align-items:center;gap:8px;font:12px var(--sans);
  color:var(--chrome-ink-2);min-width:0;}
.refp-inl>span,.refp-showl>span:first-child{flex:0 0 52px;}
.citepane .refp-in,.citepane .ct-style{flex:1;min-width:0;height:28px;
  padding:0 6px;border:1px solid var(--chrome-line);border-radius:7px;
  background:var(--chrome-2);color:var(--chrome-ink);font:12px var(--sans);
  text-align:left;}
.refp-shows{flex:1;}
.refp-shows>button{font-size:11.5px;padding:4px 8px;}
.refp-bibbar{display:flex;align-items:center;gap:8px;font:12px var(--sans);
  color:var(--chrome-ink);}
.refp-bibbar[hidden]{display:none;}
.refp-bibnm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-weight:600;}
.refp-list{flex:1;overflow-y:auto;padding:4px 6px;}
.refp-none{padding:14px 8px;font:12.5px/1.5 var(--sans);color:var(--chrome-ink-2);}
.refp-row{display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;column-gap:6px;border-radius:7px;padding:0 4px 0 0;}
.refp-row:hover{background:#ffffff0a;}
.refp-row.open{background:var(--surface-active);}
.refp-main{all:unset;box-sizing:border-box;display:flex;align-items:baseline;
  gap:8px;min-width:0;padding:6px 4px 6px 6px;cursor:pointer;
  border-radius:7px;}
.refp-main:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.refp-row .ct-num{flex:none;min-width:30px;font:600 11px var(--mono);
  color:var(--cyan);}
.refp-row .ct-ref{flex:1 1 auto;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;font:12.5px/1.35 var(--sans);
  color:var(--chrome-ink);}
.refp-row .ct-ref.refp-mono{font-family:var(--mono);font-size:12px;}
.refp-row .ct-from{flex:none;max-width:42%;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;font:11px var(--sans);
  color:var(--chrome-ink-3);}
.refp-row .ct-from.ct-global{color:var(--amber);}
.refp-row.missing .ct-ref,.refp-row .ct-from.ct-miss{color:var(--coral,#ff6b57);}
.refp-cite,.refp-btns .ct-btn{font-size:11px;padding:3px 8px;gap:4px;}
.refp-cite .bic,.refp-btns .bic{width:11px;height:11px;}
.refp-more{grid-column:1/-1;display:none;padding:0 8px 8px 44px;}
.refp-row.open .refp-more{display:block;}
.refp-full{font:12px/1.5 var(--sans);color:var(--chrome-ink);}
.refp-key{margin-top:3px;font:11px var(--mono);color:var(--chrome-ink-3);}
.refp-btns{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;}
.refp-more-b{margin:8px auto;display:flex;font-size:11.5px;}
.refp-foot{border-top:1px solid var(--chrome-line);padding:8px 10px;
  display:flex;flex-direction:column;gap:7px;}
.refp-acts{display:flex;flex-wrap:wrap;gap:5px;}
.refp-act{font-size:11.5px;padding:4px 9px;gap:5px;}
.refp-act .bic{width:12px;height:12px;}
.refp-act[hidden]{display:none;}
.refp-act.on{background:color-mix(in srgb,var(--accent) 22%,transparent);
  border-color:color-mix(in srgb,var(--accent) 55%,transparent);
  color:var(--chrome-ink);}
.refp-style{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.refp-stl{display:flex;align-items:center;gap:6px;font:12px var(--sans);
  color:var(--chrome-ink-2);flex:1 1 160px;min-width:0;}
.refp-stl select{flex:1;min-width:0;}
.refp-preview{font:11px/1.45 var(--sans);color:var(--chrome-ink-3);}
.refp-preview:empty{display:none;}
body.light .refp-row:hover,body.light .refp-seg>button:hover{background:#0000000a;}
/* Maximise: over the whole page, the page kept its size beneath for
   Restore (syncPaneDock skips it); each row with its full reference */
/* "Cross-reference" stood broken at its hyphen in its tile */
#lb-ref>span{white-space:nowrap;}
.selpane.pane-max{left:0!important;right:0!important;top:0!important;
  bottom:0!important;width:auto!important;height:auto!important;
  resize:none;z-index:75;border-radius:0;}
.selpane.pane-max .pane-footer,.selpane.pane-max .selpane-grip{display:none;}
.citepane.pane-max .refp-top,.citepane.pane-max .refp-foot{
  padding-left:max(16px,calc(50% - 470px));
  padding-right:max(16px,calc(50% - 470px));}
.citepane.pane-max .refp-top{flex-direction:row;flex-wrap:wrap;align-items:center;}
.citepane.pane-max .refp-qwrap{flex:1 1 320px;}
.citepane.pane-max .refp-views{flex:0 1 360px;}
.citepane.pane-max .refp-opts{flex:1 1 100%;flex-direction:row;gap:16px;}
.citepane.pane-max .refp-inl{flex:1 1 380px;}
.citepane.pane-max .refp-showl{flex:0 1 340px;}
.citepane.pane-max .refp-stl{flex:0 1 380px;}
.citepane.pane-max .refp-bibbar{flex:1 1 100%;}
.citepane.pane-max .refp-list{padding-left:max(10px,calc(50% - 476px));
  padding-right:max(10px,calc(50% - 476px));}
.citepane.pane-max .refp-row{padding:2px 4px 2px 0;}
.citepane.pane-max .refp-more{display:block;padding-bottom:6px;}
.citepane.pane-max .refp-row:not(.open) .refp-key,
.citepane.pane-max .refp-row:not(.open) .refp-btns{display:none;}
/* the footnote strip a slide's citations land in */
.slide-citefoot{position:absolute;left:4%;right:4%;bottom:1.2%;
  font-size:0.9em;opacity:.7;line-height:1.35;pointer-events:none;
  text-align:left;}
.tablepane .tp-hint{opacity:.75;font-size:11px;text-transform:none;
  letter-spacing:0;line-height:1.4;}
.chartpane .cp-hint{opacity:.75;font-size:11px;text-transform:none;
  letter-spacing:0;line-height:1.4;}
/* multi-selection / group: a dashed outline, no per-item resize handles */
/* the rubber band. Percent geometry like everything else on the layer, so
   it is right at any zoom and on any page size. */
.an-marquee{position:absolute;pointer-events:none;z-index:40;
  border:1px solid var(--cyan);
  background:color-mix(in srgb,var(--accent) 12%,transparent);}
.deck.editing .an-item.grpsel{outline:1.5px dashed var(--cyan);
  outline-offset:1px;}
.deck.editing .an-item.grpsel .an-resize,
.deck.editing .an-item.grpsel .an-handle,
.deck.editing .an-item.grpsel .an-cellbtn,
.deck.editing .an-item.grpsel .cellparts{display:none!important;}
/* build animations: staged items hide until revealed, then animate in */
.an-prebuild{opacity:0!important;pointer-events:none!important;}
/* Two rules for these keyframes.

   1. Never the `transform` shorthand. applyCommon writes a rotated item's
      rotate() into style.transform, and the shorthand would replace it
      for the animation's duration, so the object would un-rotate, animate
      and snap back. The individual `translate` and `scale` properties are
      applied before `transform` in the computed value, so they compose
      with that rotate().

   2. Never end at a literal opacity. `to{opacity:1}` would fight a.op,
      which applyCommon also writes inline, and a 40%-opacity object would
      animate up to full and snap back. An omitted `to` keyframe means
      "the value this element already has". The same goes for the
      transform keyframes. */
@keyframes anIn-fade{from{opacity:0}}
@keyframes anIn-rise{from{opacity:0;translate:0 22px}}
@keyframes anIn-zoom{from{opacity:0;scale:.85}}
.an-anim-fade{animation:anIn-fade .45s ease;}
.an-anim-rise{animation:anIn-rise .5s cubic-bezier(.2,.7,.2,1);}
.an-anim-zoom{animation:anIn-zoom .45s ease;}
/* Three more, by the same two rules. Fly in comes from the left. Page
   turn is a squash from the left edge, which reads as a page swinging
   open without a perspective on the layer (a perspective there would
   change the stacking of every item on it). Typewriter is done in JS
   (typeInto) and only borrows a caret from here. */
@keyframes anIn-slide{from{opacity:0;translate:-60px 0}}
@keyframes anIn-turn{from{opacity:.2;scale:.05 1}}
.an-anim-slide{animation:anIn-slide .5s cubic-bezier(.2,.7,.2,1);}
.an-anim-turn{animation:anIn-turn .55s cubic-bezier(.2,.7,.2,1);
  transform-origin:left center;}
/* Words and letters flow in (17-text-builds.js cascPaint). Each word or
   letter carries the box's entrance and its own delay; `both` holds it at
   the from-state through the delay. The same two rules as above apply:
   no transform shorthand, no literal end opacity. Appear is a step:
   nothing, then the word. */
.an-fl{animation-fill-mode:both!important;}
.an-fl-w{display:inline-block;}
.an-fl-l{position:relative;}
@keyframes anFl-appear{from{opacity:0}}
@keyframes anFl-slideW{from{opacity:0;translate:-.6em 0}}
@keyframes anFl-riseL{from{opacity:0;top:.45em}}
@keyframes anFl-slideL{from{opacity:0;left:-.5em}}
.an-fl.an-fl-appear{animation:anFl-appear .03s step-end;}
.an-fl.an-fl-fade{animation:anIn-fade .45s ease;}
.an-fl-w.an-fl-rise{animation:anIn-rise .5s cubic-bezier(.2,.7,.2,1);}
.an-fl-w.an-fl-zoom{animation:anIn-zoom .45s ease;}
.an-fl-w.an-fl-slide{animation:anFl-slideW .5s cubic-bezier(.2,.7,.2,1);}
.an-fl-w.an-fl-turn{animation:anIn-turn .55s cubic-bezier(.2,.7,.2,1);
  transform-origin:left center;}
.an-fl-l.an-fl-rise{animation:anFl-riseL .5s cubic-bezier(.2,.7,.2,1);}
.an-fl-l.an-fl-slide{animation:anFl-slideL .5s cubic-bezier(.2,.7,.2,1);}
.an-fl-l.an-fl-zoom,.an-fl-l.an-fl-turn{animation:anIn-fade .45s ease;}
/* Reduced motion: the words still come one at a time -- when a word is on
   the screen is the author's, as a build's click is -- and only the
   movement goes: each one fades in where it sits */
@media (prefers-reduced-motion:reduce){
  .an-fl.an-fl-rise,.an-fl.an-fl-zoom,.an-fl.an-fl-slide,
  .an-fl.an-fl-turn{animation-name:anIn-fade!important;}
}
.anim-gapsay{margin-left:6px;white-space:nowrap;}
.anim-cascnote{white-space:nowrap;align-self:center;}
.an-typing .an-tx::after{content:"\258D";opacity:.8;
  animation:an-caret .7s steps(1) infinite;}
@keyframes an-caret{50%{opacity:0}}
/* Highlight, don't hide. The lit piece takes the accent and a little size
   from its left edge; the pieces still to come sit quiet. Left origin so
   a bullet grows away from its dot, not over it. */
/* the colour and the size are the box's own (--hl-col and --hl-scale, set
   by the reveal pass from anim.hlcol / anim.hlsize); the accent and 4% are
   the defaults */
.an-part.an-hl{color:var(--hl-col,var(--sl-accent,#39a9c0));
  scale:var(--hl-scale,1.04);
  transform-origin:left center;transition:scale .25s ease,color .25s ease;}
/* inline-block only for an inline run, which needs it to take a scale. A
   promoted piece is the <li> (17-text-builds.js), and inline-block would
   remove its list-item display and the bullet's dot. A block already
   scales. */
.an-part.an-hl:not(.an-blk){display:inline-block;}
.an-part.an-hl-wait{opacity:.45;transition:opacity .25s ease;}
/* ---- A figure in panels ----
   The covers sit over the item in the page's colour and lift one per
   click. In the editor they are faint numbered outlines, so the grid
   reads and the figure is still seen. */
.an-covers{position:absolute;inset:0;pointer-events:none;z-index:2;}
.an-cover{position:absolute;box-sizing:border-box;display:none;
  align-items:center;justify-content:center;}
.an-cover.on{display:flex;}
.an-cover>b{display:none;font:600 11px var(--mono);color:var(--sl-accent);
  background:#0b141dcc;border-radius:4px;padding:1px 5px;}
.an-cover.an-cover-edit{display:flex;background:transparent!important;
  border:1px dashed color-mix(in srgb,var(--cyan) 55%,transparent);}
.an-cover.an-cover-edit>b{display:block;}
.an-cover.on.an-cover-edit{background:transparent!important;}
.panel-ico{display:grid;gap:1.5px;width:22px;height:16px;
  margin:0 auto 2px;}
.panel-ico>i{display:block;background:currentColor;opacity:.75;
  border-radius:1px;}
/* The configured highlight. data-hlfx says what the lit piece does (both
   = the look above; grow = bigger only; colour = coloured only) and
   data-hlrest what every other piece does (dim = the ones still to come
   sit quiet; blur = all the others soften; plain = left alone). Keyed on
   the attribute alone, so the Configure pane's sample (.cfg-hlprev) wears
   the same rules as the box on the slide. */
[data-hlfx="grow"] .an-part.an-hl{color:inherit;}
[data-hlfx="colour"] .an-part.an-hl{scale:1;}
[data-hlrest="blur"] .an-part.an-hl-wait{opacity:1;}
[data-hlrest="blur"] .an-part.an-hl-rest{filter:blur(2.5px);
  opacity:.7;transition:filter .3s ease,opacity .3s ease;}
[data-hlrest="plain"] .an-part.an-hl-wait{opacity:1;}
/* Appear + highlight. The pieces to come are hidden, so the ones already
   said are "the rest" and get dimmed. Blurred already acts on every other
   piece, and as-they-are needs nothing. */
[data-hlin="1"][data-hlrest="dim"] .an-part.an-hl-rest{opacity:.45;
  transition:opacity .25s ease;}
/* The sample: three bullets in the Configure pane, the middle one lit,
   drawn by the same classes and variables as the slide, so a colour or
   size chosen here is seen before the show. */
.cfg-hlprev{display:flex;flex-direction:column;gap:3px;margin:0 2px 8px;
  padding:8px 10px;border-radius:7px;background:var(--chrome-2,#16273a);
  font-family:var(--sans);font-size:12.5px;color:var(--chrome-ink);
  line-height:1.35;}
.cfg-hlprev .an-part{display:inline-block;}
.cfg-hlprev .an-part::before{content:"\2022\00a0";opacity:.7;}
.cfg-hlcol{display:inline-flex;align-items:center;gap:4px;}
.cfg-hlcol .cfg-dot{width:12px;height:12px;border-radius:50%;flex:none;
  border:1px solid #ffffff44;}
.cfg-hlcol input[type="color"]{width:26px;height:22px;padding:0;
  border:1px solid var(--chrome-line,#ffffff1f);border-radius:6px;
  background:none;cursor:pointer;}
body.light .cfg-hlprev{background:#fff;color:var(--ink);}
/* Motion that keeps going. Individual properties again, so a rotated item
   wobbles about its own rotation instead of losing it. */
/* How far is a number. Every keyframe multiplies its own travel by
   --mo-amp, so one rule per movement covers every amount of it. Speed,
   easing, delay, repeat and direction are the shorthand's own terms and
   are written onto the element by motionPaint (48b-motion.js). The class
   rules below are the defaults, for an element nothing has painted. */
@keyframes an-wobble{0%,100%{rotate:calc(-2.5deg * var(--mo-amp,1))}
  50%{rotate:calc(2.5deg * var(--mo-amp,1))}}
@keyframes an-bob{0%,100%{translate:0 0}
  50%{translate:0 calc(-8px * var(--mo-amp,1))}}
@keyframes an-pulse{0%,100%{scale:1}
  50%{scale:calc(1 + .05 * var(--mo-amp,1))}}
@keyframes an-sway{0%,100%{translate:calc(-10px * var(--mo-amp,1)) 0}
  50%{translate:calc(10px * var(--mo-amp,1)) 0}}
@keyframes an-shake{0%,100%{translate:0 0}
  20%{translate:calc(-4px * var(--mo-amp,1)) 0}
  40%{translate:calc(4px * var(--mo-amp,1)) 0}
  60%{translate:calc(-3px * var(--mo-amp,1)) 0}
  80%{translate:calc(3px * var(--mo-amp,1)) 0}}
@keyframes an-spin{from{rotate:0deg}to{rotate:360deg}}
@keyframes an-swing{0%,100%{rotate:calc(-6deg * var(--mo-amp,1))}
  50%{rotate:calc(6deg * var(--mo-amp,1))}}
@keyframes an-breathe{0%,100%{opacity:1}
  50%{opacity:calc(1 - .45 * var(--mo-amp,1))}}
@keyframes an-jelly{0%,100%{scale:1 1}
  30%{scale:calc(1 + .08 * var(--mo-amp,1)) calc(1 - .08 * var(--mo-amp,1))}
  60%{scale:calc(1 - .06 * var(--mo-amp,1)) calc(1 + .06 * var(--mo-amp,1))}}
@keyframes an-drift{0%,100%{translate:0 0}
  25%{translate:calc(9px * var(--mo-amp,1)) calc(-6px * var(--mo-amp,1))}
  50%{translate:calc(12px * var(--mo-amp,1)) calc(5px * var(--mo-amp,1))}
  75%{translate:calc(-6px * var(--mo-amp,1)) calc(7px * var(--mo-amp,1))}}
@keyframes an-glow{0%,100%{filter:drop-shadow(0 0 0 transparent)}
  50%{filter:drop-shadow(0 0 calc(10px * var(--mo-amp,1))
    var(--accent,#39a9c0))}}
@keyframes an-tilt{0%,100%{rotate:0deg}
  50%{rotate:calc(4deg * var(--mo-amp,1))}}
@keyframes an-flicker{0%,40%,48%,55%,100%{opacity:1}
  45%{opacity:calc(1 - .7 * var(--mo-amp,1))}
  52%{opacity:calc(1 - .5 * var(--mo-amp,1))}}
.an-move-wobble{animation:an-wobble 1.6s ease-in-out infinite;}
.an-move-bob{animation:an-bob 2.6s ease-in-out infinite;}
.an-move-pulse{animation:an-pulse 1.8s ease-in-out infinite;}
.an-move-sway{animation:an-sway 3s ease-in-out infinite;}
.an-move-shake{animation:an-shake .6s ease-in-out infinite;}
.an-move-spin{animation:an-spin 6s linear infinite;}
.an-move-swing{animation:an-swing 2.4s ease-in-out infinite;
  transform-origin:top center;}
.an-move-breathe{animation:an-breathe 3.4s ease-in-out infinite;}
.an-move-jelly{animation:an-jelly 1.4s ease-in-out infinite;}
.an-move-drift{animation:an-drift 9s linear infinite;}
.an-move-glow{animation:an-glow 2.2s ease-in-out infinite;}
.an-move-tilt{animation:an-tilt 2.8s ease-in-out infinite;}
.an-move-flicker{animation:an-flicker 2.4s linear infinite;}
/* The selected item stays still in the editor, so it can be grabbed;
   everything else moves as it will in the show.
   !important, because motionPaint writes the movement into the element's
   own `animation` and an inline style would otherwise beat this.
   :not(.an-mo-preview), because the selected item should move when a
   movement is being previewed on it, which that class marks. */
body.slide-editing .an-item.sel[class*="an-move-"]:not(.an-mo-preview){
  animation:none!important;}
/* ---- Text builds: the pieces one box arrives in ----------------------
   `.an-part` is a RENDER-TIME wrapper (17-text-builds.js). It never
   reaches the model -- sanitizeRich unwraps it, the caret never enters
   one -- it is inline so it cannot change a single line break, and it is
   positioned only so a build badge has something to hang off.
   The hidden state is the same .an-prebuild the whole-item builds use:
   opacity, never display. A text box auto-heights from its words, so
   display:none would make it grow line by line and, with a bottom or
   centre anchor, walk up the slide while it built. */
.an-part{position:relative;}
/* A bullet that could not be promoted still has to lose its marker while
   its words are held back. Promotion is refused for a bullet with
   sub-bullets, because hiding it would hide them too, so the dot is
   dropped here for as long as the bullet's own words are still to come.
   A dot on its own in front of nothing reads as a rendering fault. */
/* A piece is held back by its visibility, set by the reveal pass. The
   reveal pass marks the paragraph or item whose first piece is still to
   come, and its marker waits with it. It is a class and not a :has(), so
   typing never asks the style engine. */
.an-text .an-mk-wait::marker{color:transparent;}
/* one badge per piece; it borrows .an-buildno wholesale, including the CSS
   gate that shows it only while the Timeline pane is open */
.an-partno{top:-8px;left:-10px;z-index:6;}
/* Reduced motion. The entrance is decoration; what is on screen is not,
   so the builds still hold items back and only the movement goes. This
   was a real gap -- the query below only ever covered .slide -- and a
   sentence-by-sentence slide made it impossible to ignore: thirty
   separate animations for a reader who asked the operating system for
   none. */
/* The machine's answer to motion is final. The guard sits here, beside
   what it guards, rather than with the unrelated .slide rule far below.
   Reduced motion must cut entrances instead of animating them, while
   builds themselves are untouched: .an-prebuild still holds an item back
   and releases it on the click, so the deck reveals in the same steps. */
/* ...but a press that plays motion plays the motion in full */
@media (prefers-reduced-motion:reduce){
  :is(.an-anim-fade,.an-anim-rise,.an-anim-zoom,.an-anim-slide,.an-anim-turn,
  [class*="an-move-"]):not(.an-pv,.an-mo-preview,.story-play *,#anr-pv *){
  animation:none!important;}
}
/* Each entrance-and-movement pair would need its own rule, because two
   classes cannot compose one `animation` property. motionPaint instead
   writes both layers into the element's own `animation`: entrance first,
   and the movement delayed to where it ends. The reduced-motion guards
   above still win, because !important beats an inline style. */
/* The build-order badge shown in the editor, and only while the Timeline
   pane is open.
   Gated in CSS, not in the renderer. Seven places close #animpane and
   only one of them re-renders the annot layer: `set(false)` in the pane's
   own block does, while six others just assign .hidden=true (showObjHist,
   showTidyPane, the Standards pane, the Notes pane, showProvPane,
   showSizePane, showFlipPane). A JS gate would leave the badges standing
   until some unrelated edit forced a redraw. As a selector it is always
   right, and opening the pane costs no re-render because the badges are
   built on every render.
   When the pane is shut, the filmstrip's ▸N mark says a slide is
   animated; it wears this same amber on purpose.
   The `>` matters: #animpane is a child of the stage wrapper, and without
   it every change anywhere under the stage would make the browser walk
   all of it again to answer this. */
.an-buildno{position:absolute;top:-9px;left:-9px;z-index:5;min-width:16px;
  height:16px;border-radius:8px;background:#cf9a4e;color:#241a05;
  font-family:var(--mono);font-size:10px;font-weight:700;display:none;
  align-items:center;justify-content:center;padding:0 3px;pointer-events:none;
  white-space:nowrap;}
.deck-stagewrap:has(>#animpane:not([hidden])) .an-buildno{display:flex;}
/* pointing at a row of the Order list lights its object */
.an-item.an-rowhot,.an-arrow-line.an-rowhot{
  outline:2px solid #cf9a4e;outline-offset:3px;}
/* optional per-deck slide numbers (bottom-right, part of the slide) */
/* The slide number, the header and the footer use the deck's Quiet colour
   once a theme names one (--tk-quiet, written only when it differs from
   the default, so an untouched deck draws as before). */
.slide-pageno{position:absolute;right:2.6%;bottom:3.2%;z-index:4;
  font-family:var(--mono);line-height:1;
  color:var(--tk-quiet,var(--chrome-ink-2));pointer-events:none;}
.vpage .slide-pageno{color:var(--tk-quiet,var(--chrome-ink-2));}
/* the toolbar icons share the app ribbon's 16-grid stroke style; inside
   a .dbtn they sit inline beside the label */
.dbtn .bic{display:inline-block;vertical-align:-2px;width:13px;
  height:13px;margin-right:4px;}
/* A deck is a sequence and you steer it by seeing the sequence, so its
   strip is there by default, on a poster too. Only the strip: the panel's
   head has moved into the ribbon and would otherwise draw an empty bar,
   and the layout catalogue lives in the Layouts dropdown. */
/* While editing the head stays: File, Save, undo/redo and the save readout
   live here, under Notebooks, above the thumbnails. Only the
   builder-specific controls row hides. */
.deck.editing .dc-controls{display:none;}
/* the way back, above the thumbnails: with the editor full-width the
   presentations rail (and its Notebooks button) is covered, so the way
   out has to be visible */
/* the notebooks content at the column top: pane rows reused verbatim */
/* ...and putting it away is still one click, for a deck too: Slides
   toggles the strip rather than opening a pane */
/* putting the strip away hides the thumbnails, not the column — the
   way back and the document actions must survive the toggle */
.deck.editing.strip-off .dc-film{display:none!important;}
/* the colour popups: a pad of roomy hit targets, headed by name */
.sh-menu.sw-menu{display:flex;flex-wrap:wrap;align-items:center;
  gap:7px;width:198px;padding:10px 11px;}
/* the two that hold the picker are wider by its hex box. Scoped to them by
   id because .sw-menu is also the line panel's stroke-width menu. */
#fmt-txcol-menu,#fmt-fillcol-menu{box-sizing:border-box;
  width:min(264px,calc(100vw - 12px));}
.sw-menu .fmt-lab{display:block;flex:0 0 100%;margin:2px 0 -1px;}
.sw-menu>.sw-tokrow,.sw-menu>.sw-recrow,
.sw-menu>.sw-tokshades{flex:0 0 100%;}
/* ---- What changed, in three readings ----
   By slide ("Slide 14 - Title: colour red -> yellow, picture added"), by
   type ("title colour red -> yellow - slides 13, 14, 15") and the
   pictures, which show only the slides that differ unless every one is
   requested. The compare-with picker reads one version against another
   instead of always against the deck being edited. */
.dh-h2t{display:block;font-size:12.5px;color:#dbe7ef;}
.dh-h2note{display:block;font-family:var(--sans);font-size:11px;
  color:var(--chrome-ink-2);margin-top:3px;}
.dh-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  margin:0 0 12px;}
.dh-vs{display:inline-flex;align-items:center;gap:6px;margin-left:auto;}
.dh-vslab{font-family:var(--sans);font-size:11px;color:var(--chrome-ink-2);}
.dh-vssel{max-width:230px;font:12px var(--sans);padding:4px 6px;
  border-radius:6px;color:var(--chrome-ink);background:var(--input-bg);
  border:1px solid var(--chrome-line);}
.dh-tabs{display:flex;align-items:center;gap:6px;margin:0 0 10px;
  border-bottom:1px solid #ffffff14;padding-bottom:9px;}
.dh-tab[aria-pressed="true"]{border-color:var(--cyan);
  background:color-mix(in srgb,var(--cyan) 18%,transparent);
  color:var(--chrome-ink);}   /* an 18% wash keeps the theme's ink */
.dh-every{display:inline-flex;align-items:center;gap:5px;margin-left:auto;
  font-family:var(--sans);font-size:11.5px;color:var(--chrome-ink-2);cursor:pointer;}
.dh-chlist{display:flex;flex-direction:column;}
.dh-ch{display:grid;grid-template-columns:190px minmax(0,1fr);gap:12px;
  align-items:baseline;padding:7px 2px;
  border-bottom:1px solid #ffffff10;}
.dh-chslide{font-family:var(--sans);font-size:11.5px;color:var(--chrome-ink-2);}
.dh-chwhat{font-family:var(--sans);font-size:12.5px;color:#dbe7ef;
  line-height:1.5;}
.dh-chlead{font-weight:600;}
body.light .dh-h2t,body.light .dh-chwhat{color:var(--ink);}
body.light .dh-ch{border-bottom-color:var(--line);}

/* ---- One slide from two branches ----
   History's sheet, with the slides that differ down the left, the slide
   as each branch has it and as it will be, and under the three a block
   for each object. The frames stay in sight while the list is gone
   through. What both branches changed is two cards side by side. */
.deck-history.deck-merge{height:calc(100vh - 48px);}
.deck-history.deck-merge.mg-empty{height:fit-content;}
.mg-one .mg-main,.mg-empty .mg-main{grid-template-columns:minmax(0,1fr);}
.mg-one .mg-rail,.mg-empty .mg-rail,.mg-empty .mg-frames,
.mg-empty .mg-tools,.mg-empty .mg-foot{display:none;}
.mg-main{flex:1;min-height:0;display:grid;
  grid-template-columns:200px minmax(0,1fr);}
.mg-rail{overflow-y:auto;border-right:1px solid #ffffff14;
  padding:8px;display:flex;flex-direction:column;gap:6px;}
.mg-every{margin:0 2px 2px;}
.mg-sl{flex:none;display:flex;flex-direction:column;gap:3px;text-align:left;
  padding:6px;border:1px solid transparent;border-radius:7px;
  background:transparent;color:var(--chrome-ink);cursor:pointer;
  font-family:var(--sans);}
.mg-sl:hover{background:#ffffff0d;}
.mg-sl.on{background:#ffffff12;border-color:var(--cyan);}
.mg-sl .mini-diagram{max-width:100%;pointer-events:none;}
.mg-sln{font-size:12px;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;}
.mg-slw{font-size:11px;color:var(--chrome-ink-2);}
.mg-sl.st-both .mg-slw{color:var(--warning);}
.mg-body{min-width:0;overflow-y:auto;padding:0 14px 16px;}
.mg-frames{position:sticky;top:0;z-index:3;display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;
  padding:10px 0 8px;background:var(--chrome-0,#0b141d);}
.mg-fr{min-width:0;display:flex;flex-direction:column;gap:4px;}
.mg-cap{font:600 11.5px var(--sans);color:var(--chrome-ink-2);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mg-page{position:relative;overflow:hidden;border-radius:5px;
  background:#050a0f;border:1px solid #ffffff1f;box-sizing:content-box;
  width:calc(100% - 2px);}
/* (no arrival of its own: a slide drawn here is there at once) */
.mg-page .slide{pointer-events:none;margin:0!important;max-width:none!important;
  animation:none!important;transition:none!important;}
.mg-fr .mg-page{cursor:pointer;}
.mg-none{display:grid;place-items:center;cursor:default!important;
  font:12px var(--sans);color:var(--chrome-ink-2);}
.mg-hi{outline:var(--mg-w,4px) solid var(--cyan);outline-offset:2px;}
.mg-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  padding:4px 0 10px;border-bottom:1px solid #ffffff14;}
.mg-tools [aria-pressed="true"],.mg-seg [aria-pressed="true"],
.mg-both[aria-pressed="true"]{border-color:var(--cyan);
  background:color-mix(in srgb,var(--cyan) 18%,transparent);
  color:var(--chrome-ink);}
.mg-list{display:flex;flex-direction:column;gap:10px;padding-top:10px;}
.mg-obj{border:1px solid #ffffff1a;border-radius:8px;padding:8px 10px 4px;}
.mg-obj:hover,.mg-obj:focus-within{border-color:#ffffff3d;}
.mg-objh{display:flex;align-items:center;gap:10px;min-height:28px;}
.mg-objt{flex:1;min-width:0;font:600 12.5px var(--sans);
  color:var(--chrome-ink);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;}
.mg-objt svg{width:14px;height:14px;vertical-align:-2px;}
.mg-row{padding:6px 0;border-top:1px solid #ffffff10;}
.mg-rowh{display:flex;align-items:center;gap:10px;min-height:28px;}
.mg-what{flex:1;min-width:0;font:12.5px/1.45 var(--sans);
  color:var(--chrome-ink);}
.mg-what b{font-weight:600;}
.mg-st{font:11.5px var(--sans);color:var(--chrome-ink-2);}
.mg-row.st-both .mg-st{color:var(--warning);}
.mg-seg{display:inline-flex;gap:4px;}
.mg-words{display:block;white-space:pre-wrap;overflow-wrap:anywhere;
  max-height:110px;overflow-y:auto;font:12px/1.5 var(--sans);
  color:var(--chrome-ink);padding:4px 0;}
.mg-words ins{text-decoration:underline;text-underline-offset:2px;
  color:var(--success);}
.mg-words del{color:var(--danger);}
.mg-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  padding:2px 0 6px;}
.mg-card{display:flex;flex-direction:column;gap:4px;min-width:0;
  text-align:left;padding:8px;border:1px solid var(--chrome-line);
  border-radius:8px;background:var(--chrome-1);cursor:pointer;}
.mg-card:hover{border-color:var(--chrome-ink-2);}
.mg-card[aria-pressed="true"]{border-color:var(--cyan);
  box-shadow:inset 0 0 0 1px var(--cyan);}
.mg-cardsay{font:12px/1.4 var(--sans);color:var(--chrome-ink);}
.mg-zoom{display:block;}
.mg-both{grid-column:1/3;justify-self:start;}
.mg-foot{display:flex;align-items:center;gap:10px;padding:10px 16px;
  border-top:1px solid #ffffff1a;font:12.5px var(--sans);
  color:var(--chrome-ink);}
.mg-foot .dbtn:disabled{opacity:.5;}
body.light .mg-rail,body.light .mg-tools,body.light .mg-foot,
body.light .mg-obj,body.light .mg-row{border-color:var(--line);}
body.light .mg-obj:hover,body.light .mg-obj:focus-within{
  border-color:var(--chrome-ink-2);}
body.light .mg-sl:hover{background:#00000008;}
body.light .mg-sl.on{background:#0000000d;}
body.light .mg-page{background:var(--chrome-1);
  border-color:var(--chrome-line);}

/* ---- The picker, as the bottom of the menu ----
   Same element as the floating popup, restyled as a section: no card of
   its own, just a rule and the controls under it. It carries hex, rgb
   and the transparency slider. */
.sw-menu>.color-pop.cp-inline{box-sizing:border-box;flex:0 0 100%;
  min-width:0;position:static;width:auto;
  background:none;border:none;border-top:1px solid #ffffff1c;
  border-radius:0;box-shadow:none;padding:9px 0 0;margin:3px 0 0;
  gap:7px;}
.cp-inline .cp-lab{width:48px;}
.cp-inline .cp-in{padding:5px 7px;font-size:11.5px;}
.cp-inline .cp-preview{width:24px;height:24px;}
.cp-recent[hidden]{display:none!important;}
body.light .sw-menu>.color-pop.cp-inline{border-top-color:var(--chrome-line);}
.sw-tokrow{display:flex;flex-wrap:wrap;align-items:center;gap:7px;}
.sw-tokrow>.fmt-lab{flex:0 0 100%;}
/* hidden still means hidden, whatever display the rows above ask for */
.sw-menu [hidden]{display:none!important;}
/* ---- Page background and light pages ----
   pres.pageBg sets --page-bg on the deck. A light colour flips
   .page-light, which recolours the default chrome (text boxes, frames,
   page numbers) for dark-on-light reading. Explicit per-item colours
   always win; these rules only replace the dark-theme defaults. White is
   the default for new posters, which are meant to be printed. */
.deck .deck-stage .slide{background:var(--page-bg,transparent);}
/* ---- A slide is its own colour context ----
   Anything on a slide with no colour of its own (a table's text and
   rules, a notebook output) would inherit its host's: the editor's chrome
   ink (.deck{color:var(--chrome-ink)}), the app scheme's reader palette
   (pre.stream on --paper-2 and --ink-2), or the print page's body ink.
   Under the Light app scheme a dark slide's table would be #16202b on
   navy.
   So every picture of a slide (.slide on the canvas, in the show, the
   print root, the presenter and the story strip, and .mini-diagram in
   every strip, sorter and gallery) carries its colours with it: the text
   from the deck's Body text (--tk-ink, written by slideContext) and the
   page's own default; the face from the deck's body style (--tk-font);
   and the reader and chrome palette that notebook frames and on-page
   widgets use, pinned to the page's own (the built-in dark values, or
   the light ones on a light page), so the app scheme stops at the
   slide's edge. The accent the audience sees (an eyebrow, a frame's
   edge, a highlight, a flip book's page pips) is the deck's
   (--sl-accent). The editor's own handles and selection keep the app's.
   A thumbnail pins only the two faces its panes read (--chrome-0 and
   --chrome-4), because every custom property declared on an element is a
   copy for its whole subtree and the strip has sixty of them. The one
   notebook printout a thumbnail draws gets its colours from its own rule,
   below. */
.slide{
  --paper:#101c28;--paper-2:#0b141d;--paper-3:#1a2a38;--line:#ffffff1f;
  --ink:#e7edf3;--ink-2:#c4d0da;--ink-3:#91a3b2;
  --chrome-0:#0b141d;--chrome-1:#0e1926;--chrome-2:#162735;
  --chrome-3:#101c28;--chrome-4:#172838;--chrome-line:#ffffff1f;
  --chrome-ink:#d7e3ec;--chrome-ink-2:#a8b7c4;--chrome-ink-3:#8195a6;
  --sl-accent:var(--tk-accent,#58c4db);}
.mini-diagram{--chrome-0:#0b141d;--chrome-4:#172838;}
.slide.page-light{
  --paper:#fbfcfd;--paper-2:#eef2f6;--paper-3:#e2e8ee;--line:#d8e0e8;
  --ink:#16202b;--ink-2:#465767;--ink-3:#596b7d;
  --sl-accent:var(--tk-accent,#1d7a90);}
.slide{color:var(--tk-ink,#fff);font-family:var(--tk-font,var(--sans));}
.slide.page-light{color:var(--tk-ink,#1b2733);}
.mini-diagram{color:var(--tk-ink,#dbe6ee);}
.mini-diagram.page-light{color:var(--tk-ink,#1b2733);}
/* a notebook's printout on a slide is the PAGE's, never the app's: the
   reader's rules for it are keyed on body.light / body:not(.light) */
.slide pre.result,.slide pre.stream{
  background:var(--paper-2);border-color:var(--paper-3);color:var(--ink-2);}
/* In a thumbnail, which draws a frame's printout (miniCell puts
   framePart's output in it): the dark page's own colours as literals, so
   only the cell boxes pay for it and not every thumbnail in the strip.
   The light page's rule below wins. */
.mini-it.is-cell pre.result,.mini-it.is-cell pre.stream{
  background:#0b141d;border-color:#1a2a38;color:#c4d0da;}
/* The light page's defaults are the fallback of the same tokens the dark
   page reads, so Body text, Box background and Lines and edges govern a
   white page too. Plain literals here would outrank the token rules. */
.page-light .an-text{color:var(--tk-ink,#1b2733);
  --an-box-bg:var(--tk-surface,#fff);
  border-color:var(--tk-line,#00000024);}
.page-light .an-cell{background:var(--tk-surface,#fff);
  border-color:var(--tk-line,#00000030);}
.page-light .an-cell pre.result,.page-light .an-cell pre.stream{
  background:#fff;color:#1b2733;border-color:#00000018;}
.page-light .an-handle{color:#5a6b78;}
.page-light .slide-pageno{color:var(--tk-quiet,#5a6b78);}
/* needs the .slide-titlefree qualifier to outrank the later dark rule of
   equal specificity */
.page-light .slide-titlefree .ttl-eyebrow{color:var(--sl-accent);}
.page-light .an-title{color:var(--tk-heading,#16222c);}
/* retained for the references-box hint and for the transition from an
   empty template slot into real text. Template ghost text is no longer
   drawn. */
.an-ph{opacity:.38;user-select:none;}
/* Once the caret is in, what you type is full strength from the first
   letter, not faint, and selectable until the pause that commits it. */
.an-editing .an-ph{opacity:1;user-select:text;}
/* on-page chrome: figure captions and slide meta need light-page colours
   on a white page */
.page-light .an-cellcap{color:#4a5a66;}
.page-light .slide-meta{color:#5a6b78;}
/* the File-menu page background swatches */
.dc-pagebg{display:flex;align-items:center;gap:6px;cursor:default;}
/* the background chips are built from PAGE_BGS in deck.js, so their
   colours live in one place */
.pgbg-row{display:flex;flex-wrap:wrap;gap:5px;margin-left:auto;
  max-width:150px;justify-content:flex-end;}
.sh-menu .bg-sw{flex-wrap:wrap;}
.bg-chip{width:20px;height:20px;padding:0;border-radius:5px;flex:none;
  border:1px solid #ffffff33;cursor:pointer;}
/* a light chip needs a darker edge or it disappears into a light menu */
.bg-chip.is-light{border-color:#00000033;}
.bg-chip:hover{border-color:var(--cyan);}
.bg-chip[aria-pressed="true"]{border-color:var(--cyan);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 45%,transparent);}
.bg-auto{flex:none;}
/* ---- the crop menu's Trim row ---- */
/* The row is a grid item of the 3-column .sh-menu. Unless it spans the
   whole row, its ~330px min-content width inflates the auto tracks and
   pushes the shape options off the 210px panel, and at laptop widths off
   the viewport. */
/* The opposite trap: a row spanning the panel let its own four numbers
   and Reset run past the side of it. Every row now shares the panel's
   width (minmax(0,1fr)), so nothing in the menu can be wider than the
   menu. */
#fmt-crop-menu{width:min(326px,calc(100vw - 16px));
  grid-template-columns:repeat(5,minmax(0,1fr));}
#fmt-crop-menu>.hd-lab,#fmt-crop-menu>.crop-inset,#fmt-crop-menu>.ci-trim,
#fmt-crop-menu>.ci-act{grid-column:1/-1;min-width:0;}
#fmt-crop-menu>.hd-lab{border-top:1px solid #ffffff1a;margin-top:4px;
  padding-top:8px;}
body.light #fmt-crop-menu>.hd-lab{border-top-color:var(--chrome-line);}
.crop-inset{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;}
.ci-field{display:flex;flex-direction:column;gap:3px;min-width:0;
  font:11px var(--sans);color:var(--chrome-ink-2);}
/* the frame's shape, as a row of ratios */
.crop-aspect{grid-template-columns:repeat(5,minmax(0,1fr));}
.crop-aspect .dbtn{font-family:var(--sans);font-size:12px;padding:4px 2px;
  min-width:0;justify-content:center;text-align:center;}
.crop-inset input{width:100%;min-width:0;box-sizing:border-box;
  background:var(--chrome-0,#0b141d);color:var(--chrome-ink);
  border:1px solid #ffffff26;border-radius:5px;font-size:12px;
  padding:4px 5px;font-family:var(--sans);}
.crop-inset input:focus{border-color:var(--cyan);outline:none;}
#fmt-crop-menu>.ci-act{display:flex;align-items:center;gap:8px;
  font-size:12.5px;padding:5px 9px;white-space:nowrap;}
#fmt-crop-menu>.ci-act .bic{width:15px;height:15px;flex:none;}
#fmt-crop-menu>.ci-act:disabled{opacity:.45;cursor:default;}
/* ---- PDF / print export: one fixed-size 16:9 slide per page ---- */
#print-root{position:fixed;left:-99999px;top:0;width:1280px;z-index:-1;}
.print-page{width:1280px;height:720px;position:relative;overflow:hidden;
  background:var(--chrome-0,#0b141d);}
/* no entrance: the show's own .28s animation from nothing would be part
   way through when the page is printed, and a PDF would come out pale */
.print-page .slide{position:absolute;inset:0;background:#0b141d;
  animation:none;}
.print-page .annot-layer{pointer-events:none;}
@media print{
  @page{size:1280px 720px;margin:0;}
  html,body{background:var(--chrome-0,#0b141d);}
  /* none of the room the page keeps for the app's bars: 80px of it above
     the first sheet pushes that sheet over its own edge and adds a blank
     page to every PDF */
  body.printing{margin:0!important;padding:0!important;}
  body.printing>*{display:none!important;}
  body.printing #print-root{display:block!important;position:static;
    left:0;top:0;width:auto;z-index:auto;}
  .print-page{page-break-after:always;break-after:page;}
  .print-page:last-child{page-break-after:auto;break-after:auto;}
}

/* handouts and notes pages: A4 sheets of the same pages */
#print-root.ho-mode{width:794px;}
.ho-sheet{width:794px;height:1123px;box-sizing:border-box;
  padding:36px 44px;background:#fff;color:#111;overflow:hidden;
  font-family:var(--sans,system-ui);display:flex;flex-direction:column;}
.ho-head{display:flex;justify-content:space-between;font-size:11px;
  color:#555;border-bottom:1px solid #ccc;padding-bottom:6px;
  margin-bottom:18px;}
.ho-body{flex:1;display:flex;flex-direction:column;gap:26px;}
.ho-k-ho6 .ho-body{display:grid;grid-template-columns:1fr 1fr;
  grid-auto-rows:min-content;gap:30px 26px;align-content:space-evenly;}
/* the slides spread down the sheet, as PowerPoint's handouts do */
.ho-k-ho3 .ho-body{justify-content:space-evenly;}
.ho-row{display:flex;gap:22px;align-items:flex-start;}
.ho-k-notes .ho-row{flex-direction:column;
  align-items:center;}
/* contain: the page in a slot is drawn smaller by a transform but laid
   out at its own size, which would cut a second sheet's print at the
   sheet's foot and shrink every sheet. */
.ho-slot{flex:none;overflow:hidden;position:relative;contain:strict;
  box-shadow:0 0 0 1px #bbb;}
.ho-slot .print-page{position:absolute;left:0;top:0;}
.ho-lines{flex:1;display:flex;flex-direction:column;gap:20px;
  padding-top:8px;}
.ho-line{border-bottom:1px solid #bbb;height:1px;}
.ho-sheet .ho-notes{width:600px;font-size:13px;line-height:1.5;color:#111;}
.ho-sheet .ho-notes.ho-nonotes{color:#666;font-style:italic;}
@media print{
  .ho-sheet{page-break-after:always;break-after:page;}
  .ho-sheet:last-child{page-break-after:auto;break-after:auto;}
  .ho-sheet .print-page{page-break-after:auto;break-after:auto;}
}
/* A handout's blanks: the text's own line, the width it had, and an
   object's empty box. The line is the text's inline box, so it runs on
   under the spaces between, and is each line's own where they wrap. */
.hoh-line{background-image:linear-gradient(currentColor,currentColor);
  background-repeat:no-repeat;background-position:0 100%;
  background-size:100% max(1.5px,.06em);text-decoration:none;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;}
.hoh-w{display:inline-block;max-width:100%;text-indent:0;}
.hoh-w.hoh-wd{display:table;margin:0 auto;}
.hoh-w.hoh-gone{height:0;overflow:hidden;vertical-align:baseline;}
.hoh-w.hoh-wd.hoh-gone{height:1.3em;border-bottom:max(1.5px,.06em) solid;}
.hoh-line [data-hl],.hoh-line .lb-cmt{background-color:transparent!important;}
.an-item.hoh-bx{background:none!important;box-shadow:none!important;
  filter:none!important;opacity:1!important;clip-path:none!important;
  mix-blend-mode:normal!important;
  border:2px solid color-mix(in srgb,var(--ink,currentColor) 60%,transparent)
    !important;border-radius:2px!important;box-sizing:border-box;}
.sh-menu.hoh-menu{width:min(340px,94vw);box-sizing:border-box;padding:6px;}
.sh-menu.hoh-menu:not([hidden]){display:block;}
.sh-menu.hoh-menu .hd-lab.hoh-head{padding:8px 8px 4px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.sh-menu.hoh-menu .dbtn.vw-opt{display:flex;align-items:center;gap:7px;
  width:100%;justify-content:flex-start;text-align:left;margin:0 0 3px;}
.hoh-tick{flex:0 0 14px;text-align:center;}
.hoh-none,.lec-say{padding:8px;font-size:12px;line-height:1.45;
  color:var(--chrome-ink-2);white-space:normal;}
.lec-say{padding:0 8px 5px;}
.hoh-list{max-height:232px;overflow:auto;}
.hoh-at{flex:0 0 auto;min-width:46px;}
.hoh-at:empty{display:none;}
.hoh-t{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.an-verwait{flex:1;display:flex;align-items:center;justify-content:center;
  font-family:var(--mono);font-size:11px;color:var(--chrome-ink-2);padding:16px;
  text-align:center;}


/* snap-to-align guide lines, drawn only mid-drag. Solid and glowing
   rather than a 1.5px dash, which on an A0 poster zoomed to fit is there
   but reads as nothing. */
.snapline{position:absolute;z-index:45;pointer-events:none;}
/* magenta, a hair thin: coral is a new line's own colour, so a guide
   would read as more of the arrow being dragged */
.snapline.snap-v{top:0;bottom:0;width:0;border-left:1px solid #e62bff;}
.snapline.snap-h{left:0;right:0;height:0;border-top:1px solid #e62bff;}
/* a snap onto the PAGE's own centre/edge is a different fact from a snap
   onto another item — cyan for the page, coral for its contents */
.snapline.snap-page{border-color:var(--cyan);}
/* equal-gap markers: shown when the dragged item sits at the same
   distance from its neighbours as they are from each other */
.snapgap{position:absolute;z-index:45;pointer-events:none;
  background:#f0a84855;border:1px solid #f0a848;border-radius:2px;}
/* the gap being made is solid; the gap it matched is evidence, so it is
   drawn faint — two equally loud bars read as two instructions */
.snapgap.snapgap-ref{background:#f0a84826;border-style:dashed;
  border-color:#f0a84899;}
/* the number, centred on its bar. translate rather than margins so the
   percentage positions above stay the anchor point. */
.snapgap-lab{transform:translate(-50%,-50%);
  border-color:#f0a84899;color:color-mix(in srgb,#f0a848 40%,var(--chrome-ink));}
.snapgap-lab.snapgap-lab-ref{opacity:.72;}
/* live position/size readout, pinned to the dragged item */
.dragtag{position:absolute;z-index:46;pointer-events:none;
  font-family:var(--mono);font-size:10px;line-height:1;white-space:nowrap;
  background:color-mix(in srgb,var(--chrome-0,#0b141d) 85%,transparent);border:1px solid #ffffff2b;border-radius:5px;
  padding:3px 6px;color:var(--chrome-ink);}

/* ---------- page guides: margin box + grid (never printed) ---------- */
.pgrid{position:absolute;inset:0;z-index:4;pointer-events:none;
  overflow:hidden;}
.pgrid-lines{position:absolute;inset:0;}
.pgrid-margin{position:absolute;border:1px dashed color-mix(in srgb,var(--accent) 48%,transparent);}
.page-light .pgrid-margin{border-color:#1f6f8a8c;}
.pgrid-col{position:absolute;top:0;bottom:0;background:color-mix(in srgb,var(--accent) 6%,transparent);}
.page-light .pgrid-col{background:color-mix(in srgb,var(--accent) 8%,transparent);}
/* the grid's own lines — faint, so they guide without competing with the
   work sitting on top of them */
.pgrid-rule{position:absolute;height:0;border-top:1px solid color-mix(in srgb,var(--accent) 14%,transparent);}
.pgrid-vrule{position:absolute;width:0;border-left:1px solid color-mix(in srgb,var(--accent) 14%,transparent);}
.page-light .pgrid-rule{border-top-color:#1f6f8a2e;}
.page-light .pgrid-vrule{border-left-color:#1f6f8a2e;}
/* A run of rows that can be long. The figure-reference list holds every
   figure in the deck, and each must be referable. Only the run scrolls,
   so the rows above and below it stay put. */
.menu-scroll{max-height:210px;overflow-y:auto;overscroll-behavior:contain;}
/* guides you drag off the rulers yourself; they belong to the poster and
   are saved with it, but are still guides — never ink */
/* Above the annotation layer, not under it. While editing, that layer
   takes the pointer over the whole page (z-index 6, and its svg after
   it), so guides at 5 would be drawn but unreachable: a press on a guide
   line or on a box's edge, corner or grip would land on the layer, and
   the stage's guide handler, which asks what was pressed, would never
   see it. The container still takes nothing: only the lines and the box
   handles do, and Lock (L) takes those away. */
.cguides{position:absolute;inset:0;z-index:7;pointer-events:none;}
.cguide{position:absolute;pointer-events:auto;}
.cguide.cg-v{top:0;bottom:0;width:0;border-left:1px solid #46a892cc;
  cursor:col-resize;padding:0 3px;margin-left:-3px;}
.cguide.cg-h{left:0;right:0;height:0;border-top:1px solid #46a892cc;
  cursor:row-resize;padding:3px 0;margin-top:-3px;}
.cguide:hover{border-color:#46a892;box-shadow:0 0 6px #46a89299;}
/* Locked: the lines go on drawing and snapping but stop taking the
   pointer, so a press that lands on one lands on the page under it. A
   locked box has no handles in its markup at all. */
.cguides.cg-locked .cguide{pointer-events:none;}
/* a guide BOX: an area to lay out inside. Dashed, so it never reads as a
   drawn rectangle, and click-through except on its four edge strips —
   the middle of one covers most of the page and must not take clicks
   away from the canvas underneath. */
.cg-box{position:absolute;pointer-events:none;
  border:1px dashed #46a892aa;
  background:color-mix(in srgb,#46a892 4%,transparent);}
/* Each strip resizes its own side. The cursors say which way each one
   goes, corners take the two sides they touch, and the corners come after
   the edges in the markup so the overlap at a corner resizes both rather
   than whichever the browser hit-tested first. */
.cg-edge{position:absolute;pointer-events:auto;}
.cg-e-t{left:0;right:0;top:-4px;height:8px;cursor:ns-resize;}
.cg-e-b{left:0;right:0;bottom:-4px;height:8px;cursor:ns-resize;}
.cg-e-l{top:0;bottom:0;left:-4px;width:8px;cursor:ew-resize;}
.cg-e-r{top:0;bottom:0;right:-4px;width:8px;cursor:ew-resize;}
.cg-corner{position:absolute;pointer-events:auto;width:11px;height:11px;}
.cg-c-tl{left:-5px;top:-5px;cursor:nwse-resize;}
.cg-c-tr{right:-5px;top:-5px;cursor:nesw-resize;}
.cg-c-bl{left:-5px;bottom:-5px;cursor:nesw-resize;}
.cg-c-br{right:-5px;bottom:-5px;cursor:nwse-resize;}
/* The move grip, because resizing takes the edges. A visible handle beats
   a modifier nobody is told about (the modifier stays as the shortcut).
   It sits above the top edge rather than inside it: the middle of a guide
   box is the area being laid out inside, and must keep taking clicks for
   whatever is under it. */
.cg-grip{position:absolute;pointer-events:auto;cursor:move;
  left:50%;margin-left:-9px;top:-11px;width:18px;height:9px;
  border:1px solid #46a892aa;border-bottom:0;border-radius:3px 3px 0 0;
  background:color-mix(in srgb,#46a892 30%,transparent);}
/* a box sitting against the top of the page has no room above it */
.cg-box.cg-lowgrip>.cg-grip{top:1px;border-bottom:1px solid #46a892aa;
  border-radius:0 0 3px 3px;}
.cg-box:hover{border-color:#46a892;}
.cg-box:hover>.cg-grip,.cg-box.cg-live>.cg-grip{background:#46a892;}
/* The size of a poster's guide box (a physical area, such as "the figure
   well is 380mm") is shown while it is drawn. It sits inside the box so it
   is never clipped off the page, and has pointer-events:none so it never
   eats the drag it describes. */
.cg-box.cg-live{border-style:solid;border-color:#46a892;}
.cg-tip{position:absolute;left:2px;top:2px;pointer-events:none;
  padding:1px 5px;border-radius:3px;white-space:nowrap;
  font:600 11px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;
  color:#04231e;background:#46a892;}
/* guides are an editing aid: never in print, export or playback */
.deck:not(.editing) .pgrid,.deck:not(.editing) .rulers,
.deck:not(.editing) .cguides{display:none;}
@media print{.pgrid,.rulers,.cguides{display:none!important;}}
#print-root .pgrid,#print-root .rulers,
#print-root .cguides{display:none!important;}

/* ---------- rulers ---------- */
.rulers{position:absolute;inset:0;z-index:7;pointer-events:none;
  font-family:var(--mono);}
/* the ruler bars themselves do take clicks — that is where a guide is
   pulled from — while the rest of the overlay stays transparent to them */
.ruler{position:absolute;
  background:color-mix(in srgb,var(--chrome-1) 95%,transparent);
  color:var(--chrome-ink-2);border:1px solid var(--chrome-line);overflow:hidden;pointer-events:auto;}
.ruler-h{cursor:row-resize;}
.ruler-v{cursor:col-resize;}
.ruler-h{height:19px;}
.ruler-v{width:19px;}
/* the corner takes clicks too: it arms the guide BOX, the way the two
   ruler bars beside it lay down guide lines */
.ruler-corner{position:absolute;width:19px;height:19px;
  background:color-mix(in srgb,var(--chrome-1) 95%,transparent);
  border:1px solid var(--chrome-line);font-size:7.5px;
  display:flex;align-items:center;justify-content:center;color:var(--chrome-ink-3);
  pointer-events:auto;cursor:crosshair;}
.ruler-corner:hover{color:var(--accent);}
.rtick{position:absolute;
  background:color-mix(in srgb,var(--chrome-ink-2) 45%,transparent);}
.ruler-h .rtick{top:auto;bottom:0;width:1px;height:4px;}
.ruler-h .rtick.major{height:8px;background:var(--chrome-ink-2);}
.ruler-v .rtick{left:auto;right:0;height:1px;width:4px;}
.ruler-v .rtick.major{width:8px;background:var(--chrome-ink-2);}
.rlab{position:absolute;font-size:8px;color:var(--chrome-ink-2);white-space:nowrap;}
.ruler-h .rlab{top:1px;transform:translateX(2px);}
.ruler-v .rlab{left:1px;transform:translateY(1px) rotate(-90deg);
  transform-origin:left top;}
/* where the pointer is, on both rulers */
.rcursor{position:absolute;background:var(--cyan);}
.ruler-h .rcursor{top:0;bottom:0;width:1px;}
.ruler-v .rcursor{left:0;right:0;height:1px;}
/* the selected item's extent, shaded on the rulers — the quickest way to
   see how far a block reaches on a page too big to take in at once */
.rspan{position:absolute;background:color-mix(in srgb,var(--accent) 22%,transparent);}
.ruler-h .rspan{top:0;bottom:0;}
.ruler-v .rspan{left:0;right:0;}

/* ---------- text on a curved baseline ---------- */
/* the flat span still holds the text, the selection and the caret; it is
   just not what you look at while the curve is showing */
.an-text.an-arced>.an-tx{visibility:hidden;}
.an-text.an-arced{background:none;border-color:transparent;}
.an-arcsvg{position:absolute;left:0;top:0;width:100%;height:100%;
  overflow:visible;pointer-events:none;}
/* typing un-curves it, because a caret cannot live on a <textPath> */
.an-text.an-arced:focus-within>.an-tx{visibility:visible;}
.an-text.an-arced:focus-within .an-arcsvg{display:none;}

/* ---------- crop / trim marks (export only) ---------- */
/* hairlines in the bleed, clear of the artwork: a printer trims where
   they point. Always black — they are instructions to a machine, not
   part of the design, and they must survive a white page. */
.print-page.has-crop{position:relative;overflow:visible;}
.cropmark{position:absolute;pointer-events:none;}
.cropmark::before,.cropmark::after{content:"";position:absolute;
  background:#000;}
.cropmark::before{width:1px;height:14px;}
.cropmark::after{height:1px;width:14px;}
.cm-tl{left:0;top:0;}
.cm-tl::before{left:-1px;top:-19px;}
.cm-tl::after{left:-19px;top:-1px;}
.cm-tr{right:0;top:0;}
.cm-tr::before{right:-1px;top:-19px;}
.cm-tr::after{right:-19px;top:-1px;}
.cm-bl{left:0;bottom:0;}
.cm-bl::before{left:-1px;bottom:-19px;}
.cm-bl::after{left:-19px;bottom:-1px;}
.cm-br{right:0;bottom:0;}
.cm-br::before{right:-1px;bottom:-19px;}
.cm-br::after{right:-19px;bottom:-1px;}

/* ---------- pre-print check ---------- */
.pf-count{font-family:var(--sans);font-size:11.5px;font-weight:600;
  letter-spacing:0;color:var(--chrome-ink-2);padding:2px 12px 8px;}
.pf-row{display:flex;flex-direction:column;gap:3px;width:100%;
  text-align:left;background:none;border:none;
  border-radius:0;color:inherit;cursor:pointer;padding:8px 12px;
  font:inherit;}
.pf-row:hover{background:#ffffff0d;}
.pf-row .pf-what,body.light .pf-row .pf-what{color:var(--warning);}
.pf-row.pf-err .pf-what,body.light .pf-row.pf-err .pf-what{
  color:var(--danger);}
.pf-what{font-size:12.5px;color:#dbe7ef;font-weight:600;}
.pf-why{font-size:11px;color:var(--chrome-ink-2);line-height:1.4;}
.pf-ok{font-size:12px;color:var(--chrome-ink-2);line-height:1.5;padding:10px 12px;}
body.light .pf-row:hover{background:var(--surface-hover);}
body.light .pf-what{color:var(--ink);}
body.light .pf-why,body.light .pf-ok,body.light .pf-count{color:var(--ink-3);}

/* ---- The flip book ----
   One box, many figures, one showing. The stage letterboxes each frame
   into a box that never changes size. Frames differ in shape (a plot,
   then the same plot with a legend), and a box that hugged each one
   would move every caption tied to it on every click. */
.an-flip{position:absolute;display:flex;flex-direction:column;
  align-items:stretch;justify-content:center;}
.deck.editing .an-flip{cursor:move;}
.an-flipstage{flex:1;min-height:0;display:flex;align-items:center;
  justify-content:center;overflow:hidden;}
.an-flipstage>*{max-width:100%;max-height:100%;}
.an-flipimg{max-width:100%;max-height:100%;object-fit:contain;
  display:block;}
.an-flipempty{font-size:11.5px;line-height:1.5;color:var(--chrome-ink-2);
  text-align:center;padding:10px 14px;}
.deck.editing .an-flip.empty{outline:1px dashed #ffffff33;
  outline-offset:-1px;}
/* the arrows are real buttons, which is what makes them safe in playback:
   the click-to-advance handler already skips button/a/input/select, so
   stepping a figure cannot also advance the slide */
.an-flipbar{flex:none;display:flex;align-items:center;justify-content:center;
  gap:8px;padding:3px 0 1px;}
.an-flipnav{background:#00000059;border:1px solid #ffffff2e;color:#e6eef4;
  border-radius:50%;width:22px;height:22px;line-height:1;cursor:pointer;
  font-size:13px;padding:0;display:flex;align-items:center;
  justify-content:center;}
.an-flipnav:hover:not([disabled]){border-color:var(--cyan);
  background:#0000008c;}
.an-flipnav[disabled]{opacity:.3;cursor:default;}
.an-flipn{font-family:var(--mono);font-size:10px;color:var(--chrome-ink-2);
  letter-spacing:.06em;}
.page-light .an-flipnav{background:#ffffffb3;border-color:#00000026;
  color:#16202b;}
.page-light .an-flipn{color:#44525c;}
/* One button per figure: the arrows are a walk, these are a menu. They
   wrap on purpose, because a nine-figure book is a row of nine names, and
   a nav bar that scrolled sideways on a slide would be worse than two
   lines of buttons. */
/* ---------- a flip book made of words ----------
   The same bar as a figure book's, with pips instead of a counter: a
   reader has to be able to tell at a glance whether the arrows below
   turn a figure or a paragraph, and dots under words is the one idiom
   everybody already reads as "there is more text here". They also cost
   no width, which matters on a box the words have already claimed. The
   arrows are the flip book's own .an-flipnav, deliberately -- the two
   books step with the same control, they only count differently. */
.an-pgbar{gap:6px;padding:2px 0 0;}
.an-pgpips{display:flex;align-items:center;gap:4px;}
.an-pgpip{width:6px;height:6px;padding:0;border-radius:50%;cursor:pointer;
  background:#ffffff3d;border:1px solid transparent;}
.an-pgpip:hover:not([disabled]){background:#ffffff70;}
.an-pgpip.on{background:var(--sl-accent);}
.an-pgpip[disabled]{cursor:default;}
.page-light .an-pgpip{background:#0000002e;}
.page-light .an-pgpip:hover:not([disabled]){background:#00000059;}
.page-light .an-pgpip.on{background:var(--sl-accent);}
.an-flipbtns{flex-wrap:wrap;gap:4px;}
.an-flipbtn{background:#00000059;border:1px solid #ffffff2e;color:#e6eef4;
  border-radius:11px;min-width:22px;height:22px;line-height:1;cursor:pointer;
  font-size:11px;font-family:var(--sans);padding:0 8px;display:flex;
  align-items:center;justify-content:center;}
.an-flipbtn:hover:not([disabled]){border-color:var(--cyan);
  background:#0000008c;}
.an-flipbtn.on{border-color:var(--sl-accent);
  background:color-mix(in srgb,var(--accent) 34%,#00000059);}
.an-flipbtn[disabled]{cursor:default;}
.page-light .an-flipbtn{background:#ffffffb3;border-color:#00000026;
  color:#16202b;}
.page-light .an-flipbtn.on{background:color-mix(in srgb,var(--sl-accent) 26%,#fff);}
/* the stepping chooser, above the frame list it describes */
.fp-opt{display:flex;flex-direction:column;gap:4px;padding:0 12px 8px;}
/* an item belonging to another figure. Dimmed rather than hidden while
   editing: you have to be able to see and click the caption you are about
   to tie to figure 4 while you are standing on figure 1. In playback it
   is removed outright. */
.deck.editing .an-item.an-fbother{opacity:.24;}
.deck.editing .an-item.an-fbother.sel{opacity:.65;}
.deck.editing .an-arrow-line.an-fbother{opacity:.24;}
.deck.editing .an-arrow-line.an-fbother.sel{opacity:.65;}

/* the frames pane: the slide strip's shape, because a flip book is a
   little deck inside a slide */
.fp-adds{display:flex;gap:5px;padding:0 12px 8px;}
.fp-adds .dbtn{flex:1;white-space:nowrap;font-size:11px;padding:5px 6px;}
.fp-row{display:flex;align-items:center;gap:5px;padding:3px 12px;
  border-radius:7px;cursor:pointer;}
.fp-row:hover{background:#ffffff0d;}
.fp-row.dragging{opacity:.38;}
.fp-row.drop-before{box-shadow:inset 0 2px var(--cyan);}
.fp-row.drop-after{box-shadow:inset 0 -2px var(--cyan);}
.fp-row.current{background:color-mix(in srgb,var(--accent) 11%,transparent);
  outline:1px solid color-mix(in srgb,var(--accent) 33%,transparent);
  outline-offset:-1px;}
.fp-n{font-family:var(--mono);font-size:9.5px;color:var(--chrome-ink-3);width:14px;
  flex:none;text-align:right;}
.fp-t{flex:1;min-width:0;background:none;border:1px solid transparent;
  color:var(--chrome-ink);font-size:11.5px;font-family:var(--sans);border-radius:5px;
  padding:2px 5px;outline:none;}
.fp-t:hover{border-color:#ffffff1f;}
.fp-t:focus{border-color:var(--cyan);background:var(--chrome-0,#0b141d);}
.fp-ctr{display:none;gap:1px;flex:none;}
.fp-row:hover .fp-ctr,.fp-row.current .fp-ctr{display:flex;}
/* a page that is its own object: its number says so, and the row's verb
   has words on it, because "take it out of the book" is not a glyph
   anyone would guess */
.fp-row.own .fp-n{color:var(--accent);}
.film-mini.fp-own{white-space:nowrap;}
.deck.editing .an-flipown{opacity:.7;}
/* tying an item to a figure lives in this pane rather than the ribbon,
   because it needs the frame LIST visible to mean anything */
.fp-tie{border-top:1px solid #ffffff14;padding:9px 12px;
  display:flex;flex-direction:column;gap:5px;}
.fp-tielab{font-size:11px;color:var(--chrome-ink-2);line-height:1.4;}
.fp-tiesel{width:100%;box-sizing:border-box;font-size:11.5px;
  padding:4px 6px;border-radius:6px;background:var(--chrome-1,#0e1926);
  border:1px solid #ffffff26;color:#dce6ee;font-family:var(--sans);}
.fp-tiesel:disabled{opacity:.45;}
body.light .fp-t{color:var(--ink);}
body.light .fp-t:focus{background:var(--input-bg);}
body.light .fp-tiesel{background:var(--input-bg);
  border-color:var(--border-strong);
  color:var(--ink);}
body.light .fp-row:hover{background:var(--surface-hover);}
body.light .fp-tielab{color:var(--ink-3);}
/* the film-strip thumbnail's chip for a flip book */
.mini-pane.is-flip{background:#243b52;}
.sp-kind.k-flip{background:#2a4761;}

/* a tab with nothing on it: out of the strip, not merely dimmed. A
   contextual tab (every object control on its own tab) is empty until
   something is selected, and a button that does nothing when clicked is
   worse than no button. */
.rbn-tab.rbn-tab-off{display:none;}

/* ---------- the ribbon-layout gallery ----------
   Not a full-screen overlay, unlike every other panel here: the thing
   you are choosing is the ribbon, so the ribbon has to stay visible.
   `top` is set in JS from the row's measured bottom, because a layout
   changes how tall the row is. */
.rbn-gallery{position:fixed;left:0;right:0;bottom:0;z-index:360;
  display:flex;flex-direction:column;background:var(--chrome-0,#0b141d);
  border-top:1px solid #ffffff1f;font-family:var(--sans);
  box-shadow:0 -18px 40px #0006;}
.rbn-gh{display:flex;align-items:center;gap:10px;padding:9px 16px;
  border-bottom:1px solid #ffffff14;}
.rbn-gt{font-size:13px;color:#dbe7ef;}
.rbn-gwarn{margin:8px 16px 0;padding:7px 10px;border-radius:6px;
  border:1px solid #ef9f2766;background:#ef9f2714;color:#e8c88f;
  font-size:11px;line-height:1.45;display:flex;align-items:center;gap:10px;}
.rbn-gwarn[hidden]{display:none!important;}
.rbn-gwarn b{color:#f0d39f;font-weight:650;}
.rbn-gwarn .dbtn{margin-left:auto;flex:none;}
.rbn-gal{flex:1;min-height:0;overflow-y:auto;padding:8px 16px 20px;}
.rbn-ggrid{display:grid;gap:10px;margin-bottom:6px;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));}
/* a family heading. A hundred cards without them is a wall; with them
   it is a list you can skim to the part you care about. */
.rbn-gfam{font:600 11.5px var(--sans);color:var(--chrome-ink-2);margin:12px 0 6px 2px;}
.rbn-gcount{font-family:var(--sans);font-size:11px;color:var(--chrome-ink-2);}
.rbn-gfind{font-family:var(--sans);font-size:12px;padding:5px 9px;
  border-radius:6px;background:#ffffff0d;color:#dbe7ef;
  border:1px solid #ffffff2b;width:190px;}
.rbn-gfind:focus{outline:none;border-color:var(--cyan);}
.rbn-gnone{color:var(--chrome-ink-2);font-size:12px;padding:14px 2px;}
body.light .rbn-gfind{background:var(--input-bg);color:var(--ink);
  border-color:var(--border-strong);}
.rbn-card{text-align:left;background:#ffffff08;border:1px solid #ffffff1c;
  border-radius:9px;padding:10px 12px;cursor:pointer;display:flex;
  flex-direction:column;gap:5px;color:#dce6ee;}
.rbn-card:hover{border-color:var(--cyan);background:#ffffff12;}
.rbn-card.on{border-color:var(--cyan);
  box-shadow:0 0 0 1px var(--cyan) inset;}
/* the tick as a character. A CSS hex escape with nothing after it to
   terminate the run collapses to a control character. */
.rbn-card.on .rbn-cname::after{content:" ✓";color:var(--cyan);}
.rbn-cname{font-size:12.5px;font-weight:600;}
.rbn-cblurb{font-size:10.5px;line-height:1.5;color:var(--chrome-ink-2);}
/* The preview is the point: a name tells you nothing about an
   arrangement, so the card draws the tabs and the groups on each. */
.rbn-cprev{display:flex;flex-direction:column;gap:3px;margin-top:3px;}
.rbn-ctab{display:flex;flex-wrap:wrap;gap:3px;align-items:center;}
.rbn-ctabl{font:600 11px var(--sans);color:var(--chrome-ink-2);min-width:52px;}
.rbn-cgrp{font-size:9.5px;background:#ffffff14;border-radius:4px;
  padding:1px 5px;color:#b9cad8;white-space:nowrap;}
body.light .rbn-gallery{background:var(--chrome-2);}
body.light .rbn-gt,body.light .rbn-card{color:var(--ink);}
body.light .rbn-card{background:var(--chrome-3);
  border-color:var(--chrome-line);}
body.light .rbn-cgrp{background:var(--chrome-1);color:var(--ink-2);}
body.light .rbn-gwarn{
  background:color-mix(in srgb,var(--warning) 10%,var(--chrome-2));
  color:var(--warning);
  border-color:color-mix(in srgb,var(--warning) 55%,var(--chrome-line));}
body.light .rbn-gwarn b{color:var(--warning);}

/* ---------- what the deck says, in words ----------
   The lints on the left, the text on the right, both at once: having to
   switch between them to check one against the other is the whole
   problem with a separate report. */
.deck-review{position:fixed;inset:0;z-index:400;display:flex;
  flex-direction:column;background:var(--chrome-0,#0b141d);
  font-family:var(--sans);}
.rv-head{display:flex;align-items:center;gap:10px;padding:10px 16px;
  border-bottom:1px solid #ffffff1a;}
/* An object that is a link. Only while presenting: in the editor a click
   selects it, and a pointer cursor would promise otherwise. The underline
   shows on hover and focus rather than always, because a figure is not a
   word and a permanent rule under a picture reads as a border. */
.deck:not(.editing) .an-linked{cursor:pointer;}
.deck:not(.editing) .an-linked:hover,
.deck:not(.editing) .an-linked:focus-visible{
  outline:2px solid var(--accent,#39a9c0);outline-offset:3px;}
/* the title gives way, never the buttons: compacting rather than wrapping
   is the rule for every control row */
.rv-t{font-size:13px;color:#dbe7ef;min-width:0;overflow:hidden;
  white-space:nowrap;text-overflow:ellipsis;}
.rv-head .dbtn{flex:0 0 auto;}
.rv-main{flex:1;min-height:0;display:grid;
  grid-template-columns:minmax(280px,1fr) 1.2fr;gap:14px;
  padding:12px 16px 18px;}
.rv-lints{overflow-y:auto;display:flex;flex-direction:column;gap:6px;}
.rv-lhead{font-size:12px;color:#dbe7ef;}
.rv-lint{text-align:left;background:#ffffff08;border:1px solid #ffffff17;
  border-radius:7px;padding:7px 10px;
  cursor:pointer;display:flex;flex-direction:column;gap:3px;}
.rv-lint:hover{border-color:var(--cyan);}
.rv-lint.nogo{cursor:default;}
.rv-lh{font-size:12px;color:#dbe7ef;}
.rv-lint.sev-warn .rv-lh,body.light .rv-lint.sev-warn .rv-lh{
  color:var(--warning);}
.rv-lint.sev-err .rv-lh,body.light .rv-lint.sev-err .rv-lh{
  color:var(--danger);}
.rv-lw{font-size:10.5px;line-height:1.5;color:var(--chrome-ink-2);}
.rv-textwrap{display:flex;flex-direction:column;gap:6px;min-height:0;}
.rv-lab{font:600 11.5px var(--sans);color:var(--chrome-ink-2);}
.rv-text{flex:1;min-height:0;resize:none;font-family:var(--mono);
  font-size:11.5px;line-height:1.6;padding:12px 14px;border-radius:8px;
  background:#0e1926;color:#dce6ee;border:1px solid #ffffff1f;
  white-space:pre;overflow:auto;}
body.light .deck-review{background:var(--chrome-0);}
body.light .rv-t,body.light .rv-lh,body.light .rv-lhead{color:var(--ink);}
body.light .rv-text{background:var(--input-bg);color:var(--ink);
  border-color:var(--border-strong);}

/* ---- What this deck used to be ----
   The snapshots on the left, what is different on the right. Only the
   rows that differ are coloured. An unchanged row still has to be there
   (a gap in a deck reads as a deletion) but must not compete with the
   ones that matter. */
.deck-history{position:fixed;inset:0;z-index:400;display:flex;
  flex-direction:column;background:var(--chrome-0,#0b141d);
  font-family:var(--sans);}
.dh-head{display:flex;align-items:center;gap:10px;padding:10px 16px;
  border-bottom:1px solid #ffffff1a;}
.dh-t{font-size:13px;color:#dbe7ef;}
/* Freehand's pen, in the ribbon's Drawing group: two cells of the group's
   two-row grid, Colour under the mode's name and Thickness above Cancel,
   so the wrapper is not a box of its own */
.pen-ctl{display:contents;}
.pen-ctl[hidden]{display:none;}
/* ...with the mode's name down both rows beside them, so Colour sits
   over Thickness and Cancel keeps its own column */
.et-status:has(+#pen-ctl:not([hidden])){grid-row:1/span 2;}
.pen-col{align-items:center;gap:6px;cursor:pointer;padding:0 4px;
  font:12px var(--sans);color:var(--chrome-ink);white-space:nowrap;}
.pen-col input{width:22px;height:18px;padding:0;border:1px solid
  var(--border-strong,#ffffff33);border-radius:4px;background:none;}
.pen-ctl select{align-self:center;}
/* where the versions are kept, in words, under the title */
.dh-where{padding:6px 16px;font-size:12px;line-height:1.5;
  color:var(--chrome-ink-2,#8ba0b2);border-bottom:1px solid #ffffff12;}
body.light .dh-where{color:var(--ink-2);}
.dh-main{flex:1;min-height:0;display:grid;
  grid-template-columns:minmax(230px,290px) 1fr;}
.dh-rail{overflow-y:auto;border-right:1px solid #ffffff14;
  padding:10px 8px;display:flex;flex-direction:column;gap:3px;}
/* Exactly one row high: the graph in the gutter beside it is drawn 46px
   tall, so a row that wrapped to three lines would break its own lane
   into segments. The whole line is in the tooltip. */
.dh-snap{height:46px;text-align:left;background:transparent;
  border:1px solid
  transparent;border-radius:6px;padding:7px 9px;cursor:pointer;
  display:flex;flex-direction:column;gap:2px;color:#b9cad8;}
.dh-snap:hover{background:#ffffff0d;}
.dh-snap.on{background:#ffffff12;border-color:var(--cyan);
  color:#dbe7ef;}
.dh-when,.dh-why{white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;display:block;max-width:100%;}
.dh-when{font-size:12px;}
.dh-why{font-family:var(--mono);font-size:9px;color:var(--chrome-ink-2);}
.dh-body{overflow-y:auto;padding:12px 16px 24px;}
.dh-head2{font-size:12px;color:#b9cad8;margin-bottom:10px;
  line-height:1.5;}
.dh-all{margin-bottom:14px;}
.dh-row{display:grid;grid-template-columns:76px 1fr 1fr 150px;gap:12px;
  align-items:center;padding:8px 6px;border-top:1px solid #ffffff12;}
.dh-st{font:600 11px var(--sans);color:var(--chrome-ink-2);}
.dh-row.st-changed .dh-st{color:var(--warning);}
.dh-row.st-added .dh-st{color:var(--success);}
.dh-row.st-removed .dh-st{color:var(--danger);}
.dh-row.st-moved .dh-st{color:var(--cyan);}
.dh-row.st-same{opacity:.5;}
.dh-row.st-same.dh-open{opacity:1;}
.dh-cell{display:flex;flex-direction:column;gap:4px;min-width:0;}
.dh-cap{font-family:var(--mono);font-size:9px;color:var(--chrome-ink-2);}
.dh-cell .mini-diagram{width:100%;height:74px;}
.dh-acts{display:flex;flex-direction:column;align-items:stretch;gap:5px;
  justify-content:center;}
.dh-full{grid-column:2/4;display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  padding:2px 0 8px;min-width:0;}
.dh-fullcell{display:flex;flex-direction:column;gap:5px;min-width:0;}
.dh-fullframe,.dh-fullmissing{position:relative;width:100%;aspect-ratio:16/9;
  overflow:hidden;background:#050a0f;border:1px solid #ffffff1f;
  border-radius:5px;}
.dh-fullframe .slide{position:absolute!important;left:0;top:0;
  transform-origin:top left;pointer-events:none;}
.dh-fullmissing{display:grid;place-items:center;color:var(--chrome-ink-2);
  font-family:var(--mono);font-size:10px;}
body.light .deck-history{background:var(--chrome-0);}
body.light .dh-t,body.light .dh-snap.on{color:var(--ink);}
body.light .dh-snap,body.light .dh-head2{color:var(--ink-2);}
body.light .dh-fullframe,body.light .dh-fullmissing{
  background:var(--chrome-1);border-color:var(--chrome-line);}

/* ---------- things only you can see ----------
   Marked in both places a private item is drawn -- the editor and the
   presenter view -- because the whole question it answers is "can the
   audience see this", and an unmarked one looks exactly like a slide
   that is about to embarrass you. A dashed amber edge and a corner tag:
   loud enough to read at a glance, quiet enough to work under. */
.an-item.an-priv{outline:1.5px dashed #f0a848;outline-offset:2px;}
.an-item.an-priv::after{content:"only me";position:absolute;top:-9px;
  right:0;font-family:var(--mono);font-size:8px;letter-spacing:.06em;
  color:#0b141d;background:#f0a848;border-radius:3px;padding:0 3px;
  pointer-events:none;z-index:3;}
/* SVG paths cannot draw the ::after tag above. Keep the arrow's chosen
   colour and dash and give its visible stroke the same amber signal
   instead. */
.an-arrow-line.an-priv{filter:drop-shadow(0 0 2px #f0a848)
  drop-shadow(0 0 4px #f0a848);}
.an-arrow-line.an-priv.sel{filter:
  drop-shadow(0 0 5px color-mix(in srgb,var(--accent) 80%,transparent))
  drop-shadow(0 0 2px #f0a848) drop-shadow(0 0 4px #f0a848);}

/* ---------- what a rehearsal left behind ----------
   Per slide and per section. The section rows are the ones you act on,
   so they carry the weight; a row that ran over its target is the only
   thing coloured, because colouring everything says nothing. */
.np-reh{font-size:11px;line-height:1.45;color:var(--chrome-ink-2);margin:2px 0 4px;}
.np-reh.over{color:var(--warning);}
.np-rehhead{font-family:var(--mono);font-size:10px;letter-spacing:.06em;
  color:var(--chrome-ink-2);margin:2px 0 8px;}
.np-rehrow{display:flex;align-items:baseline;gap:8px;padding:4px 6px;
  border-radius:5px;font-size:11.5px;color:#b9cad8;cursor:pointer;}
.np-rehrow:hover{background:#ffffff0d;}
.np-rehrow.sec{margin-top:7px;color:#dbe7ef;cursor:default;
  border-top:1px solid #ffffff14;padding-top:7px;}
.np-rehrow.sec .np-rehlab{font:600 11.5px var(--sans);}
.np-rehlab{flex:1;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.np-rehnum{font-family:var(--mono);font-size:11px;}
.np-rehex{font-family:var(--mono);font-size:9px;color:var(--chrome-ink-2);
  min-width:62px;text-align:right;}
.np-rehrow.over .np-rehnum,.np-rehrow.over .np-rehex{color:var(--warning);}
body.light .np-rehrow{color:var(--ink-2);}
body.light .np-rehrow.sec{color:var(--ink);border-top-color:var(--rule);}

/* ---------- the roomy notes editor ----------
   An overlay, like the spotlight, the presenter view and the overview
   map: it wants the whole screen while you are writing and none of it
   afterwards. Three columns, because a note is about a slide (left),
   is typed (middle) and is read back (right). */
.deck-notesed{position:fixed;inset:0;z-index:400;display:flex;
  flex-direction:column;background:var(--chrome-0,#0b141d);
  font-family:var(--sans);}
.nse-head{display:flex;align-items:center;gap:10px;padding:10px 16px;
  border-bottom:1px solid #ffffff1a;}
.nse-t{font-size:13px;color:#dbe7ef;}
.nse-body{flex:1;min-height:0;display:grid;
  grid-template-columns:minmax(240px,1fr) 1.25fr 1.25fr;gap:14px;
  padding:14px 16px 18px;}
.nse-left,.nse-write,.nse-read{display:flex;flex-direction:column;gap:6px;
  min-height:0;}
.nse-lab{font:600 11.5px var(--sans);color:var(--chrome-ink-2);}
.nse-slide{background:#000;border-radius:8px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  flex:0 0 auto;height:min(30vh,260px);}
.nse-slide .slide{transform-origin:center center;}
.nse-help{font-size:11.5px;line-height:1.65;color:var(--chrome-ink-2);
  background:#ffffff08;border:1px solid #ffffff17;border-radius:8px;
  padding:9px 11px;overflow:auto;}
.nse-help code{font-family:var(--mono);font-size:10.5px;
  background:#ffffff14;padding:.1em .35em;border-radius:4px;
  color:#cfe0ec;}
.nse-ta{flex:1;min-height:0;resize:none;font-family:var(--sans);
  font-size:15px;line-height:1.55;padding:12px 14px;border-radius:8px;
  background:#0e1926;color:#e4eef6;border:1px solid #ffffff1f;}
.nse-ta:focus{outline:none;border-color:var(--cyan);}
.nse-prev{flex:1;min-height:0;overflow:auto;font-size:15px;
  line-height:1.55;padding:12px 14px;border-radius:8px;
  background:#ffffff08;border:1px solid #ffffff17;color:#dce6ee;}
.nse-none{color:var(--chrome-ink-3);}
/* the small markdown, wherever it is read back */
.jvn-md p{margin:0 0 .6em;}
.jvn-md h3,.jvn-md h4,.jvn-md h5{margin:.2em 0 .4em;font-size:1.05em;}
.jvn-md ul,.jvn-md ol{margin:.2em 0 .6em;padding-left:1.3em;}
.jvn-md li{margin:.15em 0;}
.jvn-md code{font-family:var(--mono);font-size:.85em;background:#ffffff14;
  padding:.1em .35em;border-radius:4px;}
.jvn-md blockquote{margin:.3em 0 .6em;padding-left:.8em;
  border-left:3px solid #ffffff2b;color:var(--chrome-ink-2);}
.jvn-md hr{border:0;border-top:1px solid #ffffff26;margin:.7em 0;}
.jvn-md a{color:var(--cyan);}
.jvn-md .jvn-goto{cursor:pointer;text-decoration:underline dotted;}
.np-bigbtn{align-self:flex-start;margin:2px 0 6px;}
body.light .deck-notesed{background:var(--chrome-0);}
body.light .nse-t{color:var(--ink);}
body.light .nse-ta{background:var(--input-bg);color:var(--ink);
  border-color:var(--border-strong);}
body.light .nse-prev{background:var(--chrome-3);color:var(--ink);
  border-color:var(--chrome-line);}
body.light .nse-help{background:var(--chrome-3);color:var(--ink-2);
  border-color:var(--chrome-line);}
body.light .jvn-md code,body.light .nse-help code{background:var(--chrome-1);
  color:var(--ink);}

/* ---------- the overview map ----------
   An overlay, not a pane: it wants all the room there is for as long as
   you are looking and none afterwards, which is the shape the spotlight
   and the presenter view already have. */
.deck-overview{position:fixed;inset:0;z-index:400;display:flex;
  flex-direction:column;background:var(--chrome-0,#0b141d);
  font-family:var(--sans);}
.ovw-head{display:flex;align-items:center;gap:10px;
  padding:10px 16px;border-bottom:1px solid #ffffff1a;}
.ovw-t{font-size:13px;color:#dbe7ef;}
.ovw-body{flex:1;overflow:auto;padding:14px 16px 26px;}
.ovw-grp{margin-bottom:18px;}
.ovw-gh{font:600 11.5px var(--sans);color:var(--chrome-ink-2);margin:0 0 7px 2px;}
.ovw-tiles{display:flex;flex-wrap:wrap;gap:10px;}
.ovw-tile{width:150px;background:#ffffff08;border:1px solid #ffffff1f;
  border-radius:7px;padding:6px;cursor:pointer;text-align:left;
  display:flex;flex-direction:column;gap:4px;position:relative;}
.ovw-tile:hover{border-color:var(--cyan);background:#ffffff12;}
.ovw-tile.cur{border-color:var(--cyan);
  box-shadow:0 0 0 1px var(--cyan) inset;}
/* an optional slide, and one the current version leaves out: the map is
   a zoom-out of the strip, so it says the same things the strip does */
.ovw-tile.opt::after{content:"optional";position:absolute;top:5px;
  right:6px;font-family:var(--mono);font-size:8px;color:var(--warning);}
.ovw-tile.cut{opacity:.42;}
/* a search hit: the tile is already the answer, so the only thing added
   is why it matched -- and where, when the word is only in the notes */
.ovw-tile.hit{border-color:var(--cyan);}
.ovw-why{font-size:9.5px;line-height:1.35;color:var(--chrome-ink-2);
  border-top:1px solid #ffffff17;padding-top:4px;margin-top:1px;}
.ovw-find{font-family:var(--sans);font-size:12px;padding:5px 9px;
  border-radius:6px;background:#ffffff0d;color:#dbe7ef;
  border:1px solid #ffffff2b;width:210px;}
.ovw-find:focus{outline:none;border-color:var(--cyan);}
.ovw-fn{font-family:var(--mono);font-size:9.5px;color:var(--chrome-ink-2);
  min-width:62px;}
body.light .ovw-find{background:var(--input-bg);color:var(--ink);
  border-color:var(--border-strong);}
.ovw-n{font-family:var(--mono);font-size:9px;color:var(--chrome-ink-2);}
.ovw-tile .mini-diagram{width:100%;height:76px;}
/* a slide on a page of its own keeps that page's shape in its tile */
.ovw-tile .mini-diagram[style*="aspect-ratio"]{width:auto;max-width:100%;
  margin:0 auto;}
/* the sorter's picked slides, its drop marks and its tools */
.deck-overview.sorting .ovw-tiles{gap:14px;}
.ovw-tile.pick{border-color:var(--accent);background:color-mix(in srgb,
  var(--accent) 16%,transparent);box-shadow:0 0 0 2px var(--accent);}
.ovw-tile.drop-before{box-shadow:-5px 0 0 -1px var(--accent);}
.ovw-tile.drop-after{box-shadow:5px 0 0 -1px var(--accent);}
.ovw-tile.hid .ovw-n{text-decoration:line-through;}
.ovw-tools{display:flex;gap:6px;margin-left:8px;}
.ovw-tools .dbtn{height:28px;}
/* The title gives way, never the buttons (the rule .rv-head keeps). At
   1366px the sorter's head runs out of room, and every button would
   shrink and break into an icon over a word hanging below the button's
   box. */
.ovw-head .dbtn{flex:none;white-space:nowrap;}
.ovw-head .ovw-t{flex:0 1 auto;min-width:0;overflow:hidden;
  white-space:nowrap;text-overflow:ellipsis;}
.ovw-head .ovw-find{flex:0 1 210px;min-width:120px;}
.ovw-lab{font-size:10.5px;color:#b9cad8;line-height:1.25;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body.light .deck-overview{background:var(--chrome-0);}
body.light .ovw-t{color:var(--ink);}
body.light .ovw-lab{color:var(--ink-2);}

/* ---- The Parts view ----
   The overview map's overlay and grouping, one group per part or section
   in the talk's order. A part's header says what it shows and whether
   that is up to date, and carries what can be done with it. */
.deck-parts .prt-head{flex-wrap:wrap;row-gap:6px;}
.deck-parts .dbtn[hidden]{display:none;}
/* The view's buttons are its own. The ribbon's .rbn-sm takes its padding
   and gap from tokens on .deck, and this view is on the page outside it,
   so they would get no gap and no padding. */
.deck-overview .dbtn.prt-b,.deck-parts .dbtn.prt-b{display:inline-flex;align-items:center;gap:5px;
  padding:4px 10px;font-family:var(--sans);font-size:12px;line-height:1.4;
  white-space:nowrap;}
.deck-overview .dbtn.prt-b .bic,.deck-parts .dbtn.prt-b .bic{width:14px;height:14px;margin-right:0;
  flex:none;vertical-align:0;}
.deck-overview .dbtn.prt-b:disabled,.deck-parts .dbtn.prt-b:disabled{opacity:.45;cursor:default;}
.prt-say{margin:8px 16px 0;padding:6px 10px;border-radius:6px;font-size:12px;
  color:#dbe7ef;background:color-mix(in srgb,var(--cyan) 12%,transparent);
  border:1px solid color-mix(in srgb,var(--cyan) 40%,transparent);}
.prt-say.warn{background:color-mix(in srgb,var(--warning) 14%,transparent);
  border-color:color-mix(in srgb,var(--warning) 50%,transparent);}
.prt-say[hidden]{display:none;}
.prt-grp{border:1px solid #ffffff17;border-radius:9px;padding:10px 12px 12px;}
.prt-grp.linked{border-color:color-mix(in srgb,var(--accent) 50%,transparent);
  background:color-mix(in srgb,var(--accent) 6%,transparent);}
.prt-gh{display:flex;align-items:center;gap:10px;margin-bottom:9px;
  flex-wrap:wrap;}
.prt-ic{display:inline-flex;color:var(--chrome-ink-2);}
.prt-grp.linked .prt-ic{color:var(--accent);}
.prt-tx{flex:1;min-width:200px;}
.prt-name{font-size:13.5px;font-weight:600;color:#dbe7ef;}
.prt-from{font-weight:400;color:var(--chrome-ink-2);}
.prt-sub{font-size:11.5px;color:var(--chrome-ink-2);margin-top:2px;}
.prt-sub.warn{color:var(--warning);}
.prt-acts{display:flex;gap:5px;flex-wrap:wrap;}
.prt-acts .dbtn:disabled{opacity:.4;cursor:default;}
/* the chevrons turned to point where the part goes */
.prt-up .bic,.prt-dn .bic{transform:rotate(90deg);}
.prt-none{color:var(--chrome-ink-2);font-size:12.5px;margin:0 0 14px;}
.prt-pick{display:grid;grid-template-columns:minmax(220px,340px) 1fr;gap:16px;}
.prt-pick-list{display:flex;flex-direction:column;gap:4px;}
.prt-row{display:flex;flex-direction:column;align-items:flex-start;gap:2px;
  text-align:left;background:#ffffff08;border:1px solid #ffffff1f;
  border-radius:7px;padding:7px 10px;cursor:pointer;color:#dbe7ef;
  font-family:var(--sans);}
.prt-row:hover,.prt-row:focus-visible{border-color:var(--cyan);
  background:#ffffff12;outline:none;}
.prt-row.off{opacity:.55;}
.prt-row-name{font-size:13px;font-weight:600;}
.prt-row-sub{font-size:11px;color:var(--chrome-ink-2);}
.prt-pick-pv{min-width:0;}
@media (max-width:720px){.prt-pick{grid-template-columns:1fr;}}
body.light .prt-name,body.light .prt-row,body.light .prt-say{color:var(--ink);}
body.light .prt-grp{border-color:var(--chrome-line);}
body.light .prt-row{background:var(--chrome-1);border-color:var(--chrome-line);}
/* the corner's second button: a part's slide says where it comes from */
.deck-where{gap:4px;}
.deck-where .where-part.from{border-color:color-mix(in srgb,var(--accent) 60%,transparent);
  color:var(--accent);}
.deck-where .where-part[hidden]{display:none;}
/* The chip says "Edit original" and never gives way. The count beside it
   is the number alone ("1 of 21"); the film icon says what it counts and
   the whole phrase is its tip. The live copy's name after it is dropped
   too: in a laptop's 171px column it would only ever read "· …", and the
   name heads the slides just under it. A state class, written by
   partChipSync. */
.film-head .deck-where.part-on .dbtn.rbn-sm{padding:4px 6px;gap:4px;}
.deck-where.part-on #where-btn{flex:0 1 auto;min-width:0;}
.deck-where.part-on .where-w,.deck-where.part-on .where-s{display:none;}
.deck-where.part-on #where-t{display:flex;min-width:0;}
.deck-where.part-on .where-n{flex:none;}
.deck-where.part-on .where-part{flex:none;}
/* the way back to the collection a deck was made from: a quiet accent
   border like a part's chip. A collection that has gone says so in the
   warning colour. */
.deck-where .where-col{flex:none;
  border-color:color-mix(in srgb,var(--accent) 45%,transparent);}
/* On the slide count's own line, as a part's chip is: one word, and both
   a little narrower while it shows, so the corner stays one line in the
   171px column of a laptop. The count drops its word ("2 of 14"; the
   film icon says what it counts, the whole phrase is its tip), so the
   count is never what gives way. Only what follows it (a version, a
   section) ellipsizes. A state class, written by cpsChipSync, rather
   than a :has rule. */
.film-head .deck-where.has-col .dbtn.rbn-sm{padding:4px 6px;}
.deck-where.has-col #where-btn{flex:0 1 auto;min-width:0;}
.deck-where.has-col .where-w{display:none;}
.deck-where.has-col #where-t{display:flex;min-width:0;}
.deck-where.has-col .where-n{flex:none;}
.deck-where.has-col .where-s{min-width:0;overflow:hidden;
  text-overflow:ellipsis;}
.deck-where .where-col.gone{border-color:var(--danger);color:var(--danger);}
.deck-where .where-col[hidden]{display:none;}
/* And a part's chip as well ("From …" or "Part of …"): the three do not
   fit one 171px line. The part's chip takes the line under the count and
   this one, as wide as the column, and its name ellipsizes inside it. The
   count takes what this chip leaves of the first line, since its own
   width would push this chip down a line too. has-part: a state class
   written by cpsChipSync. */
.deck-where.has-col.has-part{flex-wrap:wrap;}
.deck-where.has-col.has-part #where-btn{flex:1 1 0;}
.deck-where.has-col.has-part .where-part{order:1;flex:1 1 100%;}
.deck-where.has-col .where-part #where-part-t{min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}

/* ---------- one object's history ----------
   A row is a schematic of a past state, a sentence about what changed,
   and (for anything but the current state) a button. Not a .pf-row for
   the reason .std-find is not one: a preflight row is one big button. */
.oh-row{display:flex;align-items:center;gap:9px;padding:7px 12px;}
.oh-row.oh-now{background:color-mix(in srgb,var(--accent) 12%,transparent);}
.oh-body{flex:1;min-width:0;}
.oh-h{font:600 11.5px var(--sans);color:var(--chrome-ink-2);}
.oh-what{font-size:11.5px;color:var(--chrome-ink);line-height:1.35;
  overflow:hidden;text-overflow:ellipsis;}
.oh-do{font-size:10.5px;padding:3px 8px;flex:none;}
.oh-thumb{flex:none;width:38px;max-height:34px;border-radius:3px;
  border:1px solid #ffffff2b;background:#ffffff08;overflow:hidden;
  font-size:7px;line-height:1.15;padding:2px;color:var(--chrome-ink-2);
  display:flex;align-items:center;justify-content:center;
  text-align:center;word-break:break-word;}
.oh-thumb.oh-line{max-height:0;height:0;border-width:0 0 2px 0;
  border-radius:0;align-self:center;}
.oh-thumb.oh-block{font-family:var(--mono);font-size:6.5px;}
body.light .oh-what{color:var(--ink-2);}
body.light .oh-h{color:var(--ink-3);}

/* ---------- standardise text ----------
   Not a .pf-row: a preflight row is one big button that takes you to the
   thing, and a finding here carries several boxes and an action, so the
   row is a block with buttons inside it. Amber for a drift with a
   majority to fix towards, quiet blue for an offer — and never the red
   preflight uses, because nothing this finds is broken. */
.std-find{display:flex;flex-direction:column;gap:5px;padding:9px 12px;}
.std-find .std-h,body.light .std-find .std-h{color:var(--warning);}
.std-find.std-info .std-h,body.light .std-find.std-info .std-h{
  color:var(--accent);}
.std-h{font-size:12.5px;color:#dbe7ef;font-weight:600;}
.std-why{font-size:11px;color:var(--chrome-ink-2);line-height:1.45;}
.std-who{display:flex;flex-wrap:wrap;gap:3px;}
.std-chip{background:#ffffff10;border:1px solid #ffffff1f;color:var(--chrome-ink-2);
  border-radius:10px;font-family:var(--sans);font-size:11.5px;
  padding:2px 8px;cursor:pointer;max-width:100%;overflow:hidden;
  white-space:nowrap;display:flex;align-items:center;
  min-width:0;flex:1 1 190px;text-align:left;}
.std-chip:hover{border-color:var(--cyan);color:var(--chrome-ink);}
/* The chip is a specimen of its box. The slide number keeps its own quiet
   mono lane so the text is what you read, and the text elides rather
   than stretching the card. */
.std-chipn{flex:none;font-family:var(--mono);font-size:9.5px;
  opacity:.7;padding-right:7px;}
.std-chiptx{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;border-radius:3px;padding:0 3px;}
.std-chiptx.std-chipempty{opacity:.55;font-style:italic;}
/* Which one disagrees. A band card lists the whole band, because the fix
   moves all of it, so the ones that differ have to be told apart from the
   ones that do not, and they lead. Weight and a badge, not a new hue:
   this screen never uses the red that preflight uses, because nothing it
   finds is broken. Amber is already this screen's word for "look at
   this". */
.std-chip.std-odd{border-color:#f0a848;color:#f7d9a8;
  background:color-mix(in srgb,#f0a848 16%,transparent);font-weight:600;}
.std-chip.std-odd::before{content:"! ";font-weight:700;}
/* a group that was compared and matches: a quieter card with no button,
   so the screen shows its working without offering a fix */
.std-find.std-checked{opacity:.8;}
.std-find.std-checked .std-h,body.light .std-find.std-checked .std-h{
  color:var(--success);}
.std-find.std-checked .std-chip.std-ok{opacity:.75;}
.std-more{font-size:11px;color:var(--chrome-ink-2);align-self:center;}
.std-chip.std-ok{opacity:.5;}
.std-chip.std-ok:hover{opacity:1;}
body.light .std-chip.std-odd{color:#7a4b00;
  background:color-mix(in srgb,#f0a848 22%,transparent);}
.std-do{align-self:flex-start;font-size:11px;padding:3px 9px;}
.std-do2{opacity:.8;}
body.light .std-h{color:var(--ink);}
body.light .std-why{color:var(--ink-3);}
body.light .std-chip{background:var(--surface-hover);border-color:var(--line);
  color:var(--ink-3);}

/* ---------- toolbar down the right-hand edge (tall pages) ---------- */
/* A0 portrait is 1.4x taller than wide: on a laptop the horizontal ribbon
   costs ~122px of the scarce dimension. Moved to the side it costs width,
   which a portrait poster has to spare. Absolute rather than a flex
   sibling so the stage, its arrows and the Objects pane keep their
   existing layout untouched. */
/* The horizontal ribbon is a fixed-height row of two-row grids. None of
   that survives being stood on its end, so side mode has to undo each
   piece explicitly: the height, the row grid and the clipping. */
/* One width for the rail, so the stage's padding, the rulers, the next
   arrow and the Objects pane cannot drift apart. 226px is the width at
   which Print check and Present sit side by side instead of stacking. */
.deck.rbn-side{--rbn-side-w:226px;}
.deck.rbn-side .edit-tools.ribbon{position:absolute;top:0;right:0;bottom:0;
  width:var(--rbn-side-w);height:auto;flex-direction:column;flex-wrap:nowrap;
  align-items:stretch;align-content:flex-start;min-height:0;
  overflow-y:auto;overflow-x:hidden;
  padding:10px 10px 16px;row-gap:2px;
  border-bottom:none;border-left:1px solid #ffffff14;z-index:8;}
.deck.rbn-side .rbn-grp{align-items:stretch;padding:8px 2px;flex:none;
  border-right:none;border-bottom:1px solid #ffffff1c;width:100%;}
/* The same small clusters the horizontal ribbon has, stood on end. One
   control per line would make Insert seven rows deep and turn the rail
   into a list of rows.
   flex-wrap does the pairing without measuring: every control keeps its
   natural width, two share a line when both fit, and a long one takes the
   line to itself. flex-shrink stays 0 because a squeezed button is a
   truncated word, and no rung of this toolbar may hide one. Grow fills
   the leftover so the rail keeps a clean edge. */
.deck.rbn-side .rbn-row{display:flex;flex-flow:row wrap;
  align-items:stretch;align-content:flex-start;height:auto;gap:3px;}
.deck.rbn-side .rbn-row>*{flex:1 0 auto;}
/* a cell is one flex item and holds no wrap of its own, so the zoom
   stepper and the undo/redo pair each stay whole wherever they land —
   without claiming a whole line the way a `flex-basis:100%` would */
.deck.rbn-side .rbn-cell{height:auto;}
.deck.rbn-side .rbn-cell .dbtn.rbn-sm{flex:1 0 auto;justify-content:center;}
/* the group divider is a vertical rule in the horizontal ribbon and has no
   business on a stacked one; the ORDER still applies, so View and Output
   fall to the bottom of the column */
.deck.rbn-side .rbn-view{border-left:none;}
/* View's pairs come after its tiles in the rail. A 24px button that wraps
   onto a tile's line sits at its own height and leaves a hole under it;
   after the tiles they pair up two to a line, as During the talk's do. */
.deck.rbn-side .rbn-view .view-sm{order:1;}
/* ...on a line of their own, so the last tile never takes the first of
   a pair beside it (a line break: the first of the order-1 items) */
.deck.rbn-side .rbn-view>.rbn-row::before{content:"";order:1;
  flex:0 0 100%;height:0;}
/* File over Save is a two-row stack only where there are two rows: in the
   rail's wrapping flow it pairs across like every other control, rather
   than standing one item twice as tall as its neighbours */
.deck.rbn-side .rbn-stack{flex-direction:row;}
.deck.rbn-side .et-hint{display:none;}
/* A section heading goes above its section in a vertical list. Below is
   right for the horizontal ribbon, where the label sits under the group
   like PowerPoint's. */
.deck.rbn-side .rbn-lab{order:-1;padding:0 2px 2px;text-align:left;}
/* the group divider turns from a vertical rule into a horizontal one */
.deck.rbn-side .deck-stage{padding-right:calc(var(--rbn-side-w) + 12px);}
.deck.rbn-side .rulers{right:var(--rbn-side-w);}
.deck.rbn-side .deck-arrow.next{right:calc(var(--rbn-side-w) + 8px);}
.deck.rbn-side .selpane{right:var(--rbn-side-w);}
/* A strip is as wide as the rail. The frames keep their horizontal widths
   (three or four tiles), which is wider than the rail's column and would
   run a tile under the scrollbar with its right edge cut. In the rail a
   frame is the column's width and its tiles wrap inside it; the arrows
   still step whole rows. */
.deck.rbn-side .strip-frame{width:100%;flex:1 0 100%;box-sizing:border-box;}
.deck.rbn-side .strip-frame>.fx-strip.fx-strip,
.deck.rbn-side .strip-frame>#anim-by-strip{width:auto;max-width:none;
  flex:1 1 auto;min-width:0;}
.deck.rbn-side{--rbn-tile-w:54px;}
/* ...and a bare strip (Play's four tiles) wraps in the rail too, rather
   than running its last tile under the scrollbar */
.deck.rbn-side .rbn-row>.fx-strip{flex-wrap:wrap;width:100%;height:auto;}
/* The same for a cell frame's part picker (#fmt-parts): Figure, Code and
   Split in two are one nowrap row wider than the rail. In the rail the
   picker is a line of its own and its pills pair up like every other
   control there, each keeping its word and its icon. */
.deck.rbn-side .rbn-partslot:not([hidden]){display:flex;flex:1 0 100%;
  width:100%;height:auto;align-items:flex-start;}
.deck.rbn-side #fmt-parts .cellparts{display:flex;flex-wrap:wrap;
  width:100%;gap:3px;}
.deck.rbn-side #fmt-parts .cellpartbtn{flex:1 0 auto;
  justify-content:center;}
/* Left, Centre, Right, Justify as one run is 49px wider than the rail;
   there the four sit two to a line in the one box, with a rule between
   the lines as between the items */
.deck.rbn-side #tx-run-align{display:grid;grid-template-columns:1fr 1fr;
  height:auto;}
.deck.rbn-side #tx-run-align>.dbtn{justify-content:center;}
.deck.rbn-side #tx-run-align>.dbtn:nth-child(3){border-left:0;}
.deck.rbn-side #tx-run-align>.dbtn:nth-child(n+3){
  border-top:1px solid var(--rbn-btn-bd);}
/* ...and Opacity's typed number took 12px the rail does not have: its
   slider is shorter there */
.deck.rbn-side #fmt-opcell .fmt-range{width:64px;}
/* Size & position's grid is two columns, W H over X Y beside the angle
   over Rotate: 246px in the rail's 201. There it wraps like the rest of
   the rail: W H on a line, X Y under it at the same left edge so the
   fields line up, then the angle and Rotate paired on a third (a line's
   length and angle are too long to pair and take a line each). The basis
   is the line, not the grid's own one-line width, or the wrap never
   happens. Rotate is its own height, not the grid's track, because the
   rail's lines are as tall as their tallest. */
.deck.rbn-side .rbn-row>.rbn-stack.rbn-geogrid{display:flex;
  flex-flow:row wrap;flex:1 0 100%;width:100%;gap:3px;
  align-items:center;align-content:flex-start;}
.deck.rbn-side .rbn-geogrid>*{flex:1 0 auto;}
.deck.rbn-side .rbn-geogrid>.sh-drop:not([hidden]){height:auto;}

/* ---------- full-screen EDITING (not presenting) ---------- */
/* Present hides every tool, which is wrong for a poster: there is no
   audience and nothing to step through. This keeps the whole editor and
   just takes the browser chrome away. */
.deck.editfull .deck-top{display:none;}
.deck.editfull .deck-stage{padding-top:6px;}

/* annotation layer */
.annot-layer{position:absolute;inset:0;z-index:6;pointer-events:none;}
/* The layer does not clip while editing, so an item nudged past the page
   edge stays visible and draggable; the stage grows scrollbars to reach
   it. Playback and every export clip to the page. */
.annot-layer.an-spill{overflow:visible;}
.deck.editing .annot-layer{pointer-events:auto;cursor:crosshair;}
/* A placed card is not a document. Its markdown, tables and code are
   never edited in place, so nothing is lost by making them unselectable,
   and it backs up startMarquee's preventDefault against a blue selection
   smear. Deliberately not applied to .an-text/.an-tx: those are edited
   in place and must stay selectable. */
.deck.editing .an-item.an-cell{user-select:none;-webkit-user-select:none;}
.deck.editing .annot-layer.tool-select{cursor:default;}
.deck.editing .annot-layer:not(.tool-select) .an-item,
.deck.editing .annot-layer:not(.tool-select) .an-item *{
  cursor:crosshair!important;}
.annot-layer>svg{position:absolute;inset:0;width:100%;height:100%;
  overflow:visible;pointer-events:none;}
.deck.editing .annot-layer>svg{pointer-events:auto;}
.annot-layer>svg.an-svgtop{pointer-events:none!important;z-index:5;}
/* an arrow that keeps its place in the stacking order */
.annot-layer>svg.an-svgz{pointer-events:none!important;overflow:visible;}
/* The current slide stays interactive; other slides are a tracing aid only.
   Their bounds sit below the live annotation layer and never intercept a
   click, so turning the aid on cannot steal an edit gesture. */
.deck-ghost-layer{position:absolute;inset:0;z-index:2;pointer-events:none;}
.deck-ghost-slide{position:absolute;inset:0;opacity:.7;
  color:var(--ghost,#55b7ff);}
/* No "Slide N" on each ghost: they would stack in one corner, and nothing
   is drawn over the slide to say something. Overlay options says which
   slides are drawn (.ovl-now). */
.deck-ghost-slide:not(.is-content) .an-item{background:transparent!important;
  box-shadow:inset 0 0 0 1px var(--ghost,#55b7ff)!important;}
.deck-ghost-slide:not(.is-content) .an-item>*{visibility:hidden!important;}
.deck-ghost-slide:not(.is-content)>svg{opacity:.75;filter:saturate(0) brightness(1.7);}
.deck-ghost-slide.is-content{opacity:.14;filter:saturate(.8);}
.deck-ghost-box{position:absolute;border:1px dashed currentColor;
  border-radius:4px;opacity:.72;box-sizing:border-box;}
.deck-ghost-box.is-filled{opacity:.18;}
.deck-ghost-box::after{content:attr(data-slide);position:absolute;left:3px;
  top:2px;font:600 9px/1 var(--mono);color:inherit;opacity:.9;}
.an-item{pointer-events:none;}
.deck.editing .an-item{pointer-events:auto;}
/* What a click means something on while presenting. An item takes no
   pointer so a click anywhere advances. That would mean a mouse never
   reaches the four things the playback click handler claims: a linked
   object, linked words, a clip and, with tap-to-enlarge on, any item. A
   click on a link would move the talk on instead. */
.deck:not(.editing) .an-linked,
.deck:not(.editing) .an-tx a,
.deck:not(.editing) .an-video,
.deck:not(.editing) .slide.tapzoom .an-item{pointer-events:auto;}
/* The corner is a deck token: one value, written onto the slide as
   --tk-rad, so every drawn box follows it and none of them stores a
   radius of its own. The literal is the fallback for anything rendered
   outside a slide (a thumbnail, a menu chip). */
/* the literal is the default, --tk-line is the deck's answer when it has
   been changed. Same bargain as --tk-rad above. */
.an-rect{position:absolute;border:3px solid var(--tk-line,#ff6b57);
  border-radius:var(--tk-rad,4px);}
.deck.editing .an-rect{cursor:move;}
.an-rect.sel,.an-text.sel,.an-title.sel,.an-cell.sel,.an-code.sel,
.an-html.sel{
  outline:2px dashed var(--cyan);outline-offset:3px;}
/* The box's fill is the deck's surface, or the dark one its white text
   was made for, never the editor's own chrome colour, which the light
   editor theme turns pale. A slide does not follow the app. */
.an-text{position:absolute;max-width:60%;font-family:var(--sans);
  line-height:1.35;color:var(--tk-ink,#fff);
  --an-box-bg:var(--tk-surface,#0e1926);--an-bg-op:85%;
  background:color-mix(in srgb,
    var(--an-box-bg) var(--an-bg-op),transparent);
  border:1px solid var(--tk-line,#ffffff2e);border-radius:var(--tk-rad,8px);padding:.35em .55em;
  display:flex;align-items:flex-start;gap:.35em;}
/* no text-shadow: it was meant to keep bare text legible on any page but
   reads as a smudge */
.an-text.nobg{background:none;border:none;}
/* PowerPoint's "Wrap text in shape" off: one line per paragraph, however
   narrow the box */
.an-text.an-nowrap .an-tx{white-space:pre;}
/* fill the box (minus the move handle) so text-align actually positions the
   text — a content-sized flex item can't be aligned */
.an-tx{white-space:pre-wrap;min-width:14px;outline:none;flex:1;
  padding-left:var(--an-ind,0);}
/* The bullet gutter is 1.7em: an outside marker sits about 1em left of its
   text, so at 1.15em it would be drawn on the box's edge, under the dashed
   selection line. It is each paragraph's own margin (paraPos), and the
   box indent is still .an-tx's padding, so the two add up with no calc()
   at all. A unitless zero fallback in a calc() would void the whole
   declaration. */
/* ---- The paragraph ----
   A text box is its paragraphs, one <p class="an-p"> each, drawn the same
   in the editor, the show, the strip and every export (parasDraw in
   20-notes-and-tables.js). paraDecorate puts each one where it goes (a
   margin for its level, so the box indent, .an-tx's padding --an-ind,
   composes with it) and gives one with a marker its kind and number
   (list-style-type and counter-set: the browser's own dots and counters).
   The marker is the paragraph's ::marker, outside it, in the margin:
   1.7em at the first level. A margin and not a padding, because an
   outside marker sits outside the box it marks, and because each
   paragraph carries its own, so each column of a two-column box has its
   gutter. */
.an-p{margin:0;}
.an-p[data-list]{display:list-item;margin-top:.18em;margin-bottom:.18em;}
/* a marker's own colour and size (the text keeps its own) */
.an-p::marker{color:var(--an-lc,currentColor);
  font-size:calc(var(--an-ls,1) * 1em);}
/* a closing bracket is the one shape the built-in list styles cannot
   say: a counter style of its own, so 1) 2) 3) counts on paragraph by
   paragraph as 1. 2. 3. does (a ::marker's counter() only showed the
   number a paragraph carried, so every paragraph had to carry one) */
@counter-style jv-paren{system:extends decimal;suffix:") ";}
/* a line break inside a paragraph (Shift+Enter) is only a line break --
   the gap between paragraphs is theirs (.an-tx br, below, is a Markdown
   box's) */
.an-tx .an-p br{display:inline;margin-top:0;}
/* columns break between paragraphs, and a margin at a break is cut off:
   the first column's first paragraph would start .18em below the next
   column's */
.an-cols>.an-p:first-child{margin-top:0;}
/* the slide column picks slides, so it gets the same two buttons the
   table has, and says how many are picked */
.dg-picks{display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  margin:8px 0 4px;}
.dg-pickn{font-family:var(--sans);font-size:11px;color:var(--chrome-ink-2);}

/* ---- The board shows the real boxes ----
   The dragged rectangle is the default this style stamps: thicker,
   amber and glowing. Behind it, every box that wears the style, and on
   request everything else, one colour per kind. */
.dg-real{position:absolute;border:1px solid rgba(240,168,72,.55);
  border-radius:3px;background:rgba(240,168,72,.07);pointer-events:none;
  overflow:hidden;}
/* a box that wears this style and no longer keeps to it. Two channels, a
   double-weight border and a corner badge, so it survives a colour-blind
   reader and the light theme. */
.dg-real.dg-off{border-width:2px;border-style:solid;
  border-color:rgba(240,168,72,.95);
  background:color-mix(in srgb,#f0a848 16%,transparent);}
.dg-real.dg-again{background:none;}
.dg-again .dg-realtx{visibility:hidden;}
.dg-real.dg-off::after{content:"!";position:absolute;top:-1px;right:2px;
  font:700 9px var(--sans);color:var(--warning);line-height:1;}
.dg-offnote{margin-top:6px;font-family:var(--mono);font-size:10px;
  letter-spacing:.06em;color:var(--warning);}
.dg-offnote[hidden]{display:none!important;}
.dg-other{position:absolute;border:1px dashed currentColor;
  border-radius:3px;opacity:.55;pointer-events:none;
  border-color:#8aa0b0;overflow:hidden;}
.dg-key{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:0 0 12px;font-family:var(--sans);font-size:11.5px;
  color:var(--chrome-ink-2);}
.dg-keyck{display:inline-flex;align-items:center;gap:6px;cursor:pointer;}
.dg-keyit{display:inline-flex;align-items:center;gap:5px;}
.dg-keyit::before{content:"";width:11px;height:11px;border-radius:3px;
  border:1px dashed var(--dg-kc,#8aa0b0);}
/* where they are, grouped: one row per place, its count, and the slides
   in it as chips you can press */
.dg-place{flex:1 0 100%;display:flex;flex-wrap:wrap;align-items:baseline;
  gap:4px 8px;padding:4px 0;border-top:1px solid #ffffff12;}
/* the group you picked, and the rows it owns */
.dg-place.on{border-color:var(--cyan);
  background:color-mix(in srgb,var(--accent) 10%,transparent);}
.dg-placehead.on{color:var(--cyan);}
.dgt-c.dgt-inplace{background:color-mix(in srgb,var(--accent) 12%,transparent);}
.dg-placehead{font:11.5px var(--sans);flex:0 0 auto;cursor:pointer;
  padding:3px 8px;border-radius:5px;background:none;
  color:var(--chrome-ink);border:1px solid var(--border-strong,#ffffff26);}
.dg-placeslides{display:flex;align-items:center;flex-wrap:wrap;gap:3px;}
.dg-placeslides-label{margin-right:3px;color:var(--chrome-ink-3);}
.dg-slidechip{font-family:var(--mono);font-size:10px;line-height:1;
  padding:2px 5px;border-radius:4px;cursor:pointer;color:var(--chrome-ink-2);
  background:none;border:1px solid var(--border-strong,#ffffff26);}
.dg-slidechip:hover{border-color:color-mix(in srgb,var(--accent) 55%,
  transparent);background:color-mix(in srgb,var(--accent) 14%,
  transparent);color:var(--chrome-ink);}
/* the board's own bubble: what is under the pointer, and a way there */
.dg-bub{position:absolute;z-index:30;min-width:120px;max-width:230px;
  display:flex;flex-direction:column;gap:2px;padding:4px;
  background:var(--chrome-2,#16273a);border:1px solid #ffffff2e;
  border-radius:7px;box-shadow:0 10px 26px #0009;}
/* display:flex would beat the hidden attribute, leaving an empty bubble
   over the key's checkbox from the moment the board is drawn */
.dg-bub[hidden]{display:none!important;}
.dg-bubline{text-align:left;font-family:var(--sans);font-size:11px;
  line-height:1.25;padding:3px 6px;border-radius:4px;cursor:pointer;
  color:var(--chrome-ink);background:none;border:1px solid transparent;}
.dg-bubline:hover{background:color-mix(in srgb,var(--accent) 18%,
  transparent);border-color:color-mix(in srgb,var(--accent) 45%,
  transparent);color:var(--chrome-ink);}
.dg-bubmore{font-size:10px;opacity:.7;padding:0 6px 2px;}
.dg-keyit.dg-keymine::before{border:2px solid var(--amber,#f0a848);
  background:rgba(240,168,72,.18);}
/* the table's boxes were as wide as their column; a percentage never
   needs five digits */
.dgt-n{max-width:74px;}
.dgt-tx{width:100%;min-width:0;height:24px;padding:0 6px;
  box-sizing:border-box;font-family:var(--sans);font-size:12px;
  color:#e8f1f8;background:#ffffff0d;border:1px solid #ffffff22;
  border-radius:5px;}
.dgt-tx:focus{border-color:var(--cyan);outline:none;}
.dgt-lab{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--chrome-ink-2);}
body.light .dgt-tx{background:var(--input-bg);border-color:var(--border-strong);
  color:var(--ink);}
body.light .dg-grp{background:var(--surface-hover);
  border-color:var(--line);}

/* ---- The object's history is a table ----
   Four columns: when, what changed, what it looked like, and the way
   back. A stack of cards would make every state look like an event
   rather than a row to compare against its neighbours. A big object's
   preview is a button, since a 38px schematic of a table says nothing. */
.oh-head,.oh-row{display:grid;
  grid-template-columns:96px minmax(0,1fr) 76px 78px;
  align-items:center;gap:9px;padding:6px 12px;}
.oh-head{font-family:var(--sans);font-size:11px;font-weight:600;
  color:var(--chrome-ink-2);border-bottom:1px solid #ffffff1c;position:sticky;top:0;
  background:var(--chrome-2,#16273a);z-index:1;}
.oh-row{border-bottom:1px solid #ffffff10;}
.oh-row.oh-open{grid-template-rows:auto auto;}
.oh-c{min-width:0;}
.oh-when{font-family:var(--sans);font-size:11.5px;color:var(--chrome-ink-2);}
.oh-look{display:flex;align-items:center;}
.oh-act{display:flex;justify-content:flex-end;}
.oh-prev{font-size:11px;padding:3px 8px;}
.oh-big{grid-column:1/-1;width:100%;max-height:none;height:150px;
  margin-top:6px;}
.img-ov .oh-head,.img-ov .oh-row{grid-template-columns:130px minmax(0,1fr)
  96px 96px;}
.img-ov .oh-list{display:block;}
body.light .oh-head{background:var(--chrome-2);}

/* ---- Thumbnails view ----
   The strip's Thumbnails view must not print every slide's title beside
   the picture; that is what "Thumbnails and headings" is for. */
#film-list[data-fv="thumb"] .film-t{display:none;}
/* ...and the current slide keeps its name, because that row is the
   inline editor and the name is its heading */
#film-list[data-fv="thumb"] .film-row.current .film-t{display:block;}

/* ---- Kinds of bullet, kinds of numbering ----
   A text box's markers are its paragraphs' (above). These are the levels
   of a list in a markdown box, which notesHtml draws as ul/ol. */
.an-tx.an-md li{margin:.18em 0;white-space:pre-wrap;}
/* (descendants, not children) */
.an-tx.an-md ul ul,
.an-tx.an-md ol ul{list-style:circle;margin:0;padding-left:1.5em;}
.an-tx.an-md ul ul ul,
.an-tx.an-md ol ul ul{list-style:square;}
.an-tx.an-md ol ol,
.an-tx.an-md ul ol{list-style:lower-alpha;margin:0;
  padding-left:1.25em;}
.an-tx.an-md ol ol ol,
.an-tx.an-md ul ol ol{list-style:lower-roman;}
/* text reads as draggable, and only turns into a text cursor once you are
   actually typing in it */
.deck.editing .an-text,.deck.editing .an-title{cursor:move;}
.deck.editing .an-item.an-editing{cursor:auto;}
.deck.editing .an-item.an-editing .an-tx{cursor:text;}
.an-handle{cursor:move;color:var(--chrome-ink-2);font-size:.65em;flex:none;
  user-select:none;margin-top:.3em;}
.an-handle:hover{color:#fff;}
.an-arrow-line{fill:none;}
.an-arrow-line.sel{filter:drop-shadow(0 0 5px color-mix(in srgb,var(--accent) 80%,transparent));}
.an-arrow-hit{stroke:transparent;stroke-width:16;fill:none;}
.deck.editing .an-arrow-hit{cursor:move;}
/* z-index 6, above the arrows' svg (5): while editing an arrow's grab path
   is up there, and one attached at an edge would otherwise sit on that
   edge's handle */
/* the grips are the editor's, so their ring and face are the app scheme's
   chrome, read on the stage. Inside a .slide the chrome palette is pinned
   to the page's, and a Light-scheme grip would lose its white ring on a
   navy slide. */
.deck-stage{--grip-ring:var(--chrome-0,#0b141d);--grip-face:var(--chrome-1,#0e1926);}
/* ...and their colour, on a dark page under a light scheme: the light
   schemes' accents are dark (they are inks on paper), so the selection
   outline and the grips went #0e6174 on navy, 2.6:1. The same accent's
   soft tone reads there (6.6:1). And the mirror: a dark scheme's accent
   is pale, so on a white slide the outline was #58c4db, 2.0:1 (1.5:1 in
   High contrast dark); its deep tone reads there. Editing only, and the
   one slide on the stage: the show draws no marks. */
body.light .deck.editing .deck-stage .slide:not(.page-light){
  --accent:var(--accent-soft);}
body:not(.light) .deck.editing .deck-stage .slide.page-light{
  --accent:var(--accent-deep);}
.an-resize{position:absolute;width:15px;
  height:15px;border-radius:4px;background:var(--cyan);
  border:2px solid var(--grip-ring,#0b141d);display:none;z-index:6;}
.an-rs-se{right:-7px;bottom:-7px;cursor:nwse-resize;}
.an-rs-nw{left:-7px;top:-7px;cursor:nwse-resize;}
.an-rs-ne{right:-7px;top:-7px;cursor:nesw-resize;}
.an-rs-sw{left:-7px;bottom:-7px;cursor:nesw-resize;}
/* The four sides. Drawn as bars rather than squares so which axis a
   handle owns is readable without hovering for the cursor, and so they
   cannot be mistaken for the corner grips. These rules must stay after
   .an-resize, whose 15px square they override. */
.an-rs-n,.an-rs-s{left:50%;margin-left:-11px;width:22px;height:9px;
  cursor:ns-resize;}
.an-rs-e,.an-rs-w{top:50%;margin-top:-11px;width:9px;height:22px;
  cursor:ew-resize;}
.an-rs-n{top:-4px;}
.an-rs-s{bottom:-4px;}
.an-rs-w{left:-4px;}
.an-rs-e{right:-4px;}
.an-item.sel .an-resize{display:block;}
/* The selected box and its grips stay reachable over overlapping objects.
   This changes editing only; the saved stacking order is untouched. */
.deck.editing .an-item.sel{z-index:30!important;}
/* a small selected thing (paintSel, under 48px) keeps its middle for
   moving: no side bars, and the corners stand clear of it */
.an-item.sel.an-small .an-rs-n,.an-item.sel.an-small .an-rs-s,
.an-item.sel.an-small .an-rs-e,.an-item.sel.an-small .an-rs-w{display:none;}
/* a one-line text box is small, and its top and bottom bars are the way
   to make it taller: they stay, outside it, clear of its middle */
.an-item.sel.an-small.an-text .an-rs-n,
.an-item.sel.an-small.an-text .an-rs-s{display:block;}
.an-item.an-small.an-text .an-rs-n{top:-13px;}
.an-item.an-small.an-text .an-rs-s{bottom:-13px;}
.an-item.an-small .an-rs-se{right:-16px;bottom:-16px;}
.an-item.an-small .an-rs-nw{left:-16px;top:-16px;}
.an-item.an-small .an-rs-ne{right:-16px;top:-16px;}
.an-item.an-small .an-rs-sw{left:-16px;bottom:-16px;}
/* free-rotation grip above the item (drag; Shift snaps to 15 deg) */
.an-rotate{position:absolute;top:-30px;left:50%;margin-left:-8px;
  width:16px;height:16px;border-radius:50%;background:var(--grip-face,#0e1926);
  border:2px solid var(--cyan);cursor:grab;display:none;z-index:6;}
.an-rotate::after{content:"";position:absolute;left:50%;top:100%;
  width:2px;height:11px;background:var(--cyan);margin-left:-1px;}
.an-item.sel .an-rotate{display:block;}
/* a corner's rotate zone, outside its resize grip, with a turning-arrow
   cursor */
.an-rotz{position:absolute;width:18px;height:18px;display:none;z-index:5;
  cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><path d='M5 12a6.5 6.5 0 1 1 6.5 6.5' fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round'/><path d='M5 12a6.5 6.5 0 1 1 6.5 6.5' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'/><path d='M1.6 9.6 5 14.2 8.4 9.6z' fill='white' stroke='black' stroke-width='1'/></svg>") 11 11,alias;}
.an-item.sel .an-rotz{display:block;}
.an-rotz-nw{left:-24px;top:-24px;}
.an-rotz-ne{right:-24px;top:-24px;}
.an-rotz-se{right:-24px;bottom:-24px;}
.an-rotz-sw{left:-24px;bottom:-24px;}
.an-item.an-small .an-rotz-nw{left:-34px;top:-34px;}
.an-item.an-small .an-rotz-ne{right:-34px;top:-34px;}
.an-item.an-small .an-rotz-se{right:-34px;bottom:-34px;}
.an-item.an-small .an-rotz-sw{left:-34px;bottom:-34px;}
.annot-layer.an-fitting .an-rotz,
.deck.editing .an-item.grpsel .an-rotz{display:none!important;}
/* never measured as part of a box (fitTexts) */
.annot-layer.an-fitting .an-resize,
.annot-layer.an-fitting .an-rotate{display:none!important;}
.deck.editing .an-item.grpsel .an-rotate{display:none!important;}
/* Several selected objects wear one frame, whose handles scale, stretch
   and turn the whole selection (selFramePaint). The frame takes no
   presses, only its handles do, so the objects inside still drag. */
.deck.editing .an-selframe{position:absolute;pointer-events:none;
  outline:1.5px solid var(--cyan);outline-offset:3px;z-index:31;}
.deck.editing .an-selframe .an-resize,
.deck.editing .an-selframe .an-rotate{display:block;pointer-events:auto;}
.deck.editing .an-selframe .an-rs-nw{left:-10px;top:-10px;}
.deck.editing .an-selframe .an-rs-ne{right:-10px;top:-10px;}
.deck.editing .an-selframe .an-rs-se{right:-10px;bottom:-10px;}
.deck.editing .an-selframe .an-rs-sw{left:-10px;bottom:-10px;}
.deck.editing .an-selframe .an-rs-n{top:-7px;}
.deck.editing .an-selframe .an-rs-s{bottom:-7px;}
.deck.editing .an-selframe .an-rs-w{left:-7px;}
.deck.editing .an-selframe .an-rs-e{right:-7px;}
.deck.editing .an-selframe .an-rotate{top:-36px;}
.annot-layer.an-fitting .an-selframe{display:none!important;}
.an-endpt{position:absolute;width:15px;height:15px;
  margin:-7.5px 0 0 -7.5px;border-radius:50%;background:var(--cyan);
  border:2px solid var(--grip-ring,#0b141d);display:none;z-index:6;
  pointer-events:none;}
.deck.editing .an-endpt.sel{display:block;pointer-events:auto;
  cursor:grab;}

/* movable title / subtitle on title slides */
.an-title{color:var(--tk-heading,#f0f6fa);}
/* a text box wearing a heading style reads the same token */
.an-text.an-head{color:var(--tk-heading,#f0f6fa);}
.page-light .an-text.an-head{color:var(--tk-heading,#16222c);}
   /* default lives here so .page-light can win; the deck's Heading text
      colour overrides it when one has been chosen */
.an-title{position:absolute;transform:translate(-50%,-50%);
  max-width:88%;text-align:center;display:flex;gap:.4em;
  align-items:flex-start;justify-content:center;
  font-family:var(--tk-sfont,var(--sans));line-height:1.2;}
/* a title slide's title wears the Title style's face, and its subtitle the
   Subtitle's (--tk-tfont / --tk-sfont, slideContext) */
.an-title.t-main{font-family:var(--tk-tfont,var(--sans));}
/* A title's designed weight, and no more than that. This rule sits on the
   inner span, so it beats the weight the renderer writes on the .an-title
   div; without --ttl-w a title would look bold whatever Bold is set to.
   600 is what a title looks like when nobody has said otherwise; --ttl-w
   is set only once Bold has been touched. */
.an-title.t-main .an-tx{font-weight:var(--ttl-w,600);
  letter-spacing:-.018em;}
.slide-titlefree .ttl-eyebrow{position:absolute;top:7%;left:0;right:0;
  text-align:center;font-family:var(--mono);font-size:11px;
  letter-spacing:.24em;text-transform:uppercase;color:var(--sl-accent);}

/* notebook-cell frames */
/* A notebook frame is a box, and "Box background" is the deck colour for
   one. The chrome colour stays the default, --tk-surface answers when one
   is chosen. */
/* the frame's edge, like the text box's, is "Lines and edges" once that is
   chosen; the accent tint stays its default */
.an-cell{position:absolute;
  background:var(--tk-surface,var(--chrome-1,#0e1926));
  border:1.5px solid var(--tk-line,color-mix(in srgb,var(--sl-accent,var(--accent)) 36%,transparent));border-radius:var(--tk-rad,10px);overflow:hidden;
  display:flex;flex-direction:column;}
/* edit mode: an unselected frame is just its content — transparent (so it
   never blocks what's behind), no border, no title header. The border, title,
   Replace and part-picker all return only when the frame is SELECTED, so you
   can read the slide as it will present. */
.deck.editing .an-cell{cursor:move;background:none;border-color:transparent;}
.deck.editing .an-cell.sel{border-color:var(--cyan);background:color-mix(in srgb,var(--chrome-0,#0b141d) 53%,transparent);}
/* light pages: the placeholder and selected frame washes must flip too.
   These outrank the dark rules above by the extra .page-light class. */
.deck.editing .page-light .an-cell.sel{background:#ffffffd0;}
.deck.editing .page-light .an-cell.empty{background:#00000008;
  border-color:#00000030;}
/* an EMPTY frame keeps its dashed dark placeholder box (a card goes here) */
.deck.editing .an-cell.empty{background:color-mix(in srgb,var(--chrome-1,#0e1926) 60%,transparent);border-color:color-mix(in srgb,var(--accent) 36%,transparent);}
/* the title header is an overlay (out of flow) shown only when selected, so
   selecting a frame never reflows/shrinks the figure underneath it */
.deck.editing .an-cell .an-cellhead,
.pane.filled .an-cellhead{position:absolute;top:0;left:0;right:0;z-index:2;
  display:none;padding:7px 30px 10px 12px;
  background:linear-gradient(color-mix(in srgb,var(--chrome-0,#0b141d) 88%,transparent),color-mix(in srgb,var(--chrome-0,#0b141d) 0%,transparent));}
.deck.editing .an-cell.sel .an-cellhead,
.pane.filled.active .an-cellhead{display:flex;}
.deck:not(.editing) .an-cell.empty{display:none;}
/* clean playback: a frame is just its content — no header title, no
   badge, no frame border (the editor/builder keep them for orientation) */
.vpage .an-cell{border:none;background:none;}
.vpage .an-cellhead{display:none;}
/* playback: a framed cell is just its content (no dark card box / cyan border),
   so a shape-crop reads as the shape even on slides without a code trace */
.deck:not(.editing) .deck-stage .an-cell{border:none;background:none;}
.deck:not(.editing) .deck-stage .an-cellhead{display:none;}
/* the same on a page drawn outside the stage (a PDF, a handout, the
   standalone page, the scrolling page, a picture): they must not keep the
   frame and the title bar, which no slide shows */
.print-page .an-cell:not(.empty){border:none;background:none;}
.print-page .an-cellhead{display:none;}
/* ...and a picture has no placeholder, as the show has none */
#print-root.jv-pics .an-cell.empty{display:none;}
/* ...and nothing on it is moving while it is drawn. An SVG has its ::before
   and ::after as elements (60c svPrep) */
#print-root.jv-pics *,#print-root.jv-pics *::before,
#print-root.jv-pics *::after{animation:none!important;
  transition:none!important;}
[data-jv-nb]::before,[data-jv-na]::after{content:none!important;}
.an-cellhead{flex:none;display:flex;align-items:center;gap:8px;
  padding:8px 30px 0 12px;min-width:0;}
.an-cellhead-t{font-size:13px;font-weight:600;color:#dbe7ef;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;
  min-width:0;}
.an-cellcap{flex:none;font-family:var(--serif);font-size:12.5px;
  color:var(--chrome-ink);padding:0 12px 9px;margin:0;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.an-cell .cardbody{flex:1;min-height:0;display:flex;
  flex-direction:column;padding:8px;}
/* the .cb-fig figure-part wrapper must pass the flex height through in slide
   frames, else .figframe's flex:1 fit-to-frame sizing is inert and plots clip */
.an-cell .cb-fig,.spane .cb-fig,.slide-fig .cb-fig{flex:1;min-height:0;
  display:flex;flex-direction:column;}
.an-cell .figframe{flex:1;min-height:0;display:flex;
  align-items:center;justify-content:center;overflow:hidden;
  border:none;padding:6px;}
/* a frame wider/taller than its figure shows transparent space around
   the plot, not a white box (the plot keeps its own background) */
.an-cell .figframe,.spane .figframe{background:none;}
.an-cell .figframe+.figframe{border-top:1px solid #ffffff10;}
.an-cell .figpager{flex:1;min-height:0;display:flex;
  flex-direction:column;}
.an-cell .figpager .figpage{display:none;}
.an-cell .figpager .figpage.current{flex:1;min-height:0;display:flex;
  flex-direction:column;}
.an-cell .fp-btn{background:transparent;border-color:#ffffff22;
  color:#cdd9e3;}
.an-cell .fp-count{color:var(--chrome-ink-2);}
.an-cell .cardbody.mdclamp,.spane .cardbody.mdclamp{max-height:none;}
.an-cell .cardbody.mdclamp::after,
.spane .cardbody.mdclamp::after{display:none;}
.spane .figpager{flex:1;min-height:0;display:flex;
  flex-direction:column;}
.spane .figpager .figpage.current{flex:1;min-height:0;display:flex;
  flex-direction:column;}
.an-cell .figframe img{max-width:100%;max-height:100%;width:auto;
  height:auto;object-fit:contain;margin:0;}
/* a FIGURE frame is just the plot: no inner padding, and after render the
   frame snaps to the image's aspect ratio (snapFigAspect) — so the selection
   outline and resize handle sit exactly on the plot, with no letterbox gap
   and no title header (the tooltip + Locate in notebook carry its name) */
.an-cell.an-figonly{border-radius:4px;}
.an-cell.an-figonly .cardbody{padding:0;}
.an-cell.an-figonly .figframe{padding:0;}
/* the frame already matches the plot's aspect, so filling it (up- or
   down-scaling) keeps the plot edge-to-edge under the outline */
.an-cell.an-figonly .figframe img{width:100%;height:100%;
  max-width:none;max-height:none;object-fit:contain;}
.an-cell .note{flex:1;min-height:0;overflow:auto;
  background:var(--nb-bg,var(--output-paper));
  color:var(--nb-tx,var(--output-ink-2));border-radius:6px;padding:10px 14px;
  font-size:13px;}
/* Auto-generated decks are for presenting prose, not inspecting notebook
   cards. At the 1280x720 reference 28px is 21pt: the same Body default as
   a new text box. Remove the notebook-card paper, padding and scroll frame
   so a markdown cell reads as slide copy; its measured box is chosen by
   autoDeckBuild at this line height. Selection chrome still wins in edit. */
.an-cell.an-auto-note{background:transparent;border-color:transparent;}
.an-auto-note .cardbody{padding:0;}
.an-auto-note .note{overflow:hidden;background:transparent;color:#fff;
  border-radius:0;padding:0 4px;font-size:28px;line-height:1.35;}
.an-auto-note .note *{color:inherit;}
/* a recoloured markdown card carries its text colour to every child
   (headings, lists, bold) so the whole note reads in the chosen colour */
.an-cell[style*="--nb-tx"] .note,
.an-cell[style*="--nb-tx"] .note *{color:var(--nb-tx);}
/* A note on a slide is the slide's, never the reader's. app.css keeps
   body:not(.light) .note (0,2,1) for custom views, which would outrank
   every note rule here: under the Dark app scheme a note frame would use
   the reader's #c4d0da on its white paper, and a markdown cell placed as
   slide copy would ignore Body text. A frame's text is its paper's ink
   (#1b2733 on a light page); slide copy is the deck's Body text on
   either page. A table in a note takes its rules from its text, for the
   same reason. */
.slide :is(.an-cell,.slide-fig,.spane) .note,.mini-diagram .an-cell .note{
  color:var(--nb-tx,var(--output-ink-2));}
.page-light .an-cell .note{color:var(--nb-tx,#1b2733);}
.slide .an-auto-note .note,.mini-diagram .an-auto-note .note{
  color:var(--nb-tx,var(--tk-ink,#fff));}
.page-light .an-auto-note .note{color:var(--nb-tx,var(--tk-ink,#1b2733));}
/* ...and a caption in it is the note's words (body:not(.light) .note
   .caption, 0,3,1, gave it the reader's ink as well) */
.slide :is(.an-cell,.slide-fig,.spane) .note .caption,
.mini-diagram .an-cell .note .caption{color:inherit;}
.slide :is(.an-cell,.slide-fig,.spane) .note :is(th,td),
.mini-diagram .an-cell .note :is(th,td){
  border-color:color-mix(in srgb,currentColor 22%,transparent);}
.slide :is(.an-cell,.slide-fig,.spane) .note th,
.mini-diagram .an-cell .note th{
  background:color-mix(in srgb,currentColor 6%,transparent);}
.an-cell .jv-xr,.an-cell pre.result,.an-cell pre.stream{
  overflow:auto;min-height:0;}
.an-cell.empty{align-items:center;justify-content:center;
  border-style:dashed;background:color-mix(in srgb,var(--chrome-1,#0e1926) 60%,transparent);}
.an-cellpick{background:none;border:none;color:#7fb6c6;
  font-family:var(--mono);font-size:11px;letter-spacing:.05em;
  cursor:pointer;padding:14px;text-align:center;line-height:1.5;}
.an-cellpick:hover{color:#fff;}
.an-cellbtn{position:absolute;top:5px;right:5px;z-index:3;display:none;
  background:color-mix(in srgb,var(--chrome-1,#0e1926) 93%,transparent);border:1px solid color-mix(in srgb,var(--accent) 40%,transparent);border-radius:6px;
  color:#7fd0e0;font-family:var(--sans);font-size:11px;padding:4px 9px;
  cursor:pointer;}
/* Replace shows only for the SELECTED frame (not on hover) — declutter */
.deck.editing .an-cell.sel .an-cellbtn{display:block;}
.an-cellbtn:hover{color:#fff;border-color:var(--cyan);}
/* which part of a cell a frame shows: code / figure / output */
.an-cellpart{font:600 11px var(--sans);color:#7fb6c6;background:color-mix(in srgb,var(--accent) 13%,transparent);
  border-radius:4px;padding:1px 6px;flex:none;}
/* the code/figure/output picker sits along the bottom of the frame so
   it never covers the title header or the part badge at the top */
.cellparts{position:absolute;bottom:5px;left:5px;right:5px;z-index:5;
  display:none;gap:3px;flex-wrap:wrap;justify-content:center;}
/* the part-picker shows only for the SELECTED frame (not on hover) */
.deck.editing .an-cell.sel .cellparts,
.pane.filled.active .cellparts{display:flex;}
.cellpartbtn{font-family:var(--sans);font-size:11px;letter-spacing:0;
  background:color-mix(in srgb,var(--chrome-1,#0e1926) 93%,transparent);border:1px solid #ffffff2b;border-radius:5px;
  color:var(--chrome-ink);padding:3px 7px;cursor:pointer;line-height:1;}
.cellpartbtn.on{background:var(--cyan-deep);border-color:var(--cyan-deep);
  color:var(--on-accent-deep,#fff);}
.cellpartbtn:hover{border-color:var(--cyan);color:var(--chrome-ink);}
.cellpartbtn.split{color:var(--chrome-ink-2);}
/* the same part-picker, hosted in the top ribbon's Object group */
.rbn-partslot{display:inline-flex;align-items:center;}
.rbn-partslot[hidden]{display:none;}
#fmt-parts .cellparts{position:static;display:inline-flex;gap:6px;
  flex-wrap:nowrap;bottom:auto;left:auto;right:auto;z-index:auto;}
/* in the ribbon the figure/code/output/split pills dress like every other
   ribbon button — same face, same size */
#fmt-parts .cellpartbtn{font-family:var(--sans);font-size:12px;
  letter-spacing:normal;background:var(--rbn-btn,#ffffff0a);
  border:1px solid var(--rbn-btn-bd,#ffffff22);
  border-radius:6px;color:var(--chrome-ink,#cdd9e3);padding:0 9px;
  height:var(--rbn-btn-h,26px);line-height:normal;
  display:inline-flex;align-items:center;gap:5px;}
#fmt-parts .cellpartbtn .bic{width:14px;height:14px;vertical-align:0;}
#fmt-parts .cellpartbtn:hover{border-color:var(--cyan);color:var(--chrome-ink);}
#fmt-parts .cellpartbtn.on{background:var(--cyan-deep);
  border-color:var(--cyan-deep);color:var(--on-accent-deep,#fff);}
/* the Layouts dropdown: the whole template catalog, off the panel and
   into a ribbon menu */
/* the Change layout gallery is the one tile, wrapped, no scrollbar */
.sh-menu.lay-menu{display:block;width:580px;max-height:none;
  overflow:visible;padding:8px;}
.lay-menu .lay-picker{margin:0;display:flex;flex-wrap:wrap;gap:6px;
  max-height:none;overflow:visible;}
.lay-menu .lay-picker .dbtn.lay{flex:0 0 var(--rbn-tile-w);
  width:var(--rbn-tile-w);height:var(--rbn-tile-h);
  padding:3px 3px;align-items:center;}
.lay-menu .lay-picker>.lay-sec{flex:0 0 100%;}
.lay-menu .lay-picker .layico2{width:calc(var(--rbn-tile-w) - 22px);}
/* catalog section headings (Slide layouts / Poster layouts) */
.lay-sec{grid-column:1/-1;font:600 11px var(--sans);color:var(--chrome-ink-3);
  padding:7px 2px 1px;}
.lay-sec:first-child{padding-top:1px;}

/* picking a card for a cell frame */
.pickbar{position:fixed;top:var(--chrome-h);left:var(--presrail-w);
  right:0;z-index:99;background:var(--cyan-deep);
  color:var(--on-accent-deep,#fff);
  padding:9px 16px;font-size:13px;display:flex;gap:12px;
  align-items:center;box-shadow:0 6px 24px #00000055;}
.pickbar[hidden]{display:none;}
.pickbar .dbtn{border-color:#ffffff55;color:var(--on-accent-deep);}
body.picking .card{cursor:copy;}
body.picking .card:hover{outline:2px solid #fff;outline-offset:2px;}
/* the armed-match bar is a sibling of .deck, like the pickbar and every
   other overlay here — and .deck is fixed at z-index 100, so this has to
   be fixed and above it or it renders underneath the editor it is
   describing. It covers the thin top bar for the duration, which is
   honest: you are standing in a mode. */
.matchbar{position:fixed;top:0;left:0;right:0;z-index:150;}
/* ---- A motion path, while it is looked at ----
   A layer of its own over the slide in the editor's stage, which nothing
   that shows, prints or pictures a slide has. */
.mop-over{position:absolute;inset:0;z-index:8;pointer-events:none;}
.mop-over>svg{position:absolute;inset:0;width:100%;height:100%;
  overflow:visible;}
.mop-over path{fill:none;vector-effect:non-scaling-stroke;}
.mop-case{stroke:#0000004d;stroke-width:4.5;stroke-linejoin:round;}
.mop-line{stroke:#e39a2d;stroke-width:2.5;stroke-dasharray:7 5;
  stroke-linejoin:round;}
.mop-tie{stroke:#e39a2d;stroke-width:1;}
.mop-hit{stroke:transparent;stroke-width:14;}
.mop-hit.can{pointer-events:stroke;cursor:copy;}
.mop-pt{position:absolute;width:13px;height:13px;margin:-6.5px 0 0 -6.5px;
  box-sizing:border-box;border-radius:50%;background:#fff;
  border:2.5px solid #c47a10;box-shadow:0 0 0 1px #0007;
  pointer-events:auto;cursor:move;touch-action:none;}
.mop-pt.mop-start{background:#2f9e55;border-color:#fff;}
/* the end is an arrowhead, pointing the way the object arrives */
.mop-pt.mop-end{width:20px;height:20px;margin:-10px 0 0 -10px;border:none;
  border-radius:0;background:#c0392b;box-shadow:none;
  clip-path:polygon(8% 8%,100% 50%,8% 92%);
  transform:rotate(var(--mop-turn,0deg));}
.mop-pt.mop-ctl{width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:2px;
  border-width:1.5px;}
.mop-ghost{position:absolute;box-sizing:border-box;border:1.5px dashed #e39a2d;
  box-shadow:0 0 0 1px #0006;}
.mop-ghost[hidden]{display:none;}
.mop-over.mop-drawing{pointer-events:auto;cursor:crosshair;
  touch-action:none;z-index:40;}
.an-item.mop-going>.an-resize,.an-item.mop-going>.an-rotate,
.an-item.mop-going>.an-handle{visibility:hidden;}
.sh-menu.mop-menu{display:flex;flex-direction:column;gap:4px;width:280px;}
.sh-menu.mop-menu[hidden]{display:none;}
.mop-kinds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;}
.sh-opt.mop-kind{display:flex;flex-direction:column;align-items:center;
  gap:4px;padding:8px 4px 6px;font:12px var(--sans);}
.mop-row{display:flex;gap:4px;}
.mop-row .mop-one{flex:1;justify-content:flex-start;gap:8px;min-width:0;}
.mop-row .sh-opt{display:flex;align-items:center;width:auto;}
.cfg-chip .mop-ico{width:24px;height:15px;}
.cfg-chip:disabled{opacity:.45;cursor:default;}
.mop-sel select{max-width:112px;}
#anim-mop-rep{max-width:88px;}
.matchbar .dc-menu{max-height:min(64vh,460px);overflow-y:auto;
  min-width:230px;right:0;left:auto;}
.mp-head{display:flex;gap:5px;padding:2px 4px 6px;}
.mp-b{padding:2px 8px;font-size:10.5px;}
.mp-menu .find-ck{padding:2px 5px;border-radius:5px;color:var(--chrome-ink);}
.mp-menu .find-ck:hover{background:#ffffff0d;}
/* while a match is armed the canvas is a PICKER: say so with the cursor,
   and light up whatever is under the pointer so it is obvious what the
   next click will take */
.deck.matching .annot-layer{cursor:copy;}
.deck.matching .an-item:hover{outline:2px solid var(--cyan);
  outline-offset:2px;}
.deck.link-picking .annot-layer{cursor:copy;}
.deck.link-picking .an-item:hover{outline:2px solid var(--cyan);
  outline-offset:2px;}
.ms-box{width:min(560px,94vw);}

/* the three spacing presets are a segmented run in the ribbon; a
   three-column grid would put the caption in a column of its own and wrap
   Airy under it */

/* ---------- arrangements ----------
   Each row shows what it would arrange to, drawn by the same miniDiagram
   the film strip uses, so the preview cannot drift from the canvas. */
.ar-box{width:min(880px,95vw);}
/* the one thing you can do with an empty library sits under it, as a
   button the width of the column */
.ar-savebtn{display:flex;align-items:center;justify-content:center;gap:7px;
  margin-top:6px;}
/* Export and Import, side by side under Save */
.ar-io{display:flex;gap:6px;margin-top:6px;}
.ar-io .dbtn{flex:1;display:flex;align-items:center;justify-content:center;
  gap:7px;}
.ar-lib,.ar-sug{overflow-y:auto;max-height:52vh;padding-right:3px;}
.ar-row{display:flex;align-items:center;gap:8px;padding:5px 4px;
  border-radius:7px;}
.ar-row:hover{background:#ffffff0d;}
.ar-th{flex:none;width:92px;}
.ar-th .mini-diagram{width:92px;height:52px;min-height:0;}
.ar-mid{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.ar-name{background:none;border:1px solid transparent;color:#dce6ee;
  font-size:12px;font-family:var(--sans);border-radius:5px;padding:2px 5px;
  outline:none;width:100%;box-sizing:border-box;}
.ar-name:hover{border-color:#ffffff1f;}
.ar-name:focus{border-color:var(--cyan);background:var(--chrome-0,#0b141d);}
.ar-sub{font-family:var(--sans);font-size:11px;color:var(--chrome-ink-2);
  padding-left:6px;}
.ar-row:hover .fp-ctr{display:flex;}
.ar-srow{display:flex;align-items:center;gap:6px;padding:3px 4px;
  border-radius:5px;}
.ar-srow:hover{background:#ffffff0d;}
.ar-st{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.ar-ssel{flex:none;max-width:46%;font-size:11px;padding:2px 4px;
  border-radius:5px;background:var(--chrome-1,#0e1926);
  border:1px solid #ffffff26;color:#dce6ee;font-family:var(--sans);}
body.light .ar-name{color:var(--ink);}
body.light .ar-name:focus{background:var(--input-bg);}
body.light .ar-ssel{background:var(--input-bg);
  border-color:var(--border-strong);
  color:var(--ink);}
body.light .ar-row:hover,body.light .ar-srow:hover{
  background:var(--surface-hover);}

/* ---- Style sets ----
   A gallery, not a menu: every card is set in the type it offers, because
   a look is chosen by looking. */
.ss-box{width:min(880px,95vw);}
/* a ready-made look reads as an offer, not a thing you already have:
   dotted edge, and the note where the point size would be */
.jv-preset{border-style:dashed;opacity:.92;}
.jv-preset:hover{opacity:1;}
/* the two bands of the gallery, and a theme card's palette */
.ss-band{font-family:var(--sans);font-size:11px;color:var(--chrome-ink-3);margin:10px 0 4px;}
/* the colour band's own switch, under its label */
.ss-bgck{margin:0 0 7px;width:max-content;gap:6px;cursor:pointer;
  font-size:12px;}
.ss-chips{display:flex;gap:4px;padding:6px;border-radius:6px;margin:6px 0;}
.ss-chip{flex:1 1 0;height:14px;border-radius:3px;
  border:1px solid #00000033;}
.ss-tspec{padding:6px 8px;border-radius:6px;font-family:var(--sans);
  font-size:12px;line-height:1.5;}
.ss-grid{display:grid;gap:9px;overflow-y:auto;max-height:62vh;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  padding:1px;}
.ss-card{position:relative;text-align:left;display:flex;
  flex-direction:column;gap:7px;padding:11px 12px 10px;cursor:pointer;
  background:var(--chrome-0,#0b141d);border:1px solid #ffffff1f;
  border-radius:9px;color:#dce6ee;font-family:var(--sans);}
.ss-card:hover{border-color:var(--cyan);
  background:color-mix(in srgb,var(--accent) 8%,var(--chrome-0,#0b141d));}
.ss-name{font:600 11.5px var(--sans);color:var(--accent);display:flex;
  align-items:center;gap:6px;}
.ss-mine{font-size:10px;letter-spacing:.06em;padding:1px 6px;
  border-radius:8px;background:#ffffff14;color:var(--chrome-ink-2);}
/* the card just saved, lit for a moment */
.ss-card.ss-new{border-color:var(--accent,var(--cyan));
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 45%,transparent);
  transition:box-shadow .5s,border-color .5s;}
.ss-spec{display:flex;flex-direction:column;gap:3px;min-height:82px;
  overflow:hidden;}
.ss-line{line-height:1.2;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.ss-note{font-size:10.5px;line-height:1.4;color:var(--chrome-ink-2);}
.ss-del{position:absolute;top:6px;right:7px;font-size:10px;color:var(--chrome-ink-2);
  padding:2px 4px;border-radius:4px;}
.ss-del:hover{background:var(--surface-active);color:var(--chrome-ink);}
body.light .ss-card{background:var(--chrome-1,#f4f7fa);
  border-color:var(--line);color:var(--ink);}
body.light .ss-note{color:var(--ink-3);}
body.light .mp-menu .find-ck{color:var(--ink);}
body.light .mp-menu .find-ck:hover{background:var(--surface-hover);}

/* pane editor: the current slide as clickable regions */
/* the current slide's interactive editor — the single big view in the
   merged slides list (fills the width; drag the panel edge to resize) */
.pane-editor{aspect-ratio:var(--page-ar,16/9);display:grid;gap:6px;
  background:var(--chrome-0,#0b141d);
  border:1px solid #ffffff22;border-radius:8px;padding:6px;
  margin:0;width:100%;overflow:hidden;}
.pane-editor.full{grid-template-columns:1fr;grid-template-rows:1fr;}
.pane-editor.halves{grid-template-columns:1fr 1fr;grid-template-rows:1fr;}
.pane-editor.quarters{grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;}
.pane{position:relative;background:var(--chrome-4,#12202e);border:1px dashed #ffffff26;
  border-radius:6px;cursor:pointer;display:flex;align-items:center;
  justify-content:center;padding:6px 18px 6px 8px;overflow:hidden;
  transition:border-color .15s,background .15s;}
/* a filled frame shows the actual slide content (an .an-cell fills it),
   so the builder preview is exactly what will be presented */
.pane.filled{padding:0;background:none;border:none;overflow:visible;}
.pane.filled .an-cell{position:absolute;inset:0;width:auto;height:auto;
  cursor:pointer;pointer-events:none;}
.pane.active{outline:2px solid var(--cyan);outline-offset:1px;}
.pane.empty.active{border-color:var(--cyan);border-style:solid;
  background:color-mix(in srgb,var(--accent) 9%,transparent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 30%,transparent) inset;}
.pane.empty.active .pane-t{color:var(--cyan);}
.pane-t{font-size:10.5px;line-height:1.35;color:var(--chrome-ink);text-align:center;
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;
  -webkit-box-orient:vertical;}
.pane.empty .pane-t{color:var(--chrome-ink-3);font:600 11.5px var(--sans);}
.pane-x{position:absolute;top:3px;right:3px;z-index:4;background:color-mix(in srgb,var(--chrome-1,#0e1926) 80%,transparent);
  border:1px solid #ffffff22;border-radius:5px;color:var(--chrome-ink);
  cursor:pointer;font-size:11px;padding:2px 6px;line-height:1;}
.pane-x:hover{color:var(--chrome-ink);border-color:var(--cyan);}

/* filmstrip: mini slide thumbnails */
.film-list{flex:1;overflow-y:auto;min-height:60px;margin:0 -4px;
  padding:0 4px;}
.film-row{display:flex;align-items:center;gap:4px;border-radius:7px;
  margin-bottom:3px;cursor:grab;}
.film-row.current{background:color-mix(in srgb,var(--accent) 11%,transparent);outline:1px solid color-mix(in srgb,var(--accent) 33%,transparent);
  align-items:flex-start;}
.film-row.dragging{opacity:.45;}
.film-row.drop-above{box-shadow:0 -2px 0 var(--cyan);}
.film-row.drop-below{box-shadow:0 2px 0 var(--cyan);}
.film-label{flex:1;display:flex;align-items:center;gap:9px;background:none;
  border:none;color:var(--chrome-ink);font-size:11.5px;padding:5px 6px;cursor:pointer;
  text-align:left;min-width:0;font-family:var(--sans);}
.film-label .film-t{overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
/* a readable slide number (12.5px mono) */
.film-label .film-n{font-family:var(--mono);font-size:12.5px;
  color:var(--chrome-ink-2);width:22px;flex:none;text-align:right;}
/* Optional and omitted are shown as text in the strip, not as hidden state
   in a context menu. Only the thumbnail and title dim: controls and the
   current inline editor stay fully usable. */
.film-marks{display:flex;align-items:center;gap:3px;margin-left:auto;
  flex:none;}
.film-mark{font-family:var(--mono);font-size:7.5px;letter-spacing:.04em;
  line-height:1;padding:2px 4px;border:1px solid currentColor;
  border-radius:8px;white-space:nowrap;}
.film-row.opt .film-mark.opt{color:var(--warning);}
.film-mark.cut{color:var(--chrome-ink-2);}
/* ▸N: this slide has N builds. Deliberately the same amber as
   .an-buildno: the strip mark and the on-slide bubbles are one fact shown
   at two zoom levels, and the colour is the only thing tying them
   together once the bubbles are gated behind the pane. */
.film-mark.anim{color:var(--amber);}
.film-row.cut:not(.current) .mini-diagram,
.film-row.cut:not(.current) .film-t,
.film-row.cut:not(.current) .film-n{opacity:.42;}
.film-row.cut{background-image:linear-gradient(90deg,#71879a 0 2px,
  transparent 2px);}
/* Flipped content. The item's box, handles and grip never flip; what is
   drawn inside does: the picture (or the window onto it), the shape, a
   notebook figure's picture, a book's page, a clip. A text box's text is
   never mirrored (nor is it given the flag). */
.an-item{--an-sx:1;--an-sy:1;}
.an-item.an-flh{--an-sx:-1;}
.an-item.an-flv{--an-sy:-1;}
.an-item.an-flh>.an-imgel,.an-item.an-flv>.an-imgel,
.an-item.an-flh>.an-imgwin,.an-item.an-flv>.an-imgwin,
.an-item.an-flh>.an-shape-svg,.an-item.an-flv>.an-shape-svg,
.an-item.an-flh .cardbody img,.an-item.an-flv .cardbody img,
.an-item.an-flh.an-flip img,.an-item.an-flv.an-flip img,
.an-item.an-flh video,.an-item.an-flv video{
  transform:scale(var(--an-sx),var(--an-sy));}
/* the Corrections window's rows are short; keep them on a line */
.pic-panel .opt-row{flex-wrap:nowrap;}
/* an accessibility finding, and its fix beside it */
.a11y-row{display:flex;flex-direction:column;align-items:stretch;gap:6px;}
.a11y-go{all:unset;cursor:pointer;display:flex;flex-direction:column;
  gap:2px;}
.a11y-fix{align-self:flex-start;height:24px;font-size:12px;}
/* a finger on the editing canvas edits it rather than scrolling or zooming
   the page; while presenting, only a sideways swipe is the show's */
.deck.editing .annot-layer{touch-action:none;}
.deck:not(.editing) .deck-stage{touch-action:pan-y pinch-zoom;}
/* the Shapes window's search, in its header */
.strip-all-h{display:flex;align-items:center;gap:8px;}
.strip-find{flex:1;min-width:0;max-width:260px;margin-left:auto;
  font:inherit;font-size:12px;text-transform:none;letter-spacing:0;
  padding:4px 8px;border-radius:6px;border:1px solid var(--line);
  background:var(--chrome-1,#0f1b26);color:var(--chrome-ink,#d7e3ec);}
.strip-find-none{padding:6px 10px;font-size:12px;
  color:var(--chrome-ink-2,#93a8ba);}
/* the Duration box beside the transitions */
.trans-dur{flex:none;width:52px;align-self:stretch;font:inherit;
  font-size:12px;padding:0 2px 0 6px;border:0;border-left:1px solid
  var(--line);border-radius:0;background:transparent;
  color:var(--chrome-ink,#d7e3ec);}
.trans-dur:disabled{opacity:.45;}
/* a direction's arrow, turned to it */
.tdir{display:inline-flex;flex:none;width:16px;height:16px;
  align-items:center;justify-content:center;}
.tdir>.bic{margin:0;flex:none;}
#trans-dir-menu{width:230px;}
.pz-two{display:inline-flex;gap:6px;}
#trans-dirwrap[hidden]{display:none!important;}
#trans-dir{white-space:nowrap;}
/* the ten kinds and what goes with them on one slim line at 1300px;
   narrower, Direction, Duration and Give it to start a second line, as
   the Timing shelf's sections do, never a scroll */
#rbn-shelf-body #trans-strip{gap:3px;}
#rbn-shelf-body #trans-strip .fx-tile{padding:0 5px;gap:4px;}
#rbn-shelf-body>.rbn-row:has(>#trans-frame){flex-wrap:wrap;row-gap:4px;
  padding:2px 0;}
/* ...and Duration is the box it is in a row of its own */
.edit-tools #trans-opts>.rbn-cell.rbn-seg{height:var(--rbn-btn-h);
  box-sizing:border-box;align-self:center;gap:0;background:var(--rbn-btn);
  border:1px solid var(--rbn-btn-bd);border-radius:6px;overflow:hidden;}
body.th-colorful .edit-tools #trans-opts>.rbn-cell.rbn-seg{
  border-color:color-mix(in srgb,var(--accent) 30%,transparent);
  background:color-mix(in srgb,var(--accent) 7%,transparent);}
/* Slide timing's two boxes, and Run by itself's menu */
.rbn-adv{order:10;}            /* after the animations: it is the slide's */
.rbn-adv .rbn-seg>.cell-lab{min-width:88px;}
.rbn-seg>.cell-unit{align-self:center;}
.pr-loop-menu{min-width:230px;padding:6px 10px 10px;}
.pr-loop-row{display:flex;align-items:center;gap:6px;padding:4px 2px;
  font-size:12.5px;color:var(--chrome-ink);}
.pr-loop-row>span:first-child{flex:1;}
.pr-loop-once{padding:6px 2px 0;font-size:12px;
  color:var(--chrome-ink-2,#93a8ba);}
/* The Combine tab's settings (#pz-dlg): a choice a line, a sentence under
   it saying what it does, in sections */
.aa-box.pz-box{width:min(600px,94vw);}
/* sections under a heading and a rule, not boxes whose legend cuts
   through their border */
.pz-body{overflow:auto;display:flex;flex-direction:column;gap:0;
  padding:0 2px 4px;}
.pz-set{margin:0;padding:12px 0 14px;border:0;
  border-top:1px solid var(--chrome-line,#ffffff1a);
  display:flex;flex-direction:column;gap:8px;min-width:0;}
.pz-set:first-child{border-top:0;padding-top:4px;}
.pz-set[hidden]{display:none;}
.pz-set>legend{float:left;width:100%;padding:0;margin:0 0 2px;
  font-size:12px;font-weight:600;color:var(--chrome-ink-2,#93a8ba);}
.pz-set>legend+*{clear:both;}
.pz-opt{display:flex;gap:9px;align-items:flex-start;cursor:pointer;
  font-size:13px;line-height:1.4;color:var(--chrome-ink);}
.pz-opt>input{flex:none;margin:2px 0 0;width:15px;height:15px;
  accent-color:var(--cyan);cursor:pointer;}
.pz-opt b{font-weight:600;}
.pz-opt:has(>input:disabled){cursor:default;opacity:.55;}
.pz-why{display:block;margin:0;font-size:12px;line-height:1.45;
  color:var(--chrome-ink-2,#93a8ba);}
.pz-why[hidden]{display:none;}
/* Close only big ones' two limits, under it and in line with its words */
.pz-lims{display:flex;align-items:center;flex-wrap:wrap;gap:5px;
  margin:-2px 0 0 24px;font-size:12px;color:var(--chrome-ink-2,#93a8ba);}
.pz-num{flex:none;width:56px;font:inherit;font-size:12px;
  padding:2px 4px 2px 6px;border:1px solid var(--chrome-line);
  border-radius:5px;background:var(--chrome-1,#0f1b26);
  color:var(--chrome-ink,#d7e3ec);}
.pz-num:disabled{opacity:.45;}
.pz-acts{display:flex;flex-wrap:wrap;gap:6px;}
.pz-acts[hidden]{display:none;}
/* A slide as a picture (#pic-dlg): the range beside its text */
.pic-range{align-items:center;}
.pic-range>input[type=radio]{margin:0;}
.pz-num.pic-rg{width:130px;}
/* Split (#spl-dlg): the Combine dialog's sections. What it will make, a
   line each: the name, then where its slides are and its size. */
.aa-box.spl-box{width:min(460px,94vw);}
.spl-box .pz-sel{align-self:flex-start;max-width:100%;}
.spl-list{margin:0;padding:0 0 0 22px;max-height:220px;overflow:auto;
  display:flex;flex-direction:column;gap:3px;font-size:13px;
  color:var(--chrome-ink);}
.spl-list:empty{display:none;}
.spl-list b{font-weight:600;}
.spl-meta{margin-left:8px;font-size:12px;color:var(--chrome-ink-2,#93a8ba);}
/* File size (#fsz-dlg): the Combine dialog's sections. The file's parts a
   line each: what the part is, its size, and its share of the whole file
   as a bar. */
.aa-box.fsz-box{width:min(560px,94vw);}
.fsz-figs{display:grid;grid-template-columns:minmax(0,1fr) auto 72px;
  gap:9px 14px;align-items:center;font-size:13px;line-height:1.4;
  color:var(--chrome-ink);}
.fsz-k b{display:block;font-weight:600;}
.fsz-v{text-align:right;white-space:nowrap;
  font-variant-numeric:tabular-nums;}
.fsz-bar{display:block;height:6px;border-radius:3px;overflow:hidden;
  background:var(--chrome-line,#ffffff1a);}
.fsz-bar>i{display:block;height:100%;width:0;border-radius:3px;
  background:var(--cyan);}
.fsz-say{color:var(--chrome-ink);font-size:12.5px;}
.fsz-say[hidden]{display:none;}
/* one of several (what a file carries of the versions), its heading in
   the weight of a switch's; and what this browser keeps of the versions,
   a line each, with the button that moves the older ones */
.fsz-radio{display:flex;flex-direction:column;gap:8px;margin-top:4px;}
.fsz-legend{font-weight:600;font-size:13px;color:var(--chrome-ink);}
.fsz-kept{display:flex;flex-direction:column;gap:6px;align-items:flex-start;
  font-size:13px;line-height:1.45;color:var(--chrome-ink);}
.fsz-keptline{margin:0;font-variant-numeric:tabular-nums;}
.fsz-kept .dbtn{margin-top:4px;}
.cell-unit{flex:none;padding:0 7px 0 1px;font-size:11px;
  color:var(--chrome-ink-2,#93a8ba);}
/* the Shadow menu's rows show their shadow on a small card */
.shd-sw{display:inline-block;width:18px;height:14px;border-radius:2px;
  background:var(--chrome-ink-2,#9fb0c0);margin:2px 4px 6px 0;flex:none;}
/* A hidden slide, as PowerPoint draws one: its number struck through, the
   picture dimmed (by .cut, since the show skips it), and the current
   slide dimmed too, so hiding the slide you are on shows. */
.film-row.hid .film-n{text-decoration:line-through;}
.film-row.hid.current .mini-diagram{opacity:.55;}
.film-mark.hid{color:var(--chrome-ink-2);}
/* the selected slide expands: number on top, big editor, title below */
.film-row.current .film-label{flex-direction:column;align-items:stretch;
  gap:6px;cursor:default;}
.film-row.current .film-n{align-self:flex-start;text-align:left;
  color:var(--cyan);}
.film-row.current .film-marks{align-self:flex-start;margin-left:0;}
.film-view{width:100%;min-width:0;}
.film-view .pane-editor{width:100%;margin:0;}
/* --mini-h is read back in JS (MINI_H in deck.js) to size thumbnail type
   and stroke: both are page percentages and have to become real pixels
   somewhere. Change one, change the other. */
.mini-diagram{--mini-h:66px;width:116px;height:var(--mini-h);flex:none;
  display:grid;gap:2px;
  background:var(--page-bg,var(--chrome-0,#0b141d));border:1px solid #ffffff22;border-radius:4px;
  padding:2px;overflow:hidden;}
.mini-diagram.full{grid-template-columns:1fr;}
.mini-diagram.halves{grid-template-columns:1fr 1fr;}
.mini-diagram.quarters{grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;}
.mini-pane{position:relative;overflow:hidden;border-radius:2px;
  background:#1b2c3e;display:flex;align-items:center;
  justify-content:center;}
.mini-pane img{width:100%;height:100%;object-fit:contain;display:block;
  background:#fff;}
.mini-pane.is-note{background:#eef2f6 repeating-linear-gradient(180deg,
  #eef2f6 0,#eef2f6 4px,#b9c8d4 4px,#b9c8d4 5px);
  background-clip:padding-box;border:2px solid #eef2f6;}
.mini-pane.is-code{font-family:var(--mono);font-size:8.5px;
  color:#6f8ba3;background:#101d2a;}
.mini-pane.is-fig{background:#2a4761;}
.mini-pane.empty{background:var(--tk-surface,var(--chrome-4));}
.page-light .mini-pane.empty,.page-light .mini-pane.is-title{
  background:var(--tk-surface,#0000000d);}

/* pane editor: faint live preview behind the title */
.pane-img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;opacity:.4;}
.pane.filled .pane-t{position:relative;z-index:1;color:#eef4f8;
  text-shadow:0 1px 3px #000c,0 0 8px #0008;}
.film-ctr{display:none;gap:1px;padding-right:5px;flex:none;}
.film-row:hover .film-ctr,.film-row.current .film-ctr{display:flex;}
.film-mini{background:none;border:none;color:var(--chrome-ink-2);cursor:pointer;
  font-size:11px;padding:2px 4px;border-radius:4px;}
.film-mini:hover{background:#ffffff14;color:#fff;}
.addslide{margin-top:8px;}
/* Add slide takes the room; Section is the narrower, rarer verb beside
   it. One row, so the strip loses no height to gaining a second button. */
.film-adds{display:flex;gap:4px;margin-top:8px;}
.film-adds .addslide{flex:1;margin-top:0;}
.film-adds .addsec{flex:none;}
/* both labels on one line at the column's resting 200px. Letting them
   wrap inside the button is the same sin as an ellipsis: the words are
   all still there but the control stops reading as one thing. */
.film-adds .dbtn{white-space:nowrap;padding:5px 7px;font-size:11px;}

/* ---- section dividers in the strip -----------------------------------
   A divider reads as a LABEL over the slides beneath it rather than as
   another row in the list: no thumbnail, no number, and a rule under it
   so the eye can see where one run stops and the next starts. */
.film-sec{display:flex;align-items:center;gap:5px;cursor:grab;
  padding:6px 4px 4px;margin:6px 0 3px;border-radius:6px;
  border-bottom:1px solid color-mix(in srgb,var(--accent) 30%,transparent);}
.film-sec:first-child{margin-top:0;}
/* where the next presentation begins, with no heading to say so */
.film-pzline{display:flex;align-items:center;gap:6px;margin:8px 2px 5px;
  font:600 10.5px var(--sans);color:var(--chrome-ink-2);
  pointer-events:none;}
.film-pzline::before,.film-pzline::after{content:"";height:2px;
  border-radius:1px;background:var(--pzl,var(--accent));}
.film-pzline::before{flex:none;width:10px;}
.film-pzline::after{flex:1;min-width:12px;}
.film-pzline-t{flex:0 1 auto;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.film-sec.dragging{opacity:.45;}
.film-sec.drop-above{box-shadow:0 -2px 0 var(--cyan);}
.film-sec.drop-below{box-shadow:0 2px 0 var(--cyan);}
.film-sec-fold{background:none;border:none;color:var(--chrome-ink-2);cursor:pointer;
  font-size:10px;padding:1px 3px;border-radius:4px;flex:none;line-height:1;}
.film-sec-fold:hover{background:var(--surface-active);color:var(--chrome-ink);}
/* the section's colour, on its divider */
.film-sec-dot{flex:none;width:10px;height:10px;border-radius:50%;
  border:1px solid #ffffff55;padding:0;cursor:pointer;}
.film-sec-dot:hover{transform:scale(1.25);}
.sw.sw-sec{outline:1px dashed #ffffff66;outline-offset:1px;}
/* a section's name as typed, in the sans, as a part's heading (below) and
   the sheet tabs show it; spaced capitals would turn "Introduction" into
   introduction */
.film-sec-t{flex:1;min-width:0;font-family:var(--sans);font-size:11.5px;
  font-weight:600;letter-spacing:0;color:var(--accent);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.film-sec-n{flex:none;font-family:var(--mono);font-size:9px;color:var(--chrome-ink-3);}
.film-sec:hover .film-ctr{display:flex;}
/* a divider that is a part says so: a tinted rule, and the word "part" as
   the button to the Parts view */
/* and is a heading of its own, not a section's label: a band of its colour
   down the left, a tinted box, the presentation's mark, its name in
   sentence case over where it lives */
/* the colour and the name, the whole line its own; under it, what it is in
   two quiet words, and the count */
.film-sec.linked{display:grid;position:relative;
  grid-template-columns:16px 12px minmax(0,1fr) auto;
  grid-template-areas:"fold dot name name" ". . kind n";
  align-items:center;column-gap:4px;row-gap:1px;
  padding:6px 5px 6px 4px;margin:8px 0 4px;
  border:1px solid color-mix(in srgb,var(--part-c,var(--accent)) 40%,transparent);
  background:color-mix(in srgb,var(--part-c,var(--accent)) 12%,transparent);}
.film-sec.linked .film-sec-fold{grid-area:fold;}
.film-sec.linked .film-sec-t{grid-area:name;}
.film-sec.linked .film-sec-n{grid-area:n;justify-self:end;}
.film-sec.linked .film-sec-dot{grid-area:dot;justify-self:center;}
.film-sec.linked .film-part-kind{grid-area:kind;}
/* a heading is a button to its run: it lights as a row does */
.film-sec:hover{background:var(--surface-hover);}
.film-sec.linked:hover{
  background:color-mix(in srgb,var(--part-c,var(--accent)) 20%,transparent);}
/* its rename / remove sit over the top right on hover, never taking a
   column the name needs */
.film-sec.linked .film-ctr{position:absolute;top:3px;right:3px;
  padding:1px;border-radius:5px;background:var(--chrome-1,#0e1926);}
.film-sec.linked .film-sec-t{font-family:var(--sans);font-size:11.5px;
  font-weight:600;letter-spacing:0;text-transform:none;
  color:var(--chrome-ink);}
.film-part-kind{min-width:0;font:10.5px var(--sans);
  color:var(--chrome-ink-3);overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
/* the talk's own slides head themselves in a talk of parts: the same
   block, in the chrome's ink rather than a section's colour. It is not a
   section, so it does not drag. */
.film-sec.film-talk{--part-c:var(--chrome-ink-3);cursor:pointer;
  grid-template-columns:16px minmax(0,1fr) auto;
  grid-template-areas:"fold name name" ". kind n";}
/* the rule the strip folds parts by, in the Parts view (57-parts.js) */
.pf-rule{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;
  margin:8px 16px 0;font-size:12px;color:var(--chrome-ink-2);}
.pf-rule-sel,.pf-rule-n{font:inherit;font-size:12px;padding:3px 6px;
  border-radius:6px;border:1px solid var(--border-strong);
  background:var(--input-bg);color:var(--chrome-ink);}
.pf-rule-n{width:64px;}
.pf-rule-lim[hidden]{display:none;}
body.light .pf-rule{color:var(--ink-2);}

/* ---- The sheet tabs, along the foot of the slide ----
   A workbook's sheets: a thin bar under the page, its tabs hanging from
   the bar's top edge, the one on screen lifted, a part wearing its colour
   and the link mark. Only while editing a deck (a poster has none), and
   folded away with the ribbon. Auto-hide lays the bar over the page's
   foot, slid down until it is pointed at (.sheets-peek). */
.deck{--sht-h:42px;}
.deck-sheets{display:none;}
.deck.editing .deck-sheets:not([hidden]){display:flex;}
.deck-sheets{position:relative;flex:none;align-items:stretch;gap:6px;
  height:var(--sht-h);padding:0 8px 0 6px;border-top:1px solid #ffffff1c;
  background:var(--chrome-1,#0e1926);}
.sht-tabs{display:flex;align-items:stretch;gap:2px;min-width:0;
  flex:1 1 auto;overflow:hidden;scrollbar-width:none;}
/* the tabs that do not fit whole are in "N more" (shtFit) */
.sht-tab[hidden]{display:none;}
.sht-tabs::-webkit-scrollbar{display:none;}
/* a tab keeps its whole name, as a workbook's sheet does. Squeezed to
   fit, twelve sections would read "Topic 2:...", "Topic 3:...", cutting
   off the part that tells them apart. Past the bar's end they are counted
   and listed by "N more". */
.sht-tab{flex:none;display:inline-flex;align-items:center;
  gap:7px;max-width:220px;padding:0 14px;margin-top:-1px;
  border:1px solid transparent;border-top:none;border-radius:0 0 7px 7px;
  background:none;color:var(--chrome-ink-2);font:inherit;
  font-family:var(--sans);font-size:13px;white-space:nowrap;
  cursor:pointer;box-shadow:inset 0 -2px 0 transparent;}
.sht-tab:hover{background:var(--surface-hover);color:var(--chrome-ink);}
.sht-tab[style*="--sht-c"]{box-shadow:inset 0 -3px 0 var(--sht-c);}
.sht-tab.on{background:var(--chrome-0,#0b141d);color:var(--chrome-ink);
  font-weight:600;border-color:#ffffff1c;
  box-shadow:inset 0 -2px 0 var(--sht-c,var(--accent));}
.sht-tab.part{box-shadow:inset 0 -2px 0 var(--sht-c,var(--accent));}
.sht-tab.part.on{box-shadow:inset 0 -3px 0 var(--sht-c,var(--accent));}
/* the row clips: a ring outside the tab would be cut off */
.sht-tab:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;}
.sht-nm{min-width:0;overflow:hidden;text-overflow:ellipsis;}
.sht-ic{flex:none;display:inline-flex;color:var(--sht-c,var(--accent));}
.sht-ic .bic{width:15px;height:15px;}
.sht-dot{flex:none;width:7px;height:7px;border-radius:50%;
  background:var(--sht-c);}
.deck-sheets .sht-btn{align-self:center;flex:none;display:inline-flex;
  align-items:center;gap:4px;padding:3px 8px;font-size:11.5px;
  white-space:nowrap;}
.deck-sheets .sht-btn[hidden]{display:none;}
.deck-sheets .sht-btn .bic{width:12px;height:12px;}
/* the same live controls move here from the top strip. They keep Undo and
   Redo beside Zoom, but take the sheet bar's Settings slot. */
.sht-zoom{display:flex;align-items:center;flex:none;}
.sht-zoom .deck-zoombar{height:24px;margin:0;align-items:stretch;}
.sht-zoom .deck-zoombar .dbtn.rbn-sm,
.sht-zoom .deck-zoombar .dbtn.rbn-ico{height:24px;min-height:0;margin:0;
  box-sizing:border-box;display:inline-flex;align-items:center;
  justify-content:center;line-height:1;font-family:var(--sans);font-size:12px;
  white-space:nowrap;vertical-align:top;}
.sht-zoom .deck-zoombar .dbtn.rbn-ico{width:26px;padding:0;}
.sht-zoom .deck-zoombar .zb-hist .dbtn.rbn-ico .bic{width:13px;height:13px;
  margin:0;}
/* a drag: the tab picked up dims, a line shows where it will land */
.sht-tab.sht-dragging{opacity:.5;}
body.sht-drag-on,body.sht-drag-on *{cursor:grabbing!important;
  user-select:none!important;}
.sht-mark{position:absolute;top:4px;bottom:4px;width:2px;z-index:2;
  background:var(--accent);border-radius:1px;pointer-events:none;}
.sht-mark[hidden]{display:none;}
/* every tab, listed: its mark, its name, its slides */
.sht-more-menu .vw-opt{display:flex;align-items:center;gap:6px;}
.sht-more-menu .sht-ic{color:var(--sht-c,var(--accent));}
.sht-more-nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.sht-more-n{flex:none;font:10px var(--mono);color:var(--chrome-ink-3);}
.sht-more-menu .vw-opt.on{font-weight:600;
  box-shadow:inset 3px 0 0 var(--sht-c,var(--accent));}
body.light .deck-sheets{border-top-color:#0000001f;}
body.light .sht-tab.on{border-color:#0000001f;}
/* a pane docked on the right stops above the bar */
.deck.editing.sheets-on:not(.sheets-auto) .selpane{
  bottom:calc(var(--sht-h) + 8px);}
/* hiding the ribbon (Ctrl+F1) leaves the bottom tabs where they are; the
   presentations are not a tool */
.sht-hot{display:none;}
.deck.editing.sheets-auto.sheets-on .sht-hot{display:block;position:absolute;
  left:0;right:0;bottom:0;height:10px;z-index:69;}
.deck.editing.sheets-auto .deck-sheets{position:absolute;left:0;right:0;
  bottom:0;z-index:70;transform:translateY(100%);
  transition:transform .16s ease;box-shadow:0 -6px 18px #00000055;}
.deck.editing.sheets-auto.sheets-peek .deck-sheets{transform:none;}
/* its settings, and its menus: rows down, as the strip's menu has them
   (.sh-menu is a grid of swatches by default) */
.sht-menu{display:block;width:250px;min-width:0;max-width:min(340px,92vw);
  max-height:72vh;overflow-y:auto;overflow-x:hidden;}
.sht-menu .hd-lab{margin-top:6px;}
.sht-menu .hd-lab:first-child{margin-top:0;}
.sht-menu .vw-opt{width:100%;text-align:left;}
.sht-check{display:flex;align-items:flex-start;gap:6px;padding:4px 10px 8px;
  font-size:12px;line-height:1.4;color:var(--chrome-ink-2);cursor:pointer;}
body.light .sht-check{color:var(--ink-2);}
/* the keys' switch, under the fold rule in the Parts view; its text is
   short, the rest behind the "?" after it */
.pk-keys{display:flex;align-items:center;padding:4px 10px 8px;}
.pk-keys>.sht-check{padding:0;}
.deck-parts .pk-keys{margin:6px 16px 0;padding:0;max-width:760px;}

/* ---- A binder in the strip and on the tabs ----
   Each presentation of the binder is a heading of its own: the binder's
   mark, its name over where it is from, its count. The one on screen is
   lit over its own slides, the others above and below it, and an open
   one shows its slides as the library's pictures. */
.bnd-block{margin:8px 0 4px;}
.bnd-head{display:grid;grid-template-columns:16px 15px minmax(0,1fr) auto;
  grid-template-areas:"fold ic name n" ". . from from";align-items:center;
  column-gap:4px;row-gap:2px;padding:6px 5px 6px 4px;cursor:pointer;
  border:1px solid #ffffff22;
  border-radius:6px;background:#ffffff08;color:var(--chrome-ink-2);}
.bnd-head:hover{background:var(--surface-hover);color:var(--chrome-ink);}
.bnd-head.on{cursor:default;border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 12%,transparent);
  color:var(--chrome-ink);}
.bnd-fold{grid-area:fold;background:none;border:none;color:inherit;
  font-size:10px;padding:1px 3px;border-radius:4px;cursor:pointer;}
.bnd-fold:disabled{cursor:default;opacity:.7;}
.bnd-ic{grid-area:ic;display:inline-flex;}
.bnd-ic .bic{width:13px;height:13px;}
.bnd-t{grid-area:name;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-family:var(--sans);font-size:11.5px;
  font-weight:600;}
.bnd-n{grid-area:n;justify-self:end;font-family:var(--mono);font-size:9px;
  color:var(--chrome-ink-3);}
.bnd-from{grid-area:from;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-family:var(--mono);font-size:9px;
  color:var(--chrome-ink-3);}
.bnd-pv{margin:4px 0 0 2px;}
.bnd-pv .pv-head{display:none;}
.bnd-pv .pv-list{display:flex;flex-direction:column;gap:6px;}
/* another presentation's slides read as the strip's own rows: the number
   beside the picture, no heading under it */
.bnd-pv .pv-slide{margin:0;cursor:pointer;opacity:.85;flex-direction:row-reverse;
  justify-content:flex-end;align-items:flex-start;gap:6px;}
.bnd-pv .pv-slide figcaption{flex:none;width:18px;font-size:0;
  text-align:right;padding-top:3px;}
.bnd-pv .pv-slide figcaption b{font:10px var(--mono);color:var(--chrome-ink-3);}
.bnd-pv .pv-slide:hover{opacity:1;}
.bnd-pv .pv-slide:hover .mini-diagram{outline:1px solid var(--accent);
  outline-offset:1px;}
/* ---- The picker ----
   Your presentations to tick, by folder, with their slides beside the
   list, and both ways to add at the foot. */
.bnd-pick .bp-body{flex:1;min-height:0;display:grid;
  grid-template-columns:minmax(260px,380px) 1fr;gap:16px;padding:12px 16px 0;}
.bp-col{display:flex;flex-direction:column;min-height:0;gap:8px;}
.bp-find{font:13px var(--sans);padding:6px 10px;border-radius:7px;
  border:1px solid var(--border-strong);background:var(--input-bg);
  color:var(--chrome-ink);}
.bp-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;
  gap:3px;padding:2px;}
.bp-dir{display:flex;align-items:center;gap:6px;margin:8px 0 2px 2px;
  font:600 11px var(--sans);color:var(--chrome-ink-2);}
.bp-dir .bic{width:13px;height:13px;}
.bp-dir[hidden],.bp-row[hidden],.bp-none[hidden]{display:none;}
.bp-row{display:flex;align-items:center;gap:8px;padding:6px 9px;
  border:1px solid #ffffff1a;border-radius:7px;background:#ffffff06;
  color:var(--chrome-ink);cursor:pointer;}
.bp-row:hover{background:#ffffff10;border-color:#ffffff33;}
.bp-row:focus-visible{outline:2px solid var(--focus);outline-offset:-1px;}
.bp-row[aria-selected="true"]{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 14%,transparent);}
/* the tick box: a box, and a tick when chosen */
.bp-box{flex:none;width:15px;height:15px;border-radius:4px;
  border:1.5px solid var(--chrome-ink-3);position:relative;}
.bp-row[aria-selected="true"] .bp-box{background:var(--accent);
  border-color:var(--accent);}
.bp-row[aria-selected="true"] .bp-box::after{content:"";position:absolute;
  left:4px;top:1px;width:4px;height:8px;border:solid var(--on-accent,#06121b);
  border-width:0 2px 2px 0;transform:rotate(45deg);}
.bp-ic{flex:none;display:inline-flex;color:var(--chrome-ink-2);}
.bp-ic .bic{width:14px;height:14px;}
.bp-tx{min-width:0;display:flex;flex-direction:column;gap:1px;}
.bp-nm{font:600 12.5px var(--sans);overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.bp-sub{font:11px var(--sans);color:var(--chrome-ink-2);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.bp-none{margin:6px 2px;font:12px var(--sans);color:var(--chrome-ink-2);}
.bp-pv{min-width:0;min-height:0;overflow:auto;padding-bottom:12px;}
.bp-foot{display:flex;align-items:center;gap:8px;padding:10px 16px;
  border-top:1px solid #ffffff1a;}
.bp-count{font:12px var(--sans);color:var(--chrome-ink-2);}
@media (max-width:720px){
  .bnd-pick .bp-body{grid-template-columns:1fr;}
  .bp-pv{display:none;}
}
body.light .bp-row{background:var(--chrome-1);border-color:var(--chrome-line);
  color:var(--ink);}
body.light .bp-row:hover{border-color:#0000003a;}
body.light .bp-row[aria-selected="true"]{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 12%,var(--chrome-1));}
body.light .bp-foot,body.light .bnd-pick .ovw-head{border-color:var(--chrome-line);}
/* a binder's own preview: its presentations, one picture each */
.pv-binder .pv-mem figcaption b{font:600 11px var(--sans);}
/* a heading of a file in a folder keeps its colour */
.sht-tab.member:not(.run) .sht-ic{color:var(--accent);}
.sht-tab.missing{opacity:.5;text-decoration:line-through;}
body.light .bnd-head{background:#00000006;border-color:#00000022;}
/* slides inside a section step in, so the run is visible without having
   to read the divider each time */
.film-row.in-sec{margin-left:7px;}
/* a version sits under its main, one step further in and dimmed; the one
   being edited is full strength. The main's pill is the fold toggle,
   drawn as a mark so it is never over the thumbnail. */
.film-row.alt{margin-left:18px;opacity:.72;}
.film-row.alt.current{opacity:1;}
.film-row.alt .film-n{color:var(--chrome-ink-3);}
.film-mark.alt-pill{cursor:pointer;background:none;border:1px solid
  var(--chrome-line);color:var(--chrome-ink-2);font:inherit;padding:0 5px;}
.film-mark.alt-pill:hover{color:var(--chrome-ink);}
.film-mark.alt{color:var(--accent);}
/* The current slide remains in a collapsed section so its live thumbnail
   can refresh. It is a real, readable row -- dimming it made the current
   slide look disabled and its controls needlessly hard to hit. */
.film-row.peek{opacity:1;box-shadow:inset 3px 0 0 var(--accent);}
/* One readable column, like the canvas menu below it. The strip's menu
   would otherwise inherit .sh-menu's three-column icon grid, and labels
   such as "New version of this slide" would wrap word by word into tiles
   beside their headings. */
.film-menu{display:block;width:300px;min-width:0;
  max-width:min(340px,92vw);max-height:72vh;
  overflow-y:auto;overflow-x:hidden;}
.film-menu .hd-lab{margin-top:6px;}
.film-menu>.hd-lab:first-child{margin-top:0;}
.film-menu .vw-opt{width:100%;text-align:left;}
.film-menu .vw-opt.on{background:color-mix(in srgb,var(--accent) 22%,
  transparent);color:#fff;}
.film-menu .vw-opt.on::after{content:"on";margin-left:auto;
  font-family:var(--mono);font-size:9px;opacity:.75;}
body.light .film-menu .vw-opt.on{color:var(--ink);}
/* the canvas right-click menu: the film strip's menu is the other
   context menu in the app, so it gets the same width and the same
   left-aligned rows. The one addition is a dead row -- "Nothing copied
   yet" -- which has to read as unavailable rather than broken. */
/* five sections deep with a rich selection, so it scrolls rather than
   running off the bottom of the window */
/* .sh-menu's 3-column 210px grid is for icon galleries; on a word menu it
   wraps labels character by character into thin columns with both
   scrollbars. One readable column, and the long tail folds behind "More"
   (cmFold). */
/* Three columns: about the width it had, two thirds of the height. A long
   label wraps onto a second line rather than being cut. */
.canvas-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:3px 5px;width:540px;min-width:0;max-width:94vw;
  /* the window's height, so More's fold is read whole too */
  max-height:calc(100vh - 16px);
  overflow-y:auto;overflow-x:hidden;}
.canvas-menu .hd-lab{grid-column:1/-1;margin-top:6px;}
/* [hidden] must actually hide: a bare display rule on the class would
   beat the attribute's UA default, which is exactly how the fold shipped
   open in its first screenshot */
.cm-more{grid-column:1/-1;display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 5px;}
.cm-more[hidden]{display:none;}
.cm-more>.hd-lab{grid-column:1/-1;}
.cm-moret{grid-column:1/-1;width:100%;text-align:left;margin-top:6px;
  border-top:1px solid #ffffff1a;border-radius:0;padding-top:8px;}
.canvas-menu .vw-opt{width:100%;min-width:0;text-align:left;padding:4px 7px;
  font-size:11.5px;line-height:1.25;white-space:normal;gap:6px;}
.canvas-menu .vw-opt kbd{font-size:9.5px;padding:0 3px;flex:none;}
.canvas-menu .vw-opt .bic{flex:none;}
.canvas-menu .vw-opt[disabled]{opacity:.45;pointer-events:none;}
/* A button that has been put away. display:none, not [hidden]: showFmt
   owns the attribute and turns controls on and off by kind, so a
   customiser writing the same one would fight it on every click. This
   composes with it, and costs the fit ladder nothing because display:none
   takes no width. */
#edit-tools .rbn-hid{display:none!important;}
.rbn-cust{max-height:74vh;}
.rbn-cust .rbn-crow{gap:3px;min-width:0;}
/* the name takes the column, so the arrows of a column line up */
.rbn-cust .find-ck{flex:1 1 auto;min-width:0;}
.rbn-cust .find-ck span{min-width:0;}
.rbn-cust>.ff-none{grid-column:2/-1;align-self:center;}
.rbn-cust .rbn-move{font-size:11px;line-height:1;padding:2px 6px;
  flex:none;}
/* which lock the selection is in now. Same treatment the View menu's
   toggles use, so "on" reads the same way everywhere. */
.canvas-menu .vw-opt.on{background:color-mix(in srgb,var(--accent) 22%,
  transparent);color:#fff;}
.canvas-menu .vw-opt.on::after{content:"on";margin-left:auto;
  font-family:var(--mono);font-size:9px;opacity:.75;}
body.light .canvas-menu .vw-opt.on{color:var(--ink);}

/* ---- the strip's own resize handle ------------------------------------
   position:fixed, not absolute: .deck-create scrolls, and an absolutely
   positioned child would scroll away from the edge it is supposed to be
   sitting on. The shared rail remains live in the editor, so the handle
   begins after its width rather than at the window's left edge. */
.film-resize{display:none;position:fixed;top:0;bottom:0;width:6px;
  z-index:130;cursor:col-resize;
  left:calc(var(--deck-left,var(--presrail-w)) + clamp(150px,var(--film-w,min(var(--dc-w),200px)),
    var(--film-max,46vw)) - 3px);}
.deck.editing .film-resize{display:block;}
.deck.editing.film-right .film-resize{left:auto;
  right:clamp(150px,var(--film-w,min(var(--dc-w),200px)),var(--film-max,46vw));}
.deck.editing.strip-off .film-resize{display:none;}
/* the handle sits at the column's rendered edge, so it goes where the
   column goes: gone while it is parked, back while it is peeking */
.deck.editing.film-auto .film-resize{display:none;}
.deck.editing.film-auto.film-peek .film-resize{display:block;}
.film-resize:hover,.film-resize.on{
  background:color-mix(in srgb,var(--accent) 40%,transparent);}
/* A grip you can see. A transparent six-pixel handle that only appears
   once the pointer is on it can only be found by accident. Two pixels of
   hairline at mid height is the affordance every panel splitter uses, and
   it costs the column no width. */
.film-resize::before{content:"";position:absolute;left:2px;top:50%;
  width:2px;height:26px;margin-top:-13px;border-radius:1px;
  background:#ffffff2e;}
.film-resize:hover::before,.film-resize.on::before{background:#fff;}
/* The handle stops at the column. top:0/bottom:0 keeps it glued to the
   edge while .deck-create scrolls, but it also lays a 6px dead stripe up
   through the top bar and the tab row, over a slice of the save readout
   or a button, moving with every drag. Those two rows outrank it in their
   own bands. 131 clears the handle's 130 and stays under .vfull (135) and
   .matchbar (150), so nothing that painted over the bar stops doing so. */
.deck-qat,.deck-top,.rbn-tabs{position:relative;z-index:131;}
/* The top bar outranks the tab strip. Its menus float at z-index 240
   inside its own stacking context, which at an equal 131 loses to the
   later tab strip, so the first row of the Help menu would sit under
   Auto-hide and Ribbon layouts. Still under .vfull (135). */
.deck-qat{z-index:132;}
@media(max-width:860px){.film-resize{display:none!important;}}

/* ---- how the slides are listed ---------------------------------------
   The chooser is one line and carries no second copy of anything. It is
   stamped on the LIST rather than on the body or the deck. */
.film-head{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:6px;}
/* never narrower than its own word: the readout beside it is what wraps,
   never "Thumbnails ▾" into three lines */
.film-head .dc-menuwrap{flex:1 0 auto;}
.film-view-btn{width:100%;text-align:left;font-size:11px;padding:4px 8px;
  white-space:nowrap;}
/* headings mode: no picture at all, so the row is one line of text and
   forty slides fit on a laptop screen */
#film-list[data-fv="head"] .film-t{white-space:normal;
  text-overflow:clip;overflow:visible;}
#film-list[data-fv="head"] .film-row.current .film-label{
  flex-direction:row;align-items:center;}
#film-list[data-fv="head"] .film-label{padding:3px 6px;}
/* the outline steps in by heading level, so a deck with sections and
   headings reads as a real table of contents */
#film-list[data-fv="head"] .film-row[data-lvl="1"] .film-t{
  padding-left:9px;}
#film-list[data-fv="head"] .film-row[data-lvl="2"] .film-t{
  padding-left:18px;}
#film-list[data-fv="head"] .film-row[data-lvl="3"] .film-t{
  padding-left:27px;}
/* both: the caption sits under the thumbnail and is allowed to wrap,
   because the point of asking for both is being able to read it */
#film-list[data-fv="both"] .film-label{flex-wrap:wrap;}
#film-list[data-fv="both"] .film-t{white-space:normal;
  text-overflow:clip;overflow:visible;flex-basis:100%;
  line-height:1.35;}
/* the thumbnail follows the column: it is a scale model of the slide, so
   it has the slide's shape and grows with the room it is given */
/* width:100% is only true of the row that stacks. The current row's
   .film-label turns column, so there the thumbnail owns the full width.
   Every other row is a horizontal flex line (number, thumbnail, title),
   where 100% is a promise the row cannot keep: at flex:none the thumbnail
   would take the whole line, push the title and the row's own controls
   to zero width, overflow the row by the number's width, and give
   .film-list (overflow-y:auto, so the x axis computes to auto as well) a
   horizontal scrollbar. Sharing rows shrink to fit instead. */
.film-list .film-row.current .mini-diagram{width:100%;height:auto;
  aspect-ratio:116/66;min-height:var(--mini-h);}
.film-list .film-row:not(.current) .mini-diagram{flex:1 1 auto;
  min-width:0;width:auto;height:auto;aspect-ratio:116/66;
  min-height:var(--mini-h);}
/* ...and the list never scrolls sideways: it is a vertical list, and a
   horizontal scrollbar in it is always a fitting bug, never a feature */
.film-list{overflow-x:hidden;}

/* the sans, as every other control; the mono would make a sentence read as
   code */
.deck-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);
  background:var(--chrome-2,#16273a);border:1px solid var(--cyan);color:var(--chrome-ink);
  font-size:12.5px;font-family:var(--sans);padding:9px 16px;border-radius:8px;
  z-index:120;box-shadow:0 8px 30px #00000066;max-width:80vw;}
/* the editor's toasts keep the ordinary 24px, and only their width is the
   editor's own */
.deck.editing .deck-toast{max-width:min(80vw,760px);}
.deck-toast.over-panel{z-index:430;}   /* over History & co. */
/* the light themes' toast is their own white chrome, so its text is their
   chrome ink; the dark theme's pale text would be all but invisible on
   it. Its Undo and Update replies live here. */
body.light .deck-toast{color:var(--chrome-ink);}
/* Live share. The pill sits in the title row beside the save readout; the
   File row wears its "prototype" tag. */
.live-pill{font-size:12px;padding:2px 10px;border-radius:999px;
  white-space:nowrap;flex:none;}
.live-pill::before{content:"";display:inline-block;width:7px;height:7px;
  border-radius:50%;background:#3fb950;margin-right:6px;vertical-align:1px;}
.live-pill.live-off::before{background:#d29922;}
/* the live panel: People, Links, Changes, Chat. Docked at the right under
   the title row, above the stage (the z ladder: past the column's 120) */
.live-panel{position:fixed;right:12px;top:76px;width:340px;z-index:140;
  max-height:calc(100vh - 100px);display:flex;flex-direction:column;
  background:var(--chrome-2,#16273a);color:var(--chrome-ink);
  border:1px solid color-mix(in srgb,var(--chrome-ink) 22%,transparent);
  border-radius:10px;box-shadow:0 16px 48px #0008;font-size:12.5px;}
.live-panel[hidden]{display:none;}
.live-head{display:flex;align-items:center;gap:6px;padding:8px 10px 4px;}
.live-title{font-weight:600;font-size:13px;}
.live-tabs{display:flex;gap:4px;padding:4px 10px 8px;flex-wrap:nowrap;}
.live-tabs .dbtn.on{outline:2px solid var(--cyan);}
.live-body{overflow:auto;padding:0 10px 10px;display:flex;
  flex-direction:column;gap:8px;}
.live-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.live-row .ask-in{flex:1;min-width:0;}
.live-note{opacity:.8;line-height:1.4;}
.live-who{font-weight:600;}
.live-link,.live-log,.live-msg{border-radius:8px;padding:8px;
  background:color-mix(in srgb,var(--chrome-ink) 7%,transparent);
  display:flex;flex-direction:column;gap:6px;}
.live-msg.mine{background:color-mix(in srgb,var(--cyan) 14%,transparent);}
.live-what{text-align:left;}
.live-chat{display:flex;flex-direction:column;gap:6px;max-height:46vh;
  overflow:auto;}
/* a private question, only the host's and its writer's */
.live-msg.live-priv{border:1px dashed
  color-mix(in srgb,var(--chrome-ink) 45%,transparent);}
.live-chat-form{display:flex;flex-direction:column;gap:6px;}
/* the presenter's own panel is off the slide while presenting -- it would
   be on the projector (a follower's chat stays) */
.deck:not(.editing):not(.creating):not(.live-follower) .live-panel{
  display:none;}
/* the chat page: a window of its own (a new window, another computer) */
.live-chatpage{position:fixed;inset:0;z-index:2147483000;display:flex;
  flex-direction:column;gap:10px;padding:14px 16px;
  background:var(--chrome-2,#162735);color:var(--chrome-ink,#cdd9e3);
  font-size:14px;}
.live-cp-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;}
.live-cp-count{opacity:.8;font-size:12.5px;}
.live-chatpage .live-cp-list{flex:1 1 auto;max-height:none;min-height:0;}
.live-check{cursor:pointer;flex-wrap:nowrap;align-items:flex-start;}
/* the text beside its box, wrapping there, not under it */
.live-check>span{flex:1 1 0;min-width:0;line-height:1.35;}
/* the link this admin came in by */
.live-mine{font-size:11px;font-weight:600;padding:1px 6px;
  border-radius:999px;border:1px solid currentColor;opacity:.85;}
/* copies off: no Download, no Export, while the live deck is on screen for
   someone who is not an admin */
.deck.live-nocopy #mi-dl,.deck.live-nocopy #mi-pdf,
.deck.live-nocopy #mi-pptx,.deck.live-nocopy #mi-html,
.deck.live-nocopy #mi-pic,.deck.live-nocopy #mi-pic-copy,
.deck.live-nocopy #hm-picwrap,.deck.live-nocopy #sb-picwrap,
.deck.live-nocopy #mi-review,.deck.live-nocopy #mi-bdl,
.deck.live-nocopy #mi-tocol,.deck.live-nocopy #mi-unlinked{display:none;}
/* Follow along: the follower's bar under the slide, and the presenter's
   pointer on it. Above the stage and the column (the z ladder), beside
   the live panel's 140. */
.live-follow{position:fixed;left:0;right:0;top:10px;margin:0 auto;
  width:max-content;z-index:150;display:flex;align-items:center;gap:8px;
  max-width:calc(100% - 24px);padding:6px 8px 6px 14px;border-radius:999px;
  background:var(--chrome-2,#16273a);color:var(--chrome-ink,#fff);
  border:1px solid color-mix(in srgb,var(--chrome-ink) 22%,transparent);
  box-shadow:0 8px 28px #0008;font-size:12.5px;}
.live-follow[hidden]{display:none;}
.live-follow-what{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  min-width:0;}
.live-follow-row{display:flex;align-items:center;gap:6px;flex:none;
  flex-wrap:nowrap;}
.live-follow-off{opacity:.75;white-space:nowrap;}
.live-follow .dbtn{white-space:nowrap;}
@media (max-width:640px){
  .live-follow{flex-direction:column;align-items:stretch;border-radius:12px;
    top:6px;padding:6px 4px;gap:6px;max-width:calc(100% - 8px);}
  .live-follow-what{text-align:center;}
  .live-follow-row{justify-content:center;gap:3px;}
  .live-follow-row .dbtn{padding-left:5px;padding-right:5px;font-size:11px;}
}
/* ...and the presenter's own chrome is not a follower's: the side panes
   (the speaker notes among them), the show's controls, the talk panel */
.deck.live-follower #pane-tabs,.deck.live-follower #deck-top-handle,
.deck.live-follower #deck-top-bar,.deck.live-follower #talkbtn,
.deck.live-follower #talkpane,.deck.live-follower #notespane,
.deck.live-follower #selpane,.deck.live-follower #linkpane{display:none
  !important;}
/* the presenter's mouse pointer, as an arrow and nothing else, with no
   name. The laser and the magnifier are the show's own
   (51-talk-tools.js talkPointAt). */
.live-lead-dot{position:fixed;z-index:149;width:18px;height:24px;
  margin:0;pointer-events:none;
  transition:left .12s linear,top .12s linear;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.55));}
.live-lead-dot svg{display:block;width:100%;height:100%;}
.live-lead-dot[hidden]{display:none;}
/* sharing paused: the follower no longer sees the slide */
.live-paused{position:fixed;inset:0;z-index:148;display:flex;
  align-items:center;justify-content:center;flex-direction:column;gap:8px;
  background:#0b0f14;color:#e6edf3;font-family:var(--sans);
  text-align:center;padding:16px;}
.live-paused[hidden]{display:none;}
.live-paused b{font-size:22px;font-weight:600;}
.live-paused span{font-size:14px;opacity:.75;max-width:30em;}
/* the Live / Paused switch beside Present: red while the people following
   along see this, plain and dashed while paused */
.live-air{margin-left:6px;}
.live-air[hidden]{display:none!important;}
.live-air[aria-pressed="true"]{background:#c62828;border-color:#c62828;
  color:#fff;}
.live-air[aria-pressed="false"]{border-style:dashed;}
/* the initials of whoever else is on a slide, on its thumbnail */
.film-row.live-on{position:relative;}
.live-here{position:absolute;top:4px;right:6px;z-index:2;font-size:10px;
  font-weight:600;line-height:1;padding:3px 5px;border-radius:999px;
  background:#3fb950;color:#04140a;pointer-events:auto;
  box-shadow:0 1px 3px #0006;}
.live-proto{font-size:10px;
  border:1px solid currentColor;border-radius:4px;padding:0 4px;
  margin-left:6px;opacity:.75;}
/* the editor's questions: their title would otherwise keep the dark
   theme's near-white over the light box (every askText goes through it) */
body.light .eq-t,body.light .aa-head .eq-t,
body.light .eq-head .eq-t{color:var(--chrome-ink);}

@media (max-width:860px){
  .deck-stage{padding:16px 52px 4px;}
  .deck-drawer{padding:12px 20px 18px;}
  .slide-grid.halves,.slide-grid.quarters{grid-template-columns:1fr;
    grid-template-rows:none;grid-auto-rows:1fr;}
}
@media (prefers-reduced-motion:reduce){.slide{animation:none;}}

/* drag-to-trim: four accent edge handles; the live clip is the preview */
.an-crop-h{position:absolute;background:var(--accent);border:1px solid
  #00000055;border-radius:4px;z-index:8;}
.an-crop-t,.an-crop-b{left:50%;margin-left:-16px;width:32px;height:9px;
  cursor:ns-resize;}
.an-crop-l,.an-crop-r{top:50%;margin-top:-16px;width:9px;height:32px;
  cursor:ew-resize;}
.ci-trim{display:block;width:100%;text-align:left;background:none;
  border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);
  color:var(--accent);border-radius:7px;padding:7px 10px;cursor:pointer;
  font-family:var(--sans);font-size:12px;margin-bottom:6px;}
.ci-trim:hover{background:color-mix(in srgb,var(--accent) 14%,transparent);}

/* a table in a thumbnail: the words are a smudge at 116px but the SHAPE
   of a table is unmistakable, which is what a thumbnail is for */
.mini-tbl{width:100%;height:100%;border-collapse:collapse;
  table-layout:fixed;line-height:1.05;}
/* its rules are the slide's (--tbl-line, from tableLine, as the canvas
   sets it) and its text the thumbnail's own ink. A literal colour here
   would draw every table the same whatever the theme says. */
.mini-tbl td,.mini-tbl th{border:.5px solid var(--tbl-line,currentColor);
  padding:0 .2em;
  overflow:hidden;white-space:nowrap;text-align:left;font-weight:inherit;}
.mini-tbl th{font-weight:700;
  background:color-mix(in srgb,currentColor 18%,transparent);}
.mini-tbl.nogrid td,.mini-tbl.nogrid th{border-color:transparent;}

/* ---- Repeated page furniture ----
   Sized in percent of page height, like text items, so a watermark reads
   the same on a 16:9 slide and on an A0 poster. */
.slide-wmark{position:absolute;left:50%;top:50%;z-index:0;
  pointer-events:none;user-select:none;white-space:nowrap;
  font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  line-height:1;color:currentColor;}
.slide-head,.slide-foot{position:absolute;left:4%;right:4%;
  pointer-events:none;color:var(--tk-quiet,var(--chrome-ink-2));
  line-height:1.2;}
.slide-head{top:2.4%;}
.slide-foot{bottom:2.4%;}
.page-light .slide-head,.page-light .slide-foot{
  color:var(--tk-quiet,#5b6b78);}
/* the number sits at the corner, so a footer spanning the page must not
   run underneath it */
.slide-foot{padding-right:3.5%;}
/* the name of the presentation the slide is in, in a corner */
.slide-pzlabel{position:absolute;z-index:4;max-width:44%;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;line-height:1.2;
  pointer-events:none;color:var(--tk-quiet,var(--chrome-ink-2));}
.page-light .slide-pzlabel{color:var(--tk-quiet,#5b6b78);}
.slide-pzlabel.at-bl,.slide-pzlabel.at-tl{left:4%;}
.slide-pzlabel.at-br,.slide-pzlabel.at-tr{right:4%;text-align:right;}
.slide-pzlabel.at-bl,.slide-pzlabel.at-br{bottom:2.4%;}
.slide-pzlabel.at-tl,.slide-pzlabel.at-tr{top:2.4%;}
/* the page number has the bottom-right corner: the name stands left of it */
.slide-pzlabel.at-br{right:9%;}

/* ---- The Styles menu ----
   Each row is a specimen of the style it names, so you pick by looking
   rather than by reading a number. */
/* It scrolls. With a family under each heading the list can pass the
   viewport, and floatMenu clamps a menu's top edge without ever scrolling
   it, so the bottom rows would be lost with no scrollbar. */
.sh-menu.style-tx-menu{display:block;width:380px;padding:5px;
  max-height:min(68vh,520px);overflow-y:auto;}
/* a variation sits under the type it varies, and says so by sitting in */
.style-tx-menu .jv-styleopt.jv-stylevar{padding-left:20px;position:relative;}
.style-tx-menu .jv-styleopt.jv-stylevar::before{content:"";position:absolute;
  left:9px;top:50%;width:5px;height:1px;background:var(--chrome-ink-3);}
.jv-styleopt{display:flex!important;align-items:baseline;
  justify-content:space-between;gap:10px;width:100%;text-align:left;}
.jv-stylename{line-height:1.15;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.jv-stylesz{font-family:var(--mono);font-size:9.5px;color:var(--chrome-ink-2);
  flex:none;}
.style-tx-menu .vw-opt[disabled]{opacity:.4;pointer-events:none;}

/* ---- Spotlight: one item, blown up mid-talk ----
   A FLIP, not a fade: the clone starts exactly over the original and is
   transformed to the centre, so it grows out of where it was and the
   original never moves. */
.jv-spot-wrap{position:fixed;inset:0;z-index:400;
  background:#000000;opacity:0;transition:opacity .2s ease;
  cursor:zoom-out;}
.jv-spot-wrap.on{opacity:.93;}
.jv-spot-inner{position:fixed;transform-origin:50% 50%;
  transition:transform .26s cubic-bezier(.22,.8,.3,1);
  will-change:transform;}
/* the clone paints above the backdrop, which is the whole point */
.jv-spot-wrap .jv-spot-inner{z-index:1;}
.jv-spot-x{position:fixed;top:16px;right:18px;z-index:2;
  background:#ffffff14;border-color:#ffffff3d;color:#eaf2f8;}
.jv-spot-x:hover{background:#ffffff26;border-color:var(--cyan);}
/* while a spotlight is up, the deck underneath must not react to
   anything - the click that closes it is the only one that counts */
body.jv-spot .deck-stage{pointer-events:none;}
/* an item you can blow up says so on hover, and only while presenting */
.deck:not(.editing) .an-item{transition:filter .12s;}

/* ---- The fill panel ----
   Every chip is drawn with the shape's own colours, so the preview is the
   answer rather than an illustration of one. */
.sh-menu.fill-panel{display:block;width:268px;padding:6px 7px 8px;}
.fill-row{display:flex;flex-wrap:wrap;gap:5px;margin:3px 0 7px;}
.fill-chip{padding:0;background:none;border:1px solid transparent;
  border-radius:5px;cursor:pointer;line-height:0;display:block;}
.fill-chip:hover{border-color:var(--cyan);}
.fill-chip.on{border-color:var(--cyan);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 45%,transparent);}
.fill-chip svg{display:block;border-radius:4px;}
.fill-dot{width:20px;height:20px;border-radius:5px;display:block;
  border:1px solid #ffffff33;}
/* the custom-colour dot is the spectrum, so it reads as "anything else" */
.fill-custom{background:conic-gradient(#e5484d,#f0a848,#46a892,#39a9c0,
  #6b9bff,#a586e8,#e5484d);}

/* rename a layer in place, like the group folders above it */
.sp-rename{flex:1;min-width:0;font-family:var(--sans);font-size:11.5px;
  background:var(--chrome-0,#0b141d);color:var(--chrome-ink);
  border:1px solid var(--cyan);border-radius:5px;padding:1px 5px;
  outline:none;}

/* the "match another slide" picker: one row per other slide, numbered */
.sh-menu.match-menu{position:fixed;z-index:220;display:block;
  width:236px;padding:5px;max-height:60vh;overflow-y:auto;}
.match-menu .vw-opt{width:100%;text-align:left;}
#objmatch-menu{width:min(310px,94vw);}
.sh-menu.lh-menu.opt-panel{min-width:min(392px,94vw);}
/* The Update menu is a list, not .sh-menu's three-column grid. Its rows
   are phrases ("The whole presentation", "Load locked versions"), and in a
   210px grid each would wrap into a four-line cell. One per row, full
   width, left aligned. Both class names are needed, because .sh-menu's
   grid comes later in this file. */
.sh-menu.upd-menu{display:block;width:250px;padding:5px;}
.upd-menu .dbtn{display:flex;width:100%;text-align:left;
  white-space:normal;margin-top:3px;}
.upd-menu .dbtn[disabled]{opacity:.45;}
/* the folded View group's menu. A row stands in for a toggle button, so it
   has to show the toggle's state, or folding the group would lose it. */
/* A list, one row per control. .sh-menu's three-column grid would squeeze
   the rows into 60px cells, spill their "on" out of them and give each
   heading a cell. */
.sh-menu.vw-more-menu{display:flex;flex-direction:column;gap:3px;
  width:auto;min-width:200px;max-height:calc(100vh - 140px);overflow-y:auto;}
.vw-more-menu .vw-opt{width:100%;text-align:left;}
/* Overlay options: three short lists, a row a choice */
.sh-menu.opt-panel.ovl-panel{min-width:250px;}
.ovl-now{margin:2px 2px 4px;max-width:300px;white-space:normal;
  font:12px/1.4 var(--sans);color:var(--muted,#8a99a8);}
.ovl-opt{display:flex;align-items:center;gap:7px;padding:4px 2px;
  font:12.5px var(--sans);color:var(--chrome-ink);cursor:pointer;
  white-space:nowrap;}
.ovl-opt>input{margin:0;flex:none;accent-color:var(--accent);}
.ovl-kinds{display:grid;grid-template-columns:auto auto;column-gap:14px;
  justify-content:start;}
.ovl-num,.ovl-sec{flex:none;font:inherit;font-size:12px;
  padding:2px 4px 2px 6px;border:1px solid var(--chrome-line);
  border-radius:5px;background:var(--chrome-1,#0f1b26);
  color:var(--chrome-ink,#d7e3ec);}
.ovl-num{width:52px;}
.ovl-sec{max-width:190px;}
.vw-more-menu .vw-opt.on{background:color-mix(in srgb,var(--accent) 22%,
  transparent);border-color:var(--accent);color:#fff;}
.vw-more-menu .vw-opt.on::after{content:"On";margin-left:auto;
  font:600 10.5px var(--sans);opacity:.85;}
body.light .vw-more-menu .vw-opt.on{color:var(--ink);}

/* ---- The equation editor ----
   Type on the left, see it set on the right. The palette saves
   remembering every command. */
.eq-dlg{position:fixed;inset:0;z-index:260;display:flex;
  align-items:center;justify-content:center;background:var(--overlay);}
.eq-dlg[hidden]{display:none!important;}
.eq-box{width:min(820px,94vw);max-height:88vh;display:flex;
  flex-direction:column;gap:8px;padding:12px 13px 11px;
  background:var(--chrome-2);border:1px solid var(--chrome-line);
  border-radius:12px;box-shadow:0 24px 70px var(--shadow);
  font-family:var(--sans);}
.eq-head{display:flex;align-items:center;gap:8px;}
/* a dialog's title is a title; a column's heading is a heading */
.eq-t{font-family:var(--sans);font-size:12.5px;font-weight:600;letter-spacing:0;
  text-transform:none;color:var(--chrome-ink);}
.aa-head .eq-t,.eq-head .eq-t{font-size:15px;color:var(--chrome-ink);}
.aa-box .dbtn,.eq-box .dbtn{font-family:var(--sans);font-size:12.5px;}
.eq-main{display:flex;gap:10px;min-height:0;flex:1;}
.eq-left{flex:1.15;min-width:0;display:flex;flex-direction:column;gap:7px;}
.eq-right{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;}
.eq-src{height:92px;resize:vertical;font-family:var(--mono);
  font-size:12.5px;line-height:1.5;background:var(--chrome-0,#0b141d);
  color:#eaf2f8;border:1px solid #ffffff26;border-radius:7px;
  padding:7px 9px;outline:none;}
.eq-src:focus{border-color:var(--cyan);}
.eq-pal{flex:1;min-height:0;overflow-y:auto;padding-right:2px;}
.eq-palh{font:600 11.5px var(--sans);color:var(--chrome-ink-2);margin:7px 0 3px;}
.eq-palrow{display:flex;flex-wrap:wrap;gap:3px;}
/* Big enough to read the glyph. These keys are set in maths so you can
   find sigma by looking for a sigma; at 11px in a 24px box a sigma and a
   summation sign are the same smudge. */
.eq-key{font-family:var(--mono);font-size:12.5px;padding:4px 8px;
  min-width:34px;background:var(--btn-bg,#ffffff0a);
  border:1px solid var(--btn-border,#ffffff22);border-radius:5px;
  color:var(--btn-ink,#cdd9e3);cursor:pointer;}
.eq-key:hover{border-color:var(--cyan);color:var(--chrome-ink);}
.eq-plab{font:600 11.5px var(--sans);color:var(--chrome-ink-2);}
.eq-prev{flex:1;min-height:120px;overflow:auto;display:flex;
  align-items:center;justify-content:center;text-align:center;
  background:var(--chrome-0,#0b141d);border:1px solid #ffffff1f;
  border-radius:7px;padding:10px;color:#eaf2f8;font-size:17px;}
.eq-warn{font-size:11px;line-height:1.4;
  color:color-mix(in srgb,#cf9a4e 40%,var(--chrome-ink));background:#cf9a4e1f;border:1px solid #cf9a4e4d;border-radius:6px;
  padding:6px 8px;}
.eq-foot{display:flex;align-items:center;gap:8px;}
body.light .eq-box{background:var(--chrome-2);
  border-color:var(--chrome-line);}

/* ---- the Apply dialog -------------------------------------------------
   Same shell as the equation editor, two columns wide instead of one. */
.aa-dlg{position:fixed;inset:0;z-index:260;display:flex;
  align-items:center;justify-content:center;background:var(--overlay);}
.aa-dlg[hidden]{display:none!important;}
/* The question is asked from the page body while the editor is hidden
   (askHost), out of reach of `.deck [hidden]`. Without this a question
   with no `what` would show an empty .aa-what box (display:flex beats the
   browser's own [hidden]) from the reader and the library. */
.ask-dlg [hidden]{display:none!important;}
/* the Style sets picker opened from the Style system sits over that
   screen (z-index 400), not under it */
.aa-dlg.over-design{z-index:410;}
/* the editor's own question sits over every other dialog and menu (the
   apply dialog, the masters panel, the library) */
.aa-dlg.ask-dlg{z-index:300;}
.aa-dlg.ask-dlg.over-design{z-index:420;}
.ask-box{width:min(440px,94vw);}
.ask-lab{font-family:var(--sans);font-size:12.5px;color:var(--chrome-ink-2);}
.ask-in{width:100%;box-sizing:border-box;font:13.5px var(--sans);
  padding:7px 9px;border-radius:7px;color:var(--chrome-ink);
  background:var(--chrome-0,#0b141d);border:1px solid var(--chrome-line);}
.ask-in:focus{outline:none;border-color:var(--accent,var(--cyan));}
.ask-area{resize:vertical;min-height:84px;font:12.5px var(--mono);
  line-height:1.45;}
/* the small form: label column, field column, a note under a row spanning
   both */
.ask-rows{display:grid;grid-template-columns:auto minmax(0,1fr);
  gap:8px 12px;align-items:center;}
.ask-rows[hidden]{display:none;}
/* a row shown only for some answers (askRowsBuild's `when`): its cell is
   a flex box, which [hidden] alone does not hide */
.ask-rows>[hidden]{display:none;}
.ask-row-lab{font-family:var(--sans);font-size:12.5px;
  color:var(--chrome-ink-2);white-space:nowrap;}
.ask-row-cell{display:flex;align-items:center;gap:8px;min-width:0;}
.ask-rows .ask-in{flex:1 1 auto;}
.ask-rows .ask-num{flex:0 0 84px;width:84px;}
.ask-rows .ask-sel{flex:0 0 auto;width:auto;min-width:120px;padding:5px 8px;
  max-width:100%;}
.ask-rows .ask-range{flex:1 1 auto;min-width:0;accent-color:var(--cyan);}
.ask-rows .ask-check{width:16px;height:16px;accent-color:var(--cyan);
  margin:0;}
.ask-rows .ask-color{width:40px;height:26px;padding:0;border:1px solid
  var(--chrome-line);border-radius:6px;background:none;cursor:pointer;}
.ask-rows .ask-clear{font-size:11px;padding:4px 8px;}
.ask-rows .ask-clear[aria-pressed="true"]{border-color:var(--cyan);
  color:var(--chrome-ink);}
.ask-rows .ask-color:has(+.ask-clear[aria-pressed="true"]){opacity:.35;}
.ask-unit{font-family:var(--sans);font-size:11.5px;color:var(--chrome-ink-3);
  white-space:nowrap;}
.ask-row-note{grid-column:1/-1;font-family:var(--sans);font-size:11.5px;
  color:var(--chrome-ink-3);line-height:1.45;margin-top:-4px;}
/* a day, picked from the browser's calendar (as a note's reminder has it),
   and an answer that is not one said under its row */
.ask-rows .ask-date{flex:0 0 auto;width:auto;min-width:150px;color-scheme:dark;}
body.light .ask-rows .ask-date{color-scheme:light;}
.ask-rows .ask-in[aria-invalid="true"]{border-color:var(--danger);}
.ask-row-note.ask-row-bad{color:var(--danger);}
.ask-dlg.ask-form .ask-box{width:min(520px,94vw);}
/* a yes/no or a notice keeps the paragraph breaks and bullets of what it
   is asking about ("this will not come across: • …") */
.ask-dlg.ask-yes .aa-what{white-space:pre-line;}
/* the question's own width: `.aa-box` (760px, declared later at the same
   weight) would win over `.ask-box`, putting a one-line name field in a
   box the width of the Apply dialog */
.aa-box.ask-box{width:min(460px,94vw);}
.ask-dlg.ask-form .aa-box.ask-box{width:min(520px,94vw);}
/* ...and a verb that destroys is red, filled, so "Delete presentation"
   never wears the same cyan as "Save and close" */
.ask-dlg .dbtn.primary.dbtn-warn{background:var(--danger);
  border-color:var(--danger);color:var(--on-accent);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--danger) 40%,transparent),
    0 2px 12px color-mix(in srgb,var(--danger) 35%,transparent);}
.ask-dlg .dbtn.primary.dbtn-warn:hover{
  background:color-mix(in srgb,var(--danger) 86%,black);color:var(--on-accent);}
.aa-box{width:min(760px,94vw);max-height:88vh;display:flex;
  flex-direction:column;gap:9px;padding:12px 13px 11px;
  background:var(--chrome-2);border:1px solid var(--chrome-line);
  border-radius:12px;box-shadow:0 24px 70px var(--shadow);
  font-family:var(--sans);}
.aa-head{display:flex;align-items:center;gap:8px;}
/* positioned, so the type menu (.sh-menu, absolute) opens under the chip
   and not 5px below the bottom of the window */
.aa-what{position:relative;font-size:13px;color:var(--chrome-ink);line-height:1.5;
  background:var(--chrome-0,#0b141d);border:1px solid #ffffff1a;
  border-radius:8px;padding:8px 10px;display:flex;align-items:center;
  gap:7px;flex-wrap:wrap;}
/* the type chip borrows the treatment a pressed option already has, so a
   highlight the app has never used before does not have to be invented */
.aa-chip{font-family:var(--mono);font-size:11px;letter-spacing:.05em;
  padding:2px 8px;border-radius:11px;
  background:color-mix(in srgb,var(--accent) 14%,transparent);
  border:1px solid color-mix(in srgb,var(--accent) 55%,transparent);
  color:var(--accent);}
.aa-chipbtn{cursor:pointer;font-family:var(--mono);}
.aa-chipbtn:hover{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 32%,transparent);}
.aa-typemenu{min-width:250px;}
.aa-n{margin-left:auto;font-family:var(--mono);font-size:11px;
  color:var(--chrome-ink-2);}
.aa-main{display:flex;gap:11px;min-height:0;flex:1;}
.aa-col{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;}
.aa-colh{display:flex;align-items:center;gap:6px;padding-bottom:5px;
  border-bottom:1px solid #ffffff14;}
.aa-b{padding:3px 9px;font-size:11.5px;}
.aa-props{max-height:52vh;overflow-y:auto;padding-right:3px;}
.aa-scope{max-height:52vh;overflow-y:auto;padding-right:3px;}
.aa-props .find-ck,.aa-scope .find-ck{padding:2px 3px;border-radius:5px;}
.aa-props .find-ck:hover,.aa-scope .find-ck:hover{background:#ffffff0d;}
/* a row that does not fit the selected item is greyed and explained, not
   hidden: a list that reshuffles itself when you click a different object
   is a list you have to re-read every time */
.aa-props .find-ck.aa-no{opacity:.42;}
.aa-props .find-ck.aa-no input{cursor:not-allowed;}
.aa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:0 9px;}
.aa-sech{display:flex;align-items:center;gap:5px;margin:5px 0 2px;
  font:600 11.5px var(--sans);color:var(--accent);}
.aa-slide-n{font-family:var(--mono);font-size:9.5px;color:var(--chrome-ink-3);
  width:16px;flex:none;text-align:right;}
.aa-slide-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  min-width:0;}
.aa-foot{display:flex;align-items:center;gap:8px;}
/* a dialog's verbs keep their text on one line; the note beside them is
   what wraps */
.aa-foot>.dbtn{flex:none;white-space:nowrap;}
.aa-tie{display:inline-flex;align-items:center;gap:6px;
  font-family:var(--sans);font-size:11.5px;color:var(--chrome-ink-2);
  cursor:pointer;white-space:nowrap;}
.aa-tie[hidden]{display:none!important;}
.aa-tie input{margin:0;cursor:pointer;}
.aa-tie:hover{color:var(--chrome-ink);}
.aa-count{font-family:var(--sans);font-size:12px;color:var(--chrome-ink-2);}
/* the matching items on the slide behind, outlined while you hover the
   headline — a pure class toggle over nodes that are already rendered */
.an-typematch{outline:2px dashed var(--accent)!important;
  outline-offset:2px;}
body.light .aa-box{background:var(--chrome-2);
  border-color:var(--chrome-line);}
/* a dialog's title in the light theme is the theme's ink, not the dark
   theme's near-white */
body.light .aa-head .eq-t,body.light .eq-head .eq-t{color:var(--chrome-ink);}
body.light .aa-what{background:var(--chrome-1,#f4f7fa);
  border-color:var(--line);color:var(--ink);}
body.light .aa-props .find-ck:hover,
body.light .aa-scope .find-ck:hover{background:var(--surface-hover);}
body.light .eq-src,body.light .eq-prev{background:var(--paper-2);
  color:var(--ink);border-color:var(--line);}
/* a typeset key needs room for a fraction without growing the whole row */
.eq-key-tex{font-size:15.5px;padding:4px 8px;min-height:32px;
  display:inline-flex;align-items:center;justify-content:center;}
.eq-key-tex mjx-container{margin:0!important;}

/* ---- the style manager: a specimen per style, sized by its own rule --- */
/* a long list (seven rows plus the types you add plus an open editor) can
   pass the viewport, and floatMenu clamps a menu's top edge without ever
   scrolling it */
.sh-menu.style-mgr{display:block;width:292px;padding:6px;
  max-height:min(70vh,520px);overflow-y:auto;}
.stm-arrow{font-size:9px;padding:1px 5px;}
/* the arrow's expander: one at a time, inline, indented under its row so
   it reads as belonging to it rather than as another style */
.stm-edit{margin:2px 3px 7px 10px;padding:7px 8px;border-radius:7px;
  background:var(--chrome-0,#0b141d);border:1px solid #ffffff14;
  display:flex;flex-direction:column;gap:6px;}
.stm-erow{display:flex;gap:4px;flex-wrap:wrap;}
.stm-tg{flex:none;padding:2px 8px;font-size:11px;line-height:1.4;}
.stm-tg[aria-pressed="true"]{border-color:var(--cyan);color:var(--chrome-ink);
  background:color-mix(in srgb,var(--accent) 22%,transparent);}
.stm-ren{width:100%;box-sizing:border-box;font-size:11.5px;
  padding:4px 7px;border-radius:6px;background:var(--chrome-1,#0e1926);
  border:1px solid #ffffff26;color:#eaf2f8;outline:none;
  font-family:var(--sans);}
.stm-ren:focus{border-color:var(--cyan);}
.style-mgr .stm-edit .vw-opt{margin-top:0;}
body.light .stm-edit{background:var(--chrome-1,#f4f7fa);
  border-color:var(--line);}
body.light .stm-ren{background:var(--input-bg);
  border-color:var(--border-strong);color:var(--ink);}
.stm-row{display:flex;align-items:center;gap:6px;padding:2px 3px;}
.stm-empty{padding:7px 4px;color:var(--chrome-ink-2);font-size:11.5px;
  line-height:1.4;}
.stm-spec{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;line-height:1.15;}
.stm-sz{font-family:var(--mono);font-size:9.5px;color:var(--chrome-ink-2);flex:none;}
.stm-b{flex:none;padding:1px 7px;font-size:11px;line-height:1.4;}
.style-mgr .vw-opt{width:100%;margin-top:5px;}

/* ---- notes & timing pane -------------------------------------------- */
.notespane .selpane-list{display:flex;flex-direction:column;gap:5px;
  padding:9px 10px;}
.np-lab{font-family:var(--sans);font-size:11px;font-weight:600;
  letter-spacing:0;color:var(--chrome-ink-2);margin-top:4px;}
.np-notes{min-height:150px;resize:vertical;font-family:var(--sans);
  font-size:12.5px;line-height:1.5;background:var(--chrome-0,#0b141d);
  color:#eaf2f8;border:1px solid #ffffff26;border-radius:7px;
  padding:7px 8px;outline:none;}
.np-notes:focus{border-color:var(--cyan);}
.np-row{display:flex;align-items:center;gap:6px;}
.np-goal{width:74px;font-family:var(--mono);font-size:12px;
  background:var(--chrome-0,#0b141d);color:#eaf2f8;
  border:1px solid #ffffff26;border-radius:6px;padding:4px 6px;
  outline:none;}
.np-goal:focus{border-color:var(--cyan);}
.np-unit{font-family:var(--mono);font-size:10.5px;color:var(--chrome-ink-2);}
.np-clear{padding:2px 7px;font-size:10px;}
.np-tot{font-family:var(--mono);font-size:10.5px;line-height:1.45;
  color:var(--chrome-ink-2);background:#ffffff0a;border-radius:6px;padding:6px 8px;}
.np-tot:empty{display:none;}
/* over your slot is the one thing here worth alarming about */
.np-tot.over{color:color-mix(in srgb,#cf9a4e 40%,var(--chrome-ink));
  background:#cf9a4e1f;}
body.light .np-notes,body.light .np-goal{background:var(--paper-2);
  color:var(--ink);border-color:var(--line);}
/* the Present split button */
.qat-playgrp{display:inline-flex;align-items:stretch;flex:none;}
.qat-playgrp #dc-playmore{padding:4px 7px;}

/* Change case: five worded rows, each written in the case it makes, and
   the key that steps through them */
.sh-menu.case-menu{display:flex;flex-direction:column;width:224px;
  padding:6px;gap:3px;}
.case-menu .case-key{font-size:11px;line-height:1.35;
  color:var(--chrome-ink-2);padding:6px 4px 2px;}
/* line + paragraph spacing */
.sh-menu.lh-menu{display:block;width:186px;padding:5px;}
.lh-menu .vw-opt{width:100%;text-align:left;}
#hm-upd-menu .vw-opt{width:100%;text-align:left;}
/* Paragraph spacing is the gap between paragraphs, so it lands on every
   paragraph but the first, whether a bullet or a plain line. Between two
   bullets it replaces their .18em; next to one it is never less. */
.an-p+.an-p{margin-top:var(--an-pspace,0px);}
/* the space after a paragraph (a.paft): padding, so it adds to the next
   one's space before as PowerPoint's does, where margins would merge */
.an-p{padding-bottom:var(--an-paft,0px);}
.an-p[data-list]+.an-p[data-list]{margin-top:var(--an-pspace,.18em);}
.an-p+.an-p[data-list]{margin-top:max(.18em,var(--an-pspace,0px));}
.an-tx br{content:"";display:block;margin-top:var(--an-pspace,0);}
/* a box whose gap between paragraphs was set (a.pspace, none included), as
   a .pptx's is, has that gap and no list margins */
.an-text.an-pgap .an-p[data-list]{margin-top:0;margin-bottom:0;}
.an-text.an-pgap .an-p+.an-p{margin-top:var(--an-pspace,0px);}
/* A paragraph's own style and alignment (a logbook's headings sit inside
   the running text, one style a paragraph, as in a word processor). Sizes
   are em of the box's type, so they mean the same on every page size and
   zoom. A heading keeps clear of what comes before it and stays with what
   follows. Alignment beats the box's own. */
.an-p[data-st=title]{font-size:2.3em;font-weight:700;line-height:1.15;}
.an-p[data-st=subtitle]{font-size:1.35em;opacity:.72;line-height:1.25;}
.an-p[data-st=h1]{font-size:1.7em;font-weight:700;line-height:1.2;}
.an-p[data-st=h2]{font-size:1.35em;font-weight:700;line-height:1.25;}
.an-p[data-st=h3]{font-size:1.12em;font-weight:700;line-height:1.3;}
.an-p[data-st=quote]{font-style:italic;margin-left:1.5em;margin-right:1.5em;
  opacity:.85;}
/* A code block's line: as typed, in mono, on a ground of its own (its
   first and last lines' corners are paraCss's). It is a block of its own
   in a logbook, so a line the page's foot would cut goes to the next page
   whole, as a table's row does. */
.an-p[data-st=pre]{font-family:var(--mono,Consolas,Menlo,"DejaVu Sans Mono",
    monospace);font-size:.88em;line-height:1.45;
  white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;hyphens:none;
  text-align:left;padding:0 .9em;
  background:color-mix(in srgb,currentColor 8%,transparent);}
.an-p+.an-p[data-st=pre]{margin-top:0;}
.lb-tx .an-p[data-st=pre]{display:flow-root;}
.an-p+.an-p[data-st=h1],.an-p+.an-p[data-st=h2],.an-p+.an-p[data-st=h3]{
  margin-top:max(.7em,var(--an-pspace,0px));}
.an-p[data-st^=h]{break-after:avoid;}
.an-p[data-al=c]{text-align:center;}
.an-p[data-al=r]{text-align:right;}
.an-p[data-al=j]{text-align:justify;}
/* a paragraph split across two pages: the half that ends a page is
   justified to its last line, as a word processor sets it, and the half
   that begins the next has no space above it -- it is the same paragraph */
.an-p[data-al=j].lb-split{text-align-last:justify;}
.an-p[data-cont]{margin-top:0 !important;}

/* ---- the notes pane's three tabs + the scratchpad -------------------- */
/* One tab style per pane shell. These use .anim-tab, as the Animation
   pane's tabs do; five of them in a 272px pane means the text is set a
   step smaller than Animation's two. */
.np-tabs .anim-tab{font-size:10.5px;padding:6px 3px 5px;letter-spacing:0;}
/* the five labels come to 278px in a 270px row, so the row's own gutters
   are what gives */
.anim-tabs.np-tabs{padding:0 4px;gap:0;}
.np-tall{min-height:230px;}
.np-padbar{display:flex;gap:5px;}
.np-padb{padding:3px 9px;font-size:10.5px;}
.np-padlist{display:flex;flex-direction:column;gap:6px;margin-top:6px;}
.np-fold{border:1px solid #ffffff1f;border-radius:8px;padding:5px;
  display:flex;flex-direction:column;gap:5px;
  background:color-mix(in srgb,var(--accent) 5%,transparent);}
.np-fhead,.np-nhead{display:flex;align-items:center;gap:4px;}
.np-ftitle,.np-ntitle{flex:1;min-width:0;font-family:var(--sans);
  background:none;border:1px solid transparent;border-radius:5px;
  color:#eaf2f8;padding:2px 5px;outline:none;}
.np-ftitle{font-weight:600;font-size:11.5px;}
.np-ntitle{font-size:11.5px;}
.np-ftitle:hover,.np-ntitle:hover,.np-ftitle:focus,.np-ntitle:focus{
  border-color:#ffffff2b;}
.np-nfold{font-family:var(--mono);font-size:9.5px;max-width:84px;
  background:var(--chrome-0,#0b141d);color:#bcccd8;
  border:1px solid #ffffff26;border-radius:5px;padding:1px 3px;}
.np-nx{padding:0 6px;font-size:11px;opacity:.55;}
.np-nx:hover{opacity:1;}
.np-note{border:1px solid #ffffff14;border-radius:7px;padding:4px;
  display:flex;flex-direction:column;gap:3px;}
.np-nbody{min-height:52px;resize:vertical;font-family:var(--sans);
  font-size:11.5px;line-height:1.45;background:var(--chrome-0,#0b141d);
  color:#dbe6ee;border:1px solid #ffffff1f;border-radius:6px;
  padding:4px 6px;outline:none;}
.np-nbody:focus{border-color:var(--cyan);}
body.light .np-nbody,body.light .np-nfold{background:var(--paper-2);
  color:var(--ink);border-color:var(--line);}
body.light .np-ftitle,body.light .np-ntitle{color:var(--ink);}

/* a named folder in the Layers pane. Not a group: filing only, so it gets
   a neutral outline rather than a group's colour bar. */
.sp-fold2{border-left:1px solid #ffffff33;}
.sp-fico{flex:none;opacity:.65;font-size:11px;}
.sp-row.sp-infold{padding-left:16px;border-left:1px solid #ffffff1f;}

/* a dragged CORNER on a line, and the faint handle that makes one */
.an-endpt.an-mid{background:var(--accent);border-color:#fff;
  width:11px;height:11px;margin:-5.5px 0 0 -5.5px;}
.an-endpt.an-addpt{width:9px;height:9px;margin:-4.5px 0 0 -4.5px;
  background:transparent;border:1.5px dashed
  color-mix(in srgb,var(--accent) 70%,transparent);opacity:.5;}
.an-endpt.an-addpt:hover{opacity:1;background:var(--accent);
  border-style:solid;}
/* ---- Icon sizing ----
   For JS-built editor chrome that uses a .bic svg in place of an emoji or
   a raw glyph. Same rule as app.css: only the tight little buttons are
   clamped below the 14px default. */
.sp-act .bic,.sp-fico .bic{width:12px;height:12px;vertical-align:-2px;}
.vo-eye .bic,.vo-full .bic{width:12px;height:12px;vertical-align:-2px;}
.vo-xall .bic{width:11px;height:11px;vertical-align:-2px;}
.film-mini .bic{width:10px;height:10px;vertical-align:-1px;}
.pane-x .bic,.ss-del .bic{width:10px;height:10px;vertical-align:-1px;}
.an-verwait .bic{width:12px;height:12px;vertical-align:-2px;}
.pickbar .bic{width:13px;height:13px;vertical-align:-2px;}
.dc-mi .bic{width:12px;height:12px;vertical-align:-2px;}
.cellpartbtn .bic{width:10px;height:10px;vertical-align:-1px;}

/* While a slide match is armed every thumbnail is a target, and says so
   the way the canvas does during an object match. */
.deck.slide-matching #film-list .film-row{cursor:copy;}
.deck.slide-matching #film-list .film-row .film-label{
  outline:2px dashed var(--accent,#2f6f9f);outline-offset:-2px;
  border-radius:4px;}
.deck.slide-matching #film-list .film-row:hover .film-label{
  outline-style:solid;background:rgba(47,111,159,.10);}
.deck.slide-matching #film-list .film-ctr{opacity:.35;}

/* A markdown box on a slide. Everything is in em of the box's own type
   size, the rule a.lh, a.pspace and a.ind already follow, so a markdown
   box means the same thing on a 16:9 slide and an A0 poster. */
.an-md{display:block;text-align:inherit;}
.an-md>:first-child{margin-top:0;}
.an-md>:last-child{margin-bottom:0;}
.an-md h3,.an-md h4,.an-md h5{
  margin:.5em 0 .25em;line-height:1.15;font-weight:700;}
.an-md h3{font-size:1.45em;}
.an-md h4{font-size:1.2em;}
.an-md h5{font-size:1.05em;}
.an-md p{margin:.35em 0;}
.an-md ul,.an-md ol{margin:.35em 0;padding-left:1.3em;}
.an-md li{margin:.12em 0;}
.an-md blockquote{margin:.4em 0;padding-left:.7em;
  border-left:.16em solid currentColor;opacity:.82;}
.an-md code{font-family:var(--mono,ui-monospace,Consolas,monospace);
  font-size:.9em;padding:0 .2em;border-radius:.2em;
  background:rgba(127,127,127,.18);}
/* a fenced block is a block */
.an-md pre{margin:.4em 0;padding:.4em .55em;border-radius:.3em;
  background:rgba(127,127,127,.18);white-space:pre-wrap;
  overflow-wrap:anywhere;font-size:.9em;line-height:1.3;}
.an-md pre code{padding:0;background:none;font-size:1em;}
.an-md h6{margin:.5em 0 .25em;line-height:1.15;font-weight:700;font-size:1em;}
.an-md hr{border:0;border-top:.08em solid currentColor;opacity:.4;
  margin:.5em 0;}
.an-md a{color:inherit;text-decoration:underline;}
/* linked words wear their box's colour, underlined, as a Markdown box's
   links do; a pointer only where a click follows them */
.an-tx a{color:inherit;text-decoration:underline;}
.deck:not(.editing) .an-tx a{cursor:pointer;}
/* the editor's cheat sheet, under the source box */
.md-help{font-size:11px;line-height:1.7;color:var(--chrome-ink-3);padding:8px 2px 0;}
.md-help b{font-weight:600;color:var(--chrome-ink-2);
  display:inline-block;margin-right:12px;white-space:nowrap;}
/* The preview is a block of the slide text as it will read, left to right
   and top to bottom. It wears .eq-prev for the panel's look, whose flex
   row would centre every block side by side and turn a heading, a
   sentence and a list into three narrow centred columns. */
.md-prev{overflow:auto;display:block;text-align:left;}

/* The talk panel. Present mode only: .deck is neither .creating nor
   .editing then, the same test .deck-count uses one line up. Never
   printed: it is chrome, and chrome does not export. */
.talkbtn{position:absolute;right:18px;bottom:38px;z-index:8;
  opacity:.35;transition:opacity .15s ease;}
.talkbtn:hover,.talkbtn[aria-expanded="true"]{opacity:1;}
.deck.creating .talkbtn,.deck.editing .talkbtn,
.deck.creating .talkpane,.deck.editing .talkpane{display:none;}
/* as wide as its widest row (the Ink row's three tools), never narrower
   than 266px, or Eraser runs out of the pane */
.talkpane{position:absolute;right:18px;bottom:74px;z-index:9;
  width:max-content;min-width:266px;max-width:calc(100% - 58px);
  background:var(--chrome-2,#16273a);border:1px solid #ffffff26;
  border-radius:10px;padding:10px;box-shadow:0 18px 44px #000a;
  display:flex;flex-direction:column;gap:8px;}
.talkpane[hidden]{display:none;}
.tk-h{display:flex;align-items:center;justify-content:space-between;
  font:600 11px var(--sans);color:var(--cyan-deep);}
.tk-row{display:flex;align-items:center;gap:8px;
  justify-content:space-between;}
.tk-lab{font-size:11px;color:var(--chrome-ink-2);flex:none;}
.tk-grp{display:flex;align-items:center;gap:3px;}
.tk-b{display:flex;align-items:center;gap:6px;font-size:11px;}
.tk-b[aria-pressed="true"]{background:var(--amber);color:var(--on-accent);
  border-color:transparent;}
/* the state is the button's text (the row's label names the thing), so it
   reads as one */
.tk-state{font:inherit;letter-spacing:normal;text-transform:none;}
/* the heading's "?" sits beside "This talk", not mid-row */
.tk-h>button.jv-q{margin-right:auto;}
/* a talk's parts, shown only where it has them */
.tk-row[hidden]{display:none;}
/* what Running late saves, under its row, and Skip just ... */
.tk-note{font-size:11px;color:var(--chrome-ink-2);text-align:right;
  margin-top:-4px;}
.tk-note[hidden],.tk-enough[hidden]{display:none;}
.tk-enough{align-self:flex-end;}
.tk-sel{min-width:0;max-width:220px;font:12px var(--sans);
  padding:4px 6px;border-radius:6px;border:1px solid var(--border-strong);
  background:var(--input-bg);color:var(--chrome-ink);}
@media print{.talkbtn,.talkpane{display:none !important;}}
/* ---- The animation story ----
   A strip between the ribbon and the stage. Each stop is a real render of
   the slide at that stop, scaled with zoom; the one the stage is showing
   is lit. An object off the stage at this stop is display:none, not
   opacity 0, so nothing invisible can be picked up by mistake. */
/* The head is a column at the left and the cards take the rest, so the
   strip is one card tall and nothing in its head can end up under a pane
   docked over the right of the stage. */
.story-strip{flex:none;border-bottom:1px solid var(--chrome-line);
  background:var(--chrome-1);padding:6px 12px 6px;display:flex;gap:10px;
  align-items:flex-start;}
.story-head{flex:none;width:92px;display:flex;flex-direction:column;
  align-items:flex-start;gap:5px;padding-top:2px;}
.story-lab{font:600 11.5px/1.25 var(--sans);color:var(--chrome-ink-2);}
.story-n{font:11px var(--sans);color:var(--chrome-ink-2);}
.story-x{height:24px;padding:0 8px;font-size:11px;}
/* the verbs about the lit stop, a column of their own */
.story-acts{flex:none;display:flex;flex-direction:column;gap:4px;
  padding-top:2px;}
.story-act{height:24px;padding:0 9px;font-size:11px;
  justify-content:flex-start;white-space:nowrap;}
.story-act .bic{width:14px;height:14px;}
.story-act.on{border-color:var(--accent,var(--cyan));
  background:color-mix(in srgb,var(--accent) 22%,transparent);}
/* a stop that comes by itself: its title is its wait, its edge dashed
   like the time it is */
.story-stop.story-auto{border-left-style:dashed;}
.story-stop.story-auto .story-cap b{color:var(--chrome-ink-2);}
/* the stop Play from here is showing */
.story-stop.playing{border-color:var(--accent,var(--cyan));
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 60%,transparent);}
/* the slide, played over itself (storyPlay) */
.story-play{position:absolute;z-index:58;overflow:hidden;cursor:pointer;
  box-shadow:0 0 0 2px var(--accent,var(--cyan));}
/* a slide's transition, seen in the editor */
.trans-pv *{pointer-events:none!important;}
.trans-pv .slide{border:0!important;border-radius:0!important;
  box-shadow:none!important;outline:none!important;}
/* the page is repainted at each stop, and the show's own slide entrance
   (slidein) would fade the whole page in again every time: only the
   things on it arrive */
.story-play>.story-slide{position:absolute;left:0;top:0;
  animation:none!important;}
.story-row{flex:1;min-width:0;display:flex;gap:8px;overflow-x:auto;
  padding-bottom:4px;scrollbar-width:thin;}
.story-stop{flex:none;display:flex;flex-direction:column;gap:3px;
  padding:4px;border:1px solid var(--chrome-line);border-radius:7px;
  background:#ffffff06;cursor:pointer;color:var(--chrome-ink);
  text-align:left;width:calc(128px + 8px);}
/* the Whole slide card is not a moment of the show; dashed says so */
.story-stop.story-whole{border-style:dashed;}
/* cards drag; the landing side, or the whole card for "onto" */
.story-stop[draggable="true"]{cursor:grab;}
.story-stop.dragging{opacity:.5;}
.story-stop.drop-before{box-shadow:-3px 0 0 0 var(--cyan);}
.story-stop.drop-after{box-shadow:3px 0 0 0 var(--cyan);}
.story-stop.drop-with{box-shadow:inset 0 0 0 2px var(--cyan);}
.story-stop:hover{border-color:color-mix(in srgb,var(--accent) 55%,transparent);}
.story-stop.on{border-color:var(--cyan);
  background:color-mix(in srgb,var(--accent) 14%,transparent);}
.story-pic{position:relative;overflow:hidden;border-radius:4px;
  background:#0b141d;}
.story-pic .story-slide{position:absolute;left:0;top:0;pointer-events:none;}
.story-cap{display:flex;flex-direction:column;gap:1px;
  font:10.5px/1.25 var(--sans);color:var(--chrome-ink-2);
  overflow:hidden;}
.story-cap b{color:var(--chrome-ink);font-weight:600;}
.story-cap span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.story-paint{position:fixed;left:-99999px;top:0;width:1280px;z-index:-1;}
.an-item.an-storyout,.an-arrow-line.an-storyout{display:none!important;}
/* the stage says it is showing a stop, so an empty-looking slide is
   read as "at this click" and not as "my things are gone" */
.deck.storying .deck-stage{box-shadow:inset 0 0 0 2px
  color-mix(in srgb,var(--accent) 45%,transparent);}
/* ---- The scrolling version ----
   An overlay over the editor. The pages inside are buildPrintRoot's,
   given back their static flow and scaled with `zoom` to the width. An
   armed object keeps its entrance's from-state through its delay
   (fill-mode backwards), so a slide's things arrive a beat apart instead
   of all appearing before their turn. */
.deck-scroll{position:fixed;inset:0;z-index:400;display:flex;
  flex-direction:column;background:#20262c;}
.deck-scroll-bar{display:flex;align-items:center;gap:12px;padding:8px 14px;
  background:var(--chrome-1);border-bottom:1px solid var(--chrome-line);
  color:var(--chrome-ink);flex:none;}
.deck-scroll-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font:600 13px var(--sans);}
.deck-scroll-n{font:11px var(--mono);color:var(--chrome-ink-2);}
.deck-scroll-body{flex:1 1 auto;overflow-y:auto;padding:24px 0;}
.deck-scroll .scroll-root{position:static;left:auto;top:auto;width:auto;
  z-index:auto;}
.deck-scroll .print-page{margin:0 auto 24px;box-shadow:0 8px 40px #0008;}
/* Between the slides. Spaced uses cards; the other three run the pages
   edge to edge, as one long page, and differ in the line at each join.
   The line is a zero-height element between two pages with its stroke
   drawn across the join, above both (z-index), in a see-through grey:
   lighter than a dark slide, darker than a white one, so "faint" is faint
   on either. */
.deck-scroll:not([data-sep="gap"]) .print-page{margin:0 auto;box-shadow:none;}
.deck-scroll .scroll-sep{display:none;position:relative;z-index:1;height:0;
  margin:0 auto;}
.deck-scroll[data-sep="faint"] .scroll-sep,
.deck-scroll[data-sep="strong"] .scroll-sep{display:block;}
.deck-scroll .scroll-sep::after{content:"";position:absolute;left:0;right:0;}
.deck-scroll[data-sep="faint"] .scroll-sep::after{top:0;height:1px;
  background:#8a939c80;}
.deck-scroll[data-sep="strong"] .scroll-sep::after{top:-1px;height:2px;
  background:#7a838cf2;}
/* the choice, in the bar: a label and four worded buttons, each with a
   small picture of its join */
.deck-scroll-bar{flex-wrap:wrap;row-gap:6px;}
.deck-scroll-sep{display:inline-flex;align-items:center;gap:3px;flex:none;}
.deck-scroll-seplab{font:11px var(--sans);color:var(--chrome-ink-2);
  margin-right:4px;white-space:nowrap;}
.deck-scroll-sepb{display:inline-flex;align-items:center;gap:6px;
  font-size:12px;padding:3px 9px;white-space:nowrap;}
.deck-scroll-sepb[aria-pressed="true"]{border-color:var(--cyan);
  color:var(--chrome-ink);background:color-mix(in srgb,var(--cyan) 18%,transparent);}
.deck-scroll-sw{width:12px;height:14px;flex:none;border-radius:2px;
  background:#d6dce1;}
.deck-scroll-sepb[data-sep="faint"] .deck-scroll-sw{
  background:linear-gradient(#d6dce1 0 6px,#8a939c 6px 7px,#d6dce1 7px);}
.deck-scroll-sepb[data-sep="strong"] .deck-scroll-sw{
  background:linear-gradient(#d6dce1 0 6px,#4d555c 6px 8px,#d6dce1 8px);}
.deck-scroll-sepb[data-sep="gap"] .deck-scroll-sw{
  background:linear-gradient(#d6dce1 0 5px,transparent 5px 9px,#d6dce1 9px);}
@media (max-width:760px){.deck-scroll-seplab{display:none;}}
/* ---- The scroll view ----
   The editor's stage as a column: the live page (always its first child,
   see 54b-scroll-view.js) and a picture of every other slide, put in deck
   order by `order`. The stage scrolls; its gutter is kept so the page
   measured before the pictures arrive is the page that fits after.
   `safe center`: a page zoomed wider than the stage starts at its left
   edge instead of being cut off there. */
.deck.editing .deck-stage.sv{flex-direction:column;justify-content:flex-start;
  align-items:safe center;overflow:auto;scrollbar-gutter:stable;}
.deck-stage.sv>.slide,.deck-stage.sv>.sv-pic{flex:none;}
/* the pages meet edge to edge: no frame of their own, no entrance (the
   swap from a picture to the live page must not be seen) */
.deck.editing .deck-stage.sv>.slide{border:none;border-radius:0;
  animation:none;}
.deck.editing .deck-stage.sv:not([data-sep="gap"])>.slide{box-shadow:none;}
/* each page lit for itself (applyPageBg): the class sits on the live
   page, where `.page-light .slide` cannot see it, so its two rules that
   key on the page or the deck are said again for it */
.deck-stage.sv>.slide.page-light{color:var(--tk-ink,#1b2733);}
.deck.editing .deck-stage.sv>.slide.page-light .an-cell.sel{
  background:#ffffffd0;}
.deck.editing .deck-stage.sv>.slide.page-light .an-cell.empty{
  background:#00000008;border-color:#00000030;}
/* above the pictures, so a handle or a box hanging off the page's edge
   is drawn over the next slide rather than under it */
.deck-stage.sv>.sv-live{position:relative;z-index:2;}
.deck-stage.sv>.sv-pic{position:relative;overflow:hidden;margin:0 auto;
  background:var(--page-bg,#0b141d);cursor:pointer;}
.deck-stage.sv>.sv-pic:hover{outline:2px solid
  color-mix(in srgb,var(--cyan) 45%,transparent);outline-offset:-2px;}
.deck-stage.sv>.sv-pic>.print-page{position:absolute;left:0;top:0;
  pointer-events:none;}
.deck-stage.sv .sv-pic .slide{border:none;border-radius:0;box-shadow:none;
  margin:0;width:auto;max-height:none;aspect-ratio:auto;animation:none;}
/* Spaced: cards a gap apart, each with the editor's own shadow */
.deck-stage.sv[data-sep="gap"]>.slide,
.deck-stage.sv[data-sep="gap"]>.sv-pic{margin-bottom:22px;}
/* The page you are on too. applyZoom writes margin:auto on it inline,
   which would beat the 22px above and leave no gap under the live page,
   a gap that would also move as you scroll. The row says the same,
   below, with its own !important. */
.deck.editing .deck-stage.sv:not([data-dir="across"])[data-sep="gap"]>.slide{
  margin:0 auto 22px!important;}
.deck-stage.sv[data-sep="gap"]>.sv-pic{box-shadow:0 14px 60px #00000066;}
/* the lines, as the scrolling page draws them: zero height, stroked
   across the join, above both pages */
.deck-stage.sv>.sv-sep{display:none;flex:none;position:relative;z-index:3;
  height:0;margin:0 auto;pointer-events:none;}
.deck-stage.sv[data-sep="faint"]>.sv-sep,
.deck-stage.sv[data-sep="strong"]>.sv-sep{display:block;}
.deck-stage.sv>.sv-sep::after{content:"";position:absolute;left:0;right:0;}
.deck-stage.sv[data-sep="faint"]>.sv-sep::after{top:0;height:1px;
  background:#8a939c80;}
.deck-stage.sv[data-sep="strong"]>.sv-sep::after{top:-1px;height:2px;
  background:#7a838cf2;}
/* where the next presentation begins, whatever the lines are: a band of
   its own, the presentations a gap apart, with the next one's name over
   its line */
.deck-stage.sv>.sv-sep.pz{display:flex;align-items:flex-end;height:34px;
  padding-bottom:6px;box-sizing:border-box;}
.deck-stage.sv>.sv-sep.pz::after{top:auto;bottom:0;height:3px;
  border-radius:2px;background:var(--pzl,var(--accent));}
.deck-stage.sv>.sv-sep.pz::before{content:attr(data-name);
  font:600 12px var(--sans);color:var(--chrome-ink-2);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.deck-stage.sv[data-dir="across"]>.sv-sep.pz{width:34px;height:auto;
  align-items:center;justify-content:flex-end;padding:0 6px 0 0;
  writing-mode:vertical-rl;}
.deck-stage.sv[data-dir="across"]>.sv-sep.pz::after{left:auto;right:0;
  top:0;bottom:0;width:3px;height:auto;}
/* ---- Across ----
   The column laid on its side (54b-scroll-view.js): the pages in a row,
   each as tall as the view, the row centred while it fits. Every margin
   that spaced the column down spaces the row along, the live page's
   inline margin:auto included, which in a row would push its neighbours
   to the ends of the view. The line between two pages stands up between
   them. Under the thumbnails (54c) the stage keeps no scrollbar of its
   own: they are the row's. Without them, a scrollbar is always there, so
   the page measured before the pictures arrive is the page that fits
   after (the column's stable gutter, turned). */
.deck.editing .deck-stage.sv[data-dir="across"]{flex-direction:row;
  justify-content:safe center;overflow:auto;scrollbar-gutter:auto;}
.deck.editing .deck-stage.sv[data-dir="across"]:not([data-bar]){
  scrollbar-width:none;}
.deck.editing .deck-stage.sv[data-dir="across"][data-bar]{overflow-x:scroll;}
.deck.editing .deck-stage.sv[data-dir="across"]>.slide{margin:auto 0!important;}
.deck-stage.sv[data-dir="across"]>.sv-pic{margin:auto 0;}
.deck.editing .deck-stage.sv[data-dir="across"][data-sep="gap"]>.slide{
  margin:auto 22px auto 0!important;}
.deck-stage.sv[data-dir="across"][data-sep="gap"]>.sv-pic{
  margin:auto 22px auto 0;}
.deck-stage.sv[data-dir="across"]>.sv-sep{width:0;margin:auto 0;}
.deck-stage.sv[data-dir="across"]>.sv-sep::after{top:0;bottom:0;right:auto;}
.deck-stage.sv[data-dir="across"][data-sep="faint"]>.sv-sep::after{
  left:0;width:1px;height:auto;}
.deck-stage.sv[data-dir="across"][data-sep="strong"]>.sv-sep::after{
  top:0;left:-1px;width:2px;height:auto;}
/* the scrolling page, across: a row of pages as tall as the window */
.deck-scroll[data-dir="across"] .deck-scroll-body{display:flex;
  overflow-x:auto;overflow-y:hidden;padding:24px;}
.deck-scroll[data-dir="across"] .scroll-root{display:flex;align-items:center;
  width:max-content;margin:auto;}
.deck-scroll[data-dir="across"].svr-on .deck-scroll-body{scrollbar-width:none;}
.deck-scroll[data-dir="across"] .print-page{flex:none;margin:0 24px 0 0;}
.deck-scroll[data-dir="across"]:not([data-sep="gap"]) .print-page{margin:0;}
.deck-scroll[data-dir="across"] .scroll-sep{flex:none;width:0;margin:0;}
.deck-scroll[data-dir="across"] .scroll-sep::after{top:0;bottom:0;right:auto;}
.deck-scroll[data-dir="across"][data-sep="faint"] .scroll-sep::after{
  left:0;width:1px;height:auto;}
.deck-scroll[data-dir="across"][data-sep="strong"] .scroll-sep::after{
  top:0;left:-1px;width:2px;height:auto;}
.deck-scroll-railb[hidden]{display:none;}
.deck-scroll-sepb .bic{width:12px;height:12px;}
/* ---- The thumbnails along the bottom (54c-thumb-rail.js) ----
   A bar with the sheet tabs' height and look, a row of small slides in it
   and its pin at the end. Kept, it is in the layout, under the page and
   above the tabs, and a docked pane stops above it, as it stops above the
   tabs. Otherwise it waits below the view, faded out, and comes up over
   the page's foot when the strip under it is pointed at, as the
   auto-hidden tabs do. Either way it stops short of the side toolbar. */
.deck,.deck-scroll{--svr-h:76px;--svr-th-h:54px;--svr-right:0px;}
.deck.rbn-side{--svr-right:var(--rbn-side-w);}
.deck.editing.svr-on.svr-kept .selpane{bottom:calc(var(--svr-h) + 8px);}
.deck.editing.svr-on.svr-kept.sheets-on:not(.sheets-auto) .selpane{
  bottom:calc(var(--svr-h) + var(--sht-h) + 8px);}
.sv-rail{display:flex;align-items:center;gap:6px;height:var(--svr-h);
  box-sizing:border-box;padding:0 8px 0 6px;border-top:1px solid #ffffff1c;
  background:var(--chrome-1,#0e1926);color:var(--chrome-ink);}
.sv-rail[hidden],.sv-rail-hot[hidden]{display:none;}
.svr-list{flex:1;min-width:0;height:100%;display:flex;align-items:center;
  gap:6px;padding:0 2px;position:relative;overflow-x:auto;overflow-y:hidden;
  scrollbar-width:thin;}
.svr-th{flex:none;position:relative;padding:0;line-height:0;cursor:pointer;
  border:2px solid transparent;border-radius:6px;background:none;}
.svr-th .svr-mini{width:var(--svr-th-w,96px);height:var(--svr-th-h);
  border-radius:3px;overflow:hidden;pointer-events:none;}
.svr-th:hover{border-color:color-mix(in srgb,var(--cyan) 45%,transparent);}
.svr-th.on{border-color:var(--accent);}
.svr-th.hid .svr-mini{opacity:.45;}
.svr-th:focus-visible{outline:2px solid var(--focus);outline-offset:1px;}
.svr-n{position:absolute;left:4px;bottom:4px;padding:2px 4px;border-radius:3px;
  font:600 9.5px/1 var(--mono);background:#000000a6;color:#fff;
  pointer-events:none;}
.svr-run{flex:none;align-self:stretch;display:flex;align-items:center;
  max-width:130px;margin-left:6px;padding:0 6px 0 8px;
  font:11px var(--sans);color:var(--chrome-ink-2);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;}
.svr-run:first-child{margin-left:0;}
.svr-run::before{content:"";flex:none;width:9px;height:9px;margin-right:7px;
  border-radius:2px;background:var(--run-c,var(--chrome-ink-3));}
.svr-pin{flex:none;display:inline-flex;align-items:center;gap:4px;
  padding:3px 8px;font-size:11.5px;white-space:nowrap;}
.svr-pin .bic{width:12px;height:12px;}
.svr-pin[aria-pressed="true"]{border-color:var(--cyan);
  background:color-mix(in srgb,var(--cyan) 18%,transparent);}
body.light .sv-rail{border-top-color:#0000001f;}
/* kept: in the layout (the page is fitted to what is left above it) */
.sv-rail.kept{position:relative;flex:none;}
.deck-stagewrap>.sv-rail.kept{margin-right:var(--svr-right);}
/* waiting: over the foot of the view, faded and let through */
.sv-rail.auto{position:absolute;left:0;bottom:0;z-index:66;
  opacity:0;visibility:hidden;transform:translateY(10px);pointer-events:none;
  box-shadow:0 -6px 18px #00000055;
  transition:opacity .16s ease,transform .16s ease,bottom .16s ease,
    visibility 0s linear .16s;}
.deck-stagewrap>.sv-rail.auto{right:var(--svr-right);}
.deck-scroll>.sv-rail.auto{right:0;z-index:3;}
.sv-rail.auto.peek{opacity:1;visibility:visible;transform:none;
  pointer-events:auto;
  transition:opacity .16s ease,transform .16s ease,bottom .16s ease,
    visibility 0s;}
.sv-rail-hot{position:absolute;left:0;right:0;bottom:0;height:10px;z-index:65;}
.deck-scroll>.sv-rail-hot{z-index:2;}
/* above the sheet tabs while they are in the layout; with them hidden
   as well, the one bottom edge is theirs and raises both (shtPeek) */
.deck.editing.sheets-on:not(.sheets-auto) .deck-stagewrap>.sv-rail.auto,
.deck.editing.sheets-on:not(.sheets-auto) .deck-stagewrap>.sv-rail-hot{
  bottom:var(--sht-h);}
.deck.editing.sheets-auto.sheets-peek .deck-stagewrap>.sv-rail.auto{
  bottom:var(--sht-h);}
.deck.editing.sheets-auto.sheets-on .deck-stagewrap>.sv-rail-hot{
  display:none;}
@media (prefers-reduced-motion:reduce){
  .sv-rail.auto,.sv-rail.auto.peek{transition:none;}}
/* belt and braces: a deferred re-render (text fitting runs a tick
   later) can put the editor's ring back on a page after buildPrintRoot
   has stripped it, so no page ever draws one */
.print-page .sel{outline:none!important;}
.an-scrollin{animation-fill-mode:backwards!important;}
/* the eraser's pointer, over the slide while it is up */
.deck.pen-erasing .annot-layer{cursor:cell;}
/* ---- The talk's tools ----
   All three sit above the deck (z 100) and the spotlight (400) but under
   the drawer's library dialog. None of them take the pointer, so a click
   still lands on the slide and advances. */
.jv-laserdot{position:fixed;z-index:420;width:16px;height:16px;
  margin:-8px 0 0 -8px;border-radius:50%;pointer-events:none;
  background:#ff3b30;box-shadow:0 0 6px 2px #ff3b30aa,0 0 22px 8px #ff3b3055;}
body.jv-laser .deck-stage{cursor:none;}
/* The lens element is .jv-lensbox; .jv-lens is the body flag (talkSync
   toggles it, the rule below reads it). They must not share a name: the
   body itself would become position:fixed and pointer-events:none while
   the magnifier was up, and every click in the show would die, including
   the Magnifier and Close buttons. tests/test_talk_tools.py refuses a
   body flag that is also a bare element selector. */
.jv-lensbox{position:fixed;z-index:420;border-radius:50%;overflow:hidden;
  pointer-events:none;border:3px solid #ffffffcc;
  box-shadow:0 0 0 1px #0008,0 18px 48px #000a;background:#000;}
.jv-lens-in{position:absolute;inset:0;}
body.jv-lens .deck-stage{cursor:crosshair;}
.jv-black{position:fixed;inset:0;z-index:430;background:#000;cursor:pointer;}
.tk-grp .tk-b{flex:1 1 auto;}

/* the free-crop lasso. An overlay over the annot layer, so the canvas
   mousedown handler (gatekeeper for selection, marquee, resize, rotate,
   group entry and eight tools) never learns about it. */
.crop-lasso{position:absolute;inset:0;z-index:40;cursor:crosshair;
  background:#0006;touch-action:none;}
.cl-ink{position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;overflow:visible;}
.cl-poly{fill:#ffffff1f;stroke:var(--amber,#f0a848);stroke-width:.5;
  vector-effect:non-scaling-stroke;stroke-dasharray:3 2;}
.cl-hint{position:absolute;left:50%;top:8px;transform:translateX(-50%);
  background:var(--chrome-2,#16273a);color:var(--chrome-ink);font-size:11px;
  padding:4px 9px;border-radius:6px;white-space:nowrap;
  pointer-events:none;box-shadow:0 6px 18px #0008;}

/* The history rail is a tree. Depth is shown by an indent and a rule
   rather than a drawn graph. */
/* ---- The history graph ----
   Each row carries an SVG gutter: one lane per branch, in its own colour,
   with the dot on the lane the version belongs to and an elbow where a
   branch leaves its parent. Indenting rows by depth does not make the
   shape of the tree readable past two branches. */
.dh-r{display:grid;
  grid-template-columns:var(--dh-gutter,18px) minmax(0,1fr) 26px;
  align-items:stretch;gap:0;}
.dh-gutter{display:block;line-height:0;}
.dh-gsvg{display:block;}
.dh-ren{padding:0;width:22px;align-self:center;justify-self:center;
  opacity:0;font-size:11px;}
.dh-r:hover .dh-ren,.dh-ren:focus-visible{opacity:1;}
.dh-ren svg{width:11px;height:11px;}
.dh-brlab{display:flex;align-items:center;gap:6px;
  font:600 11px var(--sans);color:var(--cyan-deep);padding:10px 8px 4px;}
.dh-brlab svg{width:11px;height:11px;}
.dh-snap.head .dh-when{color:var(--warning,#f0a848);}   /* per-scheme */
.dh-snap.forked .dh-why{color:var(--cyan);}
.dh-onbr{display:inline-flex;align-items:center;gap:5px;margin-left:10px;
  font-family:var(--mono);font-size:10px;color:var(--cyan);
  border:1px solid #ffffff26;border-radius:999px;padding:2px 9px;}
.dh-onbr svg{width:11px;height:11px;}
.dh-branch{margin-left:8px;}

/* The design surface. Deliberately the history overlay's shape (full
   screen, a rail of things on the left, one of them open on the right),
   because it is the same kind of screen and a second layout would be a
   second idea about what a full-screen view is. */
.deck-design{position:fixed;inset:0;z-index:400;display:flex;
  flex-direction:column;background:var(--chrome-0,#0b141d);
  font-family:var(--sans);}
.dg-main{display:flex;flex:1 1 auto;min-height:0;}
/* the count table in the rail: the loose bands only, after the style
   rows. A style's own count and its odd wearers sit on its row. */
.dg-counts{margin-top:8px;padding-top:6px;
  border-top:1px solid var(--chrome-line);}
.dg-cnt.dg-rownote{margin:-3px 7px 4px;padding:2px 3px 3px;cursor:default;
  flex-wrap:nowrap;}
.dg-cnt.dg-rownote:hover{background:none;}
.dg-cnt.dg-rownote .dg-cnt-note,.dg-cnt.dg-rownote .dg-cnt-fix{
  margin-left:0;}
.dg-cnt.dg-rownote .dg-cnt-note{flex:1 1 auto;}
.dg-cnt.dg-rownote .dg-cnt-fix{flex:none;width:auto;padding:2px 8px;}
.dg-cnt{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;
  padding:4px 6px;border-radius:6px;font:12px var(--sans);
  color:var(--chrome-ink);cursor:pointer;}
.dg-cnt:hover{background:#ffffff0c;}
.dg-cnt-n{font:600 13px var(--mono);min-width:22px;text-align:right;
  color:var(--cyan);}
.dg-cnt-l{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.dg-cnt-odd .dg-cnt-l{color:var(--amber);}
.dg-cnt-note{flex:1 0 calc(100% - 28px);margin-left:28px;min-width:0;
  font-size:11px;color:var(--amber);}
.dg-cnt-loose .dg-cnt-l{color:var(--chrome-ink-2);}
/* the fix on its own line under the words, so neither is squeezed */
.dg-cnt .dg-cnt-fix{font-size:10.5px;padding:2px 6px;
  flex:1 0 calc(100% - 28px);min-width:0;box-sizing:border-box;
  margin-left:28px;width:auto;justify-content:center;}
/* the deck colours panel's preview */
.tok-preview{margin:4px 0 8px;}
.tok-pv-page{border-radius:6px;padding:8px 10px;font:12px var(--sans);
  border:1px solid var(--chrome-line);}
.tok-pv-h{font-weight:700;font-size:14px;margin-bottom:2px;}
.tok-pv-box{margin-top:6px;padding:4px 8px;border-radius:5px;
  border:1px solid;font-size:11px;}
.dg-rail{width:216px;flex:none;overflow-y:auto;padding:8px;
  border-right:1px solid #ffffff14;display:flex;flex-direction:column;
  gap:3px;}
.dg-body{flex:1 1 auto;min-width:0;overflow-y:auto;padding:16px 22px 40px;}
.dg-row{display:flex;align-items:baseline;
  gap:8px;text-align:left;background:transparent;border:1px solid
  transparent;border-radius:7px;padding:5px 9px;color:inherit;
  cursor:pointer;width:100%;flex:none;}
.dg-rail .hd-lab{margin:12px 10px 2px;}
.dg-rail .hd-lab:first-child{margin-top:4px;}
.dg-row:hover{background:#ffffff0d;}
.dg-row.on{background:#ffffff14;border-color:#ffffff2b;}
.dg-name{line-height:1.15;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;
  font-style:normal;font-family:var(--sans);}
/* a variation sits under the type it varies, and its colour rides on a
   chip. The name is deliberately left uncoloured, because a style whose
   ink is the page's would vanish against this chrome. */
.dg-row.dg-rowvar{padding-left:22px;position:relative;}
.dg-row.dg-rowvar::before{content:"";position:absolute;left:10px;top:50%;
  width:6px;height:1px;background:var(--chrome-ink-3);}
.dg-swatch{flex:none;width:11px;height:11px;border-radius:3px;
  border:1px solid #ffffff33;align-self:center;}
body.light .dg-swatch{border-color:#00000026;}
.dg-count{font-family:var(--sans);font-size:11.5px;color:var(--chrome-ink-2);
  flex:none;margin-left:auto;}
/* a heading, in words, at one size */
/* the screen's ink is the theme's: headings, slide chips and the scope
   select must not be dark-only literals, which would be invisible or an
   island in Light */
.dg-h{font-family:var(--sans);font-size:15px;font-weight:600;
  letter-spacing:0;text-transform:none;color:var(--chrome-ink);margin:26px 0 5px;}
.dg-h:first-child{margin-top:0;}
.dg-sub{margin:0 0 10px;font-size:12.5px;line-height:1.55;color:var(--chrome-ink);
  max-width:62ch;}
.dg-spec{padding:12px 14px;border:1px solid #ffffff1a;border-radius:8px;
  /* the actual page colour, not chrome: a dark style meant for a light
     slide was unreadable in its own preview (JVUX-10) */
  background:var(--page-bg,#ffffff08);line-height:1.3;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
/* one job at a time: the style editor, placement board, instance table
   and slide navigator are not shown simultaneously */
.dg-navrow{display:flex;align-items:center;gap:8px;margin:2px 0 12px;
  border-bottom:1px solid var(--chrome-line,#ffffff1f);}
.dg-tabs{display:flex;flex:1 1 auto;gap:18px;margin:0;overflow-x:auto;}
/* tabs, not a row of buttons: words, the open one underlined */
.deck-design .dbtn.dg-tab{background:none;border:0;border-radius:0;
  border-bottom:2px solid transparent;padding:6px 1px;white-space:nowrap;
  color:var(--chrome-ink-2);}
.deck-design .dbtn.dg-tab:hover{color:var(--chrome-ink);}
.deck-design .dbtn.dg-tab[aria-selected="true"]{color:var(--chrome-ink);
  border-bottom-color:var(--accent,var(--cyan));}
.dg-sheet-toggle{flex:none;margin:0 0 5px auto;white-space:nowrap;}
/* the table's view is a column: the table takes the room there is and
   scrolls, so there is one scrollbar and no gap under it */
.dg-body.dg-view-boxes{display:flex;flex-direction:column;
  padding-bottom:16px;}
.dg-view-boxes>*{flex:none;}
.dg-view-boxes>.dg-top{display:none;}
.dg-view-boxes>.dgt{flex:0 1 auto;display:flex;flex-direction:column;
  min-height:180px;margin:0;}
.dg-view-boxes .dgt-grid{flex:0 1 auto;min-height:0;max-height:none;
  align-content:start;}
.dg-rail,.dg-body,.dg-sheetcol,.dgt-grid{
  scrollbar-color:color-mix(in srgb,var(--chrome-ink,#dce6ee) 28%,
    transparent) transparent;}
.dg-viewhead{display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin-bottom:8px;}
.dg-viewhead .dg-h{margin:0;}
/* a property sheet: two regular columns keep labels and controls aligned;
   Colours needs the whole row */
.dg-ctrls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 18px;margin-top:12px;padding:4px 12px;
  border:1px solid #ffffff1c;border-radius:8px;background:#ffffff04;}
.dg-grp{display:flex;align-items:center;gap:4px;min-width:0;padding:8px 0;
  border:0;border-bottom:1px solid #ffffff14;background:none;}
.dg-grp[data-group="colours"],.dg-grp[data-group="reset"]{
  grid-column:1/-1;}
.dg-grp[data-group="reset"]{justify-content:flex-end;border-bottom:0;}
.dg-grplab{font-family:var(--sans);font-size:11px;color:var(--chrome-ink-2);
  width:72px;flex:none;margin-right:3px;white-space:nowrap;}
.dg-grplab:empty{display:none;}
.dg-b{min-width:30px;}
.dg-size{font-family:var(--mono);font-size:11px;color:var(--chrome-ink);
  min-width:112px;text-align:center;white-space:nowrap;}
.dg-family-name{margin:7px 8px 1px;color:var(--muted);font-size:10px;
  font-weight:700;}
.jv-style-family{display:block;border:1px solid #ffffff14;
  border-radius:7px;margin:4px 0;background:#ffffff04;}
.jv-style-family-head{display:flex;align-items:stretch;gap:5px;padding:5px;}
.jv-style-family-head>.jv-styleopt{flex:1 1 auto;width:auto;min-width:0;
  margin:0;}
.jv-style-expand{flex:none;width:58px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:2px;padding:3px;
  font:10px/1.1 var(--sans);color:var(--chrome-ink-2);}
.jv-style-expand .bic{width:14px;height:14px;}
.jv-style-expand.on{background:var(--accent-deep,var(--cyan-deep));
  border-color:var(--accent-deep,var(--cyan-deep));
  color:var(--on-accent-deep,#fff);}
.jv-style-family-children{border-top:1px solid #ffffff14;padding:5px;}
.jv-style-family-children[hidden]{display:none!important;}
.jv-style-family-children>.jv-styleopt{margin:0 0 4px;width:100%;}
.jv-style-family-children>.jv-styleopt:last-child{margin-bottom:0;}
.dg-col{width:30px;height:26px;padding:0;border:1px solid #ffffff26;
  border-radius:6px;background:transparent;cursor:pointer;}
/* the board: a slide, and a rectangle you drag on it */
/* the looks a type comes in, on the type's own page */
.dg-looks{display:flex;flex-wrap:wrap;align-items:center;gap:6px;
  margin:2px 0 10px;}
.dg-lookslab{font:600 11.5px var(--sans);color:var(--chrome-ink-3,#8ea2b3);
  padding-right:4px;}
.dg-look{font-size:12.5px;padding:3px 10px;border-radius:7px;}
.dg-look.on{border-color:var(--cyan);}
.dg-lookmore{position:relative;}
.dg-lookmore>summary{list-style:none;cursor:pointer;border-style:dashed;}
.dg-lookmore>summary::-webkit-details-marker{display:none;}
.dg-lookoffers{position:absolute;z-index:5;top:calc(100% + 5px);left:0;
  display:flex;gap:6px;padding:7px;background:var(--chrome-1,#13202c);
  border:1px solid var(--chrome-line,#ffffff26);border-radius:8px;
  box-shadow:0 10px 28px #0008;white-space:nowrap;}
.dg-slotpick{font-family:var(--sans);font-size:12px;
  background:var(--btn-bg,#ffffff0e);color:var(--chrome-ink);
  border:1px solid var(--chrome-line,#ffffff26);border-radius:6px;
  padding:3px 6px;}
/* Look and Position now share the same calm single-column canvas; the tabs
   say which question it answers, so duplicate all-caps column labels are gone. */
.dg-top{display:block;width:100%;max-width:980px;margin-top:2px;}
.dg-typecol .dg-ctrls{margin-top:12px;}
.dg-typecol .dg-spec{white-space:normal;line-height:1.2;}
.dg-boardwrap{position:relative;}
/* the board is a slide: the page's own colour, and a size container so
   the words on it are set in percent of its height (cqh), the same
   currency a style's size is written in */
.dg-board{position:relative;width:100%;container-type:size;
  background:var(--page-bg,#ffffff0a);border:1px solid #ffffff2b;
  border-radius:6px;margin:0 0 8px;overflow:hidden;}
.dg-realtx{display:block;width:100%;line-height:1.15;overflow:hidden;
  padding:.5cqh .6cqw;box-sizing:border-box;pointer-events:none;
  word-break:break-word;}
.dg-realtx.dg-realempty{opacity:.45;font-style:italic;}
.dg-other .dg-realtx{opacity:.4;}
.dg-put{margin-bottom:6px;}
/* the contact sheet */
/* the contact sheet, a column down the right-hand side */
.dg-sheetcol{width:250px;flex:none;overflow-y:auto;
  padding:14px 12px 40px;border-left:1px solid #ffffff14;
  background:#ffffff04;}
.dg-sheetcol[hidden]{display:none!important;}
.dg-sheetcol .dg-h{font-size:13.5px;margin:0 0 4px;}
.dg-sheetcol .dg-sub{font-size:11.5px;margin-bottom:8px;max-width:none;}
.dg-sheetcol .dg-putrow{flex-wrap:wrap;}
.dg-sheetcol .dg-scope{max-width:100%;}
.dg-sheet{display:grid;gap:10px;margin-top:10px;
  grid-template-columns:1fr;}
/* Above the editor it is describing. .pickbar's own z-index is 99, which
   is right for the notebook card picker, since that bar appears when the
   deck is not covering the screen. .deck is fixed at 100, so a
   sequencing bar left at 99 would render underneath the editor it
   describes. .matchbar uses 150 for the same reason; this joins it. */
/* Setting the order happens in the ribbon, as a group of the Animation
   tab that appears while the mode is armed. The tint and the rule on its
   left say "mode". */
.seq-cell{display:flex;flex-direction:column;justify-content:center;
  font-size:10px;line-height:1.3;white-space:nowrap;color:#c9d6e2;
  padding:0 4px;}
.seq-cell b{color:#fff;}
body.light .seq-cell{color:var(--ink-2);}
body.light .seq-cell b{color:var(--ink);}
/* the modifier hints are the first words to go when the row is
   tight -- they explain, the tooltips repeat them, and nothing acts
   on them; the count stays */
.deck.erc-tight .seq-cell:not(.fmt-path) span+span{display:none;}
/* The effect gallery. Cards are .sh-opt, which is already icon-over-word,
   so this only lays them out and gives the popover its heading, its
   scroller and its footer. The strip shows five and a half cards on
   purpose: a card cut at the edge is the scroll affordance, taken from
   the film strip. */
.anim-gal{display:block;width:392px;max-width:92vw;padding:8px;}
.anim-galh{font:600 11px var(--sans);color:var(--chrome-ink-2);padding:0 2px 6px;}
.anim-galrow{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;padding-bottom:4px;}
.anim-galrow .anim-card{flex:0 0 66px;scroll-snap-align:start;
  display:flex;flex-direction:column;align-items:center;gap:5px;
  padding:9px 4px;text-align:center;font-size:10.5px;line-height:1.15;}
.anim-galrow .anim-card .bic{width:20px;height:20px;}
.anim-galrow .anim-card.on{background:var(--cyan-deep);
  color:var(--on-accent-deep,#fff);
  border-color:var(--cyan-deep);}
/* the SCOPE, said before you click: picking with nothing selected is a
   large edit and it must never be a silent one */
.anim-galfoot{margin-top:7px;padding-top:7px;border-top:1px solid #ffffff14;
  font-size:11px;color:var(--chrome-ink-2);}
/* the bar's own furniture: the name first, so the mode can be remembered
   afterwards, then the running state, then the chooser */
.seq-fx{display:inline-flex;align-items:center;gap:4px;flex-wrap:nowrap;}
.seq-fxb{padding:2px 7px;font-size:10.5px;display:inline-flex;
  align-items:center;gap:5px;white-space:nowrap;}
.seq-fxb.on{background:var(--cyan-deep);color:var(--on-accent-deep,#fff);
  border-color:var(--cyan-deep);}
/* a key looks like a key, on the button and not only in the tooltip:
   a mode whose shortcuts are invisible has no shortcuts */
.seq-fxb kbd{font-family:var(--mono);font-size:9px;line-height:1;
  padding:1px 3px;border:1px solid currentColor;border-radius:3px;
  opacity:.75;}
.seq-fxb.on kbd{opacity:1;}
/* Sequencing by pointing. The bar is .pickbar, so it inherits the one
   picking-mode look; only the armed slide needs saying. Every object
   advertises that it is clickable, and the selection chrome goes away
   because a resize handle is a claim about a click this mode does not
   make. */
.deck.seqing .annot-layer{cursor:cell;}
.deck.seqing .an-item{outline:1px dashed color-mix(in srgb,
  var(--cyan) 55%,transparent);outline-offset:2px;}
.deck.seqing .an-item:hover{outline:2px solid var(--cyan);}
.deck.seqing .an-resize,.deck.seqing .an-rotate,
.deck.seqing .an-handle,.deck.seqing .an-endpt{display:none!important;}
.deck.seqing .an-buildno{display:flex;}
/* the Review centre's category rows */
.rv-cat{padding:8px 2px;border-bottom:1px solid #ffffff12;}
.rv-cat:last-child{border-bottom:none;}
.rv-cat-h{display:flex;align-items:center;gap:8px;}
.rv-cat-nm{flex:1;font-size:11.5px;color:var(--chrome-ink);}
.rv-cat-n{font-family:var(--mono);font-size:9.5px;color:var(--success);
  border:1px solid color-mix(in srgb,var(--success) 27%,transparent);border-radius:8px;padding:1px 7px;}
.rv-cat-n.has{color:var(--amber,#f0a848);
  border-color:#f0a84855;}
.rv-cat-scope{font-family:var(--sans);font-size:11px;
  letter-spacing:0;color:var(--chrome-ink-2);margin:2px 0 6px;}
.rv-cat-scope::first-letter{text-transform:uppercase;}
.rv-cat-open{display:block;width:100%;text-align:left;font-size:11px;
  padding:4px 7px;}
/* autosave is a setting with a countdown, not a second primary action
   beside Save, so pressed stops painting it accent */
.deck-qat .qat-auto[aria-pressed="true"]{background:none;
  border-color:#ffffff2e;color:var(--chrome-ink,#c9d6e2);}
/* the File menu's named sections, and its dangerous tail */
/* the scheme's own danger ink. --warn is not defined, so the red would be
   a fallback that body.light .dc-mi / .dc-mhead outrank, and in Light
   Discard changes and Delete presentation would be plain grey rows */
.dc-mhead-warn,body.light .dc-mhead-warn{color:var(--danger,#ff6b57);}
.dc-mi-warn,body.light .dc-mi-warn{color:var(--danger,#ff6b57);}
.dc-mi-warn:hover{background:color-mix(in srgb,var(--danger,#ff6b57) 14%,
  transparent);}
/* the tab wrapper is semantic only */
.rbn-tabset{display:contents;}
/* the empty notebook column's worded button */
/* masters: the inherited layer, inert behind everything */
.slide-mast{position:absolute;inset:0;pointer-events:none;z-index:0;}
/* the page's picture or pattern, under all of it */
.slide-paper{position:absolute;inset:0;pointer-events:none;z-index:0;
  border-radius:inherit;}
/* ...and a blended object mixes with the page and what is on it: the layer
   lets go of its own group, and the slide is the group; the furniture stays
   under the objects, where the layer kept it */
.slide.has-blend{isolation:isolate;}
.annot-layer.has-blend,.slide.has-blend .annot-layer{z-index:auto;}
.slide>.blend-ground{position:absolute;z-index:-1;pointer-events:none;}
.slide.has-blend>:is(.slide-paper,.slide-mast,.slide-wmark,.slide-head,
  .slide-foot,.slide-citefoot,.slide-pzlabel,.slide-pageno){z-index:-1;}
.sw-targets.is-3{grid-template-columns:auto auto 1fr;}
.sw-targets.is-3 .sw-target{padding:6px 9px;white-space:nowrap;}
#fmt-fillcol-menu.is-paint>:not(.sw-targets):not(.fp-block):not(.bx-opblock){
  display:none;}
.hd-lab.has-blend{display:flex;align-items:center;justify-content:space-between;}
.bx-blend{display:flex;align-items:center;gap:6px;font:12px/1.2 var(--sans);
  color:var(--chrome-ink-2);}
#fmt-fillcol-menu .bx-blend select.etm{height:20px;padding:0 4px;font-size:12px;
  width:108px;max-width:none;flex:none;}
.hd-lab.has-blend{min-height:0;line-height:1;margin-top:-2px;}
/* the fill menus' block: buttons, the patterns and their two colours */
.fp-block .bx-row{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 0;padding:0;}
/* (a roomy ribbon's buttons are larger, and the menu is inside the ribbon) */
.deck .fp-block .bx-row .dbtn.fp-btn,
.deck.erc-roomy .edit-tools .fp-block .bx-row .dbtn.fp-btn{
  font-size:12px;padding:4px 7px;gap:5px;min-height:28px;flex:none;}
.deck .fp-block .bx-row .dbtn.fp-btn .bic,
.deck .edit-tools .rbn-grp .fp-block .bx-row .dbtn.fp-btn .bic{
  width:13px;height:13px;}
.fp-btn.on{border-color:var(--accent,#5ab3d6);}
.fp-pats{display:grid;grid-template-columns:repeat(9,25px);gap:3px;margin:6px 0;}
.fp-pat{width:25px;height:25px;padding:0;border:1px solid var(--chrome-line,#ffffff26);
  border-radius:4px;cursor:pointer;}
.fp-pat.on{outline:2px solid var(--accent,#5ab3d6);outline-offset:1px;}
.fp-block .fp-cols{flex-wrap:nowrap;align-items:center;gap:3px;margin-top:6px;}
.fp-block .fp-cols .fmt-lab{flex:0 0 66px;width:66px;min-width:0;}
.fp-sw{flex:none;width:16px;height:16px;padding:0;border:1px solid var(--chrome-line,#ffffff33);
  border-radius:4px;cursor:pointer;}
.fp-sw.on{outline:2px solid var(--accent,#5ab3d6);outline-offset:1px;}
.fp-well{flex:none;width:24px;height:19px;padding:0;border:1px solid var(--chrome-line,#ffffff33);
  border-radius:4px;background:none;cursor:pointer;}
.sh-menu.blend-menu:not([hidden]){display:grid;grid-template-columns:1fr 1fr;
  gap:2px;min-width:250px;}
.blend-menu .hd-lab{grid-column:1/-1;}
.blend-mi{width:100%;text-align:left;justify-content:flex-start;white-space:nowrap;
  min-height:30px;}
.blend-mi.on{background:color-mix(in srgb,var(--accent,#5ab3d6) 18%,transparent);}
.pfx-duos{display:grid;grid-template-columns:repeat(6,34px);gap:4px;}
.pfx-duo{width:34px;height:22px;padding:0;border:1px solid var(--chrome-line,#ffffff33);
  border-radius:4px;cursor:pointer;}
.pfx-duo.is-none{background:linear-gradient(to top right,transparent 47%,
  #d8584f 47%,#d8584f 53%,transparent 53%),#fff;}
.pfx-duo.on{outline:2px solid var(--accent,#5ab3d6);outline-offset:1px;}
.pfx-well{display:inline-flex;align-items:center;gap:6px;font-size:12px;}
.pfx-tc{display:inline-block;width:20px;height:20px;border-radius:4px;
  border:1px solid var(--chrome-line,#ffffff33);}
#fmt-pic-menu .opt-row#fmt-pic-du,#fmt-pic-menu .opt-row#fmt-pic-tc{flex-wrap:wrap;}
#fmt-pic-menu{max-height:min(76vh,640px);overflow-y:auto;}
.pfx-picking .annot-layer,.pfx-picking .annot-layer *{cursor:crosshair!important;}
/* a panel: block layout (the .sh-menu grid would spread its note over
   three columns), wide enough to read, on the overlay stack */
.sh-menu.mast-panel{display:block;position:fixed;left:auto;right:16px;top:110px;
  z-index:420;width:320px;max-height:70vh;overflow-y:auto;
  padding:10px 12px 14px;}
.mast-panel .rd-note{font-size:12px;line-height:1.5;}
.mast-panel .rd-state{font-size:11px;margin:6px 0;}
.mast-name{font:600 11.5px var(--sans);color:var(--cyan);margin:10px 0 4px;}
.mast-row{display:block;width:100%;text-align:left;font-family:var(--sans);
  font-size:12.5px;
  padding:4px 7px;margin:2px 0;}
.mast-new{display:block;width:100%;text-align:left;margin-top:10px;}
/* the master's choices as swatches and pressed runs */
.mast-lab{font-family:var(--sans);font-size:11px;color:var(--chrome-ink-2);
  margin:8px 0 3px;}
.mast-chips{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:4px;}
.mast-chips .bg-chip{width:22px;height:22px;border-radius:5px;padding:0;
  border:1px solid #ffffff2a;}
.mast-chips .bg-chip[aria-pressed="true"],.mast-chips .bg-auto[aria-pressed="true"]{
  outline:2px solid var(--accent,var(--cyan));outline-offset:1px;}
.mast-chips .bg-auto{font-size:11px;padding:2px 8px;}
.mast-run{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:4px;}
.mast-opt{font-size:12px;padding:3px 8px;}
/* charts: the SVG fills its box; the dialog is the numbers */
/* Positioned, like every other kind. Every other annotation declares its
   own position (.an-table, .an-image, .an-flip...). Without one, the
   inline left/top drawChart writes would be inert, so a chart would
   always render at the slide's top-left. An unpositioned element also
   stacks below the arrow hit-layer (an absolute <svg> covering the whole
   canvas), so the chart could not be clicked, selected, or given its
   right-click menu (Edit data, chart type, series build). */
.an-chart{position:absolute;overflow:hidden;}
.an-chartsvg{width:100%;height:100%;display:block;
  font-family:var(--tk-font,var(--sans,system-ui));}
.chart-data{position:fixed;left:50%;top:20%;transform:translateX(-50%);
  z-index:420;width:min(440px,92vw);padding:10px 12px 12px;}
/* the first-run "where should this be kept?" prompt. Centred and
   unanchored, since it is a question about the deck and not about a
   button, so it goes on the overlay stack with a null owner. */
.save-ask{position:fixed;left:50%;top:26%;transform:translateX(-50%);
  z-index:430;width:min(430px,92vw);padding:10px 12px 12px;
  display:flex;flex-direction:column;gap:4px;}
.save-ask .sa-opt{width:100%;text-align:left;align-items:flex-start;
  flex-direction:column;gap:2px;padding:9px 11px;height:auto;}
.sa-t{font-family:var(--sans);font-size:13px;font-weight:600;
  color:var(--chrome-ink);}
.sa-n{font-family:var(--sans);font-size:11.5px;font-weight:400;
  line-height:1.45;color:var(--chrome-ink-3);white-space:normal;}
.save-ask .sa-opt:hover .sa-n{color:var(--chrome-ink-2);}
/* The one answer that can lose your work reads as the fallback it is.
   Amber, not red: choosing it is reasonable and nothing is broken. It is
   the same distinction, and the same token, as the style check. */
.save-ask .sa-opt.sa-warn .sa-t{color:var(--warning);}
.chart-ta{width:100%;min-height:150px;resize:vertical;
  font-family:var(--mono);font-size:11.5px;line-height:1.5;
  color:#dbe7ef;background:#0d1722;border:1px solid #ffffff22;
  border-radius:5px;padding:7px 9px;}
.chart-btns{display:flex;gap:8px;margin-top:9px;justify-content:flex-end;}
/* the numbers as a grid */
.chart-data{width:min(620px,94vw);display:flex;flex-direction:column;
  align-items:stretch;}
.chart-data .chart-btns{align-self:flex-end;}
.chart-data .cd-drag{cursor:move;user-select:none;}
.cd-modes{display:flex;gap:4px;margin:2px 0 6px;}
.cd-mode{height:24px;padding:0 10px;font-size:12px;}
.cd-mode[aria-pressed="true"]{background:color-mix(in srgb,var(--accent)
  22%,transparent);border-color:var(--accent);color:var(--chrome-ink);}
.cd-host{max-height:min(46vh,380px);overflow:auto;margin-top:6px;}
.cd-grid{border-collapse:collapse;font-size:12px;}
.cd-grid th,.cd-grid td{padding:0;border:1px solid #ffffff1f;
  position:relative;}
.cd-grid td.cd-rowx{border:0;padding-left:3px;}
.cd-in{width:86px;height:24px;box-sizing:border-box;padding:2px 6px;
  font:inherit;font-variant-numeric:tabular-nums;text-align:right;
  color:#dbe7ef;background:#0d1722;border:0;border-radius:0;}
.cd-in.cd-cat{text-align:left;width:110px;}
.cd-in.cd-head{font-weight:600;text-align:left;background:#132131;}
.cd-in:disabled{background:#132131;}
/* rows of values are numbered; a waterfall's totals are ticks */
.cd-in.cd-cat.cd-no{width:44px;text-align:right;opacity:.7;}
.cd-tickcell{text-align:center;vertical-align:middle;background:#0d1722;}
.cd-tick{width:15px;height:15px;margin:0;vertical-align:middle;
  accent-color:var(--accent);cursor:pointer;}
/* ...and the grid is the theme's, not a dark one on a light page */
body.light .cd-in,body.light .cd-tickcell,body.light .chart-ta{
  color:var(--ink);background:var(--paper-2);}
body.light .cd-in.cd-head,body.light .cd-in:disabled{
  background:color-mix(in srgb,var(--ink) 8%,var(--paper-2));}
body.light .cd-grid th,body.light .cd-grid td:not(.cd-rowx){
  border-color:var(--line);}
.cd-in:focus{outline:2px solid var(--accent);outline-offset:-2px;}
.cd-x{position:absolute;right:1px;top:3px;width:16px;height:16px;
  padding:0;border:0;border-radius:3px;background:transparent;
  color:var(--chrome-ink-2,#93a8ba);font-size:12px;line-height:16px;
  cursor:pointer;opacity:.55;}
.cd-rowx .cd-x{position:static;}
.cd-x:hover{opacity:1;color:var(--warning,#e8a33d);}
.cd-adds{display:flex;gap:6px;margin-top:6px;}
.cd-adds .dbtn{height:24px;font-size:12px;}
/* the reading-order panel and its on-slide numbers */
/* left:auto, or .sh-menu's left:0 wins the over-constrained box and the
   panel opens on the left over the slide */
.rd-order{position:fixed;left:auto;right:16px;top:110px;z-index:420;
  width:252px;
  max-height:64vh;overflow-y:auto;padding:8px 10px 12px;}
.rd-order .hd-lab{position:relative;padding-right:26px;}
.rd-close{position:absolute;right:0;top:-4px;}
.rd-note{font-size:10.5px;color:var(--chrome-ink-2);margin:2px 0 8px;
  line-height:1.35;text-transform:none;letter-spacing:normal;}
.rd-state{font-family:var(--mono);font-size:9.5px;color:var(--chrome-ink-2);
  margin:0 0 6px;}
.rd-row{display:flex;align-items:center;gap:6px;padding:3px 2px;}
.rd-num{flex:none;min-width:16px;height:16px;border-radius:8px;
  background:var(--cyan);color:var(--on-accent);font-family:var(--mono);
  font-size:10px;font-weight:700;display:flex;align-items:center;
  justify-content:center;padding:0 3px;}
.rd-lab{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-size:11.5px;color:var(--chrome-ink);}
.rd-reset{margin-top:8px;}
/* The number badges are gated like .an-buildno above: always built, shown
   only while the panel is open. The panel lives in body, so the gate is
   body.rd-order-on, set by openReadingOrder and cleared by rdClose, the
   panel's only maker and remover. A body:has(#rd-order) would be
   re-checked over the whole document on every DOM change. */
.an-readno{position:absolute;top:-9px;right:-9px;z-index:5;min-width:16px;
  height:16px;border-radius:8px;background:var(--cyan);color:var(--on-accent);
  font-family:var(--mono);font-size:10px;font-weight:700;display:none;
  align-items:center;justify-content:center;padding:0 3px;
  pointer-events:none;}
body.rd-order-on .an-readno{display:flex;}
/* the layout-ideas chooser: live previews of this slide. Full screen, like
   All images; the cards a third of the window wide so a layout can
   actually be read. */
/* full screen, like All images; the cards a third of the window wide so a
   layout can actually be read */
.sh-menu.lay-ideas{display:block;position:fixed;inset:0;left:0;top:0;
  transform:none;width:auto;max-width:none;max-height:none;z-index:400;
  padding:16px 28px 40px;overflow:auto;border:0;border-radius:0;
  box-shadow:none;background:var(--chrome-0,#0b141d);}
body.light .sh-menu.lay-ideas{background:var(--chrome-2);}
.li-grid{display:flex;flex-wrap:wrap;gap:10px;}
.li-card{display:flex;flex-direction:column;align-items:center;gap:5px;
  padding:7px;}
.li-card .mini-diagram{pointer-events:none;background:#0d1722;
  border:1px solid #ffffff22;border-radius:3px;}
/* a candidate's text boxes show their box as a hairline, so two layouts
   that differ only in where the text goes can be told apart */
.li-card .mini-tx{outline:1px solid #ffffff2e;outline-offset:1px;
  border-radius:1px;}
.li-lab{font-size:10.5px;color:var(--chrome-ink);}
/* the put button and its slide scope, side by side */
.dg-putrow{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;}
.dg-scope{background:var(--input-bg);color:var(--chrome-ink);
  border:1px solid var(--border-strong);
  border-radius:6px;padding:4px 6px;font:inherit;font-size:11px;
  max-width:180px;}
/* the drag proxies live inside the miniature at page percentages;
   they exist only while outlines are on, so the sheet stays a plain
   navigator otherwise */
.dg-drag{position:absolute;display:none;cursor:grab;z-index:3;
  border-radius:2px;}
.dg-sheet.outlined .dg-drag{display:block;}
.dg-sheet.outlined .dg-drag:hover{outline:2px solid #f0a848;
  background:#f0a84822;}
/* an arrow's proxy is the bounding box of a LINE, so it can be large and
   almost entirely empty: it yields to the box proxies it overlaps rather
   than swallowing their drags. The canvas answers this with a per-pixel
   distance test (arrowAt); a 116x66px thumbnail cannot. */
.dg-drag.is-arrow{z-index:2;}
.dg-cell{position:relative;background:#ffffff08;border:1px solid #ffffff1a;
  border-radius:6px;padding:5px;cursor:pointer;}
.dg-cell:hover{border-color:#ffffff3d;}
.dg-celln{position:absolute;left:6px;bottom:4px;font-family:var(--mono);
  font-size:9px;color:var(--chrome-ink-3);}
/* Every object outlined, on every slide. miniDiagram already draws one
   element per object, so this is a class over the sheet rather than a
   second renderer. */
.dg-sheet.outlined .mini-it,
.dg-sheet.outlined .mini-tx,
.dg-sheet.outlined .mini-pane{
  outline:1px solid rgba(240,168,72,.85);outline-offset:0;}
.dg-sheet.outlined .mini-diagram{background:#0e1a26;}

/* ---- The strip frame ----
   A tile strip is a gallery the PowerPoint way: one row of tiles in
   sight, the rest wrapped beneath it out of view, and a column at the
   right with up, down and "show all". No scrollbar anywhere. The frame is
   a box with an edge, and the tiles inside it are the one 72x56 tile. */
.strip-frame{display:flex;align-items:stretch;height:var(--rbn-band);
  border:1px solid #ffffff24;border-radius:8px;background:#ffffff06;
  overflow:hidden;}
/* the strip is the scroll box (a fixed height, overflow hidden), so the
   arrows can move scrollTop; the frame only draws the edge */
.strip-frame>.fx-strip{height:calc(var(--rbn-band) - 2px);
  padding:2px 4px 0;box-sizing:border-box;
  flex-wrap:wrap;align-content:flex-start;overflow:hidden;
  scroll-behavior:smooth;scroll-snap-type:none;}
.strip-frame .fx-tile,.strip-frame .dbtn.lay{
  height:var(--rbn-tile-h);flex:0 0 var(--rbn-tile-w);
  scroll-snap-align:none;}
/* a strip's width is a whole number of tiles: four, or three for the
   page sizes, so no tile is ever cut at the edge */
.strip-frame>.fx-strip,.strip-frame>.fx-strip.lay-strip,
.strip-frame>.fx-strip.shape-strip{
  width:calc(4 * var(--rbn-tile-w) + 3 * var(--rbn-tile-gap) + 8px);}
/* the text tiles are as wide as their names, so a whole number of tiles
   does not describe this strip: it is as wide as what is in it, up to the
   ceiling the ladder sets, and past that it scrolls */
.strip-frame>.fx-strip.tx-strip{width:max-content;
  max-width:var(--rbn-txstrip-max);}
/* the three-tile strips: page sizes, and the transition and timing
   choices, which have three answers each and no fourth to scroll to */
.strip-frame>.fx-strip.page-strip,
.strip-frame>.fx-strip.trans-strip{
  width:calc(3 * var(--rbn-tile-w) + 2 * var(--rbn-tile-gap) + 8px);}
/* The text-step mode has three choices (including Highlight only) and
   would be held to a two-tile width, so on the Timing shelf the third
   would run under whatever came next (the Words flow in section). It
   takes the four-tile width, which also covers the four ways to be the
   point. */
.strip-frame>#anim-focus-strip.trans-strip{
  width:calc(4 * var(--rbn-tile-w) + 3 * var(--rbn-tile-gap) + 8px);}
/* the group caption wears the click, like a folded door's readout */
.rbn-focus .rbn-lab .rbn-foldval{display:inline;margin-left:4px;
  font-size:10px;color:var(--chrome-ink-3);max-width:none;}
.strip-nav{flex:none;width:18px;display:flex;flex-direction:column;
  border-left:1px solid #ffffff24;background:#ffffff0a;}
.strip-nav>button{flex:1 1 0;min-height:0;padding:0;border:0;
  background:none;color:#c9d6e2;cursor:pointer;font-size:8px;line-height:1;
  display:flex;align-items:center;justify-content:center;}
.strip-nav>button+button{border-top:1px solid #ffffff14;}
.strip-nav>.strip-more{font-size:12px;}
.strip-nav>button:hover:not(:disabled){
  background:color-mix(in srgb,var(--accent) 18%,transparent);color:var(--chrome-ink);}
.strip-nav>button[aria-disabled="true"]{opacity:.3;}
.strip-more[aria-expanded="true"]{
  background:var(--accent-deep,var(--cyan-deep));
  color:var(--on-accent-deep,#fff);}
body.light .strip-frame{border-color:var(--line);
  background:var(--surface-hover);}
body.light .strip-nav{border-left-color:var(--line);
  background:var(--surface-hover);}
body.light .strip-nav>button{color:var(--ink-2);}
/* the window with every tile in it: the strip itself, moved in and
   wrapped, so every tile keeps its wiring; moved back on close */
/* block, not the menu grid: the strip must have the whole width to wrap in */
.sh-menu.strip-all{display:block;position:fixed;z-index:60;left:0;top:0;padding:8px;
  border-radius:10px;background:var(--chrome-1,#111c26);
  border:1px solid #ffffff24;box-shadow:0 12px 32px #0009;
  width:560px;max-width:calc(100vw - 16px);max-height:calc(100vh - 120px);
  overflow:auto;}
.sh-menu.strip-all .strip-all-h{font-family:var(--sans);font-size:11px;
  color:var(--chrome-ink-2);margin:0 2px 6px;}
.sh-menu.strip-all .fx-strip{display:flex;flex-wrap:wrap;gap:6px;
  height:auto;width:100%;max-width:none;overflow:visible;padding:0;
  scroll-snap-type:none;}
.sh-menu.strip-all .fx-strip>*{flex:0 0 auto;height:var(--rbn-tile-h);}
.sh-menu.strip-all .fx-strip>.hd-lab,.sh-menu.strip-all .fx-strip>.lay-sec{
  display:none;}
body.light .sh-menu.strip-all{background:var(--chrome-2);
  border-color:var(--line);}

/* ---- New slide as a tile, and All images full screen ----
   The New slide button is a tall tile at the left of its strip, the shape
   of the layout tiles it stands beside. The full-screen view is every
   slide's images under a heading each, the headings folding. */
/* the check's tile is the fold tile's width: three words on a 64px tile
   would break into three lines and spill out */
.rbn-row>#dsg-std.big-tile{width:82px;
  height:var(--rbn-tile-h);align-self:center;}
.rbn-row>#dsg-std.big-tile>span{white-space:normal;text-align:center;
  line-height:1.15;}
.img-ov{position:fixed;inset:0;z-index:400;
  background:var(--chrome-0,#0b141d);color:#c9d6e2;overflow:auto;
  padding:16px 28px 40px;font-family:var(--sans);}
.img-ov[hidden]{display:none;}
.img-ov-h{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.img-ov-t{font-size:18px;font-weight:600;}
.img-ov-sub{flex:1;color:var(--chrome-ink-2);font-size:12px;}
.img-sec{border:1px solid #ffffff1c;border-radius:9px;margin:0 0 8px;
  background:#ffffff05;}
.img-sec>summary{cursor:pointer;padding:9px 12px;font-size:13px;
  list-style:none;display:flex;align-items:center;gap:8px;}
.img-sec>summary::-webkit-details-marker{display:none;}
.img-sec>summary::before{content:"\25B8";color:var(--chrome-ink-2);font-size:11px;}
.img-sec[open]>summary::before{content:"\25BE";}
.img-rows{display:grid;gap:6px;padding:0 10px 10px;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));}
.img-ov .img-row{border:1px solid #ffffff12;}
.img-ov .img-th{width:72px;height:50px;}
body.light .img-ov{background:var(--chrome-2);color:var(--ink-2);}
body.light .img-sec{border-color:var(--line);
  background:var(--surface-hover);}
body.light .img-ov .img-row{border-color:var(--line);}

/* ---- Look before a figure refresh writes ----
   The deck's kept rendering and the source's current rendering get equal
   space. The choice stays worded: these are destructive source updates,
   not a pair of tick/cross icons. */
.fig-review{box-sizing:border-box;width:min(1120px,calc(100vw - 32px));
  max-width:none;max-height:calc(100vh - 32px);padding:18px 20px 22px;
  color:#c9d6e2;background:var(--chrome-0,#0b141d);
  border:1px solid #ffffff2b;border-radius:12px;box-shadow:0 24px 70px #000c;
  font-family:var(--sans);overflow:auto;}
.fig-review::backdrop{background:#02060bd9;backdrop-filter:blur(2px);}
.fig-review-h{display:flex;align-items:center;gap:9px;position:sticky;top:-18px;
  z-index:2;margin:-18px -20px 0;padding:16px 20px 12px;
  background:var(--chrome-0,#0b141d);border-bottom:1px solid #ffffff18;}
.fig-review-t{font-size:18px;font-weight:650;white-space:nowrap;}
.fig-review-sub{flex:1;color:var(--chrome-ink-2);font-size:12px;}
.fig-review-note{font-size:12px;line-height:1.5;color:var(--chrome-ink-2);
  margin:13px 0;}
.fig-review-list{display:flex;flex-direction:column;gap:14px;}
.fig-review-item{border:1px solid #ffffff1c;border-radius:9px;
  background:#ffffff05;padding:10px;}
.fig-review-label{font-family:var(--mono);font-size:10px;color:var(--chrome-ink-2);
  margin:0 2px 8px;}
.fig-review-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;}
.fig-review-col{min-width:0;display:flex;flex-direction:column;gap:5px;}
.fig-review-cap{font-size:11px;font-weight:600;color:#dbe7ef;}
.fig-review-frame{height:290px;box-sizing:border-box;overflow:auto;
  display:flex;align-items:center;justify-content:center;padding:10px;
  background:#fff;color:#18232d;border:1px solid #ffffff26;border-radius:7px;}
.fig-review-frame>.cardbody{width:100%;max-height:100%;}
.fig-review-frame img,.fig-review-frame svg{max-width:100%;max-height:100%;}
.fig-review-frame>.an-chartsvg{width:100%;height:100%;}
.fig-review-empty{font-family:var(--mono);font-size:11px;color:var(--chrome-ink-3);}
body.light .fig-review{color:var(--ink-2);background:var(--chrome-2);
  border-color:var(--line);}
body.light .fig-review-h{background:var(--chrome-2);border-color:var(--line);}
body.light .fig-review-item{border-color:var(--line);
  background:var(--surface-hover);}
body.light .fig-review-cap{color:var(--ink);}
@media(max-width:760px){
  .fig-review-h{flex-wrap:wrap;}
  .fig-review-sub{flex-basis:100%;order:3;}
  .fig-review-pair{grid-template-columns:1fr;}
  .fig-review-frame{height:230px;}
}

/* the two galleries: three lines with the marker they would draw */
.sh-menu.ls-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;width:250px;padding:7px;}
/* a row of text under the gallery, the menu's width */
.ls-menu>.ls-more{grid-column:1/-1;}
.ls-opt{gap:5px;}
.ls-prev{display:flex;flex-direction:column;gap:3px;width:100%;}
.ls-row{display:flex;align-items:center;gap:4px;}
.ls-mark{font-family:var(--mono);font-size:9px;color:var(--chrome-ink-2);
  min-width:13px;text-align:right;}
.ls-bar{flex:1;height:2px;border-radius:1px;background:#ffffff33;}
.ls-opt[aria-pressed="true"] .ls-bar{background:var(--accent,#39a9c0);}
.ls-opt[aria-pressed="true"] .ls-mark{color:var(--chrome-ink);}
body.light .ls-bar{background:var(--border-strong);}

/* ---- Making a layout ----
   The board is the page and the slots are what a layout is made of, drawn
   at page percentages exactly as the design screen's ghost is. Nothing
   here renders content: a layout is a shape. */
.lb-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  margin:2px 0 12px;}
.lb-board{position:relative;width:min(100%,760px);margin:0 0 14px;
  background:var(--chrome-0,#0b141d);border:1px solid #ffffff22;
  border-radius:10px;overflow:hidden;}
.lb-slot{position:absolute;box-sizing:border-box;border-radius:6px;
  cursor:move;display:flex;align-items:flex-start;padding:5px 7px;
  border:1.5px dashed color-mix(in srgb,var(--chrome-ink) 30%,transparent);
  background:var(--surface-hover);color:var(--chrome-ink-2);
  font-family:var(--sans);font-size:12px;}
.lb-slot.lb-cell{border-style:solid;
  border-color:color-mix(in srgb,var(--accent) 55%,transparent);
  background:color-mix(in srgb,var(--accent) 10%,transparent);}
.lb-slot.on{border-color:var(--accent);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 45%,transparent);}
.lb-lab{pointer-events:none;overflow:hidden;white-space:nowrap;
  text-overflow:ellipsis;}
/* what a slot is for, in its colour; a background behind */
.lb-slot.lb-want-picture,.lb-slot.lb-want-logo,.lb-slot.lb-want-bg{
  border-color:color-mix(in srgb,#5fbf86 70%,transparent);
  background:color-mix(in srgb,#5fbf86 12%,transparent);}
.lb-slot.lb-want-table,.lb-slot.lb-want-chart{
  border-color:color-mix(in srgb,#e0a64a 70%,transparent);
  background:color-mix(in srgb,#e0a64a 12%,transparent);}
/* a background's name at the top middle, clear of a footer, a number
   and a logo, which live in its corners and along its foot */
.lb-slot.lb-want-bg{border-style:dashed;justify-content:center;
  padding-top:1px;}
.lb-slot.lb-role-footer,.lb-slot.lb-role-num{font-size:11px;padding:2px 6px;}
/* where a snap came to */
.lb-guide{position:absolute;pointer-events:none;
  background:var(--accent,var(--cyan));opacity:.9;}
.lb-guide.lb-gx{top:0;bottom:0;width:1px;margin-left:-.5px;}
.lb-guide.lb-gy{left:0;right:0;height:1px;margin-top:-.5px;}
.lb-grip{position:absolute;right:-4px;bottom:-4px;width:12px;height:12px;
  border-radius:3px;background:var(--accent,#39a9c0);cursor:nwse-resize;}
.lb-foot{display:flex;align-items:center;gap:10px;margin:14px 0 6px;}
.lb-name{flex:0 1 280px;height:30px;padding:0 9px;box-sizing:border-box;
  font-family:var(--sans);font-size:13px;color:#e8f1f8;
  background:#ffffff0a;border:1px solid #ffffff26;border-radius:7px;}
.lb-mine{margin-top:14px;max-width:620px;}
.lb-row{display:flex;align-items:center;gap:8px;padding:5px 2px;
  border-top:1px solid #ffffff14;}
.lb-rowt{flex:1;min-width:0;font-family:var(--sans);font-size:13px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body.light .lb-board{background:var(--paper-2);border-color:var(--line);}
body.light .lb-name{background:var(--input-bg);
  border-color:var(--border-strong);
  color:var(--ink);}

/* ---- A checkpoint reads as one ----
   Every other snapshot is something that happened to you; a checkpoint is
   one you chose, so it is marked in the rail and never evicted. */
.dh-snap.checkpoint .dh-why{color:var(--cyan);}

/* ---- Every box of a kind, in a table ----
   One row per box, wherever it is: tick several, then Match style of and
   click the one they should follow. The grid's column count comes from
   the header row it was built with, so the text and object views can have
   different columns without two stylesheets. */
.dgt{margin:6px 0 18px;}
.dgt-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  margin-bottom:8px;}
/* the size box on the table's bar, and the typed size between a named
   type's steppers */
.dgt-szw{display:inline-flex;align-items:center;gap:5px;margin-left:4px;}
.dgt-szlab{font-family:var(--sans);font-size:12px;color:var(--chrome-ink-2);}
.dgt-n.dgt-szin,.dgt-n.dg-sizein{width:58px;}
.dg-size{display:inline-flex;align-items:center;gap:2px;min-width:0;}
.dgt-count{font-family:var(--sans);font-size:12px;color:var(--chrome-ink-2);
  margin-left:auto;}
.dgt-grid{display:grid;
  /* the columns are set by the table, from its headings (DG_COLW) */
  gap:1px;background:#ffffff12;border:1px solid #ffffff1c;
  border-radius:9px;max-height:52vh;overflow:auto;}
.dgt-h{background:var(--chrome-1,#0e1926);font-family:var(--sans);
  font-size:11px;font-weight:600;color:var(--chrome-ink-2);padding:7px 8px;
  position:sticky;top:0;z-index:1;}
.dgt-c{background:var(--chrome-2,#16273a);padding:3px 6px;
  font-family:var(--sans);font-size:12px;color:#dce6ee;cursor:pointer;
  display:flex;align-items:center;min-width:0;}
.dgt-c.on{background:color-mix(in srgb,var(--accent) 22%,var(--chrome-2,#16273a));}
/* the rows not drawn yet (dgtVirtual): one grid row as tall as they are */
.dgt-spacer{grid-column:1/-1;background:var(--chrome-2,#16273a);}
.dgt-c:hover{background:color-mix(in srgb,var(--accent) 12%,var(--chrome-2,#16273a));}
.dgt-what{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  display:block;line-height:1.9;}
.dgt-si{font-family:var(--mono);color:var(--chrome-ink-2);}
.dgt-n{width:100%;min-width:0;height:24px;padding:0 5px;box-sizing:border-box;
  font-family:var(--mono);font-size:11.5px;color:#e8f1f8;
  background:#ffffff0d;border:1px solid #ffffff22;border-radius:5px;}
.dgt-n:focus{border-color:var(--cyan);outline:none;}
.dgt-face{font-family:var(--mono);font-size:11px;color:var(--chrome-ink-2);}
/* the editable cells: a swatch that is a picker, with its Default / None
   beside it, and the typeface list */
.dgt-colw{display:inline-flex;align-items:center;gap:4px;}
.dgt-col{width:22px;height:20px;padding:0;border:1.5px solid #ffffff33;
  border-radius:50%;background:none;cursor:pointer;}
.dgt-col::-webkit-color-swatch-wrapper{padding:0;}
.dgt-col::-webkit-color-swatch{border:0;border-radius:50%;}
.dgt-col.dgt-unset{opacity:.45;}
.dgt-colb{font-size:10px;padding:2px 5px;line-height:1.2;}
/* the fields read as the table's words until pointed at or typed in */
.deck-design .dgt-c :is(.dgt-n,.dgt-tx,.dgt-facesel){
  border-color:transparent;background-color:transparent;}
.deck-design .dgt-c :is(.dgt-n,.dgt-tx,.dgt-facesel):hover{
  border-color:var(--chrome-line,#ffffff33);}
.deck-design .dgt-c :is(.dgt-n,.dgt-tx,.dgt-facesel):focus{
  border-color:var(--cyan);}
.deck-design .dgt-facesel{font-family:var(--sans);width:100%;
  min-width:0;}
.dgt-facesel option{background:var(--chrome-1,#0e1926);}
/* what differs from the style, and the way back */
.dgt-diff{display:flex;align-items:center;gap:6px;width:100%;min-width:0;}
.dgt-says{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;
  text-overflow:ellipsis;color:var(--amber);}
.dgt-reset{flex:none;}
/* a fill's None, on the cell pointed at or tabbed to */
.dgt-hov{opacity:0;}
.dgt-c:hover .dgt-hov,.dgt-hov:focus-visible{opacity:1;}
/* a match armed: the whole row is the thing to click, fields and all */
.dgt-arming .dgt-c{cursor:copy;}
.dgt-arming .dgt-c *{pointer-events:none;}
.deck-design .dg-cnt button.dg-cnt-note{background:none;border:0;padding:0;
  text-align:left;font:11px var(--sans);color:var(--amber);cursor:pointer;
  text-decoration:underline;text-underline-offset:2px;}
.deck-design .dg-wspick{margin:6px 0 0;}
.dgt-col.dgt-nofill{border-style:dashed;}
.dgt-col.dgt-nofill::-webkit-color-swatch{visibility:hidden;}
.dgt-colb[aria-pressed="true"]{border-color:var(--cyan);color:var(--chrome-ink);}
.dgt-facesel{height:24px;padding:0 4px;max-width:96px;
  background:#ffffff0d;border:1px solid #ffffff22;border-radius:5px;
  color:#e8f1f8;}
body.light .dgt-facesel{background:var(--input-bg);
  border-color:var(--border-strong);color:var(--ink);}
.dgt-sw{width:16px;height:16px;border-radius:50%;
  border:1.5px solid #ffffff33;display:block;}
.dgt-sw.dgt-none{background:var(--chrome-0,#0b141d);position:relative;
  overflow:hidden;}
.dgt-sw.dgt-none::after{content:"";position:absolute;left:-2px;right:-2px;
  top:50%;height:1.5px;background:#ff6b57;transform:rotate(-45deg);}
.dgt-ck{cursor:pointer;}
/* the slide the strip is filtering by */
.dg-cell.dg-pick{outline:2px solid var(--cyan);outline-offset:2px;}
body.light .dgt-c{background:var(--chrome-2);color:var(--ink);}
body.light .dgt-spacer{background:var(--chrome-2);}
body.light .dgt-h{background:var(--chrome-1,#f4f7fa);}
body.light .dgt-n{background:var(--input-bg);
  border-color:var(--border-strong);
  color:var(--ink);}

/* ---- A style says everything ----
   The typeface and three colours, in both places a style can be edited:
   the Text styles window's inline editor and the Style system screen.
   Each colour can also be set to nothing at all, which is a different
   answer from having said nothing. */
.stm-erow .stm-font,.dg-ctrls .dg-font{font-family:var(--sans);
  font-size:11.5px;padding:3px 6px;border-radius:6px;
  background:var(--chrome-1,#0e1926);border:1px solid #ffffff26;
  color:#dce6ee;max-width:120px;}
.stm-col,.dg-colw{display:inline-flex;align-items:center;gap:5px;
  padding:0 2px;}
.stm-collab,.dg-collab{font-family:var(--sans);font-size:11px;
  color:var(--chrome-ink-2);}
.stm-colin,.dg-ctrls .dg-col{width:26px;height:22px;padding:0;
  border:1px solid #ffffff33;border-radius:5px;background:none;
  cursor:pointer;}
body.light .stm-erow .stm-font,body.light .dg-ctrls .dg-font{
  background:#fff;border-color:var(--line);color:var(--ink);}
/* the numbers beside the drag board */
.dg-nums{display:flex;gap:14px;align-items:center;margin:8px 0 2px;}
.dg-num{display:inline-flex;align-items:center;gap:6px;
  font-family:var(--sans);font-size:12px;color:var(--chrome-ink-2);}
.dg-num input{width:62px;height:26px;padding:0 6px;box-sizing:border-box;
  font-family:var(--mono);font-size:12px;color:#e8f1f8;
  background:#ffffff0a;border:1px solid #ffffff26;border-radius:6px;}
.dg-numpc{color:var(--chrome-ink-2);}
body.light .dg-num input{background:var(--input-bg);
  border-color:var(--border-strong);
  color:var(--ink);}

/* ---- A button is its own width ----
   The grid would stretch every cell to its column, so a lone button
   sharing a column with a three-button run would be drawn that run's
   width. Cells start-align, as PowerPoint's do; the things that must fill
   their cell say so here. */
.rbn-row>.rbn-cell,.rbn-row>.sh-drop,.rbn-row>.dc-menuwrap,
.rbn-row>.strip-frame,.rbn-row>.fx-strip{justify-self:stretch;}
.rbn-row>.rbn-cell.rbn-seg{justify-self:start;}
/* ---- No holes, no ragged columns ----
   Two shapes of gap, both handled by sizeRibbonGroups(), the one place
   that knows how many cells a group has and re-runs on every path that
   re-fits the ribbon.

   .rbn-odd: the last cell when the count is odd. Column-major flow over
   two rows leaves it at the top of a column with 37px of nothing under
   it, fenced by the group's dividers into a visible rectangle. It takes
   the whole column and centres in it, so the spare space sits evenly
   above and below rather than as a notch below.

   .rbn-fit: both halves of a column whose two members can be widened
   without looking absurd. The track is already max-content wide; without
   this the narrower button stops short and leaves a ragged right edge. It
   is set in pairs, and never on a pair containing a joined run: a run is
   as wide as all its segments, and stretching a plain button to that is
   the "Tidy page is huge" problem. */
.rbn-row>.rbn-odd{grid-row:1/span 2;align-self:center;}
.rbn-row>.rbn-fit{justify-self:stretch;}
/* List and Numbered are a two-cell column. Their text buttons, not just
   their wrappers, fill the shared width so the caret stays aligned. */
#fmt-bulletswrap.rbn-fit,#fmt-numberswrap.rbn-fit{width:100%;}
#fmt-bulletswrap.rbn-fit>#fmt-bullets,
#fmt-numberswrap.rbn-fit>#fmt-numbers{flex:1;min-width:0;}
/* Background is a tall tile, so its menu hangs off a tile-wide button. The
   transition's scope button is the third of these: a tile that opens a
   menu, so it is the same shape as the tiles it applies. */
#bg-drop.rbn-tall,#hm-updwrap.rbn-tall,
#trans-scopewrap.rbn-tall{justify-self:start;}
/* the merged Update tile is the same shape as the two it replaced (the
   tile inside any tall wrapper is sized by the one standing-tile rule
   beside .fx-tile) */
/* the opacity slider inside its captioned run */
#fmt-opcell .fmt-opwrap{display:flex;align-items:center;gap:5px;
  padding:0 8px 0 4px;align-self:center;}
#fmt-opcell .fmt-range{width:84px;}
/* B I U S: four segments of one width, so the S is not the wide one */
.rbn-cell#tx-run-style .dbtn.etm{min-width:30px;justify-content:center;
  padding-left:4px;padding-right:4px;}
/* ...and A- / A+ are glyphs, so they get the same treatment */
#fmt-sizecell .dbtn.etm{min-width:30px;justify-content:center;
  padding-left:4px;padding-right:4px;}
/* History is a tall tile in a section of its own. It wears rbn-tall in the
   markup, so the grid and sizeRibbonGroups agree that it takes a column. */
/* ---- The flip book's one big button, and its page turn ----
   "+ Add" is the first control in the Picture group and the same height
   as History: an empty flip book is a hole, and the button that fills it
   should not be the smallest thing on the row. The turn itself is one
   keyframe on the frame that changed, so it plays in the show, in an
   exported page, and nowhere else. */
/* History is a tile on Home too, the same size as the others */
/* ---- The way out is on the bar you can see ----
   Two rows, like File over Save beside them: the pair is one errand and
   stacking halves the width it costs the top bar. */
.qat-way{flex:none;}
.qat-way .qat-btn{justify-content:flex-start;}
/* ---- Leaving is an effect, not a cut ----
   The stop an object goes on keeps the element so the exit can play; from
   then on it is invisible and untouchable, and every later stop drops it
   for real. */
@keyframes an-out{from{opacity:1;}to{opacity:0;}}
.an-anim-out{animation:an-out .28s ease forwards;pointer-events:none;}
/* ---- Focus, on its click ----
   spot: every other item on the layer softens; the stage zooms about the
   item and slides it to the middle (the transition is on the stage, which
   survives a re-render, so the zoom back moves too). A lens is a scaled
   clone floated over the page. */
.deck:not(.editing) .annot-layer .an-item{
  transition:filter .35s ease,opacity .35s ease;}
/* Never on a hidden item. Every render builds the items fresh and the
   reveal pass adds .an-prebuild a moment later, so with the transition on
   every item each not-yet-arrived object would flash at full opacity on
   every click and fade out over 350ms. An element whose after-change
   style carries no transition starts none. */
.deck:not(.editing) .annot-layer .an-item.an-prebuild{transition:none;}
.annot-layer.an-spotlit .an-item:not(.an-spot):not(.an-lens){
  filter:blur(3px);opacity:.45;}
/* the visible arrow stroke is not an .an-item (the fat hit path under it
   is), so "Blur the rest" would leave every arrow sharp */
.annot-layer.an-spotlit .an-arrow-line:not(.an-spot){
  filter:blur(3px);opacity:.45;}
.annot-layer.an-spotlit .an-item.an-spot{z-index:20;}
.deck-stage{transition:transform .55s cubic-bezier(.2,.7,.2,1);}
.deck.editing .deck-stage{transition:none;}
.an-item.an-lens{pointer-events:none;z-index:30;opacity:0;
  transition:opacity .3s ease,transform .45s cubic-bezier(.2,.7,.2,1);
  box-shadow:0 18px 60px #000a,0 0 0 2px #ffffff55;
  background:var(--page-bg,#0b141d);border-radius:6px;}
.an-item.an-lens.an-lens-in{opacity:1;}
@media (prefers-reduced-motion:reduce){
  .deck-stage,.an-item.an-lens,.deck:not(.editing) .annot-layer .an-item{
    transition:none;}
}
@media (prefers-reduced-motion: reduce){
  .an-anim-out{animation:none;opacity:0;}}
@keyframes fturn-fade{from{opacity:0;}to{opacity:1;}}
@keyframes fturn-rise{from{opacity:0;transform:translateY(14px);}
  to{opacity:1;transform:none;}}
@keyframes fturn-zoom{from{opacity:0;transform:scale(.93);}
  to{opacity:1;transform:none;}}
.an-flipstage.fturn-fade{animation:fturn-fade .3s ease;}
.an-flipstage.fturn-rise{animation:fturn-rise .34s
  cubic-bezier(.2,.7,.3,1);}
.an-flipstage.fturn-zoom{animation:fturn-zoom .3s
  cubic-bezier(.2,.7,.3,1);}
/* a page that turns on its left edge, and one pushed in from the right.
   The stage is the inner frame, which applyCommon never rotates, so the
   transform shorthand is safe here. */
@keyframes fturn-turn{from{opacity:.3;
  transform:perspective(900px) rotateY(-85deg);}
  to{opacity:1;transform:perspective(900px) rotateY(0);}}
@keyframes fturn-push{from{transform:translateX(100%);}
  to{transform:none;}}
.an-flipstage.fturn-turn{animation:fturn-turn .45s
  cubic-bezier(.2,.7,.3,1);transform-origin:left center;}
.an-flipstage.fturn-push{animation:fturn-push .4s
  cubic-bezier(.2,.7,.3,1);}
@media (prefers-reduced-motion: reduce){
  .an-flipstage.fturn{animation:none!important;}}

/* ---- Quick colours and a visible size ----
   The deck's six colours sit in the row as two segmented cells, one for
   the text and one for the box. The size is a third, holding the number,
   its unit and the two steppers. Nothing here opens a menu. */
.qk-cell{align-items:center;}
.qk-sw{width:15px;height:15px;border-radius:50%;padding:0;flex:none;
  cursor:pointer;border:1.5px solid #ffffff33;margin-right:3px;}
.qk-cell>.qk-sw:last-child{margin-right:5px;}
/* without the caption the first chip would touch the segment border */
.qk-cell>.qk-sw:first-child{margin-left:5px;}
.qk-sw:hover{border-color:#fff;transform:scale(1.14);}
.qk-sw.on{border-color:#fff;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 70%,transparent);}
body.light .qk-sw{border-color:var(--border-strong);}
.edit-tools .rbn-cell.rbn-seg#fmt-sizecell>.fmt-szwrap{display:flex;
  align-items:center;gap:3px;padding:0 6px;align-self:center;}
#fmt-sizecell .fmt-num{width:42px;}
.edit-tools .rbn-cell.rbn-seg#fmt-sizecell>.dbtn{min-width:30px;
  justify-content:center;}
/* the typeface, on the row rather than in a window */
.edit-tools select#fmt-font{min-width:150px;max-width:180px;align-self:center;
  height:var(--rbn-btn-h);}

/* ---- The history of one object, full screen ----
   The rows the dock pane draws, as cards with room to read. */
.oh-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:10px;align-content:start;}
.img-ov .oh-row{background:#ffffff05;border:1px solid #ffffff14;
  border-radius:9px;padding:12px 14px;
  gap:12px;}
.img-ov .oh-row.oh-now{border-color:var(--cyan);}
.img-ov .oh-thumb{width:62px;max-height:52px;}
.img-ov .oh-h{font-size:11px;}
.img-ov .oh-what{font-size:13px;}
.img-ov .oh-do{font-size:12px;padding:5px 10px;}
.img-ov .pf-ok{grid-column:1/-1;}
body.light .img-ov .oh-row{background:var(--surface-hover);
  border-color:var(--line);}

/* ---- A button looks like a button ----
   Every ribbon control has a surface, and one surface: the same fill, the
   same 1px edge, the same 6px corner, at one height per kind. A small
   button is a --rbn-track box, a tile is --rbn-tile-w by --rbn-tile-h,
   and a run is one box with its segments divided inside it. Flat controls
   read as loose words on this ribbon, whose icons are small and one
   colour. Hover lifts a control; pressed fills it with the deep accent. */
.edit-tools{--rbn-btn:var(--btn-bg);--rbn-btn-bd:var(--btn-border);
  --rbn-btn-hi:var(--surface-active);}
.edit-tools .dbtn.rbn-sm,.edit-tools .dbtn.etm,.edit-tools .fx-tile,
.edit-tools .dbtn.lay,.edit-tools .rbn-cell .dbtn,.edit-tools .rbn-foldbtn{
  background:var(--rbn-btn);border:1px solid var(--rbn-btn-bd);
  border-radius:6px;box-shadow:none;}
.edit-tools .dbtn.rbn-sm:hover:not(:disabled),
.edit-tools .dbtn.etm:hover:not(:disabled),
.edit-tools .fx-tile:hover:not(:disabled),
.edit-tools .dbtn.lay:hover:not(:disabled),
.edit-tools .rbn-cell .dbtn:hover:not(:disabled),
.edit-tools .rbn-foldbtn:hover{
  background:var(--rbn-btn-hi);
  border-color:color-mix(in srgb,var(--accent) 55%,transparent);
  color:var(--chrome-ink);}
.edit-tools .dbtn[aria-pressed="true"],.edit-tools .fx-tile.on,
.edit-tools .dbtn.lay[aria-pressed="true"],
.edit-tools .fx-tile[aria-pressed="true"]{
  background:var(--accent-deep,var(--cyan-deep));
  border-color:var(--accent-deep,var(--cyan-deep));
  color:var(--on-accent-deep,#fff);}
.edit-tools .dbtn.dbtn-warn{color:var(--danger);
  border-color:color-mix(in srgb,var(--danger) 42%,transparent);}
.edit-tools .dbtn.dbtn-warn:hover:not(:disabled){
  background:color-mix(in srgb,var(--danger) 13%,transparent);
  border-color:color-mix(in srgb,var(--danger) 70%,transparent);}
/* the colourful theme tints the box's edge and its words with the tab's hue */
/* and never a pressed one: .fx-tile excluded .on but not
   [aria-pressed="true"], so pressed buttons would read exactly like their
   unlit neighbours in this theme */
body.th-colorful .edit-tools .dbtn:not([aria-pressed="true"]):not(:hover),
body.th-colorful .edit-tools .fx-tile:not(.on):not([aria-pressed="true"]):not(:hover){
  border-color:color-mix(in srgb,var(--accent) 30%,transparent);
  background:color-mix(in srgb,var(--accent) 7%,transparent);
  color:color-mix(in srgb,var(--accent) 60%,#f2f7fa);}
body.th-colorful .edit-tools .dbtn:hover:not([aria-pressed="true"]),
body.th-colorful .edit-tools .fx-tile:hover:not(.on):not([aria-pressed="true"]){
  background:color-mix(in srgb,var(--accent) 16%,transparent);
  border-color:color-mix(in srgb,var(--accent) 55%,transparent);}
/* a primary button keeps its fill (Finish in Quick animate) */
.edit-tools .dbtn.rbn-sm.primary,body.light .edit-tools .dbtn.rbn-sm.primary{
  background:var(--cyan);border-color:var(--cyan);color:var(--on-accent);}
/* A run is one box. Its buttons are segments divided by a hairline, and
   its caption (Spacing) is the first segment, inside the box, so the
   word and the choices it names are visibly one control. */
.edit-tools .rbn-row>.rbn-cell.rbn-seg{gap:0;background:var(--rbn-btn);
  border:1px solid var(--rbn-btn-bd);border-radius:6px;overflow:hidden;}
.edit-tools .rbn-cell.rbn-seg>.dbtn{border:0;border-radius:0;
  background:transparent;border-left:1px solid var(--rbn-btn-bd);margin:0;}
.edit-tools .rbn-cell.rbn-seg>.dbtn:first-child,
.edit-tools .rbn-cell.rbn-seg>.cell-lab+.dbtn{border-left:0;}
.edit-tools .rbn-cell.rbn-seg>.dbtn:hover:not(:disabled){
  background:var(--rbn-btn-hi);border-color:var(--rbn-btn-bd);}
.edit-tools .rbn-cell.rbn-seg>.dbtn[aria-pressed="true"]{
  background:var(--accent-deep,var(--cyan-deep));
  border-color:var(--accent-deep,var(--cyan-deep));}
.edit-tools .rbn-cell.rbn-seg>.cell-lab{display:flex;align-items:center;
  align-self:stretch;padding:0 8px 0 9px;
  border-right:1px solid var(--rbn-btn-bd);}
/* ...and in the colourful theme a run is tinted as one box, its segments
   clear, so the box does not sit grey under three tinted buttons */
body.th-colorful .edit-tools .rbn-row>.rbn-cell.rbn-seg{
  border-color:color-mix(in srgb,var(--accent) 30%,transparent);
  background:color-mix(in srgb,var(--accent) 7%,transparent);}
body.th-colorful .edit-tools .rbn-cell.rbn-seg>.dbtn:not([aria-pressed="true"]):not(:hover){
  background:transparent;
  border-left-color:color-mix(in srgb,var(--accent) 30%,transparent);}

/* ---- X Y W H on the Object tab ----
   Two cells in one column: position over size. A label letter, a number
   in millimetres, typed straight in; Enter or leaving the field is one
   undo step. */
.rbn-cell.rbn-geom{gap:6px;padding:0 2px;}
.rbn-geom .geo{display:flex;align-items:center;gap:4px;
  font-family:var(--sans);font-size:10.5px;color:var(--chrome-ink-2);}
.rbn-geom input{width:54px;height:24px;padding:0 5px;box-sizing:border-box;
  font-family:var(--mono);font-size:11px;color:#e8f1f8;
  background:#ffffff0a;border:1px solid #ffffff22;border-radius:5px;
  -moz-appearance:textfield;}
.rbn-geom input::-webkit-outer-spin-button,
.rbn-geom input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.rbn-geom input:focus{outline:none;border-color:var(--accent);}
.rbn-geom input:disabled{opacity:.45;}
/* the angle's degree sign, tight to its number; a label the cell hides (a
   box's Length) takes no room */
.rbn-geom .geo-unit{margin-left:-2px;}
.rbn-geom .geo[hidden]{display:none;}
/* Size & position as one grid: W over X, H over Y, the angle over Rotate,
   placed by hand, so a hidden lock or a longer number never moves one
   under the other. The letters share a width, so the fields line up as
   columns. A line shows only its length and angle. */
.rbn-row>.rbn-stack.rbn-geogrid{display:grid;
  grid-template-columns:auto auto auto;
  grid-template-rows:var(--rbn-track) var(--rbn-track);
  row-gap:var(--rbn-row-gap);column-gap:var(--rbn-col-gap);
  align-items:center;justify-items:start;}
/* Lock position, Flip to its right, the angle under them, so nothing has a
   hole under it. Lock aspect ratio, when a thing has one, takes the place
   under Lock position. The classes are written by showFmt: a :has() here
   would be re-checked on every ribbon change. */
.rbn-geogrid>#fmt-lock{grid-row:1;grid-column:1;justify-self:stretch;}
.rbn-geogrid>#fmt-lockar{grid-row:2;grid-column:1;justify-self:stretch;}
.rbn-geogrid>#fmt-rotwrap{grid-row:1;grid-column:2;justify-self:stretch;}
.rbn-geogrid>#fmt-geom-ang{grid-row:2;grid-column:2;}
.rbn-geogrid>#fmt-geom-wh{grid-row:1;grid-column:3;}
.rbn-geogrid>#fmt-geom-xy{grid-row:2;grid-column:3;}
.rbn-geogrid.geo-onelock>#fmt-geom-ang{grid-column:1/span 2;
  justify-self:stretch;justify-content:space-between;}
.rbn-geogrid.geo-noflip>#fmt-lock{grid-column:1/span 2;}
.rbn-geogrid>.sh-drop:not([hidden]){display:flex;height:100%;}
.rbn-geogrid>.sh-drop>.dbtn{width:100%;}
.rbn-geogrid #fmt-geom-wh .geo>span:first-child,
.rbn-geogrid #fmt-geom-xy .geo>span:first-child{width:11px;
  text-align:center;}
body.light .rbn-geom input{color:var(--ink-2);background:var(--input-bg);
  border-color:var(--border-strong);}

/* ---- Segmented runs ----
   B I U and Left Centre Right are one cell each, so the letters sit
   shoulder to shoulder at their own widths (a grid column would make "U"
   as wide as whatever stood under it). A cell whose every button is
   hidden takes no column. */
.rbn-cell#tx-run-style .dbtn,.rbn-cell#tx-run-align .dbtn{padding:3px 7px;}
.rbn-cell#tx-run-style .dbtn.etm{min-width:28px;justify-content:center;}
/* The child combinator matters. Without it the <b>/<i>/<u>/<s> inside the
   hidden buttons would count as "something showing", so B/I/U/S and
   Left/Centre/Right would stay as 2px slivers beside a shape or a table
   and push the row's first control to the bottom track. */
.rbn-row>.rbn-cell:not(:has(>:not([hidden]))){display:none;}

/* ---- The review views, full screen ----
   Mismatched text and Tidy page draw their cards into a grid with room to
   read, under the same header the All images view has. */
.std-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));
  gap:10px;align-content:start;}
.img-ov .std-find{margin:0;background:#ffffff05;border:1px solid #ffffff14;
  border-radius:9px;padding:12px 14px;}
.img-ov .std-h{font-size:14px;}
.img-ov .std-why{font-size:12.5px;}
.img-ov .pf-ok{grid-column:1/-1;font-size:14px;max-width:760px;}
.img-ov .hd-lab{grid-column:1/-1;margin-top:6px;}
.img-ov .std-find.std-fig{grid-column:auto;}
body.light .img-ov .std-find{background:var(--surface-hover);
  border-color:var(--line);}
.lay-ideas .li-grid{gap:16px;}
.lay-ideas .li-card{padding:10px;}
.lay-ideas .li-lab{font-size:13px;}

/* ---- A run says what it is ----
   The spacing trio wears a small caption inside its cell. */
.rbn-cell .cell-lab{align-self:center;font-family:var(--sans);font-size:11.5px;
  letter-spacing:0;text-transform:none;color:var(--chrome-ink-2);padding:0 6px 0 2px;}

/* ---- Before you print, full screen ----
   The same rows the pane draws, as cards in the review grid. */
.img-ov .pf-row{display:flex;flex-direction:column;gap:4px;text-align:left;
  padding:12px 14px;border-radius:9px;border:1px solid #ffffff14;
  background:#ffffff05;font-size:13px;}
.img-ov .pf-row .pf-what{font-size:14px;font-weight:600;}
.img-ov .pf-row .pf-why{font-size:12.5px;}
body.light .img-ov .pf-row{background:var(--surface-hover);
  border-color:var(--line);}

/* ---- Room to read on a big screen ----
   The ribbon's sizes are set for a laptop; on a wide monitor the text
   grows a step while the geometry stays. */
@media (min-width:1600px){
  .edit-tools .dbtn.rbn-sm,.edit-tools .dbtn.etm{font-size:12.5px;}
  .edit-tools .fx-tile{font-size:11.5px;}
  .edit-tools .rbn-lab{font-size:10.5px;}
  .edit-tools .rbn-cell .cell-lab{font-size:12px;}
  .rbn-tab{font-size:13.5px;}
}

/* ---- The Present tab ---- */
.rbn-play{order:1;}
.rbn-version{order:2;}    /* which version, between Play and the talk */
.rbn-talk{order:3;}
.rbn-handouts{order:5;}
/* a deck with no versions has one tile and no strip to speak of: the
   frame is as wide as that tile */
.strip-frame>#pr-version-strip.trans-strip{width:max-content;
  max-width:calc(4 * var(--rbn-tile-w) + 3 * var(--rbn-tile-gap) + 8px);}

/* ---- The folded button is a tile; the delay's cell ---- */
.rbn-grp.rbn-folded>.rbn-foldwrap{align-items:center;}
/* A fold button is a wider tile (a group's name is longer than a verb)
   and, like every tile, never narrower than its text. One with a choice
   on it keeps its name on one line (the tile's has-val rule), so "Text
   sequence ▾" widens the button rather than dropping its chevron onto a
   line of its own; one without wraps its name into the 82px. The readout
   itself is the tile's (.fx-tile>.rbn-foldval), shared with New slide and
   Send it away. */
.rbn-foldwrap .fx-tile.rbn-foldbtn{height:var(--rbn-tile-h);min-width:82px;}
.rbn-foldwrap .fx-tile.rbn-foldbtn>span{text-align:center;line-height:1.15;}
.rbn-foldwrap .fx-tile.rbn-foldbtn:not(.has-val)>span{white-space:normal;}
/* the fold button's readout: the current choice, under the name. The icon
   stays, so the choosers are not the only icon-less tiles on the bar;
   with the has-val gap the three lines fit the tile. */
.rbn-foldbtn.has-val>span:first-of-type{font-size:11px;color:var(--ink-2);}
#anim-delaycell .fmt-szwrap{display:flex;align-items:center;gap:4px;}
#anim-delaycell .cell-lab{padding-left:2px;}

/* ---- A work view is a sheet, not the whole window ----
   History, the Style system, the deck in words, the bigger notes editor,
   the item view and the card lists are each a sheet: centred, at most
   1180px wide, as tall as what is in it (the views that are a writing
   surface keep the full height), over the editor dimmed but still there.
   Edge to edge they would fill the window at a laptop's 1366x657 with a
   narrow list on an empty page. The slide sorter and the shows stay full
   screen, since the window is what they are for. The card lists are still
   the width of a page, never a 272px pane. */
.deck-history,.deck-design,.deck-review,.deck-notesed,.img-ov,.vfull,
.sh-menu.lay-ideas{inset:24px;margin:auto;box-sizing:border-box;
  width:min(1180px,calc(100vw - 48px));height:fit-content;
  max-height:calc(100vh - 48px);
  border:1px solid var(--chrome-line,#ffffff24);border-radius:12px;
  box-shadow:0 24px 70px #000000a6,0 0 0 100vmax rgb(3 8 13 / .58);}
/* writing surfaces fill the height the sheet may have */
.deck-review,.deck-notesed,.vfull{height:calc(100vh - 48px);}
/* the dimmed editor is not clickable through the sheet: this layer is
   the sheet's own (a press on it is a press on the sheet, which
   sheetBoot reads as "close"), transparent, under everything in it */
.deck-history::before,.deck-design::before,.deck-review::before,
.deck-notesed::before,.img-ov::before,.vfull::before,
.sh-menu.lay-ideas::before{content:"";position:fixed;inset:0;z-index:-1;}
body.light .deck-history,body.light .deck-design,body.light .deck-review,
body.light .deck-notesed,body.light .img-ov,body.light .vfull{
  box-shadow:0 24px 70px #0000004d,0 0 0 100vmax rgb(20 30 40 / .34);}

/* ---- New presentation: blank, or a starting deck ----
   A small dialog: five cards in one row at a laptop's width, each drawn
   from the deck it makes (a contact sheet of its first four slides, or
   its one page), its name and slide count, and one line on what it is
   for. Wraps to two rows below about 1000px; never a screen of its own. */
.aa-box.nt-box{width:min(980px,94vw);}
.nt-grid{display:grid;gap:10px;overflow-y:auto;min-height:0;
  grid-template-columns:repeat(auto-fill,minmax(176px,1fr));}
.nt-card{display:flex;flex-direction:column;gap:6px;text-align:left;
  padding:8px;border-radius:9px;cursor:pointer;color:var(--chrome-ink);
  background:var(--chrome-1);border:1px solid var(--chrome-line);
  font-family:var(--sans);}
.nt-card:hover,.nt-card:focus-visible{border-color:var(--accent,var(--cyan));
  background:color-mix(in srgb,var(--accent) 9%,var(--chrome-1));
  outline:none;}
.nt-sheet{display:grid;grid-template-columns:repeat(2,max-content);
  gap:4px;justify-content:center;align-content:center;height:94px;}
.nt-sheet.nt-one{grid-template-columns:max-content;}
.nt-sheet .mini-diagram{border-radius:3px;pointer-events:none;}
.nt-name{display:flex;align-items:baseline;gap:6px;font-size:13px;
  font-weight:600;}
.nt-n{margin-left:auto;font:400 10px var(--mono);color:var(--chrome-ink-3);
  white-space:nowrap;}
.nt-blurb{font-size:11px;line-height:1.4;color:var(--chrome-ink-2);}

/* ---- The picked cells, the Lines look, and the table menus ----
   A picked cell is tinted and ringed in the accent, inside its own rules
   so the grid does not shift. Only while editing: drawTable adds the
   class from the pick, and nothing is picked in a show or a print. */
.deck.editing .an-tbl td.tc-sel,.deck.editing .an-tbl th.tc-sel{
  box-shadow:inset 0 0 0 2px var(--accent,var(--cyan)),
    inset 0 0 0 999px color-mix(in srgb,var(--accent,#39a9c0) 16%,transparent);}
.an-table.tst-lines .an-tbl th{background:none;
  border-bottom-width:calc(var(--tbl-sw,1px) * 2.5);}
.sh-menu.tbl-menu{display:flex;flex-direction:column;gap:3px;
  width:288px;padding:8px;}
.tbl-menu .vw-opt{width:100%;text-align:left;align-items:flex-start;
  flex-direction:column;gap:2px;padding:7px 10px;height:auto;}
.tbl-menu .vw-opt[disabled]{opacity:.45;}
.tbl-note{font:11.5px var(--sans);color:var(--chrome-ink-3);
  padding:4px 4px 2px;}
.tbl-swatches{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;
  padding:2px 2px 4px;}
.tbl-sw{height:24px;border-radius:5px;border:1px solid var(--chrome-line);
  cursor:pointer;padding:0;}
.tbl-sw:hover{outline:2px solid var(--accent,var(--cyan));outline-offset:1px;}
.tbl-sw[disabled]{opacity:.4;cursor:default;outline:none;}
.tbl-fill-foot{display:flex;align-items:center;gap:8px;padding:2px;}
.tbl-anylab{display:flex;align-items:center;gap:6px;font:12px var(--sans);
  color:var(--chrome-ink-2);cursor:pointer;}
.tbl-any{width:30px;height:24px;padding:0;border:1px solid var(--chrome-line);
  border-radius:5px;background:none;cursor:pointer;}
.sh-menu.tbl-style-menu{width:330px;}
.tbl-gal{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;
  padding:2px 2px 4px;}
.tbl-card{display:flex;flex-direction:column;align-items:center;gap:4px;
  padding:6px;border-radius:7px;cursor:pointer;color:var(--chrome-ink-2);
  background:var(--page-bg,var(--chrome-0));border:1px solid var(--chrome-line);
  font:11px var(--sans);}
.tbl-card:hover{border-color:var(--accent,var(--cyan));}
.tbl-card[aria-pressed="true"]{border-color:var(--accent,var(--cyan));
  box-shadow:0 0 0 1px var(--accent,var(--cyan));color:var(--chrome-ink);}
.tbl-prev{display:flex;flex-direction:column;width:84px;
  border:1px solid color-mix(in srgb,var(--chrome-ink) 30%,transparent);}
.tbl-prev-r{display:flex;}
.tbl-prev-c{flex:1;height:9px;border-right:1px solid
  color-mix(in srgb,var(--chrome-ink) 22%,transparent);
  border-bottom:1px solid color-mix(in srgb,var(--chrome-ink) 22%,transparent);}
.tbl-prev-c:last-child{border-right:0;}
.tbl-opt{display:flex;align-items:flex-start;gap:8px;padding:5px 6px;
  font:12px/1.4 var(--sans);color:var(--chrome-ink-2);cursor:pointer;
  border-radius:6px;}
.tbl-opt:hover{background:color-mix(in srgb,var(--accent) 10%,transparent);}
.tbl-opt b{color:var(--chrome-ink);font-weight:600;}
.tbl-opt input{margin:2px 0 0;accent-color:var(--accent,var(--cyan));}

/* ---- Ink while presenting ----
   The ink lies over the slide in its own percentages, above everything on
   it. It takes the pointer only while a tool is up, so a click on the
   slide still advances otherwise. The bar is small, bottom-left, and only
   there while a tool is. */
.jv-ink{position:absolute;inset:0;width:100%;height:100%;z-index:30;
  pointer-events:none;overflow:visible;}
.jv-ink.jv-ink-live{pointer-events:auto;cursor:crosshair;touch-action:none;}
.jv-ink.jv-ink-live.jv-ink-erase{cursor:cell;}
.jv-inkbar{position:fixed;left:14px;bottom:14px;z-index:440;display:flex;
  align-items:center;gap:4px;padding:5px;border-radius:10px;
  background:color-mix(in srgb,var(--chrome-1,#0e1926) 88%,transparent);
  border:1px solid var(--chrome-line,#ffffff24);
  box-shadow:0 8px 26px #00000066;opacity:.55;transition:opacity .2s;}
.jv-inkbar:hover,.jv-inkbar:focus-within{opacity:1;}
.jv-inkbar[hidden]{display:none;}
.jv-ink-b{white-space:nowrap;padding:4px 8px;font-size:11px;}
.jv-ink-b[aria-pressed="true"]{border-color:var(--accent,var(--cyan));
  color:var(--chrome-ink);background:color-mix(in srgb,var(--accent) 18%,
  transparent);}
.jv-ink-cols{display:flex;gap:4px;padding:0 4px;}
.jv-ink-col{width:18px;height:18px;border-radius:50%;padding:0;
  cursor:pointer;border:2px solid var(--chrome-line,#ffffff33);}
.jv-ink-col[aria-pressed="true"]{border-color:var(--chrome-ink,#fff);
  box-shadow:0 0 0 2px var(--accent,var(--cyan));}
/* on a light page a highlighter darkens what is under it, as a real one
   does, rather than laying a pale film over the words */
.slide.page-light .jv-ink .jv-hl{mix-blend-mode:multiply;}

/* ---- Comments ----
   A marker is a small amber speech bubble on the corner of what it is
   about, drawn only while editing (cmtMount), never in the show, a print
   or an export, with a count when there is more than one there. */
.cmt-pins{position:absolute;inset:0;pointer-events:none;z-index:9;}
.cmt-pin{position:absolute;transform:translate(-50%,-50%);
  pointer-events:auto;display:inline-flex;align-items:center;gap:2px;
  height:22px;min-width:22px;padding:0 5px;border-radius:11px 11px 11px 3px;
  border:1px solid color-mix(in srgb,#f0a848 70%,#000);
  background:#f0a848;color:#1a1205;cursor:pointer;
  box-shadow:0 2px 8px #0006;font:700 10.5px var(--sans);}
.cmt-pin .bic{width:12px;height:12px;}
.cmt-pin:hover{outline:2px solid var(--accent,var(--cyan));outline-offset:1px;}
.film-mark.cmt{display:inline-flex;align-items:center;gap:2px;
  color:var(--warning,#f0a848);}
.film-mark.cmt .bic{width:10px;height:10px;}
.compane .selpane-list{display:flex;flex-direction:column;gap:8px;}
.cmt-tabs{margin:-2px -10px 2px;}
.cmt-compose{display:flex;flex-direction:column;gap:5px;}
.cmt-on{font:11.5px var(--sans);color:var(--chrome-ink-2);}
.cmt-ta{min-height:54px;font:12.5px/1.45 var(--sans);}
.cmt-row{display:flex;align-items:center;justify-content:flex-end;gap:6px;}
.cmt-link{background:none;border:0;padding:0;cursor:pointer;
  color:var(--accent,var(--cyan));font:inherit;text-align:left;}
.cmt-link:hover{text-decoration:underline;}
.cmt-empty{font:12px var(--sans);color:var(--chrome-ink-3);padding:6px 2px;}
.cmt-slide{background:none;border:0;padding:6px 0 0;cursor:pointer;
  text-align:left;font:600 11px var(--sans);color:var(--chrome-ink-2);
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.cmt-card{background:var(--chrome-1);border:1px solid var(--chrome-line);
  border-radius:8px;
  padding:7px 9px;display:flex;flex-direction:column;gap:5px;}
.cmt-card.done{opacity:.75;}
.cmt-card.cmt-flash{box-shadow:0 0 0 2px var(--accent,var(--cyan));}
.cmt-head{display:flex;align-items:baseline;gap:8px;font:11px var(--sans);}
.cmt-head .cmt-link{flex:1;min-width:0;overflow:hidden;white-space:nowrap;
  text-overflow:ellipsis;}
.cmt-when{font:10px var(--mono);color:var(--chrome-ink-3);white-space:nowrap;}
.cmt-text{font:12.5px/1.45 var(--sans);color:var(--chrome-ink);
  white-space:pre-wrap;overflow-wrap:anywhere;}
.cmt-re{margin-left:10px;padding-left:8px;border-left:1px solid
  var(--chrome-line);display:flex;flex-direction:column;gap:2px;}
.cmt-acts{display:flex;gap:4px;flex-wrap:wrap;}
.cmt-act{padding:3px 8px;font-size:10.5px;}
.cmt-done>summary{cursor:pointer;font:600 11px var(--sans);
  color:var(--chrome-ink-2);padding:4px 0;}
.cmt-done>.cmt-card{margin-top:6px;}

/* ---- Diagram: the kinds, the steps and the preview ----
   A small dialog, never a screen: four kinds across the top (each drawn
   by the layout it places), the steps on the left in a fixed-width face
   so the indents read, and the preview at the slide's own shape on the
   right. One column on a phone. */
.aa-box.dgm-box{width:min(640px,94vw);}
.dgm-kinds{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;}
.dgm-kind{display:flex;flex-direction:column;align-items:center;gap:4px;
  padding:6px 6px 5px;border-radius:8px;cursor:pointer;
  background:var(--chrome-1);border:1px solid var(--chrome-line);
  color:var(--chrome-ink);font:600 12px var(--sans);}
.dgm-kind:hover,.dgm-kind:focus-visible{outline:none;
  border-color:color-mix(in srgb,var(--accent) 60%,var(--chrome-line));}
.dgm-kind.on{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 12%,var(--chrome-1));}
.dgm-mini{display:block;width:100%;max-width:118px;height:auto;
  border-radius:4px;pointer-events:none;}
.dgm-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;
  min-height:0;}
.dgm-col{display:flex;flex-direction:column;gap:5px;min-width:0;}
.dgm-lab{font-size:11.5px;line-height:1.35;color:var(--chrome-ink-2);}
.dgm-text{font:12.5px/1.5 var(--mono);tab-size:2;resize:vertical;
  min-height:118px;}
.dgm-preview .dgm-svg{display:block;border-radius:6px;
  border:1px solid var(--chrome-line);}
.dgm-count{font:10.5px var(--mono);color:var(--chrome-ink-3);}
@media (max-width:560px){
  .dgm-kinds{grid-template-columns:repeat(2,1fr);}
  .dgm-body{grid-template-columns:minmax(0,1fr);}
}

/* ---- The pages of a PDF ----
   Pictures of the pages to choose from, as many to a row as fit; where
   they go and the slides' size under them. */
.aa-box.pdf-box{width:min(980px,96vw);}
.pdf-bar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.pdf-bar .dbtn.rbn-sm{padding:3px 10px;font:12px var(--sans);}
.pdf-range{display:flex;gap:7px;align-items:center;font-size:12px;
  color:var(--chrome-ink-2);}
.pdf-range .ask-in{width:130px;}
.pdf-count{margin-left:auto;font-size:12px;color:var(--chrome-ink-2);}
.pdf-bar[hidden],.pdf-grid[hidden],.pdf-opts[hidden],.pdf-say[hidden],
.pdf-opt[hidden],.pdf-prog[hidden]{display:none;}
.pdf-grid{display:grid;gap:10px;align-items:start;align-content:start;
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  height:min(48vh,430px);overflow:auto;padding:8px;border-radius:7px;
  border:1px solid var(--chrome-line);background:var(--chrome-1);}
.pdf-grid[inert]{opacity:.5;}
.pdf-page{display:flex;flex-direction:column;gap:4px;padding:5px;cursor:pointer;
  border:2px solid transparent;border-radius:6px;background:none;
  color:var(--chrome-ink-2);font:11.5px var(--sans);opacity:.6;}
.pdf-page:hover,.pdf-page:focus-visible{outline:none;
  border-color:color-mix(in srgb,var(--accent) 45%,transparent);}
.pdf-page.on{border-color:var(--accent);opacity:1;color:var(--chrome-ink);}
.pdf-th{display:block;position:relative;background:#fff;border-radius:2px;}
.pdf-th canvas{position:absolute;inset:0;width:100%;height:100%;
  border-radius:2px;}
.pdf-n{text-align:center;}
.pdf-say{font-size:12.5px;line-height:1.4;color:var(--chrome-ink-2);}
.pdf-say.bad{color:var(--danger);}
.pdf-prog{width:100%;height:8px;accent-color:var(--accent);}
.pdf-opts{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;}
.pdf-opt{display:flex;gap:8px;align-items:center;font-size:12.5px;
  color:var(--chrome-ink);}
@media (max-width:560px){
  .pdf-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));}
}

/* ---- A Mermaid diagram's window ----
   The text and what it draws side by side, with line numbers beside the
   text so a fault's line can be found. One column on a phone. */
.aa-box.mmd-box{width:min(1040px,96vw);}
.mmd-kinds{display:flex;flex-wrap:wrap;gap:5px;align-items:center;}
.mmd-lab{font-size:11.5px;line-height:1.35;color:var(--chrome-ink-2);}
.mmd-kinds .mmd-lab{margin-right:4px;}
.mmd-kinds .dbtn{padding:3px 9px;font:12px var(--sans);}
.mmd-body{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);
  gap:12px;min-height:0;}
.mmd-col{display:flex;flex-direction:column;gap:5px;min-width:0;}
.mmd-ed{display:flex;height:min(46vh,400px);border-radius:6px;overflow:hidden;
  border:1px solid var(--chrome-line);background:var(--chrome-1);}
.mmd-ed:focus-within{border-color:var(--accent);}
.mmd-nums{flex:none;overflow:hidden;padding:8px 6px 24px;text-align:right;
  min-width:20px;font:12.5px/1.5 var(--mono);color:var(--chrome-ink-3);
  user-select:none;}
.mmd-nums span{display:block;}
.mmd-nums .bad{color:var(--danger);font-weight:700;}
.mmd-text{flex:1;min-width:0;border:0;outline:0;resize:none;padding:8px;
  background:transparent;color:var(--chrome-ink);white-space:pre;
  overflow:auto;font:12.5px/1.5 var(--mono);tab-size:2;}
.mmd-say{min-height:34px;font-size:12px;line-height:1.4;
  color:var(--chrome-ink-2);}
.mmd-say.bad{color:var(--danger);}
.mmd-pv{display:flex;align-items:center;justify-content:center;padding:14px;
  height:min(46vh,400px);border-radius:6px;overflow:hidden;
  border:1px solid var(--chrome-line);}
.mmd-pv img{display:block;max-width:100%;max-height:100%;}
.mmd-pv img[hidden]{display:none;}
.mmd-pv.stale img{opacity:.35;}
.mmd-help{font-size:12px;color:var(--chrome-ink-2);}
@media (max-width:640px){
  .mmd-body{grid-template-columns:minmax(0,1fr);}
  .mmd-ed,.mmd-pv{height:26vh;}
}

/* ---- One animation rule for many slides ----
   A row per kind of thing (its colour, its name, how many there are in
   the slides chosen, then four choices and Earlier), the current slide
   drawn small beside them with the click each thing arrives on, and
   which slides get it underneath. Every colour is the theme's own except
   the seven kind colours, which sit on the slide's own page colour in the
   preview. Laid out to fit 1280x600 without a scroll. */
.aa-box.anr-box{width:min(940px,96vw);gap:8px;}
.anr-q{font:12px var(--sans);padding:3px 9px;white-space:nowrap;}
.anr-q[aria-expanded="true"]{border-color:var(--accent);color:var(--accent);}
.anr-help{margin:0;font-size:12px;line-height:1.45;color:var(--chrome-ink-2);
  background:var(--chrome-1);border:1px solid var(--chrome-line);
  border-radius:8px;padding:7px 10px;}
.anr-help[hidden]{display:none;}
.anr-body{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap;
  min-height:0;}
.anr-main{flex:1 1 560px;min-width:0;display:flex;flex-direction:column;
  gap:5px;}
.anr-side{flex:0 0 200px;display:flex;flex-direction:column;gap:6px;}
.anr-lab{font-size:11.5px;color:var(--chrome-ink-2);white-space:nowrap;}
.anr-order{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.anr-order .cfg-chip{margin:0;}
/* the fourth choice (One by one / All together) is every kind's, so its
   column takes a little from the three before it, each of which still
   reads its longest choice whole */
.anr-heads,.anr-row{display:grid;align-items:center;gap:6px;
  grid-template-columns:minmax(170px,1.6fr) minmax(0,.92fr) minmax(0,1.1fr)
    minmax(0,.96fr) minmax(0,1.02fr) auto;}
.anr-heads{font-size:10.5px;color:var(--chrome-ink-3);padding:0 2px;}
.anr-rows{display:flex;flex-direction:column;gap:3px;}
.anr-row{padding:2px 2px;border-radius:6px;}
.anr-row:hover{background:var(--surface-hover);}
.anr-kind{display:flex;align-items:center;gap:6px;min-width:0;
  font-size:12.5px;color:var(--chrome-ink);}
.anr-kind .bic{width:13px;height:13px;flex:none;color:var(--chrome-ink-2);}
.anr-kn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.anr-n{font:10.5px var(--mono);color:var(--chrome-ink-3);flex:none;}
.anr-sw{width:10px;height:10px;border-radius:3px;flex:none;
  background:var(--anr-c);}
.anr-row.anr-none .anr-kind{color:var(--chrome-ink-3);}
.anr-row.anr-off .anr-sel:not(.anr-fx){opacity:.45;}
.anr-sel{width:100%;min-width:0;box-sizing:border-box;font:12px var(--sans);
  padding:4px 6px;border-radius:6px;color:var(--chrome-ink);
  background:var(--input-bg);border:1px solid var(--border-strong);}
.anr-sel:focus-visible,.anr-range:focus-visible{outline:2px solid var(--focus);
  outline-offset:1px;}
.anr-sel:disabled{cursor:default;opacity:.55;}
.anr-up{font:11.5px var(--sans);padding:3px 8px;white-space:nowrap;}
.anr-up:disabled{opacity:.35;cursor:default;}
.anr-rows.anr-place .anr-up{visibility:hidden;}
/* the seven kinds: one hue each, the same in the legend and the preview */
.anr-k-title{--anr-c:#e0a33a;}
.anr-k-text{--anr-c:#4fb3d9;}
.anr-k-figure{--anr-c:#7cc46a;}
.anr-k-image{--anr-c:#b38cf0;}
.anr-k-shape{--anr-c:#f08a6c;}
.anr-k-table{--anr-c:#46b8a8;}
.anr-k-code{--anr-c:#9aa9b6;}
.anr-pv{position:relative;width:100%;aspect-ratio:16 / 9;overflow:hidden;
  border-radius:6px;border:1px solid var(--chrome-line);
  background:var(--chrome-0);}
.anr-o{position:absolute;box-sizing:border-box;border-radius:2px;
  background:color-mix(in srgb,var(--anr-c) 42%,transparent);
  border:1px solid var(--anr-c);}
.anr-o b{position:absolute;left:1px;top:1px;font:700 9px/1 var(--mono);
  color:#0b141d;background:var(--anr-c);border-radius:3px;padding:1px 3px;}
.anr-o.anr-wait{opacity:0;}
.anr-pvfoot{display:flex;align-items:center;gap:8px;}
.anr-pvn{font:10.5px var(--mono);color:var(--chrome-ink-3);}
.anr-opts{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;
  padding-top:7px;border-top:1px solid var(--chrome-line);}
.anr-opt{display:flex;align-items:center;gap:6px;}
.anr-opts .anr-sel{width:auto;}
.anr-range{width:96px;box-sizing:border-box;font:12px var(--mono);
  padding:4px 6px;border-radius:6px;color:var(--chrome-ink);
  background:var(--input-bg);border:1px solid var(--border-strong);}
.anr-range[hidden]{display:none;}
.anr-sum{font-size:12px;color:var(--chrome-ink-2);}
/* Replace taking entrances off is said in the danger ink, before Apply */
.anr-sum.anr-sum-warn{color:var(--danger);}
@media (max-width:760px){
  .anr-side{flex:1 1 100%;flex-direction:row;align-items:flex-end;}
  .anr-pv{width:180px;}
}
@media (max-height:640px){
  .aa-box.anr-box{gap:6px;padding:9px 12px 9px;}
  .anr-row{padding:1px 2px;}
  .anr-sel{padding:3px 6px;}
}

/* ---- Narration: the recording bar, the strip mark, the pane ----
   The bar sits at the foot of the screen, centred: the ink bar has the
   left corner and the slide count the right. Faint until the pointer
   comes to it, like the ink bar, but its dot stays red so the microphone
   is always known to be on. */
.jv-recbar{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);
  z-index:440;display:flex;align-items:center;gap:8px;padding:5px 6px 5px 10px;
  border-radius:999px;background:rgb(11 20 29 / .86);color:#e8eef3;
  border:1px solid #ffffff22;font:12px var(--sans);opacity:.72;
  box-shadow:0 8px 26px #0007;transition:opacity .15s;}
.jv-recbar:hover{opacity:1;}
.jv-recbar[hidden]{display:none;}
.jv-recbar .rec-dot{width:10px;height:10px;border-radius:50%;flex:none;
  background:#ff3b30;box-shadow:0 0 0 3px rgb(255 59 48 / .25);}
.jv-recbar.paused .rec-dot{background:#f0a848;box-shadow:none;}
.jv-recbar .rec-t{font-variant-numeric:tabular-nums;white-space:nowrap;}
.jv-recbar .dbtn{font-size:11.5px;padding:3px 9px;white-space:nowrap;}
.film-mark.narr{color:var(--danger);}
.np-narr{display:flex;align-items:center;flex-wrap:wrap;gap:6px;
  margin-top:8px;padding-top:8px;border-top:1px solid var(--chrome-line);}
.np-narr-lab{flex:1 1 auto;font-size:12px;color:var(--chrome-ink-2);
  display:inline-flex;align-items:center;gap:5px;}
.np-narr .dbtn{font-size:11.5px;padding:3px 9px;}
/* A linked slide is read only (57-parts partShield): a cover over the
   slide that takes every press. Above the annot layer (6) and its
   selection paint; under the deck's menus. */
.deck.editing .slide>.lk-shield{position:absolute;inset:0;z-index:8;
  cursor:not-allowed;border-radius:inherit;}
.lk-menu .lk-say{padding:4px 10px 8px;font-size:12px;line-height:1.4;
  color:var(--chrome-ink-2,#9fb0c0);}
body.light .lk-menu .lk-say{color:var(--ink-2,#555);}
/* Contents, in the slide's place (57-parts openParts): over #deck-stage
   and nothing else, its top and height set from the stage (partsFit),
   with the ribbon greyed while it is there. Above the slide's layers and
   the stage's own chrome; under the deck's menus (240) and its questions
   (300). */
.deck-parts{position:absolute;left:0;right:0;z-index:125;overflow:auto;
  scroll-padding-top:64px;  /* a row brought into view, clear of .prt-head */
  background:var(--chrome-0,#0b141d);
  font-family:var(--sans);color:var(--chrome-ink,#d7e3ec);}
/* one column, everything in it in line: the title and its buttons, the
   list, the add row, the settings */
.ct-col{max-width:920px;margin:0 auto;padding:0 20px 28px;}
.deck-parts .prt-head{display:flex;align-items:center;gap:10px;
  position:sticky;top:0;z-index:2;background:var(--chrome-0,#0b141d);
  padding:14px 0 10px;}
.deck-parts .prt-head .ovw-t{font-size:16px;font-weight:600;
  color:var(--chrome-ink,#d7e3ec);}
.deck-parts .prt-body{padding:0;}
.deck.ct-open #edit-tools .rbn-grp{opacity:.38;pointer-events:none;
  filter:grayscale(1);}
/* the rows */
.ct-list{display:flex;flex-direction:column;gap:6px;}
/* the columns, the same in the header, the total and every row: handle,
   arrow, name, slides, size, where its slides are */
.ct-cols,.ct-total,.ct-hd{display:grid;align-items:center;column-gap:16px;
  grid-template-columns:18px 20px minmax(0,1fr) 56px 72px minmax(290px,auto);
  padding:0 12px 0 7px;}
.ct-cols>.ct-c-name,.ct-total>.ct-c-name{grid-column:3;}
.ct-c-name{display:flex;align-items:center;gap:8px;min-width:0;}
.ct-c-n,.ct-c-sz{text-align:right;font-variant-numeric:tabular-nums;
  font-size:12.5px;color:var(--chrome-ink-2,#93a8ba);}
.ct-c-where{display:flex;justify-content:flex-start;align-items:center;
  gap:10px;min-width:0;margin-left:14px;}
.ct-cols{padding-top:4px;padding-bottom:6px;font-size:11px;font-weight:600;
  color:var(--chrome-ink-3,#6f8293);}
.ct-cols .ct-c-n,.ct-cols .ct-c-sz{font-size:11px;color:inherit;}
.ct-total{min-height:40px;margin-bottom:8px;border-radius:9px;
  border:1px solid transparent;
  background:color-mix(in srgb,var(--accent) 9%,transparent);}
.ct-total .ct-c-name{font-size:13px;font-weight:700;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;}
.ct-total .ct-c-n,.ct-total .ct-c-sz{font-weight:700;
  color:var(--chrome-ink,#d7e3ec);}
.ct-total .ct-c-where{font-size:12px;color:var(--chrome-ink-2,#93a8ba);
  padding-left:10px;}
/* adding more: under the list, in line with the names */
.ct-add{display:flex;gap:8px;flex-wrap:wrap;padding:10px 0 0 55px;}
/* the settings, all on show, in two columns where there is room */
.ct-set{margin-top:26px;padding-top:14px;
  border-top:1px solid var(--chrome-line,#ffffff1a);}
.ct-set[hidden]{display:none;}
.ct-set-t{margin:0 0 10px;font-size:14px;font-weight:600;}
.ct-set .pz-body{display:grid;grid-template-columns:repeat(auto-fill,
  minmax(270px,1fr));column-gap:32px;overflow:visible;padding:0;}
.ct-set .pz-set,.ct-set .pz-set:first-child{border-top:1px solid
  var(--chrome-line,#ffffff1a);padding:12px 0 14px;}
.ct-row{border:1px solid var(--chrome-line,#ffffff1f);border-radius:9px;
  background:var(--chrome-1,#0f1b26);
  box-shadow:inset 3px 0 0 var(--ct-c,transparent);}
.ct-row.on{border-color:color-mix(in srgb,var(--accent) 45%,transparent);}
.ct-row.dragging{opacity:.45;}
.ct-row.drop-before{box-shadow:inset 3px 0 0 var(--ct-c,transparent),
  0 -3px 0 0 var(--accent);}
.ct-row.drop-after{box-shadow:inset 3px 0 0 var(--ct-c,transparent),
  0 3px 0 0 var(--accent);}
.ct-row.drop-in{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 10%,var(--chrome-1,#0f1b26));}
.ct-hd{min-height:44px;}
.ct-grip{flex:none;width:18px;text-align:center;cursor:grab;font-size:15px;
  line-height:1;color:var(--chrome-ink-3,#6f8293);user-select:none;}
.ct-grip:hover{color:var(--chrome-ink,#d7e3ec);}
.ct-ex{all:unset;flex:none;width:20px;height:20px;display:grid;
  place-items:center;border-radius:4px;cursor:pointer;font-size:11px;
  color:var(--chrome-ink-2,#93a8ba);}
.ct-ex:hover{background:#ffffff14;color:var(--chrome-ink,#d7e3ec);}
.ct-ex:disabled{visibility:hidden;}
.ct-ex:focus-visible,.ct-go:focus-visible,.ct-chip:focus-visible{
  outline:2px solid var(--accent);}
.ct-go{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:7px;
  min-width:0;font-size:13px;font-weight:600;border-radius:5px;padding:2px 5px;}
.ct-go:hover .ct-nm{text-decoration:underline;}
.ct-go:disabled{cursor:default;opacity:.6;}
.ct-go .bic{width:14px;height:14px;flex:none;color:var(--chrome-ink-2,#93a8ba);}
.ct-nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ct-from,.ct-warn{flex:none;font-size:11.5px;color:var(--chrome-ink-2,#93a8ba);}
.ct-warn{color:var(--warning,#e0b050);}
.ct-chip{all:unset;flex:none;cursor:pointer;display:inline-flex;
  align-items:center;gap:5px;height:24px;padding:0 10px;border-radius:12px;
  font-size:12px;background:#ffffff10;border:1px solid #ffffff1f;
  color:var(--chrome-ink,#d7e3ec);}
.ct-chip:hover{background:#ffffff1c;}
/* where a row's slides are kept, said; Other settings beside it */
.ct-where-w{font-size:12px;white-space:nowrap;color:var(--chrome-ink-2,#93a8ba);}
.ct-where-w.ro{color:var(--accent);}
.ct-where-w.ed{color:var(--warning,#e0b050);}
body.light .ct-where-w{color:var(--ink-2,#555);}
.ct-chip.ro{color:var(--accent);
  border-color:color-mix(in srgb,var(--accent) 45%,transparent);}
.ct-chip.ed{color:var(--warning,#e0b050);
  border-color:color-mix(in srgb,var(--warning,#e0b050) 50%,transparent);}
.ct-cv{font-size:10px;opacity:.8;}
/* its slides, opened under it */
.ct-tiles{display:flex;flex-wrap:wrap;gap:8px;padding:2px 12px 12px 62px;}
.ct-tile{all:unset;position:relative;width:112px;cursor:grab;
  border-radius:5px;outline:1px solid #ffffff1f;background:var(--chrome-0,#0b141d);}
.ct-tile[draggable="false"]{cursor:pointer;}
/* all:unset also removes the browser's own -webkit-user-drag:element from
   a draggable tile, and Chromium then starts no drag from it, so a slide
   dragged into another presentation would never leave its row in Edge or
   Chrome. Put back here. */
.ct-tile[draggable="true"]{-webkit-user-drag:element;}
.ct-tile.cur{outline:2px solid var(--accent);}
.ct-tile.drop-at{box-shadow:-4px 0 0 0 var(--accent);}
.ct-tile:focus-visible{outline:2px solid var(--accent);}
.ct-tile svg{display:block;width:100%;height:auto;border-radius:5px;}
.ct-n{position:absolute;left:4px;top:3px;font-size:10px;
  color:var(--chrome-ink-2,#93a8ba);}
/* the doors: Contents at the top of the thumbnails, in the accent, and
   first along the bottom tabs */
.film-contents{display:flex;align-items:center;gap:7px;margin:8px 8px 6px;
  padding:7px 11px;font-size:12.5px;font-weight:600;border-radius:8px;
  background:color-mix(in srgb,var(--accent) 22%,transparent);
  border:1px solid color-mix(in srgb,var(--accent) 60%,transparent);
  color:var(--chrome-ink,#e8f2f8);}
.film-contents:hover{background:color-mix(in srgb,var(--accent) 32%,transparent);}
.film-contents[aria-pressed="true"]{background:var(--accent);color:var(--on-accent,#04121c);}
.film-contents[hidden]{display:none;}
.film-contents .bic{width:14px;height:14px;}
.film-contents .fc-n{margin-left:auto;font-variant-numeric:tabular-nums;
  font-weight:500;opacity:.85;}
.deck-sheets .sht-contents{margin-right:4px;}
.deck.fdp-open .sht-contents{border-color:var(--accent);
  color:var(--accent);background:var(--chrome-0);}
/* (the tab shown last is not marked current under File control, but keeps
   its colour, as every other tab does) */
.deck.fdp-open .sht-tab.on{box-shadow:inset 0 -3px 0 var(--sht-c,transparent);
  background:transparent;
  border-color:transparent;color:var(--chrome-ink-2);font-weight:400;}
/* the top tabs' door, before the talk's own tab */
.top-pres-tab.pz-ctab .tab-t{font-weight:600;}
body.light .deck-parts,body.light .ct-row{color:var(--ink);}
body.light .ct-row{background:#fff;}
body.light .ct-chip{background:#0000000a;border-color:#0000001f;}
body.light .deck-parts .prt-head{background:var(--chrome-0);}
body.light .ct-total .ct-c-n,body.light .ct-total .ct-c-sz{color:var(--ink);}
/* A folder's front page (57v-folders.js), in Contents' place and its
   rows: a head as the repository's page has it, the row of things done to
   all of it, the files, what is picked, the custom shows */
.fdp-head{display:flex;align-items:center;gap:12px;position:sticky;top:0;
  z-index:2;background:var(--chrome-0,#0b141d);padding:18px 0 10px;}
.fdp-ic{flex:none;width:34px;height:34px;display:grid;place-items:center;
  border-radius:9px;color:var(--accent);
  background:color-mix(in srgb,var(--accent) 14%,transparent);}
.fdp-ic .bic{width:20px;height:20px;}
.fdp-tt{min-width:0;}
.fdp-name{margin:0;font-size:21px;font-weight:700;line-height:1.2;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:text;
  color:var(--chrome-ink,#d7e3ec);
  /* as wide as its words: what is said on hover is said under them */
  width:fit-content;max-width:100%;}
.fdp-sub{margin-top:5px;font:13px/1.5 var(--sans);
  color:var(--chrome-ink-2,#93a8ba);}
.fdp-acts{display:flex;flex-wrap:wrap;gap:8px;padding:4px 0 12px;
  border-bottom:1px solid var(--chrome-line,#ffffff1a);margin-bottom:6px;}
.fdp-acts #fdp-present{background:var(--accent);color:var(--on-accent,#04121c);
  border-color:var(--accent);font-weight:600;}
.fdp-h{margin:16px 0 8px;font-size:12px;font-weight:600;color:var(--chrome-ink-3,#6f8293);}
.fdp-none{margin:4px 0;font-size:13px;line-height:1.45;
  color:var(--chrome-ink-2,#93a8ba);}
.fdp-miss{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:8px 0;padding:8px 12px;border-radius:8px;font-size:13px;
  border:1px solid color-mix(in srgb,var(--warning,#e0b050) 50%,transparent);
  color:var(--warning,#e0b050);}
.fdp-row .ct-from{text-transform:capitalize;}
.fdp-tile{cursor:pointer;touch-action:none;}
.fdp-tile.picked{outline:2px solid var(--accent);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 25%,transparent);}
.fdp-tile.hid{opacity:.5;}
.fdp-row.fdp-drop-before,.fdp-run.fdp-drop-before{box-shadow:0 -3px 0 0 var(--accent);}
.fdp-row.fdp-drop-after,.fdp-run.fdp-drop-after{box-shadow:0 3px 0 0 var(--accent);}
.fdp-row.fdp-drop-in,.fdp-show.fdp-drop-in{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 10%,var(--chrome-1,#0f1b26));}
.fdp-tile.fdp-drop-at{box-shadow:-4px 0 0 0 var(--accent);}
.fdp-ghost{position:fixed;z-index:400;pointer-events:none;padding:5px 10px;
  border-radius:7px;font:600 12px/1.2 var(--sans);
  background:var(--accent);color:var(--on-accent,#04121c);
  box-shadow:0 4px 14px #0006;}
.fdp-pick{position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;
  align-items:center;gap:8px;margin-top:10px;padding:9px 12px;
  border-radius:9px;background:var(--chrome-1,#0f1b26);
  border:1px solid var(--accent);}
.fdp-pick-t{font-size:13px;font-weight:600;margin-right:6px;}
.fdp-shows{display:flex;flex-direction:column;gap:8px;}
.fdp-show{padding:8px 12px 10px;}
.fdp-show-hd{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.fdp-show-hd>.bic{width:16px;height:16px;color:var(--accent);}
.fdp-show-name{font-size:14px;font-weight:700;cursor:text;}
.fdp-show-n{font-size:12px;color:var(--chrome-ink-2,#93a8ba);}
.fdp-runs{display:flex;flex-direction:column;gap:4px;margin-top:8px;}
.fdp-run{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding:4px 6px;border-radius:7px;font-size:13px;
  background:color-mix(in srgb,var(--chrome-ink,#d7e3ec) 4%,transparent);}
.fdp-run-deck{max-width:220px;}
.fdp-run-w{color:var(--chrome-ink-2,#93a8ba);}
.fdp-run-num{width:56px;font:inherit;padding:2px 5px;border-radius:5px;
  border:1px solid var(--chrome-line,#ffffff2a);background:var(--chrome-0,#0b141d);
  color:inherit;}
.fdp-run-pv{display:inline-flex;gap:4px;}
.fdp-run-mini{display:block;width:54px;border-radius:3px;overflow:hidden;
  outline:1px solid #ffffff1f;}
.fdp-run-mini svg{display:block;width:100%;height:auto;}
.fdp-run-n{color:var(--chrome-ink-2,#93a8ba);font-size:12px;}
.fdp-run-x{margin-left:auto;}
body.light .fdp-head{background:var(--chrome-0);}
body.light .fdp-name{color:var(--ink);}
body.light .fdp-pick{background:#fff;}
/* File control over the thumbnails and the slide; the ribbon's editing
   tabs rest while it is up, Present and Combine are its own */
/* Keep focused previews clear of the sticky title and selection actions. */
.deck-parts.deck-folder{z-index:126;scroll-padding:100px 0 70px;}
.deck.fdp-open #edit-tools .rbn-grp:not([data-tab="present"]):not([data-tab="folder"]){
  opacity:.38;pointer-events:none;filter:grayscale(1);}
/* On a binder's page, Present shows the binder's groups: All files and the
   custom shows, not a single presentation's own. */
.deck.fdp-open #edit-tools .rbn-grp[data-tab="present"]:not(#pr-folder){
  display:none;}
/* An empty logbook shows a faint prompt on its first line; the first letter
   typed removes it. */
/* (a new one's box holds nothing at all until the first key: :empty) */
.lb-body.lb-live .lb-tx:empty,
.lb-body.lb-live .lb-tx>p.an-p:only-child:has(>br:only-child){position:relative;}
.lb-body.lb-live .lb-tx:empty::before,
.lb-body.lb-live .lb-tx>p.an-p:only-child:has(>br:only-child)::before{
  content:'Start writing here';position:absolute;left:0;top:0;
  pointer-events:none;opacity:.42;white-space:nowrap;}
/* See it: actual size, and from a distance */
.pf-see{display:inline-flex;align-items:center;gap:6px;margin-left:auto;}
.pf-see-l{font-size:12px;color:var(--chrome-ink-2,#93a8ba);}
/* "See the slide as" in the Accessibility panel */
.a11y-cvd{display:flex;align-items:center;gap:8px;padding:2px 12px 8px;
  font-size:12px;color:var(--chrome-ink-2,#93a8ba);}
.a11y-cvd .pz-sel{flex:1;min-width:0;}
/* Reuse slides: presentations down the side, their slides beside them */
.aa-box.rs-box{width:min(1040px,94vw);height:min(80vh,760px);
  display:flex;flex-direction:column;}
.rs-body{flex:1;min-height:0;display:grid;
  grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:14px;
  padding:4px 2px 10px;}
.rs-side{display:flex;flex-direction:column;gap:8px;min-height:0;}
.rs-find{font:inherit;font-size:13px;padding:6px 9px;border-radius:7px;
  border:1px solid var(--chrome-line,#ffffff2a);
  background:var(--chrome-0,#0b141d);color:var(--chrome-ink,#d7e3ec);}
.rs-find:focus{outline:2px solid var(--accent);outline-offset:-1px;}
.rs-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;
  gap:2px;}
.rs-row{all:unset;cursor:pointer;display:flex;flex-direction:column;
  gap:1px;padding:7px 9px;border-radius:7px;}
.rs-row:hover{background:#ffffff10;}
.rs-row.on{background:color-mix(in srgb,var(--accent) 20%,transparent);}
.rs-row:focus-visible{outline:2px solid var(--accent);}
.rs-nm{font-size:13px;font-weight:600;color:var(--chrome-ink,#d7e3ec);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rs-sub{font-size:11.5px;color:var(--chrome-ink-2,#93a8ba);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rs-none{padding:10px;font-size:12.5px;color:var(--chrome-ink-2,#93a8ba);}
.rs-main{display:flex;flex-direction:column;min-height:0;}
.rs-head{display:flex;align-items:center;gap:8px;padding:0 2px 8px;}
.rs-title{font-size:14px;font-weight:600;color:var(--chrome-ink,#d7e3ec);}
.rs-tiles{flex:1;min-height:0;overflow:auto;display:flex;flex-wrap:wrap;
  align-content:flex-start;gap:12px;padding:4px;}
.rs-tile{all:unset;cursor:pointer;display:flex;flex-direction:column;gap:4px;
  width:150px;border-radius:6px;outline:1px solid #ffffff1f;
  outline-offset:2px;}
.rs-tile .mini-diagram{border-radius:5px;overflow:hidden;}
.rs-tile.hit{outline:2px dashed color-mix(in srgb,var(--accent) 70%,transparent);}
.rs-tile.picked{outline:3px solid var(--accent);}
.rs-tile:focus-visible{outline:3px solid var(--focus,var(--accent));}
.rs-cap{font-size:11px;color:var(--chrome-ink-2,#93a8ba);white-space:pre;
  overflow:hidden;text-overflow:ellipsis;}
.rs-foot{display:flex;align-items:center;gap:10px;padding-top:10px;
  border-top:1px solid var(--chrome-line,#ffffff1a);}
.rs-keep{display:flex;align-items:flex-start;gap:8px;max-width:560px;
  cursor:pointer;}
.rs-keep input{margin-top:3px;accent-color:var(--accent);}
.rs-keep b{display:block;font-size:13px;}
body.light .rs-row:hover{background:#0000000a;}
body.light .rs-nm,body.light .rs-title{color:var(--ink);}
body.light .rs-find{background:#fff;color:var(--ink);}
/* Settings under the files: one box each, with a sentence under every
   choice */
.fdp-set{margin-top:30px;padding-top:6px;}
.fdp-set-grid{display:grid;grid-template-columns:repeat(auto-fit,
  minmax(290px,1fr));gap:14px;}
.fdp-set-g{margin:0;min-width:0;padding:10px 16px 12px;border-radius:10px;
  border:1px solid var(--chrome-line,#ffffff1f);
  background:var(--chrome-1,#0f1b26);}
.fdp-set-g legend{padding:0 6px;font-size:12px;font-weight:600;
  color:var(--chrome-ink-3,#6f8293);}
.fdp-opt{display:grid;grid-template-columns:18px minmax(0,1fr);
  column-gap:10px;row-gap:3px;align-items:start;padding:8px 0;
  cursor:pointer;}
.fdp-opt+.fdp-opt{border-top:1px solid var(--chrome-line,#ffffff14);}
.fdp-opt input{margin:2px 0 0;accent-color:var(--accent);}
.fdp-opt b{font-size:13px;font-weight:600;color:var(--chrome-ink,#d7e3ec);}
.fdp-why{grid-column:2;font-size:12px;line-height:1.45;
  color:var(--chrome-ink-2,#93a8ba);}
.fdp-opt.sub{padding-left:28px;}
.fdp-opt.off{opacity:.5;cursor:default;}
.fdp-lims .pz-num{width:56px;margin:0 2px;}
body.light .fdp-opt b{color:var(--ink);}
body.light .fdp-why{color:var(--ink-2,#555);}
/* a file's menu names the file as it reads, its first letter as typed */
.sh-menu .hd-lab.fdp-mh::first-letter{text-transform:none;}
.sh-menu .vw-opt.fdp-del{color:var(--danger,#e06c6c);}
/* hidden from the tabs: last in the list, quieter, and said */
.fdp-row.fdp-hid{opacity:.72;}
.fdp-hidtag{flex:none;margin-left:8px;padding:1px 7px;border-radius:8px;
  font-size:11px;font-weight:500;color:var(--chrome-ink-2,#93a8ba);
  border:1px solid var(--chrome-line,#ffffff24);}
/* Linked or copy, on each file's row */
/* The table columns: handle, arrow, file, kind, slides, size, link,
   options. The head and every row share one set of columns. */
/* Stored has room for where the file is kept, with Read only beside it;
   More stands alone at the end. */
/* Wider gaps between the columns, with the numbers set apart from where the
   file is kept. */
.fdp-files .ct-hd,.fdp-cols{grid-template-columns:18px 74px minmax(140px,1fr)
  96px 68px 62px 190px 108px;column-gap:12px;}
.fdp-files .ct-c-where,.fdp-cols .ct-c-where{padding-left:12px;margin-left:0;}
.fdp-cols{margin-top:2px;}
.ct-col.fdp-col{max-width:1180px;container-type:inline-size;}
.fdp-tree{max-height:45vh;overflow:auto;border:1px solid var(--chrome-line);
  border-radius:6px;margin:8px 0;}
.fdp-col:has(>.fdp-file-details[open]) .fdp-tree{display:none;}
.fdp-file-details>summary{cursor:pointer;padding:8px 0;font-weight:600;}
/* The project tree sits beside the page, so the table responds to its own
   width, not the window's. Kind goes first (its icon precedes the name),
   then Storage. */
@container (max-width:900px){
  .fdp-files .ct-hd,.fdp-cols{grid-template-columns:18px 74px
    minmax(120px,1fr) 68px 62px 180px 108px;}
  .fdp-files .ct-c-kind,.fdp-cols .ct-c-kind{display:none;}
}
.ct-col.fdp-col:focus{outline:none;}
/* the thumbnails' resize handle stood over the page (a line under the
   first file's name, and a press there resized the thumbnails) */
/* By id: a logbook's Pages pane shows its grip with !important and five
   classes (.lb-nav-on), which outrank three. */
#deck.deck.fdp-open .film-resize{display:none!important;}
.fdp-files .ct-go{gap:10px;}
.fdp-files .ct-go .bic{width:24px;height:24px;}
/* New (its menu the three kinds) and Open, two buttons at the top */
.fdp-add{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 16px;}
.fdp-add .ct-cv{margin-left:2px;font-size:10px;}
/* a file's menu: an icon before each row's words */
.sh-menu .vw-opt.fdp-mi{display:flex;align-items:center;gap:8px;}
.sh-menu .vw-opt.fdp-mi .bic{flex:none;width:14px;height:14px;
  color:var(--chrome-ink-2,#93a8ba);}
.sh-menu .vw-opt.fdp-del .bic{color:inherit;}
/* the eye after Read only: hidden from the tabs or not */
.fdp-eye{all:unset;cursor:pointer;flex:none;min-height:28px;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:0 8px;border-radius:6px;font-size:12px;white-space:nowrap;
  color:var(--chrome-ink-2,#93a8ba);border:1px solid transparent;}
.fdp-eye .bic{width:15px;height:15px;}
.fdp-eye:hover{background:#ffffff14;color:var(--chrome-ink,#d7e3ec);}
.fdp-eye.off{color:var(--accent);
  border-color:color-mix(in srgb,var(--accent) 40%,transparent);}
.fdp-eye:focus-visible{outline:2px solid var(--accent);}
body.light .fdp-eye:hover{background:#0000000d;color:var(--ink);}
.fdp-how .fdp-ro{margin-left:6px;}
/* a message said while the page is up is said over it, not under it
   (its edge showed above the tabs) */
.deck.fdp-open .deck-toast{z-index:127;}
/* the page's patch over the thumbnails' foot, beside the tabs */
.deck-folder-foot{position:fixed;z-index:126;
  background:var(--chrome-0,#0b141d);}
.ct-c-kind{font-size:12.5px;color:var(--chrome-ink-2,#93a8ba);
  text-transform:capitalize;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;}
.ct-cols .ct-c-kind{font-size:11px;color:inherit;text-transform:inherit;}
.ct-c-opt{display:flex;align-items:center;justify-content:flex-end;gap:10px;}
/* Storage, edit protection and tab visibility each have their own place.
   Two short lines per file keep names readable at 1100 CSS pixels. */
.fdp-files .ct-hd{min-height:78px;padding-top:8px;padding-bottom:8px;}
.fdp-files .ct-ex{width:auto;min-height:30px;display:flex;
  align-items:center;justify-content:center;gap:4px;font-size:11px;
  border:1px solid var(--chrome-line);}
.fdp-files .ct-ex .bic{width:12px;height:12px;}
.fdp-files .ct-ex[aria-expanded="true"]{color:var(--accent);
  border-color:var(--accent);}
.fdp-files .ct-c-opt{flex-direction:column;align-items:stretch;gap:3px;}
.fdp-files .fdp-how{align-items:flex-start;flex-direction:column;gap:6px;}
.fdp-files .fdp-ro{margin-left:0;white-space:nowrap;}
.fdp-files .fdp-more{display:flex;align-items:center;justify-content:center;
  gap:5px;min-height:28px;font-size:12px;}
.fdp-more .bic{width:13px;height:13px;}
.fdp-unit{display:block;margin-top:2px;font-size:11px;
  color:var(--chrome-ink-3);}
.fdp-set>.fdp-none{margin-bottom:16px;}
.fdp-files .fdp-hidtag{white-space:normal;font-size:10px;}
@container (max-width:720px){
  .fdp-files .ct-hd,.fdp-cols{grid-template-columns:18px 74px minmax(0,1fr)
    48px 64px;}
  .fdp-files .ct-c-kind,.fdp-cols .ct-c-kind,.fdp-files .ct-c-where,
  .fdp-cols .ct-c-where{display:none;}
  .fdp-files .ct-c-opt{grid-column:3/-1;justify-content:flex-start;
    padding-bottom:6px;}
}
.fdp-how{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
/* Linked, with an x to copy the file in (one way only); a copy is labelled
   quietly. */
.fdp-linked{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;
  font-size:12px;
  color:var(--chrome-ink,#d7e3ec);}
.fdp-linked-ic .bic{width:13px;height:13px;display:block;}
.fdp-linked-x{all:unset;cursor:pointer;min-height:26px;padding:0 7px;
  display:inline-flex;align-items:center;gap:5px;border-radius:5px;font-size:12px;
  border:1px solid var(--chrome-line);
  color:var(--chrome-ink-2,#93a8ba);}
.fdp-linked-x:hover{background:color-mix(in srgb,var(--accent) 22%,
  transparent);color:var(--chrome-ink,#d7e3ec);}
.fdp-linked-x:focus-visible{outline:2px solid var(--accent);}
.fdp-linked-x .bic{width:13px;height:13px;}
.fdp-copied{font-size:12px;color:var(--chrome-ink-2,#93a8ba);
  white-space:nowrap;}
body.light .fdp-linked,body.light .fdp-linked-x:hover{color:var(--ink);}
/* the custom shows' dialog (Present > Folder > Custom shows) */
.aa-box.fsh-box{width:min(760px,94vw);}
.fsh-body{max-height:min(62vh,560px);overflow:auto;padding:4px 2px;}
.fsh-body .fdp-show{border:1px solid var(--chrome-line,#ffffff24);
  border-radius:10px;}
.fdp-ro{display:inline-flex;align-items:center;gap:4px;font-size:12px;
  cursor:pointer;}
.fdp-fh{display:flex;align-items:center;gap:8px;margin-top:6px;}
.fdp-fh .fdp-h{margin:10px 0 8px;}
/* The bar's Add menu as tiles: New (three kinds), then Open */
.sht-add-tiles{min-width:412px;max-height:min(70vh,600px);
  overflow-y:auto;padding:8px 10px 10px;}
.sht-add-h{margin:6px 2px 6px;font-size:11px;font-weight:600;
  color:var(--chrome-ink-3,#6f8293);}
.sht-add-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.sht-add-tile{all:unset;box-sizing:border-box;cursor:pointer;display:flex;
  flex-direction:column;align-items:center;justify-content:center;gap:6px;
  min-height:64px;padding:8px 6px;border-radius:9px;text-align:center;
  font:600 12.5px/1.2 var(--sans);color:var(--chrome-ink,#d7e3ec);
  border:1px solid var(--chrome-line,#ffffff24);
  background:color-mix(in srgb,var(--chrome-ink,#d7e3ec) 5%,transparent);}
.sht-add-tile:hover,.sht-add-tile:focus-visible{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 14%,transparent);}
.sht-add-tile:focus-visible{outline:2px solid var(--accent);}
.sht-add-ic .bic{width:20px;height:20px;}
body.light .sht-add-tile{color:var(--ink);border-color:#0000001f;
  background:#00000006;}
/* Each presentation's collapse choice, in Settings and on a tab's
   right-click menu */
.pz-each{margin-top:10px;display:flex;flex-direction:column;gap:4px;}
.pz-each[hidden]{display:none;}
.pz-each-h{font-size:12px;font-weight:600;margin:4px 0 2px;}
.pz-each-nm{min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.sht-fold-h{padding-top:8px;}
.sh-menu .hd-lab.sht-fold-h{margin-top:4px;border-top:1px solid
  var(--chrome-line,#ffffff1a);}
/* The Open picker's choice, at its foot */
.bp-ways{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;
  font-size:13px;margin-left:10px;}
.bp-way{display:inline-flex;align-items:center;gap:5px;cursor:pointer;}
.bp-way[hidden]{display:none;}
.bp-edit{padding-left:12px;border-left:1px solid var(--chrome-line,#ffffff24);}
/* One settings row with its control at the end */
.pz-opt.pz-row{align-items:center;justify-content:space-between;}
.pz-opt.pz-sub{margin-left:24px;}
.pz-sel{font:inherit;font-size:12.5px;padding:3px 6px;border-radius:6px;
  border:1px solid var(--chrome-line);background:var(--chrome-1,#0f1b26);
  color:var(--chrome-ink,#d7e3ec);}
/* The top tabs' group: the talk's own tab is hidden, each presentation in
   it gets a tab, and its colour is on its icon. */
.top-pres-tab.pz-lead{display:none!important;}
#where-btn[hidden]{display:none!important;}
.top-pres-tab.pz-rtab .tab-ico{color:var(--rt-c,currentColor);}
.top-pres-tab.pz-rtab:not(.current) .tab-b{display:none;}
/* While presenting, the name of the presentation just started appears in
   the corner briefly. z-index is above the slide's layers (6) and the
   column (120). */
.pz-xcard{position:absolute;right:24px;bottom:56px;z-index:130;
  display:flex;flex-direction:column;gap:2px;padding:10px 16px 11px;
  border-radius:10px;pointer-events:none;
  background:color-mix(in srgb,var(--chrome-0,#0b141d) 88%,transparent);
  box-shadow:0 8px 28px #0007;color:var(--chrome-ink,#e8f2f8);
  font-family:var(--sans);opacity:0;transform:translateX(16px);
  transition:opacity .35s ease,transform .35s ease;}
.pz-xcard.in{opacity:1;transform:none;}
.pz-xk{font-size:11px;
  color:var(--chrome-ink-2,#93a8ba);}
.pz-xk::before{content:"";display:inline-block;width:9px;height:9px;
  margin-right:7px;border-radius:2px;background:var(--xc,var(--accent));}
.pz-xn{font-size:17px;font-weight:600;}
@media (prefers-reduced-motion:reduce){.pz-xcard{transition:none;transform:none;}}
body.light .film-contents{color:var(--ink);}
/* ---- Saving ----
   The Save button shows how often it autosaves, and saves immediately. A dot
   shows while something is unwritten (saveMirror). The readout pill shows
   only when it needs attention: a full browser, or a file waiting on a
   click (the .unsaved states). The arrow beside it holds every saving
   choice, including the frequency. */
.deck-status:not(.unsaved){display:none!important;}
#dc-save{display:inline-flex;align-items:center;gap:5px;position:relative;}
#dc-save .bic{width:13px;height:13px;}
#dc-save.sv-dirty::after{content:"";width:6px;height:6px;border-radius:50%;
  background:var(--warning,#e0b050);margin-left:2px;flex:none;}
.dc-mi .dc-kbd{margin-left:auto;padding-left:18px;font-size:11px;
  color:var(--chrome-ink-3,#6f8293);}
#sv-now{display:flex;align-items:center;}
#sv-auto{display:flex;flex-direction:column;}
/* Where it is saved, in words; the autosave choice */
.sv-where{white-space:pre-line;padding:2px 11px 6px;font-size:12.5px;
  line-height:1.45;color:var(--chrome-ink);max-width:280px;
  overflow-wrap:anywhere;}
.sv-auto{gap:2px;padding:2px 8px 6px;}
/* the File rows: label, value, Change -- one grid so they line up */
.sv-grid{display:grid;grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;column-gap:10px;row-gap:6px;padding:2px 11px 8px;
  min-width:300px;max-width:360px;}
.sv-grid .sv-lab{font-size:12px;color:var(--chrome-ink-3,#6f8293);}
.sv-grid .sv-where{padding:0;max-width:none;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;}
.sv-grid [hidden]{display:none;}
.sv-namebox{grid-column:2/4;display:flex;align-items:center;min-width:0;
  border:1px solid var(--chrome-line);border-radius:5px;
  background:var(--chrome-1,#0f1b26);}
.sv-namebox:focus-within{border-color:var(--accent);}
.sv-name{flex:1;min-width:0;font:inherit;font-size:12.5px;padding:3px 6px;
  border:0;background:transparent;color:var(--chrome-ink);outline:none;}
.sv-ext{flex:none;padding-right:6px;font-size:12px;
  color:var(--chrome-ink-3,#6f8293);}
.sv-chg{padding:2px 10px;font-size:12px;}
.sv-btns{display:flex;gap:6px;justify-content:flex-end;}
.sv-btns[hidden]{display:none;}
.sv-grid{max-width:460px;}
.sv-grid .sv-where{white-space:normal;overflow-wrap:anywhere;
  text-overflow:clip;}
/* A save shows a brief confirmation on the button that was pressed */
#dc-save.sv-saved{color:var(--cyan);}
.sv-arow{display:flex;align-items:center;gap:6px;padding:5px 4px;
  font-size:12.5px;color:var(--chrome-ink);cursor:pointer;
  border-radius:5px;white-space:nowrap;}
.sv-arow:hover{background:color-mix(in srgb,var(--accent) 10%,transparent);}
.sv-arow input[type="radio"]{margin:0;accent-color:var(--cyan);}
.sv-n{width:58px;font:inherit;font-size:12.5px;padding:2px 4px 2px 6px;
  border:1px solid var(--chrome-line);border-radius:5px;
  background:var(--chrome-1,#0f1b26);color:var(--chrome-ink);}
/* back and forward beside the zoom, a pair */
.deck-zoombar .zb-hist{display:inline-flex;gap:2px;margin-right:6px;}
.rbn-tabs .deck-zoombar .zb-hist .dbtn.rbn-ico .bic{width:13px;height:13px;}
/* ---- Right end of the tab row ----
   Every control here is 24px high on the row's centre line. A split
   control's two halves share one box, and the fold is a 24px square. */
.rbn-tabs .qat-savegrp,.rbn-tabs .qat-playgrp,.rbn-tabs .deck-zoombar,
.rbn-tabs .deck-zoombar .zb-hist{align-self:center;display:inline-flex;
  align-items:stretch;flex:none;height:24px;}
.rbn-tabs .qat-savegrp{margin:0 6px 0 4px;}
.rbn-tabs .qat-savegrp .dbtn,.rbn-tabs .qat-playgrp .dbtn,
.rbn-tabs .deck-zoombar .dbtn.rbn-sm,.rbn-tabs .deck-zoombar .dbtn.rbn-ico,
.rbn-tabs .rbn-fold{height:24px;min-height:0;margin:0;box-sizing:border-box;
  display:inline-flex;align-items:center;justify-content:center;
  line-height:1;font-family:var(--sans);font-size:12px;white-space:nowrap;
  vertical-align:top;}
.rbn-tabs .qat-savegrp .dbtn{padding:0 9px;gap:5px;}
.rbn-tabs .qat-savegrp .dc-menuwrap,.rbn-tabs .qat-playgrp .dc-menuwrap{
  display:inline-flex;align-items:stretch;}
.rbn-tabs .qat-savegrp .dc-target,.rbn-tabs .qat-playgrp #dc-playmore{
  width:22px;padding:0;}
.rbn-tabs .deck-zoombar .dbtn.rbn-ico{width:26px;padding:0;}
.rbn-tabs .deck-zoombar .zb-hist .dbtn.rbn-ico .bic{width:13px;height:13px;
  margin:0;}
.rbn-tabs .rbn-fold{width:26px;padding:0;margin-left:4px;font-size:13px;}
.rbn-tabs.rt-c1 .qat-savegrp .dbtn:first-child{padding:0 6px;}
.rbn-tabs .qat-short{display:none;}
.rbn-tabs.rt-c1 .qat-long{display:none;}
.rbn-tabs.rt-c1 .qat-short{display:inline;}

/* ---- Scripts ----
   The Code tab's Scripts pane: the list (each with Run at start), then the
   selected script with its actions, its editor and its last run's output.
   The editor is a textarea over a coloured copy, so both must use the same
   font, size, padding and wrapping or the caret drifts. Full screen covers
   the window; dragging a file over the pane highlights its edge. */
.scrpane .selpane-list{display:flex;flex-direction:column;gap:8px;}
.scr-bar,.scr-acts{display:flex;flex-wrap:wrap;gap:5px;}
.scr-note{margin:0;font-size:12px;line-height:1.45;color:var(--chrome-ink-2);}
.scr-warn{color:var(--warning,#f0a848);}
.scr-list{display:flex;flex-direction:column;gap:2px;}
.scr-row{display:flex;align-items:center;gap:6px;border-radius:7px;
  padding:2px 4px 2px 2px;}
.scr-row.on{background:color-mix(in srgb,var(--cyan) 16%,transparent);}
.scr-name{flex:1;min-width:0;display:flex;align-items:center;gap:6px;
  background:none;border:0;color:var(--chrome-ink);font:12.5px var(--sans);
  text-align:left;padding:5px 6px;border-radius:6px;cursor:pointer;}
.scr-name>span:first-of-type{overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.scr-name:hover,.scr-name:focus-visible{outline:none;
  background:color-mix(in srgb,var(--chrome-ink) 9%,transparent);}
.scr-name .bic{width:13px;height:13px;flex:none;color:var(--cyan);}
.scr-lang{margin-left:auto;flex:none;font-size:11px;color:var(--chrome-ink-2);}
.scr-init{flex:none;display:flex;align-items:center;gap:4px;
  font:11.5px var(--sans);color:var(--chrome-ink-2);white-space:nowrap;
  cursor:pointer;}
.scr-ed-box{display:flex;flex-direction:column;gap:6px;
  border-top:1px solid var(--chrome-line);padding-top:8px;}
.scr-ed-t{font:600 12.5px var(--sans);color:var(--chrome-ink);}
.scr-run.busy{border-color:var(--warning,#f0a848);}
.scr-ed{position:relative;border:1px solid var(--chrome-line);border-radius:6px;
  font-family:var(--mono);font-size:12.5px;line-height:1.45;min-height:160px;}
.scr-ed:focus-within{border-color:var(--cyan);}
.scr-pre,.scr-ta{display:block;margin:0;padding:.6em .8em;font:inherit;
  line-height:inherit;letter-spacing:0;white-space:pre-wrap;
  overflow-wrap:anywhere;tab-size:4;-moz-tab-size:4;border:0;
  box-sizing:border-box;text-rendering:auto;font-variant-ligatures:none;
  font-kerning:none;}
.scr-pre{background:none;color:inherit;min-height:160px;}
.scr-pre code{font:inherit;background:none;color:inherit;padding:0;}
.scr-ta{position:absolute;inset:0;width:100%;height:100%;resize:none;
  overflow:hidden;background:transparent;color:transparent;outline:none;
  cursor:text;z-index:1;}
.scr-ta::selection{background:var(--cb-sel);color:transparent;}
.scr-ta::placeholder{color:var(--chrome-ink-2);opacity:.8;font-style:italic;}
.scr-out{border:1px solid var(--chrome-line);border-radius:6px;
  background:color-mix(in srgb,var(--chrome-ink) 5%,transparent);}
.scr-out-tx{margin:0;padding:.5em .8em;font:12px/1.45 var(--mono);
  white-space:pre-wrap;overflow-wrap:anywhere;color:var(--chrome-ink);
  max-height:260px;overflow:auto;user-select:text;}
.scr-out.bad .scr-out-tx{color:var(--danger,#ff8a80);}
.scr-out.busy .scr-out-tx,.scr-out.empty .scr-out-tx{
  color:var(--chrome-ink-2);font-style:italic;}
.scr-fig{display:block;max-width:calc(100% - 1.6em);height:auto;
  margin:0 .8em .6em;border-radius:3px;background:#fff;}
.scrpane.scr-drop{outline:2px dashed var(--cyan);outline-offset:-4px;}
/* full screen: the whole window, over the ribbon and the slide */
.selpane.scrpane.scr-full{position:fixed;top:10px!important;
  left:10px!important;right:10px!important;bottom:10px!important;
  width:auto!important;height:auto!important;resize:none;z-index:950;}
.scrpane.scr-full .scr-ed,.scrpane.scr-full .scr-pre{
  min-height:calc(100vh - 330px);font-size:14px;}
.scrpane.scr-full .scr-out-tx{max-height:none;}
/* the Run tag beside a button that runs a script, in the editor */
.scr-pins{position:absolute;inset:0;pointer-events:none;z-index:9;}
.scr-pin{position:absolute;transform:translate(6px,-50%);
  pointer-events:auto;display:inline-flex;align-items:center;gap:3px;
  height:22px;padding:0 7px 0 5px;border-radius:11px;cursor:pointer;
  font:600 11px/1 var(--sans);color:var(--chrome-ink,#cdd9e3);
  background:var(--chrome-1,#0e1926);
  border:1px solid color-mix(in srgb,var(--cyan) 70%,transparent);
  box-shadow:0 1px 4px #0004;}
.scr-pin .bic{width:11px;height:11px;color:var(--cyan);}
.scr-pin:hover,.scr-pin:focus-visible{outline:none;
  background:color-mix(in srgb,var(--cyan) 26%,var(--chrome-1,#0e1926));}
/* Collapsed output: a line standing in for it, under the rule */
.an-code-out.bad .an-code-more{color:var(--cb-err);}

/* ---- Split buttons ----
   Every split button is one control, like Present: no gap, square inner
   corners and one faint seam. */
.rbn-row>.sh-drop.tx-split{gap:0;align-items:stretch;}
.rbn-row>.sh-drop.tx-split>.dbtn:first-child,
.rbn-row>.sh-drop.tx-split>.fx-tile:first-child{
  border-top-right-radius:0;border-bottom-right-radius:0;}
.rbn-row>.sh-drop.tx-split>.tx-caret{border-top-left-radius:0;
  border-bottom-left-radius:0;border-left-color:#ffffff14;margin-left:-1px;
  padding-left:5px;padding-right:5px;}
.rbn-row>.sh-drop.tx-split>.tx-caret:hover{border-left-color:var(--cyan);}
body.light .rbn-row>.sh-drop.tx-split>.tx-caret{border-left-color:#00000018;}
body.light .rbn-row>.sh-drop.tx-split>.tx-caret:hover{
  border-left-color:var(--cyan);}

/* ---- The type box, full width like the typeface box above it ---- */
.rbn-row>#fmt-stylewrap-tx{justify-self:stretch;}
.edit-tools .dbtn.fmt-typebox{width:100%;min-width:150px;max-width:180px;
  justify-content:flex-start;gap:6px;box-sizing:border-box;}
.fmt-typebox>.fmt-typename{flex:1 1 auto;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;text-align:left;}
.fmt-typebox>.fmt-typecaret{flex:none;margin-left:auto;opacity:.8;}
/* the type's name inside Save as … style and Apply to all … */
.fmt-typeword{display:inline-block;max-width:9em;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;}
.sh-menu.styleall-menu{display:flex;flex-direction:column;gap:3px;
  width:auto;min-width:290px;padding:6px;}
.styleall-menu>.hd-lab{padding:2px 4px 3px;}
.styleall-menu .vw-opt{width:100%;text-align:left;justify-content:flex-start;}
/* a worded label of several words and a name: one inline run, so the
   button's flex gap cannot eat the spaces between them */
.dbtn>.fmt-lbl{white-space:nowrap;}

/* ---- Alignment menu ---- */
.sh-menu.opt-panel.al-menu{min-width:150px;width:auto;padding:6px;
  display:flex;flex-direction:column;gap:3px;}
.al-menu>.dbtn{width:100%;justify-content:flex-start;}

/* ---- Text style and box style, in named sections ---- */
.sw-menu>.hd-lab.sw-sec,.sw-menu>.bx-block,.sw-menu>.hl-block{
  flex:0 0 100%;box-sizing:border-box;}
.sw-menu .hd-lab.sw-sec{font-family:var(--sans);font-size:11.5px;
  font-weight:600;text-transform:none;letter-spacing:0;
  color:var(--chrome-ink);padding:0;margin:0 0 -2px;}
.sw-menu>.bx-block,.sw-menu>.hl-block{border-top:1px solid #ffffff1c;
  padding-top:8px;margin-top:3px;}
.sw-menu>.hl-block>.hl-row{padding:6px 0 0;}
body.light .sw-menu>.bx-block,body.light .sw-menu>.hl-block{
  border-top-color:var(--chrome-line);}
.bx-row{display:flex;flex-wrap:wrap;align-items:center;gap:7px;
  padding-top:6px;}
.bx-sw{width:18px;height:18px;border-radius:50%;padding:0;cursor:pointer;
  border:2px solid #ffffff30;box-sizing:border-box;}
.bx-sw[aria-pressed="true"]{border-color:#fff;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 67%,transparent);}
.bx-row .bx-none{font-size:11.5px;padding:3px 8px;}
.bx-row .bx-none[aria-pressed="true"]{border-color:var(--cyan);}
.bx-row .bx-w{font:12px var(--sans);padding:3px 6px;border-radius:6px;
  background:var(--btn-bg,#ffffff0a);color:var(--btn-ink,#cdd9e3);
  border:1px solid var(--btn-border,#ffffff22);margin-left:auto;}
.bx-row .bx-w:disabled{opacity:.45;}
.bx-oprow{flex-wrap:nowrap;}
.bx-oprow .fmt-range{flex:1 1 auto;min-width:0;}
.bx-oprow .fmt-opval{width:52px;}
.cp-inline .cp-lab{width:48px;}

/* ---- Match and Link menus ---- */
.match-menu .match-ck{display:flex;align-items:center;gap:6px;
  padding:4px 7px;border-radius:5px;font-size:12px;
  color:var(--chrome-ink);cursor:pointer;}
.match-menu .match-ck:hover{background:#ffffff0d;}
body.light .match-menu .match-ck{color:var(--ink);}
body.light .match-menu .match-ck:hover{background:#0000000a;}
.lnk-menu>.dbtn{width:100%;justify-content:flex-start;}
.lnk-menu>.dbtn:disabled{opacity:.45;}

/* ---- Mini toolbar: two rows, each labelled ---- */
.mini-tb{flex-direction:column;align-items:stretch;gap:4px;}
.mini-tb .mini-row{display:flex;align-items:center;gap:3px;}
.mini-tb .mini-grp{display:inline-flex;align-items:center;gap:4px;}
.mini-tb .mini-grp+.mini-grp{border-left:1px solid var(--chrome-line);
  padding-left:6px;margin-left:3px;}
.mini-tb .mini-lab{font-family:var(--sans);font-size:11px;
  color:var(--chrome-ink-2);white-space:nowrap;padding:0 2px 0 3px;}
.mini-tb .mini-sw,.mini-tb .mini-hl{border-left:none;margin-left:0;
  padding-left:0;}
.mini-tb .mini-size{display:inline-flex;align-items:center;gap:2px;
  border-left:1px solid var(--chrome-line);border-right:1px solid
  var(--chrome-line);padding:0 4px;margin:0 2px;}
.mini-tb .mini-szin{width:46px;height:24px;box-sizing:border-box;
  font:12px var(--sans);text-align:right;padding:0 4px;border-radius:5px;
  background:var(--chrome-2);color:var(--chrome-ink);
  border:1px solid var(--chrome-line);}
.mini-tb .mini-unit{font:11px var(--sans);color:var(--chrome-ink-2);
  padding-right:2px;}
/* ...and in the side rail (226px) the type's two take the rail's width,
   the words giving way before the rail does */
.deck.rbn-side .rbn-row>#fmt-stylesave,
.deck.rbn-side .rbn-row>#fmt-styleallwrap{flex:1 1 100%;min-width:0;
  max-width:100%;}
.deck.rbn-side #fmt-stylesave,.deck.rbn-side #fmt-styleall{min-width:0;
  overflow:hidden;}
.deck.rbn-side #fmt-styleall{flex:1 1 0;}
.deck.rbn-side .dbtn>.fmt-lbl{min-width:0;overflow:hidden;
  text-overflow:ellipsis;}

/* ---- Line menus: short strips under each button, so the line stays
   visible while an option is tried ---- */
.sh-menu.ln-menu{display:flex;flex-wrap:wrap;align-items:center;gap:2px;
  width:auto;padding:5px;}
.sh-menu.ln-menu .sh-opt{padding:5px 7px;}
.sh-menu.ln-menu .hd-ico{width:34px;}
.sh-menu.ln-menu .bd-ico{width:30px;height:24px;}
.sh-menu.ln-menu.style-menu{flex-direction:column;align-items:stretch;
  flex-wrap:nowrap;}
#fmt-sw-menu{width:348px;}
#fmt-sw-menu{flex-direction:row;}
#fmt-sw-menu .sh-opt{flex:0 0 calc(50% - 1px);width:calc(50% - 1px);
  box-sizing:border-box;padding:4px 6px;gap:6px;min-width:0;}
#fmt-sw-menu .ln-prev{width:96px;min-width:0;}
#fmt-sw-menu .sw-val{margin-left:auto;}
.ln-ic{display:inline-flex;align-items:center;}
.ln-ic .hd-ico{width:26px;height:14px;}
.ln-ic .bd-ico{width:16px;height:16px;}
.sw-own{display:flex;align-items:center;gap:6px;}
.sw-own .opt-num{flex:1;}
.sw-own .opt-num input{-moz-appearance:textfield;}
.sw-own .opt-num input::-webkit-outer-spin-button,
.sw-own .opt-num input::-webkit-inner-spin-button{-webkit-appearance:none;
  margin:0;}
.sw-own .sw-step{flex:none;width:30px;height:28px;padding:0;
  justify-content:center;font:600 16px/1 var(--sans);}
/* the Angle's two buttons: big enough to hit */
.rbn-geom .geo-steps{display:inline-flex;gap:2px;}
.rbn-geom .geo-step{width:var(--rbn-btn-h);height:var(--rbn-btn-h);padding:0;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--rbn-btn);color:var(--btn-ink,#cdd9e3);
  border:1px solid var(--rbn-btn-bd);border-radius:6px;cursor:pointer;
  font:600 15px/1 var(--sans);}
.rbn-geom .geo-step:hover{border-color:var(--cyan);color:var(--chrome-ink);}
#fmt-rot-menu{width:auto;min-width:190px;}
.sh-menu#fmt-rot-menu{display:flex;flex-direction:column;gap:3px;padding:6px;}
#fmt-rot-menu .sh-opt{flex-direction:row;gap:8px;justify-content:flex-start;
  padding:6px 8px;}
#fmt-rot-menu .sh-opt .sh-opt-t{font-size:12px;letter-spacing:0;}
#fmt-rot-menu .rot-deg-0{display:flex;justify-content:flex-start;gap:8px;
  padding:6px 8px;font-size:12px;}

/* ---- A link is one line with a triangle ---- */
.an-lnk .lnk-tri{stroke:none;}
.an-lnk .lnk-col{stroke-width:2;}
.lnk-consolidating .an-lnk .lnk-col{
  animation:lnk-consolidate .34s ease-in-out infinite alternate;}
@keyframes lnk-consolidate{to{stroke-width:6;filter:brightness(1.8);}}
/* no grey halo on the slide: it made a thin line look heavy */
.an-lnk .lnk-halo{display:none;}
.an-item.an-lnktarget,.an-arrow-line.an-lnktarget{
  outline:2px solid #22c55e;outline-offset:3px;}
.an-item.an-lnkfollow,.an-arrow-line.an-lnkfollow{
  outline:2px solid #f97316;outline-offset:3px;}
.an-item.an-lnktarget.an-lnkfollow,.an-arrow-line.an-lnktarget.an-lnkfollow{
  outline-color:#a78bfa;}
/* the other slide's label is the line's own colour, not the editor's */
.an-lnkstub{background:#e8860c;color:#1a1206;border:none;border-radius:11px;
  font:600 11px/1.3 var(--sans);padding:3px 10px;box-shadow:none;}
/* the Link pop-up: options in two columns, Link never scrolled away */
.sh-menu.match-menu.cmp-pop{max-height:calc(100vh - 12px);
  min-width:min(520px,calc(100vw - 16px));}
.cmp-grid{display:grid;grid-template-columns:1fr 1fr;gap:3px;}
.cmp-pop>.cmp-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.cmp-grid .vw-opt{width:auto;min-width:0;}
.cmp-grid>.cmp-group-h{grid-column:1/-1;margin:3px 0 0;padding:1px 5px;
  border-bottom:1px solid var(--chrome-line);}
.cmp-foot{position:sticky;bottom:-5px;margin:6px -5px -5px;padding:6px 5px 5px;
  background:var(--chrome-1);border-top:1px solid var(--chrome-line);}
.cmp-foot .vw-opt.cmp-go{margin-top:0;}
/* Add linked copy's caret: what stays linked, beside where it goes */
.sh-menu.match-menu.cmp-add-pop{min-width:min(780px,calc(100vw - 16px));}
.cmp-add-cols{display:grid;grid-template-columns:minmax(0,1.7fr)
  minmax(230px,1fr);gap:12px;align-items:start;}
.cmp-add-where{display:flex;flex-direction:column;gap:3px;}
.cmp-add-where .vw-opt{width:auto;}
.cmp-quick{display:flex;flex-wrap:wrap;gap:4px;margin:2px 0 4px;}
.cmp-quick-b{font-size:11px;padding:3px 8px;gap:5px;}
.cmp-quick-b .bic{width:12px;height:12px;}
.cmp-quick-b.on{border-color:var(--amber);background:var(--amber-soft);}
@media (max-width:720px){.cmp-add-cols{grid-template-columns:1fr;}}

/* ---- Colour menu: one heading style, one dot size and one grid, so every
   row of colours lines up ---- */
#fmt-txcol-menu,#fmt-fillcol-menu{width:min(274px,calc(100vw - 12px));
  gap:7px;max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;
  scrollbar-gutter:auto;}
/* The opacities: one labelled row each, in one section */
.bx-opblock .bx-oprow{padding-top:5px;}
.bx-oplab{flex:0 0 6.4em;font:12px/1.2 var(--sans);color:var(--chrome-ink-2);}
.sw-menu .fmt-lab,.sw-menu .cp-head,.cp-inline .cp-lab{
  font:12px/1.3 var(--sans);letter-spacing:0;text-transform:none;
  color:var(--chrome-ink-2);}
.sw-menu .fmt-lab{margin:3px 0 -2px;}
.sw-menu .cp-head{margin:0;}
.sw-menu>.sw-recrow,.sw-menu>.sw-tokrow{display:grid;
  grid-template-columns:repeat(10,18px);gap:7px;}
.sw-menu>.sw-recrow>.fmt-lab,.sw-menu>.sw-tokrow>.fmt-lab{grid-column:1/-1;}
.sw.sw-tok{box-shadow:none;}
.sw,.sw.sw-tok,.sw-rc{border:1.5px solid #ffffff38;box-sizing:border-box;}
body.light .sw,body.light .sw.sw-tok,body.light .sw-rc{border-color:#0000002e;}
.sw[aria-pressed="true"]{border-color:#fff;}
.cp-inline .cp-preview{display:none;}
.sw-menu>.color-pop.cp-inline{gap:6px;padding-top:8px;}

/* ---- Quick colours hide first when space is short ----
   They repeat the colours at the top of Text style and Box style. Folding
   the whole Font group to one tile left half the bar empty at 1300px. */
.deck.erc3 .qk-cell>.qk-sw:nth-child(n+5){display:none;}
/* ...then the type's name in the two buttons: the box beside them says it */
.deck.ercw2 #fmt-stylesave .fmt-typeword,
.deck.ercw2 #fmt-styleall .fmt-typeword{display:none;}

/* Two-row buttons where there is room. ribbonGrow (05-figures-and-
   ribbon.js) adds .rbn-grow to a group of the selection's tabs when the row
   is wide enough, so its buttons are as tall as a tile with the icon above
   the label. Their width is measured, so nothing here can fold or wrap the
   row. */
.rbn-grp.rbn-grow>.rbn-row>*{grid-row:1/span 2;align-self:center;}
.rbn-grp.rbn-grow>.rbn-row>.sh-drop{height:var(--rbn-tile-h);}
.deck .edit-tools .rbn-grp.rbn-grow>.rbn-row>.dbtn,
.deck .edit-tools .rbn-grp.rbn-grow>.rbn-row>.sh-drop>.dbtn:not(.tx-caret),
.deck .edit-tools .rbn-grp.rbn-grow>.rbn-row>.dc-menuwrap>.dbtn{
  flex-direction:column;justify-content:center;gap:3px;
  width:min-content;min-width:var(--rbn-tile-w);height:var(--rbn-tile-h);
  padding:0 4px;white-space:normal;text-align:center;line-height:1.1;
  font-size:11.5px;}
.deck .edit-tools .rbn-grp.rbn-grow>.rbn-row>.sh-drop.tx-split{gap:0;}
.deck .edit-tools .rbn-grp.rbn-grow>.rbn-row>.sh-drop.tx-split>.dbtn:not(.tx-caret){
  border-top-right-radius:0;border-bottom-right-radius:0;}
.deck .edit-tools .rbn-grp.rbn-grow>.rbn-row>.sh-drop.tx-split>.tx-caret{
  height:var(--rbn-tile-h);margin-left:-1px;border-top-left-radius:0;
  border-bottom-left-radius:0;}
.deck .edit-tools .rbn-grp.rbn-grow .dbtn .bic{width:22px;height:22px;}
.deck .edit-tools .rbn-grp.rbn-grow>.rbn-row>#fmt-opcell{flex-direction:column;
  justify-content:center;align-items:stretch;gap:5px;height:var(--rbn-tile-h);
  padding:0 8px;}
.rbn-grp.rbn-grow #fmt-opcell>.cell-lab{border:none;padding:0;}
/* Wide enough for two lines of label */
.edit-tools #lb-sech1{min-width:86px;}
.edit-tools #fmt-cmp-add{min-width:72px;}
.edit-tools #lb-track[aria-pressed="true"]{background:var(--accent-deep);
  border-color:var(--accent-deep);color:var(--on-accent-deep);}
/* A group holding one small button is drawn as a tile, as tall as the tiles
   beside it (sizeRibbonGroups marks the group). */
.rbn-grp.rbn-lone>.rbn-row>*{grid-row:1/span 2;align-self:center;}
.rbn-grp.rbn-lone>.rbn-row>.sh-drop{height:var(--rbn-tile-h);}
.deck .edit-tools .rbn-grp.rbn-lone>.rbn-row>.dbtn,
.deck .edit-tools .rbn-grp.rbn-lone>.rbn-row>.sh-drop>.dbtn:not(.tx-caret),
.deck .edit-tools .rbn-grp.rbn-lone>.rbn-row>.dc-menuwrap>.dbtn{
  flex-direction:column;justify-content:center;gap:5px;
  min-width:var(--rbn-tile-w);height:var(--rbn-tile-h);
  /* two lines at most: "Refer to a / figure", "Table in the / text" --
     on one line the tile was wide enough to fold its group */
  width:fit-content;max-width:92px;
  padding:0 8px;white-space:normal;text-align:center;line-height:1.1;
  font-size:11px;}
.deck.erc-roomy .edit-tools .rbn-grp.rbn-lone>.rbn-row>.dbtn,
.deck.erc-roomy .edit-tools .rbn-grp.rbn-lone>.rbn-row>.sh-drop>.dbtn:not(.tx-caret),
.deck.erc-roomy .edit-tools .rbn-grp.rbn-lone>.rbn-row>.dc-menuwrap>.dbtn{
  font-size:13px;}
.deck .edit-tools .rbn-grp.rbn-lone>.rbn-row>.sh-drop.tx-split{gap:0;}
.deck .edit-tools .rbn-grp.rbn-lone>.rbn-row>.sh-drop.tx-split>.dbtn:not(.tx-caret){
  border-top-right-radius:0;border-bottom-right-radius:0;}
.deck .edit-tools .rbn-grp.rbn-lone>.rbn-row>.sh-drop.tx-split>.tx-caret{
  height:var(--rbn-tile-h);margin-left:-1px;border-top-left-radius:0;
  border-bottom-left-radius:0;}
.deck .edit-tools .rbn-grp.rbn-lone .dbtn .bic{width:24px;height:24px;}
/* Compact: the tiles' own icon and gap, so two lines of words fit */
.deck.rbn-dense .edit-tools .rbn-grp.rbn-lone .dbtn .bic{width:20px;height:20px;}
.deck.rbn-dense .edit-tools .rbn-grp.rbn-lone>.rbn-row>.dbtn,
.deck.rbn-dense .edit-tools .rbn-grp.rbn-lone>.rbn-row>.sh-drop>.dbtn:not(.tx-caret),
.deck.rbn-dense .edit-tools .rbn-grp.rbn-lone>.rbn-row>.dc-menuwrap>.dbtn{gap:3px;}
/* ...and the row at its roomiest: the same height, wider and larger type */
.deck.erc-roomy{--rbn-tile-w:82px;--rbn-col-gap:5px;--rbn-btn-px:10px;
  --rbn-btn-gap:6px;--rbn-grp-px:12px;}
.deck.erc-roomy .edit-tools .dbtn,.deck.erc-roomy .rbn-geom .geo,
.deck.erc-roomy .rbn-geom input,.deck.erc-roomy .cell-lab{font-size:13.5px;}
.deck.erc-roomy .rbn-geom input{width:66px;}
.deck.erc-roomy .edit-tools .fx-tile,
.deck.erc-roomy .edit-tools .rbn-grp.rbn-grow>.rbn-row>.dbtn,
.deck.erc-roomy .edit-tools .rbn-grp.rbn-grow>.rbn-row>.sh-drop>.dbtn:not(.tx-caret){
  font-size:13px;}
.deck.erc-roomy.rbn-dense .edit-tools .fx-tile,
.deck.erc-roomy.rbn-dense .edit-tools .rbn-grp.rbn-grow>.rbn-row>.dbtn,
.deck.erc-roomy.rbn-dense .edit-tools .rbn-grp.rbn-grow>.rbn-row>.sh-drop>.dbtn:not(.tx-caret){
  font-size:12px;}

/* ---- Colour preview ----
   Shows the colour under the pointer on the words a click would change,
   without the selection's blue. --pv is set on the box (pvLiveOn).
   ::selection applies while the words are selected and ::highlight() once
   they are not. Each rule stands alone so a browser lacking one loses only
   that. */
.an-tx.pv-run-c ::selection{color:var(--pv);background:transparent;}
.an-tx.pv-run-c::selection{color:var(--pv);background:transparent;}
.an-tx.pv-run-b ::selection{background:var(--pv);}
.an-tx.pv-run-b::selection{background:var(--pv);}
::highlight(jv-pv-c){color:var(--pv);}
::highlight(jv-pv-b){background-color:var(--pv);}
.an-tx.pv-box{color:var(--pv)!important;}
.an-item.pv-fill{background:var(--pv)!important;}
/* the eye dropper: what covers the page stands aside, and the words' blue */
body.cp-dropping .sh-menu,body.cp-dropping .color-pop,
body.cp-dropping .mini-tb{visibility:hidden;}
body.cp-dropping .an-tx ::selection{background:transparent;}
body.cp-dropping .an-tx::selection{background:transparent;}

/* The picker opened from a colour well. It sits above every surface a well
   can be in, and its ::before covers the window: a press there closes the
   picker and reaches nothing underneath (cpWellBoot). A well has no
   opacity. */
.color-pop.cp-well{z-index:960;}
.color-pop.cp-well::before{content:"";position:fixed;inset:0;z-index:-1;}
.cp-well .cp-arow{display:none;}
/* ---- Text boxes: equal inset on both sides ----
   The fixed inset applies to both sides, so the text's starting edge does
   not depend on type size and the box has equal room on either side. */
.an-text.an-inset{padding:var(--in-y) var(--in-x)
  max(0px,calc(.7em - var(--in-y))) var(--in-x);}
.an-text.an-inset.an-al-r,.an-text.an-inset.an-al-c{
  padding-left:var(--in-x);padding-right:var(--in-x);}
.an-text.an-inset.an-va-m{padding-top:.35em;padding-bottom:.35em;}
.an-text.an-inset.an-va-b{padding-top:max(0px,calc(.7em - var(--in-y)));
  padding-bottom:var(--in-y);}

/* ---- X position and Y position, side by side ---- */
.sh-menu.match-menu.cmp-pop{max-height:min(92vh,680px);}
.cmp-axes{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin-top:5px;}
.cmp-axis{display:flex;flex-direction:column;gap:3px;min-width:0;}
.cmp-axis-h{display:flex;align-items:center;gap:6px;padding:2px 7px;
  font:12px/1.3 var(--sans);color:var(--chrome-ink-2);}
.cmp-axis .vw-opt{width:auto;min-width:0;}
.cmp-axis .vw-opt .bic{width:15px;height:15px;flex:none;}

/* ---- Show all links, and show only some ---- */
.rbn-vlinks{order:3;}
.lnk-show{display:flex;flex-direction:column;gap:3px;}
.lnk-show>.vw-opt{width:100%;justify-content:flex-start;}
.lnk-show .hd-lab{margin-top:5px;}
.lnk-filter{border:1px solid var(--chrome-line);border-radius:6px;}
.lnk-filter>summary{padding:7px 9px;cursor:pointer;color:var(--chrome-ink);
  font:600 13px/1.2 var(--sans);list-style-position:inside;}
.lnk-filter[open]>summary{border-bottom:1px solid var(--chrome-line);}
.lnk-filter>.cmp-grid{padding:4px;}

/* ---- Logbooks, starboards and groups ----
   57g-kinds.js sets data-kind on #deck to the kind of deck on screen; a
   control tagged for a kind, or excluded from one, follows it. */
.deck[data-kind="logbook"] [data-nokinds~="logbook"],
.deck[data-kind="starboard"] [data-nokinds~="starboard"],
.deck:not([data-kind="logbook"]) [data-kinds="logbook"],
.deck:not([data-kind="starboard"]) [data-kinds="starboard"]{
  display:none!important;}
/* a logbook page's running text: no box of its own -- the margins are
   its edges -- clipped to its share, except the live page's in the
   editor, which lies over the whole column (57h-logbook.js) */
.annot-layer>.an-item.lb-body{display:block;padding:0;border:0;
  border-radius:0;background:none;max-width:none;min-height:0;overflow:hidden;z-index:1;
  box-shadow:none;}
.annot-layer>.an-item.lb-body.lb-dcm{overflow:visible clip;}
.deck.editing .annot-layer>.an-item.lb-body.lb-live{overflow:visible;}
.deck.editing .an-item.lb-body.sel{z-index:1!important;outline:none;
  box-shadow:none;}
.deck.editing .an-item.lb-body.sel::before,
.deck.editing .an-item.lb-body.sel::after{display:none;}
.lb-flow{display:flow-root;position:relative;width:100%;}
/* an empty line that starts a page (57h lbPbMark): a box that cannot
   sit beside the page break's band, so it goes below it -- onto the new
   page, where its words will be. A bullet keeps its marker and waits. */
.lb-tx>p[data-pbe]:not([data-list]){display:flow-root;min-width:100%;}
/* also any empty line, where the page's foot leaves no room at all */
.lb-tx>p[data-emp]:not([data-list]){display:flow-root;min-width:2px;}
/* Hyphenation follows the document's language, and is never applied in a
   heading, contents line, table, code or equation line. */
.lb-tx.lb-hyph{hyphens:auto;hyphenate-limit-chars:6 3 3;}
.lb-tx.lb-hyph>.an-p:is([data-st=title],[data-st=subtitle],[data-st=h1],
  [data-st=h2],[data-st=h3],[data-st^=toc],[data-st^=lo],[data-st=bibh],
  [data-st=enh],[data-tbl],[data-obj]){hyphens:manual;}
/* Drop caps. The letter spans the stated number of lines (57h3). In the
   margin, its width is taken off first so the lines do not change. */
.lb-tx>.an-p[data-dc$="2"]:not([data-list],[data-tbl],[data-obj],[data-st=pre])::first-letter{
  -webkit-initial-letter:2;initial-letter:2;}
.lb-tx>.an-p[data-dc$="3"]:not([data-list],[data-tbl],[data-obj],[data-st=pre])::first-letter{
  -webkit-initial-letter:3;initial-letter:3;}
.lb-tx>.an-p[data-dc$="4"]:not([data-list],[data-tbl],[data-obj],[data-st=pre])::first-letter{
  -webkit-initial-letter:4;initial-letter:4;}
.lb-tx>.an-p[data-dc^=d]:not([data-list],[data-tbl],[data-obj],[data-st=pre])::first-letter{
  margin-right:.3em;}
.lb-tx>.an-p[data-dc^=m]:not([data-list],[data-tbl],[data-obj],[data-st=pre])::first-letter{
  margin-left:calc(var(--dcw,3em)*-1 - .55em);margin-right:.55em;}
.lb-fl{float:left;clear:left;pointer-events:none;user-select:none;}
.lb-fr{float:right;clear:right;pointer-events:none;user-select:none;}
.an-tx.lb-tx{display:block;outline:none;min-height:1em;cursor:text;
  padding-left:0;}
.deck.editing .an-item.lb-body{cursor:text;}
/* what is on a page draws over its words; Behind text, under them */
.annot-layer>.lb-body~.an-item{z-index:2;}
.annot-layer>.an-item.lb-behind{z-index:0;}
.deck.editing .annot-layer>.lb-body~.an-item.sel{z-index:30!important;}
/* the live page above the other pages' pictures, so its words are */
/* ---- No scroll anchoring on a logbook's pages ----
   Redrawing the pages lifts the live page out and puts it back, and scroll
   anchoring then reset the view to the top, so text typed after a page
   break ended up out of sight. The code that redraws keeps the view
   (renderSlide's scroll, 57h lbCaretReveal). */
.deck.kind-logbook .deck-stage{overflow-anchor:none;}
.deck.kind-logbook .deck-stage.sv>.sv-live{z-index:3;}
.deck.kind-logbook .deck-stage.sv>.sv-pic{cursor:default;}
.deck.kind-logbook .deck-stage.sv>.sv-pic:hover{outline:none;}
.deck.kind-logbook .deck-stage.sv>.slide,
.deck.kind-logbook .deck-stage.sv>.sv-pic{
  box-shadow:0 1px 3px rgba(0,0,0,.28),0 4px 14px rgba(0,0,0,.18);}
/* a contents line: its heading, a row of dots, its page */
.an-p[data-st=toch]{font-size:1.35em;font-weight:700;margin-bottom:.3em;}
.an-p[data-st^=toc]:not([data-st=toch]){display:flex;align-items:baseline;
  gap:.3em;}
.an-p[data-st^=toc]:not([data-st=toch])>a{display:flex;flex:1;
  min-width:0;color:inherit;text-decoration:none;}
.an-p[data-st^=toc]:not([data-st=toch])>a::after{content:"";flex:1;
  min-width:1em;margin:0 .25em .28em;border-bottom:.12em dotted
  currentColor;opacity:.55;}
.an-p[data-st=toc2]{padding-left:1.4em;}
.an-p[data-st=toc3]{padding-left:2.8em;}
/* The lists of figures and of tables look like the contents */
.an-p[data-st=lofh],.an-p[data-st=loth]{font-size:1.35em;font-weight:700;
  margin-bottom:.3em;}
.an-p[data-st=lof],.an-p[data-st=lot]{display:flex;align-items:baseline;gap:.3em;}
.an-p[data-st=lof]>a,.an-p[data-st=lot]>a{display:flex;flex:1;min-width:0;
  color:inherit;text-decoration:none;}
.an-p[data-st=lof]>a::after,.an-p[data-st=lot]>a::after{content:"";flex:1;
  min-width:1em;margin:0 .25em .28em;border-bottom:.12em dotted
  currentColor;opacity:.55;}
/* the Headings pane, where the slide strip is in a presentation */
/* Navigation pane, as in Word: Pages (every page under its section's
   heading) or Headings */
.deck.kind-logbook:not(.lb-nav-on) .dc-film,
.deck.kind-logbook.lb-nav-heads .dc-film{display:none!important;}
.deck.editing.kind-logbook.lb-nav-on:not(.lb-nav-heads) .dc-film{
  display:flex!important;}
.deck.editing.kind-logbook.lb-nav-on .film-resize{display:block!important;}
.deck.kind-logbook .lb-nav{flex:0 0 auto;padding-bottom:4px;}
.deck.kind-logbook.lb-nav-heads .lb-nav{flex:1 1 auto;}
.lb-nav-list[hidden]{display:none!important;}
.lb-nav-tab{display:inline-flex;align-items:center;gap:5px;flex:0 1 auto;
  background:none;border:1px solid transparent;border-radius:6px;
  color:inherit;font:600 12px var(--sans);padding:3px 8px;cursor:pointer;}
.lb-nav-tab .bic{width:13px;height:13px;}
.lb-nav-tab[aria-selected="true"]{color:var(--ink,#dfe7ee);
  background:color-mix(in srgb,var(--cyan) 18%,transparent);
  border-color:color-mix(in srgb,var(--cyan) 45%,transparent);}
.lb-nav-sec{font:600 11px var(--sans);color:var(--muted,#8a99a8);
  padding:8px 8px 2px;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;}
/* a page is not dragged in a logbook: its words flow; a section is */
.deck.kind-logbook .film-row{cursor:pointer;}
.deck.kind-logbook #film-head .film-view-btn{display:none;}
.lb-nav{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;
  padding:6px 8px 10px;}
.lb-nav[hidden]{display:none;}
.lb-nav-h{display:flex;align-items:center;gap:4px;font:600 12px var(--sans);
  color:var(--muted,#8a99a8);padding:4px 2px 6px;}
.lb-nav-h .lb-nav-x{margin-left:auto;}
.lb-nav-h .bic{width:14px;height:14px;}
.lb-nav-h span{flex:1;}
.lb-nav-x{background:none;border:0;color:inherit;cursor:pointer;
  padding:2px;border-radius:4px;display:inline-flex;}
.lb-nav-x:hover{background:color-mix(in srgb,var(--cyan) 14%,transparent);}
.lb-nav-list{overflow-y:auto;min-height:0;display:flex;flex-direction:column;
  gap:1px;}
.lb-nav-i{text-align:left;background:none;border:0;border-radius:5px;
  color:var(--ink,#dfe7ee);font:13px/1.3 var(--sans);padding:5px 8px;
  cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lb-nav-i:hover,.lb-nav-i:focus-visible{
  background:color-mix(in srgb,var(--cyan) 14%,transparent);}
.lb-nav-title,.lb-nav-h1{font-weight:600;}
.lb-nav-subtitle,.lb-nav-h2{padding-left:20px;}
.lb-nav-h3{padding-left:34px;font-size:12px;}
.lb-nav-none{font:12px/1.45 var(--sans);color:var(--muted,#8a99a8);
  margin:4px 2px;}
.lb-menu{min-width:320px;}
.lb-lh-menu{min-width:220px;}
/* A page's versions, on its thumbnail */
.lb-verb{position:absolute;right:6px;bottom:6px;display:inline-flex;
  align-items:center;gap:3px;padding:1px 6px;border-radius:9px;
  font:600 11px var(--sans);cursor:pointer;color:var(--chrome-ink);
  background:var(--chrome-2,#1d2a36);border:1px solid var(--chrome-line,#2a3a48);}
.lb-verb .bic{width:11px;height:11px;}
.film-row .film-label{position:relative;}
/* Tracked changes styled as Word shows them; a comment's text is
   highlighted while editing (never in print) */
.lb-tx ins{color:#1a7f37;background:#e8f6ec;text-decoration:underline;}
.lb-tx del{color:#b3261e;background:#fcebea;text-decoration:line-through;}
.deck .lb-tx span[data-cm]{background:rgba(255,196,0,.32);border-radius:2px;}
.deck .lb-tx span[data-cm].cm-done{background:rgba(255,196,0,.1);}
.deck .lb-tx span[data-cm].cm-gone{background:none;}
/* A citation is drawn as its displayed text with its key kept underneath;
   also the reference list's heading and hanging entries */
.lb-cite-raw{display:none;}
.lb-cite::after{content:attr(data-show);}
.deck.editing .lb-body.lb-live .lb-cite{border-radius:2px;
  background:color-mix(in srgb,#5ab3d6 12%,transparent);}
/* A reference is drawn as its displayed text with its token kept
   underneath; one that leads nowhere is red while editing; a labelled
   equation's number sits at the right of its line (drawn, not stored). */
.lb-ref-raw{display:none;}
.lb-ref::after{content:attr(data-show);}
.deck.editing .lb-body.lb-live .lb-ref{border-radius:2px;cursor:default;
  background:color-mix(in srgb,#8a6fd6 12%,transparent);}
.deck.editing .lb-body.lb-live .lb-ref.is-miss{
  text-decoration:underline wavy #b3261e;text-decoration-skip-ink:none;}
/* A numbered heading's number is drawn, not stored */
.lb-tx p[data-hno]::before{content:attr(data-hno);margin-right:.6em;}
/* The equation number sits at the right of its line, as in a paper, or at
   the left, with the formula centred in the whole column. It is placed
   beside the formula once typeset, not the surrounding text. */
:is(.lb-tx,.an-tx) p[data-eqno]{position:relative;}
:is(.lb-tx,.an-tx) p[data-eqno]::after{content:attr(data-eqno);
  position:absolute;right:0;top:50%;transform:translateY(-50%);
  white-space:nowrap;}
:is(.lb-tx,.an-tx) p[data-eqno][data-eqs="l"]::after{right:auto;left:0;}
:is(.lb-tx,.an-tx) p[data-eqno]:has(>mjx-container[display="true"],
  >*>mjx-container[display="true"],>*>*>mjx-container[display="true"])::after{
  content:none;}
:is(.lb-tx,.an-tx) p[data-eqno] mjx-container[display="true"]{
  position:relative;}
:is(.lb-tx,.an-tx) p[data-eqno] mjx-container[display="true"]::after{
  content:var(--eqno);position:absolute;right:0;top:50%;
  transform:translateY(-50%);white-space:nowrap;line-height:1.2;}
:is(.lb-tx,.an-tx) p[data-eqs="l"] mjx-container[display="true"]::after{
  right:auto;left:0;}
.an-eqno{position:absolute;right:.2em;top:50%;transform:translateY(-50%);
  white-space:nowrap;pointer-events:none;}
.an-eqno.is-l{right:auto;left:.2em;}
.eqno-mi{display:flex;align-items:center;gap:8px;}
.eqno-mi.on{background:var(--chrome-hi,color-mix(in srgb,var(--accent,#5ab3d6) 18%,transparent));}
.eq-lblw{display:inline-flex;align-items:center;gap:6px;font-size:12px;}
.eq-lblw[hidden],.eq-linesck[hidden]{display:none!important;}
.eq-lbl{width:128px;font:12px/1.3 var(--mono);}
/* the list under the caret as \ref{ is typed (41-refs.js) */
.ref-pop{position:fixed;z-index:240;min-width:260px;max-width:min(560px,92vw);
  max-height:calc(8 * 34px);overflow-y:auto;padding:4px;border-radius:8px;
  background:var(--chrome-2,#16273a);color:var(--chrome-ink,#fff);
  border:1px solid var(--chrome-line,#ffffff26);box-shadow:0 12px 32px #0008;
  font:12px/1.3 var(--sans);}
.ref-pop[hidden]{display:none;}
.ref-pop-row{display:grid;grid-template-columns:18px auto auto 1fr auto;
  align-items:center;gap:8px;min-height:30px;padding:2px 8px;
  border-radius:6px;cursor:pointer;}
.ref-pop-row.on,.ref-pop-row:hover{background:color-mix(in srgb,var(--accent,#5ab3d6) 24%,transparent);}
.ref-pop-ic .bic{width:14px;height:14px;}
.ref-pop-n{font-weight:600;white-space:nowrap;}
.ref-pop-lbl{font-family:var(--mono);font-size:11px;color:var(--chrome-ink-2,#cbd5e1);
  white-space:nowrap;}
.ref-pop-w{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--chrome-ink-2,#cbd5e1);min-width:0;}
.ref-pop-in{color:var(--chrome-ink-3,#94a3b8);}
.ref-pop-warn{color:color-mix(in srgb,#e5484d 55%,var(--chrome-ink));}
.ref-pop-th{width:34px;height:24px;object-fit:contain;border-radius:3px;
  background:#fff;}
.ref-pop-none{padding:8px 10px;color:var(--chrome-ink-2,#cbd5e1);}
/* Insert reference (#ref-dlg) */
.sh-menu.ref-dlg{position:fixed;left:50%;top:12vh;transform:translateX(-50%);
  z-index:420;display:flex;flex-direction:column;gap:8px;
  width:min(680px,calc(100vw - 32px));max-height:76vh;padding:12px;
  color:var(--chrome-ink,#fff);font:12px/1.35 var(--sans);}
.ref-dlg-head{display:flex;align-items:center;gap:8px;}
.ref-dlg-t{font:600 14px/1.3 var(--sans);white-space:nowrap;}
.ref-dlg-q{flex:1;min-width:0;padding:5px 8px;border-radius:6px;
  border:1px solid var(--chrome-line,#ffffff26);background:var(--chrome-1,#0f1c2b);
  color:inherit;font:inherit;}
.ref-dlg-chips,.ref-dlg-as{display:flex;flex-wrap:wrap;align-items:center;gap:4px;}
.ref-dlg-lab{color:var(--chrome-ink-2,#cbd5e1);margin-right:4px;}
.ref-dlg .dbtn[aria-pressed=true]{background:color-mix(in srgb,var(--accent,#5ab3d6) 30%,transparent);
  border-color:var(--accent,#5ab3d6);}
.ref-dlg .dbtn .bic{width:14px;height:14px;margin-right:4px;}
.ref-dlg-probs{display:flex;flex-direction:column;gap:3px;padding:6px 8px;
  border-radius:6px;background:color-mix(in srgb,#b3261e 16%,transparent);}
.ref-dlg-prob{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.ref-dlg-body{flex:1;min-height:80px;overflow-y:auto;display:flex;
  flex-direction:column;gap:2px;}
.ref-dlg-file{margin:6px 0 2px;font-weight:600;color:var(--chrome-ink-2,#cbd5e1);}
.ref-dlg-row{display:grid;grid-template-columns:44px auto 1fr auto auto;
  align-items:center;gap:10px;padding:4px 6px;border-radius:6px;cursor:pointer;}
.ref-dlg-row.on,.ref-dlg-row:hover{background:color-mix(in srgb,var(--accent,#5ab3d6) 20%,transparent);}
.ref-dlg-th{width:44px;height:30px;display:flex;align-items:center;justify-content:center;}
.ref-dlg-th img{max-width:44px;max-height:30px;object-fit:contain;border-radius:3px;background:#fff;}
.ref-dlg-th .bic{width:16px;height:16px;}
.ref-dlg-n{font-weight:600;white-space:nowrap;}
.ref-dlg-w{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.ref-dlg-lbl{font-family:var(--mono);font-size:11px;color:var(--chrome-ink-2,#cbd5e1);}
.ref-dlg-none,.ref-dlg-foot{color:var(--chrome-ink-2,#cbd5e1);margin:4px 0;}
.eq-numck{margin-left:12px;}
.an-p[data-st=bibh]{font-size:1.35em;font-weight:700;margin:.6em 0 .3em;}
.an-p[data-st=bib]{padding-left:2em;text-indent:-2em;}
/* A line holding a picture: a block as tall as the picture, which the
   page's foot cannot cut */
.an-p[data-obj]{display:flow-root;margin:0!important;padding:0!important;
  line-height:0;font-size:0;}
.an-p[data-obj]+.an-p{margin-top:.3em;}
.lb-objbox{display:block;width:100%;}
.deck.editing .lb-body.lb-live .an-p[data-obj].lb-objmiss .lb-objbox{
  outline:1px dashed color-mix(in srgb,#5ab3d6 70%,transparent);}
/* A table in a logbook's text: each row is a grid of cells, with rules
   between them and above the first row */
.an-p[data-tbl]{display:grid;align-items:stretch;margin:0!important;
  padding:0!important;text-indent:0;list-style:none;position:relative;
  min-width:2px;}   /* (nothing is no room: the foot of a page, 57h) */
.an-p[data-tbl].tbl-first{margin-top:.35em!important;}
.an-p[data-tbl]:not(:has(+ .an-p[data-tbl])){margin-bottom:.55em!important;}
/* Placeholder text of a template paragraph: faint while typing, absent from
   print and export, removed on the first key (57h lbPbMark) */
.deck.editing .lb-body.lb-live .lb-tx>p[data-ph]:is([data-emp],[data-pbe])::before,
.lb-tplpage .lb-tx>p[data-ph]::before{content:attr(data-ph);position:absolute;
  pointer-events:none;white-space:nowrap;opacity:.46;font-style:normal;}
.deck.editing .lb-body.lb-live .lb-tx>p[data-ph][data-al=r]:is([data-emp],[data-pbe])::before,
.lb-tplpage .lb-tx>p[data-ph][data-al=r]::before{position:static;float:right;
  height:0;}
.lb-tplpage .lb-tx>p[data-ph]::before{opacity:.72;}
.ask-dlg.ask-wide .aa-box.ask-box{width:min(760px,94vw);}
.ask-more{display:flex;flex-direction:column;gap:6px;min-height:0;
  margin-top:10px;overflow-y:auto;}
.lb-tplgrid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));}
.nt-card.lb-tplcard{align-items:center;gap:7px;padding:7px 5px;}
.nt-card.lb-tplcard .nt-name{font-size:12px;}
.nt-card.lb-tplcard[aria-pressed="true"]{border-color:var(--accent,var(--cyan));
  box-shadow:0 0 0 1px var(--accent,var(--cyan)) inset;}
.lb-tplpage .annot-layer>.an-item.lb-body{color:#1f2328!important;}
.lb-tplpage{position:relative;display:block;overflow:hidden;background:#fff;
  color:#1f2328;border-radius:3px;box-shadow:0 1px 4px rgba(0,0,0,.35);
  text-align:left;pointer-events:none;}
.lb-tplown{display:flex;flex-direction:column;gap:4px;}
.lb-tplown .lb-tplx{font-size:11px;padding:2px 6px;justify-content:center;}
/* ---- Templates and brand kits ---- */
.tpl-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));}
.nt-card.tpl-card{gap:7px;padding:7px;}
.nt-card.tpl-card .nt-name{font-size:12px;}
.nt-card.tpl-card[aria-pressed="true"]{border-color:var(--accent,var(--cyan));
  box-shadow:0 0 0 1px var(--accent,var(--cyan)) inset;}
.tpl-pic{display:grid;place-items:center;}
.tpl-pic .mini-diagram{border-radius:3px;pointer-events:none;}
.tpl-tools{display:flex;gap:4px;}
.tpl-tools .lb-tplx{flex:1;min-width:0;}
.tpl-ren{flex:1;min-width:0;width:100%;font:12px var(--sans);}
.tpl-where{display:flex;flex-direction:column;gap:4px;align-items:flex-start;}
.tpl-where .dh-every,.tpl-kit{margin-left:0;font:12.5px var(--sans);
  color:var(--chrome-ink);}
.tpl-kit{display:inline-flex;align-items:center;gap:6px;margin-top:4px;}
.tpl-kit[hidden]{display:none;}
.tpl-pickh{display:flex;align-items:center;gap:10px;}
.tpl-pickh .dbtn{margin-left:auto;}
.tpl-pickgrid{display:grid;gap:8px;overflow-y:auto;min-height:0;max-height:38vh;
  grid-template-columns:repeat(auto-fill,minmax(128px,1fr));}
.tpl-pick{display:flex;flex-direction:column;gap:4px;padding:5px;text-align:left;
  border:1px solid var(--chrome-line);border-radius:7px;cursor:pointer;
  background:var(--chrome-1);color:var(--chrome-ink);font:11.5px var(--sans);}
.tpl-pick .mini-diagram{width:100%;pointer-events:none;opacity:.45;}
.tpl-pick span:last-child{white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;}
.tpl-pick[aria-pressed="true"]{border-color:var(--accent,var(--cyan));
  box-shadow:0 0 0 1px var(--accent,var(--cyan)) inset;}
.tpl-pick[aria-pressed="true"] .mini-diagram{opacity:1;}

.deck-history.deck-kit{height:calc(100vh - 48px);}
.kit-main{flex:1;min-height:0;display:grid;
  grid-template-columns:216px minmax(0,1fr);}
.kit-rail{overflow-y:auto;border-right:1px solid #ffffff14;padding:10px 8px;
  display:flex;flex-direction:column;gap:6px;}
.kit-rail .dbtn{justify-content:flex-start;}
.kit-card{flex:none;display:flex;flex-direction:column;gap:5px;padding:8px 9px;
  text-align:left;border:1px solid var(--chrome-line);border-radius:8px;
  background:transparent;color:var(--chrome-ink);cursor:pointer;
  font-family:var(--sans);}
.kit-card:hover{background:#ffffff0d;}
.kit-card.on{background:#ffffff12;border-color:var(--cyan);}
.kit-cardn{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;}
.kit-chips{display:flex;flex-wrap:wrap;gap:3px;}
.kit-chip{width:15px;height:15px;border-radius:4px;border:1px solid #00000033;}
.kit-where{font-size:11px;color:var(--chrome-ink-2);}
.kit-body{overflow-y:auto;padding:4px 16px 18px;min-width:0;}
.kit-cols{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;}
.kit-right{position:sticky;top:12px;align-self:start;}
.kit-sect{padding:10px 0 12px;border-bottom:1px solid #ffffff14;
  display:flex;flex-direction:column;gap:6px;align-items:flex-start;}
.kit-sect:last-child{border-bottom:0;}
.kit-h{display:flex;align-items:center;gap:6px;font:600 13px var(--sans);
  color:var(--chrome-ink);margin-bottom:2px;}
.kit-row{display:flex;align-items:center;gap:8px;max-width:100%;flex-wrap:wrap;}
.kit-crow,.kit-frow,.kit-srow{width:100%;flex-wrap:nowrap;}
.kit-colours{display:flex;flex-direction:column;gap:5px;width:100%;}
.kit-in,.kit-num{font:12.5px var(--sans);color:var(--chrome-ink);
  background:var(--input-bg);border:1px solid var(--chrome-line);
  border-radius:6px;padding:5px 8px;min-width:0;}
.kit-crow .kit-in,.kit-frow .kit-in{flex:1;}
.kit-name{width:320px;max-width:100%;font-size:14px;}
.kit-num{width:62px;}
.kit-sel,#tpl-kit{font:12px var(--sans);min-width:0;max-width:190px;
  color:var(--chrome-ink);background:var(--input-bg);padding:5px 6px;
  border:1px solid var(--chrome-line);border-radius:6px;}
.kit-crow .kit-sel{width:150px;}
.kit-lab{font:12.5px var(--sans);color:var(--chrome-ink);width:76px;flex:none;}
.kit-lab2{font:12px var(--sans);color:var(--chrome-ink-2);flex:none;}
.kit-spec{font-size:20px;line-height:1;color:var(--chrome-ink);flex:none;
  width:34px;text-align:center;}
.kit-tog[aria-pressed="true"]{border-color:var(--cyan);color:var(--chrome-ink);
  background:color-mix(in srgb,var(--cyan) 18%,transparent);}
.kit-x{flex:none;}
.kit-tick{margin-left:0!important;}
.kit-pics-g,.kit-picgrid{display:grid;gap:8px;width:100%;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));}
.kit-piccard{display:flex;flex-direction:column;gap:6px;padding:8px;
  border:1px solid var(--chrome-line);border-radius:8px;}
.kit-piccard img,.kit-pic img{width:100%;height:74px;object-fit:contain;
  background:repeating-conic-gradient(#ffffff 0 25%,#e6e9ec 0 50%) 0 0/14px 14px;
  border-radius:5px;}
.kit-pics{width:340px;}
.kit-pics:not([hidden]){display:block;}
.kit-pics .kit-picgrid{grid-template-columns:repeat(2,minmax(0,1fr));padding:6px;
  max-height:50vh;overflow-y:auto;}
.kit-pic{display:flex;flex-direction:column;gap:4px;padding:6px;text-align:left;
  border:1px solid var(--chrome-line);border-radius:8px;background:transparent;
  color:var(--chrome-ink);font:12px var(--sans);cursor:pointer;}
.kit-pic:hover,.kit-pic[aria-pressed="true"]{border-color:var(--cyan);}
.kit-pic span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.kit-page{position:relative;border-radius:8px;padding:18px;display:flex;
  flex-direction:column;gap:8px;border:1px solid var(--chrome-line);
  overflow:hidden;font-family:var(--sans);line-height:1.2;}
.kit-pbox{border:1px solid;border-radius:4px;padding:8px 10px;font-size:13px;}
.kit-plogo{max-width:84px;max-height:44px;align-self:flex-end;}
.kit-foot{flex-wrap:wrap;}
.kit-foot[hidden]{display:none;}
body.light .kit-rail,body.light .kit-sect{border-color:var(--line);}
body.light .kit-card:hover{background:#00000008;}
body.light .kit-card.on{background:#0000000d;}

/* Line numbers, beside the column and outside its text */
.lb-lnp{position:absolute;width:0;pointer-events:none;user-select:none;}
.lb-lnp i{position:absolute;right:0;transform:translateY(-50%);line-height:1;
  font-size:.8em;font-style:normal;font-weight:400;white-space:nowrap;
  text-align:right;font-variant-numeric:tabular-nums;
  color:color-mix(in srgb,currentColor 64%,transparent);}
.lb-lnum-menu{min-width:250px;}
/* Bookmarks are shown while typing (Insert > Bookmark) */
.deck.editing.lb-bmshow .lb-body.lb-live .lb-tx span[data-bm]{
  background:color-mix(in srgb,#2f80d0 18%,transparent);
  box-shadow:-1.5px 0 0 #2f80d0,1.5px 0 0 #2f80d0;}
.lb-bmdlg .lb-bmrow{grid-template-columns:20px auto 1fr auto auto auto auto;}
.lb-bmdlg .ref-dlg-th{width:20px;}
.lb-bmdlg .lb-bmrow .ref-dlg-q{width:150px;}
.lb-bmdlg .lb-bm-show{padding:2px 4px;}
.find-go{display:flex;flex-direction:column;gap:6px;}
.find-go[hidden]{display:none;}
.lb-goto{max-height:46vh;overflow-y:auto;}
.lb-goto-r{display:grid;grid-template-columns:18px auto 1fr auto;gap:8px;
  align-items:center;width:100%;padding:5px 7px;border:0;border-radius:5px;
  background:none;color:inherit;font:12px/1.3 var(--sans);text-align:left;
  cursor:pointer;}
.lb-goto-r:hover,.lb-goto-r:focus-visible{
  background:color-mix(in srgb,var(--accent) 16%,transparent);}
.lb-goto-ic .bic{width:13px;height:13px;}
.lb-goto-n{font-weight:600;white-space:nowrap;max-width:190px;overflow:hidden;
  text-overflow:ellipsis;}
.lb-goto-w,.lb-goto-p{color:var(--chrome-ink-2);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;min-width:0;}
/* A cell's drawing is computed for it (57n2 lbTblDress); with nothing
   specified, every cell gets a line round it. The four lines are its
   ::after, half of each outside the cell, where the next cell draws its
   own, so a row that starts a page is also closed above, as in Word. */
.an-p[data-tbl]>span[data-td]{display:block;position:relative;min-width:0;
  min-height:var(--tdmh,1.3em);box-sizing:border-box;padding:.21em .43em;
  overflow-wrap:anywhere;background:var(--tdbg,none);
  color:var(--tdink,inherit);font-weight:var(--tdfw,inherit);}
/* (two fills side by side meet on a part of a pixel: each goes on a hair
   under the next) */
.an-p[data-tbl]>span[data-td][style*="--tdfx"]{
  box-shadow:.5px .5px 0 0 var(--tdfx);}
.an-p[data-tbl][data-th="1"]>span[data-td]{font-weight:700;
  background:var(--tdbg,color-mix(in srgb,currentColor 7%,transparent));}
.an-p[data-tbl]>span[data-td]::after{content:"";position:absolute;
  pointer-events:none;inset:var(--tdi,-.03em);border-style:solid;
  border-width:var(--tdw,.06em);border-color:var(--tdc,currentColor);}
.an-p[data-tbl]>span[data-ca=l]{text-align:left;}
.an-p[data-tbl]>span[data-ca=c]{text-align:center;}
.an-p[data-tbl]>span[data-ca=r]{text-align:right;}
.an-p[data-tbl]>span[data-ca=j]{text-align:justify;}
.an-p[data-tbl]>span[data-va=m]{align-content:center;}
.an-p[data-tbl]>span[data-va=b]{align-content:end;}
/* a cell merged down lies over its rows (lbTblTall); under it, a cell that
   keeps its row's place, or (on a later page) its part of it */
.an-p[data-tbl]>span[data-gr]{position:absolute;top:0;left:0;right:0;
  z-index:1;height:var(--tdh,auto);}
.an-p[data-tbl]>span[data-cv="1"]{display:none;}
.an-p[data-tbl]>span[data-cv="2"]{visibility:var(--tdvis,hidden);}
.an-p[data-tbl]>span[data-cv="2"][style*="--tdpos"]{position:absolute;
  top:0;left:0;right:0;z-index:1;height:var(--tdh,auto);}
/* the header row again at a page's top, and the cells picked */
.lb-ths{position:absolute;left:0;right:0;pointer-events:none;
  user-select:none;}
.lb-thfn{font-size:.68em;line-height:0;padding:0 .08em;}
/* The line between two columns, and the line while it is dragged */
.lb-body.lb-colres .lb-tx,.lb-body.lb-colres .lb-tx *{cursor:col-resize!important;}
.lb-colline{position:absolute;width:0;pointer-events:none;z-index:3;
  border-left:1.5px dashed #2f80d0;margin-left:-.75px;}
.lb-tblw-row{display:flex;align-items:center;gap:7px;padding:4px 8px 8px;
  font:12px/1.3 var(--sans);}
.lb-tblw-row input{width:70px;}
.lb-tblwidth .vw-opt{flex-direction:row;align-items:center;gap:8px;}
/* The line under a row while it is dragged (57n6). A row taller than a page
   is laid out as its cells stacked, each pulled up beside the first, so the
   page foot carries their lines on. Also cell paragraphs and lists, and
   tracked row and column changes, which use the text's tracked colour so
   the cell's lines keep theirs. */
.lb-body.lb-rowres .lb-tx,.lb-body.lb-rowres .lb-tx *{cursor:row-resize!important;}
.lb-rowline{position:absolute;height:0;pointer-events:none;z-index:3;
  border-top:1.5px dashed #2f80d0;margin-top:-.75px;}
.lb-tblheight .vw-opt{flex-direction:row;align-items:center;gap:8px;}
.lb-tblheight .lb-tblh-rule{flex:1;font:12px var(--sans);}
.an-p[data-tbl][data-rh^=x]>span[data-td]{overflow:clip;overflow-clip-margin:2pt;}
.an-p[data-tbl][data-rsp]{display:block;height:auto!important;}
.an-p[data-tbl][data-rsp]>span[data-td]{margin-left:var(--rspl,0);
  width:var(--rspw,100%);margin-top:var(--rspt,0);
  min-height:var(--rsph,var(--tdmh,1.3em));overflow:visible;}
.an-p[data-tbl][data-rsp]>span[data-td]::before{content:"";position:absolute;
  inset:0;pointer-events:none;background:var(--rspcut,none);}
.an-p[data-tbl][data-rsp]>span[data-td][data-gr],
.an-p[data-tbl][data-rsp]>span[data-cv="2"]{position:relative;top:auto;height:auto;}
.an-p[data-tbl]>span[data-td]>span[data-tp]{display:block;--tpl:0;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list]{display:list-item;
  margin-left:calc(1.3em + var(--tpl) * 1.3em);counter-set:list-item var(--tpn,0);}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-lvl]:not([data-list]){
  margin-left:calc(var(--tpl) * 1.3em);}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-lvl="1"]{--tpl:1;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-lvl="2"]{--tpl:2;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-lvl="3"]{--tpl:3;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-lvl="4"]{--tpl:4;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-lvl="5"]{--tpl:5;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-lvl="6"]{--tpl:6;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-lvl="7"]{--tpl:7;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-lvl="8"]{--tpl:8;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list=bullet]{list-style-type:disc;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list=circle]{list-style-type:circle;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list=square]{list-style-type:square;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list=dash]{list-style-type:"\2013\00a0";}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list=arrow]{list-style-type:"\25b8\00a0";}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list=check]{list-style-type:"\2713\00a0";}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list=number]{list-style-type:decimal;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list=paren]{list-style-type:jv-paren;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list=alpha]{list-style-type:lower-alpha;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list=alpha-upper]{list-style-type:upper-alpha;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list=roman]{list-style-type:lower-roman;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-list=roman-upper]{list-style-type:upper-roman;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-al=c]{text-align:center;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-al=r]{text-align:right;}
.an-p[data-tbl]>span[data-td]>span[data-tp][data-al=j]{text-align:justify;}
.lb-tx .an-p[data-tbl][data-rc^=i]>span[data-td],
.lb-tx .an-p[data-tbl]>span[data-td][data-cc^=i]{-webkit-text-fill-color:#1a7f37;
  text-decoration:underline #1a7f37;box-shadow:inset 0 0 0 999px rgba(26,127,55,.12);}
.lb-tx .an-p[data-tbl][data-rc^=d]>span[data-td],
.lb-tx .an-p[data-tbl]>span[data-td][data-cc^=d]{-webkit-text-fill-color:#b3261e;
  text-decoration:line-through #b3261e;box-shadow:inset 0 0 0 999px rgba(179,38,30,.1);}
.lb-cellpick{position:absolute;pointer-events:none;z-index:2;
  background:color-mix(in srgb,#2f80d0 26%,transparent);}
.lb-tx.lb-pick span[data-td]::selection,
.lb-tx.lb-pick span[data-td] ::selection{background:transparent;}
/* its menus */
.tbl-menu .tbl-sw.on{outline:2px solid var(--accent,var(--cyan));
  outline-offset:1px;}
.lb-tblscope{display:flex;gap:4px;padding:2px;}
.lb-tblscope .dbtn{flex:1;white-space:nowrap;}
.lb-tblscope .dbtn[aria-pressed="true"],.lb-tblwt-b[aria-pressed="true"],
.tbl-fill-foot .dbtn[aria-pressed="true"]{border-color:var(--accent,var(--cyan));
  background:color-mix(in srgb,var(--accent) 22%,transparent);}
.sh-menu.lb-tblbd{width:min(388px,calc(100vw - 24px));}
.lb-tblbd-g{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:2px;}
.lb-tblbd-b{justify-content:flex-start;text-align:left;white-space:nowrap;
  padding-left:7px;padding-right:5px;}
.lb-tblwt{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:2px;}
.lb-tblwt-b{display:flex;align-items:center;gap:8px;}
.lb-tblwt-b span{flex:0 0 34px;height:0;}
.sh-menu.lb-tbllooks{width:min(486px,calc(100vw - 24px));}
.lb-tbllooks .tbl-gal{grid-template-columns:repeat(4,1fr);}
.lb-tbllooks .tbl-card-l{font-size:11.5px;}
.lb-tblcard-p{display:block;width:92px;padding:5px 6px;border-radius:3px;
  background:#fff;color:#1f2328;font:6px/1 var(--sans);}
.lb-tblcard-p .an-p{font-size:6px;}
.lb-tblcard-p .an-p[data-tbl]>span[data-td]{min-height:12px;padding:4px 4px 3px;}
.lb-tblcard-p .an-p i{display:block;height:2px;border-radius:1px;width:80%;
  background:currentColor;opacity:.55;}
.lb-tblcard-p .an-p[data-th="1"] i{height:3px;opacity:.9;}
.lb-tblg-menu{min-width:0;padding:8px;}
.lb-tblg-lab{font:12px var(--sans);margin:0 0 6px;}
.lb-tblg{display:grid;grid-template-columns:repeat(10,16px);gap:3px;}
.lb-tblg-c{width:16px;height:16px;padding:0;border-radius:2px;cursor:pointer;
  border:1px solid var(--line,#2a3a48);background:transparent;}
.lb-tblg-c.on{background:color-mix(in srgb,var(--cyan) 45%,transparent);
  border-color:var(--cyan);}
/* Footnotes: the mark counts itself; the notes sit at the page's foot under
   a short rule */
.lb-tx sup.lb-fnref,.lb-tx sup[data-fn]{counter-increment:lbfn;
  font-size:.68em;line-height:0;padding:0 .08em;cursor:default;}
.lb-tx sup[data-fn]::after{content:counter(lbfn);}
.lb-fnarea{position:absolute;left:0;right:0;font-size:.82em;line-height:1.3;
  text-align:left;}
.lb-fnmeasure{visibility:hidden;top:0;}
.lb-fnsep{width:33%;border-top:.07em solid currentColor;opacity:.55;
  margin-bottom:.35em;}
.lb-fn{margin:0 0 .25em;}
.lb-fnn{font-size:.8em;vertical-align:super;line-height:0;margin-right:.15em;}
.lb-fnph{opacity:.45;font-style:italic;}
/* Endnotes: marks numbered i, ii, iii (drawn, not stored), and the Notes at
   the logbook's end, each hanging from its number */
.lb-tx sup[data-en]{font-size:.68em;line-height:0;padding:0 .08em;
  cursor:default;}
.lb-tx sup[data-en]::after{content:attr(data-enn);}
.lb-tx sup.lb-enown{padding:0 .3em 0 0;}
.an-p[data-st=enh]{font-size:1.35em;font-weight:700;margin:.6em 0 .3em;}
.an-p[data-st=en]{padding-left:1.6em;text-indent:-1.6em;font-size:.92em;}
.an-p[data-st=en]>sup.lb-enown:first-child{display:inline-block;
  min-width:1.6em;text-indent:0;}
.deck.editing .lb-body.lb-live .lb-fn{cursor:text;}
.deck.editing .lb-body.lb-live .lb-fn:hover{
  background:color-mix(in srgb,#5ab3d6 10%,transparent);}
.lb-fned{outline:none;border-bottom:1px dashed #5ab3d6;min-width:4em;
  display:inline-block;}
/* A logbook's header and footer, typed in place */
.slide-head.lb-hf,.slide-foot.lb-hf{white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;}
.lb-hf-ed{position:absolute;z-index:40;transform:translateY(-50%);
  min-height:1.3em;line-height:1.3;padding:1px 3px;outline:none;
  border:1px dashed color-mix(in srgb,var(--cyan) 75%,transparent);
  border-radius:3px;background:#eef7fb;
  color:#1b2733;white-space:nowrap;cursor:text;}
.lb-hf-ed-foot{transform:translateY(50%);}
.lb-code{display:inline-block;padding:0 .3em;margin:0 .05em;border-radius:3px;
  background:color-mix(in srgb,var(--cyan) 22%,transparent);
  font-variant-numeric:tabular-nums;user-select:all;}
.lb-hf-bar{position:absolute;left:50%;z-index:41;display:flex;gap:4px;
  align-items:center;flex-wrap:nowrap;white-space:nowrap;
  transform:translateX(-50%);padding:4px 6px;border-radius:8px;
  background:#16222d;border:1px solid #2a3a48;
  box-shadow:0 6px 20px rgba(0,0,0,.35);color:#dfe7ee;
  font:12px var(--sans);}
/* The two bars over the page, with the text being typed between them */
.lb-hf-tools{position:absolute;inset:0;z-index:41;pointer-events:none;}
.lb-hf-tools>.lb-hf-bar{pointer-events:auto;}
.lb-hf-lab{font-weight:600;padding:0 4px;opacity:.75;}
.lb-hf-first{display:inline-flex;align-items:center;gap:4px;padding:0 4px;}
.lb-hf-al[aria-pressed="true"]{
  background:color-mix(in srgb,var(--cyan) 22%,transparent);}
body.light .lb-hf-bar{background:#fff;color:#1b2733;border-color:#d5dde5;}
.lb-keep-menu,.lb-dc-menu{min-width:250px;}
/* (two lines of words at the narrowest, not three) */
#lb-apart,#lb-keep{min-width:65px;}
/* a tick beside what is on */
.lb-menu .lb-tickmi::before{content:"";display:inline-block;width:1.4em;}
.lb-menu .lb-tickmi[aria-checked="true"]::before{content:"\2713";}
.lb-lh-menu .dc-mi[aria-checked="true"]{
  background:color-mix(in srgb,var(--cyan) 18%,transparent);}
.lb-sp{display:inline-flex;align-items:center;gap:5px;
  font:12px var(--sans);white-space:nowrap;}
/* Before over After, with their menus in one column */
.rbn-lbspace .lb-sp{justify-content:space-between;min-width:8.6em;}
.lb-menu .dc-mi{display:block;width:100%;text-align:left;}
/* A word style's padding and fill (from the deck's stylesheet, "html
   [data-cs=...]") apply to the text, not the menu row, so the row needs its
   own padding. */
.lb-menu .dc-mi.lb-csm{padding:8px 11px!important;
  background-color:transparent!important;}
.lb-menu .dc-mi.lb-csm:hover{
  background:color-mix(in srgb,var(--accent) 15%,transparent)!important;}
#lb-margins-menu{min-width:min(400px,calc(100vw - 24px));}
/* The date formats and the symbols grid */
.lb-insw{color:var(--chrome-ink-2);font-size:11px;margin-left:6px;}
.lb-symmenu{min-width:0;width:342px;}
.lb-symgrid{display:grid;grid-template-columns:repeat(10,30px);gap:3px;
  padding:2px 6px 8px;}
.lb-sym{width:30px;height:30px;padding:0;border-radius:6px;
  border:1px solid var(--chrome-line,#ffffff22);background:#ffffff08;
  color:var(--chrome-ink);font:16px/1 var(--sans);cursor:pointer;}
.lb-sym:hover{border-color:var(--accent,var(--cyan));
  background:color-mix(in srgb,var(--accent) 16%,transparent);}
.rbn-sel{font:12px var(--sans);height:26px;border-radius:6px;
  border:1px solid var(--line,#2a3a48);background:var(--chrome-1,#16222d);
  color:inherit;padding:0 6px;}
.lb-st[aria-pressed="true"],.lb-wrap[aria-pressed="true"],
#lb-portrait[aria-pressed="true"],#lb-landscape[aria-pressed="true"],
#lb-headings[aria-pressed="true"],#sb-pan[aria-pressed="true"]{
  background:color-mix(in srgb,var(--cyan) 22%,transparent);
  border-color:color-mix(in srgb,var(--cyan) 60%,transparent);}
/* The tile for a custom size */
.page-ico.page-ico-own{width:26px;height:18px;border-style:dashed;}
/* the sizes and Every slide on one row at 1300 px */
.rbn-shelf .page-tile{padding-left:5px!important;padding-right:5px!important;
  min-width:0;gap:4px;font-size:10.5px;}
.rbn-shelf .page-strip{gap:3px;}
.rbn-shelf .page-tile .page-ico{transform:scale(.8);margin:0 -2px;}
/* ---- Another file's page, shown for reference (57z-tab-look.js) ---- */
.tab-look-slides,.tab-look-board,.tab-look-notes,.tab-look-file,
.tab-look-project{background:var(--chrome-0);color:var(--chrome-ink);}
.tab-look-slides{display:flex;flex-direction:column;align-items:center;
  gap:18px;padding:18px 0;box-sizing:border-box;}
.lk-pic{position:relative;flex:none;overflow:hidden;
  box-shadow:0 6px 30px #00000055;}
.lk-pic>.print-page,.lk-board>.print-page{position:absolute;left:0;top:0;}
.lk-pic .slide{border:none;border-radius:0;box-shadow:none;}
.tab-look-board{overflow:hidden;}
.lk-board{position:absolute;}
.lk-board>.print-page{background:transparent!important;}
.lk-board>.print-page,.lk-board .slide,.lk-board .annot-layer{
  overflow:visible!important;}
.lk-board .slide{background:transparent!important;border:none;
  border-radius:0;box-shadow:none;}
.tab-look-notes>.deck-notes{position:absolute;inset:0;}
.tab-look-file>.deck-pfile{position:absolute;inset:0;width:auto;height:auto;}
.lk-project{max-width:1100px;margin:0 auto;padding:26px 22px;}
.lk-project-t{font:600 18px var(--sans);margin-bottom:6px;}
/* ---- a starboard: the stage is a plane (57i-starboard.js) ---- */
/* its ground and its grid are the stage's own background (sbGrid) */
.deck.kind-starboard .deck-stage{position:relative;overflow:hidden!important;
  display:block!important;padding:0!important;touch-action:none;}
.deck.kind-starboard .deck-stage>.slide{background:transparent!important;
  box-shadow:none!important;border:0!important;border-radius:0!important;
  animation:none!important;overflow:visible;}
.deck.kind-starboard .deck-stage .annot-layer{overflow:visible;}
/* A starboard has no page edge (its frame is only a starting point), so
   nothing on it counts as stray off the page (.an-offpage) */
.deck.kind-starboard.editing .an-item.an-offpage{outline:none;}
.deck.kind-starboard.sb-pan .deck-stage,
.deck.kind-starboard.sb-space .deck-stage{cursor:grab;}
.deck.kind-starboard.sb-panning .deck-stage,
.deck.kind-starboard.sb-panning .deck-stage *{cursor:grabbing!important;}
.deck.kind-starboard:not(.editing) .deck-stage{cursor:grab;}
/* The starting point is a star, one size on screen at every zoom; hidden
   under an object laid over it */
.sb-star{position:absolute;z-index:7;display:inline-flex;color:var(--cyan);
  transform:translate(-50%,-50%);}
.sb-star.sb-star-tl{transform:none;}
.sb-star .bic{width:var(--sb-star,24px);height:var(--sb-star,24px);}
.deck.kind-starboard.editing .sb-star{cursor:move;}
.deck.kind-starboard:not(.editing) .sb-star{pointer-events:none;}
.deck.sb-pan .sb-star,.deck.sb-space .sb-star{cursor:inherit!important;}
.sb-star.sb-star-under{visibility:hidden;pointer-events:none;}
.deck.sb-star-drag,.deck.sb-star-drag *{cursor:move!important;}
/* The Grid and Star menus (Home > Look) */
.bg-menu .sb-tick{flex:0 0 100%;display:flex;align-items:center;gap:7px;
  font:12px var(--sans);color:var(--chrome-ink);padding:4px 0;cursor:pointer;}
.bg-menu .sb-range{flex:0 0 100%;display:flex;align-items:center;gap:9px;
  font:12px var(--sans);color:var(--chrome-ink-2);}
.bg-menu .sb-range input{flex:1;min-width:0;accent-color:var(--accent);}
.bg-menu .sb-range span{flex:0 0 38px;text-align:right;}
.bg-menu .sb-well{flex:0 0 100%;display:flex;align-items:center;
  justify-content:space-between;gap:9px;font:12px var(--sans);
  color:var(--chrome-ink-2);padding-top:4px;}
.bg-menu .sb-col{width:46px;height:24px;padding:1px;border-radius:6px;
  border:1px solid var(--chrome-line);background:var(--input-bg);cursor:pointer;}
.bg-menu .sb-foot{flex:0 0 100%;margin-top:6px;}
#sb-bg{width:auto;padding-left:6px;padding-right:6px;}
#sb-bg>span{white-space:nowrap;}
/* ---- the group picker (57g groupAddDialog) ---- */
.grp-dlg{position:fixed;inset:0;z-index:420;display:flex;
  align-items:center;justify-content:center;background:rgba(5,10,16,.55);}
.grp-dlg .deck-dlg-box{width:min(560px,92vw);max-height:80vh;display:flex;
  flex-direction:column;gap:10px;padding:18px 20px;border-radius:12px;
  background:var(--chrome-1,#16222d);color:var(--ink,#dfe7ee);
  border:1px solid var(--line,#2a3a48);box-shadow:0 20px 60px rgba(0,0,0,.45);}
body.light .grp-dlg .deck-dlg-box{background:#fff;color:#1b2733;
  border-color:#d5dde5;}
.grp-dlg h3{margin:0;font:600 16px var(--sans);}
.grp-say{margin:0;font:13px/1.45 var(--sans);opacity:.8;}
.grp-list{overflow-y:auto;min-height:60px;border:1px solid var(--line,#2a3a48);
  border-radius:8px;padding:4px;}
.grp-row{display:flex;align-items:center;gap:8px;padding:6px 8px;
  border-radius:6px;cursor:pointer;font:13px var(--sans);}
.grp-row:hover{background:color-mix(in srgb,var(--cyan) 12%,transparent);}
.grp-ic .bic{width:15px;height:15px;}
.grp-nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.grp-wd{opacity:.6;font-size:12px;white-space:nowrap;}
.grp-none{margin:8px;font:13px var(--sans);opacity:.7;}
.grp-dlg .deck-dlg-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.grp-sp{flex:1;}
/* nothing to list down the side of a board, nor of a logbook whose
   Headings are put away: the column goes and the page has the room */
.deck.editing.kind-starboard>.deck-create,
.deck.editing.kind-logbook:not(.lb-nav-on)>.deck-create{display:none!important;}
/* a board's show has no slides to step through */
.deck.kind-starboard #deck-prev,.deck.kind-starboard #deck-next,
.deck.kind-starboard #deck-count{display:none!important;}
/* ---- logbook ribbon (57g-kinds.js KIND_TABS) -----------------------
   Text and paragraph tools lead, with clipboard actions at the end.
   The tabs and the groups are flex
   items through display:contents wrappers, so `order` places them
   without moving a node (a ribbon layout's snapshot holds the markup's
   order, 07-ribbon-layouts.js). */
.deck.kind-logbook #rbn-tab-home{order:1;}
.deck.kind-logbook #rbn-tab-images{order:2;}
.deck.kind-logbook #rbn-tab-design{order:3;}
.deck.kind-logbook #rbn-tab-lblayout{order:4;}
.deck.kind-logbook #rbn-tab-lbrefs{order:5;}
.deck.kind-logbook #rbn-tab-lbreview{order:6;}
.deck.kind-logbook #rbn-tab-view{order:7;}
.deck.kind-logbook #rbn-tab-lbtable{order:8;}
.deck.kind-logbook #rbn-tab-object{order:8;}
.deck.kind-logbook #rbn-tab-style{order:9;}
.deck.kind-logbook .rbn-tab{order:10;}
.deck.kind-logbook #rbn-tabs .rbn-tabset~*{order:20;}
.deck.kind-logbook #edit-tools .rbn-grp{order:10;}
.deck:is(.kind-logbook,.kind-notes) #edit-tools .rbn-fontgrp{order:1;}
/* Styles come before Paragraph */
.deck:is(.kind-logbook,.kind-notes) #edit-tools .rbn-lbstyles{order:2;}
.deck:is(.kind-logbook,.kind-notes) #edit-tools .rbn-paragrp{order:3;}
.deck:is(.kind-logbook,.kind-notes) #edit-tools .rbn-clip{order:4;}
.deck:is(.kind-logbook,.kind-notes) .rbn-clip .dbtn.rbn-sm{padding-left:5px;
  padding-right:5px;font-size:11px;}
.deck.kind-logbook #edit-tools .rbn-lbtbl{order:0;}
.deck.kind-logbook #edit-tools .rbn-lbins{order:15;}
.deck.kind-logbook #edit-tools .rbn-vguides{order:8;}
.deck.kind-logbook #edit-tools .rbn-lbnav{order:9;}
.deck.kind-logbook #edit-tools .rbn-lbpage{order:8;}
.deck.kind-logbook #edit-tools .rbn-pagesize{order:9;}
.deck.kind-logbook #edit-tools .rbn-typing{order:11;}
.deck.kind-logbook #edit-tools .rbn-vers{order:12;}
.deck.kind-logbook #edit-tools .rbn-handouts{order:13;}
/* On a narrow row Effects takes the place of the recent highlight colours
   (Highlight has them), so no group folds for it */
.deck.kind-logbook.ercw1 #edit-tools #fmt-hlquick{display:none;}
.deck.kind-logbook.ercw1 #edit-tools #lb-tfxwrap{grid-row:auto;
  align-self:auto;}
.deck.kind-logbook.ercw1 #edit-tools #lb-tfx{width:100%;
  justify-content:center;}
.deck.kind-logbook #rbn-shelf{order:30;}
/* a logbook is not presented: no Present beside Save; and it has no
   Layers, speaker notes or Links pane down the right */
.deck.kind-logbook .qat-playgrp,.deck.kind-logbook .pane-tabs{
  display:none!important;}
/* the running text is the page, not an object: no Object tab for it */
.deck.kind-logbook.lb-flowsel #rbn-tab-object{display:none!important;}
/* The styles are a gallery, as in Word: each name is set in its own style
   on a tile in the page's colour and ink (the theme's), in two rows. */
.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles>.rbn-row{display:grid;
  grid-template-rows:repeat(2,auto);grid-auto-flow:column;gap:4px;}
.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st{background:var(--page-bg,#fff);
  color:var(--page-ink,#1f2328);
  border:1px solid color-mix(in srgb,var(--page-ink,#1f2328) 28%,transparent);
  border-radius:4px;min-width:84px;height:26px;
  justify-content:flex-start;padding:0 8px;font:12.5px Calibri,Carlito,
  var(--sans);overflow:hidden;white-space:nowrap;}
.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st i,
.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st svg{display:none;}
.deck:is(.kind-logbook,.kind-notes) #lb-stmorewrap{grid-row:span 2;display:flex;
  align-self:stretch;}
.deck:is(.kind-logbook,.kind-notes) #lb-stmore{height:100%;}
/* fits a 1300px window: four styles and More */
@media (max-width:1499px){
  .deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st[data-st="subtitle"],
  .deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st[data-st="h3"],
  .deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st[data-st="quote"],
  .deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st[data-st="pre"]{display:none;}
}
.lb-stm[data-st="h1"],.lb-stm[data-st="h2"],.lb-stm[data-st="h3"]{
  color:var(--cyan);}
.lb-stm[data-st="title"]{font-size:15px;}
.lb-stm[data-st="quote"]{font-style:italic;}
.lb-stm[data-st="pre"],.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st[data-st="pre"]{
  font-family:var(--mono);font-weight:400;}
.lb-stm[aria-pressed="true"]{
  background:color-mix(in srgb,var(--cyan) 18%,transparent);
  outline:1px solid var(--cyan);}
.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st:hover{
  border-color:color-mix(in srgb,var(--page-ink,#1f2328) 55%,transparent);
  background:color-mix(in srgb,var(--page-ink,#1f2328) 7%,var(--page-bg,#fff));}
.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st[aria-pressed="true"]{
  background:var(--page-bg,#fff);border-color:var(--cyan);
  box-shadow:0 0 0 1px var(--cyan) inset;}
.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st[data-st="title"]{font-size:17px;
  letter-spacing:-.2px;}
/* (as the page sets them, .an-p[data-st]: bold headings, a quieter
   subtitle) */
.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st[data-st="subtitle"]{font-weight:400;}
.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st[data-st="h1"]{font-size:15px;
  font-weight:700;}
.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st[data-st="h2"]{font-size:13.5px;
  font-weight:700;}
.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st[data-st="h3"]{font-weight:700;}
.deck:is(.kind-logbook,.kind-notes) .rbn-lbstyles .lb-st[data-st="quote"]{font-style:italic;}
/* ---- Text flowing around a picture on both sides (57t-logbook-both.js) ----
   An empty box as wide as the picture sits in the line, and a paragraph
   holding one is set ragged, since a centred or justified line would move
   the gap off the picture. */
lb-gap{display:inline-block;height:0;vertical-align:baseline;
  pointer-events:none;user-select:none;}
.lb-tx p[data-gapp]{text-align:left!important;}

/* ---- Project pages (57w-projects.js) ----
   A picture, a references file, a text file or All images, shown in place
   of the slide. */
body:not(.proj-on) #et-pimage{display:none!important;}
.deck.pfp-open #edit-tools .rbn-grp{opacity:.38;pointer-events:none;
  filter:grayscale(1);}
/* References > Sources concerns the project's references files, so it stays
   active on their pages */
.deck.pfp-open #edit-tools .rbn-grp.rbn-refsrc{opacity:1;pointer-events:auto;
  filter:none;}
.deck-parts.deck-pfile{z-index:126;}
/* A page that is not a presentation (no file open, a picture, All images, a
   references file) shows no slides down the side */
.deck.pfp-open .dc-film{visibility:hidden;}
/* No file open shows File control rather than one of these pages, and the
   presentation loaded under it shows no slides either */
.deck.pfp-empty .dc-film{visibility:hidden;}
.deck-pfile[hidden]{display:none;}
.pfp-col{max-width:1100px;}
.pfp-head{gap:12px;}
.pfp-ic{display:inline-flex;color:var(--accent);}
.pfp-ic .bic{width:20px;height:20px;}
.pfp-tt{display:flex;flex-direction:column;min-width:0;gap:2px;}
.pfp-tt .ovw-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pfp-sub{font-size:12px;color:var(--chrome-ink-2);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.pfp-acts{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 14px;}
.pfp-acts .dbtn.warn{color:var(--danger,#ff6b57);}
.pfp-hint{font-size:13px;line-height:1.5;color:var(--chrome-ink-2);
  max-width:640px;}
.pfp-pic{display:flex;justify-content:center;align-items:center;
  padding:16px;border-radius:10px;margin-bottom:16px;
  background:repeating-conic-gradient(color-mix(in srgb,var(--chrome-ink) 7%,
    transparent) 0 25%,transparent 0 50%) 0 0/16px 16px;
  border:1px solid var(--chrome-line);}
.pfp-pic img{max-width:100%;max-height:min(58vh,640px);object-fit:contain;}
.pfp-uses{display:flex;flex-wrap:wrap;gap:4px;}
.pfp-use{font:inherit;font-size:12px;padding:2px 8px;border-radius:10px;
  border:1px solid var(--chrome-line);background:var(--btn-bg,transparent);
  color:var(--chrome-ink);cursor:pointer;white-space:nowrap;}
.pfp-use:hover,.pfp-use:focus-visible{border-color:var(--accent);outline:none;}
.pfp-table-wrap{overflow-x:auto;}
.pfp-table{width:100%;border-collapse:collapse;font-size:12.5px;}
.pfp-table th{text-align:left;font-weight:600;font-size:11px;
  color:var(--chrome-ink-2);padding:6px 8px;
  border-bottom:1px solid var(--chrome-line);white-space:nowrap;}
.pfp-table td{padding:8px;border-bottom:1px solid var(--chrome-line);
  vertical-align:middle;}
.pfp-thumb-c{width:88px;}
.pfp-thumb{display:block;width:80px;height:56px;object-fit:contain;
  border-radius:4px;background:color-mix(in srgb,var(--chrome-ink) 6%,transparent);}
.pfp-size{white-space:pre-line;color:var(--chrome-ink-2);
  font-family:var(--mono);font-size:11px;min-width:96px;}
.pfp-used{min-width:160px;}
.pfp-path{font-family:var(--mono);font-size:11.5px;word-break:break-all;
  min-width:120px;}
.pfp-pathb{font:inherit;background:none;border:none;padding:0;
  color:var(--accent);cursor:pointer;text-align:left;}
.pfp-pathb:hover{text-decoration:underline;}
.pfp-in{color:var(--chrome-ink-2);}
.pfp-act{white-space:nowrap;text-align:right;}
.pfp-act .dbtn+.dbtn{margin-left:4px;}
.pfp-bib{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;align-items:start;}
@media (max-width:900px){.pfp-bib{grid-template-columns:1fr;}}
.pfp-src{width:100%;min-height:420px;box-sizing:border-box;resize:vertical;
  font-family:var(--mono);font-size:12px;line-height:1.5;padding:10px;
  border-radius:8px;border:1px solid var(--border-strong,var(--chrome-line));
  background:var(--input-bg,transparent);color:var(--chrome-ink);tab-size:2;}
.pfp-src:focus{outline:none;border-color:var(--accent);}
/* Where a project file came from (57y projSrcLine): one line under the
   page's buttons, with its own buttons at the end */
.pfp-from{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;
  margin:-4px 0 14px;padding:7px 10px;border-radius:8px;font-size:12.5px;
  border:1px solid var(--chrome-line);color:var(--chrome-ink-2);
  background:color-mix(in srgb,var(--accent) 6%,transparent);}
.pfp-from-ic{display:inline-flex;color:var(--accent);}
.pfp-from-ic .bic{width:15px;height:15px;}
.pfp-from-w{color:var(--chrome-ink);min-width:0;overflow-wrap:anywhere;}
.pfp-from-acts{display:inline-flex;flex-wrap:wrap;gap:6px;margin-left:auto;}
.pfp-bib-src .pfp-from{margin:0 0 8px;}
.pfp-src.pfp-ro{opacity:.85;cursor:default;
  background:color-mix(in srgb,var(--chrome-ink) 4%,transparent);}
.pfp-srcst{display:inline-block;font-size:10.5px;line-height:1.5;
  padding:0 7px;border-radius:9px;white-space:nowrap;
  border:1px solid var(--chrome-line);color:var(--chrome-ink-2);}
.pfp-st-changed{border-color:color-mix(in srgb,var(--accent) 70%,transparent);
  color:var(--chrome-ink);
  background:color-mix(in srgb,var(--accent) 18%,transparent);}
.pfp-st-gone,.pfp-st-unreadable,.pfp-st-missing{
  border-color:color-mix(in srgb,var(--danger,#ff6b57) 60%,transparent);
  color:var(--danger,#ff6b57);}
.pfp-from-cell{display:block;margin-top:3px;font-family:var(--sans);
  font-size:11.5px;color:var(--chrome-ink-2);}
.pfp-from-cell .pfp-src-b{display:flex;width:max-content;margin-top:4px;}
/* All images, last column: buttons stacked, since side by side they ran
   past the page's edge at about 1320px */
#pfp-images .pfp-act .dbtn{display:flex;width:max-content;margin-left:auto;}
#pfp-images .pfp-act .dbtn+.dbtn{margin-top:4px;}
.pfp-dirsel{font:inherit;font-size:12px;padding:3px 6px;border-radius:6px;
  border:1px solid var(--chrome-line);background:var(--input-bg,transparent);
  color:var(--chrome-ink);max-width:220px;}
/* a file dragged from the desktop over a project's page or File control:
   where it would land; an empty folder's zone shows to be dropped on */
.deck-pfile.pfp-dropping{outline:2px dashed var(--accent);outline-offset:-6px;}
body.pj-dropping .pjt-dropzone{display:block;}
.fdp-files .fdp-src{display:flex;flex-wrap:wrap;align-items:center;gap:4px;
  font-size:11.5px;}
.fdp-src-w{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  max-width:100%;}
/* Figures from notebooks (57y projNbPick) */
.pjt-nbpick .ovw-head{flex-wrap:wrap;gap:8px;}
.pjt-nbfind{max-width:220px;}
.pjt-nbbody{flex:1;overflow:auto;padding:4px 0 16px;}
.pjt-nbsec{padding:10px 16px 0;}
.pjt-nbsec[hidden]{display:none;}
.pjt-nbhd{display:flex;align-items:center;gap:8px;font-weight:600;
  font-size:13px;margin:4px 0;}
.pjt-nbsub{font-size:11.5px;color:var(--chrome-ink-2);margin:10px 0 2px;}
.pjt-nbpick .pjt-nbbody .pjt-grid{flex:none;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;
  align-content:start;padding:6px 0;}
.pjt-nbtile[hidden]{display:none;}
.pjt-nbtile.is-added{border-color:color-mix(in srgb,var(--accent) 70%,transparent);}
.pjt-nbtile .pjt-tile-in{white-space:normal;}
.pjt-plotly{display:inline-flex;align-items:center;gap:6px;font-size:12px;
  color:var(--chrome-ink-2);}
.pjt-plotly .bic{width:22px;height:22px;}
.pfp-text{min-height:60vh;font-family:var(--sans);font-size:13.5px;}
.pfp-ref{display:flex;align-items:flex-start;gap:10px;padding:8px 0;
  border-bottom:1px solid var(--chrome-line);}
.pfp-ref-t{flex:1;min-width:0;font-size:12.5px;line-height:1.45;}
.pfp-key{font-family:var(--mono);font-size:11.5px;color:var(--accent);
  margin-right:6px;}
.pfp-cited{font-size:10px;padding:0 6px;border-radius:8px;margin-right:6px;
  background:color-mix(in srgb,var(--accent) 18%,transparent);}
.pfp-ref-w{color:var(--chrome-ink);}
.ct-from{flex:none;font-family:var(--mono);font-size:9.5px;
  color:var(--chrome-ink-3);margin-left:4px;}
/* Insert > Project image: the project's pictures to pick from */
.pjt-pick .pjt-grid{flex:1;overflow:auto;padding:16px;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;
  align-content:start;}
.pjt-tile{display:flex;flex-direction:column;gap:4px;padding:8px;
  border-radius:8px;border:1px solid var(--chrome-line);
  background:var(--chrome-1,transparent);color:var(--chrome-ink);
  font:inherit;font-size:12px;text-align:left;cursor:pointer;}
.pjt-tile:hover,.pjt-tile:focus-visible{border-color:var(--accent);outline:none;}
.pjt-thumb{display:flex;align-items:center;justify-content:center;height:100px;
  border-radius:5px;background:color-mix(in srgb,var(--chrome-ink) 6%,transparent);}
.pjt-thumb img{max-width:100%;max-height:100px;object-fit:contain;}
.pjt-tile-nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pjt-tile-in{font-family:var(--mono);font-size:10px;color:var(--chrome-ink-3);}
.pjt-pick .pfp-hint{grid-column:1/-1;}
/* A file being edited in another window of this browser: a plain bar over
   the top of the slide (57x-windows winBar, placed from the stage) with
   Edit here. Above the slide's cover (8) and the stage's chrome, under the
   deck's menus (240) and questions (300). */
.win-bar{position:fixed;z-index:130;transform:translateX(-50%);
  display:flex;align-items:center;gap:10px;padding:6px 8px 6px 12px;
  border-radius:8px;border:1px solid var(--chrome-line);
  background:var(--chrome-1,#1d2630);color:var(--chrome-ink);
  font-size:12px;line-height:1.35;box-shadow:0 4px 14px rgba(0,0,0,.22);
  width:max-content;}
.win-bar[hidden]{display:none;}
.win-bar-t{min-width:0;}
.win-bar .win-bar-take{flex:none;white-space:nowrap;}
/* ...and, as under File control, the ribbon's editing tabs and the
   strip's Add slide rest there; View and Present still work */
.deck.win-ro #edit-tools .rbn-grp:not([data-tab="present"]):not([data-tab="view"]),
.deck.win-ro .film-adds{opacity:.38;pointer-events:none;filter:grayscale(1);}
.deck:not(.editing) .win-bar{display:none;}
/* (design pass 47: a notes page read only here has no Take a note) */
.deck.win-ro #deck-notes .jn-take{display:none!important;}

/* Project details and image library. */
.fdp-files>.pjt-row{min-height:36px;}
.pfp-uses{flex-direction:column;align-items:flex-start;}
.pfp-thumb-c{width:190px;}
.pfp-thumb{width:180px;height:120px;}
.deck.pfp-images-open #edit-tools{display:none!important;}
.deck.kind-logbook .rbn-lbstyles .lb-st[aria-pressed="true"]{
  color:var(--page-ink,#1f2328);border-color:var(--page-ink,#1f2328);
  box-shadow:0 0 0 1px var(--page-ink,#1f2328) inset;}

/* Close controls are separate buttons, so both actions work with a keyboard. */
.sht-tab-wrap{display:inline-flex;align-items:stretch;flex:none;min-width:0;
  position:relative;}
.sht-tab-wrap[hidden],.pane-tab-wrap[hidden]{display:none;}
.sht-tab-wrap:has(>.sht-close) .sht-tab{padding-right:30px;}
.sht-close{position:absolute;right:5px;top:50%;transform:translateY(-50%);
  border:0;background:transparent;color:var(--chrome-ink-2);font-size:18px;
  cursor:pointer;border-radius:4px;line-height:1;}
.sht-close:hover,.sht-close:focus-visible{background:var(--surface-active);
  color:var(--chrome-ink);}
.pane-tab-wrap{position:relative;}
.pane-tab-wrap .pane-tab{padding-top:23px;}
.pane-tab-close{position:absolute;top:3px;left:6px;width:22px;height:20px;
  border:0;border-radius:4px;background:transparent;color:var(--chrome-ink-2);
  font-size:17px;cursor:pointer;}
.pane-tab-close:hover,.pane-tab-close:focus-visible{background:var(--surface-active);}
.side-pane .selpane-h{flex-wrap:nowrap;}
.side-pane .pane-head-actions{flex:0 0 auto;min-width:auto;flex-wrap:nowrap;}
.pane-footer{display:flex;gap:4px;padding:8px;border-top:1px solid var(--chrome-line);
  flex-wrap:wrap;margin-top:auto;}

/* The project name is the primary door to its files. */
.deck-sheets .sht-contents{min-height:42px;padding:7px 14px;
  font-weight:600;border-color:var(--accent);}
#fmt-highlight{display:none;}
.deck.kind-logbook #fmt-txcolwrap:has(>#fmt-txcol-btn:not([hidden])) ~ #fmt-highlightwrap #fmt-highlight{
  display:inline-flex;}

.film-panel-actions{display:flex;gap:4px;padding:5px 8px;}

/* The Font group's columns come from its order, so a logbook needs no hand
   placement. Its Paint style is in Clipboard, beside Cut and Copy. */
#lb-paint{display:none;}
.deck.kind-logbook #hm-copylook{display:none!important;}
.deck.kind-logbook .rbn-clip #lb-paint{display:flex;}

/* Compact project rows and a clear division before the open files. */
.sht-tabs.sht-project-tabs{flex:0 1 auto;}
.deck-sheets .sht-contents{position:relative;margin-right:18px;font-size:13px;}
.deck-sheets .sht-contents::after{content:"";position:absolute;right:-12px;
  top:8px;bottom:8px;border-right:1px solid var(--chrome-line);}
.sht-project-tabs .sht-tab{font-size:13px;font-weight:600;}
/* With little room (shtFit), the spacing shrinks before the tab does */
.deck-sheets.sht-tight{gap:3px;padding:0 4px;}
.sht-tight .sht-contents{padding:7px 8px;margin-right:0;}
.sht-tight .sht-contents::after{display:none;}
.sht-tight #sht-add,.sht-tight .sht-more{padding:3px 5px;}
.sht-tight .sht-more .bic{display:none;}
.sht-tight .deck-zoombar{margin-left:0;}
.sht-tight .deck-zoombar .zb-hist{margin-right:2px;}
.sht-tight .sht-zoom .deck-zoombar .dbtn.rbn-ico{width:22px;}
.sht-tight .sht-zoom .deck-zoombar .dbtn.rbn-sm{padding:0 4px;}
.sht-tight .sht-tab{padding-left:8px;gap:5px;}
.sht-tight .sht-tab-wrap:has(>.sht-close) .sht-tab{padding-right:22px;}
.sht-tight .sht-close{right:2px;}
.fdp-files{gap:0;}
.fdp-files .ct-row{border-radius:0;border:0;border-bottom:1px solid var(--chrome-line);
  background:transparent;}
.fdp-files .ct-hd{min-height:42px;padding-top:3px;padding-bottom:3px;}
.fdp-files .ct-ex{width:24px;min-height:24px;border:0;font-size:16px;}
.fdp-files .ct-c-opt{flex-direction:row;align-items:center;}
.fdp-files .fdp-how{flex-direction:row;align-items:center;gap:8px;}
.fdp-unit{display:inline;margin:0 0 0 4px;}
.fdp-files .ct-go .bic{width:18px;height:18px;}
.fdp-files .ct-hd,.fdp-cols{grid-template-columns:18px 24px minmax(140px,1fr)
  96px 92px 62px 190px 108px;}
#fmt-highlightwrap,#fmt-hlquick{display:none;}
.deck.kind-logbook .rbn-fontgrp>.rbn-row>#fmt-highlightwrap:not([hidden]),
.deck.kind-logbook .rbn-fontgrp>.rbn-row>#fmt-hlquick:not([hidden]){
  display:inline-flex;}
.deck.kind-logbook #fmt-txcol-btn,.deck.kind-logbook #fmt-highlight{
  min-width:120px;justify-content:center;white-space:nowrap;}

@container (max-width:900px){
  .fdp-files .ct-hd,.fdp-cols{grid-template-columns:18px 24px
    minmax(120px,1fr) 92px 62px 180px 108px;}}
@container (max-width:720px){
  .fdp-files .ct-hd,.fdp-cols{grid-template-columns:18px 24px
    minmax(0,1fr) 92px 62px;}}

.fdp-rename{margin-top:4px;}

.fdp-files .ct-go,.fdp-files .pjt-row:not(.pjt-gen){cursor:grab;}
.fdp-files .pjt-row.fdp-drop-in{outline:2px solid var(--accent);}
/* A single tree column keeps every expander beside the item it controls. */
.fdp-files .ct-hd,.fdp-cols{grid-template-columns:minmax(180px,1fr)
  96px 92px 62px 190px 108px;column-gap:12px;padding-left:12px;}
.fdp-cols>.ct-c-name{grid-column:auto;}
.fdp-files .ct-c-name{position:relative;align-self:stretch;gap:6px;}
.fdp-files .ct-go{padding:2px 0;}
.fdp-files>.pjt-row{min-height:42px;box-sizing:border-box;font-size:13px;
  gap:6px;border-radius:0;border-bottom:1px solid var(--chrome-line);}
.fdp-files>.pjt-dir{background:color-mix(in srgb,var(--accent) 5%,transparent);}
.fdp-files>.pjt-row:hover,.fdp-files .ct-row:hover{background:var(--surface-hover);}
.fdp-files>.pjt-row .nm{font-weight:600;}
.fdp-files>.pjt-row .rp-chev{width:24px;font-size:14px;}
.fdp-files>.pjt-row .rp-ic .bic{width:18px;height:18px;}
.fdp-files .ct-c-name[style*="--fdp-depth"]::before,
.fdp-files>.pjt-row[style*="--fdp-depth"]::before{
  content:"";position:absolute;top:0;bottom:0;width:1px;
  background:var(--chrome-line);pointer-events:none;}
.fdp-files .ct-c-name[style*="--fdp-depth"]::before{
  left:calc((var(--fdp-depth) - 1)*26px + 12px);}
.fdp-files>.pjt-row[style*="--fdp-depth"]::before{
  left:calc((var(--fdp-depth) - 1)*26px + 24px);}
@container (max-width:900px){
  .fdp-files .ct-hd,.fdp-cols{grid-template-columns:minmax(150px,1fr)
    80px 78px 58px 170px 100px;}
  .fdp-files .ct-c-kind,.fdp-cols .ct-c-kind{display:flex;}}
@container (max-width:720px){
  .fdp-files .ct-hd{grid-template-columns:minmax(0,1fr) 92px;row-gap:6px;}
  .fdp-files .ct-c-name,.fdp-files .ct-c-where,.fdp-files .ct-c-opt{
    grid-column:1/-1;}
  .fdp-files .ct-c-where{display:flex;}
  .fdp-cols{display:none;}}

.deck.fdp-open #edit-tools .rbn-grp[data-tab="folder"]{
  border-right-color:var(--chrome-line);}
.fc-new-icon{display:inline-flex;align-items:center;gap:2px;}
.fx-tile .fc-new-icon .bic:first-child{width:14px;height:14px;}

.fdp-head .fdp-ic{align-self:flex-start;}

.fx-tile#fc-copyall{min-width:112px;white-space:nowrap;}

/* File control: one quiet status column and a compact, optional settings area. */
.fdp-total{font-weight:600;color:var(--chrome-ink);}
.fdp-files .ct-hd,.fdp-files>.fdp-tree-file,.fdp-cols{
  grid-template-columns:minmax(140px,1fr)
  70px 78px 82px 75px 55px 190px 100px;}
.fdp-files .ct-ex{width:auto;min-height:26px;padding:0 6px;border:1px solid var(--chrome-line);
  background:var(--chrome-1);font-size:11px;white-space:nowrap;}
.fdp-files .ct-ex:hover{background:var(--surface-hover);}
.fdp-images .ct-c-name{padding-left:30px;}
.fdp-files .fdp-row.fdp-drop-in{outline:2px solid var(--accent);outline-offset:-2px;}
.pjt-dropzone{display:none;min-height:30px;box-sizing:border-box;
  padding:6px 12px 6px 42px;color:var(--chrome-ink-2);font-size:12px;
  border-bottom:1px solid var(--chrome-line);}
.deck.fdp-moving-files .fdp-files .pjt-dropzone{display:block;}
.pjt-dropzone.fdp-drop-in{background:color-mix(in srgb,var(--accent) 15%,transparent);
  outline:2px solid var(--accent);outline-offset:-2px;}
.fdp-files>.fdp-tree-file{display:grid;column-gap:12px;padding-right:12px;}
.fdp-tree-main{display:flex;align-items:center;gap:6px;min-width:0;
  position:relative;align-self:stretch;}
.fdp-tree-main[style*="--fdp-depth"]::before{content:"";position:absolute;
  top:0;bottom:0;width:1px;background:var(--chrome-line);
  left:calc((var(--fdp-depth) - 1)*26px + 12px);pointer-events:none;}
.fdp-open-cell{display:flex;align-items:center;gap:5px;min-width:0;}
.fdp-open-label{font-size:11px;font-weight:600;color:var(--success);}
.fdp-open-close{border:0;border-radius:4px;background:transparent;
  color:var(--chrome-ink-2);font:16px/1 var(--sans);cursor:pointer;padding:3px 5px;}
.fdp-open-close:hover{color:var(--chrome-ink);background:var(--surface-hover);}
.fdp-open-close:focus-visible{outline:2px solid var(--accent);}
.fdp-images .ct-go{cursor:pointer;}
.fdp-image-preview{display:flex;align-items:center;gap:8px;overflow-x:auto;
  padding:8px 12px 12px 42px;}
.fdp-image-preview img{flex:none;width:72px;height:54px;object-fit:contain;
  border:1px solid var(--chrome-line);border-radius:4px;background:var(--chrome-2);}
.fdp-settings-title{cursor:pointer;font-size:13px;font-weight:600;
  color:var(--chrome-ink);padding:8px 0;}
.fdp-set{margin-top:20px;border-top:1px solid var(--chrome-line);}
@container (max-width:900px){
  .fdp-files .ct-hd,.fdp-files>.fdp-tree-file,.fdp-cols{
    grid-template-columns:minmax(120px,1fr)
    66px 70px 76px 65px 50px 180px 90px;}}
@container (max-width:820px){
  .fdp-files .ct-hd,.fdp-files>.fdp-tree-file{
    grid-template-columns:minmax(100px,1fr) 65px 70px 150px 90px;row-gap:4px;}
  .fdp-files .fdp-open-cell{grid-column:3;grid-row:1;}
  .fdp-files .ct-c-name,.fdp-tree-main{grid-column:1/3;grid-row:1;}
  .fdp-files .ct-c-kind{grid-column:4;grid-row:1;}
  .fdp-files .ct-ex{grid-column:5;grid-row:1;}
  .fdp-files .ct-hd .ct-c-n{grid-column:1;grid-row:2;text-align:left;
    padding-left:30px;}
  .fdp-files .ct-hd .ct-c-sz{grid-column:2;grid-row:2;}
  .fdp-files .ct-hd .ct-c-where{grid-column:3/5;grid-row:2;display:flex;}
  .fdp-files .ct-hd .ct-c-opt{grid-column:5;grid-row:2;}
  .fdp-cols{display:none;}
  .fdp-tree-file .ct-c-preview{display:none;}
  .fdp-tree-file .ct-c-n,.fdp-tree-file .ct-c-sz,
  .fdp-tree-file .ct-c-where,.fdp-tree-file .ct-c-opt{display:none;}}
@container (max-width:560px){
  .fdp-files .ct-hd,.fdp-files>.fdp-tree-file{
    grid-template-columns:minmax(0,1fr) 92px;}
  .fdp-files .ct-c-name,.fdp-tree-main{grid-column:1;grid-row:1;}
  .fdp-files .fdp-open-cell{grid-column:2;grid-row:1;}
  .fdp-files .ct-c-kind{grid-column:1;grid-row:2;}
  .fdp-files .ct-ex{grid-column:2;grid-row:2;}
  .fdp-files .ct-hd .ct-c-n{grid-column:1;grid-row:3;}
  .fdp-files .ct-hd .ct-c-sz{grid-column:2;grid-row:3;}
  .fdp-files .ct-hd .ct-c-where{grid-column:1/-1;grid-row:4;}
  .fdp-files .ct-hd .ct-c-opt{grid-column:1/-1;grid-row:5;}}

/* Give file names more room on wide displays without squeezing small ones. */
@media (min-width:1600px){
  .deck{--sht-h:46px;}
  .sht-project-tabs .sht-tab{min-width:190px;max-width:340px;
    font-size:14px;padding-left:16px;}
}

/* ---- Word and paragraph styles on the style system ---- */
.dg-tsspec{border-radius:8px;padding:18px 22px;margin:10px 0 16px;
  font:20px/1.4 var(--sans);border:1px solid var(--chrome-line);}
.dg-tsspec p{margin:0;}
.dg-tsgrid{display:grid;grid-template-columns:max-content 1fr;gap:10px 14px;
  align-items:center;}
.dg-tslab{font:12px var(--sans);color:var(--chrome-ink-2);}
.dg-tsctl{display:flex;flex-wrap:wrap;align-items:center;gap:4px;}
/* a square of the colour: inline, it had no width and drew as a bar */
.dg-tscol .dg-swatch{display:inline-block;margin-right:6px;
  vertical-align:-1px;}
.deck-design .dg-tsctl select,.deck-design .dg-tssize{font:12px var(--sans);
  padding:4px 6px;border-radius:6px;color:var(--chrome-ink);
  background:var(--chrome-1,#0e1926);
  border:1px solid var(--chrome-line,#ffffff26);}
.dg-tswell{width:30px;height:26px;padding:0;border:none;background:none;}
.dg-tssize{width:64px;}
.dg-tsfoot{display:flex;align-items:center;gap:12px;margin-top:18px;}
.dg-tshow{font:12px var(--sans);color:var(--chrome-ink-2);}

/* In a project, the save menu names the project it saves */
.sv-proj{padding:4px 11px 8px;font-size:12.5px;font-weight:600;
  color:var(--chrome-ink);overflow-wrap:anywhere;}
.sv-proj[hidden]{display:none;}

/* ---- A logbook's right-click menu ----
   Sections down the menu, each a wrapping row of same-height buttons
   (57h lbMenu). */
.lb-ctx{display:flex;flex-direction:column;gap:2px;padding:8px 10px 6px;
  width:min(430px,calc(100vw - 24px));box-sizing:border-box;}
.lb-ctx-h{font:600 11px var(--sans);color:var(--chrome-ink-2);
  text-transform:none;margin:6px 2px 2px;}
.lb-ctx-h:first-child{margin-top:0;}
.lb-ctx-row{display:flex;flex-wrap:wrap;gap:4px;}
.lb-ctx-b{height:26px;padding:0 9px;font-size:12px;gap:5px;
  justify-content:flex-start;}
.lb-ctx-b .bic{flex:none;}
.lb-ctx-b[disabled]{opacity:.45;pointer-events:none;}
.lb-ctx-foot{font:11px var(--sans);color:var(--chrome-ink-3,#6f8293);
  margin-top:8px;padding-top:6px;border-top:1px solid var(--chrome-line);}
.mini-tb .mini-row[hidden]{display:none;}

/* ---- All images: a picture size, a pictures-only view and a picture's
   details in a pop-up (57w projImagesPage, projImgPop) ---- */
.pfp-imgview{align-items:center;flex-wrap:wrap;}
.pfp-vlab{font-size:12px;color:var(--chrome-ink-2);margin:0 2px 0 8px;}
.pfp-vlab:first-child{margin-left:0;}
.pfp-imgview .prt-b[aria-pressed="true"]{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 16%,transparent);}
.pfp-col[data-isz="m"] .pfp-thumb-c{width:310px;}
.pfp-col[data-isz="m"] .pfp-thumb{width:300px;height:200px;}
.pfp-col[data-isz="l"] .pfp-thumb-c{width:470px;}
.pfp-col[data-isz="l"] .pfp-thumb{width:460px;height:300px;}
.pfp-thumb{object-fit:contain;}
.pfp-grid{--pfp-t:170px;display:grid;gap:12px;margin-top:6px;
  grid-template-columns:repeat(auto-fill,minmax(var(--pfp-t),1fr));}
.pfp-col[data-isz="m"] .pfp-grid{--pfp-t:260px;}
.pfp-col[data-isz="l"] .pfp-grid{--pfp-t:400px;}
.pfp-tile{display:flex;flex-direction:column;gap:6px;padding:6px;
  border:1px solid var(--chrome-line);border-radius:8px;cursor:pointer;
  background:var(--chrome-0);color:var(--chrome-ink);font:12px var(--sans);
  text-align:left;}
.pfp-tile:hover,.pfp-tile:focus-visible{border-color:var(--accent);}
.pfp-tile img{width:100%;aspect-ratio:3/2;object-fit:contain;
  background:#0000000d;border-radius:4px;}
.pfp-tile-nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pfp-pop{position:fixed;inset:0;z-index:600;display:flex;align-items:center;
  justify-content:center;background:#00000066;padding:16px;}
.pfp-pop-card{display:flex;flex-direction:column;gap:10px;
  width:min(880px,100%);max-height:calc(100vh - 32px);overflow:auto;
  padding:14px 16px;border-radius:10px;background:var(--chrome-1,#0f1b26);
  color:var(--chrome-ink);box-shadow:0 12px 40px #0006;}
.pfp-pop-head{display:flex;align-items:center;gap:10px;}
.pfp-pop-t{font-weight:600;font-size:14px;overflow-wrap:anywhere;}
.pfp-pop-body{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);
  gap:16px;align-items:start;}
.pfp-pop-pic img{width:100%;max-height:60vh;object-fit:contain;
  background:#0000000d;border-radius:6px;}
.pfp-pop-info{display:grid;grid-template-columns:max-content 1fr;
  gap:6px 12px;margin:0;font-size:12.5px;}
.pfp-pop-info dt{color:var(--chrome-ink-2);}
.pfp-pop-info dd{margin:0;overflow-wrap:anywhere;}
@media (max-width:640px){.pfp-pop-body{grid-template-columns:1fr;}}
/* Duplicate, beside Options on a File control row */
.fdp-files .fdp-dup{display:flex;align-items:center;justify-content:center;
  gap:5px;min-height:28px;font-size:12px;}
.fdp-dup .bic{width:13px;height:13px;}
/* Duplicate beside Options: the last column holds both. At 100px Duplicate
   overflowed over Read only. */
.fdp-files .ct-hd,.fdp-files>.fdp-tree-file,.fdp-cols{
  grid-template-columns:minmax(140px,1fr)
  70px 78px 82px 75px 55px 190px 210px;}
.fdp-files .ct-c-opt{flex-direction:row;align-items:center;gap:6px;
  justify-content:flex-end;}
.fdp-files .fdp-dup,.fdp-files .fdp-more{box-sizing:border-box;height:28px;
  min-height:0;}

/* The rule between ribbon groups uses the theme's line colour; a fixed
   white at 11% does not show on a light theme. The width is unchanged
   because the ribbon's fitter counts it. */
.rbn-grp{border-right-color:var(--chrome-line,#ffffff1c);}
.rbn-grp:last-child{border-right-color:transparent;}

/* The Format bubble comes first, then the bar from it (32 miniBubble).
   Colours are on a row of their own, each with its recent colours then
   More. */
.mini-bubble{position:fixed;z-index:70;height:26px;padding:0 10px;gap:5px;
  font:600 12px var(--sans);border-radius:13px;
  box-shadow:0 4px 14px #0003;background:var(--chrome-1,#0f1b26);
  border:1px solid var(--chrome-line);color:var(--chrome-ink);}
.mini-bubble[hidden]{display:none;}
.mini-bubble .bic{width:14px;height:14px;}
.mini-tb .mini-pin{margin-left:auto;}
.mini-tb .mini-cols .mini-sw{border-left:none;margin-left:0;padding-left:0;}
.mini-tb .mini-cols .mini-door{margin-left:2px;}
.deck:not(.editing) .mini-bubble{display:none;}
/* a highlighter's tip is square: its recent colours are too */
.mini-tb .mini-hlsw .mini-swb{border-radius:4px;}
/* Word styles in a logbook's Styles gallery, as for paragraph styles: on
   the row when the window has room, otherwise in More */
.deck.kind-logbook .rbn-lbstyles .rbn-cs{min-width:84px;height:26px;
  border-radius:4px;justify-content:flex-start;padding:0 8px;
  font-size:12.5px;white-space:nowrap;}
.deck.kind-logbook .rbn-lbstyles .rbn-cs i,
.deck.kind-logbook .rbn-lbstyles .rbn-cs svg{display:none;}
@media (max-width:1499px){
  .deck.kind-logbook .rbn-lbstyles .rbn-cs{display:none;}
}
/* ---- A number on a slider, the picker for any field, shadow options ---- */
.fx-row{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-height:26px;min-width:0;}
.fx-row.fx-stack{flex-wrap:wrap;row-gap:0;}
.fx-lab{flex:0 0 64px;font-size:11.5px;color:var(--chrome-ink);white-space:nowrap;}
.fx-stack .fx-lab{flex:1 0 100%;}
.fx-range{flex:1 1 auto;min-width:0;height:16px;accent-color:var(--cyan);cursor:pointer;}
input.fx-num{width:52px;height:22px;box-sizing:border-box;padding:0 3px;
  font-family:var(--mono);font-size:10.5px;color:var(--chrome-ink-2);text-align:right;
  border:1px solid var(--chrome-line,#ffffff22);border-radius:5px;background:transparent;
  -moz-appearance:textfield;}
.sw-menu input.fx-num{width:44px;}
input.fx-num::-webkit-outer-spin-button,input.fx-num::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
input.fx-num:focus{outline:none;border-color:var(--accent);color:var(--chrome-ink);}
.fx-unit{font-family:var(--mono);font-size:10.5px;color:var(--chrome-ink-2);min-width:14px;}
.fx-row input:disabled{opacity:.45;cursor:not-allowed;}
.cp-opaque .cp-arow{display:none;}
.cp-tokrow{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:4px 0 2px;}
.cp-tokrow[hidden],.fx-row[hidden]{display:none;}
#fmt-shd-menu{width:280px;grid-template-columns:repeat(4,minmax(0,1fr));}
#fmt-shd-menu>.sh-opt{padding-left:1px;padding-right:1px;}
.shd-opts{grid-column:1/-1;display:flex;flex-direction:column;gap:3px;
  border-top:1px solid var(--chrome-line,#ffffff1a);margin-top:4px;padding-top:2px;}
.shd-none{font-size:11px;color:var(--chrome-ink-2);padding:0 2px 2px;}
.dbtn.shd-col{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;font-size:12px;}
.shd-colsw{width:16px;height:12px;border-radius:2px;border:1px solid var(--chrome-line,#ffffff33);}
/* The text effects panel shows one of its four sections at a time, so the
   words being changed stay in view */
.sh-menu.tfx-menu{width:min(340px,94vw);box-sizing:border-box;
  padding:8px 10px 10px;}
.sh-menu.tfx-menu:not([hidden]){display:block;}
.tfx-who{font-size:12px;color:var(--chrome-ink-2);padding:0 2px 6px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tfx-tabs{display:flex;gap:3px;margin-bottom:8px;}
.sh-menu.tfx-menu .dbtn.tfx-tab{flex:1 1 auto;justify-content:center;gap:5px;
  padding:4px 5px;font-size:12px;white-space:nowrap;}
.sh-menu.tfx-menu .dbtn.tfx-tab[aria-selected="true"]{
  background:color-mix(in srgb,var(--accent) 26%,transparent);
  border-color:var(--accent);}
/* ...an effect that is on says so on its tab */
.sh-menu.tfx-menu .dbtn.tfx-tab.has>span{text-decoration:underline;
  text-decoration-color:var(--accent);text-underline-offset:3px;
  text-decoration-thickness:2px;}
.tfx-sec[hidden]{display:none;}
.tfx-pre{display:flex;gap:4px;margin:0 0 6px;}
.sh-menu.tfx-menu .dbtn.tfx-opt{display:flex;flex:1 1 0;min-width:0;
  flex-direction:column;gap:1px;height:48px;padding:3px 1px;font-size:11px;
  white-space:nowrap;justify-content:center;align-items:center;}
.tfx-sam{font:600 18px/1.2 var(--sans);}
.sh-menu.tfx-menu .dbtn.tfx-opt[aria-pressed="true"]{
  background:color-mix(in srgb,var(--accent) 26%,transparent);
  border-color:var(--accent);}
/* ---- Picture sliders ---- */
/* (62A's rules go below this line) */
.pic-panel .opt-row>.fx-row{flex:1 1 auto;}
.pic-panel{min-width:300px;}
/* ---- Shadow numbers ---- */
/* (62B's rules go below this line) */
/* ---- Gradient stops ---- */
/* (62C's rules go below this line) */
/* a block of a colour menu is the menu's width, not its widest row's:
   min-width:auto held the Opacity rows' 256px in a 250px menu, 6px past
   its edge (clipped, and a sideways scroll in waiting) */
.sw-menu>.bx-block{min-width:0;}
.grad-block{padding-bottom:4px;}
.sw-menu>.bx-block.grad-block{border-top:none;margin-top:0;padding-top:0;}
.grad-stops{position:relative;height:36px;margin:2px 6px 4px;
  user-select:none;-webkit-user-select:none;touch-action:none;}
.grad-bar{position:absolute;left:0;right:0;top:0;height:16px;border-radius:4px;cursor:copy;
  border:1px solid var(--chrome-line,#ffffff26);
  background-image:var(--grad),
    linear-gradient(45deg,#8884 25%,transparent 25%,transparent 75%,#8884 75%),
    linear-gradient(45deg,#8884 25%,transparent 25%,transparent 75%,#8884 75%);
  background-size:100% 100%,8px 8px,8px 8px;background-position:0 0,0 0,4px 4px;}
.grad-bar.full{cursor:default;}
.grad-stop{-webkit-appearance:none;appearance:none;position:absolute;top:14px;margin:0 0 0 -6px;
  width:12px;height:18px;border:2px solid var(--chrome-ink-2);border-radius:3px;
  background:var(--c,#39a9c0);cursor:ew-resize;}
.grad-stop:checked{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 40%,transparent);}
.grad-stop:focus-visible{outline:2px solid var(--accent);outline-offset:1px;}
.grad-one{font-size:11px;color:var(--chrome-ink-2);padding:2px;}
.grad-block .bx-row .dbtn{display:inline-flex;align-items:center;gap:5px;font-size:12px;padding:3px 8px;}
.grad-block .bx-row .dbtn svg{width:12px;height:12px;}
/* A picture of the project in the picker, with its Copy button beneath */
.pjt-cell{display:flex;flex-direction:column;gap:4px;min-width:0;}
.pjt-cell .pjt-copy{align-self:flex-start;}
/* File size's Make pictures smaller, a button with a label */
.fsz-act{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:4px 0 8px;}

/* ---- File control: list or large icons, and show details ----
   Size, storage and editing details are shown on request. Large icons show
   a preview on hover. See 57v-folders.js fdpViewBar, fdpIcons and
   fdpPeekShow. */
.fdp-viewbar{display:flex;align-items:center;gap:8px;margin:4px 0 8px;}
.fdp-viewseg{display:inline-flex;border:1px solid var(--chrome-line);
  border-radius:8px;overflow:hidden;}
.fdp-viewseg .fdp-viewb{border:0;border-radius:0;margin:0;}
.fdp-viewseg .fdp-viewb+.fdp-viewb{border-left:1px solid var(--chrome-line);}
.fdp-viewb[aria-pressed="true"],.fdp-detbtn[aria-pressed="true"]{
  background:color-mix(in srgb,var(--accent) 18%,transparent);
  color:var(--chrome-ink);}
/* the list without its details: the file, whether it is open, its kind,
   its preview and what it holds */
.deck-folder:not(.fdp-detailed) .fdp-files .ct-c-sz,
.deck-folder:not(.fdp-detailed) .fdp-files .ct-c-where,
.deck-folder:not(.fdp-detailed) .fdp-files .ct-c-opt,
.deck-folder:not(.fdp-detailed) .fdp-cols .ct-c-sz,
.deck-folder:not(.fdp-detailed) .fdp-cols .ct-c-where,
.deck-folder:not(.fdp-detailed) .fdp-cols .ct-c-opt{display:none;}
.deck-folder:not(.fdp-detailed) .fdp-files .ct-hd,
.deck-folder:not(.fdp-detailed) .fdp-files>.fdp-tree-file,
.deck-folder:not(.fdp-detailed) .fdp-cols{
  grid-template-columns:minmax(160px,1fr) 70px 110px 90px 90px;}
.deck-folder:not(.fdp-detailed) .fdp-files .ct-hd>*,
.deck-folder:not(.fdp-detailed) .fdp-files>.fdp-tree-file>*{
  grid-column:auto;grid-row:auto;}
@container (max-width:620px){
  .deck-folder:not(.fdp-detailed) .fdp-files .ct-c-kind,
  .deck-folder:not(.fdp-detailed) .fdp-cols .ct-c-kind{display:none;}
  .deck-folder:not(.fdp-detailed) .fdp-files .ct-hd,
  .deck-folder:not(.fdp-detailed) .fdp-files>.fdp-tree-file,
  .deck-folder:not(.fdp-detailed) .fdp-cols{
    grid-template-columns:minmax(0,1fr) 64px 84px 70px;}}
/* From 860px wide a file is on one line, with Actions wide enough for
   Duplicate and Options side by side. Narrower, its details go on a second
   line and its Actions on a third. */
@container (min-width:860px){
  .fdp-files .ct-hd,.fdp-files>.fdp-tree-file,.fdp-cols{
    grid-template-columns:minmax(110px,1.4fr) 56px 76px 74px 62px 56px
    minmax(120px,1fr) minmax(206px,1fr);}}
.deck-folder.fdp-detailed .fdp-files .ct-c-opt{display:flex;gap:6px;
  justify-content:flex-end;}
.deck-folder.fdp-detailed .fdp-files .ct-c-where{flex-wrap:wrap;
  row-gap:2px;}
@container (max-width:859px){
  .deck-folder.fdp-detailed .fdp-files .ct-hd,
  .deck-folder.fdp-detailed .fdp-files>.fdp-tree-file{
    grid-template-columns:minmax(0,1fr) 60px 80px 78px;row-gap:4px;}
  .deck-folder.fdp-detailed .fdp-files .ct-c-name,
  .deck-folder.fdp-detailed .fdp-tree-main{grid-column:1;grid-row:1;}
  .deck-folder.fdp-detailed .fdp-files .fdp-open-cell{grid-column:2;
    grid-row:1;}
  .deck-folder.fdp-detailed .fdp-files .ct-c-kind{grid-column:3;grid-row:1;
    display:flex;}
  .deck-folder.fdp-detailed .fdp-files .ct-ex,
  .deck-folder.fdp-detailed .fdp-files .ct-c-preview{grid-column:4;
    grid-row:1;}
  .deck-folder.fdp-detailed .fdp-files .ct-c-n{grid-column:1;grid-row:2;
    padding-left:30px;text-align:left;display:block;}
  .deck-folder.fdp-detailed .fdp-files .ct-c-sz{grid-column:2;grid-row:2;
    display:block;}
  .deck-folder.fdp-detailed .fdp-files .ct-c-where{grid-column:3/5;
    grid-row:2;display:flex;}
  .deck-folder.fdp-detailed .fdp-files .ct-c-opt{grid-column:1/-1;
    grid-row:3;}
  .deck-folder.fdp-detailed .fdp-cols{display:none;}}
/* Large icons: folder by folder, a grid of tiles */
.fdp-icons>.fdp-ig{background:none;padding:2px 0 12px;}
.fdp-ig-h{display:flex;align-items:center;gap:8px;padding:10px 4px 8px;
  font:600 13px var(--sans);color:var(--chrome-ink);
  border-top:1px solid var(--chrome-line);}
.fdp-ig:first-child .fdp-ig-h{border-top:0;}
.fdp-ig-h .bic{width:16px;height:16px;color:var(--accent);}
.fdp-ig-n{font-weight:400;font-size:12px;color:var(--chrome-ink-2);}
.fdp-ig-grid{display:grid;gap:12px;
  grid-template-columns:repeat(auto-fill,minmax(176px,1fr));}
.fdp-ig-empty{grid-column:1/-1;padding:12px 4px;font-size:12px;
  color:var(--chrome-ink-2);text-align:center;
  border:1px dashed var(--chrome-line);border-radius:8px;}
.fdp-ig.fdp-drop-in{outline:2px solid var(--accent);outline-offset:2px;
  border-radius:10px;}
.fdp-icon{display:flex;flex-direction:column;gap:6px;min-width:0;
  padding:8px;border:1px solid transparent;border-radius:10px;
  cursor:pointer;outline:none;transition:background .12s,border-color .12s;}
.fdp-icon:hover{background:var(--surface-hover);}
.fdp-icon:focus-visible{border-color:var(--accent);}
.fdp-icon.is-sel{border-color:color-mix(in srgb,var(--accent) 55%,transparent);
  background:color-mix(in srgb,var(--accent) 16%,transparent);}
.fdp-icon.missing{opacity:.55;}
.fdp-icon-th{display:flex;align-items:center;justify-content:center;
  height:110px;overflow:hidden;border-radius:6px;
  background:var(--chrome-2);border:1px solid var(--chrome-line);}
.fdp-icon-th .mini-diagram{width:100%;height:100%;}
.fdp-icon-th .mini-diagram[style*="aspect-ratio"]{width:auto;height:100%;}
.fdp-icon-th img{max-width:100%;max-height:100%;object-fit:contain;}
.fdp-icon-th>.bic{width:44px;height:44px;color:var(--chrome-ink-2);}
.fdp-icon-nm{display:flex;align-items:center;gap:6px;min-width:0;
  font:600 13px var(--sans);color:var(--chrome-ink);}
.fdp-icon-nm>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fdp-icon-nm .bic{flex:none;width:15px;height:15px;}
.fdp-icon-sub{font-size:11.5px;color:var(--chrome-ink-2);}
/* the preview on hover */
.fdp-peek{position:fixed;z-index:400;width:380px;box-sizing:border-box;
  padding:10px;border-radius:12px;pointer-events:none;
  background:var(--chrome-1);border:1px solid var(--chrome-line);
  box-shadow:0 18px 50px -12px rgba(0,0,0,.55);}
.fdp-peek-big{display:flex;justify-content:center;height:200px;
  overflow:hidden;border-radius:8px;background:var(--chrome-2);}
.fdp-peek-big .mini-diagram,.fdp-peek-s .mini-diagram{width:100%;
  height:100%;}
.fdp-peek-big .mini-diagram[style*="aspect-ratio"],
.fdp-peek-s .mini-diagram[style*="aspect-ratio"]{width:auto;height:100%;}
.fdp-peek-strip{display:flex;align-items:center;gap:6px;margin-top:8px;}
.fdp-peek-s{flex:none;display:flex;justify-content:center;width:62px;
  height:35px;overflow:hidden;border-radius:4px;background:var(--chrome-2);}
.fdp-peek-more{font-size:11px;color:var(--chrome-ink-2);}
.fdp-peek-cap{margin-top:8px;font:600 12.5px var(--sans);
  color:var(--chrome-ink);}
.fdp-peek.is-img img{display:block;max-width:100%;max-height:280px;
  margin:0 auto;border-radius:6px;}
@media (prefers-reduced-motion:reduce){.fdp-icon{transition:none;}}
/* ---- Add source (#src-dlg) and Insert citation (#cite-pick) ---- */
.src-dlg [hidden]{display:none!important;}
.aa-box.src-box{width:min(600px,94vw);max-height:min(94vh,860px);}
.src-body{flex:1 1 auto;min-height:90px;overflow-y:auto;display:flex;
  flex-direction:column;gap:8px;padding-right:3px;}
.src-doi{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;
  align-items:center;padding:9px 10px;border-radius:9px;
  background:color-mix(in srgb,var(--accent) 9%,transparent);
  border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);}
.src-doi>label{grid-column:1/-1;font-size:12.5px;color:var(--chrome-ink-2);}
.src-doi>.dbtn{white-space:nowrap;}
.src-said{font-size:12px;color:var(--chrome-ink-2);margin-top:-3px;}
.src-said.bad{color:color-mix(in srgb,#e5484d 70%,var(--chrome-ink));}
.src-types{display:flex;flex-wrap:wrap;gap:4px;}
.src-types .src-type{padding:3px 9px;font-size:12px;}
.src-types .src-type[aria-checked="true"]{color:var(--chrome-ink);
  background:color-mix(in srgb,var(--accent) 22%,transparent);
  border-color:var(--accent);}
.src-fields{display:flex;flex-direction:column;gap:7px;}
.src-f{display:flex;flex-direction:column;gap:3px;min-width:0;}
.src-fl{font-size:12px;color:var(--chrome-ink-2);}
.src-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));
  gap:8px;}
.src-f textarea.ask-in{resize:vertical;font:13px/1.4 var(--sans);}
.src-where{display:flex;flex-direction:column;gap:3px;padding-top:6px;
  border-top:1px solid var(--chrome-line);}
.src-places{display:flex;flex-wrap:wrap;gap:4px;}
.src-places>.src-place{flex:1 1 150px;}
.src-place{display:grid;grid-template-columns:auto minmax(0,1fr);
  column-gap:8px;align-items:baseline;padding:4px 6px;border-radius:6px;
  cursor:pointer;}
.src-place:hover{background:#ffffff0d;}
.src-place input{margin:0;grid-row:1/3;align-self:center;
  accent-color:var(--accent,var(--cyan));}
.src-pl{font-size:13px;color:var(--chrome-ink);}
.src-ph{font-size:11.5px;color:var(--chrome-ink-3);}
.src-key{display:flex;align-items:center;gap:4px;}
.src-key>label{font-size:12px;color:var(--chrome-ink-2);margin-right:6px;
  white-space:nowrap;}
.src-key .ask-in{flex:1;font-family:var(--mono);font-size:12.5px;}
.src-key .ask-in[readonly]{opacity:.7;}
.src-keyb{font-family:var(--mono);font-size:12.5px;color:var(--chrome-ink-3);}
.src-warn{color:color-mix(in srgb,#e5484d 70%,var(--chrome-ink));}
body.light .src-place:hover{background:var(--surface-hover);}
.sh-menu.cite-pick{position:fixed;z-index:420;display:flex;
  flex-direction:column;gap:7px;width:min(440px,calc(100vw - 32px));
  max-height:min(62vh,520px);padding:10px;color:var(--chrome-ink);
  font:12.5px/1.35 var(--sans);}
.sh-menu.cite-pick[hidden]{display:none!important;}
/* its own: the colour picker's .cp-head is spaced mono capitals */
.cite-pick .cp-head{display:flex;flex-direction:column;gap:6px;font:inherit;
  letter-spacing:0;text-transform:none;color:inherit;}
.cite-pick .cp-t{font:600 13.5px/1.3 var(--sans);}
.cite-pick .cp-list{flex:1;min-height:60px;overflow-y:auto;display:flex;
  flex-direction:column;gap:1px;}
.cite-pick .cp-row{display:grid;grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"who at" "ti used";gap:1px 8px;text-align:left;
  padding:6px 8px;border:0;border-radius:6px;background:none;color:inherit;
  font:inherit;cursor:pointer;}
.cite-pick .cp-row.on,.cite-pick .cp-row:hover{
  background:color-mix(in srgb,var(--accent,#5ab3d6) 18%,transparent);}
.cite-pick .cp-who{grid-area:who;font-weight:600;}
.cite-pick .cp-ti{grid-area:ti;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;color:var(--chrome-ink-2);}
.cite-pick .cp-at{grid-area:at;justify-self:end;font-size:11px;color:var(--chrome-ink-3);}
.cite-pick .cp-used{grid-area:used;justify-self:end;font-size:11px;color:var(--accent);}
.cite-pick .cp-none{padding:10px 8px;color:var(--chrome-ink-2);line-height:1.45;}
.cite-pick .cp-foot{display:flex;gap:6px;justify-content:space-between;padding-top:8px;
  border-top:1px solid var(--chrome-line);}
/* ---- Insert > Image pop-up (#pic-src) and From files (#pic-pick, sized as
   a dialog, never the whole screen) ---- */
.sh-menu.pic-src{width:340px;max-width:calc(100vw - 16px);padding:6px;}
.pic-src .vw-opt.pic-src-row{align-items:flex-start;gap:10px;padding:8px 10px;
  white-space:normal;text-align:left;height:auto;}
.pic-src .pic-src-row>.bic{flex:none;width:18px;height:18px;margin-top:1px;}
.pic-src-w{display:flex;flex-direction:column;gap:2px;min-width:0;}
.pic-src-t{font:600 13px/1.25 var(--sans);color:var(--chrome-ink);}
.pic-src-h{font:11.5px/1.35 var(--sans);color:var(--chrome-ink-2);}
.sh-menu.pic-pick{position:fixed;left:50%;top:9vh;transform:translateX(-50%);
  z-index:420;display:flex;flex-direction:column;gap:9px;
  width:min(780px,calc(100vw - 32px));max-height:min(78vh,640px);padding:12px;
  color:var(--chrome-ink);font:12.5px/1.35 var(--sans);outline:none;}
.sh-menu.pic-pick[hidden]{display:none!important;}
.pp-head{display:flex;align-items:center;gap:8px;}
.pp-t{font:600 14px/1.3 var(--sans);color:var(--chrome-ink);}
.pp-sub{color:var(--chrome-ink-2);}
.pp-bar{display:flex;align-items:center;gap:8px;}
.pp-bar .pp-q{flex:1;min-width:0;}
.pic-in{max-width:280px;}
.pp-grid{flex:1 1 auto;min-height:60px;overflow-y:auto;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;
  align-content:start;padding:2px;}
.pp-grid .pfp-hint{grid-column:1/-1;}
.pp-grid .pjt-tile-in{font-family:var(--sans);font-size:11px;white-space:normal;}
.pp-foot{display:flex;align-items:center;gap:8px;padding-top:8px;
  border-top:1px solid var(--chrome-line);}
.pp-n{font-size:12px;color:var(--chrome-ink-2);}
.pfp-imgfind{align-items:center;}
.pfp-imgfind .pp-q{width:min(320px,40vw);}
/* Files into a folder (57v-folders.js) */
.fdp-files>.pjt-row .rp-n:empty{display:none;}
.fdp-ig-h{cursor:default;border-radius:6px;}
.fdp-ig-h.is-sel{background:color-mix(in srgb,var(--accent) 14%,transparent);}
.fdp-icons>.fdp-ig.fdp-drop-in{outline:2px solid var(--accent);
  outline-offset:2px;border-radius:8px;}

/* ---- Notes (59-notes.js to 59d-notes-in.js) ----
   The notes page, File control's Notes, the Notes pane and a note being
   written. A note's colour is --jn, set on the note; what is drawn is a
   wash of it over the theme's paper, so every colour reads in both light
   and dark schemes. */
.deck[data-kind="notes"] [data-nokinds~="notes"],
.deck:not([data-kind="notes"]) [data-kinds="notes"]{display:none!important;}
/* The ribbon shows only the notes' groups (57g kindHides), except File
   control's, which belong to the project. */
/* A logbook's Clipboard, Font and Paragraph groups are also shown, for a
   note's text (57g JN_TEXT_GRPS). */
.deck.kind-notes #edit-tools .rbn-grp:not([data-kinds~="notes"]):not(.rbn-lay):not([data-tab="folder"]):not(.rbn-clip):not(.rbn-fontgrp):not(.rbn-paragrp),
.deck.kind-notes #edit-tools .rbn-lay>.rbn-row>:not([data-kinds~="notes"]):not([id^="fc-"]):not(#pz-join){
  display:none!important;}
/* With no note open, Home shows the notes' groups (Notes and Filter); with
   one open, its text groups. 59c jnHomeSync sets jn-oncard. */
.deck.kind-notes:not(.jn-oncard) #edit-tools :is(.rbn-clip,.rbn-lbstyles,.rbn-fontgrp,.rbn-paragrp),
.deck.kind-notes.jn-oncard #edit-tools :is(.rbn-jnnew,.rbn-jnfilt,.rbn-jnpick){
  display:none!important;}
/* (design pass 58: This note with a note open only -- the selected notes'
   are the bar over them on the page -- and Filter makes way while notes
   are selected, its Label, Type and Colour the bar's again. 59c jnHomeSync
   sets jn-picked) */
.deck.kind-notes:not(.jn-oncard) #edit-tools .rbn-jncards,
.deck.kind-notes.jn-picked:not(.jn-oncard) #edit-tools .rbn-jnfilt,
.deck.kind-notes.jn-nocards:not(.jn-oncard) #edit-tools .rbn-jnpick{
  display:none!important;}
/* (with a note open, This note first, before its words' groups) */
.deck.kind-notes.jn-oncard #edit-tools .rbn-jncards{order:0;}
.deck.editing.kind-notes>.deck-create,
.deck.kind-notes .qat-playgrp,.deck.kind-notes .pane-tabs,
.deck.kind-notes #zoom-val,.deck.kind-notes #zoom-out,
.deck.kind-notes #zoom-in,.deck.kind-notes .selpane,
.deck.kind-notes .sv-rail,.deck.kind-notes .rulers,
.deck.kind-notes .mini-tb{display:none!important;}
/* Hidden too over a note open on a slide's page: the ribbon's Font applies
   to the note's text, and the bar would sit under the note's shade. */
.deck:has(>.jn-modal) .mini-tb{display:none!important;}
/* 78px rather than 84, so New stays on the row at 1100px with the project
   down the side and Days and Links on it too */
.deck.kind-notes #edit-tools .fx-tile.big-tile{min-width:78px;}
.deck.kind-notes .deck-stagewrap{position:relative;}
.deck.kind-notes .deck-stage{position:absolute!important;inset:0;
  visibility:hidden!important;pointer-events:none;}
.deck-notes{flex:1 1 auto;min-height:0;min-width:0;display:flex;
  background:var(--chrome-0);color:var(--chrome-ink);
  font-family:var(--sans);position:relative;z-index:2;}
.deck-notes[hidden]{display:none;}
.deck-notes:focus{outline:none;}
.jn{--jn-paper:var(--chrome-2);--jn-line:var(--chrome-line);
  --jn-mix:30%;color:var(--chrome-ink);font-family:var(--sans);}
body.light .jn,body.light .jn-modal{--jn-mix:22%;}
.jn-col{--jn-bg:color-mix(in srgb,var(--jn) var(--jn-mix,30%),var(--jn-paper));
  --jn-bd:color-mix(in srgb,var(--jn) 55%,var(--jn-paper));}
.jn .bic,.jn-modal .bic,.jn-menu .bic{width:14px;height:14px;flex:none;}
.jn-spring{flex:1 1 auto;}
.jn-btn{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;
  font:500 12px/1.2 var(--sans);}
.jn-btn[hidden]{display:none;}
/* --- the side --- */
.jn-side{flex:0 0 178px;min-width:0;padding:16px 8px 16px 12px;overflow-y:auto;
  display:flex;flex-direction:column;gap:1px;
  border-right:1px solid var(--chrome-line);}
.jn-nav{display:flex;align-items:center;gap:10px;width:100%;
  border:0;border-radius:8px;background:transparent;color:var(--chrome-ink-2);
  font:500 13px/1.25 var(--sans);text-align:left;padding:8px 10px;cursor:pointer;}
.jn-nav .bic{width:15px;height:15px;opacity:.85;}
.jn-nav:hover{background:var(--surface-hover);color:var(--chrome-ink);}
.jn-nav.on{color:var(--chrome-ink);font-weight:600;
  background:color-mix(in srgb,var(--accent) 20%,transparent);}
.jn-nav:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;}
.jn-nav-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.jn-nav-n{font:500 11px var(--sans);color:var(--chrome-ink-3);}
/* (design pass 63: on the page being looked at, the count in the row's
   own ink -- the third on the row's tint was 3.2:1 in the light theme, and
   the second 4.3:1, under the 4.5:1 small words need) */
.jn-nav.on .jn-nav-n{color:inherit;}
.jn-side-h{padding:12px 10px 4px;font:600 11px var(--sans);
  color:var(--chrome-ink-3);}
.jn-side-h:empty{padding:5px 0;border-bottom:1px solid var(--chrome-line);
  margin:0 8px 6px;}
/* (design pass 9: a section's heading collapses it) */
.jn-side-hb{display:flex;align-items:center;gap:6px;width:100%;border:0;
  background:none;text-align:left;cursor:pointer;border-radius:6px;}
.jn-side-hb:hover{color:var(--chrome-ink-2);}
.jn-side-hb:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;}
.jn-side-car{font-size:10px;}
/* --- the main column --- */
.jn-main{flex:1 1 auto;min-width:0;min-height:0;}
.jn-k-page .jn-main{overflow-y:auto;padding:0 22px 60px;}
.jn-bar,.jn-selbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.jn-bar[hidden],.jn-selbar[hidden]{display:none;}
.jn-k-page .jn-bar,.jn-k-page .jn-selbar{position:sticky;top:0;z-index:6;
  min-height:54px;background:var(--chrome-0);margin:0 -22px;padding:0 22px;}
.jn-q{flex:1 1 160px;max-width:440px;display:flex;align-items:center;gap:8px;
  padding:0 11px;height:34px;border:1px solid var(--chrome-line);
  border-radius:9px;background:var(--chrome-2);color:var(--chrome-ink-2);}
.jn-q:focus-within{border-color:var(--accent);}
.jn-q input{flex:1;min-width:0;border:0;background:transparent;outline:0;
  color:var(--chrome-ink);font:13px var(--sans);}
.jn-sort{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
  font:12px var(--sans);color:var(--chrome-ink-2);}
.jn .rbn-sel,.jn-modal .rbn-sel{border:1px solid var(--chrome-line);
  background:var(--chrome-2);color:var(--chrome-ink);padding:0 6px;
  border-radius:6px;height:28px;font:12px var(--sans);}
.jn-seg .fdp-viewb{padding:6px 10px;}
/* Set for the board itself, whatever the ribbon's rung: .erc2 narrows every
   small editor button to 3px, which would squeeze Grid, List, Table and
   Graph off their row beside a project's files at 1100px. */
.jn-seg .dbtn.fdp-viewb{padding:5px 6px;gap:4px;}
/* The bar and the selection's bar stay on one row; 59b's barFit and selFit
   step them down as the board narrows, never to a second row. */
.jn-k-page .jn-bar,.jn-k-control .jn-bar,.jn-selbar{flex-wrap:nowrap;}
.jn-k-page .jn-q,.jn-k-control .jn-q{min-width:120px;}
.jn-k-page .jn-bar>:not(.jn-q):not(.jn-spring),
.jn-k-control .jn-bar>:not(.jn-q):not(.jn-spring){flex:none;}
.jn-selbar>*{flex:none;}
.jn-bar-s1 .jn-sort-t{display:none;}
/* The order list is as wide as "My order"; longer names are cut off until
   it is opened. */
/* 112px, as wide as "Custom order". The 12px over "My order" is taken from
   the gaps between the view buttons and the bar's own gaps, so a type's
   Table still fits on the row at 1100px beside a project's files. */
.jn-bar-s1 .jn-sort .rbn-sel{max-width:112px;}
.jn-bar.jn-bar-s1{gap:7px;}
.jn-bar-s1 .jn-seg .dbtn.fdp-viewb{padding:5px 5px;gap:3px;}
.jn-bar-s3 .jn-sort{display:none;}
.jn-viewmenu .vw-opt.on{font-weight:600;}
.jn-viewmenu .vw-opt.on::after{content:"\2713";margin-left:auto;padding-left:14px;}
.jn-selbar{gap:6px;}
.jn-selbar .jn-seln{font-weight:600;border-color:transparent;background:transparent;}
.jn-filt{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:2px 0 10px;}
.jn-filt[hidden]{display:none;}
.jn-fchip{display:inline-flex;align-items:center;gap:5px;cursor:pointer;
  border:1px solid var(--chrome-line);border-radius:999px;background:transparent;
  color:var(--chrome-ink-2);font:12px var(--sans);padding:4px 10px;}
.jn-fchip .bic{width:12px;height:12px;}
.jn-fchip:hover{color:var(--chrome-ink);border-color:var(--border-strong);}
.jn-fchip.on{color:var(--chrome-ink);border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 20%,transparent);}
.jn-sws{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center;}
.jn-sw{width:22px;height:22px;padding:0;border-radius:50%;cursor:pointer;
  border:1px solid color-mix(in srgb,var(--jn,var(--chrome-ink)) 60%,transparent);
  background:color-mix(in srgb,var(--jn) 62%,var(--chrome-2));}
.jn-sw-solid{background:var(--jn);}
.jn-sw.none{background:linear-gradient(135deg,transparent 46%,
  var(--danger) 46% 54%,transparent 54%),var(--chrome-2);}
.jn-sw:hover{transform:scale(1.12);}
.jn-sw.on{box-shadow:0 0 0 2px var(--chrome-0),0 0 0 4px var(--accent);}
.jn-sw:focus-visible{outline:2px solid var(--focus);outline-offset:2px;}
.jn-fcols{margin-left:4px;}
.jn-fcols .jn-sw{width:18px;height:18px;}
/* --- take a note --- */
.jn-take{display:flex;flex-wrap:wrap;align-items:center;gap:6px;
  max-width:620px;margin:6px auto 20px;}
.jn-take[hidden]{display:none;}
/* One line, as the bar is (59b takeFit) */
.jn-take:not(.is-on){flex-wrap:nowrap;}
.jn-take:not(.is-on)>.jn-btn{flex:none;}
.jn-k-page .jn-take:not(.is-on){padding:5px 6px 5px 4px;
  border:1px solid var(--chrome-line);border-radius:11px;
  background:var(--chrome-2);box-shadow:0 2px 10px #00000024;}
.jn-take-in{flex:1 1 150px;min-width:0;text-align:left;cursor:text;
  border:0;background:transparent;color:var(--chrome-ink-2);
  font:500 14px var(--sans);padding:9px 12px;border-radius:8px;}
.jn-take-in:hover{color:var(--chrome-ink);}
.jn-take-in:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;}
.jn-take-page{display:flex;align-items:center;gap:8px;width:100%;
  font:12px var(--sans);color:var(--chrome-ink-2);}
.jn-ed-take{width:100%;}
/* --- the cards --- */
.jn-sec{margin:0 0 22px;}
/* (design pass 25: List is one column under Take a note, as wide as it and
   with its edges -- not a column at the left under a box in the middle) */
.jn-k-page.is-list .jn-sec{max-width:620px;margin-left:auto;margin-right:auto;}
.jn-sec-h{display:flex;align-items:center;gap:9px;margin:0 0 8px;}
.jn-sec-t{margin:0;font:600 12px var(--sans);color:var(--chrome-ink-2);}
.jn-sec-n{font:12px var(--sans);color:var(--chrome-ink-3);}
.jn-grid{position:relative;}
.jn-card{position:absolute;box-sizing:border-box;min-width:0;
  border:1px solid var(--jn-bd,var(--jn-line));border-radius:11px;
  background:var(--jn-bg,var(--jn-paper));color:var(--chrome-ink);
  cursor:default;outline:0;overflow:visible;}
.jn-grid[data-drag="1"] .jn-card{touch-action:pan-y;}
.jn-card-in{overflow:hidden;border-radius:10px;}
.jn-card:hover{border-color:var(--jn-bd,var(--border-strong));
  box-shadow:0 5px 18px #00000038;}
/* (design pass 26: the keys on a note are a ring of the ink's colour a gap
   away from it -- the accent ring on it said selected, so two selected read
   as three) */
.jn-card:focus-visible{outline:2px solid var(--chrome-ink-2);outline-offset:3px;}
.jn-card.is-sel{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent);}
.jn-card.drag{opacity:.28;}
.jn-card.ghost{z-index:260;pointer-events:none;box-shadow:0 18px 44px #00000073;
  transform:rotate(1.2deg);}
/* (design pass 49: the note being dragged has no tick or buttons on it --
   its tick's ring rode with it under the pointer) */
.jn-card.ghost .jn-tick,.jn-card.ghost .jn-acts{display:none;}
.jn-dragging,.jn-dragging *{cursor:grabbing!important;user-select:none;}
.jn-words{padding:12px 14px 8px;}
.jn-words[hidden]{display:none;}
.jn-title{margin:0 22px 6px 0;font:600 15px/1.3 var(--sans);
  overflow-wrap:anywhere;}
.jn-title:last-child{margin-bottom:0;}
/* A note collapsed to its heading is one line */
.jn-card.is-fold .jn-words{padding:9px 14px;}
.jn-card.is-fold .jn-title{margin:0 22px 0 0;font-size:14px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;}
.jn-body,.jn-ci-t{font:13.5px/1.5 var(--sans);overflow-wrap:anywhere;}
.jn-body{max-height:21em;overflow:hidden;
  -webkit-mask-image:linear-gradient(#000 calc(100% - 26px),#0006);
  mask-image:linear-gradient(#000 calc(100% - 26px),#0006);}
.jn-body:not(:has(>:nth-child(9))){-webkit-mask-image:none;mask-image:none;}
.jn-k-page.is-list .jn-body{max-height:34em;}
.jn-body ul,.jn-body ol,.jn-ed-body ul,.jn-ed-body ol{margin:2px 0;padding-left:1.5em;}
.jn-body a,.jn-ci-t a{color:var(--accent);overflow-wrap:anywhere;}
.jn-blank{color:var(--chrome-ink-3);font-style:italic;}
.jn-pics{display:flex;flex-wrap:wrap;gap:2px;}
.jn-pics img{display:block;width:100%;max-height:340px;object-fit:cover;
  background:#00000018;}
.jn-pics.n2 img,.jn-pics.n3 img{width:auto;flex:1 1 34%;min-width:0;
  max-height:160px;height:130px;}
.jn-cl{list-style:none;margin:0;padding:0;}
.jn-ci{display:flex;align-items:flex-start;gap:8px;padding:2px 0;}
.jn-ci.sub{padding-left:20px;}
.jn-ci.on .jn-ci-t{text-decoration:line-through;color:var(--chrome-ink-3);}
.jn-ck{flex:none;width:16px;height:16px;margin-top:2px;padding:0;
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
  border:1.5px solid color-mix(in srgb,currentColor 55%,transparent);
  border-radius:4px;background:transparent;color:inherit;}
.jn-ck .bic{width:11px!important;height:11px!important;opacity:0;}
.jn-ck.on{background:color-mix(in srgb,currentColor 18%,transparent);
  border-color:transparent;}
.jn-ck.on .bic{opacity:1;}
.jn-ck:hover:not(:disabled){border-color:currentColor;}
.jn-ck:focus-visible{outline:2px solid var(--focus);outline-offset:2px;}
.jn-more{margin-top:6px;font:12px var(--sans);color:var(--chrome-ink-3);}
.jn-chips{display:flex;flex-wrap:wrap;gap:5px;padding:2px 14px 6px;}
.jn-words[hidden]+.jn-chips{padding-top:11px;}
.jn-chips[hidden]{display:none;}
.jn-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;
  border:0;border-radius:999px;padding:3px 9px;cursor:default;
  background:color-mix(in srgb,var(--chrome-ink) 11%,transparent);
  color:var(--chrome-ink);font:500 11px/1.3 var(--sans);}
.jn-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.jn-chip .bic{width:11px!important;height:11px!important;opacity:.8;}
button.jn-chip{cursor:pointer;}
button.jn-chip:hover{background:color-mix(in srgb,var(--chrome-ink) 20%,transparent);}
.jn-chip-due.gone{color:var(--danger);}
.jn-chip-due.gone>span{text-decoration:line-through;}
.jn-chip-x{border:0;background:transparent;color:inherit;cursor:pointer;
  padding:0 0 0 2px;font:13px/1 var(--sans);opacity:.75;}
.jn-chip-x:hover{opacity:1;}
/* what a card offers, as it is pointed at */
.jn-acts{display:flex;flex-wrap:wrap;gap:2px;padding:0 8px 6px;opacity:0;
  transition:opacity .12s;}
.jn-card:hover .jn-acts,.jn-card:focus-within .jn-acts{opacity:1;}
.jn-acts .jn-btn{border-color:transparent;background:transparent;
  color:inherit;padding:4px 6px;font-size:11px;line-height:1.1;}
.jn-acts .jn-btn:hover{background:color-mix(in srgb,var(--chrome-ink) 13%,transparent);}
.jn-acts .bic{width:12px;height:12px;}
@media (hover:none){.jn-acts{opacity:1;}}
.jn-tick{position:absolute;z-index:2;display:flex;align-items:center;
  justify-content:center;padding:0;border:0;cursor:pointer;color:inherit;
  opacity:0;transition:opacity .12s;}
/* A pinned card's mark: not a button, and in the third ink rather than the
   accent, since notes already sit under Pinned and the accent marks today
   and the selection. */
.jn-pinned{position:absolute;top:9px;right:9px;z-index:2;display:flex;
  color:var(--chrome-ink-3);pointer-events:none;}
.jn-pinned .bic{width:14px;height:14px;fill:currentColor;}
/* (design pass 26: a note not selected has an open ring to tick, a selected
   one a filled tick -- a filled tick on every note pointed at said ticked) */
.jn-tick{top:-9px;left:-9px;width:22px;height:22px;border-radius:50%;
  background:var(--chrome-0);color:var(--chrome-ink-2);
  box-shadow:inset 0 0 0 1.5px var(--chrome-ink-2);}
.jn-tick:hover{color:var(--chrome-ink);box-shadow:inset 0 0 0 1.5px var(--chrome-ink);}
.jn-tick .bic{width:13px;height:13px;}
.jn-card:hover .jn-tick,.jn-card:focus-within .jn-tick,
.jn-card.is-sel .jn-tick{opacity:1;}
.jn-card.is-sel .jn-tick{background:var(--accent);color:var(--on-accent);
  box-shadow:none;}
.jn-tick:focus-visible{opacity:1;
  outline:2px solid var(--focus);outline-offset:1px;}
.jn-empty{display:flex;flex-direction:column;align-items:center;gap:12px;
  padding:52px 16px;color:var(--chrome-ink-3);text-align:center;
  font:14px/1.5 var(--sans);}
.jn-empty p{margin:0;max-width:30em;}
.jn-empty-ic .bic{width:54px!important;height:54px!important;opacity:.45;
  stroke-width:.8;}
.jn-none-s{margin:6px 4px;font:12.5px/1.5 var(--sans);color:var(--chrome-ink-3);}
.jn-binbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  justify-content:center;margin:2px 0 18px;font:13px var(--sans);
  color:var(--chrome-ink-2);}
.jn-drop .jn-list{outline:2px dashed var(--accent);outline-offset:8px;
  border-radius:8px;}
/* --- a note being written --- */
.jn-ed{position:relative;box-sizing:border-box;display:flex;flex-direction:column;
  border:1px solid var(--jn-bd,var(--border-strong));border-radius:12px;
  background:var(--jn-bg,var(--jn-paper,var(--chrome-2)));
  color:var(--chrome-ink);box-shadow:0 8px 34px #00000047;
  font-family:var(--sans);}
.jn-ed-in{overflow-y:auto;min-height:0;flex:1 1 auto;border-radius:11px 11px 0 0;}
.jn-ed-pics{display:flex;flex-wrap:wrap;gap:3px;}
.jn-ed-pics[hidden]{display:none;}
.jn-ed-pic{position:relative;flex:1 1 46%;min-width:0;}
.jn-ed-pic:only-child{flex-basis:100%;}
.jn-ed-pics.is-row3 .jn-ed-pic{flex-basis:30%;}
.jn-ed-pics.is-tiles .jn-ed-pic img{height:min(26vh,220px);max-height:none;
  object-fit:cover;}
.jn-ed-pic img{display:block;width:100%;max-height:44vh;object-fit:contain;
  background:#00000014;}
.jn-x{border:0;background:transparent;color:inherit;cursor:pointer;
  font:17px/1 var(--sans);width:24px;height:24px;border-radius:50%;opacity:.7;}
.jn-x:hover{opacity:1;background:color-mix(in srgb,var(--chrome-ink) 16%,transparent);}
.jn-ed-pic .jn-x{position:absolute;right:8px;bottom:8px;opacity:1;
  background:#000000a8;color:#fff;}
.jn-ed-title{display:block;box-sizing:border-box;width:100%;resize:none;
  overflow:hidden;border:0;outline:0;background:transparent;color:inherit;
  font:600 17px/1.35 var(--sans);padding:14px 44px 4px 18px;}
.jn-ed-title::placeholder,.jn-it-t::placeholder{color:var(--chrome-ink-3);}
/* A note's other names, the line under its title */
.jn-ed-alias{display:block;box-sizing:border-box;width:100%;border:0;outline:0;
  background:transparent;color:var(--chrome-ink-2);
  font:12.5px/1.4 var(--sans);padding:0 44px 2px 18px;}
.jn-ed-alias[hidden]{display:none;}
.jn-ed-alias::placeholder{color:var(--chrome-ink-3);opacity:.8;}
.jn-ed-alias:focus{color:var(--chrome-ink);}
.jn-ed-pg .jn-ed-alias{font-size:13.5px;padding:0 52px 4px 28px;}
/* a heading a link went to, lit a moment */
.jn-ed-body .jn-hd-lit{border-radius:4px;
  background:color-mix(in srgb,var(--accent) 22%,transparent);
  transition:background-color .6s ease-out;}
@media (prefers-reduced-motion:reduce){.jn-ed-body .jn-hd-lit{transition:none;}}
.jn-ed-main{padding:4px 18px 12px;}
.jn-ed-body{outline:0;min-height:3.2em;font:14.5px/1.55 var(--sans);
  overflow-wrap:anywhere;cursor:text;}
.jn-ed-take .jn-ed-body{min-height:2.2em;}
.jn-ed-body.is-blank::before{content:attr(data-ph);color:var(--chrome-ink-3);
  float:left;height:0;pointer-events:none;}
.jn-ed .jn-chips{padding:2px 18px 8px;}
.jn-ed-when{padding:0 18px 4px;text-align:right;font:11px var(--sans);
  color:var(--chrome-ink-3);}
.jn-ed-when:empty{display:none;}
.jn-ed-acts{display:flex;flex-wrap:wrap;align-items:center;gap:1px;
  padding:4px 10px;}
.jn-ed-acts{padding-bottom:8px;}
.jn-ed-acts .jn-btn{border-color:transparent;
  background:transparent;color:inherit;padding:6px 6px;font-size:11.5px;}
.jn-ed-acts .jn-btn:hover{
  background:color-mix(in srgb,var(--chrome-ink) 12%,transparent);}
.jn-ro{font:12px var(--sans);color:var(--chrome-ink-2);padding:4px 8px;}
.jn-ed.is-ro .jn-ed-in{pointer-events:none;}
.jn-ed-acts .jn-btn{gap:4px;padding:6px 5px;}
.jn-ed-acts .jn-close{font-weight:600;padding:6px 12px;margin-left:auto;}
/* One row under a line: the Note menu, its date and Close */
.jn-ed-acts{border-top:1px solid color-mix(in srgb,var(--chrome-ink) 13%,transparent);
  padding-top:6px;}
.jn-ed-acts .jn-ed-when{padding:0 6px 0 10px;text-align:right;}
.jn-its{display:flex;flex-direction:column;}
.jn-it{display:flex;align-items:flex-start;gap:8px;padding:3px 0;
  border-radius:6px;}
.jn-it.sub{padding-left:26px;}
.jn-it.lift{background:color-mix(in srgb,var(--chrome-ink) 10%,transparent);}
.jn-it-grip{flex:none;width:14px;margin:2px -2px 0 -14px;cursor:grab;
  color:var(--chrome-ink-3);opacity:0;font-size:13px;line-height:20px;
  touch-action:none;user-select:none;}
.jn-it:hover .jn-it-grip,.jn-it.lift .jn-it-grip{opacity:1;}
.jn-it .jn-ck{margin-top:3px;width:17px;height:17px;}
.jn-it-t{flex:1;min-width:0;box-sizing:border-box;resize:none;overflow:hidden;
  border:0;outline:0;background:transparent;color:inherit;padding:1px 0;
  font:14.5px/1.45 var(--sans);}
/* Written in place (59b), so a link to a note is a single element in it */
div.jn-it-t{min-height:1.45em;white-space:pre-wrap;overflow-wrap:anywhere;
  cursor:text;}
.jn-it.on .jn-it-t{text-decoration:line-through;color:var(--chrome-ink-3);}
.jn-it .jn-x{opacity:0;}
.jn-it:hover .jn-x,.jn-it:focus-within .jn-x{opacity:.75;}
.jn-it-add,.jn-done-h{display:flex;align-items:center;gap:9px;width:100%;
  border:0;background:transparent;color:var(--chrome-ink-2);cursor:pointer;
  font:13.5px var(--sans);text-align:left;padding:6px 1px;}
.jn-it-add:hover,.jn-done-h:hover{color:var(--chrome-ink);}
.jn-done-h{margin-top:6px;padding-top:9px;
  border-top:1px solid color-mix(in srgb,var(--chrome-ink) 13%,transparent);}
/* --- over the page --- */
/* Its top is set under the ribbon when it opens (59b jnOpen) */
.jn-modal{--jn-paper:var(--chrome-2);--jn-mix:30%;position:fixed;inset:0;z-index:210;
  display:flex;align-items:flex-start;justify-content:center;
  padding:9vh 16px 24px;box-sizing:border-box;background:var(--overlay);
  animation:jn-in .13s ease-out;}
/* (design pass 32: no taller than the room under the ribbon -- set under
   it, the box ran 25 px past the foot of the window, its Note menu and
   Close with it) */
.jn-modal>.jn-ed{width:min(720px,100%);max-height:min(80vh,100%);
  background:var(--jn-bg,var(--jn-paper));}
@keyframes jn-in{from{opacity:0;}}
.jn-modal .dbtn.primary{background:var(--accent);color:var(--on-accent);
  border-color:var(--accent);}
.jn-dr{display:flex;flex-direction:column;gap:10px;width:min(960px,100%);
  max-height:88vh;padding:12px;border-radius:12px;box-sizing:border-box;
  background:var(--chrome-2);border:1px solid var(--border-strong);
  color:var(--chrome-ink);box-shadow:0 18px 60px #00000080;}
.jn-drawing{padding-top:5vh;}
.jn-dr-bar,.jn-dr-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px;}
.jn-dr-bar [aria-pressed="true"]{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 24%,transparent);}
.jn-dr-cols{margin:0 8px;}
.jn-dr-w{display:inline-flex;align-items:center;gap:7px;font:12px var(--sans);
  color:var(--chrome-ink-2);margin-right:8px;}
.jn-dr-w input{width:110px;}
.jn-dr-cv{display:block;width:100%;min-height:0;aspect-ratio:3/2;max-height:66vh;
  object-fit:contain;border-radius:8px;background:#fff;cursor:crosshair;
  touch-action:none;}
.jn-labs{width:min(420px,100%);max-height:80vh;display:flex;flex-direction:column;
  gap:8px;padding:16px;box-sizing:border-box;border-radius:12px;
  background:var(--chrome-2);border:1px solid var(--border-strong);
  color:var(--chrome-ink);box-shadow:0 18px 60px #00000080;}
.jn-labs-h{margin:0 0 4px;font:600 16px var(--sans);}
.jn-labs-list{overflow-y:auto;min-height:0;display:flex;flex-direction:column;gap:4px;}
.jn-labs-row{display:flex;align-items:center;gap:8px;}
.jn-labs-row input{flex:1;min-width:0;height:32px;box-sizing:border-box;
  border:1px solid transparent;border-radius:7px;background:transparent;
  color:inherit;font:13px var(--sans);padding:0 9px;}
.jn-labs-row input:hover,.jn-labs-row input:focus,.jn-labs-add input{
  border-color:var(--chrome-line);background:var(--chrome-0);outline:0;}
.jn-labs-row input:focus{border-color:var(--accent);}
.jn-labs-n{font:12px var(--sans);color:var(--chrome-ink-3);white-space:nowrap;}
/* --- the pop-ups --- */
.sh-menu.jn-menu{min-width:210px;}
.jn-menu .vw-opt.warn{color:var(--danger);}
.jn-colors .jn-sws{display:grid;grid-template-columns:repeat(6,24px);gap:9px;
  padding:6px 8px 10px;}
.jn-colors .jn-sw{width:24px;height:24px;}
.jn-labels{width:250px;}
.jn-due{width:310px;}
.jn-due .vw-opt{white-space:nowrap;}
.jn-lab-q{width:calc(100% - 8px);margin:4px;box-sizing:border-box;height:30px;
  border:1px solid var(--chrome-line);border-radius:7px;padding:0 9px;
  background:var(--chrome-0);color:var(--chrome-ink);font:13px var(--sans);}
.jn-lab-q:focus{outline:0;border-color:var(--accent);}
.jn-lab-list{max-height:260px;overflow-y:auto;}
.jn-lab-row{display:flex;align-items:center;gap:9px;padding:6px 9px;
  border-radius:6px;cursor:pointer;font:13px var(--sans);color:var(--chrome-ink);}
.jn-lab-row:hover{background:var(--surface-hover);}
.jn-lab-row input{accent-color:var(--accent);margin:0;}
.jn-due-s{margin-left:auto;padding-left:14px;color:var(--chrome-ink-3);
  font-size:11.5px;}
.jn-due-pick{display:flex;gap:5px;padding:6px 4px;align-items:center;}
.jn-due-pick input{min-width:0;height:30px;box-sizing:border-box;
  border:1px solid var(--chrome-line);border-radius:7px;padding:0 6px;
  background:var(--chrome-0);color:var(--chrome-ink);font:12px var(--sans);
  color-scheme:dark;}
body.light .jn-due-pick input{color-scheme:light;}
.jn-due-pick input[type="date"]{flex:1 1 112px;}
.jn-due-pick input[type="time"]{flex:0 0 88px;}
/* --- A daily note's days, and the calendar beside the board --- */
.jn-ed-day{display:flex;align-items:center;gap:2px;padding:6px 44px 0 10px;}
.jn-ed-day[hidden]{display:none;}
.jn-ed-day .jn-btn{border-color:transparent;background:transparent;
  color:inherit;padding:5px 7px;font-size:11.5px;}
.jn-ed-day .jn-btn:hover{
  background:color-mix(in srgb,var(--chrome-ink) 12%,transparent);}
.jn-cal{flex:0 0 268px;min-width:0;box-sizing:border-box;overflow-y:auto;
  padding:16px 16px 28px;border-left:1px solid var(--chrome-line);
  display:flex;flex-direction:column;gap:10px;}
.jn-cal[hidden]{display:none;}
.jn-cal-top{display:flex;align-items:center;gap:8px;min-height:28px;}
.jn-cal-h{flex:1 1 auto;margin:0 2px;font:600 15px/1.3 var(--sans);
  color:var(--chrome-ink);white-space:nowrap;}
.jn-cal-top .jn-btn{padding:4px 8px;font-size:11.5px;}
.jn-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;}
.jn-cal-wd{text-align:center;font:600 11px/22px var(--sans);
  color:var(--chrome-ink-3);}
/* (design pass 57: the days plain, in the second ink -- 35 bold numbers
   in the first were the loudest thing on the page; a day with a note, and
   today, stand out from them) */
.jn-cal-d{position:relative;height:31px;min-width:0;padding:0;border:0;
  border-radius:7px;background:transparent;color:var(--chrome-ink-2);
  font:400 12.5px var(--sans);cursor:pointer;font-variant-numeric:tabular-nums;}
.jn-cal-d:hover{background:var(--surface-hover);color:var(--chrome-ink);}
.jn-cal-d.out{color:var(--chrome-ink-3);}
.jn-cal-d.is-today{color:var(--chrome-ink);font-weight:600;}
.jn-cal-d.has-note{font-weight:600;color:var(--chrome-ink);
  background:color-mix(in srgb,var(--accent) 24%,transparent);}
.jn-cal-d.has-note:hover{background:color-mix(in srgb,var(--accent) 34%,transparent);}
.jn-cal-d.is-today{box-shadow:inset 0 0 0 1.5px var(--accent);}
.jn-cal-d.has-due::after,.jn-cal-kd{content:"";position:absolute;left:50%;
  bottom:4px;width:12px;height:2.5px;margin-left:-6px;border-radius:2px;
  background:var(--warning);}
.jn-cal-d.on{background:var(--accent);color:var(--on-accent);}
.jn-cal-d.on.has-due::after{background:var(--on-accent);}
.jn-cal-d:focus-visible{outline:2px solid var(--focus);outline-offset:1px;}
.jn-cal-nav{display:flex;align-items:center;gap:6px;}
.jn-cal-nav .jn-btn{padding:5px 9px;font-size:11.5px;}
.jn-cal-key{display:flex;flex-wrap:wrap;gap:4px 14px;padding:0 2px;
  font:11.5px var(--sans);color:var(--chrome-ink-2);}
.jn-cal-k{display:inline-flex;align-items:center;gap:6px;}
.jn-cal-kn,.jn-cal-kd,.jn-cal-kt{display:inline-block;flex:none;}
.jn-cal-kt{width:12px;height:12px;border-radius:3px;box-sizing:border-box;
  box-shadow:inset 0 0 0 1.5px var(--accent);}
.jn-cal-key{gap:4px 12px;}
.jn-cal-kn{width:12px;height:12px;border-radius:3px;
  background:color-mix(in srgb,var(--accent) 34%,transparent);}
.jn-cal-kd{position:static;margin:0;}
.jn-cal-day{display:flex;flex-direction:column;gap:3px;margin-top:6px;
  padding-top:12px;border-top:1px solid var(--chrome-line);}
.jn-cal-dh{margin:0 2px 4px;font:600 13px/1.3 var(--sans);
  color:var(--chrome-ink);}
.jn-cal-sh{margin:8px 2px 1px;font:600 11.5px var(--sans);
  color:var(--chrome-ink-3);}
.jn-cal-row{display:flex;align-items:flex-start;gap:9px;width:100%;
  box-sizing:border-box;padding:6px 8px;border:0;border-radius:7px;
  background:transparent;color:var(--chrome-ink);cursor:pointer;
  text-align:left;font:13px/1.35 var(--sans);}
.jn-cal-row:hover{background:var(--surface-hover);}
.jn-cal-row:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;}
.jn-cal-row .bic{width:14px;height:14px;flex:none;margin-top:2px;opacity:.8;}
.jn-cal-rt{display:flex;flex-direction:column;min-width:0;}
.jn-cal-rn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.jn-cal-rs{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:12px;color:var(--chrome-ink-3);}
.jn-cal-note{background:color-mix(in srgb,var(--accent) 14%,transparent);}
.jn-cal-write{align-self:flex-start;}
@media (max-width:900px){.jn>.jn-cal{display:none;}}
/* The calendar as a pop-up from Calendar on File control's Notes and the
   Notes pane's bar (59g jnCalPop) */
.sh-menu.jn-calmenu{width:auto;max-width:none;min-width:0;padding:6px;}
.jn-cal.jn-cal-pop{flex:none;width:268px;overflow:visible;
  padding:8px 8px 10px;border-left:0;}
/* A type's table in the Notes pane scrolls sideways in its box */
.jn-k-pane .jn-tbl-wrap{margin-bottom:12px;}
.jn-k-pane .jn-tbl-top{gap:6px;}
.jn-k-pane .jn-tbl{min-width:480px;}
/* --- Links to notes in a note's text, and the [[ list (59e) --- */
.jn-nl{color:var(--accent);text-decoration:none;cursor:pointer;
  border-bottom:1px solid color-mix(in srgb,var(--accent) 45%,transparent);}
.jn-nl:hover{border-bottom-color:currentColor;}
.jn-nl:focus-visible{outline:2px solid var(--focus);outline-offset:1px;
  border-radius:2px;}
.jn-nl-gone{color:var(--chrome-ink-3);border-bottom-style:dashed;}
.jn-ac{position:fixed;z-index:235;max-height:min(330px,52vh);overflow-y:auto;
  box-sizing:border-box;padding:4px;border:1px solid var(--border-strong);
  border-radius:9px;background:var(--chrome-2);color:var(--chrome-ink);
  box-shadow:0 12px 34px #00000059;font:13px/1.3 var(--sans);}
.jn-ac-h{padding:5px 8px 4px;font:600 11px var(--sans);
  color:var(--chrome-ink-3);}
.jn-ac-none{padding:6px 8px 8px;color:var(--chrome-ink-3);}
.jn-ac-row{display:flex;align-items:flex-start;gap:9px;width:100%;
  box-sizing:border-box;border:0;border-radius:6px;background:transparent;
  color:inherit;text-align:left;padding:6px 8px;cursor:pointer;font:inherit;}
.jn-ac .jn-ac-row .bic{width:14px;height:14px;flex:none;margin-top:1px;
  opacity:.75;}
.jn-ac-row.on{background:color-mix(in srgb,var(--accent) 22%,transparent);}
.jn-ac-w{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.jn-ac-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-weight:500;}
.jn-ac-s,.jn-ac-p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:11.5px;color:var(--chrome-ink-3);}
.jn-ac-p{flex:0 1 auto;max-width:42%;margin-top:1px;}
.jn-ac-make .jn-ac-t{color:var(--accent);}
.jn-ed-back{padding:8px 12px 0;}
.jn-ed-back .jn-btn{border-color:transparent;background:transparent;
  color:inherit;padding:5px 6px;font-size:11.5px;max-width:100%;}
.jn-ed-back .jn-btn>span{overflow:hidden;text-overflow:ellipsis;}
.jn-ed-back .jn-btn:hover{
  background:color-mix(in srgb,var(--chrome-ink) 12%,transparent);}
/* --- What links to a note, shown under it (59e) --- */
.jn-refs{margin:4px 18px 10px;padding-top:10px;
  border-top:1px solid color-mix(in srgb,var(--chrome-ink) 13%,transparent);}
.jn-refs[hidden]{display:none;}
.jn-ed.is-ro .jn-refs{pointer-events:auto;}
.jn-refs-cols{display:flex;gap:14px;align-items:flex-start;}
.jn-refs-lists{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;
  gap:6px;}
.jn-refs-side{flex:0 0 220px;min-width:0;}
.jn-refs-side[hidden]{display:none;}
.jn-refs-g>summary{list-style:none;}
.jn-refs-g>summary::-webkit-details-marker{display:none;}
.jn-refs-h{display:flex;align-items:center;gap:7px;cursor:pointer;
  padding:4px 0;font:600 12px var(--sans);color:var(--chrome-ink-2);}
.jn-refs-h::before{content:"";flex:none;width:0;height:0;border-style:solid;
  border-width:4px 0 4px 6px;
  border-color:transparent transparent transparent currentColor;}
.jn-refs-g[open]>.jn-refs-h::before{border-width:6px 4px 0 4px;
  border-color:currentColor transparent transparent transparent;}
.jn-refs-n{font-weight:400;color:var(--chrome-ink-3);}
.jn-refs-list{list-style:none;margin:2px 0 4px;padding:0;display:flex;
  flex-direction:column;gap:2px;}
.jn-ref{display:flex;align-items:flex-start;gap:6px;}
.jn-ref-go{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;
  gap:2px;border:0;border-radius:7px;background:transparent;color:inherit;
  text-align:left;padding:6px 8px;cursor:pointer;font:inherit;}
.jn-ref-go:hover{background:color-mix(in srgb,var(--chrome-ink) 9%,transparent);}
.jn-ref-go:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;}
.jn-ref-top{display:flex;align-items:center;gap:7px;min-width:0;}
.jn-ref-top .bic{width:13px;height:13px;flex:none;opacity:.7;}
.jn-ref-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font:600 12.5px/1.3 var(--sans);}
.jn-ref-p{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;margin-left:auto;font:11.5px var(--sans);
  color:var(--chrome-ink-3);}
.jn-ref-l{display:block;padding-left:20px;font:12.5px/1.45 var(--sans);
  color:var(--chrome-ink-2);overflow-wrap:anywhere;}
.jn-ref-l b{color:var(--chrome-ink);font-weight:600;}
.jn-ref-none{padding:4px 8px 6px;font:12.5px/1.45 var(--sans);
  color:var(--chrome-ink-3);}
.jn-ref .jn-ref-link{flex:none;margin-top:4px;}
.lb-tx p.jn-here{outline:2px solid var(--accent);outline-offset:3px;
  border-radius:2px;}
/* --- The graph (59f) --- */
.jn-graph{position:relative;width:100%;height:100%;min-height:200px;
  border:1px solid var(--chrome-line);border-radius:10px;overflow:hidden;
  background:var(--chrome-0);
  --jn-graph-line:color-mix(in srgb,var(--chrome-ink) 30%,transparent);
  --jn-graph-dot:color-mix(in srgb,var(--chrome-ink) 55%,var(--chrome-0));}
.jn-graph-cv{display:block;width:100%;height:100%;cursor:grab;outline:0;
  touch-action:none;}
.jn-graph-cv:focus-visible{box-shadow:inset 0 0 0 2px var(--focus);}
.jn-graph-tip{position:absolute;z-index:2;max-width:320px;pointer-events:none;
  padding:5px 8px;border-radius:6px;background:var(--chrome-2);
  border:1px solid var(--border-strong);color:var(--chrome-ink);
  font:12px/1.35 var(--sans);box-shadow:0 6px 18px #00000040;}
.jn-graph-tip[hidden]{display:none;}
.jn-graph.is-small{height:200px;min-height:0;border-radius:8px;}
.jn-gbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  padding:0 0 10px;font:12px var(--sans);color:var(--chrome-ink-2);}
.jn-gbar label{display:inline-flex;align-items:center;gap:6px;}
.jn-gbar .jn-btn{padding:4px 8px;}
.jn-gsay{margin-left:auto;color:var(--chrome-ink-3);white-space:nowrap;}
.jn-graphing .jn-take{display:none;}
.jn-k-page.jn-graphing .jn-main{display:flex;flex-direction:column;
  padding-bottom:16px;}
.jn-k-page.jn-graphing .jn-list{flex:1 1 auto;min-height:340px;display:flex;
  flex-direction:column;}
.jn-k-page.jn-graphing .jn-graph-hold{flex:1 1 auto;min-height:0;display:flex;
  flex-direction:column;}
.jn-k-page.jn-graphing .jn-graph-hold>.jn-graph{flex:1 1 auto;height:auto;}
.jn-k-control.jn-graphing .jn-graph-hold>.jn-graph{height:480px;}
.jn-k-pane.jn-graphing .jn-graph-hold>.jn-graph{height:380px;}
/* the graph wants the room: the calendar steps aside on a narrow window */
@media (max-width:1250px){.jn-graphing>.jn-cal{display:none;}}
.jn-refs-gh{cursor:default;}
.jn-refs-gh::before{content:none;}
/* --- Tags in a note's text (59e) --- */
.jn-tag{color:var(--accent);cursor:pointer;border-radius:4px;padding:0 2px;
  margin:0 -2px;background:color-mix(in srgb,var(--accent) 12%,transparent);}
.jn-tag:hover{background:color-mix(in srgb,var(--accent) 24%,transparent);}
.jn-tag:focus-visible{outline:2px solid var(--focus);outline-offset:1px;}
::highlight(jn-tag){color:var(--accent);
  background-color:color-mix(in srgb,var(--accent) 12%,transparent);}
.jn-nav-sub{padding-left:calc(10px + var(--jn-d,1) * 16px);}
/* --- A note's type and properties, the board by type, the table --- */
.jn-col.jn-nav-type .bic,.jn-typemenu .jn-col .bic,.jn-sec-ic.jn-col,
.jn-ctype.jn-col .bic,.jn-type-h .bic,.jn-tbl-h.jn-col .bic,.jn-title-ic.jn-col .bic,
.jn-type-ics.jn-col .jn-type-ic.on{color:var(--jn);}
.jn-ed-props{padding:2px 18px 6px;}
.jn-ed-props[hidden]{display:none;}
.jn-type-h{display:inline-flex;align-items:center;gap:6px;margin:0 0 6px -6px;
  padding:3px 6px;border:0;border-radius:6px;background:transparent;
  color:var(--chrome-ink-2);font:600 12px var(--sans);cursor:pointer;}
.jn-type-h:hover:not(:disabled){background:color-mix(in srgb,var(--chrome-ink) 12%,transparent);}
.jn-type-h .bic{width:15px!important;height:15px!important;}
.jn-props{display:grid;grid-template-columns:minmax(90px,max-content) minmax(0,1fr);
  gap:3px 14px;align-items:center;}
.jn-prop-n{font:12.5px/1.3 var(--sans);color:var(--chrome-ink-2);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px;}
.jn-prop-v{min-width:0;display:flex;align-items:center;min-height:30px;}
/* A note's own fields: Add field beneath them, an x beside each */
.jn-prop-v .jn-prop-del{margin-left:4px;flex:none;}
.jn-prop-foot{display:flex;margin:4px 0 0 -6px;}
.jn-prop-foot .dbtn{font-size:12.5px;}
.jn-fieldask{min-width:280px;}
.jn-fa-row{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;
  gap:8px;padding:4px 10px;font:12.5px var(--sans);color:var(--chrome-ink-2);}
.jn-fa-row[hidden]{display:none;}
.jn-fa-row .jn-lab-q{margin:0;width:100%;box-sizing:border-box;}
.jn-fa-row .rbn-sel{width:100%;}
.jn-fa-foot{display:flex;justify-content:flex-end;padding:6px 10px 4px;}
.jn-prop-in,.jn-prop-sel{width:100%;max-width:340px;box-sizing:border-box;
  height:28px;border:1px solid transparent;border-radius:6px;
  background:transparent;color:inherit;font:13px var(--sans);padding:0 7px;}
.jn-prop-in:hover,.jn-prop-sel:hover{border-color:var(--chrome-line);}
.jn-prop-in:focus,.jn-prop-sel:focus{outline:0;border-color:var(--accent);
  background:var(--chrome-0);}
.jn-prop-in::placeholder{color:var(--chrome-ink-3);}
/* The open note's fields read as text, not a form: a choice has no box
   until the pointer or keys are on it, and an empty date or link is as
   quiet as an empty text field. */
.jn-props .rbn-sel.jn-prop-sel,.jn-tbl td .rbn-sel.jn-prop-sel,
.jn-subs .rbn-sel.jn-prop-sel{
  border-color:transparent;background-color:transparent;box-shadow:none;}
.jn-props .rbn-sel.jn-prop-sel:hover,.jn-tbl td .rbn-sel.jn-prop-sel:hover,
.jn-subs .rbn-sel.jn-prop-sel:hover{border-color:var(--chrome-line);}
.jn-props .rbn-sel.jn-prop-sel:focus,.jn-tbl td .rbn-sel.jn-prop-sel:focus,
.jn-subs .rbn-sel.jn-prop-sel:focus{
  border-color:var(--accent);background-color:var(--chrome-0);}
.jn-prop-in.is-empty:not(:focus),.jn-prop-sel.is-empty:not(:focus){
  color:var(--chrome-ink-3);}
/* (design pass 33: an empty date is faint, its calendar button there as it
   is pointed at -- dd/mm/yyyy and a calendar on every row of a table's
   Start was a column of noise) */
.jn-prop-in[type=date].is-empty:not(:focus)::-webkit-datetime-edit{opacity:.45;}
.jn-prop-in[type=date].is-empty:not(:focus):not(:hover)::-webkit-calendar-picker-indicator{
  opacity:0;}
.jn-props .jn-prop-add,.jn-tbl td .jn-prop-add{border-color:transparent!important;
  background:transparent!important;color:var(--chrome-ink-3)!important;
  font-weight:400!important;}
.jn-props .jn-prop-add:hover,.jn-tbl td .jn-prop-add:hover{color:var(--chrome-ink)!important;
  border-color:var(--chrome-line)!important;}
.jn-props{gap:1px 14px;}
.jn-prop-v{min-height:28px;}
.jn-prop-foot .dbtn{border-color:transparent;background:transparent;
  color:var(--chrome-ink-2);}
.jn-prop-foot .dbtn:hover{border-color:var(--chrome-line);color:var(--chrome-ink);}
/* (a note's words are on the theme's own colours, not a page's: the Styles
   tiles show them so -- they were near black on the light ribbon) */
.deck.kind-notes .rbn-lbstyles .lb-st{background:var(--chrome-0);
  color:var(--chrome-ink);border-color:var(--chrome-line);}
.deck.kind-notes .rbn-lbstyles .lb-st[aria-pressed="true"]{background:var(--chrome-0);
  color:var(--chrome-ink);border-color:var(--cyan);}
.jn-prop-in[type="date"],.jn-tbl .jn-prop-in[type="date"]{color-scheme:dark;}
body.light .jn-prop-in[type="date"]{color-scheme:light;}
.jn-prop-tick{width:16px;height:16px;margin:0 7px;accent-color:var(--accent);}
.jn-prop-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px;
  min-width:0;padding:2px 0;}
.jn-prop-link{display:inline-flex;align-items:center;max-width:100%;
  border:1px solid var(--chrome-line);border-radius:6px;padding:0 2px 0 0;}
.jn-prop-lk{border:0;background:transparent;color:var(--accent);cursor:pointer;
  font:13px var(--sans);padding:3px 6px;max-width:220px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.jn-prop-lk:hover:not(:disabled){text-decoration:underline;}
.jn-prop-add{padding:3px 7px!important;font-size:11.5px!important;}
.jn-ed-acts .jn-type-b{font-weight:600;}
/* on a card */
.jn-cprops{display:flex;flex-direction:column;gap:1px;margin:2px 0 6px;}
.jn-ctype{display:flex;align-items:center;gap:5px;font:600 11.5px var(--sans);
  color:var(--chrome-ink-2);}
.jn-ctype .bic{width:13px!important;height:13px!important;}
.jn-title-ic{display:inline-flex;vertical-align:-2px;margin-right:6px;
  color:var(--chrome-ink-2);}
.jn-title-ic .bic{width:15px!important;height:15px!important;}
.jn-cprop{display:flex;gap:6px;min-width:0;font:12.5px/1.45 var(--sans);}
.jn-cprop-n{flex:none;color:var(--chrome-ink-3);}
.jn-cprop-v{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.jn-sec-ic{display:inline-flex;}
.jn-sec-ic .bic{width:14px;height:14px;}
/* the table */
/* Board: the notes in columns (59k-notes-kanban.js). The column heads
   appear once, then a row of cells for each row (one if there are none). */
.jn-kb{display:flex;flex-direction:column;gap:10px;min-width:0;}
.jn-kb-top{display:flex;align-items:center;gap:10px;min-width:0;}
.jn-kb-say{font:12.5px var(--sans);color:var(--chrome-ink-3);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;min-width:0;}
.jn-kb-scroll{overflow-x:auto;min-width:0;padding:0 0 10px;}
.jn-kb-in{display:inline-flex;flex-direction:column;gap:8px;min-width:100%;
  vertical-align:top;}
.jn-kb-heads,.jn-kb-cols{display:flex;gap:12px;}
/* (design pass 27: the columns share the room there is, as wide as 340 px) */
.jn-kb-head,.jn-kb-col{flex:1 0 248px;max-width:340px;box-sizing:border-box;
  min-width:0;}
.jn-kb-head{display:flex;align-items:center;gap:8px;padding:0 2px 0 10px;}
.jn-kb-head .jn-sec-t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.jn-kb-head .jn-kb-new{flex:none;}
/* (design pass 59: a column's New is quiet until pointed at -- a boxed New
   over every column was a row of buttons over the notes) */
.jn-kb-head .jn-btn.jn-kb-new{border-color:transparent;background:transparent;
  color:var(--chrome-ink-2);}
.jn-kb-head .jn-btn.jn-kb-new:hover,.jn-kb-head .jn-btn.jn-kb-new:focus-visible{
  border-color:var(--chrome-line);color:var(--chrome-ink);}
.jn-kb-sw{flex:none;width:12px;height:12px;border-radius:50%;background:var(--jn);}
.jn-kb-lane{display:flex;flex-direction:column;gap:6px;}
.jn-kb-lane-h{position:sticky;left:0;align-self:flex-start;display:inline-flex;
  align-items:center;gap:8px;padding:6px 4px 0;}
.jn-kb-lane-t{margin:0;font:600 13px var(--sans);color:var(--chrome-ink);}
.jn-kb-cols{align-items:stretch;}
.jn-kb-col{display:flex;flex-direction:column;padding:8px;border-radius:12px;
  min-height:56px;background:color-mix(in srgb,var(--chrome-ink) 5%,transparent);}
.jn-kb-col.over{background:color-mix(in srgb,var(--accent) 16%,transparent);}
.jn-kb-list{flex:1 1 auto;display:flex;flex-direction:column;gap:8px;min-height:36px;}
.jn-kb-list .jn-card{position:relative;width:auto!important;left:auto!important;
  top:auto!important;}
.jn-kb-list .jn-card:not(.ghost){cursor:grab;}
.jn-kb-mark{height:3px;border-radius:2px;background:var(--accent);flex:none;}
/* design pass 42: a search's notes found, and its words in them */
.jn-fsay{font:13px var(--sans);color:var(--chrome-ink-2);padding:2px 2px 0;}
.jn-hit{background:color-mix(in srgb,var(--accent) 40%,transparent);color:inherit;
  border-radius:2px;}
/* design pass 38: when a note in the bin goes */
.jn-binwhen{padding:0 14px 10px;font:12px/1.3 var(--sans);color:var(--chrome-ink-3);}
/* design pass 23: an empty page's imports */
.jn-empty-in{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;}
/* design pass 5: how to begin, under an empty board's words */
.jn-empty-how{margin:-4px 0 0;max-width:420px;text-align:center;
  font:13px/1.45 var(--sans);color:var(--chrome-ink-3);}
/* A notes list shown as a board, inside a note */
.jn-nq-board{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;}
.jn-nq-col{flex:0 0 190px;display:flex;flex-direction:column;gap:5px;padding:6px;
  border-radius:9px;background:color-mix(in srgb,var(--chrome-ink) 5%,transparent);}
.jn-nq-colh{display:flex;align-items:center;gap:6px;padding:0 2px 2px;}
.jn-nq-colt{font:600 12px var(--sans);color:var(--chrome-ink-2);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;}
.jn-nq-col .jn-nq-card{display:flex;flex-direction:column;align-items:flex-start;
  gap:2px;text-align:left;}
.jn-nq-col .jn-nq-card .jn-ckey{align-self:flex-start;}
/* Gallery: each note is a tile of one height, with its first picture as the
   cover, else its first text larger */
.jn.is-gallery .jn-list .jn-card{height:286px;}
.jn.is-gallery .jn-card-in{display:flex;flex-direction:column;height:100%;}
.jn.is-gallery .jn-pics{flex:0 0 160px;height:160px;overflow:hidden;flex-wrap:nowrap;}
.jn.is-gallery .jn-pics img{width:100%!important;height:100%!important;max-height:none;
  flex:1 1 100%!important;aspect-ratio:auto!important;object-fit:cover;}
.jn.is-gallery .jn-pics img~img{display:none;}
.jn.is-gallery .jn-words{flex:1 1 auto;min-height:0;overflow:hidden;}
.jn.is-gallery .jn-card-in:not(:has(>.jn-pics)) .jn-body{font-size:15.5px;
  line-height:1.45;}
.jn.is-gallery .jn-chips{flex:none;}
/* A note's key, progress and sub-tasks */
/* (design pass 59: in the plain weight -- a key in bold capitals on every
   card of a board was a column of shouting) */
.jn-ckey{font:400 11.5px var(--mono,var(--sans));color:var(--chrome-ink-3);
  white-space:nowrap;align-self:center;}
.jn-chips .jn-ckey{margin-left:auto;}
.jn-type-row{display:flex;align-items:center;gap:10px;}
.jn-subs{display:flex;flex-direction:column;gap:4px;margin:10px 0 4px;}
.jn-subs-h{display:flex;align-items:center;gap:8px;}
.jn-subs-t{font:600 12.5px var(--sans);color:var(--chrome-ink-2);}
.jn-sub{display:flex;align-items:center;gap:8px;min-width:0;}
.jn-sub .jn-prop-sel{flex:0 0 120px;}
.jn-sub-n{min-width:0;padding:3px 4px;border:0;background:none;cursor:pointer;
  color:var(--chrome-ink);font:13.5px var(--sans);text-align:left;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.jn-sub-n:hover{text-decoration:underline;}
.jn-sub-n.done{color:var(--chrome-ink-3);text-decoration:line-through;}
.jn-sub-add input{width:100%;box-sizing:border-box;}
/* Dates: a month view and a timeline (59m-notes-dates.js) */
.jn-dt{display:flex;flex-direction:column;gap:12px;min-width:0;}
.jn-dt-top{flex-wrap:nowrap;}
.jn-dt-seg .dbtn.fdp-viewb{padding:5px 8px;gap:5px;}
.jn-dt-month{margin:0;min-width:9.5em;text-align:center;
  font:600 15px var(--sans);color:var(--chrome-ink);white-space:nowrap;}
/* (design pass 59: the month in lines, as a wall calendar is -- 42 grey
   tiles were a wall of boxes round a few notes) */
.jn-dt-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;}
.jn-dt-wd{padding:0 8px 4px;font:600 12px var(--sans);color:var(--chrome-ink-3);}
.jn-dt-cell{min-height:80px;min-width:0;box-sizing:border-box;padding:5px 6px;
  display:flex;flex-direction:column;gap:3px;
  border-top:1px solid var(--chrome-line);border-left:1px solid var(--chrome-line);}
.jn-dt-cell:nth-child(7n+1){border-left:0;}
.jn-dt-cell.is-out>*{opacity:.5;}
.jn-dt-cell.is-today .jn-dt-dn{background:var(--accent);color:var(--on-accent);}
.jn-dt-cell.over,.jn-dt-tray.over{
  background:color-mix(in srgb,var(--accent) 18%,transparent);}
.jn-dt-dn{align-self:flex-start;min-width:20px;padding:1px 5px;border-radius:10px;
  box-sizing:border-box;text-align:center;font:600 12px var(--sans);
  color:var(--chrome-ink-2);}
.jn-dt-chip{display:flex;align-items:center;min-width:0;padding:3px 7px;
  border-radius:6px;cursor:pointer;font:12.5px/1.3 var(--sans);
  color:var(--chrome-ink);border:1px solid var(--jn-bd,var(--jn-line));
  background:var(--jn-bg,var(--jn-paper));}
.jn-dt-chip.can{cursor:grab;}
.jn-dt-chip:hover{border-color:var(--border-strong);}
.jn-dt-chip:focus-visible{outline:2px solid var(--focus);outline-offset:1px;}
.jn-dt-chip.drag,.jn-dt-bar.drag{opacity:.45;}
.jn-dt-chip-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.jn-dt-more{align-self:flex-start;padding:1px 6px!important;font-size:12px!important;
  border-color:transparent!important;background:transparent!important;
  color:var(--chrome-ink-2)!important;}
.jn-dt-more:hover{color:var(--chrome-ink)!important;border-color:var(--chrome-line)!important;}
.jn-dt-tray>.jn-kb-h{display:flex;align-items:center;gap:8px;padding:0 2px;}
.jn-dt-tray{display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:12px;
  background:color-mix(in srgb,var(--chrome-ink) 5%,transparent);}
.jn-dt-tray-l{display:flex;flex-wrap:wrap;gap:6px;}
.jn-dt-tray-l .jn-dt-chip{max-width:240px;}
.jn-dt-line{display:flex;min-width:0;border-radius:12px;overflow:hidden;
  background:color-mix(in srgb,var(--chrome-ink) 4%,transparent);}
.jn-dt-names{flex:0 0 190px;display:flex;flex-direction:column;
  border-right:1px solid var(--chrome-line);}
.jn-dt-nh{height:40px;box-sizing:border-box;padding:12px 10px 0;
  font:600 12px var(--sans);color:var(--chrome-ink-3);}
.jn-dt-name{height:34px;flex:none;padding:0 10px;border:0;background:none;
  color:var(--chrome-ink);font:13px var(--sans);text-align:left;cursor:pointer;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.jn-dt-name:hover{background:color-mix(in srgb,var(--chrome-ink) 8%,transparent);}
.jn-dt-scroll{flex:1 1 auto;min-width:0;overflow-x:auto;}
.jn-dt-track{position:relative;min-height:80px;padding-top:40px;}
.jn-dt-track.over{background:color-mix(in srgb,var(--accent) 10%,transparent);}
.jn-dt-scale{position:absolute;left:0;right:0;top:0;height:40px;
  border-bottom:1px solid var(--chrome-line);}
.jn-dt-mon{position:absolute;top:4px;padding-left:4px;white-space:nowrap;
  font:600 12px var(--sans);color:var(--chrome-ink-2);}
.jn-dt-tick{position:absolute;top:22px;padding-left:3px;font:11px var(--sans);
  color:var(--chrome-ink-3);border-left:1px solid var(--chrome-line);height:18px;
  box-sizing:border-box;}
.jn-dt-now{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;
  background:var(--accent);opacity:.7;z-index:1;}
.jn-dt-lane{position:relative;height:34px;}
.jn-dt-bar{position:absolute;top:5px;height:24px;box-sizing:border-box;
  display:flex;align-items:center;padding:0 8px;border-radius:6px;cursor:pointer;
  font:12.5px var(--sans);color:var(--chrome-ink);overflow:hidden;
  border:1px solid var(--jn-bd,var(--border-strong));
  background:var(--jn-bg,color-mix(in srgb,var(--accent) 30%,var(--chrome-2)));}
.jn-dt-bar.can{cursor:grab;}
.jn-dt-bar-t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.jn-dt-end{position:absolute;top:0;bottom:0;width:7px;cursor:ew-resize;}
.jn-dt-end.l{left:0;}
.jn-dt-end.r{right:0;}
.jn-dt-empty{padding:16px;}
/* Edit views rows: the view's icon, its name, Open, Update, Delete */
.jn-views-row .jn-views-ic{display:inline-flex;flex:none;color:var(--chrome-ink-2);}
.jn-views-row .jn-views-ic .bic{width:16px;height:16px;}
.jn-views-row input{flex:1 1 auto;min-width:0;}
.jn-views{width:min(620px,calc(100vw - 32px));}
/* A column's head opens its menu */
.jn-kb-hb{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;
  margin-left:-6px;padding:4px 6px;border:0;border-radius:7px;background:none;
  color:inherit;font:inherit;cursor:pointer;text-align:left;}
.jn-kb-hb:hover,.jn-kb-hb:focus-visible{
  background:color-mix(in srgb,var(--chrome-ink) 10%,transparent);}
.jn-kb-car{flex:none;font-size:10px;color:var(--chrome-ink-3);}
.jn-kb-head.is-over{border-radius:8px;
  background:color-mix(in srgb,var(--warning,#d9822b) 16%,transparent);}
.jn-kb-head.is-over .jn-sec-n{color:var(--warning,#d9822b);font-weight:600;}
.jn-kb-head.is-fold,.jn-kb-col.is-fold{flex:0 0 46px;}
/* (its name upright hangs down over its own empty column: in the row of
   heads it made every head as tall as itself) */
.jn-kb-head.is-fold{position:relative;align-self:stretch;padding:0;}
.jn-kb-head.is-fold .jn-kb-hb{position:absolute;top:2px;left:2px;z-index:1;
  writing-mode:vertical-rl;margin:0;padding:8px 6px;white-space:nowrap;}
.jn-kb-col.is-fold{min-height:140px;}
.jn-kb-head.is-fold .jn-spring{display:none;}
.jn-kb-col.is-fold .jn-kb-list{display:none;}
.jn-kb-old{align-self:flex-start;margin-top:8px;font-size:12px;}
.jn-tbl-wrap{display:flex;flex-direction:column;gap:8px;}
.jn-tbl-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
/* (design pass 16: the same row over a type's or a label's cards) */
.jn-view-top{margin:0 0 10px;}
.jn-tbl-h{display:inline-flex;align-items:center;gap:7px;margin:0;
  font:600 15px var(--sans);color:var(--chrome-ink);}
.jn-tbl-h .bic{width:16px;height:16px;}
.jn-tbl-scroll{overflow-x:auto;border:1px solid var(--chrome-line);
  border-radius:10px;background:var(--chrome-2);}
.jn-tbl{border-collapse:collapse;width:100%;min-width:560px;
  font:13px var(--sans);color:var(--chrome-ink);}
.jn-tbl th,.jn-tbl td{border-bottom:1px solid var(--chrome-line);
  padding:3px 6px;text-align:left;vertical-align:middle;}
.jn-tbl th{padding:0;white-space:nowrap;}
.jn-tbl tbody tr:last-child td{border-bottom:0;}
.jn-tbl tbody tr:hover{background:var(--surface-hover);}
.jn-tbl-sort{display:inline-flex;align-items:center;gap:5px;width:100%;
  border:0;background:transparent;color:var(--chrome-ink-2);cursor:pointer;
  font:600 12px var(--sans);padding:9px 10px;text-align:left;}
.jn-tbl-sort:hover{color:var(--chrome-ink);}
.jn-tbl-sort .bic{width:12px;height:12px;}
.jn-tbl th[aria-sort] .jn-tbl-sort{color:var(--chrome-ink);}
.jn-tbl-f td{padding:4px 6px 6px;background:color-mix(in srgb,var(--chrome-ink) 4%,transparent);}
.jn-tbl-fi{width:100%;min-width:70px;box-sizing:border-box;height:26px;
  border:1px solid var(--chrome-line);border-radius:6px;background:var(--chrome-0);
  color:var(--chrome-ink);font:12px var(--sans);padding:0 6px;}
.jn-tbl-fi:focus{outline:0;border-color:var(--accent);}
.jn-tbl-open{border:0;background:transparent;color:var(--chrome-ink);
  cursor:pointer;font:600 13px var(--sans);padding:5px 4px;text-align:left;
  max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.jn-tbl-open:hover{color:var(--accent);text-decoration:underline;}
.jn-tbl td.jn-tbl-title{min-width:160px;}
.jn-tbl td.jn-tbl-at{white-space:nowrap;color:var(--chrome-ink-3);font-size:12px;}
.jn-tbl .jn-prop-in,.jn-tbl .jn-prop-sel{min-width:110px;}
.jn-tbl-none{padding:22px 12px!important;text-align:center!important;
  color:var(--chrome-ink-3);}
.jn-tbl :focus-visible{outline:2px solid var(--focus);outline-offset:-2px;}
/* (design pass 59: a table reads as a table of words -- every row's
   choices' arrows, its + Link a note and its date's calendar made twelve
   rows a form; they are on the row pointed at, or with the keys in it.
   Not on a screen without a pointer to point with) */
@media (hover:hover){
  .jn-tbl tbody tr:not(:hover):not(:focus-within) td .rbn-sel.jn-prop-sel{
    appearance:none;}
  .jn-tbl tbody tr:not(:hover):not(:focus-within) td .jn-prop-add{opacity:0;}
  .jn-tbl tbody tr:not(:hover):not(:focus-within) td
    .jn-prop-in[type=date]::-webkit-calendar-picker-indicator{opacity:0;}
}
/* Edit types */
.jn-types{width:min(780px,100%);max-height:84vh;display:flex;flex-direction:column;
  gap:10px;padding:16px;box-sizing:border-box;border-radius:12px;
  background:var(--chrome-2);border:1px solid var(--border-strong);
  color:var(--chrome-ink);box-shadow:0 18px 60px #00000080;}
.jn-types-hd{display:flex;align-items:center;gap:8px;}
.jn-types-cols{display:flex;gap:16px;min-height:0;flex:1 1 auto;}
.jn-types-list{flex:0 0 190px;display:flex;flex-direction:column;gap:1px;
  overflow-y:auto;padding-right:12px;border-right:1px solid var(--chrome-line);}
.jn-types-list .jn-btn{margin-top:8px;align-self:flex-start;}
.jn-types-one{flex:1 1 auto;min-width:0;overflow-y:auto;display:flex;
  flex-direction:column;gap:10px;}
.jn-type-row,.jn-type-optrow{display:flex;align-items:center;gap:12px;}
.jn-type-lab{flex:0 0 58px;font:12.5px var(--sans);color:var(--chrome-ink-2);}
.jn-type-name,.jn-type-pn,.jn-type-opts{flex:1 1 auto;min-width:0;height:32px;
  box-sizing:border-box;border:1px solid var(--chrome-line);border-radius:7px;
  background:var(--chrome-0);color:inherit;font:13px var(--sans);padding:0 9px;}
.jn-type-name:focus,.jn-type-pn:focus,.jn-type-opts:focus{outline:0;
  border-color:var(--accent);}
.jn-type-ics{display:flex;flex-wrap:wrap;gap:3px;}
.jn-type-ic{width:30px;height:30px;padding:0;display:inline-flex;
  align-items:center;justify-content:center;border:1px solid transparent;
  border-radius:7px;background:transparent;color:var(--chrome-ink-2);cursor:pointer;}
.jn-type-ic:hover{background:var(--surface-hover);color:var(--chrome-ink);}
.jn-type-ic.on{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 16%,transparent);}
.jn-type-ic .bic{width:16px;height:16px;}
.jn-type-sh{margin:6px 0 0;font:600 13px var(--sans);}
.jn-type-props{display:flex;flex-direction:column;gap:6px;}
.jn-type-prop{display:flex;align-items:center;gap:8px;}
/* design pass 50: a field's grip, to move it among its type's fields */
.jn-type-grip{flex:none;cursor:grab;color:var(--chrome-ink-3);font-size:15px;
  line-height:1;padding:0 2px;user-select:none;}
.jn-type-grip:hover{color:var(--chrome-ink);}
.jn-type-prop.is-moving{opacity:.55;}
.jn-type-prop.is-moving .jn-type-grip{cursor:grabbing;}
.jn-type-pk{flex:0 0 150px;height:32px!important;}
.jn-type-optrow{padding-left:12px;}
.jn-type-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding-top:6px;border-top:1px solid var(--chrome-line);}
@media (max-width:640px){
  .jn-types-cols{flex-direction:column;}
  .jn-types-list{flex:0 0 auto;border-right:0;padding-right:0;
    border-bottom:1px solid var(--chrome-line);padding-bottom:8px;}}
/* --- Templates, and a quick note --- */
.jn-ed-tplrow{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;
  padding:10px 44px 2px 18px;}
.jn-ed-tplrow[hidden]{display:none;}
.jn-tplrow-l{font:600 12px var(--sans);color:var(--chrome-ink-2);}
.jn-tplrow-name{flex:0 1 220px;min-width:0;height:28px;box-sizing:border-box;
  border:1px solid var(--chrome-line);border-radius:6px;background:var(--chrome-0);
  color:inherit;font:13px var(--sans);padding:0 8px;}
.jn-tplrow-name:focus{outline:0;border-color:var(--accent);}
.jn-tplrow-day{padding:4px 8px!important;font-size:11.5px!important;}
.jn-tplrow-day[aria-pressed="true"]{border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 22%,transparent);}
.jn-tplrow-hint{font:11.5px var(--sans);color:var(--chrome-ink-3);}
.jn-ctpl{display:flex;align-items:center;gap:6px;margin:0 22px 6px 0;
  font:600 11.5px var(--sans);color:var(--chrome-ink-2);}
.jn-ctpl .bic{width:13px!important;height:13px!important;}
.jn-tplstart{margin-top:6px;}
.jn-tplstart-row{display:flex;flex-wrap:wrap;gap:6px;}
.jn-tplstart-b.jn-col .bic{color:var(--jn);}
.jn-quick{padding-top:12vh;}
.jn-quick-box{width:min(660px,100%);display:flex;flex-direction:column;gap:10px;
  box-sizing:border-box;padding:12px;border-radius:14px;background:var(--chrome-1);
  border:1px solid var(--border-strong);box-shadow:0 18px 60px #00000080;}
.jn-quick-box>.jn-ed{box-shadow:none;}
.jn-quick-hd{display:flex;align-items:center;gap:10px;padding:0 4px;
  color:var(--chrome-ink);}
.jn-quick-h{margin:0;font:600 15px var(--sans);}
.jn-quick-to{font:12.5px var(--sans);color:var(--chrome-ink-2);}
.jn-quick-hd .jn-take-page{width:auto;}
.jn-quick-hd .rbn-sel{border:1px solid var(--chrome-line);
  background:var(--chrome-2);color:var(--chrome-ink);height:28px;
  border-radius:6px;font:12px var(--sans);padding:0 6px;max-width:260px;}
.jn-quick .jn-ed{max-height:70vh;}
/* --- Go to note (59i) --- */
.jn-goto{padding-top:12vh;}
.jn-goto-box{width:min(620px,100%);max-height:min(560px,76vh);display:flex;
  flex-direction:column;box-sizing:border-box;padding:8px;border-radius:12px;
  background:var(--chrome-2);color:var(--chrome-ink);
  border:1px solid var(--border-strong);box-shadow:0 18px 60px #00000080;
  font:13px/1.3 var(--sans);}
.jn-goto-q{display:flex;align-items:center;gap:8px;padding:2px 10px;
  border:1px solid var(--chrome-line);border-radius:8px;
  background:var(--chrome-1);}
.jn-goto-q .bic{width:15px;height:15px;flex:none;opacity:.7;}
.jn-goto-q input{flex:1;min-width:0;border:0;outline:0;background:transparent;
  color:inherit;font:15px/1.3 var(--sans);padding:9px 0;}
.jn-goto-list{flex:1 1 auto;min-height:0;overflow-y:auto;margin-top:6px;}
.jn-goto-h{padding:5px 8px 4px;font:600 11px var(--sans);
  color:var(--chrome-ink-3);}
.jn-goto-row{display:flex;align-items:center;gap:10px;width:100%;
  box-sizing:border-box;border:0;border-radius:6px;background:transparent;
  color:inherit;text-align:left;padding:7px 9px;cursor:pointer;font:inherit;}
.jn-goto-row .bic{width:15px;height:15px;flex:none;opacity:.75;}
.jn-goto-row.on{background:color-mix(in srgb,var(--accent) 22%,transparent);}
.jn-goto-row:hover:not(.on){
  background:color-mix(in srgb,var(--chrome-ink) 8%,transparent);}
.jn-goto-w{flex:1;min-width:0;display:flex;align-items:baseline;gap:8px;}
.jn-goto-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-weight:500;flex:0 1 auto;min-width:0;}
.jn-goto-as,.jn-goto-l,.jn-goto-p{overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-size:11.5px;color:var(--chrome-ink-3);}
.jn-goto-as,.jn-goto-l{flex:0 2 auto;min-width:0;}
.jn-goto-p{flex:0 1 auto;max-width:34%;}
.jn-goto-make .jn-goto-w{color:var(--accent);}
.jn-goto-foot{padding:8px 8px 2px;font:11.5px var(--sans);
  color:var(--chrome-ink-3);border-top:1px solid var(--chrome-line);
  margin-top:6px;}
/* --- Blocks in a note's text, embeds, a note as a page (59f2) --- */
.jn-body [data-st="h1"],.jn-ed-body [data-st="h1"],.jn-emb-b [data-st="h1"]{
  font:700 1.32em/1.3 var(--sans);margin:.5em 0 .25em;}
.jn-body [data-st="h2"],.jn-ed-body [data-st="h2"],.jn-emb-b [data-st="h2"]{
  font:700 1.16em/1.3 var(--sans);margin:.45em 0 .2em;}
.jn-body [data-st="h3"],.jn-ed-body [data-st="h3"],.jn-emb-b [data-st="h3"]{
  font:600 1.04em/1.35 var(--sans);margin:.4em 0 .15em;}
.jn-body p,.jn-ed-body p,.jn-emb-b p{margin:0;}
.jn-body [data-st="quote"],.jn-ed-body [data-st="quote"],
.jn-emb-b [data-st="quote"]{font-style:italic;color:var(--chrome-ink-2);
  padding:2px 12px;margin:2px 0;border-radius:6px;
  background:color-mix(in srgb,var(--chrome-ink) 7%,transparent);}
.jn-body [data-st="pre"],.jn-ed-body [data-st="pre"],.jn-emb-b [data-st="pre"]{
  font:12.5px/1.5 var(--mono,ui-monospace,monospace);white-space:pre-wrap;
  padding:1px 10px;background:color-mix(in srgb,var(--chrome-ink) 10%,transparent);}
.jn-body [data-st="pre"]+[data-st="pre"],.jn-ed-body [data-st="pre"]+[data-st="pre"]{
  padding-top:0;}
.jn-body [data-st="pre"]:not([data-st="pre"]+[data-st="pre"]),
.jn-ed-body [data-st="pre"]:not([data-st="pre"]+[data-st="pre"]){
  margin-top:4px;border-top-left-radius:6px;border-top-right-radius:6px;
  padding-top:5px;}
.jn-math{display:inline-block;cursor:pointer;border-radius:3px;padding:0 1px;}
.jn-math:hover{background:color-mix(in srgb,var(--accent) 16%,transparent);}
.jn-math.is-block{display:block;text-align:center;margin:4px 0;}
.jn-emb{display:block;margin:6px 0;border:1px solid var(--jn-bd,var(--chrome-line));
  border-radius:9px;background:var(--jn-bg,color-mix(in srgb,var(--chrome-ink) 5%,transparent));
  overflow:hidden;user-select:none;}
.jn-emb-h{display:flex;align-items:center;padding:4px 6px 0;}
.jn-emb-t{display:inline-flex;align-items:center;gap:6px;min-width:0;border:0;
  border-radius:6px;background:transparent;color:inherit;cursor:pointer;
  padding:4px 6px;font:600 12.5px/1.3 var(--sans);text-align:left;}
.jn-emb-t span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.jn-emb-t:hover:not(:disabled){
  background:color-mix(in srgb,var(--chrome-ink) 10%,transparent);}
.jn-emb-t .bic{width:13px;height:13px;flex:none;opacity:.7;}
.jn-emb-b{padding:2px 12px 9px;font:13px/1.5 var(--sans);max-height:22em;
  overflow:hidden;}
.jn-emb-b img{display:block;max-width:100%;max-height:180px;margin-top:6px;
  border-radius:4px;}
/* --- A notes list in a note's text (59j) --- */
.jn-nq{display:block;margin:6px 0;border:1px solid var(--chrome-line);
  border-radius:9px;background:color-mix(in srgb,var(--chrome-ink) 4%,transparent);
  overflow:hidden;user-select:none;font:13px/1.45 var(--sans);}
.jn-nq-h{display:flex;align-items:center;gap:8px;padding:6px 8px 4px 10px;
  color:var(--chrome-ink-2);font-size:12px;}
.jn-nq-h>.bic{width:14px;height:14px;flex:none;opacity:.75;}
.jn-nq-say{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-weight:600;color:var(--chrome-ink);}
.jn-nq-n{flex:none;color:var(--chrome-ink-3);}
.jn-nq-h .jn-btn{flex:none;padding:3px 8px;font-size:11.5px;}
.jn-nq>.jn-none-s{padding:2px 12px 10px;margin:0;}
.jn-nq-list{list-style:none;margin:0;padding:0 6px 8px;max-height:26em;
  overflow-y:auto;}
.jn-nq-list li{display:flex;align-items:baseline;gap:8px;min-width:0;}
.jn-nq-a{display:inline-flex;align-items:center;gap:6px;min-width:0;border:0;
  border-radius:5px;background:transparent;color:var(--accent);cursor:pointer;
  padding:3px 6px;font:inherit;text-align:left;}
.jn-nq-a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.jn-nq-a .bic{width:13px;height:13px;flex:none;opacity:.7;color:var(--chrome-ink);}
.jn-nq-a:hover{background:color-mix(in srgb,var(--chrome-ink) 10%,transparent);}
.jn-nq-s{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-size:11.5px;color:var(--chrome-ink-3);}
.jn-nq-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:6px;padding:2px 8px 8px;max-height:26em;overflow-y:auto;}
.jn-nq-card{display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left;
  border:1px solid var(--jn-bd,var(--chrome-line));border-radius:7px;
  background:var(--jn-bg,var(--chrome-2));color:var(--chrome-ink);cursor:pointer;
  padding:7px 9px;font:inherit;}
.jn-nq-card.jn-col{--jn-bg:color-mix(in srgb,var(--jn) 16%,var(--chrome-2));
  --jn-bd:color-mix(in srgb,var(--jn) 45%,var(--chrome-line));}
.jn-nq-ct{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.jn-nq-cw{font-size:12px;color:var(--chrome-ink-2);overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.jn-nq-tw{overflow-x:auto;padding:0 8px 8px;max-height:26em;overflow-y:auto;}
.jn-nq-tbl{border-collapse:collapse;width:100%;font-size:12.5px;}
.jn-nq-tbl th{text-align:left;font-weight:600;color:var(--chrome-ink-2);
  padding:4px 8px;border-bottom:1px solid var(--chrome-line);white-space:nowrap;}
.jn-nq-tbl td{padding:3px 8px;border-bottom:1px solid
  color-mix(in srgb,var(--chrome-line) 60%,transparent);white-space:nowrap;}
.jn-nq-tbl td .jn-nq-a{padding:1px 4px;}
.jn-nq-at{color:var(--chrome-ink-3);}
/* the page */
.jn-paging>.jn-main,.jn-paging>.jn-cal{display:none;}
.jn-pgv{flex:1 1 auto;min-width:0;min-height:0;display:flex;flex-direction:column;}
.jn-pgv-top{display:flex;align-items:center;gap:10px;padding:10px 22px 6px;
  font:12px var(--sans);color:var(--chrome-ink-3);}
.jn-pgv-top .jn-btn{border-color:transparent;background:transparent;
  color:var(--chrome-ink-2);padding:5px 8px;}
.jn-pgv-top .jn-btn:hover{color:var(--chrome-ink);background:var(--surface-hover);}
/* Back to the note a link was followed from: a long name ends in an
   ellipsis and the row stays one line */
.jn-pgv-top .jn-pgv-back{flex:0 1 auto;min-width:0;}
.jn-pgv-top .jn-pgv-back>span{overflow:hidden;text-overflow:ellipsis;}
.jn-pgv-where{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.jn-pgv-cols{flex:1 1 auto;min-height:0;display:flex;gap:18px;padding:0 22px 18px;}
.jn-pgv-main{flex:1 1 auto;min-width:0;min-height:0;display:flex;
  justify-content:center;}
.jn-pgv-main>.jn-ed{width:min(820px,100%);height:100%;box-shadow:none;}
.jn-pgv-side{flex:0 0 220px;min-width:0;overflow-y:auto;padding-top:4px;}
.jn-pgv-oh{margin:0 0 6px;font:600 12px var(--sans);color:var(--chrome-ink-2);}
.jn-pgv-out{list-style:none;margin:0;padding:0;}
.jn-pgv-out button{display:block;width:100%;border:0;border-radius:6px;
  background:transparent;color:var(--chrome-ink-2);text-align:left;cursor:pointer;
  padding:5px 8px;font:12.5px/1.35 var(--sans);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.jn-pgv-out button:hover{background:var(--surface-hover);color:var(--chrome-ink);}
/* (design pass 36: the heading being read) */
.jn-pgv-out button.is-here{color:var(--chrome-ink);font-weight:600;}
.jn-pgv-o2 button{padding-left:20px;}
.jn-pgv-o3 button{padding-left:32px;font-size:12px;}
.jn-ed-pg .jn-ed-title{font-size:24px;padding:22px 52px 8px 28px;}
.jn-ed-pg .jn-ed-main{padding:4px 28px 16px;}
.jn-ed-pg .jn-ed-body{font-size:15.5px;line-height:1.65;min-height:12em;}
/* A note as a page looks like a logbook page: a sheet in the page's own
   colour and ink between margins, with the ribbon as its toolbar. The
   note's colour is a strip along its top, not a card colour over the
   text. */
.jn-pgv-main>.jn-ed.jn-ed-pg{width:min(816px,100%);border-radius:3px;
  background:var(--doc-page,var(--paper,var(--chrome-1)));
  color:var(--doc-ink,var(--ink,var(--chrome-ink)));
  border:1px solid var(--chrome-line);box-shadow:0 1px 4px #00000040;}
.jn-pgv-main>.jn-ed.jn-ed-pg.jn-col{box-shadow:inset 0 5px 0 var(--jn),
  0 1px 4px #00000040;}
.jn-pgv-main>.jn-ed-pg .jn-ed-in{border-radius:3px 3px 0 0;}
.jn-pgv-main>.jn-ed-pg .jn-ed-title{font-size:28px;font-weight:700;
  padding:clamp(24px,5vh,56px) clamp(28px,7%,72px) 6px;color:inherit;}
.jn-pgv-main>.jn-ed-pg .jn-ed-alias{padding:0 clamp(28px,7%,72px) 4px;}
.jn-pgv-main>.jn-ed-pg .jn-ed-main,
.jn-pgv-main>.jn-ed-pg .jn-ed-props,
.jn-pgv-main>.jn-ed-pg .jn-chips,
.jn-pgv-main>.jn-ed-pg .jn-refs{padding-left:clamp(28px,7%,72px);
  padding-right:clamp(28px,7%,72px);}
.jn-pgv-main>.jn-ed-pg .jn-ed-body{font-size:15px;line-height:1.6;}
/* (design pass 6: a page's labels under its title, as a document's tags
   are -- under the words' 12em they floated mid-sheet) */
.jn-pgv-main>.jn-ed-pg .jn-ed-in{display:flex;flex-direction:column;}
.jn-pgv-main>.jn-ed-pg .jn-ed-in>*{flex:none;}
.jn-pgv-main>.jn-ed-pg .jn-ed-pics{order:-4;}
.jn-pgv-main>.jn-ed-pg .jn-ed-title{order:-3;}
.jn-pgv-main>.jn-ed-pg .jn-ed-alias{order:-2;}
.jn-pgv-main>.jn-ed-pg .jn-chips{order:-1;padding-bottom:6px;}
.jn-pgv-main>.jn-ed-pg .jn-ed-acts{border-top:1px solid var(--chrome-line);
  padding:6px 12px;}
/* The page uses its room (59f2 room): first the Outline narrows, then the
   side list folds, and last the Outline is reduced to a button over the
   note. */
.jn-paging.jn-pg-noside>.jn-side{display:none;}
.jn-pgv-slim .jn-pgv-side{flex-basis:180px;}
.jn-pgv-nool .jn-pgv-side{display:none;}
.jn-pgv-top .jn-pgv-oldoor{border-color:var(--chrome-line);}
.jn-pgv-olmenu .vw-opt.jn-pgv-o2{padding-left:22px;}
.jn-pgv-olmenu .vw-opt.jn-pgv-o3{padding-left:34px;font-size:12px;}
.jn-pgv-olnone{max-width:260px;margin:4px 8px 6px;white-space:normal;}
.jn-ed-top{display:flex;align-items:center;gap:4px;padding:8px 12px 0;}
.jn-ed-top .jn-btn{border-color:transparent;background:transparent;
  color:inherit;padding:5px 6px;font-size:11.5px;max-width:100%;}
.jn-ed-top .jn-btn>span{overflow:hidden;text-overflow:ellipsis;}
.jn-ed-top .jn-btn:hover{
  background:color-mix(in srgb,var(--chrome-ink) 12%,transparent);}
.jn-ed-top .jn-ed-back{padding:0;min-width:0;}
/* --- File control's Notes: between the files and Settings --- */
.fdp-notes-set{margin-top:20px;padding-top:6px;
  border-top:1px solid var(--chrome-line);}
.fdp-notes-title{display:flex;align-items:center;gap:8px;cursor:pointer;
  font-size:13px;font-weight:600;color:var(--chrome-ink);padding:8px 0;}
.fdp-notes-title::before{content:"";flex:none;width:0;height:0;
  border-style:solid;border-width:4px 0 4px 7px;
  border-color:transparent transparent transparent currentColor;}
.fdp-notes-set[open]>.fdp-notes-title::before{border-width:7px 4px 0 4px;
  border-color:currentColor transparent transparent transparent;}
.fdp-notes-n{font-weight:400;color:var(--chrome-ink-2);}
.fdp-notes-open{margin-left:auto;font-weight:400;}
.fdp-notes-open[hidden]{display:none;}
.fdp-notes{padding:4px 0 18px;}
.fdp-notes .jn-bar{padding:2px 0 10px;}
.fdp-notes .jn-take{max-width:none;margin:2px 0 16px;padding:5px 6px 5px 4px;
  border:1px solid var(--chrome-line);border-radius:11px;background:var(--chrome-2);}
.fdp-notes .jn-take.is-on{padding:0;border:0;background:none;}
.fdp-notes .jn-sec{margin-bottom:16px;}
.fdp-notes .jn-sec:last-child{margin-bottom:0;}
/* --- the pane --- */
#jnpane{width:330px;}
#jnpane-body{padding:10px;}
.jn-k-pane .jn-bar{gap:7px;margin-bottom:8px;}
.jn-k-pane .jn-q{flex:1 1 100%;max-width:none;}
.jn-k-pane .jn-pagesel{flex:1 1 100%;}
.jn-k-pane .jn-take{margin:0 0 12px;padding:2px;border:1px solid var(--chrome-line);
  border-radius:9px;background:var(--chrome-2);}
.jn-k-pane .jn-take.is-on{padding:0;border:0;background:none;}
.jn-k-pane .jn-take-in{padding:7px 9px;font-size:13px;}
.jn-k-pane .jn-card{cursor:grab;}
.jn-k-pane .jn-body{max-height:11em;}
.jn-k-pane .jn-words{padding:10px 12px;}
.jn-use{display:flex;gap:6px;padding:0 10px 10px;}
.jn-use .jn-btn{flex:1 1 0;justify-content:center;background:var(--chrome-3);}
/* (design pass 52: two filled buttons under every card of the pane were the
   pane's loudest thing; quiet until the card is pointed at or has the keys,
   their words and icons always there) */
.jn-k-pane .jn-use .jn-btn{background:transparent;color:var(--chrome-ink-2);}
.jn-k-pane .jn-card:hover .jn-use .jn-btn,
.jn-k-pane .jn-card:focus-within .jn-use .jn-btn{background:var(--chrome-3);
  color:var(--chrome-ink);}
.deck.kind-logbook .jn-k-pane .jn-card{cursor:pointer;}
/* --- drawn small, in a listing --- */
.jn-mini{display:grid;grid-template-columns:repeat(auto-fill,minmax(66px,1fr));
  align-content:start;align-items:start;gap:6px;width:100%;height:100%;
  box-sizing:border-box;padding:7px;overflow:hidden;text-align:left;
  background:var(--chrome-0);--jn-paper:var(--chrome-2);--jn-mix:30%;}
.jn-mini-c{display:block;min-width:0;padding:5px 6px;
  border:1px solid var(--jn-bd,var(--chrome-line));border-radius:5px;
  background:var(--jn-bg,var(--jn-paper));color:var(--chrome-ink);
  font:7.5px/1.4 var(--sans);overflow:hidden;white-space:pre-line;}
.jn-mini-c b{display:block;font-weight:600;font-size:8.5px;}
.jn-mini-c>span{display:block;color:var(--chrome-ink-2);}
.jn-mini-c img{display:block;width:100%;max-height:40px;object-fit:cover;
  border-radius:3px;margin-bottom:3px;}
.jn-mini-none{font:12px var(--sans);color:var(--chrome-ink-3);}
.pv-card .jn-mini,.presentation-hub .jn-mini{height:auto;max-height:360px;
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));}
.pv-card .jn-mini-c,.presentation-hub .jn-mini-c{font-size:10px;}
.pv-card .jn-mini-c b,.presentation-hub .jn-mini-c b{font-size:11px;}
.fdp-tiles-notes{display:block;height:200px;}
.fdp-peek-big .jn-mini{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));
  min-width:340px;}
.fdp-peek-big .jn-mini-c{font-size:9.5px;}
.fdp-peek-big .jn-mini-c b{font-size:10.5px;}
/* a linked note in a logbook, in the editor only: its edge as it is
   pointed at, and nothing in the document (57h lbDress) */
.deck.editing .lb-tx>p[data-nt]{cursor:pointer;}
.deck.editing .lb-tx>p[data-nt]:hover{
  box-shadow:-10px 0 0 -8px color-mix(in srgb,var(--accent) 70%,transparent);}
@media (max-width:820px){
  .deck-notes{flex-direction:column;}
  .jn-side{flex:0 0 auto;flex-direction:row;overflow-x:auto;padding:8px;
    border-right:0;border-bottom:1px solid var(--chrome-line);}
  .jn-nav{width:auto;white-space:nowrap;}
  .jn-side-h{display:none;}
  .jn-k-page .jn-main{padding:0 12px 60px;}
  .jn-k-page .jn-bar,.jn-k-page .jn-selbar{margin:0 -12px;padding:0 12px;}}
/* ---- Notes page refinements ----
   One block covering narrow windows, the search and the views, the notes as
   a block under Take a note, the open note and the graph with no links. */
/* Select notes (Home): a tick on every note, and on a touch screen, where
   nothing is pointed at, always */
.jn-ticks .jn-tick{opacity:1;}
@media (hover:none){.jn-tick{opacity:1;}}
/* the view on now: its fill, a line round it and heavier words -- not the
   fill's colour alone */
.jn-seg .fdp-viewb[aria-pressed="true"],
.jn-gzoom .fdp-viewb[aria-pressed="true"]{font-weight:700;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 70%,transparent);}
.jn-seg .fdp-viewb[aria-pressed="true"]:first-child{border-radius:7px 0 0 7px;}
.jn-seg .fdp-viewb[aria-pressed="true"]:last-child{border-radius:0 7px 7px 0;}
/* the place being looked at, down the side: its fill, heavier words and a
   line round it */
.jn-nav.on{background:color-mix(in srgb,var(--accent) 16%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 38%,transparent);}
.jn-nav-n{min-width:1.6em;text-align:right;font-variant-numeric:tabular-nums;}
/* the search takes the room there is, so Order and the views follow it --
   a wide page had a gap between them that read as two unrelated rows */
.jn-k-page .jn-q{flex:1000 1 160px;max-width:620px;}
.jn-k-page .jn-bar>.jn-spring{flex:1 1 0;}
.jn-q input::placeholder{color:var(--chrome-ink-3);opacity:1;}
.jn-q:focus-within{border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent);}
/* a wide window: the bar, Take a note and the notes are one column in the
   middle, not a row of ten notes across a monitor (a board, the dates, a
   table and the graph keep the width: they are wide things) */
.jn-k-page:not(.is-board):not(.is-dates):not(.is-table):not(.jn-graphing)>.jn-main{
  padding-left:max(22px,calc((100% - 1320px)/2));
  padding-right:max(22px,calc((100% - 1320px)/2));}
/* less of the page for the rows over the notes */
.jn-k-page .jn-bar,.jn-k-page .jn-selbar{min-height:50px;}
.jn-take{margin:4px auto 18px;}
/* a note's title over its words: a little more room between, and the
   words a step softer than the title */
.jn-title{margin-bottom:7px;letter-spacing:-.005em;}
.jn-card:not(.jn-col) .jn-body,.jn-card:not(.jn-col) .jn-ci-t{
  color:color-mix(in srgb,var(--chrome-ink) 86%,var(--jn-paper));}
/* a long note cut short on its card says so, and that a press opens it */
.jn-cut{display:block;margin-top:6px;font:500 11.5px/1.3 var(--sans);
  color:var(--chrome-ink-2);}
/* the open note: its title and words show where the caret is */
.jn-ed-title::placeholder,.jn-it-t::placeholder,
.jn-ed-body.is-blank::before{color:var(--chrome-ink-3);opacity:1;}
.jn-modal .jn-ed-title:focus-visible,.jn-modal .jn-ed-body:focus-visible{
  box-shadow:-10px 0 0 -8px color-mix(in srgb,var(--chrome-ink) 34%,transparent);}
/* under the note: Note options and Open as page, then whether it is saved,
   then Close */
.jn-ed-acts{gap:4px;padding:6px 10px 8px;}
.jn-ed-acts .jn-btn{padding:6px 8px;min-height:30px;}
.jn-ed-acts .jn-close{border-color:var(--chrome-line);margin-left:4px;}
.jn-ed-acts .jn-ed-when{display:inline-flex;align-items:center;gap:5px;
  padding:0 8px;font-size:11.5px;color:var(--chrome-ink-2);}
.jn-ed-when[data-save="busy"]{font-style:italic;}
.jn-ed-when[data-save="wait"],.jn-ed-when[data-save="bad"]{font-weight:600;}
.jn-ed-when[data-save="bad"]{color:var(--danger);}
.jn-ed-when[data-save="ok"]::before{content:"\2713";font-size:11px;}
/* a note as a page: a sheet as tall as its words ask for (and the room at
   the most), its row under the words -- a short note was a sheet the height
   of the window with its buttons at the foot */
.jn-pgv-main{align-items:flex-start;}
.jn-pgv-main>.jn-ed.jn-ed-pg{height:auto;max-height:100%;
  min-height:min(100%,440px);}
.jn-pgv-top .jn-pgv-home{border-color:var(--chrome-line);
  color:var(--chrome-ink);font-weight:600;}
.jn-pgv-where{color:var(--chrome-ink-2);}
.jn-pgv-side .jn-none-s{margin:2px 0;color:var(--chrome-ink-2);}
/* the graph: the paper a step off the page so its edge is seen in both
   themes, Zoom one group with the count beside it, and what to do when no
   note is linked */
.jn-graph{background:var(--chrome-1,var(--chrome-0));
  border-color:var(--border-strong,var(--chrome-line));}
.jn-gbar{gap:10px;}
.jn-gzoom .jn-btn{border:0;border-radius:0;margin:0;padding:5px 9px;}
.jn-gzoom .jn-btn+.jn-btn{border-left:1px solid var(--chrome-line);}
.jn-gsay{margin-left:0;color:var(--chrome-ink-2);
  font-variant-numeric:tabular-nums;}
.jn-gnone{margin:0 0 10px;padding:10px 14px;border-radius:10px;
  border:1px solid var(--chrome-line);background:var(--chrome-2);}
.jn-gnone[hidden]{display:none;}
.jn-gnone h3{margin:0 0 2px;font:600 13.5px/1.35 var(--sans);
  color:var(--chrome-ink);}
.jn-gnone p{margin:0;font:12.5px/1.5 var(--sans);color:var(--chrome-ink-2);}
/* an empty place: its second line reads, and is not a wall of grey */
.jn-empty p:first-of-type{color:var(--chrome-ink-2);font-weight:600;}
.jn-empty-how{color:var(--chrome-ink-2);font-size:13px;}
/* what Labels, Types and Views are, where they are first met */
.jn-side-hb[title]{cursor:pointer;}
/* the Notes pane's one line on Paste in and Link in */
.jn-pane-how{margin:0;padding:8px 12px 2px;font:12px/1.45 var(--sans);
  color:var(--chrome-ink-2);}
.jn-pane-how b{color:var(--chrome-ink);font-weight:600;}
/* what a board is, while it is empty; what labels and types are, in the
   sheets that edit them; where this is, over a place's notes */
.jn-kb-how,.jn-sh-what{margin:0 0 10px;font:12.5px/1.5 var(--sans);
  color:var(--chrome-ink-2);}
.jn-sh-what{margin:-2px 0 10px;}
.jn-place-top{margin:0 0 12px;}
.jn-place-top .jn-tbl-h .bic{opacity:.8;}
/* All places: only where the side is a row (below) */
.jn-side .jn-nav-more{display:none;}
.jn-navmenu .vw-opt.on{font-weight:600;}
.jn-navmenu .vw-opt.on::after{content:"\2713";margin-left:auto;padding-left:14px;}
/* the title row's Search on a notes page finds commands (59c
   jnSearchWords): Advanced, which finds words in slides, is not there */
.deck.kind-notes .rbn-search-adv{display:none;}
@media (max-width:820px){
  /* the side as a row: no scroll bar of the system's across the page (a
     light one on the dark theme); it still scrolls by touch and the keys,
     and All places at its end lists every place */
  .jn-side{position:relative;gap:2px;padding:6px 0 6px 8px;align-items:center;
    scrollbar-width:none;scroll-padding:0 120px 0 8px;}
  .jn-side::-webkit-scrollbar{display:none;}
  .jn-nav{flex:none;padding:7px 10px;}
  .jn-nav-n{min-width:0;}
  .jn-side .jn-nav-more{display:inline-flex;flex:none;position:sticky;right:0;
    margin-left:auto;padding:7px 10px;border:1px solid var(--chrome-line);
    border-right:0;border-radius:8px 0 0 8px;
    background:var(--chrome-0);color:var(--chrome-ink);
    box-shadow:-14px 0 12px -4px var(--chrome-0);}
  .jn-k-page .jn-bar,.jn-k-page .jn-selbar{min-height:48px;}
  .jn-take{margin:2px auto 14px;}
  .jn-pgv-top{padding:8px 12px 6px;}
  .jn-pgv-cols{padding:0 12px 12px;}
  /* the files' strip under a notes page: a lower row and a smaller File
     control, the words and the tabs as they were -- the room is the
     notes' */
  .deck.kind-notes{--sht-h:36px;}
  .deck.kind-notes .deck-sheets .sht-contents{min-height:30px;
    padding:4px 9px;font-size:12px;}
  .deck.kind-notes .deck-sheets .sht-tab{font-size:12px;}}
/* a phone's width: the ribbon's doors a little narrower, so five of them
   (a note open: This note, Font, Styles, Paragraph, Clipboard) are a row
   and not "Ribbon wider than the window" */
@media (max-width:480px){
  /* (and the title row's Search narrower: it stood over Quick note) */
  .deck.kind-notes .deck-qat .rbn-search{min-width:96px;}
  .deck.kind-notes #edit-tools .rbn-foldwrap .fx-tile.rbn-foldbtn{min-width:64px;}}
/* (design pass 24: a fade is not motion -- the open note fades in, and a
   card's buttons fade, where less motion is asked for too) */

/* Interactive guides (67-interactive-guides.js): a sign and an arrow at
   the next thing to click, drawn as Home's introduction draws its signs.
   The layer sits over everything and never takes a press; only the sign's
   own buttons do. */
.gd-layer{position:fixed;inset:0;z-index:2147482000;pointer-events:none;
  --gd-hand:'Ink Free','Segoe Print','Bradley Hand','Noteworthy',
    'Chalkboard SE',var(--sans);}
.gd-defs{position:absolute;width:0;height:0;}
.gd-sign{position:absolute;inset:0;}
.gd-ink{position:absolute;left:0;top:0;width:100%;height:100%;
  overflow:visible;}
.gd-note{position:absolute;left:0;top:0;width:max-content;
  max-width:min(360px,calc(100vw - 20px));box-sizing:border-box;
  padding:8px 16px;text-align:center;border-radius:3px;
  background:var(--chrome-0);box-shadow:0 6px 22px var(--shadow);}
.gd-t{display:block;font:700 22px/1.2 var(--gd-hand);
  color:var(--chrome-ink);text-wrap:balance;}
.gd-s{display:block;margin-top:2px;font:700 19px/1.25 var(--gd-hand);
  color:var(--accent);}
.gd-foot{display:flex;align-items:center;justify-content:center;gap:12px;
  margin-top:7px;font:500 11.5px var(--sans);color:var(--chrome-ink-3);}
.gd-stop,.gd-next{pointer-events:auto;cursor:pointer;
  font:600 11.5px var(--sans);padding:3px 9px;border-radius:5px;
  border:1px solid var(--btn-border);background:var(--btn-bg);
  color:var(--btn-ink);}
.gd-stop:hover{background:var(--surface-active);}
.gd-next{background:var(--accent);border-color:var(--accent);
  color:var(--on-accent);}
.gd-box{fill:none;stroke:var(--chrome-ink-2);stroke-width:1.6;opacity:.85;
  stroke-linecap:round;stroke-linejoin:round;filter:url(#gd-pencil);}
.gd-arrow{fill:none;stroke:var(--accent);stroke-width:2.8;
  stroke-linecap:round;stroke-linejoin:round;filter:url(#gd-pencil);}
.gd-ghost{stroke-width:1.2;opacity:.45;}
.gd-ring{position:absolute;box-sizing:border-box;border-radius:8px;
  border:2px solid var(--accent);}

/* Labels use sentence case, not small spaced monospace capitals. A test in
   tests/ keeps new ones out. */
.deck-pres-drawer-head::first-letter,.deck-pres-row-kind::first-letter,
.deck-pres-sec::first-letter,.deck-brand::first-letter,
.find-t::first-letter,.find-mode::first-letter,.vo-title::first-letter,
.vo-sec::first-letter,.tracetab-eyebrow::first-letter,
.pg-eyebrow::first-letter,.slide-eyebrow::first-letter,
.spane.empty::first-letter,.chain-h::first-letter,.dc-label::first-letter,
.tm-lab::first-letter,.cfg-more::first-letter,.fmt-lab::first-letter,
.cp-head::first-letter,.cp-lab::first-letter,.rbn-gfam::first-letter,
.rbn-ctabl::first-letter,.rv-lab::first-letter,.dh-st::first-letter,
.np-rehrow.sec .np-rehlab::first-letter,.nse-lab::first-letter,
.ovw-gh::first-letter,.oh-h::first-letter,.an-cellpart::first-letter,
.lay-sec::first-letter,.ss-band::first-letter,.ss-name::first-letter,
.pane.empty .pane-t::first-letter,.live-proto::first-letter,
.eq-palh::first-letter,.eq-plab::first-letter,.aa-sech::first-letter,
.tk-h::first-letter,.story-lab::first-letter,.dh-brlab::first-letter,
.dg-family-name::first-letter,.dg-lookslab::first-letter,
.anim-galh::first-letter,.mast-name::first-letter,.ct-cols::first-letter,
.fdp-h::first-letter,.fdp-set-g legend::first-letter,
.sht-add-h::first-letter,.pz-xk::first-letter{
  text-transform:uppercase;}
