:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: rgba(255,255,255,.92);
  --surface-solid: #ffffff;
  --surface-muted: #f8fafc;
  --border: #dfe4eb;
  --border-strong: #c9d0da;
  --text: #18202c;
  --muted: #687384;
  --faint: #8b95a3;
  --accent: #356fe5;
  --accent-strong: #2158c4;
  --accent-soft: #eaf1ff;
  --success: #18805f;
  --success-soft: #e8f7f1;
  --warning: #a45e0a;
  --warning-soft: #fff3df;
  --danger: #c43a43;
  --danger-soft: #ffeaec;
  --violet: #6f58c9;
  --violet-soft: #f0ecff;
  --shadow-sm: 0 1px 2px rgba(22, 34, 54, .06), 0 4px 12px rgba(22, 34, 54, .04);
  --shadow-lg: 0 24px 70px rgba(23, 33, 50, .22), 0 3px 12px rgba(23, 33, 50, .08);
  --radius: 12px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

.retention-call-rules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}
.retention-call-rules article{display:flex;gap:12px;align-items:flex-start;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-sm)}
.retention-call-rules article>span{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-weight:800}
.retention-call-rules b{display:block;font-size:13px;color:var(--text);margin-bottom:4px}
.retention-call-rules p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.retention-call-rules small{display:block;margin-top:7px;color:var(--accent);font-weight:700;font-size:10px}
.retention-call-table small{display:inline-block;max-width:360px;color:var(--muted);line-height:1.35;margin-top:3px}
.retention-call-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.retention-call-detail>div{padding:13px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted)}
.retention-call-detail small,.retention-call-detail b,.retention-call-detail p{display:block}
.retention-call-detail small{color:var(--muted);font-size:11px;margin-bottom:5px}
.retention-call-detail b{font-size:13px}
.retention-call-detail p{margin:4px 0 0;color:var(--muted);font-size:11px}
.text-danger{color:var(--danger)!important}
.sla-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px}
.sla-metric-grid button{min-height:100px;padding:15px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-sm);text-align:left;cursor:pointer}
.sla-metric-grid button:hover{border-color:#aebfdf;transform:translateY(-1px)}
.sla-metric-grid button.danger{background:linear-gradient(145deg,#fff,#fff2f3);border-color:#f0c4c8}
.sla-metric-grid button.violet{background:linear-gradient(145deg,#fff,#f5f2ff);border-color:#d7cef7}
.sla-metric-grid small,.sla-metric-grid b,.sla-metric-grid span{display:block}
.sla-metric-grid small{color:var(--muted);font-size:11px;font-weight:700}
.sla-metric-grid b{margin:6px 0 3px;font-size:27px}
.sla-metric-grid span{color:var(--muted);font-size:10px}
.sla-layout{grid-template-columns:minmax(0,1.55fr) minmax(290px,.55fr)}
.sla-table{min-width:990px}
.sla-table tr[data-sla-notification]{cursor:pointer}
.sla-table tr[data-sla-notification]:hover{background:#f7faff}
.sla-timeline{display:grid;gap:0}
.sla-timeline>div{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr);column-gap:9px;padding:3px 0 16px 18px;border-left:2px solid #dce6fa}
.sla-timeline>div:last-child{padding-bottom:2px}
.sla-timeline>div:before{content:"";position:absolute;left:-6px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.sla-timeline span{grid-row:1 / span 2;color:var(--accent);font-size:10px;font-weight:800}
.sla-timeline b{font-size:11px}.sla-timeline small{margin-top:3px;color:var(--muted);font-size:9px}
.sla-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.sla-detail-grid>div{padding:13px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted)}
.sla-detail-grid small,.sla-detail-grid b,.sla-detail-grid p{display:block}
.sla-detail-grid small{color:var(--muted);font-size:10px;margin-bottom:5px}.sla-detail-grid b{font-size:12px}.sla-detail-grid p{margin:5px 0 0;color:var(--muted);font-size:10px}
.sla-policy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sla-policy-grid article{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:10px;padding:13px;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted)}
.sla-policy-grid article>span{grid-row:1 / span 2;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-weight:800;font-size:11px}
.sla-policy-grid b{font-size:12px}.sla-policy-grid p{margin:4px 0 0;color:var(--muted);font-size:10px;line-height:1.4}
.trigger-test-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:14px}
.trigger-test-summary span{padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted);text-align:center}
.trigger-test-summary b,.trigger-test-summary small{display:block}
.trigger-test-summary b{font-size:21px;color:var(--text)}
.trigger-test-summary small{margin-top:3px;color:var(--muted);font-size:10px}
.acceptance-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 14px}
.acceptance-flow article{display:flex;gap:9px;align-items:flex-start;padding:11px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.acceptance-flow article>span{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:50%;background:var(--success-soft);color:var(--success);font-weight:800;font-size:11px}
.acceptance-flow b,.acceptance-flow small{display:block}.acceptance-flow b{font-size:12px}.acceptance-flow small{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.35}
.trigger-test-table small{color:var(--muted);line-height:1.4}
.trigger-test-table code,.journey-event code,.alert code{display:inline-block;max-width:280px;margin-top:5px;padding:3px 6px;border-radius:5px;background:#eef2f7;color:#455166;font-size:10px;overflow-wrap:anywhere;white-space:normal}
#modal:has(.trigger-test-table),#modal:has([data-drilldown-call]),#modal:has(.print-report){width:min(920px,100%)}
.print-note{margin:14px 0 0;color:var(--muted);font-size:11px}

@media(max-width:1100px){.retention-call-rules,.sla-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sla-layout{grid-template-columns:1fr}}
@media(max-width:680px){.retention-call-rules,.retention-call-detail,.acceptance-flow,.sla-detail-grid,.sla-policy-grid,.sla-metric-grid{grid-template-columns:1fr}.trigger-test-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.attachment-security-flow{grid-template-columns:1fr 1fr}.attachment-security-flow span:not(:last-child):after{display:none}}
@media(max-width:900px){.readiness-overview{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.readiness-overview{grid-template-columns:1fr}}

@media print{
  body{overflow:visible;background:#fff}
  .demo-ribbon,.app-shell,.detail-panel,.detail-scrim,.command-backdrop,.toast-stack{display:none!important}
  #modalBackdrop{position:static!important;display:block!important;padding:0!important;background:#fff!important;backdrop-filter:none!important}
  #modal{width:100%!important;max-height:none!important;overflow:visible!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  #modal .close-button,#modal .modal-foot{display:none!important}
  #modal .modal-head{padding:0 0 14px;border-bottom:1px solid #bbb}
  #modal .modal-body{padding:14px 0}
  #modal .card,#modal .table-wrap{break-inside:avoid;box-shadow:none}
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.demo-ribbon {
  height: 28px; padding: 0 20px; display: flex; align-items: center; justify-content: center;
  gap: 8px; background: #1b2432; color: #dfe7f5; font-size: 12px; letter-spacing: .01em;
}
.demo-dot { width: 7px; height: 7px; border-radius: 99px; background: #6ed4ad; box-shadow: 0 0 0 3px rgba(110,212,173,.16); }

.app-shell { display: grid; grid-template-columns: 238px minmax(0,1fr); height: calc(100vh - 28px); }
.sidebar { position: relative; z-index: 30; display: flex; flex-direction: column; background: #fbfcfe; border-right: 1px solid var(--border); overflow: hidden; }
.brand { height: 74px; display: flex; align-items: center; gap: 11px; padding: 0 18px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: white; background: linear-gradient(145deg,#3577ed,#244da7); border-radius: 10px; font-weight: 800; box-shadow: inset 0 1px rgba(255,255,255,.25), 0 5px 12px rgba(52,111,229,.23); }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; line-height: 1.2; }
.brand span { margin-top: 3px; font-size: 11px; color: var(--muted); }

.workday-card { margin: 0 12px 14px; padding: 12px; text-align: left; border: 1px solid var(--border); background: var(--surface-solid); border-radius: 10px; cursor: pointer; box-shadow: var(--shadow-sm); }
.workday-card:hover { border-color: #b9c8e4; background: #fdfefe; }
.workday-status { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.workday-status i { width: 8px; height: 8px; background: #2caf81; border-radius: 99px; box-shadow: 0 0 0 3px #dff5ed; }
.workday-card small { display: block; margin: 5px 0 10px 15px; color: var(--muted); font-size: 11px; }
.workday-action { color: var(--accent); font-size: 11px; font-weight: 650; }

.main-nav { flex: 1; padding: 0 8px; overflow: auto; }
.nav-group-label { margin: 16px 10px 6px; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.nav-item { width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; display: flex; align-items: center; gap: 10px; background: transparent; color: #465164; font-size: 13px; cursor: pointer; }
.nav-item:hover { background: #f0f3f8; color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: #1e55c0; font-weight: 650; }
.nav-icon { width: 21px; height: 21px; display: grid; place-items: center; font-size: 14px; border-radius: 6px; color: currentColor; }
.nav-badge { margin-left: auto; padding: 2px 6px; min-width: 20px; text-align: center; background: #e7ebf2; border-radius: 99px; color: #596476; font-size: 10px; font-weight: 700; }
.nav-item.active .nav-badge { background: #d5e3ff; color: #2256b9; }

.sidebar-footer { padding: 10px; border-top: 1px solid var(--border); }
.user-card { width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.user-card:hover { background: #f0f3f8; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #e7efff; color: #2858b4; font-size: 11px; font-weight: 800; }
.user-copy { min-width: 0; flex: 1; }
.user-copy b, .user-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-copy b { font-size: 12px; }
.user-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.chevron { color: var(--faint); }

.workspace { min-width: 0; display: grid; grid-template-rows: 62px minmax(0,1fr); }
.topbar { position: relative; z-index: 20; padding: 0 26px; display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.86); border-bottom: 1px solid var(--border); backdrop-filter: blur(18px); }
.global-search { width: min(480px,45vw); height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; gap: 9px; background: #f8fafc; color: var(--muted); cursor: pointer; text-align: left; }
.global-search:hover { background: white; border-color: var(--border-strong); }
.global-search span:nth-child(2) { flex: 1; font-size: 12px; }
kbd { padding: 2px 6px; border: 1px solid #cfd5de; border-bottom-width: 2px; border-radius: 5px; background: white; color: #6c7685; font-size: 10px; font-family: inherit; }
.role-switcher { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.role-switcher span { color: var(--muted); font-size: 11px; }
.role-switcher select { height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--border); border-radius: 8px; background: white; color: #344054; font-size: 12px; outline: none; }
.icon-button { position: relative; width: 35px; height: 35px; border: 1px solid var(--border); border-radius: 9px; background: white; cursor: pointer; }
.icon-button i { position: absolute; top: -5px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid white; border-radius: 99px; background: var(--danger); color: white; font-size: 9px; font-style: normal; font-weight: 700; line-height: 13px; }
.mobile-menu { display: none; width: 34px; height: 34px; border: 0; background: transparent; font-size: 18px; }

.page { overflow: auto; padding: 28px 30px 48px; }
.page-inner { max-width: 1460px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin-bottom: 6px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: clamp(23px,2.2vw,30px); line-height: 1.2; letter-spacing: -.025em; }
.page-heading p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.btn { min-height: 34px; padding: 0 13px; border: 1px solid var(--border-strong); border-radius: 8px; background: white; font-size: 12px; font-weight: 650; cursor: pointer; }
.btn:hover { background: #f8fafc; }
.btn.primary { color: white; background: var(--accent); border-color: var(--accent); box-shadow: 0 3px 9px rgba(53,111,229,.2); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent); }
.btn.danger { color: var(--danger); border-color: #f2c5ca; background: #fff9fa; }
.btn.small { min-height: 29px; padding: 0 9px; font-size: 11px; }

.scope-banner { margin-bottom: 16px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #d7e2f7; border-radius: 9px; background: #f4f8ff; color: #425775; font-size: 11px; }
.scope-banner b { color: #214f9f; }
.scope-banner .scope-icon { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; background: #dce9ff; color: #2456ad; font-weight: 800; }

.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.metric-card { min-height: 112px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-solid); box-shadow: var(--shadow-sm); }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-label span:last-child { color: var(--faint); }
.metric-value { margin-top: 12px; font-size: 27px; font-weight: 720; letter-spacing: -.03em; }
.metric-foot { margin-top: 5px; color: var(--muted); font-size: 10px; }
.trend { color: var(--success); font-weight: 700; }
.trend.bad { color: var(--danger); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.8fr); gap: 14px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-solid); box-shadow: var(--shadow-sm); overflow: hidden; }
.card + .card { margin-top: 14px; }
.card-header { min-height: 53px; padding: 0 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h2, .card-header h3 { margin: 0; font-size: 13px; }
.card-header p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.card-body { padding: 16px; }
.header-count { padding: 4px 8px; border-radius: 99px; background: var(--danger-soft); color: var(--danger); font-size: 10px; font-weight: 700; }

.task-list { padding: 4px 0; }
.task-row { width: 100%; min-height: 64px; padding: 10px 14px; border: 0; border-bottom: 1px solid #edf0f4; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; background: white; text-align: left; cursor: pointer; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: #fafcff; }
.task-priority { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--warning-soft); color: var(--warning); font-size: 11px; font-weight: 800; }
.task-priority.red { background: var(--danger-soft); color: var(--danger); }
.task-priority.blue { background: var(--accent-soft); color: var(--accent); }
.task-row[data-session] .task-priority, .task-row[data-page-jump="coaching"] .task-priority { width: 43px; font-size: 9px; }
.task-copy { min-width: 0; }
.task-copy b { display: block; margin-bottom: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-copy span { display: block; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-time { text-align: right; }
.task-time b { display: block; color: var(--danger); font-size: 10px; }
.task-time span { color: var(--muted); font-size: 9px; }

.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; padding: 2px 0 17px 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 7px; top: 11px; bottom: -2px; width: 1px; background: #dde2e9; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: absolute; left: 2px; top: 5px; width: 11px; height: 11px; border: 3px solid white; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline-item b { display: block; margin-bottom: 3px; font-size: 11px; }
.timeline-item p { margin: 0 0 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.timeline-item small { color: var(--faint); font-size: 9px; }

.health-list { display: grid; gap: 10px; }
.health-row { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: center; gap: 9px; }
.health-row i { width: 8px; height: 8px; border-radius: 99px; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.health-row i.warn { background: #d08325; box-shadow: 0 0 0 3px var(--warning-soft); }
.health-row b { font-size: 11px; }
.health-row span { color: var(--muted); font-size: 9px; }

.toolbar { min-height: 52px; padding: 8px 12px; border: 1px solid var(--border); border-bottom: 0; border-radius: 11px 11px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: white; }
.field-search { position: relative; flex: 1; min-width: 210px; max-width: 360px; }
.field-search span { position: absolute; left: 10px; top: 7px; color: var(--muted); }
.field-search input { width: 100%; height: 34px; padding: 0 12px 0 31px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-muted); outline: none; font-size: 11px; }
.field-search input:focus { border-color: #9ab7f2; box-shadow: 0 0 0 3px #edf3ff; background: white; }
.filter-select { height: 34px; padding: 0 29px 0 10px; border: 1px solid var(--border); border-radius: 8px; background: white; color: #485365; font-size: 11px; }
.view-count { margin-left: auto; color: var(--muted); font-size: 10px; }

.table-wrap { border: 1px solid var(--border); border-radius: 0 0 11px 11px; background: white; overflow: auto; box-shadow: var(--shadow-sm); }
.data-table { width: 100%; min-width: 930px; border-collapse: collapse; }
.data-table th { height: 38px; padding: 0 12px; border-bottom: 1px solid var(--border); background: #f8fafc; color: var(--muted); font-size: 9px; letter-spacing: .045em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.data-table td { height: 54px; padding: 7px 12px; border-bottom: 1px solid #edf0f4; font-size: 11px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: #f8fbff; }
.person-cell { display: flex; align-items: center; gap: 9px; }
.person-cell .mini-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #e9eef8; color: #52627a; font-size: 9px; font-weight: 800; }
.person-cell b, .person-cell small { display: block; }
.person-cell b { font-size: 11px; }
.person-cell small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 99px; background: #eef1f5; color: #566174; font-size: 9px; font-weight: 700; white-space: nowrap; }
.chip.blue { background: var(--accent-soft); color: #285ec2; }
.chip.green { background: var(--success-soft); color: var(--success); }
.chip.amber { background: var(--warning-soft); color: var(--warning); }
.chip.red { background: var(--danger-soft); color: var(--danger); }
.chip.violet { background: var(--violet-soft); color: var(--violet); }
.sla { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.sla i { width: 6px; height: 6px; border-radius: 99px; background: var(--success); }
.sla.late { color: var(--danger); font-weight: 650; }
.sla.late i { background: var(--danger); }
.row-action { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 11px; font-weight: 650; }
.empty-state { padding: 44px; text-align: center; color: var(--muted); }
.empty-state b { display: block; margin-bottom: 4px; color: var(--text); }

.split-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 14px; }
.kanban { display: grid; grid-template-columns: repeat(3,minmax(240px,1fr)); gap: 12px; overflow: auto; }
.kanban-column { min-width: 240px; padding: 10px; border: 1px solid var(--border); border-radius: 11px; background: #f4f6f9; }
.kanban-title { padding: 2px 3px 11px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 750; }
.kanban-title span { padding: 2px 6px; border-radius: 99px; background: white; color: var(--muted); font-size: 9px; }
.request-card { width: 100%; margin-bottom: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: white; color: inherit; box-shadow: 0 1px 2px rgba(20,30,50,.03); cursor: pointer; text-align: left; }
.request-card:hover { border-color: #b9c9e7; }
.request-card.unread { border-color: #9ab7f2; box-shadow: 0 0 0 2px #edf3ff; }
.request-card-top { display: flex; justify-content: space-between; gap: 8px; }
.request-card-top > span:first-child { min-width: 0; display: flex; align-items: center; gap: 6px; }
.unread-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.request-card b { font-size: 11px; }
.request-card p { margin: 7px 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.request-meta { display: flex; justify-content: space-between; color: var(--faint); font-size: 9px; }
.request-overview { margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; background: white; box-shadow: var(--shadow-sm); }
.request-overview span { padding-right: 12px; border-right: 1px solid var(--border); }
.request-overview span:last-child { border-right: 0; }
.request-overview b, .request-overview small { display: block; }
.request-overview b { font-size: 18px; }
.request-overview small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.request-summary { margin-bottom: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(110px,.6fr) minmax(80px,.35fr); gap: 12px; background: #fafbfc; }
.request-summary small, .request-summary b { display: block; }
.request-summary small { margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.request-summary b { font-size: 10px; line-height: 1.45; }
.request-workflow { margin-bottom: 16px; padding: 12px; border: 1px solid #cfdef6; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f5f9ff; }
.request-workflow > span b, .request-workflow > span small { display: block; }
.request-workflow > span b { font-size: 10px; }
.request-workflow > span small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.request-workflow > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.conversation-heading { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.conversation-heading b, .conversation-heading small { display: block; }
.conversation-heading b { font-size: 12px; }
.conversation-heading small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.request-thread { max-height: 330px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 11px; display: grid; gap: 10px; overflow: auto; background: #f6f8fb; }
.request-message { padding: 12px; border: 1px solid #dfe5ee; border-radius: 10px; background: white; box-shadow: 0 1px 2px rgba(20,30,50,.03); }
.request-message-head { display: flex; align-items: center; gap: 9px; }
.request-message-head b, .request-message-head small { display: block; }
.request-message-head b { font-size: 10px; }
.request-message-head small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.request-message p { margin: 10px 0 0; color: #465266; font-size: 10px; line-height: 1.5; }
.attachment-list { margin-top: 10px; display: grid; gap: 7px; }
.attachment-card { width: 100%; padding: 7px; border: 1px solid #d9e2f0; border-radius: 9px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 9px; background: #f8fbff; text-align: left; }
.attachment-card img, .document-placeholder { width: 48px; height: 48px; border-radius: 7px; object-fit: cover; }
.document-placeholder { display: grid; place-items: center; background: linear-gradient(145deg,#e8effc,#d3e0f7); color: #31547e; font-size: 7px; font-weight: 800; }
.attachment-main { min-width: 0; padding: 5px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.attachment-card b, .attachment-card small, .attachment-card em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-card b { font-size: 9px; }
.attachment-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.attachment-card em { margin-top: 4px; color: var(--warning); font-size: 7px; font-style: normal; font-weight: 700; }
.attachment-actions { display: flex; gap: 3px; }
.attachment-icon { width: 27px; height: 27px; border: 0; border-radius: 7px; display: grid; place-items: center; background: white; color: var(--accent); cursor: pointer; }
.attachment-icon.danger { color: var(--danger); }
.request-composer { padding-top: 2px; }
.composer-toolbar { margin: 8px 0; display: flex; align-items: center; gap: 10px; }
.composer-toolbar span { color: var(--muted); font-size: 8px; }
.inline-foot { margin: 14px -18px -18px; }
.optional-label { margin-left: 5px; color: var(--muted); font-weight: 450; }
.file-drop { min-height: 70px; padding: 12px; border: 1px dashed #abc0e5; border-radius: 9px; display: flex !important; align-items: center; gap: 10px; background: #f8fbff; cursor: pointer; }
.file-drop-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 17px; }
.file-drop b, .file-drop small { display: block; }
.file-drop b { color: var(--accent); font-size: 10px; }
.file-drop small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.upload-preview-list { margin-top: 8px; display: grid; gap: 7px; }
.upload-preview { padding: 7px; border: 1px solid var(--border); border-radius: 9px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 9px; }
.upload-preview img { width: 42px; height: 42px; border-radius: 7px; object-fit: cover; }
.upload-preview b, .upload-preview small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-preview b { font-size: 9px; }
.upload-preview small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.attachment-security-flow { margin-top: 12px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.attachment-security-flow span { position: relative; padding: 10px 9px 10px 12px; border: 1px solid #cfe0f8; border-radius: 9px; background: #f7faff; }
.attachment-security-flow span:not(:last-child):after { content: "→"; position: absolute; right: -8px; top: 50%; z-index: 2; transform: translateY(-50%); color: var(--accent); font-weight: 800; }
.attachment-security-flow b, .attachment-security-flow small { display: block; }
.attachment-security-flow b { color: var(--accent); font-size: 9px; }
.attachment-security-flow small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.readiness-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.readiness-overview>div { padding:15px; border:1px solid var(--border); border-radius:12px; background:var(--surface); box-shadow:var(--shadow-sm); }
.readiness-overview small,.readiness-overview b,.readiness-overview span { display:block; }
.readiness-overview small { color:var(--muted); font-size:10px; font-weight:700; }
.readiness-overview b { margin:5px 0 3px; font-size:23px; }
.readiness-overview span { color:var(--muted); font-size:9px; }
.readiness-gate-card { margin-bottom:14px; }
.readiness-table { min-width:1080px; }
.readiness-table tr[data-readiness-gate] { cursor:pointer; }
.readiness-table tr[data-readiness-gate]:hover { background:#f7faff; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.modal-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.request-history { margin-top: 14px; border: 1px solid var(--border); border-radius: 9px; background: #fafbfc; }
.request-history summary { padding: 10px 12px; color: #4f5b6d; font-size: 9px; font-weight: 700; cursor: pointer; }
.request-history > div { padding: 2px 12px 10px; display: grid; gap: 8px; }
.request-audit-row { display: grid; grid-template-columns: 8px minmax(0,1fr); align-items: start; gap: 8px; }
.request-audit-row i { width: 7px; height: 7px; margin-top: 3px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.request-audit-row b, .request-audit-row small { display: block; }
.request-audit-row b { font-size: 9px; }
.request-audit-row small { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.notification-list { display: grid; gap: 7px; }
.notification-row { width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: 9px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; background: white; text-align: left; cursor: pointer; }
.notification-row.unread { border-color: #b8caee; background: #f7faff; }
.notification-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.notification-row b, .notification-row small { display: block; }
.notification-row b { font-size: 10px; }
.notification-row small, .notification-row > span:last-child { margin-top: 3px; color: var(--muted); font-size: 8px; }

.bar-chart { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 90px minmax(0,1fr) 38px; align-items: center; gap: 10px; font-size: 10px; }
.bar-track { height: 7px; border-radius: 99px; background: #edf0f4; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#4a7feb,#3267d6); }
.bar-row strong { text-align: right; font-size: 10px; }

.funnel { display: grid; gap: 8px; }
.funnel-stage { height: 39px; padding: 0 12px; border: 1px solid #dce3ed; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg,#f2f6ff var(--fill),#fafbfc var(--fill)); }
.funnel-stage span { font-size: 10px; }
.funnel-stage b { font-size: 12px; }

.report-section-title { margin: 28px 0 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.report-section-title > div > span { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.report-section-title h2 { margin: 4px 0 3px; font-size: 19px; }
.report-section-title p { margin: 0; color: var(--muted); font-size: 10px; }
.journey-metrics .metric-card { min-height: 104px; }
.journey-report-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.journey-report-grid > .card:first-child { grid-column: 1 / -1; }
.journey-report-grid .card + .card { margin-top: 0; }
.report-table { border-radius: 9px; box-shadow: none; }
.report-table .data-table { min-width: 620px; }
.kpi-toolbar { margin-bottom: 14px; }
.management-kpi-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.management-kpi-card { min-width: 0; min-height: 126px; padding: 13px; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 11px; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; align-content: start; background: white; box-shadow: var(--shadow-sm); text-align: left; cursor: pointer; transition: transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.management-kpi-card:hover { transform: translateY(-2px); border-color: #aebfe0; box-shadow: 0 8px 24px rgba(30,50,90,.10); }
.management-kpi-card.green { border-top-color: var(--success); }
.management-kpi-card.amber { border-top-color: var(--warning); }
.management-kpi-card.red { border-top-color: var(--danger); }
.management-kpi-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }
.management-kpi-card > span:nth-child(2) { min-width: 0; }
.management-kpi-card small,.management-kpi-card b,.management-kpi-card em { display: block; }
.management-kpi-card small { color: var(--muted); font-size: 8px; font-weight: 700; }
.management-kpi-card b { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; color: #202938; font-size: 18px; line-height: 1.15; white-space: nowrap; }
.management-kpi-card em { margin-top: 6px; color: var(--muted); font-size: 8px; font-style: normal; line-height: 1.35; }
.management-kpi-card > i { grid-column: 1 / -1; margin-top: auto; color: var(--accent); font-size: 8px; font-style: normal; font-weight: 750; text-align: right; }
.kpi-branch-table .data-table { min-width: 920px; }
.kpi-branch-table small { color: var(--muted); font-size: 8px; }
.kpi-trend-table .data-table { min-width: 720px; }
.kpi-detail-value { margin-bottom: 14px; padding: 14px; border: 1px solid #cfdef6; border-radius: 10px; display: flex; align-items: center; gap: 12px; background: #f5f9ff; }
.kpi-detail-value > span { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; background: white; color: var(--accent); font-size: 16px; font-weight: 800; }
.kpi-detail-value small,.kpi-detail-value b { display: block; }
.kpi-detail-value small { color: var(--muted); font-size: 8px; }
.kpi-detail-value b { margin-top: 3px; font-size: 18px; }
.kpi-detail-value p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.kpi-definition { margin-bottom: 14px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-muted); }
.kpi-definition small,.kpi-definition b { display: block; }
.kpi-definition small { margin-bottom: 4px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.kpi-definition b { color: #455166; font-size: 10px; line-height: 1.5; }
.retention-grid { display: grid; gap: 4px; }
.retention-row { min-height: 35px; padding: 0 9px; border-radius: 7px; display: grid; grid-template-columns: 1.2fr repeat(4,.7fr); align-items: center; gap: 5px; background: #f7f9fc; font-size: 9px; }
.retention-row.header { background: transparent; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.retention-row span { text-align: center; }
.retention-row .strong { padding: 5px; border-radius: 6px; background: var(--success-soft); color: var(--success); font-weight: 750; }
.retention-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.55fr); gap: 14px; }
.retention-table { min-width: 1180px; }
.risk-score { min-width: 92px; }
.risk-score > b { display: inline-block; min-width: 24px; font-size: 14px; }
.risk-score > b.green { color: var(--success); }
.risk-score > b.amber { color: var(--warning); }
.risk-score > b.red { color: var(--danger); }
.risk-score > span { width: 58px; height: 5px; margin-left: 5px; border-radius: 99px; display: inline-block; overflow: hidden; background: #e9edf3; vertical-align: 2px; }
.risk-score > span i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--success),var(--warning),var(--danger)); }
.risk-score small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.signal-list { display: grid; gap: 3px; }
.signal-list span { color: #4f5b6d; font-size: 8px; white-space: nowrap; }
.signal-list b { color: var(--danger); }
.risk-rule-list { display: grid; gap: 7px; }
.risk-rule-list > div { padding: 9px; border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
.risk-rule-list b, .risk-rule-list small { display: block; }
.risk-rule-list b { font-size: 9px; }
.risk-rule-list small { margin-top: 2px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.risk-rule-list strong { color: var(--danger); font-size: 11px; }
.risk-legend { margin-top: 12px; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.risk-legend span { color: var(--muted); font-size: 7px; text-align: center; }
.risk-legend i { width: 7px; height: 7px; margin-right: 4px; border-radius: 99px; display: inline-block; }
.risk-legend i.green { background: var(--success); }
.risk-legend i.amber { background: var(--warning); }
.risk-legend i.red { background: var(--danger); }
.risk-detail-head { margin-bottom: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; gap: 14px; background: #fafbfc; }
.risk-gauge { width: 68px; height: 68px; flex: 0 0 auto; border: 6px solid var(--success); border-radius: 99px; display: grid; place-content: center; text-align: center; background: white; }
.risk-gauge.amber { border-color: var(--warning); }
.risk-gauge.red { border-color: var(--danger); }
.risk-gauge b { font-size: 20px; line-height: 1; }
.risk-gauge small { margin-top: 3px; color: var(--muted); font-size: 6px; }
.risk-detail-head > span small, .risk-detail-head > span b { display: block; }
.risk-detail-head > span small { color: var(--muted); font-size: 8px; }
.risk-detail-head > span b { margin-top: 3px; font-size: 15px; }
.risk-detail-head > span p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.risk-breakdown { margin-bottom: 14px; }
.risk-breakdown h3 { margin-bottom: 8px; color: #4a5668; font-size: 9px; text-transform: uppercase; }
.risk-breakdown > div { min-height: 44px; padding: 8px 10px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; }
.risk-breakdown b, .risk-breakdown small { display: block; }
.risk-breakdown b { font-size: 9px; }
.risk-breakdown small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.risk-breakdown strong { color: var(--danger); font-size: 12px; }

.identity-metrics .metric-card { min-height: 104px; }
.identity-flow { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow-x: auto; background: white; box-shadow: var(--shadow-sm); }
.identity-flow > div { min-width: 145px; display: flex; align-items: center; gap: 9px; }
.identity-flow i { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-style: normal; font-weight: 800; }
.identity-flow b, .identity-flow small { display: block; }
.identity-flow b { font-size: 9px; }
.identity-flow small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.identity-flow em { color: #aab2bf; font-size: 12px; font-style: normal; }
.identity-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(310px,.55fr); gap: 14px; }
.identity-table { min-width: 960px; }
.identity-table td:first-child b, .identity-table td:first-child small { display: block; }
.identity-table td:first-child small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.identity-score { min-width: 95px; }
.identity-score > b { display: inline-block; min-width: 24px; font-size: 13px; }
.identity-score > span { width: 55px; height: 5px; margin-left: 5px; border-radius: 99px; display: inline-block; overflow: hidden; background: #e9edf3; vertical-align: 2px; }
.identity-score > span i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--danger),var(--warning),var(--success)); }
.identity-score small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.identity-rule-list { display: grid; gap: 7px; }
.identity-rule-list > div { padding: 10px; border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: 50px minmax(0,1fr); align-items: center; gap: 9px; }
.identity-rule-list strong { color: var(--accent); font-size: 11px; }
.identity-rule-list b, .identity-rule-list small { display: block; }
.identity-rule-list b { font-size: 9px; }
.identity-rule-list small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.identity-security .security-item { grid-template-columns: 34px minmax(0,1fr); }
.identity-detail-head { margin-bottom: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; gap: 14px; background: #fafbfc; }
.identity-confidence { width: 68px; height: 68px; flex: 0 0 auto; border: 6px solid var(--success); border-radius: 99px; display: grid; place-content: center; text-align: center; background: white; }
.identity-confidence.amber { border-color: var(--warning); }
.identity-confidence.red { border-color: var(--danger); }
.identity-confidence b { font-size: 18px; line-height: 1; }
.identity-confidence small { margin-top: 3px; color: var(--muted); font-size: 6px; }
.identity-detail-head > span small, .identity-detail-head > span b { display: block; }
.identity-detail-head > span small { color: var(--muted); font-size: 8px; }
.identity-detail-head > span b { margin-top: 3px; font-size: 14px; }
.identity-detail-head > span p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.identity-evidence, .identity-conflicts { display: grid; gap: 6px; }
.identity-evidence span, .identity-conflicts span { padding: 8px 9px; border-radius: 7px; display: flex; align-items: center; gap: 7px; background: var(--success-soft); color: #27634f; font-size: 9px; }
.identity-conflicts span { background: var(--danger-soft); color: #843a41; }
.identity-evidence i, .identity-conflicts i { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: white; font-size: 8px; font-style: normal; font-weight: 800; }
.event-quality-metrics .metric-card { min-height: 104px; }
.event-flow { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow-x: auto; background: white; box-shadow: var(--shadow-sm); }
.event-flow > div { min-width: 145px; display: flex; align-items: center; gap: 9px; }
.event-flow i { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; background: #eef8f5; color: #2b7862; font-size: 9px; font-style: normal; font-weight: 800; }
.event-flow b, .event-flow small { display: block; }
.event-flow b { font-size: 9px; }
.event-flow small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.event-flow em { color: #aab2bf; font-size: 12px; font-style: normal; }
.event-quality-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.5fr); gap: 14px; }
.event-quality-table { min-width: 1120px; }
.event-quality-table td:first-child b, .event-quality-table td:first-child small,
.event-quality-table td:nth-child(4) b, .event-quality-table td:nth-child(4) small { display: block; }
.event-quality-table td:first-child small, .event-quality-table td:nth-child(4) small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.event-quality-table code { font-size: 8px; white-space: nowrap; }
.event-rule-list { display: grid; gap: 7px; }
.event-rule-list > div { padding: 10px; border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 9px; align-items: start; }
.event-rule-list i { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: #eef8f5; color: #2b7862; font-size: 8px; font-style: normal; font-weight: 800; }
.event-rule-list b, .event-rule-list small { display: block; }
.event-rule-list b { font-size: 9px; }
.event-rule-list small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.45; }

.data-readiness-metrics .metric-card { min-height: 104px; }
.data-map-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.55fr); gap: 14px; }
.data-map-table { min-width: 1180px; }
.data-map-table td:first-child b, .data-map-table td:first-child small { display: block; }
.data-map-table td:first-child small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.readiness-steps { display: grid; gap: 3px; }
.readiness-steps > div { position: relative; min-height: 49px; padding: 7px 7px 7px 45px; display: flex; align-items: center; }
.readiness-steps > div::before { content: ""; position: absolute; left: 20px; top: 39px; bottom: -10px; width: 1px; background: #dce2eb; }
.readiness-steps > div:last-child::before { display: none; }
.readiness-steps i { position: absolute; left: 6px; top: 8px; width: 29px; height: 29px; border: 1px solid #d3dae5; border-radius: 99px; display: grid; place-items: center; background: white; color: var(--faint); font-size: 9px; font-style: normal; font-weight: 800; }
.readiness-steps .done i { border-color: var(--success); background: var(--success); color: white; }
.readiness-steps .current i { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.readiness-steps b, .readiness-steps small { display: block; }
.readiness-steps b { font-size: 10px; }
.readiness-steps small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.verified-gap-list { display: grid; gap: 8px; }
.verified-gap-list > div { padding: 9px; border: 1px solid #f0d4d7; border-radius: 8px; display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 8px; align-items: center; background: #fff8f9; }
.verified-gap-list i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); font-size: 8px; font-style: normal; font-weight: 800; }
.verified-gap-list b, .verified-gap-list small { display: block; }
.verified-gap-list b { font-size: 9px; }
.verified-gap-list small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.data-source-detail { margin-bottom: 17px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; display: grid; grid-template-columns: .75fr 1fr 1.2fr; gap: 10px; background: #fafbfc; }
.data-source-detail > div { min-width: 0; }
.data-source-detail small, .data-source-detail b { display: block; }
.data-source-detail small { margin-bottom: 5px; color: var(--muted); font-size: 8px; }
.data-source-detail b { font-size: 9px; line-height: 1.45; }
.mapping-section { margin-bottom: 15px; }
.mapping-section h3 { margin-bottom: 7px; color: #4a5668; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.mapping-section p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.mapping-section code { padding: 10px 11px; border: 1px solid #d9e2ef; border-radius: 8px; display: block; overflow-x: auto; background: #f5f8fc; color: #36506f; font-size: 9px; line-height: 1.55; white-space: normal; }

.alert { padding: 12px; border: 1px solid #eed9ac; border-radius: 9px; background: #fffaf0; color: #72501b; font-size: 10px; line-height: 1.5; }
.alert.danger { border-color: #f1cbd0; background: #fff6f7; color: #7d3037; }
.alert.info { border-color: #cfdef6; background: #f5f9ff; color: #31547e; }
.alert.success { border-color: #b7e3cb; background: var(--success-soft); color: #236348; }
.alert b { display: block; margin-bottom: 3px; color: inherit; }

.uat-participants { margin-bottom: 14px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.uat-participants > span { min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 9px; display: grid; grid-template-columns: 28px minmax(0,1fr); column-gap: 8px; align-items: center; background: white; }
.uat-participants i { grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-style: normal; font-weight: 800; }
.uat-participants b,.uat-participants small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uat-participants b { font-size: 10px; }
.uat-participants small { color: var(--muted); font-size: 8px; }
.uat-table { min-width: 1100px; }
.uat-table td:nth-child(1) { width: 155px; }
.uat-table td:nth-child(4) { width: 300px; }
.uat-steps { margin: 14px 0; }
.uat-steps h3 { margin: 0 0 8px; color: #4a5668; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.uat-steps > div { margin-bottom: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 8px; align-items: center; background: var(--surface-muted); }
.uat-steps > div span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: white; color: var(--accent); font-size: 9px; font-weight: 800; }
.uat-steps p { margin: 0; color: #4a5668; font-size: 10px; line-height: 1.45; }
.uat-stop-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.uat-stop-grid span { padding: 10px; border: 1px solid #f1cbd0; border-radius: 8px; background: #fff6f7; color: #7d3037; font-size: 9px; font-weight: 700; text-align: center; }

.security-list { display: grid; gap: 10px; }
.security-item { padding: 13px; border: 1px solid var(--border); border-radius: 9px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.security-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.security-item b { display: block; font-size: 11px; }
.security-item p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }

.detail-scrim { position: fixed; z-index: 80; inset: 28px 0 0 0; background: rgba(20,28,42,.18); backdrop-filter: blur(1px); }
.detail-panel { position: fixed; z-index: 90; top: 28px; right: 0; bottom: 0; width: min(760px,100vw); border-left: 1px solid var(--border); background: white; box-shadow: -18px 0 60px rgba(24,32,44,.18); transform: translateX(104%); transition: transform .22s ease; overflow: auto; }
.detail-panel.open { transform: translateX(0); }
.detail-head { position: sticky; top: 0; z-index: 2; padding: 17px 18px 15px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.detail-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-head h2 { margin: 0 0 4px; font-size: 18px; }
.detail-head p { margin: 0; color: var(--muted); font-size: 10px; }
.close-button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f0f2f6; cursor: pointer; }
.detail-actions { margin-top: 13px; display: flex; gap: 7px; flex-wrap: wrap; }
.detail-body { padding: 18px; }
.detail-section { margin-bottom: 22px; }
.detail-section h3 { margin-bottom: 10px; color: #4a5668; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-box { padding: 11px; border: 1px solid var(--border); border-radius: 8px; }
.info-box span, .info-box b { display: block; }
.info-box span { margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.info-box b { font-size: 11px; }
.note-box { width: 100%; min-height: 76px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; resize: vertical; font-size: 11px; outline: none; }
.journey-head { padding-bottom: 13px; }
.journey-detail { padding-top: 14px; }
.journey-strip { margin-bottom: 15px; padding: 12px 9px 9px; border: 1px solid var(--border); border-radius: 10px; display: flex; overflow-x: auto; background: #fafbfc; }
.journey-step { position: relative; min-width: 84px; flex: 1; text-align: center; color: var(--faint); }
.journey-step::before { content: ""; position: absolute; top: 11px; left: 0; right: 0; height: 2px; background: #e4e8ef; }
.journey-step:first-child::before { left: 50%; }
.journey-step:last-child::before { right: 50%; }
.journey-step i { position: relative; z-index: 1; width: 23px; height: 23px; margin: 0 auto 6px; border: 2px solid #d7dde6; border-radius: 99px; display: grid; place-items: center; background: white; font-size: 8px; font-style: normal; font-weight: 800; }
.journey-step span { display: block; font-size: 7px; white-space: nowrap; }
.journey-step.done::before, .journey-step.current::before { background: #9fc0ff; }
.journey-step.done i { border-color: var(--accent); background: var(--accent); color: white; }
.journey-step.current i { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.journey-step.done span, .journey-step.current span { color: #31547e; font-weight: 700; }
.journey-tabs { margin-bottom: 16px; border-bottom: 1px solid var(--border); display: flex; gap: 4px; overflow-x: auto; }
.journey-tabs button { min-height: 36px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 10px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.journey-tabs button.active { border-bottom-color: var(--accent); color: var(--accent); }
.journey-summary-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.journey-summary-grid > div { min-width: 0; padding: 11px; border: 1px solid var(--border); border-radius: 9px; background: #fafbfc; }
.journey-summary-grid small, .journey-summary-grid b, .journey-summary-grid span { display: block; }
.journey-summary-grid small { margin-bottom: 5px; color: var(--muted); font-size: 8px; }
.journey-summary-grid b { overflow: hidden; text-overflow: ellipsis; font-size: 10px; line-height: 1.35; }
.journey-summary-grid span { margin-top: 4px; color: var(--faint); font-size: 8px; line-height: 1.35; }
.next-action-card { margin-bottom: 20px; padding: 13px; border: 1px solid #cfe0fa; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f6f9ff; }
.next-action-card.amber { border-color: #eed9ac; background: #fffaf0; }
.next-action-card.red { border-color: #f1cbd0; background: #fff6f7; }
.next-action-card small, .next-action-card b { display: block; }
.next-action-card small { color: var(--muted); font-size: 8px; }
.next-action-card b { margin-top: 3px; font-size: 12px; }
.next-action-card p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h3 { margin: 0; }
.journey-events { display: grid; gap: 8px; }
.journey-event { position: relative; padding: 11px; border: 1px solid var(--border); border-radius: 9px; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; background: white; }
.journey-event-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 800; }
.journey-event small, .journey-event b, .journey-event em { display: block; }
.journey-event small { color: var(--accent); font-size: 8px; font-weight: 700; }
.journey-event b { margin-top: 3px; font-size: 10px; }
.journey-event p { margin: 4px 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.journey-event em { color: var(--faint); font-size: 8px; font-style: normal; }
.channel-summary { margin-bottom: 12px; display: flex; gap: 7px; overflow-x: auto; }
.channel-summary span { min-width: 76px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: #fafbfc; text-align: center; }
.channel-summary b, .channel-summary small { display: block; }
.channel-summary b { font-size: 14px; }
.channel-summary small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.membership-hero { margin-bottom: 12px; padding: 15px; border: 1px solid #cce9dd; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; background: #f3fbf8; }
.membership-hero.churned { border-color: #f1cbd0; background: #fff6f7; }
.membership-hero small, .membership-hero b, .membership-hero em { display: block; }
.membership-hero small { color: var(--muted); font-size: 8px; }
.membership-hero b { margin-top: 3px; font-size: 17px; }
.membership-hero em { margin-top: 3px; color: var(--muted); font-size: 9px; font-style: normal; }
.retention-action { padding: 12px; border: 1px solid var(--border); border-radius: 9px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.retention-action b { font-size: 10px; }
.retention-action p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.empty-journey { padding: 34px 20px; border: 1px dashed #cbd5e3; border-radius: 10px; background: #fafbfc; text-align: center; }
.empty-journey > span { width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 18px; }
.empty-journey b { display: block; font-size: 12px; }
.empty-journey p { max-width: 460px; margin: 6px auto 14px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.modal-backdrop, .command-backdrop { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20,27,40,.45); backdrop-filter: blur(4px); }
.modal { width: min(530px,100%); max-height: 90vh; overflow: auto; border: 1px solid rgba(255,255,255,.45); border-radius: 14px; background: white; box-shadow: var(--shadow-lg); }
.modal-head { padding: 17px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-body { padding: 18px; }
.modal-foot { padding: 13px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: #fafbfc; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 5px; color: #566174; font-size: 10px; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: white; outline: none; font-size: 11px; }
.form-field input, .form-field select { height: 36px; }
.form-field textarea { min-height: 74px; padding-top: 9px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #91b0ed; box-shadow: 0 0 0 3px #edf3ff; }
.form-note { margin-top: 10px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.transfer-preview { margin-top: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-muted); }
.transfer-preview > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.transfer-preview > div span { padding: 10px; border-radius: 8px; background: white; text-align: center; }
.transfer-preview small,.transfer-preview b { display: block; }
.transfer-preview small { color: var(--muted); font-size: 9px; }
.transfer-preview b { margin-top: 3px; font-size: 16px; }
.transfer-preview ul { margin: 10px 0 0; padding: 0; list-style: none; }
.transfer-preview li { padding: 7px 2px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 10px; }
.transfer-preview p { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.reauth-check { margin-top: 12px; padding: 11px 12px; border: 1px solid #cddaf4; border-radius: 9px; display: flex; gap: 10px; align-items: flex-start; background: #f5f8ff; cursor: pointer; }
.reauth-check input { margin-top: 2px; }
.reauth-check b,.reauth-check small { display: block; }
.reauth-check b { font-size: 10px; }
.reauth-check small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.transfer-success { margin-bottom: 14px; padding: 14px; border: 1px solid #b7e3cb; border-radius: 10px; display: flex; gap: 12px; align-items: center; background: var(--success-soft); }
.transfer-success > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: white; font-weight: 800; }
.transfer-success b,.transfer-success p { display: block; margin: 0; }
.transfer-success b { font-size: 12px; }
.transfer-success p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.transfer-audit-list { display: grid; gap: 8px; }
.transfer-audit-list > div { padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--surface-muted); }
.transfer-audit-list b,.transfer-audit-list small { display: block; }
.transfer-audit-list b { font-size: 10px; }
.transfer-audit-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.trainer-assignment-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(250px,.5fr); gap: 14px; align-items: start; }
.trainer-workload-list { display: grid; gap: 6px; max-height: 430px; overflow: auto; }
.trainer-workload-list > div { padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; background: var(--surface-muted); }
.trainer-workload-list b,.trainer-workload-list small { display: block; }
.trainer-workload-list b { font-size: 10px; }
.trainer-workload-list small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.trainer-workload-list strong { min-width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 11px; }

.command-backdrop { place-items: start center; padding-top: 12vh; }
.command-palette { width: min(620px,100%); overflow: hidden; border: 1px solid rgba(255,255,255,.35); border-radius: 13px; background: white; box-shadow: var(--shadow-lg); }
.command-input-wrap { height: 55px; padding: 0 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.command-input-wrap input { flex: 1; border: 0; outline: 0; font-size: 13px; }
.command-results { max-height: 340px; overflow: auto; padding: 7px; }
.command-item { width: 100%; min-height: 43px; padding: 0 10px; border: 0; border-radius: 8px; display: flex; align-items: center; gap: 10px; background: white; text-align: left; cursor: pointer; }
.command-item:hover { background: #f1f5fb; }
.command-item-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #eef3fd; color: var(--accent); font-size: 11px; font-weight: 800; }
.command-item b { display: block; font-size: 11px; }
.command-item small { color: var(--muted); font-size: 9px; }
.command-item kbd { margin-left: auto; }

.toast-stack { position: fixed; z-index: 150; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 360px; padding: 12px 14px; border: 1px solid #cbd4e1; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(20,30,50,.18); animation: toastIn .2s ease; }
.toast b { display: block; margin-bottom: 3px; font-size: 11px; }
.toast span { color: var(--muted); font-size: 10px; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid, .split-grid, .retention-layout, .identity-layout, .event-quality-layout, .data-map-layout, .trainer-assignment-layout { grid-template-columns: 1fr; }
  .journey-report-grid { grid-template-columns: 1fr; }
  .journey-report-grid > .card:first-child { grid-column: auto; }
  .role-switcher span { display: none; }
  .uat-participants { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .management-kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .app-shell { grid-template-columns: 1fr; min-height: calc(100vh - 28px); height: auto; }
  .sidebar { position: fixed; top: 28px; bottom: 0; left: 0; width: 238px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .workspace { min-height: calc(100vh - 28px); }
  .mobile-menu { display: block; }
  .topbar { padding: 0 12px; }
  .global-search { min-width: 0; width: auto; flex: 1; }
  .global-search span:nth-child(2), .global-search kbd { display: none; }
  .role-switcher select { width: 126px; }
  .page { padding: 20px 14px 40px; }
  .page-heading { flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .request-overview { grid-template-columns: repeat(2,1fr); }
  .request-overview span:nth-child(2) { border-right: 0; }
  .request-summary { grid-template-columns: 1fr; }
  .request-workflow { align-items: stretch; flex-direction: column; }
  .request-workflow > div { justify-content: stretch; }
  .request-workflow .btn { flex: 1; }
  .composer-toolbar { align-items: flex-start; flex-direction: column; }
  .journey-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .journey-summary-grid.membership { grid-template-columns: 1fr; }
  .next-action-card, .membership-hero { align-items: flex-start; flex-direction: column; }
  .retention-action { grid-template-columns: 34px minmax(0,1fr); }
  .retention-action .btn { grid-column: 1 / -1; }
  .data-source-detail { grid-template-columns: 1fr; }
  .identity-detail-grid { grid-template-columns: 1fr; }
  .transfer-preview > div,.transfer-audit-list > div { grid-template-columns: 1fr; }
  .uat-participants,.uat-stop-grid { grid-template-columns: 1fr; }
  .management-kpi-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
