/* Oval Accountants practice system. Built from the approved prototype's stylesheet (site/assets/app.css),
   with the real system's additions at the end. Inter is self-hosted. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --accent: #800039;
  --accent-hover: #66002e;
  --accent-soft: #f9edf2;
  --accent-line: #e9c6d4;
  --text: #1f2328;
  --muted: #5f6670;
  --border: #e3e5e8;
  --surface: #ffffff;
  --bg: #f6f7f9;
  --chart-grey: #c5c9cf;
  --red: #b42318; --red-bg: #fdecea;
  --amber: #8a5300; --amber-bg: #fff3dc;
  --green: #1d7a3e; --green-bg: #e7f5ec;
  --grey-bg: #eef0f2;
  --radius: 8px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --shadow: 0 12px 32px rgba(20, 24, 31, .16), 0 2px 6px rgba(20, 24, 31, .08);
  --t: 180ms ease;
  --side: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--bg); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: 24px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 var(--s1); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.sr { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grow { flex: 1; }
.pad { padding: var(--s2); }
.money, .num { font-variant-numeric: tabular-nums; }
.num { text-align: right; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; transition: background var(--t), border-color var(--t), color var(--t); }
.btn:hover { background: var(--bg); border-color: #cfd3d8; }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-bg); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: default; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: background var(--t); }
.icon-btn:hover { background: var(--grey-bg); color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; font-weight: 550; }
.link-btn:hover { text-decoration: underline; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--grey-bg); color: #3d434a; }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }

/* Sign in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: var(--s2); background: var(--accent); }
.signin-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 12px; padding: var(--s4); text-align: center; }
.signin-logo { width: 100%; max-width: 320px; height: auto; margin: 0 auto var(--s3); display: block; }
.signin h1 { font-size: 21px; margin-bottom: var(--s1); }
.signin .btn-lg { margin: var(--s2) 0; width: 100%; justify-content: center; }

/* Layout */
.app { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 40; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: var(--s2) var(--s2) var(--s1); }
.brand img { width: 196px; height: auto; display: block; }
.side-close { display: none; }
#nav { flex: 1; overflow-y: auto; padding: 0 var(--s1) var(--s2); }
.nav-group { margin-top: 8px; }
.nav-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 0 10px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: var(--radius); color: var(--text); font-weight: 500; transition: background var(--t); }
.nav-item:hover { background: var(--bg); text-decoration: none; }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item .ic { color: var(--muted); }
.nav-item.active .ic { color: var(--accent); }
.nav-badge { margin-left: auto; background: var(--accent); color: #fff; border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 0 7px; line-height: 18px; }
.side-foot { padding: var(--s2); border-top: 1px solid var(--border); font-size: 12.5px; }
.side-foot a { color: var(--muted); }
.main-col { flex: 1; margin-left: var(--side); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--s1); height: 60px; padding: 0 var(--s3); background: var(--surface); border-bottom: 1px solid var(--border); }
.menu-btn { display: none; }
.search-trigger { display: inline-flex; align-items: center; gap: 8px; height: 36px; width: 340px; max-width: 100%; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--muted); font: inherit; cursor: pointer; text-align: left; }
.search-trigger span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd { font: 11.5px Inter, sans-serif; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--surface); color: var(--muted); }
.proto-tag { font-size: 12px; font-weight: 600; color: var(--amber); background: var(--amber-bg); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: var(--s1); }
.role-switch { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 4px 0 10px; height: 36px; color: var(--muted); }
.role-switch select { border: 0; background: transparent; font: inherit; color: var(--text); font-weight: 550; height: 34px; cursor: pointer; max-width: 230px; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 42px; width: 250px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; z-index: 50; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; font: inherit; color: var(--text); border-radius: 6px; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--bg); text-decoration: none; }
main.screen { padding: var(--s3); max-width: 1400px; outline: none; }

/* Page header */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); flex-wrap: wrap; }
.page-head-text { min-width: 0; max-width: 680px; flex: 1 1 360px; }
.page-head-text p { margin: 4px 0 0; }
.page-head-actions { display: flex; gap: var(--s1); flex-wrap: wrap; }

/* Panels and grids */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s2) var(--s3); margin-bottom: var(--s3); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); flex-wrap: wrap; }
.panel-head p { margin: 2px 0 0; }
.panel-accent { border-color: var(--accent-line); border-top: 3px solid var(--accent); }
.grid { display: grid; gap: var(--s3); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid > .panel { margin-bottom: 0; }
.stack > * + * { margin-top: var(--s3); }
.section-gap { margin-top: var(--s3); }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s3); }
.kpi { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s2); color: var(--text); transition: border-color var(--t); min-width: 0; }
.kpi:hover { border-color: var(--accent-line); text-decoration: none; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi-sub { font-size: 12.5px; }
.kpi-red .kpi-value { color: var(--red); }

/* Compact stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1); margin-bottom: var(--s2); }
.stat { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--text); transition: border-color var(--t); min-width: 0; }
.stat:hover { border-color: var(--accent-line); text-decoration: none; }
.stat-value { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.3; }
.stat-value.red { color: var(--red); }
.stat-label { font-size: 12.5px; color: var(--muted); }

/* Needs you today */
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.needs h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: var(--s1); }
.needs-count { border-radius: 999px; padding: 0 8px; font-size: 12px; }
.needs ul { list-style: none; margin: 0; padding: 0; }
.needs li a { display: block; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--border); margin-bottom: 6px; color: var(--text); transition: border-color var(--t), background var(--t); }
.needs li a:hover { border-color: var(--accent-line); background: var(--accent-soft); text-decoration: none; }
.needs li .muted { display: block; font-size: 12.5px; }
.needs .more { font-size: 13px; }

/* Charts */
.chart-row { display: flex; gap: var(--s3); align-items: stretch; }
.chart-head { flex: none; width: 160px; }
.chart-head .big { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.chart-box { position: relative; height: 240px; flex: 1; min-width: 0; }
.chart-box.short { height: 200px; }

/* Lists */
.toolbar { display: flex; gap: var(--s1); align-items: center; flex-wrap: wrap; margin-bottom: var(--s2); }
.search-box { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted); flex: 1 1 220px; max-width: 320px; }
.search-box input { border: 0; outline: 0; font: inherit; color: var(--text); width: 100%; background: transparent; min-width: 0; }
.search-box:focus-within { border-color: var(--accent); }
.filter select, .field select, .field input, .field textarea, .inline-select { height: 36px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font: inherit; color: var(--text); padding: 0 10px; max-width: 100%; }
.toolbar .count { margin-left: auto; }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; }
.list th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); background: #fafbfc; white-space: nowrap; }
.list td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.list tr:last-child td { border-bottom: 0; }
.list tbody tr[data-id] { cursor: pointer; transition: background var(--t); }
.list tbody tr[data-id]:hover { background: #fafafb; }
.list tbody tr[data-id]:focus-visible { outline-offset: -2px; }
.list .td-main { font-weight: 550; }
.list .sub { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.list th.num, .list td.num { text-align: right; white-space: nowrap; }
.row-alert td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.row-warn td:first-child { box-shadow: inset 3px 0 0 #e0a030; }
.empty { text-align: center; padding: var(--s3); color: var(--muted); }
.empty .ic { width: 28px; height: 28px; margin-bottom: 6px; }
.empty-row td { cursor: default; }

/* Simple tables inside panels */
table.mini { width: 100%; border-collapse: collapse; }
.mini th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.mini td { padding: 8px; border-bottom: 1px solid var(--border); }
.mini tr:last-child td { border-bottom: 0; }

/* Drawer, modal, scrim, toasts */
.scrim { position: fixed; inset: 0; background: rgba(20, 24, 31, .35); opacity: 0; pointer-events: none; transition: opacity var(--t); z-index: 60; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 100%; background: var(--surface); box-shadow: var(--shadow); transform: translateX(105%); transition: transform var(--t); z-index: 70; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 19px; outline: none; }
.drawer-sub { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s2) var(--s3); }
.drawer-body h3 { margin: var(--s3) 0 var(--s1); font-size: 14px; }
.drawer-body h3:first-child { margin-top: 0; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: var(--s1); padding: var(--s2) var(--s3); border-top: 1px solid var(--border); background: #fafbfc; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--s2); margin: 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 12.5px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 10px; padding-bottom: 12px; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1px; background: var(--border); }
.tl-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.stepper li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 9px 3px 6px; border-radius: 999px; background: var(--grey-bg); color: var(--muted); }
.stepper li span { width: 8px; height: 8px; border-radius: 50%; background: #b8bdc4; }
.stepper li.done { background: var(--green-bg); color: var(--green); }
.stepper li.done span { background: var(--green); }
.stepper li.now { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.stepper li.now span { background: var(--accent); }
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: var(--s2); z-index: 80; pointer-events: none; }
.modal.open { display: flex; }
.modal-box { pointer-events: auto; width: 560px; max-width: 100%; max-height: calc(100vh - 32px); background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: pop var(--t); }
.modal-wide .modal-box { width: 780px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); }
.modal-head h2 { outline: none; }
.modal-body { padding: var(--s2) var(--s3); overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: var(--s1); padding: var(--s2) var(--s3); border-top: 1px solid var(--border); flex-wrap: wrap; }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { display: flex; gap: 8px; align-items: center; background: #1f2328; color: #fff; padding: 10px 14px; border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity var(--t), transform var(--t); max-width: 420px; }
.toast.show { opacity: 1; transform: none; }
.toast-ok .ic { color: #7ee2a0; }
.toast-warn .ic { color: #ffc861; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.req { color: var(--red); }
.hint { font-size: 12px; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.checks label { font-weight: 400; display: flex; gap: 6px; align-items: center; }

/* Search */
.search-pop { position: fixed; inset: 0; background: rgba(20, 24, 31, .35); z-index: 110; display: flex; justify-content: center; align-items: flex-start; padding: 12vh var(--s2) var(--s2); }
.search-pop[hidden] { display: none; }
.search-panel { width: 620px; max-width: 100%; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.search-box.big { max-width: none; width: 100%; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; height: 52px; font-size: 16px; }
.search-results { max-height: 52vh; overflow-y: auto; padding: 6px; }
.search-hit { display: grid; grid-template-columns: 80px 1fr; gap: 0 10px; padding: 8px 10px; border-radius: 6px; color: var(--text); }
.search-hit .muted { grid-column: 2; }
.search-hit:hover, .search-hit.sel { background: var(--accent-soft); text-decoration: none; }
.hit-kind { font-size: 12px; color: var(--muted); font-weight: 600; grid-row: span 2; padding-top: 2px; }
.hit-label { font-weight: 550; }

/* Boards */
.board { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: var(--s2); overflow-x: auto; padding-bottom: var(--s1); }
.col { background: #eff1f4; border-radius: var(--radius); padding: var(--s1); min-height: 220px; transition: background var(--t), outline-color var(--t); outline: 2px dashed transparent; outline-offset: -2px; }
.col.over { background: var(--accent-soft); outline-color: var(--accent-line); }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; font-weight: 600; font-size: 13.5px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin-bottom: var(--s1); cursor: grab; transition: border-color var(--t); }
.card:hover { border-color: var(--accent-line); }
.card.dragging { opacity: .5; }
.card h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.card .meta { display: flex; justify-content: space-between; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.card .move { display: none; margin-top: 8px; }
.card .move select { height: 34px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font: inherit; font-size: 13px; padding: 0 8px; color: var(--text); }

/* Misc components */
.bar { height: 8px; border-radius: 999px; background: var(--grey-bg); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar.warn > span { background: #d98c00; }
.bar.over > span { background: var(--red); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; gap: var(--s1); align-items: flex-start; justify-content: space-between; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain .ic { color: var(--muted); margin-top: 2px; }
.activity li { justify-content: flex-start; }
.activity time { margin-left: auto; white-space: nowrap; }
.strip { display: flex; gap: var(--s1); flex-wrap: wrap; }
.int-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--text); background: var(--surface); }
.int-chip:hover { border-color: var(--accent-line); text-decoration: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
.dot.grey { background: #9aa0a8; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: var(--s2); }
.tab { border: 0; background: none; font: inherit; font-weight: 550; color: var(--muted); padding: 8px 12px; border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; transition: color var(--t), border-color var(--t); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab .n { font-size: 12px; color: var(--muted); margin-left: 4px; }
.stage-strip { display: flex; gap: var(--s1); flex-wrap: wrap; margin-bottom: var(--s2); }
.stage-pill { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 6px 12px; font: inherit; cursor: pointer; text-align: left; transition: border-color var(--t), background var(--t); }
.stage-pill strong { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.stage-pill span { font-size: 12.5px; color: var(--muted); }
.stage-pill.active { border-color: var(--accent); background: var(--accent-soft); }
.toggle { position: relative; width: 40px; height: 22px; flex: none; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: #c5c9cf; transition: background var(--t); }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--t); }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ai-box { border: 1px solid var(--accent-line); background: #fdf8fa; border-radius: var(--radius); padding: var(--s2); }
.ai-box textarea { width: 100%; min-height: 220px; border: 1px solid var(--border); border-radius: 6px; padding: 10px; font: inherit; line-height: 1.5; background: #fff; }
.ai-label { display: flex; gap: 6px; align-items: center; font-weight: 600; color: var(--accent); margin-bottom: var(--s1); font-size: 13px; }
.refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s1); }
.ref { font-size: 12.5px; border: 1px solid var(--accent-line); border-radius: 999px; padding: 2px 10px; background: #fff; }
.msg { white-space: pre-wrap; background: var(--bg); border-radius: var(--radius); padding: var(--s2); }
.note { border-left: 3px solid var(--accent-line); padding: 4px 10px; margin-bottom: 6px; background: #fff; }
.callout { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px; }
.callout-warn { background: var(--amber-bg); border-color: #f1d49c; }
.callout-red { background: var(--red-bg); border-color: #f3c3bd; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* Branded documents (proposals, invoices, approvals, articles) */
.doc { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3); background: #fff; font-size: 14px; }
.doc-head { display: flex; justify-content: space-between; gap: var(--s2); border-bottom: 3px solid var(--accent); padding-bottom: var(--s2); margin-bottom: var(--s2); flex-wrap: wrap; }
.doc-head img { width: 220px; max-width: 100%; height: auto; }
.doc-addr { font-size: 12px; color: var(--muted); text-align: right; }
.doc h2 { color: var(--accent); font-size: 18px; margin-bottom: 4px; }
.doc table { width: 100%; border-collapse: collapse; margin: var(--s2) 0; }
.doc th { text-align: left; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); padding: 6px 4px; }
.doc td { padding: 8px 4px; border-bottom: 1px solid var(--border); }
.doc .tot td { font-weight: 650; border-bottom: 0; }
.doc-sign { margin-top: var(--s2); border: 1px dashed var(--accent-line); border-radius: var(--radius); padding: var(--s2); }
.doc-sign .sig { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 22px; color: var(--accent); }
.doc-foot { margin-top: var(--s2); font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: var(--s1); }
.article { max-width: 640px; }
.article h2 { color: var(--accent); font-size: 20px; }
.browser { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.browser-bar { background: var(--grey-bg); padding: 6px 12px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.browser .article { padding: var(--s3); }
.portal-view { border: 2px solid var(--accent-line); border-radius: 10px; padding: var(--s2); background: var(--bg); }
.portal-view .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: var(--s1); }

/* Integrations */
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s2); }
.int-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s2); display: flex; flex-direction: column; gap: var(--s1); }
.int-card h3 { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.flow { font-size: 13px; }
.flow b { font-weight: 600; }

/* Tour */
.tour { position: fixed; inset: 0; z-index: 200; }
.tour-block { position: absolute; inset: 0; }
.tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(20, 24, 31, .58); outline: 2px solid #fff; transition: top 200ms ease, left 200ms ease, width 200ms ease, height 200ms ease; pointer-events: none; }
.tour-spot.center { outline: 0; }
.tour-spot.no-glide { transition: none; }
.tour-card { position: fixed; width: 340px; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); padding: var(--s2); z-index: 2; transition: top 200ms ease, left 200ms ease; }
.tour-card h3 { margin: 4px 0 6px; font-size: 16px; }
.tour-text { font-size: 14px; }
.tour-text p { margin: 8px 0 0; }
.tour-cta { font-weight: 600; }
.tour-btns { display: flex; gap: 6px; margin-top: var(--s2); align-items: center; }

/* About */
.about-table td:first-child { font-weight: 550; }

/* ---------- Revision 2: client pages, folders, letters, signing, onboarding, access ---------- */
.role-pre { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; margin-bottom: var(--s2); }
.back .ic { width: 16px; height: 16px; }
.client-head .page-head-text { display: flex; gap: var(--s2); align-items: flex-start; max-width: none; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 18px; letter-spacing: .02em; }
.avatar.sm { width: 34px; height: 34px; font-size: 12.5px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tabs .tab { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; }
.tabs a.tab:hover { text-decoration: none; color: var(--text); }
.tabs .tab .ic { width: 16px; height: 16px; }
.tabs .tab.active { color: var(--accent); }
.tabs .tab.active .ic { color: var(--accent); }
.tab-body { min-width: 0; }
.sub-h { margin: var(--s3) 0 var(--s1); font-size: 14px; }
.row-btns { display: flex; gap: var(--s1); flex-wrap: wrap; align-items: center; }
.stack > .panel { margin-bottom: 0; }
.mini tr.click { cursor: pointer; }
.mini tr.click:hover td { background: #fafafb; }
.mini .tot td { border-bottom: 0; }
.lock-note { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.lock-note .ic { width: 16px; height: 16px; }
.callout-ok { background: var(--green-bg); border-color: #b9e0c7; display: flex; gap: 8px; align-items: center; }
.callout-ok .ic { color: var(--green); }

/* folders */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s1); }
.folder { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--surface); transition: border-color var(--t), background var(--t); }
.folder .ic { grid-row: span 2; color: var(--accent); }
.folder:hover { border-color: var(--accent-line); text-decoration: none; }
.folder.active { border-color: var(--accent); background: var(--accent-soft); }
.folder-name { font-weight: 550; font-size: 13.5px; line-height: 1.3; }
.folder-n { font-size: 12px; color: var(--muted); }
.folder.locked { background: var(--bg); border-style: dashed; color: var(--muted); cursor: not-allowed; }
.folder.locked .ic { color: var(--muted); }
.secure-strip, .xero-strip { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--green); border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px; margin-bottom: var(--s3); }
.xero-strip { border-left-color: #13b5ea; }
.secure-strip .ic { color: var(--green); margin-top: 1px; }
.xero-strip .ic { color: #0b7fa6; margin-top: 1px; }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.folder-rail { position: sticky; top: 76px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.rail-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 6px; font: inherit; color: var(--text); text-align: left; cursor: pointer; transition: background var(--t); }
.rail-item span:nth-child(2) { flex: 1; min-width: 0; font-size: 13.5px; }
.rail-item .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail-item .ic { color: var(--muted); width: 17px; height: 17px; }
.rail-item:hover { background: var(--bg); }
.rail-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rail-item.active .ic { color: var(--accent); }
.rail-item.locked { color: var(--muted); cursor: not-allowed; }
.rail-item.locked:hover { background: none; }
.file-row { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.file-row .ic { color: var(--accent); }

/* letters and templates */
.tpl-group { margin-bottom: var(--s3); }
.tpl-group h2 { font-size: 15px; margin-bottom: var(--s1); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s1); }
.tpl-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font: inherit; color: var(--text); cursor: pointer; transition: border-color var(--t), box-shadow var(--t); min-width: 0; }
.tpl-card:hover { border-color: var(--accent-line); box-shadow: 0 2px 8px rgba(20, 24, 31, .06); }
.tpl-name { font-weight: 600; }
.tpl-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
code.merge { font-size: 12px; background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 4px; }
.letter-to { display: flex; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); font-size: 13.5px; }
.letter-to > div:last-child { text-align: right; }
.doc ul { margin: 0 0 var(--s1); padding-left: 20px; }
.doc ul li { margin-bottom: 3px; }
.doc p { margin-bottom: 10px; }
.letter-close { margin-top: var(--s2); }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s3); align-items: start; }
.compose-form { grid-template-columns: 1fr; }
.compose-preview { background: var(--bg); border-radius: var(--radius); padding: var(--s2); max-height: 62vh; overflow: auto; }
.compose-preview .doc { font-size: 13px; }
.form > .full, .form > .callout { grid-column: 1 / -1; }
.flabel { font-size: 13px; font-weight: 600; }
.modal-xwide .modal-box { width: 1100px; }

/* signing, as on the NDA page */
.sign-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s3); align-items: start; }
.sign-doc { max-height: 64vh; overflow: auto; border-radius: var(--radius); }
.sign-panel { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
.sign-panel h3 { font-size: 16px; }
.sign-panel p { margin: 0; }
.sig-preview { display: flex; flex-direction: column; gap: 2px; border: 1px dashed var(--accent-line); border-radius: var(--radius); padding: 8px 12px; background: #fff; min-height: 64px; }
.sig-preview.ours { border-style: solid; border-color: var(--border); background: var(--bg); }
.sig-ink { font-family: "Dancing Script", "Segoe Script", cursive; font-weight: 600; font-size: 28px; line-height: 1.15; color: #1e3a8a; opacity: .3; min-height: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig-ink.on { opacity: 1; }
.consent { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; font-weight: 400; cursor: pointer; transition: border-color var(--t), background var(--t); }
.consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--green); }
.consent.on { border-color: #7cc79a; background: var(--green-bg); }
.sig-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s3); }
.sig-block { border-top: 1px solid #c9cdd2; padding-top: 6px; min-width: 0; }
.sig-block .sig-ink { font-size: 26px; margin: 4px 0 2px; }
.sig-wait { color: var(--muted); font-size: 13px; padding: 12px 0; }
.fingerprint { margin-top: var(--s2); }
.fingerprint code { display: block; margin-top: 4px; font-size: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; overflow-wrap: anywhere; }

/* onboarding */
.ob-stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s2); }
.ob-stage { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.ob-stage h3 { display: flex; gap: 6px; align-items: center; font-size: 14px; margin-bottom: 6px; }
.ob-stage h3 .ic { color: var(--green); width: 17px; height: 17px; }
.ob-stage.now { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ob-stage.done { background: #fbfcfb; }
.ob-items { list-style: none; margin: 0; padding: 0; }
.ob-items li { display: flex; justify-content: space-between; gap: var(--s1); align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ob-items li:last-child { border-bottom: 0; }
.ob-tick { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; cursor: pointer; min-width: 0; flex: 1 1 200px; }
.ob-tick input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.is-done .ob-tick span { color: var(--muted); }
.ob-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ob-board { grid-auto-columns: minmax(170px, 1fr); }
.ob-card .meta .badge, .tpl-tags .badge { white-space: normal; }
.list-more { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px 0 0; }
.matrix th .lvl-desc { text-align: center; }
a.ob-card { display: block; color: var(--text); cursor: pointer; }
a.ob-card:hover { text-decoration: none; }
.ob-card .bar { margin: 8px 0 4px; height: 6px; }

/* users and access */
.who { display: flex; gap: 10px; align-items: center; }
table.matrix { min-width: 640px; }
.matrix th { vertical-align: bottom; }
.matrix .cellc { text-align: center; width: 15%; }
.matrix tr.grp td { background: var(--bg); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-top: 10px; }
.matrix td .ic { width: 16px; height: 16px; color: var(--muted); vertical-align: -3px; margin-right: 4px; }
.lvl-desc { font-weight: 400; text-align: left; vertical-align: top; }
.tick { position: relative; display: inline-block; width: 22px; height: 22px; cursor: pointer; }
.tick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.tick span { position: absolute; inset: 0; border: 1.5px solid #b8bdc4; border-radius: 5px; background: #fff; transition: background var(--t), border-color var(--t); }
.tick input:checked + span { background: var(--accent); border-color: var(--accent); }
.tick input:checked + span::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tick input:disabled + span { opacity: .55; }
.tick input:disabled { cursor: not-allowed; }
.tick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* timesheet in the portal */
input.hrs { width: 84px; height: 34px; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; font: inherit; text-align: right; font-variant-numeric: tabular-nums; }
input.hrs:focus, .inline-select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.sheet td { vertical-align: middle; }
#print-area { display: none; }

/* Tablet: sidebar behind a menu button */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g3 { grid-template-columns: 1fr; }
  .needs { grid-template-columns: 1fr; }
  .sign-wrap { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(-105%); transition: transform var(--t); box-shadow: var(--shadow); z-index: 90; }
  .sidebar.open { transform: none; }
  .side-close { display: inline-flex; }
  .main-col { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 var(--s2); }
  .scrim.open { z-index: 65; }
  .g2 { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .folder-rail { position: static; flex-direction: row; overflow-x: auto; }
  .rail-item { width: auto; flex: none; }
  .compose, .sign-wrap { grid-template-columns: 1fr; }
  .sign-doc { max-height: none; }
  .sign-panel { position: static; }
  .ob-stages { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 700px) {
  body { font-size: 14.5px; }
  main.screen { padding: var(--s2); }
  h1 { font-size: 21px; }
  .topbar { gap: 6px; height: 56px; }
  .search-trigger { width: 36px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .proto-tag { font-size: 11px; padding: 2px 8px; }
  .role-switch { padding: 0 2px 0 8px; }
  .role-switch .ic { display: none; }
  .role-switch select { max-width: 104px; font-size: 13px; }
  .panel { padding: var(--s2); }
  .kpi-value { font-size: 22px; }
  .chart-row { flex-direction: column; gap: var(--s1); }
  .chart-head { width: auto; }
  .chart-box { height: 210px; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1 1 auto; justify-content: center; }
  .toolbar .search-box { max-width: none; flex-basis: 100%; }
  .toolbar .filter { flex: 1 1 140px; }
  .toolbar .filter select { width: 100%; }
  /* tables become cards */
  .table-wrap { background: transparent; border: 0; overflow: visible; }
  table.list, .list tbody, .list tr, .list td { display: block; width: 100%; }
  .list thead { display: none; }
  .list tbody tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--s1); padding: 10px 14px; }
  .list td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: var(--s2); text-align: right; }
  .list td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; font-weight: 500; text-align: left; flex: none; }
  .list td.td-main { display: block; text-align: left; font-size: 15px; padding-bottom: 6px; }
  .list td.td-main::before { display: none; }
  .list td.num { text-align: right; }
  /* a value with a small note under it keeps the note under it, not beside it */
  .list td:not(.td-main):has(> .sub) { display: block; }
  .list td:not(.td-main):has(> .sub)::before { float: left; margin-right: var(--s2); }
  .list .empty-row td { display: block; }
  .list .empty-row td::before { display: none; }
  .row-alert td:first-child, .row-warn td:first-child { box-shadow: none; }
  .row-alert { border-left: 3px solid var(--red) !important; }
  .row-warn { border-left: 3px solid #e0a030 !important; }
  .drawer { width: 100%; }
  .drawer-head, .drawer-body, .drawer-actions { padding-left: var(--s2); padding-right: var(--s2); }
  .drawer-actions .btn { flex: 1 1 auto; justify-content: center; }
  .facts { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box, .modal-wide .modal-box { width: 100%; max-height: 92vh; border-radius: 12px 12px 0 0; }
  .modal-head, .modal-body, .modal-actions { padding-left: var(--s2); padding-right: var(--s2); }
  .modal-actions .btn { flex: 1 1 auto; justify-content: center; }
  .board { grid-auto-columns: 82%; }
  .card { cursor: default; }
  .card .move { display: block; }
  .card .move select { width: 100%; }
  .doc { padding: var(--s2); }
  .doc-addr { text-align: left; }
  .toasts { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .toast { max-width: none; }
  .tour-card { left: 8px !important; right: 8px; bottom: 8px; top: auto !important; width: auto; transition: none; }
  .int-grid { grid-template-columns: 1fr; }
  .mini-scroll { overflow-x: auto; }
  .stage-pill { flex: 1 1 calc(50% - 8px); }
  .role-pre { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .client-head .page-head-text { gap: 12px; }
  .avatar { width: 42px; height: 42px; font-size: 15px; }
  .folder-grid { grid-template-columns: 1fr 1fr; }
  .sig-blocks { grid-template-columns: 1fr; }
  .letter-to { flex-direction: column; gap: 6px; }
  .letter-to > div:last-child { text-align: left; }
  .compose-preview { max-height: none; }
  .tpl-grid { grid-template-columns: 1fr; }
  .ob-items li { flex-direction: column; align-items: flex-start; }
  .ob-tick, .ob-tick-form { flex: none; width: 100%; }
  .ob-meta { justify-content: flex-start; padding-left: 24px; }
  /* the weekly timesheet: one block per employee */
  .sheet thead { display: none; }
  .sheet, .sheet tbody { display: block; width: 100%; }
  .sheet tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .sheet td { display: block; padding: 0; border: 0; text-align: left; }
  .sheet td:first-child, .sheet td:last-child { grid-column: 1 / -1; }
  .sheet td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
  .sheet input.hrs, .sheet .inline-select { width: 100%; text-align: left; }
}

@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; }
  #print-area .doc { border: 0; padding: 0; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* OnboardMe tag on checks and proposals that run through it */
.obm-tag { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 4px; background: #e8f0fb; color: #1d4f91; vertical-align: middle; white-space: nowrap; }

/* Secure upload link: the page a client opens from an email or text, phone first */
.up-page { min-height: 100vh; padding: var(--s3) var(--s2); background: var(--bg); }
.up-card { max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: var(--s3); }
.up-logo { display: block; width: 100%; max-width: 240px; height: auto; margin-bottom: var(--s2); }
.up-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--green); background: var(--green-bg); border-radius: 999px; padding: 4px 10px; margin-bottom: 12px; }
.up-secure .ic { width: 14px; height: 14px; }
.up-card h1 { font-size: 21px; margin-bottom: var(--s1); }
.up-flash { margin: var(--s2) 0 0; }
.up-list { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: 10px; }
.up-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; }
.up-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.up-btns .btn { justify-content: center; height: 44px; cursor: pointer; }
.up-drop { margin-top: var(--s2); display: flex; gap: 12px; align-items: center; border: 2px dashed var(--border); border-radius: var(--radius); padding: 16px; transition: border-color var(--t), background var(--t); }
.up-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.up-drop > .ic { color: var(--accent); width: 22px; height: 22px; }
.up-h2 { font-size: 15px; margin-top: var(--s3); }
.up-sent li { display: flex; gap: 10px; align-items: flex-start; }
.up-sent li > .ic { color: var(--green); margin-top: 2px; }
.up-foot { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--border); }
.up-proto { max-width: 560px; margin: 12px auto 0; text-align: center; }
@media (max-width: 420px) { .up-btns { grid-template-columns: 1fr; } .up-card { padding: var(--s2); } }
.link-box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 8px 10px; overflow-wrap: anywhere; }
.link-box code { font-size: 12.5px; }

/* ===================== The real system (Stage 1 onwards) ===================== */

/* Selects: drawn chevron, never the native arrow */
select, .filter select, .field select, .inline-select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
}
.field input, .field select, .field textarea { width: 100%; }
.field input[type="checkbox"], .field input[type="radio"] { width: auto; height: auto; }
.field-error input, .field-error select { border-color: var(--red); }

/* Flash messages (shown as toasts, and inline on sign-in pages) */
.flash { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px; margin-bottom: var(--s2); border: 1px solid var(--border); background: var(--surface); text-align: left; }
.flash .ic { flex: none; margin-top: 1px; }
.flash-ok { background: var(--green-bg); border-color: #b9e0c7; } .flash-ok .ic { color: var(--green); }
.flash-error { background: var(--red-bg); border-color: #f3c3bd; } .flash-error .ic { color: var(--red); }
.flash-warn { background: var(--amber-bg); border-color: #f1d49c; } .flash-warn .ic { color: var(--amber); }
.flash-info { background: var(--accent-soft); border-color: var(--accent-line); } .flash-info .ic { color: var(--accent); }
.flash-stack { margin-bottom: var(--s3); }
.toast-error .ic { color: #ff9b8f; }

/* Sign-in pages */
.signin-card { text-align: left; }
.signin-card .signin-logo { margin-bottom: var(--s3); }
.signin-card h1 { text-align: left; }
.signin-card form { display: grid; gap: var(--s2); margin-top: var(--s2); }
.signin-card .btn-lg { margin: 0; }
.signin-card .field input { height: 44px; font-size: 15px; }
.code-input { letter-spacing: .3em; font-variant-numeric: tabular-nums; font-size: 22px !important; text-align: center; }
.signin-links { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; font-size: 13.5px; }
.signin-foot { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.signin-foot .ic { width: 16px; height: 16px; flex: none; color: var(--green); margin-top: 1px; }
.signin-wide { max-width: 560px; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.qr-row { display: grid; grid-template-columns: 180px 1fr; gap: var(--s2); align-items: center; }
.qr-row img { width: 180px; height: 180px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.secret { font: 600 14px/1.6 ui-monospace, Consolas, monospace; letter-spacing: .08em; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; word-break: normal; overflow-wrap: normal; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: var(--s2) 0; padding: var(--s2); background: var(--bg); border: 1px dashed var(--accent-line); border-radius: var(--radius); }
.codes code { font: 600 15px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .06em; text-align: center; }
@media (max-width: 520px) { .qr-row { grid-template-columns: 1fr; justify-items: center; } }

/* Top bar: the person menu */
.who-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 4px; border: 1px solid transparent; border-radius: var(--radius); background: none; font: inherit; color: var(--text); cursor: pointer; }
.who-btn:hover { background: var(--bg); }
.who-btn .who-name { font-weight: 550; font-size: 13.5px; text-align: left; line-height: 1.2; }
.who-btn .who-name span { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.who-btn .ic { width: 16px; height: 16px; color: var(--muted); }
.menu[hidden] { display: none; }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.menu form { margin: 0; }
.test-tag { font-size: 12px; font-weight: 600; color: var(--amber); background: var(--amber-bg); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

/* Nav items for sections still being built */
.nav-item.soon { color: var(--muted); }
.nav-soon { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--grey-bg); border-radius: 999px; padding: 0 7px; line-height: 18px; }

/* Viewing as someone else */
.viewas-bar { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; background: #1f2328; color: #fff; padding: 8px var(--s3); font-size: 13.5px; }
.viewas-bar .ic { color: #ffc861; }
.viewas-bar form { margin-left: auto; }
.viewas-bar .btn { height: 30px; }

/* Home: build progress */
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px var(--s3); }
.stage-list li { display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; align-content: start; padding: 8px 0; border-bottom: 1px solid var(--border); }
.stage-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 650; background: var(--grey-bg); color: var(--muted); grid-row: span 2; }
.stage-list .done .stage-n { background: var(--green); color: #fff; }
.stage-list .next .stage-n { background: var(--accent); color: #fff; }
.stage-list strong { font-weight: 600; }
.stage-list .muted { font-size: 12.5px; }
@media (max-width: 960px) { .stage-list { grid-template-columns: 1fr; } }

/* Coming soon pages */
.coming { display: grid; grid-template-columns: 64px 1fr; gap: var(--s2); align-items: start; }
.coming-ic { width: 64px; height: 64px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; }
.coming-ic .ic { width: 30px; height: 30px; color: var(--accent); }

/* Forms on pages */
.form-actions { display: flex; gap: var(--s1); flex-wrap: wrap; grid-column: 1 / -1; padding-top: 4px; }
.panel form.form { margin-top: var(--s1); }
.danger-zone { border-color: #f3c3bd; }
.inline-form { display: inline; margin: 0; }
.actions-list { display: grid; gap: 12px; }
.actions-list > div { display: flex; gap: var(--s2); justify-content: space-between; align-items: center; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.actions-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.actions-list p { margin: 2px 0 0; }

/* Lists: rows that link */
.list tbody tr[data-href] { cursor: pointer; transition: background var(--t); }
.list tbody tr[data-href]:hover { background: #fafafb; }
.pager { display: flex; gap: var(--s1); justify-content: space-between; align-items: center; margin-top: var(--s2); flex-wrap: wrap; }
.changes { margin: 4px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.changes li { padding: 0; border: 0; display: block; }
.changes s { color: var(--red); text-decoration-color: rgba(180, 35, 24, .5); }

/* Email log */
.email-frame { width: 100%; min-height: 520px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.status-held { color: var(--amber); }

/* Access grid: saving state */
.tick.saving span { opacity: .5; }

/* Idle warning */
.idle-count { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.btn-block { width: 100%; justify-content: center; margin-top: 12px; }

/* ===================== Stage 2: clients ===================== */
.nowrap { white-space: nowrap; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.code { font: 600 13.5px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.code-mask { font: 600 13.5px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--muted); }
.code-mask.shown { color: var(--text); }
[data-reveal] { height: 26px; padding: 0 8px; vertical-align: middle; }
.check-line { display: inline-flex; gap: 8px; align-items: center; font-weight: 400 !important; font-size: 13.5px; cursor: pointer; }
.check-line input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px var(--s2); margin-top: 6px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; }
.flabel { font-size: 13px; font-weight: 600; }
.input-row { display: flex; gap: var(--s1); align-items: center; }
.input-row input { flex: 1 1 auto; min-width: 0; }
.input-row select { flex: 1 1 0; min-width: 0; }
.client-form .panel { margin-bottom: var(--s2); }
.form-bar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: var(--s1); padding: 12px 0; background: linear-gradient(to bottom, rgba(246, 247, 249, 0), var(--bg) 30%); }
.type-pick { border: 0; padding: 0; margin: 0 0 var(--s2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1); }
.type-card { position: relative; cursor: pointer; }
.type-card input { position: absolute; opacity: 0; }
.type-card span { display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color var(--t), background var(--t); }
.type-card .ic { color: var(--muted); }
.type-card strong { font-weight: 600; font-size: 14px; }
.type-card input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.type-card input:checked + span .ic { color: var(--accent); }
.type-card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lookup-out:empty { display: none; }
.lookup-out { margin-top: 8px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--bg); font-size: 13.5px; }
.lookup-out.err { background: var(--red-bg); border-color: #f3c3bd; }
.lookup-out .check-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.people { list-style: none; margin: 0; padding: 0; }
.person { padding: 14px 0; border-bottom: 1px solid var(--border); }
.person:first-child { padding-top: 0; }
.person:last-child { border-bottom: 0; padding-bottom: 0; }
.person-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.facts-sm { padding-left: 46px; }
.facts-sm dd { font-weight: 450; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s2); }
.chip { font-size: 13px; font-weight: 550; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.chip:hover { text-decoration: none; border-color: var(--accent-line); color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.notes-list { list-style: none; margin: 0; padding: 0; }
.note-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.note-item:last-child { border-bottom: 0; }
.note-item:target { background: var(--accent-soft); border-radius: var(--radius); }
.note-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.note-ic .ic { width: 17px; height: 17px; color: var(--accent); }
.note-meta { margin-bottom: 4px; }
.note-follow { display: flex; gap: var(--s1); align-items: center; flex-wrap: wrap; margin-top: 8px; }
.note-actions { align-self: start; }
.seg legend { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.seg-row { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-row label { position: relative; cursor: pointer; }
.seg-row input { position: absolute; opacity: 0; }
.seg-row span { display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; font-weight: 550; }
.seg-row input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg-row input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.history-list li > div { min-width: 0; }
.inline-date { height: 30px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 8px; font: inherit; font-size: 13px; }
.danger-zone input[name="confirm_name"] { height: 30px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 8px; font: inherit; font-size: 13px; min-width: 0; }
.followups li > div { min-width: 0; }
@media (max-width: 700px) {
  .type-pick { grid-template-columns: 1fr; }
  .facts-sm { padding-left: 0; }
  .note-item { grid-template-columns: 36px minmax(0, 1fr); }
  .note-actions { grid-column: 2; }
  .person-top { flex-wrap: wrap; }
  .person-top .row-btns { width: 100%; padding-left: 46px; }
}

/* ===================== Stage 3: documents ===================== */
.break { overflow-wrap: anywhere; word-break: break-word; }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 650; }
.files .fname { display: inline-flex; gap: 8px; align-items: flex-start; }
.files .fname .ic { color: var(--accent); width: 17px; height: 17px; margin-top: 2px; }
.files .fname a { overflow-wrap: anywhere; }
.files .row-actions { text-align: right; white-space: nowrap; }
.doc-main { min-width: 0; }
.doc-preview { display: block; max-width: 100%; max-height: 560px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.form-one { display: grid; gap: 12px; justify-items: start; }
.form-one .field { width: 100%; }
.upload-zone { display: grid; gap: 12px; }
.upload-fields { display: grid; gap: 12px; }
.upload-zone .drop { display: flex; gap: 12px; align-items: center; border: 2px dashed var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; background: var(--surface); transition: border-color var(--t), background var(--t); }
.upload-zone .drop:hover, .upload-zone .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone .drop > .ic { color: var(--accent); width: 24px; height: 24px; }
.upload-zone .drop > span { display: grid; gap: 2px; }
.upload-zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-zone .drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.upload-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.upload-list:empty { display: none; }
.upload-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; }
.upload-list li.up-ok { border-color: #b9e0c7; background: var(--green-bg); }
.upload-list li.up-ok .up-state { color: var(--green); font-weight: 600; }
.upload-list li.up-bad { border-color: #f3c3bd; background: var(--red-bg); }
.upload-list li.up-bad .up-state { color: var(--red); font-weight: 600; }
.upload-actions { display: flex; justify-content: flex-end; }
.post-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.post-layout > .panel { margin-bottom: 0; }
.queue { list-style: none; margin: 0 0 var(--s2); padding: 0; display: grid; gap: 4px; max-height: 420px; overflow-y: auto; }
.queue-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; color: var(--text); }
.queue-item > span { display: grid; min-width: 0; font-size: 13.5px; }
.queue-item .ic { color: var(--muted); width: 17px; height: 17px; margin-top: 2px; }
.queue-item:hover { background: var(--bg); text-decoration: none; }
.queue-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.queue-item.active .ic { color: var(--accent); }
.post-preview { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); margin-bottom: var(--s2); overflow: hidden; }
.post-preview iframe { display: block; width: 100%; height: 560px; border: 0; background: #fff; }
.post-preview img { display: block; max-width: 100%; max-height: 560px; margin: 0 auto; }
.post-junk { margin-top: var(--s2); padding-top: 12px; border-top: 1px solid var(--border); }
.empty-state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: var(--s4) var(--s2); }
.empty-state > .ic { width: 36px; height: 36px; color: var(--accent); }
@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-preview iframe { height: 420px; }
}
@media (max-width: 700px) {
  .files .row-actions { text-align: left; }
  .upload-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .upload-list li .up-state { grid-column: 1 / -1; }
}
/* the upload box on a full-width panel: folder, drop area and button side by side */
@media (min-width: 900px) {
  .upload-panel .upload-zone { grid-template-columns: 260px minmax(0, 1fr) auto; align-items: end; }
  .upload-panel .upload-list { grid-column: 1 / -1; grid-row: 2; }
  .upload-panel .upload-actions .btn { height: 44px; }
}
.cell-stack { display: inline-block; } @media (max-width: 760px) { .cell-stack { text-align: right; } }

/* ===================== Stage 4: requests, messages, the client portal ===================== */
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list > li.muted { padding: 6px 0; }
.rq { display: flex; gap: var(--s2); justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border); }
.rq:last-child { border-bottom: 0; }
.req-main { min-width: 0; flex: 1 1 320px; display: grid; gap: 2px; }
.req-actions { flex: 0 1 auto; justify-content: flex-end; }
.inline-details { display: inline-block; position: relative; }
.inline-details > summary { list-style: none; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: 320px; max-width: 80vw; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.link-made { margin-bottom: var(--s2); display: grid; gap: 4px; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.msg-item { display: grid; gap: 4px; justify-items: start; max-width: 80%; }
.msg-item.mine { justify-self: end; justify-items: end; text-align: right; }
.bubble { background: var(--bg); border: 1px solid var(--border); border-radius: 12px 12px 12px 4px; padding: 10px 14px; text-align: left; overflow-wrap: anywhere; }
.msg-item.mine .bubble { background: var(--accent-soft); border-color: var(--accent-line); border-radius: 12px 12px 4px 12px; }
.choose-list { display: grid; gap: 8px; margin-top: var(--s2); }
.choose-item { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font: inherit; color: var(--text); cursor: pointer; }
.choose-item > span { display: grid; flex: 1; }
.choose-item > .ic { color: var(--accent); }
.choose-item:hover { border-color: var(--accent); background: var(--accent-soft); }
body.portal { background: var(--bg); }
.portal-top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.portal-bar { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: 10px var(--s2); }
.portal-brand img { display: block; width: 180px; height: auto; }
.portal-who { display: flex; align-items: center; gap: var(--s1); }
.portal-client { display: grid; text-align: right; line-height: 1.25; font-size: 13.5px; }
.portal-nav { max-width: 1080px; margin: 0 auto; display: flex; gap: 4px; padding: 0 var(--s2); overflow-x: auto; scrollbar-width: none; }
.portal-nav .tab { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid transparent; font-weight: 550; }
.portal-nav .tab .ic { width: 16px; height: 16px; }
.portal-nav .tab:hover { text-decoration: none; color: var(--text); }
.portal-nav .tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.portal-main { max-width: 1080px; margin: 0 auto; padding: var(--s3) var(--s2) var(--s4); }
.portal-foot { max-width: 1080px; margin: 0 auto; padding: 0 var(--s2) var(--s4); display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.portal-foot .ic { width: 15px; height: 15px; color: var(--green); flex: none; margin-top: 2px; }
.req-panel .upload-zone { margin-top: var(--s1); }
.up-item .upload-zone { margin-top: 4px; }
.up-item .upload-actions .btn, .req-panel .upload-actions .btn { height: 44px; }
@media (max-width: 640px) {
  .portal-brand img { width: 132px; }
  .portal-client { display: none; }
  .hide-sm { display: none; }
  .msg-item { max-width: 92%; }
  .inline-details[open] > form { position: static; width: auto; margin-top: 8px; box-shadow: none; }
}
@media (max-width: 640px) { .portal-nav { gap: 0; padding: 0 8px; } .portal-nav .tab { padding: 10px 9px; } .portal-nav .tab .ic { display: none; } }

/* ===================== Stage 5: letters, templates and signing ===================== */
.tpl-card { cursor: default; }
.tpl-card .row-btns { margin-top: 8px; }
.tpl-subject { overflow-wrap: anywhere; }
.form-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-1 { grid-template-columns: 1fr; }
.editor-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.editor-bar .inline-select { height: 30px; font-size: 13px; max-width: 280px; }
.editor { min-height: 260px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: #fff; outline: none; overflow-wrap: anywhere; }
.editor:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.letter-body { font-size: 14.5px; line-height: 1.6; }
.letter-body p { margin: 0 0 10px; }
.letter-body ul, .letter-body ol { margin: 0 0 10px; padding-left: 22px; }
.letter-body h3 { margin: 14px 0 6px; }
.letter-body table { border-collapse: collapse; margin-bottom: 10px; }
.letter-body td, .letter-body th { border: 1px solid var(--border); padding: 4px 8px; }
.letter-paper { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; }
mark.field-left { background: var(--amber-bg); color: var(--amber); border-radius: 3px; padding: 0 3px; font-weight: 600; }
.letter-meta { display: flex; gap: var(--s3); flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.auto-list { list-style: none; margin: 0; padding: 0; }
.auto-rule { display: flex; gap: var(--s2); justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.auto-rule:last-child { border-bottom: 0; }
.auto-rule.later { opacity: .65; }
.auto-main { min-width: 0; flex: 1 1 360px; display: grid; gap: 2px; }
.auto-form { display: flex; gap: var(--s1); align-items: center; flex-wrap: wrap; }
.auto-form .inline-select { height: 30px; font-size: 13px; max-width: 260px; }
.sign-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s3); align-items: start; }
.sign-layout > .panel { margin-bottom: 0; }
.sign-layout .sign-doc { max-height: none; padding: 28px 32px; }
.sign-letterhead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s2); flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--accent); }
.sign-letterhead img { width: 180px; height: auto; }
.sign-panel { top: 120px; }
.sign-panel .sig-ink { opacity: 1; }
.sign-agree { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.sign-agree .check-line { align-items: flex-start; }
.sign-agree .check-line input { margin-top: 3px; flex: none; }
@media (max-width: 960px) {
  .sign-layout { grid-template-columns: 1fr; }
  .form-3 { grid-template-columns: 1fr; }
  .sign-layout .sign-doc { padding: 18px; }
}
[hidden] { display: none !important; }

/* ===================== Stage 6: Microsoft 365 and Integrations ===================== */
.int-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s3); }
.int-pill { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.int-pill > span:not(.badge) { display: grid; flex: 1; min-width: 0; }
.int-pill > .ic { color: var(--accent); }
.int-head { display: flex; gap: 8px; align-items: center; }
.int-head .ic { color: var(--accent); }
.int-card p { margin: 0; }
.howto { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 10px 14px; }
.howto summary { cursor: pointer; font-weight: 600; }
.howto[open] summary { margin-bottom: 10px; }
@media (max-width: 960px) { .int-status { grid-template-columns: 1fr; } }

/* ===================== Stage 7: deadlines, team and Home ===================== */
a.stage-pill { color: var(--text); }
a.stage-pill:hover { text-decoration: none; border-color: var(--accent-line); }
.stage-pill.active { border-color: var(--accent); background: var(--accent-soft); }
.need-title { margin-top: 0; }
.need-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.need-grid > .panel { margin-bottom: 0; }
.need-item { border-left: 3px solid var(--border); padding-left: 10px !important; }
.need-red { border-left-color: var(--red); }
.need-amber { border-left-color: #e0a030; }
.need-accent { border-left-color: var(--accent); }
.off-list li { align-items: flex-start; }
.clash { color: var(--amber); margin-top: 4px; }
.clash .ic { width: 15px; height: 15px; vertical-align: -2px; color: var(--amber); }
.facts .full { grid-column: 1 / -1; }
@media (max-width: 960px) { .need-grid { grid-template-columns: 1fr; } }

.list-mid td { vertical-align: middle; }

/* Stage 8: New enquiries and Onboarding */
.card h4 a { color: inherit; text-decoration: none; }
.card h4 a:hover { color: var(--accent); }
.card h4 a::after { content: ""; position: absolute; inset: 0; }
.card .move, .card .meta .badge { position: relative; z-index: 1; }
.ob-card { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.ob-card.is-stale { border-color: #f3c3bd; }
.ob-tick-form { flex: 1 1 220px; min-width: 0; margin: 0; }
@media (max-width: 700px) { .ob-tick-form { flex: none; width: 100%; } }
button.ob-tick { background: none; border: 0; padding: 0; text-align: left; font: inherit; font-size: 13.5px; color: inherit; width: 100%; }
.ob-box { width: 18px; height: 18px; border: 1.5px solid #b8bdc4; border-radius: 4px; flex: none; display: grid; place-items: center; margin-top: 1px; background: var(--surface); color: #fff; transition: background var(--t), border-color var(--t); }
button.ob-tick:hover .ob-box { border-color: var(--accent); }
.is-done .ob-box { background: var(--accent); border-color: var(--accent); }
.is-done .ob-tick .ob-box { color: #fff; }
.is-done .ob-box .ic { stroke-width: 3; }
.ob-box .ic { width: 13px; height: 13px; }
.ob-hint { display: block; margin-top: 2px; }
.busy-out { min-height: 22px; }
.busy-list { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; }
.proposal-send { border-top: 1px solid var(--border); margin-top: var(--s2); padding-top: var(--s2); }
.proposal-form input { width: 100%; height: 36px; border: 1px solid var(--border); border-radius: 6px; padding: 0 10px; font: inherit; font-size: 14px; background: var(--surface); }
.proposal-form .fee-in { max-width: 110px; text-align: right; }
.proposal-form textarea { width: 100%; }
.proposal-doc { max-width: 720px; }
.fee-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.fee-table th, .fee-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.fee-table .num { text-align: right; }
.fee-table .tot td { font-weight: 700; border-bottom: 0; }
.key-once { display: inline-block; word-break: break-all; font-size: 13px; padding: 2px 6px; background: var(--surface); border-radius: 4px; }
@media (max-width: 700px) { .proposal-form .fee-in { max-width: none; } }
.form-one > input:not([type=checkbox]):not([type=hidden]):not([type=date]) { height: 36px; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font: inherit; font-size: 14px; color: var(--text); padding: 0 10px; }
.list td select { height: 34px; width: 100%; max-width: 340px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font: inherit; font-size: 13.5px; color: var(--text); padding: 0 8px; }

/* Stage 9: payroll */
.sheet input:not(.hrs):not([type=checkbox]) { height: 34px; width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13.5px; background: var(--surface); }
.sheet .tot td { border-bottom: 0; }
.starter-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0 0 var(--s2); }
.starter-form legend { font-weight: 600; padding: 0 6px; }
.pick-list { display: grid; gap: 8px; }
.pick-list .check-line { align-items: flex-start; }
.pick-list .check-line input { margin-top: 3px; flex: none; }
.list td .row-btns { flex-wrap: nowrap; justify-content: flex-end; }
#employees .td-main { white-space: nowrap; }
@media (max-width: 700px) { .list td .row-btns { justify-content: flex-start; } #employees .td-main { white-space: normal; } }
/* the client page has up to eleven tabs: one line, scrolling sideways if the screen is too narrow */
#client-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0; scrollbar-width: thin; }
#client-tabs .tab { padding: 8px 8px; }

/* Stage 10: fees and figures */
.chart-box { position: relative; height: 260px; }
.fee-edit td input { height: 36px; width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 0 10px; font: inherit; font-size: 14px; background: var(--surface); }
.fee-edit td select { height: 36px; width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 14px; background: var(--surface); }
.fee-edit .fee-in { text-align: right; max-width: 120px; }
.fee-lines-sum { font-size: 13px; }

/* Stage 11: website news and marketing */
.news-list li { align-items: center; }
.news-item-text { min-width: 0; flex: 1; }
.news-item-text > a { font-weight: 600; }
.news-summary { margin: 4px 0 0; color: var(--muted); max-width: 72ch; }
.news-item-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 52%; }
.news-item-actions .badge { margin-right: 4px; }
.page-review { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.page-review input { height: 32px; width: 180px; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; background: var(--surface); }
.input-money { height: 34px; width: 110px; text-align: right; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 14px; background: var(--surface); }
#campaign-form .check-line { display: flex; margin: 6px 0; flex-wrap: wrap; }
#campaign-form input[type=datetime-local] { height: 34px; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 14px; background: var(--surface); }
.flow-step input[type=number] { max-width: 120px; }
@media (max-width: 700px) {
  .news-list li { flex-direction: column; align-items: stretch; }
  .news-item-actions { max-width: none; justify-content: flex-start; }
  .page-review { flex-wrap: wrap; justify-content: flex-start; }
  .page-review input { width: 100%; }
  .input-money { width: 100%; }
}
#new-article input { height: 36px; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font: inherit; font-size: 14px; color: var(--text); padding: 0 10px; }

/* Stage 12: moving in and going live */
.go-checks li { align-items: center; }
.go-checks .ic { vertical-align: -3px; }
.go-checks .ic-ok { color: var(--green, #1f7a4d); }
.row-muted td { color: var(--muted); }
.input-short { height: 36px; width: 140px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font: inherit; font-size: 14px; padding: 0 10px; }
.file-pick input[type=file] { font: inherit; font-size: 14px; max-width: 100%; }
#map-table select, #doc-clients select, #doc-folders select { height: 34px; width: 100%; max-width: 320px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font: inherit; font-size: 13.5px; padding: 0 8px; }
details.panel.howto > summary { cursor: pointer; }

/* Stage 13: price list, proposals, engagement letters, clearance */
.builder-lines { display: grid; gap: 12px; }
.builder-line { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.builder-line.is-out { opacity: .55; }
.bl-main { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, .9fr) 90px minmax(0, 1.3fr) auto; gap: 10px 12px; align-items: start; }
.bl-main .field { margin: 0; }
.bl-main input, .bl-main select, .bl-pick { height: 36px; width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text); }
.bl-disc-in { display: flex; gap: 6px; }
.bl-disc-in select { width: 76px; flex: none; }
.bl-total { text-align: right; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; white-space: nowrap; }
.bl-opts { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 10px; }
.bl-words { margin-top: 10px; }
.bl-words summary { cursor: pointer; font-size: 13.5px; color: var(--accent); }
.bl-words .editor { min-height: 90px; margin-top: 6px; }
.bl-pick { max-width: 560px; }
.builder-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.builder-totals { display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap; }
.builder-totals > div { display: flex; flex-direction: column; }
.builder-totals strong { font-size: 18px; }
.prop-layout .sign-doc { max-height: none; }
.prop-h { font-size: 17px; margin: 18px 0 8px; }
.prop-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.prop-line { display: flex; justify-content: space-between; gap: var(--s2); padding: 12px 0; border-bottom: 1px solid var(--border); }
.prop-name { min-width: 0; flex: 1; }
.prop-price { text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.prop-more summary { cursor: pointer; font-size: 13px; color: var(--accent); margin-top: 4px; }
.prop-more .letter-body { font-size: 13.5px; margin-top: 6px; }
.prop-add { font-weight: 600 !important; }
.prop-totals { margin: 0; display: grid; gap: 10px; }
.prop-totals > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.prop-totals dt { font-weight: 600; }
.prop-totals dd { margin: 0; text-align: right; }
.prop-decline summary { cursor: pointer; font-size: 13.5px; color: var(--muted); }
.prop-decline textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 8px; font: inherit; }
table.schedule td, table.schedule th { font-size: 14px; }
.sign-others { margin-top: 14px; }
.ob-panels .panel { margin-bottom: 0; }
.legal-doc { max-width: 860px; padding: 28px 32px; }
@media (max-width: 900px) {
  .bl-main { grid-template-columns: 1fr 1fr; }
  .bl-main .bl-name { grid-column: 1 / -1; }
  .bl-total { text-align: left; grid-column: 1 / -1; flex-direction: row; gap: 8px; align-items: baseline; }
}
@media (max-width: 700px) {
  .prop-line { flex-direction: column; }
  .prop-price { align-items: flex-start; text-align: left; }
  .legal-doc { padding: 18px; }
}
.chosen-list { list-style: none; margin: 10px 0 0; padding: 8px 10px; max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.chosen-list li { padding: 4px 0; }
.chosen-clients input[type=search] { height: 34px; border: 1px solid var(--border); border-radius: 6px; padding: 0 10px; font: inherit; font-size: 14px; min-width: 240px; }
/* a link to a part of a page (#ob-idsent) stops below the sticky top bar, not under it */
html { scroll-padding-top: 84px; }
.prop-amount { white-space: nowrap; }
/* "Send it at": the date box sits in a tick-box line, whose rule is sized for tick boxes */
#campaign-form .check-line input[type=datetime-local] { width: auto; min-width: 210px; height: 34px; }
/* Write a letter: the fold-out for adding the letter's requests to the client's portal */
details.fold { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
details.fold > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
details.fold[open] > summary { border-bottom: 1px solid var(--border); }
.fold-inner { padding: 12px 14px; display: grid; gap: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
/* Portal: each deadline with a bar showing how far along it is */
.portal-work li { display: grid; gap: 6px; }
.portal-work .bar { width: 100%; max-width: 100%; }
/* Integrations: each job that runs on its own, with its switch */
.jobs-list li { align-items: flex-start; }
.jobs-list .check-line { align-items: flex-start; }
.jobs-list .check-line > span { display: grid; gap: 2px; }
/* Onboarding: an ID check recorded against each person */
.id-people > li { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.id-people .inline-details[open] { flex-basis: 100%; }
.id-form { margin-top: 10px; }
/* tab bars that scroll sideways never scroll up and down: the active tab's line overlapped the bar's bottom line by
   1px, which gave the bar a vertical scrollbar. The bottom line is drawn inside the bar instead, so it looks the same. */
#client-tabs { overflow-y: hidden; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--border); }
#client-tabs .tab { margin-bottom: 0; }
@media (max-width: 700px) {
  .tabs { overflow-y: hidden; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--border); }
  .tabs .tab { margin-bottom: 0; }
}
/* an error shown inside a dialog, above its fields */
.modal .modal-flash { margin: 0 0 var(--s2); }
/* a form that is a row of controls (a date or a confirm box beside its button): spaced and lined up, not touching */
form.inline-form.row-btns { display: flex; gap: var(--s1); align-items: center; flex-wrap: wrap; }
form.inline-form.row-btns input { height: 34px; }
/* column headers that sort the list: press for A to Z, again to reverse */
.th-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; white-space: nowrap; }
a.th-sort { text-decoration: none; }
.th-sort:hover { color: var(--text); }
.th-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.th-arrow { display: inline-block; width: 0; height: 0; margin-left: 2px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .25; }
.th-sort:hover .th-arrow { opacity: .55; }
.th-sort.is-asc .th-arrow { border-top: 0; border-bottom: 5px solid var(--accent); opacity: 1; }
.th-sort.is-desc .th-arrow { border-top-color: var(--accent); opacity: 1; }
th.num .th-sort { justify-content: flex-end; }
/* filters apply as you type or choose: the Filter or Search button is only for when scripts are off */
form.toolbar.is-live button[type=submit] { display: none; }
form.toolbar.is-loading .count { opacity: .5; }
/* Who we can talk to: a warning under one not signed yet, and the names on the client Overview */
.auth-warn { margin: 10px 0 0; }
.auth-names li { align-items: flex-start; }
.badge-link { text-decoration: none; display: inline-flex; }
.badge-link:hover .badge, .badge-link:focus-visible .badge { text-decoration: underline; }
/* the fee form: a service from the price list, its words, how often and the fee, in fixed columns */
@media (min-width: 701px) {
  .fee-edit { table-layout: fixed; }
  .fee-edit th:nth-child(1) { width: 36%; } .fee-edit th:nth-child(2) { width: 34%; } .fee-edit th:nth-child(3) { width: 14%; } .fee-edit th:nth-child(4) { width: 16%; }
}
@media (max-width: 700px) {
  .fee-edit td::before { flex: 0 0 92px; }
  .fee-edit td > select, .fee-edit td > input:not([type=hidden]) { flex: 1; min-width: 0; }
  .fee-edit .fee-in { max-width: none; }
}

/* Oval's feedback, 23 October 2026: CPD record, people linked to their own client record, Companies House name search */
.kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cpd-list li { align-items: flex-start; }
.cpd-learned { margin: 6px 0 0; font-size: 13.5px; max-width: 70ch; }
.cpd-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; color: var(--text); background: var(--bg); max-width: 100%; overflow-wrap: anywhere; }
.file-chip .ic { width: 14px; height: 14px; flex: none; }
.file-chip:hover { border-color: var(--accent-line); text-decoration: none; }
@media (min-width: 900px) { tr.is-current td { background: var(--accent-soft); } }
.person-own { margin-top: 4px; font-size: 13px; }
.person-own .ic { width: 14px; height: 14px; color: var(--accent); vertical-align: -2px; margin-right: 4px; }
form.person-own { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
form.person-own .ic { margin-right: 0; flex: none; }
.ch-matches { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.ch-matches li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 640px) {
  .kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpis.kpis-3 .kpi { padding: 10px; }
  .kpis.kpis-3 .kpi-label, .kpis.kpis-3 .kpi-sub { font-size: 11.5px; line-height: 1.3; }
  .kpis.kpis-3 .kpi-value { font-size: 20px; }
}

/* directors Companies House lists who are not on the company (People panel) */
.ch-missing { border: 1px solid var(--border); background: var(--accent-soft); border-radius: var(--radius); padding: 10px 14px; margin-bottom: var(--s2); }
.ch-missing p { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.ch-missing p.muted { margin: 6px 0 0; }
.ch-missing li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 4px 0; }

/* a payroll client's account code for new starters (Payroll tab) */
.account-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
.account-code .code { font-size: 1.35rem; letter-spacing: .08em; }
