/* ---------- Tinkering board (tinkering/*.js) ----------
   A blueprint sheet on a night-blue desk. Chrome is cream paper with wobbly, drawn-looking
   edges; type follows the site (Instrument Serif titles, JetBrains Mono labels). Handles
   and outlines divide by --k (the zoom) so they stay the same size on screen. Whatever
   people type is in Virgil, Excalidraw's handwriting (vendor/virgil, SIL OFL 1.1). */
@font-face {
  font-family: 'Virgil';
  src: url('vendor/virgil/Virgil.woff2') format('woff2');
  font-display: swap;
}
.page.t-tinkering { --bg: #14233a; --ink: #f6f0e4; }
.tinkering-board {
  --tk-ink: #1b2a41;
  --tk-paper: #f6f0e4;
  --tk-chalk: rgba(246, 240, 228, 0.62);
  --tk-butter: #fce79a;
  --tk-serif: 'Instrument Serif', Georgia, serif;
  --tk-sans: var(--sans, 'Satoshi', system-ui, sans-serif);
  --tk-mono: 'JetBrains Mono', ui-monospace, monospace;
  --tk-hand: 'Virgil', 'Segoe Print', 'Bradley Hand', cursive;
  --tk-wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--tk-paper);
  background: radial-gradient(ellipse 80% 70% at 50% 45%, #1a2d49 0%, #122036 60%, #0c1727 100%);
  opacity: 0;
  transition: opacity 260ms ease-out;
}
.page.is-expanded .tinkering-board { opacity: 1; transition: opacity 600ms ease-out 300ms; }
.tinkering-board[hidden] { display: none; }

/* ---------- Sheet and items ---------- */
.tk-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.tk-viewport.is-space { cursor: grab; }
.tk-viewport.is-panning { cursor: grabbing; }
.tk-viewport:is([data-tool="rect"], [data-tool="ellipse"], [data-tool="line"], [data-tool="arrow"], [data-tool="sticky"], [data-tool="checklist"]) { cursor: crosshair; }
.tk-viewport[data-tool="text"] { cursor: text; }
.tk-world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  background-size: 100% 100%;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(246, 240, 228, 0.06);
}
.tk-title-art { position: absolute; pointer-events: none; background: var(--title) center / contain no-repeat; }
/* Inks that switch to navy on a light mat (palette onLight) need no edge. */
.is-light-mat .tk-item.is-swapped-ink .tk-body { filter: none; }
/* Tinted lettering: the PNG is only a shape, painted in the mat's ink. */
.tk-title-art.is-tinted { background: var(--tk-mat-ink, #f6f0e4); -webkit-mask: var(--title) center / contain no-repeat; mask: var(--title) center / contain no-repeat; }
/* Pastel shapes, arrows and stickers on a pale mat get a thin brown edge. Text boxes, checklists and sticky notes stay flat; paper items (cards, photos) don't need an edge. */
.is-light-mat :is(.tk-shape, .tk-arrow, .tk-sticker) .tk-body { filter: drop-shadow(0 0 1.2px rgba(74, 48, 14, 0.9)) drop-shadow(0 1.5px 1.5px rgba(74, 48, 14, 0.45)); }
.tk-items { position: absolute; inset: 0; z-index: 0; }
.tk-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.tk-item { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; }
.tk-body { width: 100%; height: 100%; }
.tk-viewport[data-tool="select"] .tk-item:not(.is-locked) { cursor: move; }
.tk-svg { display: block; overflow: visible; pointer-events: none; }
.tk-svg path { stroke-linecap: round; stroke-linejoin: round; }
.tk-hit { fill: none; stroke: transparent; pointer-events: stroke; }
.tk-arrow { pointer-events: none; }
.tk-arrow .tk-svg { position: absolute; left: 0; top: 0; }
.tk-arrow .tk-hit { cursor: move; }

/* The lock (or unlock) drawing in the corner of Felix's items: on hover, and with a
   wiggle when a visitor tries to grab one. */
.tk-badge {
  position: absolute;
  right: -12px;
  top: -12px;
  width: 24px;
  height: 24px;
  padding: 2px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--tk-paper);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms;
}
.tk-badge:not([src]) { display: none; }
@media (hover: hover) { .tk-item.is-owner:hover .tk-badge { opacity: 1; } }
.tk-item.is-poked .tk-badge { opacity: 1; animation: tk-wiggle 480ms ease-in-out; }
@keyframes tk-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-16deg) scale(1.2); }
  60% { transform: rotate(12deg) scale(1.1); }
}

[contenteditable].is-editing { outline: none; caret-color: currentColor; cursor: text; user-select: text; -webkit-user-select: text; }

/* Text */
.tk-text-body { white-space: pre; line-height: 1.08; padding: 2px 6px; min-width: 0.6em; min-height: 1em; }
.tk-text-body.is-editing:empty::before { content: 'type…'; opacity: 0.45; }
/* List items (lists.js): the marker sits in its own column, so wrapped lines hang under the text. */
.tk-li { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.tk-li-mark { white-space: pre; }
.tk-line:empty::before { content: '\200b'; }

/* Images */
.tk-photo {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 6px;
  background: var(--tk-paper);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.tk-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tk-photo.is-missing { background: transparent; border: 1.5px dashed var(--tk-chalk); box-shadow: none; }
.tk-deco { position: absolute; left: 50%; pointer-events: none; transform: translateX(-50%) rotate(var(--tilt, 0deg)); }
.tk-deco.is-tape { width: 120px; top: -18px; }
.tk-deco.is-pin { width: 46px; top: -30px; }
.tk-deco.is-tack { width: 38px; top: -18px; }

/* Link cards */
.tk-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 14px 16px 12px 18px;
  overflow: hidden;
  color: var(--tk-ink);
  background: var(--tk-paper);
  border-left: 7px solid var(--accent);
  border-radius: 2px 3px 2px 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.tk-card p { margin: 0; }
.tk-card-host { display: flex; align-items: center; gap: 6px; font-family: var(--tk-mono); font-size: 11px; opacity: 0.6; }
.tk-card-host img { width: 14px; height: 14px; border-radius: 3px; }
.tk-card-title {
  flex: 1;
  font-family: var(--tk-serif);
  font-size: 27px;
  line-height: 1.02;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tk-card-title.is-editing { display: block; }
.tk-card-open { align-self: flex-start; font-family: var(--tk-mono); font-size: 11px; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; cursor: pointer; }

/* Sticky notes */
.tk-paper {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 20px 18px;
  overflow: hidden;
  color: var(--tk-ink);
  background-size: cover;
  background-blend-mode: multiply;
  border-radius: 2px 2px 16px 2px / 2px 2px 7px 2px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.32), 0 1px 1px rgba(0, 0, 0, 0.1);
}
.tk-sticky-text { height: 100%; font-family: var(--tk-hand); font-size: 22px; line-height: 1.25; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-sticky-text.is-editing:empty::before { content: 'a thought…'; opacity: 0.45; }

/* To-do lists */
.tk-checks { list-style: none; margin: 0; padding: 4px 6px; font-family: var(--tk-hand); line-height: 1.4; white-space: nowrap; }
.tk-checks li { display: flex; align-items: center; gap: 0.5em; }
.tk-checks li.is-done span { text-decoration: line-through; text-decoration-thickness: 0.07em; opacity: 0.6; }
.tk-check {
  position: relative;
  flex: none;
  width: 0.8em;
  height: 0.8em;
  padding: 0;
  color: inherit;
  background: none;
  border: 0.1em solid currentColor;
  border-radius: 0.12em 0.22em 0.1em 0.18em;
  cursor: pointer;
}
.tk-check[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  left: 0.16em;
  top: -0.3em;
  width: 0.32em;
  height: 0.75em;
  border: solid currentColor;
  border-width: 0 0.13em 0.13em 0;
  transform: rotate(38deg);
}
.tk-item.is-locked .tk-check { cursor: default; }
.tk-checks-edit { min-width: 7em; min-height: 1.4em; padding: 4px 6px 4px calc(6px + 1.3em); font-family: var(--tk-hand); line-height: 1.4; white-space: pre; }
.tk-checks-edit:empty::before { content: 'one task per line'; opacity: 0.45; }

/* Stickers */
.tk-doodle { width: 100%; height: 100%; -webkit-mask: var(--doodle) center / contain no-repeat; mask: var(--doodle) center / contain no-repeat; }
.tk-doodle-img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Selection, handles, snapping ---------- */
.tk-selection, .tk-snap-target { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; }
.tk-selection { outline: calc(1.5px / var(--k)) dashed rgba(246, 240, 228, 0.85); outline-offset: calc(5px / var(--k)); }
.tk-selection.is-editing { outline-style: solid; outline-color: rgba(246, 240, 228, 0.35); }
.tk-handle {
  position: absolute;
  width: calc(12px / var(--k));
  height: calc(12px / var(--k));
  margin: calc(-6px / var(--k)) 0 0 calc(-6px / var(--k));
  box-sizing: border-box;
  background: var(--tk-paper);
  border: calc(1.5px / var(--k)) solid var(--tk-ink);
  border-radius: calc(3px / var(--k));
  pointer-events: auto;
  touch-action: none;
}
.tk-handle[data-handle="nw"], .tk-handle[data-handle="se"] { cursor: nwse-resize; }
.tk-handle[data-handle="ne"], .tk-handle[data-handle="sw"] { cursor: nesw-resize; }
.tk-handle.is-rotate { margin-top: calc(-34px / var(--k)); border-radius: 50%; cursor: grab; }
.tk-handle.is-point { border-radius: 50%; cursor: move; }
.tk-handle.is-bend { background: var(--tk-butter); }
@media (pointer: coarse) {
  .tk-handle { width: calc(22px / var(--k)); height: calc(22px / var(--k)); margin: calc(-11px / var(--k)) 0 0 calc(-11px / var(--k)); }
  .tk-handle.is-rotate { margin-top: calc(-44px / var(--k)); }
}
.tk-snap-target { outline: calc(2px / var(--k)) solid rgba(252, 231, 154, 0.5); outline-offset: calc(3px / var(--k)); border-radius: calc(4px / var(--k)); }
.tk-snap-target.is-round { border-radius: 50%; }
.tk-snap-dot {
  position: absolute;
  width: calc(12px / var(--k));
  height: calc(12px / var(--k));
  margin: calc(-6px / var(--k)) 0 0 calc(-6px / var(--k));
  border-radius: 50%;
  background: var(--tk-butter);
  box-shadow: 0 0 0 calc(5px / var(--k)) rgba(252, 231, 154, 0.28);
}

/* ---------- Chrome ---------- */
.tk-ui { position: absolute; inset: 0; pointer-events: none; font-family: var(--tk-mono); opacity: 0; transition: opacity 500ms ease-out 200ms; }
.tinkering-board.is-live .tk-ui { opacity: 1; }
.tk-ui button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.tk-updated { position: absolute; margin: 0; font-size: 11px; letter-spacing: 0.03em; color: var(--tk-chalk); left: calc(24px + env(safe-area-inset-left, 0px)); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.tk-zoom { position: absolute; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; pointer-events: auto; }
.tk-zoom button { min-width: 30px; height: 30px; padding: 0 6px; font-size: 12px; color: var(--tk-chalk); background: none; border: 0; cursor: pointer; }
.tk-zoom button:hover, .tk-zoom button:focus-visible { color: var(--tk-paper); outline: none; }
.tk-zoom button:disabled { opacity: 0.3; cursor: default; }

/* Above the board's top-right corner (positioned by ui.camera): mat switch, then the lock. */
.tk-corner { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.tk-corner button {
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--tk-paper);
  border: 1.5px solid var(--tk-ink);
  border-radius: var(--tk-wobble);
  box-shadow: 2px 3px 0 rgba(8, 15, 26, 0.55);
  cursor: pointer;
}
.tk-corner button[hidden] { display: none; }
.tk-corner button:focus-visible { outline: 2px solid var(--tk-butter); outline-offset: 2px; }
.tk-lock { width: 44px; height: 44px; }
.tk-lock img { width: 32px; height: 32px; transition: transform 160ms var(--ease-out-quint, ease-out); }
.tk-lock:hover img { transform: rotate(-7deg) scale(1.06); }
.tk-lock.is-on { background: #b7e8c4; }
.tk-mat { width: 32px; height: 32px; }
.tk-mat span { width: 18px; height: 18px; background: var(--mat); border: 1.5px solid var(--tk-ink); border-radius: 46% 54% 50% 50% / 52% 48% 54% 46%; transition: transform 160ms var(--ease-out-quint, ease-out); }
.tk-mat:hover span { transform: rotate(-10deg) scale(1.1); }

/* People on the board right now. Round colour chips, immediately left of the mat and
   the lock. Hover names them; the one with the ring is you, and it renames. */
.tk-people { display: flex; align-items: center; gap: 6px; flex: none; }
.tk-person {
  position: relative;
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  background: var(--c, var(--tk-paper));
  border: 1.5px solid var(--tk-ink);
  border-radius: 46% 54% 48% 52% / 52% 42% 58% 48%;
  box-shadow: 1px 2px 0 rgba(8, 15, 26, 0.45);
  cursor: default;
}
.tk-corner button.tk-person {
  width: 22px;
  height: 22px;
  background: var(--c, var(--tk-paper));
  border-radius: 46% 54% 48% 52% / 52% 42% 58% 48%;
  box-shadow: 1px 2px 0 rgba(8, 15, 26, 0.45);
}
.tk-person.is-me, .tk-corner button.tk-person.is-me {
  cursor: pointer;
  box-shadow: 0 0 0 2px var(--tk-paper), 0 0 0 3.5px var(--tk-ink);
}
.tk-person::after {
  content: attr(data-name);
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(100% + 7px);
  transform: translateX(-50%) rotate(-1.5deg);
  padding: 2px 7px 3px;
  font-family: var(--tk-hand);
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--tk-ink);
  white-space: nowrap;
  background: var(--tk-paper);
  border: 1.5px solid var(--tk-ink);
  border-radius: 3px 9px 7px 4px;
  box-shadow: 2px 2px 0 rgba(8, 15, 26, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease-out;
}
.tk-person:hover::after, .tk-person:focus-visible::after { opacity: 1; }

/* Someone else's cursor, in board px inside .tk-world so zoom and pan carry it.
   The arrow tip is that point (cursor.js sets --tip-x/y). Dividing by --k keeps
   the pointer and the name the same size on screen. */
.tk-cursors { position: absolute; inset: 0; z-index: 2; overflow: visible; pointer-events: none; }
.tk-cursor {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
  transition: left 90ms linear, top 90ms linear;
}
.tk-cursor svg {
  position: absolute;
  left: calc(var(--tip-x) * -1px / var(--k, 1));
  top: calc(var(--tip-y) * -1px / var(--k, 1));
  width: calc(var(--vb-w) * 1px / var(--k, 1));
  height: calc(var(--vb-h) * 1px / var(--k, 1));
  overflow: visible;
  filter: drop-shadow(0 calc(1px / var(--k, 1)) calc(1.2px / var(--k, 1)) rgba(0, 0, 0, 0.38));
}
/* Your name, next to the CSS cursor. Not inside the transformed sheet, so the
   offset is already in screen px (cursor.js tagOffset). */
.tk-self-tag {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  margin: 0;
  pointer-events: none;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--c, #d4c1f4);
  color: #fff;
  font: 600 12px/16px var(--tk-sans, Satoshi, system-ui, sans-serif);
  white-space: nowrap;
  filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.38));
}

.tk-dock {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  transform: translateX(-50%);
}
.tk-toolbar, .tk-props, .tk-pop {
  display: flex;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  color: var(--tk-ink);
  background: var(--tk-paper);
  border: 1.5px solid var(--tk-ink);
  border-radius: var(--tk-wobble);
  box-shadow: 3px 4px 0 rgba(8, 15, 26, 0.55);
  pointer-events: auto;
}
.tk-toolbar::-webkit-scrollbar, .tk-props::-webkit-scrollbar { display: none; }
.tk-props[hidden], .tk-pop[hidden] { display: none; }
.tk-toolbar { gap: 1px; padding: 4px 8px; }
.tk-tool {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.tk-tool img { width: 32px; height: 32px; transition: transform 160ms var(--ease-out-quint, ease-out); }
.tk-tool:hover img, .tk-tool:focus-visible img { transform: rotate(-7deg) scale(1.06); }
.tk-tool:focus-visible { outline: none; }
.tk-tool.is-mirror img { transform: scaleX(-1); }
.tk-tool.is-mirror:hover img { transform: scaleX(-1) rotate(-7deg) scale(1.06); }
/* A highlighter blob behind the tool in use. */
.tk-tool.is-on::before {
  content: '';
  position: absolute;
  inset: 4px;
  z-index: -1;
  background: var(--tk-butter);
  border-radius: 42% 58% 55% 45% / 55% 45% 58% 42%;
  transform: rotate(-6deg);
}
.tk-tool:disabled { opacity: 0.28; cursor: default; }
.tk-tool:disabled img { transform: none; }
.tk-sep { flex: none; width: 1.5px; height: 24px; margin: 0 5px; background: rgba(27, 42, 65, 0.18); border-radius: 1px; }

.tk-props { gap: 8px; padding: 5px 10px; }
.tk-prop { display: flex; align-items: center; gap: 2px; flex: none; }
.tk-prop + .tk-prop { padding-left: 8px; border-left: 1.5px solid rgba(27, 42, 65, 0.14); }
.tk-chip {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  font-size: 11px;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.tk-chip:hover, .tk-chip:focus-visible { background: rgba(27, 42, 65, 0.07); outline: none; }
.tk-chip.is-on { background: rgba(27, 42, 65, 0.12); }
.tk-chip img { width: 30px; height: 20px; object-fit: contain; }
.tk-chip.is-swatch {
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 0 1px;
  padding: 0;
  background: var(--swatch);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%;
  box-shadow: inset 0 0 0 1.5px rgba(27, 42, 65, 0.3);
}
.tk-chip.is-swatch.is-on, .tk-chip.is-swatch:hover { background: var(--swatch); box-shadow: inset 0 0 0 1.5px var(--tk-ink), 0 0 0 2px var(--tk-paper), 0 0 0 3.5px var(--tk-ink); }
.tk-prop.is-font .tk-chip { font-size: 16px; }

.tk-pop { gap: 2px; padding: 5px 8px; }
.tk-pop-item { display: grid; place-items: center; flex: none; width: 50px; height: 50px; padding: 0; font-size: 11px; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.tk-pop-item:hover, .tk-pop-item:focus-visible { background: rgba(27, 42, 65, 0.08); outline: none; }
.tk-pop-item img { width: 38px; height: 38px; object-fit: contain; }
.tk-pop-item svg { width: 36px; height: 36px; overflow: visible; }
.tk-pop-doodle { width: 38px; height: 38px; background: var(--tk-ink); -webkit-mask: var(--doodle) center / contain no-repeat; mask: var(--doodle) center / contain no-repeat; }

.tk-toast {
  position: absolute;
  left: 50%;
  bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 7px 13px;
  font-size: 11.5px;
  color: var(--tk-ink);
  background: var(--tk-paper);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 200ms, transform 300ms var(--ease-out-quint, ease-out);
}
.tk-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.tk-stamp { position: absolute; left: 50%; top: 44%; width: 170px; height: 170px; margin: -85px 0 0 -85px; opacity: 0; pointer-events: none; }
.tk-stamp img { width: 100%; height: 100%; box-sizing: border-box; padding: 28px; background: var(--tk-paper); border-radius: 50%; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.tk-stamp.is-on { animation: tk-stamp 1100ms ease-out both; }
@keyframes tk-stamp {
  0% { opacity: 0; transform: scale(1.8) rotate(-16deg); }
  16% { opacity: 1; transform: scale(0.94) rotate(-8deg); }
  24% { transform: scale(1) rotate(-8deg); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: scale(1) rotate(-8deg); }
}

.tk-dialog { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 15, 26, 0.45); pointer-events: auto; }
.tk-dialog[hidden] { display: none; }
.tk-dialog-card {
  width: min(340px, calc(100% - 40px));
  box-sizing: border-box;
  padding: 22px 22px 16px;
  color: var(--tk-ink);
  background: var(--tk-paper);
  border: 1.5px solid var(--tk-ink);
  border-radius: var(--tk-wobble);
  box-shadow: 4px 5px 0 rgba(8, 15, 26, 0.6);
}
.tk-dialog-title { margin: 0 0 14px; font-family: var(--tk-serif); font-size: 32px; font-weight: 400; letter-spacing: -0.01em; }
.tk-dialog-field { display: block; }
.tk-dialog-field span { display: block; margin-bottom: 4px; font-size: 11px; opacity: 0.6; }
.tk-dialog-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 0;
  font: 16px var(--tk-mono);
  color: var(--tk-ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--tk-ink);
  border-radius: 0;
  outline: none;
}
.tk-dialog-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 18px; }
.tk-dialog-actions button { padding: 7px 13px; font-size: 12px; background: none; border: 0; border-radius: 999px; cursor: pointer; }
.tk-dialog-actions button:hover { background: rgba(27, 42, 65, 0.08); }
.tk-dialog-actions .is-primary, .tk-dialog-actions .is-primary:hover { color: var(--tk-paper); background: var(--tk-ink); }

@media (max-width: 760px) {
  .tk-updated { left: 14px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); font-size: 10px; }
  .tk-zoom { display: none; }
  .tk-dock { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 16px); }
  .tk-toolbar { gap: 0; padding: 3px 4px; }
  .tk-tool { width: 31px; height: 40px; }
  .tk-tool img { width: 26px; height: 26px; }
  .tk-sep { margin: 0 2px; }
  .tk-toast { bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .tk-stamp.is-on, .tk-item.is-poked .tk-badge { animation: none; }
  .tk-cursor, .tk-person::after { transition: none; }
}
