/* THE SKETCHBOOK (@ovi 2026-10-29), library only.
   Real scale, its own shelf, a tray rather than a toolbar. */
/* THE SAME VIBE AS THE BOOKS HE READS.
   Robin: "by the same vibe as the books i read i meam the layout and css used for the
   ereader." So this takes the reader's own language rather than my approximation of it:
   the same four tokens, the same three tones, the same bordered buttons, the same serif
   for what you write and system sans for the chrome around it. The tone is SHARED — set
   it in the reader and the sketchbook is already in it, because it is read from the
   reader's own stored preference rather than kept twice.

   The class names are its own. The reader owns .rd-bar and .rd-btn, and the last time I
   borrowed one of its names I hid its toolbar. */
#ovi-sk {
  --sk-bg: #faf7f0; --sk-ink: #1c1a17;
  --sk-bar: rgba(0,0,0,.05); --sk-line: rgba(0,0,0,.12);
  /* THE BOTTOM OF A PHONE IS NOT WHERE THE PAGE THINKS IT IS.
     Robin: "Pen tool icon is always off screen it should be pinned not move with paper."
     It was pinned — to a bottom edge he could not see. A fixed overlay with inset:0 is
     sized to the LARGE viewport, as though the browser's own bars were hidden, so the
     last 60 to 100 pixels of it sit behind the address bar and the navigation bar. The
     pen sat 16px up from that invisible edge, which is to say underneath them.
     Three defences, because one is not enough across browsers: the dynamic viewport
     unit where it exists, a measured height from visualViewport where it does not, and
     the safe-area inset on anything that lives near an edge. */
  position: fixed; left: 0; top: var(--sk-vt, 0px); width: 100%;   /* ovi-keyboard: follows the visual viewport */
  height: 100vh;
  height: 100dvh;
  /* LAST, so it wins. dvh is right for the address bar and wrong for the keyboard — it
     does not shrink when one opens — and he writes in this thing. The measured height
     from visualViewport knows about both, so it is the final word. */
  height: var(--sk-vh, 100dvh);
  z-index: 2147483400; display: none;
  flex-direction: column;
  background: var(--sk-bg); color: var(--sk-ink);
  font-family: var(--rd-face, Georgia, 'Times New Roman', serif);
  overscroll-behavior: contain; }
#ovi-sk[data-tone="sepia"] { --sk-bg:#f4ecd8; --sk-ink:#4a3b28;
  --sk-line:rgba(74,59,40,.2); --sk-bar:rgba(74,59,40,.07); }
#ovi-sk[data-tone="dark"]  { --sk-bg:#14161a; --sk-ink:#d8d6d1;
  --sk-line:rgba(216,214,209,.2); --sk-bar:rgba(255,255,255,.05); }
#ovi-sk.on { display: flex; }
#ovi-sk * { box-sizing: border-box; }

/* ------------------------------------------------------------------ the top band */
/* the reader's bar, to the pixel: its padding, its safe-area inset, its type, its rule */
#ovi-sk .sk2-top { flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  font: 600 13px/1.2 system-ui, sans-serif;
  background: var(--sk-bar);
  border-bottom: 1px solid var(--sk-line); }
#ovi-sk .sk2-top input { flex: 1 1 auto; min-width: 0; background: transparent;
  color: inherit; border: 0; border-bottom: 1px dashed var(--sk-line);
  padding: 4px 2px;
  font: 600 15px/1.3 var(--rd-face, Georgia, 'Times New Roman', serif); }
#ovi-sk .sk2-top input:focus { outline: none; border-bottom-color: currentColor; }
/* the glyph is the narrow form of the word, never both at once */
#ovi-sk .sk2-top .sk2-ico { display: none; width: 17px; height: 17px; }
@media (max-width: 430px) {
  #ovi-sk .sk2-top .sk2-lab { display: none; }
  #ovi-sk .sk2-top .sk2-ico { display: block; }
  /* a fourth glyph (Share) came into the band, so the glyph buttons and the gaps are a little tighter,
     which keeps the room for the title that three of them used to leave */
  #ovi-sk .sk2-top { gap: 5px; }
  /* the attribute makes this outrank the general button rule, which comes after the query and used to
     win silently, so this tightening has never applied until now */
  #ovi-sk .sk2-top button[data-sk] { padding: 0 6px; min-width: 31px; }
}
/* the reader's own button: bordered, transparent, 32 tall, and it presses in */
#ovi-sk .sk2-top button, #ovi-sk .sk2-foot button, #ovi-sk .sk2-tray button {
  -webkit-appearance: none; appearance: none; cursor: pointer; flex: 0 0 auto;
  min-width: 34px; height: 32px; padding: 0 9px;
  border: 1px solid var(--sk-line); border-radius: 7px;
  background: transparent; color: inherit;
  font: 600 13px/1 system-ui, sans-serif; }
#ovi-sk .sk2-top button:active, #ovi-sk .sk2-foot button:active,
#ovi-sk .sk2-tray button:active { transform: translateY(1px); }
#ovi-sk .sk2-top button.on, #ovi-sk .sk2-tray button.on {
  background: var(--sk-ink); color: var(--sk-bg); border-color: var(--sk-ink); }
#ovi-sk .sk2-top button[disabled], #ovi-sk .sk2-foot button[disabled] {
  opacity: .35; cursor: default; }

/* --------------------------------------------------------- THE SHELF of sketchbooks
   Robin: "I dont want to select them from a list i wakt to take them off the shelf like
   i do the books." So they stand, and you pull one out. */
#ovi-sk .sk2-shelf { flex: 1 1 auto; overflow-y: auto; padding: 18px 14px 60px;
  background: var(--sk-bg); }
#ovi-sk .sk2-row { position: relative; display: flex; align-items: flex-end; gap: 9px;
  min-height: 188px; margin: 0 0 6px; padding: 0 4px 12px; }
#ovi-sk .sk2-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 11px; border-radius: 2px;
  background: linear-gradient(180deg, #6b4e32, #3a2a16);
  box-shadow: 0 4px 10px rgba(0,0,0,.6); }
/* a moleskine stood on its end: black canvas, a rounded fore edge, an elastic */
#ovi-sk .sk2-bk { position: relative; flex: 0 0 auto; width: 34px; height: 176px;
  cursor: pointer; border-radius: 2px 5px 5px 2px; overflow: hidden;
  background: #17161a;
  box-shadow: 0 4px 10px rgba(0,0,0,.55), inset -3px 0 6px rgba(0,0,0,.5),
              inset 3px 0 5px rgba(255,255,255,.05);
  transition: transform .18s ease, box-shadow .18s ease; }
#ovi-sk .sk2-bk[data-cloth="claret"] { background: #3b1118; }
#ovi-sk .sk2-bk[data-cloth="forest"] { background: #16281d; }
#ovi-sk .sk2-bk[data-cloth="navy"]   { background: #141d2c; }
#ovi-sk .sk2-bk[data-cloth="tan"]    { background: #3a2c1c; }
#ovi-sk .sk2-bk[data-cloth="plum"]   { background: #241a33; }
/* the canvas weave, drawn rather than imaged */
#ovi-sk .sk2-bk::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg,  rgba(0,0,0,.25) 0 1px, transparent 1px 3px); }
/* the elastic closure */
#ovi-sk .sk2-bk::after { content: ""; position: absolute; right: 5px; top: -2px; bottom: -2px;
  width: 3px; background: rgba(0,0,0,.65); box-shadow: 0 0 3px rgba(0,0,0,.6); }
#ovi-sk .sk2-bk b { position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  writing-mode: vertical-rl; max-height: 142px; overflow: hidden;
  font: 600 10px/1 var(--ovi-heading, Georgia, serif); letter-spacing: .04em;
  color: rgba(255,255,255,.72); white-space: nowrap; text-overflow: ellipsis; }
#ovi-sk .sk2-bk.out { transform: translateY(-16px) scale(1.04);
  box-shadow: 0 16px 26px rgba(0,0,0,.7); }
/* pulled out, it turns to face you */
#ovi-sk .sk2-face { position: absolute; inset: 0; display: none; padding: 9px 7px;
  background: inherit; }
#ovi-sk .sk2-bk.out { width: 120px; }
#ovi-sk .sk2-bk.out b { display: none; }
#ovi-sk .sk2-bk.out .sk2-face { display: flex; flex-direction: column;
  justify-content: space-between; }
#ovi-sk .sk2-face em { font: 600 12px/1.3 var(--ovi-heading, Georgia, serif);
  font-style: normal; color: rgba(255,255,255,.88); }
#ovi-sk .sk2-face span { font: 500 10px/1.3 inherit; color: rgba(255,255,255,.5); }
#ovi-sk .sk2-new { flex: 0 0 auto; width: 34px; height: 176px; cursor: pointer;
  border-radius: 2px 5px 5px 2px; border: 1px dashed var(--sk-line);
  background: transparent; color: inherit; opacity: .6;
  display: flex; align-items: center; justify-content: center;
  font: 300 22px/1 inherit; }
#ovi-sk .sk2-none { padding: 40px 10px; text-align: center; opacity: .65;
  font: 400 15px/1.6 var(--rd-face, Georgia, serif); }
#ovi-sk .sk2-none a { color: #9fe; }
#ovi-sk .sk2-veil { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(250, 247, 240, .72);
  font: 500 15px/1.4 var(--rd-face, Georgia, serif); color: #1c1a17; touch-action: none; }

/* ------------------------------------------------------------------ THE LEAF */
#ovi-sk .sk2-stage { flex: 1 1 auto; min-height: 0; position: relative;
  overflow: hidden; background: var(--sk-bg); touch-action: none; }
#ovi-sk .sk2-pan { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#ovi-sk .sk2-leaf { position: relative; border-radius: 2px;
  box-shadow: 0 14px 34px rgba(0,0,0,.7); overflow: hidden; }
#ovi-sk .sk2-paper, #ovi-sk .sk2-ink { position: absolute; inset: 0; display: block; }
#ovi-sk .sk2-paper { z-index: 0; }
#ovi-sk .sk2-text { position: absolute; inset: 0; z-index: 2; outline: none;
  overflow: hidden; color: #26211c; }
#ovi-sk .sk2-ink { z-index: 1000; pointer-events: none; }
#ovi-sk.drawing .sk2-ink { pointer-events: auto; }
#ovi-sk.drawing .sk2-text { pointer-events: none; }
/* ovi-typewriter: text blocks dropped anywhere, and the Select mode */
#ovi-sk .sk2-text .sk2-block { position: absolute; min-height: 1.6em; padding: 2px 6px 2px 8px; z-index: 3; outline: 1px dashed transparent; border-radius: 2px; }
#ovi-sk.selecting .sk2-text .sk2-block, #ovi-sk .sk2-text .sk2-block:focus-within { outline-color: rgba(170, 52, 43, .6); }
#ovi-sk .sk2-bh { position: absolute; left: -2px; right: -2px; top: -24px; display: none; pointer-events: auto; gap: 4px; font: 12px/1 sans-serif; user-select: none; -webkit-user-select: none; z-index: 4; }   /* ovi-blockpick: a bar the width of the block */
#ovi-sk.selecting .sk2-bh, #ovi-sk .sk2-text .sk2-block:focus-within .sk2-bh, #ovi-sk .sk2-text .sk2-block.picked .sk2-bh { display: flex; }
#ovi-sk .sk2-bh i { cursor: move; touch-action: none; font-style: normal; flex: 1 1 auto; text-align: center; padding: 4px 7px; background: #fffdf0; border: 1px solid #26211c; border-radius: 3px; letter-spacing: .04em; }
#ovi-sk .sk2-text .sk2-block.picked { outline: 2px solid #26211c; background: rgba(38, 33, 28, .05); cursor: move; touch-action: none; }   /* ovi-blockpick: picked up, any touch on it moves it */
#ovi-sk .sk2-text .sk2-block.picked .sk2-bh i { background: #26211c; color: #fffdf0; }
#ovi-sk .sk2-bh b { cursor: pointer; padding: 3px 8px; background: #fffdf0; border: 1px solid #26211c; border-radius: 3px; font-weight: 700; }
#ovi-sk.placing .sk2-stage { cursor: text; }
#ovi-sk.placing .sk2-text { pointer-events: none; }
#ovi-sk.placing .sk2-text .sk2-block { pointer-events: auto; }
#ovi-sk .sk2-text ::selection, #ovi-sk .sk2-text::selection { background: rgba(170, 52, 43, .35); color: inherit; }
#ovi-sk .sk2-text ::-moz-selection { background: rgba(170, 52, 43, .35); color: inherit; }
#ovi-sk .sk2-text .sk2-block:focus-within { outline: 2px solid rgba(170, 52, 43, .85); background: rgba(170, 52, 43, .06); }
#ovi-sk .sk2-words button.on { background: #1c1a17; color: #fffdf0; }
#ovi-sk.selecting .sk2-text { user-select: text; -webkit-user-select: text; touch-action: auto; cursor: text; }
#ovi-sk .sk2-tw { height: 22px; width: auto; vertical-align: -6px; margin-right: 6px; }
#ovi-sk .sk2-words button[data-do="typewriter"] { font-weight: 700; }
/* NOTHING MAY BREAK THE RHYTHM, AND THE SITE WILL TRY.
   Robin: "Whats the point of graph when the wroting doesnt write on the lines."

   Two things were stopping it. A margin on any block pushes every line after it off the
   ruling, so blocks are spaced in whole lines or not at all. And the sketchbook is an
   overlay living inside the shop's page, so the theme's own `p` rule reaches into it and
   beats inheritance on specificity — measured, the leaf was set to a 27px line and its
   paragraphs were still rendering at 24.3px, which is precisely the fault he could see.

   This is the same place the reader needs !important and for the same reason: it is not
   winning an argument with a rule it can see, it is insulating content from a stylesheet
   it does not control. */
/* NOT .sk2-text ITSELF. Putting the leaf in this list made it inherit the shell's
   14px/21px through my own !important and overrule the millimetre rhythm set on it
   inline — the writing was insulated from the site and from itself. Only its children
   are insulated; they inherit the rhythm from it. */
#ovi-sk .sk2-text p, #ovi-sk .sk2-text div, #ovi-sk .sk2-text li,
#ovi-sk .sk2-text blockquote, #ovi-sk .sk2-text ul, #ovi-sk .sk2-text ol,
#ovi-sk .sk2-text span, #ovi-sk .sk2-text b, #ovi-sk .sk2-text i,
#ovi-sk .sk2-text strong, #ovi-sk .sk2-text em {
  line-height: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
  margin: 0 !important;
  letter-spacing: normal !important;
}
/* a span that names a face keeps it: the rule above makes every span take the leaf's, to keep
   the theme's styles out, so the face rides in a custom property the span carries itself */
#ovi-sk .sk2-text span[data-ff] { font-family: var(--ff, inherit) !important; }
#ovi-sk .sk2-text ul, #ovi-sk .sk2-text ol { padding-left: 1.6em !important; }
/* a heading takes a whole line of its own rather than a line and a half */
#ovi-sk .sk2-text h2 { margin: 0 !important; line-height: inherit !important;
  font-size: inherit !important; font-weight: 700; letter-spacing: .02em; }
#ovi-sk .sk2-text blockquote { padding: 0 0 0 .7em !important;
  border-left: 2px solid currentColor; opacity: .85; font-style: italic; }
#ovi-sk .sk2-text cite { display: block; font-style: normal; opacity: .6;
  line-height: inherit !important; font-size: inherit !important; }

/* ------------------------------------------------------------------ the font picker */
#ovi-sk .sk2-fontbtn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 15px; }
#ovi-sk .sk2-sheet-card.sk2-fpcard { display: flex; flex-direction: column;
  height: min(86vh, 680px); max-height: 86vh; overflow: hidden; padding-bottom: 14px; }
#ovi-sk .sk2-fp { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; gap: 8px; }
#ovi-sk .sk2-fp > * { flex: 0 0 auto; }
#ovi-sk .sk2-fp > .sk2-fp-list { flex: 1 1 auto; }
#ovi-sk .sk2-fp-top { display: flex; align-items: center; justify-content: space-between; }
#ovi-sk .sk2-fp-top h4 { margin: 0; }
#ovi-sk .sk2-fp-top .sk2-fp-done { -webkit-appearance: none; appearance: none; cursor: pointer;
  min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--sk-line);
  background: var(--sk-ink); color: var(--sk-bg); font: 700 13px/1 system-ui, sans-serif; }
#ovi-sk .sk2-fp-aim { display: flex; gap: 6px; }
#ovi-sk .sk2-fp-aim button, #ovi-sk .sk2-fp-chip { -webkit-appearance: none; appearance: none; cursor: pointer;
  flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 18px;
  border: 1px solid var(--sk-line); background: transparent; color: inherit;
  font: 600 12.5px/1 system-ui, sans-serif; white-space: nowrap; }
#ovi-sk .sk2-fp-aim button.on, #ovi-sk .sk2-fp-chip.on { background: var(--sk-ink); color: var(--sk-bg); }
#ovi-sk .sk2-fp-q { box-sizing: border-box; width: 100%; min-height: 42px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--sk-line); background: var(--sk-bar); color: inherit;
  font: 500 15px/1 system-ui, sans-serif; }
#ovi-sk .sk2-fp-chips { display: flex; gap: 6px; overflow-x: auto; padding: 1px 0 3px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#ovi-sk .sk2-fp-chips::-webkit-scrollbar { display: none; }
#ovi-sk .sk2-fp-list { position: relative; flex: 1 1 auto; min-height: 200px; overflow-y: auto;
  border: 1px solid var(--sk-line); border-radius: 8px; -webkit-overflow-scrolling: touch; }
#ovi-sk .sk2-fp-spacer { width: 1px; }
#ovi-sk .sk2-fp-row { position: absolute; left: 0; right: 0; box-sizing: border-box; display: flex;
  align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; cursor: pointer;
  border-bottom: 1px solid var(--sk-line); }
#ovi-sk .sk2-fp-row.on { background: var(--sk-bar); box-shadow: inset 3px 0 0 var(--sk-ink); }
#ovi-sk .sk2-fp-row .n { font-size: 21px; line-height: 1.1; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; min-width: 0; }
#ovi-sk .sk2-fp-row .c { flex: 0 0 auto; font: 600 10.5px/1 system-ui, sans-serif; opacity: .55; }
#ovi-sk .sk2-fp-note { font: 500 12px/1.3 system-ui, sans-serif; opacity: .7; min-height: 15px; }

/* ------------------------------------------------------------------ the layers */
#ovi-sk .sk2-leaf { isolation: isolate; }
#ovi-sk .sk2-lay, #ovi-sk .sk2-grp { position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none; }
#ovi-sk .sk2-grp { isolation: isolate; }
/* with the paper switched off the leaf shows the chequerboard every paint program uses */
#ovi-sk .sk2-leaf.sk2-nopaper { background-color: #fff;
  background-image: conic-gradient(#d6d6d6 25%, #fff 0 50%, #d6d6d6 0 75%, #fff 0);
  background-size: 16px 16px; }

/* the tabs at the head of the right hand panel */
#ovi-sk .sk2-tabs { display: flex; align-items: center; gap: 6px; position: sticky; top: -12px; z-index: 5;
  margin: -12px -12px 10px; padding: 12px 12px 8px; background: var(--sk-bg);
  border-bottom: 1px solid var(--sk-line); }
#ovi-sk .sk2-tabs [role="tab"] { -webkit-appearance: none; appearance: none; cursor: pointer; flex: 1 1 0;
  min-height: 40px; border-radius: 20px; border: 1px solid var(--sk-line); background: transparent;
  color: inherit; font: 700 13px/1 system-ui, sans-serif; padding: 0 8px; }
#ovi-sk .sk2-tabs [role="tab"].on { background: var(--sk-ink); color: var(--sk-bg); }
#ovi-sk .sk2-tabs .n { opacity: .82; font-weight: 700; }
#ovi-sk .sk2-tabs .sk2-tabx { -webkit-appearance: none; appearance: none; cursor: pointer; flex: 0 0 40px;
  min-height: 40px; border-radius: 50%; border: 1px solid var(--sk-line); background: transparent;
  color: inherit; font: 400 22px/1 system-ui, sans-serif; padding: 0; }
#ovi-sk .sk2-pane[hidden] { display: none; }

#ovi-sk .sk2-ly-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 8px; }
#ovi-sk .sk2-ly-bar button, #ovi-sk .sk2-ly-tog button, #ovi-sk .sk2-ly-acts button {
  -webkit-appearance: none; appearance: none; cursor: pointer; min-height: 42px; padding: 4px 6px;
  border: 1px solid var(--sk-line); border-radius: 8px; background: transparent; color: inherit;
  font: 700 12px/1.15 system-ui, sans-serif; }
#ovi-sk .sk2-ly-bar button:disabled, #ovi-sk .sk2-ly-tog button:disabled, #ovi-sk .sk2-ly-acts button:disabled { opacity: .38; cursor: default; }
#ovi-sk .sk2-ly-list { border: 1px solid var(--sk-line); border-radius: 8px; overflow-y: auto; overflow-x: hidden;
  max-height: min(33vh, 330px); margin: 0 0 12px; -webkit-overflow-scrolling: touch; }
#ovi-sk .sk2-ly-row { position: relative; display: flex; align-items: center; gap: 2px; min-height: 58px;
  padding: 3px 2px 3px 6px; box-sizing: border-box; border-bottom: 1px solid var(--sk-line); cursor: pointer; }
#ovi-sk .sk2-ly-row:last-child { border-bottom: 0; }
#ovi-sk .sk2-ly-row.on { background: var(--sk-bar); box-shadow: inset 3px 0 0 var(--sk-ink); }
#ovi-sk .sk2-ly-row.off .sk2-ly-main, #ovi-sk .sk2-ly-row.off .sk2-ly-th, #ovi-sk .sk2-ly-row.off .sk2-ly-ic { opacity: .45; }
#ovi-sk .sk2-ly-row.lifting { opacity: .45; }
#ovi-sk .sk2-ly-row.drop-above::before, #ovi-sk .sk2-ly-row.drop-below::after { content: ""; position: absolute;
  left: 0; right: 0; height: 4px; background: #ffd640; z-index: 2; }
#ovi-sk .sk2-ly-row.drop-above::before { top: -2px; }
#ovi-sk .sk2-ly-row.drop-below::after { bottom: -2px; }
#ovi-sk .sk2-ly-row.drop-into { outline: 3px solid #ffd640; outline-offset: -3px; }
#ovi-sk .sk2-ly-grip { flex: 0 0 22px; width: 22px; height: 46px; display: flex; align-items: center;
  justify-content: center; touch-action: none; cursor: grab; opacity: .65; }
#ovi-sk .sk2-ly-grip.dead { cursor: default; opacity: 0; }
#ovi-sk .sk2-ly-grip svg, #ovi-sk .sk2-ly-b svg, #ovi-sk .sk2-ly-ic svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#ovi-sk .sk2-ly-th, #ovi-sk .sk2-ly-ic { flex: 0 0 auto; width: 32px; height: 45px; border-radius: 3px;
  border: 1px solid var(--sk-line); display: block; box-sizing: border-box; margin-left: 2px; }
#ovi-sk .sk2-ly-ic { display: flex; align-items: center; justify-content: center; border-style: dashed;
  background: transparent; color: inherit; padding: 0; -webkit-appearance: none; appearance: none; }
#ovi-sk .sk2-ly-open { cursor: pointer; border-style: solid; }
#ovi-sk .sk2-ly-th.paperth { display: block; }
#ovi-sk .sk2-ly-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
#ovi-sk .sk2-ly-nm { font: 700 13px/1.2 system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ovi-sk .sk2-ly-sub { font: 600 10.5px/1.2 system-ui, sans-serif; opacity: .78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ovi-sk .sk2-ly-b { -webkit-appearance: none; appearance: none; cursor: pointer; flex: 0 0 36px; width: 36px; height: 46px;
  border: 0; background: transparent; color: inherit; padding: 0; display: flex; align-items: center; justify-content: center; }
#ovi-sk .sk2-ly-b.lk { color: #d9822b; }
#ovi-sk .sk2-ly-b.dead { pointer-events: none; }
#ovi-sk .sk2-ly-props { display: flex; flex-direction: column; gap: 8px; }
#ovi-sk .sk2-ly-prow { display: flex; align-items: center; gap: 8px; }
#ovi-sk .sk2-ly-prow label { flex: 0 0 50px; font: 700 11px/1.2 system-ui, sans-serif; opacity: .88; }
#ovi-sk .sk2-ly-prow .sk2-val { opacity: .92; min-width: 38px; text-align: right; }
#ovi-sk .sk2-ly-prow input[type=range] { flex: 1 1 auto; min-width: 60px; height: 38px; margin: 0; accent-color: currentColor; }
#ovi-sk .sk2-ly-prow input[type=text] { flex: 1 1 auto; min-width: 0; min-height: 42px; box-sizing: border-box;
  border: 1px solid var(--sk-line); border-radius: 8px; background: var(--sk-bar); color: var(--sk-ink);
  padding: 0 10px; font: 700 14px/1 system-ui, sans-serif; }
/* the dropdown has BOTH colours set, so it can never be one half of a pair on the wrong ground */
#ovi-sk .sk2-ly-prow select { flex: 1 1 auto; min-width: 0; min-height: 42px; box-sizing: border-box;
  border: 1px solid var(--sk-line); border-radius: 8px; background: var(--sk-bg); color: var(--sk-ink);
  padding: 0 8px; font: 700 13px/1 system-ui, sans-serif; }
#ovi-sk .sk2-ly-prow select option { background: var(--sk-bg); color: var(--sk-ink); }
#ovi-sk .sk2-ly-tog, #ovi-sk .sk2-ly-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#ovi-sk .sk2-ly-tog button.on { background: var(--sk-ink); color: var(--sk-bg); }
#ovi-sk .sk2-ly-props [hidden] { display: none !important; }

/* move, turn and resize */
#ovi-sk.xf .sk2-ink { pointer-events: auto; cursor: move; touch-action: none; }
#ovi-sk.xf .sk2-text, #ovi-sk.xf .sk2-photos { pointer-events: none; }
/* ovi-pick: select and move */
#ovi-sk.pick .sk2-ink { pointer-events: auto; cursor: pointer; touch-action: none; }
#ovi-sk.pick .sk2-text { pointer-events: none; }
#ovi-sk .sk2-pickbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 22; display: flex; align-items: center; gap: 10px;
  width: min(430px, calc(100% - 16px)); box-sizing: border-box; background: var(--sk-bg); color: var(--sk-ink); border: 1px solid var(--sk-line); border-radius: 12px;
  padding: 8px 10px; box-shadow: 0 8px 24px rgba(0,0,0,.3); font: 500 13px/1.35 system-ui, sans-serif; }
#ovi-sk .sk2-pickbar[hidden] { display: none; }
#ovi-sk .sk2-pickbar span { flex: 1 1 auto; }
#ovi-sk .sk2-pickbar button { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--sk-line); background: transparent; color: inherit; font: 700 13px/1 system-ui, sans-serif; cursor: pointer; }
#ovi-sk .sk2-xfbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; z-index: 22;
  width: min(430px, calc(100% - 16px)); box-sizing: border-box; background: var(--sk-bg); color: var(--sk-ink);
  border: 1px solid var(--sk-line); border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
#ovi-sk .sk2-xfrow { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
#ovi-sk .sk2-xfrow button { -webkit-appearance: none; appearance: none; cursor: pointer; min-height: 44px; padding: 0;
  border: 1px solid var(--sk-line); border-radius: 8px; background: transparent; color: inherit; font: 700 18px/1 system-ui, sans-serif; }
#ovi-sk .sk2-xfrow2 { grid-template-columns: 1fr auto auto auto; align-items: center; margin-top: 6px; }
#ovi-sk .sk2-xfpic { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; transform-origin: 0 0; }
#ovi-sk .sk2-xfrow3 { grid-template-columns: repeat(4, 1fr); margin-top: 6px; }
#ovi-sk .sk2-xfrow3 button { font: 700 12px/1.1 system-ui, sans-serif; padding: 0 4px; min-height: 40px; }
#ovi-sk .sk2-xfrow3[hidden] { display: none; }
#ovi-sk .sk2-xfrow2 button { font: 700 13px/1 system-ui, sans-serif; padding: 0 12px; }
#ovi-sk .sk2-xfrow2 .sk2-xfdone { background: var(--sk-ink); color: var(--sk-bg); }
#ovi-sk .sk2-xfhint { font: 600 11px/1.25 system-ui, sans-serif; opacity: .85; }

/* ------------------------------------------------------------- who may see it, who may draw */
#ovi-sk .sk2-banner { flex: 0 0 auto; padding: 7px 14px; background: var(--sk-bar); border-bottom: 1px solid var(--sk-line);
  font: 600 12px/1.3 system-ui, sans-serif; }
#ovi-sk[data-role="view"] #sk2-handle, #ovi-sk[data-role="view"] #sk2-handle2, #ovi-sk[data-role="view"] #sk2-tray { display: none !important; }
#ovi-sk[data-trusted="0"] #sk2-handle2, #ovi-sk[data-trusted="0"] [data-tab="layers"], #ovi-sk[data-trusted="0"] [data-pane="layers"] { display: none !important; }
#ovi-sk[data-trusted="0"] [data-need="trusted"], #ovi-sk:not([data-role="owner"]) [data-need="owner"] { display: none !important; }
#ovi-sk[data-trusted="0"] [data-sk="leaf"], #ovi-sk[data-role="view"] [data-sk="leaf"] { display: none !important; }
#ovi-sk .sk2-top input[readonly] { border-bottom-color: transparent; }

#ovi-sk .sk2-sheet-card.sk2-shcard { max-height: min(90vh, calc(var(--sk-vh, 100vh) - 12px)); }
#ovi-sk .sk2-sh h5 { margin: 16px 0 6px; font: 700 11px/1.2 system-ui, sans-serif; letter-spacing: .09em; text-transform: uppercase; opacity: .75; }
#ovi-sk .sk2-sh-opts { display: flex; gap: 6px; flex-wrap: wrap; }
#ovi-sk .sk2-sh button, #ovi-sk .sk2-sh .sk2-sh-row button { -webkit-appearance: none; appearance: none; cursor: pointer; min-height: 42px; padding: 0 14px;
  border-radius: 21px; border: 1px solid var(--sk-line); background: transparent; color: inherit; font: 700 13px/1.1 system-ui, sans-serif; }
#ovi-sk .sk2-sh button.on { background: var(--sk-ink); color: var(--sk-bg); }
#ovi-sk .sk2-sh-row { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
#ovi-sk .sk2-sh-row .nm { flex: 1 1 auto; min-width: 0; font: 700 14px/1.2 system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ovi-sk .sk2-sh-row .sk2-fp-q { flex: 1 1 auto; }
#ovi-sk .sk2-sh-warn { margin: 8px 0; padding: 10px 12px; border: 1px solid #b36b00; border-radius: 8px; font: 600 13px/1.4 system-ui, sans-serif; }
#ovi-sk .sk2-sh-warn button { margin: 6px 6px 0 0; }
#ovi-sk .sk2-fl { display: block; margin: 10px 0 4px; font: 600 13px/1.3 system-ui, sans-serif; }
#ovi-sk .sk2-sh-chk { display: flex; align-items: center; gap: 10px; min-height: 42px; font: 600 14px/1.3 system-ui, sans-serif; }
#ovi-sk .sk2-sh-chk input { width: 22px; height: 22px; }
#ovi-sk .sk2-sh .sk2-fp-q { margin: 6px 0; }

/* ------------------------------------------------------------------ the foot */
#ovi-sk .sk2-foot { flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px calc(env(safe-area-inset-bottom) + 10px);
  color: inherit; opacity: .85;
  font: 600 12px/1 system-ui, sans-serif;
  border-top: 1px solid var(--sk-line); }
#ovi-sk .sk2-foot .sk2-where { flex: 1 1 auto; text-align: center; }
#ovi-sk .sk2-said { opacity: .55; font-size: 11px; }
#ovi-sk .sk2-here:empty { display: none; }
#ovi-sk .sk2-here.on { font-size: 11px; font-weight: 700; color: #1a7f4b; }
#ovi-sk .sk2-here.on::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #1a7f4b; }
#ovi-sk .sk2-sh-mem { display: flex; align-items: center; gap: 8px; }
#ovi-sk .sk2-sh-mem .av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #3a3a40; color: #f2f2f3; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
#ovi-sk .sk2-sh-mem .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
#ovi-sk .sk2-sh-mem .nm b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ovi-sk .sk2-sh-mem .nm i { font-style: normal; font-size: 12px; opacity: .6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ovi-sk .sk2-sh-mem .av { overflow: hidden; }
#ovi-sk .sk2-sh-mem button { flex: none; white-space: nowrap; }
#ovi-sk .sk2-sh-mem .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
#ovi-sk .sk2-tell { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-size: 13px; }
#ovi-sk .sk2-said[data-state="warn"] { opacity: 1; color: #b36b00; font-weight: 700; }
#ovi-sk .sk2-said[data-state="bad"] { opacity: 1; color: #c0392b; font-weight: 700; }
#ovi-sk .sk2-to em { display: block; font-style: normal; font-size: 12.5px; opacity: .8; margin: 4px 0 8px; }
#ovi-sk .sk2-to .sk2-ver { -webkit-appearance: none; appearance: none; cursor: pointer;
  padding: 8px 12px; border-radius: 7px; border: 1px solid var(--sk-line);
  background: transparent; color: inherit; font: 600 12px/1 system-ui, sans-serif; }

/* ------------------------------------------------- THE TRAY, not a toolbar
   Robin: "Put tools in a tray not a toolbar modes." A toolbar across the top steals the
   paper; the tray lives off the bottom edge and comes up when it is wanted. */
/* FROM THE SIDE. Robin: "Side panel from side." A sheet rising from the bottom covers
   the foot of the page, which is where you are usually writing; a panel from the edge
   takes a strip and leaves the whole height of the leaf in view. */
/* THE WIDTH IS ONE NUMBER, AND THE PAPER GETS A SAY IN IT. 86vw was a proportion, and
   a proportion of a small screen is still most of a small screen: on Robin's fold the
   tray took 272 of 322 pixels and left a 50 pixel ribbon of leaf. It is a cap now, with
   a floor of paper reserved that the tray cannot cross, so there is always a strip of
   leaf wide enough to put a thumb on. Both this and the handle read the same variable,
   because the handle used to repeat the expression and the two could disagree. */
#ovi-sk { --sk-trayw: min(272px, calc(100vw - 104px)); }
/* beside the page, the layers panel has the room to be a little wider, which is what the names need */
#ovi-sk.docked { --sk-trayw: 320px; }
#ovi-sk .sk2-tray { position: absolute; top: 0; bottom: 0; right: 0; z-index: 20;
  width: var(--sk-trayw);
  transform: translateX(102%); transition: transform .24s cubic-bezier(.2,.7,.3,1);
  background: var(--sk-bg); color: var(--sk-ink);
  border-left: 1px solid var(--sk-line);
  /* ROOM AT THE BOTTOM FOR THE LAST ROW OF TOOLS.
     The tray scrolls, and its final row came to rest flush against the foot: on a tablet
     held sideways the Highlighter and the Airbrush sat at 709 with their middles at 725,
     and the foot starts at 717. The top half of each was visible and a finger aimed at
     the middle of either one landed on the foot instead. Found by asking every control
     whether it actually receives a touch at its own centre, which no screenshot would
     ever have shown. Fifty six is a row and a half, so the last row always clears. */
  border-radius: 12px 0 0 12px; padding: 12px 12px 56px;
  box-shadow: -12px 0 30px rgba(0,0,0,.28);
  font: 600 13px/1.2 system-ui, sans-serif; }
#ovi-sk .sk2-tray.open { transform: translateX(0); }
/* A TRAY THAT COVERS THE PAPER IS A TOOLBAR THAT MOVED. Six stacked rows of controls
   filled most of the screen and no touch reached the canvas at all — the exact thing he
   asked a tray to avoid. It is capped and scrolls, and it shuts the moment you have
   chosen something, which is what a tray is for. */
#ovi-sk .sk2-tray { overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* the grip runs down the edge now, because that is the edge it comes from */
#ovi-sk .sk2-grip { width: 4px; height: 40px; border-radius: 3px; margin: 2px 0 10px;
  background: var(--sk-line); }
#ovi-sk .sk2-set { display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin: 0 0 9px; }
/* the reader's row: a 76px label column and the controls beside it */
#ovi-sk .sk2-set > label { font: 600 11px/1.2 system-ui, sans-serif;
  opacity: .7; width: 100%; margin: 0 0 3px; }

#ovi-sk .sk2-tray .sk2-sw { width: 28px; height: 28px; min-width: 28px; padding: 0;
  border-radius: 50%; border: 2px solid var(--sk-line); }
#ovi-sk .sk2-tray .sk2-sw.on { outline: 2px solid currentColor; outline-offset: 2px; }
#ovi-sk .sk2-tray input[type=range] { flex: 1 1 110px; min-width: 90px;
  accent-color: currentColor; }
#ovi-sk .sk2-tray .sk2-val { font: 600 11px/1 system-ui, sans-serif; opacity: .88;
  min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
#ovi-sk .sk2-nib { display: inline-block; border-radius: 50%; background: currentColor; }

/* the handle that brings the tray up */
/* Robin: "Make the tool icon a small pen icon." A drawn pen rather than an emoji, so it
   is the same pen on every phone, and it sits on the edge the panel comes from. */
/* AT THE TOP, NOT THE BOTTOM.
   Robin, twice: "Tool button is still off the screen." The bottom of a phone is where
   everything lives that a web page cannot see — the address bar, the navigation bar, the
   keyboard — and I had been trying to measure my way around all three. The top of the
   viewport is covered by none of them. It sits under the bar at rest and at the very top
   in full screen, and it has not moved since. */
#ovi-sk .sk2-handle { position: absolute; right: 12px;
  top: 12px; z-index: 19;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sk-bg); color: var(--sk-ink);
  border: 1px solid var(--sk-line);
  box-shadow: 0 6px 18px rgba(0,0,0,.28); }
#ovi-sk .sk2-handle svg { width: 21px; height: 21px; display: block; }
#ovi-sk.drawing #sk2-handle { background: #ffd640; }
/* THE HANDLE STAYS. Robin: "No way to close the toolpanel." I had hidden it the moment
   the panel opened, so the only way out was to pick a tool — a panel you can open and
   cannot shut. It is a toggle now, it sits clear of the panel, and it turns into a cross
   while the panel is up so it is obvious what it will do. */
/* FOUR TIMES HE TOLD ME THIS WAS OFF THE SCREEN, AND IT WAS, AND IT WAS ARITHMETIC.
   The open tray pushed the handle out by its own width plus twelve, so the handle's
   left edge sat at viewport minus 330. Every width below 330 put it outside, and every
   test I had written ran at 344 — fourteen pixels the right side of the cliff, which is
   why three fixes all passed and he kept seeing the same thing. His fold reports about
   320 depending on Samsung's display zoom.

   So it is not a better number, it is a clamp: push the handle clear of the tray, but
   never further out than leaves it twelve pixels inside the edge. The second term wins
   on a narrow screen and the first on a wide one, and no viewport can put it outside. */
#ovi-sk .sk2-tray.open ~ .sk2-handle {
  right: min(calc(var(--sk-trayw) + 12px), calc(100vw - 58px)); }
#ovi-sk .sk2-tray.open[data-tab="tools"] ~ #sk2-handle .sk2-pen { display: none; }
#ovi-sk .sk2-handle .sk2-x2 { display: none; }
#ovi-sk .sk2-tray.open[data-tab="tools"] ~ #sk2-handle .sk2-x2 { display: block; }
#ovi-sk .sk2-tray.open[data-tab="layers"] ~ #sk2-handle2 .sk2-lyic { display: none; }
#ovi-sk .sk2-tray.open[data-tab="layers"] ~ #sk2-handle2 .sk2-x2 { display: block; }
#ovi-sk .sk2-handle2 { top: 66px; }
#ovi-sk .sk2-handle2 .sk2-lyic { display: block; width: 22px; height: 22px; }
#ovi-sk .sk2-handle2 .sk2-lyic svg { width: 22px; height: 22px; display: block; }
/* and a cross at the head of the panel itself, because that is where a hand goes first */
#ovi-sk .sk2-trayhead { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
#ovi-sk .sk2-trayhead b { flex: 1 1 auto; font: 700 13px/1 system-ui, sans-serif; }
#ovi-sk .sk2-trayhead button { min-width: 32px; }

/* a sheet over the page: choosing a passage, or where to send one */
#ovi-sk .sk2-sheet { position: fixed; left: 0; right: 0; top: var(--sk-vt, 0px); height: var(--sk-vh, 100%); z-index: 2147483450; display: flex;   /* ovi-keyboard */
  align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); }
#ovi-sk .sk2-sheet-card { width: min(100%, 560px); max-height: min(86vh, calc(var(--sk-vh, 100vh) - 16px)); overflow-y: auto;
  background: var(--sk-bg); color: var(--sk-ink);
  border-top: 1px solid var(--sk-line);
  border-radius: 12px 12px 0 0; padding: 16px 16px 20px; }
#ovi-sk .sk2-sheet h4 { margin: 0 0 10px;
  font: 700 15px/1.3 var(--rd-face, Georgia, 'Times New Roman', serif); }
#ovi-sk .sk2-sheet blockquote { margin: 0 0 12px; padding: 9px 11px;
  border-left: 3px solid var(--sk-line); background: var(--sk-bar);
  border-radius: 0 8px 8px 0; max-height: 26vh; overflow-y: auto;
  font: italic 400 13.5px/1.45 var(--ovi-heading, Georgia, serif); }
#ovi-sk .sk2-from { margin: 12px 0 6px; font: 600 11px/1.3 inherit; opacity: .55;
  letter-spacing: .09em; text-transform: uppercase; }
#ovi-sk .sk2-dim { opacity: .7; }
#ovi-sk .sk2-pick, #ovi-sk .sk2-to, #ovi-sk .sk2-leafpick {
  cursor: pointer; padding: 9px 11px; margin: 0 0 6px; border-radius: 7px;
  border: 1px solid var(--sk-line); }
#ovi-sk .sk2-pick { font: italic 400 13.5px/1.45 var(--ovi-heading, Georgia, serif); }
#ovi-sk .sk2-to, #ovi-sk .sk2-leafpick { font: 500 14px/1.3 inherit; }
#ovi-sk .sk2-to span { display: block; font-size: 11.5px; opacity: .55; }
#ovi-sk .sk2-leafpick.on { outline: 2px solid #fff; }
#ovi-sk .sk2-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
#ovi-sk .sk2-acts button { -webkit-appearance: none; appearance: none; cursor: pointer;
  padding: 10px 15px; border-radius: 7px; border: 1px solid var(--sk-line);
  background: transparent; color: inherit; font: 600 13px/1 system-ui, sans-serif; }
#ovi-sk .sk2-acts .sk2-move { background: var(--sk-ink); color: var(--sk-bg);
  border-color: var(--sk-ink); }

/* PHOTOGRAPHS ON THE LEAF (@ovi 2026-10-29) */
/* WHO GETS THE TOUCH.
   The writing layer covers the whole leaf, so with the photographs beneath it a drag on
   a photograph never reached it — it fell through to the page and panned the leaf
   instead, which moved sideways and not down because the pan is clamped. Measured: x
   moved, y did not, every time.
   So there is a mode. Normally the photographs are scenery and you write over them.
   Touch Place, Crop or Cut and the leaf says it is about photographs for a moment: they
   come to the front, take the touch, and the writing stands down until you are done. */
#ovi-sk .sk2-photos { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
#ovi-sk[data-photo] .sk2-photos { pointer-events: auto; }   /* ovi-photostack: true stacking, lifted only while a photograph is chosen */
#ovi-sk[data-photo][data-phsel] .sk2-photos { z-index: 900 !important; }
#ovi-sk[data-photo] .sk2-text { pointer-events: none; }
#ovi-sk[data-photo] .sk2-ink { pointer-events: none; }
#ovi-sk .sk2-phdone { display: none; }
#ovi-sk[data-photo] .sk2-phdone {
  position: absolute; left: 12px; bottom: 12px; z-index: 20;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 9px;
  background: var(--sk-ink); color: var(--sk-bg); border: 0;
  font: 600 12.5px/1 system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.35); }
#ovi-sk .sk2-ph { position: absolute; overflow: hidden; cursor: move;
  box-shadow: 0 2px 10px rgba(0,0,0,.28); }
#ovi-sk .sk2-ph img { position: absolute; display: block; max-width: none; }
#ovi-sk .sk2-ph.on { outline: 2px solid #3b82f6; outline-offset: 1px; }
#ovi-sk .sk2-ph.crop { outline-color: #ffb020; outline-style: dashed; }
/* INSIDE THE BOX. The handles sat at -10px, and the photograph has overflow:hidden to
   do the cropping — so every one of them was clipped away. They were in the page and
   could be found by name, which is why a test could read their position, and they were
   neither visible nor touchable. Nothing could be resized or cropped. */
#ovi-sk .sk2-grab { position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid #3b82f6; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
#ovi-sk .sk2-ph.crop .sk2-grab { border-color: #ffb020; }
#ovi-sk .sk2-nw { left: 1px; top: 1px; cursor: nwse-resize; }
#ovi-sk .sk2-ne { right: 1px; top: 1px; cursor: nesw-resize; }
#ovi-sk .sk2-sw { left: 1px; bottom: 1px; cursor: nesw-resize; }
#ovi-sk .sk2-se { right: 1px; bottom: 1px; cursor: nwse-resize; }
/* the writing sits above the pictures so it can be read over them */
#ovi-sk .sk2-text { z-index: 3; }
#ovi-sk .sk2-ink { z-index: 1000; }
#ovi-sk .sk2-shim { pointer-events: none; }

/* Robin: "list with ○ and ● (on double tap" */
#ovi-sk .sk2-text ul { list-style: none !important; padding-left: 1.5em !important; }
#ovi-sk .sk2-text ul > li { position: relative; }
#ovi-sk .sk2-text ul > li::before {
  content: '\25CB'; position: absolute; left: -1.1em; }
#ovi-sk .sk2-text ul > li.sk2-done::before { content: '\25CF'; }
#ovi-sk .sk2-text ul > li.sk2-done { opacity: .62; }

/* FULL SCREEN: MY FURNITURE GOES AWAY AND THE LEAF TAKES THE LOT. */
#ovi-sk[data-full] .sk2-top, #ovi-sk[data-full] .sk2-foot { display: none; }
/* the way back, floating, because the bar it used to live on is gone */
#ovi-sk .sk2-out { display: none; }
#ovi-sk[data-full] .sk2-out {
  position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 66px; z-index: 19;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sk-bg); color: var(--sk-ink); border: 1px solid var(--sk-line);
  font: 400 19px/1 system-ui, sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,.3); opacity: .9; }

/* THE PICKER. Robin: "the color picker needs infintie colors."
   The hue slider wears the spectrum so it is obvious what it is for. */
#ovi-sk .sk2-wheel { flex-direction: column; align-items: stretch; gap: 8px; }
#ovi-sk .sk2-wheel input[type=range] { width: 100%; flex: 0 0 auto; height: 22px; }
#ovi-sk .sk2-hue {
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  border-radius: 11px; -webkit-appearance: none; appearance: none; }
#ovi-sk .sk2-hue::-webkit-slider-thumb { -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid rgba(0,0,0,.45); }
#ovi-sk .sk2-now { border: 2px solid currentColor; }

/* the way in, on the bookshelf */
#ovi-sk-open { -webkit-appearance: none; appearance: none; cursor: pointer;
  background: rgba(128,128,128,.16); color: inherit;
  border: 1px solid rgba(128,128,128,.4); border-radius: 9px;
  padding: 8px 12px; font: 600 12.5px/1 var(--ovi-body, inherit); }