/* AudaxEdge app — additions to the design system for the working app (load after app.css). */

/* Demo-mode strip: shows which outside services are stand-ins */
.demo-strip { background: var(--warn-bg); color: var(--warn); font-size: var(--fs-sm); text-align: center; padding: 6px 16px; border-bottom: 1px solid #ecd9b3; }
.demo-strip b { color: #6b4306; }

/* Account menu */
.acct { position: relative; }
.acct summary { list-style: none; cursor: pointer; }
.acct summary::-webkit-details-marker { display: none; }
.acct .menu { position: absolute; right: 0; top: 42px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: 0 8px 24px rgba(20,23,58,.18); min-width: 220px; padding: 8px; z-index: 30; }
.acct .menu p { font-size: var(--fs-sm); padding: 6px 8px; color: var(--muted); }
.acct .menu a { display: block; padding: 8px; border-radius: var(--r-ctl); font-size: var(--fs-sm); color: var(--ink); text-decoration: none; }
.acct .menu a:hover { background: var(--mist); }

.app-foot { max-width: 1200px; margin: 0 auto; padding: 0 24px 32px; font-size: var(--fs-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.app-foot a { color: var(--muted); }

/* Locked preview: the shape of the report with every figure hidden. The values in the page are placeholders,
   not the real figures, so nothing can be read from the page source either. */
.locked { position: relative; }
.locked .blur { filter: blur(7px); user-select: none; -webkit-user-select: none; pointer-events: none; color: var(--indigo); }
.locked .lock-note { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: var(--fs-sm); color: var(--muted); }
.locked .lock-note::before { content: ""; width: 14px; height: 16px; flex: none; background:
  linear-gradient(var(--muted), var(--muted)) 50% 100% / 14px 10px no-repeat,
  radial-gradient(circle at 50% 45%, transparent 3px, var(--muted) 3.5px, var(--muted) 5px, transparent 5.5px) 50% 0 / 14px 12px no-repeat; }
.locked .bars { display: grid; gap: 8px; margin-top: 14px; }
.locked .bars div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; font-size: var(--fs-sm); }
.locked .bars span.b { height: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--indigo), var(--cyan-2)); }

/* Errors and notices */
.form-error { background: var(--bad-bg); color: var(--bad); border-left: 4px solid var(--bad); padding: 10px 14px; border-radius: 0 var(--r-ctl) var(--r-ctl) 0; font-size: var(--fs-sm); margin-bottom: 16px; }
.notice-ok { background: var(--good-bg); color: var(--good); border-left: 4px solid var(--good); padding: 10px 14px; border-radius: 0 var(--r-ctl) var(--r-ctl) 0; font-size: var(--fs-sm); margin-bottom: 16px; }

/* Stepper as links (server-rendered wizard) */
.stepper a { width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--r-ctl); font: 500 var(--fs-sm) var(--font-body); color: var(--muted); display: flex; gap: 10px; align-items: center; text-decoration: none; }
.stepper a::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; border: 1px solid #b9c3d1; display: grid; place-items: center; font-size: 12px; flex: none; background: var(--paper); }
.stepper a.done { color: var(--ink); }
.stepper a.done::before { content: "✓"; background: var(--good-bg); border-color: var(--good); color: var(--good); }
.stepper a[aria-current="step"] { background: var(--paper); color: var(--indigo-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--indigo); }
.stepper a[aria-current="step"]::before { border-color: var(--indigo); color: var(--indigo); }
@media (max-width: 800px) { .stepper a { white-space: nowrap; } }

.unverified { display: inline-block; font-size: var(--fs-xs); font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
.quote-line { display: block; font-size: var(--fs-xs); color: var(--muted); font-style: italic; margin-top: 2px; }
textarea.in { min-height: 90px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: var(--fs-sm); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.opp { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 6px; }
.opp:first-child { border-top: none; }
.opp h3 { font-size: var(--fs-lg); }
.opp .meta { font-size: var(--fs-sm); color: var(--muted); }
.opp blockquote { margin: 4px 0; border-left: 3px solid var(--cyan-2); padding-left: 12px; font-size: var(--fs-sm); color: var(--ink); }
.cand td { font-size: var(--fs-sm); }
.cand td input[type=text], .cand td textarea { width: 100%; font: 400 var(--fs-sm) var(--font-body); padding: 6px 8px; border: 1px solid #b9c3d1; border-radius: var(--r-ctl); }
.cand td textarea { min-height: 54px; }
.cand tr.picked { background: #f3f4fc; }
.sticky-bar { position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--line); padding: 12px 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; z-index: 5; }
.count-pill { font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--mist); }
.count-pill.ok { background: var(--good-bg); color: var(--good); }
.picker-list { list-style: none; margin: 0; padding: 0; }
.pay-demo { border: 2px dashed var(--warn); background: var(--warn-bg); }

.tbl td .tag { white-space: nowrap; }

/* Footer (matches the audaxedge.com site footer) */
.app-footer { background: var(--night); color: var(--on-night-muted); font-size: var(--fs-sm); margin-top: 24px; }
.app-footer .af-in { max-width: 1200px; margin: 0 auto; padding: 40px 24px 28px; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .app-footer .af-in { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.app-footer h2 { font: 600 var(--fs-sm) var(--font-body); color: #fff; margin-bottom: 10px; }
.app-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.app-footer a { color: var(--on-night); }
.app-footer .af-brand img { display: block; }
.app-footer .af-brand > a { display: inline-block; margin-bottom: 12px; }
.app-footer .af-brand p { max-width: 36ch; }
.app-footer .certs { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.app-footer .certs img { height: 40px; width: auto; background: #fff; border-radius: 3px; padding: 2px; }
.app-footer .certs span { font-size: var(--fs-xs); max-width: 12ch; line-height: 1.3; }
.app-footer .af-fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; }
.auth + .app-footer { margin-top: 0; }

/* Staff area */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs a { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.tabs a .n { background: var(--mist); border-radius: 999px; padding: 0 8px; font-size: var(--fs-xs); color: var(--muted); }
.tabs a[aria-current="page"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.tabs a[aria-current="page"] .n { background: rgba(255,255,255,.2); color: #fff; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 20px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 16px 18px; }
.kpi .l { font-size: var(--fs-sm); color: var(--muted); }
.kpi .v { font: 600 var(--fs-2xl)/1.1 var(--font-display); margin: 4px 0 2px; }
.kpi .s { font-size: var(--fs-xs); color: var(--muted); }
.hbars { display: grid; gap: 10px; }
.hbars .row { display: grid; grid-template-columns: 130px 1fr 150px; gap: 12px; align-items: center; font-size: var(--fs-sm); }
.hbars .track { background: var(--mist); height: 16px; border-radius: 3px; overflow: hidden; }
.hbars .fill { height: 100%; background: linear-gradient(90deg, var(--indigo), var(--cyan-2)); }
.hbars .num { text-align: right; font-variant-numeric: tabular-nums; }
.vbars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; align-items: end; height: 170px; padding-top: 10px; }
.vbars .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.vbars .bar { width: 100%; max-width: 46px; background: var(--indigo); border-radius: 3px 3px 0 0; min-height: 2px; }
.vbars .amt { color: var(--ink); font-weight: 600; }
.overdue { color: var(--bad); font-weight: 700; }
@media (max-width: 640px) { .hbars .row { grid-template-columns: 1fr 110px; } .hbars .track { grid-column: 1 / -1; grid-row: 2; } }
.nav-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--cyan); color: var(--night); font-size: var(--fs-xs); font-weight: 700; text-align: center; }

/* Home: product tiers and how the steps feed each other */
.tier + .tier, .tier + .panel { margin-top: 28px; }
.tier-head { margin-bottom: 12px; }
.tier-head h2 { font-size: var(--fs-lg); }
.tier-head p { color: var(--muted); font-size: var(--fs-sm); max-width: 78ch; }
.grid.wide { grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); }
@media (max-width: 760px) { .grid.wide { grid-template-columns: 1fr; } }
.start .step, .led .step { font: 600 var(--fs-xs)/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.start .q { font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: var(--fs-sm); margin: 4px 0 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 6px; } }
.led { border: 1px dashed var(--line); border-radius: var(--r-panel); background: var(--mist); padding: 18px 20px; display: grid; gap: 10px; align-content: start; font-size: var(--fs-sm); }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1.4fr 1fr 1.4fr 1fr; gap: 10px; align-items: stretch; }
.flow .node { border: 1px solid var(--line); border-top: 4px solid var(--indigo); border-radius: var(--r-panel); padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.flow .node:first-child { border-top-color: var(--cyan-2); }
.flow .node.team { border-top-color: var(--night); }
.flow .node span { font-size: var(--fs-sm); color: var(--muted); }
.flow .hand { position: relative; padding: 10px 12px 10px 26px; font-size: var(--fs-sm); background: var(--mist); border-radius: var(--r-panel); }
.flow .hand::before { content: "→"; position: absolute; left: 8px; top: 8px; color: var(--indigo); font-weight: 700; }
.flow .hand ul { margin: 6px 0 0; padding-left: 1.1em; }
.flow .hand li + li { margin-top: 4px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow .hand::before { content: "↓"; } }
.tier .start { display: flex; flex-direction: column; gap: 8px; }
.tier .start .row { margin-top: auto; padding-top: 6px; }

/* "Not sure of your codes?" help on the Strategy profile (matches the public site) */
.code-help { margin: 8px 0 0; }
.code-help summary { cursor: pointer; color: var(--accent, #14b0d2); font-size: var(--fs-sm); }
.code-help p { margin: 8px 0 0; }

/* ---------- Home dashboard, compact (2026-10-22) ---------- */
.dash-head { margin: 4px 0 20px; }
.dash-head h1 { font-size: var(--fs-2xl); }
.dash-head p { color: var(--muted); margin-top: 2px; }
.dash-work { margin-bottom: 28px; }
.dash-work-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.dash-work-head h2 { font-size: var(--fs-lg); }
.dash-work .tbl-wrap + .tbl-wrap, .dash-work .tbl-wrap + * { margin-top: 14px; }
.pf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.pf-head h2 { font-size: var(--fs-xl); }
.pf-head p { color: var(--muted); font-size: var(--fs-sm); }
.pf-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 10px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(20, 23, 58, .05); }
.pf-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-num { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center;
  font: 700 var(--fs-sm)/1 var(--font-display); }
.pf-tag { font: 600 var(--fs-xs)/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pf-badge { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; color: var(--night); background: var(--mist);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.pf-card h3 { font-size: var(--fs-xl); line-height: 1.15; }
.pf-q { font-size: var(--fs-md); color: var(--ink); min-height: 2.6em; }
.pf-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chips li { font-size: var(--fs-xs); color: var(--muted); background: var(--mist); border-radius: 999px; padding: 4px 10px; }
.pf-price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 6px; }
.pf-price b { font: 700 1.75rem/1 var(--font-display); color: var(--ink); }
.pf-price span { color: var(--muted); font-size: var(--fs-sm); }
.pf-btn { width: 100%; justify-content: center; text-align: center; }
.pf-card.team .pf-btn { background: var(--night); border-color: var(--night); }
.pf-more { font-size: var(--fs-sm); border-top: 1px solid var(--line); padding-top: 10px; }
.pf-more summary { cursor: pointer; color: var(--teal); font-weight: 600; }
.pf-more ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--muted); }
.pf-more li + li { margin-top: 4px; }
.pf-flow { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: var(--mist);
  border-radius: 10px; padding: 12px 16px; font-size: var(--fs-sm); }
.pf-flow-step { font-weight: 600; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.pf-arrow { width: 18px; height: 2px; background: var(--indigo); position: relative; }
.pf-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--indigo); border-right: 0; }
.pf-flow-note { color: var(--muted); flex: 1 1 260px; }
.pf-team { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px dashed var(--line); border-radius: 10px; padding: 14px 18px; font-size: var(--fs-sm); }
.pf-team span { color: var(--muted); display: block; margin-top: 2px; }

/* Clerk organization switcher and user button sit on the dark top bar: light text (the menus they open stay light) */
.bar .cl-organizationSwitcherTrigger,
.bar .cl-organizationSwitcherTrigger *:not(img):not(svg) { color: var(--on-night) !important; }
.bar .cl-organizationSwitcherTrigger:hover,
.bar .cl-organizationSwitcherTrigger:focus-visible { background: rgba(255, 255, 255, .08) !important; }
.bar .cl-organizationSwitcherTriggerIcon { color: var(--on-night-muted) !important; }
.pf-chips li.team { background: var(--night); color: #fff; font-weight: 600; }

/* Pipeline review: the "This profile describes my company" box. Required in the browser; if the server still sends the
   page back, the box itself is outlined in red and the page scrolls to it (2026-10-22). */
.confirm-box.needs { outline: 2px solid var(--bad); outline-offset: 2px; background: var(--bad-bg); border-radius: var(--r-panel); }
.confirm-box.needs input { accent-color: var(--bad); }

/* Numbered "how it works" steps: title on its own line, explanation under it (was running together) */
ol.steps { padding-left: 1.4em; display: grid; gap: 12px; }
ol.steps li > div { display: grid; gap: 2px; }
ol.steps li > div > span { color: var(--muted); font-size: var(--fs-sm); }

/* Staff engagement: long report file names wrap inside the Files box, badge on the same line (2026-10-22) */
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.file-list a { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }

/* Animated Audax logo: <picture> around the <img> (2026-10-22) */
picture.logo { display: inline-flex; line-height: 0; }
