/* ============================================================
   Sellution — modules 10
   Purchase Orders · Print & Post · Logistics  (demo set 16)
   ============================================================ */

/* shared status pills */
.dm-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.dm-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dm-pill.ok { color: #0a8f5b; background: rgba(10, 143, 91, .1); }
.dm-pill.warn { color: #b06d00; background: rgba(251, 169, 25, .16); }
.dm-pill.primary { color: #3953a5; background: rgba(57, 83, 165, .1); }
.dm-pill.muted { color: #5b6b80; background: rgba(91, 107, 128, .1); }

/* ======================= PURCHASE ORDERS ======================= */
.po { display: flex; flex-direction: column; }
.po-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.po-sum .s { display: flex; flex-direction: column; gap: 1px; }
.po-sum .s b { font-size: 1.55rem; font-weight: 800; color: var(--ink); font-family: var(--font-display); line-height: 1.05; }
.po-sum .s span { font-size: .76rem; color: var(--muted); }
.po-new { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: .82rem; padding: 9px 14px; border-radius: 10px; cursor: pointer; }
.po-new svg { width: 15px; height: 15px; }
.po-new:hover { border-color: var(--primary); color: var(--primary); }
.po-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
@media (max-width: 820px) { .po-main { grid-template-columns: 1fr; } }
.po-list { border-right: 1px solid var(--line); }
@media (max-width: 820px) { .po-list { border-right: 0; border-bottom: 1px solid var(--line); } }
.po-row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 15px 20px; cursor: pointer; transition: background .15s; font-family: var(--font-body); }
.po-row:last-child { border-bottom: 0; }
.po-row:hover { background: var(--bg-2); }
.po-row.on { background: var(--primary-soft); }
.po-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-tint); color: var(--primary); flex: none; }
.po-ic svg { width: 17px; height: 17px; }
.po-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.po-row-b b { font-size: .9rem; color: var(--ink); font-weight: 700; }
.po-row-b em { font-style: normal; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-row-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.po-row-v { font-weight: 800; color: var(--ink); font-size: .9rem; font-variant-numeric: tabular-nums; }
.po-detail { padding: 24px; }
.po-d-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.po-d-id { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); letter-spacing: .03em; }
.po-d-h h4 { margin: 3px 0 2px; font-size: 1.15rem; color: var(--ink); font-weight: 800; }
.po-d-sub { font-size: .8rem; color: var(--muted); }
.po-track { display: flex; gap: 6px; margin: 20px 0; }
.po-tk { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; }
.po-tk::before { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.po-tk:first-child::before { display: none; }
.po-tk.done::before, .po-tk.now::before { background: var(--primary); }
.po-tk-d { position: relative; z-index: 1; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); color: var(--muted); font-size: .76rem; font-weight: 800; }
.po-tk-d svg { width: 13px; height: 13px; }
.po-tk.done .po-tk-d { background: var(--primary); border-color: var(--primary); color: #fff; }
.po-tk.now .po-tk-d { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.po-tk-l { font-size: .68rem; color: var(--muted); text-align: center; font-weight: 600; line-height: 1.2; }
.po-tk.now .po-tk-l, .po-tk.done .po-tk-l { color: var(--ink); }
.po-lines { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.po-line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 15px; font-size: .86rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.po-line:last-child { border-bottom: 0; }
.po-line.head { background: var(--bg-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.po-line .muted { color: var(--muted); }
.po-line.total { font-weight: 800; background: var(--bg-2); }
.po-appr { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ok); background: var(--ok-soft); border-radius: 10px; padding: 9px 13px; }
.po-appr svg { width: 16px; height: 16px; flex: none; }
.po-d-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.po-btn, .lg-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--primary); color: #fff; border: 0; font-family: var(--font-body); font-weight: 700; font-size: .85rem; padding: 11px 18px; border-radius: 11px; cursor: pointer; transition: background .15s; }
.po-btn:hover, .lg-btn:hover { background: var(--primary-2); }
.po-btn svg, .lg-btn svg { width: 15px; height: 15px; }
.po-btn.ghost, .lg-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.po-btn.ghost:hover, .lg-btn.ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ======================= PRINT & POST ======================= */
.pp { display: flex; flex-direction: column; }
.pp-tabs { display: flex; gap: 4px; padding: 6px 14px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.pp-tab { border: 0; background: none; font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--muted); padding: 12px 12px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.pp-tab:hover { color: var(--ink); }
.pp-tab.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.pp-body { padding: 22px 24px; }
.pp-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pp-hint { font-size: .82rem; color: var(--muted); }
.pp-bar-r { margin-left: auto; display: flex; gap: 10px; }
.pp-primary { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; border: 0; font-family: var(--font-body); font-weight: 700; font-size: .82rem; padding: 9px 15px; border-radius: 10px; cursor: pointer; }
.pp-bar-r .pp-primary { margin-left: 0; }
.pp-primary svg { width: 15px; height: 15px; }
.pp-primary:hover { background: var(--primary-2); }
.pp-ghost { border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: .8rem; padding: 7px 13px; border-radius: 9px; cursor: pointer; }
.pp-ghost:hover { border-color: var(--primary); color: var(--primary); }
.pp-ghost.danger:hover { border-color: #c0392b; color: #c0392b; }
.pp-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font-family: var(--font-body); font-weight: 700; font-size: .85rem; cursor: pointer; padding: 0; }
.pp-back svg { width: 15px; height: 15px; }
.pp-back:hover { color: var(--ink); }
.pp-jobs, .pp-list { display: flex; flex-direction: column; gap: 10px; }
.pp-job { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; cursor: pointer; font-family: var(--font-body); transition: border-color .15s, box-shadow .15s; }
.pp-job:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.pp-job-ic, .pp-card-ic, .pp-doc-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-tint); color: var(--primary); flex: none; }
.pp-job-ic svg, .pp-card-ic svg, .pp-doc-ic svg { width: 17px; height: 17px; }
.pp-job-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-job-b b { font-size: .92rem; color: var(--ink); font-weight: 700; }
.pp-job-b em { font-style: normal; font-size: .78rem; color: var(--muted); }
.pp-job > svg { width: 17px; height: 17px; color: var(--muted-2); flex: none; }
.pp-lrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; }
.pp-lrow-b { display: flex; flex-direction: column; gap: 2px; }
.pp-lrow-b b { font-size: .9rem; color: var(--ink); font-weight: 700; }
.pp-lrow-b em { font-style: normal; font-size: .78rem; color: var(--muted); }
.pp-job-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; }
@media (max-width: 820px) { .pp-job-grid { grid-template-columns: 1fr; } }
.pp-rec, .pp-letter { border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; margin-bottom: 14px; }
.pp-rec-h { display: flex; align-items: center; gap: 7px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.pp-rec-h svg { width: 14px; height: 14px; }
.pp-rec b { display: block; font-size: .95rem; color: var(--ink); margin-bottom: 4px; }
.pp-rec span { display: block; font-size: .85rem; color: var(--body); line-height: 1.5; }
.pp-letter p { margin: 0 0 9px; font-size: .85rem; color: var(--body); line-height: 1.55; }
.pp-letter ul { margin: 0 0 9px; padding-left: 18px; }
.pp-letter li { font-size: .85rem; color: var(--body); margin-bottom: 3px; }
.pp-sign { font-style: italic; color: var(--muted); }
.pp-docs { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; align-self: start; }
.pp-docs-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.pp-mini { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: .74rem; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.pp-mini svg { width: 13px; height: 13px; }
.pp-doc { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.pp-doc:last-child { border-bottom: 0; }
.pp-doc-ic { width: 30px; height: 30px; }
.pp-doc-ic svg { width: 15px; height: 15px; }
.pp-doc-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pp-doc-b b { font-size: .84rem; color: var(--ink); font-weight: 700; }
.pp-doc-b em { font-style: normal; font-size: .72rem; color: var(--muted); }
.pp-doc-a { display: flex; gap: 7px; flex: none; }
.pp-mark { display: inline-flex; align-items: center; gap: 5px; border: 0; background: var(--primary); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .76rem; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.pp-mark svg { width: 13px; height: 13px; }
.pp-mark.done { background: var(--ok-soft); color: var(--ok); }
.pp-subtabs { display: inline-flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin-bottom: 16px; }
.pp-subtab { border: 0; background: none; font-family: var(--font-body); font-weight: 700; font-size: .8rem; color: var(--muted); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.pp-subtab.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.pp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pp-card { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 15px 16px; }
.pp-card-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pp-card-b b { font-size: .9rem; color: var(--ink); font-weight: 700; }
.pp-card-b em { font-style: normal; font-size: .77rem; color: var(--muted); }
.pp-card > svg { width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.pp-tags i { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: 6px; }
.pp-settings { max-width: 720px; }
.pp-check { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px; margin: 14px 0 18px; cursor: pointer; }
.pp-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.pp-check b { display: block; font-size: .88rem; color: var(--ink); }
.pp-check em { font-style: normal; font-size: .78rem; color: var(--muted); }
.pp-field { margin-bottom: 14px; }
.pp-field label { display: block; font-size: .76rem; font-weight: 700; color: var(--body); margin-bottom: 6px; }
.pp-select { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 13px; font-size: .85rem; color: var(--ink); background: #fff; }
.pp-select svg { width: 15px; height: 15px; color: var(--muted); }
.pp-field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* ======================= LOGISTICS ======================= */
.lg { display: flex; flex-direction: column; }
.lg-tabs { display: flex; gap: 4px; padding: 8px 16px 0; border-bottom: 1px solid var(--line); }
.lg-tab { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; font-family: var(--font-body); font-weight: 700; font-size: .86rem; color: var(--muted); padding: 11px 14px; cursor: pointer; border-bottom: 2px solid transparent; }
.lg-tab svg { width: 16px; height: 16px; }
.lg-tab:hover { color: var(--ink); }
.lg-tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.lg-shp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
@media (max-width: 820px) { .lg-shp { grid-template-columns: 1fr; } }
.lg-list { border-right: 1px solid var(--line); }
@media (max-width: 820px) { .lg-list { border-right: 0; border-bottom: 1px solid var(--line); } }
.lg-row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 15px 20px; cursor: pointer; transition: background .15s; font-family: var(--font-body); }
.lg-row:last-child { border-bottom: 0; }
.lg-row:hover { background: var(--bg-2); }
.lg-row.on { background: var(--primary-soft); }
.lg-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-tint); color: var(--primary); flex: none; }
.lg-ic svg { width: 17px; height: 17px; }
.lg-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lg-row-b b { font-size: .9rem; color: var(--ink); font-weight: 700; }
.lg-row-b em { font-style: normal; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-detail { padding: 24px; }
.lg-d-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.lg-d-id { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); letter-spacing: .03em; }
.lg-d-h h4 { margin: 3px 0 2px; font-size: 1.15rem; color: var(--ink); font-weight: 800; }
.lg-d-sub { font-size: .8rem; color: var(--muted); }
.lg-tl { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }
.lg-step { display: flex; align-items: center; gap: 12px; position: relative; padding-bottom: 18px; }
.lg-step:last-child { padding-bottom: 0; }
.lg-step::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line-2); }
.lg-step:last-child::before { display: none; }
.lg-step.done::before { background: var(--ok); }
.lg-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); color: #fff; flex: none; }
.lg-dot svg { width: 12px; height: 12px; }
.lg-step.done .lg-dot { background: var(--ok); border-color: var(--ok); }
.lg-step.now .lg-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lg-step-l { font-size: .88rem; color: var(--muted); font-weight: 600; }
.lg-step.done .lg-step-l, .lg-step.now .lg-step-l { color: var(--ink); font-weight: 700; }
.lg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.lg-kv { background: #fff; padding: 12px 15px; display: flex; flex-direction: column; gap: 3px; }
.lg-kv span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.lg-kv b { font-size: .87rem; color: var(--ink); font-weight: 700; }
.lg-eta { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink); background: var(--bg-2); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.lg-eta svg { width: 15px; height: 15px; color: var(--primary); flex: none; }
.lg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lg-link { font-size: .82rem; font-weight: 700; color: var(--primary); cursor: pointer; }
.lg-link:hover { text-decoration: underline; }
/* logistics · storage tables */
.lg-store { padding: 20px 22px; }
.lg-subtabs { display: inline-flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin-bottom: 16px; }
.lg-subtab { border: 0; background: none; font-family: var(--font-body); font-weight: 700; font-size: .8rem; color: var(--muted); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.lg-subtab.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.lg-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lg-search { flex: 1; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 13px; max-width: 360px; }
.lg-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.lg-search input { border: 0; outline: 0; background: none; font-family: var(--font-body); font-size: .85rem; color: var(--ink); width: 100%; }
.lg-toolbar .lg-btn { margin-left: auto; }
.lg-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lg-thead, .lg-trow { display: grid; align-items: center; gap: 12px; padding: 13px 18px; }
.lg-thead.loc, .lg-trow.loc { grid-template-columns: minmax(0,1.4fr) minmax(0,2.2fr) minmax(0,1fr) minmax(0,.8fr) minmax(0,.9fr); }
.lg-thead.prod, .lg-trow.prod { grid-template-columns: minmax(0,1.8fr) minmax(0,1.4fr) minmax(0,1.2fr) minmax(0,.8fr) minmax(0,.9fr); }
.lg-thead { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.lg-trow { border-bottom: 1px solid var(--line); font-size: .85rem; }
.lg-trow:last-child { border-bottom: 0; }
.lg-strong { color: var(--ink); font-weight: 700; }
.lg-mut { color: var(--muted); }
.lg-group { display: flex; align-items: center; gap: 9px; padding: 11px 18px; background: var(--bg-tint); border-bottom: 1px solid var(--line); font-size: .88rem; font-weight: 800; color: var(--ink); }
.lg-group i { font-style: normal; font-weight: 600; color: var(--muted); font-size: .8rem; }
.lg-grp-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #fff; color: var(--primary); }
.lg-grp-ic svg { width: 15px; height: 15px; }

/* ======================= CONTACT-RECORD PANELS (timeline mirror) ======================= */
.ctl-note { display: flex; align-items: center; gap: 9px; font-size: .86rem; color: var(--body); margin: 8px 0 0; }
.ctl-note svg { width: 17px; height: 17px; color: var(--ok); flex: none; }
.ctl-note b { color: var(--ink); }
.ctl { padding: 16px 18px; }
.ctl-ctx { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.ctl-ctx > div { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.ctl-ctx b { font-size: .95rem; color: var(--ink); font-weight: 800; }
.ctl-ctx span:not(.dm-pill):not(.ctl-av) { font-size: .78rem; color: var(--muted); }
.ctl-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .82rem; font-weight: 800; flex: none; }
.ctl-deal { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ctl-deal-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; background: var(--bg-2); }
.ctl-deal-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; color: var(--primary); flex: none; }
.ctl-deal-ic svg { width: 16px; height: 16px; }
.ctl-deal-h b { font-size: .92rem; color: var(--ink); font-weight: 800; flex: 1; min-width: 160px; }
.ctl-inv { font-family: var(--font-mono); font-size: .68rem; color: var(--primary); background: var(--primary-soft); padding: 3px 8px; border-radius: 6px; }
.ctl-deal-sub { font-size: .8rem; color: var(--muted); padding: 11px 16px 6px; }
.ctl-subs { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ctl-sub { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.ctl-sub.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.ctl-sub-h { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 0; padding: 11px 14px; cursor: pointer; font-family: var(--font-body); }
.ctl-sub-h b { font-size: .85rem; color: var(--ink); font-weight: 700; flex: 1; }
.ctl-sub-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--bg-tint); color: var(--primary); flex: none; }
.ctl-sub-ic svg { width: 15px; height: 15px; }
.ctl-sub.hl .ctl-sub-ic { background: var(--accent-soft); color: var(--gold); }
.ctl-chev { color: var(--muted-2); display: grid; place-items: center; transition: transform .18s; }
.ctl-chev svg { width: 16px; height: 16px; }
.ctl-sub.open .ctl-chev { transform: rotate(180deg); }
.ctl-sub-body { padding: 0 14px 13px 50px; }
.ctl-sub-txt { font-size: .83rem; color: var(--body); }
.ctl-ship { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.ctl-ship-n { font-size: .82rem; color: var(--ink); font-weight: 600; }
.ctl-ship-meta { font-size: .76rem; color: var(--muted); }
.ctl-view { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; color: var(--primary); cursor: pointer; }
.ctl-view svg { width: 14px; height: 14px; }
.ctl-view:hover { text-decoration: underline; }
.ctl-aml-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.ctl-aml-h { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 800; color: var(--ink); }
.ctl-aml-h svg { width: 17px; height: 17px; color: var(--primary); }
.ctl-aml-act { display: flex; gap: 8px; }

/* ======================= AML / COMPLIANCE (mature) ======================= */
#amlApp.aml { display: block; grid-template-columns: none; }
.aml2 { display: flex; flex-direction: column; }
.aml2-tabs { display: flex; gap: 8px; padding: 12px 16px 0; border-bottom: 1px solid var(--line); }
.aml2-tab { border: 1px solid transparent; border-bottom: 0; background: none; font-family: var(--font-body); font-weight: 700; font-size: .86rem; color: var(--muted); padding: 10px 18px; border-radius: 10px 10px 0 0; cursor: pointer; }
.aml2-tab:hover { color: var(--ink); background: var(--bg-2); }
.aml2-tab.on { color: var(--primary); background: #fff; border-color: var(--line); border-bottom: 1px solid #fff; margin-bottom: -1px; box-shadow: 0 -2px 0 var(--primary) inset; }
.aml2-body { padding: 22px 24px; }
.aml2-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; flex: none; }
.aml2-av.lg { width: 46px; height: 46px; font-size: .92rem; }
/* checks list */
.aml2-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.aml2-fil { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--body); font-family: var(--font-body); font-weight: 700; font-size: .82rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.aml2-fil i { font-style: normal; font-size: .72rem; background: var(--bg-tint); color: var(--muted); padding: 1px 7px; border-radius: 999px; }
.aml2-fil.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.aml2-fil.on i { background: rgba(255,255,255,.25); color: #fff; }
.aml2-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.aml2-thead, .aml2-trow { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.2fr) 34px; align-items: center; gap: 12px; padding: 13px 18px; }
.aml2-thead { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.aml2-trow { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font-family: var(--font-body); transition: background .15s; }
.aml2-trow:last-child { border-bottom: 0; }
.aml2-trow:hover { background: var(--bg-2); }
.aml2-c-name { display: flex; align-items: center; gap: 11px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.aml2-c-mut { font-size: .84rem; color: var(--muted); }
.aml2-c-ar { color: var(--muted-2); display: grid; place-items: center; }
.aml2-c-ar svg { width: 16px; height: 16px; }
.aml2-count { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.aml2-empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: .86rem; }
/* checks detail */
.aml2-d-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.aml2-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font-family: var(--font-body); font-weight: 700; font-size: .85rem; cursor: pointer; padding: 0; }
.aml2-back svg { width: 15px; height: 15px; }
.aml2-back:hover { color: var(--ink); }
.aml2-d-actions { display: flex; gap: 8px; }
.aml2-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; border: 0; font-family: var(--font-body); font-weight: 700; font-size: .82rem; padding: 9px 15px; border-radius: 10px; cursor: pointer; }
.aml2-btn svg { width: 14px; height: 14px; }
.aml2-btn:hover { background: var(--primary-2); }
.aml2-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.aml2-btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.aml2-btn.danger { background: #fff; color: #c0392b; border: 1px solid rgba(192,57,43,.3); }
.aml2-btn.danger:hover { background: rgba(192,57,43,.06); }
.aml2-d-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
.aml2-d-head h4 { margin: 0 0 2px; font-size: 1.05rem; color: var(--ink); font-weight: 800; }
.aml2-d-head > div { flex: 1; }
.aml2-d-head span:not(.aml2-av):not(.dm-pill) { font-size: .82rem; color: var(--muted); }
.aml2-runbox { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; background: var(--bg-2); }
.aml2-htable { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.aml2-hhead, .aml2-hrow { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1.2fr) minmax(0,.9fr) minmax(0,1.1fr) minmax(0,1fr) 70px; align-items: center; gap: 12px; padding: 12px 18px; font-size: .82rem; }
.aml2-hhead { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.aml2-hrow { border-bottom: 1px solid var(--line); color: var(--ink); }
.aml2-hrow:last-child { border-bottom: 0; }
.aml2-chan { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.aml2-ov { color: var(--primary); font-weight: 700; cursor: pointer; font-size: .78rem; }
.aml2-ov:hover { text-decoration: underline; }
/* settings */
.aml2-set-h h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; font-size: 1.3rem; color: var(--ink); font-weight: 800; }
.aml2-set-h h3 svg { width: 22px; height: 22px; color: var(--primary); }
.aml2-set-h p { margin: 0 0 20px; font-size: .88rem; color: var(--muted); max-width: 560px; }
.aml2-set-grid { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 22px; }
@media (max-width: 760px) { .aml2-set-grid { grid-template-columns: 1fr; } }
.aml2-secnav { display: flex; flex-direction: column; gap: 6px; }
.aml2-secnav-h { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 700; padding: 0 4px 4px; }
.aml2-sec { text-align: left; border: 1px solid transparent; background: none; border-radius: 11px; padding: 11px 14px; cursor: pointer; font-family: var(--font-body); display: flex; flex-direction: column; gap: 2px; border-left: 3px solid transparent; }
.aml2-sec b { font-size: .88rem; color: var(--ink); font-weight: 700; }
.aml2-sec em { font-style: normal; font-size: .76rem; color: var(--muted); }
.aml2-sec:hover { background: var(--bg-2); }
.aml2-sec.on { background: var(--primary-soft); border-left-color: var(--primary); }
.aml2-active { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); border-radius: 11px; padding: 11px 14px; }
.aml2-active .d { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.aml2-set-main { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.aml2-conn h4 { margin: 0 0 5px; font-size: 1.05rem; color: var(--ink); font-weight: 800; }
.aml2-conn > p { margin: 0 0 14px; font-size: .85rem; color: var(--muted); }
.aml2-conn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 18px 0; padding: 18px 0; border-top: 1px solid var(--line); }
.aml2-kv { display: flex; flex-direction: column; gap: 4px; }
.aml2-kv span { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.aml2-kv b { font-size: .92rem; color: var(--ink); font-weight: 700; }
.aml2-kv b.mono { font-family: var(--font-mono); font-size: .85rem; }
.aml2-conn-foot { display: flex; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.aml2-field { margin-bottom: 14px; }
.aml2-field label { display: block; font-size: .76rem; font-weight: 700; color: var(--body); margin-bottom: 6px; }
.aml2-input { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 13px; font-size: .85rem; color: var(--ink); font-family: var(--font-mono); background: var(--bg-2); }
/* providers */
.aml2-prov-h h3 { margin: 0 0 5px; font-size: 1.2rem; color: var(--ink); font-weight: 800; }
.aml2-prov-h p { margin: 0 0 20px; font-size: .88rem; color: var(--muted); }
.aml2-prov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.aml2-prov { border: 1px solid var(--line); border-radius: 16px; padding: 20px; border-top: 4px solid var(--pc); display: flex; flex-direction: column; }
.aml2-prov.on { box-shadow: 0 0 0 1px var(--pc); }
.aml2-prov-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.aml2-prov-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--pc) 12%, #fff); color: var(--pc); }
.aml2-prov-ic svg { width: 20px; height: 20px; }
.aml2-prov h4 { margin: 0 0 5px; font-size: 1.1rem; color: var(--ink); font-weight: 800; }
.aml2-prov > p { margin: 0 0 14px; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.aml2-prov ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.aml2-prov li { display: flex; align-items: flex-start; gap: 9px; font-size: .83rem; color: var(--body); }
.aml2-prov li svg { width: 15px; height: 15px; color: var(--pc); flex: none; margin-top: 2px; }
.aml2-prov-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: .85rem; padding: 11px; border-radius: 11px; cursor: pointer; }
.aml2-prov-btn svg { width: 15px; height: 15px; }
.aml2-prov.on .aml2-prov-btn { background: color-mix(in srgb, var(--pc) 10%, #fff); border-color: color-mix(in srgb, var(--pc) 30%, #fff); color: var(--pc); }
.aml2-prov-btn:hover { border-color: var(--pc); color: var(--pc); }

/* ======================= INVENTORY TABS ======================= */
.inv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.inv-tab { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--body); font-family: var(--font-body); font-weight: 700; font-size: .88rem; padding: 10px 18px; border-radius: 11px; cursor: pointer; transition: all .15s; }
.inv-tab svg { width: 16px; height: 16px; color: var(--muted); }
.inv-tab:hover { border-color: var(--line-2); color: var(--ink); }
.inv-tab.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.inv-tab.on svg { color: #fff; }
.inv-pane[hidden] { display: none; }
/* inventory · list view + view toggle */
.inv-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inv-count-n { font-size: .82rem; color: var(--muted); }
.inv-vtoggle { display: inline-flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.inv-vbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font-family: var(--font-body); font-weight: 700; font-size: .78rem; color: var(--muted); padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.inv-vbtn svg { width: 14px; height: 14px; }
.inv-vbtn:hover { color: var(--ink); }
.inv-vbtn.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.inv-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.inv-lhead, .inv-lrow { display: grid; grid-template-columns: minmax(0,2.4fr) minmax(0,1.3fr) minmax(0,1.1fr) minmax(0,.7fr) minmax(0,1fr) 30px; align-items: center; gap: 12px; padding: 12px 16px; }
.inv-lhead { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.inv-lrow { width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font-family: var(--font-body); transition: background .15s; }
.inv-lrow:last-child { border-bottom: 0; }
.inv-lrow:hover { background: var(--bg-2); }
.inv-lrow.sel { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.inv-l-prod { display: flex; align-items: center; gap: 11px; min-width: 0; }
.inv-l-thumb { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; flex: none; }
.inv-l-thumb svg { width: 18px; height: 18px; }
.inv-l-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inv-l-tx b { font-size: .88rem; color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-l-tx em { font-style: normal; font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-l-grade { font-size: .82rem; color: var(--muted); }
.inv-l-price { font-size: .85rem; color: var(--ink); font-weight: 700; }
.inv-l-live { display: inline-flex; align-items: center; gap: 6px; }
.inv-l-live .d { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.inv-l-qty { font-size: .82rem; color: var(--muted); }
.inv-l-ar { color: var(--muted-2); display: grid; place-items: center; }
.inv-l-ar svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .inv-lhead, .inv-lrow { grid-template-columns: minmax(0,2fr) minmax(0,1fr) 30px; }
  .inv-l-grade, .inv-l-qty, .inv-l-status { display: none; }
}

/* ======================= LEAD MANAGEMENT · DATA AUTOMATIONS ======================= */
.lm-da-list { display: flex; flex-direction: column; gap: 10px; }
.lm-da-row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; cursor: pointer; font-family: var(--font-body); transition: border-color .15s, box-shadow .15s; }
.lm-da-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.lm-da-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--gold); flex: none; }
.lm-da-ic svg { width: 18px; height: 18px; }
.lm-da-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lm-da-tx b { font-size: .92rem; color: var(--ink); font-weight: 700; }
.lm-da-tx em { font-style: normal; font-size: .79rem; color: var(--muted); }
.lm-da-st { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--ok); flex: none; }
.lm-da-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.lm-da-row > svg { width: 17px; height: 17px; color: var(--muted-2); flex: none; }
.lm-da-detail-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lm-da-back { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; flex: none; }
.lm-da-back:hover { border-color: var(--primary); color: var(--primary); }
.lm-da-back svg { width: 18px; height: 18px; }
.lm-da-detail-h > div { flex: 1; }
.lm-da-title { font-size: 1.5rem; font-weight: 800; color: var(--ink); font-family: var(--font-display); line-height: 1.1; }
.lm-da-meta { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.lm-da-active { color: var(--ok); font-weight: 700; }
.lm-da-actions { display: flex; gap: 9px; flex: none; }
.lm-act.primary.sm { padding: 8px 14px; font-size: .82rem; }
.lm-da-sec { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin: 22px 0 14px; display: flex; flex-direction: column; gap: 2px; }
.lm-da-sec span { font-size: .8rem; font-weight: 500; color: var(--muted); }
.lm-da-flow { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding-bottom: 10px; }
.lm-da-arrow { display: grid; place-items: center; color: var(--muted-2); flex: none; }
.lm-da-arrow svg { width: 18px; height: 18px; }
.lm-da-step { flex: none; width: 200px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.lm-da-step-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; margin-bottom: 12px; }
.lm-da-step-ic svg { width: 21px; height: 21px; }
.lm-da-step-n { font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: var(--muted-2); }
.lm-da-step-t { font-size: .95rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.lm-da-step-d { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.lm-da-an { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .lm-da-an { grid-template-columns: 1fr; } }
.lm-da-an-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.lm-da-an-card h5 { margin: 0 0 14px; font-size: .72rem; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
.lm-da-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 0; color: var(--muted-2); font-size: .84rem; }
.lm-da-empty svg { width: 26px; height: 26px; }
.lm-da-journey { display: flex; flex-direction: column; gap: 13px; }
.lm-da-jrow { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 12px; }
.lm-da-jlab { font-size: .82rem; color: var(--body); }
.lm-da-jtrack { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.lm-da-jtrack i { display: block; height: 100%; border-radius: 999px; }
.lm-da-jval { font-size: .85rem; font-weight: 800; color: var(--ink); text-align: right; }

/* customer distribution */
.lm-cd-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.lm-cd-tab { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-family: var(--font-body); font-weight: 700; font-size: .84rem; padding: 9px 15px; border-radius: 10px; cursor: pointer; }
.lm-cd-tab svg { width: 15px; height: 15px; }
.lm-cd-tab:hover { color: var(--ink); }
.lm-cd-tab.on { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.lm-cd-cols { grid-template-columns: minmax(0,1.4fr) minmax(0,1.6fr) minmax(0,1.2fr) minmax(0,1.2fr) 96px; }
.lm-cd-cols .r { display: flex; justify-content: flex-end; }
.lm-cd-done { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 700; font-size: .8rem; }
.lm-cd-done svg { width: 14px; height: 14px; }

/* workflow builder */
.lm-bld { display: grid; grid-template-columns: 212px 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); }
@media (max-width: 680px) { .lm-bld { grid-template-columns: 1fr; } }
.lm-bld-side { background: #fff; border-right: 1px solid var(--line); padding: 16px; max-height: 600px; overflow-y: auto; }
@media (max-width: 680px) { .lm-bld-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: none; } }
.lm-bld-side-h { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 800; margin-bottom: 4px; }
.lm-bld-cat { font-size: .67rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 800; margin: 15px 0 8px; }
.lm-bld-pal { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 7px; font-size: .84rem; font-weight: 600; color: var(--ink); cursor: grab; background: #fff; transition: border-color .15s, box-shadow .15s; }
.lm-bld-pal:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.lm-bld-pic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none; }
.lm-bld-pic svg { width: 15px; height: 15px; }
.lm-bld-canvas { padding: 30px 20px 44px; display: flex; flex-direction: column; align-items: center; overflow: auto; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px; }
.lm-bld-start { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lm-bld-bolt { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #1d2a44, #0f1d33); color: var(--accent); box-shadow: 0 14px 30px -12px rgba(15,29,51,.55); }
.lm-bld-bolt svg { width: 30px; height: 30px; }
.lm-bld-bolt svg path { fill: var(--accent); stroke: var(--accent); }
.lm-bld-start b { font-size: .78rem; font-weight: 800; letter-spacing: .09em; color: var(--ink); margin-top: 8px; }
.lm-bld-start em { font-style: normal; font-size: .72rem; color: var(--muted-2); }
.lm-bld-flow { display: flex; flex-direction: column; align-items: center; }
.lm-bld-conn { width: 2px; height: 22px; background: var(--line-2); }
.lm-bld-node { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; min-width: 236px; box-shadow: var(--shadow-sm); }
.lm-bld-nic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: none; }
.lm-bld-nic svg { width: 17px; height: 17px; }
.lm-bld-nt { font-size: .88rem; font-weight: 700; color: var(--ink); }
.lm-bld-ns { font-size: .76rem; color: var(--muted); }

/* ======================= RECRUITMENT ======================= */
.rec { position: relative; }
.rec-dash-h { margin-bottom: 18px; }
.rec-title { font-size: 1.6rem; font-weight: 800; color: var(--ink); font-family: var(--font-display); }
.rec-sub { font-size: .9rem; color: var(--muted); margin-top: 3px; max-width: 640px; }
.rec-create { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.rec-create input { flex: 1; min-width: 220px; max-width: 380px; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; font-family: var(--font-body); font-size: .9rem; color: var(--ink); }
.rec-create-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--ok); color: #fff; border: 0; font-family: var(--font-body); font-weight: 700; font-size: .88rem; padding: 11px 18px; border-radius: 10px; cursor: pointer; }
.rec-create-btn svg { width: 15px; height: 15px; }
.rec-create-btn:hover { background: #097a4d; }
.rec-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.rec-stat { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 18px 20px; }
.rec-stat span { font-size: .82rem; color: var(--muted); }
.rec-stat b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); margin-top: 4px; }
.rec-camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.rec-camp { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 18px; }
.rec-camp-h b { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.rec-camp-h span { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.rec-camp-stats { display: flex; gap: 18px; margin: 14px 0; }
.rec-camp-stats span { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--body); font-weight: 600; }
.rec-camp-stats svg { width: 15px; height: 15px; color: var(--ok); }
.rec-camp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-cbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: .8rem; padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.rec-cbtn svg { width: 14px; height: 14px; color: var(--muted); }
.rec-cbtn:hover { border-color: var(--primary); color: var(--primary); }
.rec-cbtn:hover svg { color: var(--primary); }
.rec-legend { display: flex; align-items: center; gap: 9px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; margin-bottom: 16px; font-size: .85rem; color: var(--body); }
.rec-legend svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
.rec-legend b { color: var(--ink); }

/* ======================= MARKETPLACE AREA (world first) ======================= */
.mp-hero { max-width: 760px; }
.mp-flag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.mp-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--ink); margin: 16px 0 12px; line-height: 1.08; letter-spacing: -.01em; }
.mp-lede { font-size: 1.02rem; color: var(--body); line-height: 1.6; }
.mp-block { margin-top: 34px; }
.mp-h { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; margin-bottom: 16px; }
.mp-sellers { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
@media (max-width: 860px) { .mp-sellers { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .mp-sellers { grid-template-columns: 1fr; } }
.mp-seller { border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 20px; }
.mp-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 13px; }
.mp-ic svg { width: 22px; height: 22px; }
.mp-seller b { display: block; font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.mp-seller em { font-style: normal; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.mp-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .mp-paths { grid-template-columns: 1fr; } }
.mp-path { position: relative; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, #16223c, #0f1d33); color: #fff; padding: 26px; overflow: hidden; }
.mp-path-n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: rgba(251,169,25,.35); line-height: 1; }
.mp-path h4 { margin: 10px 0 8px; font-size: 1.25rem; font-weight: 800; }
.mp-path p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.74); line-height: 1.6; }
.mp-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, var(--accent-soft), #fff); }
.mp-cta-tx { flex: 1; min-width: 240px; }
.mp-cta-tx b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.mp-cta-tx span { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.mp-cta-btn { background: var(--gold); color: #2a1c00; border: 0; font-family: var(--font-body); font-weight: 800; font-size: .95rem; padding: 13px 22px; border-radius: 12px; cursor: pointer; white-space: nowrap; }
.mp-cta-btn:hover { background: var(--accent); }
.mp-vendor { margin-top: 18px; }
.mp-vendor[hidden] { display: none; }
.mp-signup { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.mp-signup span { font-size: .95rem; font-weight: 700; color: var(--ink); }

/* ======================= "ONE OPERATING SYSTEM" — redesigned ======================= */
.sys { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(36px, 5vw, 54px); }
@media (max-width: 940px) { .sys { grid-template-columns: 1fr; gap: 32px; } }
/* left: layered plates threaded by one spine */
.sys-cap { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; margin-bottom: 18px; }
.sys-cap-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.sys-plates { position: relative; display: flex; flex-direction: column; gap: 12px; }
.sys-plates::before { content: ""; position: absolute; left: 35px; top: 30px; bottom: 30px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #3953a5, #2563eb, #e8911b, #7c3aed, #1f9d57); opacity: .35; }
.sys-plate { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 14px 16px; cursor: pointer; font-family: var(--font-body); transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s, border-color .28s, background .28s, opacity .28s; }
.sys-plate-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); flex: none; transition: background .28s, color .28s, box-shadow .28s; }
.sys-plate-ic svg { width: 21px; height: 21px; }
.sys-plate-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sys-plate-tx em { font-style: normal; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.sys-plate-tx b { font-size: 1rem; font-weight: 800; color: var(--ink); }
.sys-plate-go { margin-left: auto; flex: none; display: grid; place-items: center; color: #fff; opacity: 0; transform: translateX(-6px); transition: opacity .28s, transform .28s; }
.sys-plate-go svg { width: 18px; height: 18px; }
.sys-plates.has-active .sys-plate:not(.active) { opacity: .55; }
.sys-plate:not(.active):hover { opacity: 1; border-color: var(--line-2); transform: translateX(4px); }
.sys-plate.active { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 74%, #000)); border-color: transparent; transform: translateX(12px); box-shadow: 0 20px 38px -18px var(--c); }
.sys-plate.active .sys-plate-ic { background: rgba(255,255,255,.22); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset; }
.sys-plate.active .sys-plate-tx em { color: rgba(255,255,255,.72); }
.sys-plate.active .sys-plate-tx b { color: #fff; }
.sys-plate.active .sys-plate-go { opacity: 1; transform: translateX(0); }
/* right: tactile numbered cards */
.sys-list { display: flex; flex-direction: column; gap: 11px; }
.sys-card { position: relative; display: flex; align-items: flex-start; gap: 15px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; cursor: pointer; overflow: hidden; font-family: var(--font-body); transition: transform .2s, box-shadow .2s, border-color .2s; }
.sys-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); transform: scaleY(0); transform-origin: top; transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.sys-card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.sys-card.active { border-color: color-mix(in srgb, var(--c) 38%, #fff); box-shadow: 0 16px 32px -20px var(--c); }
.sys-card.active::before { transform: scaleY(1); }
.sys-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-family: var(--font-mono); font-weight: 700; font-size: .85rem; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); flex: none; transition: background .28s, color .28s; }
.sys-card.active .sys-num { background: var(--c); color: #fff; }
.sys-card-b { min-width: 0; }
.sys-card-b b { display: block; font-size: 1.06rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.sys-card-b span { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.sys-card-ar { margin-left: auto; align-self: center; flex: none; display: grid; place-items: center; color: var(--muted-2); transition: color .2s, transform .2s; }
.sys-card-ar svg { width: 18px; height: 18px; }
.sys-card:hover .sys-card-ar, .sys-card.active .sys-card-ar { color: var(--c); transform: translateX(3px); }

/* ======================= CERTIFICATE BUILDER · ISSUE · VERIFY ======================= */
.ct { display: flex; flex-direction: column; }
.ct-tabs { display: flex; gap: 4px; padding: 8px 16px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ct-tab { border: 0; background: none; font-family: var(--font-body); font-weight: 700; font-size: .86rem; color: var(--muted); padding: 11px 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.ct-tab:hover { color: var(--ink); }
.ct-tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.ct-body { padding: 22px 24px; }
/* templates grid */
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ct-card { display: flex; flex-direction: column; align-items: stretch; gap: 9px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 16px; cursor: pointer; font-family: var(--font-body); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ct-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ct-card.on { border-color: var(--a); box-shadow: 0 0 0 1px var(--a); }
.ct-kind { font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ct-card > b { font-size: 1rem; font-weight: 800; color: var(--ink); }
.ct-mini { display: block; }
.ct-use { font-size: .78rem; font-weight: 700; color: var(--a); margin-top: 2px; }
.ct-card.new { align-items: center; justify-content: center; text-align: center; border-style: dashed; color: var(--muted); }
.ct-new-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--bg-2); color: var(--primary); margin-bottom: 4px; }
.ct-new-ic svg { width: 20px; height: 20px; }
/* mini doc thumbnail */
.ctm { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px; box-shadow: var(--shadow-sm); }
.ctm-bar { height: 5px; width: 38%; border-radius: 2px; background: var(--a); }
.ctm-l { height: 4px; border-radius: 2px; background: var(--line-2); }
.ctm-l.w1 { width: 70%; } .ctm-l.w2 { width: 90%; } .ctm-l.w3 { width: 60%; }
.ctm-box { height: 34px; border-radius: 5px; background: color-mix(in srgb, var(--a) 14%, var(--bg-2)); }
.ctm-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.ctm-sig { width: 38%; height: 9px; border-radius: 2px; background: color-mix(in srgb, var(--a) 30%, #fff); }
.ctm-qr { width: 16px; height: 16px; border-radius: 3px; background: repeating-conic-gradient(var(--ink) 0% 25%, #fff 0% 50%) 0 0 / 5px 5px; }
/* builder */
.cb { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .cb { grid-template-columns: 1fr; } }
.cb-form { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.cb-h { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.cb-f { display: block; margin-bottom: 13px; }
.cb-f > span { display: block; font-size: .74rem; font-weight: 700; color: var(--body); margin-bottom: 5px; }
.cb-f input, .cb-f textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 12px; font-family: var(--font-body); font-size: .86rem; color: var(--ink); resize: vertical; }
.cb-sel { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 12px; font-size: .86rem; color: var(--ink); background: var(--bg-2); }
.cb-sel svg { width: 15px; height: 15px; color: var(--muted); }
.cb-note { display: block; font-style: normal; font-size: .74rem; color: var(--muted); margin-top: 5px; }
.cb-toggle { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; margin-bottom: 13px; cursor: pointer; }
.cb-toggle input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.cb-toggle b { font-size: .86rem; color: var(--ink); }
.cb-toggle em { display: block; font-style: normal; font-size: .76rem; color: var(--muted); }
.cb-auto { display: flex; align-items: center; gap: 9px; background: var(--primary-soft); border-radius: 11px; padding: 11px 13px; font-size: .8rem; color: var(--primary-2); margin-bottom: 15px; }
.cb-auto svg { width: 16px; height: 16px; flex: none; }
.cb-go { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; background: var(--primary); color: #fff; border: 0; font-family: var(--font-body); font-weight: 700; font-size: .9rem; padding: 12px; border-radius: 11px; cursor: pointer; }
.cb-go svg { width: 16px; height: 16px; }
.cb-go:hover { background: var(--primary-2); }
.cb-prev { position: sticky; top: 20px; }
.cb-prev-h, .cp-h { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
/* the PDF-style document */
.cv-doc { position: relative; max-width: 460px; margin: 0 auto; background: #fffdfa; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(15,29,51,.5); overflow: hidden; }
.cv-edge { height: 7px; background: linear-gradient(90deg, var(--a), color-mix(in srgb, var(--a) 55%, #000)); }
.cv-pad { padding: 26px 30px 22px; }
.cv-head { display: flex; align-items: center; gap: 11px; }
.cv-seal { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--a) 13%, #fff); color: var(--a); flex: none; }
.cv-seal svg { width: 21px; height: 21px; }
.cv-iss { flex: 1; }
.cv-iss b { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.cv-iss span { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.cv-ref { font-family: var(--font-mono); font-size: .68rem; color: var(--muted-2); }
.cv-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); text-align: center; margin: 18px 0 3px; letter-spacing: -.01em; }
.cv-when { text-align: center; font-size: .74rem; color: var(--muted); margin-bottom: 16px; }
.cv-art { height: 150px; border-radius: 6px; overflow: hidden; margin-bottom: 13px; display: grid; place-items: center; background: var(--bg-2); }
.cv-art.bar { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 22px; background: linear-gradient(160deg, #1b1205, #2c1d08); }
.cv-bar { width: 46px; height: 28px; border-radius: 3px; background: linear-gradient(180deg, #f4d489, #c8961f); box-shadow: 0 3px 8px -2px rgba(0,0,0,.5); }
.cv-bar:nth-child(2) { height: 40px; } .cv-bar:nth-child(3) { height: 34px; }
.cv-frame { padding: 12px; background: linear-gradient(145deg, #d8b779, #b08a3e); border-radius: 4px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.cv-canvas { width: 150px; height: 104px; border-radius: 2px; }
.cv-canvas.g1 { background: radial-gradient(120% 100% at 20% 10%, #f3c969, transparent 55%), linear-gradient(150deg, #7c3aed, #2a1a52); }
.cv-canvas.g2 { width: 200px; height: 116px; background: linear-gradient(180deg, #bfe3f2 0%, #7fb6d6 45%, #e9d9b0 46%, #d8c190 100%); }
.cv-pname { text-align: center; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.cv-psub { text-align: center; font-size: .76rem; color: var(--muted); margin-bottom: 12px; }
.cv-body { font-size: .8rem; line-height: 1.6; color: var(--body); text-align: center; margin: 0 0 14px; }
.cv-rows { display: flex; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 11px 0; margin-bottom: 14px; }
.cvr { flex: 1; text-align: center; }
.cvr span { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.cvr b { font-size: .85rem; color: var(--ink); }
.cv-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.cv-sig { flex: 1; }
.cv-sig-mark { display: block; font-family: 'Caveat', cursive; font-size: 1.8rem; font-weight: 700; color: var(--ink); line-height: 1; }
.cv-sig-line { display: block; height: 26px; border-bottom: 1.5px solid var(--line-2); margin-bottom: 4px; }
.cv-sig-lbl { font-size: .66rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 4px; display: inline-block; margin-top: 4px; }
.cv-qr { text-align: center; flex: none; }
.cv-qr-img { width: 64px; height: 64px; }
.cv-qr-img svg { width: 100%; height: 100%; display: block; }
.cv-qr > span { font-size: .6rem; color: var(--muted); }
.cv-url { text-align: center; font-family: var(--font-mono); font-size: .68rem; color: var(--a); margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
/* preview & issue */
.cp { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .cp { grid-template-columns: 1fr; } }
.cp-sub { font-size: .86rem; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.cp-act { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 14px 16px; cursor: pointer; font-family: var(--font-body); margin-bottom: 11px; transition: border-color .15s, box-shadow .15s; }
.cp-act:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.cp-act svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.cp-act b { font-size: .9rem; color: var(--ink); }
.cp-act em { display: block; font-style: normal; font-size: .78rem; color: var(--muted); }
.cp-act.ghost svg { color: var(--muted); }
.cp-done { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin-bottom: 12px; }
.cp-done svg { width: 26px; height: 26px; }
.cp-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--body); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; margin-bottom: 16px; }
.cp-chip svg { width: 14px; height: 14px; color: var(--primary); }
/* verify page */
.cvfy { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .cvfy { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }
.cvfy-phone { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.cvfy-bar { background: var(--ink); color: rgba(255,255,255,.8); font-family: var(--font-mono); font-size: .68rem; padding: 9px 14px; text-align: center; }
.cvfy-body { padding: 24px 22px; text-align: center; }
.cvfy-check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin: 0 auto 12px; }
.cvfy-check svg { width: 30px; height: 30px; }
.cvfy-body h4 { margin: 0 0 5px; font-size: 1.3rem; font-weight: 800; color: var(--ok); }
.cvfy-body > p { margin: 0 0 16px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.cvfy-rows { text-align: left; border-top: 1px solid var(--line); }
.cvfy-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.cvfy-r span { color: var(--muted); }
.cvfy-r b { color: var(--ink); }
.cvfy-r b.ok { color: var(--ok); }
.cvfy-note { display: flex; align-items: flex-start; gap: 8px; text-align: left; font-size: .76rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.cvfy-note svg { width: 15px; height: 15px; color: var(--ok); flex: none; margin-top: 1px; }
.cvfy-x-h { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.cvfy-steps { margin: 0 0 18px; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.cvfy-steps li { font-size: .88rem; color: var(--body); line-height: 1.5; }

/* ===================================================================
   UNIFIED CLICKABLE TAB PILLS — applied across all in-frame demo tabs
   (rounded outline pills; active = solid navy) sitting under the heading
   =================================================================== */
.ct-tabs, .fin-tabs, .lg-tabs, .hr-tabs, .sc-tabs, .aml2-tabs,
#scriptTabs, #goalTabs, .pf-tabbar {
  display: flex !important; flex-wrap: wrap; align-items: center; gap: 9px !important;
  padding: 15px 18px !important; border-bottom: 1px solid var(--line) !important;
  background: var(--bg-2) !important; overflow-x: auto;
}
.ct-tab, .fin-tab, .lg-tab, .hr-tab, .sc-tab, .aml2-tab,
#scriptTabs .tab-btn, #goalTabs .tab-btn, .pf-tab {
  display: inline-flex !important; align-items: center; gap: 7px;
  border: 1.5px solid var(--line-2) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--ink) !important;
  font-family: var(--font-body) !important; font-weight: 700 !important;
  font-size: .84rem !important;
  padding: 8px 17px !important;
  margin: 0 !important; box-shadow: none !important;
  cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.ct-tab:hover, .fin-tab:hover, .lg-tab:hover, .hr-tab:hover, .sc-tab:hover, .aml2-tab:hover,
#scriptTabs .tab-btn:hover, #goalTabs .tab-btn:hover, .pf-tab:hover {
  border-color: var(--muted-2) !important; color: var(--ink) !important;
  background: #fff !important; transform: translateY(-1px);
}
.ct-tab.on, .fin-tab.on, .lg-tab.on, .hr-tab.on, .sc-tab.on, .aml2-tab.on,
#scriptTabs .tab-btn.on, #goalTabs .tab-btn.on, .pf-tab.on {
  background: var(--ink) !important; color: #fff !important;
  border-color: var(--ink) !important; box-shadow: var(--shadow-sm) !important;
}
.ct-tab svg, .fin-tab svg, .lg-tab svg, .hr-tab svg, .sc-tab svg, .aml2-tab svg,
#scriptTabs .tab-btn svg, #goalTabs .tab-btn svg, .pf-tab svg { width: 15px; height: 15px; }
/* scripts/goals tab buttons wrap label + icon in spans */
#scriptTabs .tab-btn .ti, #goalTabs .tab-btn .ti { display: inline-flex; }

/* CRM sub-section pills — relocated to sit UNDER the section heading/subheading */
.crm-subnav { position: static !important; top: auto !important; z-index: auto !important;
  background: none !important; backdrop-filter: none !important; border-bottom: 0 !important;
  margin: 6px 0 22px !important; }
.crm-sub-inner { padding: 0 !important; margin: 0 !important; max-width: none !important;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-x: auto; }
.crm-sub-lbl { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono);
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
  font-weight: 700; padding-right: 4px; }
.crm-sub-lbl svg { width: 13px; height: 13px; color: var(--gold); }
.crm-sub { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line) !important; border-radius: 10px !important;
  background: #fff !important; color: var(--ink) !important;
  font-family: var(--font-body); font-weight: 700 !important; font-size: .85rem !important;
  padding: 9px 15px !important; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15,29,51,.05), 0 2px 8px -4px rgba(15,29,51,.12) !important;
  transition: border-color .15s, background .15s, color .15s, transform .15s, box-shadow .15s; }
.crm-sub-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; transition: background .15s; }
.crm-sub:hover { border-color: var(--primary) !important; color: var(--primary) !important;
  transform: translateY(-1px); box-shadow: 0 4px 14px -6px rgba(57,83,165,.4) !important; }
.crm-sub:hover .crm-sub-dot { background: var(--primary); }
.crm-sub.on { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important;
  box-shadow: 0 6px 16px -8px rgba(15,29,51,.6) !important; }
.crm-sub.on .crm-sub-dot { background: var(--gold); }

/* ======================= SUPPORT · "support for you" ======================= */
.ys-lead { font-size: .85rem; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.ys-cats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-bottom: 14px; }
.ys-cat { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 11px 13px; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: .84rem; color: var(--ink); text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ys-cat:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.ys-cat-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); flex: none; }
.ys-cat-ic svg { width: 16px; height: 16px; }
.ys-meta { display: flex; flex-direction: column; gap: 1px; margin: 12px 0; border-top: 1px solid var(--line); }
.ys-meta-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .83rem; }
.ys-meta-r span { color: var(--muted); }
.ys-meta-r b { color: var(--ink); }

/* ======================= NAV CTA — smaller demo + sign up ======================= */
.nav-demo { font-size: .88rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-demo:hover { color: var(--primary); }
.btn.btn-sm { padding: 9px 18px !important; font-size: .88rem !important; }
@media (max-width: 880px) { .nav-demo { display: none; } }

/* ======================= PRICING COMPARISON TABLE ======================= */
.cmp { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-md); }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: .8rem; color: var(--muted); }
.cmp-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cmp-legend i { font-style: normal; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; font-weight: 800; font-size: .8rem; }
.cmp-legend .lg-y { background: var(--ok-soft); color: var(--ok); }
.cmp-legend .lg-a { background: var(--accent-soft); color: var(--gold); }
.cmp-legend .lg-n { background: var(--bg-tint); color: var(--muted-2); }
.cmp-scroll { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.cmp-table th, .cmp-table td { padding: 14px; text-align: center; border: 1px solid var(--line); }
.cmp-table thead th { vertical-align: bottom; background: var(--bg-2); border-bottom: 2px solid var(--line-2); }
.cmp-feat { text-align: left !important; font-size: .9rem; color: var(--ink); font-weight: 600; width: 28%; min-width: 230px; }
.cmp-vname { display: block; font-size: .95rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.cmp-vprice { display: block; font-size: .82rem; color: var(--muted); margin-top: 5px; font-weight: 600; }
.cmp-vprice i, .cmp-badge i { font-style: normal; font-size: .68rem; opacity: .7; }
.cmp-vprice s { color: var(--muted-2); opacity: .7; margin-right: 3px; font-weight: 500; }

/* Dial & File button on the Contact widget */
.w-df-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; width: 100%; justify-content: center; background: var(--primary); color: #fff; border: 0; font-family: var(--font-body); font-weight: 700; font-size: .82rem; padding: 10px 14px; border-radius: 10px; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(57,83,165,.5); transition: background .15s, transform .15s; }
.w-df-btn svg { width: 15px; height: 15px; }
.w-df-btn:hover { background: var(--primary-2); transform: translateY(-1px); }
/* highlighted Selllution column */
.cmp-us { background: var(--primary-soft) !important; border-left: 2px solid var(--primary) !important; border-right: 2px solid var(--primary) !important; }
thead .cmp-us { border-top: 2px solid var(--primary) !important; }
.cmp-table tbody tr:last-child .cmp-us { border-bottom: 2px solid var(--primary) !important; }
.cmp-us .cmp-vname { color: var(--primary); }
.cmp-us .cmp-vprice { color: var(--primary-2); font-weight: 700; }
.cmp-badge { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--gold); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.cmp-table tbody td { font-size: .9rem; color: var(--body); }
.cmp-y { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: .9rem; }
.cmp-n { color: var(--muted-2); font-size: 1.1rem; }
.cmp-a { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--gold); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.cmp-a.lim { color: var(--muted); background: var(--bg-tint); }
.cmp-note { display: block; font-size: .67rem; color: var(--muted-2); line-height: 1.3; margin-top: 5px; }
.cmp-more { display: inline-block; font-size: .9rem; font-weight: 800; color: #c0392b; background: rgba(192,57,43,.08); padding: 4px 11px; border-radius: 999px; }
.cmp-base { font-size: .9rem; font-weight: 800; color: var(--ok); }
.cmp-rsum td { background: var(--bg-2); font-weight: 700; }
.cmp-rsum td.cmp-feat { color: var(--ink); }
.cmp-rsum .cmp-us { background: var(--primary-soft) !important; }
.cmp-rsum td b { font-size: 1.15rem; color: var(--ink); font-family: var(--font-display); }
.cmp-us b { color: var(--primary) !important; }
.cmp-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.cmp-foot { font-size: .78rem; color: var(--muted); padding: 14px 18px; background: var(--bg-2); border-top: 1px solid var(--line); line-height: 1.5; }

/* ======================= AGENT CHAT BUBBLE ======================= */
.agentw { position: fixed; right: 22px; bottom: 22px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.agentw-fab { display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; background: var(--primary); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .9rem; padding: 13px 19px; border-radius: 999px; box-shadow: 0 12px 30px -8px rgba(57,83,165,.6); transition: transform .15s, box-shadow .15s; }
.agentw-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(57,83,165,.7); }
.agentw-fab svg { width: 20px; height: 20px; }
.agentw.open .agentw-fab { display: none; }
.agentw-panel { width: 372px; max-width: calc(100vw - 44px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(15,29,51,.5); overflow: hidden; display: flex; flex-direction: column; animation: agentwIn .26s cubic-bezier(.22,.8,.26,1); transform-origin: bottom right; }
@keyframes agentwIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.agentw-panel[hidden] { display: none !important; }
.agentw-head { display: flex; align-items: center; gap: 11px; padding: 15px 16px; background: linear-gradient(150deg, #16223c, #0f1d33); color: #fff; }
.agentw-ava { display: grid; place-items: center; width: 40px; height: 40px; flex: none; }
.agentw-ava svg { width: auto; height: 36px; display: block; }
.agentw-id { flex: 1; }
.agentw-id b { display: block; font-size: .95rem; }
.agentw-id span { font-size: .74rem; color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: 5px; }
.agentw-dot { width: 7px; height: 7px; border-radius: 50%; background: #41c97d; display: inline-block; }
.agentw-x { background: none; border: 0; color: rgba(255,255,255,.7); font-size: 1rem; cursor: pointer; padding: 4px; }
.agentw-x:hover { color: #fff; }
.agentw-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; height: 440px; max-height: calc(100vh - 230px); overflow-y: auto; background: var(--bg-2); }
.agentw-msg { font-size: .85rem; line-height: 1.5; padding: 10px 13px; border-radius: 13px; max-width: 85%; }
.agentw-msg.bot { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.agentw-msg.you { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.agentw-msg.ai { background: #fff; border: 1px solid var(--accent-soft); border-left: 3px solid var(--accent); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.agentw-typing { align-self: flex-start; display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 13px; border-bottom-left-radius: 4px; padding: 11px 13px; }
.agentw-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); display: inline-block; animation: agentwType 1.1s infinite ease-in-out; }
.agentw-typing i:nth-child(2) { animation-delay: .18s; }
.agentw-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes agentwType { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .agentw-typing i { animation: none; } }
.agentw-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.agentw-chip { border: 1px solid var(--line-2); background: #fff; color: var(--primary); font-family: var(--font-body); font-weight: 600; font-size: .78rem; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.agentw-chip:hover { background: var(--primary-soft); border-color: var(--primary); }
.agentw-wa { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px; background: #25d366; color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .9rem; text-decoration: none; transition: background .15s; }
.agentw-wa:hover { background: #1ebe5a; }
.agentw-wa svg { width: 19px; height: 19px; }
.agentw-wa-mini { display: inline-flex; align-items: center; gap: 5px; flex: none; background: #25d366; color: #fff; text-decoration: none; font-family: var(--font-body); font-weight: 700; font-size: .76rem; padding: 6px 11px; border-radius: 999px; transition: background .15s; }
.agentw-wa-mini:hover { background: #1ebe5a; }
.agentw-wa-mini svg { width: 15px; height: 15px; }
/* WhatsApp human-handoff icon — illuminates ~every 30s */
.agentw-wa-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; background: #25d366; color: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s; animation: agentwWaGlow 30s ease-in-out infinite; }
.agentw-wa-ico:hover { transform: scale(1.08); box-shadow: 0 0 0 5px rgba(37,211,102,.35); }
.agentw-wa-ico svg { width: 20px; height: 20px; }
@keyframes agentwWaGlow { 0%, 12%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); transform: scale(1); } 1% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102,.65); } 4% { transform: scale(1.14); box-shadow: 0 0 0 4px rgba(37,211,102,.45); } 8% { transform: scale(1); box-shadow: 0 0 0 12px rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .agentw-wa-ico { animation: none; } .agentw-panel { animation: none; } }
.agentw-compose { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.agentw-compose input { flex: 1; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 14px; font-family: var(--font-body); font-size: .85rem; color: var(--ink); outline: none; }
.agentw-compose input:focus { border-color: var(--primary); }
.agentw-compose button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #16223c; cursor: pointer; flex: none; transition: background .15s, transform .15s; }
.agentw-compose button:hover { background: var(--gold); transform: translateY(-1px); }
.agentw-compose button svg { width: 17px; height: 17px; }
@media (max-width: 480px) { .agentw-fab-lbl { display: none; } .agentw-fab { padding: 14px; } }

/* ======================= NAV — stretched full-width bar ======================= */
.nav .nav-inner { max-width: min(1640px, 98vw) !important; padding: 0 20px !important; gap: 24px; }
.nav-links { gap: 17px !important; flex: 1; justify-content: center; }
.nav-links a { font-size: 1.02rem !important; }
.nav-market { color: var(--gold) !important; font-weight: 700 !important; }
.nav-market:hover { color: var(--accent) !important; }
.nav-cta { gap: 14px !important; }
.nav-cta-sep { width: 1px; height: 20px; background: var(--line-2); flex: none; }
.nav-demo { font-size: 1rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-demo:hover { color: var(--primary); }
@media (max-width: 1340px) { .nav .nav-inner { padding: 0 16px !important; } .nav-links { gap: 12px !important; } .nav-links a { font-size: .85rem !important; } }
@media (max-width: 1100px) { .nav-demo { display: none; } }
@media (max-width: 1024px) { .nav-links { display: none !important; } }

/* ======================= INVESTORS ======================= */
.inv2-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px,5vw,60px); align-items: start; }
@media (max-width: 900px) { .inv2-grid { grid-template-columns: 1fr; } }
.inv2-points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.inv2-points li { display: flex; gap: 13px; }
.inv2-pic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: .85rem; flex: none; }
.inv2-points b { display: block; font-size: 1rem; color: var(--ink); font-weight: 800; margin-bottom: 3px; }
.inv2-points span { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.inv2-note { margin-top: 22px; font-size: .8rem; color: var(--muted-2); font-style: italic; }
.inv2-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-md); padding: 24px; }
.inv2-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 5px; margin-bottom: 20px; }
.inv2-tab { border: 0; background: none; font-family: var(--font-body); font-weight: 700; font-size: .82rem; color: var(--muted); padding: 10px; border-radius: 8px; cursor: pointer; }
.inv2-tab.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.inv2-form { display: flex; flex-direction: column; gap: 14px; }
.inv2-row { display: grid; gap: 14px; }
.inv2-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .inv2-row.two { grid-template-columns: 1fr; } }
.inv2-form label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--body); }
.inv2-form label[hidden] { display: none !important; }
.inv2-form label span { font-weight: 400; color: var(--muted-2); }
.inv2-form input, .inv2-form select, .inv2-form textarea { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-family: var(--font-body); font-size: .88rem; color: var(--ink); font-weight: 500; outline: none; background: #fff; }
.inv2-form input:focus, .inv2-form select:focus, .inv2-form textarea:focus { border-color: var(--primary); }
.inv2-full { width: 100%; }
.inv2-check { flex-direction: row !important; align-items: flex-start; gap: 9px !important; font-weight: 500 !important; font-size: .8rem !important; color: var(--muted) !important; }
.inv2-check input { width: 17px; height: 17px; accent-color: var(--primary); flex: none; margin-top: 1px; }
.inv2-submit { margin-top: 4px; justify-content: center; }
.inv2-done { background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: .9rem; text-align: center; padding: 13px; border-radius: 11px; }
.nav-market-btn { padding: 11px 22px !important; font-size: .92rem !important; }
@media (max-width: 1180px) { .nav-market-btn { padding: 10px 16px !important; font-size: .85rem !important; } }
.inv-page-main { padding-top: clamp(90px, 11vh, 130px); min-height: 80vh; }

/* ======================= TRUE COST AT 10 USERS ======================= */
.tco { margin: 40px 0 clamp(48px, 7vw, 88px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-md); overflow: hidden; }
.tco-head { padding: 24px 26px 6px; }
.tco-head h3 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.tco-head p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.55; max-width: 680px; }
.tco-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.tco-ctrl-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.tco-ctrl input[type=range] { flex: 1; min-width: 180px; max-width: 380px; accent-color: var(--primary); height: 6px; cursor: pointer; }
.tco-ucount { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.tco-ucount b { font-size: 1.2rem; font-weight: 800; color: var(--primary); font-family: var(--font-display); margin-right: 3px; }
.tco-chart { padding: 22px 26px 8px; display: flex; flex-direction: column; gap: 20px; }
.tco-row { display: grid; grid-template-columns: 230px minmax(0,1fr) 200px; align-items: center; gap: 18px; }
@media (max-width: 860px) { .tco-row { grid-template-columns: 1fr; gap: 7px; } }
.tco-label b { display: block; font-size: 1rem; font-weight: 800; color: var(--ink); }
.tco-label em { font-style: normal; font-size: .76rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.tco-track { background: var(--bg-2); border-radius: 9px; height: 42px; overflow: hidden; }
.tco-bar { height: 100%; border-radius: 9px; background: var(--line-2); display: flex; align-items: center; justify-content: flex-end; padding: 0 14px; min-width: 64px; transition: width .9s cubic-bezier(.4,0,.2,1); }
.tco-val { font-size: .95rem; font-weight: 800; color: var(--ink); font-family: var(--font-display); white-space: nowrap; }
.tco-val i { font-style: normal; font-size: .66rem; font-weight: 600; opacity: .7; }
.tco-row.us .tco-bar { background: linear-gradient(90deg, var(--primary), var(--primary-2)); box-shadow: 0 6px 16px -6px rgba(57,83,165,.5); }
.tco-row.us .tco-val { color: #fff; }
.tco-row.us .tco-label b { color: var(--primary); }
.tco-extra { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.tco-extra.us-note { color: var(--ok); font-weight: 700; }
.tco-callout { display: flex; align-items: center; gap: 12px; margin: 6px 26px 0; padding: 14px 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--gold) 30%, #fff); border-radius: 13px; }
.tco-callout-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 800; flex: none; }
.tco-callout span:last-child { font-size: .86rem; color: var(--ink); line-height: 1.5; }
.tco-callout b { font-weight: 800; }
.tco .cmp-foot { margin-top: 18px; }

/* ======================= NAV · grouped flat links ======================= */
.nav-links { gap: 14px !important; }
.nav-links a { font-size: .84rem !important; }
.nav-sep { width: 1px; height: 15px; background: var(--line-2); flex: none; }
@media (max-width: 1180px) { .nav-links { gap: 11px !important; } .nav-links a { font-size: .8rem !important; } }
@media (max-width: 1040px) { .nav-links { gap: 9px !important; } .nav-links a { font-size: .77rem !important; } .nav-sep { height: 13px; } }
.rec-fhead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rec-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; flex: none; }
.rec-back svg { width: 17px; height: 17px; }
.rec-back:hover { border-color: var(--primary); color: var(--primary); }
.rec-fhead > div { flex: 1; }
.rec-ftitle { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.rec-fsub { font-size: .82rem; color: var(--muted); }
.rec-factions { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-mini { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: .82rem; padding: 8px 13px; border-radius: 9px; cursor: pointer; }
.rec-mini svg { width: 14px; height: 14px; }
.rec-mini:hover { border-color: var(--primary); color: var(--primary); }
.rec-mini.primary { background: var(--ok); color: #fff; border-color: transparent; }
.rec-mini.primary:hover { background: #097a4d; color: #fff; }
.rec-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; overflow-x: auto; }
@media (max-width: 860px) { .rec-board { grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); grid-template-columns: none; } }
.rec-col { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 130px; }
.rec-col-h { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; padding: 2px 4px; }
.rec-col-h em { font-style: normal; font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.rec-card { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; cursor: pointer; font-family: var(--font-body); transition: border-color .15s, box-shadow .15s; }
.rec-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.rec-card b { font-size: .82rem; color: var(--ink); font-weight: 700; display: block; }
.rec-card em { font-style: normal; font-size: .72rem; color: var(--muted); }
.rec-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 800; flex: none; }
.rec-av.sm { width: 34px; height: 34px; }
.rec-col-empty { text-align: center; color: var(--muted-2); font-size: .85rem; padding: 12px 0; }
.rec-empty { text-align: center; color: var(--muted); font-size: .88rem; padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: 14px; }
.rec-cand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .rec-cand-grid { grid-template-columns: 1fr; } }
.rec-cand-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 20px; }
.rec-cand-ch { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 800; color: var(--ok); margin-bottom: 10px; }
.rec-cand-ch svg { width: 16px; height: 16px; }
.rec-flabel { display: block; font-size: .74rem; font-weight: 700; color: var(--muted); margin: 12px 0 5px; }
.rec-fval { border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 12px; font-size: .86rem; color: var(--ink); background: var(--bg-2); }
.rec-textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px; font-family: var(--font-body); font-size: .86rem; min-height: 84px; resize: vertical; margin-bottom: 10px; }
.rec-notes { margin-top: 14px; }
.rec-note-item { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: .84rem; color: var(--body); margin-bottom: 8px; }
.rec-note-empty { font-size: .84rem; color: var(--muted); }
.rec-cv-list { display: flex; flex-direction: column; gap: 10px; }
.rec-cv-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 16px; }
.rec-cv-b { flex: 1; }
.rec-cv-b b { font-size: .9rem; color: var(--ink); font-weight: 700; }
.rec-cv-b em { font-style: normal; font-size: .78rem; color: var(--muted); display: block; }
.rec-cv-t { font-size: .78rem; color: var(--muted-2); }
.rec-link { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--primary); font-weight: 700; background: var(--primary-soft); padding: 6px 11px; border-radius: 8px; }
.rec-link svg { width: 14px; height: 14px; }
.rec-pub { display: grid; grid-template-columns: 1fr 1.1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (max-width: 760px) { .rec-pub { grid-template-columns: 1fr; } }
.rec-pub-left { background: linear-gradient(160deg, #16223c, #0f1d33); color: #fff; padding: 28px; }
.rec-pub-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.1); color: var(--accent); margin-bottom: 16px; }
.rec-pub-ic svg { width: 21px; height: 21px; }
.rec-pub-left h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; }
.rec-pub-left p { margin: 0 0 22px; font-size: .86rem; color: rgba(255,255,255,.72); line-height: 1.55; }
.rec-pub-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.rec-pub-steps li { display: flex; gap: 12px; }
.rec-pub-steps > li > b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: .78rem; flex: none; }
.rec-pub-steps span { display: flex; flex-direction: column; font-size: .88rem; font-weight: 700; }
.rec-pub-steps em { font-style: normal; font-size: .8rem; font-weight: 400; color: rgba(255,255,255,.62); margin-top: 2px; }
.rec-pub-form { padding: 28px; background: #fff; }
.rec-pub-ttl { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.rec-input { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; font-family: var(--font-body); font-size: .88rem; color: var(--ink); }
.rec-upload { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 20px; text-align: center; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.rec-upload svg { width: 22px; height: 22px; color: var(--muted-2); margin-bottom: 4px; }
.rec-upload b { color: var(--primary); }
.rec-upload em { font-style: normal; font-size: .74rem; color: var(--muted-2); }
.rec-submit { width: 100%; margin-top: 18px; background: var(--ink); color: #fff; border: 0; font-family: var(--font-body); font-weight: 700; font-size: .92rem; padding: 13px; border-radius: 11px; cursor: pointer; }
.rec-submit:hover { background: #1a2c4d; }
.rec-modal { position: absolute; inset: 0; background: rgba(15,29,51,.4); display: grid; place-items: center; padding: 20px; z-index: 5; }
.rec-modal-box { background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.rec-modal-h { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.rec-modal-add { display: flex; gap: 8px; margin-bottom: 16px; }
.rec-modal-add input { flex: 1; border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 12px; font-family: var(--font-body); font-size: .86rem; }
.rec-stage-list { display: flex; flex-direction: column; gap: 8px; max-height: 230px; overflow-y: auto; margin-bottom: 16px; }
.rec-stage-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: var(--ink); font-weight: 600; }
.rec-modal-close { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: .88rem; padding: 11px; border-radius: 10px; cursor: pointer; }
.rec-modal-close:hover { border-color: var(--primary); color: var(--primary); }

/* ======================= COMPLIANCE ======================= */
.cmpl-note { display: flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--body); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; margin-bottom: 16px; }
.cmpl-note svg { width: 17px; height: 17px; color: var(--ok); flex: none; }
.cmpl-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.cmpl-tab { border: 1px solid var(--line); background: #fff; color: var(--body); font-family: var(--font-body); font-weight: 700; font-size: .8rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.cmpl-tab:hover { color: var(--ink); }
.cmpl-tab.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cmpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cmpl-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 16px 17px; }
.cmpl-card-h { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.cmpl-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); flex: none; }
.cmpl-ic svg { width: 16px; height: 16px; }
.cmpl-cat { flex: 1; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
.cmpl-t { font-size: .95rem; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.cmpl-d { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.cmpl-fw { display: flex; flex-wrap: wrap; gap: 6px; }
.cmpl-fw i { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 3px 9px; border-radius: 6px; }

/* ======================= AI MANAGER — answer cards ======================= */
.ai-prompt { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.ai-answer { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px 16px; max-width: 420px; }
.ai-ans-route { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 11px; }
.ai-ans-route svg { width: 13px; height: 13px; }
.ai-ans-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-ans-head b { font-size: 1.25rem; font-weight: 800; color: var(--ink); font-family: var(--font-display); line-height: 1.1; }
.ai-ans-delta { font-size: .76rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.ai-ans-delta.up { color: var(--ok); background: var(--ok-soft); }
.ai-ans-delta.down { color: #c0392b; background: rgba(192,57,43,.1); }
.ai-ans-sub { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.ai-ans-bars { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.ai-ans-bar { display: grid; grid-template-columns: 72px 1fr 34px; align-items: center; gap: 10px; }
.ai-ans-bar-l { font-size: .78rem; color: var(--muted); }
.ai-ans-bar-t { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.ai-ans-bar-t i { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.ai-ans-bar b { font-size: .82rem; font-weight: 800; color: var(--ink); text-align: right; }
.ai-ans-stages { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ai-ans-stage { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; }
.ai-ans-stage-l { font-size: .78rem; color: var(--muted); }
.ai-ans-stage .ai-ans-bar-t i { background: var(--primary); }
.ai-ans-rows { margin-top: 14px; border-top: 1px solid var(--line); }
.ai-ans-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.ai-ans-row:last-child { border-bottom: 0; }
.ai-ans-row span { color: var(--body); }
.ai-ans-row b { color: var(--ink); font-weight: 700; }
.ai-ans-text { margin-top: 10px; font-size: .88rem; line-height: 1.6; color: var(--ink); }

/* AI action card — keep icons small (fix oversized triangle / check) */
.ai-action-h svg { width: 17px; height: 17px; flex: none; }
.ai-action-h { line-height: 1.35; }
.ai-done { display: inline-flex; align-items: center; gap: 7px; }
.ai-done svg { width: 16px; height: 16px; flex: none; }

/* AI thinking indicator — animated Sellution mark */
.think-bubble { display: inline-flex; flex-direction: column; gap: 6px; }
.sl-mark { width: 30px; height: 30px; display: block; }
.sl-b { font-size: 263.14px; }
.sl-b, .sl-c, .sl-d, .sl-e, .sl-f { font-family: 'Hanken Grotesk', 'Poppins', system-ui, sans-serif; font-weight: 800; }
.sl-b, .sl-e, .sl-f { fill: #fba919; }
.sl-c { fill: #faa919; font-size: 807.15px; }
.sl-d { fill: #3953a5; font-size: 740.41px; }
.sl-e { font-size: 597.71px; }
.sl-f { font-size: 697.22px; }
.sl-mark .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: sl-rise 1.5s cubic-bezier(.55,0,.3,1) infinite; }
.sl-mark .bar.b1 { animation-delay: 0s; }
.sl-mark .bar.b2 { animation-delay: .15s; }
.sl-mark .bar.b3 { animation-delay: .3s; }
@keyframes sl-rise { 0% { transform: scaleY(0); opacity: 0; } 28% { transform: scaleY(1.06); opacity: 1; } 38% { transform: scaleY(1); } 72% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.sl-mark .ess { transform-box: fill-box; transform-origin: 50% 50%; animation: sl-breathe 1.5s ease-in-out infinite; }
@keyframes sl-breathe { 0%, 100% { opacity: .85; } 40% { opacity: 1; } }
.sl-mark .weave { transform-box: fill-box; transform-origin: 50% 100%; animation: sl-rise 1.5s cubic-bezier(.55,0,.3,1) infinite; }
.sl-mark .weave.b2w { animation-delay: .15s; }

/* ======================= FINANCIALS ======================= */
.fin-src { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fin-src-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
.fin-seg { display: inline-flex; gap: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.fin-seg-b { border: 0; background: none; font-family: var(--font-body); font-weight: 700; font-size: .8rem; color: var(--muted); padding: 6px 13px; border-radius: 7px; cursor: pointer; }
.fin-seg-b.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.fin-src-note { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .78rem; color: var(--ok); font-weight: 600; }
.fin-src-note svg { width: 13px; height: 13px; }
.fin-tabs { display: flex; gap: 4px; padding: 8px 16px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.fin-tab { border: 0; background: none; font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--muted); padding: 11px 13px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.fin-tab:hover { color: var(--ink); }
.fin-tab.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.fin-body { padding: 22px 24px; }
.fin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.fin-kpi { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 16px 18px; }
.fin-kpi-l { font-size: .8rem; color: var(--muted); }
.fin-kpi b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); font-family: var(--font-display); line-height: 1.1; margin: 4px 0; }
.fin-kpi-d { font-size: .76rem; font-weight: 800; }
.fin-kpi-d.up { color: var(--ok); }
.fin-kpi-d.down { color: #c0392b; }
.fin-note { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--body); background: var(--bg-2); border-radius: 11px; padding: 12px 15px; margin-top: 16px; }
.fin-note svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
.fin-pnl { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 560px; }
.fin-pnl-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; font-size: .88rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.fin-pnl-row:last-child { border-bottom: 0; }
.fin-pnl-row b { font-variant-numeric: tabular-nums; }
.fin-pnl-row.neg { color: var(--muted); }
.fin-pnl-row.neg b { color: var(--muted); }
.fin-pnl-row.sub { background: var(--bg-2); font-weight: 700; }
.fin-pnl-row.tot { background: var(--bg-2); font-weight: 800; }
.fin-pnl-row.grand { background: var(--ok-soft); font-weight: 800; color: var(--ok); }
.fin-pnl-row.grand b { color: var(--ok); }
.fin-gross-head { display: flex; gap: 36px; margin-bottom: 18px; }
.fin-gross-head span { font-size: .78rem; color: var(--muted); }
.fin-gross-head b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); font-family: var(--font-display); }
.fin-gross { display: flex; flex-direction: column; gap: 12px; }
.fin-gross-row { display: grid; grid-template-columns: 130px 1fr 90px 92px; align-items: center; gap: 12px; }
.fin-gross-n { font-size: .85rem; color: var(--ink); font-weight: 600; }
.fin-bar { height: 12px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.fin-bar i { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.fin-gross-v { font-size: .85rem; font-weight: 800; color: var(--ink); text-align: right; }
.fin-gross-m { font-size: .78rem; color: var(--muted); text-align: right; }
.fin-staff-note { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--body); background: var(--bg-2); border-radius: 11px; padding: 11px 14px; margin-bottom: 14px; }
.fin-staff-note svg { width: 15px; height: 15px; color: var(--primary); flex: none; }
.fin-staff { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fin-staff-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr); align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .86rem; }
.fin-staff-row:last-child { border-bottom: 0; }
.fin-staff-row.head { background: var(--bg-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.fin-staff-n { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); }
.fin-staff-n em { font-style: normal; font-size: .74rem; color: var(--muted); font-weight: 500; }
.fin-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 800; flex: none; }
.fin-staff-c { font-weight: 700; color: var(--ink); }
.fin-staff-c i { font-style: normal; font-size: .72rem; color: var(--muted); font-weight: 500; }
.fin-staff-r { color: var(--body); }
.fin-staff-net { font-weight: 800; text-align: right; }
.fin-staff-net.pos { color: var(--ok); }
.fin-staff-net.neg { color: #c0392b; }

/* ======================= AI MODEL ACCESS ======================= */
.aim-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .aim-opts { grid-template-columns: 1fr; } }
.aim-opt { position: relative; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 22px; }
.aim-opt.feat { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.aim-flag { position: absolute; top: -10px; left: 22px; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: var(--primary); padding: 3px 10px; border-radius: 999px; }
.aim-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.aim-ic svg { width: 21px; height: 21px; }
.aim-opt.feat .aim-ic { background: var(--accent-soft); color: var(--gold); }
.aim-opt h4 { margin: 0 0 7px; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.aim-opt p { margin: 0 0 14px; font-size: .85rem; color: var(--muted); line-height: 1.55; }
.aim-tag { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 5px 11px; border-radius: 999px; }
.aim-models { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #fff, var(--bg-2)); padding: 20px 22px; }
.aim-models-h { display: flex; align-items: baseline; gap: 10px; font-size: .98rem; font-weight: 800; color: var(--ink); margin-bottom: 16px; flex-wrap: wrap; }
.aim-models-h svg { width: 17px; height: 17px; color: var(--primary); align-self: center; }
.aim-models-h em { font-style: normal; font-size: .76rem; font-weight: 500; color: var(--muted); margin-left: auto; }
.aim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 11px; }
.aim-card { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.aim-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.aim-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--c, var(--primary)); color: #fff; font-weight: 800; font-size: 1.05rem; flex: none; box-shadow: 0 6px 14px -8px var(--c, var(--primary)); }
.aim-logo.ghost { background: var(--bg-2); color: var(--muted); box-shadow: none; border: 1px dashed var(--line-2); }
.aim-card-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.aim-card-b b { font-size: .9rem; color: var(--ink); font-weight: 700; }
.aim-card-b em { font-style: normal; font-size: .76rem; color: var(--muted); }
.aim-new { font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ok); background: var(--ok-soft); padding: 3px 8px; border-radius: 999px; flex: none; }
.aim-card.more { border-style: dashed; }

/* ======================= DEALS WHITEBOARD ======================= */
.dlw-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 16px 16px 0; }
.dlw-trow { display: grid; grid-template-columns: minmax(0,1.7fr) .55fr 1.3fr .9fr 1.2fr 1.1fr; gap: 10px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .83rem; }
.dlw-trow:last-child { border-bottom: 0; }
.dlw-trow span { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.dlw-trow span:first-child { text-align: left; }
.dlw-trow.head { background: var(--ink); color: #fff; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.dlw-trow.head span { color: rgba(255,255,255,.85); }
.dlw-trow.tot { background: var(--bg-2); font-weight: 800; }
.dlw-name { display: flex; flex-direction: column; font-weight: 700; }
.dlw-name em { font-style: normal; font-size: .72rem; color: var(--muted); font-weight: 500; }
.dlw-board { margin: 18px 16px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: #fbfcfe; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 30px 30px; padding: 20px 22px 26px; }
.dlw-board-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.dlw-board-h b { font-family: 'Caveat', cursive; font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1; }
.dlw-board-h span { font-size: .8rem; color: var(--muted); }
.dlw-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.dlw-note { position: relative; background: #fff; border: 2px solid #c4b5fd; border-radius: 10px; padding: 15px 17px 14px; transform: rotate(var(--rot)); box-shadow: 0 8px 18px -12px rgba(15,29,51,.4); transition: transform .15s; }
.dlw-note:hover { transform: rotate(0deg) translateY(-2px); }
.dlw-note-date { position: absolute; top: 11px; right: 13px; font-family: var(--font-body); font-size: .7rem; color: var(--muted-2); }
.dlw-note-v { display: block; font-family: 'Caveat', cursive; font-size: 2.2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.dlw-note-a, .dlw-note-b { display: block; font-family: 'Caveat', cursive; font-size: 1.3rem; font-weight: 600; color: var(--body); line-height: 1.15; }
.dlw-note-a { margin-top: 6px; }
.dlw-note-tag { display: inline-block; margin-top: 9px; font-family: var(--font-body); font-size: .68rem; font-weight: 700; color: #7c3aed; background: rgba(124,58,237,.12); padding: 3px 11px; border-radius: 999px; }

/* ======================= INBOX CHANNEL BOXES (override) ======================= */
.ib-tabs { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ib-tab { display: flex !important; align-items: center; gap: 12px; border: 1px solid var(--line) !important; border-radius: 13px; padding: 13px 15px !important; background: #fff !important; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; }
.ib-tab:hover { border-color: var(--line-2) !important; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.ib-tab.on { border-color: var(--cc) !important; box-shadow: 0 0 0 1px var(--cc); }
.ib-tab-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--cc) 14%, #fff); color: var(--cc); flex: none; }
.ib-tab-ic svg { width: 19px; height: 19px; }
.ib-tab-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ib-tab-tx b { font-size: .95rem; font-weight: 700; color: var(--ink); }
.ib-tab-tx em { font-style: normal; font-size: .76rem; color: var(--muted); }
.ib-tab .ib-n { position: static; margin-left: auto; flex: none; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--cc); color: #fff; font-size: .72rem; font-weight: 800; font-style: normal; }
@media (max-width: 700px) { .ib-tabs { grid-template-columns: 1fr; } .ib-tab-tx em { display: none; } }

/* ======================= PORTFOLIO · CLIENT HEADER ======================= */
.pf-client { display: flex; align-items: center; gap: 13px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), #fff); }
.pf-client-av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: .95rem; flex: none; }
.pf-client-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-client-id b { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.pf-client-id span { font-size: .8rem; color: var(--muted); }
.pf-client-link { font-size: .82rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.pf-client-link:hover { text-decoration: underline; }

/* fix: onboarding's generic .ob rule was inflating the engagement-outcome bars */
.lm-outcome .ob { display: block !important; grid-template-columns: none !important; min-height: 0 !important; height: 8px !important; }

/* ======================= PRODUCTS · LIVE PRICE BANNER ======================= */
.lvpx { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 20px; padding: 24px 26px; border-radius: 18px; color: #fff; background: radial-gradient(120% 140% at 100% 0, rgba(251,169,25,.22), transparent 55%), linear-gradient(150deg, #16223c, #0f1d33); box-shadow: 0 24px 50px -28px rgba(15,29,51,.6); }
@media (max-width: 820px) { .lvpx { grid-template-columns: 1fr; } }
.lvpx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lvpx-dot { width: 7px; height: 7px; border-radius: 50%; background: #41c97d; box-shadow: 0 0 0 0 rgba(65,201,125,.6); animation: lvpx-pulse 1.8s infinite; }
@keyframes lvpx-pulse { 0% { box-shadow: 0 0 0 0 rgba(65,201,125,.55); } 70% { box-shadow: 0 0 0 7px rgba(65,201,125,0); } 100% { box-shadow: 0 0 0 0 rgba(65,201,125,0); } }
.lvpx-l h3 { margin: 12px 0 8px; font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.lvpx-l h3 b { color: var(--accent); }
.lvpx-l p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.72); line-height: 1.55; max-width: 460px; }
.lvpx-r { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lvpx-tick { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 13px; padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; }
.lvpx-tick.soon { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
.lvpx-tk-h { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.lvpx-live { color: #41c97d; font-weight: 700; position: relative; padding-left: 11px; }
.lvpx-live::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: #41c97d; animation: lvpx-pulse 1.8s infinite; }
.lvpx-tick b { font-size: 1.45rem; font-weight: 800; font-family: var(--font-display); line-height: 1; }
.lvpx-tick.soon b { font-size: 1rem; color: rgba(255,255,255,.92); }
.lvpx-up { font-size: .76rem; font-weight: 700; color: #41c97d; }
.lvpx-soon { font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #0f1d33; background: var(--accent); padding: 4px 10px; border-radius: 999px; }
.lvpx-calc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.05); }
.lvpx-calc-i { display: flex; flex-direction: column; gap: 3px; }
.lvpx-calc-i span, .lvpx-calc-i label { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.55); font-weight: 700; }
.lvpx-calc-i b { font-size: 1.15rem; font-weight: 800; font-family: var(--font-display); color: #fff; }
.lvpx-calc-i.out b { color: var(--accent); }
.lvpx-calc-in { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 700; }
.lvpx-calc-in input { width: 56px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 7px; padding: 5px 8px; color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .9rem; }
.lvpx-calc-i.out { margin-left: auto; align-items: flex-end; }

/* ======================= NAV · MARKETPLACE LINK ======================= */
.nav-market { font-size: 0.92rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.nav-market:hover { color: var(--accent); }
@media (max-width: 720px) { .nav-market { display: none; } }

/* ======================= TRAINING MARKETPLACE ======================= */
.mkt-wrap { padding: 0; }
.mkt-hero { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 22px; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), #fff); }
@media (max-width: 760px) { .mkt-hero { grid-template-columns: 1fr; } }
.mkt-eyebrow { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.mkt-hero-l h3 { margin: 10px 0 14px; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.mkt-stats { display: flex; gap: 26px; }
.mkt-stats span { display: flex; flex-direction: column; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.mkt-stats b { font-size: 1.5rem; font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.mkt-buy { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 16px; }
.mkt-buy-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.mkt-seg { display: inline-flex; gap: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin: 8px 0 10px; }
.mkt-seg-b { border: 0; background: none; font-family: var(--font-body); font-weight: 700; font-size: .82rem; color: var(--muted); padding: 7px 16px; border-radius: 7px; cursor: pointer; }
.mkt-seg-b.on { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.mkt-buy-note { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.mkt-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .mkt-cats { grid-auto-flow: column; grid-auto-columns: minmax(150px,1fr); grid-template-columns: none; overflow-x: auto; } }
.mkt-cat { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 13px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.mkt-cat:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.mkt-cat.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.mkt-cat.soon { opacity: .7; }
.mkt-cat-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); flex: none; }
.mkt-cat-ic svg { width: 17px; height: 17px; }
.mkt-cat.on .mkt-cat-ic { background: var(--primary); color: #fff; }
.mkt-cat-tx { display: flex; flex-direction: column; min-width: 0; }
.mkt-cat-tx b { font-size: .85rem; font-weight: 700; color: var(--ink); }
.mkt-cat-tx em { font-style: normal; font-size: .72rem; color: var(--muted); }
.mkt-body { padding: 20px 24px 24px; }
.mkt-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mkt-course { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 16px; display: flex; flex-direction: column; }
.mkt-course-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.mkt-lvl { font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--ink); padding: 3px 9px; border-radius: 6px; }
.mkt-cat-tag { font-size: .7rem; font-weight: 700; color: var(--gold); background: var(--accent-soft); padding: 3px 9px; border-radius: 6px; }
.mkt-course h4 { margin: 0 0 9px; font-size: 1.02rem; font-weight: 800; color: var(--ink); }
.mkt-by { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 11px; }
.mkt-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; flex: none; }
.mkt-av.sm { width: 24px; height: 24px; font-size: .64rem; }
.mkt-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mkt-roles i { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 3px 9px; border-radius: 6px; }
.mkt-course-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.mkt-price { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.mkt-price.free { color: var(--ok); }
.mkt-btn { border: 0; background: var(--primary); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .82rem; padding: 9px 15px; border-radius: 9px; cursor: pointer; }
.mkt-btn:hover { background: var(--primary-2); }
.mkt-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.mkt-btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.mkt-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 13px 15px; }
.mkt-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); flex: none; }
.mkt-ic svg { width: 18px; height: 18px; }
.mkt-card-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mkt-card-b b { font-size: .9rem; color: var(--ink); font-weight: 700; }
.mkt-card-b em { font-style: normal; font-size: .76rem; color: var(--muted); }
.mkt-price, .mkt-seats { white-space: nowrap; }
.mkt-seats { font-size: .78rem; color: var(--muted); font-weight: 700; }
.mkt-rating { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); font-weight: 700; }
.mkt-rating svg { width: 13px; height: 13px; fill: var(--accent); stroke: var(--accent); }
.mkt-empty { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 44px 20px; text-align: center; color: var(--muted); }
.mkt-empty svg { width: 28px; height: 28px; color: var(--muted-2); margin-bottom: 4px; }
.mkt-empty b { font-size: 1rem; color: var(--ink); }
.mkt-empty span { font-size: .85rem; }

/* Data area: rail drives the lead tabs, so hide the in-frame tab column */
.lm { grid-template-columns: 1fr !important; }
.lm .lm-nav { display: none !important; }

/* ======================= CREATE SCRIPTS · EDITOR ======================= */
.scw-menu { display: flex; align-items: center; gap: 4px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.scw-back { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--muted); }
.scw-back svg { width: 16px; height: 16px; }
.scw-menu-i { font-size: .85rem; color: var(--body); padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.scw-menu-i:hover { background: var(--bg-2); color: var(--ink); }
.scw-tools { display: flex; align-items: center; gap: 5px; padding: 9px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); flex-wrap: wrap; }
.scw-font { font-size: .82rem; color: var(--ink); padding: 5px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.scw-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.scw-t { display: grid; place-items: center; min-width: 30px; height: 30px; border: 0; background: none; border-radius: 7px; cursor: pointer; color: var(--ink); font-size: .9rem; }
.scw-t svg { width: 17px; height: 17px; }
.scw-t:hover { background: #fff; box-shadow: var(--shadow-sm); }
.scw-grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 0; }
@media (max-width: 820px) { .scw-grid { grid-template-columns: 1fr; } }
.scw-page { padding: 22px; background: var(--bg-2); min-height: 420px; }
.scw-doc { background: #fff; border: 1px solid var(--line); border-radius: 6px; min-height: 380px; padding: 40px 46px; box-shadow: var(--shadow-md); font-size: .95rem; line-height: 1.7; color: var(--ink); outline: none; }
.scw-doc:empty::before, .scw-doc:not(.has)::before { content: attr(data-ph); color: var(--muted-2); }
.scw-doc.has::before { content: none; }
.scw-doc p { margin: 0 0 12px; }
.scw-panel { border-left: 1px solid var(--line); padding: 18px 18px 22px; }
.scw-panel-h { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.scw-acc { border-bottom: 1px solid var(--line); }
.scw-acc-h { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; padding: 13px 2px; font-family: var(--font-body); font-size: .9rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.scw-acc-h span { color: var(--muted); font-size: 1.1rem; font-weight: 400; }
.scw-acc-b { display: none; flex-wrap: wrap; gap: 7px; padding: 2px 2px 14px; }
.scw-acc.open .scw-acc-b { display: flex; }
.scw-chip { border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: .78rem; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.scw-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ======================= STAFF MANAGEMENT (profile tabs + assignments) ======================= */
.hr-prof-head { align-items: center; }
.hr-prof-email { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.hr-prof-actions { margin-left: auto; display: flex; gap: 8px; flex: none; }
.hr-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--primary); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .82rem; padding: 9px 14px; border-radius: 9px; cursor: pointer; }
.hr-btn svg { width: 14px; height: 14px; }
.hr-btn:hover { background: var(--primary-2); }
.hr-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.hr-btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.hr-tabs { display: flex; gap: 4px; margin: 18px 0 0; border-bottom: 1px solid var(--line); }
.hr-tab { border: 0; background: none; font-family: var(--font-body); font-weight: 700; font-size: .86rem; color: var(--muted); padding: 11px 14px; cursor: pointer; border-bottom: 2px solid transparent; }
.hr-tab:hover { color: var(--ink); }
.hr-tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.hr-tabbody { padding-top: 16px; }
.hr-assign-g { margin-bottom: 16px; }
.hr-assign-lbl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; margin-bottom: 8px; }
.hr-assign-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-chip { border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: .8rem; padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.hr-chip:hover { border-color: var(--primary); color: var(--primary); }
.hr-chip.on { background: var(--ok-soft); border-color: transparent; color: var(--ok); font-weight: 700; }
.hr-onb-h { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 800; color: var(--ink); margin: 18px 0 10px; }
.hr-onb-h em { font-style: normal; font-size: .76rem; font-weight: 700; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.hr-onb { display: flex; flex-direction: column; gap: 8px; }
.hr-onb-row { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; cursor: pointer; }
.hr-onb-row input { width: 17px; height: 17px; accent-color: var(--ok); flex: none; }
.hr-onb-row.done .hr-onb-t { text-decoration: line-through; color: var(--muted); }
.hr-onb-kind { font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; flex: none; }
.hr-onb-kind.course { color: var(--primary); background: var(--primary-soft); }
.hr-onb-kind.script { color: #7c3aed; background: rgba(124,58,237,.12); }
.hr-onb-kind.task { color: var(--gold); background: var(--accent-soft); }
.hr-onb-t { font-size: .88rem; color: var(--ink); font-weight: 600; }
.hr-onb-empty { font-size: .85rem; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 12px; padding: 22px; text-align: center; }
.hr-intro { display: flex; align-items: center; gap: 11px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; margin-bottom: 16px; }
.hr-intro svg { width: 19px; height: 19px; color: var(--primary); flex: none; }
.hr-intro span { font-size: .88rem; color: var(--body); line-height: 1.5; }
.hr-intro b { color: var(--ink); }
.hr-cost-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 640px) { .hr-cost-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.hr-cost-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; display: flex; flex-direction: column; gap: 4px; }
.hr-cost-card span { font-size: .78rem; color: var(--muted); }
.hr-cost-card b { font-size: 1.25rem; font-weight: 800; color: var(--ink); font-family: var(--font-display); }
.hr-cost-card b.ok { color: var(--ok); }
.hr-calc { display: grid; grid-template-columns: minmax(0,260px) minmax(0,1fr); gap: 18px; align-items: start; }
@media (max-width: 720px) { .hr-calc { grid-template-columns: 1fr; } }
.hr-calc-in { border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.hr-calc-in label { display: block; font-size: .76rem; font-weight: 700; color: var(--body); margin: 10px 0 5px; }
.hr-calc-in label:first-child { margin-top: 0; }
.hr-calc-in input { width: 100%; border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px; font-family: var(--font-body); font-size: .88rem; color: var(--ink); }
.hr-calc-out { display: flex; flex-direction: column; gap: 12px; }
.hr-res-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.hr-res-row:nth-child(2) { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 640px) { .hr-res-row, .hr-res-row:nth-child(2) { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.hr-res { border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; display: flex; flex-direction: column; gap: 4px; }
.hr-res span { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.hr-res b { font-size: 1.25rem; font-weight: 800; color: var(--ink); font-family: var(--font-display); overflow-wrap: anywhere; }
.hr-res.warn b { color: var(--gold); }
.hr-res.green { background: var(--ok-soft); border-color: transparent; }
.hr-res.green b { color: var(--ok); }
.hr-docs { display: flex; flex-direction: column; gap: 9px; }
.hr-doc { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; }
.hr-doc-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-tint); color: var(--primary); flex: none; }
.hr-doc-ic svg { width: 17px; height: 17px; }
.hr-doc-b { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.hr-doc-b b { font-size: .88rem; color: var(--ink); font-weight: 700; }
.hr-doc-b em { font-style: normal; font-size: .76rem; color: var(--muted); }
.hr-doc-st { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .72rem; font-weight: 800; flex: none; }
.hr-doc-st.ok { background: var(--ok-soft); color: var(--ok); }
.hr-doc-st.warn { background: var(--accent-soft); color: var(--gold); }

/* ======================= DOCUMENT MANAGEMENT · SWITCH BUTTONS ======================= */
.dc-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.dc-switch.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 820px) { .dc-switch.four { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) { .dc-switch { grid-template-columns: 1fr; } }
.dc-sw { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 16px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dc-sw:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.dc-sw.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.dc-sw-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); flex: none; }
.dc-sw-ic svg { width: 20px; height: 20px; }
.dc-sw.on .dc-sw-ic { background: var(--primary); color: #fff; }
.dc-sw-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dc-sw-tx b { font-size: .95rem; font-weight: 700; color: var(--ink); }
.dc-sw-tx em { font-style: normal; font-size: .78rem; color: var(--muted); }

/* ======================= SALES ROLES · METRICS · COMMISSION ======================= */
.sc-tabs { display: flex; gap: 4px; padding: 8px 16px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.sc-tab { border: 0; background: none; font-family: var(--font-body); font-weight: 700; font-size: .86rem; color: var(--muted); padding: 11px 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.sc-tab:hover { color: var(--ink); }
.sc-tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.sc-body { padding: 20px 22px; }
.sc-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.sc-hint { font-size: .84rem; color: var(--muted); }
.sc-bar-r { margin-left: auto; display: flex; gap: 8px; }
.sc-btn { border: 0; background: var(--primary); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .82rem; padding: 9px 14px; border-radius: 9px; cursor: pointer; }
.sc-btn:hover { background: var(--primary-2); }
.sc-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.sc-btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.sc-btn.sm { padding: 6px 11px; font-size: .76rem; }
.sc-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.sc-role { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 16px; }
.sc-role-h { display: flex; align-items: center; gap: 9px; }
.sc-role-h b { font-size: 1rem; font-weight: 800; color: var(--ink); }
.sc-tpl { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: 6px; }
.sc-role-d { font-size: .82rem; color: var(--muted); margin: 5px 0 11px; }
.sc-role-f { font-size: .8rem; color: var(--body); margin-bottom: 11px; }
.sc-role-lbl { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); font-weight: 800; margin-bottom: 3px; }
.sc-role-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.sc-badge { font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.sc-badge.ok { color: var(--ok); background: var(--ok-soft); }
.sc-badge.mut { color: var(--muted); background: var(--bg-2); }
.sc-badge.blue { color: var(--primary); background: var(--primary-soft); }
.sc-badge.amber { color: var(--gold); background: var(--accent-soft); }
.sc-metrics { display: flex; flex-direction: column; gap: 12px; }
.sc-metric { border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 15px 17px; }
.sc-metric b { font-size: .95rem; font-weight: 800; color: var(--ink); }
.sc-metric-main { font-size: .85rem; color: var(--body); margin: 6px 0 4px; }
.sc-metric-sub { font-size: .78rem; color: var(--muted); }
.sc-calc { border: 1px solid var(--accent); background: #fffdf6; border-radius: 14px; padding: 16px; margin-bottom: 18px; }
.sc-calc-h { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.sc-calc-h svg { width: 18px; height: 18px; color: var(--gold); }
.sc-calc-row { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.sc-calc-row label { font-size: .72rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.sc-calc-row select, .sc-calc-row input { border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 12px; font-family: var(--font-body); font-size: .86rem; color: var(--ink); }
.sc-calc-row input { width: 130px; }
.sc-calc-res { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--body); }
.sc-calc-res b.ok { color: var(--ok); }
.sc-structs { display: flex; flex-direction: column; gap: 14px; }
.sc-struct { border: 1px solid var(--line); border-radius: 14px; background: #fffdf6; padding: 16px; }
.sc-struct-h { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.sc-struct-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--gold); font-weight: 800; flex: none; }
.sc-struct-h b { font-size: .98rem; font-weight: 800; color: var(--ink); }
.sc-struct-h em { font-style: normal; font-size: .76rem; color: var(--muted); display: block; }
.sc-struct-h button { margin-left: auto; }
.sc-tier-head, .sc-tier { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,.7fr) minmax(0,1.1fr) minmax(0,1.4fr); gap: 12px; padding: 8px 4px; font-size: .82rem; }
.sc-tier-head { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 800; border-bottom: 1px solid var(--line); }
.sc-tier { border-bottom: 1px solid var(--line); color: var(--ink); }
.sc-tier:last-child { border-bottom: 0; }
.sc-mut { color: var(--muted); }
.sc-perf { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 16px 18px; margin-bottom: 14px; }
.sc-perf-h { display: flex; align-items: baseline; gap: 9px; }
.sc-perf-h b { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.sc-perf-role { font-size: .78rem; color: var(--muted); }
.sc-perf-funnel { font-size: .86rem; color: var(--primary); font-weight: 600; margin: 8px 0 3px; }
.sc-perf-conv { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.sc-perf-cards { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
@media (max-width: 720px) { .sc-perf-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.sc-perf-card { border: 1px solid var(--line); border-radius: 11px; padding: 12px; text-align: center; }
.sc-perf-card b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--ink); font-family: var(--font-display); }
.sc-perf-card span { font-size: .72rem; color: var(--muted); }

/* ============================================================
   MOBILE: keep the homepage demo consoles inside the screen.
   The consoles were sliding the whole page sideways because some
   grid/flex children lacked `min-width:0` (so they refused to
   shrink and ballooned the layout). These are containment-only
   fixes — phones/tablets (<=900px) only; desktop is unchanged.
   Added 2026-06-29 (mobile-friendliness Phase 3).
   ============================================================ */
@media (max-width: 900px) {
  /* CRM demo (sidebar + stage): the main culprit — let them shrink */
  .crm-shell, .crm-side, .crm-stage { min-width: 0; }
  .crm-side { overflow-x: hidden; }

  /* Training section: let the tab strip stay within the screen */
  .tr-nav, .tr-nav-group { max-width: 100%; }

  /* Staff / HR panel: allow the columns/cards to shrink */
  .hr-grid > *, .hr-roster, .hr-profile { min-width: 0; }
  .hr-prof-head, .hr-prof-actions, .sys-plates { flex-wrap: wrap; }
  .sys-plate { min-width: 0; }

  /* Customer-success journey strip: swipe instead of pushing the page */
  .cs-journey { overflow-x: auto; max-width: 100%; }
}

/* ============================================================
   MOBILE: demo section-switchers become bottom tab bars.
   Each demo console's switcher (CRM / Data / AI / Training / …)
   pins to the bottom of the screen like a native app tab bar
   while that demo is in view, instead of a top strip.
   Phones/tablets (<=900px) only; desktop sidebar is unchanged.
   Added 2026-06-29 (mobile-friendliness Phase 3b).
   ============================================================ */
@media (max-width: 900px) {
  .crm-shell { display: flex; flex-direction: column; }
  .crm-stage { order: 1; }
  .crm-side {
    order: 2; position: sticky; bottom: 0; top: auto; z-index: 40;
    border-right: 0; border-top: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 -10px 28px rgba(8,16,32,0.30);
  }
  .crm-side-inner { padding: 8px 10px; gap: 6px; }
  .crm-nv { min-width: 78px; padding: 8px 7px; }
  /* keep the floating chat bubble clear of the bottom bar */
  .agentw { bottom: 92px; }
}

/* Asset-schema explorer: when tapping an asset scrolls the preview into view
   (see demos2.js), keep it clear of the sticky top nav. Harmless on desktop. */
#schemaHero { scroll-margin-top: 88px; }

/* Hero headline rotating word ("slider"): on desktop it sits inline and reserves
   the widest word's width — on a phone that left an ugly gap before "asset sales".
   On phones, give the rotating word its own clean line. Phones only; desktop unchanged.
   Added 2026-06-29 (mobile-friendliness Phase 4). */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.3rem; line-height: 1.1; }
  .vert-rotator { display: grid; }            /* block line — no reserved-width gap */
  .vert-rotator > span { white-space: normal; }
}

/* Switcher taps scroll the sub-demo heading to the top (demos14.js) — keep it
   clear of the sticky top nav so the heading isn't hidden underneath. */
.crm-stage .demo-head, .crm-stage .sec-head,
section[id] > .wrap > .demo-head, section[id] > .wrap > .sec-head { scroll-margin-top: 84px; }

/* ============================================================
   MOBILE: wide demo grids ("tables") swipe instead of squishing.
   They keep their full readable column widths; you swipe left-right
   to see every column. Nothing removed. Phones/tablets (<=900px) only.
   Added 2026-06-29 (Phase 4, Task 3).
   ============================================================ */
@media (max-width: 900px) {
  /* Deals "Sales Whiteboard" rep performance table */
  .dlw-table { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .dlw-trow { min-width: 540px; }
  /* Deals toolbar: let the "Open pipeline £…" stat drop to its own line
     instead of being squeezed beside the Whiteboard/Board/List toggle (it was cut off). */
  .dl-top { flex-wrap: wrap; row-gap: 10px; }
  .dl-total { text-align: left; }

  /* Other demo widgets/tables wider than the phone — swipe to see them in full,
     instead of being clipped by the demo frame. Nothing removed.
     (portfolio table, purchase-orders, logistics, deck builder, booking, inbox) */
  .pf-table, .po-host, .lg-host, .dk-host, .bk, .ib, .dc-host, .schema-hero { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Company-goals demo: stack the control + readout instead of forcing 2 columns */
  .goals { grid-template-columns: 1fr; overflow-x: auto; }
  .goals > * { min-width: 0; }
}

/* ============================================================
   MOBILE: two-tier bottom navigation.
   demos14.js parks the CRM "Sections" strip in the shell; here it's
   pinned as a SECONDARY bar directly above the primary bottom bar.
   It only appears when the active area has >1 part (renderStrip hides
   it otherwise). Phones/tablets (<=900px) only; desktop unchanged.
   Added 2026-06-29 (two-tier nav).
   ============================================================ */
@media (max-width: 900px) {
  .crm-side { order: 3; }                         /* primary bar at the very bottom */
  .crm-shell > .crm-subnav {
    order: 2; position: sticky !important; bottom: 90px !important; top: auto !important;
    z-index: 39 !important; margin: 0 !important;
    background: #16243f !important;            /* solid colour behind the parts */
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    border-top: 1px solid rgba(255,255,255,0.10) !important; border-bottom: 0 !important;
    box-shadow: none !important;
  }
  .crm-shell > .crm-subnav .crm-sub-inner {
    padding: 9px 12px; max-width: none; margin: 0;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .crm-shell > .crm-subnav .crm-sub-inner::-webkit-scrollbar { display: none; }
  .crm-shell > .crm-subnav .crm-sub-lbl { display: none; }    /* remove the "Sections" word */
  /* options = flat clickable text on the solid bar (no pills) */
  .crm-shell > .crm-subnav .crm-sub {
    flex: 0 0 auto; background: transparent !important; border: 0 !important;
    border-radius: 0 !important; padding: 8px 15px !important; position: relative;
    color: rgba(255,255,255,0.62) !important; font-weight: 600; white-space: nowrap;
  }
  .crm-shell > .crm-subnav .crm-sub.on { color: #fff !important; }
  .crm-shell > .crm-subnav .crm-sub.on::after {
    content: ''; position: absolute; left: 15px; right: 15px; bottom: 2px;
    height: 2px; border-radius: 2px; background: var(--accent);
  }
  .crm-shell > .crm-subnav .crm-sub-dot { display: none !important; }

  /* A demo's OWN switcher row (e.g. Marketing's Email/SMS/Paid ads) parked into
     the same secondary bar, styled to match the section options. */
  .crm-shell > .mob-subbar {
    order: 2; position: sticky !important; bottom: 90px !important; top: auto !important;
    z-index: 39 !important; margin: 0 !important; background: #16243f !important;
    border-top: 1px solid rgba(255,255,255,0.10) !important; box-shadow: none !important;
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto;
    gap: 0 !important; padding: 9px 12px !important;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 0 !important;
  }
  .crm-shell > .mob-subbar::-webkit-scrollbar { display: none; }
  .crm-shell > .mob-subbar > * {
    flex: 0 0 auto !important; background: transparent !important; border: 0 !important;
    border-radius: 0 !important; padding: 8px 15px !important; position: relative;
    color: rgba(255,255,255,0.62) !important; font-weight: 600; white-space: nowrap;
    box-shadow: none !important; min-width: 0 !important;
  }
  .crm-shell > .mob-subbar > .on { color: #fff !important; }
  .crm-shell > .mob-subbar > .on::after {
    content: ''; position: absolute; left: 15px; right: 15px; bottom: 2px;
    height: 2px; border-radius: 2px; background: var(--accent);
  }
  /* hide a demo's in-content switcher row once it's mirrored into the bottom bar
     (class is on the stable section, so it survives the demo re-rendering the row) */
  .mob-has-subbar .gr-tabs,
  .mob-has-subbar .tabs,
  .mob-has-subbar #scriptTabs,
  .mob-has-subbar #goalTabs,
  .mob-has-subbar .sc-tabs,
  .mob-has-subbar .dc-switch { display: none !important; }

  .crm-stage { padding-bottom: 28px; }            /* clear the stacked bars */
  .agentw { bottom: 150px; }                      /* chat bubble above both tiers */
}
