/* MyBooks.Africa, clean, calm, app-like interface (v1.3) */
[hidden] { display: none !important; }
:root {
  --canvas: #f5f5f7; --surface: #fff; --ink: #1d1d1f; --ink-2: #424245; --muted: #6e6e73; --faint: #86868b;
  --line: rgba(0, 0, 0, .08); --line-2: rgba(0, 0, 0, .12); --fill: #f0f0f2; --fill-2: #e8e8ed;
  --accent: #0b7a68; --accent-2: #096657; --tint: rgba(11, 122, 104, .10); --ring: rgba(11, 122, 104, .28);
  --pos: #1f8a4c; --neg: #d70015; --warn: #a35200;
  --r-lg: 18px; --r: 14px; --r-sm: 10px; --pill: 999px;
  --shadow: 0 1px 1px rgba(0, 0, 0, .02), 0 2px 10px rgba(0, 0, 0, .035);
  --pop: 0 10px 40px rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--font); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -.028em; margin: 0; }
h2 { font-size: 19px; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; margin: 0 0 14px; }
h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 20px 0 8px; letter-spacing: 0; }
p { margin: 0 0 12px; }
small, .small { font-size: 12.5px; }
.muted { color: var(--muted); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 20px; }
.big { font-size: 34px; font-weight: 650; letter-spacing: -.03em; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.big small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
code { background: var(--fill); padding: 2px 6px; border-radius: 6px; font-size: 12.5px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
code.secret { word-break: break-all; display: inline-block; padding: 6px 10px; }
pre { background: var(--fill); padding: 12px 14px; border-radius: var(--r-sm); overflow: auto; font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------------- app shell */
body.app { display: flex; min-height: 100vh; }
.side { width: 252px; flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 20;
  background: rgba(250, 250, 252, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-right: 1px solid var(--line); }
.brand, .pub-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; letter-spacing: -.02em; }
.brand { padding: 22px 22px 18px; }
.brand:hover, .pub-brand:hover { color: var(--ink); }
.brand-word b { font-weight: 700; }
.logo-dot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(145deg, #13506b, #0b7a68 55%, #2a9a62); color: #fff; font-weight: 800; font-size: 11.5px; letter-spacing: .3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.side nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 12px; }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 11px; padding: 8px 11px; margin: 1px 0; color: var(--ink-2); border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; transition: background .15s var(--ease), color .15s; }
.nav-item > a .ic { color: var(--faint); transition: color .15s; }
.nav-item > a:hover { background: rgba(0, 0, 0, .045); color: var(--ink); }
.nav-item.active > a { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--line); }
.nav-item.active > a .ic { color: var(--accent); }
.caret { margin-left: auto; width: 6px; height: 6px; border-right: 1.6px solid var(--faint); border-bottom: 1.6px solid var(--faint); transform: rotate(-45deg); }
.sub { display: block; visibility: hidden; opacity: 0; transform: translateX(-4px); position: absolute; left: calc(100% + 6px); top: -6px; min-width: 220px; padding: 6px; z-index: 30;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--r); box-shadow: var(--pop); transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s; }
.sub a { display: block; padding: 8px 12px; color: var(--ink); border-radius: 8px; font-size: 14px; }
.sub a:hover { background: var(--accent); color: #fff; }
.nav-item.has-sub:hover .sub, .nav-item.has-sub:focus-within .sub { visibility: visible; opacity: 1; transform: none; }
.sub a.sub-sep { margin-top: 6px; position: relative; }
.sub a.sub-sep::before { content: ""; position: absolute; left: 12px; right: 12px; top: -4px; border-top: 1px solid var(--line); }
.sub a.on { font-weight: 600; color: var(--accent); }
@media (min-width: 861px) {
  /* Flyout is placed by app.js so the scrolling sidebar cannot cut it off. */
  .sub { position: fixed; left: 258px; top: 0; }
  /* The section you are in shows its pages right under it. */
  .nav-item.active.has-sub .sub { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 2px 0 8px 32px; min-width: 0; }
  .nav-item.active.has-sub .sub a { padding: 5px 10px; font-size: 13.5px; color: var(--ink-2); }
  .nav-item.active.has-sub .sub a:hover { background: rgba(0, 0, 0, .045); color: var(--ink); }
  .nav-item.active.has-sub .sub a.on { color: var(--accent); background: none; }
  .nav-item.active.has-sub .caret { transform: rotate(45deg); }
}
.side-foot { padding: 10px 12px 16px; border-top: 1px solid var(--line); }
.side-foot a { display: flex; gap: 10px; align-items: center; color: var(--muted); padding: 8px 11px; border-radius: var(--r-sm); font-size: 14px; }
.side-foot a:hover { background: rgba(0, 0, 0, .045); color: var(--ink); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 14px; padding: 12px 36px; min-height: 58px;
  background: rgba(245, 245, 247, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.top-company { font-weight: 600; letter-spacing: -.01em; }
.top-company small { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: 13px; }
.top-user { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.top-help { color: var(--faint); display: inline-flex; }
.top-help:hover { color: var(--accent); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--fill-2); color: var(--ink-2); font-weight: 600; font-size: 12.5px; }
.burger { display: none; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--ink); padding: 4px 6px; border-radius: 8px; }
.content { padding: 30px 36px 56px; flex: 1; width: 100%; max-width: 1320px; animation: enter .28s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.foot { text-align: center; color: var(--faint); font-size: 12px; padding: 18px; }
.banner { margin: 16px 36px 0; padding: 12px 16px; border-radius: var(--r); background: #fff4e5; color: #6b3d00; font-size: 14px; }
.banner.soft { background: var(--tint); color: #0a4d42; }
.banner a { font-weight: 600; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 24px; flex-wrap: wrap; }
.page-head h1 a { color: var(--accent); }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px 26px; margin-bottom: 20px; border: 1px solid rgba(0, 0, 0, .035); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cards2 > .card { margin-bottom: 0; }
.cards2 + .card, .cards2 + .cards2, .kpis + .cards2 { margin-top: 20px; }
.cards2.wide-left { grid-template-columns: 1.6fr 1fr; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpis.small { margin: 6px 0 18px; gap: 10px; }
.kpi { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid rgba(0, 0, 0, .035); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.kpis.small .kpi { box-shadow: none; background: var(--fill); border: 0; }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi b { font-size: 25px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpis.small .kpi b { font-size: 19px; }
.kpi small { color: var(--faint); }
.empty { text-align: center; padding: 34px 12px; color: var(--muted); }
.empty p { margin-bottom: 14px; }
.flash { padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; background: #e8f6ee; color: #135c33; font-size: 14px; animation: enter .25s var(--ease) both; }
.flash-error { background: #fdecee; color: #8f0011; }

/* ---------------------------------------------------------------- forms */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.form > label, .form .grid3 > label { margin-bottom: 12px; }
input, select, textarea { font: inherit; font-size: 15px; color: var(--ink); width: 100%; min-width: 0; padding: 9px 12px; min-height: 40px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #a1a1a6; }
input:hover, select:hover, textarea:hover { border-color: rgba(0, 0, 0, .2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--accent); flex: none; }
input[type=file] { padding: 7px; font-size: 13.5px; }
input[type=file]::file-selector-button { font: inherit; border: 0; background: var(--fill); padding: 6px 12px; border-radius: 8px; margin-right: 10px; cursor: pointer; color: var(--ink); }
input:disabled { background: var(--fill); color: var(--muted); }
textarea { resize: vertical; line-height: 1.45; }
label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 400; }
.grid2, .grid3, .grid4 { display: grid; gap: 14px 18px; align-items: start; }
.grid2 { grid-template-columns: repeat(2, 1fr); }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.grid4 { grid-template-columns: repeat(4, 1fr); }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.grid2 .span3 { grid-column: span 2; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; margin: 0; }
legend { color: var(--ink-2); font-size: 13px; font-weight: 600; padding: 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex-direction: row !important; align-items: center; gap: 6px !important; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 5px 12px; color: var(--ink) !important; font-weight: 500; cursor: pointer; }
.chip:has(input:checked) { background: var(--tint); border-color: var(--accent); }
.chip input { width: 15px; height: 15px; }
.hp { position: absolute; left: -9999px; }
.inline { display: inline; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form label { flex-direction: row; align-items: center; gap: 8px; }
.inline-form input, .inline-form select { width: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters input[type=search] { max-width: 300px; padding-left: 36px; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2386868b' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E") no-repeat 12px center; border-color: transparent; }
.filters input[type=search]:focus { background-color: var(--surface); }
.filters input, .filters select { width: auto; }
.filters label { flex-direction: row; align-items: center; gap: 8px; }
.spacer { flex: 1; }
.logo-prev { max-height: 60px; max-width: 200px; display: block; margin: 6px 0; border-radius: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 550; line-height: 1; padding: 10px 16px; min-height: 38px;
  border-radius: var(--pill); border: 0; background: var(--fill-2); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .15s, transform .08s, box-shadow .15s; }
.btn:hover { background: #dcdce1; color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-danger { background: #fdecee; color: var(--neg); }
.btn-danger:hover { background: #fbdadf; color: var(--neg); }
.btn-link, .btn-ghost { background: transparent; color: var(--accent); padding-left: 10px; padding-right: 10px; }
.btn-link:hover, .btn-ghost:hover { background: var(--tint); color: var(--accent-2); }
.btn-sm { font-size: 13px; padding: 7px 12px; min-height: 30px; }
.btn-lg { font-size: 16px; padding: 14px 24px; min-height: 48px; }
.btn-block { width: 100%; }
button.x { border: 0; background: none; color: var(--faint); font-size: 20px; cursor: pointer; line-height: 1; width: 28px; height: 28px; border-radius: 50%; }
button.x:hover { color: var(--neg); background: #fdecee; }

/* ---------------------------------------------------------------- tables */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl.small td { padding: 8px 10px; }
.tbl tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--line-2); padding-top: 14px; }
.tbl tfoot tr.grand td { font-size: 16px; border-top: 1px solid var(--ink); }
.tbl.hover tbody tr, tr[data-href] { transition: background .12s; }
.tbl.hover tbody tr:hover, tr[data-href]:hover { background: #f7f7f9; cursor: pointer; }
.tbl.hover tbody tr:hover td:first-child, tr[data-href]:hover td:first-child { border-radius: 10px 0 0 10px; }
.tbl.hover tbody tr:hover td:last-child, tr[data-href]:hover td:last-child { border-radius: 0 10px 10px 0; }
.tbl tr.current td { background: var(--tint); }
.tbl tr.muted td { color: var(--faint); }
.tbl.fin td { padding: 9px 12px; }
.tbl.fin tr.grp td { font-weight: 650; padding-top: 22px; border-bottom: 1px solid var(--line-2); }
.tbl.fin td.ind { padding-left: 28px; }
.tbl.fin tr.sum td { font-weight: 600; color: var(--ink-2); }
.tbl.fin tr.sub td { font-weight: 650; background: var(--fill); }
.tbl.fin tr.grand td { font-weight: 700; font-size: 16px; border-top: 1px solid var(--ink); border-bottom: 0; }
.tbl.checks td:first-child { width: 30px; font-size: 16px; }

/* segmented control tabs */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; margin: 0 0 20px; background: var(--fill-2); border-radius: 12px; }
.tabs a { padding: 7px 14px; color: var(--ink-2); border-radius: 9px; font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .04); }
.tabs-inline { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--fill); border-radius: 10px; }
.tabs-inline a { padding: 5px 12px; border-radius: 8px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.tabs-inline a:hover { color: var(--ink); }
.tabs-inline a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.subtabs { margin-bottom: 16px; }

/* status pills */
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 600; background: var(--fill); color: var(--muted); white-space: nowrap; }
.b-draft { background: var(--fill); color: var(--muted); }
.b-sent, .b-confirmed, .b-open { background: #e5f0fd; color: #0a58b5; }
.b-partial { background: #fff1db; color: var(--warn); }
.b-accepted, .b-done, .b-delivered, .b-paid, .b-applied { background: #e3f5ea; color: var(--pos); }
.b-declined, .b-cancelled { background: var(--fill); color: var(--faint); text-decoration: line-through; }
.b-overdue { background: #fdecee; color: var(--neg); }

/* ---------------------------------------------------------------- dashboard */
.steps { margin: 0; padding-left: 20px; line-height: 1.6; }
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps li::marker { color: var(--faint); font-weight: 600; }
.steps li.done > a { text-decoration: line-through; color: var(--faint); }
.steps small { color: var(--muted); }
.chart { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); }
.chart .axis { font-size: 11px; fill: var(--faint); font-family: var(--font); }
.bar-in, .lg-in { fill: #34c759; background: #34c759; }
.bar-out, .lg-out { fill: #ff6b5e; background: #ff6b5e; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.chart-legend .tot { margin-left: auto; font-size: 12.5px; }
.chart-legend .tot + .tot { margin-left: 0; }
.chart-legend .tot b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 5px 0; }

/* ---------------------------------------------------------------- documents */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.doc-side { position: sticky; top: 76px; padding: 18px 20px; }
.doc-side h3:first-child { margin-top: 0; }
.act, .doc-side .act { display: flex; align-items: center; text-align: left; background: none; border: 0; padding: 7px 10px; margin: 0 -10px; width: calc(100% + 20px); border-radius: 8px; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.act:hover { background: var(--tint); }
.act.danger { color: var(--neg); }
.act.danger:hover { background: #fdecee; }
.doc-side form.inline { display: block; }
details.send summary { list-style: none; }
details.send summary::-webkit-details-marker { display: none; }
details.send form { padding: 8px 0 12px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-bottom: 18px; }
.doc-meta span { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }
.doc-text { color: var(--ink-2); background: var(--fill); padding: 12px 14px; border-radius: var(--r-sm); }
.qty-track { display: flex; gap: 22px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.qty-track .pos, .qty-track .pos b { color: var(--pos); }
.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.history li:last-child { border: 0; }
.history small { color: var(--faint); }
dl.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
dl.dl dt { color: var(--muted); }
dl.dl dd { margin: 0; }
dl.dl.cols { grid-template-columns: max-content 1fr max-content 1fr; }
.quote { border-left: 3px solid var(--fill-2); padding: 4px 14px; color: var(--ink-2); }
.app-card .cards2 { margin-top: 12px; }
.app-docs { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.doc-chip { background: var(--fill); border-radius: var(--r-sm); padding: 6px 12px; font-size: 13.5px; }

/* editor */
table.lines { width: 100%; border-collapse: collapse; }
table.lines th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 6px 6px 10px; border-bottom: 1px solid var(--line); }
table.lines td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lines td.drag { color: #c7c7cc; cursor: grab; width: 18px; padding-top: 20px; }
table.lines .ln-main { min-width: 260px; }
table.lines .ln-main select { margin-bottom: 8px; }
table.lines td:nth-child(3) { width: 110px; }
table.lines td:nth-child(4) { width: 120px; }
table.lines td:nth-child(5) { width: 84px; }
table.lines td:nth-child(6) { width: 220px; }
table.lines td:nth-child(6) select + select { margin-top: 8px; font-size: 13px; color: var(--muted); background-color: var(--fill); border-color: transparent; }
table.lines .ln-unit { margin-top: 8px; font-size: 13px; background: var(--fill); border-color: transparent; }
table.lines .ln-total { padding-top: 21px; font-weight: 600; width: 110px; }
tr.tpl { display: none; }
.totals { margin: 18px 0 0 auto; max-width: 380px; }
.totals > div { display: flex; justify-content: space-between; padding: 5px 0; }
.totals > #t-vats { display: block; padding: 0; }
.totals #t-vats div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.totals .grand { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 10px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.doc-form { padding-bottom: 12px; }
.sticky-actions { position: sticky; bottom: 14px; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 10px; margin-top: 8px; width: max-content; max-width: 100%;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-radius: var(--pill); box-shadow: var(--pop); }
details.card > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
details.card > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-45deg); transition: transform .2s var(--ease); }
details.card[open] > summary::before { transform: rotate(45deg); }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { margin-bottom: 16px; }
.tbl.je input, .tbl.je select { font-size: 14px; padding: 7px 10px; min-height: 36px; }
.tbl.recon details { display: inline-block; }
.tbl.recon details > summary { list-style: none; }
.tbl.recon details > summary::-webkit-details-marker { display: none; }
.tbl.recon details[open] { display: block; margin-top: 10px; background: var(--fill); padding: 14px; border-radius: var(--r); }
.counter { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }

/* banking */
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bank-card { display: flex; flex-direction: column; gap: 4px; color: var(--ink); margin: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.bank-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .08); }
.bank-card.inactive { opacity: .5; }
.bk-kind { font-size: 12.5px; color: var(--muted); }
.bank-card b { font-size: 17px; letter-spacing: -.01em; }
.bank-card small { color: var(--faint); }
.bk-bal { font-size: 28px; font-weight: 650; letter-spacing: -.03em; margin: 14px 0 8px; font-variant-numeric: tabular-nums; }
.bank-card .badge { align-self: flex-start; }

/* reports */
.rep-title { margin: 6px 0 16px; }
.rep-title h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.rep-title p { margin: 4px 0 0; color: var(--muted); }
.cards2.bs > div { min-width: 0; }

/* ---------------------------------------------------------------- public site */
body.bare { min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); }
.pub-nav { position: sticky; top: 0; z-index: 30; background: rgba(245, 245, 247, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.pub-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; min-height: 60px; position: relative; }
.pub-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pub-links a { color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: var(--pill); }
.pub-links a:hover { color: var(--ink); background: rgba(0, 0, 0, .045); }
.pub-links a.pill { background: var(--ink); color: #fff; margin-left: 6px; }
.pub-links a.pill:hover { background: #000; }
.pub-toggle, .pub-burger { display: none; }
.bare-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 40px 24px 64px; }
.bare-main > .flash { max-width: 520px; margin: 0 auto 16px; }
.pub-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pub-foot .pub-inner { min-height: 72px; flex-wrap: wrap; }
.pub-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.pub-foot nav a { color: var(--muted); }
.pub-foot nav a:hover { color: var(--ink); }
.pub-foot .ver { margin-left: auto; color: var(--faint); font-size: 12px; }
.pub-brand.small { font-size: 15px; }
.pub-brand.small .logo-dot { width: 24px; height: 24px; font-size: 9.5px; border-radius: 7px; }

.auth-card, .auth-wide { background: var(--surface); border-radius: 22px; box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 50px rgba(0, 0, 0, .07); padding: 34px 34px 30px; width: 100%; max-width: 420px; }
.auth-wide { max-width: 760px; margin: 0 auto; }
.auth-card h2, .auth-wide h2 { font-size: 24px; letter-spacing: -.025em; margin-bottom: 8px; }
.auth-card form > label, .auth-wide form > label { margin-bottom: 14px; }
.auth-card .btn-lg { margin-top: 2px; }
.center-stage { min-height: 60vh; display: grid; place-items: center; }
.center-stage .auth-card { margin: 0 auto; }
.or { text-align: center; margin: 20px 0 12px; position: relative; color: var(--faint); font-size: 13px; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.or span { background: var(--surface); padding: 0 12px; position: relative; }

.landing { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; padding: 28px 0 40px; }
.hero h1 { font-size: clamp(42px, 6vw, 70px); line-height: 1.04; letter-spacing: -.038em; font-weight: 800; margin-bottom: 22px; }
.hero .lead { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lead { color: var(--muted); }

/* the document flow strip, the signature element */
.flow { margin: 8px 0 28px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 26px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.flow-step { position: relative; padding: 4px 22px; }
.flow-step + .flow-step { border-left: 1px solid var(--line); }
.flow-step .fs-kind { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.flow-step .fs-kind .ic { color: var(--accent); width: 17px; height: 17px; }
.flow-step .fs-no { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.flow-step .fs-amt { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.flow-step::after { content: ""; position: absolute; right: -7px; top: 38%; width: 12px; height: 12px; border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); transform: rotate(45deg); background: var(--surface); z-index: 1; }
.flow-step:nth-child(4)::after { display: none; }
.flow-cap { grid-column: 1 / -1; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.section { padding: 56px 0 8px; }
.section-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.035em; font-weight: 750; margin: 0 0 32px; max-width: 18em; }
.section-title .muted { color: var(--faint); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }
.f-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--accent); margin-bottom: 18px; }
.f-ic .ic { width: 21px; height: 21px; }
.feature h3 { font-size: 17px; color: var(--ink); font-weight: 650; letter-spacing: -.015em; margin: 0 0 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }
.steps-row { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-row li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps-row li::before { content: counter(s); display: block; font-size: 13px; color: var(--faint); font-weight: 600; margin-bottom: 8px; }
.steps-row b { display: block; font-size: 18px; letter-spacing: -.015em; margin-bottom: 6px; }
.steps-row span { color: var(--muted); font-size: 14.5px; }
.price-card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 44px; text-align: center; max-width: 560px; margin: 24px auto 0; }
.price-card h2 { font-size: 26px; letter-spacing: -.025em; }
.price-big { font-size: 56px; font-weight: 800; letter-spacing: -.045em; line-height: 1; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.price-big small { font-size: 18px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.price-card p { margin-bottom: 24px; }

/* checkout & misc public */
.checkout { text-align: center; }
.co-icon { font-size: 40px; line-height: 1; margin: 2px 0 14px; }
.co-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.checkout pre { text-align: left; white-space: pre-wrap; }
.auth-wide fieldset small { display: block; margin-top: 6px; }
.auth-card .co-icon { text-align: center; }

/* guide */
.guide-hero { max-width: 720px; margin: 0 0 36px; }
.guide-hero h1 { font-size: clamp(34px, 4.5vw, 52px); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 14px; font-weight: 800; }
.guide-hero .lead { font-size: 18px; }
.guide-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
.guide-toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1px; }
.guide-toc a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.guide-toc a .ic { color: var(--faint); width: 17px; height: 17px; }
.guide-toc a:hover { background: rgba(0, 0, 0, .045); color: var(--ink); }
.guide-sec { scroll-margin-top: 84px; padding: 28px 30px; }
.guide-sec h2 { font-size: 22px; letter-spacing: -.025em; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.g-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.g-steps { list-style: none; counter-reset: g; margin: 0; padding: 0; }
.g-steps li { counter-increment: g; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.g-steps li:first-child { border-top: 0; padding-top: 0; }
.g-steps li::before { content: counter(g); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; background: var(--fill); color: var(--ink-2); font-size: 12px; font-weight: 600; display: grid; place-items: center; margin-top: 1px; }
.g-steps b { font-weight: 600; }
.g-steps p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.g-steps p b { color: var(--ink-2); }

/* why bookkeeping, the statement */
.manifesto { padding: 8px 0 64px; }
.manifesto .section-title { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.04em; line-height: 1.04; font-weight: 800; margin-bottom: 26px; }
.manifesto-body { max-width: 40em; }
.manifesto-lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0 0 14px; }
.manifesto-lead.strong { color: var(--ink); font-weight: 650; }
.manifesto-points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.manifesto-points li { padding-top: 16px; border-top: 1px solid var(--line-2); }
.manifesto-points b { display: block; font-size: 17px; letter-spacing: -.015em; margin-bottom: 4px; }
.manifesto-points span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .manifesto-points { grid-template-columns: 1fr; } .manifesto-lead { font-size: 17px; } }

/* founder story */
.story { max-width: 720px; margin: 0 auto; }
.story-head { margin-bottom: 44px; }
.story-avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #13506b, #0b7a68 55%, #2a9a62); color: #fff; font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.story-portrait { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 20px; box-shadow: 0 0 0 6px var(--surface), 0 10px 30px rgba(0, 0, 0, .12); }
.story-portrait.small { width: 56px; height: 56px; margin: 0; flex: none; box-shadow: 0 0 0 3px var(--surface), 0 4px 12px rgba(0, 0, 0, .1); }
.story-avatar.small { width: 44px; height: 44px; font-size: 17px; margin: 0; flex: none; }
.story-by { color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.story-head h1 { font-size: clamp(36px, 5.5vw, 58px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; margin-bottom: 20px; }
.story-intro { font-size: 21px; line-height: 1.5; color: var(--ink-2); }
.story-ch { margin: 0 0 34px; }
.story-ch h2 { font-size: 24px; letter-spacing: -.025em; margin-bottom: 10px; }
.story-ch p { font-size: 18px; line-height: 1.7; color: var(--ink-2); margin-bottom: 14px; }
.story-figure { margin: 8px 0 44px; display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 28px 30px; }
.story-figure b { display: block; font-size: clamp(40px, 7vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.story-figure div:last-child b { color: var(--accent); }
.story-figure .fig-label { display: block; font-style: normal; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.story-figure div:last-child .fig-label { color: var(--accent); }
.story-figure span { display: block; color: var(--muted); margin-top: 8px; font-size: 15px; }
.story-figure i { height: 2px; background: var(--line-2); position: relative; margin: 0 8px; }
.story-figure i::after { content: ""; position: absolute; right: -1px; top: -4px; width: 9px; height: 9px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg); }
.story-path { list-style: none; padding: 0; margin: 4px 0 44px; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: p; }
.story-path li { counter-increment: p; padding: 14px 10px 0 0; border-top: 2px solid var(--line-2); position: relative; }
.story-path li:last-child { border-top-color: var(--accent); }
.story-path li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.story-path li:last-child::before { background: var(--accent); }
.story-path b { display: block; font-size: 15px; }
.story-path span { color: var(--muted); font-size: 13px; }
.story-brands { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.story-brands li { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; }
.story-brands a { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.015em; margin-bottom: 4px; }
.story-brands span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 860px) { .story-brands { grid-template-columns: 1fr; } }
.story-quote { margin: 8px 0 44px; padding: 0; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.15; letter-spacing: -.035em; font-weight: 750; color: var(--ink); }
.story-close { color: var(--ink) !important; font-weight: 600; }
.story-sign { font-size: 22px !important; font-weight: 700; color: var(--ink) !important; letter-spacing: -.02em; }
.founder-teaser { display: flex; align-items: center; gap: 18px; margin: 0 0 64px; padding: 20px 24px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--ink); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.founder-teaser:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0, 0, 0, .07); }
.ft-text { flex: 1; }
.ft-text b { display: block; font-size: 17px; letter-spacing: -.015em; }
.ft-text span { color: var(--muted); font-size: 14.5px; }
.ft-go { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* scratch card */
.scratch-wrap { margin: 56px 0 0; padding: 36px 30px; background: var(--surface); border-radius: 24px; box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 50px rgba(0, 0, 0, .07); text-align: center; }
.scratch-wrap h2 { font-size: 26px; letter-spacing: -.025em; margin-bottom: 6px; }
.scratch { position: relative; width: min(440px, 100%); height: 200px; margin: 24px auto 20px; border-radius: 18px; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.scratch-prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(145deg, #e9f6f2, #f6fbf9); border: 1.5px dashed rgba(11, 122, 104, .35); border-radius: 18px; }
.scratch-pct { font-size: 46px; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.scratch-sub { color: var(--muted); font-size: 14px; }
.scratch-code { margin-top: 12px; font-size: 22px; font-weight: 700; letter-spacing: .12em; background: var(--surface); padding: 8px 16px; border-radius: 10px; color: var(--ink); user-select: all; -webkit-user-select: all; }
.scratch-foil { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; transition: opacity .5s var(--ease); }
.scratch.done .scratch-foil { opacity: 0; pointer-events: none; }
.scratch-after { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scratch-after .btn-primary { visibility: hidden; opacity: 0; transition: opacity .4s var(--ease); }
.scratch-wrap.revealed .scratch-after .btn-primary { visibility: visible; opacity: 1; }
.scratch-wrap.revealed [data-scratch-reveal] { display: none; }
.code-note { align-self: end; padding-bottom: 10px; }
details.code-entry { margin-top: 16px; }
details.code-entry summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 500; }
details.code-entry form { margin-top: 10px; }
@media (max-width: 860px) {
  .story-path { grid-template-columns: 1fr; gap: 0; border-left: 2px solid var(--line-2); margin-left: 4px; }
  .story-path li { border-top: 0; padding: 0 0 14px 18px; }
  .story-path li::before { top: 5px; left: -6px; }
  .story-figure { grid-template-columns: 1fr; gap: 18px; }
  .story-figure i { display: none; }
  .founder-teaser { flex-wrap: wrap; }
}

/* who we are pill (top of home page) */
.who-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 26px; padding: 5px 14px 5px 5px; border-radius: var(--pill); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(0, 0, 0, .04); color: var(--ink-2); font-size: 13.5px; line-height: 1.35; transition: box-shadow .2s var(--ease); }
.who-pill:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 4px 14px rgba(0, 0, 0, .07); }
.who-pill img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.who-pill b { font-weight: 600; color: var(--ink); }
.who-go { color: var(--accent); font-weight: 600; white-space: nowrap; padding-left: 10px; border-left: 1px solid var(--line); }
@media (max-width: 860px) { .who-pill { border-radius: var(--r); align-items: flex-start; } .who-go { display: none; } }

/* home page accordion */
.acc { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 6px 28px; margin: 0 0 24px; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-item > summary { list-style: none; display: flex; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; }
.acc-item > summary::-webkit-details-marker { display: none; }
.acc-t { flex: 1; }
.acc-t b { display: block; font-size: 21px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
.acc-t span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.acc-plus { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); flex: none; transition: transform .25s var(--ease), background .2s; }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; background: var(--ink-2); border-radius: 2px; transform: translate(-50%, -50%); }
.acc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item[open] .acc-plus { transform: rotate(45deg); background: var(--tint); }
.acc-item > summary:hover .acc-plus { background: var(--fill-2); }
.acc-body { padding: 0 0 28px; animation: accIn .3s var(--ease) both; }
@keyframes accIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.acc-body .manifesto-points { margin-top: 22px; }
.acc-body .feature { box-shadow: none; background: var(--canvas); }
.acc-more { margin: 20px 0 0; font-weight: 600; }
.acc-price { text-align: left; }
.acc-price .price-big { margin-top: 0; }
@media (max-width: 860px) { .acc { padding: 2px 18px; border-radius: 18px; } .acc-t b { font-size: 18px; } .acc-t span { font-size: 14px; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-side { position: static; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .side { position: fixed; left: 0; transform: translateX(-100%); transition: transform .28s var(--ease); background: rgba(250, 250, 252, .96); box-shadow: var(--pop); }
  .side.open { transform: none; }
  .sub { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; background: none; backdrop-filter: none; padding: 0 0 6px 30px; min-width: 0; }
  .sub a { padding: 5px 10px; font-size: 13.5px; color: var(--ink-2); }
  .caret { display: none; }
  .burger { display: block; }
  .content { padding: 20px 16px 40px; }
  .top { padding: 10px 16px; }
  .top-email { display: none; }
  .banner { margin: 12px 16px 0; }
  h1 { font-size: 26px; }
  .cards2, .cards2.wide-left, .landing, .grid2, .grid3, .counter, .guide-body, .feature-grid, .steps-row { grid-template-columns: 1fr; }
  .span2, .span3, .grid2 .span3 { grid-column: auto; }
  .tbl { display: block; overflow-x: auto; }
  table.lines, table.lines tbody, table.lines tr, table.lines td { display: block; width: auto !important; }
  table.lines thead { display: none; }
  table.lines tr.ln { background: var(--fill); border-radius: var(--r); margin-bottom: 10px; padding: 8px; }
  table.lines td { border: 0; padding: 4px; }
  table.lines td.drag { display: none; }
  dl.dl.cols { grid-template-columns: max-content 1fr; }
  .guide-toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .flow { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .flow-step:nth-child(3) { border-left: 0; }
  .flow { padding: 18px 8px; }
  .flow-step { padding: 4px 14px; }
  .flow-step .fs-no { font-size: 16px; white-space: nowrap; letter-spacing: -.01em; }
  .flow-step .fs-amt { font-size: 13px; }
  .flow-cap { margin: 18px 14px 0; }
  .flow-step::after { display: none; }
  .landing { gap: 32px; padding-top: 8px; }
  .pub-burger { display: grid; gap: 5px; margin-left: auto; cursor: pointer; padding: 10px; }
  .pub-burger span { display: block; width: 20px; height: 1.6px; background: var(--ink); border-radius: 2px; }
  .pub-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; background: rgba(245, 245, 247, .97); border-bottom: 1px solid var(--line); }
  .pub-toggle:checked ~ .pub-links { display: flex; }
  .pub-links a.pill { margin: 6px 0 0; text-align: center; }
  .sticky-actions { width: auto; border-radius: var(--r); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- print (reports) */
@media print {
  .side, .top, .foot, .banner, .tabs, .filters, .head-actions, .sticky-actions, .btn, form.inline-form, .subtabs, nav, .pub-nav, .pub-foot { display: none !important; }
  body.app { display: block; background: #fff; }
  .content { padding: 0; max-width: none; animation: none; }
  .card { box-shadow: none; padding: 0; border: 0; }
  a { color: inherit; }
  .tbl td, .tbl th { padding: 4px 6px; font-size: 11.5px; }
}

/* Promotion banner (public site, only while a promotion runs) */
.promo { padding: 12px 16px 0; }
.promo-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; background: linear-gradient(135deg, #0b1f1b, #12352e); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.promo-tag { flex: none; padding: 6px 12px; border-radius: 999px; background: #f2c14e; color: #1d1d1f; font-weight: 800; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; }
.promo-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.promo-txt b { font-size: 16px; letter-spacing: -.01em; }
.promo-txt span { font-size: 14px; color: rgba(255, 255, 255, .82); line-height: 1.45; }
.promo-txt small { font-size: 12px; color: rgba(255, 255, 255, .6); }
.promo-in .btn-primary { flex: none; background: #fff; color: #1d1d1f; }
@media (max-width: 700px) {
  .promo-in { flex-direction: column; align-items: flex-start; gap: 10px; }
  .promo-in .btn-primary { width: 100%; justify-content: center; }
}
.scratch-wrap h2 { font-size: 24px; line-height: 1.25; max-width: 30ch; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .scratch-wrap h2 { font-size: 21px; } }
.tbl td.nowrap { white-space: nowrap; }

/* Newsletter */
.news { max-width: 1080px; margin: 48px auto 8px; padding: 0 0; }
.news-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; padding: 32px 34px; border-radius: 24px; background: var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 50px rgba(0, 0, 0, .06); }
.news-txt h2 { font-size: 26px; letter-spacing: -.025em; margin: 0 0 8px; }
.news-txt p { color: var(--muted); margin: 0; line-height: 1.55; }
.news-row { display: flex; gap: 10px; }
.news-row input { flex: 1; min-width: 0; }
.news-consent { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45; align-items: flex-start; }
.news-consent input { margin-top: 2px; }
@media (max-width: 760px) {
  .news-in { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; }
  .news-row { flex-direction: column; }
  .news-row .btn { width: 100%; justify-content: center; }
}

/* Contact */
.contact { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; padding-top: 24px; }
.contact h1 { font-size: 44px; letter-spacing: -.035em; margin: 0 0 10px; }
.contact .lead { margin-bottom: 22px; }
.contact-side { display: grid; gap: 16px; }
.contact-side h2 { font-size: 17px; margin: 0 0 10px; }
.contact-side p { margin: 0 0 8px; }
.contact-done { text-align: center; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact h1 { font-size: 34px; } }

/* Legal pages */
.legal { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding-top: 24px; }
.legal-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; align-self: start; }
.legal-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.legal-nav a:hover { background: var(--fill); color: var(--ink); }
.legal-nav a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.legal-body { max-width: 720px; font-size: 16px; line-height: 1.65; }
.legal-body h1 { font-size: 40px; letter-spacing: -.035em; margin: 0 0 4px; }
.legal-body h2 { font-size: 19px; letter-spacing: -.015em; margin: 30px 0 8px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
dl.dl.legal-dl { grid-template-columns: 200px 1fr; }
.legal-tbl td { vertical-align: top; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; gap: 16px; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-nav a { padding: 6px 10px; font-size: 13px; background: var(--fill); }
  .legal-body h1 { font-size: 32px; }
  dl.dl.legal-dl { grid-template-columns: 1fr; }
}

/* Footer legal row */
.pub-foot .pub-legal { min-height: 0; padding-bottom: 22px; gap: 10px 18px; font-size: 12px; color: var(--faint); }
.pub-foot .pub-legal nav a { color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot a { color: inherit; }
.price-was { color: var(--muted); margin: 4px 0 12px; }
.apply-offer { margin: 0 0 14px; color: var(--muted); }

/* PAPSS */
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin-bottom: 10px; }
.papss-home { max-width: 1080px; margin: 28px auto 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; padding: 36px; border-radius: 24px;
  background: linear-gradient(145deg, #e9f6f2 0%, #f7fbfa 60%, #fff7e6 100%); box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 50px rgba(0, 0, 0, .06); }
.papss-home h2 { font-size: 32px; line-height: 1.12; letter-spacing: -.03em; margin: 0 0 12px; }
.papss-home p { color: var(--muted); line-height: 1.55; }
.ph-points { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ph-points li { background: rgba(255, 255, 255, .75); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ph-points b { font-size: 15px; }
.ph-points span { font-size: 13px; color: var(--muted); }
.ph-cap { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.ph-cap a { font-weight: 600; }
.ph-map .pp-chips { margin-bottom: 12px; }
.pp-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px; border-radius: 999px; background: var(--surface); font-size: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.pp-chips .flag { font-size: 17px; line-height: 1; }
.pp-soon li { background: #fff8ea; }
.pp-extended li { background: var(--fill); color: var(--muted); }
@media (max-width: 860px) {
  .papss-home { grid-template-columns: 1fr; padding: 26px 20px; gap: 22px; }
  .papss-home h2 { font-size: 26px; }
  .ph-points { grid-template-columns: 1fr; }
}
.papss-page { max-width: 1080px; margin: 0 auto; }
.pp-hero { padding: 40px 0 8px; max-width: 760px; }
.pp-hero h1 { font-size: 56px; line-height: 1.03; letter-spacing: -.045em; margin: 0 0 16px; }
.pp-hero .lead { font-size: 19px; line-height: 1.5; color: var(--muted); margin-bottom: 26px; }
.pp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0 12px; }
.pp-stats div { background: var(--surface); border-radius: 18px; padding: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); display: flex; flex-direction: column; gap: 4px; }
.pp-stats b { font-size: 34px; letter-spacing: -.035em; color: var(--accent); line-height: 1; }
.pp-stats span { font-size: 13.5px; color: var(--muted); }
.pp-block { margin: 48px 0 0; }
.pp-block > h2 { font-size: 30px; letter-spacing: -.03em; margin: 0 0 12px; }
.pp-block > p { max-width: 720px; font-size: 16.5px; line-height: 1.6; }
.pp-mb { background: var(--surface); border-radius: 24px; padding: 32px; box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 50px rgba(0, 0, 0, .06); }
.pp-group { margin: 22px 0 0; }
.pp-group h3 { font-size: 18px; margin: 0 0 2px; }
.pp-group p { margin: 0 0 10px; }
.pp-cta { margin: 56px 0 0; text-align: center; padding: 40px 24px; border-radius: 24px; background: linear-gradient(135deg, #0b1f1b, #12352e); color: #fff; }
.pp-cta h2 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 8px; }
.pp-cta p { color: rgba(255, 255, 255, .78); max-width: 560px; margin: 0 auto 20px; }
.pp-cta .btn-primary { background: #fff; color: #1d1d1f; }
@media (max-width: 860px) {
  .pp-hero h1 { font-size: 38px; }
  .pp-stats { grid-template-columns: repeat(2, 1fr); }
  .pp-stats b { font-size: 28px; }
  .pp-mb { padding: 24px 20px; }
}
.papss-home { margin-bottom: 28px; }
.pp-group h3 { color: var(--ink); }
.pp-group h3 .muted { font-weight: 500; margin-left: 4px; }
#countries > p.small { margin-top: 18px; color: var(--muted); }
.hero h1 .h1-papss { display: block; font-size: .5em; letter-spacing: -.025em; font-weight: 700; color: var(--muted); margin-top: 12px; }
.hero h1 .h1-papss a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: rgba(11, 122, 104, .35); }
.hero h1 .h1-papss a:hover { text-decoration-color: var(--accent); }
html { scroll-behavior: smooth; }
#papss { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.auth-card .btn-block { white-space: normal; text-align: center; line-height: 1.3; }
.center-stage { padding: 0 16px; }
ul.ticks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
ul.ticks li { position: relative; padding-left: 26px; line-height: 1.5; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
details.danger-zone { margin-top: 18px; }
details.danger-zone summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
details.danger-zone[open] summary { margin-bottom: 12px; }
.price-why { color: var(--muted); max-width: 560px; margin: 0 auto 18px; line-height: 1.55; font-size: 14.5px; }
.story-promises { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.story-promises li { background: var(--surface); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.story-promises b { font-size: 17px; color: var(--accent); }
.story-promises span { color: var(--ink); line-height: 1.55; }
#pricing-why { scroll-margin-top: 80px; }

/* Free year and data promise */
.trust { max-width: 1080px; margin: 0 auto 28px; padding: 36px; border-radius: 24px; background: var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 50px rgba(0, 0, 0, .06); }
.trust-head { max-width: 720px; }
.trust-head h2 { font-size: 32px; letter-spacing: -.03em; margin: 0 0 10px; }
.trust-head p { color: var(--muted); line-height: 1.55; margin: 0; }
.trust-grid { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust-grid li { background: var(--bg, #f5f5f7); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.trust-grid li .ic { width: 22px; height: 22px; color: var(--accent); }
.trust-grid b { font-size: 17px; }
.trust-grid span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.trust-more { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
@media (max-width: 860px) { .trust { padding: 26px 20px; } .trust-grid { grid-template-columns: 1fr; } .trust-head h2 { font-size: 26px; } }
.center-text { text-align: center; margin: 12px 0 0; }
.vault-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: #fff8ea; margin-bottom: 16px; font-size: 14px; }
.vault-bar.open { background: #e9f6f2; }
.vault-bar input[type=password] { width: 240px; max-width: 100%; }
.recovery-key { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .03em; background: #fff; border: 2px dashed var(--accent); border-radius: 12px; padding: 14px 16px; word-break: break-all; }
.rec-match { background: var(--fill); border-radius: 14px; padding: 12px 14px; margin: 8px 0; font-size: 14px; }
.rec-match .app-docs { margin-top: 8px; }

/* Security first */
.hero-secure { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px; border-radius: 14px; background: #0f2b25; color: #e9f6f2; font-size: 14.5px; line-height: 1.4; }
.hero-secure b { color: #fff; }
.hero-secure:hover { color: #fff; background: #12352e; }
.trust-dark { background: linear-gradient(145deg, #0b1f1b, #12352e); color: #fff; margin-top: 28px; }
.trust-dark .eyebrow { color: #7fd8c6; }
.trust-dark .trust-head p { color: rgba(255, 255, 255, .78); font-size: 16.5px; }
.trust-dark .trust-head h2 { font-size: 36px; }
.trust-dark .trust-grid { grid-template-columns: repeat(4, 1fr); }
.trust-dark .trust-grid li { background: rgba(255, 255, 255, .07); }
.trust-dark .trust-grid li .ic { color: #7fd8c6; }
.trust-dark .trust-grid span { color: rgba(255, 255, 255, .72); }
.btn-light { background: #fff; color: #1d1d1f; }
.btn-light:hover { background: #e9f6f2; color: #1d1d1f; }
#security { scroll-margin-top: 80px; }
@media (max-width: 1000px) { .trust-dark .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .trust-dark .trust-grid { grid-template-columns: 1fr; } .trust-dark .trust-head h2 { font-size: 28px; } }
.sec-page { max-width: 1080px; margin: 0 auto; }
.sec-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.sec-col { border-radius: 22px; padding: 28px; }
.sec-col h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 14px; }
.sec-col ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 9px; }
.sec-col li { position: relative; padding-left: 28px; line-height: 1.5; }
.sec-no { background: linear-gradient(145deg, #0b1f1b, #12352e); color: #fff; }
.sec-no li::before { content: "✕"; position: absolute; left: 0; color: #7fd8c6; font-weight: 700; }
.sec-no p { color: rgba(255, 255, 255, .8); margin: 0; }
.sec-no b { color: #fff; }
.sec-yes { background: var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 50px rgba(0, 0, 0, .06); }
.sec-yes li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.sec-yes p { margin: 0; }
@media (max-width: 860px) { .sec-split { grid-template-columns: 1fr; } .sec-col { padding: 22px 20px; } }

/* Conversations */
.convo { max-width: 760px; margin: 0 auto; padding-top: 24px; }
.convo h1 { font-size: 34px; letter-spacing: -.03em; margin: 0 0 6px; }
.bubble { border-radius: 18px; padding: 14px 18px; margin: 12px 0; max-width: 88%; line-height: 1.55; white-space: normal; }
.bubble .b-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.bubble.you { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.bubble.us { background: #e9f6f2; margin-left: auto; }
.app-card .bubble { max-width: 92%; }
.app-card .bubble.you { background: var(--fill); box-shadow: none; }
.reply-form { margin-top: 14px; }
.msg-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.app-card.answered { opacity: .85; }
.wide-card { max-width: 480px; }
nav.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
nav.subtabs a { padding: 6px 14px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 14px; }
nav.subtabs a.on { background: var(--ink); color: #fff; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 28px 16px; border: 2px dashed var(--line); border-radius: 18px; background: var(--fill); cursor: pointer; text-align: center; margin-bottom: 12px; transition: border-color .15s, background .15s; }
.drop-zone.over, .drop-zone:hover { border-color: var(--accent); background: #e9f6f2; }
.drop-zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.inbox-tbl td { vertical-align: top; }

/* Account menu (avatar) and a sign-out that is always reachable on phones */
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px; border-radius: 999px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: rgba(0, 0, 0, .045); }
.user-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .16); padding: 8px; z-index: 50; display: flex; flex-direction: column; }
.user-pop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 14.5px; }
.user-pop a:hover { background: var(--fill); }
.user-pop a .ic { width: 18px; height: 18px; color: var(--muted); }
.user-pop .up-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.user-pop .up-who small { color: var(--muted); font-size: 12.5px; word-break: break-all; }
.user-pop .up-out { color: #c0392b; }
.user-pop .up-out .ic { color: #c0392b; }
.side { height: 100vh; height: 100dvh; }
@media (max-width: 900px) {
  .side { padding-bottom: env(safe-area-inset-bottom); }
  .side-foot { background: inherit; }
}

/* What the fee pays for */
.fee-box { text-align: left; background: #eef7f4; border: 1px solid rgba(11, 122, 104, .18); border-radius: 18px; padding: 18px 20px; margin: 14px 0; max-width: 640px; }
.fee-in-price { margin: 16px auto; }
.fee-head { display: flex; gap: 12px; align-items: flex-start; }
.fee-ic { font-size: 22px; line-height: 1; }
.fee-head b { display: block; font-size: 16px; letter-spacing: -.01em; }
.fee-head span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.fee-box ul { list-style: none; padding: 0; margin: 12px 0 10px 34px; display: grid; gap: 6px; }
.fee-box li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.45; }
.fee-box li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.fee-foot { margin: 0 0 0 34px; font-size: 13.5px; color: var(--muted); }
.trust-fee { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 14px 16px; color: rgba(255, 255, 255, .85); margin: 0 0 18px; max-width: 760px; }
.trust-fee b { color: #fff; }
details.fee-details { margin: -4px 0 16px; }
details.fee-details summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 500; }
@media (max-width: 600px) { .fee-box ul, .fee-foot { margin-left: 0; } }

/* Top row: who we are (left) and private by design (right, above sign in) */
.hero-pills { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; padding-top: 28px; }
.hero-pills .who-pill { margin: 0; justify-self: start; }
.hero-pills .hero-secure { margin: 0; justify-self: stretch; border-radius: 999px; padding: 8px 18px 8px 14px; font-size: 13.5px; }
.hero-pills + .landing { padding-top: 22px; }
@media (max-width: 860px) {
  .hero-pills { grid-template-columns: 1fr; gap: 10px; padding-top: 12px; }
  .hero-pills .hero-secure { justify-self: start; border-radius: 14px; }
  .hero-pills + .landing { padding-top: 14px; }
}
.target-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.target-pick label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--fill); cursor: pointer; border: 2px solid transparent; }
.target-pick label:has(input:checked) { border-color: var(--accent); background: #e9f6f2; }
.target-pick input { margin-top: 3px; }
.target-pick span { display: flex; flex-direction: column; }
.target-pick small { color: var(--muted); font-size: 12.5px; }

/* Loans: past loans entry */
fieldset.past-row { min-width: 0; margin: 0 0 16px; }
fieldset.past-row legend { font-weight: 600; padding: 0 6px; }
fieldset.past-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
fieldset.past-row input, fieldset.past-row select { min-width: 0; width: 100%; }
@media (max-width: 1100px) { fieldset.past-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { fieldset.past-row .span3 { grid-column: 1 / -1; } }

/* Payroll */
.lines-ed input:not([type=checkbox]), .lines-ed select { width: 100%; min-width: 0; }
.lines-ed .line-opts label.check { display: inline-flex; gap: 6px; align-items: center; width: auto; margin: 0; }
.lines-ed td { vertical-align: top; }
.lines-ed .line-opts { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; min-width: 220px; }
.lines-ed .line-opts label.small { display: flex; gap: 6px; align-items: center; }
.tbl-wrap { overflow-x: auto; }
.totals-tbl tr.grand td { border-top: 2px solid var(--ink, #1d2a35); }
table.bands input { width: 100%; }
.grid2 > *, .grid3 > *, .grid4 > * { min-width: 0; }
@media (max-width: 700px) {
  .lines-ed thead { display: none; }
  .lines-ed, .lines-ed tbody { display: block; }
  .lines-ed tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line, #e3e7ea); }
  .lines-ed td { display: block; padding: 0; border: 0; }
  .lines-ed td:nth-child(2), .lines-ed td.line-opts { grid-column: 1 / -1; }
  .lines-ed td:nth-child(2) { grid-row: 2; }
  .lines-ed .line-opts { min-width: 0; }
}
fieldset.pay-access { border: 1px solid var(--line, #e3e7ea); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
fieldset.pay-access legend { font-weight: 600; padding: 0 6px; }
fieldset.pay-access label.check { align-items: flex-start; }

/* Company switcher (top bar) */
.co-switch { position: relative; min-width: 0; }
.co-switch summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 4px; padding: 6px 10px; margin-left: -10px; border-radius: 12px; min-width: 0; }
.co-switch summary::-webkit-details-marker { display: none; }
.co-switch summary:hover { background: rgba(0, 0, 0, .045); }
.co-switch .co-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-switch .co-caret { color: var(--muted); font-size: 12px; margin-left: 4px; }
.co-pop { position: absolute; left: -10px; top: calc(100% + 6px); min-width: 300px; max-width: min(380px, calc(100vw - 32px)); background: var(--surface); border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .16); padding: 8px; z-index: 60; display: flex; flex-direction: column; gap: 2px; font-weight: 400; }
.co-pop form { margin: 0; }
.co-head { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 12px 6px; }
.co-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; font: inherit; color: var(--ink); }
.co-item:hover:not(:disabled) { background: var(--fill); }
.co-item.on { cursor: default; background: var(--fill); }
.co-item .co-check { width: 16px; color: var(--brand, #0b7a68); font-weight: 700; flex: none; }
.co-item .co-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.co-item .co-txt b { font-weight: 600; font-size: 14.5px; }
.co-item .co-txt small { color: var(--muted); font-size: 12.5px; margin: 0; }
.co-add { display: block; padding: 10px 12px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--brand, #0b7a68); font-size: 14px; border-radius: 0 0 10px 10px; }
@media (max-width: 700px) {
  .co-switch summary small { display: none; }
  .co-switch .co-name { max-width: 52vw; display: inline-block; }
  .co-pop { position: fixed; left: 16px; right: 16px; top: 60px; min-width: 0; max-width: none; }
}
.copy-link { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.agr-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Financing */
.fin-intro { max-width: 860px; }
.fin-intro h2 { font-size: 26px; letter-spacing: -.02em; margin: 6px 0 8px; }
.fin-steps { list-style: none; counter-reset: fs; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.fin-steps li { counter-increment: fs; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; }
.fin-steps li::before { content: counter(fs); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-weight: 700; color: var(--brand, #0b7a68); }
.fin-steps span { color: var(--muted); }
.fin-promise { background: var(--fill); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.fin-promise p { margin: 0; }
.fin-score-card { display: flex; gap: 22px; align-items: center; }
.fin-dial { --deg: 0deg; flex: none; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, var(--surface) 78%, transparent 79%), conic-gradient(var(--dial, #0b7a68) var(--deg), var(--fill-2, #e8e8ed) 0); }
.fin-dial[data-grade="almost-there"] { --dial: #d68910; }
.fin-dial[data-grade="not-yet"] { --dial: #c0392b; }
.fin-dial b { font-size: 36px; line-height: 1; letter-spacing: -.03em; }
.fin-dial span { font-size: 12px; color: var(--muted); }
.fin-req { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fin-req li { display: flex; gap: 12px; align-items: flex-start; }
.fin-req .fr-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.fin-req li.ok .fr-ic { background: #e3f4ee; color: #0b7a68; }
.fin-req li.no .fr-ic { background: #fdecea; color: #c0392b; }
.fin-req small { display: block; color: var(--muted); }
.fin-req .fr-tip { color: var(--ink); margin-top: 2px; }
.fin-tips { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.fin-foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.fin-foot p { margin: 0; max-width: 760px; }
@media (max-width: 700px) { .fin-score-card { flex-direction: column; align-items: flex-start; } }

/* Home: financing and payroll */
.home-fin { max-width: 1120px; margin: 64px auto; padding: 0 20px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.home-fin h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.025em; line-height: 1.1; margin: 8px 0 12px; }
.home-fin .lead { color: var(--muted); }
.hf-points { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.hf-points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.hf-points li::before { content: "✓"; color: var(--brand, #0b7a68); font-weight: 700; }
.hf-card { background: var(--surface); border-radius: 24px; padding: 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, .08); }
.hf-card .fin-dial { width: 110px; height: 110px; }
.hf-row { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.hf-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.hf-list li { display: flex; gap: 10px; align-items: center; }
.hf-list i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: #e3f4ee; color: #0b7a68; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.hf-small { font-size: 13px; color: var(--muted); margin-top: 14px; }
.home-payroll { max-width: 1120px; margin: 0 auto 56px; padding: 0 20px; }
.hp-in { background: var(--fill); border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; }
.hp-in h2 { font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -.02em; margin: 6px 0 10px; }
.hp-in p { color: var(--muted); margin: 0 0 12px; }
.hp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp-grid div { background: var(--surface); border-radius: 16px; padding: 14px 16px; }
.hp-grid b { display: block; margin-bottom: 2px; }
.hp-grid span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .home-fin, .hp-in { grid-template-columns: 1fr; } .home-fin { margin: 44px auto; } .hp-grid { grid-template-columns: 1fr; } }

/* Business plan */
.plan-rows td { padding: 4px 4px; vertical-align: top; }
.plan-rows { table-layout: auto; }
.plan-rows th { font-size: 12px; white-space: nowrap; }
.plan-rows input, .plan-rows select { width: 100%; padding: 7px 8px; font-size: 14px; }
.plan-rows td:first-child input { min-width: 190px; }
.plan-rows select { min-width: 165px; }
.plan-rows .num-in { text-align: right; min-width: 74px; width: 84px; }
.pl-chart { width: 100%; height: auto; display: block; }
.pl-legend { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.pl-legend span { display: inline-block; width: 12px; height: 3px; margin: 0 5px 3px 10px; vertical-align: middle; }
.small-tbl { font-size: 13px; }
.small-tbl td, .small-tbl th { padding: 6px 8px; white-space: nowrap; }
.plan-form label small { font-weight: 400; }
.cards2 > * { min-width: 0; }
.hf-start { background: var(--surface); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; font-size: 15px; }

/* Home: everything you get */
.benefits { margin: 64px 0; }
.ben-head { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.ben-head h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.03em; line-height: 1.08; margin: 8px 0 12px; }
.ben-head .lead { color: var(--muted); margin: 0; }
.ben-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ben-group { background: var(--surface); border-radius: var(--r-lg, 22px); box-shadow: var(--shadow); padding: 24px 24px 10px; }
.ben-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent, #0b7a68); margin: 0 0 14px; font-weight: 700; }
.ben-group ul { list-style: none; padding: 0; margin: 0; }
.ben-group li { display: flex; gap: 14px; align-items: flex-start; padding: 0 0 16px; }
.ben-group li + li { border-top: 1px solid var(--line); padding-top: 16px; }
.ben-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--tint, #e3f4ee); color: var(--accent, #0b7a68); }
.ben-ic .ic { width: 20px; height: 20px; }
.ben-group b { display: block; font-size: 16px; letter-spacing: -.01em; margin-bottom: 2px; color: var(--ink); }
.ben-group li span:not(.ben-ic) { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.ben-facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ben-facts li { background: var(--fill); border-radius: 18px; padding: 16px 18px; text-align: center; }
.ben-facts b { display: block; font-size: 26px; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.ben-facts span { font-size: 13.5px; color: var(--muted); }
.ben-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 860px) {
  .benefits { margin: 44px 0; }
  .ben-groups { grid-template-columns: 1fr; }
  .ben-facts { grid-template-columns: 1fr 1fr; }
  .ben-head { text-align: left; }
  .ben-cta { justify-content: flex-start; }
}

/* Add-ons */
.addon-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: #fff4e0; color: #8a5a00; vertical-align: 2px; margin-left: 4px; }
.addon-up { max-width: 760px; }
.addon-up h2 { font-size: 26px; letter-spacing: -.02em; margin: 6px 0 8px; }
.addon-price { font-size: 17px; }

/* Cleaner home: compact benefits, sections inside the panels */
.home-fin { margin-top: 40px; }
.ben-compact .ben-group li > div > span { display: none; }
.ben-compact .ben-group li { padding-bottom: 10px; align-items: center; }
.ben-compact .ben-group li + li { padding-top: 10px; }
.ben-compact .ben-group b { margin: 0; font-size: 15px; }
.ben-compact .ben-ic { width: 32px; height: 32px; border-radius: 10px; }
.ben-compact .ben-ic .ic { width: 17px; height: 17px; }
.ben-toggle-row { text-align: center; margin: 14px 0 0; }
.acc-body .flow-in { box-shadow: none; margin: 0; padding: 6px 0 0; background: none; }
.acc-body .home-payroll.in-acc { margin: 0; padding: 0; max-width: none; }
.acc-body .home-payroll.in-acc .hp-in { padding: 0; background: none; }
.acc-body .papss-home.in-acc { margin: 0; padding: 0; box-shadow: none; background: none; max-width: none; }
@media (max-width: 860px) { .ben-toggle-row { text-align: left; } }

/* Public header: one tidy line, burger when there is no room */
.pub-links a { white-space: nowrap; }
.pub-links a.pub-more { display: none; }
.pub-sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 6px; }
.pub-links a.pill { padding: 8px 16px; font-weight: 600; }
@media (max-width: 1240px) { .pill-offer { display: none; } }
@media (max-width: 1080px) {
  .pub-burger { display: grid !important; gap: 5px; margin-left: auto; cursor: pointer; padding: 10px; }
  .pub-burger span { display: block; width: 20px; height: 1.6px; background: var(--ink); border-radius: 2px; }
  .pub-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: rgba(245, 245, 247, .97); border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .08); }
  .pub-toggle:checked ~ .pub-links { display: flex; }
  .pub-links a { padding: 11px 12px; font-size: 15px; }
  .pub-links a.pub-more { display: block; }
  .pub-sep { display: none; }
  .pub-links a.pill { margin: 8px 0 0; text-align: center; }
  .pill-offer { display: inline; }
}

/* Top row above the hero: two light cards, aligned with the columns below */
.hero-pills { align-items: stretch; }
.hero-pills .who-pill { align-self: center; }
.hero-pills .hero-secure { background: #e9f6f2; color: var(--ink-2); border-radius: 16px; padding: 10px 16px; font-size: 13.5px; line-height: 1.45; box-shadow: 0 0 0 1px rgba(11, 122, 104, .12); align-items: flex-start; }
.hero-pills .hero-secure b { color: var(--ink); }
.hero-pills .hero-secure:hover { background: #dff1eb; color: var(--ink); }
.hero-pills .hero-secure > span:first-child { font-size: 15px; line-height: 1.3; }
.planner-note { background: #e9f6f2; box-shadow: 0 0 0 1px rgba(11, 122, 104, .12); }
.planner-del { background: none; box-shadow: none; padding: 0 4px; }

/* Free business planner one-pager (r=start) */
.start-page { max-width: 1120px; margin: 0 auto; }
.start-page section { margin: 0 0 48px; }
.st-hero { display: grid; grid-template-columns: 1.2fr .9fr; gap: 48px; align-items: center; padding-top: 24px; }
.st-hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 16px; }
.st-hero .lead { font-size: 18.5px; line-height: 1.5; max-width: 34em; }
.st-hero .lead b { color: var(--ink); font-weight: 600; }
.st-ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.st-ticks li { position: relative; padding-left: 30px; font-weight: 550; }
.st-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--tint); color: var(--accent); font-size: 12px; display: grid; place-items: center; }
.st-form { justify-self: end; }
.st-example { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 32px; }
.st-ex-head h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.025em; margin: 0 0 8px; max-width: 30em; }
.st-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.st-kpis > div { background: var(--fill-2, #f4f6f8); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-kpis span { font-size: 13px; color: var(--muted); }
.st-kpis b { font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
.st-kpis small { font-size: 12.5px; color: var(--muted); }
.st-chart { overflow-x: auto; }
.st-chart svg { width: 100%; height: auto; min-width: 420px; }
.st-insight { background: #fff7e6; border-radius: 14px; padding: 14px 18px; margin: 18px 0 0; }
.st-how h2, .st-who h2, .st-final h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.03em; margin: 0 0 18px; }
.st-steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.st-steps li { counter-increment: st; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.st-steps li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 6px; }
.st-steps span { color: var(--muted); font-size: 14.5px; }
.st-who { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.st-who p { color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.st-private { background: #e9f6f2; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.st-private span { color: var(--muted); }
.st-final { text-align: center; padding: 20px 0 30px; }
@media (max-width: 900px) {
  .st-hero, .st-who { grid-template-columns: 1fr; gap: 28px; }
  .st-form { justify-self: stretch; max-width: none; }
  .st-kpis, .st-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .st-example { padding: 22px 18px; }
  .st-kpis, .st-steps { grid-template-columns: 1fr; }
}

/* Bookkeeping hints in the free planner */
.books-why { background: linear-gradient(135deg, #e9f6f2, #fff 70%); box-shadow: 0 0 0 1px rgba(11, 122, 104, .14); }
.books-why h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 14px; }
.bw-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.bw-list li { display: flex; flex-direction: column; gap: 4px; padding-left: 26px; position: relative; }
.bw-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--accent); font-weight: 700; }
.bw-list span { color: var(--muted); font-size: 14.5px; }
.bw-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; }
.books-tip { background: #e9f6f2; box-shadow: 0 0 0 1px rgba(11, 122, 104, .12); }
.books-tip p { margin: 0 0 10px; }
.books-tip p:last-child { margin: 0; }
.books-hint { margin: 14px 4px 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .bw-list { grid-template-columns: 1fr; } }

/* Suggested accounts on drafts from the Inbox: always check */
.ai-check { display: flex; gap: 14px; align-items: flex-start; background: #fff7e6; border-radius: var(--r-lg); padding: 14px 18px; margin: 0 0 16px; box-shadow: 0 0 0 1px rgba(180, 120, 0, .18); }
.ai-check p { margin: 0; font-size: 14.5px; }
.ai-badge { flex: none; background: #1d1d1f; color: #fff; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 520px) { .ai-check { flex-direction: column; gap: 8px; } }

/* Business plan: the story questions */
.pitch-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.pitch-head h2 { margin: 0 0 6px; }
.pitch-head p { margin: 0; max-width: 46em; }
.pitch-progress { flex: none; background: var(--tint); color: var(--accent); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; white-space: nowrap; }
.pitch-qs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.pitch-q { display: grid; grid-template-columns: 28px 1fr; gap: 6px 10px; align-items: start; }
.pitch-q.wide { grid-column: 1 / -1; }
.pitch-card > .pitch-q.wide { grid-template-columns: 1fr; margin-top: 16px; }
.pitch-q textarea { grid-column: 1 / -1; }
.pq-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; margin-top: 1px; }
.pq-text { display: flex; flex-direction: column; gap: 2px; }
.pq-text b { color: var(--ink); font-size: 15px; font-weight: 650; }
.pq-text small { color: var(--muted); font-size: 13px; font-weight: 400; }
.pitch-card textarea::placeholder, .pitch-card input::placeholder { color: #a3abb4; font-style: italic; }
.pitch-card label small.muted { display: block; margin-top: 6px; font-weight: 400; }
.autosave-status { margin-left: 6px; }
.draft-restore { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
@media (max-width: 760px) { .pitch-qs { grid-template-columns: 1fr; } .pitch-head { flex-direction: column; } }

/* Month picker: month and year as one control */
.month-pick { display: flex; width: 100%; border: 1px solid var(--line-2, #d2d2d7); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.month-pick:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(11, 122, 104, .12); }
.month-pick select { border: 0; border-radius: 0; box-shadow: none !important; background-color: transparent; min-width: 0; }
.month-pick select:first-child { flex: 1.6; }
.month-pick select + select { flex: 1; border-left: 1px solid var(--line); }

/* Business plan tables: names, numbers and amounts look different */
.plan-rows th.pr-num { text-align: right; }
.plan-rows td.pr-num input { text-align: right; }
.plan-rows td.pr-name input { min-width: 190px; }
.unit-in { position: relative; display: block; }
.unit-in .unit { position: absolute; top: 50%; transform: translateY(-50%); left: 11px; color: #a1a1a6; font-size: 12.5px; font-weight: 500; pointer-events: none; letter-spacing: .02em; }
.unit-in input { padding-left: 46px; min-width: 110px; }
.unit-in.suf .unit { left: auto; right: 11px; }
.unit-in.suf input { padding-left: 10px; padding-right: 26px; min-width: 80px; }
.plan-rows input[type=number] { -moz-appearance: textfield; }
.plan-rows input[type=number]::-webkit-outer-spin-button, .plan-rows input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.plan-rows input.name-warn { border-color: #d97706; background: #fff7e6; }
.plan-rows .unit-in .num-in { width: 100%; min-width: 108px; padding-left: 46px; }
.plan-rows .unit-in.suf .num-in { min-width: 80px; padding-left: 8px; padding-right: 26px; }
.plan-rows select { min-width: 190px; }

/* Business plan: What if, story, compare */
.wi-story ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wi-story li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; }
.wi-story li::before { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.wi-story li.st-ok::before { content: "✓"; background: var(--accent); }
.wi-story li.st-warn::before { content: "!"; background: #d97706; }
.wi-story li.st-bad::before { content: "!"; background: #c0392b; }
.wi-story-wrap { align-items: start; }
#wi-out { transition: opacity .15s; }
#wi-out.wi-busy { opacity: .55; }
#wi-out.wi-changed .kpi { box-shadow: 0 0 0 2px rgba(11, 122, 104, .35), var(--shadow); }
.wi-delta { display: inline-block; margin: 2px 0 2px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.wi-delta.up { background: #e3f4ec; color: #146c43; }
.wi-delta.down { background: #fdecea; color: #b42318; }
.wi { border: 2px solid rgba(11, 122, 104, .18); }
.wi-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.wi-head h2 { margin: 0 0 6px; }
.wi-head p { margin: 0; max-width: 40em; }
.wi-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wi-actions[hidden] { display: none; }
.wi-levers { margin: 18px 0 6px; }
.wi-levers h3, .wi-group h3 { font-size: 15px; margin: 0 0 4px; }
.wi-levers ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.wi-lever { width: 100%; text-align: left; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); padding: 11px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.wi-lever:hover { border-color: var(--accent); }
.wi-lever.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 122, 104, .15); }
.wi-lever b { font-size: 14px; font-weight: 600; }
.wi-lever small { color: var(--muted); font-size: 12.5px; }
.wi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 28px; margin-top: 20px; }
.wi-group { display: flex; flex-direction: column; gap: 10px; }
.wi-slider span { display: flex; justify-content: space-between; font-size: 14px; }
.wi-slider output { font-weight: 650; color: var(--accent); }
.wi-slider input[type=range] { width: 100%; padding: 0; min-height: 0; border: 0; background: none; accent-color: var(--accent); margin-top: 6px; }
.wi-row { display: grid; grid-template-columns: 1fr 140px; gap: 10px; align-items: center; font-size: 14px; }
.wi-row .check { margin: 0; }
.wi-num { display: grid; grid-template-columns: 1fr 110px; align-items: center; gap: 10px; font-size: 14px; }
.wi .unit-in input { padding-left: 46px; text-align: right; }
.plan-switch select { min-height: 32px; padding: 4px 30px 4px 10px; font-size: 13.5px; max-width: 240px; }
.plan-switch { display: inline-block; }
.cmp td.cmp-best { color: #146c43; font-weight: 650; background: #eef8f3; }
.cmp th { vertical-align: bottom; }
.wi-live { position: sticky; top: 64px; z-index: 5; margin: 16px -8px 0; padding: 8px; background: rgba(245, 245, 247, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--r); }
.wi-live .kpis { margin: 0; gap: 8px; }
.wi-live .kpi { padding: 10px 14px; box-shadow: none; border: 1px solid var(--line); }
.wi-live .kpi b { font-size: 18px; }
.wi-live .kpi small { display: none; }
.wi-live .kpi > span { font-size: 12px; }
@media (max-width: 760px) { .wi-live { top: 56px; } .wi-live .kpi b { font-size: 15px; } }
.wi-delta { align-self: flex-start; width: auto; }
@media (max-width: 760px) {
  .wi-live .kpis { grid-template-columns: 1fr 1fr; }
  .wi-live .kpi { padding: 7px 10px; }
  .wi-live .kpi > span { font-size: 11px; }
  .wi-live .wi-delta { font-size: 10.5px; padding: 0 6px; }
}

/* Admin: one-line tab bar, tidy tables */
body.app .tabs { max-width: 100%; }
body.app .tabs a { white-space: nowrap; }
.tab-count { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.adm-cos td.ellipsis { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-cos td { vertical-align: middle; }
.adm-sub { align-items: start; }
.adm-sub h3 { font-size: 15px; margin: 0 0 10px; }
.adm-codes td:nth-child(3) { min-width: 220px; }
.adm-code-form form { max-width: 720px; }
td.nowrap, th.nowrap { white-space: nowrap; }

.row-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.row-actions form { margin: 0; }
.adm-cos td:first-child { min-width: 210px; }
small.nowrap, .muted.nowrap { white-space: nowrap; }
body.app .tabs a { padding: 7px 11px; }
.adm-codes td:nth-child(3) { min-width: 180px; }
.row-actions .btn-link { padding-left: 0; padding-right: 0; }

/* Business directory */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 14px; }
.dir-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); transition: box-shadow .15s, transform .15s; margin: 0; }
.dir-card:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(11, 122, 104, .25), var(--shadow); }
.dir-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; flex: 1; }
.dir-top { display: flex; gap: 12px; align-items: center; }
.dir-top b { display: block; font-size: 15.5px; }
.dir-top small { display: block; }
.dir-logo { flex: none; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(145deg, #13506b, #0b7a68); color: #fff; font-weight: 700; display: grid; place-items: center; }
.dir-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dir-chip { display: inline-block; background: var(--fill); color: var(--ink-2); border-radius: 999px; padding: 2px 10px; font-size: 12px; margin: 0 4px 4px 0; }
.dir-filters input[type=search] { flex: 1; min-width: 240px; }
.dir-filters select { width: auto; }
.dir-invite { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #e9f6f2; box-shadow: 0 0 0 1px rgba(11, 122, 104, .12); }
.dir-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-optin { background: var(--fill); border-radius: var(--r); padding: 12px 14px; margin: 6px 0 16px; }
.dir-cats { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.dir-cats legend { font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.dir-cats .check { margin: 0; font-size: 14px; }
.adm-dir td small.muted { font-size: 11.5px; }
body.app .tabs a { padding: 7px 9px; font-size: 13px; }
.pub-page { max-width: 1120px; margin: 0 auto; padding-top: 24px; }
.pub-page h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; margin: 0 0 10px; }
.pub-page .lead { margin-bottom: 22px; max-width: 46em; }
.pub-page .crumbs { margin: 0 0 6px; font-size: 14px; }
.pub-page .crumbs a { color: var(--muted); }
.auth-wrap { display: flex; justify-content: center; padding: 48px 0; }
.dir-vis { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.dir-vis legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.dir-vis-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; cursor: pointer; }
.dir-vis-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 122, 104, .12); }
.dir-vis-opt.off { opacity: .6; cursor: not-allowed; }
.dir-vis-opt span { display: flex; flex-direction: column; gap: 3px; }
.dir-vis-opt small { color: var(--muted); font-size: 13px; font-weight: 400; }
.dir-checks { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.dir-checks li { position: relative; padding-left: 24px; font-size: 14px; }
.dir-checks li::before { position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; font-size: 10.5px; font-weight: 700; color: #fff; display: grid; place-items: center; }
.dir-checks .dc-ok::before { content: "✓"; background: var(--accent); }
.dir-checks .dc-wait::before { content: "…"; background: #d97706; }
.dir-checks .dc-no::before { content: "!"; background: #c0392b; }
.dir-vis-now { margin: 0; }
.dir-review { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.dir-review p { margin: 4px 0; }
.dir-review .inline-form input { width: 200px; }
.form .dir-vis-opt, .dir-vis-opt { display: flex; flex-direction: row; }
.dir-vis-opt input[type=radio] { margin-top: 2px; flex: none; }

/* Order delivery steps and signatures */
.sigpad-wrap { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.sigpad-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--fill); font-size: 13px; color: var(--muted); }
.sig-clear { font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; font-weight: 600; }
.sigpad { display: block; width: 100%; height: 170px; touch-action: none; background: #fff; cursor: crosshair; }
.ff-steps { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: none; }
.ff-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 13px; color: var(--muted); }
.ff-steps li::after { content: ""; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--line-2); }
.ff-steps li:last-child::after { display: none; }
.ff-steps li.done::after { background: var(--accent); }
.ff-steps b { font-weight: 600; color: var(--ink-2); }
.ff-steps small { font-size: 11.5px; }
.ff-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--muted); font-weight: 700; font-size: 12px; }
.ff-steps li.done .ff-dot, .ff-steps li.now .ff-dot { background: var(--accent); color: #fff; }
.ff-steps li.now b { color: var(--accent); }
.ff-act { border-top: 1px solid var(--line); padding-top: 16px; }
.ff-act p { margin: 0 0 12px; }
.ff-signed { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--fill); border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; }
.ff-signed div { display: flex; flex-direction: column; }
.ff-signed img { height: 60px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.badge.b-f-ready { background: #fff4de; color: #8a5a00; }
.badge.b-f-collected { background: #e8efff; color: #2747a8; }
.badge.b-f-out { background: #efe8ff; color: #5b2fb0; }
.badge.b-f-delivered { background: #e3f4ec; color: #146c43; }
@media (max-width: 760px) { .ff-steps { grid-template-columns: 1fr; } .ff-steps li { flex-direction: row; text-align: left; } .ff-steps li::after { display: none; } }

/* Handover app (phone, offline) */
.ho-body { background: var(--bg, #f5f5f7); }
.ho { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: 30px; }
.ho-top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top)); background: #0b7a68; color: #fff; }
.ho-top b { font-size: 18px; display: block; }
.ho-top small { opacity: .85; font-size: 12.5px; }
.ho-net { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.2); }
.ho-net.off { background: #fbbf24; color: #3a2a00; }
.ho-pad { padding: 12px 16px; }
.ho-queue { padding: 8px 16px 0; display: grid; gap: 8px; }
.ho-wait, .ho-prob { border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ho-wait { background: #fff4de; }
.ho-prob { background: #fdecea; }
.ho-h { font-size: 15px; margin: 18px 16px 8px; color: var(--ink-2); }
.ho-h small { color: var(--muted); font-weight: 500; }
.ho-list { display: grid; gap: 8px; padding: 0 16px; }
.ho-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 0; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); font: inherit; color: var(--ink); cursor: pointer; }
.ho-card span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ho-card small { color: var(--muted); font-size: 12.5px; }
.ho-card .badge { flex: none; }
.ho-title { font-size: 22px; margin: 6px 0 2px; }
.ho-items { list-style: none; padding: 0; margin: 0 0 16px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); }
.ho-items li { padding: 12px 14px; border-top: 1px solid var(--line); }
.ho-items li:first-child { border-top: 0; }
.ho-items .check { margin: 0; align-items: flex-start; }
.ho form input { font-size: 16px; }
.ho .sigpad { height: 190px; }
.btn-block { width: 100%; justify-content: center; margin-top: 12px; padding: 13px; font-size: 16px; }
.ho-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; }
.ho-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; background: #1d1d1f; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; transition: all .2s; pointer-events: none; z-index: 20; max-width: 90vw; text-align: center; }
.ho-toast.on { opacity: 1; transform: translate(-50%, 0); }
.badge.b-f-confirmed { background: var(--fill); color: var(--ink-2); }
.ho-chips { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.ff-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.wa-how { padding-left: 20px; display: grid; gap: 12px; margin: 0 0 12px; }
.wa-how li { line-height: 1.5; }
.wa-cmds { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.wa-cmds code { background: #e7f8ee; color: #135c33; border-radius: 8px; padding: 4px 10px; font-size: 13.5px; align-self: flex-start; }

/* Delivery card: handover save and team */
.fulfil .ff-h { font-size: 15px; font-weight: 600; margin: 4px 0 6px; }
.fulfil .ff-save { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.fulfil .ff-team { border-top: 1px solid var(--line, #e5e7eb); margin-top: 18px; padding-top: 14px; }
.fulfil .ff-people { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 10px; }
.fulfil details summary { cursor: pointer; color: var(--muted, #6b7280); }

/* Printed reports carry the "Generated in www.mybooks.africa" line */
.print-credit { display: none; }
@media print { .print-credit { display: block; margin-top: 8mm; border-top: .5px solid #d6dce0; padding-top: 2mm; } .print-credit .mba-credit { font-size: 8pt; color: #55636e; text-align: center; margin: 0; } .print-credit a { color: #0f766e; text-decoration: none; font-weight: 600; } }

/* Statements for funding (income and expense statement) */
.st-tabs { margin-bottom: 10px; }
.st-filters { flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.st-filters .seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 12px; background: var(--fill, #f2f4f5); }
.st-filters .seg label { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 9px; font-size: 13.5px; cursor: pointer; color: var(--ink-2, #3a4650); }
.st-filters .seg label.on { background: #fff; color: var(--ink, #1d1d1f); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.st-filters .seg input { position: absolute; opacity: 0; pointer-events: none; }
.st-doc { padding: 32px 36px; }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line, #e5e7eb); }
.st-co { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.st-logo { max-height: 56px; max-width: 180px; object-fit: contain; }
.st-title { margin: 22px 0 2px; font-size: 26px; letter-spacing: -.02em; }
.st-sub { margin: 0 0 18px; color: var(--muted, #6b7280); }
.st-h3 { font-size: 15px; font-weight: 650; margin: 26px 0 8px; }
.st-tbl .st-pct { width: 90px; font-size: 13px; }
.st-tbl .ind { padding-left: 16px; display: inline-block; }
.st-tbl th.num { white-space: nowrap; }
.st-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.st-months td, .st-months th, .st-mm td, .st-mm th { white-space: nowrap; font-size: 13px; }
.st-kf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0 8px; }
.st-kf > div { background: var(--fill, #f5f7f8); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.st-kf span { font-size: 12.5px; color: var(--muted, #6b7280); }
.st-kf b { font-size: 20px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.st-kf small { font-size: 12px; color: var(--muted, #6b7280); }
.st-quality ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 14px; }
.st-notes { margin-top: 18px; color: var(--ink-2, #3a4650); }
.st-notes p { margin: 4px 0; }
.st-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.st-sign div { border-top: 1px solid var(--ink, #1d1d1f); padding-top: 6px; font-size: 12px; color: var(--muted, #6b7280); }
.st-tip { margin-top: 10px; }
@media (max-width: 720px) {
  .st-doc { padding: 20px 16px; }
  .st-kf { grid-template-columns: 1fr 1fr; }
  .st-sign { grid-template-columns: 1fr; gap: 28px; }
  .st-tbl:not(.st-months):not(.st-mm) .st-pct { display: none; }
}
@media print {
  .st-controls, .st-tip, .page-head { display: none !important; }
  .st-doc { padding: 0; }
  .st-kf { grid-template-columns: repeat(3, 1fr); }
  .st-kf > div { border: .5px solid #d6dce0; background: none; }
  .st-tbl .st-pct { display: table-cell !important; }
  .st-quality li.neg { color: #b42318; }
  .st-sign, .st-quality, .st-notes, .st-kf { break-inside: avoid; }
  .st-months td, .st-months th { font-size: 9.5px !important; padding: 3px 4px !important; }
}
/* Subtotal rows use class "sub" too: never let the menu's .sub rule hide them */
table tr.sub { display: table-row; visibility: visible; opacity: 1; transform: none; position: static; min-width: 0; padding: 0; box-shadow: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: auto; transition: none; }
.tbl.fin tr.sub td { font-weight: 650; background: var(--fill); }

/* Budgets */
.bud-scroll { overflow-x: auto; }
.bud-lines td { padding: 6px 6px; vertical-align: middle; }
.bud-lines td:first-child { width: 44%; } .bud-lines td:first-child input { min-width: 260px; } .bud-lines td:nth-child(2) { width: 18%; }
.bud-lines input, .bud-lines select { width: 100%; }
.bud-lines select { max-width: 220px; }
.bud-lines .money-in, .bud-form .money-in { display: flex; align-items: center; gap: 6px; }
.bud-form .money-in span { color: var(--muted, #8a97a1); font-size: 13px; min-width: 30px; }
.bud-form .money-in input { text-align: right; min-width: 110px; }
.bud-purpose { margin: -6px 0 18px; color: var(--ink-2, #3a4650); max-width: 70ch; }
.bud-tbl .bud-n { width: 32px; }
.bud-bars { display: grid; gap: 8px; max-width: 720px; }
.bud-bar { display: grid; grid-template-columns: 200px 1fr 150px; gap: 12px; align-items: center; font-size: 14px; }
.bud-bar i { display: block; height: 10px; border-radius: 6px; background: var(--fill, #eef1f3); overflow: hidden; }
.bud-bar i b { display: block; height: 100%; background: var(--accent, #0f766e); border-radius: 6px; }
.bud-bar em { font-style: normal; text-align: right; color: var(--muted, #6b7280); font-variant-numeric: tabular-nums; }
.bud-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
@media (max-width: 640px) { .bud-bar { grid-template-columns: 1fr; gap: 4px; } .bud-bar em { text-align: left; } }
@media print { .bud-more { display: none !important; } .bud-bar i { border: .5px solid #c9d1d6; } .bud-bar i b { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* West edition */
.west-feat { max-width: 1080px; margin: 28px auto 40px; padding: 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.west-feat > div { padding: 20px; border-radius: 18px; }
.west-feat h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.west-feat p { margin: 0; color: var(--ink-2, #3a4650); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 860px) { .west-feat { grid-template-columns: 1fr; } }

/* Contract roasting */
.ro-lines td { padding: 6px; vertical-align: middle; }
.ro-lines td:first-child { width: 30%; } .ro-lines td:first-child input { min-width: 200px; }
.ro-lines input { width: 100%; } .ro-lines input.num { text-align: right; min-width: 70px; } .ro-lines .ro-code { min-width: 90px; }
.west-price { max-width: 1048px; margin: 0 auto 48px; padding: 28px; border-radius: 22px; text-align: center; }
.west-price h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
@media (max-width: 1080px) { .west-price { margin: 0 16px 40px; } }

/* Site switch: Africa / EU, UK & Switzerland */
.ed-switch { position: relative; flex: none; align-self: center; z-index: 60; }
.ed-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; padding: 3px 9px 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .01em; color: #fff; white-space: nowrap; line-height: 1.4; }
.ed-switch summary::-webkit-details-marker { display: none; }
.ed-switch summary svg { width: 9px; height: 6px; opacity: .85; transition: transform .15s; }
.ed-switch[open] summary svg { transform: rotate(180deg); }
.ed-africa summary { background: #0f766e; }
.ed-west summary { background: #1d4ed8; }
.ed-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.05); }
.ed-menu a { display: grid; grid-template-columns: 1fr auto; padding: 9px 12px; border-radius: 10px; color: var(--ink, #1d1d1f); text-decoration: none; }
.ed-menu a:hover { background: var(--fill, #f2f4f5); }
.ed-menu a b { font-size: 14px; font-weight: 600; }
.ed-menu a small { grid-column: 1; font-size: 12px; color: var(--muted, #6b7280); }
.ed-menu a i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; color: var(--accent, #0f766e); font-weight: 700; }
.ed-menu a.on { background: var(--fill, #f5f7f8); }
.ed-menu p { margin: 6px 12px 4px; font-size: 11.5px; color: var(--muted, #6b7280); }
.side .ed-switch { margin: -6px 0 10px 16px; }
.pub-inner > .ed-switch { margin-left: -14px; margin-right: auto; }
.pub-foot .ed-switch .ed-menu { top: auto; bottom: calc(100% + 8px); }
@media print { .ed-switch { display: none !important; } }
.ed-switch .ed-s { display: none; }
@media (max-width: 480px) { .pub-nav .ed-switch .ed-l { display: none; } .pub-nav .ed-switch .ed-s { display: inline; } .pub-nav .ed-switch summary { padding: 3px 7px 3px 8px; font-size: 11.5px; } .pub-inner > .ed-switch { margin-left: -18px; } }

/* Purchase order import */
.po-modes { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.po-modes select { max-width: 320px; }
.po-line { border-top: 1px solid var(--line, #e5e7eb); padding: 16px 0 6px; }
.po-line:first-of-type { border-top: 0; }
.po-line-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.po-line-head .po-prod { max-width: 420px; }
.po-grid { display: grid; grid-template-columns: 2.4fr 1fr 1.2fr .8fr .6fr .8fr; gap: 8px 12px; }
.po-grid input.num { text-align: right; }
.po-parts { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--fill, #f5f7f8); max-width: 620px; }
.po-parts-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2, #3a4650); }
.po-parts-head select { width: auto; font-size: 13px; padding: 4px 8px; }
.po-ptbl { margin-top: 6px; } .po-ptbl td { padding: 3px 4px; } .po-ptbl input { width: 100%; } .po-ptbl input.num { text-align: right; max-width: 110px; }
.po-ptbl th { font-size: 12px; }
.po-amt { margin: 6px 0 0; } .po-total { margin-top: 14px; font-size: 15px; }
@media (max-width: 860px) { .po-grid { grid-template-columns: 1fr 1fr; } .po-grid label:first-child { grid-column: 1 / -1; } }

/* Contracts */
.kv { display: grid; gap: 8px; }
.kv > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 14px; }
.kv > div > span { color: var(--muted, #6b7280); }
.ct-signers input[type=text], .ct-signers input:not([type]), .ct-signers input[type=email] { width: 100%; min-width: 140px; }
.ct-signers td { padding: 5px; }
.ct-items-ed td { padding: 5px; vertical-align: top; }
.ct-items-ed textarea { width: 100%; min-width: 220px; resize: vertical; }
.ct-items-ed select { max-width: 200px; }
.ct-items-ed input.num { text-align: right; width: 90px; }
.ct-items-ed td:nth-child(4) input { width: 70px; }
.ct-link { width: min(100%, 520px); font-size: 13px; }
