/* Sales Desk — the team's working app. Light workspace, dark rail, the
   pipeline as the centre of gravity. */
:root {
  --bg: #f4f6fa; --panel: #fff; --panel-2: #f9fafc; --line: #e3e8ef; --line-2: #cfd7e3;
  --ink: #0d1726; --ink-2: #334155; --muted: #64748b; --faint: #94a3b8;
  --rail: #0b1626; --rail-2: #12213a; --rail-ink: #c8d3e3; --rail-faint: #7c8ba3;
  --brand: #2547f4; --brand-soft: #e8edff; --ipms: #0fa05f; --ipms-soft: #e2f7ec; --amdana: #5b6cff; --amdana-soft: #eceeff; --smartmeet: #0b8fa8; --smartmeet-soft: #dff7fb;
  --gold: #c98a12; --gold-soft: #fff4dc; --red: #d93a2b; --red-soft: #fde9e6; --amber: #b7791f; --amber-soft: #fdf3dc; --green: #0f8a52; --green-soft: #e1f5ea;
  --r: 12px; --shadow: 0 1px 2px rgba(13, 23, 38, .06), 0 4px 16px -8px rgba(13, 23, 38, .12);
  --sans: 'Inter Tight', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 14.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 600; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.boot, .noscript { display: grid; place-items: center; height: 100vh; color: var(--muted); }

/* shell */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.rail .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 700; letter-spacing: -.01em; }
.rail .brand .mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ipms), var(--amdana)); font-size: 13px; color: #fff; }
.rail .brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--rail-faint); }
.rail nav { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; }
.rail .sect { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rail-faint); padding: 16px 10px 6px; }
.rail a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--rail-ink); font-weight: 500; }
.rail a:hover { background: var(--rail-2); text-decoration: none; color: #fff; }
.rail a.on { background: #1d3257; color: #fff; }
.rail a .ic { width: 18px; text-align: center; opacity: .85; }
.rail a .count { margin-left: auto; font: 600 11px/1 var(--mono); background: var(--red); color: #fff; padding: 3px 6px; border-radius: 999px; }
.rail .me { margin-top: auto; padding: 14px 18px; border-top: 1px solid var(--rail-2); font-size: 13px; }
.rail .me b { color: #fff; display: block; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: rgba(244, 246, 250, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .search { flex: 1; max-width: 460px; position: relative; }
.topbar .search input { width: 100%; padding: 9px 12px 9px 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.topbar .search::before { content: '⌕'; position: absolute; left: 12px; top: 7px; color: var(--faint); font-size: 16px; }
.topbar .spacer { flex: 1; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.content { padding: 22px 24px 60px; max-width: 1400px; width: 100%; }
.viewas { background: var(--gold-soft); color: #7a5208; border-bottom: 1px solid #f1d89c; padding: 8px 24px; display: flex; gap: 12px; align-items: center; font-weight: 600; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .rail.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .menu-btn { display: inline-flex; }
  .content { padding: 16px 16px 60px; }
  .topbar { padding: 10px 16px; }
}

/* page header */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ph p { margin: 4px 0 0; color: var(--muted); }
.ph .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #1b37c7; }
.btn.good { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { color: var(--red); border-color: #f3c2bc; }
.btn.danger.solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 17px; line-height: 1; }
.icon-btn:hover { background: var(--line); }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); min-width: 0; }
label.f .hint { font-weight: 400; color: var(--muted); }
input.i, select.i, textarea.i { width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 400; color: var(--ink); }
input.i:focus, select.i:focus, textarea.i:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.i { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 500; }
.check input { margin-top: 3px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.span2 { grid-column: span 2; } @media (max-width: 760px) { .span2 { grid-column: auto; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
form .err { color: var(--red); font-size: 13px; font-weight: 600; min-height: 1em; }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.card > .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card > .bd { padding: 16px; }
.card > .bd.flush { padding: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .k { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font: 700 24px/1.1 var(--sans); margin-top: 8px; letter-spacing: -.02em; }
.kpi .d { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi.gold .v { color: var(--gold); } .kpi.green .v { color: var(--green); } .kpi.blue .v { color: var(--brand); }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols.nav-left { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
.cols.nav-right { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .cols, .cols.nav-left, .cols.nav-right { grid-template-columns: 1fr; } .cols.nav-left > :first-child { order: 2; } }
@media (max-width: 560px) { .topbar .btn.primary { display: none; } .topbar .search { min-width: 0; } }
.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.meter.gold i { background: var(--gold); } .meter.green i { background: var(--green); }

/* tables */
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--panel-2); }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--ink-2); white-space: nowrap; }
.pill.green { background: var(--green-soft); color: var(--green); } .pill.red { background: var(--red-soft); color: var(--red); }
.pill.amber { background: var(--amber-soft); color: var(--amber); } .pill.blue { background: var(--brand-soft); color: var(--brand); }
.pill.ipms { background: var(--ipms-soft); color: var(--ipms); } .pill.amdana { background: var(--amdana-soft); color: var(--amdana); }
.pill.gold { background: var(--gold-soft); color: var(--gold); }

/* pipeline */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.lane-col { background: #eaeef5; border-radius: var(--r); padding: 10px; min-height: 240px; border: 2px solid transparent; }
.lane-col.drop { border-color: var(--brand); background: var(--brand-soft); }
.lane-col .lh { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 10px; gap: 8px; }
.lane-col .lh b { font-size: 13px; }
.lane-col .lh span { font: 600 11.5px/1 var(--mono); color: var(--muted); }
.lane-col.won { background: var(--green-soft); } .lane-col.lost { background: #f1f1f3; }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); cursor: grab; display: block; color: var(--ink); }
.dcard:hover { border-color: var(--line-2); text-decoration: none; }
.dcard.dragging { opacity: .45; }
.dcard .t1 { font-weight: 600; font-size: 13.5px; }
.dcard .t2 { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dcard .t3 { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 6px; }
.dcard .amt { font: 600 12.5px/1 var(--mono); }
.dcard.stale { border-left: 3px solid var(--amber); }
.dropbar { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(620px, calc(100vw - 32px)); z-index: 40; transition: transform .18s; pointer-events: none; }
.dropbar.on { transform: translate(-50%, 0); pointer-events: auto; }
.dropbar .lane-col { min-height: 74px; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); border: 2px dashed var(--line-2); }
.dropbar .lane-col.won { background: var(--green-soft); } .dropbar .lane-col.lost { background: #f1f1f3; }
.dropbar .lane-col.drop { border-color: var(--brand); }
.pathbar { display: flex; gap: 3px; margin: 4px 0 18px; overflow-x: auto; }
.pathbar button { flex: 1; min-width: 96px; border: 0; padding: 9px 12px; background: #e6eaf1; font-weight: 600; font-size: 12.5px; cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); color: var(--ink-2); }
.pathbar button:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 8px 0 0 8px; }
.pathbar button.done { background: #cfe0ff; color: var(--brand); }
.pathbar button.cur { background: var(--brand); color: #fff; }
.pathbar button.won { background: var(--green); color: #fff; }
.pathbar button.lost { background: var(--red); color: #fff; }

/* timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tl li:last-child { border-bottom: 0; }
.tl .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); font-size: 14px; }
.tl .ico.stage { background: var(--gold-soft); }
.tl .meta { font-size: 12px; color: var(--muted); }
.tl .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 12px; font-size: 13.5px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand); border-color: var(--brand); text-decoration: none; }

/* onboarding steps */
.steps { display: grid; gap: 8px; }
.step { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.step:hover { text-decoration: none; border-color: var(--line-2); }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font: 700 12px/1 var(--mono); flex: none; }
.step.ok .n { background: var(--green); color: #fff; }
.step.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.step .d { font-size: 12.5px; color: var(--muted); }

/* documents & signing */
.docview { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; max-height: 62vh; overflow-y: auto; font: 15px/1.65 Georgia, 'Times New Roman', serif; color: #111; }
.docview h1, .docview h2, .docview h3 { font-family: var(--sans); margin: 1.2em 0 .5em; }
.docview .note { font: 13px var(--sans); background: var(--amber-soft); color: #6b4a08; padding: 10px 12px; border-radius: 8px; }
.docview .caps { text-transform: uppercase; font-weight: 600; }
.docview table { border-collapse: collapse; width: 100%; } .docview td, .docview th { border: 1px solid var(--line-2); padding: 6px 8px; text-align: left; }
@media (max-width: 600px) { .docview { padding: 18px 16px; } }
.sigpad { position: relative; border: 2px dashed var(--line-2); border-radius: 10px; background: #fff; touch-action: none; height: 170px; }
.sigpad canvas { width: 100%; height: 100%; display: block; border-radius: 8px; cursor: crosshair; }
.sigpad .line { position: absolute; left: 20px; right: 20px; bottom: 38px; border-top: 1px solid var(--line-2); pointer-events: none; }
.sigpad .x { position: absolute; left: 20px; bottom: 42px; color: var(--faint); pointer-events: none; }
.sigimg { max-height: 70px; background: #fff; }

/* training */
.lesson { font-size: 15px; line-height: 1.65; }
.lesson h3 { font-size: 17px; margin: 1.1em 0 .4em; } .lesson h4 { margin: 1em 0 .3em; }
.lesson .callout, .lesson .tip, .lesson .warn, .lesson .script, .lesson .example { border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.lesson .callout { background: var(--brand-soft); } .lesson .tip { background: var(--green-soft); } .lesson .warn { background: var(--red-soft); }
.lesson .script { background: #0b1626; color: #e7edf6; font-family: var(--mono); font-size: 13.5px; } .lesson .example { background: var(--gold-soft); }
.lesson table { border-collapse: collapse; width: 100%; font-size: 14px; } .lesson td, .lesson th { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.lesson blockquote { margin: 12px 0; padding-left: 14px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.q { padding: 14px 0; border-bottom: 1px solid var(--line); }
.q .opts { display: grid; gap: 6px; margin-top: 8px; }
.q .opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.q .opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.q .opt.right { border-color: var(--green); background: var(--green-soft); } .q .opt.wrong { border-color: var(--red); background: var(--red-soft); }
.q .why { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.modcard { display: flex; flex-direction: column; gap: 8px; padding: 16px; color: var(--ink); }
.modcard:hover { text-decoration: none; border-color: var(--line-2); }

/* modal, toast */
.modal-back { position: fixed; inset: 0; background: rgba(13, 23, 38, .45); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 16px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4); }
.modal.wide { width: min(860px, 100%); }
.modal .mh { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal .mb { padding: 18px; }
.modal .mf { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: 11px 14px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 500; max-width: 420px; }
.toast.bad { background: var(--red); }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth .side { background: radial-gradient(60% 60% at 80% 10%, rgba(91, 108, 255, .35), transparent 70%), radial-gradient(50% 50% at 10% 90%, rgba(15, 160, 95, .3), transparent 70%), var(--rail); color: #dfe6f1; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .side h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.auth .side p { color: #9fb0c8; max-width: 44ch; }
.auth .form { display: grid; place-items: center; padding: 32px 16px; }
.auth form { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .side { padding: 28px 20px; } .auth .side .big { display: none; } }

.notice { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.notice.warn { background: var(--amber-soft); color: #6b4a08; } .notice.bad { background: var(--red-soft); color: #8c2318; } .notice.info { background: var(--brand-soft); color: #1b37c7; } .notice.good { background: var(--green-soft); color: #0b6b40; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 700 12px/1 var(--sans); flex: none; }
.matrix td { text-align: center; } .matrix td:first-child { text-align: left; }
code.ach { display: block; white-space: pre; overflow-x: auto; font-size: 11px; background: var(--panel-2); padding: 10px; border-radius: 8px; }

/* ── Vibrant, bold, raised (owner directive, 29 Sep 2026) ──────────────────
   Colour that pops, heavy type, and surfaces that sit ABOVE the page: every
   card has a lit top edge and a layered shadow, and lifts a little under the
   pointer. Motion is off for anyone who asked for less. */
:root {
  --brand: #3d5afe; --brand-soft: #e6eaff; --ipms: #00b46a; --amdana: #6c4dff; --gold: #f59f00; --red: #f03e3e; --green: #0ca678;
  --bg: #eef2fb; --line: #dde3f0;
  --shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px rgba(20, 34, 80, .06), 0 10px 24px -10px rgba(20, 34, 80, .22);
  --shadow-up: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 4px 8px rgba(20, 34, 80, .08), 0 22px 40px -16px rgba(20, 34, 80, .35);
}
body { background: radial-gradient(1200px 600px at 100% -10%, rgba(108, 77, 255, .10), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(0, 180, 106, .10), transparent 60%), var(--bg); font-weight: 500; color: #0b1530; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
h2 { font-weight: 800; }
.rail { background: linear-gradient(180deg, #0b1740 0%, #131a4d 55%, #1a1257 100%); box-shadow: 4px 0 24px -12px rgba(0, 0, 0, .5); }
.rail a { font-weight: 600; }
.rail a.on { background: linear-gradient(90deg, #3d5afe, #6c4dff); box-shadow: 0 6px 16px -6px rgba(61, 90, 254, .8); }
.rail .brand .mark { background: linear-gradient(135deg, #00d084, #3d5afe 55%, #b04dff); box-shadow: 0 6px 14px -4px rgba(61, 90, 254, .7); font-weight: 800; }
.card, .kpi { box-shadow: var(--shadow); border-color: rgba(20, 34, 80, .08); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover, .kpi:hover { box-shadow: var(--shadow-up); }
.kpi { position: relative; overflow: hidden; padding-top: 18px; }
.kpi::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #3d5afe, #6c4dff); }
.kpi.gold::before { background: linear-gradient(90deg, #ffb703, #f76707); } .kpi.green::before { background: linear-gradient(90deg, #00d084, #0ca678); } .kpi.blue::before { background: linear-gradient(90deg, #22b8ff, #3d5afe); }
.kpi .v { font-size: 28px; font-weight: 800; }
.kpi .k { font-weight: 700; color: #3b4a6b; }
.kpi:hover, .modcard:hover, .dcard:hover, .step:hover { transform: translateY(-2px); }
.btn { font-weight: 700; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 2px 0 rgba(20, 34, 80, .12), 0 6px 12px -6px rgba(20, 34, 80, .25); transition: transform .08s, box-shadow .08s, background .15s; }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 2px 6px -4px rgba(20, 34, 80, .3); }
.btn.primary { background: linear-gradient(180deg, #5a73ff, #3d5afe); border-color: #2f49e0; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 3px 0 #2338b8, 0 10px 18px -8px rgba(61, 90, 254, .8); }
.btn.good { background: linear-gradient(180deg, #20c997, #0ca678); border-color: #099268; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 3px 0 #087f5b, 0 10px 18px -8px rgba(12, 166, 120, .7); }
.btn.danger.solid { background: linear-gradient(180deg, #ff6b6b, #f03e3e); box-shadow: 0 3px 0 #c92a2a, 0 10px 18px -8px rgba(240, 62, 62, .7); }
.pill { font-weight: 700; }
.pill.ipms { background: linear-gradient(90deg, #d3f9e8, #c3fae8); } .pill.amdana { background: linear-gradient(90deg, #e5dbff, #d0bfff); color: #5f3dc4; }
.dcard { box-shadow: 0 1px 0 #fff inset, 0 3px 8px -2px rgba(20, 34, 80, .14); border-radius: 12px; }
.dcard .t1 { font-weight: 800; }
.lane-col { background: linear-gradient(180deg, #e3e9f7, #dde4f4); box-shadow: inset 0 2px 6px rgba(20, 34, 80, .06); }
.pathbar button.cur { background: linear-gradient(90deg, #3d5afe, #6c4dff); }
.pathbar button.won { background: linear-gradient(90deg, #00d084, #0ca678); }
.topbar { background: rgba(238, 242, 251, .85); }
.auth .side h2 { font-weight: 800; background: linear-gradient(90deg, #fff, #c3cfff 60%, #9ff5d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notice { font-weight: 600; box-shadow: var(--shadow); }
table.t th { color: #3b4a6b; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .card, .kpi, .btn, .dcard, .step, .modcard { transition: none; } .kpi:hover, .modcard:hover, .dcard:hover, .step:hover { transform: none; } }
.cols > *, .stack > * { min-width: 0; }

/* narrated lessons: a stage that reads like a video, with the words always on screen */
.player .stage { position: relative; aspect-ratio: 16 / 9; max-height: 68vh; min-height: 340px; overflow-y: auto; padding: 30px 38px 40px;
  background: radial-gradient(120% 90% at 0% 0%, #eef2ff 0%, #fff 46%), #fff; border-bottom: 1px solid var(--line); scroll-behavior: smooth; }
.player .stage:fullscreen { aspect-ratio: auto; max-height: none; padding: 6vh 9vw; font-size: 1.25em; }
.player .slide { font-size: 16.5px; line-height: 1.7; max-width: 760px; margin: 0 auto; }
.player .slide.enter { animation: np-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes np-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.player .slide h3 { font-size: 24px; letter-spacing: -.015em; margin: 0 0 .6em; background: linear-gradient(90deg, var(--brand), var(--amdana)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.player .slide [data-s] { border-radius: 8px; transition: opacity .35s, background-color .35s, box-shadow .35s; }
.player .stage.playing .slide [data-s] { opacity: .5; }
.player .stage.playing .slide .said { opacity: .78; }
.player .stage.playing .slide .now { opacity: 1; }
.player .slide p[data-s], .player .slide blockquote[data-s] { padding: 4px 12px; margin-left: -12px; margin-right: -12px; }
.player .stage.playing .slide p.now, .player .stage.playing .slide blockquote.now { background: rgba(37, 71, 244, .07); box-shadow: inset 3px 0 0 var(--brand); }
.player .stage.playing .slide li.now, .player .stage.playing .slide tr.now { background: rgba(37, 71, 244, .07); }
.player .bigplay { position: absolute; inset: 0; margin: auto; width: 230px; height: 150px; display: grid; place-items: center; gap: 2px; border: 0; border-radius: 22px; cursor: pointer; color: #fff;
  background: linear-gradient(145deg, #3b5bff, #6c3bff); box-shadow: 0 18px 40px -14px rgba(37, 71, 244, .7), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s; }
.player .bigplay:hover { transform: translateY(-2px) scale(1.02); }
.player .bigplay span { font-size: 38px; line-height: 1; } .player .bigplay b { font-size: 17px; } .player .bigplay small { opacity: .85; }
.player .bigplay[hidden] { display: none; }
.np-bar { padding: 10px 18px 0; }
.np-prog { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.np-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--amdana)); transition: width .3s linear; }
.np-dots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.np-dot { width: 22px; height: 8px; border-radius: 6px; border: 0; background: var(--line-2); cursor: pointer; padding: 0; }
.np-dot.ok { background: var(--green); } .np-dot.on { background: var(--brand); width: 34px; }
.np-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px 14px; }
.np-ctl #np-status { margin-left: auto; }
#np-done.pulse { animation: np-pulse 1.4s ease-in-out 3; }
@keyframes np-pulse { 50% { box-shadow: 0 0 0 7px rgba(37, 71, 244, .22); } }
@media (max-width: 700px) {
  .player .stage { aspect-ratio: auto; min-height: 58vh; max-height: 64vh; padding: 20px 16px 30px; }
  .player .slide { font-size: 15.5px; } .player .slide h3 { font-size: 20px; }
  .np-ctl #np-status { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .player .slide.enter, #np-done.pulse { animation: none; } .player .stage { scroll-behavior: auto; } }

/* playbook: pick the product, the tier, the moment; then a deck to read aloud */
.pbh { margin: 22px 0 10px; font-size: 16px; }
.pbprod { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pbp { text-align: left; padding: 18px 20px; cursor: pointer; border: 2px solid transparent; display: grid; gap: 4px; font: inherit; }
.pbp b { font-size: 20px; } .pbp span { color: var(--ink-2); }
.pbp.on.ipms { border-color: var(--ipms); background: linear-gradient(135deg, var(--ipms-soft), #fff 70%); }
.pbp.on.amdana { border-color: var(--amdana); background: linear-gradient(135deg, var(--amdana-soft), #fff 70%); }
.pbtier { text-align: left; padding: 14px 16px; cursor: pointer; border: 2px solid transparent; font: inherit; }
.pbtier p { margin: 6px 0 0; } .pbtier.on { border-color: var(--brand); box-shadow: 0 10px 24px -14px rgba(37, 71, 244, .6); }
.pbstages { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.pbst { display: flex; gap: 12px; padding: 14px 16px; color: inherit; transition: transform .15s, box-shadow .15s; }
.pbst:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(13, 23, 38, .35); }
.pbst p { margin: 4px 0; font-size: 13px; color: var(--ink-2); }
.pbst .n, .guide .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(145deg, #3b5bff, #6c3bff); }
.pbpath { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin-bottom: 6px; }
.pbpath a { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.pbpath a b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: 11px; }
.pbpath a.on { background: var(--brand); color: #fff; border-color: var(--brand); } .pbpath a.on b { background: rgba(255, 255, 255, .25); }
.pbpath a:hover { text-decoration: none; }
.tierpick { margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); } a.chip:hover { text-decoration: none; }
.chip.use { background: var(--green-soft); border-color: transparent; color: var(--green); cursor: default; }
.chip.avoid { background: var(--red-soft); border-color: transparent; color: var(--red); text-decoration: line-through; cursor: default; }
.chip.obj { background: var(--gold-soft); border-color: transparent; color: #7a5208; }
.deck { overflow: hidden; }
.deck:fullscreen { overflow-y: auto; padding: 4vh 8vw; background: #fff; }
.deck-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.deck-body { padding: 24px 30px 18px; background: radial-gradient(120% 90% at 0% 0%, #eef2ff 0%, #fff 46%); min-height: 360px; }
.deck-title { font-size: 26px; letter-spacing: -.015em; background: linear-gradient(90deg, var(--brand), var(--amdana)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.deck-goal { color: var(--muted); margin: 6px 0 16px; }
.deck-say p, .say { font-size: 19px; line-height: 1.55; margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--brand); color: var(--ink); }
.say.ask, .deck-ask li { font-weight: 600; }
.say { font-size: 16px; }
.deck-ask { margin: 0; padding-left: 20px; font-size: 16.5px; line-height: 1.5; } .deck-ask li { margin-bottom: 6px; }
.deck-sec { margin-top: 16px; } .deck-sec h4 { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.deck-tier { margin: 10px 0 4px; padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); font-size: 16px; }
.deck-next { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--green-soft); font-size: 15.5px; }
mark.slot { background: #fff4c2; color: #7a5208; border-radius: 4px; padding: 0 4px; font-style: italic; }
mark.slot.ok { background: #e3f6ec; color: var(--green); font-style: normal; font-weight: 600; }
.deck-ctl { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.deck-ctl .np-dots { margin: 0 auto; }
.obj summary { padding: 12px 16px; cursor: pointer; font-weight: 600; } .obj .bd { padding-top: 0; }
.checklist .hd { flex-wrap: wrap; gap: 8px; }
.ck label { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; cursor: pointer; } .ck input { margin-top: 3px; }
.ck.ok span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.ckv { white-space: pre-line; overflow-wrap: anywhere; max-height: 12em; overflow-y: auto; margin: 0 0 6px 24px; font-size: 12.5px; color: var(--ink-2); background: var(--panel-2); border-radius: 6px; padding: 4px 8px; }
.gate li { padding: 5px 0; }
.guide { margin-bottom: 14px; } .guide h2 { display: flex; align-items: center; gap: 10px; } .guide h4 { margin: 12px 0 4px; }
td.num.bad { color: var(--red); font-weight: 700; }
@media (max-width: 700px) { .deck-body { padding: 18px 16px; } .deck-title { font-size: 21px; } .deck-say p { font-size: 17px; } }
@media print { .rail, .topbar, .crumbs, .page-actions, .btn { display: none !important; } .guide { break-inside: avoid; box-shadow: none; } }
/* method: frames, roots, the rule of 100 */
.pill.frame { background: linear-gradient(90deg, #3b5bff, #6c3bff); color: #fff; }
.pill.root-circumstances { background: #e0f2fe; color: #075985; }
.pill.root-other-people { background: #fef3c7; color: #92400e; }
.pill.root-self { background: #fce7f3; color: #9d174d; }
.method .card { height: 100%; } .method p { margin: 6px 0 0; }
.method-line { padding: 8px 10px; border-radius: 8px; background: var(--brand-soft); }
.rule100 .bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 120px; }
.rule100 .bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.rule100 .bar i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #6c3bff, #3b5bff); }
.rule100 .bar small { font-size: 11px; color: var(--muted); } .rule100 .bar b { font-size: 12px; }

/* SmartMeet, the add-on product (lane 6). */
.pill.smartmeet { background: var(--smartmeet-soft); color: var(--smartmeet); }
.pbp.on.smartmeet { border-color: var(--smartmeet); background: linear-gradient(135deg, var(--smartmeet-soft), #fff 70%); }

/* New practices (lead engine): filters wrap as a row of natural-width controls. */
.le-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.le-filters .i { width: auto; flex: 0 1 auto; min-width: 0; max-width: 100%; }
/* New practices: one header row per download day. */
.t tr.le-day th { text-align: left; background: var(--panel-2); font-weight: 600; padding-top: .6rem; }
