/* Black Pepper HQ. Brand: pure black, Smoke cards, Bone headings and primary
   buttons, Ash body text, Green peppercorn for small accents and labels only
   (David, 29 Nov 2026; replaced Pepper orange). Warm red only for warnings.
   Unbounded SemiBold (capitals) for headings, nav and buttons; Inter Tight for text. */
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/intertight-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --black: #000000;
  --smoke: #141210;
  --smoke2: #1D1A17;
  --line: rgba(242, 236, 226, .09);
  --line2: rgba(242, 236, 226, .18);
  --bone: #F2ECE2;
  --ash: #A69D8F;
  --label: #8F8679;
  --pepper: #9DB45A; /* Green peppercorn: the brand accent */
  --warn: #E5603F;   /* overdue, errors, delete: never as decoration */
  --radius: 14px;
  --head: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabs-h: 66px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); color: var(--ash); font: 16px/1.5 var(--font); -webkit-text-size-adjust: 100%; font-synthesis: none; }
body { -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; text-transform: uppercase; margin: 0; color: var(--bone); }
h1 { font-size: 21px; line-height: 1.25; letter-spacing: .01em; overflow-wrap: anywhere; }
h2 { font: 400 11px var(--font); letter-spacing: .3em; color: var(--pepper); margin: 28px 0 10px; }
h2 .count { color: var(--label); margin-left: 6px; letter-spacing: .1em; }
h3 { font-size: 14px; letter-spacing: .03em; }
b, strong { font-weight: 400; color: var(--bone); }
.muted { color: var(--label); }
.small { font-size: 14px; }
.bone { color: var(--bone); }
.eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--pepper); margin: 0 0 6px; }

/* top bar + tab bar */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: rgba(0,0,0,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 12px; width: auto; display: block; }
.logo small { font: 400 10px var(--font); color: var(--pepper); letter-spacing: .3em; }
.top-right { display: flex; align-items: center; gap: 6px; }
.level-chip { font: 600 10px var(--head); letter-spacing: .06em; color: var(--bone); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 10px; text-transform: uppercase; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--ash); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--smoke); color: var(--bone); }
main { max-width: 760px; margin: 0 auto; padding: 18px 16px calc(var(--tabs-h) + env(safe-area-inset-bottom) + 92px); }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(6, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(0,0,0,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font: 600 8.5px var(--head); letter-spacing: .04em; text-transform: uppercase; color: var(--label); }
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tabs a.on { color: var(--bone); }
.tabs a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--pepper); }
.badge { position: absolute; top: 6px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--pepper); color: #000; font: 600 9px/17px var(--head); text-align: center; }
@media (min-width: 900px) {
  .tabs { top: 62px; bottom: auto; width: 210px; height: auto; grid-template-columns: 1fr; border: 0; background: none; padding: 16px 12px; }
  .tabs a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 11px; }
  .tabs a.on { background: var(--smoke); }
  .tabs a.on::before { top: 12px; bottom: 12px; left: 0; right: auto; width: 2px; height: auto; }
  .badge { position: static; margin-left: auto; }
  main { padding-bottom: 120px; padding-left: 226px; max-width: 986px; }
}

/* floating capture button */
.mic {
  position: fixed; right: 16px; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 14px); z-index: 6; width: 58px; height: 58px; border-radius: 50%;
  border: 0; background: var(--bone); color: #000; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.6); cursor: pointer;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.mic.on { background: var(--pepper); transform: scale(1.08); }
.mic.busy { opacity: .6; }
.mic-label { position: fixed; right: 86px; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 30px); z-index: 6; background: var(--smoke); color: var(--bone); border: 1px solid var(--line2); padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.logged-out .mic, .print-mode .mic { display: none; }

/* page header */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.page-head > div { min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--label); font-size: 14px; margin-bottom: 12px; }
.lede { margin: -6px 0 14px; color: var(--label); font-size: 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--bone); background: var(--bone); color: #000; cursor: pointer; white-space: nowrap;
  font: 600 11px var(--head); letter-spacing: .07em; text-transform: uppercase;
}
.btn.ghost { background: transparent; border-color: var(--line2); color: var(--bone); }
.btn.danger { background: transparent; border-color: rgba(229,96,63,.45); color: var(--warn); }
.btn.sm { min-height: 34px; padding: 0 13px; font-size: 9.5px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.link { background: none; border: 0; color: var(--ash); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 0; font-size: 14px; }
.center { display: block; margin: 18px auto 0; text-align: center; }
a.inline, .kv a, .sub a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }

/* cards + lists */
.card { background: var(--smoke); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; }
.list { display: grid; gap: 8px; }
.item { display: block; background: var(--smoke); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; }
a.item:active, a.item:hover, button.item:hover { border-color: var(--line2); }
button.item { width: 100%; text-align: left; cursor: pointer; }
.item-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.item .title { color: var(--bone); overflow-wrap: anywhere; }
.item .sub { color: var(--label); font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.item .msg { margin-top: 8px; font-size: 14px; color: var(--ash); white-space: pre-wrap; overflow-wrap: anywhere; }
.item .actions { margin-top: 12px; }
.empty { padding: 22px 16px; text-align: center; color: var(--label); border: 1px dashed var(--line); border-radius: var(--radius); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--smoke); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-width: 0; }
.stat b { display: block; font: 600 15px var(--head); color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 12px; color: var(--label); }
.next { display: block; margin-top: 6px; font-size: 13px; color: var(--ash); }

/* hero / level */
.hero { background: var(--smoke); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; }
.hero h1 { font-size: 22px; margin-bottom: 14px; }
.level-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.level-top .lv { font: 600 10px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--bone); }
.bar { height: 6px; border-radius: 3px; background: rgba(242,236,226,.08); overflow: hidden; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; background: var(--bone); border-radius: 3px; }
.bar.thin { height: 4px; margin: 6px 0 0; }
.bar.accent i { background: var(--pepper); }
.hero .stats { margin-top: 14px; }
.hero .stat { background: var(--black); }
.capture-wide { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; background: var(--smoke); border: 1px dashed var(--line2); border-radius: var(--radius); padding: 15px; color: var(--ash); cursor: pointer; text-align: left; font-size: 15px; }
.capture-wide i { width: 10px; height: 10px; border-radius: 50%; background: var(--pepper); flex: none; }

/* quests, badges, goals */
.quests { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.quests li { background: var(--smoke); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.quests .qt { display: flex; justify-content: space-between; font-size: 14px; color: var(--bone); }
.quests li.done .qt span:first-child { text-decoration: line-through; color: var(--label); }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.badges li { border: 1px solid var(--line); border-radius: 12px; padding: 10px; opacity: .45; min-width: 0; }
.badges li.on { opacity: 1; border-color: var(--line2); background: var(--smoke); }
.badges b { display: block; font: 600 9.5px var(--head); text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.badges li.on b::before { content: "● "; color: var(--pepper); }
.badges span { font-size: 12px; color: var(--label); }
.goal { background: var(--smoke); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; }
.goal-top { display: flex; justify-content: space-between; gap: 10px; color: var(--bone); }
.goal-top b { font: 600 14px var(--head); white-space: nowrap; }
.goal-top small { color: var(--label); font: 400 12px var(--font); }
.goal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; color: var(--label); }
.steppers { display: flex; gap: 6px; }
.steppers button { width: 36px; height: 32px; border-radius: 10px; border: 1px solid var(--line2); background: none; color: var(--bone); font-size: 18px; cursor: pointer; }

/* pills */
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--smoke2); color: var(--ash); white-space: nowrap; border: 1px solid transparent; }
.pill.bone { color: #000; background: var(--bone); }
.pill.line { background: none; border-color: var(--line2); color: var(--bone); }
.pill.pepper { background: rgba(157,180,90,.12); color: var(--pepper); border-color: rgba(157,180,90,.35); }
.pill.warn { background: rgba(229,96,63,.12); color: var(--warn); border-color: rgba(229,96,63,.35); }
.pill.dim { opacity: .65; }

/* segmented control + stage scroller */
.seg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 1px solid var(--line); background: var(--smoke); color: var(--ash); border-radius: 999px; padding: 8px 13px; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--bone); color: #000; border-color: var(--bone); }
.seg button .n { opacity: .6; margin-left: 5px; }
.seg.wrap { flex-wrap: wrap; }

/* to-do rows */
.todo { display: flex; gap: 12px; align-items: flex-start; }
.check { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--label); background: none; cursor: pointer; margin-top: 1px; display: grid; place-items: center; }
.check.done { background: var(--bone); border-color: var(--bone); }
.check.done::after { content: ""; width: 9px; height: 5px; border: solid #000; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px,-1px); }
.overdue { color: var(--warn); }
.due-today { color: var(--bone); }

/* timeline */
.note { border-left: 1px solid var(--line2); padding: 2px 0 16px 14px; }
.note .when { font-size: 12px; color: var(--label); }
.note .when .k { color: var(--pepper); letter-spacing: .2em; text-transform: uppercase; font-size: 10px; margin-right: 6px; }
.note .ntitle { color: var(--bone); margin-top: 2px; }
.note .body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; font-size: 15px; }

/* key/value details */
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 7px 12px; font-size: 15px; margin: 0; }
.kv dt { color: var(--label); }
.kv dd { margin: 0; overflow-wrap: anywhere; color: var(--bone); }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-size: 13px; color: var(--label); }
.field input, .field select, .field textarea, input.search {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--smoke2); color: var(--bone); font-size: 16px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, input.search:focus { outline: 2px solid rgba(242,236,226,.35); border-color: transparent; }
.grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.grid2 > *, .field input { min-width: 0; }
.field input[type=date] { -webkit-appearance: none; appearance: none; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--bone); margin-bottom: 14px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--pepper); }

/* bottom sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.7); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--smoke); border: 1px solid var(--line2); border-bottom: 0;
  border-radius: 22px 22px 0 0; padding: 20px 16px calc(env(safe-area-inset-bottom) + 18px); animation: up .2s cubic-bezier(.16,1,.3,1);
}
.sheet h3 { margin-bottom: 16px; font-size: 15px; }
.sheet .field input, .sheet .field select, .sheet .field textarea { background: var(--black); }
@media (min-width: 600px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; border-bottom: 1px solid var(--line2); } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.said { color: var(--bone); font-size: 16px; margin: 0 0 14px; }

/* quote / invoice editor */
div.line { display: grid; grid-template-columns: 1fr 64px 96px 34px; gap: 6px; align-items: start; margin-bottom: 8px; }
.line input, .line textarea { width: 100%; min-height: 44px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--smoke2); color: var(--bone); font-size: 16px; }
.line textarea { resize: vertical; min-height: 44px; }
.line .x { width: 34px; height: 44px; border: 0; background: none; color: var(--label); font-size: 22px; cursor: pointer; }
.line-head { font-size: 12px; color: var(--label); margin-bottom: 4px; }
@media (max-width: 420px) {
  div.line { grid-template-columns: 1fr 1fr 34px; }
  .line textarea { grid-column: 1 / -1; }
  .line-head { display: none; }
}
.totals { margin-left: auto; max-width: 270px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font-size: 14px; }
.totals .grand { font: 600 15px var(--head); color: var(--bone); border-top: 1px solid var(--line); padding-top: 6px; }
.square-box { margin-top: 18px; }
.square-box .steps { display: grid; gap: 8px; margin-top: 10px; }
.rate-group { margin-bottom: 14px; }
.rate-group h4 { font: 400 11px var(--font); letter-spacing: .3em; text-transform: uppercase; color: var(--pepper); margin: 0 0 6px; }
.rate { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: var(--bone); font-size: 15px; }
.rate span { color: var(--label); font-size: 13px; white-space: nowrap; }

/* brand kit */
.logos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.logo-tile { display: grid; gap: 10px; place-items: center; border-radius: 12px; padding: 22px 12px 12px; font-size: 12px; border: 1px solid var(--line); }
.logo-tile img { max-width: 100%; height: 20px; }
.logo-tile.dark { background: #000; color: var(--label); }
.logo-tile.light { background: var(--bone); color: #6F675B; }
.logo-tile.icon img { height: 56px; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.swatches button { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--smoke); border: 1px solid var(--line); border-radius: 12px; padding: 9px; cursor: pointer; text-align: left; }
.swatches i { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line2); flex: none; }
.swatches b { display: block; font-size: 14px; }
.swatches span { font-size: 12px; color: var(--label); }
.type-h { font: 600 22px var(--head); color: var(--bone); text-transform: uppercase; margin: 0; }
.type-b { font-size: 18px; color: var(--bone); margin: 6px 0; }
.copy-card { display: block; width: 100%; text-align: left; background: var(--smoke); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; margin-bottom: 8px; cursor: pointer; }
.copy-card b { display: block; font: 600 10px var(--head); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.copy-card span { font-size: 14px; color: var(--ash); white-space: pre-wrap; }
.rules { margin: 0; padding-left: 18px; }
.rules li { margin-bottom: 4px; }

/* menu list (More) */
.menu { display: grid; gap: 8px; }
.menu a { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--smoke); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; }
.menu a span:first-child { font: 600 12px var(--head); letter-spacing: .05em; text-transform: uppercase; color: var(--bone); }
.menu a .muted { font-size: 13px; text-align: right; }

/* email preview */
.email-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 12px; background: #000; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }

/* login */
.login { max-width: 360px; margin: 10vh auto 0; text-align: center; }
.login img { width: 96px; height: 96px; margin-bottom: 26px; border: 1px solid var(--line2); border-radius: 50%; }
.login h1 { margin-bottom: 8px; }
.login p { margin: 0 0 24px; }
.login .field { text-align: left; }
.error { color: var(--warn); font-size: 14px; min-height: 20px; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 84px); transform: translateX(-50%); z-index: 30;
  background: var(--bone); color: #000; padding: 11px 16px; border-radius: 999px; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.6); max-width: calc(100vw - 32px);
}
.loading { color: var(--label); padding: 30px 0; text-align: center; }
.logged-out .tabs, .logged-out .top .top-right { display: none; }
.logged-out main { padding-left: 16px; }

/* printable document (light paper, A4) */
.print-page { background: #fff; color: #1a1714; border-radius: 6px; padding: 32px 28px; font: 13px/1.55 var(--font); }
.print-page h1 { font-size: 24px; color: #000; }
.print-page .doc-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.print-page .brand img { height: 14px; display: block; margin-bottom: 10px; }
.print-page .meta { text-align: right; }
.print-page .label { color: #6F675B; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; }
.print-page table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.print-page th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; font-weight: 400; color: #6F675B; border-bottom: 1px solid #ddd; padding: 8px 0; }
.print-page td { border-bottom: 1px solid #eee; padding: 10px 0; vertical-align: top; white-space: pre-wrap; }
.print-page .r { text-align: right; padding-left: 10px; white-space: nowrap; }
.print-page .totals { max-width: 240px; color: #1a1714; }
.print-page .totals .grand { border-color: #ddd; color: #000; }
.print-page .foot { margin-top: 30px; color: #444; white-space: pre-wrap; }
.print-tools { margin-bottom: 14px; }
@media print {
  @page { size: A4; margin: 16mm; }
  html, body { background: #fff; }
  .top, .client-top, .tabs, .print-tools, #toast, .mic, .mic-label, .card:has(> .eyebrow), .mock-banner { display: none !important; }
  main { padding: 0 !important; max-width: none; }
  .print-page { padding: 0; border-radius: 0; }
}

/* ---------- client pages (onboarding, portal) ---------- */
.client-top { display: flex; justify-content: center; padding: calc(env(safe-area-inset-top) + 22px) 16px 8px; }
.client-top img { height: 13px; }
.client main, main.client-main { padding-bottom: 60px; max-width: 620px; }
.progress { height: 3px; background: rgba(242,236,226,.08); border-radius: 2px; overflow: hidden; margin: 6px 0 22px; }
.progress i { display: block; height: 100%; background: var(--pepper); transition: width .25s; }
.step-label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--pepper); margin: 0 0 8px; }
.terms-body { white-space: pre-wrap; color: var(--ash); font-size: 16px; line-height: 1.6; }
.draft-flag { border: 1px solid rgba(229,96,63,.5); color: var(--warn); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 16px; }
.nav-row { display: flex; gap: 8px; margin-top: 22px; }
.nav-row .btn { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line2); color: var(--bone); font-size: 14px; cursor: pointer; }
.chip input { accent-color: var(--pepper); }
.sig-wrap { position: relative; }
.sig { display: block; width: 100%; height: 170px; background: var(--bone); border-radius: 12px; touch-action: none; cursor: crosshair; }
.sig-hint { position: absolute; left: 14px; bottom: 10px; color: #8F8679; font-size: 13px; pointer-events: none; }
.sig-line { position: absolute; left: 14px; right: 14px; bottom: 34px; border-top: 1px solid rgba(0,0,0,.18); pointer-events: none; }
.welcome-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; counter-reset: s; }
.welcome-steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; background: var(--smoke); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--bone); }
.welcome-steps li::before { content: "0" counter(s); font: 600 11px var(--head); color: var(--pepper); }
.bill { display: grid; gap: 8px; }
.bill .amount { font: 600 18px var(--head); color: var(--bone); }
.secure { font-size: 13px; color: var(--label); margin-top: 18px; }
.agreement-doc .sigimg { height: 70px; display: block; margin: 8px 0 4px; }
.agreement-doc .section { margin-bottom: 12px; }
.agreement-doc .section b { color: #000; display: block; }
.agreement-doc .answers { display: grid; grid-template-columns: 170px 1fr; gap: 4px 14px; }
.agreement-doc .answers dt { color: #6F675B; }
.agreement-doc .answers dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.agreement-doc .audit { font-size: 11px; color: #444; border-top: 1px solid #ddd; margin-top: 18px; padding-top: 10px; overflow-wrap: anywhere; }
.agreement-doc .draftmark { color: #B4472F; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
@media (max-width: 480px) { .agreement-doc .answers { grid-template-columns: 1fr; } .agreement-doc .answers dd { margin-bottom: 6px; } }
.mock-banner { background: var(--warn); color: #000; text-align: center; padding: 10px; font: 600 10px var(--head); letter-spacing: .08em; text-transform: uppercase; }
.item-row > .pill, .item-row > button.pill { flex: none; align-self: flex-start; }
.logo img.bp-icon { height: 30px; width: 30px; border: 1px solid var(--line2); border-radius: 50%; }
@media (max-width: 360px) { .logo img:not(.bp-icon) { display: none; } }
