/* Paper Dapple shared UI. Generated by production/tools/materialize_brand.py.
   Edit library-master/brand/ui sources, then materialize; no CSS imports. */
@font-face { font-family: "Jost"; src: url("brand/fonts/jost-variable.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("brand/fonts/inter-variable.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }

/* Shared website and tool identity. Printable renderers never import this file. */
:root {
  --ink: #203645;
  --muted: #52636f;
  --paper: #fbf8f3;
  --surface: #ffffff;
  --white: #ffffff;
  --card: #ffffff;
  --line: #d9dedc;
  --line-strong: #6d808b;
  --coral: #eba69b;
  --gold: #e8b35f;
  --teal: #8fafa5;
  --blue: #7395b9;
  --soft-coral: #f8e6e0;
  --soft-gold: #fbf0dc;
  --soft-teal: #e8f0ec;
  --soft-blue: #e8eef5;
  --soft: #f3efe8;
  --tint: #e8eef5;
  --mint: #e8f0ec;
  --accent: #25495e;
  --accent-strong: #203645;
  --focus: #245f87;
  --error: #9f3434;
  --success: #2f6352;
  --rust: #8b473b;
  --font-display: "Jost", "Century Gothic", "Avenir Next", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-small: 8px;
  --radius-large: 24px;
  --shadow-paper: 0 14px 30px #20364512, 0 2px 5px #2036450a;
  --measure: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  color-scheme: light;
}

/* Interface primitives. Fonts intentionally target HTML, not SVG text or canvas. */
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font-ui); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.5vw, 64px); }
h2 { font-size: clamp(24px, 2.7vw, 38px); }
h3 { font-size: 23px; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: .2em; }
img { max-width: 100%; height: auto; }
:where(button, input, select, textarea) { font: inherit; color: var(--ink); }
:where(button, a, input, select, summary) { touch-action: manipulation; }
:where(button, .button, .filebtn) {
  min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-small);
  padding: 10px 17px; background: var(--surface); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none;
}
:where(button, .button):hover { background: var(--soft-blue); border-color: var(--accent); }
:where(button, .button):disabled { cursor: not-allowed; opacity: .6; }
:where(.primary, .button.primary, button.primary) { background: var(--accent); border-color: var(--accent); color: white; }
:where(.primary, .button.primary, button.primary):hover { background: var(--ink); color: white; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) {
  min-height: 44px; max-width: 100%; min-width: 0; padding: 11px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: white;
}
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
:where(label) { font-size: 13px; font-weight: 600; }
:where(summary) { min-height: 44px; display: list-item; align-content: center; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.filebtn:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip, .skip-link { position: absolute; top: -100px; left: 16px; z-index: 200; padding: 12px 18px; background: var(--ink); color: white; }
.skip:focus, .skip-link:focus { top: 12px; }
::selection { background: var(--soft-gold); color: var(--ink); }
:where(main, section, article, aside, fieldset, .layout, .workspace, .grid, .tool-edit-panel, .tool-preview-panel) { min-width: 0; }
:where(pre, code, [role=status], [role=alert]) { overflow-wrap: anywhere; }
dialog { max-width: calc(100vw - 32px); max-height: 88dvh; overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #20364588; }
/* Shared editor controls work in a direct page and in the persistent workspace. */
.tool-actionbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tool-actionbar [role=status] { flex: 1 1 240px; font-size: 13px; color: var(--muted); }
.editor-panel-nav { display: none; }
.transfer-receipt { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: min(440px,calc(100vw - 32px)); max-height: 50dvh; overflow: auto; padding: 18px 20px; border: 1px solid var(--teal); border-left: 5px solid var(--teal); border-radius: 10px; background: var(--soft-teal); margin: 0; box-shadow: 0 8px 28px #20364522; }
.transfer-receipt h2, .transfer-receipt h3 { margin-top: 0; font-size: 23px; }
.transfer-receipt p { font-size: 14px; }
.transfer-receipt .actions { margin-bottom: 0; }
.preview-state { padding: 12px 15px; margin-block: 14px; border-radius: 8px; background: var(--soft-blue); color: var(--ink); font-size: 13px; }
.preview-state[data-state=stale] { background: var(--soft-gold); border-left: 4px solid var(--gold); }
.preview-state[data-state=error] { background: var(--soft-coral); border-left: 4px solid var(--error); }
.preview-state[data-state=ready] { background: var(--soft-teal); }
.advanced-options { border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; margin-block: 18px; background: var(--surface); }
.advanced-options > summary { font-size: 14px; font-weight: 600; }
html[data-embedded=true] body > header,
html[data-embedded=true] main > header,
html[data-embedded=true] main > .intro { display: none; }
html[data-embedded=true] main { padding-top: 4px; }
html[data-embedded=true], html[data-embedded=true] body,
html[data-embedded=true] main { min-height: 0; }
@media (max-width: 800px) {
  :where(input:not([type=checkbox]):not([type=radio]), select, textarea) { font-size: 16px; }
  .editor-panel-nav { display: flex; gap: 4px; position: sticky; top: 0; z-index: 15; padding: 6px; margin-block: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
  .editor-panel-nav button { flex: 1; border: 0; background: transparent; }
  .editor-panel-nav button[aria-selected=true], .editor-panel-nav button[aria-pressed=true] { background: var(--ink); color: white; }
  html[data-editor-panel=edit] .tool-preview-panel { display: none; }
  html[data-editor-panel=preview] .tool-edit-panel,
  html[data-editor-panel=preview] .tool-edit-settings { display: none; }
  .tool-actionbar { gap: 8px; }
  .tool-actionbar [role=status] { flex-basis: 100%; }
  .transfer-receipt { right: 16px; bottom: 16px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  :where(button, .button, input, select, textarea, .card, .preview-state, .transfer-receipt) { border: 1px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
  :where([aria-current=page], [aria-selected=true], [aria-pressed=true]) { outline: 2px solid Highlight; outline-offset: -3px; }
}

/* workspace.css — surface composition and responsive behavior. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button,input,select { font: inherit; }
button,a,input,select { touch-action: manipulation; }
button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 10px 16px; font-weight: 600; min-height: 44px; cursor: pointer; border-color: var(--line-strong); }
button:hover { background: var(--soft-blue); border-color: var(--accent); }
button:disabled { opacity: .48; cursor: not-allowed; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button.primary { background: var(--ink); color: white; border-color: var(--ink); }
button.primary:hover { background: var(--ink); }
.quiet { border-color: transparent; background: transparent; }
.danger { color: #944b3e; }
.secondary { background: var(--surface); }
.text-button { background: none; border: 0; padding: 0; min-height: 44px; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.skip { position: absolute; top: -100px; left: 15px; padding: 12px; background: var(--ink); color: white; z-index: 99; }
.skip:focus { top: 10px; }
a { color: inherit; text-underline-offset: 3px; }
.site-header { height: auto; max-width: none; margin: 0; padding: 18px max(24px,calc((100vw - 1280px)/2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 18px; min-height: 92px; background: white; }
.brand img { display: block; width: 215px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 5px; }
.nav { border: 0; background: transparent; white-space: nowrap; font-size: 13px; min-height: 44px; padding: 11px 15px; border-radius: 8px; }
.nav.active { background: var(--ink); color: white; }
.nav span { background: var(--soft-gold); border-radius: 30px; display: inline-block; min-width: 44px; font-size: 13px; margin-left: 6px; color: var(--ink); }
.privacy { font-size: 13px; display: flex; align-items: center; gap: 7px; color: var(--muted); }
.privacy svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
main { max-width: 1344px; margin: auto; padding: 0 32px; }
.hero { display: flex; align-items: center; justify-content: space-between; padding: 34px 0 30px; gap: 30px; }
.eyebrow { font-size: 13px; letter-spacing: .13em; font-weight: 750; margin: 0 0 14px; color: var(--muted); }
.hero h1 { font-size: clamp(34px,3.5vw,49px); font-weight: 400; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 19px; margin-bottom: 16px; }
.hero h1 span { color: var(--ink); }
.hero p:not(.eyebrow) { color: var(--muted); font-size: 15px; margin: 0; max-width: 64ch; }
.hero-note { margin-right: 0; border-left: 1px solid #dedbd3; padding: 14px 0 12px 36px; min-width: 220px; padding-left: 28px; }
.hero-note strong { font-weight: 650; color: var(--ink); }
.hero-note small { font-size: 13px; color: var(--muted); }
.mini-shapes { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.mini-shapes i { width: 23px; height: 23px; display: block; background: var(--coral); border-radius: 100%; }
.mini-shapes i:nth-child(2) { background: var(--gold); border-radius: 2px; }
.mini-shapes i:nth-child(3) { background: var(--teal); border-radius: 0; clip-path: polygon(50% 0,100% 100%,0 100%); }
.mini-shapes i:nth-child(4) { background: var(--blue); border-radius: 0; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
h2 { font-size: 19px; line-height: 1.2; margin: 0; letter-spacing: -.025em; }
h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 8px; }
.workspace-toolbar,.section-label { display: flex; align-items: center; gap: 11px; }
.workspace-toolbar { justify-content: space-between; margin: 0 0 18px; margin-bottom: 22px; }
.step { display: inline-grid; place-items: center; width: 31px; height: 31px; background: var(--soft-coral); border-radius: 50%; font-size: 13px; font-weight: 750; }
.step.gold { background: var(--soft-gold); }
.step.blue { background: var(--soft-blue); }
.count-pill { font-size: 13px; background: white; border: 1px solid var(--line); padding: 3px 9px; border-radius: 30px; color: var(--muted); }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(330px,.88fr); gap: 28px; align-items: start; }
.empty-panel { padding: 32px 24px; text-align: center; background: white; border: 1px dashed var(--line-strong); border-radius: 16px; }
.empty-panel h3 { font-size: 27px; font-weight: 400; }
.empty-panel p { color: var(--muted); margin: 0 0 20px; }
.empty-stack { height: 108px; width: 130px; position: relative; margin: 0 auto 24px; }
.empty-stack span { position: absolute; top: 6px; left: 30px; width: 72px; height: 96px; border-radius: 5px; border: 1px solid #b8c8d4; background: #e9eef3; transform: rotate(-13deg); }
.empty-stack span:nth-child(2) { transform: rotate(9deg); background: #f5e3d7; }
.empty-stack span:nth-child(3) { transform: rotate(-2deg); display: grid; place-items: center; background: var(--surface); font-size: 27px; }
.starter-label { font-size: 13px; font-weight: 750; letter-spacing: .15em; margin-top: 27px; color: var(--muted); }
.starter-row { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.starter-row button { font-size: 13px; background: var(--paper); padding: 8px 11px; }
.tray-card { display: grid; grid-template-columns: 73px minmax(0,1fr); gap: 16px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 12px; border-color: var(--line); }
.tray-card.issue { border-color: #c06a4e; }
.thumb { width: 73px; height: 99px; object-fit: contain; background: #f4f1eb; border: 1px solid #e4e0d8; border-radius: 4px; }
.private-thumb { height: 99px; width: 73px; background: var(--soft-coral); display: grid; place-items: center; font-size: 26px; border-radius: 5px; }
.card-title-row { display: flex; justify-content: space-between; gap: 12px; }
.card-title-row h3 { margin: 0; font-size: 20px; font-family: var(--font-display); font-weight: 400; line-height: 1.25; }
.pill { display: inline-block; font-size: 13px; line-height: 1.5; letter-spacing: .04em; border-radius: 5px; background: #e8eef4; padding: 3px 6px; font-weight: 650; margin: 6px 6px 3px 0; }
.pill.private { background: var(--soft-coral); }
.card-meta { font-size: 13px; color: var(--muted); margin: 2px 0 11px; }
.card-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card-controls label { font-size: 13px; color: var(--muted); }
.card-controls input { width: 62px; margin-left: 4px; padding: 7px 8px; min-height: 44px; }
.card-controls select { font-size: 13px; max-width: 140px; padding: 7px; min-height: 44px; }
.icon-btn { padding: 4px; width: 44px; min-height: 44px; font-size: 16px; min-width: 44px; }
.remove { border: none; background: transparent; color: var(--muted); margin-top: -7px; }
.sub-toolbar { display: flex; justify-content: space-between; gap: 5px; flex-wrap: wrap; padding: 0 0 13px; }
.sub-toolbar button { font-size: 13px; padding: 8px 10px; }
.options-panel { background: white; border: 1px solid var(--line); padding: 24px; border-radius: 14px; margin-top: 14px; border-color: var(--line); }
.options-panel .section-label { margin-bottom: 20px; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 600; }
input:not([type=checkbox]),select { color: var(--ink); width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; background: white; min-height: 44px; padding: 10px 11px; margin-top: 6px; }
input[type=checkbox] { accent-color: var(--ink); width: 17px; height: 17px; vertical-align: middle; margin: 0 7px 0 0; flex: none; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 19px 0; }
.check-grid label,.local-save label { display: flex; align-items: flex-start; font-weight: 500; font-size: 13px; }
.helper { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 15px 0 0; }
.local-save { padding: 23px 9px; font-size: 13px; color: var(--muted); }
.local-save p { margin: 6px 0 0 24px; max-width: 420px; }
.review-panel { background: white; border: 1px solid var(--line); padding: 24px; border-radius: 0 0 16px 16px; box-shadow: none; border-top: 4px solid var(--blue); }
.muted { font-size: 13px; color: var(--muted); margin: 9px 0 21px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; border-top: 1px solid #e7e8e4; border-bottom: 1px solid #e7e8e4; padding: 17px 0; margin-top: 18px; padding-block: 16px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 34px; font-weight: 400; letter-spacing: -.035em; font-family: var(--font-display); }
.stats span { font-size: 13px; color: var(--muted); }
.plan-status { font-size: 13px; color: #526875; padding: 12px 0; }
.preview-tabs { display: flex; border-bottom: 1px solid var(--line); gap: 14px; margin-top: 2px; }
.preview-tabs button { border: none; border-radius: 0; padding: 9px 0; background: transparent; font-size: 13px; font-weight: 600; min-height: 44px; color: var(--muted); }
.preview-tabs button.active { color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.plan-list { max-height: 500px; overflow: auto; background: var(--soft-blue); border: 1px solid #eee9e2; border-top: 0; border-radius: 0 0 9px 9px; min-height: 220px; padding: 15px; }
.preview-placeholder { padding: 32px 8px; text-align: center; color: var(--muted); font-size: 13px; }
.paper-outline { width: 78px; height: 104px; border: 1px solid #bac9ce; background: white; border-radius: 4px; margin: 4px auto 16px; box-shadow: 6px 6px 0 #eef1ef; }
.paper-outline:after { content: ""; display: block; margin: 20px 13px; width: 48px; height: 45px; background: repeating-linear-gradient(to bottom,#e1e5e4 0,#e1e5e4 1px,transparent 1px,transparent 10px); }
.plan-row { display: grid; grid-template-columns: 25px 39px minmax(0,1fr); gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid #e7e7e3; padding-block: 11px; border-bottom-color: #ccd7df; }
.plan-row img { width: 31px; height: 43px; object-fit: contain; background: white; }
.plan-row .num { font-size: 13px; color: var(--muted); }
.plan-row .role-block { width: 31px; height: 43px; border: 1px solid #d5dcd9; background: var(--surface); display: grid; place-items: center; font-size: 13px; }
.plan-row strong { font-size: 13px; display: block; font-weight: 500; }
.plan-row small { font-size: 13px; color: var(--muted); }
.group-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 7px 1px; color: #4d6774; }
.export-button { width: 100%; display: flex; justify-content: space-between; margin-top: 20px; padding: 13px 16px; min-height: 50px; border-radius: 9px; font-size: 15px; }
.export-note { font-size: 13px; text-align: center; color: var(--muted); margin: 10px 0 0; }
.help-card { padding: 23px 9px; font-size: 13px; }
.help-card h3 { font-size: 14px; }
.help-card p { color: var(--muted); margin: 0 0 6px; }
.help-card button { font-size: 13px; }
#warnings:empty { display: none; }
.warning { font-size: 13px; background: var(--soft-gold); padding: 10px; border-radius: 8px; margin: 8px 0; }
.alert { padding: 15px 19px; border-radius: 10px; margin: 0 0 18px; font-size: 13px; }
.alert.error { background: #fbebe6; border: 1px solid #e5b2a3; color: #733b2d; }
#downloads a,#downloads button { display: block; text-decoration: none; width: 100%; text-align: center; margin-top: 10px; background: var(--soft-teal); padding: 11px; border-radius: 8px; font-size: 13px; min-height: 44px; border: 1px solid #c9d9d0; }
#output-frame { width: 100%; height: 445px; margin-top: 10px; border: 1px solid var(--line); background: #eee; }
#progress-wrap { margin-top: 17px; }
progress { width: 100%; height: 10px; accent-color: var(--ink); }
#progress-text { font-size: 13px; margin: 6px 0; }
.workspace-view[hidden],[hidden] { display: none !important; }
footer { max-width: 1280px; margin: 40px auto 0; padding: 22px 8px 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; }
.footer-dot { color: var(--coral); padding: 0 8px; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 30px); background: var(--ink); color: var(--surface); padding: 12px 20px; border-radius: 10px; box-shadow: 0 10px 30px #20364520; font-size: 13px; z-index: 30; pointer-events: none; }
#toast:empty { display: none; }
dialog { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); max-width: 650px; width: calc(100% - 30px); padding: 26px; max-height: 90vh; }
dialog::backdrop { background: #152c3d75; backdrop-filter: blur(3px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.dialog-head h2 { font-size: 27px; }
.dialog-head .eyebrow { margin-bottom: 6px; }
.dialog-head button { background: transparent; border: none; }
.library-dialog { max-width: 1170px; }
.library-controls { display: grid; grid-template-columns: minmax(180px,1fr) 190px 140px; gap: 12px; }
.library-controls input,.library-controls select { margin: 0; }
.library-caption { display: flex; justify-content: space-between; gap: 15px; font-size: 13px; color: var(--muted); margin: 12px 0 18px; align-items: center; }
.library-caption p { margin: 0; }
.library-caption label { font-weight: 500; }
.library-results { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.library-card { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.library-image { height: 178px; background: var(--soft-blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 11px; padding: 14px; cursor: pointer; }
.library-image img { height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(1px 2px 2px #20364515); }
.library-card h3 { font-size: 20px; line-height: 1.4; margin: 0 0 5px; font-family: var(--font-display); font-weight: 400; }
.library-card .helper { font-size: 13px; margin: 0 0 10px; min-height: 0; }
.library-card .button-row { gap: 4px; }
.library-card button,.library-card a { font-size: 13px; padding: 6px 9px; min-height: 44px; }
.library-card a { display: inline-block; }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 22px; font-size: 13px; }
.detail-dialog { max-width: 850px; }
.detail-body-grid { display: grid; grid-template-columns: 220px 1fr; gap: 26px; }
.detail-preview { width: 100%; background: white; border: 1px solid var(--line); }
.detail-facts p { font-size: 13px; }
.detail-page { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 9px 0; font-size: 13px; }
.detail-page img { height: 64px; width: 49px; object-fit: contain; }
.detail-page span { flex: 1; }
.prose { font-size: 14px; }
.prose h3 { margin-top: 24px; }
.tool-heading { padding: 28px 0 18px; }
.tool-heading h1 { font-size: 38px; line-height: 1.15; letter-spacing: -.04em; margin: 0 0 12px; font-weight: 400; }
.tool-heading p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.studio-frame { width: 100%; height: 1200px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.lab-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.lab-grid .options-panel { margin: 0; }
.lab-preview { background: #ebece9; border: 1px solid var(--line); padding: 25px; border-radius: 18px; text-align: center; min-height: 490px; }
.lab-preview svg { max-width: 100%; height: auto; max-height: 680px; filter: drop-shadow(3px 5px 5px #20364520); background: white; }
.lab-grid .button-row { margin-top: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mini-note { font-size: 13px; color: #7a5d2d; margin-top: 7px; }
.role-badge { font-size: 13px; color: #526c7b; }
.card-controls .page-select { font-size: 13px; padding: 6px; min-height: 44px; }
.printer-preferences { margin: 1rem 0; padding: 1rem; border: 1px solid #cbd5d1; border-radius: 12px; background: var(--paper); min-width: 0; border-color: var(--line); box-shadow: none; }
.printer-preferences summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.printer-preferences p { font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; }
.printer-preferences-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); gap: .75rem; }
.printer-preferences-fields label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; }
.printer-preferences-fields input,.printer-preferences-fields select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; padding: .5rem; }
.printer-preferences-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.printer-preferences-actions button { min-height: 44px; }
.printer-preferences-actions input { max-width: 100%; }
.printer-preference-warnings { color: #604318; }
.printer-preferences [role=status] { min-height: 1.5em; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[data-favorite][aria-pressed="true"]::before { content: "✓ "; }
.favorites-panel { padding: 1rem; border: 1px solid #ced6d0; border-radius: 12px; margin: 1rem 0; }
.favorites-panel pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.favorites-panel input[type="file"] { max-width: 100%; }
.favorites-import-body { padding-block: 18px 24px; min-width: 0; }
.favorites-import-body label { display: grid; gap: 8px; }
.favorites-import-body select { width: 100%; min-width: 0; min-height: 44px; padding: 8px; }
.favorites-import-body pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
.favorites-import-body [role=alert] { color: var(--ink); font-weight: 650; }
.favorites-import-body pre:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button.primary, .primary { background: var(--accent); border-color: var(--accent); color: white; }
h1,h2 { font-weight: 400; }
.helper, .help, .hint, .small { font-size: 13px; line-height: 1.6; color: var(--muted); }
header img, .brand img { object-fit: contain; }
.section-label h2 { font-size: 24px; font-weight: 400; }
.card-controls input, .card-controls select, .card-controls .page-select { min-height: 44px; font-size: 13px; }
.plan-row img, .plan-row .role-block { width: 36px; height: 49px; }
.library-card:nth-child(4n/**/+2) .library-image { background: var(--soft-gold); }
.library-card:nth-child(4n/**/+3) .library-image { background: var(--soft-coral); }
.library-card:nth-child(4n) .library-image { background: var(--soft-teal); }
.library-card button, .library-card a { min-height: 44px; font-size: 13px; }

@media (min-width:1150px) {
.review-column { position: sticky; top: 18px; }
}
@media (max-width:1000px) {
.site-header { padding: 0 24px; }
.privacy { display: none; }
.workspace-grid { grid-template-columns: minmax(0,1fr) minmax(300px,.88fr); gap: 18px; }
.options-panel,.review-panel { padding: 19px; }
.check-grid { grid-template-columns: 1fr; }
.library-results { grid-template-columns: repeat(3,1fr); }
}
@media (max-width:760px) {
.site-header { padding: 15px 18px; height: auto; flex-wrap: wrap; gap: 9px; }
.brand img { width: 200px; }
.site-header nav { width: 100%; gap: 9px; border-top: 1px solid #e4e2dc; padding-top: 9px; }
.nav { padding: 8px 13px; }
.hero { padding: 29px 0 26px; }
.hero h1 { font-size: 35px; margin-bottom: 12px; }
.hero p:not(.eyebrow) { font-size: 14px; }
.hero-note { display: none; }
.eyebrow { font-size: 13px; }
.workspace-toolbar { align-items: flex-start; flex-direction: column; gap: 15px; }
.workspace-toolbar>.button-row { width: 100%; justify-content: space-between; }
.workspace-toolbar .button-row button { font-size: 13px; padding: 8px 11px; }
.workspace-grid { display: flex; flex-direction: column; gap: 12px; }
.tray-column,.review-column { width: 100%; }
main { padding: 0 18px; }
.tray-card { padding: 15px; grid-template-columns: 58px minmax(0,1fr); gap: 12px; }
.thumb,.private-thumb { width: 58px; height: 82px; }
.options-grid { grid-template-columns: 1fr; }
.check-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.check-grid label { font-size: 13px; }
.library-dialog { padding: 18px; }
.dialog-head h2 { font-size: 23px; }
.library-controls { grid-template-columns: 1fr 1fr; }
.search-box { grid-column: 1/-1; }
.library-controls select { width: 100%; min-width: 0; }
.library-caption { display: block; }
.library-caption p { margin-bottom: 9px; }
.library-results { grid-template-columns: repeat(2,1fr); gap: 10px; }
.library-card { padding: 10px; }
.library-image { height: 136px; }
.library-card h3 { font-size: 13px; }
.library-card .button-row { display: flex; }
.library-card button { font-size: 13px; padding: 5px 8px; }
.detail-body-grid { grid-template-columns: 1fr; }
.detail-preview { max-height: 260px; object-fit: contain; }
.detail-facts { min-width: 0; }
.plan-list { max-height: 320px; }
.review-panel { padding: 19px; }
.stats span { font-size: 13px; }
.empty-panel { padding: 28px 15px 23px; }
.empty-panel h3 { font-size: 21px; }
.empty-panel p { font-size: 13px; }
.empty-stack { transform: scale(.82); margin-bottom: 7px; height: 96px; }
footer { margin: 25px 18px 0; flex-direction: column; gap: 7px; }
.lab-grid { grid-template-columns: 1fr; }
.tool-heading h1 { font-size: 28px; }
.studio-frame { height: 1700px; }
.desktop { display: none; }
.count-pill { font-size: 13px; }
.sub-toolbar button { font-size: 13px; padding: 5px 7px; }
.library-card a { font-size: 13px; }
dialog { max-height: 93vh; }
.card-title-row h3 { font-size: 14px; }
}
@media (max-width:360px) {
main { padding: 0 12px; }
.site-header { padding: 12px; }
.check-grid { grid-template-columns: 1fr; }
.library-results { grid-template-columns: 1fr 1fr; }
.library-image { height: 112px; }
.card-controls { gap: 5px; }
.card-controls select { max-width: 124px; }
}
@media (prefers-reduced-motion:reduce) {
* { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
header,footer,button,.workspace-view { display: none !important; }
body:after { content: "Download the generated PDF, then print it from your PDF viewer. The workspace is not the printable document."; display: block; margin: 20mm; }
}
@media (max-width:760px) {
.site-header nav { flex-wrap: wrap; }
.site-header .nav { min-height: 44px; }
}
@media (prefers-reduced-motion:reduce) {
*,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media(max-width: 1000px) { .site-header { flex-wrap: wrap; padding: 16px 24px; } .privacy { display: flex; margin-left: auto; } .site-header nav { order: 3; flex: 1 1 100%; } }
@media(max-width: 800px) { main { padding-inline: 18px; } .workspace-grid { grid-template-columns: 1fr; display: grid; } .review-column { position: static; } .hero { padding: 26px 0; } .hero-note { display: none; } .site-header nav { flex-wrap: wrap; width: 100%; } .nav { flex: 0 0 auto; padding: 10px 13px; } .check-grid { grid-template-columns: 1fr 1fr; } .hero h1 { font-size: 38px; } .library-results { grid-template-columns: repeat(2,minmax(0,1fr)); } .library-card h3 { font-size: 18px; } .privacy { font-size: 13px; } }
@media(max-width: 430px) { .site-header { padding: 12px 16px; gap: 8px; } .brand img { width: 180px; } .privacy { flex-basis: 100%; justify-content: start; } .site-header nav { gap: 2px; } .nav { padding: 10px; font-size: 13px; } .library-results { grid-template-columns: 1fr; } .library-image { height: 210px; } .check-grid { grid-template-columns: 1fr; } .stats strong { font-size: 29px; } .options-panel, .review-panel { padding: 18px; } .workspace-toolbar > .button-row { justify-content: start; } }
/* Public bookmark and catalog-recipe review, within the mounted workspace. */
.selection-review{max-width:720px;width:calc(100% - 2rem);max-height:85dvh;overflow:auto;padding:1.5rem;color:var(--ink)}
.selection-review>label{display:grid;gap:.5rem}.selection-review li{margin-block:.6rem}.selection-review>.button-row{margin-top:1.2rem}.selection-review .saved-packet-choice{display:flex;align-items:center;gap:.6rem;padding:.6rem 0;border-bottom:1px solid var(--line)}
.selection-review .saved-edition-row{padding:1rem 0;border-bottom:1px solid var(--line)}.selection-review .exact-choice{display:grid;grid-template-columns:120px minmax(0,1fr);gap:1rem;align-items:start}.selection-review .exact-choice img{width:120px;height:150px;object-fit:contain;background:white}.selection-review .exact-choice label{display:block;min-width:0}.selection-review .exact-choice select{max-width:100%;min-width:0}.selection-review .exact-choice .fine{grid-column:1/-1}
@media(max-width:480px){.selection-review .exact-choice{grid-template-columns:90px minmax(0,1fr);gap:.6rem}.selection-review .exact-choice img{width:90px;height:120px}}
