/*
 * The same face as the Mac app, drawn with CSS instead of AppKit.
 *
 * The palette is carried over exactly: one family walked round the cool half
 * of the wheel, because six unrelated hues in one row read as clutter however
 * good each one looks alone.
 */

:root {
  --paper:   #FBFAFD;
  --card:    #FFFFFF;
  --ink:     #1A1B26;
  --muted:   #61637A;
  --faint:   #8A8CA0;
  --rule:    #E5E4EF;

  --brand:   #4F4DD9;
  --violet:  #7F51DD;
  --blue:    #3273E5;
  --teal:    #168094;
  --green:   #228260;
  --slate:   #5C6982;
  --amber:   #8C6104;

  --fill:    8%;    /* tint strength behind a pill, light mode */
  --fill-up: 15%;   /* the same on hover */
  --edge:    22%;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:  #101118;
    --card:   #191A22;
    --ink:    #E9E9F1;
    --muted:  #9EA0B6;
    --faint:  #71738A;
    --rule:   #292A35;

    --brand:  #9491FB;
    --violet: #B08BF5;
    --blue:   #6FA3F8;
    --teal:   #4BB6C7;
    --green:  #56C79A;
    --slate:  #93A0B8;
    --amber:  #E8BC5C;

    --fill:    16%;
    --fill-up: 26%;
    --edge:    34%;
  }
}

/* Chosen in Options (theme.js): the same dark palette, forced on whatever
   the system says. Light needs no block of its own, only the guard above. */
:root[data-theme="dark"] {
  --paper:  #101118;
  --card:   #191A22;
  --ink:    #E9E9F1;
  --muted:  #9EA0B6;
  --faint:  #71738A;
  --rule:   #292A35;

  --brand:  #9491FB;
  --violet: #B08BF5;
  --blue:   #6FA3F8;
  --teal:   #4BB6C7;
  --green:  #56C79A;
  --slate:  #93A0B8;
  --amber:  #E8BC5C;

  --fill:    16%;
  --fill-up: 26%;
  --edge:    34%;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

* { box-sizing: border-box; }

/* .pane and .scroll both set a display, which outranks the hidden attribute's
   own display:none - so a pane with hidden set stayed on screen and sat on
   top of whatever replaced it. Anything hidden here is hidden. */
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* -- header ------------------------------------------------------------ */

.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  flex: 0 0 auto;
}
.mark {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #6B5CEE, var(--brand));
  color: #fff;
  font-size: 12px; font-weight: 700;
  flex: 0 0 auto;
}
.name { font-weight: 600; font-size: 13.5px; }
.status { color: var(--muted); font-size: 12px; flex: 1 1 auto; }
.streak {
  font: inherit; font-size: 11.5px; font-weight: 600; color: var(--amber);
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  border: 0; padding: 2px 8px; border-radius: 999px; cursor: pointer;
}
.streak:hover { background: color-mix(in srgb, var(--amber) 24%, transparent); }
.streak:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* -- the scrolling half ------------------------------------------------- */

.scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px;
  min-height: 0;
}

.welcome { text-align: center; padding: 58px 8px 0; }  /* room for Theo's speech bubble above him */
.big-mark {
  width: 46px; height: 46px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #6B5CEE, var(--brand));
  color: #fff; font-size: 24px; font-weight: 700;
}
/* Theo's spot on the welcome screen - just the spacing .big-mark used to
   provide, none of its circular background (that's the old logo's look,
   not his). */
.welcome-theo { margin: 0 auto 14px; }
.welcome h1 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.welcome p { color: var(--muted); margin: 0; font-size: 13px; }
.welcome .aside {
  color: var(--faint); font-size: 12px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--rule);
}

/* -- bubbles ------------------------------------------------------------ */

.bubble {
  /* Hug the text. Without this a block-level bubble fills its whole track,
     so "yes" arrives looking like a paragraph. */
  width: fit-content;
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 17px;
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.bubble.you {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
}
.bubble.tutor {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  /* A tagged reply is three labelled parts, not a remark. At 78% the bodies
     wrap after four words and the panel looks half empty beside them. */
  max-width: 94%;
}
.note {
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  margin: 10px 4px;
}
.note.bad { color: #C4443B; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .note.bad { color: #FF8079; }
}
:root[data-theme="dark"] .note.bad { color: #FF8079; }

/* A question cap, not a crash. Its own quiet card, amber rather than red -
   this is expected and temporary, not something that went wrong. The price
   (if there is one) sits underneath as a second, smaller line, never the
   first thing read. */
.limit-card {
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
  border-radius: 14px;
  padding: 13px 15px;
  margin: 10px 4px;
}
.limit-head {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
/* "Got a code?" - quiet, because most students never need it. */
.code-link {
  display: block;
  margin: 12px auto 0;
  padding: 2px 4px;
  font: inherit; font-size: 12px;
  color: var(--brand);
  background: none; border: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.limit-card .code-link { margin: 8px 0 0; padding: 2px 0; }
/* The share line after a READY verdict: the link sits in the sentence. */
.note.share .code-link { display: inline; margin: 0; padding: 0; font-size: inherit; }
.code-card { margin: 10px 4px; }
.code-card .note { margin-top: 8px; }

.limit-upsell {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Theo popping in for a hint, a right answer, or a wrong one. */
.theo-pop {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; margin: 12px 4px;
  animation: theo-pop-in 0.4s cubic-bezier(.34,1.56,.64,1);
}
.theo-caption {
  margin: 0; font-size: 12.5px; color: var(--muted); text-align: center;
}
@keyframes theo-pop-in {
  0%   { opacity: 0; transform: translateY(10px) scale(.7); }
  60%  { opacity: 1; transform: translateY(-3px) scale(1.05); }
  100% { opacity: 1; transform: none; }
}

/* A tagged reply: three small tinted headings, each over a short body, so
   the student sees what the tutor is doing without reading a paragraph. */
.bubble.tutor .sec + .sec { margin-top: 9px; }
.sec-label {
  display: block;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.sec-body { display: block; }
.tint-grey  { color: var(--faint); }
.tint-amber { color: var(--amber); }
.tint-blue  { color: var(--blue); }

/* Something is happening, before the first word arrives. */
.typing {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 11px 13px;
  border-radius: 17px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  margin-bottom: 8px;
}
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--faint);
  animation: blink 1.25s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: 0.17s; }
.typing i:nth-child(3) { animation-delay: 0.34s; }
@keyframes blink {
  0%, 60%, 100% { opacity: 0.28; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-2px); }
}

/* -- being allowed to read the page -------------------------------------- */

/* Deliberately not a note and not a bubble. It is a decision, so it looks
   like one: its own card, one obvious button, and a way out underneath. */
.permit {
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 8px;
}
.permit h2 {
  font-size: 21px; margin: 0 0 10px; letter-spacing: -0.02em;
  overflow-wrap: anywhere; line-height: 1.2;
}
.permit .eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 6px;
}

/* The keys, drawn as keys. A student should not have to decode "⌘⇧U". */
.keys-big {
  display: flex; gap: 8px; justify-content: center;
  margin: 4px 0 16px;
}
.keys-big kbd {
  font: inherit; font-size: 17px; font-weight: 600;
  min-width: 46px; padding: 11px 12px;
  text-align: center;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-bottom-width: 3px;
  border-radius: 9px;
}
.permit p { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
/* A small drawing of their own toolbar, with the one icon they want lit up.
   They are looking at a row of icons they have never had to distinguish
   before; a sentence cannot do this and a picture can. */
.toolbar {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: 10px;
  padding: 5px 8px;
  width: fit-content;
  margin: 6px auto 0;
}
.chip {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px;
  font-size: 14px; color: var(--faint);
}
.chip.me {
  background: var(--card);
  box-shadow: 0 0 0 2px var(--brand);
}
.chip.me img { border-radius: 5px; display: block; }

.point {
  display: flex; flex-direction: column; align-items: center;
  margin: 0 0 12px;
  /* Sit under the highlighted chip, which is third of four. */
  padding-left: 23px;
}
.point .up {
  font-size: 19px; line-height: 1; color: var(--brand);
  animation: nudge 1.6s ease-in-out infinite;
}
.point .this {
  font-size: 11px; font-weight: 600; color: var(--brand);
  letter-spacing: 0.02em;
}
@keyframes nudge {
  0%, 100% { transform: translateY(1px); }
  50%      { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .point .up { animation: none; }
}
.permit .instead kbd {
  font: inherit; font-size: 11px; font-weight: 600;
  padding: 2px 6px; margin: 0 1px;
  border: 1px solid var(--rule); border-bottom-width: 2px;
  border-radius: 5px; color: var(--muted);
}

/* The shortcut card has one instruction and one picture of it. Centring
   puts them on the same axis so the eye goes title, keys, done. */
.permit.middle { text-align: center; }
.permit.middle h2 { margin-bottom: 14px; }
.permit .instead {
  margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--faint);
}
.go.wide { width: 100%; overflow-wrap: anywhere; }

/* A quiet offer under a reply that already worked. Not a card: they are not
   blocked on it, and it must not look like they are. */
.offer {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 10px 0 8px;
  flex-wrap: wrap;
}
.offer span { flex: 1 1 auto; }
.offer-go, .offer-no {
  font: inherit; font-size: 12px; font-weight: 600;
  border: 0; border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.offer-go { background: var(--brand); color: #fff; }
.offer-no { background: none; color: var(--faint); }
.offer-no:hover { color: var(--muted); }

/* The row Chrome shows under the puzzle piece, so they know what they are
   looking for before they go looking for it. */
.pin-demo {
  display: flex; align-items: center; gap: 8px;
  width: fit-content; margin: 0 auto 14px;
  padding: 6px 10px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  font-size: 12.5px;
}
.pin-demo img { border-radius: 4px; display: block; }
.pin-name { color: var(--ink); font-weight: 500; }
.pin-icon { font-size: 12px; filter: grayscale(1); opacity: 0.75; }

/* -- the invite code, for testers --------------------------------------- */

.setup { text-align: center; padding: 26px 8px 0; }
.setup h1 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
.setup p { color: var(--muted); margin: 0 0 16px; font-size: 13px; }
.setup-row { display: flex; gap: 6px; }
#code {
  flex: 1 1 auto;
  font: inherit; font-weight: 600; letter-spacing: 0.06em;
  text-align: center; text-transform: uppercase;
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
}
#code:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.go {
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 18px;
  line-height: 1.2;
  border: 0; border-radius: 999px;
  background: var(--brand); color: #fff;
  cursor: pointer;
}
.go:hover { filter: brightness(1.07); }

.shot {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--rule);
  margin-bottom: 8px;
}

/* -- Basics ------------------------------------------------------------- */

.search-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.back {
  border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 20px; line-height: 1;
  padding: 0 4px;
}
#basics-search {
  flex: 1 1 auto;
  font: inherit;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
}
#basics-search:focus { outline: 2px solid var(--brand); outline-offset: -1px; }

.section-head {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--faint);
  margin: 16px 2px 5px;
}
.section-head:first-child { margin-top: 2px; }

.topic {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  font: inherit; font-weight: 500;
  color: var(--ink);
  background: none; border: 0; cursor: pointer;
  padding: 9px 10px;
  border-radius: 8px;
}
.topic:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.topic .chev { margin-left: auto; color: var(--faint); }

.topic-view h2 { font-size: 18px; margin: 4px 0 14px; letter-spacing: -0.01em; }
.topic-view .eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--faint); margin: 0;
}
.topic-view .card + .card { border-top: 1px solid var(--rule); padding-top: 13px; }
.topic-view .card { margin-bottom: 13px; }
.topic-view h3 { font-size: 12.5px; color: var(--brand); margin: 0 0 3px; }
.topic-view p { margin: 0; font-size: 13.5px; }
.empty { color: var(--muted); font-size: 13px; }

/* -- keypad ------------------------------------------------------------- */

.composer { flex: 0 0 auto; padding: 0 14px 12px; }

.quick, .keys { display: grid; gap: 4px; }
.quick { grid-template-columns: repeat(10, 1fr); margin-bottom: 8px; }
.keys { grid-template-columns: repeat(10, 1fr); }

.key {
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 0; border-radius: 6px;
  padding: 5px 0; min-height: 26px;
  cursor: pointer;
  overflow: hidden;
}
.key:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.key:disabled, .tab:disabled { cursor: default; }
.dimmed { opacity: 0.45; pointer-events: none; }
.key.small { font-size: 10.5px; }

.pad { margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; margin-bottom: 5px; }
.tab {
  font: inherit; font-size: 10.5px; font-weight: 600;
  flex: 1 1 auto;
  color: var(--muted);
  background: none; border: 0; border-radius: 999px;
  padding: 4px 0; cursor: pointer;
}
.tab[aria-selected="true"] {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}

/* -- pills -------------------------------------------------------------- */

.pills { display: flex; gap: 6px; margin-bottom: 6px; }

.pill {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font: inherit; font-size: 12px; font-weight: 600;
  padding: 6px 4px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) var(--fill), transparent);
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill:hover { background: color-mix(in srgb, var(--tint) var(--fill-up), transparent); }
.pill[aria-pressed="true"] {
  background: color-mix(in srgb, var(--tint) var(--fill-up), transparent);
  border-color: color-mix(in srgb, var(--tint) var(--edge), transparent);
}
.pill:disabled { opacity: 0.4; cursor: default; }
.pill .ico { font-size: 12px; }

.pill[data-tint="brand"]  { --tint: var(--brand); }
.pill[data-tint="violet"] { --tint: var(--violet); }
.pill[data-tint="blue"]   { --tint: var(--blue); }
.pill[data-tint="teal"]   { --tint: var(--teal); }
.pill[data-tint="green"]  { --tint: var(--green); }
.pill[data-tint="slate"]  { --tint: var(--slate); }

/* -- ask box ------------------------------------------------------------ */

.ask {
  display: flex; align-items: center; gap: 6px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 17px;
  padding: 3px 4px 3px 12px;
}
.ask:focus-within { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
#ask {
  flex: 1 1 auto;
  font: inherit;
  border: 0; background: none; color: var(--ink);
  padding: 5px 0;
}
#ask:focus { outline: none; }
.send {
  width: 26px; height: 26px; flex: 0 0 auto;
  border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--muted);
  cursor: pointer; font-size: 13px;
}
.send.armed { background: var(--brand); color: #fff; }
.send:disabled, #ask:disabled { opacity: 0.45; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .typing i { animation: none; opacity: 0.6; }
}

/* -- the graph ----------------------------------------------------------- */

/* A pane, not a window. Two windows is what made this feel like two separate
   programs on the Mac, and the same mistake is available here. */
.pane {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 0;
}

.graph-top { display: flex; gap: 6px; margin-bottom: 8px; }
#graph-input {
  flex: 1 1 auto;
  font: inherit; font-size: 13.5px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
}
#graph-input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }

.icon-btn {
  font: inherit; font-size: 15px; font-weight: 600;
  min-width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 9px;
  background: var(--card); color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.icon-btn:hover { border-color: var(--faint); }
.icon-btn.wide { font-size: 12px; padding: 0 10px; }

.graph-list { display: grid; gap: 4px; margin-bottom: 8px; }
.graph-list:empty { margin-bottom: 0; }
.curve {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  padding: 5px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.curve .swatch {
  width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto;
}
.curve .what {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.curve .drop {
  border: 0; background: none; cursor: pointer;
  color: var(--faint); font-size: 15px; line-height: 1; padding: 0 2px;
}
.curve .drop:hover { color: var(--ink); }
.curve.bad .what { color: #C4443B; font-family: inherit; }

.graph-stage { position: relative; flex: 1 1 auto; min-height: 200px; }
#graph-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--card);
  touch-action: none;
  cursor: crosshair;
}
.graph-readout {
  position: absolute; left: 8px; top: 8px;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 3px 6px;
  pointer-events: none;
}
.graph-tools {
  position: absolute; right: 8px; bottom: 8px;
  display: flex; gap: 5px;
}
.graph-tools .icon-btn {
  background: color-mix(in srgb, var(--card) 90%, transparent);
}

/* -- picking a unit to be quizzed on ------------------------------------- */

.pick-head h2 { font-size: 17px; margin: 2px 0 4px; letter-spacing: -0.01em; }
.pick-head p { color: var(--muted); font-size: 13px; margin: 0 0 14px; }

.unit {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  font: inherit; font-weight: 500;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s var(--ease, ease);
}
.unit:hover { border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.unit .title { flex: 1 1 auto; min-width: 0; }
.unit .count {
  flex: 0 0 auto;
  font-size: 11.5px; color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* Keyboard users need to see where they are. Mouse clicks don't show it. */
button:focus-visible, a:focus-visible, [role="tab"]:focus-visible,
.theo-widget:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* "Print a practice sheet instead", under the quiz topics. */
.sheet-btn {
  display: block; width: 100%; margin-top: 12px; padding: 10px 12px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--brand);
  background: transparent; border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: 12px; cursor: pointer;
}
.sheet-btn:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
