@font-face {
  font-family: "Pitchroom Inter";
  src: url("./assets/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Inter, "Segoe UI", sans-serif;
  color-scheme: light;
  --page: #f6f7f3;
  --surface: #fff;
  --text: #20251e;
  --muted: #505b50;
  --control: #e9eee7;
  --hover: #dce6dc;
  --pressed: #cbdcca;
  --action: #284832;
  --action-hover: #365d42;
  --action-pressed: #152f20;
  --on-action: #fff;
  --focus: #386648;
  --error: #90251a;
  --scroll-thumb: #5e7062;
  --backdrop: #111a14a8;
  --space: .5rem;
  --edge: clamp(.75rem, 2vi, 1.25rem);
  color: var(--text);
  background: var(--page);
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; }
}
/* light-dark() follows the chosen theme, including the OS preference in System mode. */
:root {
  --page: light-dark(#f6f7f3, #151b17);
  --surface: light-dark(#fff, #202922);
  --text: light-dark(#20251e, #f0f5ee);
  --muted: light-dark(#505b50, #cedbce);
  --control: light-dark(#e9eee7, #2e3d32);
  --hover: light-dark(#dce6dc, #3b5142);
  --pressed: light-dark(#cbdcca, #4a6151);
  --action: light-dark(#284832, #b5dfa7);
  --action-hover: light-dark(#365d42, #c7e9bc);
  --action-pressed: light-dark(#152f20, #a0cd92);
  --on-action: light-dark(#fff, #17311f);
  --focus: light-dark(#386648, #c5e8b9);
  --error: light-dark(#90251a, #ffada1);
  --scroll-thumb: light-dark(#5e7062, #a2b7a5);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button, input, select, textarea { min-inline-size: 44px; min-block-size: 44px; border: 0; border-radius: .5rem; background: var(--control); color: var(--text); }
button, .button { padding: .45rem .7rem; cursor: pointer; text-decoration: none; }
.button { display: inline-flex; align-items: center; justify-content: center; }
button:disabled { background: var(--control); color: var(--muted); cursor: default; }
button:not(:disabled):hover, .button:hover, select:hover { background: var(--hover); }
button:not(:disabled):active, .button:active, select:active { background: var(--pressed); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.primary { background: var(--action); color: var(--on-action); font-weight: 650; }
.primary:not(:disabled):hover { background: var(--action-hover); }
.primary:not(:disabled):active { background: var(--action-pressed); }
.danger-text { color: var(--error); }
.primary.danger { background: var(--error); color: var(--surface); }
.primary.danger:not(:disabled):hover { background: color-mix(in srgb, var(--error) 92%, var(--surface)); }
.primary.danger:not(:disabled):active { background: color-mix(in srgb, var(--error) 85%, var(--surface)); }
.bar, .hero, .bar-actions, .dialog-heading { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space); }
.bar, .hero, .dialog-heading { justify-content: space-between; }
.bar { padding: var(--space) var(--edge); background: var(--surface); }
.theme-control { display: grid; grid-template-columns: repeat(3, 44px); gap: .15rem; flex: none; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.theme-choice { position: relative; display: block; }
.theme-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.theme-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: .5rem; background: var(--control); color: var(--text); }
.theme-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.theme-choice input:hover + .theme-icon { background: var(--hover); }
.theme-choice input:active + .theme-icon { background: var(--pressed); }
.theme-choice input:checked + .theme-icon { background: var(--action); color: var(--on-action); }
.theme-choice input:focus-visible + .theme-icon { position: relative; z-index: 1; outline: 3px solid var(--focus); outline-offset: 2px; pointer-events: none; }
.theme-choice .theme-tooltip { inset: auto; inset-block-start: calc(100% + .35rem); inset-inline-end: 0; transform: none; inline-size: max-content; max-inline-size: 132px; }
.theme-choice:first-of-type .theme-tooltip { inset-inline: 0 auto; }
.theme-choice:nth-of-type(2) .theme-tooltip { inset-inline: auto; left: 50%; transform: translateX(-50%); }
.theme-choice:hover .theme-tooltip, .theme-choice:focus-within .theme-tooltip { visibility: visible; }
.brand { display: inline-flex; align-items: center; min-block-size: 44px; min-inline-size: 44px; text-decoration: none; font-weight: 750; font-size: 1.2rem; }
.brand:hover { text-decoration: underline; }
main { max-width: 75rem; margin: auto; padding: clamp(1rem, 3vi, 2rem) var(--edge); }
.hero { margin-block-end: 1rem; }
.library-search { max-width: 28rem; margin-block-end: 1rem; }
.library-search-status:not(:empty) { margin-block-end: 1rem; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.06em; line-height: 1.05; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.deck-item { position: relative; display: grid; align-content: start; min-width: 0; }
.deck-management { position: absolute; z-index: 1; inset-block-start: var(--space); inset-inline: var(--space); pointer-events: none; }
.deck-management[open] { z-index: 3; }
.deck-menu-trigger { position: relative; display: flex; width: 44px; height: 44px; margin-inline-start: auto; padding: 0; list-style: none; pointer-events: auto; }
.deck-menu-trigger::-webkit-details-marker { display: none; }
.deck-management[open] .deck-menu-trigger { background: var(--pressed); }
.ellipsis-icon { display: flex; gap: 3px; }
.ellipsis-icon span { border: 2px solid currentColor; border-radius: 50%; }
.deck-menu { position: absolute; inset-block-start: calc(100% + var(--space)); inset-inline-end: 0; width: min(21rem, 100%); padding: .75rem; background: var(--surface); border-radius: .75rem; box-shadow: 0 .25rem 1rem #0003; pointer-events: auto; }
.deck-actions { display: flex; flex-wrap: wrap; gap: var(--space); }
.card { display: block; border-radius: .75rem; overflow: hidden; background: var(--surface); text-decoration: none; }
.card:hover { background: var(--hover); }
.card:active { background: var(--pressed); }
.cover { min-height: 6.5rem; display: grid; align-content: center; padding: 1rem; }
.cover-with-actions { padding-inline-end: calc(44px + 1rem); }
.cover-title { font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1; font-weight: 700; overflow-wrap: anywhere; }
.cover-mark { display: block; width: 50px; height: 9px; background: currentColor; border-radius: 10px; }
.card-details { padding: .75rem 1rem; overflow-wrap: anywhere; }
.card-details p { line-height: 1.5; }
.card-details p:empty { display: none; }
.count { display: inline-block; margin-top: .4rem; font-size: .875rem; color: var(--muted); }
.viewing-slide { display: flex; flex-direction: column; height: 100dvh; }
.viewing-slide :is(#storage-error, #owner-status) { display: none; }
.viewing-slide main { flex: 1; width: 100%; min-height: 0; max-width: none; padding: 0; margin: 0; }
.route-message { display: grid; align-content: center; gap: var(--space); min-height: 85dvh; padding: var(--edge); text-align: center; overflow-wrap: anywhere; }
.route-message h1 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
.viewer { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: 100%; }
.presenting .control-edge { display: none; }
.stage:focus-visible { outline-offset: -4px; }
.stage[data-next] .slide { cursor: pointer; }
.control-edge { position: absolute; z-index: 2; inset: 0 0 auto; height: 24px; }
.control-edge-bottom { inset: auto 0 0; }
.viewer-header { position: absolute; inset: 0 0 auto; padding: var(--space) var(--edge); background: var(--surface); text-align: center; opacity: 0; translate: 0 .4rem; pointer-events: none; transition: opacity .2s ease, translate .2s ease; }
.slide-controls { position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space); padding: var(--space) var(--edge); background: var(--surface); opacity: 0; translate: 0 -.4rem; pointer-events: none; transition: opacity .2s ease, translate .2s ease; }
.slide-selector { flex: 1 1 8rem; max-width: 28rem; }
.slide-controls .actions { margin-inline-start: auto; }
.control-edge-bottom:is(.edge-open, :has(:focus-visible, select:open)) > .slide-controls { opacity: 1; translate: 0 0; pointer-events: auto; }
@media (hover: hover) {
  .control-edge:hover > :is(.viewer-header, .slide-controls) { opacity: 1; translate: 0 0; pointer-events: auto; }
}
@media (hover: none) {
  .control-edge:not(.control-edge-bottom) { pointer-events: none; }
  .control-edge-bottom { height: 44px; }
}
.viewer-header h1 { min-width: 0; font-family: "Pitchroom Inter", Inter, "Segoe UI", sans-serif; font-size: clamp(1rem, 2vw, 1.375rem); letter-spacing: -.025em; }
.stage { min-width: 0; min-height: 0; overflow: clip; container-type: size; touch-action: pan-y pinch-zoom; }
.slide { position: relative; isolation: isolate; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: 100%; overflow: clip; overflow-wrap: anywhere; animation: slide-enter .3s ease-out both; }
/* Cap the combined decoration opacity, including overlap, to preserve text contrast. */
.slide-background { position: absolute; z-index: 1; inset: 0; overflow: clip; pointer-events: none; opacity: .18; }
.slide-copy { z-index: 2; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); align-items: var(--copy-align, center); min-width: 0; min-height: 0; }
.slide-content { min-width: 0; padding: clamp(.75rem, min(4cqw, 5cqh), 3.5rem); scale: var(--fit-scale, 1); transform-origin: center var(--copy-origin, center); }
.slide-heading, .slide-body { min-width: 0; }
.slide h2 { max-width: 20ch; font-size: clamp(2rem, 6.4cqw, 4.5rem); line-height: 1.02; letter-spacing: -.046em; margin: .35em 0 .4em; text-wrap: balance; color: var(--slide-primary); }
.slide h3 { margin-top: .85em; font-size: clamp(1.1rem, 2.8cqw, 1.55rem); color: var(--slide-secondary); }
.slide p, .slide ul { max-width: 58ch; margin: .55rem 0 0; font-size: clamp(1rem, 2.65cqw, 1.45rem); line-height: 1.45; }
.slide-linked-image { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: min(100%, 42rem); min-height: 4rem; max-height: 38cqh; aspect-ratio: 16 / 9; margin: .75rem 0 0; overflow: hidden; background: color-mix(in srgb, currentColor 7%, transparent); }
.slide-linked-image img { grid-area: 1 / 1; min-height: 0; width: 100%; height: 100%; object-fit: contain; }
.slide-linked-image p { grid-area: 1 / 1; margin: 0; padding: .75rem; text-align: center; }
.slide ul { padding-left: 1.2em; }
.slide li + li { margin-top: .4em; }
.slide li::marker { color: var(--slide-secondary); }
.slide .cover-mark { position: relative; background: var(--slide-primary); }
.slide .cover-mark::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: calc(100% + .3rem); width: 32%; border-radius: inherit; background: var(--slide-secondary); }
.slide.signal .cover-mark::after { inset-inline: auto calc(100% + .3rem); }
.slide-with-art { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.slide-with-art .slide-content { padding-inline-end: clamp(1.2rem, 4cqw, 3rem); }
.slide-opening h2 { font-size: clamp(2.3rem, 8cqw, 5.5rem); }
.slide-art-frame { position: relative; z-index: 0; align-self: stretch; }
.slide-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.slide-opening.slide-with-art { grid-template: minmax(0, 1fr) / minmax(0, 1fr); background: #101c17; color: #fff; color-scheme: dark; }
.slide-opening.slide-with-art .slide-copy,
.slide-opening.slide-with-art .slide-art-frame { grid-area: 1 / 1; }
.slide-opening.slide-with-art .slide-art-frame::after {
  content: ""; position: absolute; inset: 0;
  background: #101912e0;
}
.slide-feature .slide-art-frame { margin: clamp(.75rem, 3cqw, 2.5rem); margin-inline-start: 0; border-radius: 1rem; overflow: hidden; box-shadow: 0 12px 34px #141f1a30; }
.slide-closing .slide-art { object-position: 70% center; }
.slide-cards .slide-points, .slide-metrics .slide-points, .slide-feature .slide-points, .slide-timeline .slide-body { display: grid; gap: clamp(.65rem, 2cqw, 1.5rem); }
.slide-cards .slide-points, .slide-metrics .slide-points { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.slide-cards .slide-points, .slide-metrics .slide-points, .slide-feature .slide-points { padding: 0; list-style: none; }
.slide-cards li, .slide-metrics li, .slide-feature li, .slide-timeline .slide-section {
  margin: 0; padding: clamp(.85rem, 2.5cqw, 2rem);
  background: color-mix(in srgb, currentColor 7%, transparent);
  border-radius: .8rem;
}
.slide-metrics li { border-top: 3px solid var(--slide-secondary); }
.slide-feature .slide-section { border-inline-start: 3px solid var(--slide-secondary); padding-inline-start: 1rem; }
.slide-timeline .slide-body { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--slide-primary); padding-top: 1rem; }
.slide-section h3 { margin-top: 0; }
@keyframes slide-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
.editorial { background: light-dark(#efe8da, #372d23); color: light-dark(#343021, #f8eddd); --slide-primary: light-dark(#704b2d, #f3c793); --slide-secondary: light-dark(#375647, #aad5bd); font-family: Georgia, serif; }
.signal { background: #19392d; color: #edf5df; --slide-primary: #d2ed9e; --slide-secondary: #a0e6df; }
.signal .cover-mark { width: 74px; border-radius: 0; }
.brief { background: light-dark(#e5edf8, #233348); color: light-dark(#1f395f, #e8f1ff); --slide-primary: light-dark(#294f85, #bcd9ff); --slide-secondary: light-dark(#27605b, #99ded5); }
.brief .cover-mark { width: 18px; height: 18px; border-radius: 4px; }
.studio { background: light-dark(#f8eaf0, #392631); color: light-dark(#442438, #f9eaf3); --slide-primary: light-dark(#863656, #f6afd0); --slide-secondary: light-dark(#584576, #d9c6ff); font-family: "Trebuchet MS", sans-serif; }
.blueprint { background: light-dark(#dfedf3, #172d3f); color: light-dark(#17384d, #e3f4ff); --slide-primary: light-dark(#235a75, #a9e1ff); --slide-secondary: light-dark(#714717, #f2c892); font-family: "Courier New", monospace; }
.ledger { background: light-dark(#eaede8, #252d28); color: light-dark(#24352b, #eff5ee); --slide-primary: light-dark(#365943, #bbe5c5); --slide-secondary: light-dark(#5d4c2d, #efce91); font-family: Verdana, sans-serif; }
.summit { background: light-dark(#f2e8df, #3c2821); color: light-dark(#542c21, #ffede2); --slide-primary: light-dark(#893d2b, #ffb49e); --slide-secondary: light-dark(#354f66, #a9d2f2); }
.grove { background: light-dark(#ecf1da, #243321); color: light-dark(#2d411e, #eef9dd); --slide-primary: light-dark(#435926, #cfec9e); --slide-secondary: light-dark(#704826, #ffd2a3); font-family: Georgia, serif; }
.keynote { background: light-dark(#eeeaf6, #2c253b); color: light-dark(#322353, #f1eaff); --slide-primary: light-dark(#594184, #d1bfff); --slide-secondary: light-dark(#285951, #9edcce); }
.journal { background: light-dark(#fff2ce, #352b17); color: light-dark(#452f15, #fff2d2); --slide-primary: light-dark(#73501b, #f7d58b); --slide-secondary: light-dark(#7b3c32, #f6b9a9); font-family: Georgia, serif; }
.studio .cover-mark, .summit .cover-mark { width: 1.125rem; height: 1.125rem; border-radius: 50%; }
.blueprint .cover-mark, .ledger .cover-mark { width: 3rem; height: .2rem; border-radius: 0; }
.grove .cover-mark { width: 2.5rem; height: .65rem; border-radius: .75rem 0; }
.keynote .cover-mark { width: 2rem; height: .45rem; border-radius: 0; transform: skewX(-20deg); }
.journal .cover-mark { width: 3rem; height: .25rem; border-radius: 0; }
.slide.studio h2 { letter-spacing: -.06em; }
.slide:is(.studio, .summit) { --copy-align: end; --copy-origin: bottom; }
.slide:is(.brief, .ledger, .grove, .journal) { --copy-align: start; --copy-origin: top; }
.slide.editorial .slide-content, .slide.journal .slide-content { width: min(100%, 52rem); }
.slide.signal .slide-content { text-align: end; }
.slide.signal :is(h2, p, .slide-points, .slide-linked-image, .cover-mark) { margin-inline-start: auto; }
.slide.signal .slide-points { text-align: start; }
.slide.blueprint h2 { letter-spacing: -.03em; }
.slide.blueprint .slide-body { border-inline-start: .2rem solid var(--slide-secondary); padding-inline-start: 1rem; }
.slide.ledger .slide-body { font-variant-numeric: tabular-nums; }
.slide.ledger .slide-section + .slide-section { margin-block-start: .75rem; }
.slide.summit h2 { text-transform: uppercase; }
.slide.grove h2 { font-weight: 500; }
.slide.keynote h2 { font-size: clamp(2rem, 8cqw, 5.5rem); }
.slide:is(.keynote, .grove, .summit) .slide-content { text-align: center; }
.slide:is(.keynote, .grove, .summit) :is(h2, p, .slide-points, .slide-linked-image, .cover-mark) { margin-inline: auto; }
.slide:is(.keynote, .grove, .summit) .slide-points { text-align: start; }
.slide.grove .slide-content { width: min(100%, 42rem); justify-self: center; }
.slide.journal h2 { font-style: italic; }
.slide.journal .slide-body:not(:empty) { border-block-start: 2px solid var(--slide-secondary); padding-block-start: .6rem; }
/* Split wide text layouts. Artwork and narrow screens keep the title above the content. */
@container (min-width: 48rem) {
  .slide:is(.blueprint, .ledger):not(.slide-with-art) .slide-content:has(.slide-body:not(:empty)) {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: clamp(1rem, 4cqw, 3rem);
  }
  .slide.ledger:not(.slide-with-art) .slide-content:has(.slide-body:not(:empty)) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
.slide[data-font="sans"] { font-family: system-ui, sans-serif; }
.slide[data-font="serif"] { font-family: Georgia, serif; }
.slide[data-font="humanist"] { font-family: "Trebuchet MS", sans-serif; }
.slide[data-font="wide"] { font-family: Verdana, sans-serif; }
.slide[data-font="mono"] { font-family: "Courier New", monospace; }
.actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--space); }
dialog { border: 0; border-radius: .75rem; width: min(28rem, calc(100% - 1.5rem)); max-width: none; max-height: calc(100dvh - 1.5rem); padding: clamp(.5rem, 3vi, 1rem); color: var(--text); background: var(--surface); overflow: auto; }
dialog.keyboard-open { position: fixed; inset: var(--visible-top) 0 auto; margin: .5rem auto; max-height: calc(var(--visible-height) - 1rem); }
dialog::backdrop { background: var(--backdrop); }
.dialog-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.dialog-heading h2 { min-width: 0; overflow-wrap: anywhere; }
form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
label { display: grid; gap: .35rem; font-weight: 650; min-width: 0; }
.style-field { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.style-field legend { padding: 0; margin-block-end: .35rem; font-weight: 650; }
.style-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: var(--space); }
.style-options label { position: relative; display: block; font-weight: 400; }
.style-options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.style-options span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem; border-radius: .5rem; background: var(--control); color: var(--text); text-align: center; overflow-wrap: anywhere; }
.style-options input:hover + span { background: var(--hover); }
.style-options input:checked + span { background: var(--action); color: var(--on-action); }
.style-options input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
input, select, textarea { padding: .5rem .65rem; width: 100%; min-width: 0; font-weight: 400; }
textarea { resize: vertical; }
input[type="file"] { padding: 0; }
input::file-selector-button { min-height: 44px; padding: .35rem .6rem; margin-inline-end: .5rem; background: var(--hover); color: var(--text); border: 0; font: inherit; cursor: pointer; }
input::file-selector-button:hover { background: var(--pressed); }
.select-field { position: relative; min-width: 0; }
.select-field select { appearance: none; padding-inline-end: 40px; text-overflow: ellipsis; cursor: pointer; }
.select-field::after { content: ""; position: absolute; inset-inline-end: 15px; inset-block-start: 50%; width: 8px; height: 8px; border-inline-end: 2px solid var(--text); border-block-end: 2px solid var(--text); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
[dir="rtl"] .select-field::after { transform: translateY(-70%) rotate(-45deg); }
option { background: var(--surface); color: var(--text); }
.icon-action { position: relative; }
.close-button { display: grid; place-items: center; padding: .5rem; }
.close-button span { position: relative; width: 1rem; height: 1rem; }
.close-button span::before, .close-button span::after { content: ""; position: absolute; inset: calc(50% - 1px) 0 auto; border-top: 2px solid currentColor; transform: rotate(45deg); }
.close-button span::after { transform: rotate(-45deg); }
.tooltip { position: absolute; z-index: 2; inset-inline-end: calc(100% + .35rem); inset-block-start: 50%; transform: translateY(-50%); padding: .25rem .5rem; border-radius: .35rem; background: var(--action); color: var(--on-action); font-size: .875rem; visibility: hidden; pointer-events: none; }
.icon-action:hover .tooltip, .icon-action:focus-within .tooltip { visibility: visible; }
.deck-management:not([open]) .deck-menu-trigger:is(:hover, :focus-visible) .deck-tooltip { visibility: visible; }
#import-submit { display: grid; max-inline-size: 100%; overflow-wrap: anywhere; }
#import-submit span { grid-area: 1 / 1; }
#import-submit:not([aria-busy]) span + span, #import-submit[aria-busy] span:first-child { visibility: hidden; }
#import-error, #storage-error, #deck-dialog-error, #owner-status, .form-error { color: var(--error); overflow-wrap: anywhere; }
#owner-status:empty, .form-error:empty { display: none; }
#deck-delete-message { overflow-wrap: anywhere; }
#storage-error { padding: var(--space) var(--edge); background: var(--surface); }
#import-error:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:where(html, dialog) { scrollbar-color: transparent transparent; }
:where(html, dialog).scrolling { scrollbar-color: var(--scroll-thumb) var(--page); }
@media (forced-colors: active) {
  .slide-background { display: none; }
  :where(html, dialog), :where(html, dialog).scrolling { scrollbar-color: auto; }
  :focus-visible { outline-color: Highlight; }
  button, .button, input, select, textarea { border: 1px solid ButtonText; }
  .select-field::after { border-color: ButtonText; }
  .slide-opening.slide-with-art .slide-content { background: Canvas; color: CanvasText; }
  .style-options input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .theme-choice input:checked + .theme-icon { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
@media (hover: none) {
  .icon-action { padding-block-end: 1.2rem; }
  .tooltip { inset: auto 0 0; transform: none; visibility: visible; text-align: center; padding: 0; background: none; color: var(--muted); }
  .theme-choice .theme-tooltip { display: none; }
  .deck-menu-trigger .deck-tooltip { display: none; }
  .theme-control::after { content: attr(data-touch-help); grid-column: 1 / -1; color: var(--muted); font-size: .75rem; line-height: 1.4; text-align: center; }
}
@media (max-width: 680px) {
  .slide-cards .slide-points, .slide-metrics .slide-points, .slide-timeline .slide-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) and (orientation: portrait) {
  .slide-with-art { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) min(32%, 13rem); }
  .slide-feature .slide-art-frame { margin-inline: 1.25rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .slide-content { padding-block: 1rem; }
  .slide h2 { font-size: clamp(1.75rem, 5cqw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
  .viewer-header, .slide-controls { transition: none; }
}
