:root { 
  --ink: #24232a; --muted: #77747b; --paper: #fffdfa; --canvas: #f5f1ed; 
  --line: #e7dfd8; --red: #b52d3b; --green: #16804b; --shadow: 0 18px 50px rgba(47, 32, 25, 0.08); 
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: "DM Sans", system-ui, sans-serif; }
html { font-size: 92%; overflow-x: hidden; overflow-x: clip; max-width: 100%; }
body { background: var(--canvas); color: var(--ink); padding: 0; width: 100%; max-width: 100vw; overflow-x: hidden; overflow-x: clip; }
button, input, select { font: inherit; max-width: 100%; }
img { max-width: 100%; }

.app-shell { max-width: 1380px; width: 100%; margin: 0 auto; padding: calc(var(--topbar-height, 120px) + 22px) 28px 48px; overflow-x: hidden; }
.topbar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 40; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.1fr); align-items: center; gap: 42px; width: 100%; max-width: 1380px; padding: 14px 28px; background: var(--canvas); max-height: 20vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 60px; display: block; }
.brand-copy { border-left: 1px solid var(--line); padding-left: 14px; color: var(--muted); font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: var(--red); font-weight: 800; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3, .book-title, .cover-placeholder { font-family: "Manrope", "DM Sans", sans-serif; }
h1 { font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.04; letter-spacing: -.04em; }
.intro { max-width: 560px; }
.intro h2 { font-size: clamp(1.1rem, 3.2vw, 1.7rem); line-height: 1.15; }
.intro p { max-width: 480px; margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.45; }

.app-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.app-tab { border: 0; border-radius: 8px 8px 0 0; padding: 8px 14px; background: var(--canvas); color: var(--muted); font-size: .8rem; font-weight: 600; cursor: pointer; }
.app-tab.is-active { background: var(--paper); color: var(--ink); font-weight: 700; box-shadow: inset 0 3px 0 var(--red); }
.tab-panel[hidden] { display: none; }
.offset-panel { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.offset-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.offset-heading h2 { margin-top: 6px; font-size: 1.7rem; }
.offset-heading p { margin-top: 7px; color: var(--muted); }
.offset-input-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.offset-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.offset-card h3 { margin-bottom: 16px; font-size: 1rem; }
.offset-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offset-fields input, .offset-fields select { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; outline: none; }
.offset-fields input:disabled { background: #f0ece8; color: var(--muted); }
.offset-fixed-value { display: flex; flex-direction: column; justify-content: center; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #f7f3ef; }
.offset-fixed-value strong { font-size: .82rem; }
.offset-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 18px; }
.offset-history-controls { display: flex; align-items: flex-end; gap: 10px; }
.offset-history-select { min-width: 280px; }
.offset-history-select select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.offset-result-wrap { margin-top: 18px; }
.offset-result { min-height: 270px; overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #24232a; color: #fff; font: .82rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.calculator-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.calculator-tab { border: 0; border-radius: 8px 8px 0 0; padding: 7px 12px; background: transparent; color: var(--muted); font-size: .74rem; font-weight: 600; cursor: pointer; }
.calculator-tab.is-active { background: #fff; color: var(--ink); font-weight: 700; box-shadow: inset 0 3px 0 var(--red); }
.calculator-panel[hidden] { display: none; }
.calculator-note { margin: -7px 0 16px; color: var(--muted); font-size: .8rem; }
.checkbox-field > span:last-child { display: flex; align-items: center; gap: 7px; min-height: 40px; color: var(--ink); font-size: .82rem; }
.checkbox-field input { width: auto; }
.simple-quote-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.simple-quote-result > div { display: flex; flex-direction: column; gap: 5px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.simple-quote-result span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.simple-quote-result strong { color: var(--red); font-size: 1.25rem; }
.simple-quote-result small { grid-column: 1 / -1; color: var(--muted); }

.documents-panel { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.admin-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; margin: 18px 0 24px; }
.admin-dashboard-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 11px; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color 140ms ease, transform 140ms ease; }
.admin-dashboard-card:hover { border-color: var(--red); transform: translateY(-1px); }
.admin-dashboard-card:focus-visible { outline: 3px solid rgba(181, 45, 59, .35); outline-offset: 2px; }
.admin-dashboard-card-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #f7f3ef; color: var(--red); font-size: 1.15rem; font-weight: 800; }
.admin-dashboard-card-copy { display: grid; gap: 4px; min-width: 0; }
.admin-dashboard-card-copy strong { font-size: .84rem; }
.admin-dashboard-card-copy small { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.admin-dashboard-card-arrow { color: var(--red); font-size: 1.1rem; font-weight: 800; }
.admin-dashboard-records { scroll-margin-top: calc(var(--topbar-height) + 16px); }
.admin-dashboard-records-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.admin-dashboard-records-heading h3 { font-size: 1rem; }
.admin-dashboard-records-heading span { color: var(--muted); font-size: .76rem; }
.job-quote-client-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 22px; }
.job-quote-client-fields input, .job-quote-line input:not([type="checkbox"]), .job-quote-discount input { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.job-quote-discount { display: grid; grid-template-columns: minmax(140px, 240px); gap: 5px; margin-top: 16px; }
.job-quote-discount[hidden] { display: none; }
.job-quote-lines-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.job-quote-lines-heading h3 { font-size: 1rem; }
.job-quote-lines { display: grid; }
.job-quote-line { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(80px, .65fr) minmax(130px, 1fr) minmax(145px, 1fr) 36px; align-items: end; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.job-quote-line label { min-width: 0; }
.job-quote-production { display: flex; align-items: center; gap: 7px; min-height: 39px; color: var(--ink); font-size: .76rem; }
.job-quote-production[hidden] { display: none; }
.invoice-start-production { margin: 14px 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.job-quote-production input { width: auto; accent-color: var(--red); }
.job-quote-remove { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.job-quote-remove:hover { border-color: var(--red); color: var(--red); }
.job-quote-total { display: flex; align-items: baseline; justify-content: flex-end; gap: 18px; margin-top: 16px; padding: 14px; border-radius: 8px; background: #f7f3ef; }
.job-quote-total span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.job-quote-total strong { color: var(--red); font-size: 1.15rem; }
.job-quote-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.accounting-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.accounting-summary > div { padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.accounting-summary span { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.accounting-summary strong { display: block; margin-top: 6px; font-size: 1.15rem; color: var(--ink); }
.accounting-summary .accounting-highlight strong { color: var(--red); }
.documents-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.documents-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f5f0eb; }
.documents-filter-button { border: 0; border-radius: 7px; padding: 8px 12px; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 800; cursor: pointer; }
.documents-filter-button.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 7px rgba(36,35,42,.1); }
.documents-search { flex: 1; min-width: 220px; }
.documents-refresh-group { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.documents-sync-status { color: var(--muted); font-size: .72rem; text-align: right; }
.finance-month-field { display: grid; gap: 4px; min-width: 150px; }
.finance-month-field input, .finance-month-field select, .expense-entry-form input, .expense-entry-form select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.finance-custom-range { display: flex; flex-wrap: wrap; gap: 8px; }
.finance-period-status { min-height: 1.2em; margin: 0 0 8px; color: var(--muted); font-size: .76rem; }
.expense-entry-section { margin: 22px 0 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.expense-entry-section h3 { margin-bottom: 12px; font-size: 1rem; }
.expense-entry-form { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(160px, 1fr) minmax(180px, 1.4fr) minmax(120px, .8fr) auto; align-items: end; gap: 10px; }
.expense-entry-form label { min-width: 0; }
.expense-entry-form .custom-btn { min-height: 39px; white-space: nowrap; }
.production-print-button { border: 0; border-radius: 7px; padding: 8px 10px; background: var(--red); color: #fff; font-size: .74rem; font-weight: 800; cursor: pointer; }
.production-print-button:disabled { background: #e4f5ec; color: var(--green); cursor: default; }
.documents-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.documents-table { width: 100%; border-collapse: collapse; font-size: .82rem; white-space: nowrap; }
.documents-table th { padding: 11px 13px; background: #f7f3ef; color: var(--muted); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
.documents-table td { padding: 11px 13px; border-top: 1px solid var(--line); vertical-align: middle; }
.documents-empty { text-align: center; color: var(--muted); white-space: normal; }
.document-type-tag { padding: 3px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: uppercase; background: #f5f0eb; color: var(--ink); }
.document-status-tag { padding: 3px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.document-status-tag.is-paid { background: #e4f5ec; color: var(--green); }
.document-status-tag.is-pending { background: #fdf3e4; color: #8a5a12; }
.document-status-tag.is-partial { background: #fff1dd; color: #9b5c00; }
.document-status-tag.is-active { background: #eaf1fb; color: #2255a4; }
.document-status-tag.is-quoted { background: #f0eefb; color: #5c3ea8; }
.documents-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.documents-row-actions button { border: 0; border-radius: 7px; padding: 6px 9px; font-size: .72rem; font-weight: 800; cursor: pointer; background: #f5f0eb; color: var(--ink); }
.documents-row-actions button:hover { background: var(--red); color: #fff; }

.content { display: block; }
.catalog-panel, .quote-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.catalog-panel { padding: 15px; }
.catalog-dropdown { margin-top: 4px; }
.catalog-dropdown summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); cursor: pointer; font-size: .86rem; font-weight: 800; list-style: none; }
.catalog-dropdown summary::-webkit-details-marker { display: none; }
.catalog-dropdown summary::after { content: "+"; color: var(--red); font-size: 1.2rem; line-height: 1; }
.catalog-dropdown[open] summary { border-radius: 11px 11px 0 0; border-bottom-color: transparent; }
.catalog-dropdown[open] summary::after { content: "−"; }
.catalog-dropdown .catalog-grid { padding: 14px 0 2px; }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.catalog-actions { display: inline-flex; align-items: stretch; gap: 12px; white-space: nowrap; }
.catalog-actions > .refresh-btn, .catalog-actions > .view-toggle { flex: 1; }
.view-toggle { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f5f0eb; }
.view-toggle button { border: 0; border-radius: 7px; padding: 8px 11px; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 800; cursor: pointer; }
.view-toggle button.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 7px rgba(36,35,42,.1); }
.refresh-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 800; cursor: pointer; }
.refresh-btn:hover { border-color: var(--red); color: var(--red); }
.refresh-btn:disabled { opacity: .6; cursor: not-allowed; }
.install-app-status { display: block; max-width: 520px; margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1.4; overflow-wrap: anywhere; }
.refresh-btn .refresh-icon { display: inline-block; font-size: .95rem; transition: transform 400ms ease; }
.refresh-btn.is-loading .refresh-icon { animation: spin 800ms linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-wrap::before { content: "⌕"; position: absolute; left: 16px; top: 8px; color: var(--muted); font-size: 1.55rem; }
#searchInput { width: 100%; padding: 13px 16px 13px 44px; border: 1px solid var(--line); border-radius: 12px; outline: none; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; min-width: 0; }
.book-card { min-height: 115px; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.catalog-grid.list-view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.list-view .book-card { min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px 15px; cursor: pointer; }
.list-view .book-card > div:first-child { min-width: 0; }
.list-view .cover-thumb, .list-view .cover-placeholder { display: none; }
.list-view .book-title { display: block; font-size: .86rem; line-clamp: unset; -webkit-line-clamp: unset; max-height: none; }
.list-view .book-author { margin-top: 3px; line-clamp: unset; -webkit-line-clamp: unset; max-height: none; }
.list-view .book-meta { display: flex; flex-wrap: wrap; gap: 3px 16px; margin-top: 6px; }
.list-view .book-footer { display: flex; align-items: center; justify-content: flex-end; flex-direction: row; flex-wrap: wrap; gap: 10px; margin: 0; }
.list-view .price-row { min-width: max-content; }
.list-view .add-btn { padding: 5.25px 7.5px; }
.book-card { cursor: pointer; }

/* Cover Image & Dynamic Fallback Placeholder Styles */
.cover-thumb { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; background: #f9f6f0; border-radius: 8px; margin-bottom: 5px; }
.cover-placeholder { position: relative; width: 100%; height: auto; aspect-ratio: 2 / 3; overflow: hidden; background: #24232a; color: #fff; border-radius: 8px; margin-bottom: 5px; padding: 7px; display: flex; flex-direction: column; justify-content: space-between; font-size: .86rem; line-height: 1.18; font-weight: 700; }
.cover-placeholder::before { content: ""; position: absolute; width: 95px; height: 95px; right: -28px; top: -32px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; box-shadow: 0 0 0 12px rgba(255,255,255,.08), 0 0 0 24px rgba(255,255,255,.06); }
.cover-placeholder::after { content: ""; position: absolute; width: 58px; height: 58px; right: 18px; bottom: -31px; border: 1px solid rgba(255,255,255,.3); transform: rotate(45deg); }
.cover-placeholder.tone-1 { background: linear-gradient(135deg, #8d2737, #c65b58); }
.cover-placeholder.tone-2 { background: linear-gradient(135deg, #1f4c59, #2b8581); }
.cover-placeholder.tone-3 { background: linear-gradient(135deg, #4b3b69, #9471a8); }
.cover-placeholder.tone-4 { background: linear-gradient(135deg, #b56c2b, #df9d4d); }
.cover-kicker { position: relative; z-index: 1; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.cover-title { position: relative; z-index: 1; max-width: 82%; }
.cover-mark { position: relative; z-index: 1; font-size: .55rem; letter-spacing: .13em; text-transform: uppercase; opacity: .8; }

.book-title { color: var(--ink); font-size: .9rem; line-height: 1.25; overflow-wrap: break-word; word-break: break-word; display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: 2.6em; }
.book-author { margin-top: 4px; color: var(--muted); font-size: .8rem; overflow-wrap: break-word; word-break: break-word; display: -webkit-box; line-clamp: 1; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.book-meta { display: grid; gap: 2px; margin-top: 8px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.book-footer { display: flex; align-items: stretch; flex-direction: column; gap: 8px; margin-top: 16px; min-width: 0; }
.book-price { color: var(--red); font-weight: 800; font-size: .8rem; min-width: 0; overflow-wrap: break-word; }

.add-btn, .custom-btn, .whatsapp-btn, .print-btn { border: 0; border-radius: 9px; color: #fff; font-weight: 700; cursor: pointer; }
.add-btn { padding: 6px 9px; background: var(--ink); font-size: .6rem; }
.add-btn:hover { background: var(--red); }
.custom-btn { background: var(--red); padding: 12px 12px; font-size: .85rem; }

/* Floating cart drawer */
.cart-fab { position: fixed; right: 24px; top: 24px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; min-height: 58px; max-width: calc(100vw - 48px); padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 14px 30px rgba(36, 35, 42, .24); font-weight: 800; cursor: pointer; }
.cart-fab:hover { background: var(--red); transform: translateY(-2px); }
.cart-icon { font-size: 1.35rem; line-height: 1; }
.cart-fab-label { font-size: .82rem; }
.cart-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-variant-numeric: tabular-nums; }
.cart-fab.is-empty .cart-badge { background: #6f6b72; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 89; background: rgba(26, 24, 29, .42); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.drawer-backdrop.is-visible { opacity: 1; pointer-events: auto; }
.quote-panel { position: fixed; z-index: 90; top: 0; right: 0; width: min(340px, 100vw); height: 100dvh; overflow-y: auto; border-radius: 20px 0 0 20px; background: var(--paper); box-shadow: -20px 0 60px rgba(36, 35, 42, .18); opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(105%); transition: transform 220ms ease, opacity 180ms ease, visibility 220ms; }
.quote-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
.quote-header { padding: 18px 18px 14px; background: var(--ink); color: #fff; }
.quote-header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.drawer-close { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.drawer-close:hover { background: rgba(255,255,255,.22); }
.quote-header .eyebrow { color: #e99ba2; }
.quote-header h2 { margin-top: 6px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; }
.quote-body { padding: 16px 18px 18px; }
.field-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.quote-fields { display: grid; gap: 11px; margin-bottom: 20px; }
.quote-fields input, .modal-body input, .modal-body select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; }

.cart-items { border-top: 1px solid var(--line); }
.empty-state { padding: 22px 0; color: var(--muted); font-size: .9rem; text-align: center; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.cart-item-title { font-weight: 700; font-size: .88rem; margin-bottom: 4px; }
.size-select { padding: 4px 6px; font-size: .75rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; margin-top: 4px; }
.qty-input { width: 48px; padding: 5px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.remove-btn { border: 0; background: transparent; color: var(--muted); font-size: 1.15rem; cursor: pointer; }
.link-btn { border: 0; background: transparent; color: var(--red); font-size: .72rem; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }
.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.custom-price-tag { background: #f5f0eb; color: var(--ink); border-radius: 6px; padding: 2px 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.production-mode { display: inline-flex; gap: 3px; margin-top: 6px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: #f5f0eb; }
.production-mode-button { border: 0; border-radius: 5px; padding: 4px 7px; background: transparent; color: var(--muted); font-size: .68rem; font-weight: 800; cursor: pointer; }
.production-mode-button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(36,35,42,.1); }

.discount-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.discount-row input { padding: 8px; border: 1px solid var(--line); border-radius: 6px; text-align: right; }
.minimum-order-note { margin-top: 10px; padding: 9px 11px; border-radius: 9px; background: #fdf3e4; color: #8a5a12; font-size: .76rem; font-weight: 600; }

.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 14px; }
.cart-total { color: var(--red); font-size: 1.45rem; font-weight: 800; }
.whatsapp-btn, .print-btn { width: 100%; padding: 13px; }
.whatsapp-btn { background: var(--green); }
.print-btn { margin-top: 9px; background: #eee8e2; color: var(--ink); }
.cart-share-actions { display: flex; gap: 8px; margin: 0 24px 14px; }
.cart-share-button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 6px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: .68rem; font-weight: 700; cursor: pointer; }
.cart-share-button span:first-child { font-size: 1.05rem; }
.cart-share-button:hover { border-color: var(--red); color: var(--red); }
.drawer-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9px; margin: 0 24px 20px; }
.continue-btn, .checkout-btn { padding: 11px 12px; border: 0; border-radius: 9px; font-size: .8rem; font-weight: 800; cursor: pointer; }
.continue-btn { background: #eee8e2; color: var(--ink); }
.checkout-btn { background: var(--red); color: #fff; }
.checkout-btn:hover, .custom-btn:hover { background: #8e202d; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; align-items: center; justify-content: center; }
.modal-card { background: #fff; width: 90%; max-width: 480px; padding: 24px; border-radius: 16px; box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.modal-body { display: grid; gap: 12px; }
.custom-quote-result { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.custom-quote-result[hidden] { display: none; }
.custom-quote-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px; border-radius: 9px; background: #f7f3ef; }
.custom-quote-price span { color: var(--muted); font-size: .78rem; }
.custom-quote-price strong { color: var(--red); font-size: 1.1rem; }
.custom-choice { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-size: .82rem; line-height: 1.4; cursor: pointer; }
.custom-choice input { width: auto; margin-top: 3px; accent-color: var(--red); }
.custom-quote-status { min-height: 1.2em; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.password-visibility-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; cursor: pointer; }
.password-visibility-toggle input { width: auto; }
.login-submit-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; }
.login-submit-button:disabled { opacity: .7; cursor: wait; }
.login-spinner { display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; }
.login-submit-button.is-loading .login-spinner { display: inline-block; animation: spin 800ms linear infinite; }
.checkout-overlay { z-index: 120; padding: 18px; }
.checkout-modal-card { width: min(560px, 100%); max-height: min(760px, calc(100vh - 36px)); overflow-y: auto; padding: 22px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.checkout-modal-card h3 { margin-top: 5px; font-size: 1.35rem; }
.modal-close-button { border: 0; background: rgba(36,35,42,.09); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.checkout-reference-row, .checkout-total-row, .paybill-details { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 9px; background: #f7f3ef; }
.checkout-reference-row { color: var(--muted); font-size: .78rem; }
.checkout-reference-row strong { color: var(--ink); font-size: .86rem; }
.checkout-summary { margin-top: 14px; border-top: 1px solid var(--line); }
.checkout-summary-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .82rem; }
.checkout-summary-item small { display: block; margin-top: 3px; color: var(--muted); }
.checkout-total-row { margin-top: 14px; background: var(--ink); color: #fff; font-weight: 800; }
.checkout-total-row strong { color: #fff; font-size: 1.15rem; }
.invoice-charges { display: grid; gap: 10px; margin-top: 14px; }
.invoice-charges input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; }
.payment-methods { display: grid; gap: 8px; margin: 16px 0 12px; padding: 0; border: 0; }
.payment-methods legend { margin-bottom: 5px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.payment-option { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.payment-option:has(input:checked) { border-color: var(--red); background: #fff8f6; }
.payment-option input { margin-top: 3px; accent-color: var(--red); }
.payment-option span { display: grid; gap: 3px; }
.payment-option small, .payment-hint { color: var(--muted); font-size: .75rem; }
.payment-fields { display: grid; gap: 10px; }
.payment-fields input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; }
.payment-amount-field { display: grid; gap: 5px; margin: 12px 0; }
.payment-amount-field input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; }
.payment-hint { margin: 0; line-height: 1.45; }
.paybill-details { color: var(--muted); font-size: .78rem; }
.paybill-details strong { color: var(--ink); font-size: 1rem; }
.checkout-status { min-height: 1.2em; margin: 12px 0 0; color: var(--muted); font-size: .78rem; }
.checkout-status.is-error { color: var(--red); }
.checkout-status.is-success { color: var(--green); }
.checkout-modal-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9px; margin-top: 14px; }
.checkout-modal-actions button { width: 100%; }
.checkout-document-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.document-preview-card { width: min(760px, 100%); max-height: min(860px, calc(100vh - 36px)); overflow-y: auto; padding: 22px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.document-preview-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.document-preview-toolbar .whatsapp-btn { width: auto; padding: 9px 12px; font-size: .78rem; }
.document-render-surface { position: relative; min-height: 420px; padding: 30px; border: 1px solid var(--line); background: #fff; color: var(--ink); overflow: hidden; }
.document-render-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 3px solid var(--red); }
.document-render-brand { display: flex; align-items: center; color: var(--red); font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: .08em; }
.document-brand-logo { width: 130px; height: auto; display: block; }
.document-brand-fallback { display: none; color: var(--red); }
.document-brand-fallback span { display: block; color: var(--ink); font-size: .65rem; letter-spacing: .2em; }
.document-render-heading { text-align: right; }
.document-render-heading h1 { font-size: 1.8rem; }
.document-render-heading p { margin-top: 5px; color: var(--muted); font-size: .75rem; }
.document-render-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.document-render-meta div { padding: 11px 12px; background: #f7f3ef; border-radius: 7px; font-size: .78rem; }
.document-render-meta strong { display: block; margin-top: 4px; }
.document-render-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.document-render-table th { padding: 8px; background: var(--ink); color: #fff; text-align: left; }
.document-render-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.document-render-table th:last-child, .document-render-table td:last-child { text-align: right; }
.document-render-total { display: flex; justify-content: flex-end; gap: 20px; margin-top: 18px; font-size: 1rem; font-weight: 800; }
.document-payment-summary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.document-payment-summary span { display: flex; gap: 6px; }
.document-payment-summary strong { color: var(--ink); }
.document-payment-note { position: relative; z-index: 1; margin-top: 16px; padding: 12px 14px; border-radius: 9px; background: #fdf3e4; color: #8a5a12; font-size: .82rem; line-height: 1.5; text-align: center; }
.document-payment-note.is-success { background: #e9f7ef; color: #1b6d3f; }
.document-watermark-logo { position: absolute; top: 50%; left: 50%; z-index: 0; width: 60%; max-width: 340px; opacity: .07; transform: translate(-50%, -50%); pointer-events: none; }
.document-status-stamp { position: relative; z-index: 1; display: block; width: fit-content; margin: 26px auto 0; padding: 10px 22px; border: 3px solid var(--green); border-radius: 10px; color: var(--green); font-size: 1.3rem; font-weight: 800; letter-spacing: .15em; text-align: center; transform: rotate(-6deg); white-space: nowrap; }
.document-status-stamp.pending { border-color: var(--red); color: var(--red); }
.document-render-header, .document-render-meta, .document-render-table, .document-render-total { position: relative; z-index: 1; }
.book-detail-modal { display: none; position: fixed; inset: 0; z-index: 110; align-items: center; justify-content: center; padding: 18px; background: rgba(26,24,29,.5); }
.book-detail-card { width: min(440px, 100%); max-height: min(640px, calc(100vh - 36px)); overflow: auto; padding: 20px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.book-detail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.book-detail-top .drawer-close { background: rgba(36,35,42,.09); color: var(--ink); }
.book-detail-top .drawer-close:hover { background: rgba(36,35,42,.18); }
.book-detail-content { display: grid; grid-template-columns: 130px 1fr; gap: 16px; margin-top: 18px; }
.book-detail-cover { width: 130px; height: 175px; object-fit: contain; border-radius: 10px; background: #f5f0eb; }
.book-detail-cover.cover-placeholder { height: 175px; }
.detail-list { display: grid; gap: 12px; align-content: start; }
.detail-row { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.detail-row strong { display: block; margin-top: 3px; }
:focus-visible { outline: 3px solid rgba(181, 45, 59, .35); outline-offset: 2px; }
.catalog-count { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.loading { grid-column: 1 / -1; padding: 48px 18px; color: var(--muted); text-align: center; }
.catalog-progress { max-width: 340px; margin: 0 auto; }
.progress-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; color: var(--ink); font-size: .88rem; font-weight: 700; }
.progress-percent { color: var(--red); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #eee7e0; }
.progress-fill { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #dc6b67); transition: width 260ms ease; }
.progress-status { margin-top: 9px; font-size: .76rem; }
.print-quote { display: none; }
.print-quote.export-surface { width: 184.6mm; min-height: 246.2mm; padding: 0; background: #fff; }
.print-quote-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding-bottom: 28px; border-bottom: 3px solid var(--red); }
.print-quote-logo { width: 220px; height: auto; }
.print-logo-fallback { display: none; color: var(--red); font-family: "Manrope", sans-serif; font-size: 1.55rem; font-weight: 800; line-height: .92; letter-spacing: .08em; text-align: right; }
.print-logo-fallback span { color: var(--ink); font-size: .62rem; letter-spacing: .2em; }
.print-quote-heading { text-align: right; }
.print-quote-heading h1 { color: var(--ink); font-size: 2.2rem; letter-spacing: -.05em; }
.print-quote-heading p { margin-top: 6px; color: var(--muted); font-size: .78rem; }
.print-quote-heading p + p { margin-top: 2px; }
.print-quote-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 24px 0; }
.print-meta-block { padding: 14px 16px; background: #f7f3ef; border-radius: 8px; }
.print-meta-label { color: var(--red); font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.print-meta-value { margin-top: 7px; font-size: .95rem; font-weight: 700; }
.print-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.print-table th { padding: 11px 10px; background: var(--ink); color: #fff; font-size: .66rem; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.print-table th:last-child, .print-table td:last-child { text-align: right; }
.print-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.print-table th:first-child, .print-table td:first-child { width: 42px; text-align: center; }
.print-table .print-item-title { font-weight: 700; }
.print-table .print-item-detail { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.print-totals { width: 270px; margin: 24px 0 0 auto; }
.print-total-line { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); font-size: .82rem; }
.print-total-line.final { margin-top: 7px; padding: 13px 0; border-top: 2px solid var(--ink); color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.print-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 68px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
@media (max-width: 980px) {
  .app-shell { padding-left: 18px; padding-right: 18px; }
  .topbar { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 820px) {
  .topbar { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .intro { max-width: 600px; }
  .quote-panel { left: 0; right: 0; width: 100vw; max-width: 100vw; border-radius: 0; }
  .offset-input-grid { grid-template-columns: 1fr; }
  .documents-panel, .documents-toolbar > * { min-width: 0; }
  .job-quote-line { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); align-items: end; }
  .job-quote-description { grid-column: 1 / -1; }
  .job-quote-production { align-self: center; }
  .documents-refresh-group { width: 100%; justify-content: space-between; }
  .expense-entry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expense-entry-form .expense-description-field { grid-column: 1 / -1; }
  .accounting-summary { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
  .accounting-summary strong { overflow-wrap: anywhere; }
  .documents-table-wrap { overflow-x: visible; }
  .documents-table, .documents-table tbody { display: block; width: 100%; white-space: normal; }
  .documents-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .documents-table tbody > tr { display: block; padding: 10px 13px; }
  .documents-table tbody > tr + tr { border-top: 2px solid var(--line); }
  .documents-table td[data-label] { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: start; gap: 12px; padding: 8px 0; overflow-wrap: anywhere; }
  .documents-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 700; }
  .documents-table td[data-label]:first-child { border-top: 0; }
  .documents-table .documents-empty { display: block; padding: 16px 0; border-top: 0; }
  .documents-table .document-type-tag, .documents-table .document-status-tag { justify-self: start; max-width: 100%; }
  .documents-row-actions { min-width: 0; }
  .documents-row-actions button { min-height: 40px; max-width: 100%; white-space: normal; }
}
@media (max-width: 520px) {
  .app-shell { padding-left: 12px; padding-right: 12px; padding-bottom: 32px; }
  .topbar { padding: 8px 12px; gap: 6px; max-height: 20vh; }
  .brand { align-items: center; flex-direction: row; gap: 8px; }
  .brand img { width: 32px; }
  .brand .eyebrow { font-size: .62rem; }
  .brand-copy { border-left: 0; border-top: 1px solid var(--line); padding: 8px 0 0; }
  .intro p { display: none; }
  #staffLoginButton, #staffLogoutButton { padding: 5px 8px; font-size: .66rem; }
  h1 { font-size: 2.5rem; }
  .catalog-panel { padding: 13px; border-radius: 16px; }
  .offset-panel { padding: 13px; border-radius: 16px; }
  .documents-panel { padding: 13px; border-radius: 16px; }
  .job-quote-client-fields { grid-template-columns: 1fr; }
  .job-quote-discount { grid-template-columns: 1fr; }
  .job-quote-line { grid-template-columns: minmax(0, 1fr) 36px; }
  .job-quote-description { grid-column: 1 / -1; }
  .job-quote-line label:not(.job-quote-description) { grid-column: 1 / 2; }
  .job-quote-production { grid-column: 1 / 2; }
  .job-quote-remove { grid-column: 2 / 3; grid-row: 2 / span 4; align-self: center; }
  .documents-toolbar { flex-direction: column; align-items: stretch; }
  .documents-refresh-group { flex-wrap: wrap; justify-content: flex-start; }
  .finance-month-field { flex: 1 1 100%; }
  .finance-custom-range { width: 100%; }
  .finance-custom-range .finance-month-field { flex: 1 1 135px; }
  .expense-entry-form { grid-template-columns: 1fr; }
  .expense-entry-form .expense-description-field { grid-column: auto; }
  .documents-filter { overflow-x: auto; }
  .offset-heading { flex-direction: column; gap: 12px; }
  .offset-heading .refresh-btn { width: 100%; justify-content: center; }
  .calculator-tabs { overflow-x: auto; }
  .calculator-tab { flex: 1 0 auto; white-space: nowrap; }
  .app-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .app-tab { flex: 1 0 auto; white-space: nowrap; }
  .simple-quote-result { grid-template-columns: 1fr; }
  .simple-quote-result small { grid-column: auto; }
  .offset-fields { grid-template-columns: 1fr; }
  .offset-actions { align-items: stretch; flex-direction: column; }
  .offset-actions .custom-btn { width: 100%; }
  .offset-history-controls { align-items: stretch; }
  .offset-history-select { flex: 1; min-width: 0; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 10px; margin-bottom: 15px; }
  .catalog-toolbar > * { max-width: 100%; }
  .search-wrap { min-width: 0; width: 100%; }
  .custom-btn { width: 100%; }
  .catalog-actions { width: 100%; }
  .catalog-actions > .refresh-btn, .catalog-actions > .view-toggle { min-width: 0; }
  .catalog-count { width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; }
  .view-toggle button { flex: 1; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .book-card { min-height: 110px; padding: 6px; }
  .list-view .book-card { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 11px 12px; }
  .list-view .book-footer { justify-content: space-between; }
  .cover-thumb, .cover-placeholder { height: auto; }
  .book-author { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .book-footer { align-items: center; justify-content: space-between; flex-direction: row; margin-top: 13px; }
  .book-price { font-size: .9rem; }
  .add-btn { width: auto; }
  .quote-panel { border-radius: 16px 0 0 16px; }
  .quote-header, .quote-body { padding-left: 17px; padding-right: 17px; }
  .drawer-actions { margin-left: 17px; margin-right: 17px; }
  .cart-fab { right: 12px; top: calc(12px + env(safe-area-inset-top)); max-width: calc(100vw - 24px); min-height: 50px; padding: 0 14px; gap: 8px; }
  .cart-fab-label { display: inline; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
  .cart-badge { position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; }
  .book-detail-content { grid-template-columns: 1fr; }
  .book-detail-cover, .book-detail-cover.cover-placeholder { width: 120px; height: 160px; }
  .modal-card { max-height: calc(100vh - 24px); overflow-y: auto; padding: 18px; }
  .checkout-modal-card { max-height: calc(100vh - 24px); padding: 18px; }
  .checkout-modal-actions { grid-template-columns: 1fr; }
  .document-preview-card { max-height: calc(100vh - 24px); padding: 14px; }
  .document-render-surface { padding: 18px; }
  .document-render-meta { grid-template-columns: 1fr; }
  .document-render-header { flex-wrap: wrap; gap: 12px; }
  .document-render-heading { min-width: 0; overflow-wrap: anywhere; }
  .document-render-table { table-layout: fixed; width: 100%; }
  .document-render-table th, .document-render-table td { padding: 8px 3px; font-size: .7rem; overflow-wrap: anywhere; }
  .document-render-table th:first-child { width: 40%; }
  .document-render-table th:nth-child(2) { width: 12%; }
  .document-status-stamp { max-width: 100%; font-size: 1rem; white-space: normal; overflow-wrap: anywhere; }
}
@media print {
  @page { size: A4; margin: 25.4mm; }
  body { background: #fff; }
  body > *:not(.print-quote) { display: none !important; }
  .print-quote { display: block; color: var(--ink); }
}
