
:root{--appbar-h:38px;--chrome-h:80px;--dc-w:430px;
  --presrail-w:176px;
  /* The viewer bar's measurements, defined once. The values match the deck
     ribbon so the two bars are one system: a ~14px icon, a 4px gap, the
     label and 5px of side padding. The height is a 28px target. */
  --ab-btn-h:28px;--ab-btn-px:5px;--ab-btn-gap:4px;--open-tabs-h:37px;}
body.presrail-min{--presrail-w:46px;}

/* ---------- compact file utility line, optional tabs, reader controls --- */
/* the header sizes to its content: --chrome-h is measured from the real
   element (see measureChrome), so a bar that needs a second line pushes
   the page down instead of hiding controls off the right-hand edge */
.apptop{position:fixed;top:0;left:0;right:0;
  z-index:90;display:flex;flex-direction:column;background:var(--chrome-0,#0a141d);
  border-bottom:1px solid #ffffff14;}
/* top-aligned: every main button sits on one first row; the small
   "… types ▾" pickers hang underneath their parent filter. The ribbon
   never wraps: fitRibbon() applies one compaction stage, body.rbc1
   (tighter gap and padding, every word kept), and past that the bar
   scrolls sideways (overflow-x:auto above). See fitRibbon in app.js.
   The one exception is the presenting bar: .present-bar may wrap, because
   measurePb re-insets the slide under the bar's real height after every
   wrap. */
/* align-items:stretch so every SECTION is as tall as the bar and a
   single-button group (+ Open) can fill both rows rather than floating at
   the top of an empty column */
/* Not centred: a centred bar re-centres when the viewport width changes
   (for example when the tree view removes the page scrollbar), sliding
   every button sideways. Left-aligned, a button's position depends only
   on what precedes it. */
.appbar{display:flex;align-items:stretch;gap:3px;flex-wrap:nowrap;
  justify-content:flex-start;padding-left:8px;
  min-height:var(--appbar-h);overflow-x:auto;scrollbar-width:thin;
  padding:8px 6px 6px 0;border-bottom:1px solid #ffffff0d;}
/* buttons keep one line and one size however narrow the bar gets or what
   glyph they hold. 28px is the ribbon button height and is set only here.
   Controls are small and tightly packed with their labels intact; the
   ribbon never falls back to icons. */
.appbar .toggle,.appbar .appbar-link,.nb-filebar .toggle,
.nb-filebar .appbar-link,.present-bar .toggle{
  flex:none;white-space:nowrap;height:var(--ab-btn-h);box-sizing:border-box;
  padding:0 var(--ab-btn-px);line-height:1;font-size:12px;
  gap:var(--ab-btn-gap);}
/* ---- Button icons ----
   The .bic base rule is in core.css so the widget's scoped bundle gets it
   too; only app-chrome overrides live here. */
.toggle:hover .bic,.toggle[aria-pressed="true"] .bic{opacity:1;}
/* An icon-only button is square and never shrinks. Without a floor,
   padding:0 let it squeeze below the icon's width when the bar ran short
   of room. */
/* Only the size steppers are genuinely icon-only, so only they get the
   square rule. */
.appbar .toggle.fz-step,.present-bar .toggle.fz-step{
  padding:0;justify-content:center;
  width:var(--ab-btn-h);min-width:var(--ab-btn-h);flex:none;}
.btxt{display:inline-block;}
/* a filter group stacks its advanced types picker under its main button
   (Plot types under Plots, Code types under Code, …) so the bar stays
   narrow instead of growing ever wider */
.fgrp{flex:none;display:flex;flex-direction:column;align-items:stretch;
  gap:3px;}
.fgrp .toggle{width:100%;text-align:left;}
/* a horizontal group: its caption sits to the left of the buttons instead
   of under them, so two of them stack in the height of one filter column
   (the size steppers) */
.fgrp-h{flex-direction:row;align-items:center;gap:8px;}
.fgrp-h .fgrp-cap{order:-1;text-align:right;min-width:50px;line-height:1;
  height:auto;}
/* two small buttons sharing one row, so a group never grows past the two
   rows the app bar is tall */
/* a labelled section of the ribbon: its name, then its controls. The label
   reads as a heading for the group below it */
.abgrp{display:flex;flex-direction:column;align-items:stretch;gap:3px;
  flex:none;}
/* the house rule again: an author `display:` beats the UA [hidden] rule,
   so every base rule that sets display needs its own [hidden] override —
   without this the tree-only section showed in Document view too and
   pushed the whole bar onto a second row */
.abgrp[hidden]{display:none!important;}
.abgrp-row{display:flex;align-items:flex-start;gap:4px;flex:1;}
/* ---- No gaps in the bar ----
   Every control has one height, and a column that does not fill the band
   is centred in it rather than pinned to the top. */
.appbar .abgrp-row{align-items:stretch;}
.appbar .fgrp{justify-content:center;}
/* + Open is one button in its own section. It is not stretched to fill the
   band, which would make it taller than the 28px bar. */
/* File provenance gets its own compact line above the controls it is not
   changing. Keeping it out of .appbar gives the filters their width back. */
.nb-filebar{display:flex;align-items:center;gap:5px;min-height:34px;
  box-sizing:border-box;padding:3px 8px;background:var(--chrome-1,#0d1a26);
  border-bottom:1px solid #ffffff12;overflow-x:auto;scrollbar-width:thin;}
.nb-filebar[hidden]{display:none!important;}
.nb-file-ident{display:flex;flex-direction:column;align-items:stretch;gap:3px;min-width:0;
  max-width:min(52vw,640px);padding:0 7px 0 2px;
  border-right:1px solid #ffffff1a;}
.nb-file-ident[hidden]{display:none!important;}
.nb-file-name{flex:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font:700 15px var(--sans);letter-spacing:-.01em;
  color:var(--chrome-ink,#d7e3ec);}
/* Info sits beside File on the ribbon's row, styled like File and the
   row's other buttons. Reload is inside the panel it opens. */
.ab-tabs #file-dock{flex:none;display:flex;align-items:center;}
.ab-tabs #file-dock:empty{display:none;}
.ab-tabs #file-dock .railfile{margin-top:0;}
.ab-tabs #file-dock .rf-info{height:var(--ab-btn-h);padding:0 9px;gap:6px;
  font:500 12px var(--sans);letter-spacing:0;max-width:none;}
.ab-tabs #file-dock .rf-reload{display:none;}
/* Present and Full screen stack the way Raw and Tree do. */
#ab-view .abgrp-row,#ab-view .btn-grp{align-items:stretch;}
/* Help carries the word "Help", so it is sized by its content like the
   other worded buttons rather than squared off. */
/* The type pickers are not standalone: each sits directly under the filter
   it refines and takes that filter's width. A narrow square under a wide
   button reads as a separate control that happens to be nearby, instead of
   as that filter's own "advanced" affordance — and it left the row of
   groups with a ragged bottom edge. Width comes from the column
   (align-items:stretch), so there is nothing to keep in sync by hand. */
#pt-filter-btn,#ck-filter-btn,#ot-filter-btn{width:100%;flex:none;}
/* Present spans two rows: centre its content in the taller box */
#ab-view #doc-present,#ab-view #doc-full,#ab-view #doc-autoslides{
  justify-content:center;align-items:center;}
/* a stack of one centres in the band rather than sitting at its top */
.vw-stack{justify-content:center;}
/* stacked rows inside one section (the two size steppers) */
.abgrp-row.abgrp-stack{flex-direction:column;align-items:stretch;gap:4px;}
/* a section off the current page is removed from the feed and dimmed in
   the outline, where its row leads to its page */
.section.pg-out{display:none!important;}
.navsec-row.nav-paged,.navitems.nav-paged{opacity:.4;}
#pages-nav{display:flex;gap:4px;}
.abgrp-lab{font:600 11px var(--sans);color:var(--chrome-ink-2);text-align:center;
  line-height:1;opacity:.75;order:-1;}
body.light .abgrp-lab{color:var(--ink-3);}
/* buttons that belong together and must wrap as one unit */
.btn-grp{display:flex;gap:3px;flex:none;align-items:flex-start;
  position:relative;}
.btn-grp[hidden]{display:none!important;}
.fgrp-row{display:flex;gap:3px;align-items:stretch;}
/* size to content. `.fgrp .toggle{width:100%}` + `flex:1` was squeezing
   these below their natural width, so the label sat on the border. */
.fgrp-row .toggle{flex:none;width:auto;justify-content:center;
  text-align:center;padding-left:7px;padding-right:7px;}
/* square steppers/icons sit beside the thing they act on */
.fgrp-row .toggle.fz-step{flex:none;width:var(--ab-btn-h);padding:0;
  justify-content:center;font-size:13px;}
.fgrp-row .toggle.fz-val{flex:none;width:42px;padding:0;
  justify-content:center;}
/* a caption naming a group of small buttons, so the buttons stay narrow
   instead of each carrying the label */
.fgrp-cap{font-family:var(--sans);font-size:11px;letter-spacing:0;
  color:var(--chrome-ink-2);text-align:center;
  line-height:22px;height:22px;white-space:nowrap;}
body.light .fgrp-cap{color:var(--ink-3);}
.appbar .toggle.primary,.nb-filebar .toggle.primary,.present-bar .toggle.primary{background:var(--cyan);border-color:var(--cyan);
  color:var(--on-accent);font-weight:600;}
.appbar .toggle.primary:hover,.nb-filebar .toggle.primary:hover{
  filter:brightness(1.08);color:var(--on-accent);}
/* One button height across the whole ribbon. A sub-picker is quieter
   (dimmer text, fainter border, smaller type) but never shorter, because a
   short button beside a tall one looks like a broken grid. */
.appbar .toggle.sub,.present-bar .toggle.sub{height:var(--ab-btn-h);
  font-size:10.5px;padding:0 var(--ab-btn-px);
  color:#93a8ba;border-color:#ffffff2e;background:#ffffff08;}
.appbar .toggle.sub:hover,.present-bar .toggle.sub:hover{
  color:#fff;border-color:var(--cyan);}
/* both selectors need the body.light prefix — without it the LIGHT rule
   applies to the present bar in dark mode too */
body.light .appbar .toggle.sub,body.light .present-bar .toggle.sub{
  color:var(--ink-3);border-color:var(--line);background:#00000005;}
body.light .appbar .toggle.sub:hover,
body.light .present-bar .toggle.sub:hover{color:var(--ink);}
/* push the trailing controls right without a growing spacer: a flex:1
   spacer fills the first line and shoves everything after it onto a
   second row, even when there is room */

.appbar-spring{flex:1;}
/* ---- Tree view ----
   Its controls replace the document filters inside the panel and do not
   need to reserve a ribbon-sized slot. */
body.tree-mode #ab-tree{min-width:0;}
/* the Tree section takes the Filters slot while the tree is on, on the
   Filters tab (which then reads Tree) */
body.tree-mode .ab-band:not([data-tab="view"]) #ab-tree{
  display:flex!important;}
body.tree-mode #ab-filters,body.tree-mode #ab-scope,
body.tree-mode #pt-grp,body.tree-mode #md-grp,body.tree-mode #ck-grp,
body.tree-mode #ot-grp,body.tree-mode #sec-scope-grp,
body.tree-mode #copy-grp{display:none!important;}
/* the stacked View column: Raw over Tree. Its width is fixed to the longest
   label it can hold ("Document"), because the Tree button renames itself
   and a wider word would shove Present sideways. */
/* min-width, not width: it is the floor that stops the group shifting
   sideways when the Tree button renames itself "Document". A wider
   word in one stack simply makes that stack wider, which is what every
   other column on this bar does too. */
.vw-stack{display:flex;flex-direction:column;gap:3px;flex:none;
  min-width:92px;}
.vw-stack .toggle{width:100%;justify-content:center;}
.appbar-div{flex:none;width:1px;height:70px;background:#ffffff38;
  margin:1px 0 0;border-radius:1px;}
body.light .appbar-div{background:var(--chrome-line);}
/* dark variants of the show/hide toggles */
.appbar .toggle,.nb-filebar .toggle,.present-bar .toggle{border-color:var(--btn-border,#ffffff40);background:var(--btn-bg,#ffffff12);color:var(--btn-ink,#d7e3ec);}
.appbar-link{text-decoration:none;display:inline-flex;
  align-items:center;}
.appbar .toggle:hover,.nb-filebar .toggle:hover,.present-bar .toggle:hover{border-color:var(--cyan);color:#fff;}
.appbar .toggle.tv.off,.present-bar .toggle.tv.off{color:#69788a;}
/* ---- Ribbon compaction ----
   See fitRibbon in app.js. One stage, spacing only, then the bar scrolls
   sideways. No words are ever hidden: width comes from density and, at the
   very edge, a thin scrollbar. */
body.rbc1 .appbar{gap:2px;}
/* not the steppers/values: their fixed square boxes centre themselves */
body.rbc1 .appbar .toggle:not(.fz-step):not(.fz-val){
  padding-left:3px;padding-right:3px;}
/* One utility row above the filters: identity on the left, app commands
   on the right. The existing Info panel shows the complete source path. */
.apptop{display:flex;flex-direction:column;}
.nb-filebar{min-height:42px;padding:4px 8px;}
/* while the open files are tabs, the tab names the file (its tooltip is
   the path, and Info has the rest), so the two-line identity is hidden and
   the row is one button high */
body.tabs-row-on .nb-file-ident{display:none!important;}
body.tabs-row-on .nb-filebar{min-height:var(--open-tabs-h);}
.nb-file-spacer{flex:1;min-width:8px;}
/* The reader's primary Present action uses the editor's quiet accented
   outline, not the filled state used for an already-selected toggle. */
#ab-view #doc-present.primary{background:color-mix(in srgb,var(--accent) 14%,
  transparent);color:var(--accent);border-color:var(--accent);font-weight:600;}
#ab-view #doc-present.primary:hover{background:var(--accent);color:var(--on-accent);}
/* ---- Open tabs ----
   The tabs form the left of the title row: the reader's (#nb-filebar) or,
   while it is shown, the editor's (#deck-qat); app.js moves the one node.
   They hang from the row's bottom edge, and the current one takes the
   colour of the row under it (--tab-on, set by each title row) so it joins
   that row. Each tab shrinks to an ellipsis first, then the strip scrolls;
   the row keeps 220px for Home and a tab before the bar's fitter compacts
   anything else. */
.open-tabs-row{display:flex;align-items:flex-end;gap:2px;flex:0 1 auto;
  min-width:220px;align-self:stretch;box-sizing:border-box;
  margin-bottom:-4px;}
.open-tabs-row[hidden],.open-tabs-row [hidden]{display:none!important;}
/* the button for the side list sits at the title row's far right: a worded
   button, not a tab, and never squeezed (the strip scrolls first). Open,
   after the tabs, has the same faint outline. */
.open-tabs-row .ot-plus,
.ot-files-at.jv-files-to{flex:none;align-self:center;height:24px;
  margin:0 2px 2px 6px;padding:0 9px;gap:6px;background:none;
  border:1px solid var(--chrome-line,#ffffff1f);border-radius:6px;
  box-shadow:none;
  color:var(--chrome-ink-2,#8ba0b2);font:11.5px var(--sans);
  white-space:nowrap;}
.ot-files-at.jv-files-to[hidden]{display:none!important;}
.open-tabs-row .ot-plus:hover,
.ot-files-at.jv-files-to:hover,
.open-tabs-row .ot-plus[aria-expanded="true"]{
  border-color:var(--chrome-ink-3,#ffffff40);color:var(--chrome-ink,#d7e3ec);}
.open-tabs-row .ot-plus .bic{width:12px;height:12px;}
/* no scrollbar: in a one-button-high row it drew a white bar under the
   tabs and made the whole bar taller. The strip still scrolls (wheel,
   trackpad), and app.js keeps the tab on screen in view. */
.top-tabstrip{display:flex;align-items:flex-end;gap:2px;min-width:0;
  align-self:stretch;overflow-x:auto;scrollbar-width:none;}
/* Home before the tabs, shaped like one */
.open-tabs-row .ot-home,.top-tabstrip .tab{height:29px;box-sizing:border-box;
  border:1px solid transparent;border-bottom:0;border-radius:8px 8px 0 0;
  background:none;color:var(--chrome-ink-2,#8ba0b2);box-shadow:none;}
.open-tabs-row .ot-home{flex:none;display:inline-flex;align-items:center;
  gap:6px;padding:0 11px;font:12px var(--sans);letter-spacing:0;
  white-space:nowrap;}
.open-tabs-row .ot-home .jv-logo{width:17px;height:17px;flex:none;}
/* min-width 108px keeps a readable start of the name; an unlit tab has no
   X in its row */
.top-tabstrip .tab{flex:0 1 auto;min-width:108px;max-width:220px;
  padding:0 6px 0 12px;font-size:12px;font-weight:400;}
.open-tabs-row .ot-home:hover,.top-tabstrip .tab:hover{
  background:color-mix(in srgb,var(--chrome-ink,#d7e3ec) 7%,transparent);
  color:var(--chrome-ink,#d7e3ec);}
/* the one on screen: the row below's colour, a line of accent along
   its top, and no edge between it and that row */
.open-tabs-row .ot-home.current,.top-tabstrip .tab.current{
  background:var(--tab-on,var(--chrome-0,#0b141d));
  border-color:var(--chrome-line,#ffffff1f);
  box-shadow:inset 0 2px 0 var(--accent);color:var(--chrome-ink,#e6edf3);
  font-weight:600;}
/* at Home no tab is the one on screen, and in the slide editor the
   presentation is, not the notebook that was last active behind it */
body.welcoming .top-tabstrip .tab.current,
body.slide-editing .top-tabstrip .tab.current:not(.top-pres-tab){
  background:none;box-shadow:none;color:var(--chrome-ink-2,#8ba0b2);
  border-color:transparent;font-weight:400;}
/* its icon keeps its colour, as an unlit tab's does */
body.welcoming .top-tabstrip .tab.current .tab-ico,
body.slide-editing .top-tabstrip .tab.current:not(.top-pres-tab) .tab-ico{
  color:var(--cyan);}
.top-tabstrip .tab-t{max-width:170px;}
/* the reader's title row: its tabs join the filter row under it, which
   is the header's own colour; the line along the bottom is drawn inside
   the row so the tab on screen can cover it */
.nb-filebar{--tab-on:var(--chrome-0,#0b141d);
  --tab-row:var(--chrome-1,#0d1a26);}
body.tabs-row-on .nb-filebar{border-bottom-width:0;
  box-shadow:inset 0 -1px 0 var(--chrome-line,#ffffff12);}
.top-tabstrip .tab-ico{display:inline-flex;align-items:center;
  justify-content:center;flex:none;color:var(--cyan);}
.top-tabstrip .tab-ico .bic{width:12px;height:12px;}
.top-tabstrip .tab.current .tab-ico{color:currentColor;}
/* one backslash: this is a stylesheet, not a Python string */
.top-tabstrip .top-pres-tab.draftonly .tab-t::after{
  content:" \2022";color:var(--amber);}
.top-tabstrip .top-pres-main{display:flex;align-items:center;gap:8px;
  flex:1;min-width:0;border:0;padding:0;background:none;color:inherit;
  font:inherit;text-align:left;cursor:pointer;}
/* ---- Tab styling ----
   - a hairline between two unlit tabs, hidden beside the lit tab and the
     one under the pointer;
   - a wider step, with the hairline across it, where notebooks end and
     presentations begin (app.js draws the notebooks first and
     50-review-and-overview.js appends the decks);
   - the X is in place on the lit tab only. An unlit tab gives that room
     to its name and shows the X on hover or keyboard focus, laid over the
     tab's end on a chip of the hovered tab's colour, so no tab changes
     width. A touch screen (no hover) keeps every X;
   - Tabs at side has a button edge, like Save and Autosave in the same
     row.
   --tab-row is the title row's colour, set where --tab-on is. */
.top-tabstrip .tab{position:relative;gap:6px;}
.top-tabstrip .top-pres-main{gap:6px;}
.top-tabstrip .tab-b{padding:4px 4px;}
.top-tabstrip .tab:not(.tab-sub)::before{content:"";position:absolute;
  left:0;top:9px;bottom:8px;width:1px;pointer-events:none;
  background:var(--chrome-line,#ffffff1f);}
.top-tabstrip .tab.current::before,.top-tabstrip .tab.current+.tab::before,
.top-tabstrip .tab:hover::before,.top-tabstrip .tab:hover+.tab::before{
  opacity:0;}
/* a notebook still "current" behind Home or the slide editor is not lit,
   so its edges come back */
body.welcoming .top-tabstrip .tab.current:not(:hover)::before,
body.welcoming .top-tabstrip .tab.current:not(:hover)+.tab:not(:hover)::before,
body.slide-editing .top-tabstrip .tab.current:not(.top-pres-tab):not(:hover)::before,
body.slide-editing .top-tabstrip .tab.current:not(.top-pres-tab):not(:hover)
  +.tab:not(.current):not(:hover)::before{opacity:1;}
/* the step is wherever the kind changes between two ungrouped tabs, either
   way round; inside a group the line under its tabs runs unbroken */
.top-tabstrip>.tab:not(.top-pres-tab):not(.tg-in)+.tab.top-pres-tab:not(.tg-in),
.top-tabstrip>.tab.top-pres-tab:not(.tg-in)+.tab:not(.top-pres-tab):not(.tg-in)
  {margin-left:8px;}
.top-tabstrip>.tab:not(.top-pres-tab):not(.tg-in)+.tab.top-pres-tab:not(.tg-in)::before,
.top-tabstrip>.tab.top-pres-tab:not(.tg-in)+.tab:not(.top-pres-tab):not(.tg-in)::before
  {left:-5px;top:6px;bottom:6px;opacity:1;}
@media (hover:hover){
  .top-tabstrip .tab:not(.current) .tab-b,
  body.welcoming .top-tabstrip .tab.current .tab-b,
  body.slide-editing .top-tabstrip .tab.current:not(.top-pres-tab) .tab-b{
    --tab-chip:color-mix(in srgb,var(--chrome-ink,#d7e3ec) 7%,
      var(--tab-row,var(--chrome-0,#0b141d)));
    position:absolute;right:4px;top:50%;translate:0 -50%;
    opacity:0;pointer-events:none;background:var(--tab-chip);
    box-shadow:-10px 0 8px -2px var(--tab-chip);}
  .top-tabstrip .tab:not(.current):is(:hover,:focus-within) .tab-b,
  body.welcoming .top-tabstrip .tab.current:is(:hover,:focus-within) .tab-b,
  body.slide-editing .top-tabstrip
    .tab.current:not(.top-pres-tab):is(:hover,:focus-within) .tab-b{
    opacity:.75;pointer-events:auto;}
  .top-tabstrip .tab .tab-b:hover{opacity:1;}
}
/* ---- Tab groups ----
   A group's colour is one token, --tg, set by its tg-c-<colour> class on
   its label, its tabs and its panel. Along the top a group is a label
   before its tabs and a line of its colour under them; folded, the label
   fills with the colour and shows the count. Down the side it is a
   heading with its rows stepped in under a rule of its colour. */
.tg-c-blue{--tg:#7aa7ff;}.tg-c-green{--tg:#6fcf8e;}
.tg-c-orange{--tg:#f5a35c;}.tg-c-purple{--tg:#b99af5;}
.tg-c-pink{--tg:#f28cc0;}.tg-c-cyan{--tg:#5ccfe0;}
.tg-c-red{--tg:#f2827a;}.tg-c-yellow{--tg:#e8c54f;}
.tg-c-grey{--tg:#9aa8b6;}
body.light .tg-c-blue{--tg:#2f6fe0;}body.light .tg-c-green{--tg:#1f9d55;}
body.light .tg-c-orange{--tg:#d9731c;}body.light .tg-c-purple{--tg:#7c4fd6;}
body.light .tg-c-pink{--tg:#d0408a;}body.light .tg-c-cyan{--tg:#0f97ab;}
body.light .tg-c-red{--tg:#d6453b;}body.light .tg-c-yellow{--tg:#b88a00;}
body.light .tg-c-grey{--tg:#6b7886;}
.tg-head{cursor:pointer;}
.tg-head .tg-dot{width:8px;height:8px;border-radius:50%;flex:none;
  background:var(--tg);}
.tg-head .tg-name{overflow:hidden;text-overflow:ellipsis;min-width:0;}
.tg-head .tg-name:empty,.tg-head .tg-n:empty{display:none;}
.tg-head .tg-n{font-weight:400;opacity:.85;}
.tg-head .tg-n{margin-left:2px;}
.tg-head .tg-chev{flex:none;font-size:9px;opacity:.75;}
/* Along the top, a group is a chip filled with its colour and one line of
   that colour along the foot of each of its tabs. Folded, only the chip,
   with its count. Down the side, the pill wrapper is not a box. */
.top-tabstrip .tg-head{position:relative;flex:none;align-self:stretch;
  display:inline-flex;align-items:center;max-width:170px;
  box-sizing:border-box;margin:0 0 0 6px;padding:0 4px 3px 0;border:0;
  border-radius:0;background:none;box-shadow:none;white-space:nowrap;}
.top-tabstrip .tg-head .tg-dot{display:none;}
/* the fold arrow sits inside the chip at its end, set off by a hairline: a
   click on it folds or unfolds, a click on the name opens the group's
   page */
.top-tabstrip .tg-head .tg-chev{display:inline-flex;align-items:center;
  justify-content:center;align-self:stretch;width:17px;margin:0 -7px 0 1px;
  border-radius:0 6px 6px 0;font-size:9px;opacity:.8;
  box-shadow:inset 1px 0 0 rgb(0 0 0 / .2);}
body.light .top-tabstrip .tg-head .tg-chev{
  box-shadow:inset 1px 0 0 rgb(255 255 255 / .35);}
.top-tabstrip .tg-head .tg-chev:hover{opacity:1;background:rgb(0 0 0 / .14);}
.top-tabstrip .tg-head .tg-pill{display:inline-flex;align-items:center;
  gap:4px;min-width:0;height:20px;box-sizing:border-box;padding:0 8px;
  border-radius:6px;background:var(--tg);color:#0b141d;
  font:600 11.5px var(--sans);}
body.light .top-tabstrip .tg-head .tg-pill{color:#fff;}
.top-tabstrip .tg-head:hover .tg-pill{filter:brightness(1.12);}
.top-tabstrip .tg-head:focus-visible{outline:none;}
.top-tabstrip .tg-head:focus-visible .tg-pill{
  outline:2px solid var(--chrome-ink,#d7e3ec);outline-offset:1px;}
.presrail .tg-head .tg-pill{display:contents;}
/* the line under the chip and a group's tabs, across the gaps between
   them (the strip's 2px: the chip's line reaches over to the first
   tab's, each tab's over to the next) */
.top-tabstrip .tg-head::after,
.top-tabstrip .tab.tg-in::after{content:"";position:absolute;left:-1px;
  right:-1px;bottom:0;height:2px;background:var(--tg);
  pointer-events:none;}
.top-tabstrip .tg-head::after{left:0;right:-2px;}
.tg-hide{display:none!important;}
/* a repository's tab in a group: its chip stands for it */
.tg-lead{display:none!important;}
/* Tabs at the side is a File row (.jv-tabsat), not a title-row button; it
   is ticked while the open files are listed down the side */
#ot-files-side{display:none!important;}
body.files-side .jv-tabsat::before{content:"\2713  ";color:var(--cyan);}
/* finding a file in a folded group finds it */
.pr-filtering>.tg-hide:not(.pr-filtered){display:flex!important;}
.presrail .tabstrip .tg-head{display:flex;align-items:center;gap:7px;
  width:100%;box-sizing:border-box;margin-top:3px;padding:5px 7px;
  border:0;border-radius:7px;background:none;text-align:left;
  color:var(--chrome-ink,#d7e3ec);font:600 12px var(--sans);}
.presrail .tabstrip .tg-head:hover{background:#ffffff0c;}
.presrail .tg-head .tg-chev{order:-1;width:10px;text-align:center;}
.presrail .tg-head .tg-name{flex:1;white-space:nowrap;}
.presrail .tabstrip .tg-in{margin-left:10px;width:calc(100% - 10px);
  border-top-left-radius:0;border-bottom-left-radius:0;
  box-shadow:inset 2px 0 0 var(--tg);}
body.presrail-min .presrail .tg-head .tg-name,
body.presrail-min .presrail .tg-head .tg-chev{display:none;}
body.presrail-min .presrail .tabstrip .tg-head{justify-content:center;}
body.presrail-min .presrail .tabstrip .tg-in{margin-left:0;width:100%;}
/* the decks' rows in the one side list sit as the notebooks' do */
.presrail .tabstrip .pr-item{padding:5px 7px;border:1px solid transparent;}
/* a drag: the tab picked up dims, a line shows where it will land, and
   a group's label it would join is ringed */
.tg-dragging{opacity:.5;}
body.tabs-dragging,body.tabs-dragging *{cursor:grabbing!important;
  user-select:none!important;}
.tg-mark{position:fixed;z-index:250;background:var(--accent);
  border-radius:1px;pointer-events:none;}
.tg-mark[hidden]{display:none;}
.tg-head.tg-drop-into{outline:2px solid var(--accent);outline-offset:1px;}
/* the group's own panel */
.tg-panel{width:264px;box-sizing:border-box;display:flex;
  flex-direction:column;gap:7px;padding:12px;border-radius:10px;
  background:var(--chrome-0,#0b141d);color:var(--chrome-ink,#d7e3ec);
  border:1px solid var(--chrome-line,#ffffff1f);
  box-shadow:0 14px 34px #00000066,inset 0 3px 0 var(--tg,var(--accent));
  font:12px var(--sans);}
.tg-panel[hidden]{display:none;}
/* a heading is a word in the sans, as .op-h and .wj-h are, not spaced
   monospace capitals */
.tg-p-h{font:600 11px var(--sans);letter-spacing:0;
  text-transform:none;color:var(--chrome-ink-2,#8ba0b2);}
.tg-p-name{display:flex;flex-direction:column;gap:5px;}
#tg-name{font:13px var(--sans);padding:6px 8px;border-radius:6px;
  border:1px solid var(--chrome-line,#ffffff2a);color:inherit;
  background:var(--chrome-1,#0d1a26);}
#tg-name:focus{outline:none;border-color:var(--tg,var(--accent));}
.tg-p-cols{display:flex;flex-wrap:wrap;gap:7px;}
.tg-sw{width:20px;height:20px;padding:0;border-radius:50%;cursor:pointer;
  border:2px solid var(--chrome-0,#0b141d);background:var(--tg);
  box-shadow:0 0 0 1px var(--chrome-line,#ffffff2a);}
.tg-sw[aria-checked="true"]{box-shadow:0 0 0 2px var(--chrome-ink,#d7e3ec);}
.tg-p-tabs{display:flex;flex-direction:column;gap:1px;max-height:190px;
  overflow-y:auto;}
.tg-row{display:flex;align-items:center;gap:8px;padding:4px 5px;
  border-radius:5px;cursor:pointer;}
.tg-row:hover{background:color-mix(in srgb,var(--chrome-ink,#d7e3ec) 7%,
  transparent);}
.tg-row input{margin:0;flex:none;accent-color:var(--tg,var(--accent));}
.tg-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tg-p-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px;}
/* Close tabs: a row of its own under Collapse and Ungroup */
.tg-p-btn.tg-p-wide{flex-basis:100%;}
.tg-p-btn:disabled{opacity:.5;cursor:default;}
.tg-p-btn{flex:1;display:inline-flex;align-items:center;
  justify-content:center;gap:6px;height:28px;padding:0 10px;
  border-radius:6px;border:1px solid var(--chrome-line,#ffffff2a);
  background:none;color:inherit;font:12px var(--sans);cursor:pointer;}
.tg-p-btn:hover{border-color:var(--tg,var(--accent));}
.tg-p-btn .bic{width:13px;height:13px;}
/* ---- Group label ----
   Lit while its page is on screen, as a tab is: along the top a ring of its
   colour round the chip and a thicker line under it; down the side the
   heading's hover fill is kept. */
.top-tabstrip .tg-head.current .tg-pill{
  box-shadow:0 0 0 2px var(--chrome-0,#0b141d),0 0 0 3.5px var(--tg);}
.top-tabstrip .tg-head.current::after{height:3px;}
.presrail .tabstrip .tg-head.current{background:#ffffff14;
  box-shadow:inset 2px 0 0 var(--tg);}
body.light .presrail .tabstrip .tg-head.current{background:#0000000d;}
/* ---- A tab's context menu (right-click) ---- */
.tm-menu{position:fixed;z-index:245;min-width:190px;max-width:300px;
  box-sizing:border-box;display:flex;flex-direction:column;padding:5px;
  border-radius:9px;background:var(--chrome-0,#0b141d);
  color:var(--chrome-ink,#d7e3ec);border:1px solid var(--chrome-line,#ffffff1f);
  box-shadow:0 14px 34px #00000066;font:12px var(--sans);}
.tm-menu[hidden]{display:none;}
.tm-row{display:flex;align-items:center;gap:9px;width:100%;
  box-sizing:border-box;padding:6px 9px;border:0;border-radius:6px;
  background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;}
.tm-row:hover,.tm-row:focus-visible{outline:none;
  background:color-mix(in srgb,var(--chrome-ink,#d7e3ec) 9%,transparent);}
.tm-row .bic{width:13px;height:13px;flex:none;}
.tm-row span:last-child{overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.tm-dot{width:10px;height:10px;margin:0 1.5px;border-radius:50%;flex:none;
  background:var(--tg);}
/* the line before its Close rows */
.tm-sep{height:1px;margin:4px 6px;flex:none;
  background:var(--chrome-line,#ffffff1f);}
/* ---- A group's page ----
   Shown where Home is, over the notebook it was opened from: the group
   name on a chip of its colour, its open files as a table, and the box that
   hands each notebook its own filters back. The ribbon over it holds the
   group's Filters. */
.grouppage{position:fixed;left:var(--presrail-w,0);right:0;
  top:var(--chrome-h);bottom:0;overflow:auto;overscroll-behavior:contain;
  background:var(--paper-2);color:var(--ink);z-index:5;}
.grouppage[hidden]{display:none;}
.gp-box{max-width:980px;margin:0 auto;padding:26px 28px 60px;
  box-sizing:border-box;}
.gp-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;}
.gp-chip{margin:0;display:inline-flex;align-items:center;min-width:0;
  max-width:100%;height:30px;box-sizing:border-box;padding:0 13px;
  border-radius:8px;background:var(--tg);color:#0b141d;
  font:600 15px var(--sans);}
body.light .gp-chip{color:#fff;}
.gp-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.gp-count{color:var(--ink-3);font:12.5px var(--sans);}
.gp-spring{flex:1;}
.gp-head .dbtn .bic{width:13px;height:13px;}
.gp-filt{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;
  margin:16px 0 14px;padding:9px 12px;border-radius:8px;
  border:1px solid var(--line);background:var(--paper);
  box-shadow:inset 3px 0 0 var(--tg);font:12.5px var(--sans);}
.gp-solo{display:inline-flex;align-items:center;gap:7px;cursor:pointer;
  font-weight:600;color:var(--ink);}
.gp-solo input{margin:0;accent-color:var(--tg);}
.gp-filt-says{color:var(--ink-3);}
.gp-table{width:100%;border-collapse:separate;border-spacing:0;
  table-layout:fixed;background:var(--paper);border:1px solid var(--line);
  border-radius:8px;overflow:hidden;font:13px var(--sans);}
.gp-table th{text-align:left;padding:8px 12px;color:var(--ink-3);
  font:600 11px var(--sans);letter-spacing:0;text-transform:none;
  border-bottom:1px solid var(--line);}
.gp-table th:nth-child(1){width:34%;}
.gp-table th:nth-child(3){width:132px;}
.gp-table td{padding:5px 12px;border-bottom:1px solid var(--line);
  vertical-align:middle;}
.gp-table tr:last-child td{border-bottom:0;}
.gp-sr{position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;}
.gp-open{display:flex;align-items:center;gap:8px;width:100%;min-width:0;
  padding:5px 6px;margin-left:-6px;border:0;border-radius:6px;
  background:none;color:var(--ink);font:600 13px var(--sans);
  text-align:left;cursor:pointer;}
.gp-open:hover{background:var(--surface-hover);}
.gp-open:hover span{text-decoration:underline;}
.gp-open .bic{width:15px;height:15px;flex:none;color:var(--ink-3);}
.gp-open span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.gp-where{color:var(--ink-2);font:11.5px var(--mono);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.gp-act{text-align:right;}
.gp-ref{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
.gp-ref .bic{width:13px;height:13px;}
.gp-ref.busy .bic{animation:gp-spin 1s linear infinite;}
@keyframes gp-spin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce){.gp-ref.busy .bic{animation:none;}}
.gp-empty{padding:18px 4px;color:var(--ink-3);font:13px var(--sans);}
.gp-empty[hidden]{display:none;}
/* a phone: the path under the name, the button beside both */
@media (max-width:640px){
  .gp-box{padding:18px 16px 40px;}
  .gp-table thead{display:none;}
  .gp-table,.gp-table tbody{display:block;}
  .gp-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;
    align-items:center;border-bottom:1px solid var(--line);padding:4px 0;}
  .gp-table tr:last-child{border-bottom:0;}
  .gp-table td{display:block;border:0;padding:2px 12px;}
  .gp-table td.gp-where{grid-column:1;grid-row:2;}
  .gp-table td.gp-act{grid-column:2;grid-row:1/span 2;}
}
/* ---- Servers page ----
   Shown where Home is, in Home's chrome (body.welcoming): the tab row and
   nothing else of the header. */
#pr-servers[hidden],#pr-recent[hidden]{display:none!important;}
#pr-refs[hidden]{display:none!important;}
.open-tabs-row .ot-servers .bic,.open-tabs-row .ot-refs .bic{width:14px;height:14px;
  flex:none;}
.serverpage{position:fixed;left:var(--presrail-w,0);right:0;top:0;bottom:0;
  overflow:auto;overscroll-behavior:contain;background:var(--paper-2);
  color:var(--ink);z-index:5;}
body.tabs-row-on .serverpage{top:var(--open-tabs-h);}
.serverpage[hidden]{display:none;}
.sv-box{max-width:880px;margin:0 auto;padding:26px 28px 60px;
  box-sizing:border-box;font:13px/1.5 var(--sans);}
.sv-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;}
.sv-title{margin:0;display:inline-flex;align-items:center;gap:9px;
  font:600 20px var(--sans);}
.sv-title .bic{width:20px;height:20px;}
.sv-proto{padding:2px 7px;border-radius:999px;border:1px solid var(--line);
  color:var(--ink-3);font:600 11.5px var(--sans);}
.sv-head .dbtn .bic{width:13px;height:13px;}
#sv-pin.on{border-color:var(--accent);color:var(--ink);}
.sv-what{margin:12px 0 0;max-width:72ch;color:var(--ink-2);}
.sv-what b{color:var(--ink);}
.sv-card{margin-top:18px;padding:16px 18px;border-radius:10px;
  border:1px solid var(--line);background:var(--paper);}
.sv-cardhead{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;}
.sv-h{margin:0;font:600 15px var(--sans);}
.sv-sub{margin:16px 0 6px;color:var(--ink-3);font:600 11px var(--sans);
  letter-spacing:0;text-transform:none;}
.sv-note{margin:8px 0 0;max-width:72ch;color:var(--ink-2);}
.sv-note a{color:var(--accent);}
/* the web build's one-line summary, and the folds */
.sv-line{margin:8px 0 0;font-weight:600;color:var(--ink);}
.sv-more{margin-top:8px;}
.sv-more>summary{cursor:pointer;color:var(--ink-2);width:max-content;}
.sv-more>summary:hover{color:var(--ink);}
.sv-more[open]>summary{margin-bottom:4px;}
details.sv-card>summary.sv-h{color:var(--ink);width:auto;}
.sv-steps a{color:var(--accent);}
.sv-dim{color:var(--ink-3);}
.sv-err{margin:8px 0 0;color:var(--danger);}
.sv-err[hidden]{display:none;}
.sv-state{display:inline-flex;align-items:center;gap:6px;padding:2px 9px;
  border-radius:999px;border:1px solid var(--line);font:600 11.5px var(--sans);
  color:var(--ink-2);}
.sv-dot{width:8px;height:8px;border-radius:50%;background:var(--ink-3);}
.sv-on .sv-dot{background:#3fb950;}
.sv-on{color:var(--ink);}
.sv-err.sv-state .sv-dot{background:var(--danger);}
.sv-busy .sv-dot{background:var(--accent);}
.sv-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.sv-row>.sv-dim{align-self:center;}
.sv-row .bic,.sv-table .bic,.sv-mini .bic{width:13px;height:13px;}
.sv-who{display:grid;gap:6px;margin-top:12px;}
.sv-lab{color:var(--ink-3);font:600 11px var(--sans);letter-spacing:0;
  text-transform:none;}
.sv-radio{display:flex;align-items:baseline;gap:8px;cursor:pointer;
  color:var(--ink-2);}
.sv-radio b{color:var(--ink);font-weight:600;}
.sv-radio input{margin:0;accent-color:var(--accent);}
.sv-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);
  gap:8px 16px;margin:14px 0 0;align-items:center;}
.sv-facts dt{color:var(--ink-3);font:600 11px var(--sans);
  letter-spacing:0;text-transform:none;}
.sv-facts dd{margin:0;display:flex;align-items:center;flex-wrap:wrap;
  gap:6px 10px;min-width:0;overflow-wrap:anywhere;}
.sv-facts code{font:12px var(--mono);}
.dbtn.sv-mini{padding:2px 8px;font-size:11.5px;}
.sv-server{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);}
.sv-srv{font:600 13px var(--mono);overflow-wrap:anywhere;}
.sv-srv.sv-named{font:600 14px var(--sans);}
.sv-srvsub .sv-dim{font:12px var(--mono);}
.sv-table{margin-top:4px;}
.sv-table th:nth-child(1){width:auto;}
.sv-table th:nth-child(2),.sv-table th:nth-child(3){width:110px;}
.sv-table th:nth-child(4){width:200px;}
.sv-table td.gp-act{white-space:nowrap;}
.sv-table td.gp-act .dbtn{margin-left:6px;}
.sv-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.sv-form{display:grid;gap:10px;margin-top:12px;max-width:560px;}
.sv-field{display:grid;gap:4px;}
.sv-field .ask-in{width:100%;box-sizing:border-box;}
.sv-hint{color:var(--ink-3);font-size:12px;}
.sv-steps{margin:10px 0 0;padding-left:22px;max-width:72ch;
  color:var(--ink-2);}
.sv-steps li{margin:6px 0;}
/* the "Get a permanent server" guide, under the online servers */
.sv-guide{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);}
.sv-steps li .dbtn{vertical-align:baseline;}
.sv-steps code{font:12px var(--mono);overflow-wrap:anywhere;}
.sv-vars{margin:6px 0 4px;padding:8px 10px;border:1px solid var(--line);
  border-radius:6px;font:12px var(--mono);white-space:pre-wrap;
  overflow-wrap:anywhere;color:var(--ink);user-select:all;}
.sv-steps .sv-hint{display:block;}
/* a server's address, with Rename and Copy setup link, under its name */
.sv-srvsub{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;
  margin:2px 0 6px;}
.sv-srvsub .sv-dim{margin:0;overflow-wrap:anywhere;}
/* ---- References page ----
   Uses the Servers page's frame (.serverpage, .sv-box). The editor draws
   the contents (23b-ref-library.js): the four views and Find, a list to
   pick a project or a file from, and a row per reference. */
.rf-box{max-width:1100px;}
.rf-body{margin-top:14px;}
.rf-body .bic{width:13px;height:13px;flex:none;}
.rf-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;}
.rf-views{display:flex;flex-wrap:wrap;gap:6px;}
.rf-find{flex:1 1 220px;min-width:0;max-width:360px;box-sizing:border-box;
  padding:5px 9px;border:1px solid var(--line);border-radius:6px;
  background:var(--paper);color:var(--ink);font:13px var(--sans);}
.rf-hint{margin:10px 0 0;max-width:80ch;color:var(--ink-2);}
.rf-hint.rf-empty{color:var(--ink-3);}
.rf-hint.rf-warn{color:var(--danger);}
.rf-acts{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.rf-acts.rf-lib{margin-top:12px;justify-content:flex-start;}
.rf-list{display:grid;gap:8px;margin-top:14px;}
.rf-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;
  align-items:start;padding:10px 12px;border:1px solid var(--line);
  border-radius:8px;background:var(--paper);}
.rf-row.rf-carried{border-style:dashed;}
.rf-main{min-width:0;display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline;}
.rf-key{font:600 12px var(--mono);color:var(--ink);overflow-wrap:anywhere;}
.rf-ref{color:var(--ink-2);overflow-wrap:anywhere;}
.rf-where{grid-column:1;display:flex;flex-wrap:wrap;gap:4px;}
.rf-acts{grid-column:2;grid-row:1/span 2;justify-content:flex-end;}
.rf-row .dbtn{padding:2px 8px;font-size:11.5px;}
.rf-chip{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;
  border-radius:999px;border:1px solid var(--line);font:600 11px var(--sans);
  color:var(--ink-2);max-width:260px;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.rf-chip .bic{width:11px;height:11px;}
.rf-chip.rf-global{border-color:var(--accent);color:var(--ink);}
.rf-chip.rf-carried{border-style:dashed;}
.rf-addto{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:-2px 0 0;
  padding:8px 12px;border:1px solid var(--accent);border-radius:8px;
  background:var(--paper);}
.rf-addto-t{font:600 12px var(--sans);color:var(--ink);margin-right:4px;}
.rf-addto .dbtn{padding:2px 8px;font-size:11.5px;}
.rf-two{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);
  gap:18px;margin-top:14px;align-items:start;}
.rf-pick{display:grid;gap:8px;position:sticky;top:0;}
.rf-pick .rf-find{max-width:none;}
.rf-pick-list{display:grid;gap:2px;max-height:calc(100vh - 220px);overflow:auto;
  border:1px solid var(--line);border-radius:8px;background:var(--paper);
  padding:4px;}
.rf-pick-row{display:flex;align-items:center;gap:7px;width:100%;
  padding:5px 8px;border:0;border-radius:6px;background:none;color:var(--ink-2);
  font:13px var(--sans);text-align:left;cursor:pointer;}
.rf-pick-row:hover{background:var(--paper-2);color:var(--ink);}
.rf-pick-row.is-on{background:var(--paper-2);color:var(--ink);
  box-shadow:inset 3px 0 0 var(--accent);}
.rf-pick-t{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.rf-pick-n{flex:none;color:var(--ink-3);font:11px var(--mono);}
.rf-side{min-width:0;}
.rf-side .rf-list{margin-top:12px;}
.rf-h{margin:0;font:600 16px var(--sans);overflow-wrap:anywhere;}
.rf-hint .dbtn.rf-inline{padding:1px 7px;font-size:11.5px;vertical-align:baseline;}
/* the Citations pane's Find in Global, and its door to the tab */
.ct-grow{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.ct-gfind{flex:1 1 140px;min-width:0;box-sizing:border-box;padding:3px 7px;
  border:1px solid var(--line);border-radius:5px;background:var(--paper);
  color:var(--ink);font:12px var(--sans);}
.ct-from.ct-global{color:var(--accent);}
.ct-from.ct-carried{font-style:italic;}
@media (max-width:760px){
  .rf-two{grid-template-columns:minmax(0,1fr);}
  .rf-pick{position:static;}
  .rf-pick-list{max-height:220px;}
  .rf-row{grid-template-columns:minmax(0,1fr);}
  .rf-acts{grid-column:1;grid-row:auto;justify-content:flex-start;}
}
@media (max-width:640px){
  .sv-box{padding:18px 16px 40px;}
  .sv-table thead{display:none;}
  .sv-table,.sv-table tbody{display:block;}
  .sv-table tr{display:grid;grid-template-columns:1fr 1fr;
    border-bottom:1px solid var(--line);padding:6px 0;}
  .sv-table td{display:block;border:0;padding:2px 12px;}
  .sv-table td.sv-name{grid-column:1/-1;}
  .sv-table td.gp-act{grid-column:1/-1;text-align:left;}
  .sv-table td.gp-act .dbtn{margin:4px 6px 0 0;}
}
/* the ribbon over a group's page is its Filters: what acts on one
   notebook alone -- its sections, Keep, the View tab, Info, Find,
   Present, and (with the files down the side) its name on the title
   row -- is not there */
body.group-viewing #ab-tab-view,body.group-viewing #file-dock,
body.group-viewing #nb-file-ident,
body.group-viewing #sec-scope-btn,body.group-viewing #copy-grp,
body.group-viewing #marks-grp,body.group-viewing #ab-saveview,
body.group-viewing #ab-tree,body.group-viewing #doc-find,
body.group-viewing #doc-present,body.group-viewing #doc-autoslides{
  display:none!important;}
/* ---- Open panel ---- */
/* one layer: a tab per kind along the top, and under the chosen one its
   ways to open something and its Pinned and Recent lists */
.open-pop{position:fixed;z-index:240;width:min(460px,calc(100vw - 16px));
  max-height:calc(100vh - 16px);overflow:auto;box-sizing:border-box;
  padding:0 12px 12px;border-radius:10px;background:var(--chrome-0,#0b141d);
  color:var(--chrome-ink,#d7e3ec);border:1px solid var(--chrome-line,#ffffff1f);
  box-shadow:0 16px 40px #00000070;font:12px var(--sans);}
.open-pop[hidden]{display:none;}
/* the tabs stay put while the lists scroll under them */
.op-tabs{position:sticky;top:0;z-index:1;display:flex;gap:2px;
  margin:0 -12px 10px;padding:6px 10px 0;background:var(--chrome-0,#0b141d);
  border-bottom:1px solid var(--chrome-line,#ffffff1f);}
.op-tab{display:inline-flex;align-items:center;gap:6px;margin-bottom:-1px;
  padding:7px 10px 8px;border:0;border-bottom:2px solid transparent;
  background:none;color:var(--chrome-ink-2,#8ba0b2);font:12px var(--sans);
  cursor:pointer;white-space:nowrap;}
.op-tab .bic{width:13px;height:13px;}
.op-tab:hover{color:var(--chrome-ink,#d7e3ec);}
.op-tab[aria-selected="true"]{color:var(--chrome-ink,#e6edf3);
  border-bottom-color:var(--accent);font-weight:600;}
.op-tab:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.op-panel[hidden]{display:none;}
.op-link{display:flex;gap:6px;margin-bottom:8px;}
.op-in{flex:1;min-width:0;box-sizing:border-box;padding:5px 8px;
  border:1px solid var(--chrome-line,#ffffff1f);border-radius:6px;
  background:var(--chrome-1,#0f1b26);color:var(--chrome-ink,#d7e3ec);
  font:12px var(--sans);}
.op-in:focus{outline:none;border-color:var(--accent);}
.op-err{margin:-2px 0 8px;color:var(--danger);font-size:11.5px;}
.op-err[hidden]{display:none;}
.op-acts{display:flex;flex-wrap:wrap;gap:6px;}
.op-acts[hidden]{display:none;}
.op-acts .dbtn .bic{width:13px;height:13px;}
/* the tabs' type, not the page's monospace buttons */
.open-pop .dbtn{font-family:var(--sans);font-size:12px;}
/* Pinned and Recent headings, worded as on Home */
.op-h{margin:12px 0 4px 6px;font:600 11px var(--sans);letter-spacing:0;
  color:var(--chrome-ink-2,#8ba0b2);}
.op-list{display:flex;flex-direction:column;gap:1px;}
/* a row and its pin, side by side (a button cannot hold a button) */
.op-item{display:flex;align-items:center;gap:2px;min-width:0;}
.op-row{display:flex;align-items:center;gap:9px;flex:1;min-width:0;
  box-sizing:border-box;padding:6px;border:0;border-radius:6px;
  background:none;color:inherit;font:inherit;text-align:left;
  cursor:pointer;}
.op-row:hover,.op-row:focus-visible{outline:none;
  background:color-mix(in srgb,var(--chrome-ink,#d7e3ec) 9%,transparent);}
.op-row.busy{opacity:.6;cursor:progress;}
/* the pin shows at rest here, brighter on the row under the pointer, lit
   when on */
.recent-pin.op-pin{color:var(--chrome-ink-2,#8ba0b2);margin-right:2px;
  opacity:.6;}
.op-item:hover .op-pin,.op-pin:focus-visible{opacity:.9;}
.recent-pin.op-pin.on{opacity:1;color:var(--accent);}
.op-ic{flex:none;display:inline-flex;color:var(--chrome-ink-2,#8ba0b2);}
.op-ic .bic{width:15px;height:15px;}
.op-tx{display:flex;flex-direction:column;min-width:0;}
.op-nm,.op-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.op-nm{font-weight:500;}
.op-sub{color:var(--chrome-ink-2,#8ba0b2);font-size:11px;}
.op-none{padding:4px 6px;color:var(--chrome-ink-3,#607789);
  font-style:italic;}
/* ---- Reader ribbon tabs ----
   The editor's shape: File, the tabs and the verbs on one strip, and under
   it one row holding the chosen tab's groups, each named underneath. The
   band never wraps: fitRibbon tightens it (rbc1), then it scrolls
   sideways. A group belongs to one tab (data-abtab) and is display:none on
   the others, so it costs no width in the fit. */
.appbar{position:relative;display:flex;flex-direction:column;
  align-items:stretch;gap:0;min-height:0;padding:0;overflow:visible;}
.ab-tabs{display:flex;align-items:center;gap:4px;height:34px;
  box-sizing:border-box;padding:0 8px;min-width:0;overflow-x:auto;
  overflow-y:hidden;scrollbar-width:thin;
  border-bottom:1px solid var(--chrome-line,#ffffff12);}
.ab-tablist{display:flex;align-items:stretch;align-self:stretch;gap:2px;
  margin-left:6px;flex:none;}
.ab-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;display:inline-flex;
  align-items:center;gap:6px;transition:color .12s,border-color .12s;}
.ab-tab:hover{color:var(--chrome-ink);}
.ab-tab[aria-selected="true"]{color:var(--chrome-ink);
  border-bottom-color:var(--cyan);}
/* in the tree the Filters tab holds the tree's own controls, and says so */
.ab-tab .abt-tree{display:none;}
body.tree-mode .ab-tab .abt-doc{display:none;}
body.tree-mode .ab-tab .abt-tree{display:inline;}
.ab-tabs .appbar-spring{flex:1;min-width:8px;}
.ab-tabs>.abgrp .abgrp-lab{display:none;}
.ab-tabs #ab-view .abgrp-row,.ab-tabs #ab-view .btn-grp,
.ab-tabs #ab-view .vw-stack{flex-direction:row;align-items:center;gap:4px;}
.ab-tabs #ab-view .vw-stack{min-width:0;}
.ab-tabs #ab-view .vw-stack .toggle{width:auto;}
.appbar .toggle.ab-fold{width:var(--ab-btn-h);padding:0;
  justify-content:center;font-size:12px;}
/* The band */
.ab-band{display:flex;flex-wrap:nowrap;align-items:stretch;gap:0;
  box-sizing:border-box;padding:4px 8px 3px;min-width:0;overflow-x:auto;
  overflow-y:hidden;scrollbar-width:thin;
  border-bottom:1px solid var(--chrome-line,#ffffff12);}
.ab-band[hidden]{display:none!important;}
.ab-band[data-tab="filters"] [data-abtab="view"],
.ab-band[data-tab="view"] [data-abtab="filters"]{display:none!important;}
.ab-band>.abgrp{flex:none;gap:3px;padding:0 10px;
  border-right:1px solid var(--chrome-line,#ffffff12);}
.ab-band>.abgrp:first-child{padding-left:2px;}
.ab-band .abgrp-row,.ab-band .abgrp-row.abgrp-stack{flex-direction:row;
  align-items:center;flex-wrap:nowrap;gap:4px;flex:none;}
.ab-band .abgrp-row.abgrp-stack{gap:12px;}
/* the group's NAME under it, as the editor's ribbon names its groups */
.ab-band .abgrp-lab{display:block;order:0;font-family:var(--sans);
  font-size:10.5px;letter-spacing:0;text-transform:none;opacity:1;
  line-height:12px;color:var(--chrome-ink-2);text-align:center;}
.ab-band .fgrp{flex-direction:row;align-items:center;gap:0;
  justify-content:flex-start;}
.ab-band .fgrp .toggle,.ab-band #pt-filter-btn,.ab-band #ck-filter-btn,
.ab-band #ot-filter-btn{width:auto;}
/* a filter and its chooser are one control, joined down the middle:
   "Plots On | Which plots" -- so the row reads as four filters, not
   seven buttons, and nothing has to line up with anything under it */
.ab-band .fgrp>.toggle.tv:not(:last-child){border-top-right-radius:0;
  border-bottom-right-radius:0;}
.ab-band .fgrp>.toggle.tv+.toggle.sub{border-top-left-radius:0;
  border-bottom-left-radius:0;margin-left:-1px;}
.ab-band .fgrp+.fgrp{margin-left:2px;}
.ab-band #sec-scope-grp,.ab-band #pages-grp,.ab-band #tree-fold-grp,
.ab-band #tree-width-grp{gap:4px;}
.ab-band .vw-stack{flex-direction:row;min-width:0;gap:4px;}
.ab-band .vw-stack .toggle{width:auto;}
/* Outline uses the row's sans face */
.ab-band .menubtn{font-family:var(--sans);letter-spacing:0;}
.ab-band .fgrp-h{gap:6px;}
/* a folded group: one door, its row in a menu under it (fitRibbon) */
.ab-band .ab-foldwrap{display:flex;align-items:center;}
.ab-foldmenu{position:fixed;z-index:190;display:flex;padding:6px;
  background:var(--chrome-2);border:1px solid var(--chrome-line);
  border-radius:8px;box-shadow:0 12px 40px var(--shadow);}
.ab-foldmenu[hidden]{display:none!important;}
/* The fitter measures what is there: a toggle's padding must not
   transition between rungs, or fitRibbon reads the old padding mid-
   transition and folds a group that would have fitted. */
.appbar .toggle{transition:color .15s,background-color .15s,
  border-color .15s,opacity .15s;}
.ab-band .fgrp-h .fgrp-cap{min-width:0;height:auto;line-height:1;}
body.light .ab-tabs,body.light .ab-band{border-bottom-color:var(--chrome-line);}
body.light .ab-band>.abgrp{border-right-color:var(--chrome-line);}
/* width:auto: core.css's narrow-window rule (max-width:860px) squares off
   the old icon-only outline button and would paint Outline, Variables and
   Repository words over one another under 860px. [hidden] is restated so a
   rendered page's Repository, hidden because it can do nothing there, is
   not drawn. */
.appbar .menubtn{display:inline-flex;align-items:center;justify-content:center;
  width:auto;
  height:var(--ab-btn-h);box-sizing:border-box;margin:0;padding:0 7px;
  gap:7px;white-space:nowrap;font-size:12px;color:var(--btn-ink,#d7e3ec);
  border:1px solid var(--btn-border,#ffffff40);background:var(--btn-bg,#ffffff12);
  border-radius:7px;cursor:pointer;}
.appbar .menubtn[hidden]{display:none;}
.appbar .menubtn:hover{border-color:var(--cyan);color:#fff;}
.appbar .menubtn span,.appbar .menubtn span::before,
.appbar .menubtn span::after{content:"";display:block;width:14px;height:2px;
  background:currentColor;position:relative;}
.appbar .menubtn span::before{position:absolute;top:-5px;}
.appbar .menubtn span::after{position:absolute;top:5px;}
.filter-wrap{display:contents;}
/* the house rule: an author display beats [hidden], so say it again */
.filter-count[hidden]{display:none;}
.filter-count{display:inline-flex;align-items:center;justify-content:center;
  min-width:14px;height:14px;padding:0 3px;border-radius:8px;
  background:color-mix(in srgb,var(--accent) 14%,transparent);
  color:var(--cyan);font:9px var(--mono);}
.filter-panel[hidden]{display:none!important;}
/* ---- Collections ----
   A feed like a notebook's, in the trace tab's frame: the cards are the
   document's own .card, with a quiet control bar under each. */
.cell-collect{flex:none;display:inline-flex;align-items:center;gap:5px;
  margin-left:auto;padding:3px 9px;border:1px solid var(--line);
  border-radius:5px;background:none;color:var(--ink-2);
  font:500 11.5px var(--sans);letter-spacing:0;cursor:pointer;
  white-space:nowrap;}
.cell-collect .bic{width:11px;height:11px;}
/* what is always there stands together at the card's edge -- the name,
   Trace, Versions, Collect -- and what comes up when the card is pointed
   at (the pin, the label, the eye) comes up to the left of it */
.cardhead .nodeid{order:6;}
.cardhead .plot-trace-btn{order:7;margin-left:0;}
.cardhead .cell-history-btn{order:8;margin-left:0;}
.cardhead .cell-collect{order:9;margin-left:0;}
.cardhead .cell-pin{margin-left:auto;}
.cell-collect:hover,.cell-collect:focus-visible{
  border-color:color-mix(in srgb,var(--accent) 40%,transparent);
  color:var(--cyan-deep);}
body:not(.light) .cell-collect:hover{color:var(--cyan);}
.col-menu{position:fixed;z-index:420;min-width:220px;
  max-width:min(320px,calc(100vw - 12px));
  max-height:60vh;overflow:auto;display:flex;flex-direction:column;gap:2px;
  padding:6px;background:var(--chrome-2);border:1px solid var(--chrome-line);
  border-radius:8px;box-shadow:0 12px 40px var(--shadow);}
.col-menu-h{font:600 11.5px var(--sans);color:var(--chrome-ink-2);padding:4px 6px 6px;}
.col-menu-row,.col-menu-chip{display:flex;align-items:center;gap:8px;
  padding:6px 8px;border:0;border-radius:6px;background:none;
  color:var(--chrome-ink);font:12.5px var(--sans);text-align:left;
  cursor:pointer;}
.col-menu-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.col-menu-row:hover,.col-menu-row:focus-visible,.col-menu-chip:hover{
  background:var(--surface-hover);}
.col-menu-new{border-top:1px solid var(--chrome-line);margin-top:2px;
  border-radius:0 0 6px 6px;color:var(--cyan);}
.col-menu-chip{font-size:11.5px;color:var(--chrome-ink-2);
  border:1px dashed var(--chrome-line);margin-bottom:4px;}
.col-menu-chip[aria-pressed="true"]{color:var(--cyan);
  border-style:solid;border-color:color-mix(in srgb,var(--accent) 45%,transparent);}
.col-menu .bic,.col-btn .bic,.col-src .bic{width:13px;height:13px;flex:none;}
.coltab .col-head{padding-right:0;}
.col-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;}
.col-btn{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;
  border:1px solid var(--line);border-radius:6px;background:none;
  color:var(--ink-2);font:12px var(--sans);cursor:pointer;white-space:nowrap;}
.col-btn:hover,.col-btn:focus-visible{border-color:var(--cyan);color:var(--ink);}
.col-btn.primary{background:var(--cyan);border-color:var(--cyan);color:var(--on-accent);}
.col-btn.col-rm:hover{border-color:#e0757c;color:#e0757c;}
body:not(.light) .col-btn{border-color:#ffffff26;color:var(--chrome-ink-2);}
body:not(.light) .col-btn:hover{color:#fff;border-color:var(--cyan);}
.col-src{margin-left:auto;flex:none;display:inline-flex;align-items:center;
  gap:5px;padding:2px 8px;border:1px solid var(--line);border-radius:20px;
  background:none;color:var(--ink-3);font:10px var(--mono);cursor:pointer;
  max-width:40%;}
.col-src span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.col-src:hover{color:var(--cyan-deep);border-color:var(--cyan);}
.col-bar{display:flex;flex-wrap:wrap;align-items:center;gap:5px;
  margin-top:12px;padding-top:9px;border-top:1px dashed var(--line);
  opacity:.55;transition:opacity .15s;}
.col-card:hover>.col-bar,.col-bar:focus-within{opacity:1;}
.col-bar-sp{flex:1;}
.col-group{margin-bottom:18px;}
.col-group>.card{margin-bottom:0;}
/* what is linked hangs from its card, on a hairline */
.col-under{margin:6px 0 0 22px;padding-left:14px;
  border-left:1px solid var(--line);}
.col-under-body>.card{margin:8px 0 0;}
.col-fold{display:inline-flex;align-items:center;gap:7px;padding:3px 2px;
  border:0;background:none;color:var(--ink-3);font:11px var(--mono);
  cursor:pointer;}
.col-fold .chev{display:inline-block;transition:transform .15s;}
.col-fold[aria-expanded="true"] .chev{transform:rotate(90deg);}
.col-fold:hover{color:var(--cyan-deep);}
.col-note .note .col-hint{color:var(--ink-3);font-style:italic;}
.col-edit textarea{width:100%;box-sizing:border-box;font:12.5px/1.5 var(--mono);
  padding:8px 10px;border:1px solid var(--line);border-radius:6px;
  background:var(--paper);color:var(--ink);resize:vertical;}
.col-edit-row{display:flex;justify-content:flex-end;gap:6px;margin-top:6px;}
.col-missing{color:var(--ink-3);font-style:italic;}
.col-empty{padding:28px 22px;border:1px dashed var(--line);border-radius:12px;
  color:var(--ink-2);line-height:1.6;}
.col-empty .bic{width:12px;height:12px;vertical-align:-1px;}
.col-pick{position:fixed;inset:0;z-index:430;background:#0009;
  display:flex;align-items:flex-start;justify-content:center;
  padding-top:10vh;}
.col-pick-box{width:min(600px,92vw);max-height:72vh;display:flex;
  flex-direction:column;gap:8px;padding:14px;background:var(--chrome-2);
  border:1px solid var(--chrome-line);border-radius:12px;
  box-shadow:0 18px 60px var(--shadow);color:var(--chrome-ink);}
.col-pick-h{font:600 14px var(--sans);}
.col-pick-q{padding:7px 10px;border:1px solid var(--chrome-line);
  border-radius:6px;background:var(--chrome-1);color:var(--chrome-ink);
  font:13px var(--sans);}
.col-pick-list{overflow:auto;display:flex;flex-direction:column;gap:2px;
  min-height:80px;}
.col-pick-row{display:flex;align-items:center;gap:9px;padding:6px 8px;
  border:0;border-radius:6px;background:none;color:var(--chrome-ink);
  font:12.5px var(--sans);text-align:left;cursor:pointer;}
.col-pick-row:hover,.col-pick-row:focus-visible{background:var(--surface-hover);}
.col-pick-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.col-pick-s{flex:none;font:10.5px var(--mono);color:var(--chrome-ink-2);}
.col-pick-none{padding:16px;color:var(--chrome-ink-2);text-align:center;}
.col-pick-foot{display:flex;justify-content:flex-end;}
/* ---- Collection canvas ----
   The head's Feed | Canvas pair, and on the canvas the zoom, Fit all and
   Arrange. On the canvas the shell is exactly the window under the chrome,
   with no page scroll, and the view under a one-line head scrolls both
   ways (see the canvas section of 64-collections.js). */
.col-seg{display:inline-flex;flex:none;}
.col-seg>.col-btn{border-radius:0;}
.col-seg>.col-btn+.col-btn{margin-left:-1px;}
.col-seg>.col-btn:first-child{border-radius:6px 0 0 6px;}
.col-seg>.col-btn:last-child{border-radius:0 6px 6px 0;}
.col-seg>.col-btn:hover,.col-seg>.col-btn:focus-visible{position:relative;}
.col-btn[aria-pressed="true"]{border-color:var(--accent);color:var(--ink);
  background:color-mix(in srgb,var(--accent) 16%,transparent);}
body:not(.light) .col-btn[aria-pressed="true"]{color:var(--chrome-ink);
  border-color:var(--accent);}
.col-zoom span{display:inline-block;min-width:4ch;text-align:right;
  font-variant-numeric:tabular-nums;}
.nbshell.coltab.col-on-canvas{height:calc(100vh - var(--chrome-h));
  min-height:0;}
.coltab.col-on-canvas .stage{min-height:0;overflow:hidden;display:flex;
  flex-direction:column;}
.coltab.col-on-canvas .content{flex:1 1 auto;min-height:0;max-width:none;
  width:100%;margin:0;padding:0;display:flex;flex-direction:column;
  box-sizing:border-box;}
/* one line when the window has the room: the name, how much is in it, and
   the tools, which never wrap among themselves -- past their width they
   move under the name as one row, and past that the row scrolls sideways
   (the ribbon's rule) */
.col-head.col-head-c{flex:none;display:flex;flex-wrap:wrap;align-items:center;
  gap:4px 12px;margin:0;padding:7px 14px;}
.col-head-c .tracetab-t{flex:0 1 auto;min-width:0;margin:0;font-size:16px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
/* the count takes the room that is left and never forces a second line. It
   shows whole or not at all: cut by an ellipsis it can read "3" for "30
   items". An empty first item holds the line, so a count that no longer
   fits wraps to a second line the box clips; where it fits, the source
   name is cut with an ellipsis instead */
.col-head-c .tracetab-sub{flex:1 1 0;min-width:0;font-size:11.5px;
  display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;
  height:1.4em;line-height:1.4em;overflow:hidden;}
.col-head-c .tracetab-sub::before{content:'';flex:none;width:0;height:1.4em;}
.col-head-c .col-n{flex:none;white-space:nowrap;}
.col-head-c .col-from{flex:1 1 0;min-width:0;white-space:pre;
  overflow:hidden;text-overflow:ellipsis;}
.col-head-c .col-tools{flex:0 0 auto;max-width:100%;margin:0 0 0 auto;
  flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;}
/* the ribbon's compaction, here from the start: spacing only, every word
   kept -- so the row fits beside the outline at 1280 x 600 */
.col-head-c .col-tools{gap:4px;}
.col-head-c .col-btn{padding:3px 7px;}
.col-view{position:relative;flex:1 1 auto;min-height:0;overflow:auto;
  overscroll-behavior:contain;outline:none;
  border-top:1px solid var(--chrome-line);}
.col-view:focus-visible{box-shadow:inset 0 0 0 2px var(--focus);}
/* the spacer is the extent and the ground you pan by: its dots are the
   chrome's second ink, so they read in every theme (pitch: colExtent) */
.col-space{cursor:grab;
  background-image:radial-gradient(circle,
    color-mix(in srgb,var(--chrome-ink-2) 34%,transparent) 1px,
    transparent 1.5px);
  background-size:24px 24px;background-position:12px 12px;}
/* the plane is scaled, not zoomed (see the canvas for why), and has no
   size of its own: its boxes are what it shows */
.col-plane{position:absolute;left:0;top:0;width:0;height:0;
  transform-origin:0 0;}
.col-plane>.col-sec{margin:0;}
.col-plane .col-empty{position:absolute;left:24px;top:24px;width:464px;
  box-sizing:border-box;background:var(--paper);}
.col-box{position:absolute;box-sizing:border-box;cursor:auto;outline:none;
  border-radius:12px;}
.col-box:focus-visible{outline:2px solid var(--focus);outline-offset:3px;}
/* a box with no place yet is not laid out at all; it is placed a chunk
   at a time, measured unseen first (colPlacePending) */
.col-box.col-unplaced{display:none;left:0;top:0;}
.col-box.col-unplaced.col-measuring{display:block;visibility:hidden;}
.col-box.col-gone{display:none;}
.col-box-in>.card{margin:0;}
/* a box off screen skips its cards' rendering, as the feed does (the
   cards' own content-visibility) -- the canvas costs what is in view.
   A box being measured is drawn in full (colMeasure): a placeholder
   height would put a box on top of the next one. The whole plane at
   once (col-measure) is every box drawn, as a check reads them. */
.col-box.col-measuring .card,.col-plane.col-measure .card{
  content-visibility:visible;}
/* A code fold that the Filters began, or that starts as a card set aside,
   is measured where it ends, not mid-transition (Arrange would measure
   folds half open). The fold is the only transition that changes a card's
   height (core.css .codebody), and only it is stopped: stopping every
   transition restyles every element of every box. */
.col-box.col-measuring .codebody,.col-plane.col-measure .codebody{
  transition:none!important;}
/* a big box off screen is drawn a card a task before it is measured
   (colWarm): drawn in full at once it was a long task */
.col-box .card[data-warm]{content-visibility:visible;}
/* the title says which box is which, so in a box it takes two lines
   before it gives up, and the notebook it came from is a short pill
   (its whole name is the pill's title) */
.col-box .cardtitle{white-space:normal;display:-webkit-box;
  -webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.25;}
.col-box .col-src{max-width:9.5em;}
.col-box.col-hset>.col-box-in{height:100%;overflow:auto;border-radius:12px;}
.col-box-in>.col-card>.cardhead{cursor:grab;touch-action:none;}
/* a box is half the feed's width: its card's bar takes two tidy rows --
   what to add on the first, its order and Remove on the second */
.col-box .col-bar-sp{flex:1 0 100%;height:0;}
.col-box .col-bar-sp+.col-btn{margin-left:auto;}
.col-grip{position:absolute;right:-5px;bottom:-5px;width:14px;height:14px;
  cursor:nwse-resize;touch-action:none;box-sizing:border-box;
  border-right:2px solid var(--chrome-ink-2);
  border-bottom:2px solid var(--chrome-ink-2);border-radius:0 0 4px 0;
  opacity:.45;transition:opacity .15s;}
.col-box:hover>.col-grip,.col-box:focus-within>.col-grip,
.col-grip:hover{opacity:1;}
.col-grip:hover{border-color:var(--accent);}
/* zoomed out, what you aim at is drawn bigger on the plane so it stays
   a size you can hit and see: the corner and the focus ring, at two
   steps (colZoomLabel sets the class when the zoom crosses one) */
.col-zs .col-grip{width:28px;height:28px;right:-9px;bottom:-9px;
  border-width:0 4px 4px 0;border-radius:0 0 8px 0;}
.col-zxs .col-grip{width:64px;height:64px;right:-18px;bottom:-18px;
  border-width:0 9px 9px 0;border-radius:0 0 18px 0;}
.col-zs .col-box:focus-visible{outline-width:4px;outline-offset:6px;}
.col-zxs .col-box:focus-visible{outline-width:10px;outline-offset:14px;}
/* A canvas that plays (64c-canvas-play.js). A box yet to come is hidden but
   keeps its place and height, so nothing moves or is measured again, and
   one coming in uses the deck's entrance class (deck.css .an-anim-*,
   including its reduced-motion guard). Not on paper: printing gives the
   feed, whole. While it plays no box is moved or sized, so heads are not
   draggable and corners are not drawn. */
@media screen{
  .col-view.col-playing .col-box:not(.col-got){visibility:hidden;}
}
.col-view.col-playing .col-grip{display:none;}
.col-view.col-playing .col-box-in>.col-card>.cardhead{cursor:auto;}
.col-view.col-playing .col-space{cursor:pointer;}
/* the row while it plays: the editing doors stand aside, the play's come
   in, and "3 of 12" between Back and Next */
.col-tools>.col-pk-off{display:none!important;}
/* a playing canvas in full screen is its tab, on its own page colour; its
   speaker notes sit at the foot of the view, clear of the boxes' middle,
   and take no clicks except on their own text */
.nbshell:fullscreen{background:var(--bg,#111);overflow:auto;}
.col-saybox{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);
  z-index:60;width:min(720px,calc(100vw - 32px));max-height:30vh;
  overflow:auto;padding:10px 14px;border-radius:10px;
  background:color-mix(in srgb,var(--chrome-2,#222) 94%,transparent);
  border:1px solid var(--chrome-line,#444);color:var(--chrome-ink,#eee);
  box-shadow:0 10px 32px var(--shadow,#0008);font:13px/1.5 var(--sans);}
.col-saybox-h{font-weight:600;font-size:11px;color:var(--chrome-ink-2,#aaa);
  margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.col-saybox-t{white-space:pre-wrap;}
.col-saybox-t.none{opacity:.6;font-style:italic;}
.col-tools>.col-pk-n{align-self:center;padding:0 4px;white-space:nowrap;
  font:12px var(--sans);font-variant-numeric:tabular-nums;
  color:var(--chrome-ink-2);}
.col-tools>.col-btn[aria-disabled="true"]{opacity:.45;cursor:default;}
/* Play options: the entrances two to a row, a tick on what is chosen,
   the seconds as a field */
.col-pmenu{min-width:260px;}
.col-pm-fx{display:grid;grid-template-columns:1fr 1fr;gap:2px;}
.col-pmenu .col-pm-ck{margin-left:auto;display:flex;visibility:hidden;
  color:var(--accent);}
.col-pmenu [aria-checked="true"]>.col-pm-ck{visibility:visible;}
.col-pmenu [aria-checked="true"]{color:var(--chrome-ink);font-weight:600;}
.col-pm-w{display:flex;align-items:center;gap:8px;padding:2px 8px 6px 29px;
  font:12px var(--sans);color:var(--chrome-ink-2);}
.col-pm-w input{width:4.5em;font:12px var(--sans);padding:2px 4px;
  color:var(--chrome-ink);background:var(--chrome-1);
  border:1px solid var(--chrome-line);border-radius:5px;}
.col-pm-w.col-pm-off{opacity:.6;}
.col-pm-calm{padding:6px 8px 2px;max-width:250px;font:11.5px var(--sans);
  color:var(--chrome-ink-2);border-top:1px solid var(--chrome-line);
  margin-top:4px;}
/* Presentation tools in a collection (64d-presentation-tools.js). A text
   box is Markdown on its fill; a shape is the editor's own drawing. Neither
   is a card, so the Filters do not reach them. On the canvas the box is its
   face: the face moves it, and its bar appears under it, over what is
   below, only on hover or keyboard focus. One that rides a box is drawn
   over it. */
.col-face{box-sizing:border-box;}
.col-tx>.col-face{padding:10px 13px;border-radius:8px;
  font:15px/1.4 var(--sans);overflow-wrap:anywhere;}
.col-tx>.col-face.col-tx-bare{padding:4px 2px;color:var(--ink);}
.col-tx>.col-face>:first-child{margin-top:0;}
.col-tx>.col-face>:last-child{margin-bottom:0;}
.col-tx>.col-face h3{font-size:1.45em;line-height:1.2;margin:.1em 0 .3em;
  font-weight:700;}
.col-tx>.col-face h4,.col-tx>.col-face h5,.col-tx>.col-face h6{
  font-size:1.15em;line-height:1.25;margin:.1em 0 .3em;font-weight:700;}
.col-tx>.col-face p,.col-tx>.col-face ul,.col-tx>.col-face ol{margin:.35em 0;}
.col-tx>.col-face ul,.col-tx>.col-face ol{padding-left:1.3em;}
.col-tx>.col-face a{color:inherit;text-decoration:underline;}
.col-tx .col-hint{opacity:.75;font-style:italic;}
.col-sh>.col-face{display:block;max-width:100%;}
.col-sh-svg{display:block;width:100%;height:100%;overflow:visible;}
.col-sh-svg text{font-family:var(--sans);}
.col-group>.col-fx{margin:0;}
.col-box.col-fxbox{border-radius:8px;}
.col-box-in>.col-fx>.col-face{cursor:grab;touch-action:none;}
.col-box.col-hset .col-fx,.col-box.col-hset .col-fx>.col-face{height:100%;}
.col-box.col-fxbox.col-hset>.col-box-in{border-radius:8px;}
.col-box.col-shbox.col-hset>.col-box-in{overflow:visible;}
.col-box.col-rider{z-index:5;}
.col-box.col-fxbox:hover,.col-box.col-fxbox:focus-within{z-index:9;}
.col-box>.col-fbar{position:absolute;left:0;top:100%;z-index:2;
  margin-top:6px;padding:4px;flex-wrap:nowrap;width:max-content;
  border:1px solid var(--chrome-line);border-radius:8px;
  background:var(--chrome-2);box-shadow:0 6px 18px var(--shadow);
  opacity:0;pointer-events:none;}
.col-box:hover>.col-fbar,.col-box:focus-within>.col-fbar{opacity:1;
  pointer-events:auto;}
.col-box>.col-fbar>.col-bar-sp{display:none;}
.col-box>.col-fbar>.col-bar-sp+.col-btn{margin-left:0;}
.col-view.col-playing .col-fbar{display:none;}
.col-view.col-playing .col-box-in>.col-fx>.col-face{cursor:auto;}
/* a box that comes in, moves or leaves in its own way says so on its
   Animate door */
.col-own-anim .col-anim{border-color:var(--accent);}
/* "it leaves when the next box comes": the deck's own exit (an-out) */
@media screen{
  .col-view.col-playing .col-box.col-left{
    animation:an-out .28s ease forwards;pointer-events:none;}
}
@media (prefers-reduced-motion:reduce){
  .col-view.col-playing .col-box.col-left{animation:none;opacity:0;}
}
/* the colour chips (the editor's Standard colours) and the shapes */
.col-sws{display:flex;flex-wrap:wrap;align-items:center;gap:4px;
  padding:2px 8px 6px;max-width:250px;}
.col-sw{width:22px;height:22px;padding:0;border-radius:5px;cursor:pointer;
  border:1px solid var(--chrome-line);}
.col-sw[aria-checked="true"]{outline:2px solid var(--accent);
  outline-offset:1px;}
.col-sw:focus-visible{outline:2px solid var(--focus);outline-offset:1px;}
.col-sw-none{width:auto;padding:0 7px;background:none;
  font:11px var(--sans);color:var(--chrome-ink-2);}
.col-sw-any{display:inline-flex;align-items:center;gap:4px;cursor:pointer;
  font:11.5px var(--sans);color:var(--chrome-ink-2);}
.col-sw-any input{width:26px;height:22px;padding:0;border:0;
  background:none;cursor:pointer;}
.col-shgrid{display:grid;grid-template-columns:1fr 1fr;gap:2px;}
.col-shtile .col-sh-svg{width:18px;height:18px;flex:none;
  color:var(--chrome-ink-2);}
/* A canvas scrolls itself, so the window's scrollbar gutter would be an
   empty strip beside the canvas's own scrollbar (colGutter). The header
   takes the gutter's width as padding, so nothing in it moves or relays
   out (--jv-sbw is a scrollbar's width, set by colSbw). The same applies to
   everything fixed to the window's right that can stay open across a
   switch, such as Find and the Variables pane (their margin on that side is
   the gutter) and the toast (half of it). Each is named in COL_SBW_ON
   (64-collections.js). The presenting bar's toggle is excluded: it shows
   only while presenting, when no canvas scrollbar sits beside it. */
html.col-canvas-on{scrollbar-gutter:auto;}
html.col-canvas-on .apptop{padding-right:var(--jv-sbw,0px);}
html.col-canvas-on #docfind,html.col-canvas-on #varspane{margin-right:var(--jv-sbw,0px);}
html.col-canvas-on #doc-toast{margin-left:calc(var(--jv-sbw,0px) / -2);}
/* The editor too. The deck is fixed over the whole window and never scrolls
   the page (body.deck-open), so the root's scrollbar gutter would be an
   empty strip beside the ribbon, stage and bottom bar. While the deck is on
   screen the gutter is removed (html.deck-on, colGutter) and the shared
   header takes its width as padding, as for a canvas. */
html.deck-on{scrollbar-gutter:auto;}
html.deck-on .apptop{padding-right:var(--jv-sbw,0px);}
/* printed, a canvas is its feed -- the boxes in their order, one under
   the next: paper has no second direction to scroll in */
@media print{
  .nbshell.coltab.col-on-canvas{height:auto;}
  .coltab.col-on-canvas .stage,.coltab.col-on-canvas .content{
    display:block;height:auto;overflow:visible;}
  .col-view{overflow:visible;height:auto;border:0;}
  .col-space,.col-grip,.col-head-c .col-tools,.col-fbar{display:none;}
  .col-plane{position:static;width:auto;height:auto;
    transform:none!important;}
  .col-box{position:static!important;width:auto!important;
    height:auto!important;margin:0 0 18px;box-shadow:none!important;}
  .col-box.col-unplaced:not(.col-gone){display:block;visibility:visible;}
  .col-box.col-hset>.col-box-in{height:auto;overflow:visible;}
}
/* ---- Make as presentation ----
   The collection pickers' shade and box, taller: the boxes to tick and
   order scroll in the middle while the options and Create stay in view on a
   600px laptop. */
.col-pick.cps-dlg{padding-top:4vh;}
.cps-box{width:min(660px,94vw);max-height:92vh;gap:9px;}
/* the title and its "?" button (the help is behind it, not over the list) */
.cps-head{display:flex;align-items:center;gap:6px;min-width:0;}
.cps-t{font:600 15px var(--sans);margin:0;color:var(--chrome-ink);
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.cps-made{display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  padding:6px 10px;border:1px dashed color-mix(in srgb,var(--accent) 45%,transparent);
  border-radius:8px;font:12px var(--sans);color:var(--chrome-ink);}
.cps-list{flex:1 1 auto;min-height:96px;overflow:auto;display:flex;
  flex-direction:column;gap:4px;padding:2px;}
.cps-row{display:flex;align-items:center;gap:7px;padding:4px 6px 4px 4px;
  border:1px solid var(--chrome-line);border-radius:7px;background:var(--chrome-1);
  color:var(--chrome-ink);}
.cps-row.off .cps-lab{opacity:.5;}
.cps-row.drag{opacity:.55;border-style:dashed;}
.cps-grip{flex:none;color:var(--chrome-ink-2);cursor:grab;font-size:14px;
  line-height:1;padding:0 2px;}
.cps-lab{flex:1;min-width:0;display:flex;align-items:center;gap:8px;
  cursor:pointer;font:12.5px var(--sans);}
.cps-ck{flex:none;margin:0;}
.cps-num{flex:none;min-width:1.7em;text-align:right;font:10.5px var(--mono);
  color:var(--chrome-ink-2);}
.cps-lab .badge{flex:none;}
.cps-it{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.cps-under{flex:none;font:10.5px var(--mono);color:var(--chrome-ink-2);}
.cps-row .col-btn{padding:2px 7px;}
.col-btn:disabled{opacity:.4;cursor:default;}
/* a button with nothing behind it yet (Open as slides, before a deck is
   made) is not drawn: .col-btn's own display outranks the browser's
   [hidden] */
.col-btn[hidden]{display:none!important;}
/* the head's tool row is one row at every width: it never wraps, and fits
   by shortening words, then a More menu (64b ctFit) */
.col-tools{flex-wrap:nowrap;}
.col-tools>*{flex:none;}
.col-tools .ct-short,.col-tools>.ct-sh>.ct-long{display:none;}
.col-tools>.ct-sh>.ct-short{display:inline;}
.col-tools>.col-btn.ct-fold{display:none;}
/* the primary button keeps its fill's ink in the dark schemes too: the dark
   rule above (.col-btn's grey) outranks .primary by one class. --on-accent
   is the scheme's own: dark text on a dark scheme's accent, white on a
   light one's deeper accent */
body:not(.light) .col-btn.primary,body:not(.light) .col-btn.primary:hover{
  color:var(--on-accent);border-color:var(--cyan);}
.cps-opts{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 18px;
  font:12.5px var(--sans);color:var(--chrome-ink);}
.cps-under-set{display:flex;flex-direction:column;gap:3px;margin:0;
  padding:5px 10px 7px;border:1px solid var(--chrome-line);border-radius:8px;}
.cps-under-set legend{padding:0 4px;font:600 11.5px var(--sans);color:var(--chrome-ink-2);}
.cps-under-set:disabled{opacity:.55;}
.cps-radio,.cps-check{display:flex;align-items:center;gap:6px;cursor:pointer;}
.cps-check{padding-top:10px;}
.cps-foot{display:flex;align-items:center;gap:8px;}
.cps-spring{flex:1;}
.cps-sum{font:11.5px var(--mono);color:var(--chrome-ink-2);}
body.light .appbar .menubtn{border-color:var(--line);color:var(--ink);}
body.light .appbar .menubtn:hover{color:var(--ink);}
body.light .filter-panel{background:transparent;color:var(--ink);box-shadow:none;}
/* tabs line up with the DOCUMENT, not with the outline beneath them —
   the strip starts where the sidebar ends (and slides back when the
   sidebar is toggled off) */
.tabstrip{display:flex;align-items:stretch;overflow-x:auto;
  min-width:0;scrollbar-width:thin;flex:0 1 auto;
  gap:5px;padding:6px 8px 0;
  margin-left:calc(var(--rail-w) - 52px);
  transition:margin-left .2s ease;}
body.no-rail .tabstrip{margin-left:0;}
.tab{display:flex;align-items:center;gap:8px;padding:0 10px 0 15px;
  max-width:260px;min-width:0;cursor:pointer;user-select:none;
  font-size:13px;color:#96a9ba;background:#ffffff08;
  border:1px solid #ffffff14;border-bottom:none;
  border-radius:9px 9px 0 0;
  white-space:nowrap;transition:background .12s,color .12s;}
.tab:hover{background:#ffffff12;color:#cdd9e3;}
.tab.current{background:var(--chrome-0,#0b141d);color:#e6edf3;font-weight:600;
  border-color:#ffffff1f;}
.tab-t{overflow:hidden;text-overflow:ellipsis;max-width:200px;}
/* a version tab: name on top, the commit it is pinned to underneath */
.tab-t.tab-t-ver{display:flex;flex-direction:column;line-height:1.15;
  padding:3px 0;}
.tab-ver{font-family:var(--mono);font-size:8.5px;letter-spacing:.06em;
  color:var(--cyan);opacity:.9;font-weight:400;}
body.light .tab-ver{color:var(--cyan-deep);}
.tab-b{background:none;border:none;color:inherit;opacity:.55;
  cursor:pointer;font-size:13px;padding:4px 6px;border-radius:5px;
  line-height:1;flex:none;}
.tab-b:hover{opacity:1;background:#00000033;}
/* ---------- left library: open files and presentations ----------------- */
/* ---- The open-notebooks list, in the rail ----
   The tab nodes are moved into the rail rather than rebuilt, so `.tab`
   still styles them; these rules stand the horizontal strip up as a
   column. */
/* ...including undoing the horizontal strip's offset. `.tabstrip` still
   has `margin-left:calc(var(--rail-w) - 52px)`, which would push the list
   off a 175px rail. */
.presrail .tabstrip{display:flex;flex-direction:column;gap:2px;
  overflow-y:auto;overflow-x:hidden;flex:0 1 auto;min-height:0;
  max-height:38vh;margin-left:0;margin-bottom:4px;padding:0;}
.presrail .tabstrip:empty{display:none;}
.presrail .tabstrip:empty + .pr-label{margin-top:0;}
.presrail .tab{width:100%;box-sizing:border-box;border-radius:7px;
  border:1px solid transparent;background:none;justify-content:flex-start;
  padding:5px 7px;min-width:0;max-width:none;height:auto;}
.presrail .tab .tab-t{flex:1;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;text-align:left;}
.presrail .tab.current{background:color-mix(in srgb,var(--accent) 13%,
  transparent);border-color:color-mix(in srgb,var(--accent) 34%,
  transparent);}
.presrail .tab .tab-b{opacity:0;flex:none;}
.presrail .tab:hover .tab-b,.presrail .tab.current .tab-b{opacity:.75;}
/* a Plot-trace sub-tab still reads as a child of the notebook above it */
.presrail .tab .tab-trace-ic{flex:none;margin-right:2px;opacity:.7;}
.pr-nblabel[hidden]{display:none;}
.presrail{position:fixed;left:0;top:0;bottom:0;width:var(--presrail-w);
  z-index:95;background:var(--chrome-0,#0a141d);border-right:1px solid #ffffff1f;
  display:flex;flex-direction:column;padding:8px 6px;gap:2px;}
.presrail .tab .tab-t,.presrail .pr-t{white-space:normal;
  overflow-wrap:anywhere;line-height:1.35;font-size:13px;}
.presrail .pr-label{font-size:11px;letter-spacing:0;
  color:var(--chrome-ink-2);}
/* the Junoview wordmark now lives at the top of the left rail */
.presrail-brand{font:600 14px var(--sans);color:var(--cyan);gap:9px;
  padding:9px 10px 13px;display:flex;align-items:center;flex:none;
  background:none;border:none;width:100%;cursor:pointer;text-align:left;
  border-radius:8px;}
.presrail-brand:hover{background:color-mix(in srgb,var(--accent) 12%,
  transparent);}
.presrail-brand .jv-logo{width:24px;height:auto;}
body.presrail-min .presrail-brand .jv-logo{width:26px;}
.prb-min{display:none;}
body.presrail-min .prb-full{display:none;}
body.presrail-min .presrail-brand{justify-content:center;padding:9px 0 13px;}
body.presrail-min .prb-min{display:inline;font-size:16px;letter-spacing:0;}
body.light .presrail-brand{color:var(--cyan-deep);}
.pr-item{display:flex;align-items:center;gap:9px;width:100%;
  background:none;border:none;border-radius:7px;padding:9px 10px;
  font-family:var(--sans);font-size:12.5px;color:#8ba0b2;cursor:pointer;
  text-align:left;min-width:0;transition:background .12s,color .12s;}
.pr-item:hover{background:#ffffff0c;color:#cdd9e3;}
/* One active style, radio-consistent: whichever of Notebooks / a
   presentation is open gets the same filled-cyan treatment */
.pr-item.current{background:var(--cyan-deep);color:var(--on-accent-deep);
  font-weight:600;}
.pr-item.editing{background:var(--cyan-deep);color:var(--on-accent-deep);
  font-weight:600;}
.pr-ico{font-size:11px;flex:none;width:16px;text-align:center;
  opacity:.85;}
.pr-item.ptab .pr-ico{font-size:8.5px;color:var(--cyan);}
.pr-item.editing .pr-ico{color:var(--on-accent-deep);}
.pr-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;}
.pr-label{font-family:var(--sans);font-size:11px;font-weight:600;
  letter-spacing:0;color:#4e93a6;padding:10px 10px 6px;
  user-select:none;white-space:nowrap;overflow:hidden;}
.pr-list{display:flex;flex-direction:column;gap:2px;overflow-y:auto;
  min-height:0;flex:0 1 auto;}
/* real buttons for the create actions */
.pr-btn{display:flex;align-items:center;justify-content:center;gap:7px;
  width:100%;background:var(--btn-bg,#ffffff08);
  border:1px solid var(--btn-border,#ffffff22);
  border-radius:7px;padding:8px 10px;font-family:var(--sans);
  font-size:12px;letter-spacing:0;
  color:var(--btn-ink,#9fb2c2);cursor:pointer;
  margin-top:6px;transition:border-color .15s,color .15s,
  background .15s;}
.pr-btn:hover{border-color:var(--cyan);color:#fff;
  background:color-mix(in srgb,var(--accent) 8%,transparent);}
/* the icon shows at every rail width: it is what makes the three
   "+ New ..." buttons tellable apart, collapsed or expanded */
.pr-btn .pr-ico{display:flex;align-items:center;justify-content:center;}
body.presrail-min .pr-btn .pr-t{display:none;}
body.presrail-min .pr-btn .pr-ico{display:flex;align-items:center;
  justify-content:center;}
/* the two panel controls sit together as a pair at the foot of the rail:
   one collapses it, one makes it slide away by itself */
/* stacked, not side by side: #pr-auto carries the word "Auto-hide", which
   wraps inside a narrow box, and the rail is too narrow for both words on
   one line */
.pr-foot{margin-top:auto;display:flex;flex-direction:column;gap:6px;
  align-items:stretch;}
.pr-foot .pr-collapse{margin-top:0;justify-content:center;}
#pr-auto .bic{width:14px;height:14px;}
.pr-collapse{margin-top:auto;background:none;border:1px solid #ffffff1f;
  border-radius:7px;color:#69788a;font-size:13px;padding:5px 0;
  cursor:pointer;}
.pr-collapse:hover{color:#cdd9e3;border-color:#ffffff40;}
/* collapsed to 46px the foot's words stack small under their icons, so
   they are not cropped and Tabs on top still says what it does */
body.presrail-min .pr-foot .pr-collapse{display:flex;flex-direction:column;
  align-items:center;gap:2px;margin:0 -4px;padding:5px 0 4px;
  font-size:8.5px;line-height:1.15;letter-spacing:0;text-align:center;}
/* collapsed: icons only */
body.presrail-min .pr-t,body.presrail-min .pr-label{display:none;}
body.presrail-min .pr-item{justify-content:center;padding:9px 0;}
body.presrail-min .pr-ico{width:auto;}
/* fully hidden: a small edge handle brings it back */
body.presrail-hidden{--presrail-w:0px;}
body.presrail-hidden .presrail{display:none;}
/* as tabs, the side panel is not the list of open files and is not on
   screen; its controls are on the tab row. Its collapse and auto-hide
   states are kept for when it is the list again. */
body.files-top,body.files-top.presrail-min,body.files-top.prrail-auto{
  --presrail-w:0px;}
body.files-top .presrail,body.files-top .presrail-show{display:none!important;}
/* ---- rail auto-hide (OFF by default), same taskbar model as the
   present bar: the panel leaves, the document takes the full width, and
   the panel slides back when the pointer reaches the left edge ---- */
/* --presrail-w drives the DOCUMENT offset and goes to 0 so the page
   takes the full width. The panel itself must keep a real width, or
   translateX(-100%) is 100% of nothing — it never moved, and its
   contents simply overflowed a 0px box as loose floating icons. */
body.prrail-auto{--presrail-w:0px;}
body.prrail-auto .presrail{width:176px;overflow:hidden;}
body.prrail-auto.presrail-min .presrail{width:46px;}
body.prrail-auto .presrail{transform:translateX(-100%);
  transition:transform .18s ease;box-shadow:0 0 40px #00000066;}
body.prrail-auto.prrail-peek .presrail{transform:none;}
/* the peeking rail must ride above the deck editor (z-index:100): with the
   rail on auto-hide it would otherwise slide in underneath the deck and
   leave no way back */
body.prrail-auto.prrail-peek .presrail{z-index:130;}
body.prrail-auto .presrail-show{display:none;}
#pr-auto[aria-pressed="true"]{color:var(--cyan);border-color:var(--cyan);}
#pr-auto .bic{width:13px;height:13px;}
/* z-index 130: the reveal tab must stay clickable over the deck editor
   (z-index:100), or a hidden rail has no way back while editing */
.presrail-show{position:fixed;left:0;bottom:20px;z-index:130;width:22px;
  height:46px;border:1px solid #ffffff22;border-left:none;
  border-radius:0 8px 8px 0;background:var(--chrome-0,#0a141d);color:#7fb6c6;
  cursor:pointer;display:none;font-size:12px;padding:0;}
body.presrail-hidden .presrail-show{display:block;}
.presrail-show:hover{color:#fff;border-color:var(--cyan);}
/* draft-only presentations get an unsaved dot */
.pr-item.draftonly .pr-t::after{content:" \2022";color:var(--amber);}
/* the rail's rows are what is open, and the two entries under them are
   dimmer than a row: links to more, not things that are here */
.pr-door{color:#69788a;font-size:11.5px;padding:7px 10px;}
.pr-door:hover{color:#cdd9e3;}
/* Open, under the open files: a faint outline */
.pr-door.pr-plus{width:calc(100% - 8px);margin:4px 4px 2px;padding:5px 9px;
  border:1px solid var(--chrome-line,#ffffff1f);border-radius:7px;}
.pr-door.pr-plus:hover,.pr-door.pr-plus[aria-expanded="true"]{
  border-color:var(--chrome-ink-3,#ffffff40);}
.pr-none{padding:6px 10px;color:#4e5f70;font:11px var(--sans);
  font-style:italic;}
body.presrail-min .pr-none{display:none;}
body.presrail-min .pr-item.infolder{padding-left:0;}

.nbshell[hidden]{display:none;}
body{padding-top:var(--chrome-h);padding-left:var(--presrail-w);}
/* Anything scrolled into view (a button the keys moved to, a figure's Plot
   trace, a link to a cell) must not end up under the fixed header, so the
   page's scrolling keeps clear of the header's height. Home and a
   presented notebook scroll boxes of their own, which this does not
   reach. */
html{scroll-padding-top:var(--chrome-h);}
/* nothing open: the welcome screen is the whole window. The ribbon only
   acts on a document, and Open lives on the welcome screen too, so the bar
   would be a row of dead controls. --chrome-h is measured from the real
   header and stays at its last value while hidden, hence padding-top:0. */
body.welcoming .apptop{display:none;}
body.welcoming{padding-top:0;}
/* at Home the tabs stay up while anything is open, as the way back to it.
   They are part of the title row, so at Home that row shows with the tabs
   and nothing else of the header (Info, Reload and Find act on the notebook
   Home covers, and Home has its own New, Open and How to use). The
   children are named rather than :not(.nb-filebar) and friends: a rule
   whose last step names no class makes every change of `welcoming` or
   `tabs-row-on` restyle the whole page. test_style_recalc.py holds these
   lists to the markup's own children. */
body.welcoming.tabs-row-on .apptop{display:flex;}
body.welcoming.tabs-row-on .apptop>:is(.appbar,.stylebar),
body.welcoming.tabs-row-on .nb-filebar>:is(.nb-file-ident){
  display:none!important;}
.apptop{left:var(--presrail-w);}
.welcome{left:var(--presrail-w);}
.rail{top:var(--chrome-h);height:calc(100vh - var(--chrome-h));}
.section{scroll-margin-top:calc(var(--chrome-h) + 12px);}
.card{scroll-margin-top:calc(var(--chrome-h) + 18px);}
/* builder docked: full-height panel right of the rail; tab / controls
   chrome shifts right so it sits above the DOCUMENT (IDE-style) */
.deck.creating{left:var(--presrail-w);}
body.creating-docs .apptop{
  left:calc(var(--presrail-w) + min(var(--dc-w),94vw));}
@media (max-width:860px){
  .deck.creating{top:var(--chrome-h);}
  body.creating-docs .apptop{left:var(--presrail-w);}
}

/* ---- A look at another tab ----
   Over the editor (100) and a project's file list (101), under dialogs and
   menus that are on the body. A notebook's own page is raised by
   .tab-look-up; any other file is drawn in #tab-look. */
.tab-look,.nbshell.tab-look-up,.serverpage.tab-look-up{position:fixed;
  z-index:132;overflow:auto;background:var(--paper-2);}
.serverpage.tab-look-up{display:block!important;box-sizing:border-box;
  right:auto;bottom:auto;pointer-events:none;}
.nbshell.tab-look-up{display:grid!important;min-height:0;align-content:start;
  --chrome-h:0px;pointer-events:none;scroll-behavior:auto;}
.nbshell.tab-look-up .rail{height:100%;}
.nbshell.tab-look-up.nb-asleep{display:block!important;}
.tab-look{pointer-events:none;scroll-behavior:auto;}
.tab-look-nap{display:flex;align-items:center;justify-content:center;}
.top-tabstrip .tab.tab-looking,.sht-tab.tab-looking{
  box-shadow:inset 0 0 0 1.5px var(--cyan);}
/* ---------- welcome (app mode, nothing open) ---------- */
/* beside the rail, not under it: `left:0` here would beat the
   `left:var(--presrail-w)` above (same weight, later) and leave the logo
   and "Recent presentations" under the rail on narrow windows */
.welcome{position:fixed;left:var(--presrail-w,0);right:0;top:var(--chrome-h);bottom:0;
  overflow:auto;background:var(--paper-2);z-index:5;}
.welcome[hidden]{display:none;}
/* the ribbon is hidden while this is up, so start at the very top rather
   than leaving its reserved band as an empty strip above the hero */
body.welcoming .welcome{top:0;}
body.welcoming.tabs-row-on .welcome{top:var(--open-tabs-h);}
body.welcoming .welcome-top{min-height:calc(100vh - 30px);}
.welcome-box{text-align:center;max-width:760px;margin:0 auto;
  padding:0 30px 60px;}
/* an indeterminate bar across the very top of the welcome: the one place
   every way in can report from (recent rows, the big buttons, a dropped
   file), because until it existed a click on a remembered notebook
   changed nothing on screen for as long as the fetch took */
.welcome-load{position:sticky;top:0;height:3px;overflow:hidden;
  background:color-mix(in srgb,var(--accent) 16%,transparent);z-index:2;}
.welcome-load[hidden]{display:none;}
.welcome-load span{position:absolute;left:-38%;top:0;width:38%;height:100%;
  background:var(--cyan);animation:odlg-slide 1.05s ease-in-out infinite;}
/* the hero fills the first screen; in the web build the demo reel sits
   below it, seen on scroll */
.welcome-top{min-height:calc(100vh - var(--chrome-h) - 30px);display:flex;
  flex-direction:column;justify-content:center;padding:24px 0;
  /* `safe` centring: on a short window the hero is taller than its box, and
     plain `center` overflows it equally both ways -- the top half goes above
     the scroll container's origin, where it cannot be scrolled to, and the
     logo gets sliced off. `safe` falls back to flex-start in that case.
     Declared second so browsers that do not parse it keep plain `center`. */
  justify-content:safe center;}
/* the web build's lower half, wide enough for its players. Avoid
   viewport-relative widths here: on a page inset by the rail they overflow
   to the left and slide under the fixed rail. */
.welcome-more{padding:36px 0 10px;border-top:1px solid var(--line);
  max-width:900px;margin:0 auto;}
.welcome-more[hidden]{display:none;}
/* One lockup: the mark on the left, the name beside it. Grid, so the mark
   spans both text rows and stays visually tied to them; on a narrow window
   it becomes a centred column. */
/* auto, not 1fr, for the name: a 1fr column takes the rest of the row,
   leaving justify-content:center nothing to centre */
.welcome-id{display:grid;grid-template-columns:auto minmax(0,auto);
  column-gap:20px;row-gap:3px;align-items:center;justify-content:center;
  text-align:left;margin:0 0 26px;}
.welcome-hero{display:flex;align-items:center;
  justify-content:center;margin:0;}
.welcome-hero .jv-logo{width:clamp(54px,7vw,78px);height:auto;
  filter:drop-shadow(0 4px 12px #0006);}
.welcome-wordmark{font-family:var(--mono);font-size:clamp(30px,4.4vw,44px);
  font-weight:600;letter-spacing:.06em;color:var(--cyan-deep);
  margin:0;line-height:1.05;}
/* which build this is, in the tagline's sans, with the date the app last
   changed as its tooltip. Only the app and the web build carry one
   (build_info.py). It sits in the screen's top-right corner, out of the
   lockup's flow so the logo and name centre on themselves. `.welcome` is
   fixed, so it is the box this is placed in. */
.welcome-ver{position:absolute;top:14px;right:18px;display:inline-block;
  font:500 12px/1.5 var(--sans);letter-spacing:0;color:var(--ink-3);
  white-space:nowrap;cursor:help;}
@media (max-width:640px){
  .welcome-id{grid-template-columns:1fr;row-gap:6px;text-align:center;
    justify-items:center;}
  .welcome-hero{grid-row:auto;}
}
.ww-dot{display:none;}
/* the Junoview mark (peacock-eye ocellus) — sized by context */
.jv-logo{flex:none;display:inline-block;vertical-align:middle;}
.welcome-lead{font-size:15.5px;line-height:1.65;color:var(--ink-3);
  margin:0 auto 30px;max-width:580px;}
.welcome-lead b{color:var(--ink-2);}
.welcome-note{max-width:560px;margin:26px auto 0;text-align:left;
  font-size:14.5px;line-height:1.55;color:var(--ink-2);
  background:color-mix(in srgb,var(--accent) 6%,transparent);border:1px solid color-mix(in srgb,var(--accent) 15%,transparent);
  border-radius:10px;padding:13px 16px;}
.welcome-note b{color:var(--cyan-deep);}
/* the home page's players are styled in the site's home page section
   below */
/* the drop hint is not shown on this screen: what formats parse and that
   files may be dropped is a fact about Open, so it is Open's tooltip */
/* ---- Two kinds, one side at a time ----
   With no side chosen the two big tiles are the whole screen, centred,
   with nothing under them. Once one is chosen (app.js syncHomeSide:
   .chosen here, .sided on .welcome-top) they shrink into the switch
   between the two, the block stops centring so the switch stays put when
   the other side is a different height, and the chosen side opens
   beneath. Home names only what it opens directly; posters, folders and
   imports live in Open presentations. */
.welcome-jump{width:100%;max-width:1000px;margin:30px auto 0;
  text-align:left;}
.welcome-jump[hidden]{display:none;}
/* the box it sits in makes room for two columns of rows */
@media (min-width:1000px){.welcome-box{max-width:1160px;}}
.welcome-top.sided{justify-content:flex-start;
  padding-top:clamp(20px,6vh,64px);}
/* The kinds are a row of filters, All first. Each is its icon over its name
   on one ruled line; the chosen one is underlined in the accent and the
   rest step back. Each takes the room its name needs and the rest is
   shared, so "Jupyter notebooks" is never squeezed; under 760px the
   filters wrap onto a second line with each icon beside its name. */
.wk-pick{display:flex;gap:4px;width:100%;margin:0 auto;
  border-bottom:1px solid var(--line);}
.wk-door[hidden]{display:none;}
/* the side under Presentations, Logbooks and Starboards is one set of
   columns; each kind's own buttons show only for that kind */
#wj-pres[data-kind="log"] #welcome-new,#wj-pres[data-kind="star"] #welcome-new,
#wj-pres[data-kind="log"] #welcome-showcase-wrap,
#wj-pres[data-kind="star"] #welcome-showcase-wrap,
#wj-pres[data-kind="log"] #welcome-servers,
#wj-pres[data-kind="star"] #welcome-servers,
#wj-pres:not([data-kind="log"]) #welcome-newlog,
#wj-pres:not([data-kind="log"]) #welcome-opendocx,
#wj-pres:not([data-kind="star"]) #welcome-newstar,
#wj-pres[data-kind="notes"] #welcome-new,
#wj-pres[data-kind="notes"] #welcome-showcase-wrap,
#wj-pres[data-kind="notes"] #welcome-servers,
#wj-pres:not([data-kind="notes"]) #welcome-newnotes,
#wj-pres:not([data-kind="notes"]) #welcome-keep{display:none!important;}
/* an icon and its name, no box */
.wk-door{position:relative;flex:1 1 auto;display:flex;flex-direction:column;
  align-items:center;gap:7px;min-width:max-content;padding:6px 10px 11px;
  border:0;border-radius:8px 8px 0 0;background:none;color:var(--ink-2);
  font:600 15px/1.25 var(--sans);letter-spacing:-.01em;text-align:center;
  white-space:nowrap;cursor:pointer;transition:color .13s;}
.wk-ic{display:flex;align-items:center;justify-content:center;height:28px;}
.wk-door .bic{width:26px;height:26px;}
.wk-door:hover{color:var(--ink);}
.wk-door:focus-visible{outline:2px solid var(--cyan);outline-offset:2px;}
.wk-door[aria-pressed="true"]{color:var(--ink);font-weight:700;
  cursor:default;}
.wk-door[aria-pressed="true"] .wk-ic{color:var(--accent);}
.wk-door[aria-pressed="true"]::after{content:"";position:absolute;left:0;
  right:0;bottom:-1px;height:3px;background:var(--accent);}
.wj-intro{margin:0 0 14px;font:400 15px/1.5 var(--sans);
  color:var(--ink-3);text-wrap:pretty;}
@media (max-width:760px){
  .wk-pick{flex-wrap:wrap;justify-content:center;gap:0 2px;}
  .wk-door{flex:none;flex-direction:row;padding:9px 10px 12px;
    font-size:14.5px;}
  .wk-ic{height:auto;}
  .wk-door .bic{width:18px;height:18px;}}
@media (prefers-reduced-motion:reduce){.wk-door{transition:none;}}
/* the pictures' own colours (html/home-doors.html): objects, in the
   logo's amber, green and blue, the same on every theme. White paper has
   an edge, which is what keeps it a page on a light theme. */
.dr-pg{fill:#fff;stroke:#15140f2e;stroke-width:1;}
.dr-bk{fill:#e6e7e7;}
.dr-a1,.dr-fa{fill:#ef9f27;}
.dr-a2{fill:#b97413;}
.dr-fg{fill:#0f6e56;}
.dr-fb{fill:#185fa5;}
.dr-fig,.dr-cell{fill:#f1f3f2;}
.dr-hd{fill:none;stroke:#15140f;stroke-width:2.6;}
.dr-tx{fill:none;stroke:#15140f;stroke-opacity:.28;stroke-width:1.5;}
.dr-tk{fill:none;stroke:#1b1306;stroke-opacity:.5;stroke-width:1.5;}
.dr-tw{fill:none;stroke:#fff;stroke-opacity:.65;stroke-width:1.5;}
.dr-ax{fill:none;stroke:#15140f;stroke-opacity:.5;stroke-width:1;}
.dr-gd{fill:none;stroke:#15140f;stroke-opacity:.12;stroke-width:1;}
.dr-cn{fill:none;stroke:currentColor;stroke-opacity:.6;stroke-width:1.4;}
.dr-bl{fill:none;stroke:#185fa5;stroke-width:1.7;stroke-linejoin:round;}
.dr-gr{fill:none;stroke:#0f6e56;stroke-width:1.7;stroke-linejoin:round;}
.dr-ck{fill:none;stroke:#15140f;stroke-opacity:.6;stroke-width:1;}
.dr-ok{fill:none;stroke:#0f6e56;stroke-width:1.6;}
.dr-lab{font:700 9.5px var(--sans);fill:#1b1306;}
.dr-h{font:800 10.5px var(--sans);fill:#15140f;letter-spacing:-.2px;}
.dr-h2{font:800 6.6px var(--sans);fill:#15140f;letter-spacing:0;}
.dr-c{font:700 6.8px var(--sans);fill:#185fa5;letter-spacing:0;}
.dr-w,.dr-k{font:700 8px var(--sans);text-anchor:middle;letter-spacing:0;}
.dr-kl,.dr-wl{font:700 7px var(--sans);letter-spacing:0;}
.dr-k,.dr-kl{fill:#1b1306;}
.dr-w,.dr-wl{fill:#fff;}
.dr-s{font:500 6.6px var(--sans);fill:#15140f;letter-spacing:0;}
.dr-in{font:600 7px var(--mono);fill:#185fa5;letter-spacing:0;}
.dr-code{font:600 8px var(--mono);fill:#15140f;letter-spacing:0;}
.dr-fn{fill:#185fa5;}
.dr-st{fill:#0f6e56;}
.wj-side{margin-top:20px;}
.wj-side[hidden]{display:none;}
/* the side's buttons: one row, on the left as the line over them is */
.wj-doors{display:flex;flex-wrap:wrap;gap:8px;}
/* a side is one ruled list with its pinned rows first (a lit pin marks
   them) */
.wj-list{display:flex;flex-direction:column;min-width:0;margin-top:18px;
  border-top:1px solid var(--line);}
/* every button on a side is the same box, with a label and an icon, links
   included */
.wj-new{display:inline-flex;align-items:center;gap:6px;
  font-family:var(--sans);font-size:13px;font-weight:600;
  color:var(--cyan);background:var(--surface,#fff);text-decoration:none;
  border:1px solid var(--line);border-radius:7px;padding:7px 14px;
  cursor:pointer;white-space:nowrap;
  transition:border-color .13s,background .13s,color .13s;}
.wj-new .bic{width:14px;height:14px;opacity:1;}
.wj-new:hover{border-color:var(--cyan);
  background:color-mix(in srgb,var(--cyan) 10%,transparent);
  color:var(--cyan);}
/* making one is what a side is first for, so its New is the filled button;
   every button on the row is still the same box */
#welcome-new,#welcome-newlog,#welcome-newstar,#welcome-newnotes,
#welcome-newfolder,#welcome-open,#welcome-allnew{background:var(--accent-deep);
  border-color:var(--accent-deep);color:var(--on-accent-deep,#fff);}
.wj-new:focus-visible{outline:2px solid var(--cyan);outline-offset:1px;}
/* Live servers is shown only where there are servers */
.wj-new[hidden]{display:none;}
/* Example presentation's menu, under its button: one row per deck */
.wj-exwrap{position:relative;display:inline-flex;}
.wj-exwrap[hidden]{display:none;}
.wj-caret{font-size:10px;opacity:.8;}
.wj-exmenu{position:absolute;top:calc(100% + 4px);left:0;z-index:30;
  display:flex;flex-direction:column;gap:2px;min-width:100%;padding:4px;
  background:var(--surface,#fff);border:1px solid var(--line);
  border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.28);}
.wj-exmenu[hidden]{display:none;}
.wj-exitem{display:flex;align-items:center;gap:8px;padding:7px 12px;
  border-radius:6px;font-family:var(--sans);font-size:13px;font-weight:600;
  color:var(--ink);text-decoration:none;white-space:nowrap;}
.wj-exitem[hidden]{display:none;}
button.wj-exitem{border:0;background:none;cursor:pointer;text-align:left;}
.wj-exitem .bic{width:14px;height:14px;color:var(--cyan);}
.wj-exitem:hover,.wj-exitem:focus-visible{outline:none;
  background:color-mix(in srgb,var(--cyan) 12%,transparent);}
/* an empty column is a slot the size of a row with its text in it, so it
   reads as the place a pin or recent item goes */
.wj-none{font-family:var(--sans);font-size:13.5px;color:var(--ink-3);
  padding:11px 8px;}
.wj-none[hidden]{display:none;}
body:not(.light) .wj-new{background:var(--paper);}
body:not(.light) .wj-none{color:var(--ink-3);}
.recent,.wpres{display:flex;flex-direction:column;min-width:0;}
.recent[hidden],.wpres[hidden]{display:none;}
/* A row is a button: icon and name only. The path is in the tooltip, since
   a column of ellipsised URLs repeats the same string. The list is ruled
   between rows rather than each row being a box of its own. */
.recent-i{display:flex;align-items:center;gap:11px;position:relative;
  font:600 14px/1.35 var(--sans);color:var(--ink);background:none;
  border:0;border-bottom:1px solid var(--line);padding:10px 8px;
  border-radius:0;cursor:pointer;text-align:left;min-width:0;
  transition:background .13s;}
.recent-i:hover{background:color-mix(in srgb,var(--ink) 6%,transparent);}
.recent-i:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px;}
.recent-ic{flex:none;font-size:12px;line-height:1;color:var(--accent);}
.recent-ic .bic{width:16px;height:16px;opacity:1;}
.recent-nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
/* a presentation row shows where it lives and when, under its name */
.recent-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.recent-sub{min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font:400 12px/1.4 var(--sans);color:var(--ink-3);}
/* the pin on a recent row: faint until hovered, lit when on */
.recent-pin{flex:none;width:20px;height:20px;padding:0;border:0;
  background:none;color:var(--ink-3);opacity:.35;cursor:pointer;
  border-radius:4px;display:inline-flex;align-items:center;
  justify-content:center;}
.recent-pin .bic{width:12px;height:12px;}
.recent-i:hover .recent-pin,.odlg-r:hover .recent-pin{opacity:.8;}
.recent-pin:hover{opacity:1;background:color-mix(in srgb,var(--accent) 14%,transparent);}
.recent-pin.on{opacity:1;color:var(--accent);}
/* Remove from Recent, beside a Recent row's pin: as faint, until the row is
   pointed at */
.recent-x{flex:none;width:20px;height:20px;padding:0;border:0;
  background:none;color:var(--ink-3);opacity:.35;cursor:pointer;
  border-radius:4px;display:inline-flex;align-items:center;
  justify-content:center;}
.recent-x .bic{width:11px;height:11px;}
.recent-i:hover .recent-x,.recent-x:focus-visible{opacity:.8;}
.recent-x:hover{opacity:1;
  background:color-mix(in srgb,var(--danger) 14%,transparent);}
.recent-x.op-x{color:var(--chrome-ink-2,#8ba0b2);margin-right:2px;
  opacity:.6;}
.op-item:hover .op-x,.recent-x.op-x:focus-visible{opacity:.9;}
.recent-tag{flex:none;font:600 11px/1.2 var(--sans);color:var(--amber);}
.recent-tag::first-letter{text-transform:uppercase;}
/* a file in a folder names the folder and opens it */
.recent-fold{flex:none;display:inline-flex;align-items:center;gap:4px;
  max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font:500 11px/1.2 var(--sans);color:var(--ink-2);cursor:pointer;
  padding:2px 7px;border-radius:5px;border:1px solid var(--line);
  background:none;}
.recent-fold:hover{border-color:var(--accent);color:var(--ink);}
.recent-fold .bic{width:12px;height:12px;flex:none;}
/* Home's folders: "Show N removed folders" under the list, quiet */
.wj-hidden-toggle{all:unset;cursor:pointer;margin:8px 4px 0;
  font-size:12px;color:var(--ink-3);}
.wj-hidden-toggle:hover,.wj-hidden-toggle:focus-visible{color:var(--ink);
  text-decoration:underline;}
/* All shows the newest twelve and says how many more there are */
#welcome-all-more[hidden]{display:none;}
#welcome-all-more{margin:12px 8px 0;font-size:13px;font-weight:600;
  color:var(--ink-2);}
/* a project row's bin is styled like the x; its name is only as wide as
   its text, since a double click on it renames the project */
.recent-bin .bic{width:13px;height:13px;}
.recent-nm.is-ren{align-self:flex-start;max-width:100%;}
/* the row you just clicked, while its notebook loads */
.recent-i.busy{cursor:progress;}
.recent-i.busy::after{content:"";position:absolute;left:0;right:0;
  bottom:-1px;height:2px;overflow:hidden;
  background:linear-gradient(90deg,transparent,var(--cyan),transparent);
  background-size:44% 100%;background-repeat:no-repeat;
  animation:recent-slide 1.05s ease-in-out infinite;}
@keyframes recent-slide{from{background-position:-44% 0;}
  to{background-position:144% 0;}}
/* ---- Find in this notebook ----
   A bar over the document, not in the header: it belongs to what is being
   read, and the header is measured chrome that every view insets itself
   by. A hit opens whatever the filters had folded around it, which the
   browser's Ctrl+F cannot do. */
.docfind{position:fixed;top:calc(var(--chrome-h,54px) + 10px);right:22px;
  z-index:120;display:flex;align-items:center;gap:6px;
  background:var(--paper);border:1px solid var(--line);border-radius:9px;
  padding:6px 8px;box-shadow:0 10px 30px #0000002e;}
.docfind[hidden]{display:none;}
/* the Variables pane docks in the same corner (top 170px, right 14px, above
   this bar in z-order), so the bar steps left of the pane while it is
   open. This uses a class, not body:has(#varspane:not([hidden])): a :has()
   on body is re-checked on every DOM change and walks the whole document.
   set() in app.js sets body.vars-open beside the pane's `hidden`. */
body.vars-open .docfind{right:calc(14px + 280px + 12px);}
/* and the document makes room for it. Where the window is at least 1100px
   wide the stage gives the pane room, as the editor's stage does for its
   panes; below that the pane floats over the notebook's right edge. */
@media (min-width:1100px){
  body.vars-open .stage{
    padding-right:calc(14px + 280px + 12px);}}
.docfind>.bic{width:14px;height:14px;opacity:.6;flex:none;}
.docfind-in{width:210px;border:none;background:none;outline:none;
  font-family:var(--sans);font-size:13px;color:var(--ink);}
.docfind-n{font-family:var(--mono);font-size:10.5px;color:var(--ink-3);
  min-width:60px;text-align:right;}
.docfind-b{background:none;border:none;cursor:pointer;color:var(--ink-3);
  font-size:11px;line-height:1;padding:3px 5px;border-radius:5px;}
.docfind-b:hover{background:var(--paper-2);color:var(--ink);}
.docfind-b .bic{width:12px;height:12px;}
mark.jv-hit{background:color-mix(in srgb,#cf9a4e 42%,transparent);
  color:inherit;border-radius:2px;padding:0 1px;}
mark.jv-hit.on{background:#cf9a4e;color:#16202b;
  box-shadow:0 0 0 2px color-mix(in srgb,#cf9a4e 40%,transparent);}
/* the card a hit is in, and the parts it had to open to show it */
.card.jv-hitcard{outline:2px solid color-mix(in srgb,#cf9a4e
  55%,transparent);outline-offset:2px;}
.jv-hitopen{display:revert!important;}

/* ---- Section scope list ----
   A list of boxes to tick, with bulk controls above it. */
.ckf-bulk{display:flex;align-items:center;gap:6px;padding:0 8px 8px;
  border-bottom:1px solid var(--line);margin-bottom:6px;}
.ckf-bulk .ckf-all{margin:0;}
.ckf-count{margin-left:auto;font-family:var(--mono);font-size:10px;
  color:var(--ink-3);}
.scope-box{flex:none;width:13px;height:13px;border-radius:3px;
  border:1.5px solid var(--line-2,#9fb0c0);position:relative;
  background:var(--paper);}
.scope-row.on .scope-box{background:var(--cyan-deep);
  border-color:var(--cyan-deep);}
.scope-row.on .scope-box::after{content:"";position:absolute;
  left:3.5px;top:.5px;width:4px;height:8px;
  border:solid var(--on-accent-deep);
  border-width:0 2px 2px 0;transform:rotate(42deg);}
.scope-row.part .scope-box{border-color:var(--cyan-deep);}
.scope-row.part .scope-box::after{content:"";position:absolute;
  left:2px;top:4.5px;width:7px;height:0;border-top:2px solid
  var(--cyan-deep);}

/* The front page's buttons are one shape rather than sized to their own
   words; see .wj-new above. */
/* the same sans as everything else on this screen, one step quieter */
.welcome-links{margin-top:20px;font-family:var(--sans);font-size:13px;
  color:var(--ink-3);display:flex;flex-wrap:wrap;justify-content:center;
  gap:4px 28px;}
/* a link never breaks in two: on a phone the row wraps between links */
.welcome-links a{color:var(--cyan-deep);text-decoration:none;
  white-space:nowrap;}
.welcome-links a:hover{text-decoration:underline;}
/* Install app's steps for this browser, shown when it gave no prompt */
dialog.install-dlg{width:min(440px,92vw);box-sizing:border-box;
  padding:18px 20px 14px;border:1px solid var(--chrome-line);
  border-radius:12px;background:var(--chrome-2);color:var(--chrome-ink);
  font-family:var(--sans);box-shadow:0 24px 80px var(--shadow);}
dialog.install-dlg::backdrop{background:var(--overlay,#061019a8);}
.install-dlg h2{margin:0 0 10px;font-size:17px;font-weight:600;}
.install-steps{margin:0;padding-left:20px;font-size:14px;line-height:1.55;}
.install-steps li{margin:4px 0;}
.install-note{margin:12px 0 0;font-size:12.5px;line-height:1.5;
  color:var(--chrome-ink-2);}
.install-foot{display:flex;justify-content:flex-end;margin-top:14px;}

/* ---------- help overlay: how to use / what it can do ---------- */
.helpdlg{position:fixed;inset:0;z-index:135;background:var(--overlay);
  display:flex;align-items:center;justify-content:center;padding:24px;}
.helpdlg[hidden]{display:none;}
/* ---- guided tour: a spotlight + a tooltip that steps through the UI ---- */
.tour{position:fixed;inset:0;z-index:400;}
.tour[hidden]{display:none;}
.tour-hole{position:fixed;border-radius:8px;pointer-events:none;
  box-shadow:0 0 0 9999px var(--overlay);transition:left .25s,top .25s,
  width .25s,height .25s;}
.tour-hole.center{box-shadow:0 0 0 9999px var(--overlay);}
.tour-tip{position:fixed;width:min(400px,90vw);background:var(--chrome-2);
  border:1px solid var(--chrome-line);border-radius:12px;
  padding:17px 19px 14px;box-shadow:0 18px 50px var(--shadow);
  color:var(--chrome-ink);transition:left .2s,top .2s;}
.tour-tip-h{display:flex;align-items:baseline;gap:9px;margin-bottom:9px;}
.tour-step{font-family:var(--mono);font-size:11.5px;color:var(--accent);
  flex:none;}
.tour-title{font-size:18px;font-weight:600;color:var(--chrome-ink);}
.tour-text{font-size:15.5px;line-height:1.6;color:var(--chrome-ink-2);
  margin-bottom:15px;}
.tour-btns{display:flex;align-items:center;gap:8px;}
.tour-btns button{font-family:var(--sans);font-size:13.5px;border-radius:16px;
  padding:7px 16px;cursor:pointer;border:1px solid var(--btn-border);
  background:var(--btn-bg);color:var(--btn-ink);}
.tour-btns button:hover{background:var(--surface-active);}
.tour-next{background:color-mix(in srgb,var(--accent) 15%,transparent);
  border-color:color-mix(in srgb,var(--accent) 40%,transparent);
  color:var(--accent);}
.tour-skip{color:var(--chrome-ink-2);border-color:transparent;
  background:none;padding:5px 6px;}
.help-box{width:min(760px,94vw);height:min(720px,90vh);
  background:var(--chrome-2);border:1px solid var(--chrome-line);
  border-radius:12px;display:flex;color:var(--chrome-ink);
  flex-direction:column;overflow:hidden;
  box-shadow:0 24px 80px var(--shadow);}
.help-head{display:flex;align-items:center;gap:12px;
  padding:13px 18px;border-bottom:1px solid var(--chrome-line);}
/* a dialog's title, as .eq-t is */
.help-title{font-family:var(--sans);font-size:15px;
  letter-spacing:0;color:var(--chrome-ink);font-weight:600;}
.help-gh{font-size:12.5px;color:var(--accent);text-decoration:none;}
.help-gh:hover{text-decoration:underline;}
.help-head .dbtn{border-color:var(--btn-border);background:var(--btn-bg);
  color:var(--btn-ink);}
.help-head .dbtn:hover{border-color:var(--accent);color:var(--chrome-ink);}
/* The Interactive guides menu in Help takes the dialog's colours; Home's
   menus take Home's. */
.helpdlg .help-head .wj-exmenu{left:auto;right:0;background:var(--chrome-3);
  border-color:var(--border-strong);border-radius:8px;}
.helpdlg .help-head .wj-exitem{font:600 13px/1.2 var(--sans);
  color:var(--chrome-ink);}
.helpdlg .help-head .wj-exitem .bic{color:var(--accent);}
.helpdlg .help-head .wj-exitem:hover,
.helpdlg .help-head .wj-exitem:focus-visible{background:var(--surface-active);}
.help-body{flex:1;overflow-y:auto;padding:6px 26px 30px;
  color:var(--chrome-ink-2);font-size:13.5px;line-height:1.65;}
.help-body h3{font-size:15px;color:var(--chrome-ink);letter-spacing:-.01em;
  margin:24px 0 8px;padding-top:14px;
  border-top:1px solid var(--chrome-line);}
.help-body h3:first-child{border-top:none;margin-top:8px;}
.help-body ul{margin:6px 0;padding-left:20px;}
.help-body li{margin:5px 0;}
.help-body a{color:var(--accent);}
.help-body code{font-family:var(--mono);font-size:12px;
  background:var(--chrome-1);border:1px solid var(--chrome-line);
  border-radius:4px;padding:1px 5px;}
.help-body kbd{font-family:var(--mono);font-size:11.5px;
  background:var(--chrome-1);border:1px solid var(--chrome-line);
  border-bottom-width:2px;border-radius:5px;padding:1px 6px;
  color:var(--chrome-ink-2);white-space:nowrap;}
.help-body table{border-collapse:collapse;margin:8px 0;width:100%;}
.help-body td{border:1px solid var(--paper-3);padding:6px 10px;
  vertical-align:top;}
.help-body td:first-child{white-space:nowrap;}

/* ---------- create slides: every choice before one commit ------------ */
.auto-slides-dialog{position:fixed;inset:0;z-index:230;
  display:flex;align-items:center;justify-content:center;padding:22px;
  background:var(--overlay,#061019a8);}
.auto-slides-dialog[hidden]{display:none;}
.auto-slides-card{width:min(540px,96vw);display:flex;flex-direction:column;
  gap:15px;padding:18px 20px 16px;border-radius:12px;
  background:var(--chrome-2,#16273a);border:1px solid var(--chrome-line);
  color:var(--chrome-ink);box-shadow:0 24px 80px var(--shadow);}
.auto-slides-head,.auto-slides-foot{display:flex;align-items:center;gap:9px;}
.auto-slides-head h2{margin:1px 0 0;font-size:19px;line-height:1.1;
  color:var(--chrome-ink);}
.auto-slides-scopes{display:flex;flex-direction:column;gap:6px;margin:0;
  padding:0;border:0;}
.auto-slides-scopes legend{padding:0 0 5px;font:600 11.5px var(--sans);color:var(--chrome-ink-2);}
.auto-slide-scope,.auto-anim{display:flex;align-items:flex-start;gap:10px;
  padding:9px 10px;border:1px solid var(--chrome-line);border-radius:7px;
  color:var(--chrome-ink-2);font:12px var(--sans);line-height:1.25;
  cursor:pointer;background:#ffffff05;}
.auto-slide-scope:hover,.auto-anim:hover{border-color:var(--cyan);
  background:#ffffff0c;}
.auto-slide-scope:has(>input:checked),.auto-anim:has(>input:checked){
  border-color:color-mix(in srgb,var(--accent) 70%,transparent);
  background:color-mix(in srgb,var(--accent) 13%,transparent);
  color:var(--chrome-ink);}
.auto-slide-scope input,.auto-anim input{margin:2px 0 0;accent-color:var(--accent);
  flex:none;}
.auto-slide-scope span,.auto-anim span{display:flex;flex-direction:column;gap:2px;
  min-width:0;}
.auto-slide-scope b,.auto-anim b{font-size:12.5px;color:var(--chrome-ink);}
.auto-slide-scope small,.auto-anim small{font:11px var(--sans);
  color:var(--chrome-ink-2);}
.auto-slide-scope.disabled{opacity:.48;cursor:not-allowed;}
/* which animation to use, when a presentation keeps a rule to lend */
.auto-anim-how{display:flex;align-items:center;gap:8px;padding:0 2px 0 34px;
  font:12px var(--sans);color:var(--chrome-ink-2);}
.auto-anim-how[hidden]{display:none;}
.auto-anim-how select{flex:1 1 auto;min-width:0;font:12px var(--sans);
  padding:4px 6px;border-radius:6px;color:var(--chrome-ink);
  background:var(--input-bg);border:1px solid var(--border-strong);}
.auto-anim-how select:disabled{opacity:.55;}
.auto-slides-foot{margin-top:1px;}
.auto-slides-summary{min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font:10.5px var(--mono);color:var(--chrome-ink-2);}

/* ---------- presentation library: shared by Home and the deck drawer -- */
.presentation-hub{position:fixed;inset:0;z-index:240;display:flex;
  align-items:center;justify-content:center;padding:22px;
  background:var(--overlay,#061019a8);}
.presentation-hub[hidden]{display:none;}
.presentation-hub-card{width:min(1180px,96vw);max-height:min(800px,92vh);
  display:flex;flex-direction:column;gap:15px;overflow:auto;padding:19px 20px;
  border:1px solid var(--chrome-line);border-radius:12px;
  background:var(--chrome-2,#16273a);color:var(--chrome-ink);
  box-shadow:0 24px 80px var(--shadow);}
.presentation-hub-head{display:flex;align-items:flex-start;gap:12px;}
.presentation-hub-head h2{margin:1px 0 0;font-size:20px;color:var(--chrome-ink);}
.presentation-hub-head .dbtn{margin-left:auto;}
.presentation-hub-actions{display:flex;gap:7px;flex-wrap:wrap;}
.presentation-hub-folderform{display:grid;grid-template-columns:auto minmax(0,1fr) auto;
  gap:8px;align-items:center;padding:10px;border-radius:8px;
  border:1px solid var(--chrome-line);background:#ffffff06;
  color:var(--chrome-ink-2);font:11.5px var(--sans);}
.presentation-hub-folderform[hidden]{display:none;}
.presentation-hub-folderform input{min-width:0;padding:6px 8px;border-radius:5px;
  border:1px solid var(--chrome-line);background:var(--input-bg);
  color:var(--chrome-ink);font:12px var(--sans);}
.presentation-hub-folderform input:focus{outline:none;border-color:var(--cyan);}
.presentation-hub-columns{display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(300px,1.1fr);
  gap:16px;min-height:150px;}
.presentation-hub-columns section{min-width:0;display:flex;flex-direction:column;
  gap:8px;}
.presentation-hub-columns h3{margin:0;font:600 11px var(--sans);
  letter-spacing:0;text-transform:none;color:var(--chrome-ink-2);}
.presentation-hub-list{display:flex;flex-direction:column;gap:5px;min-height:28px;}
.presentation-hub-row{display:flex;align-items:center;gap:8px;min-width:0;
  padding:8px 9px;border:1px solid var(--chrome-line);border-radius:7px;
  background:#ffffff05;color:var(--chrome-ink);cursor:pointer;text-align:left;
  font:12px var(--sans);}
.presentation-hub-row:hover{border-color:var(--cyan);background:#ffffff0c;}
.presentation-hub-row .bic{width:14px;height:14px;flex:none;color:var(--cyan);}
.presentation-hub-row-name{min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;flex:1;}
.presentation-hub-row-kind{flex:none;color:var(--chrome-ink-2);
  font:500 11px var(--sans);}
/* the name, and under it where the deck lives and when */
.presentation-hub-row-txt{flex:1;min-width:0;display:flex;
  flex-direction:column;gap:2px;}
.presentation-hub-row-sub{min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;font:10.5px var(--sans);
  color:var(--chrome-ink-2);}
.presentation-hub-row-sub:empty,.presentation-hub-row-kind:empty{
  display:none;}
/* the pin on a library row */
.presentation-hub-pin{flex:none;width:20px;height:20px;display:inline-flex;
  align-items:center;justify-content:center;border-radius:4px;
  color:var(--chrome-ink-2);opacity:.35;cursor:pointer;}
.presentation-hub-pin .bic{width:12px;height:12px;color:inherit;}
.presentation-hub-row:hover .presentation-hub-pin{opacity:.85;}
.presentation-hub-pin:hover{opacity:1;background:#ffffff14;}
.presentation-hub-pin.on{opacity:1;color:var(--cyan);}
.presentation-hub-row.pinned{border-color:color-mix(in srgb,var(--cyan) 45%,var(--chrome-line));}
/* duplicate, rename and delete share the pin's shape so all four match.
   They are invisible until the row is under the pointer or one of them has
   keyboard focus. */
.presentation-hub-act{flex:none;width:20px;height:20px;display:inline-flex;
  align-items:center;justify-content:center;border-radius:4px;
  color:var(--chrome-ink-2);opacity:0;cursor:pointer;
  transition:opacity .12s;}
.presentation-hub-act .bic{width:12px;height:12px;color:inherit;}
.presentation-hub-row:hover .presentation-hub-act,
.presentation-hub-act:focus{opacity:.8;}
.presentation-hub-act:hover{opacity:1;background:#ffffff14;
  color:var(--chrome-ink);}
.presentation-hub-empty{padding:9px;color:var(--chrome-ink-2);
  border:1px dashed var(--chrome-line);border-radius:7px;font:11px var(--sans);}
/* a folder heading in the library is a drop target; its verbs show on
   hover */
.presentation-hub-folder{display:flex;align-items:center;gap:7px;
  margin-top:8px;padding:6px 9px;border:1px dashed transparent;
  border-radius:7px;color:var(--chrome-ink-2);font:500 11.5px var(--sans);}
.presentation-hub-folder .bic{width:13px;height:13px;flex:none;}
.presentation-hub-folder-name{flex:1;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.presentation-hub-folder-count{flex:none;font-size:9px;
  background:#ffffff10;border-radius:8px;padding:1px 6px;}
.presentation-hub-folder-btn{display:none;background:none;border:none;
  color:var(--chrome-ink-2);cursor:pointer;padding:2px 4px;border-radius:4px;}
.presentation-hub-folder-btn .bic{width:9px;height:9px;}
.presentation-hub-folder:hover .presentation-hub-folder-btn{display:inline-flex;}
.presentation-hub-folder-btn:hover{color:var(--chrome-ink);background:#ffffff14;}
.presentation-hub-folder.dropping{border-color:var(--cyan);
  background:color-mix(in srgb,var(--accent) 11%,transparent);}
.presentation-hub-row.infolder{margin-left:18px;}
.presentation-hub-row.dragging{opacity:.5;}
.presentation-hub-list.dropping-root{outline:2px dashed
  color-mix(in srgb,var(--accent) 40%,transparent);outline-offset:3px;
  border-radius:7px;}
/* ---- Find, and the preview of the row under the pointer ---- */
.presentation-hub-find{margin-left:auto;display:flex;align-items:center;
  gap:6px;min-width:0;flex:0 1 330px;padding:0 9px;height:30px;
  border:1px solid var(--chrome-line);border-radius:7px;
  background:var(--input-bg,#0b141d);color:var(--chrome-ink-2);}
.presentation-hub-find:focus-within{border-color:var(--cyan);}
.presentation-hub-find .bic{width:13px;height:13px;flex:none;}
.presentation-hub-find input{flex:1;min-width:0;border:0;outline:none;
  background:none;color:var(--chrome-ink);font:12px var(--sans);}
.presentation-hub-preview{border-left:1px solid var(--chrome-line);
  padding-left:14px;}
.pv-host{display:flex;flex-direction:column;gap:9px;min-height:0;}
.pv-head{display:flex;align-items:center;gap:10px;}
.pv-txt{flex:1;min-width:0;}
.pv-name{font:600 13px var(--sans);color:var(--chrome-ink);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.pv-sub{font:10.5px var(--sans);color:var(--chrome-ink-2);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.pv-open{flex:none;}
.pv-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(164px,1fr));
  gap:10px 8px;max-height:min(52vh,470px);overflow-y:auto;padding:2px 2px 6px;
  scrollbar-width:thin;align-content:start;}
.pv-slide{margin:0;min-width:0;display:flex;flex-direction:column;gap:4px;}
.pv-slide .mini-diagram{max-width:100%;border-radius:4px;
  box-shadow:0 1px 0 #00000040;}
.pv-slide figcaption{font:10.5px var(--sans);color:var(--chrome-ink-2);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pv-slide figcaption b{font:600 10px var(--mono);color:var(--chrome-ink);
  margin-right:2px;}
/* a slide holding the words you searched for */
.pv-slide.pv-hit .mini-diagram{outline:2px solid var(--accent,#39a9c0);
  outline-offset:1px;}
.pv-slide.pv-hit figcaption{color:var(--accent,#39a9c0);}
.pv-note{font:11px var(--sans);color:var(--chrome-ink-2);padding:6px 0;}
.presentation-hub-dirhead{margin-top:10px!important;}
.presentation-hub-dirhead[hidden],#presentation-hub-dir[hidden]{display:none;}
/* Home's Open/Import shows the folder alone, its files in a grid of rows
   beside the preview; Recent and All are already on Home */
.presentation-hub.is-folder .presentation-hub-columns{
  grid-template-columns:minmax(0,1.5fr) minmax(300px,1.1fr);}
.presentation-hub.is-folder .presentation-hub-lib,
.presentation-hub.is-folder .presentation-hub-recenthead,
.presentation-hub.is-folder #presentation-hub-recent{display:none;}
.presentation-hub.is-folder .presentation-hub-dirhead{margin-top:0!important;}
.presentation-hub.is-folder #presentation-hub-dir:not([hidden]){display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  align-content:start;}
/* Home's recent rows show the same preview beside the row you point at */
.pv-card{position:fixed;z-index:245;width:392px;max-width:calc(100vw - 24px);
  padding:12px;border-radius:10px;border:1px solid var(--chrome-line);
  background:var(--chrome-2,#16273a);color:var(--chrome-ink);
  box-shadow:0 18px 60px var(--shadow,#0008);}
.pv-card[hidden]{display:none;}
.pv-card .pv-list{max-height:min(46vh,420px);}
@media (max-width:980px){
  .presentation-hub-columns{grid-template-columns:repeat(2,minmax(0,1fr));}
  .presentation-hub-preview{grid-column:1/-1;border-left:0;padding-left:0;
    border-top:1px solid var(--chrome-line);padding-top:12px;}
  .presentation-hub.is-folder .presentation-hub-columns{
    grid-template-columns:minmax(0,1fr);}
}
@media (max-width:640px){
  .presentation-hub-columns{grid-template-columns:1fr;}
  .presentation-hub-folderform{grid-template-columns:1fr;}
  .presentation-hub-find{flex-basis:100%;margin-left:0;}
}

/* ---------- open dialog (app mode file browser) ---------- */
.opendlg{position:fixed;inset:0;z-index:130;background:#0a131b88;
  display:flex;align-items:center;justify-content:center;padding:24px;}
.opendlg[hidden]{display:none;}
.odlg-box{width:min(580px,94vw);height:min(620px,86vh);
  background:var(--chrome-2);border:1px solid var(--chrome-line);
  border-radius:12px;display:flex;color:var(--chrome-ink);
  flex-direction:column;overflow:hidden;box-shadow:0 24px 80px var(--shadow);}
.odlg-head{display:flex;align-items:center;gap:10px;padding:12px 14px;
  border-bottom:1px solid var(--chrome-line);}
.odlg-head .dbtn{border-color:var(--btn-border);background:var(--btn-bg);
  color:var(--btn-ink);}
.odlg-head .dbtn:hover{border-color:var(--accent);color:var(--chrome-ink);}
.odlg-path{flex:1;font-family:var(--mono);font-size:11px;
  color:var(--chrome-ink-3);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  direction:rtl;text-align:left;}
.odlg-list{flex:1;overflow-y:auto;padding:8px;}
.odlg-i{display:flex;align-items:center;gap:10px;width:100%;
  background:none;border:none;font-family:var(--sans);font-size:13px;
  color:var(--chrome-ink-2);padding:8px 10px;border-radius:6px;cursor:pointer;
  text-align:left;}
.odlg-i:hover{background:var(--surface-hover);color:var(--chrome-ink);}
.odlg-i .ic{font-size:13px;flex:none;width:20px;text-align:center;}
.odlg-i.nb{color:var(--accent);font-weight:500;}
.odlg-i .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  flex:1;min-width:0;}
.odlg-i .sz{font-family:var(--mono);font-size:10px;color:var(--chrome-ink-3);
  flex:none;}
.odlg-empty{padding:26px;text-align:center;color:var(--chrome-ink-3);
  font-size:12.5px;}
/* remembered files: reopen anything you've had open, name over path */
.odlg-recent{flex:none;border-bottom:1px solid var(--chrome-line);
  padding:8px 8px 10px;max-height:190px;overflow-y:auto;}
.odlg-recent[hidden]{display:none;}
.odlg-recent-h{font:600 11px var(--sans);letter-spacing:0;
  text-transform:none;color:var(--chrome-ink-3);padding:2px 6px 6px;}
/* A remembered file is a button and has to look like one: a card with an
   icon and the name over its path. */
.odlg-r{display:grid;grid-template-columns:auto 1fr auto;
  grid-template-rows:auto auto;column-gap:9px;row-gap:1px;width:100%;
  background:var(--chrome-3);border:1px solid var(--chrome-line);
  padding:7px 10px;border-radius:7px;cursor:pointer;text-align:left;
  margin-bottom:5px;transition:border-color .13s,background .13s;}
.odlg-r:hover{background:var(--surface-hover);border-color:var(--accent);}
.odlg-r-ic{grid-row:1/3;align-self:center;font-size:13px;line-height:1;
  opacity:.85;}
/* the pin takes the third column, across both rows */
.odlg-r .recent-pin{grid-column:3;grid-row:1/3;align-self:center;}
.odlg-r-nm{font-size:12.5px;color:var(--accent);font-weight:500;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  max-width:100%;min-width:0;}
.odlg-r-p{font-family:var(--mono);font-size:10px;color:var(--chrome-ink-3);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  max-width:100%;min-width:0;direction:rtl;text-align:left;}
.odlg-foot{border-top:1px solid var(--chrome-line);padding:10px 12px;}
#odlg-input{width:100%;box-sizing:border-box;font-family:var(--mono);
  font-size:11.5px;border:1px solid var(--border-strong);border-radius:6px;
  padding:8px 10px;background:var(--input-bg);color:var(--chrome-ink);}
#odlg-input:focus{outline:none;border-color:var(--cyan);}
.odlg-inrow{display:flex;gap:8px;align-items:stretch;}
.odlg-inrow #odlg-input{flex:1;min-width:0;}
#odlg-go{flex:none;font-weight:600;padding:8px 16px;
  border-color:var(--accent);color:var(--accent);background:var(--btn-bg);}
#odlg-go:hover:not(:disabled){background:var(--accent-deep);
  color:var(--on-accent-deep);}
#odlg-go:disabled,#odlg-input:disabled{opacity:.55;cursor:default;}
.odlg-load{height:3px;margin-top:8px;border-radius:2px;overflow:hidden;
  background:color-mix(in srgb,var(--accent) 13%,transparent);position:relative;}
.odlg-load[hidden]{display:none;}
.odlg-load span{position:absolute;left:-40%;top:0;width:40%;height:100%;
  background:var(--cyan);border-radius:2px;
  animation:odlg-slide 1.1s ease-in-out infinite;}
@keyframes odlg-slide{to{left:100%;}}
/* Dialog chrome reads only the complete theme contract above. A separate
   body.light/body:not(.light) repair pair would leave new schemes with
   half-themed popups. */

/* a tab unloaded to save memory shows its name and icon dimmed, as a
   browser shows a sleeping tab; its page is a placeholder until shown */
.tab.tab-asleep .tab-t,.tab.tab-asleep .tab-ico{opacity:.55;}
.tab.tab-asleep .tab-t{font-style:italic;}
.nbshell.nb-asleep{grid-template-columns:1fr;}
.nap-card{max-width:520px;margin:12vh auto 0;padding:22px 24px;
  border:1px solid var(--line);border-radius:10px;background:var(--paper);
  color:var(--ink);text-align:center;}
.nap-t{font-weight:600;font-size:16px;margin-bottom:6px;}
.nap-s{color:var(--ink-2);font-size:13px;margin-bottom:14px;}
.nb-asleep.nap-busy .nap-go{display:none;}
.nb-asleep.nap-busy .nap-s::after{content:"";display:inline-block;
  width:10px;height:10px;margin-left:8px;border-radius:50%;
  border:2px solid var(--accent);border-right-color:transparent;
  animation:nap-spin .8s linear infinite;vertical-align:-1px;}
@keyframes nap-spin{to{transform:rotate(360deg);}}

/* the outline's drag edge (app.js), on its right side */
.rail-edge{position:fixed;top:var(--chrome-h,0px);bottom:0;width:7px;
  z-index:30;cursor:col-resize;
  left:calc(var(--presrail-w,0px) + var(--rail-w) - 4px);}
.rail-edge::after{content:"";position:absolute;top:0;bottom:0;left:3px;
  width:1px;background:transparent;transition:background .12s;}
.rail-edge:hover::after,.rail-edge.on::after{width:3px;left:2px;
  background:color-mix(in srgb,var(--accent) 55%,transparent);}
body:not(.tocshow) .rail-edge,body.welcoming .rail-edge,
body.group-viewing .rail-edge,body.slide-editing .rail-edge,
body.doc-presenting .rail-edge{display:none;}
@media(max-width:860px){.rail-edge{display:none;}}
body.rail-dragging,body.rail-dragging *{cursor:col-resize !important;
  user-select:none;}

/* ---------- section sidebar (TOC): hidden until ☰ toggles it ------- */
@media(min-width:861px){
  body:not(.tocshow) .shell{grid-template-columns:1fr;}
  body:not(.tocshow) .nbshell .rail{display:none;}
}

/* ---------- advanced code-type filter menu ---------- */
.ckfilter-menu{position:fixed;z-index:200;background:var(--chrome-2);
  border:1px solid var(--chrome-line);border-radius:8px;padding:8px;
  box-shadow:0 12px 40px var(--shadow);min-width:150px;}
.ckfilter-menu[hidden]{display:none;}
/* Export view's menu: two worded rows */
.vx-menu{padding:5px;min-width:190px;}
.vx-item{display:flex;align-items:center;gap:8px;width:100%;
  padding:6px 9px;border:0;border-radius:6px;background:none;
  color:var(--chrome-ink);font:12px var(--sans);text-align:left;
  cursor:pointer;}
.vx-item:hover,.vx-item:focus-visible{background:var(--chrome-1);}
.vx-item .bic{flex:none;}
.ckf-h{font-family:var(--sans);font-size:11px;font-weight:600;
  letter-spacing:0;color:var(--chrome-ink-2);padding:2px 6px 6px;}
.ckf-h::first-letter{text-transform:uppercase;}
.ckf-row{display:flex;align-items:center;gap:8px;padding:5px 6px;
  font-family:var(--mono);font-size:11.5px;color:var(--chrome-ink-2);
  cursor:pointer;
  border-radius:5px;text-transform:capitalize;}
/* capitalize suits one-word type names ("data", "print"); a row whose name
   is a phrase would be Title Cased, so a phrase row opts out */
.ckf-row.ckf-phrase{text-transform:none;}
.ckf-row:hover{background:var(--surface-hover);}
.ckf-row input{cursor:pointer;}
.ckf-dot{width:8px;height:8px;border-radius:3px;flex:none;
  background:var(--ck-code);}
.ckf-dot.ckmain-imports{background:var(--ck-imports);}
.ckf-dot.ckmain-function{background:var(--ck-function);}
.ckf-dot.ckmain-data{background:var(--ck-data);}
.ckf-dot.ckmain-constant{background:var(--ck-constant);}
.ckf-dot.ckmain-settings{background:var(--ck-settings);}
.ckf-dot.ckmain-plotting{background:var(--accent);}
.ckf-dot.ckmain-print{background:var(--ck-print);}
.ckf-dot.ckmain-comments{background:#5f7386;}
/* the row stands for an absence, not a kind of code, so its dot is hollow
   rather than one more colour in the code-kind ladder */
.ckf-dot.ckf-noout{background:transparent;
  border:1px dashed var(--ink-3);}
.ckf-dot.ot-sw-print{background:#5f7d8c;}
.ckf-dot.ot-sw-dataset{background:#4d90c0;}
.ckf-dot.ot-sw-result{background:#9a7cc0;}
.ckf-dot.ot-sw-error{background:#cf6a5a;}
/* finer text/plain repr types */
.ckf-dot.ot-sw-numeric{background:#4fae8f;}
.ckf-dot.ot-sw-string{background:#c9a24b;}
.ckf-dot.ot-sw-list{background:#5b8fd0;}
.ckf-dot.ot-sw-dict{background:#a878c8;}
.ckf-dot.ot-sw-tuple{background:#7b86d0;}
.ckf-dot.ot-sw-set{background:#4fb0c0;}
.ckf-dot.ot-sw-bool{background:#d08a4f;}
.ckf-dot.ot-sw-none{background:#7a8794;}
.ckf-dot.ot-sw-array{background:#5b7589;}
.ckf-dot.ot-sw-value{background:#8a93a0;}
.ckf-dot.ot-sw-dataframe{background:#4d90c0;}
.ckf-dot.ot-sw-series{background:#5aa0b8;}
.ckf-dot.ot-sw-function{background:#46a892;}
.ckf-dot.ot-sw-class{background:#9a7cc0;}
.ckf-dot.ot-sw-module{background:#8a6d4a;}
.ckf-dot.ot-sw-object{background:#8a93a0;}
.ckf-empty{color:#7e93a4;font-size:11px;padding:8px;}
/* the Output-types menu rows carry a per-type On/Fold/Off cycler instead
   of a checkbox: the type's own three-state filter, independent of the
   overall Output button once set. The name takes the slack so every
   cycler sits in one right-aligned column. */
.ckf-name{flex:1;min-width:0;}
.ckf-state{flex:none;font-family:var(--mono);font-size:10px;width:44px;
  padding:3px 0;text-align:center;border-radius:5px;cursor:pointer;
  border:1px solid #ffffff2e;background:none;color:#93a8ba;
  text-transform:none;}
.ckf-state:hover{border-color:var(--cyan);color:#fff;}
/* Inherited (no override): dimmed and dashed — it merely reports what the
   overall Output filter is doing. Overridden: solid, it owns its state. */
.ckf-state{border-style:dashed;}
.ckf-state.ovr{border-style:solid;color:#d7e3ec;background:#ffffff0c;}
.ckf-state.ovr.s-hidden{color:#69788a;}
.ckf-state.ovr.s-collapsed{color:#9fc0d0;}
/* hover must beat the per-state colours above, or the feedback dies on
   exactly the overridden buttons */
.ckf-state.ovr:hover{color:#fff;border-color:var(--cyan);}
body.light .ckf-state{border-color:var(--line);color:var(--ink-3);}
body.light .ckf-state.ovr{color:var(--ink);background:var(--surface-hover);}
/* the light theme needs its own per-state colours: without these the
   generic body.light .ovr rule out-specifies them and Off/Fold read
   identically to On */
body.light .ckf-state.ovr.s-hidden{color:var(--ink-3);}
body.light .ckf-state.ovr.s-collapsed{color:var(--accent-deep);}
body.light .ckf-state:hover,body.light .ckf-state.ovr:hover{
  border-color:var(--cyan);color:var(--ink);}
/* one click puts every type back under the overall Output filter */
.ckf-reset{display:block;width:100%;margin-top:6px;padding:5px 6px;
  font-family:var(--mono);font-size:10.5px;color:#93a8ba;background:none;
  border:1px solid #ffffff22;border-radius:5px;cursor:pointer;}
.ckf-reset:hover:enabled{border-color:var(--cyan);color:#fff;}
.ckf-reset:disabled{opacity:.45;cursor:default;}
body.light .ckf-reset{border-color:var(--line);color:var(--ink-3);}
body.light .ckf-reset:hover:enabled{color:var(--ink);}
/* the tab's ⌚ Versions menu */
.vers-menu{min-width:232px;max-width:330px;
  max-height:min(70vh,540px);overflow-y:auto;}
/* Filters > Images, and one figure's Quality: a row per choice, what it
   does under its name, the warning in amber */
.jvq-menu{width:300px;box-sizing:border-box;padding:6px;}
.jvq-row{display:block;width:100%;box-sizing:border-box;text-align:left;
  background:none;border:0;border-radius:6px;padding:7px 8px 7px 26px;
  position:relative;cursor:pointer;color:var(--chrome-ink);
  font:500 12.5px var(--sans);}
.jvq-row::before{content:"";position:absolute;left:9px;top:10px;width:8px;
  height:8px;border-radius:50%;box-sizing:border-box;
  border:1.5px solid var(--chrome-ink-2);}
.jvq-row.on::before{background:var(--cyan);border-color:var(--cyan);}
.jvq-row:hover,.jvq-row:focus-visible{outline:none;
  background:var(--surface-hover);}
.jvq-l{display:block;}
.jvq-sub{display:block;margin-top:2px;font:400 11.5px/1.35 var(--sans);
  color:var(--chrome-ink-2);}
.jvq-sub.jvq-warn{color:var(--amber);}
.jvq-note{margin:4px 2px 2px;padding:7px 6px 2px;
  border-top:1px solid var(--chrome-line);font:400 11px/1.4 var(--sans);
  color:var(--chrome-ink-2);}
/* Images Off: a figure that is not loaded is an empty frame of its own
   size, with Load picture and Load all in this notebook in the middle */
.figframe.jvq-off{position:relative;}
.figframe.jvq-off img{min-height:120px;border-radius:4px;
  background:repeating-linear-gradient(135deg,transparent 0 10px,
    color-mix(in srgb,var(--output-line) 45%,transparent) 10px 11px);}
.jvq-load{position:absolute;inset:0;display:flex;flex-wrap:wrap;
  align-items:center;justify-content:center;align-content:center;gap:8px;
  padding:8px;pointer-events:none;}
.jvq-load .dbtn.jvq-ld{pointer-events:auto;display:inline-flex;
  align-items:center;gap:6px;padding:7px 12px;border-radius:6px;opacity:1;
  font:500 12.5px var(--sans);color:var(--output-ink);
  background:var(--output-paper);border:1px solid var(--output-line);
  box-shadow:0 1px 3px rgba(0,0,0,.12);cursor:pointer;}
.jvq-load .dbtn.jvq-ld:hover{border-color:var(--cyan);}
.jvq-load .dbtn.jvq-ld .bic{width:14px;height:14px;}
/* High says so on the button too */
#img-quality.jvq-high{color:var(--amber);
  border-color:color-mix(in srgb,var(--amber) 55%,transparent);}
.vers-row{display:block;width:100%;text-align:left;background:none;
  border:none;color:#cdd9e3;font-family:var(--mono);font-size:11.5px;
  padding:6px 8px;border-radius:5px;cursor:pointer;}
.vers-row .vers-l{display:block;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.vers-row .vers-sub{display:block;font-size:9.5px;color:#7e93a4;
  margin-top:1px;}
.vers-row:hover{background:#ffffff0c;}
.vers-row.on{color:#7fd0e0;}
.vers-row.on .vers-l{color:#7fd0e0;}
body.light .vers-row{color:var(--ink-2);}
body.light .vers-row:hover{background:var(--surface-hover);}
.tab-vermark{color:#f0a848;margin-right:4px;flex:none;font-size:12px;}
#ck-filter-btn.on,#ot-filter-btn.on,#pt-filter-btn.on{
  border-color:var(--cyan);color:var(--chrome-ink);background:color-mix(in srgb,var(--accent) 13%,transparent);}
/* an output hidden by the advanced Output-types filter. Scoped + !important
   on purpose: output payloads embed their own <style> blocks (xarray ships
   `.xr-wrap{display:block !important}`), and a bare `.ot-off{display:none}`
   lost that cascade fight — the wrapper rename (jv-xr) fixed the known case,
   this rule is the general defence, mirroring .cb-fig .pt-off below. The
   extra .cb-out> raises specificity so a same-specificity embedded
   !important cannot win the document-order tiebreak. */
.cb-out>.ot-off{display:none!important;}
/* one output FOLDED by its own per-type state (Output-types menu): the
   payload hides and a slim .ot-stub button stands in for it; clicking the
   stub sets .ot-open on the payload */
.cb-out>.ot-fold:not(.ot-open){display:none!important;}
.ot-stub{display:block;width:100%;text-align:left;cursor:pointer;
  border:1px dashed var(--line);border-radius:8px;background:none;
  padding:8px 12px;margin-top:12px;font-family:var(--mono);
  font-size:11px;color:var(--ink-3);letter-spacing:.02em;
  text-transform:capitalize;}
.ot-stub:hover{color:var(--cyan-deep);}
body:not(.light) .ot-stub{border-color:#ffffff2a;color:#93a8ba;}
body:not(.light) .ot-stub:hover{color:var(--cyan);}
/* a figure hidden by the advanced Plot-types filter */
.cb-fig .pt-off{display:none!important;}
/* Plot-types menu swatches: one colour per plotting library */
.ckf-dot.pt-sw-matplotlib{background:var(--accent);}
.ckf-dot.pt-sw-plotly{background:#4d90c0;}
.ckf-dot.pt-sw-bokeh{background:#cf9a4e;}
.ckf-dot.pt-sw-vega{background:#9a7cc0;}
.ckf-dot.pt-sw-folium{background:#46a892;}
.ckf-dot.pt-sw-animation{background:#8fd4e4;}
.ckf-dot.pt-sw-video{background:#5b7589;}
.ckf-dot.pt-sw-widget{background:#8ba0b2;}
/* the labelled dimension of the Plot-types menu */
.ckf-dot.pt-sw-titled{background:#6cc08f;}
.ckf-dot.pt-sw-untitled{background:#5f7386;}
/* Labels are a single ribbon control: reactions and categories can grow
   without taking a column each. The grouped menu is shared by card labels
   and the filter, but only the filter gets this active state. */
.mark-filter[aria-pressed="true"]{border-color:var(--cyan);color:var(--cyan);
  background:color-mix(in srgb,var(--accent) 14%,transparent);}
.mark-menu{position:fixed;z-index:210;display:flex;flex-direction:column;
  min-width:218px;max-width:min(330px,calc(100vw - 12px));padding:7px;
  gap:3px;border:1px solid #ffffff2a;border-radius:8px;
  background:var(--chrome-2,#16273a);box-shadow:0 12px 40px #0008;}
.mark-menu-h{margin:4px 5px 1px;font:600 11px var(--sans);color:var(--chrome-ink-2);}
.mark-menu-row{display:flex;align-items:center;gap:7px;width:100%;padding:6px 7px;
  border:1px solid transparent;border-radius:5px;background:none;
  color:var(--chrome-ink,#d7e3ec);font:11px var(--sans);text-align:left;
  cursor:pointer;}
.mark-menu-row:hover,.mark-menu-row.on{background:#ffffff12;border-color:#ffffff24;}
.mark-menu-row.on{color:var(--cyan);}
.mark-menu-row .bic{width:14px;height:14px;flex:none;}
.mark-menu-row .mark-menu-name{flex:1;min-width:0;}
.mark-menu-row .mark-menu-count{font-family:var(--mono);font-size:10px;
  color:var(--chrome-ink-2);}
.mark-menu-check{width:14px;text-align:center;flex:none;}
.mark-menu-clear{margin-top:3px;border-top:1px solid #ffffff1b;padding-top:6px;}
body.light .nb-filebar{background:var(--chrome-1);border-bottom-color:var(--chrome-line);}
body.light .nb-file-ident{border-right-color:var(--chrome-line);}
body.light .mark-menu{background:var(--chrome-2);border-color:var(--line);box-shadow:0 12px 40px #0003;}
/* "Apply to" scope picker: the section tree, tier-indented + tickable */
.scope-menu{min-width:250px;max-width:330px;max-height:min(64vh,440px);
  overflow-y:auto;}
/* selection is the ROW itself — highlighted means "the filters act here" */
.scope-row{text-transform:none;align-items:center;gap:5px;cursor:pointer;
  border:1px solid transparent;user-select:none;}
.scope-row.on{background:color-mix(in srgb,var(--accent) 14%,transparent);border-color:color-mix(in srgb,var(--accent) 35%,transparent);color:#eaf6fa;}
.scope-row.on:hover{background:color-mix(in srgb,var(--accent) 20%,transparent);}
/* only some of the sub-headings inside are selected */
.scope-row.part{background:color-mix(in srgb,var(--accent) 6%,transparent);border-color:color-mix(in srgb,var(--accent) 20%,transparent);}
.scope-row:focus-visible{outline:2px solid var(--cyan);outline-offset:1px;}
body.light .scope-row.on{background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--ink);}
.scope-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;}
.scope-l2{padding-left:16px;}
.scope-l3{padding-left:32px;opacity:.9;}
/* the expand arrow that reveals a heading's sub-headings */
.scope-tw{width:14px;flex:none;display:flex;justify-content:center;}
.scope-chev{background:none;border:none;padding:0;cursor:pointer;
  color:#7e93a4;font-size:10px;line-height:1;
  transition:transform .13s,color .13s;}
.scope-chev.open{transform:rotate(90deg);}
.scope-chev:hover{color:var(--cyan);}
/* how many sub-headings ride along with this one */
.scope-n{font-family:var(--mono);font-size:9px;color:var(--cyan);
  background:color-mix(in srgb,var(--accent) 9%,transparent);border-radius:20px;padding:1px 5px;margin-left:6px;}
/* the footer action in the Apply-to menu */
.scope-copy{margin:8px 0 0;border-top:1px solid #ffffff1f;
  border-radius:0 0 5px 5px;padding-top:8px;}
.scope-copy[disabled]{opacity:.45;cursor:default;}
.ckf-all{display:block;width:100%;text-align:left;font-family:var(--mono);
  font-size:11px;color:var(--cyan);background:color-mix(in srgb,var(--accent) 8%,transparent);
  border:1px solid color-mix(in srgb,var(--accent) 20%,transparent);border-radius:5px;padding:5px 7px;
  margin:0 0 6px;cursor:pointer;}
.ckf-all:hover{background:color-mix(in srgb,var(--accent) 15%,transparent);color:var(--chrome-ink);}
body.light .ckfilter-menu{background:var(--chrome-2);
  border-color:var(--chrome-line);}
body.light .ckf-row{color:var(--ink-2);}
body.light .ckf-row:hover{background:var(--surface-hover);}

/* ---------- add-a-note: a pencil on every card (app mode) that writes a
   markdown cell into the .ipynb, with an optional git commit ---------- */
.card-addnote{flex:none;background:none;border:none;cursor:pointer;
  font-size:13px;line-height:1;padding:1px 4px;opacity:0;
  color:var(--ink-3);}
.card:hover .card-addnote,.card-addnote:focus{opacity:.55;}
.card-addnote:hover{opacity:1;color:var(--cyan-deep);}
.note-dlg{position:fixed;inset:0;z-index:230;background:var(--overlay);
  display:flex;align-items:center;justify-content:center;}
.note-dlg[hidden]{display:none;}
.note-dlg-box{width:min(560px,92vw);background:var(--chrome-2);
  border:1px solid var(--chrome-line);border-radius:12px;padding:16px 18px;
  box-shadow:0 18px 60px var(--shadow);display:flex;
  flex-direction:column;gap:10px;}
.note-dlg-h{font-weight:600;color:var(--chrome-ink);font-size:15px;}
.note-dlg-sub{font-size:11.5px;color:var(--chrome-ink-2);
  font-family:var(--mono);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#note-dlg-src{background:var(--input-bg);border:1px solid var(--border-strong);
  border-radius:8px;color:var(--chrome-ink);font-family:var(--mono);font-size:13px;
  padding:10px 12px;resize:vertical;min-height:110px;}
#note-dlg-src:focus{outline:none;border-color:var(--cyan);}
.note-dlg-git{display:flex;align-items:center;gap:8px;font-size:12.5px;
  color:var(--chrome-ink-2);cursor:pointer;}
/* display:flex above would beat the [hidden] the row carries outside a git
   repository, so this restates it */
.note-dlg-git[hidden]{display:none;}
.note-dlg-btns{display:flex;gap:8px;justify-content:flex-end;
  align-items:center;}
.note-dlg-err{flex:1;font-size:11.5px;color:var(--danger);}
.doc-toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);
  z-index:240;background:var(--chrome-2);border:1px solid color-mix(in srgb,var(--accent) 40%,transparent);
  border-radius:9px;color:var(--chrome-ink);font-size:13px;
  padding:10px 16px;box-shadow:0 10px 30px var(--shadow);
  max-width:min(640px,92vw);}
.doc-toast a{color:var(--accent);}
.doc-toast[hidden]{display:none;}
body.light .ckf-h{color:var(--ink-3);}

/* ---------- instant tooltips (replaces slow native titles) -------- */
/* a tooltip is a plain dark bubble, not a button: no accent border, a small
   radius, and a half-second delay, so it does not read as a second copy of
   the row under it */
.apptip{position:fixed;z-index:300;background:var(--tooltip-bg);
  color:var(--tooltip-ink);
  font-family:var(--sans);font-size:11.5px;line-height:1.45;
  padding:6px 10px;border-radius:5px;border:1px solid var(--border-strong);
  box-shadow:0 6px 24px var(--shadow);pointer-events:none;max-width:300px;
  white-space:pre-line;display:none;}
/* the shortcut chip a data-kbd control appends to its tooltip */
.apptip-kbd{display:inline-block;margin-left:8px;padding:1px 7px;
  border:1px solid #ffffff33;border-bottom-width:2px;border-radius:4px;
  background:#ffffff10;font-family:var(--mono);font-size:10px;
  color:var(--cyan);vertical-align:middle;}
/* the Help overlay's shortcut reference uses the same chip look */
.helpdlg kbd{display:inline-block;min-width:20px;text-align:center;
  padding:1px 7px;border:1px solid #ffffff2e;border-bottom-width:2px;
  border-radius:4px;background:#ffffff0c;font-family:var(--mono);
  font-size:11px;}
.help-keys{display:grid;grid-template-columns:max-content 1fr;
  gap:6px 14px;align-items:center;margin:8px 0 4px;}
body.light .apptip-kbd,body.light .helpdlg kbd{
  border-color:var(--chrome-line);background:var(--surface-hover);}

/* ---------- light theme: the app chrome flips, the presentation
   canvas stays dark (decks look identical on every machine) -------- */
body.light .apptop{background:var(--chrome-0);border-color:var(--chrome-line);}
body.light .appbar{border-bottom-color:var(--chrome-line);}
body.light .appbar .toggle,body.light .present-bar .toggle{
  border-color:var(--btn-border);background:var(--btn-bg);
  color:var(--btn-ink);}
body.light .appbar .toggle:hover,body.light .present-bar .toggle:hover,
body.light .nb-filebar .toggle:hover{border-color:var(--cyan);
  color:var(--ink);}
body.light .appbar .toggle.tv.off,body.light .present-bar .toggle.tv.off{color:var(--ink-3);}
body.light .tab{border-color:var(--chrome-line);
  background:var(--surface-hover);color:var(--chrome-ink-3);}
body.light .tab:hover{background:var(--surface-active);
  color:var(--chrome-ink);}
body.light .tab.current{background:var(--paper);color:var(--ink);}
body.light .presrail{background:var(--chrome-0);
  border-right-color:var(--chrome-line);}
body.light .pr-item{color:var(--chrome-ink-3);}
body.light .pr-item:hover{background:var(--surface-hover);
  color:var(--chrome-ink);}
body.light .pr-item.current{background:var(--accent-deep);
  color:var(--on-accent-deep);}
body.light .pr-item.editing{background:var(--accent-deep);
  color:var(--on-accent-deep);}
body.light .pr-item.ptab .pr-ico{color:var(--cyan-deep);}
body.light .pr-item.editing .pr-ico{color:var(--on-accent-deep);}
body.light .pr-label{color:var(--cyan-deep);}
body.light .pr-btn{background:var(--btn-bg);border-color:var(--btn-border);
  color:var(--ink-2);}
body.light .pr-btn:hover{border-color:var(--cyan);color:var(--ink);
  background:color-mix(in srgb,var(--accent) 7%,transparent);}
body.light .pr-collapse{border-color:var(--line);
  color:var(--ink-3);}
body.light .pr-collapse:hover{color:var(--ink);
  border-color:var(--ink-3);}
body.light .presrail-show{background:var(--chrome-0);
  border-color:var(--chrome-line);color:var(--chrome-ink-3);}
body.light .deck-create{background:var(--chrome-0);}
body.light .dc-block{border-bottom-color:var(--line);}
body.light .dc-label{color:var(--ink-3);}
body.light .deck-create .dbtn{border-color:var(--btn-border);
  background:var(--btn-bg);color:var(--btn-ink);}
body.light .deck-create .dbtn:hover{border-color:var(--cyan);
  color:var(--ink);}
body.light .deck-create .dbtn.primary{background:var(--accent-deep);
  border-color:var(--accent-deep);color:var(--on-accent-deep);}
body.light .deck-create .dbtn.lay .layico i{background:var(--chrome-ink-3);}
body.light .deck-create .dbtn.lay[aria-pressed="true"]{
  background:var(--accent-deep);border-color:var(--accent-deep);}
body.light .dc-presname{color:var(--ink);}
body.light #pres-name,body.light .title-editor input{
  background:var(--input-bg);border-color:var(--border-strong);
  color:var(--ink);}
body.light .dc-hint{color:var(--ink-3);}
body.light .dc-menu{background:var(--chrome-2);
  border-color:var(--chrome-line);}
body.light .dc-mi:not([aria-pressed="true"]){color:var(--ink-2);}
body.light .dc-mi:hover{background:color-mix(in srgb,var(--accent) 15%,transparent);}
body.light .dc-msep{background:var(--line);}
/* (the .deck-status colours in light come from deck.css's own token rules,
   which have better contrast) */
body.light .film-label{color:var(--ink-2);}
body.light .film-row.current{background:color-mix(in srgb,var(--accent) 13%,transparent);
  outline-color:color-mix(in srgb,var(--accent) 40%,transparent);}
body.light .film-mini{color:var(--ink-3);}
body.light .film-mini:hover{background:var(--surface-active);color:var(--ink);}
body.light .film-label .film-n{color:var(--ink-3);}
/* slide-editing chrome flips too; the slide surface itself stays the
   dark presentation design in every theme */
body.light .deck.editing{background:var(--paper-3);}
body.light .deck.creating{background:var(--chrome-0);}
body.light .edit-tools{background:var(--chrome-0);
  border-bottom-color:var(--chrome-line);}
/* the thin document bar and the tab strip flip with the ribbon they sit
   above */
body.light .deck-qat,body.light .rbn-tabs{background:var(--chrome-0);
  border-bottom-color:var(--chrome-line);}
body.light .deck-qat .dbtn{background:var(--btn-bg);
  border-color:var(--btn-border);color:var(--btn-ink);}
body.light .deck-qat .dbtn:hover{border-color:var(--cyan);color:var(--ink);}
body.light .qat-name{color:var(--ink-2);}
body.light .qat-name:hover{border-color:var(--line);color:var(--ink);}
body.light .qat-sep{background:var(--line);}
body.light .rbn-tab{color:var(--ink-3);}
body.light .rbn-tab:hover{color:var(--ink);}
body.light .rbn-tab[aria-selected="true"]{color:var(--ink);}
body.light .find-pop{background:var(--chrome-2);
  border-color:var(--chrome-line);}
body.light .find-in{background:var(--input-bg);
  border-color:var(--border-strong);
  color:var(--ink);}
body.light .find-t,body.light .find-count{color:var(--ink-3);}
body.light .find-ck{color:var(--ink-2);}
body.light .find-hit{color:var(--ink-2);}
body.light .find-hit:hover{background:var(--surface-hover);color:var(--ink);}
/* (a thumbnail's text takes its colour from the deck, via .mini-tx and
   .page-light, not from the app's ink) */
body.light .edit-tools .dbtn{background:var(--btn-bg);
  border-color:var(--btn-border);color:var(--btn-ink);}
body.light .edit-tools .dbtn:hover{border-color:var(--cyan);
  color:var(--ink);}
/* every pressed button in Light, as in the dark schemes (not only the
   tools .et and .etm) */
body.light .edit-tools .dbtn[aria-pressed="true"],
body.light .edit-tools .dbtn.et[aria-pressed="true"],
body.light .edit-tools .dbtn.etm[aria-pressed="true"]{
  background:var(--accent-deep,var(--cyan-deep));
  border-color:var(--accent-deep,var(--cyan-deep));
  color:var(--on-accent-deep,#fff);}
body.light .et-label{color:var(--warning);}
body.light .et-hint{color:var(--ink-3);}
body.light select#fmt-font{background:var(--btn-bg);
  border-color:var(--btn-border);
  color:var(--btn-ink);}   /* the button surface, like its row */
/* document rail (section nav aka Overview + analysis graph) */
body.light .rail{background:var(--chrome);color:var(--chrome-ink);
  border-right-color:var(--chrome-line);}
body.light .railhead{border-bottom-color:var(--chrome-line);}
body.light .railtitle{color:var(--chrome-ink);}
body.light .raildoct{color:var(--chrome-ink-3);}
body.light .railmeta{color:var(--chrome-ink-3);}
body.light .brand{color:var(--cyan-deep);}
body.light .navsec{color:var(--ink-2);}
body.light .navsec:hover{background:var(--surface-hover);}
body.light .navsec.active{background:color-mix(in srgb,var(--accent) 11%,transparent);color:var(--ink);}
body.light .navitems{border-left-color:var(--line);}
body.light .navsub{color:var(--ink-3);}
body.light .navitem{color:var(--ink-3);}
body.light .navitem:hover{color:var(--ink);background:var(--surface-hover);}
body.light .navitem.active{color:var(--ink);}
body.light .navitem.k-code .dot,body.light .nk.k-code .dot{
  background:#56627022;border-color:#00000026;}
body.light .navkey{border-top-color:var(--line);}
body.light .navkey-h,body.light .nk{color:var(--ink-3);}
body.light .nk .dot{background:var(--ink-3);}
body.light .navitem .dot{background:var(--ink-3);}
body.light .navitem.k-figure .dot,body.light .nk.k-figure .dot{
  background:var(--cyan);}
body.light .navitem.k-dataset .dot,body.light .nk.k-dataset .dot{
  background:#4d90c0;}
body.light .navitem.k-transform .dot,body.light .nk.k-transform .dot{
  background:#5b7589;}
body.light .navitem.k-metric .dot,body.light .nk.k-metric .dot{
  background:#46a892;}
body.light .navitem.k-note .dot,body.light .nk.k-note .dot{
  background:var(--amber);}
body.light .railgraph{background:var(--chrome-1);
  border-top-color:var(--chrome-line);}
body.light .rg-collapse{border-color:var(--line);color:var(--ink-3);}
body.light .rg-collapse:hover{color:var(--ink);
  border-color:#00000033;}

/* ---------- dark document (default theme; body.light keeps paper) --- */
body:not(.light){background:var(--chrome-0,#0b141d);}
body:not(.light) .stage{background:var(--chrome-0,#0b141d);}
/* dark mode is explicit overrides, not variable swaps, so every rule a
   custom view can restyle must honour its var here too, or styling does
   nothing in the default theme */
body:not(.light) .sectionhead{
  border-bottom-color:var(--hd-bd,var(--line));}
body:not(.light) .sectionhead h2{color:var(--hd-col,var(--ink));}
body:not(.light) .eyebrow{color:var(--hd-accent,var(--accent));}
body:not(.light) .card{background:var(--paper);border-color:var(--line);
  box-shadow:0 1px 2px color-mix(in srgb,var(--shadow) 16%,transparent);}
body:not(.light) .card:hover{box-shadow:0 6px 22px
  color-mix(in srgb,var(--shadow) 34%,transparent);}
body:not(.light) .cardtitle{color:var(--ink);}
body:not(.light) .badge{background:var(--paper-2);color:var(--ink-3);}
body:not(.light) .k-figure .badge{background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent);}
body:not(.light) .k-dataset .badge{background:#4d90c022;color:#7fb3d8;}
body:not(.light) .k-transform .badge{background:#5b758922;
  color:#93a7b8;}
body:not(.light) .k-metric .badge{background:#46a89222;color:#6fcab4;}
body:not(.light) .k-note .badge{background:#cf9a4e26;color:#dfb277;}
body:not(.light) .k-print .badge{background:#5f7d8c2b;color:#a6c2cf;}
body:not(.light) .nodeid{background:var(--paper-2);color:var(--ink-3);}
body:not(.light) .note{color:var(--md-col,var(--ink-2));}
body:not(.light) .note .caption{color:var(--md-col,var(--ink-2));}
/* a markdown card's own box is view-stylable in dark mode too */
body:not(.light) .card[data-note="1"]{background:var(--md-bg,transparent);
  border-color:var(--md-bd,transparent);box-shadow:none;}
body:not(.light) .content>.section>.card.note-dup:not(.collapsed)>.cardhead,
body:not(.light) .content>.section>.card.note-untitled:not(.collapsed)>.cardhead{
  background:var(--vw-bg,var(--chrome-0));}
body:not(.light) .caption{color:var(--ink-2);}
body:not(.light) pre.result,body:not(.light) pre.stream{
  background:var(--paper-2);border-color:var(--paper-3);color:var(--ink-2);}
body:not(.light) pre.error{
  background:color-mix(in srgb,var(--danger) 12%,var(--paper));
  border-color:color-mix(in srgb,var(--danger) 45%,var(--line));
  color:var(--danger);}
body:not(.light) .card.k-metric .cardbody pre.result{
  background:#46a89216;border-color:#46a89240;color:#7fd0bd;}
body:not(.light) .figframe{border-color:var(--line);}
body:not(.light) .jv-xr,body:not(.light) .rich{
  background:var(--output-paper);border:1px solid var(--output-line);
  border-radius:8px;padding:8px;color:var(--output-ink);}
body:not(.light) .codewrap{border-top-color:var(--line);}
body:not(.light) .codetoggle,body:not(.light) .htmltoggle,
body:not(.light) .steplabel,body:not(.light) .ct-steps{color:var(--ink-3);}
body:not(.light) .codetoggle:hover,
body:not(.light) .htmltoggle:hover{color:var(--accent);}
body:not(.light) .mdmore{background:var(--paper);border-color:var(--line);
  color:var(--accent);}
body:not(.light) .mdmore:hover{border-color:var(--accent);color:var(--ink);}
body:not(.light) .fp-btn{background:var(--paper);border-color:var(--line);
  color:var(--ink-2);}
body:not(.light) .fp-btn:hover{border-color:var(--accent);color:var(--ink);}
body:not(.light) .fp-count{color:var(--ink-3);}
body:not(.light) .rawcell{background:var(--paper);border-color:var(--line);}
body:not(.light) .rawmd{color:var(--ink-2);}
body:not(.light) .rawmd h1,body:not(.light) .rawmd h2,
body:not(.light) .rawmd h3,body:not(.light) .rawmd h4,
body:not(.light) .rawmd h5,body:not(.light) .rawmd h6{color:var(--ink);}
body:not(.light) .welcome{background:var(--paper-2);}
body:not(.light) .welcome-wordmark{color:var(--accent);}
body:not(.light) .welcome-lead{color:var(--ink-3);}
body:not(.light) .welcome-lead b{color:var(--ink-2);}
body:not(.light) .welcome-note{background:color-mix(in srgb,var(--accent) 9%,transparent);border-color:color-mix(in srgb,var(--accent) 20%,transparent);
  color:var(--ink-2);}
body:not(.light) .welcome-note b{color:var(--accent);}
body:not(.light) .welcome-links a{color:var(--accent);}

/* ---- The site's home page ----
   The web build's Home is junoview.com's landing page, so it has its own
   look: warm paper and ink, one accent from the logo (its amber: the full
   stop, a tile's mark, the ring a player draws), heavy short headings in
   the system's bold sans, and generous space. Dark keeps the same warmth
   (ink, not navy). Only the web build's body wears jv-site
   (render/page.py), so none of this reaches the app's start screen.
   The app's tokens are re-inked here, on .welcome, so what is already on
   this screen (the two tiles, a side's buttons, the Pinned and Recent
   rows, the loading bar) takes the page's colours with no rule of its
   own. System fonts only: --lp-head is whatever bold sans the machine has
   (Segoe UI, San Francisco, Inter if installed). */
body.jv-site .welcome{
  --lp-paper:#15130f;--lp-raise:#1e1b16;--lp-card:#25221c;
  --lp-ink:#f4f0e6;--lp-ink-2:#d9d3c5;--lp-ink-3:#aaa394;
  --lp-line:#3b362d;--lp-hi:#ef9f27;--lp-hi-ink:#f2ad4b;
  --lp-on-hi:#1b1306;--lp-shot:#0b141d;
  --lp-head:-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,
    'Helvetica Neue',Arial,sans-serif;
  --paper:var(--lp-card);--paper-2:var(--lp-paper);
  --paper-3:var(--lp-raise);--surface:var(--lp-card);
  --ink:var(--lp-ink);--ink-2:var(--lp-ink-2);--ink-3:var(--lp-ink-3);
  --line:var(--lp-line);--accent:var(--lp-hi-ink);
  --accent-deep:var(--lp-hi-ink);--focus:var(--lp-hi-ink);
  background:var(--lp-paper);color:var(--lp-ink-2);
  color-scheme:dark;scrollbar-color:var(--lp-line) var(--lp-paper);}
/* paper is white, as a slide is. The amber is too light for text on
   paper, so text and marks take its deep brown (5.9:1) and the bright
   amber is kept for fills */
body.jv-site.light .welcome{
  --lp-paper:#f4f5f5;--lp-raise:#e9ebeb;--lp-card:#ffffff;
  --lp-ink:#141414;--lp-ink-2:#393939;--lp-ink-3:#606363;
  --lp-line:#d3d7d7;--lp-hi-ink:#8a5300;color-scheme:light;
  scrollbar-color:#b4b9b9 var(--lp-paper);}
/* The window's right edge, in the page's colours too. #welcome is fixed
   and scrolls itself, so the root's stable gutter (core.css) would be a
   second, empty strip beside its scrollbar. On Home there is no gutter
   (html.jv-home: app.js refreshChrome, and render/page.py at first
   paint), the body behind is the page's paper (as is the browser's own
   bar: render/page.py SITE_INK), and the scrollbar is drawn in the page's
   scheme. */
html.jv-home{scrollbar-gutter:auto;}
body.jv-site.welcoming{background:#15130f;}
body.jv-site.welcoming.light{background:#f4f5f5;}
body.jv-site.th-contrast .welcome{--lp-ink-2:#f4f0e6;--lp-ink-3:#d9d3c5;
  --lp-line:#7a7264;}
body.jv-site.th-lcontrast .welcome{--lp-ink-2:#141414;--lp-ink-3:#393939;
  --lp-line:#848989;}
/* Home follows the colour scheme. The look above belongs to the Ink and
   amber and Paper and amber schemes (the default scheme is this page's
   own look). Under any other scheme Home wears that scheme: the app's
   tokens re-inked above inherit the scheme's again, and the page's own
   tokens are drawn from them. A mark on the accent takes the page's
   colour, dark where the accent is light and light where it is dark. */
body.jv-site:not(.th-ink):not(.th-paper) .welcome{
  --paper:inherit;--paper-2:inherit;--paper-3:inherit;--surface:inherit;
  --ink:inherit;--ink-2:inherit;--ink-3:inherit;--line:inherit;
  --accent:inherit;--accent-deep:inherit;--focus:inherit;
  --lp-paper:var(--paper-2);--lp-raise:var(--paper-3);
  --lp-card:var(--paper);--lp-ink:var(--ink);--lp-ink-2:var(--ink-2);
  --lp-ink-3:var(--ink-3);--lp-line:var(--line);--lp-hi:var(--accent);
  --lp-hi-ink:var(--accent);--lp-on-hi:var(--paper-2);}
body.jv-site.welcoming:not(.th-ink):not(.th-paper){
  background:var(--paper-2);}
body.jv-site .welcome-box{max-width:none;padding:0;text-align:left;}
body.jv-site .welcome-id{display:none;}
/* The first screen: the links and tagline across the top, then the
   wordmark and the line under it, the tiles and the last line, centred in
   what is left of the window. It is a grid so the links (which follow the
   app's lockup in the markup, and so in tab order) sit in the top row.
   The two outer columns are equal so the links stay on the page's centre
   line, over the wordmark. */
body.jv-site .welcome-top{display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  grid-template-areas:". links ." ". . ." "hero hero hero"
    "jump jump jump" "down down down" ". . .";
  /* a fixed room over the wordmark, so the filters stay put whichever
     list is under them (a share of the spare room would move them by the
     difference between two lists' heights) */
  grid-template-rows:auto clamp(28px,6vh,64px) auto auto auto
    minmax(20px,1fr);
  align-items:center;column-gap:28px;max-width:1200px;margin:0 auto;
  padding:22px clamp(16px,4vw,48px) 18px;min-height:calc(100vh - 40px);}
.lp-mark{margin:0;font:800 25px/1 var(--lp-head);letter-spacing:-.03em;
  color:var(--lp-ink);white-space:nowrap;}
.lp-dot{color:var(--lp-hi);}
/* the wordmark as the page's heading: one word, so it can be far bigger
   than the two-line headline it replaced was; the line-height leaves
   room for the j's tail */
.lp-logo{margin:0;font:800 clamp(72px,11.5vw,148px)/1.08 var(--lp-head);
  letter-spacing:-.045em;color:var(--lp-ink);white-space:nowrap;}
/* the version, in the window's top right corner level with the links, out
   of the row's flow so the links stay on the centre line. `.welcome` is
   fixed, so it is the box this is placed in, as for the app's own
   .welcome-ver. */
body.jv-site .lp-ver{position:absolute;top:21px;right:18px;}
body.jv-site .lp-ver .welcome-ver{position:static;font-family:var(--lp-head);}
body.jv-site .welcome-links{grid-area:links;justify-self:center;margin:0;
  gap:4px 30px;font:500 14px/1.6 var(--lp-head);color:var(--lp-ink-3);}
body.jv-site .welcome-links a{color:var(--lp-ink-2);}
body.jv-site .welcome-links a:hover{color:var(--lp-ink);
  text-decoration:underline 2px var(--lp-hi);text-underline-offset:5px;}
body.jv-site .lp-hero{grid-area:hero;justify-self:center;max-width:1040px;
  text-align:center;}
/* ---- Home's introduction ----
   The wordmark vanishes, then each feature appears one at a time as large
   text with an arrow pointing to it, pencil-drawn, and all of it is drawn
   back into a play button that is the wordmark's full stop; then the
   wordmark returns. app.js (Home's introduction) plays it; these are its
   styles. The tagline that sat under the wordmark is the scene's opening
   line and is not on the page. */
/* the word, apart from its full stop, so the scene can dissolve one and
   shrink the other */
.lp-word{display:inline-block;}
/* the full stop is the play button: the dot's size and place, on the
   baseline as the glyph was, with a play mark in it */
.lp-play{position:relative;display:inline-block;width:.23em;height:.23em;
  margin:0 0 0 .035em;padding:0;border:0;border-radius:50%;
  background:var(--lp-hi);color:var(--lp-on-hi);font:inherit;
  vertical-align:baseline;cursor:pointer;
  transition:transform .25s cubic-bezier(.3,1.5,.5,1),box-shadow .25s;}
.lp-play svg{position:absolute;inset:0;width:100%;height:100%;
  fill:currentColor;}
/* a press needs more room than a 17 px dot on a phone */
.lp-play::before{content:'';position:absolute;inset:-12px;
  border-radius:50%;}
.lp-play:hover{transform:scale(1.14);
  box-shadow:0 0 0 .05em color-mix(in srgb,var(--lp-hi) 28%,transparent);}
.lp-play:focus-visible{outline:2px solid var(--lp-hi-ink);
  outline-offset:5px;}
@media (prefers-reduced-motion:reduce){.lp-play{transition:none;}
  .lp-play:hover{transform:none;}}
/* the scene: one layer over the first screen, in Home's own box (which
   scrolls; the first screen's grid is not positioned, so the version
   keeps the window's corner), never in the way of a press (the doors
   work while it plays) and never read out (each door already says what
   it is for) */
.jvi-layer{position:absolute;inset:0;z-index:3;pointer-events:none;
  overflow:hidden;
  --jvi-hand:'Ink Free','Segoe Print','Bradley Hand','Noteworthy',
    'Chalkboard SE',var(--lp-head);}
.jvi-defs{position:absolute;width:0;height:0;}
.jvi-sign{position:absolute;inset:0;}
.jvi-sign svg{position:absolute;left:0;top:0;width:100%;height:100%;
  overflow:visible;}
/* the tagline, big where the wordmark was, as the page's own type */
/* (one line where one line fits, app.js setting the size; it shrinks up
   into the links' row as itself, never swapped for other words) */
.jvi-tag{position:absolute;left:0;top:0;width:max-content;
  font:800 clamp(26px,3.3vw,44px)/1.15 var(--lp-head);
  letter-spacing:-.025em;color:var(--lp-ink);text-align:center;
  text-wrap:balance;}
/* a chalk board sign: big handwritten words with room round them inside
   the chalk box app.js draws at its edge */
.jvi-note{position:absolute;left:0;top:0;width:max-content;
  box-sizing:border-box;padding:6px 14px 7px;text-align:center;}
.jvi-t{display:block;font:700 var(--jvi-fs,28px)/1.16 var(--jvi-hand);
  color:var(--lp-ink);text-wrap:balance;}
.jvi-s{display:block;margin-top:4px;font:400 15px/1.3 var(--jvi-hand);
  color:var(--lp-ink-2);text-wrap:balance;}
.jvi-w{display:inline-block;}
/* the chalk box: the page's soft ink, its edge roughened as the arrow's */
.jvi-box{fill:none;stroke:var(--lp-ink-2);stroke-width:1.6;opacity:.85;
  stroke-linecap:round;stroke-linejoin:round;filter:url(#jvi-pencil);}
/* the arrow, in pencil: the logo's amber, its edge roughened, a fainter
   second line beside it as a pencil leaves */
.jvi-arrow{fill:none;stroke:var(--lp-hi);stroke-width:2.6;
  stroke-linecap:round;stroke-linejoin:round;filter:url(#jvi-pencil);}
.jvi-ghost{stroke-width:1.2;opacity:.45;}
body.jv-site.light .jvi-arrow{stroke:var(--lp-hi-ink);}
/* Skip and Stop: the full stop glides off to the right and opens into two
   buttons while the scene plays, each a mark and a word in its own amber.
   Above the scene and clickable (the scene is not) */
.jvi-ctlw{position:absolute;left:0;top:0;width:0;height:0;z-index:4;
  pointer-events:none;}
.jvi-ctl{position:absolute;left:0;top:0;display:flex;gap:8px;
  pointer-events:auto;white-space:nowrap;}
.jvi-ctl.jvi-closing{pointer-events:none;}
.jvi-cb{display:inline-flex;align-items:center;gap:6px;height:30px;
  margin:0;padding:0 14px 0 11px;border:0;border-radius:15px;
  background:var(--lp-hi);color:var(--lp-on-hi);
  font:700 13.5px/1 var(--lp-head);letter-spacing:-.005em;cursor:pointer;}
.jvi-cb svg{width:13px;height:13px;flex:none;fill:currentColor;}
.jvi-cb:hover{background:color-mix(in srgb,var(--lp-hi) 84%,var(--lp-ink));}
.jvi-cb:focus-visible{outline:2px solid var(--lp-hi-ink);outline-offset:3px;}
/* the full stop on its way to them and back: the play button's look */
.jvi-cdot{position:absolute;border-radius:50%;background:var(--lp-hi);
  color:var(--lp-on-hi);pointer-events:none;}
.jvi-cdot svg{position:absolute;inset:0;width:100%;height:100%;
  fill:currentColor;}
/* held by Stop: a tile's ring holds where it is too */
body.jv-site #welcome.jvi-held .wk-door.jvi-hit .wk-ic{
  animation-play-state:paused;}
/* the door an arrow lands on: a ring of amber spreads from its mark */
body.jv-site .wk-door.jvi-hit .wk-ic{animation:jvi-ring 1s ease-out;}
@keyframes jvi-ring{
  0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--lp-hi) 65%,transparent);}
  100%{box-shadow:0 0 0 18px color-mix(in srgb,var(--lp-hi) 0%,transparent);}}
body.jv-site .welcome-jump{grid-area:jump;justify-self:center;
  margin:clamp(30px,5vh,50px) 0 0;}
/* the doors and a side's buttons, in the page's colours */
body.jv-site .wk-door{color:var(--lp-ink);
  font-family:var(--lp-head);}
body.jv-site .wj-intro{color:var(--lp-ink-3);}
body.jv-site .wk-door:focus-visible{outline-color:var(--lp-hi-ink);}
body.jv-site .wk-door[aria-pressed="false"]{color:var(--lp-ink-2);}
body.jv-site .wk-door[aria-pressed="false"]:hover{color:var(--lp-ink);}
body.jv-site .wk-door[aria-pressed="true"] .wk-ic{color:var(--lp-hi-ink);}
body.jv-site .wk-door[aria-pressed="true"]::after{background:var(--lp-hi);}
body.jv-site .wj-new{border-radius:8px;border-color:var(--lp-line);
  background:var(--lp-card);color:var(--lp-ink);
  font:600 14px/1.2 var(--lp-head);padding:9px 15px;}
body.jv-site .wj-new .bic{color:var(--lp-hi-ink);}
body.jv-site #welcome-new,body.jv-site #welcome-newlog,
body.jv-site #welcome-newstar,body.jv-site #welcome-newnotes,
body.jv-site #welcome-newfolder,body.jv-site #welcome-open,
body.jv-site #welcome-allnew{
  background:var(--lp-hi);border-color:var(--lp-hi);
  color:var(--lp-on-hi);}
body.jv-site #welcome-new .bic,body.jv-site #welcome-newlog .bic,
body.jv-site #welcome-newstar .bic,body.jv-site #welcome-newnotes .bic,
body.jv-site #welcome-newfolder .bic,body.jv-site #welcome-open .bic,
body.jv-site #welcome-allnew .bic{
  color:inherit;}
body.jv-site .wj-exmenu{background:var(--lp-card);border-color:var(--lp-line);
  border-radius:12px;}
body.jv-site .wj-exitem{font:600 14px/1.2 var(--lp-head);color:var(--lp-ink);}
body.jv-site .wj-exitem .bic{color:var(--lp-hi-ink);}
body.jv-site .wj-exitem:hover,body.jv-site .wj-exitem:focus-visible{
  background:var(--lp-raise);}
body.jv-site .wj-new:hover{border-color:var(--lp-ink-3);
  background:var(--lp-raise);color:var(--lp-ink);}
body.jv-site #welcome-new:hover,body.jv-site #welcome-newlog:hover,
body.jv-site #welcome-newstar:hover,body.jv-site #welcome-newnotes:hover,
body.jv-site #welcome-newfolder:hover,body.jv-site #welcome-open:hover{
  background:color-mix(in srgb,var(--lp-hi) 86%,#fff);
  border-color:color-mix(in srgb,var(--lp-hi) 86%,#fff);
  color:var(--lp-on-hi);}
/* a sentence under each part's first line */
body.jv-site .lp-free{margin:16px 0 0;
  font:400 clamp(16px,1.35vw,18px)/1.5 var(--lp-head);
  color:var(--lp-ink-3);}
body.jv-site .lp-down{grid-area:down;justify-self:center;
  margin-top:clamp(18px,4vh,40px);padding:9px 12px;border:0;
  border-radius:8px;background:none;color:var(--lp-ink-2);
  font:600 14.5px/1.2 var(--lp-head);cursor:pointer;
  text-decoration:underline 2px var(--lp-hi);text-underline-offset:6px;}
body.jv-site .lp-down:hover{color:var(--lp-ink);
  text-decoration-thickness:3px;}
body.jv-site .lp-down:focus-visible{outline:2px solid var(--lp-hi-ink);
  outline-offset:2px;}
@media (max-width:760px){
  /* the links, then the version, each centred over the wordmark: in the
     corner the version would sit on the links */
  body.jv-site .welcome-top{grid-template-columns:minmax(0,1fr);
    grid-template-areas:"links" "ver" "." "hero" "jump" "down" ".";
    grid-template-rows:auto auto minmax(22px,1fr) auto auto auto
      minmax(16px,1fr);
    column-gap:14px;padding-top:18px;}
  body.jv-site .welcome-links{font-size:13.5px;gap:4px 18px;}
  body.jv-site .lp-ver{grid-area:ver;justify-self:center;position:static;
    margin-top:10px;}
  .lp-logo{font-size:clamp(64px,19vw,96px);}
}
/* The feature trail: two parts, each a heading and a line, then one
   feature after another (what it answers, what Junoview does, and a
   player), the player left and right in turn on a wide window and under
   its text on a narrow one */
body.jv-site .welcome-more{max-width:1200px;margin:0 auto;
  border-top:1px solid var(--lp-line);
  padding:clamp(56px,8vw,104px) clamp(16px,4vw,48px) 28px;}
.lp-part{margin:0 0 clamp(40px,6vw,72px);}
.lp-part-head{max-width:780px;margin:0 0 clamp(44px,6vw,80px);}
.lp-h2{margin:0;font:800 clamp(34px,4.4vw,58px)/1.04 var(--lp-head);
  letter-spacing:-.03em;color:var(--lp-ink);text-wrap:balance;}
.lp-lede{margin:20px 0 0;max-width:36em;
  font:400 clamp(18px,1.7vw,22px)/1.5 var(--lp-head);
  color:var(--lp-ink-2);text-wrap:pretty;}
.lp-feat{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  gap:clamp(28px,5vw,72px);align-items:center;
  margin:0 0 clamp(64px,9vw,120px);}
/* the player is the wide column on both sides: with the columns left as
   they were, every player on the left was a third narrower than the one
   above it */
.lp-part>.lp-feat:nth-of-type(even){
  grid-template-columns:minmax(0,7fr) minmax(0,5fr);}
.lp-part>.lp-feat:nth-of-type(even)>.lp-copy{order:2;}
.lp-part>.lp-feat.lp-noshot{grid-template-columns:minmax(0,1fr);}
.lp-h3{margin:0 0 16px;font:750 clamp(26px,2.7vw,36px)/1.12 var(--lp-head);
  letter-spacing:-.022em;color:var(--lp-ink);text-wrap:balance;}
/* (.lp-copy is also the pictures pane's Copy button, deck.css) */
.lp-feat>.lp-copy{padding:0;}
.lp-copy p{margin:0 0 14px;max-width:31em;
  font:400 17px/1.62 var(--lp-head);color:var(--lp-ink-2);
  text-wrap:pretty;}
.lp-copy p:first-of-type{color:var(--lp-ink-3);}
.lp-copy b{font-weight:650;color:var(--lp-ink);}
@media (max-width:900px){
  .lp-feat,.lp-part>.lp-feat:nth-of-type(even){
    grid-template-columns:minmax(0,1fr);gap:24px;}
  .lp-part>.lp-feat:nth-of-type(even)>.lp-copy{order:0;}
}
/* A player: one still at a time in a frame shaped like its first still
   (--ar; a still of another shape is letterboxed on the screenshots' own
   dark), the step and its caption under it, then Back, Play or Pause and
   Next. On a phone the frame takes the first step's zoom shape (--ar-n)
   and each step shows the part of its still round its ring (app.js
   hpFit). The still and the ring sit where app.js puts them, in percent
   of the frame, so they scale with it and need no script on resize;
   everything outside the ring is dimmed a little. */
.hp{position:relative;margin:0;min-width:0;}
.hp.hp-none{display:none;}
.hp-frame{position:relative;overflow:hidden;border-radius:14px;
  aspect-ratio:var(--ar);
  background:var(--lp-shot);border:1px solid var(--lp-line);
  box-shadow:0 26px 60px -34px #000000b0;cursor:pointer;}
@media (max-width:760px){.hp-frame{aspect-ratio:var(--ar-n,var(--ar));}}
.hp-img{position:absolute;left:0;top:0;width:100%;height:100%;
  max-width:none;display:block;}
.hp-img:not([src]){visibility:hidden;}
/* the ring's line is drawn inside its box (app.js hpRingCss puts the box
   6 px out from what it rings, and never nearer the frame's edge than
   3 px), so no side of it is ever cut off by the frame */
.hp-ring{position:absolute;border-radius:6px;pointer-events:none;
  box-shadow:inset 0 0 0 3px var(--lp-hi),0 0 0 200vmax #05070a42;
  transition:left .38s ease,top .38s ease,right .38s ease,
    bottom .38s ease;}
.hp-ring[hidden]{display:none;}
.hp-cap{display:flex;align-items:baseline;gap:12px;margin:14px 2px 0;
  font:600 15.5px/1.4 var(--lp-head);color:var(--lp-ink);}
.hp-n{flex:none;min-width:3.1em;font:600 13px/1.4 var(--lp-head);
  font-variant-numeric:tabular-nums;color:var(--lp-ink-3);}
.hp-bar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0;}
.hp-b{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;
  border:1px solid var(--lp-line);border-radius:7px;
  background:var(--lp-card);color:var(--lp-ink);
  font:600 13.5px/1.2 var(--lp-head);cursor:pointer;white-space:nowrap;}
.hp-b:hover{border-color:var(--lp-ink-3);background:var(--lp-raise);}
.hp-b:focus-visible{outline:2px solid var(--lp-hi-ink);outline-offset:2px;}
.hp-b .bic{width:13px;height:13px;}
.hp-play>span{display:inline-flex;align-items:center;gap:6px;}
.hp-play>[hidden]{display:none;}
/* a step the reader took is read out from here (app.js show) */
.hp-say{position:absolute;width:1px;height:1px;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;}
@media (max-width:600px){.hp-cap{min-height:2.9em;}}
@media (prefers-reduced-motion:reduce){.hp-ring{transition:none;}}
/* And much more: the rest, in one plain list, no players */
.lp-more{margin:0 0 clamp(72px,10vw,128px);}
.lp-list{list-style:none;margin:30px 0 0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));
  column-gap:36px;}
.lp-list li{padding:15px 0;border-top:1px solid var(--lp-line);
  font:400 16px/1.45 var(--lp-head);color:var(--lp-ink-3);}
.lp-list b{display:block;font-weight:700;color:var(--lp-ink);
  margin-bottom:2px;}
.lp-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;
  padding:26px 0 6px;border-top:1px solid var(--lp-line);
  font:500 14px/1.4 var(--lp-head);color:var(--lp-ink-3);}
.lp-mark-sm{font-size:19px;}
.lp-foot-tag{margin-right:auto;}
/* a note at the foot of the window (Ready to use offline, a saved
   change) in the page's ink, not the app's navy */
body.jv-site.welcoming .doc-toast{background:#25221c;color:#f4f0e6;
  border-color:#3b362d;}
body.jv-site.welcoming.light .doc-toast{background:#141414;
  color:#f4f5f5;border-color:#141414;}
/* and so is a button's tooltip */
body.jv-site.welcoming .apptip{background:#25221c;color:#f4f0e6;
  border-color:#3b362d;}
body.jv-site.welcoming.light .apptip{background:#141414;color:#f4f5f5;
  border-color:#141414;}
.lp-foot a{color:var(--lp-ink-2);text-decoration:none;white-space:nowrap;}
.lp-foot a:hover{color:var(--lp-ink);text-decoration:underline;}

/* ---------- drag-drop hint ---------- */
.drophint{position:fixed;inset:10px;z-index:140;border:2px dashed var(--cyan);
  border-radius:14px;background:color-mix(in srgb,var(--accent) 9%,transparent);display:flex;align-items:center;
  justify-content:center;font-family:var(--mono);font-size:14px;
  color:var(--cyan);pointer-events:none;letter-spacing:.08em;}
.drophint[hidden]{display:none;}

/* ---------- notebook source chips on slides / panes ---------- */
.spane-nb,.slide-nb{font:600 11px var(--sans);color:var(--cyan);
  background:color-mix(in srgb,var(--accent) 12%,transparent);border-radius:4px;padding:2px 7px;flex:none;}
.spane-h{display:flex;align-items:center;gap:8px;margin:0 0 8px;flex:none;}
.spane-h .spane-t{margin:0;flex:1;min-width:0;}
.pane-nbtag{position:absolute;left:3px;bottom:2px;z-index:1;
  font:600 11px var(--sans);color:#5fc3d8;}

/* ---------- raw notebook view (transparency: cells as authored) ------ */
.rawview{display:none;max-width:920px;margin:0 auto;
  padding:30px 28px 30vh;}
.nbshell.raw .content{display:none;}
.nbshell.raw .rawview{display:block;}
#view-raw[aria-pressed="true"]{background:var(--cyan-deep);
  border-color:var(--cyan-deep);color:var(--on-accent-deep);}

/* ---------- tree view (the analysis graph as a full, expandable view) --- */
#view-tree[aria-pressed="true"]{background:var(--cyan-deep);
  border-color:var(--cyan-deep);color:var(--on-accent-deep);}
.treeview{display:none;padding:14px 20px 24vh;}
.nbshell.tree .content{display:none;}
.nbshell.tree .rawview{display:none;}
.nbshell.tree .treeview{display:block;}
/* sticks below the chrome, never under it: --chrome-h is the measured
   height of the real header, so this tracks a one- or two-row ribbon */
/* every control is on the ribbon, so the floating bar itself is gone:
   nothing hovers over the canvas or hides under the chrome. The rule is
   kept for the title and hidden-note styling. */
.tree-toolbar{display:none;
  position:sticky;top:calc(var(--chrome-h) + 6px);z-index:3;
  flex-wrap:wrap;
  align-items:center;gap:8px;padding:8px 2px 12px;margin-bottom:6px;
  background:linear-gradient(var(--paper-2) 72%,transparent);}
.tree-toolbar .tt-title{font:600 11.5px var(--sans);color:var(--ink-3);
  margin-right:auto;}
.tt-btn{font-family:var(--sans);font-size:12px;letter-spacing:0;
  border:1px solid var(--line);background:var(--paper);color:var(--ink-2);
  padding:5px 10px;border-radius:var(--rad);cursor:pointer;
  transition:color .15s,background-color .15s,border-color .15s,
    box-shadow .15s,opacity .15s;}
.tt-btn:hover{border-color:var(--cyan);color:var(--ink);}
.tt-hidden-note{font-family:var(--mono);font-size:10.5px;color:var(--amber);
  display:none;align-items:center;gap:6px;}
.tree-canvas.has-hidden ~ .tt-hidden-note,
.tree-toolbar .tt-hidden-note.show{display:inline-flex;}
.tree-scroll{overflow:auto;position:relative;
  border:1px solid var(--line);border-radius:12px;background:
  radial-gradient(circle at 1px 1px,var(--line) 1px,transparent 0) 0 0/22px 22px,
  var(--paper);}
.tree-canvas{position:relative;min-width:100%;width:max-content;
  padding:26px 26px 40px;}
.tree-edges{position:absolute;top:0;left:0;
  pointer-events:none;overflow:visible;z-index:0;}
/* branches are tinted per edge by the child's type (set inline in
   treeLayoutEdges); this is the fallback for any edge without one.
   !important so hover and dimming still beat the inline tint. */
.tree-edge{fill:none;stroke:var(--amber-soft);stroke-width:1.6;
  opacity:.75;}
.tree-edge.lit{stroke:var(--cyan)!important;stroke-width:2.4;opacity:1;}
.tree-edge.dim{opacity:.25;}
.tree-lane{position:relative;z-index:1;display:flex;flex-wrap:nowrap;
  justify-content:center;align-items:flex-start;gap:26px;
  margin:0 0 52px;}
.tree-lane:last-child{margin-bottom:0;}
.tree-node{--nc:#4a5564;position:relative;flex:0 0 auto;width:190px;
  background:color-mix(in srgb,var(--nc) 7%,var(--paper));
  border:1px solid var(--line);border-radius:10px;
  border-top:3px solid var(--nc);box-shadow:0 1px 3px #16202b12;
  transition:box-shadow .15s,border-color .15s;}
/* cell width presets (toolbar Width: S/M/L; default M) */
.tree-canvas.tw-m .tree-node{width:260px;}
.tree-canvas.tw-l .tree-node{width:340px;}
.tree-canvas.tw-m .tree-node.expanded{width:min(440px,86vw);}
.tree-canvas.tw-l .tree-node.expanded{width:min(540px,88vw);}
.tree-canvas .tree-node.tn-off{width:auto;}
.tree-node.active{border-color:var(--cyan);box-shadow:0 3px 14px color-mix(in srgb,var(--accent) 20%,transparent);}
.tree-node-head .tn-title{overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;min-width:0;}
.tree-node-head{display:flex;align-items:center;gap:7px;padding:9px 9px 9px 11px;
  cursor:pointer;}
.tn-dot{width:8px;height:8px;border-radius:50%;background:var(--nc);
  flex:none;}
.tn-title{flex:1;min-width:0;font-size:12.5px;font-weight:600;
  color:var(--ink);line-height:1.3;overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.tn-kind{font:700 11px var(--sans);color:var(--nc);}
.tn-btn{flex:none;background:none;border:none;color:var(--ink-3);
  cursor:pointer;font-size:13px;line-height:1;padding:2px 4px;border-radius:5px;
  opacity:.55;transition:opacity .12s,background .12s,transform .15s;}
.tn-btn:hover{opacity:1;background:var(--paper-2);}
.tree-node.expanded .tn-chev{transform:rotate(90deg);}
/* an expanded node is a real card — give it room to breathe */
.tree-node.expanded{width:min(380px,84vw);}
.tree-node-body{display:none;border-top:1px solid var(--line);
  max-height:360px;overflow:auto;padding:10px 12px;}
.tree-node.expanded .tree-node-body{display:block;}
.tree-node-body .card{margin:0;border:none;box-shadow:none;opacity:1;
  transform:none;padding:0;}
.tree-node-body .figframe img{max-height:260px;}
/* hidden node -> slim dimmed chip (restore from its eye) */
.tree-node.tn-off{width:auto;border-top-color:var(--line);opacity:.6;}
.tree-node.tn-off .tn-title{-webkit-line-clamp:1;font-weight:500;
  color:var(--ink-3);font-size:11px;}
.tree-node.tn-off .tree-node-body,
.tree-node.tn-off .tn-chev{display:none;}
.tree-empty{padding:40px 10px;text-align:center;color:var(--ink-3);
  font-size:13px;}
/* per-cell resize corner (shows on hover) */
.tn-resize{position:absolute;right:2px;bottom:2px;width:13px;height:13px;
  cursor:nwse-resize;opacity:0;border-right:2px solid var(--ink-3);
  border-bottom:2px solid var(--ink-3);border-radius:0 0 4px 0;
  transition:opacity .12s;}
.tree-node:hover .tn-resize{opacity:.6;}
.tn-resize:hover{opacity:1;}
.tree-node.tn-off .tn-resize{display:none;}
/* dark theme: the tree canvas + nodes follow the app (the light-variable
   styling above is the light theme; dark is explicit overrides) */
body:not(.light) .tree-toolbar{
  background:linear-gradient(var(--chrome-0,#0b141d) 72%,transparent);}
body:not(.light) .tree-toolbar .tt-title{color:#7e93a4;}
body:not(.light) .tt-btn{background:var(--chrome-3,#101c28);border-color:#ffffff22;
  color:#cdd9e3;}
body:not(.light) .tt-btn:hover{border-color:var(--cyan);color:#fff;}
body:not(.light) .tree-scroll{border-color:#ffffff1a;background:
  radial-gradient(circle at 1px 1px,#ffffff12 1px,transparent 0)
  0 0/22px 22px,var(--chrome-1,#0e1926);}
body:not(.light) .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;}
body:not(.light) .tree-node.active{border-color:var(--cyan);
  box-shadow:0 3px 14px color-mix(in srgb,var(--accent) 30%,transparent);}
body:not(.light) .tn-title{color:#e6edf3;}
body:not(.light) .tn-btn{color:#8ba0b2;}
body:not(.light) .tn-resize{border-color:#8ba0b2;}
body:not(.light) .tn-btn:hover{background:#ffffff14;}
body:not(.light) .tree-node-body{border-top-color:#ffffff14;}
body:not(.light) .tree-node.tn-off{border-top-color:#ffffff1c;}
body:not(.light) .tree-node.tn-off .tn-title{color:#7e93a4;}
body:not(.light) .tree-empty{color:#7e93a4;}

/* ---- A repository as one tree ----
   The repository tab's Tree view is drawn on the same .tree-scroll /
   .tree-canvas a notebook's Tree uses, so the ribbon's zoom and Width act
   on it: folders as an outline joined by branch lines, each notebook a
   node (dashed until loaded) and, under a loaded one, its cell map in a
   block. Width S/M/L sizes the notebook nodes as it sizes the cells. */
.rtv-root{display:flex;align-items:center;gap:7px;font-size:14px;
  font-weight:650;color:var(--ink);padding:2px 0 6px;}
.rtv-root .rtv-name{color:inherit;text-decoration:none;}
.rtv-root a.rtv-name:hover{text-decoration:underline;}
.rtv-ic{display:inline-flex;flex:none;}
.rtv-ic .bic{width:14px;height:14px;opacity:.8;}
.rtv-n{flex:none;font-family:var(--mono);font-size:10.5px;color:var(--ink-3);}
.rtv-dot{flex:none;width:6px;height:6px;border-radius:50%;
  background:var(--accent);}
/* the branches: each row hangs off its folder's line by a short tick,
   and the line stops at the last row of the folder */
.rtv-kids{margin-left:7px;}
.rtv-item{position:relative;padding-left:20px;}
.rtv-item::before{content:'';position:absolute;left:0;top:0;bottom:0;
  border-left:1px solid var(--line);}
.rtv-item::after{content:'';position:absolute;left:0;top:17px;width:15px;
  border-top:1px solid var(--line);}
.rtv-item:last-child::before{bottom:auto;height:17px;}
.rtv-file::after{top:28px;}
.rtv-file:last-child::before{height:28px;}
.rtv-dir{display:flex;align-items:center;gap:6px;min-height:34px;
  padding:3px 10px 3px 4px;border:none;border-radius:7px;background:none;
  color:var(--ink-2);font:inherit;font-size:13px;text-align:left;
  cursor:pointer;}
.rtv-dir:hover{background:var(--surface-hover);color:var(--ink);}
.rtv-chev{width:10px;flex:none;font-size:9px;opacity:.6;text-align:center;}
/* a notebook: a node like a cell's, dashed while it is not loaded */
.rtv-node{display:flex;align-items:center;gap:8px;padding:5px 0;}
.rtv-nb{display:flex;align-items:center;gap:8px;width:300px;
  padding:7px 11px 7px 8px;border:1px dashed
  color-mix(in srgb,var(--ink-3) 60%,transparent);border-radius:10px;
  background:transparent;color:var(--ink);font:inherit;text-align:left;
  cursor:pointer;transition:border-color .15s,background-color .15s;}
.tree-canvas.tw-s .rtv-nb{width:240px;}
.tree-canvas.tw-l .rtv-nb{width:380px;}
.rtv-nb:hover{border-color:var(--cyan);}
.rtv-txt{display:flex;flex-direction:column;flex:1;min-width:0;gap:2px;}
.rtv-txt .rtv-name{font-size:12.5px;font-weight:600;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.rtv-sub{display:flex;align-items:center;gap:6px;min-width:0;
  font-family:var(--mono);font-size:10px;color:var(--ink-3);
  white-space:nowrap;overflow:hidden;}
.rtv-badge{flex:none;font-size:9.5px;letter-spacing:.04em;padding:0 5px;
  border-radius:7px;border:1px solid currentColor;line-height:14px;}
.rtv-badge.new{color:var(--accent);}
.rtv-badge.changed{color:var(--amber);}
.rtv-node.is-loaded .rtv-nb{border-style:solid;border-color:var(--line);
  border-top:3px solid var(--cyan);
  background:color-mix(in srgb,var(--cyan) 7%,var(--paper));}
.rtv-node.is-busy .rtv-nb{border-style:solid;border-color:var(--cyan);
  animation:rp-busy 1s ease-in-out infinite alternate;}
.rtv-node.is-err .rtv-nb{border-color:var(--amber);}
.rtv-node .rtv-go{display:inline-flex;align-items:center;gap:4px;
  font-family:var(--sans);font-size:11.5px;padding:3px 8px;
  white-space:nowrap;}
.rtv-node .rtv-go[hidden]{display:none;}
.rtv-node .rtv-go .bic{width:12px;height:12px;}
/* its cells: the Tree's lanes and branches, in a block of their own */
.rtv-map{position:relative;width:max-content;min-width:280px;
  margin:2px 0 14px;padding:22px 24px 26px;border:1px solid var(--line);
  border-radius:12px;background:color-mix(in srgb,var(--paper) 72%,
  transparent);}
.rtv-map[hidden]{display:none;}
body:not(.light) .rtv-n,body:not(.light) .rtv-sub{color:#7e93a4;}
body:not(.light) .rtv-root,body:not(.light) .rtv-nb{color:#e6edf3;}
body:not(.light) .rtv-dir{color:#cdd9e3;}
body:not(.light) .rtv-dir:hover{background:#ffffff10;color:#fff;}
body:not(.light) .rtv-item::before,
body:not(.light) .rtv-item::after{border-color:#ffffff24;}
body:not(.light) .rtv-nb{border-color:#ffffff3a;}
body:not(.light) .rtv-node.is-loaded .rtv-nb{border-color:#ffffff1c;
  border-top-color:var(--cyan);
  background:color-mix(in srgb,var(--cyan) 12%,var(--chrome-3,#101c28));}
body:not(.light) .rtv-map{border-color:#ffffff1a;
  background:color-mix(in srgb,var(--chrome-1,#0e1926) 80%,transparent);}

/* ---- A repository's tab ----
   The repository on a page of its own, in the column a notebook is read
   in: a header (its name linking to it on GitHub, its pin and Refresh; how
   it was listed; the three views and Find) over Folders or Notebooks in
   readable rows, or over the Tree above, which gets the page's width as a
   wide figure does. Colours are the page's own tokens, so every scheme has
   them. */
.nbshell.rtv-tab{grid-template-columns:1fr;}
.nbshell.rtv-tab>.rail,.nbshell.rtv-tab .stage>.content{display:none;}
.rpv-top{max-width:920px;margin:0 auto;padding:26px 28px 0;}
.rpv-title{display:flex;align-items:center;gap:8px;min-width:0;
  font-family:var(--sans);font-size:20px;line-height:1.3;color:var(--ink);}
.rpv-ic{display:inline-flex;flex:none;color:var(--accent);}
.rpv-ic .bic{width:20px;height:20px;}
.rpv-owner{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;color:var(--ink-3);}
/* narrow, the repository's own name is the one kept whole */
@media (max-width:600px){.rpv-owner{display:none;}}
.rpv-name{min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-weight:650;color:inherit;text-decoration:none;}
a.rpv-name:hover{text-decoration:underline;text-underline-offset:3px;}
.rpv-pin{display:inline-flex;flex:none;}
.rpv-pin .recent-pin{width:26px;height:26px;opacity:.6;}
.rpv-pin .recent-pin .bic{width:14px;height:14px;}
.rpv-pin .recent-pin.on{opacity:1;}
.rpv-spring{flex:1 1 auto;}
.rpv-meta{margin:5px 0 0 28px;font-family:var(--mono);font-size:11.5px;
  line-height:1.5;color:var(--ink-3);overflow-wrap:anywhere;}
/* the buttons are the ribbon's, at a page's size; two classes, so they
   outweigh .dbtn, whose sheet comes later */
.rpv .rp-btn{display:inline-flex;align-items:center;gap:6px;flex:none;
  font-family:var(--sans);font-size:12.5px;padding:5px 11px;
  white-space:nowrap;border-color:var(--btn-border);
  background:var(--btn-bg);color:var(--btn-ink);}
.rpv .rp-btn .bic{width:13px;height:13px;}
.rpv .rp-btn:hover:not(:disabled){border-color:var(--accent);}
.rpv .rp-btn:disabled{opacity:.5;cursor:default;}
.rpv-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-top:18px;padding-bottom:12px;border-bottom:1px solid var(--line);}
/* the three views: one control, the one showing lifted out of it */
.rpv-views{display:inline-flex;flex:none;gap:2px;padding:2px;
  border:1px solid var(--line);border-radius:9px;background:var(--paper-2);}
.rpv .rpv-vw{border:1px solid transparent;border-radius:7px;
  background:transparent;color:var(--ink-2);padding:4px 12px;}
.rpv .rpv-vw:hover:not(:disabled){border-color:transparent;
  background:var(--surface-hover);color:var(--ink);}
.rpv .rpv-vw[aria-pressed="true"]{background:var(--paper);color:var(--ink);
  font-weight:600;border-color:var(--line);
  box-shadow:0 1px 2px var(--shadow);}
.rpv .rpv-vw[aria-pressed="true"] .bic{color:var(--accent);}
.rpv .rpv-find{flex:0 1 280px;min-width:150px;margin-left:auto;
  font-size:12.5px;padding:6px 10px;}
.rpv .rpv-find[hidden]{display:none;}
.rpv .rp-all{font-size:12px;color:var(--ink-2);}
.rpv .rp-all[hidden]{display:none;}
.rpv .rp-load{margin-top:-1px;}
.rpv .rp-note{padding:10px 0 0;border:none;font-size:12.5px;
  color:var(--ink-2);}
.rpv .rp-note.err{color:var(--amber);}
/* the repository's own Close, and its group's line */
.rpv-grp{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin:12px 0 0 28px;font-size:12.5px;color:var(--ink-2);}
.rpv-grp[hidden]{display:none;}
.rpv-grp-solo{display:inline-flex;align-items:center;gap:5px;cursor:pointer;}
/* Favourites at the top; a star and a tick box on each file's row; the bar
   that opens the ticked ones */
.rp-sec{display:flex;align-items:center;gap:6px;margin:14px 0 4px;
  padding:0 10px;font:600 11px var(--sans);letter-spacing:0;
  text-transform:none;color:var(--ink-3);}
.rp-sec:first-child{margin-top:4px;}
.rp-sec .bic{width:12px;height:12px;}
.rp-sec-fav .bic{color:var(--amber);}
.rp-favhint{display:flex;align-items:center;gap:6px;margin:4px 0 6px;
  padding:6px 10px;font-size:12px;color:var(--ink-3);}
.rp-favhint .bic{width:12px;height:12px;flex:none;}
.rp-fav{display:inline-flex;flex:none;padding:3px;border-radius:5px;
  opacity:.28;cursor:pointer;color:var(--ink-3);}
.rp-fav .bic{width:13px;height:13px;}
.rp-row:hover .rp-fav{opacity:.7;}
.rp-fav:hover{opacity:1!important;background:var(--surface-hover);}
.rp-fav.on{opacity:1;color:var(--amber);}
.rp-fav.on .bic{fill:currentColor;}
.rp-tick{display:inline-flex;align-items:center;justify-content:center;
  flex:none;width:15px;height:15px;border-radius:4px;cursor:pointer;
  border:1.5px solid var(--ink-3);opacity:.35;color:transparent;}
.rp-tick .bic{width:11px;height:11px;}
.rp-row:hover .rp-tick,.rp-picking .rp-tick{opacity:.85;}
.rp-tick.on{opacity:1;background:var(--accent);border-color:var(--accent);
  color:var(--paper);}
.rpv-body .rp-file.is-picked{background:color-mix(in srgb,var(--accent) 10%,
  transparent);}
.rp-sz{flex:none;font-family:var(--mono);font-size:10.5px;color:var(--ink-3);}
.rp-selbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-top:10px;padding:8px 10px;border-radius:9px;
  border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);
  background:color-mix(in srgb,var(--accent) 9%,transparent);}
.rp-selbar[hidden]{display:none;}
.rp-sel-n{font-weight:600;font-size:12.5px;color:var(--ink);}
.rpv .rp-btn.rp-sel-open{background:var(--accent);border-color:var(--accent);
  color:var(--paper);}
/* Folders and Notebooks: the rows */
.rpv-body{max-width:920px;margin:0 auto;padding:8px 28px 30vh;}
.nbshell.rtv-tab.tree .rpv-body{display:none;}
.rpv-body .rp-row{min-height:34px;gap:8px;padding-top:4px;
  padding-bottom:4px;border-radius:7px;font-size:13.5px;color:var(--ink);}
.rpv-body .rp-row:hover{background:var(--surface-hover);color:var(--ink);}
.rpv-body .rp-row:focus-visible{outline:2px solid var(--cyan);
  outline-offset:-2px;}
.rpv-body .rp-chev{width:12px;font-size:10px;}
.rpv-body .rp-ic .bic{width:15px;height:15px;opacity:.85;}
.rpv-body .rp-dir .nm{color:var(--ink);font-weight:500;}
.rpv-body .rp-dir .rp-ic{color:var(--ink-3);}
.rpv-body .rp-file .rp-ic{color:var(--accent);}
.rpv-body .rp-file.rp-dim .rp-ic{color:inherit;}
.rpv-body .rp-n,.rpv-body .rp-in{font-size:11px;color:var(--ink-3);}
.rpv-body .rp-in{max-width:45%;}
/* open in a tab: its name in bold and a pill that says so */
.rp-open{display:none;}
.rpv-body .rp-file.is-open .nm{font-weight:600;}
.rpv-body .rp-file.is-open .rp-open{display:inline-block;flex:none;
  font-family:var(--mono);font-size:9.5px;letter-spacing:.04em;
  line-height:14px;padding:0 7px;border-radius:9px;color:var(--accent);
  border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);}
/* the file it was opened to show, lit for a moment */
.rpv-body .rp-file.is-shown{background:color-mix(in srgb,var(--accent) 18%,
  transparent);}
.rpv-empty{padding:28px 10px;font-size:13px;color:var(--ink-3);}
/* Tree: the page's width, its line of what is loaded over it */
.treeview.rtv{padding:12px 28px 24vh;}
.rtv-hint{max-width:864px;margin:0 auto 12px;font-size:12.5px;
  color:var(--ink-3);}
/* the ribbon on a repository's tab: its tab says Repository; Keep (a
   notebook's filters) is not there; Width is the tree's alone */
.ab-tab .abt-repo{display:none;}
body.repo-tab .ab-tab .abt-doc,body.repo-tab .ab-tab .abt-tree{display:none;}
body.repo-tab .ab-tab .abt-repo{display:inline;}
body.repo-tab #ab-saveview,body.repo-tab #ab-images{display:none!important;}
body.repo-tab:not(.repo-tree) #tree-width-grp{display:none!important;}
/* ...and View is what a repository has: no outline, variables, raw or
   pages of a notebook's -- Repository opens another one */
body.repo-tab.repo-tree #doc-find{display:none!important;}
body.repo-tab #menubtn,body.repo-tab #vars-btn,body.repo-tab #ab-look,
body.repo-tab #ab-pages{display:none!important;}
body.repo-tab:not(.repo-tree) #ab-size{display:none!important;}
/* Notebooks has no folders to open or close: the two say so, faded */
body.repo-tab #tree-fold-grp .toggle:disabled{opacity:.45;cursor:default;}
/* Open a repository: the Open dialog's box and rows, a paste and a list */
.rpd-box{height:auto;max-height:min(620px,86vh);}
.rpd-h{flex:1;display:inline-flex;align-items:center;gap:8px;min-width:0;
  font-family:var(--sans);font-size:14px;font-weight:600;
  color:var(--chrome-ink);}
.rpd-h .bic{width:16px;height:16px;flex:none;color:var(--accent);}
.rpd-top{flex:none;padding:14px 14px 12px;
  border-bottom:1px solid var(--chrome-line);}
#rpd-input{flex:1;min-width:0;box-sizing:border-box;
  font-family:var(--mono);font-size:12px;
  border:1px solid var(--border-strong);border-radius:6px;padding:8px 10px;
  background:var(--input-bg);color:var(--chrome-ink);}
#rpd-input:focus{outline:none;border-color:var(--cyan);}
#rpd-go{flex:none;display:inline-flex;align-items:center;gap:6px;
  font-weight:600;padding:8px 16px;border-color:var(--accent);
  color:var(--accent);background:var(--btn-bg);}
#rpd-go:hover{background:var(--accent-deep);color:var(--on-accent-deep);}
.rpd-sub{margin-top:8px;font-size:12px;line-height:1.45;
  color:var(--chrome-ink-2);}
.rpd-err{margin-top:8px;font-size:12px;line-height:1.45;color:var(--amber);}
.rpd-err[hidden],.rpd-here[hidden]{display:none;}
.rpd-here{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;}
.rpd-here .rp-btn{display:inline-flex;align-items:center;gap:5px;
  font-family:var(--sans);font-size:12px;padding:4px 10px;
  border-color:var(--btn-border);background:var(--btn-bg);
  color:var(--btn-ink);}
.rpd-here .rp-btn .bic{width:12px;height:12px;}
.rpd-here .rp-btn:hover{border-color:var(--accent);color:var(--chrome-ink);}
.rpd-list{min-height:0;}

/* ---------- present (full-screen document) mode -------------------- */
body.doc-presenting{--presrail-w:0px;padding-top:0;padding-left:0;
  overflow:hidden;}
body.doc-presenting .apptop,
body.doc-presenting .presrail,
body.doc-presenting .presrail-show{display:none!important;}
/* Present is meaningless while presenting, and renderFilterExtras (which
   hides it) is not run again when presenting starts */
body.doc-presenting #doc-present{display:none;}
body.doc-presenting .docs{position:fixed;inset:0;z-index:82;overflow:auto;
  background:var(--paper-2);}
body.doc-presenting .shell{grid-template-columns:1fr;display:block;}
body.doc-presenting .nbshell .rail{display:none;}
/* the sidebar can slide back in while presenting (⚌ Sections) */
body.doc-presenting.present-rail .nbshell .rail{display:block;
  position:fixed;left:0;top:0;bottom:0;width:290px;z-index:84;
  /* height:auto matters. The docked rail is sized `100vh - --chrome-h` so
     it clears the app ribbon; presenting hides that ribbon and pins the
     rail top:0/bottom:0, but an explicit height beats `bottom`, so the
     rail kept stopping one ribbon-height short of the floor. */
  height:auto;
  overflow-y:auto;background:var(--chrome);
  border-right:1px solid var(--chrome-line);}
body.doc-presenting.present-rail .content{margin-left:290px;}
body.doc-presenting .content{max-width:1000px;margin:0 auto;
  padding:56px 30px 30vh;}
body.doc-presenting .treeview{padding:56px 26px 24vh;height:100vh;}
/* ---- presenting controls: a docked bar, top or right ---------------
   Docked top it is the app bar, verbatim: same paddings, same groups,
   same two rows. Docked right the same groups turn into stacked rows.
   The document is inset by the bar, so nothing floats over content. */
.present-bar{position:fixed;z-index:140;display:flex;
  background:var(--chrome);border-color:#ffffff1f;}
.present-bar[hidden]{display:none!important;}
.pb-tools{display:flex;align-items:flex-start;}
.pb-own{display:flex;align-items:flex-start;}
/* --- docked across the TOP: identical to the app bar --- */
body.pbpos-top .present-bar{top:0;left:0;right:0;
  align-items:flex-start;gap:8px;padding:11px 16px;
  border-bottom:1px solid #ffffff1f;
  transition:transform .18s ease;}
/* docked top the bar is the ribbon: the same labelled sections, aligned
   the same way, so nothing has to re-learn its layout.
   display:contents is the whole trick. As flex ITEMS, .pb-tools and
   .pb-own were each shrunk below their content width (flex-shrink:1) and
   so each wrapped inside itself — the bar grew to three ragged rows while
   still having room to spare. With their boxes removed, the sections and
   the bar's own buttons share one wrapping flow, exactly like .appbar. */
body.pbpos-top .present-bar{align-items:stretch;flex-wrap:wrap;gap:6px;
  /* keeps the wrap flow clear of the pinned Exit / fold corner; the real
     width is measured in measurePb(), this is the pre-measurement guess */
  padding-right:var(--pb-corner,232px);}
body.pbpos-top .pb-tools,body.pbpos-top .pb-own{display:contents;}
/* Outline sits at the left edge, because the outline it opens is down the
   left: a control that lives at the opposite end of the bar from the thing
   it moves reads as belonging to something else. */
body.pbpos-top .pb-own #pb-rail{order:-1;margin-right:6px;}
/* an auto margin on the first of the remaining buttons right-aligns them
   without a growing spacer (a spacer would fill line 1 and force a wrap) */
body.pbpos-top .pb-own #pb-move{margin-left:auto;}
/* never shrink these below their labels. They are flex items of the bar
   (their wrapper is display:contents), so without this they were squeezed
   narrower than their text and "Outline", "Exit presentation" and
   "Auto-hide" overprinted each other in the top-right corner. */
body.pbpos-top .pb-own .toggle{flex:none;}
body.pbpos-right .pb-tools,body.pbpos-right .pb-own{display:contents;}
body.pbpos-top .present-bar .pb-collapse{margin-left:6px;}
body.doc-presenting.pbpos-top .docs{top:var(--pbh,64px);}
body.pbpos-top.pb-folded .present-bar{transform:translateY(-101%);}
/* --- docked down the right: the groups become rows --- */
body.pbpos-right .present-bar{top:0;right:0;bottom:0;width:var(--pbw,232px);
  flex-direction:column;align-items:stretch;gap:8px;padding:12px;
  overflow-y:auto;border-left:1px solid #ffffff1f;
  transition:transform .18s ease;}
body.pbpos-right .pb-tools{flex-direction:column;align-items:stretch;
  gap:8px;}
body.pbpos-right .pb-own{flex-direction:column;align-items:stretch;gap:6px;}
/* a two-row group reads as one row per control when it is this narrow */
body.pbpos-right .pb-tools .fgrp{width:100%;}
/* Never wrap a group's own row here: with width:100% on every button, a
   wrapping row put the -, the 100% and the + each on their own line and
   the size steppers exploded down the sidebar */
body.pbpos-right .pb-tools .fgrp-row{flex-wrap:nowrap;}
body.pbpos-right .present-bar .toggle{width:100%;justify-content:flex-start;}
/* a stepper stays one line: caption, then -, value, + sharing the width */
body.pbpos-right .present-bar .fgrp-h{align-items:center;gap:6px;}
body.pbpos-right .present-bar .fgrp-h .fgrp-cap{min-width:44px;}
body.pbpos-right .present-bar .fgrp-h .fgrp-row{flex:1;}
body.pbpos-right .present-bar .fgrp-row .toggle.fz-step{width:30px;
  flex:none;justify-content:center;}
body.pbpos-right .present-bar .fgrp-row .toggle.fz-val{flex:1;width:auto;
  justify-content:center;}
/* the labelled sections stack down the bar and keep their captions */
body.pbpos-right .present-bar .abgrp{width:100%;}
body.pbpos-right .present-bar .abgrp-row{flex:none;flex-wrap:wrap;}
body.pbpos-right .present-bar .abgrp-lab{text-align:left;}
body.pbpos-right .present-bar .btn-grp{width:100%;flex-wrap:wrap;}
body.pbpos-right .present-bar .vw-stack{flex:1;}
body.pbpos-right .present-bar .appbar-div{display:none;}
body.doc-presenting.pbpos-right .docs{right:var(--pbw,232px);}
body.pbpos-right.pb-folded .present-bar{transform:translateX(101%);}
body.pbpos-right.pb-folded .docs{right:0;}
body.pbpos-top.pb-folded .docs{top:0;}
/* Exit sits in the very top-right corner, out of the wrap flow, so a
   narrow window can never push the way out onto a second row */
body.pbpos-top .pb-exit{position:absolute;top:8px;right:48px;z-index:3;}
body.pbpos-right .pb-exit{order:-1;}
.pb-exit{border-color:color-mix(in srgb,var(--accent) 35%,transparent)!important;color:#eaf6fa!important;}
.pb-exit:hover{background:color-mix(in srgb,var(--accent) 15%,transparent)!important;}
/* The fold/unfold button: one control, always in the same place and
   always the same shape, whether the bar is showing or hidden. */
.pb-toggle{position:fixed;top:9px;right:10px;z-index:142;
  font-family:var(--mono);font-size:13px;line-height:1;
  border:1px solid #ffffff22;background:color-mix(in srgb,var(--chrome-2,#16273a) 93%,transparent);color:#cfe0ea;
  cursor:pointer;width:30px;height:30px;padding:0;
  border-radius:var(--rad);display:none;align-items:center;
  justify-content:center;box-shadow:0 4px 14px #00000055;}
.pb-toggle[hidden]{display:none!important;}
body.doc-presenting .pb-toggle{display:inline-flex;}
.pb-toggle:hover{color:#fff;border-color:var(--cyan);}
body.light .pb-toggle{background:var(--btn-bg);border-color:var(--btn-border);
  color:var(--ink-2);}
/* auto-hide (taskbar style): the bar sits off-screen and slides back the
   moment the pointer reaches that edge. The document keeps the full
   screen — the bar overlays on peek instead of pushing content around. */
body.pb-auto.doc-presenting.pbpos-top .docs{top:0;}
body.pb-auto.doc-presenting.pbpos-right .docs{right:0;}
body.pb-auto.pbpos-top:not(.pb-peek) .present-bar{
  transform:translateY(-101%);}
body.pb-auto.pbpos-right:not(.pb-peek) .present-bar{
  transform:translateX(101%);}
/* :not(.pb-folded) matters: without it this rule wins outright, so an
   explicit fold is invisible and the fold handle looks dead */
body.pb-auto.pb-peek:not(.pb-folded) .present-bar{transform:none!important;}
body.pbpos-top.pb-folded .present-bar{transform:translateY(-101%)!important;}
body.pbpos-right.pb-folded .present-bar{transform:translateX(101%)!important;}
.rawcell{position:relative;background:var(--paper);
  border:1px solid var(--line);border-radius:10px;
  padding:14px 16px 14px 16px;margin:12px 0;}
/* the raw view lays out the cells near the screen, as the formatted view
   does its cards (core.css); otherwise opening it lays out every cell's
   source and outputs at once. `auto` remembers each cell's real height
   once seen. Printing lays everything out. */
.rawview .rawcell{content-visibility:auto;contain-intrinsic-size:auto 160px;}
@media print{.rawview .rawcell{content-visibility:visible!important;
  contain-intrinsic-size:none!important;}}
/* while the window scrolls, a clear sheet over the notebook takes the
   pointer (app.js, reader #4): no hit-testing and no hover restyle at
   each step. Under the app's chrome (#apptop 90), the find bar, menus
   and dialogs, over everything in the feed (its own z-indexes are 20
   and under). */
.jv-scrollshield{position:fixed;inset:0;z-index:50;display:none;}
.jv-scrollshield.on{display:block;}
.rawtag{font:600 11.5px var(--sans);color:var(--ink-3);display:inline-block;
  margin-bottom:8px;}
.rawcell.code .rawtag{color:var(--cyan-deep);}
.rawcell pre.code{margin:0;}
.rawout{margin-top:10px;}
.rawmd{font-family:var(--serif);font-size:15px;line-height:1.65;
  color:var(--ink-2);}
.rawmd h2,.rawmd h3,.rawmd h4,.rawmd h5,.rawmd h6{font-family:var(--sans);
  color:var(--ink);margin:4px 0 8px;letter-spacing:-.01em;}
.rawmd h2{font-size:24px;}
.rawmd h3{font-size:19px;}
.rawmd h4{font-size:16px;}
.rawempty{color:var(--ink-3);text-align:center;padding:40px;}
/* a .rawph placeholder is filled from its card's DOM on first open; when
   the card copy cannot be found it says so instead of showing nothing */
.rawph-missing{color:var(--ink-3);font-style:italic;font-size:13px;
  border:1px dashed var(--line);border-radius:8px;padding:10px 12px;}

/* ---- the rail's single + New menu, and per-row delete ---- */
.pr-newwrap{position:relative;}
.pr-newmenu{position:absolute;left:8px;right:8px;z-index:140;
  background:var(--chrome-2,#16273a);border:1px solid #ffffff26;
  border-radius:9px;padding:5px;display:flex;flex-direction:column;
  gap:2px;box-shadow:0 12px 32px #0008;}
.pr-newmenu[hidden]{display:none;}
/* the slides chooser, opened from the ribbon. Fixed like .ckfilter-menu:
   the header is sticky, so a menu inside it paints behind the page. */
.pr-mi{background:none;border:1px solid transparent;border-radius:6px;
  padding:6px 10px;text-align:left;cursor:pointer;color:#c9d6e2;
  font-family:var(--sans);font-size:12px;}
.pr-mi:hover{background:color-mix(in srgb,var(--accent) 13%,transparent);
  border-color:color-mix(in srgb,var(--accent) 40%,transparent);
  color:var(--chrome-ink);}
/* the bin: invisible until the row is hovered or current, so the rail
   stays quiet; coral on hover because it deletes. A real <button>, so the
   UA button chrome is reset here. */
.pr-del{display:none;margin-left:auto;flex:none;padding:1px 5px;
  border-radius:5px;color:#8ba0b2;font-size:11px;
  background:none;border:0;cursor:pointer;line-height:1;
  font-family:inherit;}
.pr-item:hover .pr-del,.pr-item.current .pr-del{display:inline-block;}
/* in the one side list a deck's row keeps room for its X, as a notebook's
   row does: if the X appeared only on hover it would re-wrap the name and
   the row would grow under the pointer, moving every row below it */
.presrail .tabstrip .pr-item .pr-del{display:inline-block;opacity:0;}
.presrail .tabstrip .pr-item:is(:hover,:focus-within,.current,.editing)
  .pr-del{opacity:.75;}
.presrail .tabstrip .pr-item .pr-del:hover{opacity:1;}
.pr-del:hover{background:#ff6b5726;
  color:color-mix(in srgb,#ff6b57 40%,var(--chrome-ink));}
.deck-status.clickable{cursor:pointer;}
.deck-status.clickable:hover{outline:1px solid var(--accent);}

/* the document view's Variables pane: same shell as the editor panes,
   fixed to the window because the document scrolls under it */
.selpane.varspane{position:fixed;top:170px;right:14px;bottom:auto;
  height:min(62vh,560px);width:280px;z-index:220;}
.varspane .varpanel{padding:8px 10px;}
.var-chips{display:flex;flex-wrap:wrap;gap:4px;padding:6px 0 2px;}
/* the chips are a row of their own under the filter and the order switch.
   With all three on one line the 280px pane squeezed the filter field to
   an empty 18px box and stacked the chips in a column. */
.var-controls{flex-wrap:wrap;align-items:center;}
.var-controls .var-chips{order:3;flex:1 0 100%;padding-top:0;}
.var-chip{font-family:var(--mono);font-size:9.5px;letter-spacing:.04em;
  border:1px solid #ffffff2e;background:none;color:#7e93a4;
  border-radius:9px;padding:2px 8px;cursor:pointer;}
.var-chip.on{border-color:color-mix(in srgb,var(--accent) 60%,transparent);
  color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,
  transparent);}
.varrow.vg-out{display:none;}

/* the variables door, beside the sections hamburger: same square, its
   own mark, and a pressed state while the pane is open */
.vars-menubtn{font-family:var(--mono);font-size:12px;
  color:var(--btn-ink,#cdd9e3);margin-left:2px;}
.vars-menubtn[aria-pressed="true"]{
  background:color-mix(in srgb,var(--accent) 18%,transparent);
  border-color:color-mix(in srgb,var(--accent) 60%,transparent);}
body.light .vars-menubtn{color:var(--ink-2);}
/* the Repository button, beside Variables, with the repository mark in
   front. It opens the repository's tab, so it is never shown pressed */
.files-menubtn{color:var(--btn-ink,#cdd9e3);margin-left:2px;}
.files-menubtn .bic{width:13px;height:13px;vertical-align:-2px;}
body.light .files-menubtn{color:var(--ink-2);}

/* ---- The side pane ----
   Lists every presentation beside the slide editor. It shows only while
   the editor is open, on the `hidden` its menu entry (View >
   Presentations) sets, and the editor steps aside for it where the window
   is wide enough (body.files-open, --deck-left below). It sits under the
   editor's menus (z 100+); narrower than 900px it floats over the
   editor. */
:root{--files-w:300px;}
.filespane{position:fixed;left:var(--presrail-w,0px);top:0;bottom:0;
  width:min(var(--files-w),86vw);z-index:85;
  display:flex;flex-direction:column;
  background:var(--chrome-2);color:var(--chrome-ink);
  border-right:1px solid var(--chrome-line);
  box-shadow:8px 0 26px var(--shadow);}
.filespane[hidden],body:not(.slide-editing) .filespane,
body.doc-presenting .filespane{display:none;}
@media (min-width:1000px){
  .filespane{box-shadow:none;}
}
/* its title */
.fs-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:none;
  padding:8px 8px 8px 12px;border-bottom:1px solid var(--chrome-line);}
.fs-title{display:inline-flex;align-items:center;gap:7px;min-width:0;
  font-family:var(--sans);font-size:13px;font-weight:600;
  color:var(--chrome-ink);white-space:nowrap;}
.fs-title .bic{width:14px;height:14px;flex:none;color:var(--accent);}
.fs-head #filespane-close{margin-left:auto;flex:none;}
.fs-view{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;}
/* inside the pane, so they outweigh .dbtn (whose sheet comes later):
   the ribbon's sans words at a pane's size */
.filespane .rp-btn{font-family:var(--sans);font-size:11.5px;
  padding:3px 8px;white-space:nowrap;display:inline-flex;
  align-items:center;gap:4px;border-color:var(--btn-border);
  background:var(--btn-bg);color:var(--btn-ink);}
.filespane .rp-btn .bic{width:12px;height:12px;}
.filespane .rp-btn:hover:not(:disabled){border-color:var(--accent);
  color:var(--chrome-ink);}
.filespane .rp-btn.on{color:var(--accent);
  border-color:color-mix(in srgb,var(--accent) 55%,transparent);}
.filespane .rp-btn:disabled{opacity:.5;cursor:default;}
/* the rows, the presentations' and a repository's (sized up on its tab,
   below) */
.rp-load{height:2px;overflow:hidden;position:relative;flex:none;
  background:color-mix(in srgb,var(--accent) 13%,transparent);}
.rp-load[hidden]{display:none;}
.rp-load span{position:absolute;left:-40%;top:0;width:40%;height:100%;
  background:var(--cyan);animation:odlg-slide 1.1s ease-in-out infinite;}
.rp-find{flex:1;min-width:0;font:inherit;font-size:12px;
  padding:4px 8px;border-radius:6px;border:1px solid var(--border-strong);
  background:var(--input-bg);color:var(--chrome-ink);}
.rp-find:focus{outline:none;border-color:var(--cyan);}
.rp-all{font-size:11px;white-space:nowrap;display:flex;align-items:center;
  gap:4px;color:var(--chrome-ink-2);cursor:pointer;}
.rp-note{padding:8px 12px;font-size:12px;line-height:1.45;
  color:var(--chrome-ink-2);border-bottom:1px solid var(--chrome-line);}
.rp-note[hidden]{display:none;}
.rp-note.err{color:var(--amber);}
.rp-note .rp-btn{margin-left:6px;}
.rp-row{display:flex;align-items:center;gap:5px;width:100%;
  min-height:25px;padding:2px 8px;border:none;border-radius:5px;
  background:none;color:inherit;font:inherit;font-size:12.5px;
  text-align:left;cursor:pointer;}
.rp-row:hover{background:var(--surface-hover);color:var(--chrome-ink);}
.rp-row .nm{flex:1 1 auto;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.rp-chev{width:10px;flex:none;font-size:9px;opacity:.6;text-align:center;}
.rp-ic{display:inline-flex;flex:none;}
.rp-ic .bic{width:13px;height:13px;opacity:.75;}
.rp-dir .nm{color:var(--chrome-ink-2);}
.rp-n{font-family:var(--mono);font-size:10px;color:var(--chrome-ink-3);
  flex:none;}
.rp-in{font-family:var(--mono);font-size:10px;color:var(--chrome-ink-3);
  flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;direction:rtl;}
.rp-dot{width:6px;height:6px;border-radius:50%;flex:none;
  background:var(--accent);}
/* a soft badge, not a ring round every changed file */
.rp-badge{flex:none;font-family:var(--mono);font-size:9.5px;
  letter-spacing:.04em;padding:1px 7px;border-radius:9px;line-height:14px;
  background:color-mix(in srgb,currentColor 15%,transparent);}
.rp-badge.new{color:var(--accent);}
.rp-badge.changed{color:var(--amber);}
.rp-file.is-open .nm{font-weight:600;}
.rp-file.rp-dim{opacity:.5;}
.rp-file.busy{animation:rp-busy 1s ease-in-out infinite alternate;}
@keyframes rp-busy{to{background:color-mix(in srgb,var(--accent) 22%,
  transparent);}}
/* the drag edge is visible: a grabber at the pane's middle and a line
   along it, lit on hover. It sits just outside the pane so it never
   catches the list's scroll bar. */
.rp-grip{position:absolute;top:0;right:-9px;bottom:0;width:9px;
  cursor:col-resize;z-index:2;touch-action:none;}
.rp-grip::before{content:'';position:absolute;top:0;bottom:0;left:-1px;
  width:2px;background:transparent;transition:background .12s;}
.rp-grip>span{position:absolute;top:50%;left:1px;width:7px;height:34px;
  margin-top:-17px;border-radius:4px;background:var(--chrome-2);
  border:1px solid var(--chrome-line);
  background-image:radial-gradient(circle,var(--chrome-ink-3) 1px,
    transparent 1.3px);
  background-size:5px 5px;background-position:center;}
.rp-grip:hover::before,.rp-grip:focus-visible::before,
.filespane.gripping .rp-grip::before{background:var(--accent);}
.rp-grip:hover>span,.rp-grip:focus-visible>span,
.filespane.gripping .rp-grip>span{border-color:var(--accent);}
.rp-grip:focus-visible{outline:none;}
/* while it is dragged, nothing under the pointer is selected or hovered */
body.files-gripping{cursor:col-resize;user-select:none;}
body.files-gripping *{cursor:col-resize!important;}

/* the project's buttons wrap onto as many rows as the pane's width needs,
   so none is pushed off its right edge */
.pj-h{display:flex;flex-wrap:wrap;align-items:center;gap:5px;flex:none;
  padding:8px 10px 0;}
.pj-n{flex:none;font-family:var(--mono);font-size:10px;font-weight:400;
  color:var(--chrome-ink-3);}
.pj-tools{display:flex;align-items:center;gap:6px;flex:none;
  padding:7px 10px;border-bottom:1px solid var(--chrome-line);}
.pj-list{flex:1 1 auto;min-height:0;overflow-y:auto;padding:4px 4px 12px;}
.pj-row,.pj-dir{position:relative;}
.pj-row.is-open .nm{font-weight:600;}
.pj-row.is-cur{background:color-mix(in srgb,var(--accent) 16%,transparent);}
.pj-chev{cursor:pointer;opacity:.8;}
.pj-chev:hover{opacity:1;color:var(--chrome-ink);}
.pj-part .nm,.pj-member .nm{color:var(--chrome-ink-2);}
.pj-part.rp-dim,.pj-member.rp-dim{opacity:.55;}
.pj-tag{flex:none;font-family:var(--mono);font-size:9.5px;
  color:var(--chrome-ink-3);}
/* a row's actions, over its right end on hover or focus: by opacity, so
   the row never re-wraps under the pointer */
.pj-acts{position:absolute;right:4px;top:50%;transform:translateY(-50%);
  display:flex;gap:1px;padding:1px;border-radius:5px;
  background:var(--chrome-2);opacity:0;pointer-events:none;}
.rp-row:hover>.pj-acts,.rp-row:focus-within>.pj-acts{opacity:1;
  pointer-events:auto;}
.pj-act{display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;border-radius:4px;color:var(--chrome-ink-2);}
.pj-act:hover,.pj-act:focus-visible{background:var(--surface-hover);
  color:var(--chrome-ink);outline:none;}
.pj-act.on{color:var(--accent);}
.pj-act .bic{width:12px;height:12px;}
#filespane .dropping{outline:1px dashed var(--accent);outline-offset:-1px;
  background:color-mix(in srgb,var(--accent) 10%,transparent);}
/* a drag, driven by the pointer (57b-project-list.js) */
.pj-row.pj-dragging{opacity:.5;}
body.pj-drag-on,body.pj-drag-on *{cursor:grabbing!important;}
body.pj-drag-on #pj-pres-list{user-select:none;}
/* a row's menu: the folder it is in is ticked, Delete is in the warning
   colour */
.pj-menu .vw-opt{display:flex;align-items:center;gap:6px;}
.pj-menu .vw-opt.on::after{content:"\2713";margin-left:auto;
  color:var(--accent);}
.pj-menu .vw-opt.warn{color:var(--danger,#ff6b57);}
/* a row pointed at shows its slides beside the pane */
.pj-pv{position:fixed;z-index:105;width:214px;max-height:min(72vh,560px);
  overflow:hidden;padding:8px 10px;border-radius:10px;
  border:1px solid var(--chrome-line);background:var(--chrome-2);
  color:var(--chrome-ink);box-shadow:0 14px 40px var(--shadow);
  pointer-events:none;}
.pj-pv[hidden]{display:none;}
.pj-pv .pv-list{display:flex;flex-direction:column;gap:6px;margin-top:6px;}
.pj-pv .pv-head{min-width:0;}
.pj-pv .pv-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* the slide editor steps aside for the pane where the window gives the
   room (deck.css reads --deck-left), and the pane runs the editor's full
   height. The breakpoint is chosen so the pane does not cover the
   editor's File button and its tabs. */
body{--deck-left:var(--presrail-w);}
@media (min-width:1000px){
  body.files-open{--deck-left:calc(var(--presrail-w) + var(--files-w));}
}
@media (min-width:900px) and (max-width:999.98px){
  body.files-open.slide-editing{
    --deck-left:calc(var(--presrail-w) + var(--files-w));}
}
body.files-right.files-open,body.files-auto.files-open,
body.files-right.files-open.slide-editing,body.files-auto.files-open.slide-editing{
  --deck-left:var(--presrail-w);}
body.files-right .filespane{left:auto;right:0;border-right:0;
  border-left:1px solid var(--chrome-line);}
body.files-right .filespane .rp-grip{left:0;right:auto;}
body.files-auto .filespane{transform:translateX(-100%);
  transition:transform .18s ease;z-index:125;}
body.files-auto.files-right .filespane{transform:translateX(100%);}
body.files-auto.files-peek .filespane,
body.files-auto .filespane:focus-within{transform:none;}
@media (min-width:900px){
  body.files-right.files-open:not(.files-auto) .deck.editing{
    right:var(--files-w);}
}
/* narrower still, it floats over the editor -- under the editor's own
   bars (--deck-chrome-h, measured), never over File, the tabs or the
   ribbon */
@media (max-width:899.98px){
  body.slide-editing .filespane{z-index:101;top:var(--deck-chrome-h,0px);}
}

/* the rail tabs are gone; any straggler CSS stays harmless, but the
   varpanel must never render inside the rail again */
.rail .varpanel{display:none;}
#varspane-body .varpanel{display:block;}

/* .pr-btn sets display:flex, which beats the UA's [hidden] rule, so hidden
   buttons would still render. Every base rule that sets display needs its
   own [hidden] override. */
.pr-btn[hidden]{display:none!important;}
/* ---- Icon sizing where JS-built chrome uses a .bic svg ----
   An emoji was sized by its button's font-size; the svg needs its own
   size, and only the tight little buttons are clamped below the 14px
   default. */
.tab-b .bic{width:10px;height:10px;vertical-align:-1px;}
.tab-vermark .bic{width:12px;height:12px;vertical-align:-2px;}
.recent-ic .bic,.odlg-r-ic .bic{width:13px;height:13px;
  vertical-align:-3px;}
.odlg-i .ic .bic{vertical-align:-3px;}
.card-addnote .bic{width:13px;height:13px;}
.pr-del .bic{width:9px;height:9px;
  vertical-align:-1px;}
.tn-btn .bic{width:12px;height:12px;}
.rf-btn .bic{width:12px;height:12px;}
/* the rail's reveal tab points back into the page: the same
   panel-and-arrow icon as #pr-collapse, mirrored */
.presrail-show .bic{transform:scaleX(-1);}

/* the rail's filter: one field over both strips */
.pr-find{display:flex;align-items:center;gap:5px;margin:6px 4px 2px;
  padding:3px 6px;border:1px solid #ffffff24;border-radius:7px;
  background:#ffffff0d;}
.pr-find-ic{display:flex;color:#4e93a6;flex:none;}
.pr-find-ic svg{width:12px;height:12px;}
.pr-find-in{flex:1 1 auto;min-width:0;background:transparent;border:0;
  color:inherit;font:inherit;font-size:11px;padding:3px 0;outline:none;}
.pr-find-in::placeholder{color:#5d7a8c;}
.pr-find-in::-webkit-search-cancel-button{display:none;}
.pr-find-x{display:flex;align-items:center;justify-content:center;
  flex:none;background:transparent;border:0;color:var(--chrome-ink-2);cursor:pointer;
  padding:2px;border-radius:4px;}
.pr-find-x:hover{background:var(--surface-active);color:var(--chrome-ink);}
.pr-find-x svg{width:11px;height:11px;}
.pr-find-none{font:600 11px var(--sans);color:#6b8496;padding:8px 10px;}
/* hidden, not removed: clearing the field costs no re-render */
.pr-filtered{display:none !important;}
/* no room for a field at 46px, the rule .prb-full already follows */
body.presrail-min .pr-find,
body.presrail-min .pr-find-none{display:none;}

/* ---- The "?" button and its popover ----
   The one icon-only button allowed: a small round "?" right after what it
   explains, opening the longer text. It takes currentColor, so it suits a
   paper or chrome surface in every scheme; the popover uses the chrome
   tokens every scheme redefines. It lives here and not in deck.css so it
   works before the editor has loaded. button.jv-q, not .jv-q: menus and
   dialog heads style their buttons as rows, and this must stay a small
   circle wherever it sits. */
button.jv-q{flex:none;display:inline-flex;align-items:center;
  justify-content:center;box-sizing:border-box;width:18px;min-width:0;
  height:18px;min-height:0;margin:0 0 0 6px;padding:0;border-radius:50%;
  border:1px solid color-mix(in srgb,currentColor 45%,transparent);
  background:transparent;color:inherit;opacity:.75;cursor:help;
  font:600 11px/1 var(--sans);text-transform:none;letter-spacing:0;
  vertical-align:middle;position:relative;box-shadow:none;
  white-space:nowrap;}
button.jv-q::after{content:"";position:absolute;inset:-4px;}
button.jv-q:hover,button.jv-q[aria-expanded="true"]{opacity:1;
  border-color:var(--accent);background:transparent;}
button.jv-q:focus-visible{outline:2px solid var(--focus);
  outline-offset:1px;opacity:1;}
button.jv-q[hidden]{display:none;}
/* the halo paints over a plain button beside it: 6px on the right too */
.selpane-h>button.jv-q{margin-right:6px;}
/* muted hint hosts dimmed it under 3:1: the chrome's ink, undimmed */
.md-help>button.jv-q,.tk-h>button.jv-q,.ckf-empty>button.jv-q{
  color:var(--chrome-ink);opacity:1;}
.jv-qpop{position:fixed;z-index:2147483000;
  width:min(320px,calc(100vw - 16px));max-height:calc(100vh - 16px);
  overflow:auto;box-sizing:border-box;padding:10px 12px;margin:0;
  border-radius:var(--rad);background:var(--chrome-2);
  color:var(--chrome-ink);border:1px solid var(--chrome-line);
  box-shadow:0 8px 24px var(--shadow);font:400 12.5px/1.45 var(--sans);
  text-transform:none;letter-spacing:normal;white-space:normal;
  text-align:left;cursor:auto;}
.jv-qpop p{margin:0 0 6px;}
.jv-qpop p:last-child{margin:0;}
.jv-qpop a{color:var(--accent);}
/* the outline's colour key, cloned in from its template */
.jv-qpop .navkey{margin:0;padding:0;border:0;}
@media print{.jv-q,.jv-qpop{display:none!important;}}

/* ---- A project's files in the side pane, and its tabs ----
   While a project's file is on screen (body.proj-on, 57w-projects.js) the
   side pane is the project's tree, and the tabs along the top are its open
   files; a notebook's tab and a group's label stay at rest until Home. */
.fs-title-ic{display:inline-flex;}
.fs-title-w{min-width:0;overflow:hidden;text-overflow:ellipsis;}
.fs-title{max-width:calc(100% - 40px);}
.pjt-h{display:flex;align-items:center;flex-wrap:wrap;gap:5px;flex:none;
  padding:8px 10px 0;}
.pjt-h2{padding-top:5px;}
.pjt-h .jv-q{margin-left:auto;}
.pjt-list{position:relative;}
.pjt-row{position:relative;user-select:none;}
.pjt-row.is-open .nm{font-weight:600;}
.pjt-row.is-cur{background:color-mix(in srgb,var(--accent) 16%,transparent);}
.pjt-row.is-sel{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 60%,
  transparent);}
.pjt-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.pjt-dir .nm{color:var(--chrome-ink);font-weight:500;}
.pjt-gen .nm{font-style:italic;}
.pjt-made{flex:none;font-family:var(--mono);font-size:9.5px;
  color:var(--chrome-ink-3);}
.pjt-out .bic{width:11px;height:11px;opacity:.7;}
.pjt-list.dropping-top{outline:1px dashed var(--accent);outline-offset:-3px;}
/* a file dropped from the desktop onto a project's tree, File control or a
   picture's page goes into the project, so the "drop to open" sheet steps
   aside (projDropMark in 57y) */
body.pj-dropping #drophint{display:none!important;}
.pjt-row .pjt-stale{flex:none;width:7px;height:7px;border-radius:50%;
  margin-left:6px;background:var(--accent);}
body.pj-drag-on #pjt-list{user-select:none;}
body.proj-on #top-tabstrip>.tab:not(.top-pres-tab),
body.proj-on #top-tabstrip>.tg-head:not(.tg-project),
body.proj-on #tabstrip>.tab:not(.ptab):not(.top-pres-tab),
body.proj-on #tabstrip>.tg-head:not(.tg-project){display:none!important;}
/* a pane view set aside (the presentations' list while a project's files
   are listed, and back) is gone, not laid out under the other */
.filespane .fs-view[hidden]{display:none;}

.fs-footer{display:flex;gap:6px;padding:8px;border-top:1px solid var(--chrome-line);}

/* Group labels read as tabs; a repository has its own close action. */
.top-tabstrip .tg-head .tg-pill{height:30px;border-radius:6px;
  background:color-mix(in srgb,var(--tg) 22%,var(--chrome-2));
  color:var(--chrome-ink);}
body.light .top-tabstrip .tg-head .tg-pill{color:var(--chrome-ink);}
/* The project label and its files form one continuous strip. */
.top-tabstrip .tg-project{margin-left:6px;padding:0 0 3px;}
.top-tabstrip .tg-project .tg-pill{height:100%;padding:0 12px;
  border-radius:7px 0 0 0;background:color-mix(in srgb,var(--tg) 17%,var(--chrome-2));}
/* the project's arrow, as every group's */
.top-tabstrip .tg-project .tg-chev{display:inline-flex;margin-left:6px;
  cursor:pointer;}
.top-tabstrip .tg-project-fold{position:relative;align-self:stretch;
  margin-left:-2px;padding:0 10px 3px;border:0;
  background:color-mix(in srgb,var(--tg) 17%,var(--chrome-2));
  color:var(--chrome-ink-2);font:600 16px var(--sans);cursor:pointer;}
.top-tabstrip .tg-project-fold:hover{color:var(--chrome-ink);
  background:color-mix(in srgb,var(--tg) 25%,var(--chrome-2));}
.top-tabstrip .tg-project-fold:focus-visible{outline:2px solid var(--tg);
  outline-offset:-3px;}
.top-tabstrip .tg-project-fold::after{content:"";position:absolute;
  left:0;right:0;bottom:0;height:3px;background:var(--tg);}
.top-tabstrip .tg-project-fold + .tab.tg-in,
.top-tabstrip .tab.tg-in[data-tg^="project:"] + .tab.tg-in[data-tg^="project:"]{
  margin-left:-2px;}
.top-tabstrip .tab.tg-in[data-tg^="project:"]:not(.current){
  background:color-mix(in srgb,var(--tg) 9%,var(--chrome-2));}
.top-tabstrip .tg-project::after,
.top-tabstrip .tab.tg-in[data-tg^="project:"]::after{height:3px;}
.tg-repo-close{align-self:center;border:0;background:transparent;
  color:var(--chrome-ink-2);font-size:17px;cursor:pointer;padding:2px 5px;}
.tg-repo-close:hover{color:var(--chrome-ink);background:var(--surface-hover);}

.op-tab[hidden],.op-acts .dbtn[hidden]{display:none!important;}
.op-tabs{overflow-x:auto;}

body.proj-on.proj-hide-top-tabs #top-tabstrip>.top-pres-tab.tg-in{display:none!important;}

.top-tabstrip .project-empty-lead,body.proj-on .tg-repo-close{display:none!important;}

.open-pop{width:min(712px,calc(100vw - 16px));}

/* Labels are in sentence case, not spaced monospace capitals. */
.abgrp-lab::first-letter,.sv-proto::first-letter,.col-menu-h::first-letter,
.cps-under-set legend::first-letter,.presrail-brand::first-letter,
.auto-slides-scopes legend::first-letter,
.presentation-hub-row-kind::first-letter,
.presentation-hub-folder::first-letter,.mark-menu-h::first-letter,
.spane-nb::first-letter,.slide-nb::first-letter,.pane-nbtag::first-letter,
.tree-toolbar .tt-title::first-letter,.tn-kind::first-letter,
.rawtag::first-letter,.pr-find-none::first-letter{
  text-transform:uppercase;}
