/* TidyKit design tokens. Change colors here; everything else reads from them. */
:root {
  --bg: #f5f8f7;
  --surface: #ffffff;
  --surface-2: #f0f4f3;
  --text: #0f1f1c;
  --muted: #52615e;
  --border: #dce4e2;
  --border-strong: #c3cfcc;
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-ink: #ffffff;
  --primary-soft: #e3f3f0;
  --link: #0f766e;
  --ok: #15803d;
  /* Category colors (icon chips) */
  --cat-text: #0f766e;  --cat-text-soft: #e3f3f0;
  --cat-image: #6d28d9; --cat-image-soft: #efe9fd;
  --cat-data: #b45309;  --cat-data-soft: #fcf1e1;
  --cat-pdf: #be123c;   --cat-pdf-soft: #fde8ec;
  --cat-generators: #1d4ed8; --cat-generators-soft: #e6edfd;
  --danger: #b91c1c;
  --shadow: 0 1px 2px rgba(15, 31, 28, .05), 0 1px 1px rgba(15, 31, 28, .03);
  --shadow-lg: 0 10px 30px -12px rgba(15, 31, 28, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --upload-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m17 8-5-5-5 5'/%3E%3Cpath d='M12 3v12'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352615e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1312;
    --surface: #111c1a;
    --surface-2: #0d1716;
    --text: #e4eeec;
    --muted: #94a6a2;
    --border: #213230;
    --border-strong: #2f4542;
    --primary: #2dd4bf;
    --primary-hover: #5eead4;
    --primary-ink: #04201d;
    --primary-soft: rgba(45, 212, 191, .12);
    --link: #5eead4;
    --ok: #4ade80;
    --cat-text: #5eead4;  --cat-text-soft: rgba(45, 212, 191, .12);
    --cat-image: #c4b5fd; --cat-image-soft: rgba(167, 139, 250, .14);
    --cat-data: #fbbf24;  --cat-data-soft: rgba(251, 191, 36, .12);
    --cat-pdf: #fda4af;   --cat-pdf-soft: rgba(251, 113, 133, .14);
    --cat-generators: #93c5fd; --cat-generators-soft: rgba(96, 165, 250, .14);
    --danger: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 32px -12px rgba(0, 0, 0, .6);
    --upload-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m17 8-5-5-5 5'/%3E%3Cpath d='M12 3v12'/%3E%3C/svg%3E");
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a6a2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}

/* Base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; overflow-x: clip; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { flex-shrink: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.icon { width: 20px; height: 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 8px 20px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.logo span { color: var(--primary); }
.logo-mark { width: 30px; height: 30px; }
.logo-mark rect { fill: var(--primary); }
.logo-mark path { stroke: var(--primary-ink); }
.nav { display: flex; gap: 4px; margin-left: auto; font-size: .9rem; font-weight: 600; }
.nav a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
@media (max-width: 860px) {
  .site-header .wrap { padding-top: 10px; }
  .nav {
    order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 10px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { background: var(--surface-2); padding-right: 14px; }
}
@media (min-width: 640px) and (max-width: 860px) {
  .nav { width: calc(100% + 48px); margin: 0 -24px; padding: 0 24px 10px; }
}

/* Typography */
main { padding: 32px 0 56px; }
h1 { font-size: clamp(1.85rem, 5vw, 2.6rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin: 0 0 10px; }
h2 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.015em; font-weight: 700; margin: 40px 0 12px; }
h3 { letter-spacing: -.01em; }
.lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 20px; max-width: 62ch; }

/* Hero (home) */
.hero { position: relative; padding: 28px 0 12px; }
.hero::before {
  content: ""; position: absolute; inset: -32px -50vw 0; z-index: -1;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
  opacity: .7;
}
.hero h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.2rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: .82rem; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  padding: 5px 12px 5px 10px; border-radius: 999px;
}
.eyebrow .icon { width: 16px; height: 16px; }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; }
.trust .icon { color: var(--primary); }

.section-head { scroll-margin-top: 130px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 44px 0 14px; }
.section-head h2 { margin: 0; }
.section-head small { color: var(--muted); font-size: .88rem; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .card { padding: 24px; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tool-card {
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tool-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tool-card h3 { margin: 10px 0 0; font-size: 1.1rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.tool-card .go { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--primary); }
.tool-card .go .icon { width: 16px; height: 16px; transition: transform .2s; }
.tool-card:hover .go .icon { transform: translateX(3px); }

.chip { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--cat-text); background: var(--cat-text-soft); }
.chip .icon { width: 22px; height: 22px; }
.chip.cat-image { color: var(--cat-image); background: var(--cat-image-soft); }
.chip.cat-data { color: var(--cat-data); background: var(--cat-data-soft); }
.chip.cat-pdf { color: var(--cat-pdf); background: var(--cat-pdf-soft); }
.chip.cat-generators { color: var(--cat-generators); background: var(--cat-generators-soft); }
.chip.lg { width: 56px; height: 56px; border-radius: 16px; }
.chip.lg .icon { width: 28px; height: 28px; }
.chip.sm { width: 34px; height: 34px; border-radius: 10px; }
.chip.sm .icon { width: 18px; height: 18px; }

/* Tool page header */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .icon { width: 14px; height: 14px; }
.tool-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.tool-head h1 { margin-bottom: 6px; }
.tool-head .lede { margin-bottom: 10px; }
.note { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ok); }
.note .icon { width: 16px; height: 16px; }
@media (max-width: 520px) { .tool-head .chip { display: none; } }

/* Form controls */
textarea, input[type="text"], input[type="number"], select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { min-height: 220px; resize: vertical; line-height: 1.6; }
textarea.mono { font-family: var(--mono); font-size: .9rem; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 8px 36px 8px 12px; font-size: .92rem; font-weight: 500;
  background: var(--surface-2) var(--chevron) right 10px center / 16px no-repeat;
}
textarea:hover, select:hover { border-color: var(--border-strong); }
textarea:focus, input[type="text"]:focus, input[type="number"]:focus, select:focus {
  outline: none; border-color: var(--primary); background-color: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
input[type="range"], input[type="checkbox"] { accent-color: var(--primary); cursor: pointer; }
input[type="checkbox"] { width: 17px; height: 17px; margin: 0; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; align-items: center; }
button, .btn {
  font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 9px 16px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
button:hover, .btn:hover { border-color: var(--primary); color: var(--primary); }
button:active { transform: translateY(1px); }
button.primary, .btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
button.primary:hover, .btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
button:disabled, button:disabled:hover { opacity: .45; cursor: not-allowed; transform: none; border-color: var(--border-strong); color: var(--text); }
button.primary:disabled:hover { background: var(--primary); color: var(--primary-ink); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; margin-top: 16px; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: .8rem; font-weight: 500; }

/* Dropzone */
.drop {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 36px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop::before {
  content: ""; display: block; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px;
  background: var(--primary-soft) var(--upload-icon) center / 24px no-repeat;
}
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-soft); }
.drop.over::before { background-color: var(--surface); }
.drop p { margin: 4px 0; }
.drop b { color: var(--primary); }
.drop .hint { color: var(--muted); font-size: .88rem; }
.drop input { display: none; }

.results { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.results li {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: .9rem; flex-wrap: wrap;
}
.results img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.results .meta { flex: 1; min-width: 140px; word-break: break-all; font-weight: 600; }
.results .meta small { color: var(--muted); display: block; font-weight: 400; }
.saved { color: var(--ok); font-weight: 700; }

.controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0 0 16px; font-size: .92rem; font-weight: 600; }
.controls label { display: flex; align-items: center; gap: 10px; }
.controls input[type="range"] { width: 140px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 12px; margin: 16px 0; font-size: .92rem; }
.checks label { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }

/* Ad slots: placeholder until AdSense is approved */
.ad-slot { margin: 28px 0; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.ad-slot:empty::before { content: "Advertisement"; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 40px; width: 100%; text-align: center; }

/* Long-form content (how-to, FAQ, about, privacy) */
.content { max-width: 72ch; }
.content p, .content li { color: var(--text); }
.content ol, .content ul { padding-left: 1.3em; }
.content li { margin: 6px 0; }
.content li::marker { color: var(--primary); font-weight: 700; }
.content details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin: 8px 0; padding: 0 16px; transition: border-color .15s;
}
.content details[open] { border-color: var(--border-strong); }
.content summary {
  cursor: pointer; font-weight: 700; padding: 14px 28px 14px 0; list-style: none; position: relative;
}
.content summary::-webkit-details-marker { display: none; }
.content summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: var(--chevron) center / contain no-repeat; transition: transform .2s;
}
.content details[open] summary::after { transform: rotate(180deg); }
.content details p { margin: 0 0 14px; color: var(--muted); }

/* Chip row (word counter keywords) */
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related .btn { min-height: 34px; padding: 6px 12px; font-weight: 500; background: var(--surface-2); border-color: var(--border); }
.related .btn:hover { color: var(--text); border-color: var(--border); }

/* Related tools (tool pages) */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mini {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.mini:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow-lg); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .9rem; padding: 40px 0 28px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 240px 1fr; gap: 48px; } }
.foot-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 24px; }
.foot-grid p { margin: 10px 0 0; max-width: 40ch; }
.foot-grid h4 { margin: 0 0 10px; color: var(--text); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 8px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

table.preview { border-collapse: collapse; font-size: .85rem; width: 100%; }
table.preview th, table.preview td { border-bottom: 1px solid var(--border); padding: 8px 12px; text-align: left; white-space: nowrap; }
table.preview th { position: sticky; top: 0; background: var(--surface-2); font-weight: 700; }
.table-scroll { overflow-x: auto; margin-top: 16px; max-height: 340px; border-radius: var(--radius-sm); }
.table-scroll:has(table) { border: 1px solid var(--border); }

/* 404 */
.notfound { text-align: center; padding: 48px 0; }
.notfound .lede { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Shared bits for the newer tools */
.controls input[type="number"] { width: 96px; padding: 8px 10px; }
.controls input[type="text"] { padding: 8px 12px; }
input[type="color"] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
.field { display: grid; gap: 6px; margin: 0 0 14px; font-size: .92rem; font-weight: 600; }
.field input, .field select { font-weight: 400; }
.status { margin: 10px 0 0; font-size: .92rem; font-weight: 600; min-height: 1.5em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }
.results li.error small { color: var(--danger); }
.order { display: flex; gap: 4px; }
.icon-btn { min-height: 34px; width: 34px; padding: 0; }
.icon-btn svg { width: 16px; height: 16px; }
.results .num { font-weight: 800; color: var(--muted); min-width: 1.5em; text-align: right; font-variant-numeric: tabular-nums; }
.results .pdf-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--cat-pdf-soft); color: var(--cat-pdf); font-size: .7rem; font-weight: 800; }

/* Segmented control (radio buttons styled as tabs) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; margin: 0 0 16px; }
.seg label { position: relative; padding: 7px 14px; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Password generator */
.pw-out { display: flex; gap: 8px; align-items: stretch; }
.pw-out input { flex: 1; min-width: 0; font-family: var(--mono); font-size: clamp(1rem, 3.6vw, 1.35rem); font-weight: 600; padding: 14px 16px; letter-spacing: .02em; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin: 14px 0 6px; }
.meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }
.meter-label { font-size: .88rem; color: var(--muted); }
.meter-label b { color: var(--text); }

/* QR code generator */
.qr-layout { display: grid; gap: 24px; }
@media (min-width: 760px) { .qr-layout { grid-template-columns: 1fr 280px; align-items: start; } }
.qr-preview { display: grid; place-items: center; gap: 10px; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.qr-preview canvas { width: 100%; max-width: 248px; height: auto; image-rendering: pixelated; border-radius: 6px; }
.qr-preview small { color: var(--muted); }
.qr-preview .btn-row { justify-content: center; margin: 4px 0 0; }
.hint { color: var(--muted); font-size: .88rem; font-weight: 400; }
.results img.page { object-fit: contain; background: #fff; border: 1px solid var(--border); }
