:root {
  --ink: #16181b;
  --ink-2: #3a3f45;
  --muted: #6b7178;
  --line: #e2ded4;
  --line-2: #cfc9bb;
  --bg: #f6f3ec;
  --surface: #ffffff;
  --paper: #fffdf8;
  --yellow: #ffc20e;
  --yellow-2: #f2b300;
  --yellow-soft: #fff4cc;
  --steel: #2b3036;
  --ok: #1f7a4d;
  --ok-soft: #e3f3ea;
  --warn: #9a5b00;
  --danger: #b42318;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 24, 27, 0.06), 0 8px 24px rgba(22, 24, 27, 0.06);
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--body);
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo b { color: var(--yellow); font-weight: 800; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: #d9dce0; font-size: 0.95rem; }
.nav a:hover { color: #fff; }
.nav .btn { color: var(--ink); }
.nav-menu { position: relative; }
.nav-menu > button { background: none; border: 0; color: #d9dce0; font: inherit; font-size: 0.95rem; cursor: pointer; padding: 0; }
.nav-menu-list { display: none; position: absolute; top: 34px; left: -12px; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; min-width: 210px; }
.nav-menu-list a { display: block; color: var(--ink); padding: 8px 10px; border-radius: 6px; }
.nav-menu-list a:hover { background: var(--bg); color: var(--ink); }
.nav-menu:hover .nav-menu-list, .nav-menu:focus-within .nav-menu-list { display: block; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid #50565d; color: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px; border: 1px solid transparent;
  font: 600 0.95rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  background: var(--surface); color: var(--ink); border-color: var(--line-2);
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); border-color: var(--yellow-2); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-2); border-color: var(--yellow-2); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--steel); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(0,0,0,0.05); border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn-sm { padding: 6px 10px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.pro-badge { display: inline-block; font: 700 0.65rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 3px 6px; border-radius: 4px; vertical-align: middle; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.08;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { font-size: 1.15rem; color: #c9cdd2; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-cta .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: #50565d; }
.hero-note { margin-top: 14px; color: #9aa0a6; font-size: 0.9rem; }
.hero-paper { transform: rotate(1.5deg); box-shadow: 0 24px 60px rgba(0,0,0,0.45); border-radius: 6px; max-height: 470px; overflow: hidden; pointer-events: none; }
.hero-paper .paper { font-size: 11.5px; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { font: 700 0.78rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--warn); margin-bottom: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.step-num { font: 800 0.85rem/1 var(--mono); color: var(--ink); background: var(--yellow); width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 6px; margin-bottom: 12px; }
.trade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.trade-link { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.trade-link:hover { border-color: var(--ink); }
.trade-link strong { display: block; font-family: var(--head); }
.trade-link span { font-size: 0.85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 0.9rem; }
.chip:hover, .chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Page header (template pages) */
.page-head { padding: 36px 0 20px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.page-head p { color: var(--ink-2); max-width: 46em; font-size: 1.05rem; }

/* Prose */
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--head); }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.sample-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.sample-table th, .sample-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.sample-table th { background: var(--bg); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.sample-table td.num, .sample-table th.num { text-align: right; font-family: var(--mono); }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 48px; }
.editor-toolbar {
  position: sticky; top: 60px; z-index: 20; background: var(--bg);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.editor-toolbar .spacer { flex: 1; }
.type-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); }
.type-switch button { border: 0; background: transparent; padding: 8px 12px; font: 600 0.88rem var(--body); cursor: pointer; color: var(--ink-2); }
.type-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.save-state { font-size: 0.85rem; color: var(--muted); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.form-card > h3 { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-width: 0; }
.field label, .label { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
input, textarea, select {
  font: inherit; font-size: 0.95rem; color: var(--ink); width: 100%;
  padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; min-width: 0;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--yellow-2); outline-offset: 1px; border-color: var(--ink-2); }
input[type="checkbox"] { width: auto; }
.input-group { display: flex; }
.input-group select { width: auto; border-radius: 7px 0 0 7px; border-right: 0; background: var(--bg); }
.input-group input { border-radius: 0 7px 7px 0; }
.logo-drop { display: flex; align-items: center; gap: 12px; }
.logo-drop img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.items-head, .item-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px 96px 92px 34px; gap: 8px; align-items: start; }
.items-head { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.item-row { padding: 8px 0; border-top: 1px dashed var(--line); }
.item-row textarea { min-height: 40px; height: 40px; }
.item-amount { font-family: var(--mono); font-size: 0.9rem; text-align: right; padding-top: 10px; }
.item-tax { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; font-size: 0.8rem; color: var(--muted); }
.icon-btn { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 8px; border-radius: 6px; font-size: 1rem; line-height: 1; }
.icon-btn:hover { background: var(--bg); color: var(--danger); }
.editor-preview { position: sticky; top: 132px; }
.preview-frame { background: #d9d4c8; border-radius: var(--radius); padding: 20px; max-height: calc(100vh - 150px); overflow: auto; }
.mobile-tabs { display: none; }

/* Paper (document preview + share page) */
.paper { background: var(--paper); color: #1d1f22; padding: 36px 38px; border-radius: 4px; font-size: 13px; line-height: 1.5; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.paper-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid var(--ink); padding-bottom: 18px; margin-bottom: 18px; }
.paper-brand { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.paper-logo { width: 64px; height: 64px; object-fit: contain; }
.paper-biz { font: 800 1.35em/1.2 var(--head); margin-bottom: 4px; overflow-wrap: anywhere; }
.paper-meta { text-align: right; flex: none; font-size: 0.95em; }
.paper-title { font: 800 1.9em/1 var(--head); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px; }
.paper-muted { color: #767b81; }
.paper-label { font-size: 0.75em; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #767b81; margin-bottom: 4px; }
.paper-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.paper-party { overflow-wrap: anywhere; }
.paper-items { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.paper-items th { background: var(--ink); color: #fff; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.06em; padding: 7px 8px; text-align: left; }
.paper-items td { padding: 8px; border-bottom: 1px solid #e6e1d6; vertical-align: top; }
.paper-items .num { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 0.95em; }
.paper-desc { overflow-wrap: anywhere; }
.paper-tag { font-size: 0.75em; color: #767b81; border: 1px solid #d6d1c6; border-radius: 3px; padding: 0 4px; }
.paper-totals { margin-left: auto; width: min(300px, 100%); margin-bottom: 18px; }
.paper-total { display: flex; justify-content: space-between; padding: 4px 0; font-family: var(--mono); font-size: 0.95em; }
.paper-total span:first-child { font-family: var(--body); }
.paper-grand { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 8px; font-weight: 800; font-size: 1.1em; }
.paper-deposit { background: var(--yellow-soft); padding: 6px 8px; border-radius: 4px; margin-top: 6px; }
.paper-block { margin-bottom: 14px; overflow-wrap: anywhere; }
.paper-sign { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 28px; font-size: 0.85em; color: #767b81; }
.paper-sign span { display: block; border-bottom: 1px solid #9aa0a6; height: 28px; margin-bottom: 4px; }
.paper-foot { margin-top: 24px; text-align: center; font-size: 0.75em; color: #9aa0a6; }

/* App shell */
.app-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.app-side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 12px; }
.app-side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.app-side a:hover { background: var(--bg); }
.app-side a.active { background: var(--ink); color: #fff; }
.app-side .side-new { margin-bottom: 14px; width: 100%; }
.app-side .plan-box { margin-top: 24px; padding: 14px; border-radius: var(--radius); background: var(--yellow-soft); font-size: 0.85rem; }
.app-main { padding: 28px clamp(16px, 3vw, 36px); min-width: 0; }
.app-main .editor-toolbar { top: 60px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-title h1 { font-size: 1.7rem; margin: 0; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th.num { text-align: right; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: #fbfaf6; }
.table tr:last-child td { border-bottom: 0; }
.table td.num { text-align: right; font-family: var(--mono); }
.table a { text-decoration: none; font-weight: 600; }
.table a:hover { text-decoration: underline; }
.status { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bg); color: var(--ink-2); text-transform: capitalize; }
.status-sent, .status-viewed { background: #e7eefc; color: #1d4ed8; }
.status-approved, .status-paid { background: var(--ok-soft); color: var(--ok); }
.status-declined { background: #fdecea; color: var(--danger); }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.notice { padding: 12px 16px; border-radius: var(--radius); background: var(--yellow-soft); border: 1px solid #f3dc8c; margin-bottom: 16px; font-size: 0.93rem; }
.notice-ok { background: var(--ok-soft); border-color: #b9e0c9; }
.notice-err { background: #fdecea; border-color: #f5c2bd; color: var(--danger); }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) auto; gap: 10px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.inline-form .field { margin: 0; }

/* Auth + pricing */
.auth { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--ink); box-shadow: var(--shadow); position: relative; }
.price-card.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 24px; background: var(--yellow); font: 700 0.75rem/1 var(--body); padding: 6px 10px; border-radius: 6px; }
.price { font: 800 2.4rem/1 var(--head); margin: 8px 0 4px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.checklist li { padding-left: 26px; position: relative; margin-bottom: 9px; font-size: 0.95rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 3px; background: var(--yellow); box-shadow: inset 0 0 0 3px var(--yellow), inset 0 0 0 10px var(--ink); }

/* Share page */
.share-bar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 0; }
.share-bar .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-main { padding: 28px 0 60px; }
.share-main .paper { max-width: 820px; margin: 0 auto; }
.approve-box { max-width: 820px; margin: 20px auto 0; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(22,24,27,0.55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; padding: 26px; width: min(460px, 100%); box-shadow: var(--shadow); }
.modal h3 { font-size: 1.3rem; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 120; font-size: 0.93rem; box-shadow: var(--shadow); }

/* Footer */
.site-foot { background: var(--ink); color: #aeb3b9; padding: 48px 0 32px; font-size: 0.92rem; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-foot a { display: block; text-decoration: none; color: #aeb3b9; margin-bottom: 6px; }
.site-foot a:hover { color: #fff; }
.site-foot .legal { border-top: 1px solid #33383e; margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-paper { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .editor { grid-template-columns: 1fr; }
  .editor-preview { position: static; display: none; }
  .editor[data-view="preview"] .editor-form { display: none; }
  .editor[data-view="preview"] .editor-preview { display: block; }
  .preview-frame { max-height: none; padding: 10px; }
  .mobile-tabs { display: inline-flex; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 12px; }
  .nav.open { display: flex; }
  .nav-menu-list { position: static; display: block; background: transparent; box-shadow: none; padding: 0 0 0 10px; }
  .nav-menu-list a { color: #d9dce0; padding: 4px 0; }
  .nav-menu > button { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .row, .row-3 { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side { display: flex; gap: 6px; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-side .side-new { width: auto; margin: 0; }
  .app-side .plan-box { display: none; }
  .app-side a { white-space: nowrap; }
  .items-head { display: none; }
  .item-row { grid-template-columns: 1fr 1fr 1fr; }
  .item-row .item-desc { grid-column: 1 / -1; }
  .item-row .item-amount { text-align: left; padding-top: 0; }
  .paper { padding: 22px 18px; font-size: 12px; }
  .paper-head { flex-direction: column; }
  .paper-meta { text-align: left; }
  .paper-parties { grid-template-columns: 1fr; }
  .table .hide-sm { display: none; }
  .site-foot .cols { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}
@media print {
  .site-head, .site-foot, .editor-toolbar, .editor-form, .share-bar, .approve-box { display: none !important; }
  .editor { display: block; }
  .editor-preview { display: block !important; position: static; }
  .preview-frame { background: none; padding: 0; max-height: none; }
  .paper { box-shadow: none; }
}
