/* Epsilon Engage app. Builds on base.css tokens. Logical properties keep layouts correct in RTL. */
body { font-size: 16px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
h1 { font: 600 clamp(26px, 3vw, 34px)/1.2 var(--serif); letter-spacing: -.01em; }
h2 { font: 600 20px/1.3 var(--serif); }
h3 { font: 600 16px/1.4 var(--sans); }
h4 { font: 600 14px/1.4 var(--sans); color: var(--text-2); }
p { margin: 0 0 10px; }
a { color: var(--link); }
p a:not(.btn):not(.cite), .notice a:not(.btn), .hint a, td a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
code { font-size: 13px; background: var(--paper); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.small { font-size: 14px; } .muted { color: var(--muted); } .prewrap { white-space: pre-wrap; } .pad { padding: 14px 24px; }
.sr-only { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.overdue, .warn-text { color: var(--danger); font-weight: 600; } .ok-text { color: var(--ok); }
.req { color: var(--danger); } .opt { color: var(--muted); font-weight: 400; font-size: 13px; margin-inline-start: 4px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.demo-banner { background: #fff4d6; color: #5b4300; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid #f0d58a; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--sheet); border-inline-end: 1px solid var(--rule); padding: 22px 14px; display: flex; flex-direction: column; gap: 14px; }
.brand img { width: 168px; height: auto; display: block; margin-inline-start: 8px; }
.ws-switch { padding: 10px; border-radius: 12px; background: var(--paper); display: grid; gap: 8px; }
.ws-switch .back { font-size: 13px; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 4px; }
.ws-switch .back svg { width: 14px; height: 14px; transform: scaleX(-1); }
.ws-name { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ws-logo { width: 44px; height: 32px; border-radius: 8px; background: #fff; border: 1px solid var(--rule); display: grid; place-items: center; padding: 3px 5px; flex-shrink: 0; overflow: hidden; }
.ws-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ws-logo.empty { background: var(--ink); color: var(--gold-light); font-weight: 700; font-size: 13px; }
.ws-logo.lg { width: 120px; height: 64px; padding: 8px 12px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav a[aria-current="page"] svg { color: var(--gold-light); }
.nav hr { border: 0; border-top: 1px solid var(--rule); margin: 8px 6px; }
.nav-secondary { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); }
.nav-secondary a { font-size: 14px; padding: 8px 12px; }
.main-col { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 12px 32px; border-bottom: 1px solid var(--rule); background: var(--sheet); position: sticky; top: 0; z-index: 20; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }
.eng-select { display: flex; align-items: center; gap: 10px; flex: 1; font-size: 14px; color: var(--muted); font-weight: 600; }
.eng-select select { max-width: 420px; }
.user { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid transparent; border-radius: 999px; padding-block: 4px; padding-inline: 4px 10px; cursor: pointer; }
.user-btn:hover { border-color: var(--rule); }
.user-btn svg { width: 14px; height: 14px; color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--gold-light); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.user-meta { display: grid; text-align: start; line-height: 1.2; } .user-meta b { font-size: 14px; color: var(--ink); } .user-meta small { font-size: 12px; color: var(--muted); }
.menu { position: absolute; inset-inline-end: 0; top: 48px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(6, 20, 44, .35); padding: 6px; min-width: 200px; z-index: 30; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: start; background: none; border: 0; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.menu button:hover { background: var(--paper); } .menu svg { width: 16px; height: 16px; }
.content { padding: 28px 32px 48px; max-width: 1280px; width: 100%; outline: none; display: grid; gap: 20px; align-content: start; }
.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 32px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); margin-top: auto; }

/* ---------- headings ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.page-head p { color: var(--text-2); max-width: 70ch; margin: 6px 0 0; }
.ph-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ph-title h1 { min-width: 0; overflow-wrap: anywhere; }
.page-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 22px 26px; border-radius: 16px; color: #fff; position: relative; overflow: hidden;
  background: url("/guilloche.svg") right -120px center / 380px no-repeat, linear-gradient(150deg, var(--ink), var(--ink-deep)); }
.page-intro h1 { color: #fff; } .page-intro p { color: rgba(255, 255, 255, .88); margin: 4px 0 0; font-size: 16px; }
.page-intro .updated { font-size: 13px; color: rgba(255, 255, 255, .75); margin: 0; }
.section-title { font-size: 20px; margin: 4px 0 -6px; } .sub-title { margin: 12px 0 8px; }
.crumbs { font-size: 14px; color: var(--muted); } .crumbs a { color: var(--muted); }
.eyebrow-h { font: 600 13px/1.3 var(--sans); color: var(--muted); letter-spacing: .02em; margin-bottom: 8px; }
.form-group { font: 600 15px/1.3 var(--sans); margin: 18px 0 8px; color: var(--ink); padding-top: 12px; border-top: 1px solid var(--rule); }
.sub-h { font-size: 15px; padding: 14px 24px 4px; }
.updated { color: var(--muted); font-size: 13px; }

/* ---------- cards and lists ---------- */
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 1px 2px rgba(11, 33, 68, .04); }
.pad-card { padding: 20px 24px; display: grid; gap: 8px; align-content: start; }
.pad-card h2 { font-size: 18px; margin-top: 6px; } .pad-card h3 { margin-top: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.card-head.flush { padding: 0 0 10px; border: 0; }
.card-head h2 { font-size: 18px; } .count { font-size: 14px; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list-row { border-bottom: 1px solid var(--rule); } .list-row:last-child { border-bottom: 0; }
.list-row > a, .list-row.static { display: flex; align-items: center; gap: 14px; padding: 14px 24px; text-decoration: none; color: inherit; flex-wrap: wrap; }
.list-row > a:hover { background: var(--paper); }
.lr-main { flex: 1; min-width: 220px; display: grid; gap: 3px; } .lr-main b { color: var(--ink); font-weight: 600; }
.lr-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); margin: 0; align-items: center; }
.bullets { margin: 4px 0 8px; padding-inline-start: 20px; } .bullets li { margin: 3px 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.two-col > div, .two-col > aside { display: grid; gap: 20px; }
.two-col.even { grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .btn-row.col { flex-direction: column; align-items: stretch; } .btn-row.end { justify-content: flex-end; }
.btn.block { width: 100%; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: #7a5a1f; background: var(--gold-wash); border-radius: 6px; padding: 2px 8px; }
.tags span { display: inline-block; font-size: 12px; background: var(--paper); border-radius: 6px; padding: 2px 8px; margin: 2px; }
.notice { margin: 0; } .notice.small { font-size: 14px; }
.notice.warn b, .notice.info b { color: inherit; }
.iconbtn { background: none; border: 1px solid var(--rule); border-radius: 8px; width: 34px; height: 34px; display: inline-grid; place-items: center; cursor: pointer; color: var(--text-2); }
.iconbtn svg { width: 18px; height: 18px; }

/* ---------- overview ---------- */
.now-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.now-grid > .card { padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.focus { border-top: 3px solid var(--gold); }
.focus-title { font: 600 18px/1.35 var(--sans); color: var(--ink); margin: 0; }
.focus-title a { color: var(--ink); }
.when { font-weight: 600; color: var(--ink); margin: 0; }
.deadlines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.deadlines li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; font-size: 15px; }
.deadlines .date { font-weight: 600; color: var(--ink); font-size: 14px; }
.deadlines small { display: block; color: var(--muted); font-size: 13px; }
.blockers { border-color: #f1c9c4; background: #fffafa; } .blockers ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; }
.blockers small { display: block; color: var(--text-2); }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.action-list { list-style: none; padding: 0; margin: 0; }
.action { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 14px 24px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.action:last-child { border-bottom: 0; }
.action-main { flex: 1; min-width: 200px; display: grid; gap: 4px; } .action-title { font-weight: 600; color: var(--ink); }
.action-side { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; } .blocked-why { font-size: 14px; color: var(--danger); }
.action.blocked { background: #fffafa; }
.engagement { padding: 20px 24px; display: grid; gap: 14px; }
.eng-head { display: flex; justify-content: space-between; gap: 12px; } .eng-head h3 { font: 600 19px/1.3 var(--serif); }
.eng-summary { color: var(--text-2); margin: 0; }
.stage-track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.stage-track li a { display: grid; gap: 4px; padding: 12px; border-radius: 10px; border: 1px solid var(--rule); text-decoration: none; color: inherit; height: 100%; align-content: start; }
.stage-track li a:hover { border-color: var(--ink); }
.stage-track .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--paper); color: var(--muted); border: 1px solid var(--rule-strong); }
.stage-track .dot svg { width: 14px; height: 14px; }
.stage-track .st-label { font-weight: 600; color: var(--ink); font-size: 14px; } .stage-track .st-state { font-size: 13px; color: var(--muted); } .stage-track .st-note { font-size: 12px; color: var(--text-2); }
.stage-track .st-done .dot { background: var(--ok); border-color: var(--ok); color: #fff; } .stage-track .st-done .st-state { color: var(--ok); }
.stage-track .st-active a { border-color: var(--gold); background: var(--gold-wash); } .stage-track .st-active .dot { background: var(--ink); border-color: var(--ink); color: var(--gold-light); } .stage-track .st-active .st-state { color: #7a5a1f; font-weight: 600; }
.stage-track .st-blocked a { border-color: var(--danger); background: #fff6f5; } .stage-track .st-blocked .dot { background: var(--danger); border-color: var(--danger); color: #fff; } .stage-track .st-blocked .st-state { color: var(--danger); font-weight: 600; }
.stage-track.compact li { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; font-size: 13px; }
.eng-facts { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; color: var(--text-2); }
.bar { height: 8px; border-radius: 4px; background: var(--paper); border: 1px solid var(--rule); overflow: hidden; position: relative; }
.bar > span { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.bar.lg { height: 10px; margin-top: 4px; } .bar .expected { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--gold); }
.bar-val { font-size: 13px; color: var(--muted); }
.eng-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.eng-lists ul { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 15px; }
.feed { list-style: none; padding: 0; margin: 0; } .feed li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--rule); }
.feed li:last-child { border-bottom: 0; } .feed .date { font-weight: 600; font-size: 14px; color: var(--ink); } .feed p { margin: 4px 0 0; color: var(--text-2); }

/* ---------- people / facts ---------- */
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; } .people li { display: grid; } .people span { font-size: 14px; color: var(--muted); }
.label-like { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.facts { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 8px 16px; margin: 6px 0; font-size: 15px; }
.facts dt { font-weight: 600; color: var(--text-2); } .facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts dd ul { margin: 0; padding-inline-start: 18px; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding-block: 8px; padding-inline: 12px 8px; }
.linkbox code { flex: 1; background: none; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; } .checklist li.done { color: var(--muted); } .checklist span:first-child { margin-inline-end: 8px; }

/* ---------- tabs, filters, tables ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--text-2); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-selected="true"], .tabs a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); min-width: 180px; } .filters .grow { flex: 1; }
.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--paper); }
.table tbody th { font-weight: 600; color: var(--ink); }
.table .num { text-align: end; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
input.narrow { width: 90px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field.wide, fieldset.field.wide { grid-column: 1 / -1; }
.field > label, fieldset > legend { font-size: 14px; font-weight: 600; color: var(--text); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field input, .field select, .field textarea, .filters input, .filters select, .eng-select select { width: 100%; border: 1px solid var(--rule-strong); border-radius: 9px; padding: 10px 12px; font-size: 15px; background: #fff; color: var(--text); }
.field textarea { resize: vertical; }
.check-field { align-content: center; } .check { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; cursor: pointer; } .check input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; }
.choices-inline { display: flex; flex-wrap: wrap; gap: 8px 18px; } .choices-inline legend { width: 100%; margin-bottom: 4px; }
.picklist { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.rows { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.row-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: row; }
.row-item { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border-radius: 10px; padding: 12px; }
.row-fields { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 12px; }
.row-tools { display: flex; flex-direction: column; gap: 4px; }
.form-error { color: var(--danger); background: var(--danger-wash); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 0; }
.inline { display: flex; gap: 8px; } .inline input { flex: 1; }
.file-pick { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cand { display: grid; gap: 4px; justify-items: center; cursor: pointer; position: relative; } .cand input { position: absolute; opacity: 0; }
.cand-img { width: 100%; height: 70px; border-radius: 10px; background: #fff; border: 1px solid var(--rule-strong); display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden; }
.cand-img img { max-width: 100%; max-height: 52px; } .cand:has(input:checked) .cand-img { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 144, 79, .3); }
.cand:has(input:focus-visible) .cand-img { outline: 3px solid var(--focus); }

/* ---------- questionnaire ---------- */
.questionnaire { display: grid; gap: 20px; }
.q-section { padding: 20px 24px; display: grid; gap: 4px; }
.question { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.question legend { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.45; padding: 0; float: left; width: 100%; margin-bottom: 6px; }
.question legend + * { clear: both; }
.question .qn { color: #7a5a1f; margin-inline-end: 4px; } .question .help { color: var(--muted); font-size: 14px; margin: 0; clear: both; }
.question.invalid { border-inline-start: 3px solid var(--danger); padding-inline-start: 14px; }
.q-error { color: var(--danger); font-size: 14px; font-weight: 600; margin: 0; }
.choices { display: grid; gap: 8px; } .choices.inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule-strong); border-radius: 10px; padding: 11px 14px; cursor: pointer; font-size: 15px; }
.choice input { accent-color: var(--ink); width: 17px; height: 17px; flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--ink); background: #f2f5fa; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.scale .choice { flex-direction: column; text-align: center; gap: 4px; padding: 12px 6px; } .scale .choice b { font-size: 18px; } .scale .choice span { font-size: 13px; color: var(--text-2); }
.other-input { border: 1px solid var(--rule-strong); border-radius: 9px; padding: 9px 12px; font-size: 15px; }
.question textarea, .question input[type="number"] { border: 1px solid var(--rule-strong); border-radius: 9px; padding: 10px 12px; font-size: 15px; width: 100%; }
.savebar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 20px; background: rgba(255, 255, 255, .96); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 -8px 24px -18px rgba(6, 20, 44, .4); }
.savebar .spacer { flex: 1; } .save-status { font-size: 14px; color: var(--muted); margin: 0; } .save-status.ok { color: var(--ok); } .save-status.error { color: var(--danger); font-weight: 600; }
.answered { font-size: 14px; color: var(--text-2); }
.receipt { padding: 20px 24px; border-color: #bfe0cf; background: #f5fbf8; }
.review { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 10px 0 0; max-height: 60vh; overflow-y: auto; }
.review dt { font-weight: 600; margin-top: 10px; } .review dd { margin: 0; } .review dd.missing { color: var(--danger); font-weight: 600; }
.response { padding: 0; } .response > summary { padding: 14px 24px; cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.response > .review, .response > form, .response > .notice, .response > details { margin: 0 24px 16px; }
.score-form { border-top: 1px solid var(--rule); padding-top: 14px; display: grid; gap: 10px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, calc(50% - 6px)), 1fr)); gap: 12px; }
.stat { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.stat b { font: 600 26px/1.1 var(--serif); color: var(--ink); } .stat b small { font-size: 15px; } .stat span { font-size: 14px; color: var(--muted); }

/* ---------- proposals ---------- */
.doc { padding: 24px 28px; } .doc-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.fingerprint { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.change { background: var(--gold-wash); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.prose { display: grid; gap: 6px; } .prose h2 { font-size: 20px; margin-top: 18px; } .prose h3 { margin-top: 10px; }
.prose .lead { font-size: 17px; color: var(--ink); } .prose p, .prose li { line-height: 1.65; }
.signoffs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; } .signoffs li { border-inline-start: 3px solid var(--ok); padding-inline-start: 10px; }
.signed { font-size: 14px; color: var(--ok); }
.versions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; } .versions li { display: grid; gap: 2px; } .versions li.current a { font-weight: 700; }
.sign-box { background: var(--paper); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.statement { font: 600 17px/1.45 var(--serif); color: var(--ink); }
.files { list-style: none; padding: 0; margin: 0; }

/* ---------- progress & impact ---------- */
.funnel { list-style: none; margin: 0; padding: 16px 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.funnel li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--paper); }
.funnel b { font: 600 26px/1.1 var(--serif); color: var(--ink); } .funnel span { font-weight: 600; font-size: 14px; } .funnel small { font-size: 12px; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.metric { padding: 18px 20px; display: grid; gap: 6px; align-content: start; } .metric h3 { font-size: 15px; color: var(--muted); }
.metric-value { font: 600 32px/1.1 var(--serif); color: var(--ink); margin: 0; } .metric-sub { font-size: 14px; color: var(--text-2); margin: 0; }
.method summary { font-size: 13px; color: var(--link); cursor: pointer; } .method p { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.measure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.measure { padding: 20px 22px; display: grid; gap: 12px; align-content: start; } .measure h3 { font: 600 18px/1.3 var(--serif); }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vals > div { background: var(--paper); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; } .vals b { font: 600 22px/1.2 var(--serif); color: var(--ink); } .vals small { font-size: 12px; color: var(--muted); }
.verdict { border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 15px; margin: 0; }
.verdict.ok { background: var(--ok-wash); color: var(--ok); } .verdict.warn { background: var(--warn-wash); color: var(--warn); } .verdict.neutral { background: var(--paper); color: var(--muted); }
.resource-grid, .company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.resource { padding: 18px 20px; display: grid; gap: 8px; align-content: start; } .resource h2 { font-size: 17px; }
.company-cell { position: relative; display: grid; } .company-cell .co-del { position: absolute; inset-inline-end: 14px; bottom: 14px; } .company-cell:has(.co-del) .company { padding-bottom: 56px; }
.company { padding: 18px 20px; display: grid; gap: 10px; text-decoration: none; color: inherit; } .company:hover { border-color: var(--ink); }
.co-head { display: flex; gap: 12px; align-items: center; } .co-head h2 { font-size: 18px; } .co-head .ws-logo { width: 64px; height: 44px; }
.plan { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--paper); } .plan li a { flex: 1; min-width: 200px; }
.cert-req { background: var(--paper); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.thread { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.thread li { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 18px; } .thread li.epsilon { border-inline-start: 4px solid var(--gold); }

/* ---------- certificate ---------- */
.certificate { background: #fff; border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -10px; border-radius: 6px; padding: 56px 48px; text-align: center; display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.cert-logo { width: 220px; margin: 0 auto 10px; } .cert-kind { font: 600 14px/1 var(--sans); letter-spacing: .12em; color: #7a5a1f; text-transform: uppercase; }
.certificate h1 { font-size: 40px; } .cert-program { font: 600 22px/1.3 var(--serif); color: var(--ink); }
.certificate footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 18px; }

/* ---------- states, modal, toast ---------- */
.state { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 48px 24px; color: var(--text-2); }
.state h2 { font-size: 20px; } .state.denied h2, .state.error h2 { color: var(--danger); }
.state.empty { background: var(--sheet); border: 1px dashed var(--rule-strong); border-radius: 14px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--rule); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-bg { position: fixed; inset: 0; background: rgba(6, 20, 44, .45); display: grid; place-items: center; padding: 16px; z-index: 60; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 16px; }
.modal.wide { width: min(880px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.modal-body { padding: 18px 22px; overflow-y: auto; display: grid; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.toast { position: fixed; inset-inline-start: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; transition: .2s; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 80; pointer-events: none; font-size: 15px; max-width: min(560px, calc(100vw - 32px)); }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.error { background: var(--danger); } .toast.ok { background: #1f5c41; }
[dir="rtl"] .toast { transform: translate(50%, 16px); } [dir="rtl"] .toast.show { transform: translate(50%, 0); }

/* ---------- sign-in ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.gate-card { width: min(440px, 100%); padding: 32px 28px; display: grid; gap: 14px; }
.gate-logo { width: 190px; height: auto; } .gate-tag { color: var(--muted); font-size: 14px; margin: -6px 0 6px; }
.gate-card h1 { font-size: 26px; } .gate-ws { display: grid; gap: 10px; }
.forgot summary { cursor: pointer; color: var(--link); font-size: 15px; } .forgot form { margin-top: 12px; }

/* ---------- sales: pipeline board ---------- */
.table code { white-space: nowrap; }
ul.resource-grid { list-style: none; margin: 0; padding: 0; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; padding-bottom: 6px; } /* every stage visible, in order, wrapping onto a second row */
.board-col { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; min-height: 120px; }
.board-col h2 { font: 600 14px/1.3 var(--sans); color: var(--text-2); display: flex; justify-content: space-between; }
.deal-card { display: grid; gap: 4px; padding: 12px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; color: inherit; }
.deal-card:hover { border-color: var(--gold); }
.deal-card b { color: var(--ink); font-size: 15px; line-height: 1.3; }
.deal-figs { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.filters .tabs { border-bottom: 0; }

/* ---------- sales: deal workspace ---------- */
.stage-path { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.stage-path li { font-size: 13px; padding: 6px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); border: 1px solid var(--rule); }
.stage-path li.done { background: var(--ok-wash); color: var(--ok); border-color: transparent; }
.stage-path li.current { background: var(--ink); color: #fff; font-weight: 600; }
.reqs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.reqs li { display: flex; gap: 10px; align-items: baseline; }
.reqs li > span:first-child { width: 18px; color: var(--muted); font-weight: 700; flex-shrink: 0; }
.reqs li.ok > span:first-child { color: var(--ok); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.role { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.role h3 { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.role.missing { border-style: dashed; background: var(--paper); }
.role p { margin: 0 0 6px; font-size: 14px; }
.summary-box { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; }
.flags { list-style: none; margin: 0; padding: 12px 24px; display: grid; gap: 6px; border-bottom: 1px solid var(--rule); }
.flags li { font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.flags li.danger { background: var(--danger-wash); color: var(--danger); }
.flags li.warn { background: var(--warn-wash); color: var(--warn); }
.flags li.info { background: var(--info-wash); color: var(--info); }
.pkg-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; padding: 16px 24px; }
.prose .pkg-compare { padding: 0; margin: 10px 0 18px; }
.pkg { border: 1px solid var(--rule-strong); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.pkg.chosen { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-wash); }
.pkg h3 { font: 600 18px/1.3 var(--serif); color: var(--ink); margin: 0; }
.pkg h4 { margin: 4px 0 0; }
.table.compact th, .table.compact td { padding: 7px 8px; font-size: 14px; }
.table tr.optional td { color: var(--muted); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.totals dt { color: var(--text-2); } .totals dd { margin: 0; text-align: end; }
.opt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.selection-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--rule); background: var(--gold-wash); border-radius: 0 0 14px 14px; }
.selection-bar p { margin: 0; }
.contract { border-bottom: 1px solid var(--rule); } .contract:last-of-type { border-bottom: 0; }
.contract h3 { margin-bottom: 4px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ask { display: none; background: none; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--link); cursor: pointer; white-space: nowrap; }
.can-ask .ask { display: inline-block; }
.ask:hover { border-color: var(--link); }
.linklike { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; }
.diff { display: grid; gap: 4px 0; margin: 0; }
.diff dt { font-weight: 600; color: var(--ink); margin-top: 10px; text-transform: capitalize; }
.diff dd { margin: 0; display: grid; gap: 4px; }
.diff del { background: var(--danger-wash); color: var(--danger); padding: 2px 6px; border-radius: 4px; text-decoration: line-through; }
.diff ins { background: var(--ok-wash); color: var(--ok); padding: 2px 6px; border-radius: 4px; text-decoration: none; }
.briefing { white-space: pre-wrap; font: 14px/1.55 var(--sans); background: var(--paper); border-radius: 10px; padding: 14px; margin: 0; overflow-x: auto; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; } .inline-form .field { flex: 1; min-width: 240px; }
.needs-block { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 12px; } .needs-block:first-of-type { border-top: 0; margin-top: 0; }
.poll { margin-bottom: 16px; } .poll td input { width: 18px; height: 18px; }
details summary { cursor: pointer; color: var(--link); font-size: 14px; margin-top: 8px; }
@media (max-width: 900px) { .board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 80%); overflow-x: auto; } .pkg-compare { padding: 12px 16px; } }
@media print { .ask, .selection-bar { display: none !important; } }

/* ---------- reminder bell ---------- */
.bell-wrap { position: relative; }
.bell { position: relative; }
.bell svg { width: 20px; height: 20px; }
.bell-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.bell-pop { width: min(360px, calc(100vw - 32px)); padding: 0; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.bell-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.bell-list li { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.bell-list li:hover { background: var(--paper); }
.bell-list .btn { width: auto; display: inline-flex; padding: 4px 12px; font-size: 13px; }
.bell-list a { flex: 1; display: grid; gap: 2px; text-decoration: none; color: inherit; font-size: 14px; min-width: 0; }

/* ---------- quote editor ---------- */
.qeditor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.qform { display: grid; gap: 20px; }
.qsummary { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.qsummary h2 { margin-bottom: 8px; } .qsummary h3 { font-size: 14px; margin: 12px 0 4px; }
.qsum-pkg { border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 10px; }
.qsummary .flags { padding: 0; border: 0; }
.qlines { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 12px; }
.qline { border: 1px solid var(--rule-strong); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.qline.is-optional { border-style: dashed; background: var(--paper); }
.qline-head { display: flex; gap: 12px; align-items: flex-start; }
.qline-head .grow { flex: 1; min-width: 0; }
.qline-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 28px; }
.qline-amt { display: grid; justify-items: end; text-align: end; min-width: 120px; margin-top: 26px; font-variant-numeric: tabular-nums; }
.qline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; }
.qline-grid .wide { grid-column: 1 / -1; }
.qline .row-tools { margin-top: 24px; }
.qrow { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
.qbar-text { display: grid; min-width: 0; } .qmini { display: none; font-weight: 600; color: var(--ink); }
@media (max-width: 1100px) { .qmini { display: block; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.chip:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input { margin: 0; }
@media (max-width: 1100px) { .qeditor { grid-template-columns: 1fr; } .qsummary { position: static; max-height: none; } }
@media (max-width: 600px) { .qeditor ~ .savebar { flex-wrap: nowrap; gap: 8px; padding: 10px 12px; } .qeditor ~ .savebar .btn { padding: 10px 16px; } .qeditor ~ .savebar .small { font-size: 12px; line-height: 1.2; } .qline-head { flex-wrap: wrap; } .qline-n { display: none; } .qline-amt { margin-top: 0; justify-items: start; text-align: start; } .qrow { grid-template-columns: 1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .two-col { grid-template-columns: 1fr; }
  .stage-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 16px; } .content { padding: 20px 16px 40px; } .footer { padding: 16px; }
  .actions-grid, .two-col.even { grid-template-columns: 1fr; }
  .user-meta { display: none; }
  .eng-select span { display: none; }
}
@media (max-width: 600px) {
  .stage-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scale { grid-template-columns: 1fr; } .scale .choice { flex-direction: row; text-align: start; }
  .facts { grid-template-columns: 1fr; } .vals { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .feed li, .deadlines li { grid-template-columns: 1fr; }
  .measure-grid { grid-template-columns: 1fr; }
  .page-intro { background: linear-gradient(150deg, var(--ink), var(--ink-deep)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .badge, .btn { border: 1px solid; } .bar > span { background: Highlight; } }
@media print {
  .sidebar, .topbar, .footer, .no-print, .demo-banner, .savebar, .skip, .menu-btn { display: none !important; }
  .layout { display: block; } .content { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; } .page-intro { color: #000; background: none; border: 1px solid #ccc; } .page-intro h1, .page-intro p { color: #000; }
  .certificate { border-width: 2px; margin-top: 40px; }
  a { color: inherit; text-decoration: none; }
}
.gate .gate-card { justify-items: stretch; text-align: start; max-width: none; }
.gate .gate-card .gate-logo { justify-self: start; }

[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.deadlines .date.overdue { color: var(--danger); }
.deadlines .date.overdue::after { content: "Overdue"; display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.choice:has(input[value="__other"]:not(:checked)) + .other-input { display: none; }
.content > *, .two-col > * , .card { min-width: 0; }
.main-col { overflow-x: clip; }

/* ---------- Arabic and right-to-left ---------- */
:root[lang="ar"] { --sans: "IBM Plex Sans Arabic", "Figtree", system-ui, sans-serif; --serif: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif; }
:root[lang="ar"] body { line-height: 1.75; }
:root[lang="ar"] h1, :root[lang="ar"] h2 { letter-spacing: 0; line-height: 1.45; }
[dir="rtl"] .ws-switch .back svg, [dir="rtl"] svg.flip { transform: none; }
[dir="rtl"] code, [dir="rtl"] .fingerprint, [dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .table .num, [dir="rtl"] .totals dd { unicode-bidi: plaintext; }
.lang-btn { font-weight: 600; }
.lang-btn[lang="ar"] { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }
.gate-card { position: relative; } .gate-lang { position: absolute; top: 16px; inset-inline-end: 16px; }
.cred { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.cred:last-child { border-bottom: 0; } .cred p { margin: 2px 0 0; }
.stop-card { border-color: var(--danger-wash); }

/* ---------- inbox ---------- */
.inbox { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.inbox-list { max-height: calc(100vh - 220px); overflow-y: auto; }
.inbox-list .list-row.selected > a { background: var(--gold-wash); }
.inbox-list .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--link); margin-inline-end: 6px; vertical-align: middle; }
.thread-meta { margin: 12px 0; }
.messages { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.msg { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.msg.out { background: var(--paper); margin-inline-start: 24px; }
.msg.in { margin-inline-end: 24px; }
.msg.scheduled { border-style: dashed; }
.msg-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.msg-body { font-size: 15px; overflow-wrap: anywhere; }
.flags-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.seq-step { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
@media (max-width: 1000px) { .inbox { grid-template-columns: 1fr; } .inbox-list { max-height: none; } }

/* ---------- public pages ---------- */
.public-page { align-items: start; padding-top: 40px; }
.public-card { width: min(760px, 100%); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- AI assistant ---------- */
.as-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.as-main { display: flex; flex-direction: column; gap: 14px; padding: 20px; min-height: 60vh; }
.as-side { display: grid; gap: 16px; } .as-side .card { padding: 16px 18px; } .as-side h2 { font-size: 16px; margin-bottom: 10px; }
.as-tasks { display: flex; flex-wrap: wrap; gap: 8px; }
.as-log { flex: 1; display: grid; gap: 22px; align-content: start; overflow-y: auto; max-height: 62vh; padding-inline-end: 4px; }
.as-empty { margin: auto 0; }
.as-q { justify-self: end; max-width: 80%; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; margin: 0; }
[dir="rtl"] .as-q { border-radius: 14px 14px 14px 4px; }
.as-a { border-inline-start: 3px solid var(--gold); padding-inline-start: 14px; display: grid; gap: 6px; }
.as-a > p:first-child { font-size: 16px; margin: 0; }
.as-a h3 { font: 600 13px/1.3 var(--sans); color: var(--muted); margin: 8px 0 0; }
.as-a ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; }
.as-facts li { display: grid; gap: 4px; }
.cites { display: flex; flex-wrap: wrap; gap: 6px; }
.cite { font-size: 12px; border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; color: var(--text-2); text-decoration: none; background: var(--paper); }
a.cite:hover { border-color: var(--gold); }
.cite-kind { color: var(--muted); }
.as-sugg li::marker { content: "→ "; color: var(--gold); }
[dir="rtl"] .as-sugg li::marker { content: "← "; }
.as-missing li { color: var(--text-2); }
.as-actions { list-style: none; padding: 0 !important; }
.as-actions li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; border: 1px solid var(--rule); border-radius: 10px; padding: 8px 12px; }
.as-actions li .small { grid-column: 1; }
.as-actions li button { grid-row: 1 / span 2; grid-column: 2; }
.as-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; }
.as-meta svg { width: 14px; height: 14px; }
.as-form { display: grid; gap: 8px; border-top: 1px solid var(--rule); padding-top: 14px; }
.as-form textarea { resize: vertical; min-height: 56px; }
.as-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.as-controls select { width: auto; }
.as-mic svg { width: 18px; height: 18px; }
.as-mic[aria-pressed="true"] { background: var(--danger); color: #fff; border-color: var(--danger); }
.as-chats { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 4px; }
.as-chats li { display: grid; grid-template-columns: 1fr auto; gap: 0 6px; padding: 6px 8px; border-radius: 8px; }
.as-chats li[aria-current="true"] { background: var(--gold-wash); }
.as-chats li .linkbtn { text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-chats li .small { grid-column: 1; }
.as-chats li .iconbtn { grid-row: 1 / span 2; grid-column: 2; width: 28px; height: 28px; }
.as-reqs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.as-reqs li { display: grid; gap: 4px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.as-reqs .badge { justify-self: start; }
@media (max-width: 900px) { .as-layout { grid-template-columns: 1fr; } .as-log { max-height: none; } .as-q { max-width: 92%; } }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.import-table { max-height: 46vh; overflow: auto; margin-top: 8px; }
.import-table td .small { display: block; }
.waitlist ol { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.waitlist li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.slot-days { display: grid; gap: 14px; margin-top: 8px; }
.slot-day h2 { font-size: 15px; margin: 0 0 6px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot span { display: inline-block; padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: 10px; font-variant-numeric: tabular-nums; }
.slot input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.cert-verify { margin-top: 12px; }
.capacity.short { border-inline-start: 4px solid var(--danger); }
.viewas-banner { position: sticky; top: 0; z-index: 70; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; padding: 10px 16px; background: var(--ink); color: #fff; font-size: 14px; text-align: center; }
.viewas-banner .btn { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- accounts tracker ---------- */
.tr-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tr-total { padding: 14px 16px; display: grid; gap: 2px; }
.tr-total b { font: 600 26px/1.15 var(--serif, inherit); color: var(--ink); }
.tr-total.warn { border-top: 3px solid var(--danger); }
.tr-label { font-size: 13px; color: var(--text-2); }
.tr-funnel ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 0; overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--card, #fff); }
.tr-funnel li + li { border-inline-start: 1px solid var(--rule); }
.tr-funnel a, .tr-funnel button { display: grid; gap: 2px; padding: 10px 12px; text-decoration: none; color: inherit; height: 100%; width: 100%; text-align: start; background: none; border: 0; font: inherit; cursor: pointer; }
.tr-funnel a:hover, .tr-funnel button:not(:disabled):hover { background: var(--paper); }
.tr-funnel button:disabled { cursor: default; }
.tr-funnel button[aria-pressed="true"] { background: var(--ink); color: #fff; } .tr-funnel button[aria-pressed="true"] b, .tr-funnel button[aria-pressed="true"] .tr-stage, .tr-funnel button[aria-pressed="true"] .small { color: #fff; }
.tr-funnel li:first-child button { border-radius: 13px 0 0 13px; } .tr-funnel li:last-child button { border-radius: 0 13px 13px 0; }
.page-more .row-more-menu { min-width: 240px; }
.tr-funnel b { font-size: 22px; color: var(--ink); }
.tr-funnel .tr-stage { font-size: 12px; color: var(--text-2); }
.tr-funnel .small { color: var(--muted); white-space: nowrap; }
.tr-funnel li.zero b, .tr-funnel li.zero .tr-stage { color: var(--muted); font-weight: 400; }
.tr-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 18px 0 12px; }
.tr-filters input[type=search] { width: 220px; max-width: 100%; }
.chip { border: 1px solid var(--rule-strong); background: transparent; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--text-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tr-rows { display: grid; gap: 14px; }
.tr-row { padding: 16px 18px; }
.tr-row.attn { border-inline-start: 4px solid var(--gold); }
.tr-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tr-head h2 { font-size: 19px; margin: 0 0 4px; }
.tr-head h2 a { color: var(--ink); text-decoration: none; }
.tr-head h2 a:hover { text-decoration: underline; }
.tr-body { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 18px; margin-top: 12px; }
.tr-col h3 { font: 600 13px/1.3 var(--sans, inherit); color: var(--muted); margin: 0 0 6px; }
.tr-col p { margin: 2px 0; }
.tr-deal, .tr-eng { padding: 8px 0; border-top: 1px solid var(--rule); }
.tr-deal:first-of-type, .tr-eng:first-of-type { border-top: 0; padding-top: 0; }
.tr-steps { display: inline-flex; gap: 3px; vertical-align: middle; margin-inline-end: 6px; }
.tr-steps span { width: 10px; height: 6px; border-radius: 3px; background: var(--rule-strong); }
.tr-steps span.done { background: var(--ink); }
.tr-steps span.now { background: var(--gold); }
.tr-kpis { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 14px; margin: 6px 0; }
.tr-kpis div { display: grid; }
.tr-kpis dt { font-size: 12px; color: var(--muted); }
.tr-kpis dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.tr-attn ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 14px; }
@media (max-width: 1000px) { .tr-body { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tr-kpis { grid-template-columns: repeat(2, auto); } }
.nav-group { margin: 14px 12px 4px; font-size: 12px; font-weight: 600; color: var(--muted); } .nav-group:first-child { margin-top: 2px; }

/* ---------- my work ---------- */
.mw-panel { margin-bottom: 16px; }
.mw-list { list-style: none; margin: 0; padding: 0; }
.mw-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--rule); }
.mw-item:first-child { border-top: 0; }
.mw-item.late { box-shadow: inset 3px 0 0 var(--danger); }
[dir="rtl"] .mw-item.late { box-shadow: inset -3px 0 0 var(--danger); }
.mw-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; color: var(--text-2); }
.mw-icon svg { width: 16px; height: 16px; }
.mw-main { display: grid; min-width: 0; }
.mw-main b { font-weight: 600; overflow-wrap: anywhere; }
.mw-due { white-space: nowrap; }
.mw-group { margin-bottom: 14px; }
@media (max-width: 600px) { .mw-item { grid-template-columns: 28px minmax(0, 1fr); } .mw-due { grid-column: 2; } .mw-item .btn { grid-column: 2; justify-self: start; } }

/* ---------- search palette and quick actions ---------- */
.search-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.search-btn svg { width: 16px; height: 16px; }
.search-btn kbd { font: 500 11px/1 var(--sans, inherit); border: 1px solid var(--rule-strong); border-radius: 5px; padding: 3px 5px; color: var(--muted); }
.palette-bg { align-items: flex-start; padding-top: 12vh; }
.palette { width: min(620px, calc(100vw - 32px)); padding: 0; overflow: hidden; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 16px 18px; font-size: 17px; }
.palette input:focus { outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.palette li[role=option] { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.palette li[aria-selected="true"] { background: var(--ink); color: #fff; }
.palette li[aria-selected="true"] .muted { color: rgba(255,255,255,.75); }
.pal-group { font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px 4px; }
.pal-empty { padding: 14px 12px; color: var(--muted); }
.pal-help { margin: 0; padding: 8px 18px 12px; border-top: 1px solid var(--rule); }
.new-wrap { position: relative; }
.new-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 240px; z-index: 60; }
@media (max-width: 760px) { .search-btn span, .search-btn kbd { display: none; } }
.now-grid + .mw-panel { margin-top: 16px; }

/* ======================================================================
   Corporate finish (applies across the app; keeps the navy/gold brand)
   - squarer controls and tighter corners
   - serif only for page titles; section headings in the interface sans
   - clear page headers with a rule, calmer surfaces
   ====================================================================== */
:root { --paper: #f3f4f6; --rule: rgba(11, 33, 68, .10); --rule-strong: rgba(11, 33, 68, .18); }
.btn, .btn.sm, .chip, .user-btn, .search-btn, .lang-btn, .stage-path li { border-radius: 8px; }
.btn { padding: 10px 18px; font-weight: 600; letter-spacing: .005em; }
.btn.sm { padding: 6px 12px; }
.card, .tr-funnel ol, .page-intro, .palette, .modal { border-radius: 10px; }
.card { box-shadow: 0 1px 2px rgba(11, 33, 68, .05); }
.iconbtn { border-radius: 8px; }
input, select, textarea { border-radius: 6px; }

/* Headings: page title stays in the brand serif; everything inside pages uses the interface face */
.card-head h2, .card h2, .card h3, section > h2, .tr-head h2, .mw-group h2, .as-side h2 { font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.card-head h2, .card > h2 { font-size: 16px; color: var(--ink); }
.eyebrow-h { font: 600 12px/1.3 var(--sans); color: var(--muted); letter-spacing: .01em; }
main#view h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.01em; }

/* Page headers: title, one-line purpose, actions on the right, a rule beneath */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
.page-head p { margin: 6px 0 0; color: var(--text-2); max-width: 72ch; }

/* Workspace banner: flatter and shorter */
.page-intro { padding: 18px 22px; background: var(--ink); }
.page-intro::before, .page-intro::after { opacity: .35; }

/* Sidebar: quieter, clearer active state and group labels */
.sidebar { border-inline-end: 1px solid var(--rule); }
.nav a { border-radius: 6px; }
.nav-group { margin: 16px 12px 4px; font: 600 11px/1.2 var(--sans); color: var(--muted); letter-spacing: .02em; }
.nav-group:first-child, .ws-switch + .nav .nav-group:first-child { margin-top: 4px; }
.nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
[dir="rtl"] .nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--gold); }

/* Tables: crisp header row */
.table th { font-size: 13px; font-weight: 600; color: var(--text-2); background: #f8f9fb; }

/* Badges read as status labels, not decorations */
.badge { border-radius: 4px; font-weight: 600; letter-spacing: .01em; }

/* Top bar: tidy spacing */
.topbar { gap: 10px; }
/* Tabs wrap instead of hiding pages off the edge */
.tabs { flex-wrap: wrap; overflow-x: visible; row-gap: 0; }
.tabs a { padding: 10px 14px; }
.tabs a:hover { color: var(--ink); background: var(--paper); }
@media (max-width: 700px) { .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; } }
/* Top bar on narrower screens: keep language and account always visible */
@media (max-width: 1100px) { .viewas-btn { display: none; } }
@media (max-width: 760px) {
  .new-label { display: none; }
  .topbar { padding: 10px 12px; gap: 6px; }
  .user-meta, .user-btn > svg:last-child { display: none; }
  .lang-btn { padding: 6px 10px; }
}
.mw-slim { padding: 10px 18px; }
.mw-slim p { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; }
.mw-slim svg { width: 16px; height: 16px; color: var(--ok); }
.mw-slim a { margin-inline-start: auto; }

/* ---------- releases ---------- */
.env-banner { background: #5b2a86; color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }
.rel-envs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.rel-env { border-top: 4px solid var(--warn); }
.rel-env.production { border-top-color: var(--ok); }
.rel-env-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rel-id code { font-size: 15px; }
.rel-arrow { display: grid; align-content: center; justify-items: center; gap: 6px; text-align: center; max-width: 230px; }
@media (max-width: 900px) { .rel-envs { grid-template-columns: 1fr; } .rel-arrow { max-width: none; } }
.view-host { display: contents; } .view-host > * { min-width: 0; }

/* ---------- area tabs and workspace context bar ---------- */
.area-tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 0 32px; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.area-tabs a { padding: 11px 14px; color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 3px solid transparent; }
.area-tabs a:hover { color: var(--ink); background: var(--paper); }
.area-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.ctx-bar { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 10px 32px; background: #f8f9fb; border-bottom: 1px solid var(--rule); font-size: 14px; min-height: 44px; align-items: center; }
.ctx-item { display: grid; gap: 1px; min-width: 0; }
.ctx-k { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.ctx-item select { padding: 3px 8px; font-size: 14px; max-width: 260px; }
.ctx-next { flex: 1 1 260px; }
@media (max-width: 760px) { .area-tabs, .ctx-bar { padding-inline: 12px; } .area-tabs { flex-wrap: nowrap; overflow-x: auto; } .ctx-bar { gap: 6px 16px; } }
.pf-cell { min-width: 150px; } .pf-cell .bar { display: block; margin-top: 4px; } .pf-m { font-size: 14px; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.today-side { display: grid; gap: 16px; }
@media (max-width: 1000px) { .today-grid { grid-template-columns: 1fr; } }
.form-group-d { border-top: 1px solid var(--rule); padding-top: 4px; margin-top: 8px; }
.form-group-d > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.form-group-d > summary::before { content: "▸"; color: var(--muted); }
.form-group-d[open] > summary::before { content: "▾"; }
details.more > summary { cursor: pointer; color: var(--link); font-size: 14px; margin: 6px 0; }

/* Deal status: four answers at a glance */
.deal-status { margin-bottom: 16px; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.status-grid dt { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.status-grid dd { margin: 0; } .status-grid .bullets { margin: 0; padding-inline-start: 18px; }
@media (max-width: 900px) { .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .status-grid { grid-template-columns: 1fr; } }

/* Relationship timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 4px 14px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: baseline; }
.timeline li:first-child { border-top: 0; }
.tl-kind { font-size: .78rem; color: var(--muted); }
.tl-main { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.timeline .tl-call .tl-kind, .timeline .tl-decision .tl-kind, .timeline .tl-signature .tl-kind { color: var(--ink, inherit); font-weight: 600; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; } }
.tl-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl-tools select { width: auto; min-width: 0; }
.email-body { white-space: pre-wrap; font: inherit; background: var(--line-2); padding: 12px 14px; border-radius: 6px; margin: 8px 0 0; max-height: 260px; overflow: auto; }
/* Headings receive focus after navigation (for screen readers); don't draw a box around them. */
main h1[tabindex="-1"]:focus { outline: none; }
/* On phones the stage path shows only where the deal is, not all eleven stages. */
@media (max-width: 640px) {
  .stage-path li:not([aria-current]) { display: none; }
  .stage-path li[aria-current][data-pos]::after { content: " · " attr(data-pos); font-weight: 400; opacity: .8; }
}
.release-bar { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 60; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  max-width: 560px; margin-inline: auto; padding: 12px 16px; border-radius: 10px; background: var(--navy, #0b2144); color: #fff; box-shadow: 0 10px 30px rgba(11, 33, 68, .25); }
/* On phones the read-only banner scrolls away instead of covering a sixth of the screen. */
@media (max-width: 640px) { .viewas-banner { position: static; font-size: 13px; padding: 8px 12px; } .viewas-banner .btn { min-height: 36px; padding-block: 4px; } }
/* Base-currency equivalent of an amount in another currency, with the rate and its date. */
.fx-note { display: block; font-size: .8em; font-weight: 400; color: var(--muted); }
.meta .fx-note, .deal-figs .fx-note { display: inline; margin-inline-start: 4px; }
.metric-value .fx-note, .stat .fx-note { font-family: var(--sans, inherit); font-size: 13px; line-height: 1.4; margin-top: 4px; }
/* Field-level validation: the message sits under the field it belongs to. */
.field-error { display: block; margin-top: 4px; font-size: 13px; color: var(--danger, #a3281c); font-weight: 500; }
[aria-invalid="true"] { border-color: var(--danger, #a3281c) !important; box-shadow: 0 0 0 1px var(--danger, #a3281c); }

/* Close-out: separate tracks, each a checklist with explicit counts */
.co-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.co-list { list-style: none; margin: 0; padding: 0; }
.co-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.co-item:first-child { border-top: 0; }
.co-item p { margin: 2px 0 0; }
.co-icon { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--line); color: var(--muted); }
.co-done .co-icon { background: var(--ok, #1e7a46); border-color: var(--ok, #1e7a46); color: #fff; }
.co-open .co-icon { border-color: var(--warn, #a86500); color: var(--warn, #a86500); }
@media (max-width: 520px) { .co-grid { grid-template-columns: 1fr; } }

/* Question editor: outline on one side, one question on the other */
.qe { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.qe-outline { padding: 12px; position: sticky; top: 12px; max-height: calc(100vh - 120px); overflow: auto; }
.qe-secs, .qe-qs { list-style: none; margin: 0; padding: 0; }
.qe-sec { margin-bottom: 14px; }
.qe-sec-head { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.qe-sec-title { flex: 1; font-weight: 600; border: 1px solid transparent; background: transparent; padding: 6px 8px; border-radius: 6px; }
.qe-sec-title:hover, .qe-sec-title:focus { border-color: var(--line); background: var(--surface); }
.qe-q { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 8px; width: 100%; text-align: start; padding: 8px; border-radius: 8px; border: 1px solid transparent; background: none; cursor: pointer; font: inherit; color: inherit; }
.qe-q .small { grid-column: 2; }
.qe-q:hover { background: var(--line-2); }
.qe-q.on { border-color: var(--navy, #0b2144); background: var(--line-2); }
.qe-n { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--line-2); }
.qe-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qe-warn { grid-row: span 2; color: #fff; background: var(--danger, #a3281c); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.qe-h { margin-top: 0; }
.qe-more { margin: 12px 0; border-top: 1px solid var(--line); padding-top: 10px; }
.qe-more > summary { cursor: pointer; font-weight: 600; }
.qe-qactions { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.qe-empty { text-align: center; padding: 32px 0; }
@media (max-width: 860px) { .qe { grid-template-columns: 1fr; } .qe-outline { position: static; max-height: none; } }

/* Proposal flow: Scope → Pricing → Preview → Internal review → Share → Client decision */
.flow { margin: 0 0 16px; }
.flow ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.flow li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.flow li.done { color: inherit; }
.flow li.current { border-color: var(--navy, #0b2144); color: inherit; font-weight: 600; box-shadow: 0 0 0 1px var(--navy, #0b2144); }
.flow-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--line-2); }
.flow li.done .flow-n { background: var(--ok, #1e7a46); color: #fff; }
.flow li.current .flow-n { background: var(--navy, #0b2144); color: #fff; }
.flow-docs { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin: 0; }
.flow-next { flex-basis: 100%; }
.small-h { font-size: 14px; margin: 14px 0 4px; }
ul.plain { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.co-waived .co-icon { background: var(--warn-bg, #fbf1df); border-color: var(--warn, #a86500); color: var(--warn, #a86500); }
.flow-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.flow li a { color: inherit; text-decoration: none; } .flow li a:hover { text-decoration: underline; }
.flow-deal { margin-top: 8px; font-size: 14px; } .flow-deal summary { cursor: pointer; font-weight: 600; }

/* Phones: a compact context bar (company · program · next action) with the rest behind "Details",
   and slimmer environment banners, so the page's own content starts on the first screen. */
.ctx-toggle { display: none; }
@media (max-width: 640px) {
  .ctx-bar { padding: 6px 12px; gap: 4px 12px; min-height: 0; font-size: 13px; }
  .ctx-k { font-size: 10.5px; }
  .ctx-co, .ctx-prog { flex: 0 1 auto; }
  .ctx-item select { max-width: 100%; font-size: 13px; padding: 2px 6px; }
  .ctx-next { flex: 1 1 100%; }
  .ctx-next > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ctx-more { display: none; }
  .ctx-bar.open .ctx-more { display: grid; }
  .ctx-toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; margin-inline-start: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
  .demo-banner, .env-banner { font-size: 12px; padding: 4px 12px; font-weight: 500; line-height: 1.35; }
}
@media (max-width: 760px) { .area-tabs a { white-space: nowrap; padding: 10px 12px; } }
.conn-notice { position: fixed; inset-inline: 16px; top: 12px; z-index: 80; max-width: 420px; margin-inline: auto; padding: 10px 14px; border-radius: 8px; background: var(--ink, #0b2144); color: #fff; font-size: 14px; text-align: center; box-shadow: 0 6px 20px rgba(11, 33, 68, .25); }

/* View-only documents (technical proposals for client users; see protect.js). */
.view-only { position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.view-only > .wm { position: absolute; inset: 0; z-index: 6; pointer-events: none; background-repeat: repeat; opacity: .12; }
.view-only.shielded > :not(.wm) { filter: blur(16px); transition: filter .1s; }
.view-only.shielded::after { content: attr(data-hidden-text); position: absolute; inset: 0; z-index: 7; display: grid; place-items: start center; padding: 96px 24px 24px; text-align: center; font-weight: 600; color: var(--ink); }
@media print {
  body.viewing-protected #app, body.viewing-protected .modal-bg { display: none !important; }
  body.viewing-protected::before { content: attr(data-print-text); display: block; padding: 48px; font: 600 18px/1.5 system-ui, sans-serif; }
}

/* Programs for your teams (showcases). */
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .count { font-size: 12px; opacity: .75; }
.offer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.offer-card > a { display: grid; gap: 8px; align-content: start; height: 100%; padding: 22px 22px 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); color: inherit; text-decoration: none; border-top: 3px solid var(--gold); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.offer-card > a:hover { border-color: var(--gold); box-shadow: var(--lift); }
.offer-card h2 { font-family: var(--serif); font-size: 21px; line-height: 1.25; margin: 0; color: var(--ink); }
.offer-fn { font-size: 13px; font-weight: 600; color: var(--gold-deep, #8a6420); }
.offer-headline { margin: 0; color: var(--text); }
.offer-uses { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.offer-uses li::before { content: "—"; color: var(--gold); margin-inline-end: 8px; }
.offer-meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); }
.offer { display: grid; gap: 28px; max-width: 980px; }
.offer-hero { display: grid; gap: 10px; max-width: 72ch; }
.offer-hero h1 { margin: 0; }
.offer-lead { font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--ink); margin: 0; }
.usecases { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; counter-reset: uc; }
.usecase { counter-increment: uc; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; align-content: start; }
.usecase h3 { margin: 0; font-size: 17px; color: var(--ink); }
.usecase h3::before { content: counter(uc) ". "; color: var(--gold-deep, #8a6420); }
.usecase dl { margin: 0; display: grid; gap: 6px; }
.usecase dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.usecase dd { margin: 0 0 4px; font-size: 14.5px; }
.usecase-impact { margin: 0; justify-self: start; font-size: 13px; font-weight: 600; color: var(--ok); background: var(--ok-wash); border-radius: 10px; padding: 4px 10px; }
.offer .program h2 { margin: 2px 0 10px; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.offer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 24px; margin-top: 14px; }
.offer-block h3 { font-size: 15px; margin: 0 0 6px; }
.offer-block ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 14.5px; }
.offer-cta { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 26px 28px; display: grid; gap: 10px; justify-items: start; }
.offer-cta h2 { color: #fff; margin: 0; font-family: var(--serif); }
.offer-cta p { margin: 0; max-width: 60ch; color: rgba(255,255,255,.85); }
.offer-cta .btn { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Add company: pick from NexusPro. */
.nexus-pick { border: 1px solid var(--rule); border-radius: var(--r); padding: 10px 14px; margin-bottom: 4px; background: var(--paper, #fafbfd); }
.nexus-pick summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 28px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nexus-pick .list { max-height: 280px; overflow: auto; margin: 0; }

/* Your journey (client home and company link). */
.journey { padding: 22px 24px; display: grid; gap: 16px; }
.journey-head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: end; justify-content: space-between; }
.journey-head h2 { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.journey-where { margin: 4px 0 0; color: var(--text); font-weight: 600; }
.journey-pct { width: min(260px, 100%); height: 8px; border-radius: 999px; background: var(--soft, #eef1f6); overflow: hidden; }
.journey-pct span { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.journey-steps { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-template-columns: repeat(var(--js-count, 7), minmax(104px, 1fr)); gap: 10px; counter-reset: none; overflow-x: auto; }
.journey-steps li { display: grid; gap: 8px; align-content: start; position: relative; padding-top: 2px; }
.journey-steps li:not(:last-child)::after { content: ""; position: absolute; top: 15px; inset-inline-start: 36px; inset-inline-end: -6px; height: 2px; background: var(--rule); }
.journey-steps li.js-done:not(:last-child)::after { background: var(--gold); }
.js-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 2px solid var(--rule-strong); background: var(--sheet); color: var(--muted); position: relative; z-index: 1; }
.js-done .js-dot { background: var(--gold); border-color: var(--gold); color: #fff; }
.js-current .js-dot { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(11, 33, 68, .12); }
.js-body { display: grid; gap: 2px; }
.js-body b { color: var(--ink); font-size: 14.5px; }
.js-upcoming .js-body b { color: var(--muted); }
.js-detail { font-size: 13px; color: var(--text); }
.js-upcoming .js-detail { color: var(--muted); }
.js-date { font-size: 12px; color: var(--muted); }
.js-lock { justify-self: start; font-size: 13px; }
.journey-next { margin: 0; padding-top: 12px; border-top: 1px solid var(--rule); }
@media (max-width: 900px) {
  .journey-steps { grid-template-columns: 1fr; gap: 0; }
  .journey-steps li { grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 16px; }
  .journey-steps li:not(:last-child)::after { top: 34px; bottom: 2px; inset-inline-start: 14px; inset-inline-end: auto; width: 2px; height: auto; }
}
/* Company-link page */
.link-page { max-width: 1040px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 16px; }
.link-top { display: flex; align-items: center; gap: 14px; }
.link-top > div { flex: 1; min-width: 0; }
.link-co { margin: 0; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.link-top p { margin: 0; }
.link-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.link-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; min-height: 44px; }
.link-tabs button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.link-main { outline: none; }
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.link-cards h3 { margin: 4px 0 6px; color: var(--ink); }
.link-cards h4 { margin: 12px 0 4px; font-size: 14px; }
.link-cards ul { margin: 0; padding-inline-start: 18px; }
.link-contact h2 { font-size: 16px; margin: 0 0 6px; }
.pre { white-space: pre-wrap; }
.journey-program { margin: 4px 0 0; color: var(--muted); }
.journey-headline { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.journey-program-block { border-top: 1px solid var(--rule); padding-top: 12px; }
.journey-program-block > summary { cursor: pointer; min-height: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink); }
.journey-program-block[open] > summary { margin-bottom: 12px; }

/* Tables that become labelled cards on a phone (no sideways scrolling). */
@media (max-width: 640px) {
  .table.stack-on-phone thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack-on-phone, .table.stack-on-phone tbody, .table.stack-on-phone tr, .table.stack-on-phone td { display: block; width: 100%; }
  .table.stack-on-phone tr { border: 1px solid var(--rule); border-radius: var(--r-sm); margin-bottom: 10px; padding: 6px 12px; background: var(--sheet); }
  .table.stack-on-phone td { border: 0; padding: 6px 0; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 10px; text-align: start; }
  .table.stack-on-phone td[data-label]::before { content: attr(data-label); font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .table.stack-on-phone td:not([data-label]) { grid-template-columns: 1fr; }
  .table.stack-on-phone td:first-child { font-size: 15px; }
  .table-wrap:has(> .stack-on-phone) { overflow: visible; border: 0; }
}
@media (max-width: 640px) {
  .table.stack-on-phone th[scope="row"] { display: block; border: 0; padding: 6px 0 4px; font-size: 15px; }
  .table.stack-on-phone td.num { text-align: start; }
}

/* The sidebar's column is the sidebar's colour all the way down (long pages, printing, full-page captures). */
@media (min-width: 901px) { .layout { background: linear-gradient(to right, var(--sheet) 260px, transparent 260px); } [dir="rtl"] .layout { background: linear-gradient(to left, var(--sheet) 260px, transparent 260px); } }
/* The closed phone menu casts no shadow onto the page. */
@media (max-width: 900px) { .sidebar:not(.open) { box-shadow: none; visibility: hidden; } .sidebar.open { visibility: visible; } }
.cert-person > summary { cursor: pointer; min-height: 32px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cert-person[open] > summary { margin-bottom: 10px; }
details.cert-person:not([open]) { padding-block: 12px; }
.still-needed { margin-bottom: 2px; }
ul.tight { margin-top: 0; }

/* "What happens now" under the journey steps: one sentence, one button. */
.journey-now { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 4px 0 8px; padding: 12px 16px; border-radius: 10px; background: var(--gold-wash); border-inline-start: 3px solid var(--gold); }
.journey-now p { margin: 0; flex: 1 1 320px; }
.journey-now .btn { flex: none; }
.journey-steps .js-body b a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; display: inline-block; min-height: 24px; padding-block: 3px; }
.journey-steps .js-body b a:hover, .journey-steps .js-body b a:focus-visible { border-bottom-color: currentColor; }

/* Getting started (Today, for administrators): the setup steps in order. */
.setup-card { margin-bottom: 20px; border-top: 3px solid var(--gold); }
.setup-steps { list-style: none; margin: 0; padding: 0 20px 12px; counter-reset: setup; }
.setup-steps li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.setup-steps li:first-child { border-top: 0; }
.setup-steps .mw-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.setup-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--rule); display: grid; place-items: center; font-size: 13px; font-weight: 700; counter-increment: setup; }
.setup-dot:empty::before { content: counter(setup); color: var(--muted, #667); }
.setup-steps li.done .setup-dot { background: var(--gold); border-color: var(--gold); color: #fff; }
.setup-steps li.done b { color: var(--muted, #667); font-weight: 600; }
.perm-list { margin: 4px 0 0; padding-inline-start: 16px; line-height: 1.4; }
@media (min-width: 641px) { .table .col-wide { min-width: 200px; } }
.focus-title a { display: inline-block; min-height: 24px; padding-block: 2px; }
.facts dd a { text-decoration: underline; text-underline-offset: 2px; }

/* Company home: lists of open work beside the next meeting and blockers; program details folded away. */
.home-head { align-items: flex-end; }
.home-head .updated { margin: 0; }
.home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; margin-bottom: 20px; }
.home-main, .home-side { display: grid; gap: 16px; min-width: 0; }
.home-side .card { display: grid; gap: 8px; align-content: start; }
.home-side .focus-title { margin: 0; font-weight: 600; }
.action.is-next { background: var(--gold-wash); }
.next-tag { display: inline-block; font-size: 12px; font-weight: 700; color: #7a5a1f; margin-inline-end: 8px; }
.more-items > summary { cursor: pointer; padding: 10px 20px; font-weight: 600; color: var(--ink); min-height: 24px; }
.more-items.pad > summary { padding-inline: 20px; }
details.engagement > summary { list-style: none; cursor: pointer; }
details.engagement > summary::-webkit-details-marker { display: none; }
details.engagement > summary h3::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--muted, #667); transition: transform .15s; }
details.engagement[open] > summary h3::before { transform: rotate(90deg); }
details.engagement + details.engagement { margin-top: 12px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } .home-side { order: -1; } }
@media (prefers-reduced-motion: reduce) { details.engagement > summary h3::before { transition: none; } }
.card-head a.small { display: inline-block; min-height: 24px; padding-block: 3px; }

/* ---------- Company home: the company's plate and a refined journey ----------
   One bold element per page: the navy "what happens now" panel. Everything around it stays quiet:
   white sheets, hairline rules, gold used only for progress and the one button. */
.journey { padding: 28px 30px; gap: 22px; border-radius: var(--r-lg); box-shadow: var(--lift); }
.journey-head h2 { font-size: 24px; font-weight: 500; }
.journey-headline { align-items: flex-end; }
.journey-where { display: grid; gap: 2px; margin: 0; }
.jw-step { font-size: 13px; font-weight: 600; color: var(--muted); }
.jw-title { font: 500 28px/1.15 var(--serif); color: var(--ink); }
.journey-meter { display: flex; align-items: center; gap: 12px; width: min(300px, 100%); }
.jm-pct { font: 500 20px/1 var(--serif); color: #7a5a1f; font-variant-numeric: tabular-nums; }
.journey-meter .journey-pct { flex: 1; width: auto; height: 4px; background: var(--rule); }
.journey-pct span { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

/* Steps: one hairline track behind centred dots, gold up to the current step. */
.js-dot { width: 24px; height: 24px; font-size: 12px; border-width: 1.5px; margin-block: 6px; }
.js-done .js-dot { font-size: 12px; }
.js-current .js-dot { width: 36px; height: 36px; margin-block: 0; background: var(--ink); border-color: var(--ink); color: var(--gold-light); font: 500 16px/1 var(--serif);
  box-shadow: 0 0 0 4px var(--sheet), 0 0 0 5.5px var(--gold); }
.js-body b { font-size: 14.5px; font-weight: 600; }
.js-detail { line-height: 1.45; color: var(--text-2); }
.js-date { font-variant-numeric: tabular-nums; }
@media (min-width: 901px) {
  .journey-steps { gap: 0; position: relative; }
  .journey-steps::before, .journey-steps::after { content: ""; position: absolute; top: 17px; height: 2px; border-radius: 2px; inset-inline-start: calc(50% / var(--js-count, 7)); }
  .journey-steps::before { inset-inline-end: calc(50% / var(--js-count, 7)); background: var(--rule-strong); }
  .journey-steps::after { width: calc((100% - 100% / var(--js-count, 7)) * var(--js-fill, 0) / (var(--js-count, 7) - 1)); background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
  .journey-steps li { justify-items: center; text-align: center; padding: 0 8px; gap: 12px; }
  .journey-steps li:not(:last-child)::after { display: none; }
  .journey-steps .js-body { justify-items: center; }
}
@media (max-width: 900px) {
  .journey { padding: 22px 20px; }
  .journey-steps li { grid-template-columns: 36px 1fr; }
  .journey-steps .js-dot { justify-self: center; }
  .journey-steps li:not(:last-child)::after { top: 40px; inset-inline-start: 17px; }
  .jw-title { font-size: 24px; }
}

/* What happens now: the page's one bold element. */
.journey-now { margin: 0; padding: 22px 26px; gap: 16px 28px; border: 0; border-radius: var(--r); color: #fff;
  background: url("/guilloche.svg") right -150px center / 360px no-repeat, linear-gradient(140deg, var(--ink), var(--ink-deep)); }
.journey-now .jn-copy { flex: 1 1 320px; display: grid; gap: 4px; }
.journey-now .jn-label { margin: 0; font-size: 13px; font-weight: 600; color: var(--gold-light); }
.journey-now .jn-text { margin: 0; font: 400 19px/1.45 var(--serif); color: #fff; }
.journey-now .btn { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); padding: 10px 18px; }
.journey-now .btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.journey-now .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Several programs: each row shows its seven steps as small pips. */
.journey-program-block > summary { padding-block: 6px; gap: 8px 10px; }
.jp-pips { display: inline-flex; gap: 3px; }
.jp-pips i { width: 14px; height: 4px; border-radius: 2px; background: var(--rule-strong); }
.jp-pips i.done { background: var(--gold); }
.jp-pips i.current { background: var(--ink); }
.journey-headline { margin-bottom: 4px; }
.journey-steps { margin: 18px 0 14px; }
.journey-program-block[open] > summary .muted.small { display: none; } /* the step is the heading just below */
.link-page .co-plate { margin-bottom: 16px; }
@media (max-width: 760px) { .journey-now { background: url("/guilloche.svg") right -240px top -120px / 360px no-repeat, linear-gradient(140deg, var(--ink), var(--ink-deep)); } }

/* A sidebar area for a step the company hasn't reached yet: greyed, not a link, says when it opens. */
.nav-locked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 15px; font-weight: 500; cursor: not-allowed; }
.nav-locked > span { display: grid; flex: 1; line-height: 1.25; }
.nav-locked small { font-size: 12px; font-weight: 500; color: var(--muted); }
.nav-locked .nav-lock { width: 14px; height: 14px; flex: none; }
.nav-locked svg:first-child { color: var(--muted); }
.nav-locked svg:first-child { width: 19px; height: 19px; flex-shrink: 0; }
.nav-locked svg { color: #9aa0ab; }

/* Company link: what the company can do in Engage, each item marked open-with-link or sign-in. */
.link-main { display: grid; gap: 18px; }
.capabilities { padding: 28px 30px 22px; border-radius: var(--r-lg); box-shadow: var(--lift); }
.cap-head h2 { font: 500 24px/1.25 var(--serif); color: var(--ink); }
.cap-head p { max-width: 68ch; margin: 8px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.cap-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.cap-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--rule); }
.cap-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-wash); color: var(--ink); display: grid; place-items: center; }
.cap-icon svg { width: 20px; height: 20px; }
.cap-list h3 { margin: 0; font: 600 16px/1.35 var(--sans); color: var(--ink); }
.cap-list p { margin: 4px 0 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.cap-access { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.cap-access.here { color: #7a5a1f; }
.cap-access.locked { color: var(--text-2); text-decoration-color: var(--rule-strong); }
.cap-access svg { width: 14px; height: 14px; }
.cap-foot { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.cap-foot svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.lk-locked-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lk-locked-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
@media (max-width: 760px) { .capabilities { padding: 22px 20px 18px; } .cap-list { grid-template-columns: 1fr; } }

/* ---------- The company's plate: a band in the company's own color, then facts and the contact ----------
   --co-accent is the company's tone (set by Epsilon, taken from the logo, or chosen by name), always deep
   enough for white text. Gold stays Epsilon's: the partnership mark and the hairline under the band. */
.co-plate { --co-accent: #1f4e5f; margin-bottom: 20px; border-radius: var(--r-lg); overflow: hidden; background: var(--sheet); border: 1px solid var(--rule); box-shadow: var(--lift); }
.co-band { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 30px 32px; color: #fff; isolation: isolate;
  background: linear-gradient(118deg, var(--co-accent) 0%, color-mix(in srgb, var(--co-accent) 62%, #050a14) 100%); }
.co-band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: url("/guilloche.svg") right -90px center / 420px no-repeat,
    repeating-linear-gradient(118deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 14px); }
.co-band::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light) 50%, var(--gold)); }
.co-id { display: flex; align-items: center; gap: 22px; min-width: 0; }
.co-logo { width: 84px; height: 84px; border-radius: 20px; background: #fff; display: grid; place-items: center; padding: 12px; flex: none; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 14px 30px -14px rgba(0, 0, 0, .55); }
.co-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.co-logo.mono { color: var(--co-accent); font: 500 32px/1 var(--serif); letter-spacing: .02em; }
.co-name { min-width: 0; }
.co-greet { margin: 0 0 4px; font-size: 15px; color: rgba(255, 255, 255, .82); }
.co-band h1 { color: #fff; font: 500 clamp(30px, 3.6vw, 44px)/1.08 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.co-where { margin: 8px 0 0; font-size: 15px; color: rgba(255, 255, 255, .82); }
.co-partner { display: flex; align-items: center; gap: 12px; color: #fff; }
.co-x { font: 400 26px/1 var(--serif); color: var(--gold-light); }
.co-mark { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center; flex: none; }
.co-partner-name { display: grid; font: 500 17px/1.25 var(--serif); }
.co-partner-name small { font: 400 13px/1.4 var(--sans); color: rgba(255, 255, 255, .78); }
.co-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 16px 32px; }
.co-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.co-facts li { font-size: 14.5px; color: var(--text-2); padding-inline: 0 18px; margin-inline-end: 18px; border-inline-end: 1px solid var(--rule-strong); }
.co-facts li:last-child { border: 0; margin: 0; padding: 0; }
.co-facts b { font: 600 17px/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.co-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14.5px; color: var(--text-2); }
.co-contact-label { color: var(--muted); }
.co-contact b { color: var(--ink); font-weight: 600; }
.co-contact-links { display: flex; gap: 14px; }
.co-contact-links a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 4px; display: inline-block; min-height: 24px; padding-block: 2px; }
.co-updated { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--muted); }
.color-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.color-pick input[type=color] { width: 48px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid var(--rule-strong); background: #fff; }
@media (max-width: 760px) {
  .co-band { padding: 24px 20px; }
  .co-logo { width: 64px; height: 64px; border-radius: 16px; padding: 9px; } .co-logo.mono { font-size: 25px; }
  .co-id { gap: 16px; }
  .co-strip { padding: 14px 20px; }
  .co-facts li { padding-inline-end: 12px; margin-inline-end: 12px; }
}
@media (max-width: 760px) {
  .co-band::before { opacity: .22; background-position: right -200px top -150px, 0 0; }
  .co-facts { gap: 4px 16px; }
  .co-facts li { border: 0; margin: 0; padding: 0; }
}

/* Brand found on a company's website: color swatches and choices. */
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: -4px; margin-inline-end: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch.lg { width: 44px; height: 44px; border-radius: 12px; }
.swatch.auto { display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--text-2); background: repeating-linear-gradient(135deg, #f3f4f6 0 6px, #fff 6px 12px); }
.swatch-pick { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch-opt { display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer; max-width: 110px; }
.swatch-opt input { position: absolute; opacity: 0; }
.swatch-opt input:checked + .swatch { box-shadow: 0 0 0 2px var(--sheet), 0 0 0 4px var(--ink); }
.swatch-opt input:focus-visible + .swatch { outline: 2px solid var(--focus); outline-offset: 4px; }
.cand-img.keep { display: grid; place-items: center; font-size: 13px; color: var(--text-2); }
.input-row { display: flex; gap: 8px; align-items: stretch; } .input-row input { flex: 1; min-width: 0; } .input-row .btn { flex: none; }
.contact-me { margin-top: 6px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--paper); }
.contact-me legend { padding: 0 6px; font-weight: 600; color: var(--ink); }
.contact-facts { grid-template-columns: 120px 1fr; }

/* ---------- Company link: navigation, booking calendar and "tell us what you need" ---------- */
.link-page { max-width: 1120px; }
.link-nav { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 8px 10px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--lift); }
.link-nav .link-tabs { border: 0; gap: 4px; }
.link-nav .link-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 9px 16px; min-height: 42px; color: var(--text-2); }
.link-nav .link-tabs button svg { width: 18px; height: 18px; }
.link-nav .link-tabs button:hover { background: var(--paper); color: var(--ink); }
.link-nav .link-tabs button[aria-current="page"] { background: var(--ink); color: #fff; }
.link-nav .link-tabs button[aria-current="page"] svg { color: var(--gold-light); }
.link-mode { display: flex; align-items: center; gap: 8px; margin: 0; padding-inline: 6px; font-size: 13.5px; color: var(--muted); }
.link-mode svg { width: 15px; height: 15px; flex: none; }
.link-mode .linklike { font-weight: 600; color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; display: inline-block; min-height: 24px; }
.link-section-title { font: 500 22px/1.3 var(--serif); color: var(--ink); margin: 8px 0 12px; }
.earlier { margin-top: 12px; } .earlier > summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 8px 0; min-height: 24px; }

.book-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.book-grid.solo { grid-template-columns: minmax(0, 720px); }
.book-card, .need-card { padding: 26px 28px; border-radius: var(--r-lg); box-shadow: var(--lift); }
.book-head h2, .need-card h2 { font: 500 23px/1.25 var(--serif); color: var(--ink); margin: 0; }
.book-head p, .need-card > p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.book-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; margin-top: 20px; }
.cal-month { margin: 0 0 10px; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding-bottom: 4px; }
.cal-day { position: relative; aspect-ratio: 1; min-height: 38px; display: grid; place-items: center; border-radius: 10px; font: 500 15px/1 var(--sans); color: #a3a8b3; background: transparent; border: 0; padding: 0; }
.cal-day.past { color: #c8ccd3; }
.cal-day.has { cursor: pointer; color: var(--ink); background: var(--gold-wash); font-weight: 600; }
.cal-day.has i { position: absolute; bottom: 5px; font-style: normal; font-size: 10px; font-weight: 600; color: #7a5a1f; line-height: 1; }
.cal-day.has:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.cal-day.has.on { background: var(--ink); color: #fff; }
.cal-day.has.on i { color: var(--gold-light); }
.cal-day.has:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.slots-day { margin: 0 0 10px; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 2px; }
button.slot { min-height: 42px; border-radius: 10px; border: 1px solid var(--rule-strong); background: var(--sheet); font: 600 15px/1 var(--sans); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
button.slot:hover { border-color: var(--gold); background: var(--gold-wash); }
button.slot.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.book-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); }
.book-chosen { display: flex; gap: 10px; align-items: center; margin: 0 0 4px; padding: 12px 14px; border-radius: 10px; background: var(--gold-wash); color: var(--ink); }
.book-chosen svg { width: 20px; height: 20px; flex: none; color: #7a5a1f; }
.book-none { margin: 18px 0 0; padding: 16px; border-radius: 10px; background: var(--paper); color: var(--text-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--rule-strong); border-radius: 999px; cursor: pointer; font-size: 14.5px; background: var(--sheet); }
.chip-opt:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip-opt input { accent-color: var(--gold); }
.need-card { position: sticky; top: 76px; border-top: 3px solid var(--gold); }
.need-card textarea { min-height: 170px; }
.book-done { display: flex; gap: 16px; align-items: flex-start; }
.book-done > svg { width: 34px; height: 34px; flex: none; color: #fff; background: var(--ok, #2c6e4f); border-radius: 50%; padding: 7px; }
.book-done h2 { font: 500 23px/1.25 var(--serif); color: var(--ink); margin: 0 0 6px; }
.book-done p { margin: 0 0 6px; }
.meet-card details { margin-top: 8px; } .meet-card details > summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 24px; }
@media (max-width: 980px) { .book-grid { grid-template-columns: 1fr; } .need-card { position: static; } }
@media (max-width: 640px) {
  .book-card, .need-card { padding: 20px 18px; }
  .book-body { grid-template-columns: 1fr; }
  .link-nav { position: static; }
  .link-nav .link-tabs { width: 100%; justify-content: space-between; }
  .link-nav .link-tabs button { flex: 1; justify-content: center; padding: 9px 8px; }
}
.chip-opt { white-space: nowrap; }
.cal-day.has i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); bottom: 6px; }
.cal-day.has.on i { background: var(--gold-light); }

/* Meeting messages (staff): what was sent and received. */
.msg-list { list-style: none; margin: 0; padding: 0 0 8px; }
.msg-list > .msg { padding: 12px 20px; border: 0; border-top: 1px solid var(--rule); border-radius: 0; margin: 0; display: grid; gap: 2px; background: none; }
.msg-list > .msg.in { background: var(--gold-wash); }
.msg-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.msg-list > .msg p { margin: 0; }

/* The client's invoice (private link): a printable sheet. */
.inv-wrap { max-width: 860px; margin: 0 auto; padding: 28px 16px 56px; }
.inv-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.inv-sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--lift); padding: 40px 44px; display: grid; gap: 28px; }
.inv-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 2px solid var(--gold); }
.inv-logo { height: 34px; width: auto; margin-bottom: 12px; }
.inv-seller { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.inv-title { text-align: end; display: grid; justify-items: end; gap: 4px; align-content: start; }
.inv-title h1 { font: 500 32px/1.1 var(--serif); color: var(--ink); }
.inv-num { margin: 0; font: 600 16px/1.3 var(--sans); color: var(--text-2); font-variant-numeric: tabular-nums; }
.inv-parties { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.inv-parties h2, .inv-pay h2 { font: 600 13px/1.3 var(--sans); color: var(--muted); margin: 0 0 6px; }
.inv-parties p { margin: 0; line-height: 1.5; }
.inv-parties dl, .inv-pay dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0; font-size: 14.5px; }
.inv-parties dt, .inv-pay dt { color: var(--muted); }
.inv-parties dd, .inv-pay dd { margin: 0; }
.inv-lines { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.inv-lines th, .inv-lines td { padding: 10px 8px; border-bottom: 1px solid var(--rule); text-align: start; }
.inv-lines thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.inv-lines .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-lines tfoot th { text-align: end; font-weight: 500; color: var(--text-2); }
.inv-lines tfoot td, .inv-lines tfoot th { border-bottom: 0; padding: 6px 8px; }
.inv-total th, .inv-total td { font: 600 17px/1.3 var(--serif) !important; color: var(--ink) !important; border-top: 1px solid var(--rule-strong); }
.inv-pay { padding: 20px 22px; border-radius: var(--r); background: var(--paper); display: grid; gap: 12px; }
.inv-pay p { margin: 0; }
.inv-paid { margin: 0; padding: 16px 20px; border-radius: var(--r); background: var(--ok-wash); color: var(--ok); font-weight: 600; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .02em; }
.inv-note { margin: 0; color: var(--text-2); }
@media (max-width: 640px) { .inv-sheet { padding: 24px 18px; } .inv-title { text-align: start; justify-items: start; } }
@media print { .no-print { display: none !important; } .inv-wrap { padding: 0; max-width: none; } .inv-sheet { border: 0; box-shadow: none; padding: 0; } body { background: #fff; } }

/* A locked area's preview: what it will hold, and the step it opens at. */
button.nav-locked { width: 100%; background: none; border: 0; text-align: start; font: inherit; font-size: 15px; font-weight: 500; }
button.nav-locked:hover, button.nav-locked[aria-expanded="true"] { background: var(--paper); }
button.nav-locked:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nav-preview { position: fixed; z-index: 60; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(11, 33, 68, .35); padding: 16px 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--text-2); border-top: 3px solid var(--gold); }
.nav-preview[hidden] { display: none; }
.nav-preview p { margin: 0; }
.np-title { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }
.np-title svg { width: 15px; height: 15px; color: #7a5a1f; }
.np-more { color: var(--muted); font-size: 13.5px; }
.np-when { padding-top: 8px; border-top: 1px solid var(--rule); color: var(--ink); font-size: 13.5px; }
.link-loading { color: var(--muted); text-align: center; padding: 40px 20px; }

/* Company home (Epsilon): the link actions, client contacts, messages and recent activity. */
.co-link-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; margin-top: 10px; }
.co-link-note { display: block; max-width: 340px; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 760px) { .co-link-actions { justify-content: start; } }
.contact-mini, .activity-mini, .plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-mini li, .activity-mini li { display: grid; gap: 1px; }
.contact-mini a, .activity-mini a { overflow-wrap: anywhere; }
.home-side .side-contacts > a, .home-side .side-messages > a, .home-side .side-activity > a { display: inline-block; min-height: 24px; padding-block: 2px; }
.pay-gate { margin: 6px 0 10px; }
.book-card, .need-card { scroll-margin-top: 88px; }
.co-link-note a { text-decoration: underline; text-underline-offset: 2px; }

/* Reports: new business and growth */
.growth-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.growth-head .metric-value { margin: 0; }
.small-head { font-size: 1rem; margin: 8px 0 0; }
/* Deal: professional steps */
.playbook { list-style: none; margin: 0; padding: 0; counter-reset: pb; }
.playbook li { display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.playbook li:first-child { border-top: 0; }
.playbook .pb-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 600; border: 1.5px solid var(--rule-strong); color: var(--muted); counter-increment: pb; }
.playbook .pb-mark::before { content: counter(pb); }
.playbook li.done .pb-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.playbook li.done .pb-mark::before { content: "✓"; }
.playbook li.late .pb-mark { border-color: var(--warn); color: var(--warn); }
.playbook li.next { background: var(--gold-wash); margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: 10px; }
.playbook .pb-label { font-weight: 600; }
.playbook .pb-detail, .playbook .pb-hint { grid-column: 2 / 4; }
.playbook .pb-hint { color: var(--muted); font-size: .875rem; }
.playbook li.late .pb-detail { color: var(--warn); }
.pb-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 4px 0 12px; }
.pb-progress span { display: block; height: 100%; background: var(--ok); }

/* How to use Engage */
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .guide-layout { grid-template-columns: 1fr; } }
.guide-path { list-style: none; margin: 0; padding: 0; position: relative; }
.guide-path::before { content: ""; position: absolute; inset-inline-start: 19px; top: 24px; bottom: 24px; width: 1px; background: linear-gradient(var(--gold-light), var(--rule)); }
.guide-phase { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 0 0 28px; position: relative; }
.guide-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--gold-light); color: var(--ink, #0b2144); font-family: var(--serif); font-size: 1.15rem; box-shadow: var(--lift); position: relative; }
.guide-phase h2 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 6px 0 2px; }
.guide-goal { color: var(--text-2); margin: 0 0 12px; }
.guide-steps { list-style: none; margin: 0; padding: 4px 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
.guide-steps li { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 6px 18px; padding: 12px 0; border-top: 1px solid var(--rule); }
.guide-steps li:first-child { border-top: 0; }
.guide-steps b { font-weight: 600; }
.guide-steps span { color: var(--text-2); }
@media (max-width: 640px) { .guide-steps li { grid-template-columns: 1fr; } }
.guide-who dt { font-weight: 600; margin-top: 12px; } .guide-who dt:first-child { margin-top: 0; }
.guide-who dd { margin: 2px 0 0; color: var(--text-2); }
.guide-rules { margin: 0; padding-inline-start: 20px; } .guide-rules li { margin: 0 0 8px; color: var(--text-2); }
.guide-steps a, .guide-who a { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* ---------- Company page (company link): the company's colors with Epsilon gold ---------- */
.lk-shell { --brand: #1f4e3d; --brand-deep: color-mix(in srgb, var(--brand) 62%, #020b10); --gold-a: #e2c48a; --gold-b: #c49a55;
  min-height: 100vh; background: var(--bg, #f4f5f7); color: var(--text); }
.lk-wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.lk-top { background: var(--surface); border-bottom: 1px solid var(--rule); }
.lk-top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.lk-id, .lk-partner { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lk-id p, .lk-partner p, .lk-id h1 { margin: 0; }
.lk-logo { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: var(--brand); box-shadow: 0 10px 24px -14px rgba(11, 33, 68, .5); flex: none; }
.lk-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: #fff; }
.lk-logo.mono { color: #fff; font: 700 1.55rem/1 var(--sans); letter-spacing: .02em; }
.lk-name { font: 700 1.85rem/1.1 var(--sans); color: var(--ink); letter-spacing: -.01em; }
.lk-name.sm { font-size: 1.25rem; font-weight: 600; }
.lk-sub { color: var(--muted); font-size: .98rem; margin-top: 4px !important; }
.lk-x { color: var(--gold); font-size: 1.4rem; font-weight: 300; }
.lk-mark { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--rule); box-shadow: 0 6px 16px -12px rgba(11, 33, 68, .45); flex: none; }
.lk-nav { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 6; }
.lk-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lk-tabs { display: flex; gap: 8px; overflow-x: auto; }
.lk-tabs button { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 18px 12px 15px; font: 500 1.02rem var(--sans); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.lk-tabs button svg { width: 20px; height: 20px; }
.lk-tabs button:hover { color: var(--ink); }
.lk-tabs button[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--gold); }
.lk-mode { display: flex; align-items: center; gap: 18px; }
.lk-mode-label { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); white-space: nowrap; }
.lk-mode-label svg { width: 18px; height: 18px; }
.lk-signin { padding: 10px 22px; }
.lk-main { max-width: 1240px; margin: 0 auto; padding: 22px 28px 56px; display: grid; gap: 22px; outline: none; }

.lk-hero { position: relative; overflow: hidden; border-radius: 22px; color: #fff; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); gap: 32px; align-items: center; padding: 56px 48px;
  background: radial-gradient(120% 140% at 85% 30%, color-mix(in srgb, var(--brand) 85%, #fff 6%) 0%, transparent 55%), linear-gradient(115deg, var(--brand-deep) 0%, color-mix(in srgb, var(--brand) 82%, #000) 55%, var(--brand) 100%);
  box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--brand) 70%, #000); }
.lk-ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lk-ribbons path { fill: none; stroke-linecap: round; }
.lk-ribbons .r1 { stroke: color-mix(in srgb, var(--brand) 45%, #fff); stroke-width: 80; opacity: .26; }
.lk-ribbons .r2 { stroke: color-mix(in srgb, var(--brand) 30%, #fff); stroke-width: 40; opacity: .22; }
.lk-ribbons .r3 { stroke: color-mix(in srgb, var(--brand) 30%, #000); stroke-width: 90; opacity: .35; }
.lk-ribbons .g1 { stroke: var(--gold-a); stroke-width: 3; opacity: .8; }
.lk-ribbons .g2 { stroke: var(--gold-b); stroke-width: 2.5; opacity: .7; }
.lk-ribbons .fine { stroke: color-mix(in srgb, var(--brand) 20%, #fff); stroke-width: .9; opacity: .38; }
.lk-hero-copy, .lk-stage { position: relative; }
.lk-eyebrow { margin: 0 0 18px; font-size: .86rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.lk-hero .lk-headline { font: 700 clamp(2.1rem, 4.2vw, 3.6rem)/1.05 var(--sans); letter-spacing: -.02em; margin: 0 0 16px; color: #fff; max-width: 20ch; }
.lk-lede { font-size: 1.22rem; color: rgba(255, 255, 255, .88); margin: 0 0 30px; max-width: 46ch; }
.lk-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.lk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 10px; padding: 15px 30px; font: 600 1.06rem var(--sans); cursor: pointer; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.lk-btn svg { width: 20px; height: 20px; }
.lk-btn.gold { background: linear-gradient(135deg, var(--gold-a), var(--gold-b)); color: #1c1608; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .6); }
.lk-btn.gold svg { transition: transform .15s var(--ease); }
.lk-btn.gold:hover svg { transform: translateX(3px); }
[dir="rtl"] .lk-btn.gold svg { transform: scaleX(-1); }
.lk-btn.gold:hover { transform: translateY(-1px); }
.lk-btn.line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.lk-btn.line:hover { background: rgba(255, 255, 255, .08); }
.lk-btn.outline { background: var(--surface); color: var(--ink); border-color: var(--ink); padding: 13px 22px; width: 100%; }
.lk-btn.outline:hover { background: var(--paper); }
.lk-hero .lk-btn:focus-visible, .lk-hero .linklike:focus-visible { outline: 3px solid var(--gold-a); outline-offset: 3px; }
.lk-since { margin: 26px 0 0; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.lk-stage { border: 1px solid rgba(255, 255, 255, .5); border-radius: 16px; padding: 28px 30px; background: color-mix(in srgb, var(--brand-deep) 55%, transparent); backdrop-filter: blur(6px); }
.lk-stage p { margin: 0; }
.lk-label { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.lk-stage-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.lk-stage-name { font: 700 1.9rem/1.15 var(--sans); margin-top: 8px !important; }
.lk-stage-count { text-align: end; display: grid; gap: 4px; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.lk-stage-count b { font-size: 1.1rem; color: #fff; }
.lk-dots { list-style: none; display: flex; align-items: center; justify-content: space-between; margin: 26px 0; padding: 0; position: relative; }
.lk-dots::before { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; height: 1.5px; background: rgba(255, 255, 255, .7); }
.lk-dots li { position: relative; }
.lk-dots li > span:first-child { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; border: 1.5px solid rgba(255, 255, 255, .85); background: var(--brand-deep); color: #fff; }
.lk-dots li > span:first-child svg { width: 18px; height: 18px; }
.lk-dots li.done > span:first-child { background: rgba(226, 196, 138, .22); border-color: var(--gold-a); color: var(--gold-a); }
.lk-dots li.current > span:first-child { width: 44px; height: 44px; background: linear-gradient(135deg, var(--gold-a), var(--gold-b)); border: 3px solid rgba(255, 255, 255, .9); color: #1c1608; font-size: 1.1rem; }
.lk-stage-foot { border-top: 1px solid rgba(255, 255, 255, .4); padding-top: 20px; }
.lk-meet { font: 600 1.5rem/1.2 var(--sans); margin-top: 8px !important; }

.lk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.lk-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 28px; box-shadow: var(--lift); }
.lk-card h2 { font: 700 1.55rem/1.2 var(--sans); color: var(--ink); margin: 0; letter-spacing: -.01em; }
.lk-card-sub { color: var(--text-2); font-size: 1.05rem; margin: 6px 0 0; }
.lk-programs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lk-programs button { border: 1px solid var(--rule-strong); background: var(--surface); border-radius: 999px; padding: 7px 14px; font: 500 .92rem var(--sans); color: var(--text-2); cursor: pointer; }
.lk-programs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lk-steps-wrap { overflow-x: auto; border-bottom: 1px solid var(--rule); margin-top: 20px; padding-top: 6px; }
.lk-steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(96px, 1fr)); margin: 0; padding: 0 0 22px; position: relative; }
.lk-steps::before { content: ""; position: absolute; top: 21px; left: calc(50% / var(--n, 7)); right: calc(50% / var(--n, 7)); height: 1.5px; background: var(--rule-strong); }
.lk-steps li { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 8px; padding: 0 4px; }
.lk-step-date { margin-top: -4px; }
.lk-main .capabilities h2 { font: 700 1.55rem/1.2 var(--sans); letter-spacing: -.01em; }
.lk-main .capabilities { border-radius: 16px; }
.lk-step-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--rule-strong); color: var(--text-2); font-weight: 600; position: relative; }
.lk-step-dot svg { width: 18px; height: 18px; }
.lk-steps li.done .lk-step-dot { background: var(--gold-wash); border-color: var(--gold); color: var(--ink); }
.lk-steps li.current .lk-step-dot { width: 44px; height: 44px; margin-top: -2px; background: var(--ink); color: #fff; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--gold); }
.lk-step-title { font-size: .98rem; color: var(--text-2); line-height: 1.25; }
.lk-steps li.current .lk-step-title { color: var(--ink); font-weight: 700; }
.lk-step-date { font-size: .8rem; color: var(--muted); }
.lk-next { display: flex; gap: 18px; align-items: flex-start; margin-top: 22px; padding: 20px 24px; border-radius: 12px; background: var(--paper, #f1f3f6); }
.lk-next p { margin: 0; color: var(--text-2); }
.lk-next-title { font-weight: 700; color: var(--ink) !important; font-size: 1.08rem; margin-bottom: 4px !important; }
.lk-next-then { margin-top: 8px !important; font-size: .95rem; }
.lk-next-icon svg { width: 34px; height: 34px; color: var(--text-2); }
.lk-side { display: grid; gap: 14px; }
.lk-person { display: flex; align-items: center; gap: 18px; margin: 22px 0 16px; }
.lk-person p { margin: 0; }
.lk-avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 1.6rem var(--sans); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold); flex: none; }
.lk-person-name { font: 700 1.35rem var(--sans); color: var(--ink); }
.lk-person-role { color: var(--text-2); font-size: 1.02rem; margin-top: 2px !important; }
.lk-contact-actions { display: grid; gap: 10px; margin-top: 22px; }
.lk-signin-note { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 6px; color: var(--text-2); }
.lk-signin-note svg { width: 18px; height: 18px; flex: none; }
.lk-signin-note .linklike { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .lk-hero { grid-template-columns: 1fr; padding: 40px 32px; }
  .lk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lk-wrap, .lk-main { padding-left: 16px; padding-right: 16px; }
  .lk-top-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lk-logo { width: 56px; height: 56px; border-radius: 13px; }
  .lk-name { font-size: 1.45rem; } .lk-name.sm { font-size: 1.05rem; }
  .lk-mark { width: 40px; height: 40px; }
  .lk-nav { position: static; }
  .lk-nav-in { flex-direction: column; align-items: stretch; gap: 0; }
  .lk-tabs { justify-content: space-between; }
  .lk-tabs button { padding: 14px 10px 12px; flex: 1 0 auto; justify-content: center; font-size: .95rem; }
  .lk-mode { justify-content: space-between; padding: 10px 0 12px; border-top: 1px solid var(--rule); }
  .lk-hero { padding: 30px 20px; border-radius: 18px; gap: 24px; }
  .lk-ribbons { opacity: .45; }
  .lk-btn { width: 100%; padding: 14px 20px; }
  .lk-stage { padding: 22px 18px; }
  .lk-stage-name { font-size: 1.5rem; }
  .lk-dots li > span:first-child { width: 30px; height: 30px; font-size: .85rem; }
  .lk-dots li.current > span:first-child { width: 36px; height: 36px; }
  .lk-card { padding: 22px 18px; }
  .lk-steps { grid-template-columns: 1fr; gap: 0; padding-bottom: 8px; }
  .lk-steps::before { top: 20px; bottom: 30px; inset-inline-start: 19px; inset-inline-end: auto; left: auto; right: auto; width: 1.5px; height: auto; }
  .lk-steps li { grid-template-columns: 40px 1fr; justify-items: start; text-align: start; align-items: center; column-gap: 14px; row-gap: 0; padding: 6px 0; }
  .lk-steps li.current .lk-step-dot { margin-inline-start: -2px; }
  .lk-step-date { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .lk-btn { transition: none; } }

/* The company page design on a signed-in client's Home */
.lk-shell.lk-home { min-height: 0; background: none; display: grid; gap: 22px; margin-bottom: 26px; }
.lk-home .lk-top { border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--lift); }
.lk-home .lk-wrap { max-width: none; padding-inline: 24px; }
.lk-home .lk-hero { padding: 48px 44px; }
.lk-next-act { margin-top: 12px !important; }
.lk-dialog .book-grid { margin: 0; }
.book-grid.signed input[readonly] { background: var(--paper); color: var(--text-2); }
@media (max-width: 760px) { .lk-home .lk-wrap { padding-inline: 16px; } .lk-home .lk-hero { padding: 30px 20px; } }

/* What's been done, and the client's own team */
.lk-col { display: grid; gap: 22px; min-width: 0; }
.lk-h-list { list-style: none; margin: 18px 0 0; padding: 0; }
.lk-h-list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--rule); }
.lk-h-list li:first-child { border-top: 0; }
.lk-h-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--brand); }
.lk-h-icon svg { width: 18px; height: 18px; }
.lk-h-list p { margin: 0; }
.lk-h-title { font-weight: 600; color: var(--ink); }
.lk-h-detail { color: var(--text-2); font-size: .92rem; margin-top: 2px !important; }
.lk-h-list time { color: var(--muted); font-size: .88rem; white-space: nowrap; padding-top: 2px; }
.lk-h-more summary { cursor: pointer; color: var(--link); font-weight: 600; margin-top: 8px; }
.lk-h-empty { color: var(--text-2); margin: 14px 0 0; }
.lk-team-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.lk-team-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.lk-team-list p { margin: 0; }
.lk-avatar.sm { width: 46px; height: 46px; font-size: 1rem; background: color-mix(in srgb, var(--brand) 85%, #000); box-shadow: none; }
.lk-person-name.sm { font-size: 1.05rem; }
.lk-team-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px !important; font-size: .92rem; }
.lk-team-links a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .lk-h-list li { grid-template-columns: 32px 1fr; } .lk-h-list time { grid-column: 2; padding: 0; } }

/* Booking hours editor */
.hours-week { display: grid; gap: 8px; margin: 4px 0 12px; }
.hours-day { display: grid; grid-template-columns: 150px 130px 14px 130px; justify-content: start; align-items: center; gap: 10px; }
.hours-day input[type=time] { width: 130px; }
.hours-day input:disabled { opacity: .45; }
@media (max-width: 520px) { .hours-day { grid-template-columns: 1fr 104px 10px 104px; } .hours-day input[type=time] { width: 104px; } }
.cc-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; } .cc-list li { display: grid; gap: 2px; } .cc-list b { color: var(--ink); }
/* Contact links are easy to tap: at least 24px tall */
.contact-mini a, .lk-team-links a { display: inline-block; min-height: 24px; line-height: 24px; }

/* Company link: phases opened with the link */
.lk-step-lock { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); }
.lk-step-lock svg { width: 12px; height: 12px; }
.lk-signin-only { max-width: 640px; margin: 24px auto; text-align: center; }
.lk-signin-only h2 { font: 700 1.8rem/1.2 var(--sans); color: var(--ink); margin: 0 0 8px; }
.lk-signin-only .btn-row { justify-content: center; margin: 20px 0; }
.lk-doc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.lk-label-dark { margin: 0 0 6px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lk-doc-body { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 8px; }
.lk-doc-body .ask { display: none; }
.lk-decisions { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.lk-decisions li { display: flex; gap: 8px; align-items: center; color: var(--ok); }
.lk-decisions svg { width: 16px; height: 16px; }
.lk-sub-h { font: 600 1.05rem var(--sans); color: var(--ink); margin: 20px 0 10px; }
.lk-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 18px; }
.lk-metric { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.lk-metric p { margin: 0; }
.lk-metric-v { font: 700 1.5rem var(--sans); color: var(--ink); }
.lk-metric-l { color: var(--text-2); font-size: .9rem; }
.lk-card .lk-signin-note { margin-top: 18px; }
.lk-ask-done { margin: 0; }

/* What the company link opens */
.link-phases { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 16px; }
.link-phases h3 { margin: 0 0 8px; }
.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 999px; overflow: hidden; }
.seg label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; cursor: pointer; font-size: .9rem; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; }
.seg input { accent-color: var(--gold); }
.lp-table th[scope=row] { white-space: nowrap; }

/* Many phases: smaller stage dots in the hero */
.lk-dots.many li > span:first-child { width: 24px; height: 24px; font-size: .72rem; border-width: 1px; }
.lk-dots.many li > span:first-child svg { width: 12px; height: 12px; }
.lk-dots.many li.current > span:first-child { width: 30px; height: 30px; font-size: .8rem; border-width: 2px; }

/* Client journey phases */
.jp-strip { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: jp; }
.jp-strip li { counter-increment: jp; display: inline-flex; flex-direction: column; padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--surface); }
.jp-strip li span::before { content: counter(jp) ". "; color: var(--muted); }
.jp-strip small { color: var(--muted); font-size: .75rem; }
.jp-list { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; }
.jp-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.jp-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-wash); color: var(--ink); font-weight: 600; font-size: .85rem; }
.jp-main { display: grid; gap: 4px; min-width: 0; }
.jp-main input { width: 100%; }
.jp-actions { display: inline-flex; gap: 4px; }
.jp-actions .iconbtn { width: 32px; height: 32px; }
.jp-add { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.jp-add select { min-width: 240px; }
.jp-library { margin-top: 14px; }
.jp-library summary { cursor: pointer; color: var(--link); font-weight: 600; }
.jp-library dt { font-weight: 600; margin-top: 10px; }
.jp-library dd { margin: 2px 0 0; color: var(--text-2); font-size: .92rem; }
.lk-col > *, .lk-grid > * { min-width: 0; }
.lk-stage { min-width: 0; }
.lk-dots.many { flex-wrap: wrap; justify-content: flex-start; gap: 8px 6px; }
.lk-dots.many::before { display: none; }
.jp-main input { border: 1px solid var(--rule-strong); border-radius: var(--r-sm); padding: 8px 12px; font: 600 .98rem var(--sans); color: var(--ink); background: var(--surface); }
.jp-main input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.lk-steps-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }

/* Getting a new company started */
section.setup-steps { border-top: 3px solid var(--gold); }
.ss-list { list-style: none; margin: 14px 0 0; padding: 0; }
.ss-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.ss-list li:first-child { border-top: 0; }
.ss-list li > div { display: grid; gap: 2px; }
.ss-mark { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; font-size: .8rem; }
.ss-list li.done .ss-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.ss-list li.done b { color: var(--text-2); }

/* Guide: sections by role, numbered steps */
.guide-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.guide-tabs a { padding: 8px 14px; border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; color: var(--text-2); font-weight: 500; background: var(--surface); }
.guide-tabs a:hover { color: var(--ink); border-color: var(--ink); }
.guide-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.guide-role h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0; }
.guide-role-steps { list-style: none; margin: 18px 0 8px; padding: 0; counter-reset: gs; display: grid; gap: 10px; }
.guide-role-steps li { counter-increment: gs; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
.guide-role-steps li::before { content: counter(gs); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-light); color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.guide-role-steps li > div { display: grid; gap: 4px; }
.guide-role-steps b { color: var(--ink); font-size: 1.02rem; }
.guide-role-steps span { color: var(--text-2); }
.guide-role-steps a { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* ---------- Ask Epsilon Engage (the assistant window on every page) ---------- */
.ask-launch { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 20px 0 16px;
  border: 1px solid var(--gold); border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1 var(--sans); cursor: pointer; box-shadow: 0 14px 34px -14px rgba(6, 20, 44, .55); }
.ask-launch svg { width: 20px; height: 20px; color: var(--gold-light); }
.ask-launch:hover { background: #12305e; }
.ask-panel { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 61; width: min(440px, calc(100vw - 32px)); height: min(680px, calc(100vh - 44px));
  display: grid; grid-template-rows: auto 1fr auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; box-shadow: 0 28px 70px -24px rgba(6, 20, 44, .5); overflow: hidden; }
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; padding-inline-start: 20px; background: var(--ink); color: #fff; border-bottom: 2px solid var(--gold); }
.ask-head h2 { color: #fff; font-size: 19px; }
.ask-head p { margin: 2px 0 0; color: rgba(255, 255, 255, .78); }
.ask-head b { color: var(--gold-light); font-weight: 600; }
.ask-tools { display: flex; gap: 2px; }
.ask-tools .iconbtn { color: #fff; width: 40px; height: 40px; border-color: transparent; }
.ask-tools .iconbtn:hover { background: rgba(255, 255, 255, .12); }
.ask-tools .iconbtn[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.ask-body { overflow-y: auto; padding: 16px 18px; display: grid; gap: 14px; align-content: start; background: var(--paper); }
.ask-intro p { color: var(--text-2); }
.ask-sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-sugg .chip { background: var(--sheet); min-height: 36px; text-align: start; }
.ask-sugg .chip:hover { border-color: var(--ink); }
.ask-note { padding: 12px 14px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--rule); }
.ask-turn { display: grid; gap: 8px; }
.ask-me { justify-self: end; max-width: 88%; margin: 0; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }
[dir="rtl"] .ask-me { border-radius: 14px 14px 14px 4px; }
.ask-ai { max-width: 94%; padding: 11px 14px; border-radius: 14px 14px 14px 4px; background: var(--sheet); border: 1px solid var(--rule); }
[dir="rtl"] .ask-ai { border-radius: 14px 14px 4px 14px; }
.ask-text p:last-child { margin-bottom: 0; }
.ask-text ul { margin: 0 0 8px; padding-inline-start: 20px; }
.ask-done { list-style: none; margin: 10px 0 4px; padding: 8px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 4px; font-size: 14px; }
.ask-done li { display: flex; gap: 6px; align-items: flex-start; color: var(--ok); }
.ask-done svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.ask-done span { color: var(--text); }
.ask-done li.failed { color: var(--danger); }
.ask-pending { display: grid; gap: 10px; }
.ask-pending h3 { font-size: 14px; color: var(--text-2); }
.ask-card { background: var(--sheet); border: 1px solid var(--gold); border-inline-start-width: 4px; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.ask-card-title { font-weight: 600; margin: 0; color: var(--ink); }
.ask-card input, .ask-card textarea { width: 100%; }
.ask-card pre { white-space: pre-wrap; font-size: 12px; margin: 6px 0 0; }
.ask-card .btn-row { margin: 0; }
.ask-busy { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 0; }
.ask-form { padding: 12px 14px 10px; border-top: 1px solid var(--rule); background: var(--sheet); display: grid; gap: 8px; }
.ask-form textarea { width: 100%; resize: none; min-height: 52px; }
.ask-row { display: flex; align-items: center; gap: 8px; }
.ask-row .ask-status { flex: 1; margin: 0; min-width: 0; }
.ask-mic[aria-pressed="true"] { background: var(--danger); color: #fff; border-color: var(--danger); }
.ask-row svg { width: 16px; height: 16px; }
.ask-foot { margin: 0; font-size: 12px; }
@media (max-width: 640px) {
  .ask-launch { inset-block-end: 14px; inset-inline-end: 14px; padding: 0 14px; }
  .ask-launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ask-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
}
@media print { .ask-launch, .ask-panel { display: none !important; } }

/* Assessment results report */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars.wide .bar-row { grid-template-columns: minmax(120px, 38%) minmax(0, 1fr) auto; }
.report-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; }
.report-controls .field { min-width: 220px; }
.report-q h3 { font-size: 17px; margin: 0 0 4px; }
.rate-cell { display: inline-flex; align-items: center; gap: 8px; }
.rate-cell .bar { width: 90px; }
@media (max-width: 640px) { .bars.wide .bar-row { grid-template-columns: 1fr; gap: 4px; } }
@media print { .report-controls { display: none !important; } .report-q { break-inside: avoid; } details:not([open]) > :not(summary) { display: block; } }
#report { display: grid; gap: 16px; }
#report .report-head { margin: 12px 0 0; }
.conf-rate { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rule); }
.conf-rate p { margin: 0 0 6px; color: var(--muted); }
.person-result { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; margin: 8px 0 12px; background: var(--paper); }
.person-result p { margin: 0 0 6px; }
.program-focus { border-inline-start: 4px solid var(--gold); }
.table.heat td { text-align: center; font-variant-numeric: tabular-nums; }
.table.heat caption { text-align: start; padding: 8px 0; }
.heat-low { background: var(--danger-wash); }
.heat-mid { background: var(--gold-wash); }
.heat-high { background: var(--ok-soft); }
.score-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.score-rows li { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; align-items: center; }
.score-rows label { font-size: 14px; color: var(--text-2); }

/* ======================================================================
   Enterprise system (last layer): one set of tokens for type, controls,
   spacing, radius and elevation across staff, client and public pages.
   Tokens live in base.css. Later layers should use them, not raw values.
   ====================================================================== */

/* Headings: page title in the brand serif; everything inside pages in the interface face */
main#view h1 { font: 600 var(--fs-h1)/1.2 var(--serif); letter-spacing: -.01em; }
.card-head h2, .card > h2, .pad-card h2, .section-title, .tr-head h2, .resource h2, .report-q h3, .guide-role h2 { font: 600 var(--fs-h2)/1.35 var(--sans); letter-spacing: 0; color: var(--ink); }
.card h3, .pad-card h3 { font: 600 var(--fs-lg)/1.4 var(--sans); }
@media (max-width: 640px) { main#view h1 { font-size: 26px; } }

/* Page header: one rule, no doubled gap below it */
.page-head { margin-bottom: 0; }

/* Buttons: three heights by role */
.btn { min-height: var(--h-md); padding: 0 16px; line-height: 1.2; font-size: var(--fs-base); border-radius: var(--r-md); }
.btn.sm { min-height: var(--h-sm); padding: 0 12px; font-size: var(--fs-md); }
.btn.lg, .lk-btn { min-height: var(--h-lg); padding: 0 24px; border-radius: var(--r-md); }
.iconbtn { width: 36px; height: 36px; }

/* Fields: every text input looks the same, inside or outside a form grid. The base rule has no
   specificity (:where), so components with their own input style (palette, editor titles) keep it. */
:where(input:is([type=text], [type=email], [type=url], [type=tel], [type=search], [type=number], [type=password], [type=date], [type=time], [type=datetime-local], :not([type]))),
:where(select) {
  min-height: var(--h-md); padding-block: 0; padding-inline: 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  background: var(--sheet); font-size: var(--fs-base); line-height: 1.4; color: var(--text); max-width: 100%;
}
:where(textarea) { border-radius: var(--r-sm); padding: 10px 12px; font-size: var(--fs-base); }
/* Inside forms and filters: text inputs, dates and selects share one height */
:is(.field, .filters, .eng-select) :is(input:not([type=checkbox], [type=radio], [type=file], [type=hidden], [type=range], [type=color]), select) { min-height: var(--h-md); padding-block: 0; border-radius: var(--r-sm); line-height: 1.4; }
.ctx-item select { min-height: 32px; }
:is(input:not([type=checkbox], [type=radio], [type=range]), select, textarea):focus-visible { outline: none; border-color: var(--focus); box-shadow: var(--focus-ring); }
[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(168, 53, 43, .25); }
.num input, input.num { text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  :is(.field, .filters) :is(input:not([type=checkbox], [type=radio], [type=file], [type=hidden], [type=range], [type=color]), select) { min-height: var(--h-touch); font-size: 16px; }
}

/* Tables: header row only for column headers; row headers read as data */
.table th { background: none; }
.table thead th { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); background: var(--paper-2); }
.table tbody th { font-size: inherit; font-weight: 600; color: var(--ink); background: none; }
.table td.num, .table th.num { text-align: end; font-variant-numeric: tabular-nums; }

/* Big numbers: one face, one figure style */
.stat b, .metric-value, .funnel b, .tr-total b, .tr-funnel b, .vals b, .co-facts b, .lk-metric-v { font-family: var(--serif); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.stat b, .funnel b, .tr-total b { font-size: 28px; line-height: 1.1; }
.tr-funnel b, .vals b, .lk-metric-v { font-size: 20px; line-height: 1.2; }

/* Cards at the same level sit at the same height */
.card, .offer-card > a, .journey, .co-plate, .capabilities, .book-card, .lk-card, .need-card { box-shadow: var(--shadow-1); }
.offer-card > a, .journey, .capabilities, .book-card, .lk-card, .need-card, .inv-sheet { border-radius: var(--r); }
.co-plate, .lk-hero { border-radius: var(--r-lg); }
.modal, .palette, .ask-panel { box-shadow: var(--shadow-3); }
.toast, .nav-preview, .menu, .bell-list { box-shadow: var(--shadow-2); }

/* Gold accent bars on rounded cards: drawn inside, so the corners stay square to the bar */
.focus, .setup-card, .need-card, .setup-steps, .tr-total.warn, .rel-env { border-top: 1px solid var(--rule); overflow: hidden; }
.focus, .setup-card, .setup-steps, .tr-total.warn, .rel-env { position: relative; } /* .need-card stays sticky: also a containing block */
:is(.focus, .setup-card, .need-card, .setup-steps, .tr-total.warn, .rel-env)::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--bar, var(--gold)); pointer-events: none; }
.tr-total.warn { --bar: var(--danger); } .rel-env { --bar: var(--warn); }
.setup-card .setup-steps::before { display: none; }

/* Company-link pages share the app's type and shape */
.lk-card h2, .lk-main .capabilities h2 { font: 600 20px/1.3 var(--sans); }
.lk-hero .lk-headline { font: 600 clamp(28px, 3.4vw, 44px)/1.1 var(--serif); letter-spacing: -.01em; }
.lk-since { display: none; }

/* Contrast: counts at full muted colour; ticks on gold use the deeper gold */
.chip .count { opacity: 1; color: var(--muted); }
.chip[aria-pressed="true"] .count { color: rgba(255, 255, 255, .85); }
.js-done .js-dot, .setup-steps li.done .setup-dot, .journey-pct { background: var(--gold-text); border-color: var(--gold-text); }

/* Chips: one size */
.chip { min-height: var(--h-sm); padding: 0 12px; font-size: var(--fs-md); }

/* Mixed Arabic and English: each paragraph takes its own direction */
.msg-body, .ask-me, .ask-ai, .prewrap, .lr-main b, td[data-label], .review dd { unicode-bidi: plaintext; }

/* Arabic: never letter-space or upper-case Arabic script */
:root[lang="ar"] :is(.lk-eyebrow, .lk-label, .lk-label-dark, .cert-kind, .nav-group, .ctx-k, .eyebrow-h, .deadlines .date, .badge) { letter-spacing: 0 !important; text-transform: none !important; }

/* Context bar: dates never split; blockers keep to the end */
.ctx-next .overdue, .ctx-next time, .ctx-next > span > span:last-child { white-space: nowrap; }
.ctx-next { flex: 1 1 320px; min-width: 0; }
.area-tabs { scrollbar-width: thin; }
@media (max-width: 760px) {
  .area-tabs { mask-image: linear-gradient(90deg, #000 88%, transparent); }
  [dir="rtl"] .area-tabs { mask-image: linear-gradient(270deg, #000 88%, transparent); }
}
@media (max-width: 640px) { .ctx-bar:not(.open) .ctx-next { display: none; } }

/* Phones: no horizontal page scroll; touch targets of at least 44px */
html, body { overflow-x: clip; }
@media (max-width: 900px) {
  .iconbtn { width: var(--h-touch); height: var(--h-touch); }
  .chip, .seg label, .chip-opt, .btn.sm { min-height: var(--h-touch); }
}

/* Public forms on phones: the fields get the width */
@media (max-width: 640px) {
  .gate-card { padding: 20px 16px; }
  .public-card .q-section { padding: 0; border: 0; box-shadow: none; }
  .choice { padding: 10px 12px; }
  .conf-rate .choices.inline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .conf-rate .choice { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 4px; text-align: center; font-size: 13px; }
}

/* Guide on phones: steps as a list, not cards inside a card */
@media (max-width: 640px) {
  .guide-role-steps li { border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 14px 0; grid-template-columns: 32px 1fr; gap: 12px; }
}

/* Empty states inside cards */
.empty-inline { color: var(--muted); font-size: var(--fs-md); }

/* Print: only the page's content */
@media print {
  .ask-launch, .ask-panel, .ctx-bar, .area-tabs, .viewas-banner, .env-banner, .release-bar, .conn-notice, .toast, .link-nav, .lk-nav { display: none !important; }
  .co-band, .lk-hero, .page-intro { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
/* Totals: long amounts shrink rather than wrap; warning bars drawn inside the card */
.tr-total b, .stat b, .metric-value { font-size: clamp(20px, 1.9vw, 28px); white-space: nowrap; }
/* Wide screens: the page sits in the middle of the space beside the menu, and grows a little */
@media (min-width: 1600px) { .content { max-width: 1440px; margin-inline: auto; } }
@media (min-width: 1600px) { .area-tabs, .ctx-bar { padding-inline: max(32px, calc((100% - 1440px) / 2 + 32px)); } }
/* Results: each person's card keeps its blocks inside the card padding */
.response > .person-result, .response > .signals, .response > .meta { margin: 0 24px 16px; }
.response > .review-form { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rule); }
.signals { padding: 10px 14px; border-radius: var(--r-sm); background: var(--paper); }
.signals .bullets { margin: 6px 0 0; }
/* Write a form from text: the layout example wraps inside the dialog */
.wa-format pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 12px 14px; max-height: 280px; overflow: auto; }
.wa-format summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.wa-format + .wa-format { margin-top: 10px; }
.wa-format ol, .wa-rules { margin: 10px 0; padding-inline-start: 20px; display: grid; gap: 6px; line-height: 1.55; }
.wa-rules code { font-size: 12.5px; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 0 4px; white-space: nowrap; }
.answer-key { margin-top: 6px; }
.answer-key summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.answer-key .key-text { white-space: pre-wrap; background: var(--paper); border-inline-start: 3px solid var(--rule); padding: 6px 10px; margin: 4px 0; }
.declaration { padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--paper); margin: 12px 0; }

/* Messages: a WhatsApp-style conversation between the client company and Epsilon */
.chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(72vh, 760px); min-height: 420px; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--rule); background: var(--sheet); }
.chat-head > div:not(.btn-row) { display: grid; gap: 2px; min-width: 0; }
.chat-log { list-style: none; margin: 0; padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; background: var(--paper);
  background-image: radial-gradient(rgba(11, 33, 68, .035) 1px, transparent 1px); background-size: 14px 14px; overscroll-behavior: contain; }
.chat-day { align-self: center; margin: 10px 0 4px; } .chat-day span { font-size: 12px; color: var(--muted); background: var(--sheet); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; }
.chat-empty { margin: auto; max-width: 42ch; text-align: center; color: var(--muted); font-size: var(--fs-md); }
.chat-msg { max-width: min(78%, 560px); padding: 8px 12px 6px; border-radius: 12px; box-shadow: 0 1px 1px rgba(11, 33, 68, .06); display: grid; gap: 4px; }
.chat-msg.theirs { align-self: flex-start; background: var(--sheet); border-start-start-radius: 4px; }
.chat-msg.mine { align-self: flex-end; background: #e6efe7; border-start-end-radius: 4px; }
.chat-name { font-size: 12px; color: var(--gold-text); }
.chat-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-base); line-height: 1.45; unicode-bidi: plaintext; }
.chat-text a { color: var(--link); }
.chat-file { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-md); color: var(--link); text-decoration: underline; }
.chat-file svg { width: 16px; height: 16px; }
.chat-meta { display: inline-flex; align-items: center; gap: 6px; justify-self: end; font-size: 11px; color: var(--muted); }
.chat-tick { letter-spacing: -3px; padding-inline-end: 3px; } .chat-tick.read { color: #2b7bd6; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--rule); background: var(--sheet); }
.chat-input { flex: 1; display: grid; gap: 6px; min-width: 0; }
.chat-input textarea { min-height: 42px; max-height: 160px; resize: none; border-radius: 21px; padding: 10px 16px; line-height: 1.4; }
.chat-files:empty { display: none; } .chat-files { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-attach { cursor: pointer; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; }
.chat-attach svg, .chat-send svg { width: 18px; height: 18px; }
.chat-send { border-radius: 21px; min-height: 42px; flex-shrink: 0; }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #1f8f4e; color: #fff; font-size: 12px; font-weight: 700; margin-inline-start: auto; }
.chat-inbox .lr-side { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) {
  .chat { height: calc(100dvh - 210px); min-height: 360px; border-radius: 0; margin-inline: -16px; border-inline: 0; }
  .chat-msg { max-width: 88%; }
  .chat-send span { display: none; }
  .chat-send { width: 42px; padding: 0; }
}
@media print { .chat { height: auto; } .chat-log { overflow: visible; } .chat-compose { display: none; } }
/* Client journey phases: shown or hidden, and how each opens */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--fs-md); }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--rule-strong); position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: inset-inline-start .15s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { inset-inline-start: 19px; }
.switch input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.jp-table tr.is-hidden th { color: var(--muted); font-weight: 500; } .jp-table tr.is-hidden .seg { opacity: .5; }
.jp-add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
/* Explore Epsilon: links to Epsilon's own sites on the client's pages */
.lk-sites { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.lk-sites a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--r-md); text-decoration: none; color: var(--ink); background: var(--sheet); min-height: var(--h-touch); }
.lk-sites a:hover { border-color: var(--gold); background: var(--gold-wash); }
.lk-sites a > span { display: grid; gap: 1px; min-width: 0; }
.lk-sites b { font-size: var(--fs-md); } .lk-sites small { font-size: var(--fs-sm); color: var(--muted); }
.lk-sites svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold-text); }
[dir="rtl"] .lk-sites svg { transform: scaleX(-1); }
.chat-note { display: flex; align-items: center; gap: 6px; margin: 2px 0; } .chat-note svg { width: 16px; height: 16px; color: var(--gold-text); flex-shrink: 0; }
.chat-book { justify-self: start; } .chat-book svg, .chat-head .btn svg { width: 16px; height: 16px; }
.cb-days { display: flex; flex-wrap: wrap; gap: 8px; } .cb-slots { max-height: 220px; }
/* Context bar: the programs a company asked for, before a program exists */
.ctx-req { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.req-prog { padding: 1px 8px; border-radius: var(--r-xs); background: var(--gold-wash); color: var(--ink); font-weight: 600; }
/* Messages: the conversations list beside the open conversation */
.chat-shell { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.chat-list { display: grid; grid-template-rows: auto minmax(0, 1fr); height: min(72vh, 760px); min-height: 420px; overflow: hidden; }
.chat-list-head { display: grid; gap: 8px; padding: 12px; border-bottom: 1px solid var(--rule); }
.chat-list-head .btn svg { width: 16px; height: 16px; }
.chat-threads { overflow-y: auto; }
.chat-thread-list { list-style: none; margin: 0; padding: 4px 0; }
.chat-thread { display: grid; gap: 2px; padding: 10px 14px; text-decoration: none; color: var(--text); border-inline-start: 3px solid transparent; }
.chat-thread:hover { background: var(--paper); }
.chat-thread.on { background: var(--gold-wash); border-inline-start-color: var(--gold); }
.chat-thread.closed b { color: var(--muted); }
.ct-top, .ct-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.ct-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-md); }
.ct-snippet { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chat-thread .ct-snippet mark, .chat-results-n mark { background: #fff1b8; color: inherit; padding: 0 1px; border-radius: 2px; }
.chat-results-n { padding: 8px 14px 0; margin: 0; }
.chat-closed > summary { padding: 8px 14px; cursor: pointer; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.chat-pick { margin: auto; display: grid; justify-items: center; gap: 8px; color: var(--muted); padding: 40px; text-align: center; grid-row: 1 / -1; }
.chat-pick svg { width: 32px; height: 32px; color: var(--gold-text); }
.chat-back { display: none; }
.chat-earlier { align-self: center; }
.chat-msg.flash { outline: 3px solid var(--gold); outline-offset: 2px; transition: outline-color 1s; }
.chat-head .btn-row { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .chat-shell { grid-template-columns: 1fr; }
  .chat-shell.has-open .chat-list, .chat-shell:not(.has-open) .chat { display: none; }
  .chat-list { height: auto; min-height: 0; max-height: none; }
  .chat-back { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--link); margin-bottom: 2px; }
  .chat-back svg { width: 14px; height: 14px; transform: scaleX(-1); }
  [dir="rtl"] .chat-back svg { transform: none; }
  .chat-head { align-items: flex-start; flex-direction: column; }
}
.chat-head > div:first-child { min-width: 0; flex: 1; }
.chat-head .chat-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .btn-row { flex-wrap: nowrap; flex-shrink: 0; gap: 6px; }
@media (max-width: 1100px) and (min-width: 761px) { .chat-head .btn-row { flex-wrap: wrap; } }
@media (max-width: 760px) { .chat-head .btn-row { flex-wrap: wrap; justify-content: flex-start; } }
/* Client activity */
.ca-days { min-width: 180px; }
.ca-visits details > summary { cursor: pointer; list-style: none; }
.ca-visits details > summary::-webkit-details-marker { display: none; }
.ca-timeline { list-style: none; margin: 0 24px 8px; padding: 0 0 0 16px; border-inline-start: 2px solid var(--rule); display: grid; gap: 6px; }
.ca-timeline li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.ca-timeline time { white-space: nowrap; }
.ca-act b { color: var(--ink); }
.ca-visits details > p { margin: 0 24px 14px; }
.ca-visits details > p > a { display: inline-flex; align-items: center; min-height: 32px; }
.tag.ok { background: var(--ok-wash); color: var(--ok); }
.lk-track-note { text-align: center; color: var(--muted); padding: 12px 16px 24px; margin: 0; }
/* Time zones: a slot in the viewer's time, with Epsilon's time beneath */
.slot small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.slot.on small, button.slot.on small { color: rgba(255, 255, 255, .8); }
.tz-note { color: var(--text-2); margin: 4px 0 0; }
.ca-visits summary.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 24px; }
.ca-visits summary .lr-main { display: grid; gap: 4px; }
.ca-visits summary .lr-main > b { display: inline; }
.ca-visits li + li { border-top: 1px solid var(--rule); }
.ca-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag.soft { background: var(--soft); color: var(--text-2); }
.ca-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok); }
.ca-live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-wash); }
.ca-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.ca-now li, .ca-quiet li { padding: 12px 24px; }
.ca-now li + li, .ca-quiet li + li { border-top: 1px solid var(--rule); }
.ca-now .lr-main { display: grid; gap: 4px; }
.ca-quiet li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
@media (max-width: 640px) { .ca-now li, .ca-quiet li { padding: 12px 16px; } }
/* Assessments answered by link: phone numbers with country codes; one question at a time with timers */
.phone-in { display: grid; grid-template-columns: minmax(120px, 44%) minmax(0, 1fr); gap: 6px; }
.focus-mode .qa-top { position: sticky; top: 0; z-index: 3; background: var(--sheet); padding: 10px 0; margin-bottom: 8px; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.qa-progress { display: grid; gap: 4px; } .qa-progress .bar { height: 8px; } .qa-progress .bar > span { transition: width .3s; background: var(--gold); }
.qa-timers { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-2); font-variant-numeric: tabular-nums; } .qa-timers b { color: var(--ink); }
.qa-nav { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0; }
.qa-review { padding: 16px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); margin-top: 8px; }
.qa-review h2 { font-size: var(--fs-h2); margin: 0 0 6px; }
.question.timeup { opacity: .7; }
.assess-card .list { margin-top: 12px; }
@media (max-width: 640px) { .phone-in { grid-template-columns: 1fr; } }
/* The assessment report shared with the company */
.report-page { max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 16px; }
.rp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.rp-head > div:nth-child(2) { flex: 1; min-width: 240px; } .rp-head h1 { font: 600 28px/1.2 var(--serif); margin: 2px 0 0; } .rp-head p { margin: 0; }
.rp-logo { width: 150px; height: auto; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.rp-answers { margin: 0; padding-inline-start: 22px; display: grid; gap: 12px; } .rp-answers p { margin: 0; }
.rp-foot { text-align: center; }

/* Write a form from text: the two ways as choice cards, and help for the import way. */
.wa-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wa-way { position: relative; display: grid; align-content: start; gap: 4px; padding-block: 14px; padding-inline: 44px 16px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--sheet); cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field .wa-way input[type="radio"] { position: absolute; inset-inline-start: 16px; top: 16px; margin: 0; width: 18px; height: 18px; padding: 0; accent-color: var(--navy); }
.wa-way:hover { border-color: var(--navy); }
.wa-way:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: var(--paper); }
.wa-way:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.wa-way:has(input:disabled) { cursor: not-allowed; opacity: .7; }
.wa-way-t { font-weight: 600; color: var(--ink); }
.wa-way-d { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.wa-way-off { font-size: 12.5px; color: var(--warn); line-height: 1.45; }
.wa-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--gold-wash); border: 1px solid var(--gold-soft); }
.wa-help p { margin: 0; }
.wa-help[hidden], .wa [hidden] { display: none; }
.wa-file input[type="file"] { font-size: 13px; margin-top: 4px; max-width: 100%; }
@media (max-width: 640px) { .wa-ways { grid-template-columns: 1fr; } }
.tag.pts { background: var(--soft); color: var(--text-2); margin-inline-start: 4px; }

/* ---------- questionnaires: case material, field groups, grids, rankings, one section at a time ---------- */
.form-intro p { margin: 6px 0 0; color: var(--text-2); max-width: 72ch; }
.sec-intro { margin: -4px 0 4px; color: var(--text-2); max-width: 72ch; } .sec-intro p { margin: 0 0 8px; }
.passage { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; display: grid; gap: 8px; font-size: 15px; max-width: 78ch; }
.passage h3 { font: 600 14px/1.3 var(--sans); color: var(--ink); margin: 6px 0 0; } .passage h3:first-child { margin-top: 0; }
.passage p, .passage ul, .passage ol { margin: 0; } .passage .bullets { padding-inline-start: 20px; }
.passage .draft { margin: 0; padding: 10px 14px; background: var(--sheet); border-inline-start: 3px solid var(--gold); border-radius: 6px; font-style: italic; }
.passage .table-wrap { margin: 0; } .passage-table { width: auto; min-width: min(100%, 420px); background: var(--sheet); }
.question.sub { border-top: 0; padding-top: 0; margin-inline-start: 18px; padding-inline-start: 14px; border-inline-start: 2px solid var(--rule); }
.parts { display: grid; gap: 14px; } .part { margin: 0; } .part > label { font-weight: 600; }
.part .choices.inline { margin-top: 2px; } .part .idk { margin-top: 2px; color: var(--text-2); }
.word-count { font-size: 13px; color: var(--muted); justify-self: end; text-align: end; display: block; } .word-count.over { color: var(--danger); font-weight: 600; }
.limit-note:empty { display: none; } .limit-note { color: var(--danger); font-weight: 600; }
.matrix { display: grid; gap: 10px; }
.mx-row { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; background: var(--sheet); }
.mx-label { margin: 0; font-weight: 600; color: var(--ink); }
.mx-cell { border: 0; padding: 0; margin: 0; min-width: 0; } .mx-cell legend { font-size: 13px; color: var(--text-2); padding: 0; margin-bottom: 4px; }
.matrix.one .mx-row { grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); align-items: center; }
@media (max-width: 760px) { .matrix.one .mx-row { grid-template-columns: 1fr; } }
.ranks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 640px; } .ranks .field { margin: 0; }
.ranks select { width: 100%; } .ranks option:disabled { color: var(--muted); }
.pre { white-space: pre-line; }
.sec-top { display: grid; gap: 8px; margin-bottom: 14px; scroll-margin-top: 80px; }
.sec-count { margin: 0; font-weight: 600; color: var(--ink); }
.sec-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; counter-reset: step; }
.sec-steps li { counter-increment: step; font-size: 12px; color: var(--muted); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--rule); }
.sec-steps li::before { content: counter(step) ". "; }
.sec-steps li.on { background: var(--ink); border-color: var(--ink); color: #fff; } .sec-steps li.done { background: var(--gold-wash); color: var(--text-2); }
.sec-nav { display: flex; gap: 10px; align-items: center; margin: 16px 0 8px; } .sec-nav .spacer { flex: 1; }
.by-section .q-section h2:focus, .sec-review h2:focus { outline: none; }
@media (max-width: 600px) { .sec-steps { display: none; } .sec-nav .btn { flex: 1; } .sec-nav .spacer { display: none; } }
.sec-review .review-block { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 12px; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .review-head h3 { margin: 0; font-size: 16px; }
.review-sec { font-size: 15px; margin: 16px 0 4px; }
.thanks p { margin: 0 0 10px; }
.placement { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; margin: 10px 0; display: grid; gap: 10px; }
.placement .kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; } .placement .kv dt { color: var(--muted); } .placement .kv dd { margin: 0; }
.grid-row { margin-top: 10px; } .grid-row h4 { margin: 0 0 4px; font-size: 14px; }
@media (max-width: 600px) { .mx-cell .choices.inline { display: flex; flex-wrap: wrap; gap: 6px; } .mx-row { padding: 10px 12px; } .question.sub { margin-inline-start: 6px; padding-inline-start: 10px; } }
.facilitator .table td.num, .facilitator .table th.num { white-space: nowrap; }
.response > .placement, .response > .priorities { margin: 0 24px 16px; } .response > .priorities p { margin: 4px 0 0; }

/* Company link: the team assessment to forward */
.lk-assess { border-inline-start: 4px solid var(--brand, var(--gold)); display: grid; gap: 10px; }
.lk-assess h2 { margin: 0; } .lk-assess-title { margin: 4px 0 0; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.lk-assess-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; color: var(--text-2); font-size: 14px; }
.lk-assess-facts li::before { content: "• "; color: var(--muted); } .lk-assess-facts li:first-child::before { content: ""; }
.lk-assess-link label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.lk-copy { display: flex; gap: 8px; } .lk-copy input { flex: 1; min-width: 0; font-size: 14px; }
.lk-assess-link p { margin: 6px 0 0; }
.lk-assess-msg summary { cursor: pointer; font-weight: 600; font-size: 14px; } .lk-assess-msg textarea { width: 100%; margin: 8px 0; font-size: 14px; }
@media (max-width: 600px) { .lk-copy { flex-direction: column; } }
.lk-assess { scroll-margin-top: 80px; }
.lk-link-label { font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.lk-link-text { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--paper); font-size: 14px; overflow-wrap: anywhere; color: var(--ink); }
.sec-review .review, .response > .review { max-height: none; overflow: visible; }
.rp-kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 10px 0 0; } .rp-kv dt { color: var(--muted); } .rp-kv dd { margin: 0; }
.rp-grid.rp-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (max-width: 760px) { .rp-grid.rp-two { grid-template-columns: 1fr; } }
.rp-answers li.sub { list-style: none; }

/* ---------- polish: company page, assessment and report on every screen size ---------- */
/* Roadmap: from tablet width down, phases run top to bottom; the "Sign in" lock sits under the phase name. */
@media (max-width: 900px) {
  .lk-steps { grid-template-columns: 1fr; gap: 0; padding-bottom: 8px; }
  .lk-steps::before { top: 20px; bottom: 30px; inset-inline-start: 19px; inset-inline-end: auto; left: auto; right: auto; width: 1.5px; height: auto; }
  .lk-steps li { grid-template-columns: 40px 1fr; justify-items: start; text-align: start; align-items: center; column-gap: 14px; row-gap: 0; padding: 6px 0; }
  .lk-steps li.current .lk-step-dot { margin-inline-start: -2px; }
  .lk-step-date, .lk-step-lock { grid-column: 2; }
}
.lk-step-lock { white-space: nowrap; }
/* Assessment facts as quiet pills, so they wrap cleanly on narrow screens. */
.lk-assess-facts { gap: 8px; }
.lk-assess-facts li { background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; }
.lk-assess-facts li::before, .lk-assess-facts li:first-child::before { content: none; }
.lk-assess-msg summary { padding: 6px 0; }
/* Tap targets: links that act as buttons and the "not sure" boxes get a comfortable height. */
.cap-access, .lk-side .linklike { min-height: 40px; }
.part .idk, .question .choices.inline .choice { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.part .idk input { width: 18px; height: 18px; }
/* The private resume link reads as a link without relying on colour. */
#resume a { text-decoration: underline; text-underline-offset: 3px; }
.lk-dots li > span:first-child { font-size: .8rem; }
/* Section tabs on phones: a soft fade shows there are more to scroll to. */
@media (max-width: 760px) {
  .lk-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-inline-end: 24px; }
  .lk-partner { gap: 10px; } .lk-partner .lk-x { display: none; }
}
@media (max-width: 600px) { .part .choices.inline { display: grid; grid-template-columns: 1fr; gap: 8px; } }
.choice input[type="radio"], .choice input[type="checkbox"], label.check input { flex-shrink: 0; }
.parts > .part:has(textarea) + .part:has(textarea) { border-top: 1px solid var(--rule); padding-top: 16px; }
.lk-dots li > span:first-child { font-size: .9rem; }
/* Bars on phones: the label on its own line, then the bar with its value beside it. */
@media (max-width: 640px) {
  .bar-row, .bars.wide .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .bar-row > :first-child { grid-column: 1 / -1; }
  .bar-row .bar-val { min-width: 2ch; text-align: end; }
}
/* Phones: small action buttons and link-style buttons get a comfortable tap height. */
@media (max-width: 600px) {
  main .can-ask .ask, main .btn.sm, main button.linklike, .lk-programs button, main [data-journey] { min-height: 40px; display: inline-flex; align-items: center; }
}
/* Proposal documents: the column never grows past the card; long table text wraps on phones. */
.prose { grid-template-columns: minmax(0, 1fr); }
.prose table { width: 100%; }
@media (max-width: 600px) { .prose table { display: block; overflow-x: auto; } .prose td, .prose th { hyphens: auto; } .prose .table th, .prose .table td { padding-inline: 8px; } }
.lk-dots.many li > span:first-child { width: 28px; height: 28px; font-size: 12.5px; } .lk-dots.many li.current > span:first-child { width: 34px; height: 34px; font-size: 14px; }

/* ---------- Epsilon websites and "Powered by Epsilon AI Learning" on every client page ---------- */
.powered-by { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.3; color: var(--muted); text-decoration: none; width: fit-content; }
.powered-by img { width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0; }
.powered-by b { font-weight: 600; color: var(--text-2); }
.powered-by:hover b, .powered-by:focus-visible b { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.brand-wrap { display: grid; gap: 6px; }
.sidebar-pb { margin-inline-start: 10px; }
.gate-pb { margin-top: -6px; }
.gate .gate-card .gate-pb { justify-self: start; }
.rp-brand { display: grid; gap: 6px; }
.ep-sites { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-site { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--sheet); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.ep-site:hover, .ep-site:focus-visible { border-color: var(--gold); background: var(--gold-wash); }
.ep-out { width: 12px; height: 12px; color: var(--muted); flex-shrink: 0; }
/* In the sidebar: one per line, full width. */
.nav-explore { padding-top: 12px; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.ep-sites-nav { display: grid; gap: 6px; }
.ep-sites-nav .ep-site { justify-content: space-between; border-radius: 8px; font-weight: 500; padding: 8px 12px; }
/* App footer: "Powered by" and the sites on their own line. */
.footer-explore { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
/* Footer on pages outside the app: the company link, answer-by-link forms, reports and sign-in. */
.ep-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; border-top: 1px solid var(--rule); padding: 22px 0 8px; }
.ep-foot-brand { display: grid; gap: 6px; }
.ep-foot-logo { width: 150px; height: auto; display: block; }
.ep-foot-title { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.gate-foot { width: min(760px, 100%); margin: 24px auto 0; }
.gate { align-content: center; }
.lk-foot { max-width: 1240px; margin: 0 auto 28px; padding-inline: 28px; }
.rp-epfoot { margin-top: 24px; }
@media (max-width: 760px) {
  .lk-foot { padding-inline: 16px; }
  .ep-foot { flex-direction: column; align-items: flex-start; }
  .ep-site { min-height: 40px; }
  .footer-explore { flex-direction: column; align-items: flex-start; }
}
@media print { .ep-foot, .footer-explore, .nav-explore { display: none !important; } }
.powered-by { min-height: 28px; padding-block: 4px; } .gate-pb { margin-top: -10px; } .brand-wrap { gap: 0; }
.ep-foot { text-align: start; }
/* Under a card that already shows the Epsilon Engage logo and "Powered by", the footer keeps only the sites. */
.gate-foot .ep-foot-brand { display: none; }
.gate-foot { justify-content: center; } .gate-foot .ep-foot-links { display: grid; justify-items: center; gap: 0; } .gate-foot .ep-sites { justify-content: center; }
.rp-grid.rp-two { align-items: start; }
.rp-top { margin-bottom: 10px; } .rp-back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--link); text-decoration: none; }
.rp-back:hover { text-decoration: underline; }
.resp-actions { margin: 0 24px 16px; } .removed-list summary { cursor: pointer; font-weight: 600; } .removed-list { margin-top: 16px; }
/* Assessment page: back to the company's page; staying on the page; locked after leaving. */
.form-back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--link); text-decoration: none; justify-self: start; width: fit-content; }
.form-back:hover { text-decoration: underline; }
.stay-note b { color: var(--ink); }
.locked-note { display: grid; gap: 6px; } .locked-note h2 { margin: 0; font-size: 18px; } .locked-note p { margin: 0; }
.rp-locked { border-inline-start: 4px solid var(--warn, #a86500); }
.resp-leaves { margin: 0 24px 16px; } .resp-leaves .bullets { margin: 6px 0 0; }

/* ---------- Share and manage (results page) ---------- */
.share-panel { display: grid; gap: 16px; margin-bottom: 16px; }
.share-panel .card-head.flat { padding: 0; border: 0; align-items: flex-start; }
.share-rows { display: grid; gap: 0; border: 1px solid var(--rule); border-radius: 10px; }
.share-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.share-row:last-child { border-bottom: 0; } .share-row p { margin: 2px 0 6px; } .share-row > div:first-child { min-width: 0; flex: 1 1 320px; }
.share-url { display: block; font-size: 12.5px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 6px 10px; overflow-wrap: anywhere; color: var(--text-2); }
.share-settings { display: grid; gap: 10px; padding-top: 4px; } .share-settings h3 { margin: 0; font-size: 15px; }
.share-team summary { cursor: pointer; font-weight: 600; }
.warn-text { color: var(--warn, #a86500); }

/* ---------- Employee page (/t/<code>) ---------- */
.team-shell .lk-main .lk-wrap { display: grid; gap: 16px; padding-block: 24px; }
.team-shell .lk-partner .lang-btn { margin-inline-start: 8px; }
.team-hello h2 { margin: 0; }
.team-assess { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; border-inline-start: 4px solid var(--brand, var(--gold)); }
.team-assess h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--ink); } .team-assess p { margin: 8px 0 0; }
.team-chat { display: grid; gap: 12px; }
.team-msgs { list-style: none; margin: 0; padding: 4px; display: grid; gap: 10px; max-height: 52vh; overflow-y: auto; }
.team-msgs .msg { max-width: min(560px, 88%); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; display: grid; gap: 4px; }
.team-msgs .msg.mine { justify-self: end; background: var(--gold-wash); border-color: transparent; }
.team-msgs .msg.theirs { justify-self: start; background: var(--sheet); }
.team-msgs .msg p { margin: 0; } .team-msgs .msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.team-send { display: grid; gap: 8px; } .team-send textarea { width: 100%; } .team-send .btn-row { justify-content: space-between; align-items: center; }
.team-feature-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.team-feature-list li { display: flex; gap: 12px; align-items: flex-start; } .team-feature-list p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.lk-tabs .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger, #b42318); color: #fff; font-size: 12px; font-weight: 700; }
.team-join .form-grid { margin-top: 4px; }
@media (max-width: 760px) { .team-assess .btn { width: 100%; justify-content: center; } .lk-mode-label { font-size: 13px; } }

/* ---------- chat with Epsilon on the company link and the employee page (like WhatsApp) ---------- */
.lk-tabs .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #1f9d55; color: #fff; font: 700 12px/1 var(--sans); }
.lk-btn.solid { background: var(--brand-deep, var(--ink)); color: #fff; padding: 13px 22px; width: 100%; }
.lk-btn.solid:hover { filter: brightness(1.12); }
.lk-chat { width: 100%; max-width: 860px; margin: 0 auto; }
.wa { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; height: min(78vh, 760px); min-height: 480px; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; box-shadow: var(--lift); }
.wa-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--brand-deep, var(--ink)); color: #fff; }
.wa-head h2 { color: #fff; font: 600 17px/1.25 var(--sans); margin: 0; }
.wa-head p { margin: 0; }
.wa-who { min-width: 0; flex: 1; } .wa-who p { font-size: 13px; color: rgba(255, 255, 255, .78); }
.wa-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--gold-a, #e2c48a), var(--gold-b, #c49a55)); color: #1c1608; font: 700 15px var(--sans); }
.wa-reply { font-size: 12.5px; color: rgba(255, 255, 255, .78); text-align: end; max-width: 180px; }
.wa-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 18px clamp(12px, 3vw, 28px); background-color: #efeae2;
  background-image: radial-gradient(color-mix(in srgb, var(--brand, #0b2144) 9%, transparent) 1px, transparent 1.4px); background-size: 18px 18px; }
.wa-scroll:focus-visible { outline-offset: -3px; }
.wa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.wa-day { align-self: center; margin: 12px 0 8px; }
.wa-day span { display: inline-block; padding: 5px 12px; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--text-2); font: 600 12.5px var(--sans); box-shadow: 0 1px 1px rgba(11, 33, 68, .08); }
.wa-msg { display: flex; margin-top: 8px; } .wa-msg.cont { margin-top: 0; }
.wa-msg.mine { justify-content: flex-end; }
.wa-bubble { position: relative; max-width: min(78%, 560px); padding: 7px 10px 6px 12px; border-radius: 12px; background: #fff; box-shadow: 0 1px 1.5px rgba(11, 33, 68, .13); }
.wa-msg.mine .wa-bubble { background: #f7ecd2; }
.wa-msg.theirs:not(.cont) .wa-bubble { border-start-start-radius: 3px; }
.wa-msg.mine:not(.cont) .wa-bubble { border-start-end-radius: 3px; }
.wa-from { display: block; font: 600 13px var(--sans); color: var(--brand-deep, var(--ink)); margin-bottom: 2px; }
.wa-text { margin: 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.wa-meta { float: inline-end; display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 -2px 12px; font-size: 11.5px; color: #6b7480; line-height: 1; }
.wa-state { display: inline-flex; color: #8a939e; } .wa-state.read { color: #2b8fd6; } .wa-state.failed { color: var(--danger); font-weight: 700; }
.wa-tick { height: 12px; width: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wa-retry { display: block; clear: both; font-size: 13px; color: var(--danger); margin-top: 4px; }
.wa-empty { align-self: center; max-width: 420px; text-align: center; margin: auto 0; padding: 14px 18px; border-radius: 10px; background: #fdf6e3; color: var(--text-2); font-size: 14px; }
.wa-empty p { margin: 0; }
.wa-foot { background: #f4f1ec; border-top: 1px solid var(--rule); }
.wa-foot:empty { display: none; }
.wa-compose { display: flex; align-items: flex-end; gap: 10px; padding: 10px 14px 4px; }
.wa-compose textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 23px; background: #fff; font: 15px/1.4 var(--sans); }
.wa-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--brand-deep, var(--ink)); color: #fff; }
.wa-send svg { width: 20px; height: 20px; } [dir="rtl"] .wa-send svg { transform: scaleX(-1); }
.wa-send:hover { filter: brightness(1.15); }
.wa-hint, .wa-me { margin: 0; padding: 0 18px 10px; font-size: 12.5px; color: var(--muted); }
.wa-hint:empty { display: none; }
.wa-start { padding: 16px 18px; gap: 12px; max-height: 52vh; overflow-y: auto; }
.wa-start .form-grid { gap: 12px; }
.wa-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 18px; font-size: 12.5px; color: var(--muted); background: var(--surface); border-top: 1px solid var(--rule); }
.wa-note svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 640px) {
  .lk-chat { width: calc(100% + 32px); max-width: none; margin: 0 -16px; }
  .wa { height: calc(100dvh - 150px); min-height: 420px; border-radius: 0; border-inline: 0; }
  .wa-reply { display: none; }
  .wa-bubble { max-width: 86%; }
  .wa-start { max-height: 46dvh; }
}

/* ---------- the chat button in the corner of client pages ---------- */
.chat-fab { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 28px;
  background: var(--brand-deep, #0b2144); color: #fff; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(11, 33, 68, .55), 0 2px 6px rgba(11, 33, 68, .18); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab:hover { filter: brightness(1.15); }
.chat-fab:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.chat-fab[hidden] { display: none; }
.chat-fab-count { position: absolute; top: -4px; inset-inline-end: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #1f9d55; color: #fff; font: 700 12px/22px var(--sans); text-align: center; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 640px) {
  .chat-fab { width: 56px; padding: 0; justify-content: center; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .chat-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media print { .chat-fab { display: none !important; } }
.wa-wa { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 12px; border-radius: 18px; background: #25d366; color: #06301a; font: 600 13px var(--sans); text-decoration: none; }
.wa-wa svg { width: 18px; height: 18px; }
.wa-wa:hover { filter: brightness(1.06); }
.wa-file { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; padding: 9px 12px; border-radius: 9px; background: rgba(11, 33, 68, .06); color: var(--ink); text-decoration: none; min-width: 200px; }
.wa-file svg { width: 22px; height: 22px; flex: none; color: var(--brand-deep, var(--ink)); }
.wa-file span { display: grid; min-width: 0; } .wa-file b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; } .wa-file small { color: var(--muted); font-size: 12px; }
a.wa-file:hover { background: rgba(11, 33, 68, .1); }
.wa-clip { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); cursor: pointer; }
.wa-clip:hover { background: rgba(11, 33, 68, .07); } .wa-clip:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.wa-clip svg { width: 22px; height: 22px; } .wa-clip.busy { opacity: .5; pointer-events: none; }
.wa-attached { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px 0; }
.wa-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--rule); font-size: 13px; }
.wa-chip svg { width: 15px; height: 15px; }
.wa-chip-x { border: 0; background: none; font-size: 18px; line-height: 1; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; color: var(--muted); }
.wa-chip-x:hover { background: var(--paper); }
@media (max-width: 640px) { .wa-wa span { display: none; } .wa-wa { padding: 9px; } }
.block { display: block; } .btn-row.nowrap { flex-wrap: nowrap; }
.team-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.action-files { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.action-files a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.action-files svg { width: 14px; height: 14px; }
.action-side .btn svg { width: 15px; height: 15px; }
.action-upload { cursor: pointer; } .action-upload.busy { opacity: .5; pointer-events: none; } .action-upload:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.chat-replies { position: relative; align-self: flex-end; }
.chat-replies-menu { position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0; z-index: 30; width: min(360px, 80vw); max-height: 340px; overflow-y: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--lift); padding: 6px; display: grid; gap: 2px; }
.chat-replies-menu button { display: grid; gap: 2px; text-align: start; padding: 9px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer; font: inherit; color: var(--text); }
.chat-replies-menu button:hover, .chat-replies-menu button:focus-visible { background: var(--paper); }
.chat-replies-menu .chat-replies-edit { border-top: 1px solid var(--rule); border-radius: 0 0 8px 8px; color: var(--link); font-weight: 600; }
.reply-row { border: 1px solid var(--rule); border-radius: 10px; padding: 12px; margin: 0 0 10px; display: grid; gap: 8px; }
.reply-row .btn { justify-self: start; }
/* session feedback */
.rate-card { border-inline-start: 4px solid var(--gold, #c49a55); }
.stars { border: 0; padding: 0; margin: 0 0 10px; } .stars legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.stars-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-row label { position: relative; font-size: 32px; line-height: 1; color: #d4d8de; cursor: pointer; padding: 2px; border-radius: 6px; }
.stars-row input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.stars-row label:hover, .stars-row label:hover ~ label, .stars-row label:has(input:checked), .stars-row label:has(input:checked) ~ label { color: #e0a526; }
.stars-row label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.rating-pill { flex: none; font-weight: 700; color: #a8770f; white-space: nowrap; margin-inline-end: 8px; } .rating-pill small { color: var(--muted); font-weight: 500; }
.rating-more { padding: 0 20px 12px; } .rating-more summary { cursor: pointer; font-size: 14px; color: var(--link); }
.rating-comments { margin: 6px 0; padding-inline-start: 18px; font-size: 14px; } .rating-comments li { margin: 4px 0; }
@media (max-width: 640px) { .action-side { width: 100%; } }

/* ---------- round 2 polish: tasks, toasts, chat button room, phone tab bar ---------- */
.action.has-check { align-items: flex-start; }
.act-check { flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; border: 2px solid #b8c0cc; background: var(--surface); color: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color .15s, background .15s, color .15s; }
.act-check svg { width: 16px; height: 16px; }
.act-check:hover, .act-check:focus-visible { border-color: #1f9d55; color: #1f9d55; }
.action.completing .act-check { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.action.completing .action-title { text-decoration: line-through; color: var(--muted); }
.action.completing { transition: opacity .4s .1s; opacity: .55; }
@media (prefers-reduced-motion: reduce) { .act-check, .action.completing { transition: none; } }
.toast.show .toast-act { pointer-events: auto; }
.toast-act { margin-inline-start: 10px; border: 0; background: none; color: inherit; font: 700 14px var(--sans); text-decoration: underline; cursor: pointer; padding: 4px 6px; }
body.has-fab { padding-bottom: 84px; }
.home-grid.client .home-side { order: 0; }
@media (max-width: 640px) {
  /* Company link and employee page: compact header, and the sections as a tab bar at the bottom like an app. */
  .lk-shell .lk-top-in { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .lk-shell .lk-logo { width: 48px; height: 48px; border-radius: 12px; }
  .lk-shell .lk-logo img { padding: 6px; }
  .lk-shell .lk-partner .lk-sub { display: none; }
  .lk-nav .lk-tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 55; gap: 0; background: var(--surface); border-top: 1px solid var(--rule); box-shadow: 0 -6px 18px -12px rgba(11, 33, 68, .35); padding-bottom: env(safe-area-inset-bottom); overflow-x: auto; scrollbar-width: none; }
  .lk-nav .lk-tabs button { flex: 1 0 74px; flex-direction: column; gap: 3px; padding: 9px 4px 8px; font-size: 12px; border-bottom: 0; border-top: 3px solid transparent; position: relative; }
  .lk-nav .lk-tabs button[aria-current="page"] { border-top-color: var(--gold); border-bottom-color: transparent; }
  .lk-nav .lk-tabs button svg { width: 22px; height: 22px; }
  .lk-nav .lk-tabs .count { position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }
  body:has(.lk-nav .lk-tabs) .lk-shell { padding-bottom: 76px; }
  body:has(.lk-nav .lk-tabs button[data-tab="messages"]) #chat-fab { display: none; }
  body:has(.lk-nav .lk-tabs button[data-tab="messages"]).has-fab { padding-bottom: 0; }
  .lk-nav .lk-nav-in { padding-top: 8px; padding-bottom: 8px; }
  .lk-mode { width: 100%; justify-content: space-between; gap: 8px; }
  .wa { height: calc(100dvh - 210px); }
}
.action-list:has(.has-check) > .action:not(.has-check), ul:has(> .action.has-check) > .action:not(.has-check) { padding-inline-start: 64px; }

/* ---------- client hub: Updates, getting started, satisfaction, files, executive report, calendar ---------- */
.cbell-pop .bell-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.cbell-list { max-height: min(460px, 70vh); overflow-y: auto; }
.cbell-list li { padding: 0; }
.cbell-list a { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--text); width: 100%; }
.cbell-list a:hover { background: var(--paper); }
.cbell-list li.new a { background: var(--gold-wash); }
.cbell-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.cbell-ic svg { width: 16px; height: 16px; }
.cbell-txt { display: grid; gap: 2px; min-width: 0; } .cbell-txt b { font-weight: 600; font-size: 14px; } .cbell-txt span { overflow-wrap: anywhere; }
.cbell-empty { padding: 18px 12px; text-align: center; }
.np-row { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; } .np-row legend { font-weight: 600; padding: 0 4px; } .np-row p { margin: 0 0 6px; }
.cal-steps { padding-inline-start: 20px; display: grid; gap: 6px; }
.home-extras { display: grid; gap: 16px; margin-bottom: 16px; } .home-extras:empty { display: none; }
.gs-card { border-inline-start: 4px solid var(--gold); }
.gs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .gs-head p { margin: 4px 0 0; }
.gs-bar { height: 6px; border-radius: 3px; background: var(--paper); margin: 12px 0; overflow: hidden; } .gs-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 3px; }
.gs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.gs-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; }
.gs-steps li > div { display: grid; gap: 2px; } .gs-steps a { text-decoration: none; color: var(--ink); } .gs-steps a:hover b { text-decoration: underline; }
.gs-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--rule-strong); display: grid; place-items: center; margin-top: 1px; }
.gs-steps li.done .gs-dot { background: #1f9d55; border-color: #1f9d55; color: #fff; } .gs-dot svg { width: 14px; height: 14px; }
.gs-steps li.done b { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.csat-card h2 { margin-bottom: 6px; }
.nps-row { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.nps-opt { position: relative; }
.nps-opt input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.nps-opt span { display: grid; place-items: center; height: 40px; border: 1px solid var(--rule-strong); border-radius: 8px; font-weight: 600; background: var(--surface); }
.nps-opt:hover span { border-color: var(--gold); } .nps-opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .nps-opt input:checked + span { background: var(--fill); border-color: var(--fill); }
.nps-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.nps-ends { display: flex; justify-content: space-between; margin-top: 4px; }
.csat-done { display: flex; gap: 10px; align-items: center; margin: 0; font-weight: 600; color: var(--ok); } .csat-done svg { width: 22px; height: 22px; }
.csat-score { display: flex; align-items: baseline; gap: 8px; margin: 0; } .csat-score b { font: 700 30px var(--serif); color: var(--ink); }
.csat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
@media (max-width: 640px) { .nps-row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.files-bar { display: grid; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--rule); } .files-bar input[type=search] { width: 100%; }
.file-badge { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--info-wash); color: var(--info); font: 700 11px var(--sans); letter-spacing: .02em; }
.files-list .list-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.files-list .lr-main { flex: 1 1 260px; min-width: 0; } .files-list .lr-main b { overflow-wrap: anywhere; }
.ex-page { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(20px, 4vw, 40px); display: grid; gap: 22px; max-width: 980px; }
.ex-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--gold); padding-bottom: 16px; }
.ex-head h2 { font: 600 clamp(22px, 3vw, 30px)/1.2 var(--serif); margin: 2px 0 6px; } .ex-head p { margin: 0; }
.ex-kicker { font-size: 13px; color: #7d5f27; font-weight: 600; } :root[data-theme="dark"] .ex-kicker { color: var(--gold-light); }
.ex-logo { height: 34px; width: auto; }
.ex-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.ex-tile { background: var(--paper); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.ex-tile b { font: 700 28px/1.1 var(--serif); color: var(--ink); } .ex-tile span { font-size: 14px; color: var(--text-2); } .ex-tile small { color: var(--muted); }
.ex-sec h3 { font: 600 18px var(--serif); margin: 0 0 8px; }
.ex-delta { font-size: 12px; font-weight: 700; margin-inline-start: 6px; } .ex-delta.up { color: var(--ok); } .ex-delta.down { color: var(--danger); }
.ex-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .ex-next li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--paper); }
.ex-foot { border-top: 1px solid var(--rule); padding-top: 12px; margin: 0; }
.ex-page > * { min-width: 0; }
@media print { .ex-page { border: 0; box-shadow: none; } }

/* ---------- Epsilon admin: companies table, More menus, pipeline board, company switcher ---------- */
.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 7px 14px; font: 600 14px var(--sans); color: var(--text-2); cursor: pointer; }
.seg button + button { border-inline-start: 1px solid var(--rule-strong); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--fill); }
.tr-filters select { min-height: 36px; }
.row-more { position: relative; display: inline-block; }
.row-more > summary { list-style: none; cursor: pointer; } .row-more > summary::-webkit-details-marker { display: none; }
.row-more > summary svg { width: 18px; height: 18px; }
.row-more-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; padding: 6px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow-2); }
.row-more-menu button { display: flex; align-items: center; gap: 8px; text-align: start; border: 0; background: none; padding: 9px 10px; border-radius: 7px; font: inherit; color: var(--text); cursor: pointer; }
.row-more-menu button:hover, .row-more-menu button:focus-visible { background: var(--paper); }
.row-more-menu svg { width: 16px; height: 16px; } .danger-text { color: var(--danger) !important; }
.tr-table table { min-width: 980px; } .tr-table tr.attn th { box-shadow: inset 3px 0 0 var(--warn); }
.tr-table td, .tr-table th { vertical-align: top; }
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: inherit; white-space: nowrap; }
.th-sort:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) { .tr-table table { min-width: 0; } }
/* Pipeline board: every stage side by side in one row, scrolling sideways, like other CRMs. */
.board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; scroll-snap-type: x proximity; align-items: start; }
.board-col { scroll-snap-align: start; min-height: 180px; transition: background .15s, box-shadow .15s; }
.board-col.drop { background: var(--gold-wash); box-shadow: inset 0 0 0 2px var(--gold); }
.deal-card[draggable="true"] { cursor: grab; } .deal-card.dragging { opacity: .45; }
.board-hint { margin: 6px 2px 0; }
/* Sidebar: switch company */
.ws-pick { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid transparent; background: none; padding: 6px; border-radius: 9px; cursor: pointer; text-align: start; font: inherit; color: inherit; }
.ws-pick:hover { background: var(--surface); border-color: var(--rule); } .ws-pick strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ws-pick-ic svg { width: 14px; height: 14px; transform: rotate(90deg); color: var(--muted); }
.ws-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 50vh; overflow-y: auto; display: grid; gap: 2px; }
.ws-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.ws-list a:hover, .ws-list a:focus-visible { background: var(--paper); }

/* ---------- dark mode: the same design on dark surfaces; follows the device unless the person chooses ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d1320; --sheet: #151d2c; --ink: #e7ecf4; --ink-deep: #f3f6fb; --text: #d8dfea; --text-2: #b3bdcc; --muted: #8e99ad;
  --rule: rgba(231, 236, 244, .11); --rule-strong: rgba(231, 236, 244, .2); --line-2: rgba(231, 236, 244, .07);
  --gold: #c9a56a; --gold-light: #e0c792; --gold-wash: #2a2416; --focus: #d9b46c; --link: #93b2ff;
  --ok: #63c595; --ok-wash: #15261e; --warn: #e3aa5c; --warn-wash: #2b2213; --info: #93b2ff; --info-wash: #17213a; --danger: #f28b7f; --danger-wash: #2e1918;
  --fill: #2d5bb0; --fill-hover: #3a6bc4;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 14px 34px -12px rgba(0, 0, 0, .7); --shadow-3: 0 28px 70px -24px rgba(0, 0, 0, .8);
  --lift: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -26px rgba(0, 0, 0, .8);
}
:root[data-theme="dark"] body { background: var(--paper); color: var(--text); }
:root[data-theme="dark"] .sidebar, :root[data-theme="dark"] .topbar, :root[data-theme="dark"] .menu, :root[data-theme="dark"] .modal { background: var(--sheet); color: var(--text); }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background: #0f1726; color: var(--text); border-color: var(--rule-strong); }
:root[data-theme="dark"] .btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
:root[data-theme="dark"] .btn.ghost:hover { background: rgba(231, 236, 244, .06); }
:root[data-theme="dark"] .lk-shell { background: var(--paper); }
:root[data-theme="dark"] .lk-btn.outline { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
:root[data-theme="dark"] .lk-btn.solid, :root[data-theme="dark"] .chat-fab, :root[data-theme="dark"] .wa-send, :root[data-theme="dark"] .wa-head { background: var(--fill); }
:root[data-theme="dark"] .wa-scroll { background-color: #0b111c; background-image: radial-gradient(rgba(231, 236, 244, .06) 1px, transparent 1.4px); }
:root[data-theme="dark"] .wa-bubble { background: #1c2638; } :root[data-theme="dark"] .wa-msg.mine .wa-bubble { background: #3a3118; }
:root[data-theme="dark"] .wa-day span { background: #1c2638; color: var(--text-2); }
:root[data-theme="dark"] .wa-foot, :root[data-theme="dark"] .wa-empty { background: #121a28; }
:root[data-theme="dark"] .wa-compose textarea, :root[data-theme="dark"] .wa-chip { background: #0f1726; }
:root[data-theme="dark"] .wa-file { background: rgba(231, 236, 244, .07); color: var(--ink); }
:root[data-theme="dark"] .wa-meta { color: #9aa6b8; }
:root[data-theme="dark"] .lk-logo img, :root[data-theme="dark"] .ws-logo:not(.empty) { background: #fff; }
:root[data-theme="dark"] .act-check { background: transparent; border-color: #5d6a80; }
:root[data-theme="dark"] .stars-row label { color: #3a4558; }
:root[data-theme="dark"] .gs-bar { background: rgba(231, 236, 244, .1); }
:root[data-theme="dark"] img[src$="epsilon-engage.png"], :root[data-theme="dark"] .gate-logo { filter: brightness(0) invert(.92); }
:root[data-theme="dark"] a:hover > .round, :root[data-theme="dark"] .round:hover { background-color: var(--fill); border-color: var(--fill); }
:root[data-theme="dark"] .btn:not(.ghost):not(.danger) { background-color: var(--fill); border-color: var(--fill); color: #fff; }
:root[data-theme="dark"] .btn:not(.ghost):not(.danger):hover { background-color: var(--fill-hover); color: #fff; }
:root[data-theme="dark"] .toast { background-color: var(--fill); }
:root[data-theme="dark"] .skip { background-color: var(--fill); }
:root[data-theme="dark"] .ws-logo.empty { background-color: var(--fill); }
:root[data-theme="dark"] .nav a[aria-current="page"] { background-color: var(--fill); }
:root[data-theme="dark"] .avatar { background-color: var(--fill); }
:root[data-theme="dark"] .stage-track .st-active .dot { background-color: var(--fill); border-color: var(--fill); }
:root[data-theme="dark"] .bar > span { background-color: var(--fill); color: #fff; }
:root[data-theme="dark"] .field input, :root[data-theme="dark"] .field select, :root[data-theme="dark"] .field textarea, :root[data-theme="dark"] .filters input, :root[data-theme="dark"] .filters select, :root[data-theme="dark"] .eng-select select { background-color: var(--sheet); }
:root[data-theme="dark"] .certificate { background-color: var(--sheet); }
:root[data-theme="dark"] .stage-path li.current { background-color: var(--fill); }
:root[data-theme="dark"] .qline-n { background-color: var(--fill); }
:root[data-theme="dark"] .chip:has(input:checked) { background-color: var(--fill); border-color: var(--fill); }
:root[data-theme="dark"] .as-q { background-color: var(--fill); }
:root[data-theme="dark"] .slot input:checked + span { background-color: var(--fill); border-color: var(--fill); }
:root[data-theme="dark"] .viewas-banner { background-color: var(--fill); }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background-color: var(--fill); border-color: var(--fill); }
:root[data-theme="dark"] .tr-steps span.done { background-color: var(--fill); color: #fff; }
:root[data-theme="dark"] .palette li[aria-selected="true"] { background-color: var(--fill); }
:root[data-theme="dark"] .page-intro { background-color: var(--fill); color: #fff; }
:root[data-theme="dark"] .offer-cta { background-color: var(--fill); }
:root[data-theme="dark"] .js-current .js-dot { background-color: var(--fill); border-color: var(--fill); }
:root[data-theme="dark"] .jp-pips i.current { background-color: var(--fill); color: #fff; }
:root[data-theme="dark"] .co-mark { background-color: var(--sheet); }
:root[data-theme="dark"] .color-pick input[type=color] { background-color: var(--sheet); }
:root[data-theme="dark"] .link-nav .link-tabs button[aria-current="page"] { background-color: var(--fill); }
:root[data-theme="dark"] .cal-day.has.on { background-color: var(--fill); }
:root[data-theme="dark"] button.slot.on { background-color: var(--fill); border-color: var(--fill); }
:root[data-theme="dark"] .chip-opt:has(input:checked) { background-color: var(--fill); border-color: var(--fill); }
:root[data-theme="dark"] body { background-color: var(--sheet); }
:root[data-theme="dark"] .lk-programs button[aria-pressed="true"] { background-color: var(--fill); border-color: var(--fill); }
:root[data-theme="dark"] .lk-steps li.current .lk-step-dot { background-color: var(--fill); }
:root[data-theme="dark"] .lk-avatar { background-color: var(--fill); }
:root[data-theme="dark"] .seg label:has(input:checked) { background-color: var(--fill); }
:root[data-theme="dark"] .guide-tabs a[aria-current="page"] { background-color: var(--fill); border-color: var(--fill); }
:root[data-theme="dark"] .ask-launch { background-color: var(--fill); }
:root[data-theme="dark"] .ask-head { background-color: var(--fill); }
:root[data-theme="dark"] .ask-me { background-color: var(--fill); }
:root[data-theme="dark"] .sec-steps li.on { background-color: var(--fill); border-color: var(--fill); }
:root[data-theme="dark"] .wa-bubble { background-color: var(--sheet); }
:root[data-theme="dark"] .wa-compose textarea { background-color: var(--sheet); }
:root[data-theme="dark"] .wa-chip { background-color: var(--sheet); }
.tr-filters select { width: auto; flex: 0 0 auto; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tr-table td[data-label="Next step"] { min-width: 220px; max-width: 320px; }

:root[data-theme="dark"] .ctx-bar, :root[data-theme="dark"] .table th, :root[data-theme="dark"] .receipt, :root[data-theme="dark"] .demo-banner { background: var(--sheet); color: var(--text); }
:root[data-theme="dark"] .blockers, :root[data-theme="dark"] .action.blocked, :root[data-theme="dark"] .stage-track .st-blocked a { background: var(--danger-wash); }
:root[data-theme="dark"] .choice:has(input:checked) { background: var(--info-wash); }
:root[data-theme="dark"] .chat-thread .ct-snippet mark, :root[data-theme="dark"] .chat-results-n mark { background: #5a4a1c; color: #fff; }

/* ---------- leads, health, tags, bulk actions, revenue, workload ---------- */
.health { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.health b { font-weight: 800; }
.health.good { background: var(--ok-wash); color: var(--ok); } .health.watch { background: var(--warn-wash); color: var(--warn); } .health.risk { background: var(--danger-wash); color: var(--danger); }
.score-pill { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.score-pill b { font-size: 15px; } .score-pill.hot { background: var(--danger-wash); color: var(--danger); } .score-pill.warm { background: var(--warn-wash); color: var(--warn); } .score-pill.cold { background: var(--paper); color: var(--muted); }
.tag { display: inline-block; margin: 2px 4px 0 0; padding: 1px 8px; border-radius: 6px; background: var(--info-wash); color: var(--info); font-size: 12px; font-weight: 600; }
.tr-tags, .tr-views { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.chip.sm { padding: 4px 10px; font-size: 13px; }
.bulk-bar { position: sticky; top: 8px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow-2); }
.bulk-bar .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: transparent; } .bulk-bar .linklike { color: #fff; }
.bulk-bar select { min-height: 34px; } :root[data-theme="dark"] .bulk-bar { background: var(--fill); }
.tr-table th.sel, .tr-table td.sel { width: 38px; } .tr-table tr.picked td, .tr-table tr.picked th { background: var(--gold-wash); }
.tr-table input[type=checkbox] { width: 18px; height: 18px; }
select.unassigned { border-color: var(--warn); color: var(--warn); font-weight: 600; }
.rv-tiles { margin-bottom: 16px; }
.rv-bars, .rv-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv-bars li, .rv-funnel li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 120px; gap: 10px; align-items: center; font-size: 14px; }
.rv-l, .rv-v { display: grid; } .rv-l small, .rv-v small { color: var(--muted); font-size: 12px; } .rv-v { text-align: end; font-weight: 600; }
.rv-bar { position: relative; height: 14px; border-radius: 7px; background: var(--paper); overflow: hidden; }
.rv-bar i, .rv-bar b { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 7px; } .rv-bar i { background: var(--gold-light); opacity: .55; } .rv-bar b { background: var(--ink); }
:root[data-theme="dark"] .rv-bar b { background: var(--fill); }
@media (max-width: 640px) { .rv-bars li, .rv-funnel li { grid-template-columns: 1fr; } .rv-v { text-align: start; } }
.wl-n { display: block; font-weight: 700; } .wl-bar { display: block; height: 4px; border-radius: 2px; background: var(--paper); margin-top: 4px; overflow: hidden; } .wl-bar i { display: block; height: 100%; background: var(--gold); }
.acct-card .acct-tags { margin: 4px 0; }
.mw-item.overdue-row { box-shadow: inset 3px 0 0 var(--danger); }
.bulk-bar select { width: auto; flex: 0 0 auto; color: var(--text); background: var(--surface); border-radius: 8px; }
.bulk-bar b { margin-inline-end: 4px; }
[data-assign] { width: auto; min-width: 160px; }
.cert-check { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.cert-qr { width: 96px; height: 96px; background: #fff; border-radius: 6px; flex: none; }
.cert-check .cert-verify { margin: 0; text-align: start; max-width: 420px; }

/* signatures, two-step sign-in, team calendar */
.sig-field .seg { margin-bottom: 8px; }
.sig-pad { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 600 / 170; background: #fff; border: 1px dashed var(--rule-strong); border-radius: 10px; touch-action: none; cursor: crosshair; }
.sig-typed { font: italic 600 30px/1.3 "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive; color: #0b2144; margin: 8px 0 0; }
.sig-cert { max-width: none; }
.sig-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-top: 1px solid var(--rule); }
.sig-mark { display: grid; place-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 10px; min-height: 90px; padding: 6px; }
.sig-mark img { max-width: 100%; height: auto; }
.hash { font-size: 11.5px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .sig-row { grid-template-columns: 1fr; } }
.tfa-steps { padding-inline-start: 20px; display: grid; gap: 12px; }
.tfa-qr { margin: 10px 0 4px; } .tfa-qr img { background: #fff; padding: 6px; border-radius: 8px; border: 1px solid var(--rule); }
.tfa-codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 12px 0; } .tfa-codes code { font-size: 15px; }
.cal-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; } .cal-bar select { width: auto; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-dayc { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 8px; min-height: 140px; display: grid; align-content: start; gap: 6px; }
.cal-dayc.today { box-shadow: inset 0 0 0 2px var(--gold); } .cal-dayc.off { background: var(--paper); }
.cal-dayc h3 { font-size: 13px; margin: 0 0 2px; color: var(--text-2); }
.cal-ev { display: grid; gap: 1px; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 13px; border-inline-start: 3px solid var(--info); background: var(--info-wash); }
.cal-ev.session { border-color: var(--ok); background: var(--ok-wash); } .cal-ev.followup { border-color: var(--warn); background: var(--warn-wash); }
.cal-ev b { font-weight: 600; } .cal-ev small { color: var(--muted); }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-month .cal-dayc { min-height: 96px; }
.cal-legend { display: flex; gap: 14px; font-size: 13px; } .cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; background: var(--info); }
.cal-legend .s::before { background: var(--ok); } .cal-legend .f::before { background: var(--warn); }
@media (max-width: 900px) { .cal-week, .cal-month { grid-template-columns: 1fr; } .cal-dayc { min-height: 0; } .cal-dayc.empty-day { display: none; } }
.wait-row { box-shadow: inset 3px 0 0 var(--danger); }
.tr-attn a, .tr-table td a { display: inline-block; min-height: 24px; padding-block: 2px; }
@media (max-width: 640px) { .row-more-menu { position: static; margin-top: 6px; min-width: 0; box-shadow: none; } .row-more { display: block; } }
.tr-table th a { display: inline-block; min-height: 24px; padding-block: 2px; }
@media (max-width: 900px) { .row-more-menu { position: static; margin-top: 6px; min-width: 0; box-shadow: none; } .row-more { display: block; } }
.tr-head h2 a { display: inline-block; min-height: 24px; padding-block: 1px; }
@media (max-width: 900px) {
  .row-more-menu { position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); top: auto; z-index: 90; margin: 0; box-shadow: var(--shadow-3); padding: 8px; }
  .row-more-menu button { min-height: 44px; }
}

/* ---------- comfort: loading, help, pins, drafts, shortcuts ---------- */
body.is-loading::before { content: ""; position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200; background: linear-gradient(90deg, transparent, var(--gold), transparent); background-size: 50% 100%; animation: loadbar 1s linear infinite; }
body.is-loading #view > .view-host { opacity: .55; transition: opacity .2s .1s; }
@keyframes loadbar { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.skeleton { display: grid; gap: 14px; padding: 4px 0; }
.sk { border-radius: 10px; background: linear-gradient(90deg, var(--paper) 25%, color-mix(in srgb, var(--paper) 60%, var(--rule-strong)) 50%, var(--paper) 75%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.sk-h1 { height: 34px; width: min(320px, 70%); } .sk-p { height: 16px; width: min(560px, 90%); } .sk-wide { height: 160px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; } .sk-card { height: 110px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk, body.is-loading::before { animation: none; } }
.page-help { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; margin: 0 0 16px; border-radius: 12px; background: var(--info-wash); color: var(--text); border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); }
.page-help p { margin: 0; flex: 1; font-size: 14.5px; }
.page-help-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--info); color: #fff; font-weight: 800; }
.help-btn { font-weight: 800; font-size: 16px; }
.since-strip { padding: 12px 18px; margin-bottom: 16px; border-inline-start: 4px solid var(--gold); }
.since-strip summary { cursor: pointer; } .since-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.pin-btn { color: var(--muted); font-size: 18px; line-height: 1; } .pin-btn.on { color: #d49b1d; }
.ws-switch .pin-btn { position: absolute; inset-inline-end: 8px; top: 6px; } .ws-switch { position: relative; }
.nav-pins .pin-star { color: #d49b1d; width: 18px; text-align: center; }
.draft-restored { box-shadow: 0 0 0 2px var(--gold-light); }
.kbd-table kbd { display: inline-block; min-width: 24px; padding: 2px 7px; border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); font: 600 13px var(--sans); text-align: center; }
.row-more:not([open]) .row-more-menu { display: none; }
.or-line { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--muted); font-size: 13px; } .or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.passkey-btn { gap: 8px; } .center { text-align: center; }
.pk-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; } .pk-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; }
.sched-days { display: grid; gap: 12px; max-height: 340px; overflow-y: auto; } .sched-day b { display: block; margin-bottom: 6px; }
.meet-agreed { font-size: 14px; }
.home-side .btn-row a.small, .home-side a.small { display: inline-block; min-height: 24px; padding-block: 3px; }

/* Live date and time in the top bar */
.top-clock { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper, #f6f7fa); direction: ltr; unicode-bidi: isolate; }
:root[data-theme="dark"] .top-clock { background: transparent; color: var(--text); }
@media (max-width: 900px) { .top-clock { font-size: 12px; padding: 3px 8px; } }
@media (max-width: 560px) { .topbar { flex-wrap: wrap; row-gap: 4px; } .top-clock { order: 99; flex-basis: 100%; text-align: center; border: 0; background: none; padding: 0; font-size: 12px; color: var(--muted); } }
/* What each journey phase is for */
.js-for { font-size: 12.5px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 720px) { .js-for { -webkit-line-clamp: unset; display: block; } }
.jn-for { font-size: 14px; margin: 0 0 6px; color: var(--text); }
.lk-step-for { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.35; color: var(--muted); margin-top: 2px; }
.lk-next-for { color: var(--muted); font-size: 14px; margin: 2px 0 6px; }
.jp-for { display: block; font-weight: 400; margin-top: 2px; max-width: 52ch; }
.jp-main textarea { width: 100%; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); padding: 6px 10px; font: .9rem/1.4 var(--sans); color: var(--text); background: var(--surface); resize: vertical; }
/* Room for the clock on mid-size screens: the shortcut hint and the name next to the avatar go first */
@media (max-width: 1320px) { .search-btn kbd { display: none; } }
@media (max-width: 1180px) { .user-meta, .user-btn > svg:last-child { display: none; } }
/* Add to my calendar */
.cal-add { position: relative; display: inline-block; }
.cal-add > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cal-add > summary::-webkit-details-marker { display: none; }
.cal-add-menu { position: absolute; z-index: 30; inset-inline-start: 0; top: calc(100% + 6px); min-width: 240px; display: grid; gap: 2px; padding: 8px; background: var(--surface, #fff); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 12px 30px rgba(11,33,68,.14); }
.cal-add-menu a, .cal-add-menu .linklike { display: block; padding: 8px 10px; border-radius: 6px; text-align: start; min-height: 24px; }
.cal-add-menu a:hover, .cal-add-menu .linklike:hover { background: var(--paper, #f6f7fa); }
.cal-add-menu p { margin: 6px 10px 2px; }
:root[data-theme="dark"] .cal-add-menu { background: var(--sheet); }
/* Phase settings on the journey */
.js-set { color: var(--text-2, var(--muted)); }
.js-target { color: var(--muted); } .js-target.late { color: var(--danger, #a3261c); font-weight: 600; }
.js-tools { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cal-add-menu .linklike { text-decoration: none; color: inherit; font: inherit; width: 100%; } .cal-add-menu a { text-decoration: none; }

/* Engage's own date and time pickers (public/app/pickers.js) */
.pick { position: relative; display: block; min-width: 0; }
.pick > input { width: 100%; padding-inline-end: 40px !important; font-variant-numeric: tabular-nums; }
.pick-btn { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.pick-btn:hover, .pick-btn:focus-visible { background: var(--paper, #f3f5f9); color: var(--ink); }
.pick-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pick > input:disabled + .pick-btn { opacity: .4; pointer-events: none; }
.pick > input[aria-invalid="true"] { border-color: var(--danger, #a3261c) !important; }
.pick-pop { position: fixed; z-index: 1000; display: flex; gap: 10px; padding: 10px; background: var(--surface, #fff); color: var(--text); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 16px 40px rgba(11, 33, 68, .18); max-width: calc(100vw - 12px); flex-wrap: wrap; }
.pk-cal { width: 266px; }
.pk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pk-month { font-size: 14px; color: var(--ink); }
.pk-nav { width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: 8px; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink); }
.pk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pk-wd { font-size: 11px; color: var(--muted); text-align: center; padding: 4px 0; }
.pk-day { height: 34px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.pk-day:hover:not(:disabled), .pk-day:focus-visible { background: var(--paper, #eef1f6); outline: 2px solid var(--gold, #b8904f); outline-offset: -2px; }
.pk-day.other { color: var(--muted); opacity: .6; }
.pk-day.today { box-shadow: inset 0 0 0 1.5px var(--gold, #b8904f); }
.pk-day.on { background: var(--ink, #0b2144); color: #fff; }
.pk-day:disabled { opacity: .3; cursor: not-allowed; }
.pk-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13px; }
.pk-sel { color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-link { border: 0; background: transparent; color: var(--link, #24489a); cursor: pointer; font: inherit; padding: 6px 4px; min-height: 24px; }
.pk-times { width: 120px; max-height: 300px; overflow-y: auto; display: grid; gap: 2px; align-content: start; }
.pick-pop-time .pk-times { width: 150px; }
.pk-time { border: 0; border-radius: 6px; background: transparent; padding: 7px 10px; text-align: start; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--text); font-variant-numeric: tabular-nums; min-height: 30px; }
.pk-time:hover:not(:disabled), .pk-time:focus-visible { background: var(--paper, #eef1f6); outline: 2px solid var(--gold, #b8904f); outline-offset: -2px; }
.pk-time.on { background: var(--ink, #0b2144); color: #fff; }
.pk-time:disabled { opacity: .3; }
.pk-done { flex-basis: 100%; display: flex; justify-content: flex-end; }
:root[data-theme="dark"] .pick-pop { background: var(--sheet); }
:root[data-theme="dark"] .pk-day.on, :root[data-theme="dark"] .pk-time.on { background: var(--gold, #b8904f); color: #0b2144; }
@media (max-width: 420px) { .pk-cal { width: calc(100vw - 34px); } .pick-pop-datetime-local .pk-times { width: 100%; max-height: 180px; grid-template-columns: repeat(3, 1fr); } }
.hours-day .pick { width: 130px; } @media (max-width: 520px) { .hours-day .pick { width: 104px; } }
/* Long words and big figures never leave their box */
.js-for, .lk-step-title, .js-body b { overflow-wrap: anywhere; hyphens: auto; }
.lk-step-for { overflow-wrap: normal; hyphens: manual; -webkit-line-clamp: 2; }
.tr-total { min-width: 0; } .tr-total b { overflow-wrap: anywhere; font-size: clamp(19px, 2.1vw, 26px); }
/* The chat button never sits on a page's own buttons: pages leave room for it, and it rises above save bars */
body:has(.chat-fab:not([hidden])) .content { padding-bottom: 96px; }
body:has(.savebar) .chat-fab { bottom: 88px; }
@media (max-width: 700px) { body:has(.savebar) .chat-fab { bottom: 96px; } }
/* Arabic: a sentence written in English (or a name) keeps its own reading order and punctuation */
/* (zero specificity, so any deliberate alignment such as centred or numeric columns still wins) */
:where([dir="rtl"]) :where(p, li, dd, dt, td, th, h1, h2, h3, h4, label, legend, figcaption, .hint, .meta > span, .small) { unicode-bidi: plaintext; text-align: match-parent; }
/* Getting started: progress, and the next step stands out */
.setup-bar { height: 6px; margin: 0 20px 6px; border-radius: 3px; background: var(--paper, #eef1f6); overflow: hidden; }
.setup-bar span { display: block; height: 100%; min-width: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--gold, #b8904f), #d8bd8a); transition: width .4s ease; }
.setup-steps li.next { margin: 4px -12px; padding: 14px 12px; border-top-color: transparent; border-radius: 12px; background: color-mix(in srgb, var(--gold, #b8904f) 9%, transparent); box-shadow: inset 3px 0 0 var(--gold, #b8904f); }
[dir="rtl"] .setup-steps li.next { box-shadow: inset -3px 0 0 var(--gold, #b8904f); }
.setup-steps li.next + li { border-top-color: transparent; }
.setup-steps li.next .setup-dot { border-color: var(--gold, #b8904f); color: var(--ink); }
.setup-steps li.next .setup-dot:empty::before { color: var(--ink); }
.setup-done { color: #1f7a45 !important; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .setup-bar span { transition: none; } }
.setup-bar.flush { margin: 14px 0 0; }
.ss-list li.next { border-top-color: transparent; }
.setup-card .setup-bar { margin-top: 14px; }
.tr-total { grid-template-columns: minmax(0, 1fr); } .tr-total b { font-size: clamp(19px, 1.9vw, 24px); }
/* Phones: a table that isn't laid out as cards keeps readable columns and scrolls sideways in its own frame */
@media (max-width: 700px) {
  .table-wrap > table.table:not(.stack-on-phone) { min-width: 620px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
}

/* Context bar: the next action stays on one line (full text on hover); blockers only appear when there are some. */
.ctx-next-line { display: flex; align-items: baseline; gap: 0 6px; min-width: 0; }
.ctx-next-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ctx-next-meta { flex: none; white-space: nowrap; }
.ctx-next-meta:empty { display: none; }
@media (max-width: 640px) { .ctx-bar.open .ctx-next-line { flex-wrap: wrap; } .ctx-bar.open .ctx-next-title { white-space: normal; } }

/* Pipeline board: an empty stage is a narrow labelled strip; it still takes a dropped deal. */
.board-col.empty { padding: 12px 6px; min-width: 0; justify-items: center; background: transparent; border-style: dashed; }
.board-col.empty h2 { writing-mode: vertical-rl; transform: rotate(180deg); flex-direction: row-reverse; justify-content: flex-end; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
:root[dir="rtl"] .board-col.empty h2 { transform: none; }
.board-col.empty.drop { background: var(--gold-wash); }
.no-value a { font-weight: 600; }
@media (max-width: 760px) { .board { grid-template-columns: none !important; grid-auto-columns: minmax(240px, 1fr); } .board-col.empty { display: none; } }

/* Deal sections: five groups in the order a deal moves, every section still one click away. */
.deal-tabs { margin-bottom: 0; }
.deal-tabs .tab-ai, .subtabs .tab-ai { color: var(--info); }
/* A section's other views, just under the five deal sections. */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.subtabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.subtabs a:hover { color: var(--ink); border-color: var(--rule-strong); }
.subtabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme="dark"] .subtabs a[aria-current="page"] { background: var(--fill); border-color: var(--fill); }
.stage-line { margin: 14px 0 4px; display: grid; gap: 6px; }
@media (max-width: 700px) { .deal-tabs, .subtabs { flex-wrap: nowrap; overflow-x: auto; } .subtabs a { white-space: nowrap; } }
.deal-tabs .tab-group-links a { padding-inline: 10px; }
.deal-tabs .tab-group-k { padding-inline: 10px; }
.deal-tabs .tab-group + .tab-group { padding-inline-start: 2px; }

/* Long email addresses and links break inside narrow cards instead of running past the edge. */
main a[href^="mailto:"], main a[href^="tel:"], .lk-shell a[href^="mailto:"] { overflow-wrap: anywhere; }
/* Summary tiles: a long amount ("EGP 824,196") fits a narrow tile; if it still can't, it wraps instead of spilling. */
.tr-total b { font-size: clamp(18px, 1.6vw, 24px); white-space: normal; }

/* Proposal documents: each by name, with View / Download / Remove; the in-app PDF reader. */
.proposal-files li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.proposal-files li:last-child { border-bottom: 0; }
.pf-name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.pdf-view { max-height: 72vh; overflow: auto; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 12px; }
.pdf-pages { display: grid; gap: 12px; justify-items: center; }
.pdf-pages canvas { max-width: 100%; height: auto; background: #fff; box-shadow: 0 1px 4px rgba(11, 33, 68, .12); }
.pdf-view.view-only { user-select: none; -webkit-user-select: none; }
@media print { .pdf-view.view-only { display: none !important; } }

/* A choice with its explanation (See as client). */
.choice-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.choice-row:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.choice-row input { margin-top: 3px; accent-color: var(--ink); }
.choice-row b { display: block; }
.choice-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.see-person { margin: 0 0 12px 30px; }
[dir="rtl"] .see-person { margin: 0 30px 12px 0; }

/* What approving a proposal with the company link means, read before confirming. */
.lk-statement { margin: 4px 0 10px; padding: 12px 14px; border-inline-start: 3px solid var(--gold); background: var(--paper); border-radius: 0 8px 8px 0; font-size: 14.5px; line-height: 1.5; }
[dir="rtl"] .lk-statement { border-radius: 8px 0 0 8px; }
/* The link's section tabs never slide under "Viewing with your company link": the tabs shrink (and scroll), the
   label keeps its place, and on narrower screens only its lock icon stays (the words remain for screen readers). */
.lk-nav-in .lk-tabs { flex: 1 1 auto; min-width: 0; }
.lk-nav-in .lk-mode { flex-shrink: 0; }
@media (max-width: 1520px) {
  .lk-mode-label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* The Epsilon contact's ways to reach them, each once. */
.lk-ways { list-style: none; margin: 16px 0 6px; padding: 0; display: grid; gap: 10px; }
.lk-ways li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.lk-ways svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.lk-ways a { color: var(--ink); overflow-wrap: anywhere; }
.lk-ways .lk-wa { font-size: 13px; font-weight: 600; padding: 2px 10px; border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; }
/* Today: the setup checklist as one thin line once half done. */
.setup-thin { margin-bottom: 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.setup-thin > summary { display: flex; align-items: center; gap: 12px; padding: 8px 12px; cursor: pointer; list-style: none; }
.setup-thin > summary::-webkit-details-marker { display: none; }
.setup-thin > summary .small { flex: 1; min-width: 0; }
.setup-thin-bar { width: 96px; height: 6px; border-radius: 99px; background: var(--paper); overflow: hidden; flex-shrink: 0; }
.setup-thin-bar > span { display: block; height: 100%; background: var(--ok, #1f9d55); }
.setup-thin[open] > summary { border-bottom: 1px solid var(--rule); }
.setup-thin .setup-steps { padding: 8px 12px 12px; margin: 0; }
@media (max-width: 600px) { .setup-thin-bar { width: 56px; } }
/* Company home (Epsilon): the cockpit. */
.next-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; margin-bottom: 16px; border-inline-start: 4px solid var(--gold); }
.next-action.theirs { border-inline-start-color: var(--info, #2563eb); }
.next-action.calm { border-inline-start-color: var(--rule-strong); }
.next-action .na-copy { min-width: 0; }
.next-action .eyebrow-h { margin: 0 0 2px; }
.next-action .na-title { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.next-action p.small { margin: 0; }
.next-action { flex-wrap: wrap; }
.next-action .na-facts { flex: 1 0 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 16px; margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); }
.next-action .na-facts div { min-width: 0; }
.next-action .na-facts dt { font-size: 12px; color: var(--muted); }
.next-action .na-facts dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 900px) { .next-action .na-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .next-action { flex-direction: column; align-items: stretch; } .next-action .na-facts { flex: 0 0 auto; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-grid.cockpit .home-main > .journey { margin-top: 0; }
.fold-card { padding: 0; }
.fold-card > summary { padding: 12px 16px; cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.fold-card[open] > summary { border-bottom: 1px solid var(--rule); }
.fold-card > .card { box-shadow: none; border: 0; margin: 0; }
/* The journey, compact: Epsilon's phase actions sit behind a small "⋯". */
.journey-steps .js-more { margin-top: 4px; }
.journey-steps .js-more > summary.iconbtn { width: 28px; height: 28px; min-height: 0; display: inline-grid; place-items: center; border-radius: 7px; color: var(--muted); }
.journey-steps .js-more > summary.iconbtn:hover { color: var(--ink); background: var(--paper); }
.journey-steps .js-more .row-more-menu { inset-inline-end: auto; inset-inline-start: 0; }
@media (hover: hover) {
  .journey-steps li:not(.js-current) .js-more { opacity: 0; transition: opacity .15s; }
  .journey-steps li:hover .js-more, .journey-steps .js-more:focus-within, .journey-steps .js-more[open] { opacity: 1; }
}
/* Conversations: messages and emails in one list. */
.conv-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.conv-row > a { display: flex; gap: 12px; align-items: flex-start; }
.conv-row .lr-main { flex: 1; min-width: 0; }
.conv-row .lr-side { display: grid; justify-items: end; gap: 4px; flex-shrink: 0; }
.conv-ch { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--paper); color: var(--text-2); flex-shrink: 0; }
.conv-ch svg { width: 17px; height: 17px; }
.conv-ch.messages { color: var(--ok, #1f9d55); }
.conv-ch.email { color: var(--info, #2563eb); }
.conv-row.unread b { color: var(--ink); }
.conv-row.closed { opacity: .7; }
.conv-filters select { width: auto; min-width: 0; max-width: 240px; flex: 0 0 auto; }
/* A wide journey scrolls inside its card instead of widening the column. */
.home-main > *, .home-side > * { min-width: 0; }
.setup-thin-more { white-space: nowrap; }
.setup-thin[open] .setup-thin-more { display: none; }
.journey > *, .journey-program-block, .journey-program-block > * { min-width: 0; max-width: 100%; }
.journey { grid-template-columns: minmax(0, 1fr); }
/* A long settings page: its sections, one click away. */
.jump-nav { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 10px; margin-bottom: 8px; background: var(--bg, var(--paper)); }
.jump-nav a { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.jump-nav a:hover { color: var(--ink); border-color: var(--rule-strong); }
#programs, #access { scroll-margin-top: 64px; } [id="journey-phases"], #client-page, #email-routes, #client-contacts, #company-hours, #profile, #weekly-summary, #company-login { scroll-margin-top: 64px; }
.creds-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; align-items: center; margin: 12px 0; }
.creds-list dt { color: var(--muted); font-size: 13px; } .creds-list dd { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.creds-list code { font-size: 15px; padding: 4px 8px; border-radius: 6px; background: var(--paper); overflow-wrap: anywhere; }
/* Journey, phase by phase: one vertical line through every phase, done ones ticked, the current one open. */
.phases { padding: 22px 24px; }
.ph-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ph-top h2 { margin: 0 0 2px; }
.ph-meter { width: 180px; height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.ph-meter > span { display: block; height: 100%; background: var(--gold); }
.ph-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ph { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.ph:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 17px; top: 36px; bottom: 0; width: 2px; background: var(--rule); }
.ph.ph-done:not(:last-child)::before { background: var(--gold); }
.ph-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 2px solid var(--rule-strong); background: var(--surface); color: var(--text-2); }
.ph-done .ph-dot { background: var(--gold-wash, #f6eedc); border-color: var(--gold); color: var(--ink); }
.ph-done .ph-dot svg { width: 16px; height: 16px; }
.ph-current .ph-dot { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 4px var(--paper); }
.ph-body { min-width: 0; padding-top: 4px; }
.ph-current .ph-body { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; margin-top: -6px; }
.ph-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ph-head h3 { margin: 0; font-size: 16px; }
.ph-upcoming .ph-head h3 { color: var(--text-2); font-weight: 600; }
.ph-state { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.ph-state.done { color: var(--ok, #1f7a4d); background: var(--ok-wash, #e6f4ec); }
.ph-state.now { color: #fff; background: var(--ink); }
.ph-state.next { color: var(--ink); background: var(--gold-wash, #f6eedc); }
.ph-state.later { color: var(--muted); background: var(--paper); }
.ph-for { margin: 4px 0 2px; color: var(--text-2); font-size: 14.5px; }
.ph-now { margin: 8px 0 4px; }
.ph-body p { margin-block: 3px; }
.ph-actions:empty { display: none; }
.ph-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.ph-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); } .ph-lock svg { width: 14px; height: 14px; }
:root[data-theme="dark"] .ph-current .ph-dot { background: var(--fill); border-color: var(--fill); }
.lk-road-all { margin: 12px 0 0; }
@media (max-width: 600px) { .phases { padding: 16px; } .ph-meter { width: 100%; } }
/* An area's reference pages, grouped under one tab. */
.area-more { position: relative; display: inline-flex; }
.area-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 11px 14px; color: var(--text-2); font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.area-more > summary::-webkit-details-marker { display: none; }
.area-more > summary:hover { color: var(--ink); background: var(--paper); }
.area-more > summary[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.area-more-ic { width: 14px; height: 14px; }
.area-more .row-more-menu { top: calc(100% + 2px); inset-inline-end: 0; inset-inline-start: auto; max-width: calc(100vw - 24px); }
.area-more .row-more-menu a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--text); text-decoration: none; border: 0; font-weight: 500; }
.area-more .row-more-menu a:hover, .area-more .row-more-menu a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.area-tabs .tab-phone { display: none; }
@media (min-width: 761px) { .area-tabs { overflow: visible; } }
@media (max-width: 760px) { .area-tabs .area-more { display: none; } .area-tabs .tab-phone { display: inline-block; } }
/* The phase line at the top of the dark "What to do now" box, readable. */
.journey-now .jn-for { margin: 0 0 4px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.journey-now .jn-for b { color: #fff; }
.js-for { hyphens: manual; }
/* A proposal's PDF: the download, clear and first. */
.lk-doc-pdf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 12px; }
.lk-download { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; padding: 10px 18px; }
.lk-download svg, .page-head .btn svg { width: 18px; height: 18px; }
.view-only-toggle { margin: 4px 0 8px; } .view-only-toggle span { display: block; }
.deal-novalue { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ns-review { margin: 6px 0 4px; }
/* The company link: what's waiting on whom, what's new, and every shared document. */
.lk-waits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 0; }
@media (max-width: 760px) { .lk-waits { grid-template-columns: 1fr; } }
.lk-wait h2 { font-size: 17px; margin: 0 0 8px; }
.lk-wait-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lk-wait-list li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 9px; background: var(--paper); font-size: 14.5px; }
.lk-wait-list li small { color: var(--muted); font-size: 12.5px; }
.lk-wait-list li.late small { color: var(--danger); }
.lk-wait-more, .lk-wait-none { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.lk-new { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--gold-wash, #f6eedc); border: 1px solid var(--gold); }
.lk-new-h { margin: 0 0 6px; } .lk-new-h span { color: var(--muted); font-size: 13px; }
.lk-new ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lk-new li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; } .lk-new time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.lk-doc-list { list-style: none; margin: 12px 0 0; padding: 0; }
.lk-doc-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.lk-doc-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--paper); display: grid; place-items: center; color: var(--ink); flex-shrink: 0; } .lk-doc-ic svg { width: 18px; height: 18px; }
.lk-doc-meta { flex: 1; min-width: 200px; display: grid; gap: 2px; } .lk-doc-meta small { color: var(--muted); font-size: 13px; }
.lk-doc-list .btn svg { width: 16px; height: 16px; }
/* Company settings, step by step: one step at a time, the client's page previewed beside it. */
.cs-steps, .cs-stepbar, .cs-preview { display: none; }
.cs-wrap:not(.guided) #setup-check { display: none; }
.cs-wrap.guided { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 20px; align-items: start; }
.cs-wrap.guided .cs-main > :not([data-keep]):not(.cs-active) { display: none !important; }
.cs-wrap.guided .cs-steps { display: block; margin: 0 0 14px; }
.cs-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cs-steps button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--text-2); font: 600 13.5px var(--sans); cursor: pointer; }
.cs-steps button span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-size: 12px; }
.cs-steps button[aria-current="step"] { background: var(--ink); border-color: var(--ink); color: #fff; } .cs-steps button[aria-current="step"] span { background: var(--gold); color: var(--ink); }
.cs-wrap.guided .cs-stepbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-top: 8px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); position: sticky; bottom: 12px; z-index: 4; }
.cs-wrap.guided .cs-preview { display: block; position: sticky; top: 12px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); padding: 12px; max-height: calc(100vh - 40px); overflow: auto; }
.cs-preview-head { display: grid; gap: 2px; margin-bottom: 10px; }
.cs-mini { zoom: .5; pointer-events: none; user-select: none; }
.cs-mini .lk-shell { padding: 0; }
.cs-setups { margin: 6px 0 10px; }
.cs-check { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.cs-check li { padding: 8px 12px; border-radius: 9px; background: var(--paper); border-inline-start: 3px solid var(--rule-strong); }
.cs-check li.ok { border-inline-start-color: var(--ok, #1f9d55); }
@media (max-width: 1150px) { .cs-wrap.guided { grid-template-columns: 1fr; } .cs-wrap.guided .cs-preview { position: static; max-height: none; } }
.stage-help { margin: -6px 0 12px; } .stage-help summary { cursor: pointer; color: var(--text-2); } .stage-help ul { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.ph-ev, .pb-ev { font-size: 11.5px; font-weight: 600; }

/* Start delivery: the four handover steps, done ones ticked, the next one marked. */
.handover-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: hs; }
.handover-steps li { counter-increment: hs; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.handover-steps li b::before { content: counter(hs) ". "; color: var(--muted); }
.handover-steps li.done { border-color: var(--ok); }
.handover-steps li.done b::before { content: "✓ "; color: var(--ok); }
.handover-steps li.current { border-color: var(--gold); border-width: 2px; }
@media (max-width: 760px) { .handover-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Reconciliation and other rule checks: a tick or a mark, the rule, and what's wrong when it isn't met. */
ul.checks { list-style: none; margin: 0; display: grid; gap: 8px; }
ul.checks li { display: block; padding-inline-start: 24px; position: relative; }
ul.checks li > span[aria-hidden] { position: absolute; inset-inline-start: 0; top: 0; font-weight: 700; }
ul.checks li.ok > span[aria-hidden] { color: var(--ok); }
ul.checks li.warn > span[aria-hidden] { color: var(--warn); }
#payment-plan input, #payment-plan select { min-width: 0; }
.modal .table input, .modal .table select { width: 100%; min-width: 72px; }

/* My learning by module: each module with its progress, outcomes and sessions. */
ol.modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
ol.modules > li.module { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; min-width: 0; }
ol.modules > li.module.done { border-color: var(--ok); }
.module-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
ol.modules ol.plan { margin-top: 6px; }

/* Discovery form: one fieldset per part, side by side on wide screens. */
.dform { display: grid; gap: 12px; }
.dform-group { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px 12px; min-width: 0; }
.dform-group legend { font-weight: 600; padding: 0 4px; }

/* Long status badges inside table cells wrap on narrow screens instead of sticking out of the cell. */
@media (max-width: 760px) { td .badge, th .badge { white-space: normal; text-align: start; } }

/* Add company: five steps, each on its own; the setup cards show their phases; the phase list is edited in place. */
.nc { display: grid; gap: 14px; }
.nc-steps { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.nc-steps li { display: inline-flex; align-items: center; gap: 6px; }
.nc-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--rule-strong, var(--rule)); font-weight: 600; font-size: 12px; }
.nc-steps li[aria-current] { color: var(--ink); font-weight: 600; }
.nc-steps li[aria-current] span { background: var(--navy, #0b2144); border-color: var(--navy, #0b2144); color: #fff; }
.nc-steps li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.nc-setups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.nc-setup { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; min-width: 0; }
.nc-setup input { position: absolute; opacity: 0; pointer-events: none; }
.nc-setup.on { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent); }
.nc-setup:focus-within { outline: 2px solid var(--focus, var(--gold)); outline-offset: 2px; }
.nc-strip { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nc-strip li { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2, rgba(0,0,0,.05)); }
.nc-strip.review li.done { background: color-mix(in srgb, var(--ok) 18%, transparent); }
.nc-strip.review li.current { background: var(--gold); color: #1a1405; font-weight: 600; }
.nc-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nc-phase { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 8px; }
.nc-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2, rgba(0,0,0,.05)); font-size: 12px; font-weight: 600; }
.nc-ph-main { display: grid; gap: 2px; min-width: 0; }
.nc-ph-main input { width: 100%; }
.nc-ph-btns { display: inline-flex; gap: 2px; }
.nc-where { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nc-where li label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; }
.nc-where li.done label { color: var(--muted); }
.nc-where li.done label span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.nc-where li.current label { border-color: var(--gold); border-width: 2px; font-weight: 600; }
.nc-where small { margin-inline-start: auto; color: var(--muted); font-weight: 400; }
.nc-review dd { min-width: 0; }
@media (max-width: 600px) { .nc-phase { grid-template-columns: 24px minmax(0, 1fr); } .nc-phase select, .nc-ph-btns { grid-column: 2; } .nc-steps { font-size: 12px; } .nc-steps li:not([aria-current]) { font-size: 0; gap: 0; } .nc-steps li:not([aria-current]) span { font-size: 12px; } }

/* Agents: how they work together (a left-to-right flow that stacks on phones), the queue and the agent cards. */
.ag-flow-card { padding: 4px 16px 16px; }
.ag-flow { display: flex; align-items: stretch; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.ag-col { display: grid; gap: 8px; align-content: center; min-width: 140px; flex: 1 1 0; }
.ag-node { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; background: var(--surface); }
.ag-node.paused, .ag-node.stopped { opacity: .6; border-style: dashed; }
.ag-node.you { border-color: var(--gold); border-width: 2px; }
.ag-arrow { align-self: center; color: var(--muted); font-size: 20px; }
.ag-label { padding-inline: 4px; }
.ag-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.ag-queue { list-style: none; margin: 0; padding: 0 16px 16px; display: grid; gap: 10px; }
.ag-prop { border: 1px solid var(--rule); border-inline-start: 4px solid var(--rule-strong, var(--rule)); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; min-width: 0; }
.ag-prop.pri-1 { border-inline-start-color: var(--danger); }
.ag-prop.pri-2 { border-inline-start-color: var(--gold); }
.ag-prop-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ag-title { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ag-why { margin: 0; padding-inline-start: 18px; color: var(--text-2, var(--muted)); }
.ag-draft summary { cursor: pointer; font-size: 13px; }
.ag-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ag-card.paused, .ag-card.stopped { opacity: .8; }
.ag-card h3 { margin: 0; }
.ag-history { list-style: none; margin: 0; padding: 0 16px 16px; display: grid; gap: 6px; }
.ag-roles { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ag-roles li { display: grid; gap: 2px; }
@media (max-width: 900px) { .ag-grid { grid-template-columns: minmax(0, 1fr); } .ag-flow { flex-direction: column; overflow: visible; } .ag-arrow { transform: rotate(90deg); align-self: center; } .ag-col { min-width: 0; } }

/* Plan the dates: a narrow number box in the table; Doing business notes in Company settings. */
.num-sm { width: 80px; text-align: end; }
.region-notes p { margin: 2px 0; }

/* Personal approval link: one calm card, the proposal, the statement, three choices. */
.ap-wrap { min-height: 100vh; display: grid; place-items: start center; padding: 32px 16px; background: var(--bg); }
.ap-card { width: min(680px, 100%); background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px, 4vw, 36px); display: grid; gap: 12px; }
.ap-logo { height: 30px; width: auto; }
.ap-for { margin: 0; color: var(--muted); }
.ap-card h1 { margin: 0; font-family: var(--serif, inherit); }
.ap-meta { margin: 0; color: var(--muted); font-size: 14px; }
.ap-summary { margin: 0; white-space: pre-wrap; }
.ap-files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-statement { border-inline-start: 4px solid var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); padding: 12px 14px; border-radius: 6px; }
.ap-actions { align-items: center; }

/* Agent controls and results. */
.ag-controls.stopped { border-color: var(--danger); }
.ag-results { color: var(--ink); }
.ag-log-list { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }
/* Agent message groups in Settings: comfortable tap targets. */
.tpl-group { border-bottom: 1px solid var(--rule); }
.tpl-group > summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; padding: 8px 0; }
.ag-run > summary { min-height: 36px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; }
/* The agents grouped by what they're for. */
.ag-group { border: 1px dashed var(--rule); border-radius: 12px; padding: 8px; align-content: start; }
.ag-glabel { font-size: 12px; font-weight: 600; color: var(--muted); }
.ag-flow .ag-node { padding: 8px 10px; }
/* The agents' flow, top to bottom: the Researcher, the three groups side by side, then Messenger → Coordinator → you. */
.ag-flow2 { display: grid; gap: 8px; overflow: visible; flex-direction: initial; }
.ag-flow2 .ag-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ag-flow2 .ag-row > .ag-node { min-width: 160px; }
.ag-flow2 .ag-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ag-flow2 .ag-group { display: grid; gap: 8px; align-content: start; }
.ag-flow2 .ag-group .ag-node { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ag-down { color: var(--muted); font-size: 18px; padding-inline-start: 12px; }
@media (max-width: 900px) { .ag-flow2 .ag-groups { grid-template-columns: minmax(0, 1fr); } .ag-flow2 .ag-row > .ag-node { min-width: 0; flex: 1 1 100%; } .ag-flow2 .ag-arrow { transform: rotate(90deg); } }

/* ---------- tenders, funding claims, e-invoicing, morning summary ---------- */
.pad-x { padding-inline: 20px; margin: 14px 0 6px; }
.field-wide { grid-column: 1 / -1; }
.tender-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.tender-facts .tf { display: grid; gap: 3px; align-content: start; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); min-width: 0; }
.tender-facts .tf-k { font-size: 13px; color: var(--muted); }
.tender-facts .tf b { font: 600 18px/1.25 var(--serif); color: var(--ink); }
.tender-facts .bar { height: 6px; }
.tender-issues { margin: 0 20px 16px; padding-inline-start: 34px; display: grid; gap: 4px; }
ul.tender-dates.plain-list { padding: 4px 20px 14px; margin: 0; }
.tender-dates li { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.tender-dates li:last-child { border-bottom: 0; }
.tender-dates li > span:first-child { flex: 1 1 140px; color: var(--muted); font-size: 14px; }
.tender-qs { display: grid; gap: 10px; padding-inline-start: 36px; margin: 0; }
.tender-qs p { margin: 0; }
.tdr-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 640px) { .tdr-row { grid-template-columns: minmax(0, 1fr) auto; } .tdr-row select { grid-column: 1; } }
.ag-morning label.check { min-width: 0; overflow-wrap: anywhere; }
ul.checklist.pad, ol.checklist.pad { padding: 4px 20px 16px; }
.checklist li.todo > span:first-child { color: var(--gold); font-weight: 700; }
.checklist li.ok > span:first-child { color: var(--ok, #1f7a4d); font-weight: 700; }
.ei { display: grid; gap: 14px; }
.ei-state { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; }
.ei-state p { margin: 0; }
.ei-msgs { margin: 4px 0; padding-inline-start: 20px; display: grid; gap: 2px; }
.ei-sign textarea { font-family: var(--mono, ui-monospace, monospace); font-size: 12px; }
.ei-onboard .checklist { margin: 8px 0 12px; }
.otp-input { width: 9ch; letter-spacing: .2em; text-align: center; }
.inv-einvoice { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r); }
.inv-einvoice h2 { font-size: 16px; margin: 0 0 4px; }
.inv-einvoice p { margin: 0; overflow-wrap: anywhere; }
.inv-qr { width: 132px; height: 132px; flex: none; background: #fff; }
@media (max-width: 640px) { .inv-einvoice { flex-direction: column; align-items: flex-start; } }
.ag-prop.ag-focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.mo-preview { margin: 10px 0; }
.mo-preview ul { margin: 4px 0 8px; padding-inline-start: 20px; display: grid; gap: 4px; }
@media print { .crumbs, .page-head .btn-row, .notice.warn a { display: none; } }
/* agents: state, paths, how they work together, each agent, who sees them */
.ag-state { color: var(--text-2); margin-bottom: 2px; }
.ag-path { margin: 0; }
.ag-links { list-style: none; margin: 0; display: grid; gap: 8px; }
.ag-links li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 14px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.ag-links li:last-child { border-bottom: 0; }
.ag-link-ends { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ag-link-ends > span { color: var(--muted); }
.ag-link-n { font: 600 18px/1 var(--serif); color: var(--ink); margin-inline-end: 4px; }
@media (max-width: 640px) { .ag-links li { grid-template-columns: minmax(0, 1fr); } }
.ag-each { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.ag-each .card-head h2 { font-size: 18px; margin: 0; }
.ag-each-facts { margin: 0; }
a.ag-node { text-decoration: none; color: inherit; }
a.ag-node:hover, a.ag-node:focus-visible { border-color: var(--ink); }
.ag-node.stopped, .ag-card.stopped { opacity: .72; }
.ag-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 6px 14px; }
.tax-mode .form-grid, .wht-mode .form-grid { margin-top: 8px; }
.wht-mode .hint { margin: 6px 0 0; }

/* ---------- Engage as an app (the Android app, or installed from the browser) ----------
   Phones get a tab bar at the bottom: the first areas of the menu and Menu. Everything that floats at the
   bottom (the chat button, save bars) moves up above it. The website's layout is unchanged. */
.app-tabs, .app-brand { display: none; }
.in-app { -webkit-tap-highlight-color: transparent; }
@media (max-width: 900px) {
  .in-app .app-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 55;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--sheet) 94%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--rule);
    box-shadow: 0 -12px 32px -24px rgba(6, 20, 44, .5); overscroll-behavior: contain; }
  .app-tabs a, .app-tabs button { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 56px; padding: 4px 2px; border: 0; border-radius: 14px;
    background: none; color: var(--muted); font: 600 11.5px/1.1 var(--sans); letter-spacing: .1px; text-decoration: none; cursor: pointer; }
  .app-tab-ic { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 15px; transition: background-color .2s var(--ease), color .2s var(--ease); }
  .app-tab-ic svg { width: 22px; height: 22px; }
  .app-tab-l { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .app-tabs [aria-current="page"], .app-tabs [aria-expanded="true"] { color: var(--ink); }
  .app-tabs [aria-current="page"] .app-tab-ic, .app-tabs [aria-expanded="true"] .app-tab-ic { background: var(--gold-wash); color: var(--gold-deep); }
  .app-tabs a:focus-visible, .app-tabs button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
  .app-tabs a:active .app-tab-ic, .app-tabs button:active .app-tab-ic { background: var(--gold-wash); }
  /* The tab bar has Menu, and the phone's own status bar shows the time. */
  .in-app .menu-btn, .in-app .top-clock { display: none; }
  .in-app .topbar { flex-wrap: nowrap; gap: 4px; padding-inline: 12px; }
  .in-app .topbar .lang-btn { padding-inline: 10px; }
  .in-app .topbar > .spacer { display: none; }
  .in-app .app-brand { display: grid; place-items: center; width: 34px; height: 40px; flex: none; margin-inline-end: auto; border-radius: 12px; }
  .in-app .app-brand img { width: 30px; height: 30px; object-fit: contain; }
  .app-brand .mk-night, :root[data-theme="dark"] .app-brand .mk-day { display: none; }
  :root[data-theme="dark"] .app-brand .mk-night { display: block; }
  .in-app .content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .in-app .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .in-app .chat-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .in-app .savebar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .in-app .sidebar { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media print { .app-tabs { display: none !important; } }
:root[data-theme="dark"] .app-tabs [aria-current="page"] .app-tab-ic, :root[data-theme="dark"] .app-tabs [aria-expanded="true"] .app-tab-ic { color: var(--gold-light); }
/* The loading screen continues the app's navy splash. */
.in-app body:has(#app > .gate > .state) { background: #0b2144; }
.in-app #app > .gate .state { color: #e9e4d8; }
.in-app #app > .gate .spinner { border-color: rgba(233, 228, 216, .25); border-top-color: #c9a56a; }

/* Inside the native Android app (?source=native): the app has its own title bar, tabs and back button, so the
   page keeps only its content (and the tabs within an area). */
.in-native .topbar, .in-native .sidebar, .in-native .footer, .in-native .app-tabs, .in-native .skip, .in-native .menu-btn { display: none !important; }
.in-native .layout { grid-template-columns: 1fr; }
.in-native .content { padding-bottom: 32px; }
.in-native .chat-fab { bottom: calc(16px + env(safe-area-inset-bottom)); }

/* App and sign-in (company setup): the company code with its QR code. */
.aa-code { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; margin: 4px 0 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.aa-code-value { margin: 2px 0 8px; }
.aa-code-value code { font-size: 1.15rem; letter-spacing: .06em; }
.aa-qr { width: 148px; height: 148px; padding: 6px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
/* Several technical proposals (one per program): a picker lists them all and one is open at a time. */
.prop-pick { margin: 0 0 18px; }
.prop-pick-h { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.prop-pick ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.prop-pick-item { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; text-align: start; font: inherit; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.prop-pick-item:hover { border-color: var(--ink); }
.prop-pick-item[aria-pressed="true"], .prop-pick-item[aria-current="page"] { border: 2px solid var(--ink); padding: 11px 13px; box-shadow: var(--lift); }
.prop-pick-type { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: none; }
.prop-pick-type svg { width: 15px; height: 15px; flex: none; }
.prop-pick-title { font-weight: 600; line-height: 1.35; }
.prop-pick-state { font-size: 13px; color: var(--text-2); }
.prop-pick-item[aria-pressed="true"] .prop-pick-state, .prop-pick-item[aria-current="page"] .prop-pick-state { color: var(--ink); font-weight: 600; }
.prop-pick-item.is-locked { background: transparent; }
/* The picker, one program per group: step 1 technical, step 2 financial. */
.prop-pick-group { margin: 0 0 14px; }
.prop-pick-name { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.prop-pick-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; flex: none; }
.prop-pick-group ul { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.prop-pick-group li + li .prop-pick-item { position: relative; }
.prop-pick-item.is-done .prop-pick-type svg { color: #1f7a4d; }
/* The proposal's PDF: View and Download stand out, with a soft pulse and a light sweep that draw the eye. */
.lk-pdf-cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; padding: 11px 20px; border-radius: 10px; }
.lk-pdf-cta svg { width: 18px; height: 18px; flex: none; }
.lk-pdf-read { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 0 rgba(184, 144, 79, .55); animation: lkPdfPulse 2.4s ease-out infinite; }
/* Pointed at or pressed, it stays gold with dark text (a plain .btn turns navy on hover, which hid this button's dark
   label), and the light sweep stops so nothing passes over the words. */
.lk-pdf-read:hover, .lk-pdf-read:focus-visible { background: #c9a362; border-color: #c9a362; color: var(--ink); transform: translateY(-1px); }
.lk-pdf-read:active { background: #b08646; border-color: #b08646; color: var(--ink); transform: none; }
.lk-pdf-cta:hover::after, .lk-pdf-cta:focus-visible::after, .lk-pdf-cta:active::after { animation: none; opacity: 0; }
.lk-pdf-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: lkPdfSweep 3.2s ease-in-out infinite; pointer-events: none; }
.lk-download.lk-pdf-cta::after { animation-delay: 1.6s; }
.lk-pdf-read svg { animation: lkPdfNudge 2.4s ease-in-out infinite; }
.lk-pdf-name { flex-basis: 100%; }
@keyframes lkPdfPulse { 0% { box-shadow: 0 0 0 0 rgba(184, 144, 79, .55); } 70% { box-shadow: 0 0 0 12px rgba(184, 144, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 144, 79, 0); } }
@keyframes lkPdfSweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes lkPdfNudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-3px); } 90% { transform: translateY(1px); } }
@media (prefers-reduced-motion: reduce) { .lk-pdf-read, .lk-pdf-read svg, .lk-pdf-cta::after { animation: none; } }
@media print { .lk-pdf-read, .lk-pdf-read svg, .lk-pdf-cta::after { animation: none; } }

/* ---------- A written proposal, as a document (views/proposals.js: technicalHTML, commercialHTML) ----------
   The key figures (or the price) first, the summary as a standfirst, contents, then numbered chapters. Chapter
   numbers hang beside the text when there's room, so "section 4" is easy to find and to refer to. */
.pdoc { container-type: inline-size; max-width: 940px; font-size: 16px; line-height: 1.65; color: var(--text); }
.pdoc p { margin: 0 0 10px; max-width: 68ch; }
.pdoc h3, .pdoc h4 { color: var(--ink); }
.pdoc .sec-head { margin: 0; }
.pdoc .sec-head h3, .pdoc .pdoc-h3 { font: 600 15px/1.4 var(--sans); margin: 0 0 6px; letter-spacing: 0; }
.pdoc-note { font-size: 14px; color: var(--text-2); }
.pdoc-n { font-family: var(--serif); font-weight: 600; color: var(--gold-deep); font-variant-numeric: lining-nums; }
:root[data-theme="dark"] .pdoc-n, :root[data-theme="dark"] .pdoc-module-n { color: var(--gold-light); }
/* The key figures, and a commercial proposal's bottom line: a ruled sheet under a dark rule. */
.pdoc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 2px 0 22px; background: var(--rule); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.pdoc-facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 14px 16px 15px; background: var(--paper); }
.pdoc-facts dt { font-size: 13px; line-height: 1.35; color: var(--text-2); }
.pdoc-facts dd { margin: 0; font: 600 30px/1.1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.pdoc-facts dd small { font-size: 16px; font-weight: 600; }
.pdoc-facts .pdoc-span { font-size: 20px; line-height: 1.25; }
.pdoc-span-to { display: block; font-size: 16px; color: var(--text-2); }
.pdoc-price { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px 32px; margin: 2px 0 22px; padding: 18px 20px; background: var(--paper); border-top: 2px solid var(--ink); }
.pdoc-price-k, .pdoc-price-sub { margin: 0; font-size: 14px; color: var(--text-2); }
.pdoc .pdoc-price-v { margin: 2px 0 6px; font: 600 clamp(26px, 6cqi, 38px)/1.12 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.pdoc-price-sub b { color: var(--ink); }
.pdoc-price-facts { display: grid; gap: 8px; align-content: center; margin: 0; }
.pdoc-price-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--rule); }
.pdoc-price-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pdoc-price-facts dt { font-size: 14px; color: var(--text-2); }
.pdoc-price-facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: end; font-variant-numeric: tabular-nums; }
.pdoc-price-facts dd small { display: block; font-size: 12px; font-weight: 600; color: var(--warn); }
.pdoc-price-facts .is-late dt, .pdoc-price-facts .is-late dd { color: var(--danger); }
/* The summary, set as a standfirst. */
.pdoc-lead .sec-head { justify-content: flex-end; }
.pdoc .pdoc-standfirst { margin: 0 0 6px; max-width: 62ch; font: 400 19px/1.6 var(--serif); color: var(--ink); }
/* Contents: every chapter one click away. */
.pdoc-toc { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.pdoc-toc h2 { margin: 0 0 4px; font: 600 13px/1.4 var(--sans); color: var(--text-2); }
.pdoc-toc ol { list-style: none; margin: 0; padding: 0; columns: 2 240px; column-gap: 32px; }
.pdoc-toc li { break-inside: avoid; }
.pdoc-toc button { display: flex; align-items: baseline; gap: 12px; width: 100%; min-height: 40px; padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--rule); font: inherit; font-size: 15px; color: var(--ink); text-align: start; cursor: pointer; }
.pdoc-toc button .pdoc-n { min-width: 1.3em; }
.pdoc-toc button:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pdoc-toc button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
/* Chapters. */
.pdoc-ch { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.pdoc .pdoc-ch-h { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font: 600 24px/1.25 var(--serif); color: var(--ink); letter-spacing: -.005em; }
.pdoc .pdoc-ch-h:focus { outline: none; }
.pdoc-ch-h .pdoc-n { min-width: 1.25em; }
.pdoc-sub { margin: 0 0 20px; }
.pdoc-sub:last-child { margin-bottom: 4px; }
.pdoc-ask-row { justify-content: flex-end; }
@container (min-width: 600px) {
  .pdoc-ch-h .pdoc-n { min-width: 30px; }
  .pdoc-ch-body { padding-inline-start: 44px; }
}
/* Lists, with a short gold rule for a bullet. */
.pdoc-list { list-style: none; display: grid; gap: 6px; margin: 0 0 4px; padding: 0; max-width: 68ch; }
.pdoc-list li { position: relative; padding-inline-start: 22px; }
.pdoc-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 10px; height: 2px; background: var(--gold); }
/* Scope, by kind of work. */
.pdoc-scope { border-top: 1px solid var(--rule); }
.pdoc-scope-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 18px; padding: 12px 0 4px; border-bottom: 1px solid var(--rule); }
.pdoc-scope-row p { margin: 0 0 8px; }
.pdoc-tag { font-weight: 600; color: var(--ink); }
/* Tables inside the document: quieter heads. */
.pdoc-table thead th { background: transparent; border-bottom: 1px solid var(--rule-strong); }
.pdoc-table th, .pdoc-table td { padding-inline: 0 14px; }
.pdoc-table th:last-child, .pdoc-table td:last-child { padding-inline-end: 0; }
.pdoc-less td { color: var(--text-2); }
.pdoc-table .pdoc-sum td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 0; }
.pdoc-optional th { padding-top: 22px; font-size: 13px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--rule-strong); }
.pdoc-optional td { color: var(--text-2); }
.pdoc-k { margin-inline-end: 6px; font-size: 13px; color: var(--text-2); }
.pdoc-totals { max-width: 420px; margin-block-start: 14px; margin-inline-start: auto; }
/* The curriculum, module by module. */
.pdoc-modules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.pdoc-module { padding: 14px 0 8px; border-bottom: 1px solid var(--rule); }
.pdoc-module-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); }
.pdoc-module-n { font-weight: 600; color: var(--gold-text); }
.pdoc .pdoc-module h4 { margin: 2px 0 6px; font: 600 18px/1.35 var(--serif); }
.pdoc-module p { margin-bottom: 6px; }
.pdoc .pdoc-wp { font-size: 15px; }
.pdoc-wp b { margin-inline-end: 6px; font-weight: 600; color: var(--ink); }
.pdoc .pdoc-refs { font-size: 13px; color: var(--muted); }
.pdoc .pdoc-total { margin: 10px 0 0; font-size: 14px; color: var(--text-2); }
/* Things in order: the timeline, and the payment schedule. */
.pdoc-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.pdoc-steps > li { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 4px 20px; padding: 12px 0 6px; border-bottom: 1px solid var(--rule); }
.pdoc-when { font-size: 14px; line-height: 1.5; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pdoc-when span { display: block; }
.pdoc .pdoc-steps h4 { margin: 0 0 4px; font: 600 16px/1.45 var(--sans); }
.pdoc-pay .pdoc-when b { display: block; font: 600 22px/1.15 var(--serif); color: var(--ink); }
/* Who does what, side by side. */
.pdoc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 32px; }
.pdoc .pdoc-two h4 { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--rule-strong); font: 600 15px/1.4 var(--sans); }
/* Terms, delivery details: a term sheet. */
.pdoc-terms { margin: 0 0 18px; border-top: 1px solid var(--rule); }
.pdoc-terms > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 4px 18px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.pdoc-terms dt { font-weight: 600; color: var(--ink); }
.pdoc-terms dd { margin: 0; max-width: 68ch; }
/* Packages: the price each one comes to, before its breakdown. */
.pdoc .pkg-price { margin: 4px 0 10px; font: 600 24px/1.2 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.pdoc .pkg-price small { display: block; font: 500 12px/1.4 var(--sans); color: var(--text-2); }
.pdoc .pkg-compare { margin-top: 6px; }
@container (max-width: 560px) {
  .pdoc-price { grid-template-columns: 1fr; padding: 16px; }
  .pdoc-facts > div { padding: 12px 14px; }
  .pdoc-facts dd { font-size: 26px; }
  .pdoc .pdoc-standfirst { font-size: 18px; }
  .pdoc .pdoc-ch-h { font-size: 21px; }
  .pdoc-scope-row, .pdoc-steps > li, .pdoc-terms > div { grid-template-columns: 1fr; }
}
@media print {
  .pdoc { font-size: 11pt; }
  .pdoc-facts, .pdoc-price { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pdoc-ch-h, .pdoc .sec-head h3, .pdoc-module-top { break-after: avoid; }
  .pdoc-module, .pdoc-steps > li, .pdoc-terms > div, .pdoc-scope-row, .pdoc-facts, .pdoc-price, .pdoc-two { break-inside: avoid; }
  /* A proposal runs over several pages: its card may break (other cards stay whole), and the page's help note isn't printed. */
  .card.doc, .lk-doc { break-inside: auto; }
  .page-help { display: none !important; }
}
