/* ---------- 15b. The reader ----------
   A file or a picture from the canvas, opened over it to read (reader.js). The canvas's own ground with the file's
   pages on it as sheets, and the canvas's chrome: its name on a raised chip at the top left where the path is, its
   tools in a raised dock at the top middle where the canvas's are (along the bottom on a phone, in reach of a thumb),
   Close a raised key at the right; the pages pass under them. Words set from text (a document, Markdown, text, a
   sheet's cells) are on the look's own paper, so at night they don't glare; a page that is a picture (a PDF's page, a
   slide) stays a page, dimmed at night, as on a card (section 15). */
#reader {
  --rd-chip: 40px;                                                      /* the name, the tools and Close */
  --rd-top: calc(env(safe-area-inset-top, 0px) + 10px + var(--rd-chip) + 16px);   /* the pages start under them */
  --rd-bot: calc(env(safe-area-inset-bottom, 0px) + 48px);
  --rd-l: calc(env(safe-area-inset-left, 0px) + 24px); --rd-r: calc(env(safe-area-inset-right, 0px) + 24px);
  --rd-glass: color-mix(in srgb, var(--canvas) 78%, transparent);
  --rd-page: 0 0 0 1px var(--sheet-edge), 0 2px 6px var(--drop-2), 0 16px 36px -18px var(--drop-1);
  position: fixed; inset: 0; z-index: 1000; box-sizing: border-box; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden; overscroll-behavior: contain;
  background: var(--canvas); color: var(--ink); font: 400 14px/1.4 var(--f-ui);
}
#reader:not([open]), #reader.rd-off { display: none; }
#reader::backdrop { background: transparent; }
@media (pointer: coarse) { #reader { --rd-chip: 44px; } }
@media (max-width: 599.98px) {
  #reader { --rd-bot: calc(env(safe-area-inset-bottom, 0px) + 12px + var(--rd-chip) + 20px);
            --rd-l: calc(env(safe-area-inset-left, 0px) + 12px); --rd-r: calc(env(safe-area-inset-right, 0px) + 12px); }
}

/* The name, at the top left, and Close at the right; the tools at the top middle, kept clear of the name. */
.rd-bar {
  position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) calc(env(safe-area-inset-right, 0px) + 12px) 0 calc(env(safe-area-inset-left, 0px) + 10px);
  pointer-events: none;
}
.rd-bar > * { pointer-events: auto; }
.rd-who, .rd-tools, .rd-x, .rd-page, .rd-tabs {
  background: var(--rd-glass); box-shadow: var(--raise), var(--edge);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.rd-who {
  flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; height: var(--rd-chip); box-sizing: border-box;
  margin-right: auto; padding: 0 14px 0 11px; border-radius: 8px;
}
.rd-id { flex: none; display: flex; }
.rd-who .fc-badge { width: 20px; height: 24px; }
.rd-who .fc-badge b { left: -4px; bottom: 3.5px; padding: 1.5px 2.5px 1px; font-size: 6.5px; }
.rd-nm { min-width: 0; display: grid; }
#rdName { display: flex; min-width: 0; margin: 0; font: 600 13.5px/17px var(--f-ui); color: var(--ink); }
#rdName span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#rdName span + span { flex: none; font-weight: 500; color: var(--ink-3); }      /* the extension survives a long name */
.rd-info { min-width: 0; margin: 1px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 10.5px/13px var(--f-mono); letter-spacing: .02em; color: var(--ink-q); }
.rd-x {
  flex: none; display: grid; place-items: center; width: var(--rd-chip); height: var(--rd-chip); padding: 0; border: 0; border-radius: 8px;
  color: var(--ink-2); cursor: pointer; transition: background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out;
}
.rd-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6px; stroke-linecap: round; transition: rotate 200ms cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { .rd-x:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 90%, transparent); } .rd-x:hover svg { rotate: 90deg; } }
.rd-x:active { background: var(--press-bg); box-shadow: var(--press); }
/* Centred by its margins, as the canvas's dock and strip are (never a translate of a percentage: sharp in WebKit). */
.rd-tools {
  position: absolute; z-index: 4; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 10px);
  display: flex; align-items: center; gap: 2px; width: max-content; max-width: calc(100% - 24px); height: var(--rd-chip); box-sizing: border-box;
  margin: 0 auto; padding: 4px; border-radius: 8px;
}
.rd-tools[hidden], .rd-b[hidden], .rd-sep[hidden], .rd-page[hidden] { display: none; }
@media (min-width: 600px) { .rd-who { max-width: calc(50% - var(--rd-half, 130px) - 22px); } }
@media (max-width: 599.98px) { .rd-tools { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); } }
.rd-b {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 100%; min-width: calc(var(--rd-chip) - 8px);
  box-sizing: border-box; padding: 0 8px; border: 0; border-radius: 6px; font: 500 12.5px/1 var(--f-ui); color: var(--ink-2);
  background: transparent; cursor: pointer; transition: background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out, opacity 160ms ease-out;
}
.rd-b svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4px; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .rd-b:hover:not(:disabled) { color: var(--ink); background: color-mix(in srgb, var(--surface) 80%, transparent); } }
.rd-b:active:not(:disabled) { background: var(--press-bg); box-shadow: var(--press); }
.rd-b:disabled { opacity: .38; cursor: default; }
.rd-pct { min-width: 56px; padding: 0 6px; font: 500 11.5px/1 var(--f-mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.rd-sep { flex: none; width: 1px; height: 18px; margin: 0 5px; background: var(--rule-2); }
.rd-copy { padding: 0 11px 0 9px; }
.rd-copy .i-ok { display: none; }
.rd-copy.done { color: var(--ink); }
.rd-copy.done .i-cp { display: none; }
.rd-copy.done .i-ok { display: block; }
.rd-copy.done .i-ok path { stroke-dasharray: 15; animation: rd-tick 280ms cubic-bezier(.2, .8, .2, 1) both; }     /* the tick draws itself */
@keyframes rd-tick { from { stroke-dashoffset: 15; } }
:is(.rd-b, .rd-x, .rd-tab, .rd-get):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Which page of how many: at the bottom (on a phone, over the tools). */
.rd-page {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); width: max-content; margin: 0 auto;
  padding: 6px 11px; border-radius: 99px; box-shadow: var(--raise-sm), var(--edge);
  font: 500 11px/14px var(--f-mono); letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--ink-2); pointer-events: none;
}
@media (max-width: 599.98px) { .rd-page { bottom: calc(env(safe-area-inset-bottom, 0px) + 12px + var(--rd-chip) + 10px); } }

/* The pages: they scroll (one finger, the wheel, the keys), and zoom as the reader says (reader.js). Laid out by the
   view: a column of pages or slides, a sheet's grid, a picture (each as wide as it is, centred while the window is
   wider: their auto margins never push them out of reach); a page of words as wide as the window allows. */
.rd-scroll {
  position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; outline: none; touch-action: pan-x pan-y;
  scroll-padding: var(--rd-top) 0 var(--rd-bot);
}
.rd-body {
  box-sizing: border-box; min-height: 100%; display: flex; flex-direction: column; padding: var(--rd-top) var(--rd-r) var(--rd-bot) var(--rd-l);
  user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; cursor: auto;
}
.rd-body > * { flex: none; margin-inline: auto; }
#reader:is([data-view="slides"], [data-view="grid"], [data-view="pic"]) .rd-body { width: max-content; min-width: 100%; }
#reader:is([data-view="wait"], [data-view="none"], [data-view="media"]) .rd-body { justify-content: center; }
.rd-clip { position: fixed; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }     /* Copy's last resort (reader.js) */

/* A PDF: its pages, the gaps between them the same at any zoom; each page drawn (a canvas) under its words (pdf.js's
   text layer: transparent words where the page's are, to select and copy), sized by --scale-factor. Each page is
   centred in the window, not in the widest of them (a landscape page among upright ones): one wider than the window
   starts at its left, in reach. */
.rd-body > .rd-pages { align-self: stretch; margin-inline: 0; display: flex; flex-direction: column; gap: 16px; }
.rd-pg { position: relative; flex: none; margin-inline: auto; overflow: hidden; background: var(--sheet); box-shadow: var(--rd-page); filter: var(--sheet-dim); }
.rd-pg > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.rd-pg .textLayer {
  position: absolute; inset: 0; z-index: 2; overflow: hidden; opacity: .25; line-height: 1; text-align: initial; transform-origin: 0 0;
  -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none;
}
.rd-pg .textLayer :is(span, br) { position: absolute; color: transparent; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.rd-pg .textLayer span.markedContent { top: 0; height: 0; }
.rd-pg .textLayer ::selection { background: blue; background: AccentColor; }
.rd-pg .textLayer br::selection { background: transparent; }
.rd-pg .textLayer .endOfContent { position: absolute; inset: 100% 0 0; z-index: -1; display: block; cursor: default; user-select: none; -webkit-user-select: none; }
.rd-pg .textLayer .endOfContent.active { top: 0; }
.rd-pg .textLayer[data-main-rotation="90"] { transform: rotate(90deg) translateY(-100%); }
.rd-pg .textLayer[data-main-rotation="180"] { transform: rotate(180deg) translate(-100%, -100%); }
.rd-pg .textLayer[data-main-rotation="270"] { transform: rotate(270deg) translateX(-100%); }

/* A page of words: a Word document, Markdown, text or code, set on a sheet as wide as a letter page, or the window
   where that is narrower (zoomed in past the window's width, its words wrap again rather than run off it). */
.rd-flow { width: 100%; }
.rd-sheet {
  box-sizing: border-box; width: min(816px, 100%); margin: 0 auto; padding: clamp(28px, 8%, 72px) clamp(18px, 8%, 80px) clamp(36px, 10%, 88px);
  background: var(--sheet-t); color: var(--sheet-t-ink); box-shadow: 0 0 0 1px var(--sheet-t-edge), 0 2px 6px var(--drop-2), 0 16px 36px -18px var(--drop-1);
  overflow-wrap: break-word;
}
.rd-doc { font: 400 16px/1.62 var(--f-ui); }
.rd-doc > :first-child { margin-top: 0; }
.rd-doc :is(h1, h2, h3, h4, h5, h6) { margin: 1.5em 0 .5em; font-weight: 600; line-height: 1.25; letter-spacing: -.012em; }
.rd-doc h1 { font-size: 30px; letter-spacing: -.018em; } .rd-doc h2 { font-size: 24px; } .rd-doc h3 { font-size: 20px; }
.rd-doc h4 { font-size: 17px; } .rd-doc :is(h5, h6) { font-size: 15px; } .rd-doc h6 { color: var(--sheet-t-ink-2); }
.rd-doc :is(p, ul, ol, blockquote, pre, table, .rd-tw) { margin: 0 0 .9em; }
.rd-doc :is(ul, ol) { padding-left: 1.6em; }
.rd-doc li + li { margin-top: .3em; }
.rd-doc li > :is(ul, ol, p, pre, blockquote, .rd-tw) { margin: .3em 0 0; }
.rd-doc li::marker { color: var(--sheet-t-ink-2); }
.rd-doc blockquote { padding: .05em 0 .05em 1.1em; border-left: 3px solid var(--sheet-t-edge); color: var(--sheet-t-ink-2); }
.rd-doc a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
@media (hover: hover) { .rd-doc a:hover { text-decoration-color: currentColor; } }
.rd-doc code { padding: .12em .36em; border-radius: 4px; font: 500 .86em/1.4 var(--f-mono); background: color-mix(in srgb, var(--sheet-t-ink) 6%, transparent); }
.rd-doc pre { padding: 14px 16px; border-radius: 6px; overflow-x: auto; background: color-mix(in srgb, var(--sheet-t-ink) 5%, transparent); }
.rd-doc pre code { padding: 0; font-size: 13.5px; line-height: 1.6; white-space: pre; background: none; tab-size: 4; }
.rd-doc hr { height: 1px; margin: 2em 0; border: 0; background: var(--sheet-t-edge); }
.rd-doc img { max-width: 100%; height: auto; vertical-align: middle; }
.rd-doc table { border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.rd-doc :is(th, td) { padding: 6px 10px; border: 1px solid var(--sheet-t-edge); text-align: left; vertical-align: top; }
.rd-doc :is(th, td) > :last-child { margin-bottom: 0; }
.rd-doc th { font-weight: 600; background: color-mix(in srgb, var(--sheet-t-ink) 4%, transparent); }
.rd-tw { overflow-x: auto; }
.rd-tw > table { margin: 0; }
.rd-doc li.rd-task { position: relative; list-style: none; }
.rd-tick { position: absolute; left: -1.5em; top: .33em; width: .95em; height: .95em; box-sizing: border-box; border-radius: 3px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sheet-t-ink) 42%, transparent); }
.rd-tick.on { background: var(--sheet-t-ink); box-shadow: none; }
.rd-tick.on::after { content: ""; position: absolute; left: .31em; top: .13em; width: .22em; height: .46em; border: solid var(--sheet-t); border-width: 0 .12em .12em 0; rotate: 45deg; }
.rd-code { padding: clamp(20px, 5%, 48px) clamp(16px, 5%, 56px); }
.rd-pre { margin: 0; font: 500 13px/1.62 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.rd-cut { margin: 28px 0 0; padding-top: 12px; border-top: 1px dashed var(--sheet-t-edge); font: 500 11.5px/16px var(--f-mono); color: var(--sheet-t-ink-2); }

/* A sheet: it scrolls under the bar rather than behind it (its own scroller starts under the name and the tools), so
   its columns' letters stay in view along the top and its rows' numbers down the left as it scrolls; its tabs float at
   the bottom left. */
#reader[data-view="grid"] { --rd-top: 1px; }
#reader[data-view="grid"] .rd-scroll { top: calc(env(safe-area-inset-top, 0px) + 10px + var(--rd-chip) + 10px); }
.rd-gridv { display: flex; flex-direction: column; align-items: flex-start; }
.rd-grid { background: var(--sheet-t); color: var(--sheet-t-ink); box-shadow: 0 0 0 1px var(--sheet-t-edge), 0 2px 6px var(--drop-2), 0 16px 36px -18px var(--drop-1); }
.rd-sheetw { padding-bottom: 1px; }
.rd-sheetw > .rd-cut { position: sticky; left: 0; width: max-content; margin: 0; padding: 10px 12px 12px; border-top: 0; }   /* in view however far it scrolls */
.rd-sheetw > .rd-cut:only-child { padding: 14px 18px; }
.rd-cells { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: max-content; font: 400 13px/18px var(--f-ui); }
.rd-cells :is(th, td) {
  box-sizing: border-box; height: 24px; padding: 2px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; vertical-align: bottom;
  border-right: 1px solid var(--sheet-t-edge); border-bottom: 1px solid var(--sheet-t-edge);
}
.rd-cells td.n { text-align: right; font-variant-numeric: tabular-nums; }
.rd-cells td.e { color: var(--danger); }
.rd-cells td.f { color: var(--sheet-t-ink-2); font-family: var(--f-mono); font-size: 12px; }   /* a formula saved without its result */
.rd-cells td.b { font-weight: 600; } .rd-cells td.i { font-style: italic; }
.rd-cells th { font: 500 10.5px/14px var(--f-mono); color: var(--sheet-t-ink-2); background: color-mix(in srgb, var(--sheet-t-ink) 5%, var(--sheet-t)); }
.rd-cells thead th { position: sticky; z-index: 2; top: 0; text-align: center; }
.rd-cells tbody th { position: sticky; z-index: 1; left: 0; text-align: right; }
.rd-cells thead th.rd-c0 { left: 0; z-index: 3; }
.rd-cells col.rd-c0 { width: 44px; }
.rd-tabs {
  position: sticky; z-index: 3; left: var(--rd-l); bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  display: flex; gap: 2px; width: max-content; max-width: min(720px, calc(100vw - 48px)); box-sizing: border-box; margin-top: 14px; padding: 3px;
  border-radius: 8px; overflow-x: auto; scrollbar-width: none;
}
.rd-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 599.98px) { .rd-tabs { bottom: calc(env(safe-area-inset-bottom, 0px) + 12px + var(--rd-chip) + 10px); max-width: calc(100vw - 24px); } }
.rd-tab {
  flex: none; height: 28px; padding: 0 12px; border: 0; border-radius: 6px; font: 500 12.5px/1 var(--f-ui); white-space: nowrap;
  color: var(--ink-2); background: transparent; cursor: pointer; transition: background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out;
}
@media (hover: hover) { .rd-tab:hover:not([aria-selected="true"]) { color: var(--ink); background: color-mix(in srgb, var(--surface) 80%, transparent); } }
.rd-tab[aria-selected="true"] { color: var(--ink); background: var(--press-bg); box-shadow: var(--press); }

/* A deck: its slides one under another, each at the deck's own size (zoomed as a whole), in the file's own colours. */
.rd-slides { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.rd-slide { position: relative; flex: none; overflow: hidden; background: #FFFFFF; color: #000000; box-shadow: var(--rd-page); filter: var(--sheet-dim); }
.rd-sp { position: absolute; box-sizing: border-box; }
.rd-sp > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rd-pic { overflow: hidden; }
.rd-pic > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-select: none; }
.rd-blank { display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .035) 0 8px, transparent 8px 16px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.rd-blank > span { font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(0, 0, 0, .45); }
.rd-tx { position: absolute; inset: 0; box-sizing: border-box; display: flex; flex-direction: column; font-size: 24px; line-height: 1.2; white-space: pre-wrap; overflow-wrap: break-word; -webkit-text-size-adjust: none; text-size-adjust: none; }
.rd-tx p { margin: 0; }
.rd-tc { position: static; display: block; }
.rd-bu { display: inline-block; text-indent: 0; }
.rd-ptab { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
.rd-ptab td { padding: 4.8px 9.6px; overflow: hidden; vertical-align: top; border: 1px solid rgba(0, 0, 0, .2); }
.rd-ptab.std { background: var(--pt-1); }
.rd-ptab.std td { border-color: var(--pt-l); }
.rd-ptab.std tr.b { background: var(--pt-2); }
.rd-ptab.std tr.h { background: var(--pt-a); }
.rd-ptab.std tr.h td { color: var(--pt-l); font-weight: 700; }

/* A picture: itself, fitted to the window (never past its own size), centred while it is smaller than the window. */
.rd-picz { flex: 1 0 auto; align-self: stretch; display: flex; margin: 0; }
.rd-img { flex: none; display: block; max-width: none; margin: auto; box-shadow: 0 2px 6px var(--drop-2), 0 16px 36px -18px var(--drop-1); user-select: none; -webkit-user-select: none; -webkit-touch-callout: default; }
/* a picture turned on the canvas (section 16c): its box is the turned picture's, the picture turned about its middle in it */
.rd-turn { flex: none; position: relative; margin: auto; box-shadow: 0 2px 6px var(--drop-2), 0 16px 36px -18px var(--drop-1); }
.rd-turn > .rd-img { position: absolute; left: 50%; top: 50%; margin: 0; box-shadow: none; }

/* A film plays in the browser's own player, as big as the window lets it; a sound, under its kind's badge. */
.rd-video { display: block; max-width: 100%; max-height: calc(100vh - var(--rd-top) - var(--rd-bot)); max-height: calc(100dvh - var(--rd-top) - var(--rd-bot)); border-radius: 6px; background: #000; box-shadow: var(--rd-page); outline: none; }
.rd-aud { display: grid; justify-items: center; gap: 18px; width: min(420px, 100%); box-sizing: border-box; padding: 36px 32px 28px; border-radius: 12px; background: var(--surface); box-shadow: var(--raise), var(--edge); }
.rd-aud .fc-glyph { width: 48px; height: 56px; }
.rd-aud .fc-glyph b { left: -9px; bottom: 8px; padding: 3px 4px 2.5px; font-size: 10px; }
.rd-wave { width: 128px; height: 64px; fill: none; stroke: var(--ink-3); stroke-width: 3px; stroke-linecap: round; transform-origin: 50% 50%; }
.rd-aud.on .rd-wave { animation: rd-wave 1.1s ease-in-out infinite alternate; }       /* it breathes while it plays */
@keyframes rd-wave { to { scale: 1 .55; } }
.rd-audio { width: 100%; outline: none; }

/* While its file is read: the card's grey lines, on a page; nothing to show: the kind's badge, large, why, and a way
   to open it elsewhere. */
.rd-wait { width: min(612px, 100%); }
.rd-wait .fc-sheet { position: relative; inset: auto; height: min(68vh, 792px); border-radius: 0; box-shadow: var(--rd-page); }
.rd-wait .fc-wait { gap: 14px; padding: clamp(28px, 9%, 64px); }
.rd-wait .fc-wait i { height: 9px; border-radius: 4.5px; }
.rd-wait .fc-wait i:first-child { height: 14px; margin-bottom: 10px; }
.rd-none { display: grid; justify-items: center; gap: 8px; max-width: 360px; text-align: center; }
.rd-none .fc-glyph { width: 56px; height: 66px; margin-bottom: 12px; }
.rd-none .fc-glyph b { left: -10px; bottom: 10px; padding: 3.5px 5px 3px; font-size: 11px; }
.rd-nt { margin: 0; font: 500 15px/21px var(--f-ui); color: var(--ink); }
.rd-ns { margin: 0; font: 400 13px/18px var(--f-ui); color: var(--ink-q); }
.rd-get {
  height: 34px; margin-top: 12px; padding: 0 16px; border: 0; border-radius: 8px; font: 500 13px/1 var(--f-ui); color: var(--ink); cursor: pointer;
  background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: var(--raise-sm), var(--edge); transition: background-color 160ms ease-out, box-shadow 160ms ease-out;
}
.rd-get:active { background: var(--press-bg); box-shadow: var(--press); }
@media (prefers-reduced-motion: reduce) { .rd-copy.done .i-ok path, .rd-aud.on .rd-wave { animation: none; } }
