/* The card designer (design.html). Linen's look: white and ink, the system font, soft gray lines and rounded
   controls, in light and dark. The card in the middle keeps its own colors. */
:root {
  color-scheme: light;
  --desk: #f2f2f7;      /* behind the card */
  --surface: #ffffff;   /* panels and the header */
  --raised: #ffffff;    /* dialogs, the zoom and floating things */
  --ink: #111111;
  --muted: #6e6e73;
  --faint: #aeaeb2;
  --line: #e5e5ea;
  --fill: #f2f2f7;      /* controls at rest */
  --fill-strong: #e5e5ea;
  --accent: #111111;    /* Linen's buttons are ink */
  --on-accent: #ffffff;
  --selected: #f2f2f7;
  --guide: #ff2d55;
  --ok: #34c759;
  --warn: #ff9500;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08);
  --card-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 12px 32px rgb(0 0 0 / .14);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top: calc(56px + env(safe-area-inset-top, 0px));
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --desk: #000000;
    --surface: #1c1c1e;
    --raised: #2c2c2e;
    --ink: #f5f5f7;
    --muted: #98989d;
    --faint: #636366;
    --line: #38383a;
    --fill: #2c2c2e;
    --fill-strong: #3a3a3c;
    --accent: #f5f5f7;
    --on-accent: #111111;
    --selected: #2c2c2e;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .5);
    --card-shadow: 0 1px 2px rgb(0 0 0 / .5), 0 12px 32px rgb(0 0 0 / .6);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 15px/1.4 var(--font);
  color: var(--ink);
  background: var(--desk);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* MARK: Header */
.top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--top);
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand .word { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.brand .sep { width: 1px; height: 18px; background: var(--line); }
.brand .what { color: var(--muted); font-weight: 500; }
.logo { flex: none; display: block; }
.logo-tile { fill: var(--surface); }
.logo-card { fill: var(--ink); }
.top .logo { border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
.actions { display: flex; align-items: center; gap: 6px; }

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.iconbtn:hover:not(:disabled) { background: var(--fill); }
.iconbtn:disabled { color: var(--faint); }
.iconbtn.on { color: var(--ink); background: var(--fill-strong); }
.icon { display: block; }
.ico { display: inline-grid; place-items: center; flex: none; }

.status { display: flex; align-items: center; gap: 7px; margin: 0 8px 0 6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); transition: background .2s; }
.status[data-state="saving"] .dot, .status[data-state="unsaved"] .dot { background: var(--faint); animation: pulse 1s ease-in-out infinite; }
.status[data-state="offline"] .dot { background: var(--warn); }
@keyframes pulse { 50% { opacity: .35; } }

.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
  transition: transform .12s, opacity .15s, background .15s;
}
.primary { background: var(--accent); color: var(--on-accent); }
.secondary { background: var(--fill); color: var(--ink); }
.primary:active:not(:disabled), .secondary:active:not(:disabled) { transform: scale(.97); }
.primary:disabled { opacity: .5; }
.primary.busy { opacity: .6; }
#publish.locked::before {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5.5 9h9v7.5h-9zM7.5 9V6.5a2.5 2.5 0 0 1 5 0V9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5.5 9h9v7.5h-9zM7.5 9V6.5a2.5 2.5 0 0 1 5 0V9'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* MARK: Workspace */
.work {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 296px;
}
.side { min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
.side.left { border-right: 1px solid var(--line); padding-left: env(safe-area-inset-left, 0px); }
.side.right { border-left: 1px solid var(--line); padding-right: env(safe-area-inset-right, 0px); }
.sheet { min-height: 0; display: flex; flex-direction: column; }
.sheet.grow { flex: 1; }
.sheet + .sheet { border-top: 1px solid var(--line); }
.sheet-head { display: none; }
.panel { overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px 20px; flex: 1; min-height: 0; }

.stage {
  position: relative;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--desk);
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.stage.drop { box-shadow: inset 0 0 0 3px var(--accent); }
.desk {
  min-width: 100%;
  min-height: 100%;
  width: max-content;
  height: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
#paper { position: relative; flex: none; touch-action: none; }
#card { position: absolute; inset: 0; overflow: hidden; box-shadow: var(--card-shadow); background: #fff; }
#card svg { display: block; width: 100%; height: 100%; }
#card .design text { white-space: pre; }
#overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#overlay * { vector-effect: non-scaling-stroke; }
#overlay .halo { fill: none; stroke: #fff; stroke-width: 3.5; stroke-opacity: .9; }
#overlay .outline { fill: none; stroke: #111; stroke-width: 1.5; }
#overlay .hover { fill: none; stroke: #111; stroke-width: 1; stroke-opacity: .55; }
#overlay .ghost { fill: rgb(127 127 127 / .08); stroke: #8e8e93; stroke-width: 1; stroke-dasharray: 4 3; }
#overlay .group { fill: none; stroke: #111; stroke-width: 1; stroke-dasharray: 5 4; }
#overlay .handle { fill: #fff; stroke: #111; stroke-width: 1.5; }
#overlay .stem { stroke: #111; stroke-width: 1.25; }
#overlay .guide { stroke: var(--guide); stroke-width: 1; }
#overlay .marquee { fill: rgb(17 17 17 / .06); stroke: #111; stroke-width: 1; stroke-dasharray: 3 3; }

.float { position: absolute; z-index: 2; }
.zoom {
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 13px;
  background: var(--raised);
  box-shadow: var(--shadow);
}
.zoom .iconbtn { width: 32px; height: 32px; border-radius: 9px; }
.zoom .level { min-width: 52px; height: 32px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.zoom .level:hover { background: var(--fill); color: var(--ink); }

.empty {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 40px));
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: var(--raised);
  box-shadow: var(--shadow);
  text-align: center;
}
.empty h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.empty p { margin: 0 0 16px; color: var(--muted); }
.empty-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* MARK: Panels */
.group { padding: 14px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.group + .group { border-top: 1px solid var(--line); }
.group h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.note { margin: 0; color: var(--muted); font-size: 13px; }
.note.none { padding: 4px 0; }
.title { padding: 16px 0 2px; }
.title h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title .sub { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.bar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.bar .grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.row .label { flex: none; width: 70px; color: var(--muted); font-size: 13px; }
.row:has(.color) { align-items: flex-start; }
.row:has(.color) .label { padding-top: 6px; }
.row .controls { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--fill);
  font-size: 14px;
  font-weight: 500;
}
.btn:hover { background: var(--fill-strong); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px 10px;
  border: 0;
  border-radius: 12px;
  background: var(--fill);
  font-size: 12px;
  font-weight: 500;
  transition: background .15s, transform .12s;
}
.tile:hover { background: var(--fill-strong); }
.tile:active { transform: scale(.96); }
.details { display: flex; flex-direction: column; gap: 2px; }
.detail {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.detail:hover { background: var(--fill); }
.detail .dk { flex: none; width: 64px; font-size: 13px; font-weight: 600; }
.detail .dv { min-width: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.layers { display: flex; flex-direction: column; gap: 1px; }
.lunit { position: relative; transition: transform .15s; border-radius: 10px; }
.lunit.dragging { transition: none; z-index: 2; background: var(--surface); box-shadow: var(--shadow); }
.layer {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 2px 0 0;
  border-radius: 10px;
  cursor: default;
  outline-offset: -2px;
}
.layer:hover { background: var(--fill); }
.layer.on { background: var(--selected); box-shadow: inset 0 0 0 1.5px var(--ink); }
.layer.sub { padding-left: 22px; }
.layer.off .name, .layer.off > .ico { opacity: .4; }
.layer .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.layer .iconbtn { width: 28px; height: 28px; border-radius: 8px; color: var(--faint); }
.layer .iconbtn.on, .layer:hover .iconbtn { color: var(--ink); }
.layer .iconbtn.on { background: transparent; }
.grip { display: grid; place-items: center; width: 20px; height: 36px; color: var(--faint); cursor: grab; touch-action: none; }
.grip.spacer { cursor: default; }

.seg { display: inline-flex; flex: 1; padding: 2px; border-radius: 10px; background: var(--fill); gap: 2px; }
.seg button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
@media (prefers-color-scheme: dark) { .seg button.on { background: var(--fill-strong); } }
.seg button:disabled { opacity: .4; }

.amount { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.amount input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); }
.numwrap { display: inline-flex; align-items: center; height: 30px; padding: 0 8px; border-radius: 8px; background: var(--fill); }
.num { width: 38px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; outline: none; }
.unit { color: var(--muted); font-size: 12px; margin-left: 2px; }

.color { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.colorline { display: flex; align-items: center; gap: 8px; }
.well { position: relative; display: inline-block; flex: none; width: 30px; height: 30px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); cursor: pointer; }
.well.big { width: 36px; height: 36px; border-radius: 10px; }
.well input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.swatch { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.swatch.none { background: linear-gradient(135deg, transparent 46%, var(--guide) 46% 54%, transparent 54%), var(--surface) !important; }
.hex::placeholder { color: var(--muted); text-transform: none; }
.hex { width: 84px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--fill); color: var(--ink); font: 13px ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dot { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.dot:hover { transform: scale(1.1); }
.palette { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--fill); font-size: 13px; font-weight: 500; }
.chip:hover { background: var(--fill-strong); }

textarea {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--fill);
  color: var(--ink);
  font: 15px/1.4 var(--font);
  resize: vertical;
}
textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.insert { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.insert .label { width: 100%; color: var(--muted); font-size: 12px; }
.shows { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.shows:empty { display: none; }
.shows b { color: var(--ink); font-weight: 600; }

.fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.font {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--fill);
  font-size: 12px;
  text-align: left;
  overflow: hidden;
}
.font span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font .sample { font-size: 19px; line-height: 1; width: 26px; flex: none; }
.font:hover { background: var(--fill-strong); }
.font.on { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--surface); }

.facts { display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; margin: 0; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* MARK: Screens, dialogs, toasts */
.in-app #publish { display: none; }
.in-app .top { padding-right: 88px; } /* room for the app's Done button over the corner */
.pair { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 10px; width: 100%; }
.qr { width: 220px; height: 220px; display: block; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.qr-paper { fill: #fff; }
.qr-ink { fill: #111; }
.steps { margin: 0; padding: 0 0 0 1.4em; text-align: left; color: var(--ink); font-size: 15px; line-height: 1.5; display: grid; gap: 4px; }
.steps li::marker { color: var(--muted); font-weight: 600; }
.code { margin: 0; color: var(--muted); font-size: 14px; }
.welcome { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: min(280px, 100%); margin-top: 14px; }
.welcome .primary { margin-top: 0; }
.screen-card .fine { font-size: 13px; margin-top: 6px; }
.store-link { color: var(--ink); font-size: 14px; font-weight: 600; text-underline-offset: 3px; }

.screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px max(24px, env(safe-area-inset-right, 0px)) 24px max(24px, env(safe-area-inset-left, 0px));
  background: var(--desk);
}
.screen-card { width: min(380px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.screen-card .logo { border-radius: 14px; box-shadow: 0 0 0 1px var(--line), var(--shadow); margin-bottom: 8px; }
.screen-card .logo-tile { fill: #fff; }
.screen-card .logo-card { fill: #111; }
.screen-card h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.screen-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.screen-card .primary { margin-top: 10px; }
.screen-card .quiet { margin-top: 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.loader { display: flex; gap: 6px; height: 8px; margin: 2px 0 4px; }
.loader span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: bounce 1s ease-in-out infinite; }
.loader span:nth-child(2) { animation-delay: .15s; }
.loader span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(0 0 0 / .32);
  animation: fade .15s ease-out;
}
.dialog-card {
  width: min(400px, 100%);
  padding: 22px;
  border-radius: 20px;
  background: var(--raised);
  box-shadow: var(--shadow);
  animation: rise .2s ease-out;
}
.dialog-card h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.dialog-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.dialog-buttons { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: inherit; font-weight: 700; margin-left: 6px; }

.tabs { display: none; }

/* MARK: Phones and the app */
@media (max-width: 859px) {
  :root { --top: calc(52px + env(safe-area-inset-top, 0px)); }
  .brand .sep, .brand .what { display: none; }
  .status span:last-child { display: none; }
  .status { margin: 0 4px; }
  .primary { height: 36px; padding: 0 14px; }
  .work { display: flex; flex-direction: column; }
  .side { display: contents; }
  .stage { flex: 1 1 auto; min-height: 180px; order: 0; }
  .desk { padding: 20px; }
  .sheet { display: none; order: 1; flex: none; max-height: 55vh; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / .06); }
  .sheet + .sheet { border-top: 1px solid var(--line); }
  body[data-sheet="add"] .sheet[data-name="add"],
  body[data-sheet="layers"] .sheet[data-name="layers"],
  body[data-sheet="inspect"] .sheet[data-name="inspect"] { display: flex; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 0 16px; font-weight: 600; font-size: 15px; }
  .panel > .group:first-child > h3 { display: none; } /* the sheet says it */
  .panel > .group:first-child { padding-top: 4px; }
  .panel { padding-top: 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .tabs {
    display: flex;
    flex: none;
    justify-content: space-around;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line);
    z-index: 5;
  }
  .tabs button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 72px;
    padding: 4px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
  }
  .tabs button[aria-pressed="true"] { color: var(--ink); background: var(--fill); }
  .zoom { bottom: 10px; right: 10px; }
  .empty { top: auto; bottom: 20px; transform: translateX(-50%); padding: 16px 16px 14px; } /* under the card, not over it (canvas.layout) */
  .empty p { margin-bottom: 12px; font-size: 14px; }
  #empty:not([hidden]) ~ .zoom { visibility: hidden; } /* nothing to zoom on a blank card, and it would sit on the panel */
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .fonts { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .brand .word { display: none; }
}
/* The card fonts (public/fonts), for the card and the font list. */
@font-face{font-family:"DM Sans";src:url(/fonts/dmsans-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"DM Sans";src:url(/fonts/dmsans-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Manrope";src:url(/fonts/manrope-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Manrope";src:url(/fonts/manrope-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Montserrat";src:url(/fonts/montserrat-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Montserrat";src:url(/fonts/montserrat-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Jost";src:url(/fonts/jost-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Jost";src:url(/fonts/jost-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url(/fonts/spacegrotesk-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url(/fonts/spacegrotesk-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Newsreader";src:url(/fonts/newsreader-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Newsreader";src:url(/fonts/newsreader-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Fraunces";src:url(/fonts/fraunces-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Fraunces";src:url(/fonts/fraunces-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Bodoni Moda";src:url(/fonts/bodoni-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Bodoni Moda";src:url(/fonts/bodoni-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"DM Serif Display";src:url(/fonts/dmserif-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Bebas Neue";src:url(/fonts/bebas-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Archivo Black";src:url(/fonts/archivo-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Cinzel";src:url(/fonts/cinzel-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Cinzel";src:url(/fonts/cinzel-600.woff2) format("woff2");font-weight:600;font-display:swap}
.f-dmsans{font-family:"DM Sans"}
.f-manrope{font-family:"Manrope"}
.f-montserrat{font-family:"Montserrat"}
.f-jost{font-family:"Jost"}
.f-spacegrotesk{font-family:"Space Grotesk"}
.f-newsreader{font-family:"Newsreader"}
.f-fraunces{font-family:"Fraunces"}
.f-bodoni{font-family:"Bodoni Moda"}
.f-dmserif{font-family:"DM Serif Display"}
.f-bebas{font-family:"Bebas Neue"}
.f-archivo{font-family:"Archivo Black"}
.f-cinzel{font-family:"Cinzel"}
