/* ---------- editor chrome ---------- */
/* The editor's own colours (not the deck's): every rule of the chrome takes them from these tokens, and
   <html data-ui="dark|light|plum"> chooses the set (app/ui.js, before the first paint). Without the
   attribute (a view link, the presentation site) the values are Dark's and no colour scheme is set.
     --ui-bg page · --ui-panel bars, panes, dialogs, cards · --ui-line borders · --ui-ink text · --ui-dim
     secondary text · --ui-accent primary buttons, selection marks, links · --ui-on-accent text on the accent
     --ui-strong text at full strength (selected tab and row) · --ui-faint marks that are not text (grips)
     --ui-raise buttons, hovered rows · --ui-hover hovered button · --ui-press hover on something raised
     --ui-field inputs · --ui-well inset boxes · --ui-sel selected row · --ui-bubble own chat message
     --ui-accent-soft accent-tinted box · --ui-danger error text · --ui-warn warning text, --ui-warn-edge its
     border · --ui-warn-bg/-line/-ink the notice bar · --ui-info-bg/-line/-ink the lock bar · --ui-ok a check that passed (the stats dialog's green, beside --ui-warn and --ui-danger) · --ui-scrim
     behind a dialog · --ui-shadow cards · --ui-shadow-pop dialogs · --ui-shadow-slide the slide on the
     stage · --ui-scroll scrollbar thumb (the faint colour unless a theme sets it)
     --ui-deck, --ui-sec, --ui-slide the three scopes of the Design tab (deck, section, slide): the scope bar,
     the group headings and the marks on the lines; never text, and never alone (a name or a shape goes with them) */
:root {
  --ui-bg: #17181c; --ui-panel: #202228; --ui-line: #33363f; --ui-ink: #e8e9ee;
  --ui-dim: #9a9eab; --ui-accent: #6ea8ff; --ui-on-accent: #0b1220; --ui-strong: #fff; --ui-faint: #6c7284;
  --ui-raise: #2b2e36; --ui-hover: #353944; --ui-press: #3d4250; --ui-field: #14151a; --ui-well: #1a1c21;
  --ui-sel: #2f3a50; --ui-bubble: #2b3550; --ui-accent-soft: #1c2333;
  --ui-danger: #ff9a9a; --ui-warn: #ffc861; --ui-warn-edge: #b8862b; --ui-ok: #6fd28f;
  --ui-warn-bg: #3a3320; --ui-warn-line: #5a4d22; --ui-warn-ink: #f3e3a8;
  --ui-info-bg: #20304a; --ui-info-line: #34507c; --ui-info-ink: #d5e4ff;
  --ui-scrim: rgba(0,0,0,.5); --ui-shadow: none; --ui-shadow-pop: 0 12px 50px rgba(0,0,0,.6); --ui-shadow-slide: 0 4px 30px rgba(0,0,0,.5);
  --ui-scroll: var(--ui-faint);
  --ui-deck: #3ecfb8; --ui-sec: #c08bff; --ui-slide: #a8de5a;
}
:root[data-ui] { color-scheme: dark; }
:root[data-ui=light] {
  color-scheme: light;
  --ui-bg: #eceef2; --ui-panel: #fff; --ui-line: #cfd3dc; --ui-ink: #1b1d23;
  --ui-dim: #585d6b; --ui-accent: #1f5fd6; --ui-on-accent: #fff; --ui-strong: #0b0c10; --ui-faint: #8a8f9c;
  --ui-raise: #f1f2f6; --ui-hover: #e4e7ee; --ui-press: #d6dae4; --ui-field: #fff; --ui-well: #f5f6f9;
  --ui-sel: #dbe6fd; --ui-bubble: #e3ebfc; --ui-accent-soft: #eef3fe;
  --ui-danger: #b3261e; --ui-warn: #8a5300; --ui-warn-edge: #c9952c; --ui-ok: #1a7a3c;
  --ui-warn-bg: #fff3cd; --ui-warn-line: #e3cd82; --ui-warn-ink: #513c00;
  --ui-info-bg: #e2ecfd; --ui-info-line: #b4c9f3; --ui-info-ink: #16376f;
  --ui-deck: #087568; --ui-sec: #7b3fd6; --ui-slide: #4a7410;
  --ui-scrim: rgba(22,26,40,.4); --ui-shadow: 0 1px 2px rgba(22,26,40,.08); --ui-shadow-pop: 0 12px 50px rgba(22,26,40,.3); --ui-shadow-slide: 0 4px 24px rgba(22,26,40,.28);
}
/* Plum: the palette of Pitchr and (re)Minder (and of a viewer's loader, #boot, whatever the theme) */
:root[data-ui=plum], #boot {
  --ui-bg: #1a1320; --ui-panel: #221829; --ui-line: #3d2d4a; --ui-ink: #f0e6f5;
  --ui-dim: #a594b3; --ui-accent: #ff6b8a; --ui-on-accent: #1a1320; --ui-strong: #fff; --ui-faint: #7d6b8c;
  --ui-raise: #2a1f33; --ui-hover: #332541; --ui-press: #3d2d4a; --ui-field: #1a1320; --ui-well: #1d1524;
  --ui-sel: #3f2336; --ui-bubble: #332541; --ui-accent-soft: #2e1a2d;
  --ui-danger: #ff6f9f; --ui-warn: #f5c56b; --ui-warn-edge: #a8823a; --ui-ok: #7bd99a;
  --ui-warn-bg: #3a2c22; --ui-warn-line: #5c4630; --ui-warn-ink: #f6dfae;
  --ui-info-bg: #2d2443; --ui-info-line: #4b3c6e; --ui-info-ink: #dccff5;
  --ui-deck: #45d1bd; --ui-sec: #bd94ff; --ui-slide: #addf5f;
  --ui-scrim: rgba(0,0,0,.6); --ui-shadow: 0 1px 0 #00000040, 0 8px 24px -12px #00000080; --ui-shadow-pop: 0 30px 80px -20px #000; --ui-shadow-slide: 0 4px 30px rgba(0,0,0,.55);
}
/* Plum's own touches, as in (re)Minder: its pixel font (Silkscreen 400, latin; SIL OFL, silkscreen-LICENSE.txt)
   for the app's name and a few short labels, never for text that is read, and under the slide a bar of
   icon buttons. --ui-pixel is only set in Plum, so the other themes fall back to the font they had. */
@font-face { font-family: "Silkscreen"; font-style: normal; font-weight: 400; font-display: swap; src: url(silkscreen.woff2) format("woff2"); }
:root[data-ui=plum], #boot { --ui-pixel: "Silkscreen", ui-monospace, monospace; --ui-glow: color-mix(in srgb, var(--ui-accent) 33%, transparent); }
:root[data-ui=plum] .brandName { font-family: var(--ui-pixel); font-weight: 400; font-size: 17px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; color: var(--ui-accent); text-shadow: 0 0 24px var(--ui-glow); }
/* a part of the name in brackets, "(on)Deck": the "(re)" of Task (re)Minder */
:root[data-ui=plum], #boot { --ui-lav: #b39ddb; }
:root[data-ui=plum] .brandName .re { display: inline-block; margin: 0 2px; font-size: .62em; vertical-align: .4em; text-transform: none; color: var(--ui-lav); }
:root[data-ui=plum] .brand a:hover { text-decoration: none; }
:root[data-ui=plum] .brand a:hover .brandName { color: color-mix(in srgb, var(--ui-accent) 65%, var(--ui-strong)); }
/* the lockup of the logo's handoff: icon and wordmark centred on each other, the letters 28/52 of the icon's height and the gap 16/52 */
:root[data-ui=plum] .brand a, :root[data-ui=plum] #gate h1 { display: inline-flex; align-items: center; gap: 9px; }
:root[data-ui=plum] .brand .appIcon { width: 30px; height: 30px; margin: -3px 0; }
:root[data-ui=plum] .brand .brandName { font-size: 16px; }
:root[data-ui=plum] .brandName { flex: none; white-space: nowrap; position: relative; top: -.1em; } /* (the letters stand low in their line) */
:root[data-ui=plum] #gate h1 { gap: 14px; }
:root[data-ui=plum] #gate h1 .appIcon { width: 44px; height: 44px; margin: 0; }
:root[data-ui=plum] #gate h1 .brandName { font-size: 24px; }
/* the "r" of Deckr: 16/28 of the letters, lavender, its top level with theirs */
:root[data-ui=plum] .brandName .r { display: inline-block; font-size: .571em; margin-top: .19em; vertical-align: top; color: var(--ui-lav); }
:root[data-ui=plum] #outline .add, :root[data-ui=plum] .tabs button { font-family: var(--ui-pixel); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
:root[data-ui=plum] .scopeBar b { font-family: var(--ui-pixel); font-weight: 400; font-size: 10px; letter-spacing: .04em; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; background: var(--ui-bg); color: var(--ui-ink); accent-color: var(--ui-accent);
  font: 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; overflow: hidden; }
button, select, input, textarea { font: inherit; color: inherit; }
button { background: var(--ui-raise); border: 1px solid var(--ui-line); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
button:hover { background: var(--ui-hover); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-on-accent); font-weight: 600; }
button.small { padding: 2px 7px; font-size: 12px; }
select, input[type=text], input[type=number], input[type=password], input[type=email], textarea { background: var(--ui-field); border: 1px solid var(--ui-line); border-radius: 6px; padding: 5px 7px; }
:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 1px; }
::placeholder { color: var(--ui-dim); opacity: 1; }
/* the slide keeps the browser's own colour scheme, as in the exported file, whatever the editor's theme */
#stage, #measure, #print { color-scheme: normal; }
/* the chrome's scrolling areas: thin scrollbars in the theme's colours */
.tabBody, #outline, #chatLog, #gate, #verList, #usrList, #mergeDlg .mrgSum, #mergeDlg .mrgList, .prop .txt, #chatInput { scrollbar-width: thin; scrollbar-color: var(--ui-scroll) transparent; }

/* The top bar: the name, what the deck is called, the save state, then the actions in groups (history,
   content, output, Present, account). It never wraps and never clips a button: the deck's name and
   the save state give way first, each cut with an ellipsis; in a window too narrow for every button, Import,
   Versions, Stats, Print and Export become the list under "More" (the same buttons: #tbMore and #moreMenu
   take no part in the layout until then); narrower still, the app's icon stands without its name. */
#topbar { position: relative; z-index: 7; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--ui-line); background: var(--ui-panel); }
#topbar button { flex: none; white-space: nowrap; }
.brand { flex: none; font-weight: 700; white-space: nowrap; }
/* the app's icon beside its name: top bar, sign-in card, deck list */
.appIcon { width: 20px; height: 20px; margin-right: 7px; vertical-align: -5px; }
#gate h1 .appIcon { width: 28px; height: 28px; margin-right: 9px; }
/* the colour theme of the editor (uiPicker() in app.js) */
select.uiPick { width: auto; padding: 4px 6px; }
.brand a { color: inherit; text-decoration: none; }
.brand a:hover { text-decoration: underline; }
#projTitle { flex: 0 1 auto; min-width: 40px; margin-left: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ui-dim); }
.spacer { flex: 1; }
#topbar .spacer { margin: 0 -6px; } /* (it is only there to push the rest to the right) */
#saveState { flex: 0 1 auto; min-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ui-dim); font-size: 12px; text-align: right; }
.tbGroup { flex: none; display: flex; gap: 6px; }
/* Undo and Redo: one control in two halves */
.tbGroup.joined { gap: 0; }
.tbGroup.joined button:first-child { border-radius: 6px 0 0 6px; }
.tbGroup.joined button + button { border-radius: 0 6px 6px 0; margin-left: -1px; }
#tbMore, #moreMenu { display: contents; }
#btnMore { display: none; }
#btnImages { margin-right: -6px; } /* one group with Import and Versions */
#btnAccount { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
#btnKeys { width: 27px; padding-left: 0; padding-right: 0; color: var(--ui-dim); }
#btnKeys:hover { color: var(--ui-ink); }
@media (max-width: 1180px) {
  #tbMore { display: block; position: relative; flex: none; }
  #btnMore { display: block; }
  #btnMore::after { content: " ▾"; color: var(--ui-dim); }
  #btnImages { margin-right: 0; }
  #moreMenu { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; padding: 6px; flex-direction: column; background: var(--ui-panel); border: 1px solid var(--ui-line); border-radius: 8px; box-shadow: var(--ui-shadow-pop); }
  #moreMenu.open { display: flex; }
  #moreMenu .tbGroup { flex-direction: column; gap: 2px; }
  #moreMenu .tbGroup + .tbGroup { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ui-line); }
  #moreMenu button { padding: 6px 10px; border-color: transparent; background: none; text-align: left; }
  #moreMenu button:hover, #moreMenu button:focus-visible { background: var(--ui-hover); }
}
@media (max-width: 780px) {
  #topbar { gap: 8px; }
  .appName { display: none; }
  .brand .appIcon { margin-right: 0; }
}

/* versions dialog (the padding lives on .box so a click on the dialog itself is a click outside) */
#versions, #account, #exportDlg, #importDlg, #usersDlg, #mergeDlg, #keysDlg, #freeDlg { width: 460px; max-width: calc(100vw - 32px); padding: 0; border: 1px solid var(--ui-line); border-radius: 10px; background: var(--ui-panel); color: var(--ui-ink); box-shadow: var(--ui-shadow-pop); }
#versions::backdrop, #account::backdrop, #exportDlg::backdrop, #importDlg::backdrop, #usersDlg::backdrop, #mergeDlg::backdrop, #keysDlg::backdrop, #freeDlg::backdrop { background: var(--ui-scrim); }
#versions .box, #account .box, #exportDlg .box, #importDlg .box, #usersDlg .box, #mergeDlg .box, #keysDlg .box, #freeDlg .box { padding: 12px 14px 14px; }
#expForm { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
#versions header, #account header, #exportDlg header, #importDlg header, #usersDlg header, #mergeDlg header, #keysDlg header, #freeDlg header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
#verForm, #impForm { display: flex; gap: 6px; }
#verForm input, #impForm input { flex: 1; min-width: 0; }
#importDlg .hint { margin: 8px 0 0; }
#importDlg .hint:empty { display: none; }
#impMsg.err { color: var(--ui-danger); }
#impFile { margin-top: 12px; }
/* the step before an import is applied: the summary, and the sections edited here, to keep or replace */
#mergeDlg { width: 640px; }
#mergeDlg .mrgSum { white-space: pre-wrap; font-size: 13px; line-height: 1.45; max-height: 24vh; overflow-y: auto; }
#mergeDlg .mrgHead { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
#mergeDlg .mrgHead b { flex: 1; }
#mergeDlg .mrgList { max-height: 34vh; overflow-y: auto; margin: 6px 0; border-top: 1px solid var(--ui-line); }
#mergeDlg .mrgList label { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--ui-line); cursor: pointer; }
#mergeDlg .mrgList span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mergeDlg .mrgList i { flex: none; color: var(--ui-dim); font-size: 12px; font-style: normal; }
#mergeDlg .hint { margin: 6px 0 0; }
/* a section whose heading changed: its name here, the doc heading it is matched to, and why */
#mergeDlg .mrgHeads .mrgRow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2px 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--ui-line); }
#mergeDlg .mrgOld { min-width: 0; display: flex; flex-direction: column; }
#mergeDlg .mrgOld small { color: var(--ui-dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mergeDlg .mrgOld span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mergeDlg .mrgRow select { min-width: 0; width: 100%; }
#mergeDlg .mrgRow i { grid-column: 2; color: var(--ui-dim); font-size: 12px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mergeDlg .mrgRow i.sug { color: var(--ui-ink); }
#mergeDlg .mrgRow.off .mrgOld span { color: var(--ui-dim); }
#mergeDlg .mrgFresh { font-size: 12px; }
@media (max-width: 560px) { #mergeDlg .mrgHeads .mrgRow { grid-template-columns: minmax(0, 1fr); } #mergeDlg .mrgRow i { grid-column: 1; } }
#mergeDlg .mrgEnd { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; }
#impCleanRow { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; }
/* "+ Add free slide": the templates, each with a small picture of it drawn in the deck's look */
#freeDlg { width: 560px; }
#freeDlg .hint { margin: 0 0 10px; }
#freeOpts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 12px; font-size: 13px; }
#freeOpts select { margin-left: 6px; max-width: 240px; }
#freeList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#freeList .freeTpl { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 8px; text-align: left; white-space: normal; height: auto; }
#freeList .freeTpl span { color: var(--ui-dim); font-size: 12px; line-height: 1.35; }
#freeList .freePic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 4px; border-radius: 4px; pointer-events: none; color-scheme: normal; }
#freeList .freePic .slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--k, .2)); }
@media (max-width: 520px) { #freeList { grid-template-columns: minmax(0, 1fr); } }
/* the list of keyboard shortcuts (KEYS and openKeys() in app.js): two columns of groups, one in a narrow
   window; in a low window the dialog itself scrolls */
#keysDlg { width: 760px; scrollbar-width: thin; scrollbar-color: var(--ui-scroll) transparent; }
#keysBody { columns: 2 300px; column-gap: 28px; }
#keysBody section { break-inside: avoid; margin: 0 0 14px; }
#keysBody h3 { margin: 0 0 6px; font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-dim); }
#keysBody dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 12px; margin: 0; align-items: baseline; }
#keysBody dt { white-space: nowrap; }
#keysBody dt i { margin: 0 5px; font-style: normal; font-size: 11px; color: var(--ui-dim); }
#keysBody dd { margin: 0; }
#keysBody dd.wide { grid-column: 1 / -1; color: var(--ui-dim); font-size: 12px; }
#keysBody kbd { display: inline-block; min-width: 20px; padding: 0 5px; border: 1px solid var(--ui-line); border-bottom-width: 2px; border-radius: 4px; background: var(--ui-raise); font: inherit; font-size: 12px; line-height: 18px; text-align: center; }
#verList { max-height: 50vh; overflow-y: auto; margin: 10px 0 0; border-top: 1px solid var(--ui-line); }
#verList .ver { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--ui-line); }
#verList .ver div { flex: 1; min-width: 0; }
#verList .ver b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#verList .ver span, #verList .none { color: var(--ui-dim); font-size: 12px; }
#verList .none { padding: 10px 0; }
#verList .err { color: var(--ui-danger); padding: 10px 0; }

main { flex: 1; display: flex; min-height: 0; --pane-l: 220px; --pane-r: 340px; }
/* Side panes (the "side panes" part of app.js): the section list and the side panel are as wide as
   the person dragged them (--pane-l, --pane-r), and give way before the slide does when the window
   is too narrow for that, so a width kept from a wide window cannot break a narrow one. */
main > #outline { flex: 0 1000 var(--pane-l); min-width: 150px; }
main > #panel { flex: 0 1000 var(--pane-r); min-width: 260px; }
main > #stageWrap { flex: 1 1 580px; }
.paneSep { flex: none; width: 0; position: relative; z-index: 6; touch-action: none; }
.paneSep::after { content: ""; position: absolute; top: 0; bottom: 0; left: -3px; width: 7px; cursor: col-resize; transition: background-color .15s; }
.paneSep:hover::after, .paneSep.drag::after, .paneSep:focus-visible::after { background-color: var(--ui-accent); clip-path: inset(0 2px); } /* a 3px line in a 7px grip */
.paneSep:focus-visible { outline: none; }
body.resizing { cursor: col-resize; user-select: none; }
body.resizing #stage { pointer-events: none; }
body.noOutline #outline, body.noOutline #sepL, body.noPanel #panel, body.noPanel #sepR, body.present .paneSep { display: none; }
/* the buttons that fold the panes away sit at the two ends of the bar under the slide */
#pager .fold { padding: 4px 5px; line-height: 0; color: var(--ui-dim); }
#pager .fold:hover { color: var(--ui-ink); }
#pager .fold[aria-expanded=false], #pager .fold[aria-pressed=true] { color: var(--ui-accent); border-color: var(--ui-accent); }
#foldL { margin-right: auto; }
#pgBar { display: contents; }
#pager .pi { display: none; }
/* Plum: (re)Minder's bar of icon buttons. The words are still each button's name (aria-label) and tooltip. */
:root[data-ui=plum] #pgBar { display: flex; align-items: center; gap: 2px; padding: 4px; background: var(--ui-raise); border: 1px solid var(--ui-line); border-radius: 10px; }
:root[data-ui=plum] #pager button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ui-dim); font-size: 16px; line-height: 1; transition: background-color .15s, color .15s; }
:root[data-ui=plum] #pager button:hover { background: var(--ui-hover); color: var(--ui-ink); }
:root[data-ui=plum] #pager button:active { transform: translateY(1px); }
:root[data-ui=plum] #pager button[aria-pressed=true], :root[data-ui=plum] #pager .fold[aria-expanded=false] { color: var(--ui-accent); background: var(--ui-accent-soft); }
:root[data-ui=plum] #pager .pi { display: block; width: 18px; height: 18px; }
:root[data-ui=plum] #pager .pl { display: none; }
:root[data-ui=plum] #pager .fold svg { width: 16px; height: 16px; }
:root[data-ui=plum] #pager .gap { width: 1px; height: 18px; margin: 0 6px; background: var(--ui-line); }
:root[data-ui=plum] #pageInfo { min-width: 58px; }
#foldR { margin-left: auto; }
body.locked #btnRedo { pointer-events: none; opacity: .4; }
#outline { overflow-y: auto; border-right: 1px solid var(--ui-line); padding: 8px 0; background: var(--ui-panel); }
.orow { display: flex; align-items: center; gap: 2px; padding: 0 6px 0 2px; border-top: 2px solid transparent; border-bottom: 2px solid transparent; }
.orow:hover { background: var(--ui-raise); }
.orow.on { background: var(--ui-sel); }
.orow.child { padding-left: 16px; }
.orow.child .t { color: var(--ui-dim); }
.orow.hid .t { text-decoration: line-through; color: var(--ui-dim); }
.orow.on .t { color: var(--ui-strong); }
.orow.dragging { opacity: .4; }
.orow.dropB { border-top-color: var(--ui-accent); }
.orow.dropA { border-bottom-color: var(--ui-accent); }
.orow .grip { flex: none; width: 14px; text-align: center; color: var(--ui-faint); cursor: grab; font-size: 11px; letter-spacing: -2px; user-select: none; }
.orow button { background: none; border: 0; border-radius: 4px; padding: 4px 4px; }
.orow .t { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orow .n { color: var(--ui-dim); font-size: 11px; flex: none; }
/* on the selected or hovered row's colour the dim count and the faint grip would be too weak */
.orow.on .n { color: var(--ui-ink); }
.orow:hover .grip, .orow.on .grip { color: var(--ui-dim); }
.orow .ic { flex: none; width: 20px; height: 22px; padding: 0; color: var(--ui-dim); display: none; line-height: 1; }
.orow .ic:hover { color: var(--ui-strong); background: var(--ui-press); }
.orow .ic svg { vertical-align: middle; }
.orow:hover .ic, .orow:focus-within .ic, .orow.hid .eye { display: inline-block; }
.orow:hover .n, .orow:focus-within .n { display: none; }
.orow .tag { font-style: normal; font-size: 10px; margin-left: 6px; padding: 1px 5px; border-radius: 8px; background: var(--ui-accent); color: var(--ui-on-accent); }
#outline .add { display: block; width: calc(100% - 16px); margin: 10px 8px; background: none; border-style: dashed; color: var(--ui-dim); }

#stageWrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#stage { flex: 1; position: relative; overflow: hidden; min-height: 0; }
#notice { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 14px; background: var(--ui-warn-bg); border-bottom: 1px solid var(--ui-warn-line); color: var(--ui-warn-ink); }
#notice[hidden] { display: none; }
#lockbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 14px; background: var(--ui-info-bg); border-bottom: 1px solid var(--ui-info-line); color: var(--ui-info-ink); }
#lockbar[hidden] { display: none; }
/* read-only while someone else holds the edit lock (LOCKED in app.js is the same list: it makes these inert, for the keyboard) */
body.locked #tab-design, body.locked #chatForm, body.locked #chatQuick, body.locked #chatLog button, body.locked #outline .grip, body.locked #outline .ic, body.locked #outline .add,
body.locked #btnUndo, body.locked #btnImport, body.locked #btnHide, body.locked #btnDup, body.locked #btnBrk, body.locked #verForm, body.locked #verList button, body.locked #notice button { pointer-events: none; opacity: .4; }
body.present #lockbar { display: none; }
#account p { margin: 0 0 10px; }
.keyForm { display: flex; gap: 6px; margin-bottom: 8px; }
.keyForm input { flex: 1; min-width: 0; }

/* sign-in and deck list, drawn over the editor */
#gate { position: fixed; inset: 0; z-index: 50; overflow: auto; background: var(--ui-bg); padding: 24px 16px; }
#gate[hidden] { display: none; }
#gate h1 { margin: 0; font-size: 20px; display: flex; align-items: center; }
#gate .card { width: 320px; max-width: 100%; margin: 12vh auto 0; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--ui-panel); border: 1px solid var(--ui-line); border-radius: 10px; box-shadow: var(--ui-shadow); }
#gate .card p { margin: 0; }
#gate .err { color: var(--ui-danger); min-height: 1.4em; }
#gate .login.busy { opacity: .6; pointer-events: none; }
#gate .linkBtn { background: none; border: 0; padding: 0; color: var(--ui-accent); font: inherit; text-align: left; cursor: pointer; }
#gate .linkBtn:hover { text-decoration: underline; }
.accForm { display: grid; gap: 7px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ui-line); }
.accForm label { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 8px; }
.accForm label span { color: var(--ui-dim); }
.accEnd { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.accMsg { color: var(--ui-dim); font-size: 12px; }
.accMsg.bad { color: var(--ui-danger); }
#account .accHead { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.accHead span { color: var(--ui-dim); }
#account .accUi { align-items: center; margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--ui-line); }
#usersDlg { width: 620px; }
#usrList { max-height: 46vh; overflow-y: auto; border-top: 1px solid var(--ui-line); margin-bottom: 12px; }
#usrList .usr { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--ui-line); }
#usrList .usr .who { flex: 1; min-width: 0; }
#usrList .usr .who span { display: block; color: var(--ui-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#usrList .tag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--ui-line); border-radius: 8px; font-size: 11px; color: var(--ui-dim); font-weight: 400; }
#usrForm { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: center; }
#usrForm b, #usrForm .wide { grid-column: 1 / -1; }
#usrForm input[type=text], #usrForm input[type=email], #usrForm input[type=password] { width: 100%; box-sizing: border-box; }
#usrMsg { margin: 10px 0 0; font-size: 13px; }
#usrMsg.bad { color: var(--ui-danger); }
#usrMsg input { width: 100%; box-sizing: border-box; margin-top: 6px; }
.accFoot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--ui-line); color: var(--ui-dim); }
#gate input[type=text], #gate input[type=password] { padding: 8px 9px; }
#gate .btn { display: inline-block; text-align: center; text-decoration: none; border: 1px solid var(--ui-line); border-radius: 6px; padding: 5px 10px; background: var(--ui-raise); color: var(--ui-ink); }
#gate .btn.primary { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-on-accent); font-weight: 600; }
.home { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.home header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.home .new { display: flex; gap: 6px; margin-bottom: 8px; }
.home .new input { flex: 1; min-width: 0; }
.home .sub, #gate .login .sub { color: var(--ui-dim); font-size: 12px; }
.deck { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; background: var(--ui-panel); border: 1px solid var(--ui-line); border-radius: 8px; box-shadow: var(--ui-shadow); }
.deck .info { flex: 1; min-width: 200px; }
.deck .name { font-size: 15px; font-weight: 600; color: var(--ui-ink); text-decoration: none; overflow-wrap: anywhere; }
.deck .name:hover { text-decoration: underline; }
.deck .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.deck .pub { align-self: stretch; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.deck .share > .pub:not(:first-child) { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--ui-line); }
.deck .pubUrl { align-self: stretch; display: flex; gap: 6px; align-items: center; }
.deck .pubUrl input { flex: 1; min-width: 0; }
#gate .btn.small { padding: 2px 8px; font-size: 12px; }
/* A viewer's loader (#boot in index.html): a black page with the app's icon and name as in Plum (not on
   the presentation site, where the server takes them out) and three pixels in Plum's colours, over
   everything, from before the first paint (ui.js sets <html data-boot> on a view link and on the
   presentation site) until the presentation is there to see (bootDone() in app.js). The bar under the
   pixels shows how far the images are when they are all loaded first. The exported file has the same
   loader: exportHtml() copies the rules whose selector starts with "#boot" and the bootDot keyframes,
   and reads the colours off this element, which holds Plum's tokens in every theme. */
#boot { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; background-color: #000; transition: opacity .25s; }
#boot.out { opacity: 0; pointer-events: none; }
/* the mark, as Plum's lockup on the sign-in card; it fades in when its font is there (ui.js) */
#boot .bootMark { display: flex; align-items: center; gap: 14px; opacity: 0; transition: opacity .3s; }
#boot .appIcon { width: 44px; height: 44px; margin: 0; }
#boot .brandName { position: relative; top: -.1em; font: 400 24px/1 var(--ui-pixel); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--ui-accent); text-shadow: 0 0 24px var(--ui-glow); }
#boot .brandName .r { display: inline-block; font-size: .571em; margin-top: .19em; vertical-align: top; color: var(--ui-lav); }
#boot .brandName .re { display: inline-block; margin: 0 2px; font-size: .62em; vertical-align: .4em; text-transform: none; color: var(--ui-lav); }
#boot span { position: relative; display: flex; gap: 10px; }
#boot i { width: 10px; height: 10px; background-color: var(--ui-accent); box-shadow: 0 0 14px var(--ui-glow); opacity: .3; animation: bootDot 1.05s infinite; }
#boot i:nth-child(2) { animation-delay: .15s; }
#boot i:nth-child(3) { animation-delay: .3s; }
#boot b { position: absolute; left: 50%; top: 34px; width: 132px; height: 3px; margin-left: -66px; background-color: var(--ui-line); visibility: hidden; }
#boot b::after { content: ""; display: block; width: calc(var(--p, 0) * 100%); height: 100%; background-color: var(--ui-lav); transition: width .2s; }
#boot b.on { visibility: visible; }
@keyframes bootDot { 0%, 60%, 100% { opacity: .3; } 20% { opacity: 1; } }
:root:not([data-boot]) #boot { display: none; }
:root[data-boot-mark] #boot .bootMark { opacity: 1; }
/* a view link's page: only the slide, with buttons in the corners that show on hover or touch */
.viewBtn { position: fixed; z-index: 20; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; opacity: .25; transition: opacity .2s; }
.viewBtn:hover, .viewBtn:focus-visible { opacity: 1; }
.viewBtn.prev { left: 14px; } .viewBtn.next { left: 66px; } .viewBtn.full { right: 14px; }
@media (hover: none) { .viewBtn { opacity: .6; } }
@media print { .viewBtn { display: none; } }
.deck .share { flex: 0 0 100%; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--ui-line); }
#stage.isHidden .slide { opacity: .45; }
#stage .slide { position: absolute; left: 50%; top: 50%; margin: -360px 0 0 -640px; box-shadow: var(--ui-shadow-slide); }
/* the phone preview (phoneStage): the phone layout at a phone's width, as tall as there is room for.
   These rules start with #stage, so the export, which copies the ".phone" ones, leaves them out. */
#stage .phoneFrame { position: absolute; left: 50%; top: 50%; width: 390px; max-width: calc(100% - 32px); height: min(844px, calc(100% - 32px)); transform: translate(-50%, -50%); overflow: hidden; border: 1px solid var(--ui-line); border-radius: 26px; box-shadow: var(--ui-shadow-slide); }
#stage .phoneFrame .phone { position: absolute; z-index: 0; scrollbar-width: none; }
#stage .phoneFrame .phCover { min-height: 86%; }
#stage .phoneFrame .phSec { cursor: pointer; }
#stage .phoneFrame .phSec.cur::after { content: ""; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ui-accent); }
#stage .phoneFrame .phPic:hover { outline: 2px solid var(--ui-accent); outline-offset: -2px; }
#stage .phoneNote { position: absolute; left: 0; right: 0; bottom: 2px; margin: 0; text-align: center; font-size: 12px; color: var(--ui-dim); }
#pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; padding: 8px; color: var(--ui-dim); }
#pager button { white-space: nowrap; } /* beside wide panes the buttons take a second line; their words never break */
#pager .gap { width: 18px; }
#pageInfo { min-width: 60px; text-align: center; }

#panel { display: flex; flex-direction: column; border-left: 1px solid var(--ui-line); background: var(--ui-panel); min-height: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--ui-line); }
.tabs button { flex: 1; border: 0; border-radius: 0; background: none; padding: 9px; color: var(--ui-dim); border-bottom: 2px solid transparent; }
.tabs button[aria-selected=true] { color: var(--ui-strong); border-bottom-color: var(--ui-accent); }
.tabBody { flex: 1; overflow-y: auto; min-height: 0; padding: 2px 12px 12px; }
/* Room for the scrollbar is always kept, so opening a group never narrows the lines. The right padding
   (--pr) is what is left of 12px beside the bar, 4px at least; --ui-bar is its width, measured in app.js
   (nothing where scrollbars lie over the content, as on a Mac). The left padding holds the marks. */
#tab-design { scrollbar-gutter: stable; --pr: max(4px, 12px - var(--ui-bar, 0px)); padding: 0 var(--pr) 12px 16px; scroll-padding-top: 66px; container: design / inline-size; }
.tabBody[hidden] { display: none; }

/* The Design tab shows one scope at a time: the deck, the section in view or the slide in view. Each has
   its colour: --c is the colour of the scope in view, and of one element where .sc-deck / .sc-sec / .sc-slide say so.
   The bar that chooses the scope stays at the top while the groups scroll under it. */
#tab-design, #tab-design .sc-deck { --c: var(--ui-deck); }
#tab-design[data-scope=sec], #tab-design .sc-sec { --c: var(--ui-sec); }
#tab-design[data-scope=slide], #tab-design .sc-slide { --c: var(--ui-slide); }
.scopeBar { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 0 calc(0px - var(--pr)) 2px -16px; padding: 8px var(--pr) 8px 8px; background: var(--ui-panel); border-bottom: 1px solid var(--ui-line); }
.scopeBar button { position: relative; display: block; min-width: 0; padding: 4px 7px 3px; text-align: left; background: none; border: 1px solid var(--ui-line); border-bottom: 3px solid color-mix(in srgb, var(--c) 50%, var(--ui-panel)); color: var(--ui-dim); }
.scopeBar button:hover { background: var(--ui-raise); }
.scopeBar button[aria-selected=true] { background: color-mix(in srgb, var(--c) 16%, var(--ui-panel)); border-color: var(--c); color: var(--ui-ink); }
.scopeBar b { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.scopeBar button[aria-selected=true] b { color: var(--ui-strong); }
.scopeBar span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.scopeBar .has { position: absolute; top: 5px; right: 5px; line-height: 0; color: var(--c); } /* the section or slide has settings of its own */
/* where a scope has nothing to offer (Section, on the cover) */
.scopeNote { margin: 12px 0 0 -8px; padding: 10px 12px 4px; border-left: 3px solid var(--c); border-radius: 4px; background: color-mix(in srgb, var(--c) 9%, var(--ui-panel)); }
.scopeNote p { margin: 0 0 6px; }
/* in a hint: turns to another scope */
.jump { all: unset; cursor: pointer; padding: 0 5px; border-radius: 4px; background: color-mix(in srgb, var(--c) 22%, var(--ui-panel)); color: var(--ui-ink); white-space: nowrap; }
.jump:hover { background: color-mix(in srgb, var(--c) 38%, var(--ui-panel)); }
.jump:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 1px; }

/* a group: its heading carries the scope's colour, the number of lines set at this scope (.gn) and "Reset all" (.gr) */
details.grp { margin-top: 6px; }
details.grp > summary { display: flex; align-items: center; gap: 5px; min-height: 30px; margin-left: -8px; padding: 0 5px; border-left: 3px solid var(--c); border-radius: 4px; background: color-mix(in srgb, var(--c) 9%, var(--ui-panel)); cursor: pointer; list-style: none; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ui-dim); user-select: none; }
details.grp > summary::-webkit-details-marker { display: none; }
details.grp > summary::before { content: "▸"; flex: none; width: 14px; }
details.grp[open] > summary::before { content: "▾"; }
details.grp[open] > summary { color: var(--ui-ink); }
details.grp > summary .gt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.grp > summary .gi, details.grp > summary .gn, details.grp > summary .gr { flex: none; font-size: 11px; letter-spacing: 0; text-transform: none; }
details.grp > summary .gn { padding: 1px 6px; border-radius: 9px; background: color-mix(in srgb, var(--c) 28%, var(--ui-panel)); color: var(--ui-ink); }
details.grp > summary .gr { padding: 1px 6px; }
details.grp > summary [hidden], details.grp:not([open]) > summary .gr { display: none; } /* "Reset all" only where the lines are in view */
.grpBody { padding: 4px 0 6px; }
/* the heading's words give way to its title: "Reset all" is "Reset" in a tab of the usual width, "3 changed" is "3" in a narrow one */
@container design (max-width: 339px) { details.grp > summary .gr span { display: none; } }

/* A line: label, control(s) and, where the value can be taken back or removed (.ov, .end), a slot at its end
   for the button that does it (.rs), kept whether the button is there or not. The mark of a line that is set
   at this scope, or comes from a nearer level than the theme, stands in the tab's left padding. */
.row { display: grid; grid-template-columns: var(--lab, 90px) minmax(0, 1fr); column-gap: 8px; align-items: center; margin: 6px 0; min-height: 22px; }
.row.ov, .row.end { grid-template-columns: var(--lab, 90px) minmax(0, 1fr) 22px; }
.row.bare { grid-template-columns: minmax(0, 1fr); }
.row > label { grid-area: 1 / 1; color: var(--ui-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.own > label { color: var(--ui-ink); font-weight: 600; }
.row > .ctl { grid-area: 1 / 2; min-width: 0; display: flex; gap: 6px; align-items: center; }
.row.bare > .ctl { grid-area: 1 / 1; }
.row > .rs { grid-area: 1 / 3; display: flex; width: 22px; height: 22px; }
.row > .mark { grid-area: 1 / 1; justify-self: start; width: 10px; height: 10px; margin-left: -13px; line-height: 0; color: var(--c); }
.rs .reset { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--ui-dim); font-size: 16px; line-height: 1; }
.rs .reset:hover { background: var(--ui-hover); color: var(--ui-ink); }
.rs .reset[hidden] { display: none; }
/* the label above its controls: where the controls need the whole width, and for every line of a narrow tab */
.row.stack { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
.row:has(> .ctl > .col) { align-items: start; }
.row.stack.ov, .row.stack.end { grid-template-columns: minmax(0, 1fr) 22px; }
.row.stack > .ctl { grid-area: 2 / 1 / 3 / -1; }
.row.stack > .rs { grid-area: 1 / 2; }
@container design (max-width: 299px) {
  .row:not(.inl) { grid-template-columns: minmax(0, 1fr); row-gap: 3px; margin: 8px 0; }
  .row.ov:not(.inl), .row.end:not(.inl) { grid-template-columns: minmax(0, 1fr) 22px; }
  .row:not(.inl) > .ctl { grid-area: 2 / 1 / 3 / -1; }
  .row.bare > .ctl { grid-area: 1 / 1; }
  .row:not(.inl) > .rs { grid-area: 1 / 2; }
  .row:not(.inl) > label { font-size: 12px; }
  .row .seg.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scopeBar b, details.grp > summary { letter-spacing: .04em; }
  details.grp > summary .gn span { display: none; }
}
/* nothing in a line wraps: what does not fit is cut short (its tooltip has the whole of it). A list (.wrap, .picks) may run on. */
.row > .ctl > * { min-width: 0; }
.row.wrap > .ctl, .picks { flex-wrap: wrap; }
.picks { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.ctl button, .picks button { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctl label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctl label input { margin: 0 2px 0 0; vertical-align: -2px; }
.ctl > .col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ctl > input[type=color], .ctl > .thumb, .ctl .hotPick { flex: none; }
.grid2 { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.row input[type=text], .row select { width: 100%; }
.row > .ctl > input[type=text], .row > .ctl > select { flex: 1 1 0; } /* beside a tick-box, the box keeps its words */
.row input[type=range] { flex: 1; min-width: 36px; }
.row output { flex: 0 0 52px; text-align: right; color: var(--ui-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
/* a slider's readout: click to type the value */
input[type=range]:not(:disabled) + output { cursor: text; }
input[type=range]:not(:disabled) + output:hover { color: var(--ui-ink); text-decoration: underline dotted; }
output[hidden] { display: none; }
input.numEdit { flex: 0 0 60px; width: 60px; padding: 2px 4px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
input.numEdit::-webkit-inner-spin-button { display: none; }
.row input[type=color] { width: 34px; height: 26px; padding: 0; border: 1px solid var(--ui-line); border-radius: 4px; background: none; }
.thumb { width: 44px; height: 26px; border-radius: 4px; border: 1px solid var(--ui-line); background: var(--ui-field) center/cover no-repeat; flex: none; }
.thumb.on, button.small.on { outline: 2px solid var(--ui-accent); outline-offset: 1px; }
.thumb.ghost { opacity: .45; border-style: dashed; } /* not this line's own image: the one that shows without it */
.imgEd { --lab: 80px; }
.focusEd { margin: 6px 0 10px; padding: 8px; border: 1px solid var(--ui-line); border-radius: 6px; background: var(--ui-well); }
.focusPic { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto 6px; cursor: crosshair; touch-action: none; user-select: none; line-height: 0; }
/* The marks lie on a picture of any colour, so each has a light and a dark edge in every theme: the
   strongest text colour or the accent, ringed with the panel's colour. */
.focusPic .dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--ui-strong); border-radius: 50%; background: color-mix(in srgb, var(--ui-accent) 60%, transparent); box-shadow: 0 0 0 1px var(--ui-panel), 0 0 6px var(--ui-scrim); pointer-events: none; }
/* crop, fade and position of an image (focusEditor): the preview is a miniature of the frame the image is
   drawn in, on the slide's own colour and gradient (--bg and --grad are set on it); .ov is the image's box */
.focusPic.mini { overflow: hidden; border-radius: 4px; box-shadow: 0 0 0 1px var(--ui-line); background-color: var(--bg); background-image: var(--grad, none); }
.focusPic.mini.move { cursor: move; }
.focusPic.mini .pic { position: absolute; inset: 0; background: center/cover no-repeat; }
.focusPic.mini .ov { position: absolute; inset: 0; pointer-events: none; }
.focusPic.mini.move .ov { outline: 1px dashed var(--ui-accent); outline-offset: -1px; }
.focusPic.mini .lines { position: absolute; inset: 0; filter: drop-shadow(0 0 1px var(--ui-panel)) drop-shadow(0 0 1px var(--ui-panel)); }
.focusPic.mini .ring { position: absolute; border: 1.5px solid var(--ui-accent); border-radius: 50%; box-shadow: 0 0 0 1px var(--ui-panel), inset 0 0 0 1px var(--ui-panel); }
.focusPic.mini .ring.out { border-style: dashed; }
/* menu bar names and widths (Design tab) */
.navRow { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.navRow.kid { padding-left: 16px; }
.navRow input[type=checkbox] { flex: none; margin: 0; }
.navRow input[type=text] { flex: 1; min-width: 0; }
.navRow input[type=number] { flex: 0 0 58px; width: 58px; }
.navRow span { flex: 0 0 12px; color: var(--ui-dim); font-size: 12px; }
.navRow.cur input[type=text] { border-color: color-mix(in srgb, var(--c) 70%, var(--ui-line)); } /* the section in view */
.row .note { color: var(--ui-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* a choice of one: it fills its line, and a label that does not fit is cut short */
.seg { flex: 1; display: flex; min-width: 0; border: 1px solid var(--ui-line); border-radius: 6px; overflow: hidden; }
.seg button { flex: 1 1 auto; min-width: 0; border: 0; border-radius: 0; padding: 4px 7px; background: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg button.on { background: var(--ui-accent); color: var(--ui-on-accent); }
/* more choices than a line holds (the layouts): a grid of them, three across */
.seg.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ui-line); }
.seg.grid button:not(.on) { background: var(--ui-panel); }
.posgrid { display: grid; grid-template-columns: repeat(3, 20px); gap: 3px; }
.posgrid button { width: 20px; height: 16px; padding: 0; border-radius: 3px; }
.posgrid button.on { background: var(--ui-accent); border-color: var(--ui-accent); }
.hint { color: var(--ui-dim); font-size: 12px; margin: 4px 0 0; }
.hint.gap { margin: 10px 0 4px; }
.hint.tight { margin: 0 0 4px; }
.gradBar { height: 22px; border-radius: 4px; border: 1px solid var(--ui-line); margin-bottom: 6px; }
.stop { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.stop input[type=color] { flex: none; width: 34px; height: 26px; padding: 0; border: 1px solid var(--ui-line); border-radius: 4px; background: none; }
.stop input[type=range] { flex: 1; min-width: 60px; }
.stop output { flex: 0 0 38px; text-align: right; color: var(--ui-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.iconGrid { display: grid; grid-template-columns: repeat(auto-fill, 28px); gap: 3px; width: 100%; }
.iconGrid button, .hotPick { width: 28px; height: 28px; padding: 4px; border-radius: 4px; flex: none; }
.iconGrid button svg, .hotPick svg { display: block; width: 100%; height: 100%; }
.iconGrid.found { margin: 2px 0 6px; max-height: 190px; overflow-y: auto; }
.iconGrid[hidden] { display: none; }
.freePick { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconGrid button.on, .hotPick.on, .freePick.on { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-on-accent); }
.popEdit { display: block; width: 100%; margin: 6px 0; resize: vertical; }
.themeForm { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.themeForm input[type=text] { width: 100%; }

/* images: the gallery dialog, the note about an upload, and the places that take dropped files */
body.locked #btnImages { pointer-events: none; opacity: .4; }
#galleryDlg { width: 960px; max-width: calc(100vw - 32px); padding: 0; border: 1px solid var(--ui-line); border-radius: 10px; background: var(--ui-panel); color: var(--ui-ink); box-shadow: var(--ui-shadow-pop); }
#galleryDlg::backdrop { background: var(--ui-scrim); }
#galleryDlg .box { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
#galleryDlg header { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
#galBar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#galSearch { flex: 1; min-width: 140px; }
#galMsg { white-space: pre-line; color: var(--ui-dim); font-size: 12px; }
#galMsg:empty { display: none; }
#galMsg.err, #upNote.err { color: var(--ui-ink); border-left: 3px solid var(--ui-accent); padding-left: 8px; }
#galGrid { height: 56vh; min-height: 150px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); align-content: start; gap: 8px; padding: 3px; border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); }
#galGrid > p { grid-column: 1 / -1; margin: 24px 0; text-align: center; color: var(--ui-dim); }
/* a few hundred of these: the ones out of view are not laid out or painted, and their pictures load when they come near */
.galItem { display: block; min-width: 0; padding: 5px; text-align: left; background: var(--ui-bg); border: 1px solid var(--ui-line); border-radius: 6px; content-visibility: auto; contain-intrinsic-size: auto 128px auto 150px; }
.galItem .pic { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--ui-ink) 7%, var(--ui-bg)); }
.galItem img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.galItem .nm, .galItem .use { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 15px; min-height: 15px; }
.galItem .use { width: fit-content; max-width: 100%; padding: 0 6px; border-radius: 8px; background: color-mix(in srgb, var(--ui-accent) 24%, var(--ui-panel)); }
.galItem .use.none { background: none; border: 1px dashed var(--ui-line); color: var(--ui-dim); line-height: 13px; }
.galItem.sel { border-color: var(--ui-accent); outline: 2px solid var(--ui-accent); outline-offset: -1px; background: color-mix(in srgb, var(--ui-accent) 16%, var(--ui-panel)); }
.galItem.sel .pic::after { content: "✓"; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ui-accent); color: var(--ui-on-accent); font: 700 13px/20px system-ui, sans-serif; text-align: center; }
.galItem:focus-visible { outline: 2px solid var(--ui-ink); outline-offset: 1px; }
#galActs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 26px; }
#galActs:empty { display: none; }
#galActs .n { min-width: 112px; font-weight: 600; }
#galActs .lbl { margin-left: 8px; color: var(--ui-dim); }
#galActs .gap { flex: 1; }
#galHint { margin: 0; }
#galDrop { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; border: 2px dashed var(--ui-accent); border-radius: 10px; background: color-mix(in srgb, var(--ui-panel) 88%, transparent); font-size: 16px; font-weight: 600; pointer-events: none; }
#galleryDlg.dropOver #galDrop { display: flex; }
/* the Codex dialog (openCodex() in app.js): the entries a link's pop-up can show */
#codexDlg { width: 680px; max-width: calc(100vw - 32px); padding: 0; border: 1px solid var(--ui-line); border-radius: 10px; background: var(--ui-panel); color: var(--ui-ink); box-shadow: var(--ui-shadow-pop); }
#codexDlg::backdrop { background: var(--ui-scrim); }
#codexDlg .box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
#codexDlg header { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
#codexDlg .hint { margin: 0; }
#cdxBar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#cdxBar label { display: flex; align-items: center; gap: 6px; color: var(--ui-dim); white-space: nowrap; }
#cdxFrom { max-width: 230px; }
#cdxSearch { flex: 1; min-width: 140px; }
#cdxList { height: 52vh; min-height: 150px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 6px 3px; border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); scrollbar-width: thin; scrollbar-color: var(--ui-scroll) transparent; }
#cdxList > p { margin: 24px 12px; text-align: center; color: var(--ui-dim); line-height: 1.45; }
.cdxHead { flex: none; margin: 8px 2px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-dim); }
.cdxItem { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; padding: 6px 8px; text-align: left; background: var(--ui-bg); border: 1px solid var(--ui-line); border-radius: 6px; }
.cdxItem:hover { background: var(--ui-hover); }
.cdxItem .pic { flex: none; width: 56px; height: 42px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--ui-ink) 7%, var(--ui-bg)); }
.cdxItem img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cdxItem .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cdxItem .tx b, .cdxItem .tx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdxItem .tx span { color: var(--ui-dim); font-size: 12px; }
.cdxItem .use { flex: none; padding: 0 6px; border-radius: 8px; font-size: 11px; line-height: 15px; background: color-mix(in srgb, var(--ui-accent) 24%, var(--ui-panel)); }
.cdxItem .use.none { background: none; border: 1px dashed var(--ui-line); color: var(--ui-dim); line-height: 13px; }
.cdxItem.on { border-color: var(--ui-accent); background: color-mix(in srgb, var(--ui-accent) 16%, var(--ui-panel)); }
.cdxItem:focus-visible { outline: 2px solid var(--ui-ink); outline-offset: 1px; }
/* the entry a link shows, in the Design tab */
.ctl .entryName { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctl .entryName.gone { color: var(--ui-danger); font-weight: 400; }
/* deck stats (openStats() in app.js): tiles, a bar of tabs with the speed test, and one scrolling table.
   A mark is a shape as well as a colour: a dot is fine, a triangle is worth a look, a square is a problem. */
#statsDlg { width: 1120px; max-width: calc(100vw - 32px); padding: 0; border: 1px solid var(--ui-line); border-radius: 10px; background: var(--ui-panel); color: var(--ui-ink); box-shadow: var(--ui-shadow-pop); }
#statsDlg::backdrop { background: var(--ui-scrim); }
#statsDlg .box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
#statsDlg header { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
#stSum { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 8px; }
#stSum:empty { display: none; }
.stTile { min-width: 0; padding: 7px 10px 8px; border: 1px solid var(--ui-line); border-radius: 8px; background: var(--ui-well); }
.stTile .l { display: flex; align-items: center; gap: 6px; color: var(--ui-dim); font-size: 12px; white-space: nowrap; }
.stTile b { display: block; font-size: 18px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.stTile .s { display: block; color: var(--ui-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#stBar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#stTabs { flex: 0 1 380px; }
#stBar .gap { flex: 1; }
#stBar label { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ui-dim); white-space: nowrap; }
#stConn { flex: 0 1 auto; min-width: 0; color: var(--ui-ink); }
#stOpt[hidden] { display: none; }
#stMsg { color: var(--ui-dim); font-size: 12px; }
#stMsg:empty { display: none; }
#stBody { height: 52vh; min-height: 160px; overflow: auto; border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); scrollbar-width: thin; scrollbar-color: var(--ui-scroll) transparent; }
#stHint { margin: 0; }
.stWait { margin: 20px 0; text-align: center; color: var(--ui-dim); }
.stMark { display: inline-block; flex: none; width: 10px; height: 10px; vertical-align: -1px; }
.stMark.ok { border-radius: 50%; background: var(--ui-ok); }
.stMark.warn { background: var(--ui-warn); clip-path: polygon(50% 4%, 100% 96%, 0 96%); }
.stMark.bad { border-radius: 2px; background: var(--ui-danger); }
.stTab { width: 100%; border-collapse: collapse; }
.stTab + .stTab { margin-top: 18px; }
.stTab th { position: sticky; top: 0; z-index: 1; padding: 7px 8px 6px; background: var(--ui-panel); box-shadow: 0 1px 0 var(--ui-line); text-align: left; font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-dim); white-space: nowrap; }
.stTab td { padding: 6px 8px; border-top: 1px solid var(--ui-line); vertical-align: top; }
.stTab tbody tr:first-child td { border-top: 0; }
.stTab .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stTab td:first-child { width: 26px; padding-right: 0; }
.stTab .sub { color: var(--ui-dim); font-size: 12px; }
.stTab tr.off td, .stTab tr.off .stGo { color: var(--ui-dim); }
.stTab tr.tot td { border-top: 2px solid var(--ui-line); }
.stGo { all: unset; cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.stGo:hover { text-decoration: underline; }
.stGo:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 1px; border-radius: 2px; }
.stThumb { display: block; width: 58px; height: 36px; object-fit: cover; border-radius: 3px; background: var(--ui-well); }
.stNote { display: flex; align-items: baseline; gap: 7px; }
.stNote + .stNote { margin-top: 4px; }
.stIssue { display: flex; align-items: baseline; gap: 9px; padding: 9px 8px; border-top: 1px solid var(--ui-line); }
.stIssue:first-child { border-top: 0; }
.stIssue > div { flex: 1; min-width: 0; }
.stIssue b { font-weight: 600; }
.stChips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.stChips button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stChips button i { margin-left: 7px; font-style: normal; color: var(--ui-dim); font-variant-numeric: tabular-nums; }
#upNote { position: fixed; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 40; max-width: min(620px, calc(100vw - 32px)); padding: 8px 12px; border: 1px solid var(--ui-accent); border-radius: 8px; background: var(--ui-panel); color: var(--ui-ink); white-space: pre-line; cursor: pointer; }
#upNote[hidden], body.present #upNote, body.present #dropZones { display: none; }
/* shown over the stage while files are dragged over the window (stageZones() in app.js) */
#dropZones { position: fixed; z-index: 30; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
#dropZones .top { flex: 0 0 30%; min-height: 78px; display: flex; gap: 8px; }
#dropZones .zone { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 8px; border: 2px dashed var(--ui-accent); border-radius: 10px; background: color-mix(in srgb, var(--ui-panel) 90%, transparent); color: var(--ui-ink); text-align: center; }
#dropZones .zone > div { display: flex; flex-direction: column; gap: 2px; padding: 6px 14px; border-radius: 8px; pointer-events: none; }
#dropZones .zone b { font-size: 15px; }
#dropZones .zone span { color: var(--ui-dim); font-size: 12px; }
/* the slide stays in view under this one, since the place of the drop matters */
#dropZones .zone.place { align-items: flex-end; background: color-mix(in srgb, var(--ui-panel) 30%, transparent); }
#dropZones .zone.place > div { background: var(--ui-panel); }
#dropZones .zone.dropOver { border-style: solid; background: color-mix(in srgb, var(--ui-accent) 34%, var(--ui-panel)); }
#dropZones .zone.place.dropOver { background: color-mix(in srgb, var(--ui-accent) 26%, transparent); }
/* an image slot of the Design tab (dropSlot()): the wrapper takes no room, its row takes the drop */
.imgCtl { display: contents; }
.dropSlot.dropOver .thumb, .dropSlot.dropOver > button:only-child { outline: 2px dashed var(--ui-accent); outline-offset: 2px; }
button.thumb { touch-action: none; } /* a section's images: dragged into another order */
.thumb.dragging { opacity: .4; }
.thumb.dropB { box-shadow: -3px 0 0 var(--ui-accent); }
.thumb.dropA { box-shadow: 3px 0 0 var(--ui-accent); }

/* assistant */
#tab-assistant { display: flex; flex-direction: column; padding: 0; }
#tab-assistant[hidden] { display: none; }
#chatLog { flex: 1; overflow-y: auto; padding: 12px; min-height: 0; }
.msg { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { background: var(--ui-bubble); border-radius: 8px; padding: 7px 10px; margin-left: 28px; }
.msg.err { color: var(--ui-danger); }
.msg.note { color: var(--ui-dim); font-style: italic; }
.prop { border: 1px solid var(--ui-line); border-radius: 8px; margin: 0 0 12px; background: var(--ui-well); }
.prop header { padding: 8px 10px; border-bottom: 1px solid var(--ui-line); }
.prop header b { display: block; }
.prop header span { color: var(--ui-dim); font-size: 12px; }
.prop .txt { max-height: 220px; overflow-y: auto; padding: 8px 10px; font-size: 12.5px; }
.prop .txt p { margin: 0 0 7px; }
.prop .txt p.li { padding-left: 14px; text-indent: -10px; }
.prop .txt p.li::before { content: "• "; }
.prop footer { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--ui-line); }
.prop footer .state { color: var(--ui-dim); font-size: 12px; margin-left: auto; }
.prop header .fit { display: block; color: var(--ui-ink); }
.prop.over { border-color: var(--ui-warn-edge); }
.prop.over header .fit { color: var(--ui-warn); font-weight: 600; }
.batch { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--ui-accent); border-radius: 8px; background: var(--ui-accent-soft); }
.batch span { color: var(--ui-dim); font-size: 12px; flex: 1 1 100%; }
#chatQuick .sep { flex: 1 1 100%; margin-top: 2px; color: var(--ui-dim); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
#chatQuick { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 12px 0; border-top: 1px solid var(--ui-line); }
#chatForm { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 8px 12px 12px; }
#chatForm select { grid-column: 1 / -1; }
#chatForm textarea { resize: vertical; min-height: 54px; }

/* ---------- the slide (1280 x 720, scaled by JS) ---------- */
.slide {
  --bg: #0b1026; --ink: #eef1ff; --accent: #ff4d6d;
  --head: "Bebas Neue"; --body: "Barlow"; --size: 20px; --hscale: 1;
  width: 1280px; height: 720px; position: relative; overflow: hidden;
  background-color: var(--bg); background-image: var(--grad, none); color: var(--ink);
  --hweight: 400; --hcase: none; --htrack: 0em; --hlead: 1.1; --cscale: 1; --kfont: var(--body); --ksize: 16px; --ktrack: .14em; --hword: 0em; --kword: 0em; --word: 0em;
  --bweight: 400; --cgap: 40px; --lead: 1.38; --track: 0em; --pgap: .75em; --indent: 0em; --align: left; --imgw: 380px;
  font-family: var(--body), system-ui, sans-serif; font-size: var(--size); font-weight: var(--bweight); line-height: var(--lead);
}
.slide .bgimg { position: absolute; inset: 0; background: center/cover no-repeat; }
/* the dim layer is the slide's own background again (colour and gradient), part-transparent over the image */
.slide .dim { position: absolute; inset: 0; background-color: var(--bg); background-image: var(--grad, none); }
.slide .logo { position: absolute; object-fit: contain; object-position: center; z-index: 3; }
.slide .logo.t { top: 28px; } .slide .logo.m { top: 50%; transform: translateY(-50%); } .slide .logo.b { bottom: 78px; }
.slide .logo.l { left: 40px; } .slide .logo.c { left: 50%; margin-left: calc(var(--logo) / -2); } .slide .logo.r { right: 40px; }

.slide .kicker { position: absolute; left: 70px; right: 70px; top: 34px; font-family: var(--kfont), system-ui, sans-serif; font-size: var(--ksize); line-height: 1.25; letter-spacing: var(--ktrack); word-spacing: var(--kword); text-transform: uppercase; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide h2 { position: absolute; left: 70px; right: 70px; top: calc(34px + var(--ksize) * 1.25); margin: 0; font: var(--hweight) calc(64px * var(--hscale))/var(--hlead) var(--head), Impact, sans-serif; letter-spacing: var(--htrack); word-spacing: var(--hword); text-transform: var(--hcase); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none; text-shadow: var(--hshadow, none); }
.slide.center .kicker, .slide.center h2 { text-align: center; }
.slide .kicker, .slide .cover .sub, .slide .fullTitle .k { text-shadow: var(--hshadow, none); }
.slide .body { text-shadow: var(--bshadow, none); }
.slide.nokicker h2 { top: 40px; }
.slide .count { position: absolute; right: 70px; top: 34px; font-family: var(--kfont), system-ui, sans-serif; font-size: 15px; line-height: 1.25; opacity: .55; }
.slide.center .count { display: none; }

.slide .content { position: absolute; left: 70px; right: 70px; top: 160px; height: 460px; display: flex; gap: var(--cgap); }
.slide .content.right { flex-direction: row-reverse; }
.slide .figure { flex: 0 0 var(--imgw); border-radius: 6px; overflow: hidden; background: center/cover no-repeat; position: relative; }
.slide .figure.empty { border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 16px; opacity: .7; cursor: pointer; }
.slide .body { flex: 1; min-width: 0; height: 460px; column-gap: var(--cgap); column-fill: auto; overflow: hidden; letter-spacing: var(--track); word-spacing: var(--word); text-align: var(--align); }
.slide .body p { margin: 0 0 var(--pgap); text-indent: var(--indent); outline: none; break-inside: auto; orphans: 2; widows: 2; }
.slide .body p.li { padding-left: 1.1em; text-indent: -1.1em; margin-bottom: calc(var(--pgap) * .45); }
.slide .body p.li::before { content: "•"; display: inline-block; width: 1.1em; text-indent: 0; color: var(--accent); }
.slide .body p:focus, .slide h2:focus { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 3px; }
/* an empty paragraph shows "…" only where it can be typed in, never to someone watching */
.slide .body p[contenteditable]:empty::after { content: "…"; opacity: .4; }
/* "Big statement" layout: one column, large, centred both ways. The size is on the paragraphs (em of the
   body) so it composes with the shrink-to-fit font-size on .body; auto margins centre without hiding overflow. */
.slide .body.quote { column-count: 1 !important; display: flex; flex-direction: column; text-align: center; --indent: 0em; }
.slide .body.quote p { flex: none; font: var(--qweight, 400) calc(1em * var(--qscale, 2.2))/1.25 var(--qfont, var(--head)), system-ui, sans-serif; }
.slide .body.quote p:first-child { margin-top: auto; }
.slide .body.quote p:last-child { margin-bottom: auto; }
/* a sub-heading inside the text: the title of a sub-section kept together with its group (three sizes) */
.slide .body p.sub { margin: .7em 0 .3em; text-indent: 0; text-align: left; font: var(--hweight) 1.7em/1.1 var(--head), Impact, sans-serif; letter-spacing: var(--htrack); word-spacing: var(--hword); text-transform: var(--hcase); text-shadow: var(--hshadow, none); break-after: avoid; }
.slide .body p.sub.s2 { font-size: 1.35em; }
.slide .body p.sub.s3 { font-size: 1.1em; }
.slide .body p.sub:first-child { margin-top: 0; }
/* column break (block.col): the paragraph starts at the top of the next column; a margin after a forced break is kept, so none above it there */
.slide .body p.colbrk { break-before: column; margin-top: 0; }
/* while editing, a short bar along its top edge shows the break: inside the paragraph, since the body clips what is above a column's top, and a background, so it takes no room */
.slide .body p.colMark { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 56px 2px; background-repeat: no-repeat; background-position: 0 0; }
/* manual slide break marker (edit mode only), out of flow above the text */
.slide .brkMark { all: unset; position: absolute; top: -27px; left: 0; cursor: pointer; font: 13px/20px system-ui, sans-serif; padding: 0 8px; border: 1px dashed color-mix(in srgb, var(--ink) 45%, transparent); border-radius: 10px; opacity: .5; white-space: nowrap; }
.slide .brkMark:hover, .slide .brkMark:focus-visible { opacity: 1; border-color: var(--accent); color: var(--accent); }
.slide .figure ~ .brkMark { left: calc(var(--imgw) + var(--cgap)); }
.slide .content.right .brkMark { left: 0; }
.slide s { opacity: .55; }

.slide .full { position: absolute; inset: 0 0 70px 0; background: center/cover no-repeat; }
.slide .full.empty { display: flex; align-items: center; justify-content: center; font-size: 22px; opacity: .6; cursor: pointer;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink) 6%, transparent) 0 14px, transparent 14px 28px); }
.slide .full.cover { inset: 0; }
.slide .fullTitle { position: absolute; left: 70px; bottom: 110px; right: 70px; }
.slide .fullTitle .k { color: var(--accent); font-family: var(--kfont), system-ui, sans-serif; letter-spacing: var(--ktrack); word-spacing: var(--kword); text-transform: uppercase; font-size: var(--ksize); }
.slide .fullTitle h2 { position: static; font-size: calc(96px * var(--hscale)); text-shadow: var(--hshadow, 0 2px 18px rgba(0,0,0,.6)); }

.slide .gallery { position: absolute; left: 70px; right: 70px; top: 160px; height: 460px; display: grid; gap: 14px; }
.slide .gallery div { background: center/cover no-repeat; border-radius: 4px; }

.slide .video { margin: 0 auto; height: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000 center/cover no-repeat; position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slide .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.slide .video .play { width: 96px; height: 96px; border-radius: 50%; background: var(--accent); position: relative; box-shadow: 0 4px 24px rgba(0,0,0,.5); }
.slide .video .play::after { content: ""; position: absolute; left: 37px; top: 28px; border: 20px solid transparent; border-left: 32px solid var(--bg); border-right: 0; }
.slide .video .src { position: absolute; left: 14px; right: 14px; bottom: 10px; font-size: 13px; color: #fff; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px #000; }
.slide .video.bad { cursor: default; background: none; border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); padding: 0 40px; text-align: center; font-size: 16px; }
/* video options: the video fills the whole slide, behind the title and the menu bar (vfull); nothing but
   the video is drawn (vsolo); the rest goes away while it plays, which is while it holds an iframe (vplay) */
.slide.vfull .content { left: 0; right: 0; top: 0; height: 720px; }
.slide.vfull .video { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.slide.vfull .kicker, .slide.vfull h2, .slide.vfull .count { z-index: 2; text-shadow: var(--hshadow, 0 2px 14px rgba(0,0,0,.75)); }
.slide.vfull .kicker, .slide.vfull .count, .slide.vfull h2:not([contenteditable]) { pointer-events: none; }
.slide.vplay:has(.video iframe) .kicker, .slide.vplay:has(.video iframe) h2, .slide.vplay:has(.video iframe) .count, .slide.vplay:has(.video iframe) .nav, .slide.vplay:has(.video iframe) .logo, .slide.vplay:has(.video iframe) .hot, .slide.vplay:has(.video iframe) .free { display: none; }
/* stop: takes the player away again (the poster and the slide's own things come back). Top right of the
   video, below the row of buttons YouTube draws along its top (so its settings stay in reach); the export
   hides its "Save as PDF" button, which is in that corner of the window, while a video plays. */
.slide .video .vstop { all: unset; display: none; position: absolute; z-index: 2; top: 60px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font: 24px/40px system-ui, sans-serif; text-align: center; cursor: pointer; opacity: .55; }
.slide .video .vstop:hover, .slide .video .vstop:focus-visible { opacity: 1; }
.slide .video:has(iframe) .vstop { display: block; }
.slide.vsolo .kicker, .slide.vsolo h2, .slide.vsolo .count, .slide.vsolo .nav, .slide.vsolo .logo, .slide.vsolo .hot, .slide.vsolo .free, .slide.vsolo .bgimg, .slide.vsolo .dim { display: none; }
.slide.vsolo .content { top: 130px; }
.slide.vsolo.vfull .content { top: 0; }
/* the sub-section buttons of a group's first slide: groups (.chipGroup, optional .chipHead) of buttons
   (.chipSet: wrapping rows, a grid or a list); alignment, spacing and size come from design.chips */
.slide .chips { display: flex; flex-direction: column; justify-content: var(--chv, flex-start); gap: calc(var(--chy, 14px) + 18px); width: 100%; min-height: 0; }
.slide .chips.side { flex-direction: row; justify-content: flex-start; align-items: flex-start; align-self: var(--chv, flex-start); gap: calc(var(--chx, 14px) + 26px); }
.slide .chips.side .chipGroup { flex: 1 1 0; min-width: 0; }
.slide .chipHead { margin-bottom: 10px; font-family: var(--kfont), system-ui, sans-serif; font-size: var(--ksize); line-height: 1.25; letter-spacing: var(--ktrack); word-spacing: var(--kword); text-transform: uppercase; color: var(--accent); text-shadow: var(--hshadow, none); }
.slide .chipSet { display: flex; flex-wrap: wrap; justify-content: var(--cha, flex-start); align-content: flex-start; gap: var(--chy, 14px) var(--chx, 14px); }
.slide .chipSet.list { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: var(--cha, flex-start); }
.slide .chipSet.grid { display: grid; grid-template-columns: repeat(var(--chc, 3), minmax(0, 1fr)); }
.slide .chipSet.grid button { text-align: center; }
.slide .chips button { all: unset; cursor: pointer; border: 2px solid var(--accent); border-radius: 999px; padding: .2em .73em; font: var(--hweight) calc(30px * var(--chs, 1))/1.2 var(--head), Impact, sans-serif; letter-spacing: var(--htrack); word-spacing: var(--hword); text-transform: var(--hcase); }
.slide .chips button:hover { background: var(--accent); color: var(--bg); }

.slide .cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 0 90px 70px; }
.slide .cover h1 { margin: 0; font: var(--hweight) calc(140px * var(--cscale))/1 var(--head), Impact, sans-serif; letter-spacing: var(--htrack); word-spacing: var(--hword); text-transform: var(--hcase); outline: none; text-shadow: var(--hshadow, 0 2px 22px rgba(0,0,0,.5)); }
.slide .cover .sub { font-family: var(--kfont), system-ui, sans-serif; font-size: 34px; color: var(--accent); letter-spacing: var(--ktrack); word-spacing: var(--kword); text-transform: uppercase; outline: none; }
.slide .cover .meta { position: absolute; bottom: 86px; left: 90px; right: 90px; font-size: 13px; opacity: .6; }

.slide .nav { position: absolute; left: 70px; right: 70px; bottom: 22px; height: 30px; display: flex; gap: 5px; z-index: 4; }
.slide .nav button { all: unset; cursor: pointer; box-sizing: border-box; height: 30px; min-width: 0; border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 4px; font-size: 13px; line-height: 27px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 5px; }
.slide .nav button:hover { border-color: var(--accent); }
.slide .nav .detail { display: flex; gap: 3px; border: 1.5px solid var(--accent); border-radius: 6px; padding: 2px; height: 30px; box-sizing: border-box; min-width: 0; }
.slide .nav .detail button { height: 23px; line-height: 20px; border-radius: 3px; border-color: color-mix(in srgb, var(--ink) 25%, transparent); font-size: 12px; padding: 0; text-overflow: clip; }
.slide .nav .detail button.on { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; padding: 0 6px; text-overflow: ellipsis; }

/* links: an icon on the slide, and the pop-up it opens (drawn inside the slide, so it scales with it) */
.slide .hot { all: unset; position: absolute; z-index: 5; display: block; width: var(--hs, 56px); height: var(--hs, 56px); transform: translate(-50%, -50%); border-radius: 50%; color: var(--hc, var(--accent)); --hi: var(--bg); cursor: pointer; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.slide .hot svg { display: block; width: 100%; height: 100%; }
.slide .hot.pulse { animation: hotPulse 2.6s ease-in-out infinite; }
.slide .hot:hover { animation-play-state: paused; }
.slide .hot:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* text and images placed freely on a slide (itemEl() in app.js) */
.slide .free { position: absolute; z-index: 4; box-sizing: border-box; }
.slide .free.back { z-index: auto; }
.slide .free.text { line-height: 1.2; white-space: pre-wrap; overflow-wrap: break-word; font-family: var(--body), system-ui, sans-serif; }
.slide .free.text.head { font-family: var(--head), Impact, sans-serif; font-weight: var(--hweight); letter-spacing: var(--htrack); word-spacing: var(--hword); text-transform: var(--hcase); line-height: 1.05; }
.slide .free.image img { display: block; width: 100%; height: auto; border-radius: var(--fr, 0); }
.slide .free.image.shadow img { filter: drop-shadow(0 8px 22px rgba(0,0,0,.55)); }
.slide .free.edit { cursor: move; user-select: none; touch-action: none; }
.slide .free.edit:hover { outline: 1px dashed color-mix(in srgb, var(--ink) 55%, transparent); outline-offset: 3px; }
.slide .free.edit.sel { outline: 2px dashed var(--ink); outline-offset: 3px; z-index: 6; }
.slide .free .grip { display: none; position: absolute; right: -10px; bottom: -10px; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); cursor: ew-resize; }
.slide .free.sel .grip { display: block; }
/* a free slide with nothing on it yet, while editing: what to do with it (never in Present or the export) */
.slide .freeHint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 560px; padding: 22px 28px; box-sizing: border-box; border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 10px; font-size: 20px; line-height: 1.4; text-align: center; color: color-mix(in srgb, var(--ink) 75%, transparent); }
.slide .freeHint b { display: block; margin-bottom: 6px; font-size: 26px; color: var(--ink); }
.slide .hot.sel { outline: 2px dashed var(--ink); outline-offset: 4px; cursor: move; }
@keyframes hotPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .slide .hot.pulse { animation: none; } }
.slide .pop { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.64); }
.slide .pop[hidden] { display: none; }
.slide .popBox { position: relative; display: flex; flex-direction: column; max-width: 1100px; max-height: 624px; background-color: var(--bg); background-image: var(--grad, none); color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--accent) 65%, transparent); border-radius: 10px; overflow: hidden; box-shadow: 0 20px 70px rgba(0,0,0,.6); }
.slide .popBox.row { flex-direction: row; }
.slide .popBox img { display: block; flex: 0 0 auto; align-self: center; max-width: 100%; max-height: 360px; }
.slide .popBox.pic img { max-height: 560px; }
.slide .popBox.pic img:last-child { max-height: 620px; }
.slide .popBox.row img { max-width: 560px; max-height: 620px; }
.slide .popBody { flex: 1 1 auto; min-width: 0; min-height: 0; overflow-y: auto; padding: 30px 40px 32px; max-width: 700px; font-size: 19px; line-height: 1.5; }
.slide .popBox.col .popBody { align-self: center; }
.slide .popBox.row .popBody { flex: 0 1 500px; }
.slide .popBox.wide .popBody { max-width: 860px; }
.slide .popBox.row.wide .popBody { flex-basis: 540px; }
.slide .popBox.pic .popBody { flex: none; max-width: none; padding: 14px 54px 16px 24px; }
.slide .popBody h3 { margin: 0 34px 14px 0; font: var(--hweight) calc(38px * var(--hscale))/1.1 var(--head), Impact, sans-serif; letter-spacing: var(--htrack); word-spacing: var(--hword); text-transform: var(--hcase); }
.slide .popBox.pic .popBody h3 { margin: 0; font-size: calc(26px * var(--hscale)); }
.slide .popBody h3:last-child { margin-bottom: 0; }
.slide .popText p { margin: 0 0 .75em; }
.slide .popText p:last-child { margin-bottom: 0; }
.slide .popText p.li { padding-left: 1.1em; text-indent: -1.1em; margin-bottom: .35em; }
.slide .popText p.li::before { content: "•"; display: inline-block; width: 1.1em; text-indent: 0; color: var(--accent); }
.slide .popText.mono { margin: 0; font: 16px/1.5 "Courier Prime", "Courier New", Courier, monospace; white-space: pre-wrap; tab-size: 4; }
.slide .popX { all: unset; position: absolute; z-index: 1; top: 8px; right: 10px; width: 34px; height: 34px; border-radius: 50%; text-align: center; font: 26px/32px system-ui, sans-serif; cursor: pointer; background: color-mix(in srgb, var(--bg) 75%, transparent); color: var(--ink); }
.slide .popX:hover, .slide .popX:focus-visible { background: var(--accent); color: var(--bg); }

/* ---------- modes ---------- */
#measure { position: absolute; left: -99999px; top: 0; visibility: hidden; }
#print { display: none; }
body.present #topbar, body.present #outline, body.present #panel, body.present #pager, body.present #notice { display: none; }
body.present { background: #000; }
/* no shadow around the slide there: a theme's shadow colour would show as a glow on the black */
body.present #stage .slide { box-shadow: none; }
body.present .figure.empty, body.present .full.empty { visibility: hidden; }

@media (max-width: 1100px) { #outline, #sepL { display: none; } #foldL { visibility: hidden; } }

@media print {
  @page { size: 1280px 720px; margin: 0; }
  html, body { height: auto; overflow: visible; background: #fff; }
  body > *:not(#print) { display: none !important; }
  #print { display: block; }
  #print .slide { break-after: page; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .figure.empty, .full.empty { visibility: hidden; }
}

/* ---- phone layout (phoneEl() in app.js): the view link and the exported file on a phone held upright.
   Every rule starts with ".phone", which is how the export finds them. ---- */
.phone { position: fixed; inset: 0; z-index: 15; overflow-y: auto; background: var(--bg); color: var(--ink); font: 400 17px/1.5 system-ui, sans-serif; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.phone .phNav { position: sticky; top: 0; z-index: 3; display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--body), system-ui, sans-serif; }
.phone .phNav a { flex: none; padding: 4px 12px; border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 999px; color: inherit; text-decoration: none; font-size: 13px; line-height: 20px; white-space: nowrap; }
.phone .phNav a:first-child { border-color: var(--accent); color: var(--accent); }
.phone .phSec { position: relative; overflow: hidden; padding: 34px 22px 42px; scroll-margin-top: 46px; background-color: var(--bg); background-image: var(--grad, none); color: var(--ink); font-family: var(--body), system-ui, sans-serif; font-weight: var(--bweight); letter-spacing: var(--track); word-spacing: var(--word); }
.phone .phSec > * { position: relative; }
.phone .phSec > .phBg, .phone .phSec > .phDim { position: absolute; inset: 0; }
.phone .phBg { background: center/cover no-repeat; }
.phone .phDim { background-color: var(--bg); background-image: var(--grad, none); }
.phone .phKicker { margin-bottom: 6px; font-family: var(--kfont), system-ui, sans-serif; font-size: 12px; line-height: 1.3; letter-spacing: var(--ktrack); word-spacing: var(--kword); text-transform: uppercase; color: var(--accent); }
.phone h1, .phone h2 { margin: 0 0 16px; font: var(--hweight) calc(40px * var(--hscale))/1.05 var(--head), Impact, sans-serif; letter-spacing: var(--htrack); word-spacing: var(--hword); text-transform: var(--hcase); overflow-wrap: anywhere; }
.phone .phCover { min-height: 86vh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.phone .phCover h1 { font-size: calc(60px * var(--cscale)); margin-bottom: 10px; text-shadow: var(--hshadow, 0 2px 18px rgba(0,0,0,.5)); }
.phone .phSub { font-family: var(--kfont), system-ui, sans-serif; font-size: 17px; letter-spacing: var(--ktrack); word-spacing: var(--kword); text-transform: uppercase; color: var(--accent); }
.phone .phMeta { margin-top: 28px; font-size: 12px; opacity: .6; }
.phone .phChips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.phone .phChips a { padding: 4px 16px; border: 2px solid var(--accent); border-radius: 999px; color: inherit; text-decoration: none; font: var(--hweight) 20px/1.3 var(--head), Impact, sans-serif; letter-spacing: var(--htrack); text-transform: var(--hcase); }
.phone .phPics { display: flex; align-items: flex-start; gap: 10px; margin: 0 -22px 18px; padding: 0 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.phone .phPic { flex: 0 0 100%; aspect-ratio: 4 / 3; border-radius: 6px; background: center/cover no-repeat; scroll-snap-align: center; }
.phone .phPics.many .phPic { flex-basis: 86%; }
.phone .phPics:not(.many) .phPic { margin: 0 auto; } /* one that is narrower than the column (ph.w) stands in the middle */
.phone .phVideo { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; margin-bottom: 18px; border-radius: 6px; background: #000 center/cover no-repeat; }
.phone .phVideo i { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,.5); }
.phone .phVideo i::after { content: ""; position: absolute; left: 25px; top: 18px; border: 14px solid transparent; border-left: 22px solid var(--bg); border-right: 0; }
.phone .phBody { line-height: 1.5; text-align: left; text-shadow: var(--bshadow, none); }
.phone h2, .phone .phKicker, .phone .phSub { text-shadow: var(--hshadow, none); }
.phone .phBody p { margin: 0 0 .9em; }
.phone .phBody p.li { padding-left: 1.1em; text-indent: -1.1em; margin-bottom: .4em; }
.phone .phBody p.li::before { content: "•"; display: inline-block; width: 1.1em; text-indent: 0; color: var(--accent); }
.phone .phBody p.sub { margin: 1.2em 0 .4em; font: var(--hweight) 1.6em/1.1 var(--head), Impact, sans-serif; letter-spacing: var(--htrack); text-transform: var(--hcase); }
.phone .phBody p.sub.s2 { font-size: 1.3em; }
.phone .phBody p.sub.s3 { font-size: 1.1em; }
.phone .phBody.quote { text-align: center; padding: 18px 0; }
.phone .phFree { display: flex; flex-direction: column; gap: 18px; padding: 56px 22px; }
.phone .phFreeText { line-height: 1.25; white-space: pre-wrap; overflow-wrap: break-word; }
.phone .phFreeText.head { font-family: var(--head), Impact, sans-serif; font-weight: var(--hweight); letter-spacing: var(--htrack); text-transform: var(--hcase); line-height: 1.05; }
.phone .phFreeImgs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.phone .phFreeImgs img { display: block; height: auto; }
.phone .phBody.quote p { font: var(--qweight, 400) 27px/1.25 var(--qfont, var(--head)), system-ui, sans-serif; }
.phone .phLinks { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.phone .phLink, .phone .phMore summary { display: block; padding: 10px 14px; border: 1.5px solid var(--accent); border-radius: 8px; color: inherit; text-decoration: none; font-weight: 600; cursor: pointer; }
.phone .phMore[open] summary { border-radius: 8px 8px 0 0; }
.phone .phMore > div { padding: 12px 14px 4px; border: 1.5px solid var(--accent); border-top: 0; border-radius: 0 0 8px 8px; font-size: 15px; }
.phone .phMore img { display: block; max-width: 100%; margin-bottom: 10px; border-radius: 4px; }
.phone .phMore p { margin: 0 0 .8em; }
.phone .phMore p.li { padding-left: 1.1em; text-indent: -1.1em; margin-bottom: .4em; }
.phone .phMore p.li::before { content: "•"; display: inline-block; width: 1.1em; text-indent: 0; color: var(--accent); }
.phone .phMore pre { margin: 0 0 .8em; white-space: pre-wrap; font: 13px/1.45 ui-monospace, Consolas, monospace; }
.phone s { opacity: .55; }
/* the view link's page while the phone layout is shown */
body.phoneOn main, body.phoneOn .viewBtn { display: none; }
