/* The Edge Home and Garden: quotes and invoices. Mobile first; the colours
   are the website's (theedgehomeandgarden.co.uk). */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #f6f4e7;
  --paper: #fffdf6;
  --tint: #eeeadb;
  --ink: #1b3326;
  --ink-hover: #284a38;
  --text: #2a3a2f;
  --muted: #56645a;
  --leaf: #4e7032;
  --leaf-soft: #e3ead6;
  --bark: #8a5b2e;
  --bark-soft: #f3e6d6;
  --line: #d9d2bd;
  --danger: #a33a2a;
  --danger-soft: #f6e1dc;
  --radius: 14px;
  --tabbar: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; }
a { color: var(--leaf); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5rem; }
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 0.75rem; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }

/* ------------------------------------------------------------ app frame */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: rgba(255, 253, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar img { height: 40px; width: auto; display: block; }
.topbar-title { font-weight: 700; color: var(--ink); font-size: 0.95rem; line-height: 1.2; }
.topbar-title span { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px calc(var(--tabbar) + 32px + env(safe-area-inset-bottom));
}
.page-head { margin-bottom: 16px; }
.page-head p { color: var(--muted); margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: 0.75rem; font-weight: 600;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar .tab-new span.tab-plus {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; margin-top: -6px;
}

/* ------------------------------------------------------------ building blocks */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px;
  border-radius: 12px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-hover); }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--tint); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--tint); }
.btn-danger { background: transparent; color: var(--danger); border-color: #e3b9b0; }
.btn-whatsapp { background: #1f7a4a; color: #fff; }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 6px 14px; font-size: 0.9rem; border-radius: 10px; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn.is-busy::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-stack { display: grid; gap: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 140px; }
.link-btn { background: none; border: 0; padding: 8px 0; min-height: 44px; font: inherit; color: var(--leaf); font-weight: 600; cursor: pointer; text-decoration: underline; }

.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); margin: -2px 0 6px; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"],
input[type="search"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 12px; cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--leaf); }
.grid-2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  background: var(--tint); color: var(--muted);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-quote_sent { background: var(--bark-soft); color: #7a4f24; }
.pill-accepted { background: var(--leaf-soft); color: #3d5a26; }
.pill-invoiced { background: #e2e9ef; color: #2f4a5e; }
.pill-paid { background: var(--leaf); color: #fff; }
.pill-paid::before { background: #fff; }
.pill-declined { background: var(--tint); color: var(--muted); text-decoration: line-through; }
.pill-overdue { background: var(--danger-soft); color: var(--danger); }

.notice { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid; }
.notice-warn { background: var(--bark-soft); border-color: #e2c8a6; color: #5e3d1c; }
.notice-ok { background: var(--leaf-soft); border-color: #c5d3b0; color: #2f4a1d; }
.notice-danger { background: var(--danger-soft); border-color: #e3b9b0; color: #6f2418; }
.notice a { color: inherit; font-weight: 700; }
.notice p:last-child { margin: 0; }

.toast {
  position: fixed; left: 16px; right: 16px; z-index: 50;
  bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom));
  max-width: 520px; margin: 0 auto;
  padding: 14px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 600;
  box-shadow: 0 10px 30px rgba(27, 51, 38, 0.25);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: none; }
.toast-error { background: var(--danger); }
.public .toast { bottom: 24px; }

.empty { text-align: center; color: var(--muted); padding: 32px 16px; }
.loading { text-align: center; color: var(--muted); padding: 48px 0; }

/* ------------------------------------------------------------ sign in */

.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-box { width: 100%; max-width: 380px; text-align: center; }
.login-box img { width: 220px; height: auto; margin: 0 auto 12px; display: block; }
.login-box form { text-align: left; margin-top: 20px; }

/* ------------------------------------------------------------ dashboard */

.hero-stat { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero-stat .label, .hero-stat .sub { color: #c9d6c5; }
.hero-stat .label { font-size: 0.9rem; font-weight: 600; margin: 0; }
.hero-stat .value { font-size: 2.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 4px 0; }
.hero-stat .sub { font-size: 0.9rem; margin: 0; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
a.stat:hover { border-color: var(--leaf); }
.stat .label { font-size: 0.82rem; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
.stat .value { font-size: 1.35rem; font-weight: 800; color: var(--ink); line-height: 1.15; margin: 0; }
.stat .sub { font-size: 0.8rem; color: var(--muted); margin: 4px 0 0; }
.stat .sub.alert { color: var(--danger); font-weight: 700; }

.chart-wrap { position: relative; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: #e7e2d1; stroke-width: 1; }
.chart .axis { stroke: #cfc8b2; stroke-width: 1; }
.chart text { font: 11px "Schibsted Grotesk", system-ui, sans-serif; fill: var(--muted); }
.chart text.now { fill: var(--ink); font-weight: 800; }
.chart .bar { fill: var(--leaf); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .col.active .bar, .chart .col:hover .bar { fill: var(--ink); }
.chart .col { outline: none; }
.chart .col:focus-visible .hit { stroke: var(--leaf); stroke-width: 2; }
.chart-tip {
  position: absolute; top: 0; z-index: 2; pointer-events: none;
  background: var(--ink); color: #fff; border-radius: 8px; padding: 6px 10px;
  font-size: 0.85rem; white-space: nowrap; transform: translate(-50%, -100%);
}
.chart-tip strong { display: block; font-size: 1rem; }
.chart-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-top: 8px; }
.chart-table th, .chart-table td { padding: 6px 4px; border-bottom: 1px solid var(--tint); text-align: left; }
.chart-table td:last-child, .chart-table th:last-child { text-align: right; }
.year-select { width: auto; min-height: 40px; padding: 6px 30px 6px 10px; }

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pipeline a {
  position: relative; text-decoration: none; color: var(--ink);
  background: var(--tint); border-radius: 10px; padding: 10px 6px; text-align: center;
}
.pipeline a:hover { background: var(--leaf-soft); }
.pipeline .n { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.pipeline .t { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); line-height: 1.2; margin-top: 2px; }

/* ------------------------------------------------------------ job lists */

.search { margin-bottom: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -16px 6px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.job-item a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
}
.job-item a:hover { border-color: var(--leaf); }
.job-item .who { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-item .amount { font-weight: 800; color: var(--ink); text-align: right; }
.job-item .what { font-size: 0.88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-item .meta { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------ job page */

.job-title { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 4px; }
.job-title h1 { margin: 0; }
.job-sub { color: var(--muted); margin-bottom: 16px; }

.tracker { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 16px; padding: 0; counter-reset: step; }
.tracker li { position: relative; text-align: center; font-size: 0.75rem; color: var(--muted); padding-top: 34px; line-height: 1.25; }
.tracker li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: 0.8rem;
}
.tracker li::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.tracker li:first-child::after { display: none; }
.tracker li.done::before { content: "✓"; background: var(--leaf); border-color: var(--leaf); color: #fff; }
.tracker li.done::after, .tracker li.current::after { background: var(--leaf); }
.tracker li.current::before { border-color: var(--ink); color: var(--ink); background: #fff; }
.tracker li.current { color: var(--ink); font-weight: 700; }
.tracker .when { display: block; font-weight: 400; color: var(--muted); }

.action-card { border: 2px solid var(--ink); }
.action-card .lead { font-size: 1.05rem; }

.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-grid .btn { min-height: 52px; }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button { flex: 1; }

.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.details dt { color: var(--muted); font-size: 0.9rem; }
.details dd { margin: 0; word-break: break-word; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--tint); }
.timeline li:last-child::after { display: none; }
.timeline .when { display: block; font-size: 0.8rem; color: var(--muted); }

.record { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0; font-size: 0.92rem; }
.record dt { color: var(--muted); font-size: 0.82rem; margin-top: 8px; }
.record dd { margin: 0; }
.record-hash { font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; word-break: break-all; }
@media (min-width: 560px) {
  .record { grid-template-columns: 170px 1fr; gap: 8px 14px; }
  .record dt { margin: 0; }
}

/* ------------------------------------------------------------ forms: steps and items */

.steps { display: flex; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.steps li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps li.on { background: var(--leaf); }
.step-label { font-size: 0.85rem; font-weight: 700; color: var(--leaf); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.04em; }

.item-card { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.item-card textarea { min-height: 52px; }
.item-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: end; margin-top: 10px; }
.item-row label { font-size: 0.8rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.item-row .line-total { min-height: 48px; display: flex; align-items: center; justify-content: flex-end; font-weight: 800; color: var(--ink); min-width: 80px; }
.money { position: relative; }
.money::before { content: "£"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money input { padding-left: 28px; }
.item-top { display: flex; gap: 8px; align-items: flex-start; }
.item-top textarea { flex: 1; }
.remove { flex: none; width: 44px; height: 48px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.remove:hover { color: var(--danger); border-color: #e3b9b0; }
.remove svg { width: 18px; height: 18px; }
.suggest { margin: 4px 0 14px; }
.suggest .chips { margin-bottom: 0; }

.total-bar {
  position: sticky; bottom: calc(var(--tabbar) + 8px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; margin: 16px 0;
  box-shadow: 0 8px 24px rgba(27, 51, 38, 0.2);
}
.total-bar strong { font-size: 1.4rem; }

.form-actions { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .form-actions.two { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ the document */

.doc-frame { background: var(--tint); border-radius: var(--radius); padding: 10px; margin-bottom: 12px; }
.doc {
  background: #fff; color: #2c3a30; border-radius: 6px;
  padding: 22px 18px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.45;
}
.doc p { margin: 0; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #e2ddcc; }
.doc-logo { width: 120px; height: auto; display: block; }
.doc-kind { text-align: right; }
.doc-label { display: block; color: var(--leaf); font-size: 15px; letter-spacing: 0.02em; }
.doc-ref { display: block; color: #6b746c; font-size: 12px; margin-top: 6px; word-break: break-all; }
.doc-parties { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 20px 0; }
.doc-parties h4 { font-weight: 400; color: #6b746c; font-size: 12px; margin: 0 0 6px; }
.doc-parties p { color: #2c3a30; margin-bottom: 3px; }
.doc-name { text-transform: uppercase; color: var(--ink) !important; font-size: 14px; margin-bottom: 6px !important; }
.doc-link { color: var(--leaf) !important; }
.doc-dates { margin-top: 12px; }
.doc-dates p { color: var(--ink); }
.doc-title { font-size: 14px; color: var(--ink); margin: 0 0 10px !important; }
.doc-items { width: 100%; border-collapse: separate; border-spacing: 0; }
.doc-items th { background: #f4f2e8; color: #6b746c; font-weight: 400; font-size: 12px; text-align: left; padding: 9px 12px; }
.doc-items th:first-child { border-radius: 7px 0 0 7px; }
.doc-items th:last-child { border-radius: 0 7px 7px 0; }
.doc-items td { padding: 12px; vertical-align: top; color: var(--ink); font-size: 14px; border-bottom: 1px solid #f4f2e8; }
.doc-items tr:last-child td { border-bottom: 0; }
.doc-amount { text-align: right !important; white-space: nowrap; }
.doc-qty { display: block; color: #6b746c; font-size: 12px; margin-top: 3px; }
.doc-empty { color: #6b746c !important; text-align: center; }
.doc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid #e2ddcc; padding: 18px 0; margin-top: 6px; }
.doc-total span { color: var(--ink); font-size: 15px; }
.doc-total strong { color: var(--leaf); font-size: 30px; font-weight: 400; }
.doc-notes { margin-bottom: 16px; }
.doc-notes h4 { font-weight: 400; color: #6b746c; font-size: 12px; margin: 0 0 4px; }
.doc-box { background: #faf9f3; border: 1px solid #e2ddcc; border-radius: 9px; padding: 14px 16px; margin-bottom: 14px; }
.doc-box h3 { font-weight: 400; font-size: 15px; color: var(--ink); margin: 0 0 10px; }
.doc-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.doc-box dt { color: #6b746c; font-size: 12px; padding-top: 1px; }
.doc-box dd { margin: 0; color: var(--ink); word-break: break-word; }
.doc-box em { color: var(--danger); font-style: normal; }
.doc-signature { display: block; width: 200px; max-width: 100%; height: auto; margin-top: 10px; border: 1px solid #e2ddcc; border-radius: 6px; background: #fff; }
.doc-paid { color: var(--leaf); font-size: 15px; margin-bottom: 12px !important; }
.doc-thanks { margin-bottom: 18px !important; }
.doc-foot { border-top: 1px solid #e2ddcc; padding-top: 10px; color: #6b746c; font-size: 11px; }
@media (min-width: 560px) {
  .doc { padding: 36px 34px; }
  .doc-logo { width: 150px; }
  .doc-parties { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.terms h3 { font-size: 0.98rem; margin: 18px 0 6px; }
.terms h3:first-child { margin-top: 0; }
.terms p { font-size: 0.9rem; margin-bottom: 8px; }
.terms-box { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }

/* ------------------------------------------------------------ signing */

.public main { padding-bottom: 40px; }
.public .topbar { justify-content: center; }
.sigpad-canvas {
  display: block; width: 100%; aspect-ratio: 5 / 2; max-height: 260px;
  background: #fff; border: 2px dashed var(--leaf); border-radius: 12px;
  touch-action: none; cursor: crosshair;
}
.sigpad-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.owner-banner { background: var(--bark-soft); border: 1px solid #e2c8a6; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; color: #5e3d1c; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; }
.done-mark svg { width: 34px; height: 34px; }

@media print {
  .topbar, .tabbar, .no-print { display: none !important; }
  body, main { background: #fff; padding: 0; }
  .doc-frame { padding: 0; background: none; }
  .doc { box-shadow: none; }
}
