/* The Pigar website. Colours are design/tokens.json's (dark first; light follows the visitor's system), the type is
   the app's own: Archivo, semi-expanded for titles, and JetBrains Mono for measurements. One teal action per page. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ground: #000000; --panel: #1A1B1B; --raised: #262727;
  --ink: #EEEFEF; --ink-muted: #939595;
  --accent: #5CC8B8; --on-accent: #06201C; --accent-ink: #5CC8B8;
  --danger: #F0716B;
  --plate: #55585C; --plate-grid: #73777C; --grid-line: rgba(238, 239, 239, .06);
  --fits: #A4D07C; --part-top: #E5E7E6; --part-lit: #C3C6C5; --part-shade: #8B8F8E; --part-shadow: rgba(0, 0, 0, .28);
  --bezel: #2A2B2B; --tile-top: #1B1B1E; --tile-bottom: #121214;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-control: 999px; --r-card: 16px; --r-tile: 28px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #F3F4F4; --panel: #FFFFFF; --raised: #E6E8E8;
    --ink: #121313; --ink-muted: #5A5F5F;
    --accent: #2A9A8B; --on-accent: #03201B; --accent-ink: #17695F;
    --danger: #AE2E28;
    --plate: #DCDEE0; --plate-grid: #C8CBCE; --grid-line: rgba(18, 19, 19, .06);
    --fits: #356A18; --part-top: #A9AEAD; --part-lit: #959A99; --part-shade: #6E7372; --part-shadow: rgba(18, 19, 19, .12);
    --bezel: #121313; --tile-top: #FFFFFF; --tile-bottom: #F8F9F9;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--display); font-size: 17px; line-height: 1.55;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}
body::before { /* the faint 30 pt grid fading out over the top, as on the app's screens */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 30px 30px; background-position: center top;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
}
.wrap { max-width: 1040px; margin: 0 auto; }
h1, h2, h3 { font-stretch: 112%; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: clamp(24px, 3.2vw, 30px); font-weight: 750; line-height: 1.15; }
h3 { font-size: 18px; font-weight: 700; font-stretch: 100%; }
p { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 112%; font-size: 20px; color: var(--ink); text-decoration: none; }
.lockup svg { width: 30px; height: 30px; flex: none; }
/* The wordmark: lower-case pigar, the i's dot one printed bead in teal (the Pigar brand canvas). */
.wordmark { display: inline-flex; line-height: 1; letter-spacing: -0.02em; }
.dotless { position: relative; }
.dotless::after { content: ""; position: absolute; left: 50%; top: 0.04em; width: 0.24em; height: 0.115em; margin-left: -0.12em;
  border-radius: 999px; background: var(--accent); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; padding-block: 32px 48px; margin-top: 48px;
  border-top: 1px solid var(--raised); font-size: 14px; color: var(--ink-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; font: inherit; font-weight: 650; font-size: 16px;
  padding: 12px 22px; border-radius: var(--r-control); white-space: nowrap; text-decoration: none; cursor: pointer; }
.btn.raised { background: var(--raised); color: var(--ink); padding: 8px 16px; font-size: 14px; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.danger { background: var(--danger); color: #fff; }
/* Sign in with Apple: white on dark, black on light (Apple's button guidelines). */
.btn.apple { background: #fff; color: #000; width: 100%; }
@media (prefers-color-scheme: light) { .btn.apple { background: #000; color: #fff; } }
.btn:disabled { opacity: .6; cursor: default; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
button.link.danger { color: var(--danger); }
.status { font-size: 14px; color: var(--ink-muted); min-height: 1.55em; }
.status.error { color: var(--danger); }
input[type="email"] { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--raised);
  border: 1px solid transparent; border-radius: var(--r-control); padding: 12px 18px; }
input[type="email"]::placeholder { color: var(--ink-muted); }
input[type="email"]:focus-visible { outline: none; border-color: var(--accent-ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.join { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 480px; }
.join .muted { font-size: 15px; }

/* the sign-up sheet: a centred card on wide screens, a sheet from the bottom on phones */
dialog.signup { width: min(420px, calc(100% - 32px)); border: 0; border-radius: var(--r-tile); padding: 28px 24px 24px;
  background: var(--panel); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
dialog.signup::backdrop { background: rgba(0, 0, 0, .6); }
dialog.signup > div { display: flex; flex-direction: column; gap: 14px; }
dialog.signup h2 { font-size: 24px; padding-right: 32px; }
dialog.signup form { display: flex; flex-direction: column; gap: 10px; }
dialog.signup .close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: var(--raised); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
dialog.signup .or { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: 13px; }
dialog.signup .or::before, dialog.signup .or::after { content: ""; flex: 1; border-top: 1px solid var(--raised); }
@media (max-width: 560px) {
  dialog.signup { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-tile) var(--r-tile) 0 0;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
}

/* /me/ */
.account { display: flex; flex-direction: column; gap: 18px; max-width: 560px; padding-block: 48px 24px; }
.account > div, .account form { display: flex; flex-direction: column; gap: 14px; }
.account .btn { align-self: flex-start; }
.account .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 48px 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-copy h1 .line { white-space: nowrap; }
.hero-copy .sub { font-size: 19px; color: var(--ink-muted); max-width: 34ch; }
/* The mocks: the app's screens drawn in HTML with its tokens, not screenshots. Sizes are in em, and the phone's em
   follows its width (container units), so it scales as one picture. */
.sprite { display: none; }
.phone svg:not(.part), .mini svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.phone { justify-self: center; width: min(300px, 100%); container-type: inline-size; border-radius: 44px; padding: 10px;
  background: var(--bezel); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.screen { font-size: 4.6cqw; line-height: 1.35; aspect-ratio: 9 / 19.5; border-radius: 34px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; background: var(--ground); color: var(--ink); }
.screen::before { content: ""; position: absolute; inset: 0 0 50% 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 1.6em 1.6em; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.screen .status { display: flex; justify-content: space-between; align-items: center; padding: .9em 1.7em .2em; font-size: .85em; font-weight: 600; }
.screen .status .mono { font-family: var(--display); }
.screen .status .dots { width: 3.2em; height: .8em; border-radius: 1em; background: linear-gradient(90deg, var(--ink) 55%, transparent 55% 62%, var(--ink-muted) 62%); opacity: .8; }
.screen .navbar { display: flex; align-items: center; gap: .4em; padding: .5em .8em; position: relative; }
.screen .glass { display: inline-flex; align-items: center; justify-content: center; gap: .3em; height: 2.4em; border-radius: 99em;
  background: var(--raised); color: var(--ink); }
.screen .glass.round { width: 2.4em; }
.screen .glass.print { padding: 0 .9em; background: var(--accent); color: var(--on-accent); font-weight: 650; }
.screen .navbar .title { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.screen .navbar .title b { font-weight: 650; }
.screen .navbar .title small { font-size: .72em; color: var(--ink-muted); }
.screen .viewport { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 0 2.2em; overflow: hidden; }
.screen .viewport .part { width: 128%; flex: none; height: auto; }
.screen .fit { position: absolute; left: .8em; bottom: 2.3em; display: inline-flex; align-items: center; gap: .35em; white-space: nowrap;
  font-size: .78em; font-weight: 500; padding: .45em .8em .45em .5em; border-radius: 99em; background: var(--raised); }
.screen .fit .mono { font-size: .92em; }
.tick { display: inline-flex; align-items: center; justify-content: center; width: 1.3em; height: 1.3em; border-radius: 50%;
  background: var(--fits); color: var(--ground); }
.tick svg { width: .85em; height: .85em; stroke-width: 3; }
.screen .sheet { position: relative; margin-top: -1.4em; background: var(--panel); border-radius: 1.4em 1.4em 0 0;
  padding: .5em .9em 1.4em; display: flex; flex-direction: column; gap: .55em; }
.screen .grabber { align-self: center; width: 2.6em; height: .35em; border-radius: 1em; background: var(--ink-muted); opacity: .5; }
.screen .you { align-self: flex-end; background: var(--raised); border-radius: .7em; padding: .45em .7em; max-width: 80%; }
.screen .reply { display: flex; gap: .45em; align-items: flex-start; }
.screen .reply svg { margin-top: .1em; color: var(--ink-muted); }
.screen .activity { display: flex; align-items: center; gap: .35em; font-size: .78em; color: var(--ink-muted); }
.screen .activity svg { width: 1.1em; height: 1.1em; }
.screen .activity svg:last-child { width: .9em; }
.input { display: flex; align-items: center; gap: .45em; }
.input .field { flex: 1; min-width: 0; background: var(--raised); border-radius: .45em; padding: .6em .75em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.input .send, .input .add { display: inline-flex; align-items: center; justify-content: center; width: 2.4em; height: 2.4em; flex: none;
  border-radius: 50%; background: var(--raised); color: var(--ink-muted); }
.input .add { color: var(--ink); }
.input .send.on { background: var(--accent); color: var(--on-accent); }
.screen .tools { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: .4em; color: var(--ink-muted); }
.screen .tools span { display: flex; flex-direction: column; align-items: center; gap: .25em; font-size: .7em; font-weight: 500; }
.screen .tools svg { width: 1.9em; height: 1.9em; stroke-width: 1.6; }

/* the steps' small mocks: a piece of the screen each, on the step's card */
.mini { font-size: 14px; line-height: 1.35; background: var(--ground); border-radius: 12px; padding: 14px; margin-bottom: 8px;
  display: flex; flex-direction: column; gap: 10px; height: 168px; justify-content: center; }
.mini .input .field { color: var(--ink); }
.mini .tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; color: var(--ink-muted);
  background: linear-gradient(145deg, var(--tile-top), var(--tile-bottom)); }
.mini .tile span { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.mini .tile b { color: var(--ink); font-weight: 650; }
.mini .tile small { font-size: 12px; }
.mini .tile svg:first-child { width: 20px; height: 20px; color: var(--ink); }
.mini .tool-head { display: flex; align-items: center; gap: 8px; }
.mini .tool-head .muted { flex: 1; font-size: 13px; }
.mini .done { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); }
.mini .done svg { width: 15px; height: 15px; stroke-width: 2.6; }
.mini .slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
.mini .slider i, .mini .progress i { grid-column: 1 / -1; height: 4px; border-radius: 4px; position: relative;
  background: linear-gradient(90deg, var(--accent-ink) calc(var(--v) * 100%), var(--raised) 0); }
.mini .slider i::after { content: ""; position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 16px; height: 16px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #FFFFFF; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.mini .rows { display: flex; flex-direction: column; background: var(--panel); border-radius: 10px; }
.mini .rows div { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 12px; }
.mini .rows div + div { border-top: 1px solid var(--raised); }
.mini .rows .big { font-size: 16px; font-weight: 500; }
.mini .progress { display: grid; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.steps .mini { margin: -4px -4px 8px; }
.steps li .mini { order: -1; }

section.band { padding-block: 48px; display: flex; flex-direction: column; gap: 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--panel); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }
.steps p { color: var(--ink-muted); font-size: 16px; }

.printers { width: 100%; max-width: 560px; border-collapse: collapse; background: var(--panel); border-radius: var(--r-card); overflow: hidden; }
.printers th, .printers td { padding: 12px 20px; text-align: left; font-weight: 400; }
.printers th { font-size: 13px; color: var(--ink-muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.printers td + td, .printers th + th { text-align: right; white-space: nowrap; }
.printers tr + tr td { border-top: 1px solid var(--raised); }

/* documents: the legal pages and Support */
.doc { max-width: 72ch; padding-block: 32px 16px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 16px; }
.doc h3 { margin: 28px 0 8px; scroll-margin-top: 16px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--ink-muted); }
.doc em:first-child:only-child { color: var(--ink-muted); }
.doc strong { font-weight: 650; }
.doc .table { overflow-x: auto; margin: 0 0 16px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--raised); }
.doc th { font-weight: 650; }
.doc hr { border: 0; border-top: 1px solid var(--raised); margin: 32px 0; }

@media (max-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 24px 40px; }
  .hero-copy h1 .line { display: block; }
  .phone { width: min(260px, 78%); }
  .printers th, .printers td { padding: 12px 16px; }
}

/* The sign-up sheet saving a shared design says so (account.js, saveShare). */
dialog.signup .saving-only { display: none; }
dialog.signup.saving .saving-only { display: inline; }
dialog.signup.saving .not-saving { display: none; }
.account .saved { gap: 8px; }
.account .saved h2 { font-size: 20px; }
.account .saved ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }

/* A shared design, /d/<id> (src/share-page.js): the model on the left on a wide screen, above the details on a phone. */
main.wide { padding-block: 16px 24px; }
.share { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.share .viewer { position: relative; aspect-ratio: 1; border-radius: var(--r-tile); overflow: hidden; background:
  radial-gradient(120% 90% at 50% 35%, var(--raised), var(--panel) 70%); position: sticky; top: 16px; }
.share .viewer img.poster { width: 100%; height: 100%; object-fit: contain; display: block; }
.share .viewer model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; --poster-color: transparent; opacity: 0; transition: opacity .4s; }
.share .viewer.loaded model-viewer { opacity: 1; }
.share .viewer img.poster { transition: opacity .4s; }
.share .viewer.loaded img.poster { opacity: 0; }
.share .details { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.share h1 { font-size: clamp(30px, 4.6vw, 44px); overflow-wrap: anywhere; }
.share .remix-of { margin: 0; font-size: 15px; color: var(--ink-muted); }
.share .byline { margin: -8px 0 0; font-size: 15px; }
.share .byline a, .share .remix-of a { color: var(--accent-ink); }
.share .facts { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 0; }
.share .facts div { background: var(--panel); border-radius: var(--r-card); padding: 10px 12px; min-width: 0; }
.share .facts dt { font-size: 12px; color: var(--ink-muted); }
.share .facts dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.share .fit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.share .fit label { font-weight: 650; font-size: 15px; }
.share select { font: inherit; font-size: 15px; color: var(--ink); background: var(--raised); border: 0; border-radius: var(--r-control); padding: 8px 14px; max-width: 100%; }
.share .fit-result { flex-basis: 100%; margin: 0; font-size: 15px; color: var(--fits); min-height: 1.55em; }
.share .fit-result.error { color: var(--danger); }
.share .settings { background: var(--panel); border-radius: var(--r-card); padding: 14px 16px; }
.share .settings h2 { font-size: 17px; }
.share .settings ul { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.share .settings li { display: flex; justify-content: space-between; gap: 12px; }
.share .settings li span:first-child { color: var(--ink-muted); overflow-wrap: anywhere; }
.share .settings p { margin: 0; font-size: 13px; }
.share .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share .actions .btn.raised { font-size: 16px; padding: 12px 20px; }
.share details.download { position: relative; }
.share details.download summary { list-style: none; cursor: pointer; }
.share details.download summary::-webkit-details-marker { display: none; }
.share details.download .menu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; min-width: 260px; display: flex; flex-direction: column;
  background: var(--panel); border-radius: var(--r-card); padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.share details.download .menu a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.share details.download .menu a:hover { background: var(--raised); }
.share details.download .menu .muted { font-size: 13px; }
.share .save-status { margin: -6px 0 0; }
.share .save-status:empty, .share .fit-result:empty { display: none; }
.share .licence { margin: 0; font-size: 13px; }
.share .report-link { margin: 0; font-size: 13px; }
.share .report-link .link { color: var(--ink-muted); }
.remixes { margin-top: 48px; }
.remixes h2 { font-size: 22px; margin-bottom: 14px; }
.remixes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.remixes a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.remixes img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-card); background: var(--panel); }
.gone { padding-block: 64px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.gone h1 { font-size: clamp(32px, 5vw, 48px); }
.gone p { margin: 0; }
dialog.report-sheet { width: min(420px, calc(100% - 32px)); border: 0; border-radius: var(--r-tile); padding: 28px 24px 24px; background: var(--panel); color: var(--ink); }
dialog.report-sheet::backdrop { background: rgba(0, 0, 0, .6); }
dialog.report-sheet form, dialog.report-sheet > div { display: flex; flex-direction: column; gap: 12px; }
dialog.report-sheet h2 { font-size: 24px; padding-right: 32px; }
dialog.report-sheet fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
dialog.report-sheet legend { padding: 0; margin-bottom: 6px; font-size: 15px; }
dialog.report-sheet textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--raised); border: 0; border-radius: 12px; padding: 10px 12px; resize: vertical; }
dialog.report-sheet .close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: var(--raised); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 760px) {
  .share { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .share .viewer { position: relative; top: 0; aspect-ratio: 4 / 3.4; }
  .share .actions .btn { flex: 1 1 auto; }
  .share details.download { flex: 1 1 auto; display: flex; }
  .share details.download summary { width: 100%; }
}
