@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=IBM+Plex+Mono:wght@400;450;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --surface: #fcfaf6;
  --ink: #292b26;
  --muted: #78796f;
  --line: #dcdcd1;
  --accent: #c84a31;
  --accent-hover: #a63823;
  --green: #687857;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { border: 0; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; }
button:disabled { opacity: .43; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #eac1ad; color: var(--ink); }
h1, h2, h3, p { margin: 0; }
button, a, label, input, select, summary { touch-action: manipulation; }
.app-shell { max-width: 1480px; margin: 0 auto; padding: 0 64px; }
.masthead { height: 97px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 25px; font-weight: 650; letter-spacing: -1.2px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 35px; border: 1.5px solid var(--ink); font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1; position: relative; transform: rotate(-5deg); }
.brand-mark::after { content: ''; position: absolute; inset: 3px -5px -5px 3px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); z-index: -1; }
.masthead-caption, .micro, .eyebrow, .section-meta, .summary-meta, .local-badge, .preview-live, .paper-caption, .paper-width, .empty-spec, .collection-meta, .footer { font-family: var(--mono); font-size: 10px; font-weight: 450; letter-spacing: .065em; }
.masthead-caption { color: var(--muted); font-size: 10px; letter-spacing: .13em; }
.help-link { font-size: 12px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.help-link span { margin-left: 12px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding: 52px 0 45px; }
.eyebrow { font-size: 10px; letter-spacing: .14em; font-weight: 500; color: var(--muted); }
.intro .eyebrow { color: var(--accent); margin-bottom: 19px; }
h1 { font-family: var(--serif); font-size: clamp(52px, 5.1vw, 74px); line-height: .99; font-weight: 400; letter-spacing: -1.9px; }
h1 em { font-weight: 400; color: var(--accent); }
.intro-aside { max-width: 330px; padding-bottom: 3px; }
.intro-aside > p:first-child { font-size: 15px; font-weight: 500; line-height: 1.7; max-width: 290px; }
.intro-aside .note { margin-top: 9px; font-size: 12px; max-width: 290px; }
.local-badge { display: flex; gap: 7px; align-items: center; margin-top: 24px; font-size: 8px; letter-spacing: .07em; }
.status-dot { flex: 0 0 auto; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.status-dot.warning { background: var(--accent); }
.workspace { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); border: 1px solid var(--line); }
.controls-column { background: var(--surface); border-right: 1px solid var(--line); }
.panel { padding: 27px 29px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.section-heading h2 { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 550; letter-spacing: -.35px; }
.step { font-family: var(--mono); font-size: 10px; color: var(--accent); border: 1px solid #e6c9bc; width: 25px; height: 25px; display: grid; place-items: center; font-weight: 400; letter-spacing: 0; }
.section-meta { color: #85867c; font-size: 8px; white-space: nowrap; }
.field-label { display: block; font-size: 11px; font-weight: 550; margin-bottom: 8px; }
textarea, input[type='text'], input[type='number'], select { width: 100%; border: 1px solid #d9d9ce; border-radius: 2px; background: #fffefa; transition: border-color .15s; outline-offset: 2px; }
textarea:hover, input:hover, select:hover { border-color: #aaa99c; }
textarea:focus, input:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 186px; max-height: 500px; padding: 15px; line-height: 1.8; font-family: var(--mono); font-size: 11px; tab-size: 2; }
textarea::placeholder { color: #a2a196; }
.note { color: var(--muted); font-size: 11px; line-height: 1.65; font-weight: 400; }
.deck-format { margin-top: 9px; font-size: 10px; }
.deck-format span { display: block; }
.deck-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.file-button { display: inline-flex; align-items: center; justify-content: center; position: relative; border: 1px solid #d1d1c5; border-radius: 2px; padding: 8px 12px; font-size: 11px; font-weight: 500; line-height: 1.4; cursor: pointer; overflow: hidden; background: transparent; white-space: nowrap; }
.file-button:hover { border-color: var(--ink); background: #eeeae1; }
.file-button:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.is-disabled { opacity: .45; cursor: not-allowed; }
.is-disabled .file-input { cursor: not-allowed; }
.text-button { padding: 7px 0; background: none; color: var(--muted); font-size: 11px; font-weight: 500; }
.text-button:hover:not(:disabled) { color: var(--accent); }
.resolve-row { display: flex; align-items: center; gap: 16px; margin-top: 21px; }
.resolve-row .micro { font-size: 7px; color: #86877b; max-width: 90px; line-height: 1.8; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 11px 21px; border-radius: 2px; font-size: 12px; font-weight: 550; letter-spacing: .005em; text-decoration: none; transition: background .15s, color .15s; }
.button-primary { background: var(--accent); color: #fffaf3; }
.button-primary:hover:not(:disabled) { background: var(--accent-hover); }
.button-ink { background: var(--ink); color: #fffaf3; }
.button-ink:hover:not(:disabled) { background: #464a3b; }
.inline-notice { margin-top: 13px; color: #9e4830; font-size: 11px; line-height: 1.6; }
.settings-panel { border-top: 1px solid var(--line); }
.field { margin-bottom: 16px; min-width: 0; }
.field input, .field select { height: 39px; padding: 9px 10px; font-size: 11px; }
.field input:disabled, .field select:disabled { opacity: .6; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
select { padding-right: 21px !important; }
.advanced { margin-top: 1px; border-top: 1px solid var(--line); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.advanced > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; font-size: 11px; font-weight: 500; }
.summary-meta { font-size: 7px; color: var(--muted); letter-spacing: .04em; }
.advanced-body { padding-top: 22px; }
.check-field { display: flex; align-items: center; gap: 8px; font-size: 11px; margin-bottom: 12px; }
.check-field input { margin: 0; width: 14px; height: 14px; accent-color: var(--accent); }
.back-control { border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 11px; gap: 10px; margin-bottom: 17px; }
.back-control .field-label { margin-bottom: 0; }
.back-control .note { font-size: 9px; }
.preview-column { min-width: 0; display: flex; flex-direction: column; }
.preview-panel { background: #eaeae0; padding: 24px 30px 16px; flex: 1; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview-heading .eyebrow { font-size: 8px; margin-bottom: 6px; }
.preview-heading h2 { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.4px; }
.preview-live { display: flex; align-items: center; gap: 5px; font-size: 7px; color: #777c69; white-space: nowrap; }
.preview-live .status-dot { width: 4px; height: 4px; }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; margin-top: 21px; padding-bottom: 12px; border-bottom: 1px solid #d3d5c8; }
.preview-toolbar .micro { font-size: 8px; color: #777c6e; }
.segmented { display: flex; padding: 2px; gap: 2px; background: #dddfd2; border-radius: 3px; }
.segmented button { background: transparent; color: #707464; min-width: 47px; padding: 4px 10px; font-size: 10px; border-radius: 2px; }
.segmented button.active { color: var(--ink); background: #faf9f2; box-shadow: 0 1px 2px #24292112; }
.paper-stage { max-width: 342px; margin: 0 auto; padding-top: 16px; }
.paper-width { display: flex; align-items: center; gap: 9px; color: #8b8f7c; font-size: 8px; text-align: center; margin-bottom: 10px; }
.paper-width::before, .paper-width::after { content: ''; flex: 1; height: 5px; border-top: 1px solid #bfc3b3; }
.paper-width::before { border-left: 1px solid #bfc3b3; }
.paper-width::after { border-right: 1px solid #bfc3b3; }
.paper { position: relative; width: 100%; background: #fff; box-shadow: 0 2px 4px #33392513, 0 12px 20px #3c422912; overflow: hidden; }
.paper::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 1px solid #bcbfac44; }
.paper-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 22px; }
.paper-empty > p { font-size: 10px; color: #919384; line-height: 1.8; }
.paper-empty .empty-title { font-family: var(--serif); font-size: 23px; font-weight: 400; color: #747868; margin-top: 25px; margin-bottom: 8px; line-height: 1.2; }
.empty-card-outline { height: 96px; width: 68px; border: 1px solid #bec3af; border-radius: 3px; display: grid; place-items: center; position: relative; transform: rotate(-8deg); }
.empty-card-outline::after { content: ''; position: absolute; inset: 5px -9px -5px 9px; border: 1px solid #d5d8cc; border-radius: 3px; z-index: -1; transform: rotate(15deg); }
.empty-card-outline span { font-family: var(--serif); color: #a9af99; font-size: 35px; }
.empty-spec { color: #a0a492; font-size: 6px; letter-spacing: .08em; margin-top: 34px; }
.paper-caption { display: flex; justify-content: space-between; font-size: 7px; color: #838873; margin-top: 14px; }
.preview-note { font-size: 9px; color: #858a77; text-align: center; margin-top: 15px; line-height: 1.5; }
.preview-card { position: absolute; background: #fff; border-radius: 0; }
.preview-art { display: block; width: 100%; height: 100%; overflow: hidden; }
.sheet-marks { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.missing-preview { width: 100%; height: 100%; border: 1px dashed #c2b6a4; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; color: #7f7869; font-size: 7px; text-align: center; }
.missing-preview span { font-family: var(--mono); font-size: 4px; margin-top: 4px; color: #a17762; }
.export-panel { background: var(--surface); padding: 21px 29px 16px; border-top: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.stat { display: flex; align-items: baseline; gap: 9px; padding: 0 16px; border-left: 1px solid var(--line); }
.stat:first-child { border: 0; padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat strong { font-family: var(--serif); font-weight: 400; font-size: 31px; line-height: 1.1; }
.stat span { font-family: var(--mono); color: var(--muted); font-size: 7px; letter-spacing: .06em; }
.status-message { font-size: 10px; color: #777b6c; display: flex; align-items: baseline; gap: 7px; line-height: 1.6; }
.status-message .status-dot { width: 5px; height: 5px; }
.status-block { margin-bottom: 14px; }
.progress-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.progress-row progress { width: 100%; height: 4px; flex: 1; border: 0; border-radius: 0; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #e8e6dc; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.progress-row .micro { font-size: 8px; }
.generate-button, .download-button { width: 100%; }
.print-reminder { text-align: center; color: #838577; font-size: 9px; margin-top: 11px; }
.print-reminder strong { font-weight: 550; color: #646b57; }
.download-ready .note { text-align: center; font-size: 9px; margin-top: 7px; overflow-wrap: anywhere; }
.message-list { border: 1px solid #dccaba; background: #faf0e5; padding: 10px 12px; margin: 11px 0; font-size: 10px; line-height: 1.6; color: #8a5a3c; }
.message-list summary { font-weight: 600; }
.message-list summary::after { content: ' +'; }
.message-list ul { margin: 8px 0 0; padding-left: 15px; max-height: 170px; overflow-y: auto; overflow-wrap: anywhere; }
.message-list li + li { margin-top: 5px; }
.error-list { background: #fbede7; border-color: #e7c7b8; color: #a0402d; }
.error-message { font-size: 11px; color: #a0402d; margin-bottom: 12px; }
.collection { padding: 43px 0 36px; }
.collection-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 23px; }
.collection-heading .eyebrow { font-size: 8px; color: var(--accent); margin-bottom: 9px; }
.collection h2 { font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: -.6px; }
.collection-heading .note { font-size: 11px; margin-top: 5px; }
.bulk-button { margin-bottom: 3px; }
.collection-empty { display: flex; align-items: center; gap: 21px; padding: 26px 24px; border: 1px dashed #d3d4c7; }
.empty-index { color: #aaad9b; font-family: var(--serif); font-size: 34px; }
.collection-empty h3 { font-size: 12px; font-weight: 500; margin-bottom: 5px; }
.collection-empty .note { max-width: 520px; font-size: 10px; }
.collection-empty > .micro { margin-left: auto; font-size: 8px; color: #919481; white-space: nowrap; }
.collection-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 8px; color: #7e826f; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 19px; align-items: start; }
.card-tile { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.card-art { position: relative; padding: 13px; background: #e8e9dd; aspect-ratio: 0.78; display: flex; align-items: center; justify-content: center; }
.card-art > img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.quantity-badge { position: absolute; top: 8px; right: 8px; padding: 2px 6px; font-family: var(--mono); font-size: 10px; border: 1px solid var(--line); background: #fffefa; box-shadow: 0 2px 4px #0001; }
.card-art-missing { width: 100%; height: 100%; border: 1px dashed #b9bbab; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 12px; padding: 12px; font-family: var(--serif); font-size: 24px; color: #838773; }
.card-art-missing span { font-family: var(--mono); font-size: 8px; color: #b07758; }
.card-info { padding: 12px 11px 0; }
.card-printing { font-family: var(--mono); font-size: 8px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px; color: #8c8e80; }
.card-status.ready { color: #6c7d57; }
.card-status.missing { color: var(--accent); }
.card-info h3 { font-size: 12px; font-weight: 600; line-height: 1.4; margin-top: 7px; overflow-wrap: anywhere; }
.card-source { color: #838676; font-size: 9px; margin-top: 6px; overflow-wrap: anywhere; }
.card-dimensions { font-family: var(--mono); font-size: 8px; color: #969885; margin-top: 3px; }
.card-error { font-size: 9px; color: #ab4e37; margin-top: 7px; line-height: 1.5; overflow-wrap: anywhere; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 13px 0; }
.small { font-size: 9px; }
.file-button.small { padding: 6px 7px; }
.card-back { border-top: 1px solid var(--line); }
.card-back summary { display: flex; justify-content: space-between; color: #7c806d; font-size: 9px; padding: 10px 0; }
.card-back-body { padding: 0 0 12px; }
.card-back-body > img { width: 70px; display: block; margin: 0 auto 11px; }
.card-back-body .note { font-size: 9px; margin-bottom: 7px; }
.card-back-body .text-button { margin-left: 7px; }
.print-guide { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.print-guide > summary { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 21px 0; font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.2px; }
.print-guide > summary .micro { color: #838774; font-size: 8px; white-space: nowrap; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 9px 0 30px; }
.guide-grid .eyebrow { color: var(--accent); margin-bottom: 9px; }
.guide-grid h3 { font-size: 12px; font-weight: 550; margin-bottom: 9px; }
.guide-grid > div > p:last-child { color: var(--muted); font-size: 11px; line-height: 1.8; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 27px 0 34px; font-size: 8px; color: #979b88; }
.footer > span:last-child { font-family: 'DM Sans', system-ui, sans-serif; font-size: 10px; letter-spacing: 0; }

@media (min-width: 1450px) {
  .app-shell { padding: 0 84px; }
  .panel { padding: 30px 35px; }
  .preview-panel { padding-left: 38px; padding-right: 38px; }
  .paper-stage { max-width: 370px; }
  textarea { min-height: 223px; }
}

@media (max-width: 1100px) {
  .app-shell { padding: 0 35px; }
  .panel { padding: 24px; }
  .preview-panel { padding: 24px 22px 16px; }
  .preview-heading h2 { font-size: 22px; }
  .preview-live { display: none; }
  .section-meta { font-size: 7px; }
  .summary-meta { font-size: 6px; }
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .stat { flex-direction: column; gap: 4px; align-items: center; }
  .stat:first-child { padding-left: 16px; }
  .stat:last-child { padding-right: 16px; }
}

@media (max-width: 800px) {
  .app-shell { padding: 0 25px; }
  .masthead { height: 80px; }
  .masthead-caption { display: none; }
  .intro { padding: 39px 0 32px; gap: 26px; }
  .intro-aside { max-width: 220px; }
  .intro-aside > p:first-child { font-size: 12px; }
  .intro-aside .note { font-size: 10px; }
  .local-badge { font-size: 6px; margin-top: 16px; }
  h1 { font-size: 54px; }
  .intro .eyebrow { font-size: 8px; }
  .workspace { grid-template-columns: 1fr 1fr; }
  .panel { padding: 20px 18px; }
  .section-heading { gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
  .section-meta { margin-left: 36px; }
  .section-heading h2 { font-size: 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .field input, .field select { font-size: 12px; }
  .resolve-row { flex-wrap: wrap; gap: 9px; }
  .resolve-row .micro { max-width: none; font-size: 6px; }
  .resolve-row .button { width: 100%; }
  .advanced > summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .summary-meta { font-size: 7px; }
  .preview-panel { padding: 20px 16px 15px; }
  .preview-heading h2 { font-size: 24px; max-width: 190px; }
  .paper-stage { padding-top: 29px; }
  .paper-empty { padding: 12px; }
  .paper-empty .empty-title { font-size: 21px; }
  .paper-empty > p { font-size: 8px; }
  .empty-spec { font-size: 5px; }
  .empty-card-outline { width: 47px; height: 66px; }
  .paper-caption { font-size: 5px; gap: 8px; }
  .export-panel { padding: 18px 16px; }
  .stat strong { font-size: 28px; }
  .stat span { font-size: 6px; }
  .generate-button { font-size: 10px; padding: 11px 8px; }
  .back-control { flex-direction: column; align-items: flex-start; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collection-empty > .micro { display: none; }
  .collection-meta { align-items: flex-start; flex-direction: column; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { font-size: 7px; }
}

@media (max-width: 590px) {
  .app-shell { padding: 0 18px; }
  .masthead { height: 74px; }
  .brand { font-size: 23px; }
  .brand-mark { width: 26px; height: 31px; font-size: 25px; }
  .help-link { font-size: 10px; }
  .help-link span { margin-left: 4px; }
  .intro { flex-direction: column; align-items: flex-start; gap: 21px; padding: 31px 0; }
  h1 { font-size: 61px; letter-spacing: -1.5px; }
  .intro .eyebrow { margin-bottom: 17px; }
  .intro-aside { max-width: 340px; padding: 0; }
  .intro-aside > p:first-child { font-size: 13px; max-width: none; }
  .intro-aside .note { max-width: 310px; font-size: 11px; margin-top: 5px; }
  .local-badge { margin-top: 14px; font-size: 7px; }
  .workspace { grid-template-columns: 1fr; }
  .controls-column { border-right: 0; }
  .panel { padding: 23px 21px; }
  .section-heading { flex-wrap: nowrap; margin-bottom: 22px; }
  .section-heading h2 { font-size: 18px; }
  .section-meta { margin: 0; font-size: 7px; }
  .field-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .field-grid .field { margin-bottom: 6px; }
  .field-grid + .advanced { margin-top: 14px; }
  .field input, .field select { height: 44px; font-size: 12px; }
  textarea { min-height: 185px; font-size: 12px; }
  .field-label { font-size: 12px; }
  .deck-format { font-size: 10px; }
  .file-button { padding: 10px 12px; }
  .text-button { padding: 10px 0; font-size: 12px; }
  .resolve-row { flex-wrap: nowrap; gap: 14px; }
  .resolve-row .button { width: auto; flex: 1; min-height: 45px; }
  .resolve-row .micro { max-width: 78px; font-size: 6px; }
  .advanced > summary { flex-direction: row; align-items: center; font-size: 12px; }
  .summary-meta { font-size: 6px; }
  .back-control { flex-direction: row; align-items: center; margin-top: 12px; }
  .advanced-body .field-grid { margin-bottom: 17px; }
  .check-field { font-size: 12px; }
  .check-field input { width: 17px; height: 17px; }
  .preview-panel { border-top: 1px solid var(--line); padding: 24px 22px 19px; }
  .preview-heading h2 { font-size: 25px; max-width: none; }
  .preview-heading .eyebrow { font-size: 8px; }
  .preview-toolbar { margin-top: 18px; }
  .preview-toolbar .micro { font-size: 8px; }
  .segmented button { min-height: 33px; min-width: 54px; font-size: 11px; }
  .paper-stage { max-width: 302px; padding-top: 19px; }
  .paper-empty .empty-title { font-size: 25px; }
  .paper-empty > p { font-size: 10px; }
  .empty-card-outline { width: 59px; height: 83px; }
  .empty-spec { font-size: 6px; }
  .paper-caption { font-size: 6px; }
  .preview-note { font-size: 10px; }
  .export-panel { padding: 24px 22px 19px; }
  .stats { margin-bottom: 20px; }
  .stat { flex-direction: row; justify-content: center; align-items: baseline; gap: 7px; padding: 0 10px; }
  .stat strong { font-size: 34px; }
  .stat span { font-size: 7px; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { padding-right: 0; }
  .status-message { font-size: 11px; }
  .generate-button, .download-button { font-size: 13px; min-height: 48px; }
  .print-reminder { font-size: 10px; }
  .collection { padding-top: 33px; }
  .collection-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .collection h2 { font-size: 31px; }
  .collection-heading .note { font-size: 11px; }
  .collection-empty { padding: 21px 17px; gap: 14px; align-items: flex-start; }
  .collection-empty .note { font-size: 11px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .card-art { padding: 10px; }
  .card-info { padding: 11px 9px 0; }
  .card-actions { gap: 6px; }
  .card-actions .small { font-size: 9px; }
  .file-button.small { padding: 8px 5px; }
  .card-back summary { min-height: 40px; align-items: center; font-size: 10px; }
  .card-back-body .text-button { margin-left: 0; font-size: 10px; }
  .print-guide > summary { align-items: flex-start; flex-direction: column; gap: 11px; font-size: 25px; line-height: 1.25; }
  .guide-grid { gap: 25px 20px; }
  .guide-grid > div > p:last-child { font-size: 11px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 8px; padding: 23px 0; }
  .footer > span:last-child { font-size: 10px; }
}

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