@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/CourierPrime-Regular.woff2") format("woff2");
  font-display: swap;
  ascent-override: 80%;
  descent-override: 20%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/CourierPrime-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  ascent-override: 80%;
  descent-override: 20%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/CourierPrime-Italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
  ascent-override: 80%;
  descent-override: 20%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/CourierPrime-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  ascent-override: 80%;
  descent-override: 20%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --white: #fffdf6;
  --ink: #22201b;
  --muted: #60594f;
  --line: #c6bdae;
  --accent: #9e492d;
  --measure: #746756;
  font: 16px/1.55 system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: Georgia, Cambria, serif; font-weight: 500; }
p + p { margin-top: 12px; }
a { color: inherit; text-underline-offset: .17em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
code { font: 1em "Courier Prime", "Courier New", monospace; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 10; background: var(--white); padding: 10px; }
.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header-inner, .site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header-inner { min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: bold 1.1rem/1.2 "Courier Prime", "Courier New", monospace; text-decoration: none; white-space: nowrap; }
.brand-icon { position: relative; display: grid; gap: 2px; width: 17px; height: 21px; background: var(--ink); padding: 6px 3px 4px; transform: rotate(-6deg); }
.brand-icon::after { content: ""; position: absolute; right: 0; top: 0; border-top: 5px solid var(--paper); border-left: 5px solid #756c5d; }
.brand-icon i { height: 1px; background: var(--paper); }
.brand-icon i:nth-child(2) { width: 65%; margin-left: 24%; }
.brand-icon i:last-child { width: 80%; }

.primary-nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 19px; }
.primary-nav a, .site-footer a { color: var(--muted); font-size: .82rem; }
.primary-nav a { position: relative; display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.primary-nav a:hover { text-decoration: underline; }
.primary-nav a[aria-current="page"] { color: var(--ink); font-weight: 660; }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 5px; left: 0; right: 0; height: 1px; background: var(--accent); }
.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner { min-height: 84px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { text-decoration: underline; }
.site-footer .domain-sale { font-size: .75rem; }

.article { max-width: 1056px; padding: clamp(34px, 5vw, 65px) 0 60px; }
.article-header { max-width: 830px; }
.article h1 { font-size: clamp(2.65rem, 6.7vw, 5rem); letter-spacing: -.03em; line-height: .98; text-wrap: balance; }
.article-lead { margin-top: 17px; max-width: 650px; font-size: clamp(1.02rem, 1.72vw, 1.22rem); color: var(--muted); line-height: 1.55; }
.article h2 { margin-bottom: 9px; font-size: clamp(1.48rem, 3vw, 2rem); line-height: 1.12; letter-spacing: -.035em; }
.article p, .article dd { line-height: 1.65; }
.article-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin: 24px 0 32px; }
.article-actions > a:not(.button) { font-size: .88rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--ink); padding: 8px 14px; border-radius: 2px; text-decoration: none; font-size: .86rem; font-weight: 650; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { box-shadow: inset 0 0 0 1px var(--paper); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(22px, 6vw, 82px); }
.guide-layout section + section { margin-top: 30px; }
.element-list { margin: 0; }
.element-list > div { display: grid; gap: 4px; border-top: 1px solid var(--line); padding: 11px 0; }
.element-list dt { font-weight: 650; }
.element-list dd { margin: 0; }
.source-line { font-size: .83rem; color: var(--muted); }
.reading { max-width: 720px; margin-top: 36px; }
.reading h2:not(:first-child) { margin-top: 27px; }
.article .reading p:not(:first-child) { margin-top: 8px; }
.measured, .example-paper { min-width: 0; }
.page-view-controls { display: none; }
.page-swipe { display: none; }
.measured { align-self: start; }
figcaption { margin-top: 10px; color: var(--muted); font-size: .8rem; }
.measure-paper { position: relative; }
.measure-paper .script-page, .example-sheet .script-page { width: 100%; margin: 0; }
.measure-top { position: relative; display: grid; place-items: center; height: 24px; margin-bottom: 5px; }
.measure-top::before { content: ""; position: absolute; top: 50%; width: 100%; height: 7px; border: 1px solid var(--measure); border-bottom: 0; }
.measure-top span { z-index: 1; padding: 0 6px; background: var(--paper); color: var(--measure); font-size: .72rem; }
.measure-height { position: absolute; right: -19px; top: 0; height: 100%; border-left: 1px solid var(--measure); display: grid; place-items: center; writing-mode: vertical-rl; color: var(--measure); font-size: .72rem; }
.measure-left, .measure-right { position: absolute; top: 3.5%; border-bottom: 1px solid var(--measure); color: var(--measure); text-align: center; font: .69rem system-ui, sans-serif; }
.measure-left { left: 0; width: 17.6470588%; border-right: 1px solid var(--measure); }
.measure-right { right: 0; width: 11.7647059%; border-left: 1px solid var(--measure); }
.measure-vertical { position: absolute; right: 39%; height: 9.0909091%; width: 8px; border-right: 1px solid var(--measure); }
.measure-vertical span { position: absolute; top: 50%; right: 12px; translate: 0 -50%; white-space: nowrap; color: var(--measure); font-size: .68rem; }
.measure-top-margin { top: 0; border-bottom: 1px solid var(--measure); }
.measure-bottom-margin { bottom: 0; border-top: 1px solid var(--measure); }
.measure-indents { position: absolute; inset: 0; pointer-events: none; }
.measure-paper .script-line { z-index: 1; background: #fffefa; }
.measure-indent::before {
  content: "";
  position: absolute;
  top: var(--measure-y);
  left: 0;
  width: var(--measure-span);
  height: calc(var(--bar-y) - var(--measure-y));
  border-right: 1px dashed var(--line);
  border-bottom: 1px solid var(--measure);
}
.measure-indent span {
  position: absolute;
  top: var(--bar-y);
  left: 6px;
  translate: 0 calc(-100% - 3px);
  color: var(--measure);
  font: .68rem/1 system-ui, sans-serif;
}
.example-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.example-sheet { position: relative; }
.example-marker {
  position: absolute; left: calc(var(--marker-x) - 1.2%); top: var(--marker-y); translate: -100% -94%;
  display: grid; place-items: center; width: clamp(13px, 2.4vw, 20px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: .69rem; line-height: 1; text-decoration: none;
}
.example-marker:is(:focus-visible, :target) { outline: 2px solid var(--measure); outline-offset: 2px; }
.annotations ol { list-style: none; margin: 0 0 16px; padding: 0; }
.annotations li { display: grid; gap: 4px; border-top: 1px solid var(--line); padding: 11px 0; }
.annotations li:target { border-top-color: var(--measure); }
.annotations li a { justify-self: start; }
.annotations li span { color: var(--muted); }
.download-list { margin-top: 32px; }
.download-list section { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 15px 30px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.download-list section:last-child { border-bottom: 1px solid var(--line); }
.download-list section p { max-width: 610px; color: var(--muted); }
.download-list h2 { margin-bottom: 4px; }
.comparison-table { width: 100%; margin-top: 17px; border-collapse: collapse; text-align: left; line-height: 1.58; }
.comparison-table :is(th, td) { padding: 13px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison-table th:first-child { width: 23%; padding-right: 15px; }
.comparison-table thead th { border-bottom-color: var(--measure); }
.short-page { min-height: min(69vh, 580px); }
.contact-copy { max-width: 560px; }
.contact-form { display: grid; gap: 15px; margin-top: 18px; }
.contact-form :is(select, textarea) {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--measure);
  border-radius: 2px;
  padding: 8px;
  background: var(--white);
  color: var(--ink);
}
.contact-form select { min-height: 44px; }
.contact-form textarea { resize: vertical; }
.contact-consent { display: flex; align-items: baseline; gap: 8px; }
.contact-consent input { margin: 0; accent-color: var(--accent); }
.contact-form .button { justify-self: start; cursor: pointer; }
.contact-notice { border-left: 3px solid var(--accent); padding-left: 10px; }

@media (max-width: 768px) {
  .shell { width: calc(100% - 32px); }
  .site-header-inner { display: block; min-height: 0; }
  .brand { display: flex; width: fit-content; min-height: 36px; font-size: 1rem; gap: 8px; }
  .brand-icon { width: 14px; height: 18px; padding: 4px 2px 3px; }
  .primary-nav { justify-content: space-between; gap: 0 3px; }
  .primary-nav a { flex: none; justify-content: center; font-size: .7rem; white-space: nowrap; }
  .primary-nav a:focus-visible { outline-offset: -2px; }
  .site-footer-inner { display: grid; align-content: center; justify-content: start; gap: 9px; padding: 14px 0; }
  .article { padding-bottom: 39px; }
  .article h1 { text-wrap: wrap; }
  .article-lead { margin-top: 12px; }
  .article-actions { margin: 18px 0 24px; }
  .guide-layout, .example-layout { grid-template-columns: 1fr; gap: 21px; }
  .page-view { container-type: inline-size; }
  .page-view-controls { display: flex; align-items: center; gap: 12px; }
  .page-fit { display: flex; align-items: center; gap: 5px; min-height: 44px; width: fit-content; cursor: pointer; color: var(--ink); font-size: .78rem; }
  .page-fit input { margin: 0; accent-color: var(--accent); }
  .page-view-frame { position: relative; }
  .page-view-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
  .page-swipe { color: var(--muted); font-size: .73rem; white-space: nowrap; }
  .page-view:has(.page-fit input:not(:checked)) .page-view-frame::after {
    position: absolute;
    inset: 0 0 0 auto;
    width: 12px;
    background: linear-gradient(to left, #30281b26, transparent);
    pointer-events: none;
  }
  @container (width < 559px) {
    .page-view:has(.page-fit input:not(:checked)) :is(.measured .page-swipe, .studio-preview .page-swipe) { display: inline; }
    .page-view:has(.page-fit input:not(:checked)) :is(.measured .page-view-frame, .studio-preview .page-view-frame)::after { content: ""; }
  }
  @container (width < 540px) {
    .example-paper .page-view:has(.page-fit input:not(:checked)) .page-swipe { display: inline; }
    .example-paper .page-view:has(.page-fit input:not(:checked)) .page-view-frame::after { content: ""; }
  }
  .page-view:has(.page-fit input:not(:checked)) .page-view-paper { min-width: 540px; }
  .measured .page-view-paper { padding-right: 19px; }
  .measured .page-view:has(.page-fit input:not(:checked)) .page-view-paper { min-width: 559px; }
  .measured .page-view:has(.page-fit input:checked) .measure-paper { margin-bottom: 3.35rem; }
  .measured .page-view:has(.page-fit input:checked) .measure-indent span {
    top: calc(100% + .4rem + var(--label-index) * .95rem);
    translate: none;
  }
  .download-list section { grid-template-columns: 1fr; gap: 8px; }
  .download-list .button { justify-self: start; }
}

[hidden] { display: none !important; }

.editor-shell, .studio-reading {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.studio-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 38px 0 22px;
}

.studio-heading h1 {
  margin: 0;
  line-height: .99;
  letter-spacing: -.03em;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 500;
}

.studio-heading p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.studio-drafts, .studio-panel-actions, .export-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-button, .studio-picker select, .studio-primary, .export-actions summary {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 650;
  white-space: nowrap;
  padding: 0 12px;
}

.studio-button, .studio-picker select, .studio-primary, .export-actions summary,
.quiet-button, .type-pill, .editor-tabs button { cursor: pointer; }

.studio-button:hover, .studio-picker select:hover, .export-actions summary:hover {
  border-color: var(--ink);
}

.editor-tabs { display: none; }

.studio {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-top-color: var(--ink);
}

.studio-panel {
  min-width: 0;
  background: var(--white, #fffdf7);
}

.studio-editor { border-right: 1px solid var(--line); }

.studio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.editor-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 9px;
  padding: 7px 0;
}

#save-status {
  min-width: 0;
  color: var(--muted);
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.studio-panel-head h2 {
  margin: 0;
  font-family: inherit;
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: 0;
}

.quiet-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 7px 6px;
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  font-size: .78rem;
  font-weight: 620;
}

.quiet-button:hover, .issue-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#editor-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 285px;
  height: clamp(323px, 41vh, 404px);
  border: 0;
  margin: 0;
  padding: 20px 18px;
  resize: vertical;
  color: var(--ink);
  background: transparent;
  font: 16px/1.45 'Courier Prime', 'Courier New', monospace;
  tab-size: 4;
}

.editor-scroll-measure {
  position: fixed;
  top: 0;
  left: -10000px;
  box-sizing: border-box;
  visibility: hidden;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

#editor-input:focus {
  outline: 1px solid var(--ink);
  outline-offset: -2px;
}

.line-tools { padding: 12px 18px; border-top: 1px solid var(--line); }

.line-tools-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
}

#line-format {
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  font-family: inherit;
  font-size: .78rem;
  letter-spacing: 0;
}

#reset-type { padding: 3px 5px; }

.type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0 9px;
}

.type-pill {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  padding: 4px 7px;
  font: 600 .7rem/1.2 system-ui, sans-serif;
}

.type-pill:hover { border-color: var(--ink); }
.type-pill[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.tab-option {
  display: flex;
  width: fit-content;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: .75rem;
}

.tab-option input { flex: none; margin: 0 .2em 0 0; accent-color: var(--accent); }

.checker, .editor-settings { padding: 4px 18px; border-top: 1px solid var(--line); }
.checker > button { padding-left: 0; }
.checker ul { margin: 0 0 8px; padding: 0; font-size: .8rem; list-style: none; color: var(--muted); }
.checker li + li { margin-top: 4px; }

.issue-link {
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  padding: 4px 0;
}

.editor-settings summary {
  cursor: pointer;
  padding: 9px 0;
  font-weight: 610;
  font-size: .78rem;
}

.editor-settings-inner { padding: 6px 0 8px; }
.studio-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 8px; }
.studio-fields label { display: grid; gap: 3px; font-size: .76rem; }
.studio-fields input, .studio-fields select, .studio-fields textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 6px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: max(16px, 1em);
}
#title-fields { margin-top: 8px; }
#title-fields label:last-child { grid-column: 1 / -1; }

.studio-preview { background: #e7e1d5; }
.studio-preview .studio-panel-head { background: var(--paper); }
.preview-stock { color: var(--muted); font-size: .77rem; white-space: nowrap; }

.preview-stage {
  min-height: 420px;
  height: clamp(495px, 64vh, 680px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 17px 20px 22px;
  scrollbar-color: #8e8374 transparent;
}

.script-page {
  container-type: inline-size;
  box-sizing: border-box;
  position: relative;
  width: min(100%, 612px);
  aspect-ratio: 612 / 792;
  margin: 0 auto 14px;
  border: 0;
  box-shadow: 0 1px 4px #30281b36;
  background: #fffefa;
  color: #161511;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

.script-page:last-child { margin-bottom: 0; }

.script-line {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: block;
  transform: translateY(-.8em);
  white-space: pre;
  font: 1.9607843137cqw/1 'Courier Prime', 'Courier New', monospace;
  font-kerning: none;
  font-variant-ligatures: none;
}

.studio-export {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.studio-count { display: flex; align-items: baseline; gap: 12px; }
.studio-count strong { white-space: nowrap; font-size: .89rem; }
.studio-count > span { color: var(--muted); font-size: .78rem; }
.runtime-qualifier { white-space: nowrap; }

.studio-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  padding: 0 15px;
}
.studio-primary:hover { box-shadow: 0 0 0 1px var(--ink); }
.studio-primary:disabled, .quiet-button:disabled { cursor: wait; opacity: .55; }

.export-actions details { position: relative; }
.export-actions summary {
  display: flex;
  align-items: center;
  user-select: none;
  list-style: none;
}
.export-actions summary::-webkit-details-marker { display: none; }
.export-actions summary::after { content: '+'; margin-left: 6px; }
.export-actions details[open] summary::after { content: '−'; }

.export-menu {
  position: absolute;
  display: grid;
  z-index: 2;
  right: 0;
  bottom: calc(100% + 6px);
  width: 188px;
  padding: 7px;
  border: 1px solid var(--ink);
  background: var(--white, #fffdf7);
  box-shadow: 0 3px 6px #30281b1a;
}
.export-menu > button { text-align: left; }
.export-menu > p { font-size: .73rem; color: var(--muted); line-height: 1.4; margin: 6px; }

.draft-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 35px;
  gap: 3px 9px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}
.draft-status > button { text-decoration: underline; text-underline-offset: 3px; }
.editor-message, .editor-help { margin: 6px 0 0; font-size: .83rem; }
.editor-help { margin: 7px 18px 0; }
#export-message { flex-basis: 100%; margin: 0; overflow-wrap: anywhere; }

.studio-reading {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 37px auto 48px;
  padding: 0;
}
.studio-reading a { display: grid; justify-items: start; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--ink); text-decoration: none; }
.studio-reading a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.studio-reading strong { font-size: .88rem; }
.studio-reading span { color: var(--muted); font-size: .8rem; }

@media (max-width: 1000px) {
  .studio-count { align-items: start; flex-direction: column; gap: 1px; }
}

@media (max-width: 768px) {
  .editor-shell, .studio-reading { width: calc(100% - 28px); }
  html { scroll-padding-bottom: var(--export-bar-height, 80px); }
  .editor-shell { height: auto; }
  .studio-heading { display: block; padding: 13px 0 10px; }
  .studio-heading h1 { font-size: clamp(1.83rem, 7.7vw, 3.7rem); }
  .studio-heading p { margin: 6px 0 8px; font-size: .85rem; }
  .studio-picker select { max-width: 180px; font-size: 1rem; }

  .editor-tabs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .editor-tabs button {
    min-height: 44px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font: 650 .85rem/1 system-ui, sans-serif;
  }
  .editor-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
  .studio {
    display: block;
    overflow: visible;
    padding-bottom: 12px;
  }
  .studio[data-active="edit"] > .studio-preview, .studio[data-active="preview"] > .studio-editor { display: none; }
  .studio-editor { border-right: 0; }
  .studio-panel-head { min-height: 43px; padding: 0 11px; }
  .studio-panel-actions { gap: 3px; }
  #editor-input { min-height: 246px; height: 265px; padding: 13px 11px; }
  .line-tools, .checker, .editor-settings { padding-inline: 11px; }
  .selected-line { margin-top: 4px; color: var(--muted); font: .82rem/1.35 'Courier Prime', monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
  .tab-option, .studio-fields input, .studio-fields select, .studio-fields textarea { min-height: 44px; }
  .preview-stock { display: none; }
  .preview-stage { height: auto; min-height: 0; overscroll-behavior-y: auto; padding: 11px 8px 12px; }
  .studio-preview:has(.page-fit input:not(:checked)) .script-page { min-width: 540px; margin-inline: 0; }
  .editor-settings summary { min-height: 44px; padding-block: 13px; }
  .issue-link { min-height: 44px; }

  .studio-export {
    position: sticky;
    z-index: 4;
    bottom: 0;
    padding: 7px 0 max(7px, env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .studio-count > span { max-width: 155px; font-size: .68rem; line-height: 1.2; }
  .export-actions { gap: 5px; }
  .export-actions summary { padding-inline: 7px; }
  .export-actions summary::after { margin-left: 3px; }
  .export-menu {
    width: min(170px, 46vw);
    padding: 4px;
  }
  .studio-primary { padding: 0 8px; }

  .studio-reading { grid-template-columns: 1fr; gap: 12px; margin-block: 25px 30px; }
  .studio-reading a { grid-template-columns: 1fr auto; align-items: baseline; gap: 8px; }
}
