:root {
  --navy: #10243e;
  --navy-2: #183553;
  --ink: #172433;
  --muted: #66758a;
  --line: #dfe6ee;
  --canvas: #f4f7fa;
  --surface: #ffffff;
  --primary: #0d766e;
  --primary-dark: #075e58;
  --primary-soft: #e7f5f2;
  --orange: #e97722;
  --orange-soft: #fff0e4;
  --red: #c64144;
  --red-soft: #fdebec;
  --blue: #3478c9;
  --blue-soft: #eaf3fc;
  --green: #21855b;
  --green-soft: #e9f6ef;
  --shadow: 0 12px 34px rgba(16, 36, 62, .09);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 248px; display: flex; flex-direction: column; padding: 24px 16px 18px; color: #fff; background: var(--navy); overflow-y: auto; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 29; border: 0; padding: 0; visibility: hidden; opacity: 0; pointer-events: none; background: rgba(7,20,35,.48); backdrop-filter: blur(2px); transition: opacity .22s ease, visibility .22s ease; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-weight: 800; font-size: 1.25rem; color: var(--navy); background: #d8f0eb; }
.brand strong, .brand span, .user-card strong, .user-card span { display: block; }
.brand strong { font-size: 1.1rem; letter-spacing: -.02em; }
.brand span { margin-top: 2px; color: #aebdcd; font-size: .8rem; }
.demo-launch-button { width: 100%; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; margin: -8px 0 20px; padding: 11px 12px; border: 1px solid rgba(126,209,192,.3); border-radius: 11px; color: #fff; text-align: left; background: linear-gradient(135deg, rgba(13,118,110,.72), rgba(36,80,107,.85)); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.demo-launch-button:hover { border-color: rgba(159,229,216,.65); transform: translateY(-1px); }
.demo-launch-button strong, .demo-launch-button small { display: block; }
.demo-launch-button strong { font-size: .82rem; }
.demo-launch-button small { margin-top: 2px; color: #a9d9d1; font-size: .65rem; }
.demo-pulse { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--navy); background: #bde8df; font-size: .72rem; box-shadow: 0 0 0 5px rgba(189,232,223,.1); }
.workspace-label { padding: 0 10px 8px; color: #7890a7; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.workspace-label.nav-label { margin-top: 18px; }
.department-switcher { display: grid; gap: 5px; }
.department-button { width: 100%; display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; color: #9fb0c1; background: transparent; text-align: left; transition: .18s ease; }
.department-button > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #b8c8d7; background: rgba(255,255,255,.08); font-size: .72rem; font-weight: 850; }
.department-button strong, .department-button small { display: block; }
.department-button strong { font-size: .78rem; }
.department-button small { margin-top: 1px; color: #7890a7; font-size: .64rem; }
.department-button:hover { color: #fff; background: rgba(255,255,255,.05); }
.department-button.active { border-color: rgba(126,209,192,.24); color: #fff; background: rgba(36,80,107,.72); }
.department-button.active > span { color: #0c514c; background: #cdece5; }
.department-button.active small { color: #9fd2c8; }
.nav { display: grid; gap: 5px; }
.nav-item { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 12px; color: #bfccda; text-align: left; font-size: .92rem; font-weight: 600; background: transparent; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: #24506b; box-shadow: inset 3px 0 #79d0bd; }
.nav-icon { font-size: 1.15rem; text-align: center; }
.nav-badge { min-width: 22px; padding: 2px 6px; border-radius: 10px; color: #d9e7ee; background: rgba(255,255,255,.12); font-size: .72rem; text-align: center; }
.nav-badge.warning { color: #ffc99f; background: rgba(233,119,34,.16); }
.sidebar-card { margin: auto 4px 18px; padding: 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.055); }
.sidebar-card .eyebrow { color: #7ed1c0; }
.sidebar-card strong { display: block; margin: 5px 0; font-size: .88rem; }
.sidebar-card p { margin: 0; color: #aebdcd; font-size: .78rem; line-height: 1.45; }
.eyebrow { color: var(--primary); font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.user-card { display: grid; grid-template-columns: 36px 1fr 28px; align-items: center; gap: 9px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #0c514c; background: #cdece5; font-size: .78rem; font-weight: 800; }
.user-card strong { font-size: .8rem; }
.user-card span { color: #9eafc0; font-size: .72rem; }
.user-card .icon-button { color: #aebdcd; }

.main { min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; top: 0; z-index: 20; height: 82px; display: flex; align-items: center; gap: 20px; padding: 12px 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.topbar-title { min-width: 190px; }
.topbar-title span { display: block; margin-bottom: 1px; color: var(--muted); font-size: .74rem; text-transform: capitalize; }
.topbar h1 { margin: 0; font-size: 1.4rem; letter-spacing: -.035em; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.global-search { width: min(320px, 27vw); display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.global-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .86rem; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; font-size: 1.18rem; }
.icon-button:hover { background: rgba(102,117,138,.1); }
.menu-button { display: none; }
.notification-wrap { position: relative; }
.notification-button { border: 1px solid var(--line); }
#notificationDot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--orange); }
.popover { position: absolute; top: 48px; right: 0; width: 350px; display: none; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.popover.open { display: block; }
.popover-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.text-button { padding: 0; border: 0; color: var(--primary); background: none; font-size: .78rem; font-weight: 700; }
.notification-item { display: grid; grid-template-columns: 9px 1fr; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #edf1f5; }
.notification-item:last-child { border: 0; }
.notification-item .dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--orange); }
.notification-item.read .dot { background: #cbd4de; }
.notification-item strong { display: block; font-size: .84rem; }
.notification-item span { color: var(--muted); font-size: .75rem; }
.primary-button, .secondary-button, .danger-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 9px; padding: 9px 15px; font-size: .86rem; font-weight: 750; }
.primary-button { color: #fff; background: var(--primary); box-shadow: 0 6px 14px rgba(13,118,110,.16); }
.primary-button:hover { background: var(--primary-dark); }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.secondary-button:hover { background: #f5f7f9; }
.danger-button { color: var(--red); background: var(--red-soft); }

.view { display: none; padding: 26px 30px 46px; }
.view.active { display: block; animation: reveal .18s ease; }
@keyframes reveal { from { opacity: .25; transform: translateY(3px); } }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.view-head h2 { margin: 0 0 4px; font-size: 1.24rem; letter-spacing: -.025em; }
.view-head p { margin: 0; color: var(--muted); font-size: .86rem; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 12px; }
.section-title h3 { margin: 0; font-size: .98rem; }
.section-title span { color: var(--muted); font-size: .8rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; }
.kpi-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 4px 15px rgba(16,36,62,.035); }
.kpi-card { padding: 18px; }
.kpi-top { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; font-weight: 650; }
.kpi-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.kpi-card.orange .kpi-icon { color: var(--orange); background: var(--orange-soft); }
.kpi-card.blue .kpi-icon { color: var(--blue); background: var(--blue-soft); }
.kpi-card.green .kpi-icon { color: var(--green); background: var(--green-soft); }
.kpi-value { display: flex; align-items: baseline; gap: 9px; margin-top: 10px; }
.kpi-value strong { font-size: 1.7rem; letter-spacing: -.04em; }
.trend { color: var(--green); font-size: .74rem; font-weight: 750; }
.trend.down { color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-top: 16px; }
.panel { padding: 19px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.panel-head h3 { margin: 0; font-size: .98rem; }
.panel-head select { border: 0; color: var(--muted); background: transparent; font-size: .78rem; }
.funnel { display: grid; gap: 14px; }
.funnel-row { display: grid; grid-template-columns: 105px 1fr 36px; align-items: center; gap: 12px; font-size: .78rem; }
.bar-track { height: 9px; border-radius: 9px; background: #edf1f5; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 9px; background: var(--primary); }
.funnel-row:nth-child(2) .bar-fill { background: #2d9386; }
.funnel-row:nth-child(3) .bar-fill { background: #4ea89d; }
.funnel-row:nth-child(4) .bar-fill { background: var(--orange); }
.funnel-row:nth-child(5) .bar-fill { background: var(--green); }
.urgent-list, .activity-list { display: grid; gap: 1px; }
.urgent-item, .activity-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.urgent-item:last-child, .activity-item:last-child { border: 0; }
.urgency-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.urgency-dot.red { background: var(--red); }
.urgent-item strong, .activity-item strong { display: block; font-size: .82rem; }
.urgent-item span, .activity-item span { color: var(--muted); font-size: .73rem; }
.time-pill { padding: 4px 7px; border-radius: 7px; color: var(--red) !important; background: var(--red-soft); font-weight: 700; }
.sales-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sales-person { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #edf1f5; border-radius: 10px; }
.sales-person .avatar { flex: 0 0 auto; }
.sales-person strong { display: block; font-size: .78rem; }
.sales-person span { color: var(--muted); font-size: .68rem; }

.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.toolbar-search { min-width: 245px; flex: 1; }
.toolbar input, .toolbar select, .field input, .field select, .field textarea, .inline-select { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; outline: 0; color: var(--ink); background: #fff; }
.toolbar input:focus, .toolbar select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #6cb5aa; box-shadow: 0 0 0 3px rgba(13,118,110,.08); }
.table-wrap { border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.data-table th { padding: 12px 14px; color: #708094; background: #f7f9fb; font-size: .72rem; text-align: left; text-transform: uppercase; letter-spacing: .05em; }
.data-table td { padding: 13px 14px; border-top: 1px solid #edf1f5; font-size: .82rem; }
.data-table tbody tr { cursor: pointer; transition: .15s ease; }
.data-table tbody tr:hover { background: #f8fbfb; }
.customer-cell { display: flex; align-items: center; gap: 10px; }
.customer-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; color: #28536e; background: #e8f0f6; font-size: .72rem; font-weight: 800; }
.customer-cell strong, .customer-cell span { display: block; }
.customer-cell span { color: var(--muted); font-size: .72rem; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 7px; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.new { color: var(--blue); background: var(--blue-soft); }
.status.contacted { color: #6e5ab4; background: #f0edfb; }
.status.qualified { color: #9a6b00; background: #fff7dc; }
.status.quoted { color: var(--orange); background: var(--orange-soft); }
.status.won { color: var(--green); background: var(--green-soft); }
.status.lost { color: var(--red); background: var(--red-soft); }
.owner { display: flex; align-items: center; gap: 7px; }
.owner .avatar { width: 27px; height: 27px; font-size: .62rem; }
.deadline { color: var(--muted); }
.deadline.urgent { color: var(--red); font-weight: 750; }
.empty-state { padding: 48px 20px; color: var(--muted); text-align: center; }

.pipeline-board { display: grid; grid-template-columns: repeat(6, minmax(260px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.pipeline-column { min-height: 540px; padding: 12px; border-radius: 13px; background: #eaf0f5; }
.pipeline-column.drag-over { outline: 2px dashed var(--primary); outline-offset: -4px; background: #e3f2ef; }
.column-head { display: flex; justify-content: space-between; align-items: center; margin: 0 3px 12px; }
.column-head strong { font-size: .82rem; }
.column-head span { display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: 8px; color: var(--muted); background: #fff; font-size: .7rem; }
.pipeline-card { margin-bottom: 9px; padding: 13px; border: 1px solid #dce3ea; border-radius: 11px; background: #fff; box-shadow: 0 3px 8px rgba(16,36,62,.04); cursor: grab; }
.pipeline-card:active { cursor: grabbing; }
.pipeline-card strong { display: block; margin-bottom: 4px; font-size: .82rem; }
.pipeline-card p { margin: 0 0 12px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.pipeline-card-foot { display: flex; justify-content: space-between; align-items: center; }
.pipeline-card-foot .avatar { width: 26px; height: 26px; font-size: .58rem; }
.card-days { color: var(--muted); font-size: .68rem; }
.card-days.urgent { color: var(--red); font-weight: 800; }

.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 10px; background: #e9eef3; }
.tab { border: 0; border-radius: 7px; padding: 7px 11px; color: var(--muted); background: transparent; font-size: .78rem; font-weight: 700; }
.tab.active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(16,36,62,.08); }
.task-list { border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; }
.task-row { display: grid; grid-template-columns: 34px minmax(220px, 1.5fr) 1fr .8fr 100px; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #edf1f5; }
.task-row:last-child { border: 0; }
.task-check { width: 21px; height: 21px; border: 2px solid #b9c5d1; border-radius: 6px; background: #fff; }
.task-check.done { border-color: var(--green); color: #fff; background: var(--green); }
.task-title strong { display: block; font-size: .84rem; }
.task-title span { color: var(--muted); font-size: .72rem; }
.task-row.completed { opacity: .58; }
.task-row.completed .task-title strong { text-decoration: line-through; }

.order-value { font-weight: 800; }
.order-id { color: var(--primary); font-weight: 800; }
.order-status { min-width: 122px; border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; color: var(--ink); background: #fff; font-size: .74rem; }
.summary-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.summary-card { padding: 14px 16px; border-left: 3px solid var(--primary); border-radius: 10px; background: #fff; box-shadow: 0 3px 10px rgba(16,36,62,.04); }
.summary-card span, .summary-card strong { display: block; }
.summary-card span { color: var(--muted); font-size: .75rem; }
.summary-card strong { margin-top: 3px; font-size: 1.18rem; }

.demo-kickoff { position: relative; display: grid; grid-template-columns: 1.2fr .9fr auto; align-items: center; gap: 24px; margin-bottom: 20px; padding: 20px 22px; border: 1px solid #b9dcd6; border-radius: 16px; color: #fff; background: radial-gradient(circle at 80% 10%, rgba(126,209,192,.2), transparent 30%), linear-gradient(120deg, #102b43, #0b665f); box-shadow: 0 16px 38px rgba(16,36,62,.14); overflow: hidden; }
.demo-kickoff::after { content: ""; position: absolute; width: 180px; height: 180px; right: 18%; bottom: -145px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.demo-kickoff h2 { margin: 5px 0 4px; font-size: 1.28rem; letter-spacing: -.03em; }
.demo-kickoff p { margin: 0; color: rgba(255,255,255,.7); font-size: .8rem; }
.demo-kickoff .eyebrow { color: #9fe5d8; }
.demo-flow-mini { display: flex; align-items: center; justify-content: center; gap: 5px; }
.demo-flow-mini span { padding: 6px 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #d6ece8; background: rgba(255,255,255,.07); font-size: .68rem; font-weight: 700; white-space: nowrap; }
.demo-flow-mini i { color: #78cbbc; font-style: normal; font-size: .75rem; }
.demo-kickoff .primary-button { position: relative; z-index: 1; min-width: 160px; color: #0c514c; background: #fff; box-shadow: none; }

.demo-stage-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 16px; }
.demo-stage-head h2 { margin: 4px 0; font-size: 1.35rem; letter-spacing: -.03em; }
.demo-stage-head p { margin: 0; color: var(--muted); font-size: .8rem; }
.demo-stage-actions { display: flex; gap: 8px; }
.demo-live-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.demo-live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.demo-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.demo-progress-step { position: relative; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #fff; }
.demo-progress-step span { display: grid; place-items: center; width: 23px; height: 23px; margin-bottom: 7px; border-radius: 7px; color: var(--muted); background: #edf1f5; font-size: .68rem; font-weight: 850; }
.demo-progress-step strong { display: block; font-size: .76rem; }
.demo-progress-step small { display: block; margin-top: 2px; font-size: .64rem; }
.demo-progress-step.active { border-color: #76bdb3; color: #1d5c55; background: #eef9f7; box-shadow: inset 0 0 0 1px rgba(13,118,110,.06); }
.demo-progress-step.active span { color: #fff; background: var(--primary); }
.demo-progress-step.done { border-color: #c6e4d4; color: #32684f; background: var(--green-soft); }
.demo-progress-step.done span { color: #fff; background: var(--green); }
.demo-stage-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.65fr); gap: 16px; }
.demo-scene { min-height: 430px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.scene-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.scene-label span:last-child { padding: 5px 8px; border-radius: 7px; color: #2e6e64; background: var(--primary-soft); }
.lead-arrival { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; padding: 16px; border: 1px solid #dbe4eb; border-radius: 13px; background: #f9fbfc; }
.lead-arrival .source-mark { width: 46px; height: 46px; color: #285b9f; background: #e7f0fc; font-size: .75rem; }
.lead-arrival strong, .lead-arrival span { display: block; }
.lead-arrival strong { margin-bottom: 3px; font-size: .96rem; }
.lead-arrival span { color: var(--muted); font-size: .72rem; }
.lead-value { text-align: right; }
.lead-value strong { color: var(--primary); font-size: 1.05rem; }
.lead-value span { font-size: .65rem; }
.scene-story { margin: 18px 0; }
.scene-story h3 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -.02em; }
.scene-story p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.rule-proof { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 4px 0 18px; }
.rule-proof div { padding: 11px; border-radius: 10px; background: #f1f5f8; }
.rule-proof span, .rule-proof strong { display: block; }
.rule-proof span { color: var(--muted); font-size: .65rem; }
.rule-proof strong { margin-top: 3px; font-size: .76rem; }
.demo-action-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.demo-action-row p { margin: 0; max-width: 55%; color: var(--muted); font-size: .71rem; line-height: 1.4; }
.demo-action-row .primary-button { min-width: 195px; }
.proof-panel { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(16,36,62,.04); }
.proof-panel h3 { margin: 0 0 5px; font-size: .92rem; }
.proof-panel > p { margin: 0 0 16px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.proof-list { display: grid; gap: 9px; }
.proof-item { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: start; padding: 11px; border-radius: 10px; background: #f4f7f9; }
.proof-item > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #8593a3; background: #e5ebf0; font-size: .7rem; font-weight: 850; }
.proof-item strong, .proof-item small { display: block; }
.proof-item strong { font-size: .74rem; }
.proof-item small { margin-top: 2px; color: var(--muted); font-size: .64rem; line-height: 1.35; }
.proof-item.passed { background: var(--green-soft); }
.proof-item.passed > span { color: #fff; background: var(--green); }
.proof-item.passed strong { color: #286347; }
.demo-event-log { display: grid; gap: 8px; margin-top: 16px; }
.demo-event { display: grid; grid-template-columns: 8px 1fr auto; gap: 9px; align-items: center; font-size: .68rem; }
.demo-event::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.demo-event span { color: var(--muted); }
.demo-event time { color: #8b98a7; font-size: .62rem; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0; }
.before-after-card { padding: 16px; border-radius: 12px; }
.before-after-card.before { color: #78484a; background: var(--red-soft); }
.before-after-card.after { color: #245f47; background: var(--green-soft); }
.before-after-card span { font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.before-after-card strong { display: block; margin: 8px 0 3px; font-size: 1.32rem; }
.before-after-card p { margin: 0; font-size: .7rem; line-height: 1.4; }
.boundary-card { margin-top: 14px; padding: 13px; border: 1px dashed #b9c7d3; border-radius: 10px; color: var(--muted); background: #fafcfd; font-size: .7rem; line-height: 1.5; }
.boundary-card strong { color: var(--ink); }
.workshop-confirmed { margin-top: 16px; padding: 14px; border: 1px solid #bfe0cf; border-radius: 11px; color: #2b654b; background: var(--green-soft); }
.workshop-confirmed strong, .workshop-confirmed span { display: block; }
.workshop-confirmed strong { font-size: .8rem; }
.workshop-confirmed span { margin-top: 3px; font-size: .7rem; }
.presenter-drawer { position: fixed; z-index: 100; top: 0; right: 0; width: min(390px,100%); height: 100vh; padding: 22px; color: #eaf1f5; background: #10243e; box-shadow: -20px 0 55px rgba(8,24,42,.22); overflow-y: auto; transform: translateX(105%); transition: .25s ease; }
.presenter-drawer.open { transform: translateX(0); }
.presenter-drawer .drawer-head { border-color: rgba(255,255,255,.12); }
.presenter-drawer .drawer-head h2 { color: #fff; }
.presenter-drawer .drawer-head p { color: #9fb0c1; }
.presenter-drawer .icon-button { color: #fff; }
.presenter-section { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.presenter-section h3 { margin: 0 0 8px; color: #8dd6c7; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.presenter-section p { margin: 0; color: #d5e0e9; font-size: .78rem; line-height: 1.6; }
.presenter-question { margin-top: 9px !important; padding: 10px; border-radius: 9px; color: #fff !important; background: rgba(126,209,192,.12); }
.workshop-modal { width: min(720px,100%); }
.modal-subtitle { margin: 6px 0 0; color: var(--muted); font-size: .78rem; }
.workshop-outcomes { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.workshop-outcomes > div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafb; }
.workshop-outcomes span { display: grid; place-items: center; width: 27px; height: 27px; margin-bottom: 9px; border-radius: 8px; color: #fff; background: var(--primary); font-size: .65rem; font-weight: 850; }
.workshop-outcomes strong, .workshop-outcomes small { display: block; }
.workshop-outcomes strong { font-size: .78rem; }
.workshop-outcomes small { margin-top: 4px; color: var(--muted); font-size: .67rem; line-height: 1.4; }
.scope-note { display: grid; gap: 4px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; color: #2e675f; background: var(--primary-soft); }
.scope-note strong { font-size: .76rem; }
.scope-note span { font-size: .69rem; }

.dept-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; padding: 20px 22px; border-radius: 15px; color: #fff; background: linear-gradient(120deg, #173752, #0d766e); box-shadow: var(--shadow); }
.dept-hero.marketing { background: linear-gradient(120deg, #21375d, #5b5197); }
.dept-hero.delivery { background: linear-gradient(120deg, #21364e, #26718a); }
.dept-hero h2 { margin: 4px 0; font-size: 1.38rem; letter-spacing: -.03em; }
.dept-hero p { margin: 0; color: rgba(255,255,255,.72); font-size: .82rem; }
.dept-hero .eyebrow { color: #9fe5d8; }
.dept-hero.marketing .eyebrow { color: #d3cafa; }
.dept-hero .primary-button { color: var(--navy); background: #fff; box-shadow: none; }
.dept-hero .primary-button:hover { background: #eff5f6; }
.marketing-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 16px; }
.marketing-grid > *, .delivery-layout > * { min-width: 0; }
.channel-list { display: grid; gap: 15px; }
.channel-row { display: grid; grid-template-columns: 96px 1fr 58px 58px; gap: 10px; align-items: center; font-size: .76rem; }
.channel-row strong { font-size: .78rem; }
.channel-row .bar-fill { background: #6257a5; }
.channel-row:nth-child(2) .bar-fill { background: #3478c9; }
.channel-row:nth-child(3) .bar-fill { background: #0d8a79; }
.channel-row:nth-child(4) .bar-fill { background: #df8b31; }
.channel-meta { color: var(--muted); text-align: right; font-size: .69rem; }
.lead-inbox { display: grid; gap: 1px; }
.lead-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf1f5; }
.lead-item:last-child { border: 0; }
.source-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #554b96; background: #eeebfa; font-size: .7rem; font-weight: 850; }
.lead-item strong, .lead-item span { display: block; }
.lead-item strong { font-size: .8rem; }
.lead-item span { color: var(--muted); font-size: .69rem; }
.lead-score { padding: 4px 7px; border-radius: 7px; color: var(--green) !important; background: var(--green-soft); font-weight: 800; }
.campaign-name strong, .campaign-name span { display: block; }
.campaign-name span { color: var(--muted); font-size: .7rem; }
.metric-pair strong, .metric-pair span { display: block; }
.metric-pair span { color: var(--muted); font-size: .68rem; }

.delivery-layout { display: grid; grid-template-columns: .78fr 1.45fr; gap: 16px; margin-top: 16px; }
.route-list { display: grid; gap: 10px; }
.route-card { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.route-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.route-head strong { font-size: .82rem; }
.route-time { padding: 4px 7px; border-radius: 7px; color: #2b687e; background: #e8f4f7; font-size: .7rem; font-weight: 800; }
.route-card p { margin: 0 0 9px; color: var(--muted); font-size: .73rem; line-height: 1.45; }
.route-foot { display: flex; justify-content: space-between; align-items: center; }
.driver { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: .72rem; font-weight: 700; }
.driver .avatar { width: 25px; height: 25px; font-size: .58rem; }
.delivery-progress { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .68rem; }
.delivery-progress b { color: var(--primary); }
.delivery-status { min-width: 125px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; color: var(--ink); background: #fff; font-size: .73rem; }
.address-cell { max-width: 220px; color: var(--muted); line-height: 1.35; }
.handoff-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.handoff-step { position: relative; padding: 12px; border-radius: 10px; color: var(--muted); background: #edf2f6; font-size: .72rem; }
.handoff-step strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: .78rem; }
.handoff-step.done { color: #34705a; background: var(--green-soft); }
.handoff-step.current { color: #2b687e; background: #e5f2f5; box-shadow: inset 0 0 0 1px #b8dce4; }
.compact-modal { width: min(560px, 100%); }

.automation-layout { display: grid; grid-template-columns: 1.35fr .8fr; gap: 16px; }
.rule-list { display: grid; gap: 12px; }
.rule-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rule-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--primary); background: var(--primary-soft); font-weight: 800; }
.rule-card strong { display: block; margin-bottom: 3px; font-size: .88rem; }
.rule-card p { margin: 0; color: var(--muted); font-size: .76rem; }
.switch { position: relative; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border-radius: 20px; background: #cbd4de; transition: .2s; }
.slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.settings-panel h3 { margin: 0 0 17px; font-size: .98rem; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 0; border-bottom: 1px solid #edf1f5; }
.setting-row label { font-size: .8rem; font-weight: 650; }
.setting-row input { width: 74px; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 7px; text-align: center; }
.settings-actions { display: flex; gap: 8px; margin-top: 16px; }

.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(7,20,35,.45); backdrop-filter: blur(2px); }
.modal-backdrop.open { display: grid; place-items: center; padding: 18px; }
.modal { width: min(640px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 16px; padding: 22px; background: #fff; box-shadow: 0 28px 70px rgba(8,24,42,.24); }
.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.modal-head h2 { margin: 5px 0 0; font-size: 1.35rem; }
.modal-head .icon-button { background: #f1f4f7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: .78rem; font-weight: 700; }
.field b { color: var(--red); }
.field textarea { resize: vertical; }
.form-note { display: flex; gap: 10px; margin-top: 15px; padding: 11px 13px; border-radius: 9px; color: #2d5d72; background: #eef7fb; }
.form-note span { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #4b91ad; font-size: .72rem; font-weight: 800; }
.form-note p { margin: 0; font-size: .75rem; line-height: 1.45; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 21px; padding-top: 16px; border-top: 1px solid var(--line); }

.drawer-backdrop.open { display: block; }
.detail-drawer { position: fixed; z-index: 90; top: 0; right: 0; width: min(470px, 100%); height: 100vh; padding: 22px; background: #fff; box-shadow: -20px 0 55px rgba(8,24,42,.16); overflow-y: auto; transform: translateX(105%); transition: transform .25s ease; }
.detail-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 4px 0; font-size: 1.25rem; }
.drawer-head p { margin: 0; color: var(--muted); font-size: .78rem; }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0; }
.detail-section { padding: 17px 0; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 12px; font-size: .88rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.detail-item span, .detail-item strong { display: block; }
.detail-item span { margin-bottom: 3px; color: var(--muted); font-size: .7rem; }
.detail-item strong { font-size: .8rem; }
.timeline { display: grid; gap: 13px; }
.timeline-item { position: relative; padding-left: 18px; }
.timeline-item::before { content: ""; position: absolute; left: 2px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.timeline-item::after { content: ""; position: absolute; left: 5px; top: 15px; bottom: -15px; width: 1px; background: var(--line); }
.timeline-item:last-child::after { display: none; }
.timeline-item strong { display: block; font-size: .77rem; }
.timeline-item span { color: var(--muted); font-size: .69rem; }
.note-form { display: flex; gap: 8px; margin-top: 12px; }
.note-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.toast-container { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 12px 15px; border-radius: 10px; color: #fff; background: var(--navy); box-shadow: var(--shadow); font-size: .82rem; animation: toastIn .25s ease; }
.toast.error { background: var(--red); }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .automation-layout { grid-template-columns: 1fr; }
  .sales-strip { grid-template-columns: repeat(3, 1fr); }
  .global-search { display: none; }
  .marketing-grid, .delivery-layout { grid-template-columns: 1fr; }
  .demo-kickoff { grid-template-columns: 1fr auto; }
  .demo-flow-mini { display: none; }
  .demo-stage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .sidebar { transform: translateX(-105%); transition: .25s ease; box-shadow: 20px 0 40px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open .sidebar-backdrop { visibility: visible; opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .menu-button { display: grid; }
  .topbar { height: 72px; padding: 10px 16px; }
  .topbar-title span { display: none; }
  .topbar-title { min-width: 0; }
  .topbar h1 { font-size: 1.15rem; }
  .topbar-actions .primary-button { width: 40px; padding: 0; font-size: 0; }
  .topbar-actions .primary-button span { font-size: 1.2rem; }
  .view { padding: 20px 15px 38px; }
  .dashboard-grid { gap: 12px; }
  .sales-strip { grid-template-columns: 1fr 1fr; }
  .task-row { grid-template-columns: 28px 1fr auto; }
  .task-row > :nth-child(3), .task-row > :nth-child(4) { display: none; }
  .summary-row { grid-template-columns: 1fr; }
  .dept-hero { align-items: flex-start; flex-direction: column; }
  .dept-hero .primary-button { width: 100%; }
  .handoff-strip { grid-template-columns: 1fr 1fr; }
  .demo-progress { grid-template-columns: 1fr 1fr; }
  .workshop-outcomes { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .topbar-actions { gap: 5px; }
  .view-head { align-items: start; flex-direction: column; }
  .view-head .primary-button { width: 100%; }
  .sales-strip { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .popover { position: fixed; top: 70px; right: 10px; left: 10px; width: auto; }
  .rule-card { grid-template-columns: 42px 1fr; }
  .rule-card .switch { grid-column: 2; }
  .demo-kickoff { grid-template-columns: 1fr; }
  .demo-kickoff .primary-button { width: 100%; }
  .demo-stage-head { align-items: flex-start; flex-direction: column; }
  .demo-stage-actions { width: 100%; }
  .demo-stage-actions button { flex: 1; }
  .demo-progress { grid-template-columns: 1fr; }
  .lead-arrival { grid-template-columns: 42px 1fr; }
  .lead-value { grid-column: 2; text-align: left; }
  .rule-proof, .before-after { grid-template-columns: 1fr; }
  .demo-action-row { align-items: stretch; flex-direction: column; }
  .demo-action-row p { max-width: none; }
  .demo-action-row .primary-button { width: 100%; }
}

/* Proof-of-value operational experience */
.integration-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.integration-strip > div { display: grid; grid-template-columns: 10px 1fr; align-items: center; column-gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.integration-strip strong { font-size: .78rem; }
.integration-strip small { grid-column: 2; margin-top: 2px; color: var(--muted); font-size: .68rem; }
.integration-dot { width: 8px; height: 8px; border-radius: 50%; }
.integration-dot.live { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.integration-dot.simulated { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.integration-dot.pending { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.role-switcher { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 7px; margin-bottom: 12px; padding: 6px; border-radius: 13px; background: #e9eef3; overflow-x: auto; }
.role-button { min-width: 118px; padding: 10px 11px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; text-align: left; }
.role-button strong, .role-button span { display: block; }
.role-button strong { color: var(--ink); font-size: .78rem; }
.role-button span { margin-top: 2px; font-size: .65rem; white-space: nowrap; }
.role-button.active { border-color: #9bcfc6; background: #fff; box-shadow: 0 3px 10px rgba(16,36,62,.08); }
.role-button.active strong { color: var(--primary); }
.demo-progress { grid-template-columns: repeat(6, minmax(0,1fr)); }
.demo-stage-grid.realistic { grid-template-columns: minmax(0,1.45fr) minmax(320px,.7fr); }
.demo-stage-grid.realistic .demo-scene { min-height: 570px; }
.operational-alert { display: grid; grid-template-columns: auto 1fr; gap: 7px 10px; margin: 14px 0; padding: 12px 14px; border: 1px solid; border-radius: 11px; font-size: .78rem; line-height: 1.5; }
.operational-alert strong { white-space: nowrap; }
.operational-alert.info { border-color: #cfe0f1; color: #315c7e; background: #f1f7fc; }
.operational-alert.warning { border-color: #f2d8a4; color: #76551b; background: #fff9e9; }
.operational-alert.danger { border-color: #efc6c6; color: #8a3232; background: #fff2f2; }
.record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 18px; }
.record-grid > div { padding: 11px 12px; border: 1px solid #e3e8ed; border-radius: 10px; background: #f8fafc; }
.record-grid span, .record-grid strong { display: block; }
.record-grid span { color: var(--muted); font-size: .68rem; }
.record-grid strong { margin-top: 4px; font-size: .8rem; }
.conversation-card { margin: 14px 0; padding: 14px; border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; background: #f1f8f6; }
.conversation-card span, .conversation-card strong { display: block; }
.conversation-card span { margin-bottom: 5px; color: var(--primary); font-size: .68rem; font-weight: 800; }
.conversation-card strong { font-size: .88rem; }
.conversation-card p { margin: 6px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.warning-pill, .danger-pill { padding: 5px 8px; border-radius: 7px; font-weight: 800; }
.warning-pill { color: #8c620f !important; background: #fff2ca !important; }
.danger-pill { color: var(--red) !important; background: var(--red-soft) !important; }
.approval-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.approval-layout > div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.approval-layout span, .approval-layout strong { display: block; }
.approval-layout span { color: var(--muted); font-size: .7rem; }
.approval-layout strong { margin-top: 4px; font-size: 1rem; }
.risk-text { color: var(--orange); }
.success-text { color: var(--green); }
.approval-chain { display: flex; align-items: center; gap: 8px; margin: 10px 0 18px; overflow-x: auto; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.approval-chain span { padding: 8px 10px; border-radius: 8px; background: #f3f6f8; }
.approval-chain span.done { color: var(--green); background: var(--green-soft); }
.approval-chain i { width: 18px; height: 1px; flex: 0 0 auto; background: #cbd5df; }
.inventory-table { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.inventory-table > div { display: grid; grid-template-columns: 1.2fr .65fr .65fr 1fr; gap: 10px; padding: 11px 13px; border-top: 1px solid #e9edf1; font-size: .75rem; }
.inventory-table > div:first-child { border: 0; }
.inventory-table .inventory-head { color: var(--muted); background: #f3f6f8; font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.inventory-table .recommended { color: #1f654d; background: #eef9f3; }
.micro-note { margin: 0 0 16px; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.delivery-brief { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.driver-card, .route-summary { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafcfd; }
.driver-card strong, .driver-card span, .route-summary span, .route-summary strong, .route-summary small { display: block; }
.driver-card strong, .route-summary strong { font-size: .84rem; }
.driver-card span, .route-summary span, .route-summary small { color: var(--muted); font-size: .69rem; }
.route-summary { display: block; }
.route-summary strong { margin: 3px 0; }
.handoff-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 14px; }
.handoff-checklist > div { padding: 10px 12px; border-radius: 9px; font-size: .74rem; }
.handoff-checklist .checked { color: #246246; background: var(--green-soft); }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.outcome-grid > div { padding: 14px; border: 1px solid #d8e7e2; border-radius: 11px; background: #f4faf8; }
.outcome-grid span, .outcome-grid strong, .outcome-grid small { display: block; }
.outcome-grid span { color: var(--muted); font-size: .68rem; }
.outcome-grid strong { margin: 3px 0; color: var(--primary); font-size: 1.12rem; }
.outcome-grid small { color: var(--muted); font-size: .65rem; }
.proof-panel.operational { padding: 18px; }
.role-panel-head, .acceptance-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.role-panel-head span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.role-panel-head h3 { margin: 2px 0 0; font-size: 1.02rem; }
.role-live { padding: 5px 8px; border-radius: 8px; color: var(--primary) !important; background: var(--primary-soft); letter-spacing: 0 !important; }
.role-queue { display: grid; gap: 7px; margin: 12px 0 18px; }
.role-queue > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 11px; border: 1px solid #e4e9ee; border-radius: 9px; background: #fafcfd; }
.role-queue strong { font-size: .72rem; }
.role-queue span { color: var(--muted); font-size: .67rem; text-align: right; }
.acceptance-head { padding-top: 14px; border-top: 1px solid var(--line); }
.acceptance-head h3 { margin: 0; font-size: .84rem; }
.acceptance-head strong { color: var(--green); font-size: .74rem; }
.proof-list.compact { margin-top: 9px; }
.proof-list.compact .proof-item { padding: 9px; }
.proof-list.compact .proof-item strong { font-size: .7rem; }
.proof-list.compact .proof-item small { font-size: .62rem; }
.demo-event span b { display: block; margin-bottom: 2px; color: var(--primary); font-size: .61rem; text-transform: uppercase; }

@media (max-width: 1180px) {
  .demo-stage-grid.realistic { grid-template-columns: 1fr; }
  .role-switcher { grid-template-columns: repeat(3, minmax(150px,1fr)); }
  .demo-progress { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .integration-strip { grid-template-columns: 1fr 1fr; }
  .role-switcher { display: flex; }
  .demo-progress { grid-template-columns: 1fr 1fr; }
  .operational-alert { grid-template-columns: 1fr; }
  .operational-alert strong { white-space: normal; }
}
@media (max-width: 520px) {
  .integration-strip, .record-grid, .approval-layout, .delivery-brief, .handoff-checklist, .outcome-grid { grid-template-columns: 1fr; }
  .demo-progress { grid-template-columns: 1fr 1fr; }
  .inventory-table { overflow-x: auto; }
  .inventory-table > div { min-width: 520px; }
  .demo-stage-grid.realistic .demo-scene { min-height: 0; padding: 18px; }
}

/* Department demo accounts and permission handoff */
.demo-user-card .icon-button { border: 1px solid rgba(255,255,255,.1); }
.demo-account-bar { display: grid; grid-template-columns: auto minmax(190px,1fr) minmax(190px,.8fr) auto; align-items: center; gap: 12px; margin-bottom: 12px; padding: 13px 14px; border: 1px solid #b8dcd5; border-radius: 13px; background: linear-gradient(105deg,#f2faf8,#fff); }
.account-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px; color: #fff; background: var(--primary); font-size: .78rem; font-weight: 850; }
.account-session span, .account-session strong, .account-session small, .record-context span, .record-context strong, .record-context small { display: block; }
.account-session span, .record-context span { color: var(--muted); font-size: .61rem; font-weight: 850; letter-spacing: .08em; }
.account-session strong, .record-context strong { margin: 2px 0; font-size: .8rem; }
.account-session small, .record-context small { color: var(--muted); font-size: .67rem; }
.record-context { padding-left: 14px; border-left: 1px solid #d7e7e3; }
.record-context strong { color: var(--primary); }
.role-button.signed-in { box-shadow: inset 0 -3px var(--primary); }
.account-required-button { min-width: 275px; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 9px; border: 1px solid #82c5ba; border-radius: 10px; padding: 9px 12px; color: var(--primary-dark); background: #edf9f6; text-align: left; }
.account-required-button > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #fff; background: var(--primary); font-weight: 800; }
.account-required-button strong, .account-required-button small { display: block; }
.account-required-button strong { font-size: .76rem; }
.account-required-button small { margin-top: 2px; color: var(--muted); font-size: .64rem; }
.account-modal { width: min(1040px,calc(100vw - 36px)); max-height: min(820px,calc(100vh - 36px)); overflow-y: auto; }
.account-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.account-card { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.account-card.current { border-color: #75bdb2; background: #f2faf8; }
.account-card.required { border-color: #e6ae58; box-shadow: 0 0 0 3px #fff4df; }
.account-card-head { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; }
.account-card-head strong, .account-card-head span { display: block; }
.account-card-head strong { font-size: .82rem; }
.account-card-head span { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.account-card-head em { padding: 4px 6px; border-radius: 6px; color: var(--green); background: var(--green-soft); font-size: .6rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.account-card-head em.required-label { color: #91600a; background: #fff0cb; }
.account-credentials { display: grid; grid-template-columns: 62px 1fr; gap: 5px 8px; margin: 12px 0 8px; padding: 9px; border-radius: 8px; background: #f4f7f9; }
.account-credentials span { color: var(--muted); font-size: .65rem; }
.account-credentials code { color: #284b63; font-family: inherit; font-size: .68rem; font-weight: 750; overflow-wrap: anywhere; }
.account-card p { min-height: 38px; margin: 8px 0 12px; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.account-card button { width: 100%; }
.account-card button:disabled { cursor: default; opacity: .7; }
.credential-note { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 14px; border: 1px dashed #b8c6d3; border-radius: 10px; background: #f8fafc; }
.credential-note strong, .credential-note span { display: block; }
.credential-note strong { font-size: .75rem; }
.credential-note span { margin-top: 2px; color: var(--muted); font-size: .66rem; }
.credential-note code { padding: 7px 10px; border-radius: 7px; color: var(--primary-dark); background: var(--primary-soft); font-size: .72rem; font-weight: 800; }

@media (max-width: 920px) {
  .demo-account-bar { grid-template-columns: auto 1fr auto; }
  .record-context { grid-column: 2; padding: 0; border: 0; }
  .demo-account-bar > .secondary-button { grid-column: 3; grid-row: 1 / span 2; }
  .account-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .demo-account-bar { grid-template-columns: auto 1fr; }
  .record-context { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid #d7e7e3; }
  .demo-account-bar > .secondary-button { grid-column: 1 / -1; grid-row: auto; width: 100%; }
  .account-grid { grid-template-columns: 1fr; }
  .account-required-button { width: 100%; min-width: 0; }
  .credential-note { align-items: flex-start; flex-direction: column; }
}

/* Role-first workspaces: receive, process, report */
.current-workspace-card { display: grid; grid-template-columns: 34px 1fr 32px; align-items: center; gap: 9px; margin-bottom: 12px; padding: 10px; border: 1px solid rgba(126,209,192,.25); border-radius: 11px; background: rgba(36,80,107,.72); }
.workspace-role-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; color: #0c514c; background: #cdece5; font-size: .68rem; font-weight: 850; }
.current-workspace-card strong, .current-workspace-card small { display: block; }
.current-workspace-card strong { font-size: .76rem; }
.current-workspace-card small { margin-top: 2px; color: #9fd2c8; font-size: .59rem; line-height: 1.25; overflow-wrap: anywhere; }
.current-workspace-card .icon-button { width: 31px; height: 31px; color: #d5e8e5; }
.workflow-record-card { margin-bottom: 14px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.05); }
.workflow-record-card span, .workflow-record-card strong, .workflow-record-card small { display: block; }
.workflow-record-card span { color: #7ed1c0; font-size: .57rem; font-weight: 850; letter-spacing: .08em; }
.workflow-record-card strong { margin: 3px 0; font-size: .8rem; }
.workflow-record-card small { color: #9eafc0; font-size: .63rem; }
.role-process-nav .nav-item { grid-template-columns: 30px 1fr auto; padding: 10px; }
.role-process-nav .nav-item > span:nth-child(2) strong, .role-process-nav .nav-item > span:nth-child(2) small { display: block; }
.role-process-nav .nav-item > span:nth-child(2) strong { font-size: .78rem; }
.role-process-nav .nav-item > span:nth-child(2) small { margin-top: 2px; color: #8399ae; font-size: .59rem; font-weight: 500; }
.role-process-nav .nav-item.active small { color: #acd8d0 !important; }
.nav-step { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #aebfd0; background: rgba(255,255,255,.08); font-size: .65rem; font-weight: 850; }
.role-process-nav .nav-item.active .nav-step { color: #0c514c; background: #cdece5; }
.flow-overview-link { width: 100%; grid-template-columns: 28px 1fr; }
.flow-overview-link strong, .flow-overview-link small { display: block; }
.flow-overview-link strong { font-size: .76rem; }
.flow-overview-link small { margin-top: 2px; color: #8399ae; font-size: .59rem; font-weight: 500; }
.workspace-eyebrow { color: var(--primary); font-size: .68rem; font-weight: 850; letter-spacing: .09em; }
.role-workspace-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; margin-bottom: 14px; padding: 20px 22px; border: 1px solid #cddbe4; border-radius: 16px; background: linear-gradient(115deg,#fff,#f4f9fb); }
.role-workspace-hero h2 { max-width: 760px; margin: 5px 0; font-size: 1.35rem; letter-spacing: -.03em; }
.role-workspace-hero p { margin: 0; color: var(--muted); font-size: .8rem; }
.workspace-status { min-width: 210px; padding: 13px 15px; border: 1px solid; border-radius: 12px; text-align: right; }
.workspace-status span, .workspace-status strong, .workspace-status small { display: block; }
.workspace-status span { font-size: .63rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.workspace-status strong { margin: 3px 0; font-size: .95rem; }
.workspace-status small { font-size: .65rem; }
.workspace-status.active { border-color: #8fcfc4; color: #17665c; background: #eef9f7; }
.workspace-status.complete { border-color: #b9dfc8; color: #236347; background: var(--green-soft); }
.workspace-status.waiting { border-color: #d7dfe7; color: var(--muted); background: #f5f7f9; }
.workspace-flow-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.workspace-flow-steps button { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #fff; text-align: left; }
.workspace-flow-steps button > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: #edf1f5; font-size: .68rem; font-weight: 850; }
.workspace-flow-steps strong, .workspace-flow-steps small { display: block; }
.workspace-flow-steps strong { color: var(--ink); font-size: .78rem; }
.workspace-flow-steps small { margin-top: 2px; font-size: .65rem; }
.workspace-flow-steps button.active { border-color: #77bdb3; color: #17665c; background: #eef9f7; box-shadow: inset 0 0 0 1px rgba(13,118,110,.05); }
.workspace-flow-steps button.active > span { color: #fff; background: var(--primary); }
.workspace-content { min-height: 500px; }
.role-record-card, .process-checklist, .process-context, .role-report { border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 6px 22px rgba(16,36,62,.05); }
.role-record-card { padding: 22px; }
.role-record-card.completed { background: #fbfdfc; }
.record-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.record-card-head span, .record-card-head h3, .record-card-head p { display: block; }
.record-card-head > div > span { color: var(--primary); font-size: .66rem; font-weight: 850; letter-spacing: .08em; }
.record-card-head h3 { margin: 5px 0; font-size: 1.18rem; }
.record-card-head p { margin: 0; color: var(--muted); font-size: .76rem; }
.record-status { padding: 6px 9px; border-radius: 8px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.record-status.active { color: #17665c; background: #e7f7f3; }
.record-status.complete { color: #246347; background: var(--green-soft); }
.record-status.waiting { color: var(--muted); background: #edf1f5; }
.workspace-field-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-bottom: 14px; }
.workspace-field-grid > div { padding: 13px; border: 1px solid #e2e7ec; border-radius: 10px; background: #f8fafc; }
.workspace-field-grid span, .workspace-field-grid strong { display: block; }
.workspace-field-grid span { color: var(--muted); font-size: .66rem; }
.workspace-field-grid strong { margin-top: 4px; font-size: .8rem; }
.record-lineage { margin-bottom: 16px; padding: 13px 14px; border-left: 3px solid var(--primary); border-radius: 0 9px 9px 0; background: #f0f8f6; }
.record-lineage span, .record-lineage strong, .record-lineage small { display: block; }
.record-lineage span { color: var(--primary); font-size: .64rem; font-weight: 800; }
.record-lineage strong { margin: 3px 0; font-size: .8rem; }
.record-lineage small { color: var(--muted); font-size: .68rem; }
.workspace-empty { min-height: 440px; display: grid; place-items: center; align-content: center; padding: 40px; border: 1px dashed #c9d4df; border-radius: 15px; color: var(--muted); background: #f8fafc; text-align: center; }
.workspace-empty > span { font-size: 2rem; }
.workspace-empty h3 { margin: 12px 0 5px; color: var(--ink); }
.workspace-empty p { max-width: 560px; margin: 0 0 16px; font-size: .8rem; line-height: 1.55; }
.process-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 14px; }
.process-checklist, .process-context { padding: 20px; }
.workbench-modal { width: min(1180px,calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow-y: auto; overscroll-behavior: contain; }
.workbench-modal-head { position: sticky; top: 0; z-index: 8; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 18px 20px; border-bottom: 1px solid #dce5eb; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.workbench-modal-head h2 { margin: 4px 0; font-size: 1.18rem; }
.workbench-modal-head p { margin: 0; color: var(--muted); font-size: .7rem; }
#workbenchModalContent { padding: 16px; background: #f4f7f9; }
.workbench-process-layout .process-checklist, .workbench-process-layout .process-context { box-shadow: none; }
.workbench-process-layout .process-context { position: sticky; top: 91px; align-self: start; }
.workspace-process-launcher { padding: 24px; border: 1px solid #b8d8d2; border-radius: 15px; background: linear-gradient(120deg,#fff,#edf9f6); box-shadow: 0 8px 28px rgba(16,36,62,.07); }
.workspace-process-launcher > div:first-child > span { color: var(--primary); font-size: .64rem; font-weight: 850; letter-spacing: .09em; }
.workspace-process-launcher h3 { margin: 5px 0; font-size: 1.18rem; }
.workspace-process-launcher p { max-width: 700px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.workspace-process-preview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 18px 0; }
.workspace-process-preview > div { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 11px; border: 1px solid #dbe5e8; border-radius: 9px; background: rgba(255,255,255,.82); }
.workspace-process-preview span { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: #fff; background: var(--primary); font-size: .62rem; font-weight: 850; }
.workspace-process-preview strong { min-width: 0; font-size: .68rem; line-height: 1.35; }
.workspace-process-launcher.completed { border-color: #b9dfc8; background: linear-gradient(120deg,#fff,#f0faf4); }
.workspace-process-launcher.completed .workspace-process-preview span { background: var(--green); }
.workspace-process-actions { display: flex; gap: 8px; }
.section-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-heading span { color: var(--primary); font-size: .64rem; font-weight: 850; letter-spacing: .08em; }
.section-heading h3 { margin: 4px 0 0; font-size: 1.05rem; }
.section-heading > strong { color: var(--green); font-size: .72rem; }
.process-step { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid #edf1f4; }
.process-step > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--muted); background: #edf1f5; font-size: .68rem; font-weight: 850; }
.process-step.done > span { color: #fff; background: var(--green); }
.process-step strong, .process-step small { display: block; }
.process-step strong { font-size: .8rem; }
.process-step small { margin-top: 2px; color: var(--muted); font-size: .65rem; }
.process-action { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 8px; padding-top: 15px; border-top: 1px solid var(--line); }
.process-action p { max-width: 520px; margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.process-context > span { color: var(--primary); font-size: .64rem; font-weight: 850; letter-spacing: .08em; }
.process-context h3 { margin: 4px 0; font-size: 1rem; }
.process-context > p { margin: 0 0 12px; color: var(--muted); font-size: .72rem; }
.process-context > div { padding: 10px 0; border-top: 1px solid #edf1f4; }
.process-context > div span, .process-context > div strong { display: block; }
.process-context > div span { color: var(--muted); font-size: .64rem; }
.process-context > div strong { margin-top: 3px; font-size: .76rem; }
.role-report { padding: 22px; }
.report-summary { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 13px; margin-bottom: 15px; padding: 15px; border-radius: 12px; }
.report-summary > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1rem; font-weight: 850; }
.report-summary p, .report-summary h3, .report-summary small { margin: 0; }
.report-summary p { font-size: .64rem; font-weight: 850; letter-spacing: .08em; }
.report-summary h3 { margin: 3px 0; font-size: 1rem; }
.report-summary small { color: var(--muted); font-size: .7rem; }
.report-summary.complete { color: #246347; background: var(--green-soft); }
.report-summary.complete > span { color: #fff; background: var(--green); }
.report-summary.pending { color: #8a6215; background: #fff7e3; }
.report-summary.pending > span { color: #fff; background: var(--orange); }
.report-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-bottom: 14px; }
.report-kpis > div { padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.report-kpis span, .report-kpis strong, .report-kpis small { display: block; }
.report-kpis span { color: var(--muted); font-size: .65rem; }
.report-kpis strong { margin: 4px 0; color: var(--primary); font-size: 1.15rem; }
.report-kpis small { color: var(--muted); font-size: .62rem; }
.report-evidence { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--line); }
.report-evidence > div { padding: 12px; background: #f8fafc; }
.report-evidence span, .report-evidence strong { display: block; }
.report-evidence span { color: var(--muted); font-size: .63rem; }
.report-evidence strong { margin-top: 3px; font-size: .73rem; }
.report-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 960px) {
  .workspace-field-grid, .report-kpis, .report-evidence { grid-template-columns: 1fr 1fr; }
  .process-layout { grid-template-columns: 1fr; }
  .workbench-process-layout .process-context { position: static; }
  .workspace-process-preview { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .role-workspace-hero { grid-template-columns: 1fr; padding: 17px; }
  .workspace-status { min-width: 0; text-align: left; }
  .workspace-flow-steps { grid-template-columns: 1fr; }
  .workspace-field-grid, .report-kpis, .report-evidence { grid-template-columns: 1fr; }
  .record-card-head, .process-action { align-items: stretch; flex-direction: column; }
  .process-action .primary-button, .process-action .secondary-button, .report-actions button { width: 100%; }
  .report-actions { flex-direction: column; }
  .workbench-backdrop.open { padding: 0; }
  .workbench-modal { width: 100vw; max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .workbench-modal-head { padding: 14px 15px; }
  #workbenchModalContent { padding: 10px; }
  .workbench-process-layout .process-checklist, .workbench-process-layout .process-context { padding: 14px; }
  .workspace-process-launcher { padding: 17px; }
  .workspace-process-preview { grid-template-columns: 1fr; }
  .workspace-process-actions { flex-direction: column; }
  .workspace-process-actions button { width: 100%; }
}

/* Facilitated acceptance-test control room */
.uat-hero, .uat-control-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; margin-bottom: 16px; padding: 24px; border-radius: 17px; color: #fff; background: linear-gradient(125deg,#10243e 0%,#174967 72%,#0d766e 135%); box-shadow: 0 18px 44px rgba(16,36,62,.16); }
.uat-hero > div:first-child > span, .uat-control-hero > div:first-child > span { color: #8ee1d1; font-size: .68rem; font-weight: 850; letter-spacing: .1em; }
.uat-hero h2, .uat-control-hero h2 { max-width: 780px; margin: 7px 0; font-size: 1.55rem; line-height: 1.18; letter-spacing: -.035em; }
.uat-hero p, .uat-control-hero p { max-width: 760px; margin: 0; color: #cfdee9; font-size: .8rem; line-height: 1.55; }
.uat-outcome { min-width: 235px; padding: 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: rgba(255,255,255,.09); }
.uat-outcome span, .uat-outcome strong, .uat-outcome small { display: block; }
.uat-outcome span { color: #8ee1d1; font-size: .62rem; font-weight: 850; letter-spacing: .08em; }
.uat-outcome strong { margin: 6px 0; font-size: 1rem; }
.uat-outcome small { color: #c7d9e5; font-size: .68rem; line-height: 1.4; }
.uat-setup, .uat-role-board, .uat-scorecard, .uat-executive { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 6px 22px rgba(16,36,62,.05); }
.uat-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.uat-section-head span { color: var(--primary); font-size: .64rem; font-weight: 850; letter-spacing: .09em; }
.uat-section-head h3 { margin: 4px 0 0; font-size: 1.05rem; }
.uat-section-head > strong { color: var(--green); font-size: .72rem; }
.uat-participant-grid, .uat-input-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.uat-participant-grid label, .uat-input-grid label { display: block; }
.uat-participant-grid span, .uat-input-grid span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .66rem; font-weight: 700; }
.uat-participant-grid input, .uat-input-grid input, .uat-input-grid select { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid #cfd8e1; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: .76rem; }
.uat-criteria-preview { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin: 18px 0 12px; }
.uat-criteria-preview > div { padding: 12px; border: 1px solid #dce4ea; border-radius: 10px; background: #f8fafc; }
.uat-criteria-preview span { display: grid; place-items: center; width: 25px; height: 25px; margin-bottom: 8px; border-radius: 7px; color: #fff; background: var(--primary); font-size: .64rem; font-weight: 850; }
.uat-criteria-preview strong, .uat-criteria-preview small { display: block; }
.uat-criteria-preview strong { font-size: .73rem; line-height: 1.35; }
.uat-criteria-preview small { margin-top: 4px; color: var(--muted); font-size: .62rem; line-height: 1.4; }
.uat-agenda { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-bottom: 12px; overflow: hidden; border: 1px solid #dce4ea; border-radius: 9px; background: #dce4ea; }
.uat-agenda span { padding: 10px; color: #35516a; background: #f8fafc; font-size: .67rem; font-weight: 750; text-align: center; }
.uat-boundary { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--orange); border-radius: 0 9px 9px 0; background: #fff8e8; }
.uat-boundary strong { flex: 0 0 auto; color: #795510; font-size: .7rem; }
.uat-boundary span { color: #765e31; font-size: .68rem; line-height: 1.45; }
.uat-start { display: block; min-width: 310px; margin: 16px 0 0 auto; }
.uat-role-task { margin-bottom: 15px; padding: 15px; border: 1px solid #8fcfc4; border-radius: 11px; background: #eef9f7; }
.uat-task-head span, .uat-task-head strong, .uat-task-head small { display: block; }
.uat-task-head span { color: var(--primary); font-size: .62rem; font-weight: 850; letter-spacing: .08em; }
.uat-task-head strong { margin: 4px 0; font-size: .86rem; }
.uat-task-head small { margin-bottom: 12px; color: #4d716d; font-size: .66rem; }
.uat-conversation { margin: 0 0 13px; overflow: hidden; border: 1px solid #cbd9e2; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(16,36,62,.05); }
.uat-notification { display: flex; align-items: center; gap: 10px; padding: 11px 13px; color: #164f49; background: #e2f4f0; border-bottom: 1px solid #c4e4de; }
.uat-notification > span { color: #d04a3b; font-size: .62rem; }
.uat-notification strong, .uat-notification small { display: block; }
.uat-notification strong { font-size: .73rem; }
.uat-notification small { margin-top: 2px; color: #4d716d; font-size: .62rem; }
.uat-chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 13px; border-bottom: 1px solid #e5ebef; }
.uat-chat-head span, .uat-chat-head strong { display: block; }
.uat-chat-head span { color: var(--primary); font-size: .57rem; font-weight: 850; letter-spacing: .08em; }
.uat-chat-head strong { margin-top: 3px; font-size: .74rem; }
.uat-chat-head em { padding: 5px 7px; border-radius: 6px; color: #4c657a; background: #edf3f7; font-size: .58rem; font-style: normal; font-weight: 800; }
.uat-chat-log { display: flex; flex-direction: column; gap: 7px; max-height: 245px; padding: 13px; overflow-y: auto; background: #f6f8fa; }
.uat-chat-log.compact { max-height: 190px; }
.uat-message { max-width: 82%; padding: 9px 10px; border: 1px solid #dce4e9; border-radius: 11px 11px 11px 3px; background: #fff; }
.uat-message.marketing, .uat-message.sales { align-self: flex-end; border-color: #9fd4ca; border-radius: 11px 11px 3px 11px; background: #e5f5f1; }
.uat-message span, .uat-message p, .uat-message time { display: block; }
.uat-message span { color: #557085; font-size: .55rem; font-weight: 850; }
.uat-message p { margin: 3px 0 0; color: #263f55; font-size: .69rem; line-height: 1.45; }
.uat-message time { margin-top: 4px; color: #7b8d9b; font-size: .55rem; font-style: normal; text-align: right; }
.uat-chat-empty { padding: 14px; color: var(--muted); font-size: .66rem; text-align: center; }
.uat-chat-compose { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 11px 13px 7px; border-top: 1px solid #e5ebef; }
.uat-chat-compose input { min-width: 0; min-height: 39px; padding: 9px 10px; border: 1px solid #cfd8e1; border-radius: 8px; font: inherit; font-size: .72rem; }
.uat-chat-compose button { min-width: 112px; }
.uat-chat-hint { display: block; padding: 0 13px 11px; color: #647b8e; font-size: .59rem; line-height: 1.4; }
.uat-handoff-packet { padding: 13px; background: linear-gradient(110deg,#10243e,#174967); }
.uat-handoff-packet > span { color: #8ee1d1; font-size: .58rem; font-weight: 850; letter-spacing: .08em; }
.uat-handoff-packet > div { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin-top: 9px; }
.uat-handoff-packet p { min-width: 0; margin: 0; padding: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.07); }
.uat-handoff-packet small, .uat-handoff-packet strong { display: block; }
.uat-handoff-packet small { color: #aac6d8; font-size: .55rem; }
.uat-handoff-packet strong { margin-top: 3px; overflow-wrap: anywhere; color: #fff; font-size: .65rem; line-height: 1.35; }
.uat-history { border-bottom: 1px solid #e5ebef; }
.uat-history summary { padding: 10px 13px; color: #345a74; cursor: pointer; font-size: .65rem; font-weight: 800; }
.uat-photo-capture { display: grid; grid-template-columns: minmax(0,1fr) auto auto minmax(180px,.55fr); align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border: 1px dashed #92b5c8; border-radius: 10px; background: #f7fbfd; }
.uat-photo-capture > div:first-child span, .uat-photo-capture > div:first-child strong, .uat-photo-capture > div:first-child small { display: block; }
.uat-photo-capture > div:first-child span { color: #a44c20; font-size: .57rem; font-weight: 850; letter-spacing: .08em; }
.uat-photo-capture > div:first-child strong { margin: 3px 0; font-size: .72rem; }
.uat-photo-capture > div:first-child small { color: var(--muted); font-size: .58rem; line-height: 1.35; }
.uat-photo-capture label { margin: 0; cursor: pointer; white-space: nowrap; }
.uat-photo-capture label input { display: none; }
.uat-photo-preview { display: grid; place-items: center; min-height: 74px; overflow: hidden; border: 1px solid #d4dfe6; border-radius: 8px; color: #718594; background: #fff; font-size: .59rem; text-align: center; }
.uat-photo-preview.has-photo { position: relative; border-color: #76b891; }
.uat-photo-preview img { width: 100%; height: 82px; object-fit: cover; }
.uat-photo-preview.has-photo span { position: absolute; right: 5px; bottom: 5px; padding: 4px 6px; border-radius: 5px; color: #fff; background: rgba(25,99,66,.88); font-size: .53rem; font-weight: 800; }
.uat-live-result { margin-top: 11px; padding: 12px 13px; border: 1px dashed #8fcfc4; border-radius: 9px; background: #fff; }
.uat-live-result span, .uat-live-result strong { display: block; }
.uat-live-result span { color: var(--primary); font-size: .59rem; font-weight: 850; letter-spacing: .08em; }
.uat-live-result strong { margin-top: 4px; font-size: .75rem; line-height: 1.45; }
.uat-operation-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 11px; }
.uat-operation { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 11px; border: 1px solid #b9d8d2; border-radius: 9px; color: #285e58; background: #fff; font-size: .7rem; font-weight: 800; text-align: left; }
.uat-operation span { display: grid; flex: 0 0 auto; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: var(--primary); background: #e2f4f0; font-size: .66rem; }
.uat-operation.done { border-color: #82c79b; color: #236347; background: #eef9f2; }
.uat-operation.done span { color: #fff; background: var(--green); }
#uatRoleSubmit:disabled { cursor: not-allowed; opacity: .48; filter: saturate(.4); }
.uat-confirm { display: flex !important; align-items: flex-start; gap: 8px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #c7e4df; }
.uat-confirm input { width: 17px; min-height: 17px; margin-top: 1px; }
.uat-confirm span { margin: 0; color: #315f5a; line-height: 1.45; }
.uat-role-proof { margin-bottom: 15px; padding: 14px; border: 1px solid #b9dfc8; border-radius: 11px; background: var(--green-soft); }
.uat-role-proof > div span, .uat-role-proof > div strong { display: block; }
.uat-role-proof > div span { color: var(--green); font-size: .62rem; font-weight: 850; letter-spacing: .08em; }
.uat-role-proof > div strong { margin-top: 4px; font-size: .78rem; }
.uat-role-proof p { display: flex; justify-content: space-between; gap: 10px; margin: 9px 0 0; padding-top: 9px; border-top: 1px solid #cde4d6; font-size: .68rem; }
.uat-submitted-evidence { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: -4px 0 16px; overflow: hidden; border: 1px solid #b9dfc8; border-radius: 11px; background: #b9dfc8; }
.uat-submitted-evidence > div { padding: 12px; background: #f2fbf6; }
.uat-submitted-evidence span, .uat-submitted-evidence strong { display: block; }
.uat-submitted-evidence span { color: var(--muted); font-size: .62rem; }
.uat-submitted-evidence strong { margin-top: 3px; font-size: .72rem; }
.uat-score-ring { --score:0; display: grid; place-items: center; align-content: center; width: 118px; height: 118px; border-radius: 50%; background: radial-gradient(circle at center,#153b56 58%,transparent 60%),conic-gradient(#77d8c6 calc(var(--score)*1%),rgba(255,255,255,.15) 0); }
.uat-score-ring strong, .uat-score-ring span { display: block; text-align: center; }
.uat-score-ring strong { font-size: 1.35rem; }
.uat-score-ring span { color: #cce3e6; font-size: .58rem; }
.uat-control-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr); gap: 14px; }
.uat-role-cards { display: grid; gap: 8px; }
.uat-role-card { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e0e6eb; border-radius: 10px; }
.uat-role-card > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--muted); background: #edf1f5; font-size: .68rem; font-weight: 850; }
.uat-role-card strong, .uat-role-card small { display: block; }
.uat-role-card strong { font-size: .77rem; }
.uat-role-card small { margin-top: 2px; color: var(--muted); font-size: .64rem; }
.uat-role-card button { min-width: 112px; }
.uat-role-card.active { border-color: #75bcb2; background: #eef9f7; }
.uat-role-card.active > span { color: #fff; background: var(--primary); }
.uat-role-card.passed { border-color: #b9dfc8; background: #f2fbf6; }
.uat-role-card.passed > span { color: #fff; background: var(--green); }
.uat-criterion { display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 9px; padding: 11px 0; border-top: 1px solid #edf1f4; }
.uat-criterion > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: var(--muted); background: #edf1f5; font-size: .62rem; font-weight: 850; }
.uat-criterion strong, .uat-criterion small { display: block; }
.uat-criterion strong { font-size: .73rem; }
.uat-criterion small { margin-top: 2px; color: var(--muted); font-size: .61rem; line-height: 1.35; }
.uat-criterion em { padding: 4px 6px; border-radius: 6px; color: #7a5b1b; background: #fff4d7; font-size: .58rem; font-style: normal; font-weight: 850; }
.uat-criterion.passed > span { color: #fff; background: var(--green); }
.uat-criterion.passed em { color: #236347; background: var(--green-soft); }
.uat-executive { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.58fr); gap: 22px; margin-top: 14px; border-color: #8fcfc4; background: linear-gradient(115deg,#fff,#f0faf7); }
.uat-executive > div:first-child > span, .uat-commercial-box > span { color: var(--primary); font-size: .64rem; font-weight: 850; letter-spacing: .08em; }
.uat-executive h2 { margin: 6px 0; font-size: 1.3rem; }
.uat-executive p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.uat-commercial-box { padding: 15px; border: 1px solid #c9e3dc; border-radius: 11px; background: #fff; }
.uat-commercial-box > strong, .uat-commercial-box > small { display: block; }
.uat-commercial-box > strong { margin: 6px 0; font-size: .76rem; }
.uat-commercial-box > small { margin-bottom: 12px; color: var(--muted); font-size: .64rem; line-height: 1.4; }
.uat-commercial-box button { width: 100%; }
.uat-decision-stamp { padding: 11px; border: 1px solid #9ed1b2; border-radius: 9px; color: #236347; background: var(--green-soft); font-size: .73rem; font-weight: 850; }
.uat-decision-stamp small { display: block; margin-top: 4px; font-size: .61rem; font-weight: 600; }

@media (max-width: 1050px) {
  .uat-criteria-preview { grid-template-columns: repeat(3,1fr); }
  .uat-control-grid, .uat-executive { grid-template-columns: 1fr; }
  .uat-handoff-packet > div { grid-template-columns: repeat(3,1fr); }
  .uat-photo-capture { grid-template-columns: minmax(0,1fr) auto auto; }
  .uat-photo-preview { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .uat-hero, .uat-control-hero { grid-template-columns: 1fr; padding: 18px; }
  .uat-hero h2, .uat-control-hero h2 { font-size: 1.3rem; }
  .uat-outcome { min-width: 0; }
  .uat-participant-grid, .uat-input-grid, .uat-criteria-preview, .uat-agenda, .uat-submitted-evidence { grid-template-columns: 1fr; }
  .uat-operation-list { grid-template-columns: 1fr; }
  .uat-role-card { grid-template-columns: 30px 1fr; }
  .uat-role-card button { grid-column: 1 / -1; width: 100%; }
  .uat-boundary { flex-direction: column; }
  .uat-start { width: 100%; min-width: 0; }
  .uat-chat-compose, .uat-handoff-packet > div, .uat-photo-capture { grid-template-columns: 1fr; }
  .uat-chat-compose button { width: 100%; }
  .uat-message { max-width: 94%; }
  .uat-photo-capture label, .uat-photo-capture button { width: 100%; text-align: center; }
  .uat-photo-preview { grid-column: auto; }
}

/* Multi-device role session */
.shared-status { min-height: 32px; padding: 7px 10px; border: 1px solid #c8d8dc; border-radius: 999px; color: #526871; background: #fff; font-size: .64rem; font-weight: 800; white-space: nowrap; }
.shared-status[data-status="online"] { border-color: #a8d7b9; color: #236347; background: #eef9f2; }
.shared-status[data-status="syncing"] { border-color: #b8d8d3; color: var(--primary); background: #eef9f7; }
.shared-status[data-status="offline"] { border-color: #e7b6b6; color: #9b3434; background: #fff2f2; }
.push-toggle { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid #f0c985; border-radius: 999px; color: #7a4d06; background: #fff8e8; font-size: .66rem; font-weight: 850; white-space: nowrap; }
.push-toggle[data-status="active"] { border-color: #9ed1b2; color: #236347; background: #eef9f2; }
.push-toggle[data-status="denied"], .push-toggle[data-status="unsupported"] { border-color: #e7b6b6; color: #9b3434; background: #fff2f2; }
.push-toggle:disabled { cursor: default; opacity: .82; }
.push-nudge { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; margin: 0 0 14px; padding: 13px 15px; border: 1px solid #f0c985; border-radius: 13px; background: linear-gradient(110deg,#fff8e8,#fff); box-shadow: 0 7px 20px rgba(122,77,6,.06); }
.push-nudge[data-state="active"] { border-color: #a8d7b9; background: linear-gradient(110deg,#eef9f2,#fff); }
.push-nudge.blocked { border-color: #e7b6b6; background: #fff7f7; }
.push-nudge-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.86); font-size: 1.15rem; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.push-nudge strong, .push-nudge p { display: block; margin: 0; }
.push-nudge strong { font-size: .8rem; }
.push-nudge p { margin-top: 3px; color: var(--muted); font-size: .67rem; line-height: 1.4; }
.push-nudge-actions, .push-readiness-actions { display: flex; align-items: center; gap: 8px; }
.push-nudge-actions button, .push-readiness-actions button { white-space: nowrap; }
body.role-route [data-action="open-account-switch"], body.role-route .demo-account-bar > [data-action="open-account-switch"] { display: none !important; }
.role-access { margin: 14px 0; padding: 18px; border: 1px solid #cce1dd; border-radius: 14px; background: linear-gradient(135deg,#fff,#f1faf8); }
.role-access-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.role-access-grid article { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 11px; padding: 12px; border: 1px solid #dce6e8; border-radius: 11px; background: #fff; }
.role-access-grid img { width: 78px; height: 78px; border: 1px solid #edf1f2; border-radius: 8px; }
.role-access-grid strong, .role-access-grid small, .role-access-grid code { display: block; }
.role-access-grid strong { font-size: .76rem; }
.role-access-grid small { min-height: 34px; margin: 4px 0; color: var(--muted); font-size: .61rem; line-height: 1.4; }
.role-access-grid code { color: var(--primary); font-size: .65rem; }
.role-access-actions { display: flex; grid-column: 1 / -1; align-items: center; justify-content: flex-end; gap: 8px; }
.role-access-actions a { text-decoration: none; }
.device-setup-modal { width: min(920px,calc(100vw - 28px)); }
.device-install-grid { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: 18px; }
.device-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border: 1px solid #cce1dd; border-radius: 12px; background: #f2faf8; text-align: center; }
.device-qr img { width: min(220px,70vw); aspect-ratio: 1; border: 10px solid #fff; border-radius: 12px; }
.device-qr code { max-width: 100%; overflow-wrap: anywhere; color: #285e58; font-size: .63rem; }
.device-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.device-options article { padding: 15px; border: 1px solid #dde6e8; border-radius: 11px; background: #fff; }
.device-options article > span { color: var(--primary); font-size: .61rem; font-weight: 850; letter-spacing: .08em; }
.device-options h3 { margin: 6px 0; font-size: .94rem; }
.device-options p { min-height: 62px; margin: 0 0 12px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.device-options article .primary-button { width: 100%; }
.apk-link { display: block; margin-top: 10px; text-align: center; }
.push-readiness { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid #c8e3dc; border-radius: 10px; color: #234d48; background: #e7f5f2; }
.push-readiness[data-state="ready"], .push-readiness[data-state="checking"], .push-readiness[data-state="enabling"] { border-color: #f0c985; background: #fff8e8; }
.push-readiness[data-state="denied"], .push-readiness[data-state="unsupported"] { border-color: #e7b6b6; color: #8d3838; background: #fff2f2; }
.push-readiness strong, .push-readiness span { display: block; }
.push-readiness span { margin-top: 4px; font-size: .66rem; line-height: 1.4; }
@media (max-width: 1000px) { .role-access-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .shared-status { max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
  .push-toggle { width: 38px; padding: 0; justify-content: center; font-size: .95rem; }
  .push-toggle span { display: none; }
  .push-nudge { grid-template-columns: 38px 1fr; }
  .push-nudge-icon { width: 38px; height: 38px; }
  .push-nudge-actions { grid-column: 1 / -1; }
  .push-nudge-actions button { flex: 1; }
  .role-access-grid, .device-install-grid, .device-options { grid-template-columns: 1fr; }
  .role-access-grid article { grid-template-columns: 68px minmax(0,1fr); }
  .role-access-grid img { width: 68px; height: 68px; }
  .push-readiness { grid-column: auto; flex-direction: column; align-items: stretch; }
  .push-readiness-actions { flex-direction: column; }
  .push-readiness-actions button { width: 100%; }
}
