:root {
  --navy: #102754;
  --navy-deep: #09162e;
  --blue: #1768e5;
  --blue-soft: #edf5ff;
  --ink: #182033;
  --muted: #657189;
  --line: #e4e9f1;
  --canvas: #f5f7fb;
  --white: #fff;
  --green: #11865f;
  --green-soft: #eaf8f2;
  --amber: #b96608;
  --amber-soft: #fff4e3;
  --red: #bd3c43;
  --red-soft: #fff0f1;
  --shadow: 0 14px 40px rgba(22, 39, 77, .1);
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "DM Sans", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.demo-banner { height: 34px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff6d7; color: #6f5200; border-bottom: 1px solid #f1dc8f; font-size: 12px; position: fixed; inset: 0 0 auto; z-index: 80; }
.demo-banner span { font-weight: 800; letter-spacing: .08em; }
.demo-banner p { margin: 0; }
.app-shell { min-height: 100vh; padding-top: 34px; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: fixed; top: 34px; bottom: 0; width: 250px; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: white; z-index: 60; }
.brand { display: flex; align-items: center; gap: 12px; padding: 24px 20px 27px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #3386ff, #1e56c7); font-family: Manrope; font-weight: 800; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.brand strong, .brand small, .sidebar-footer strong, .sidebar-footer small { display: block; }
.brand strong { font-family: Manrope; font-size: 15px; }
.brand small, .sidebar-footer small { margin-top: 3px; color: rgba(255,255,255,.56); font-size: 11px; }
.sidebar nav { padding: 18px 12px; flex: 1; }
.nav-item { width: 100%; border: 0; background: transparent; color: rgba(255,255,255,.68); border-radius: 11px; padding: 11px 12px; margin-bottom: 5px; display: flex; align-items: center; gap: 11px; text-align: left; font-size: 13px; font-weight: 600; }
.nav-item:hover { background: rgba(255,255,255,.08); color: white; }
.nav-item.active { color: white; background: rgba(47,125,255,.3); box-shadow: inset 3px 0 #66a2ff; }
.nav-item .icon { width: 21px; text-align: center; font-size: 17px; }
.nav-count { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 9px; background: #2d74dc; text-align: center; font-size: 10px; }
.nav-count.amber { background: #d98519; }
.sidebar-footer { padding: 17px 18px; border-top: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; gap: 10px; font-size: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #dbe9ff; color: var(--navy); display: grid; place-items: center; font-weight: 800; }
.avatar.small { width: 30px; height: 30px; font-size: 11px; }
main { grid-column: 2; min-width: 0; }
.topbar { height: 64px; position: sticky; top: 34px; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 0 34px; display: flex; align-items: center; }
.menu-button, .mobile-brand { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-button, .notification-button { width: 36px; height: 36px; border: 1px solid var(--line); background: white; border-radius: 10px; color: var(--muted); position: relative; }
.notification-button span { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: white; display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.profile-chip { display: flex; align-items: center; gap: 7px; padding: 3px 9px 3px 4px; border: 1px solid var(--line); border-radius: 20px; font-size: 12px; font-weight: 700; background: white; }
.content { width: min(1480px, 100%); margin: 0 auto; padding: 32px 38px 56px; }
.view { display: none; }.view.active { display: block; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3, h4 { font-family: Manrope, sans-serif; margin: 0; }
h1 { margin-top: 5px; font-size: 28px; letter-spacing: -.04em; }
.page-heading p, .section-heading p, .queue-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.primary-button, .secondary-button, .focus-action { border: 0; border-radius: 10px; padding: 10px 15px; font-weight: 700; font-size: 12px; }
.primary-button { background: var(--blue); color: white; box-shadow: 0 8px 20px rgba(23,104,229,.2); }
.secondary-button { background: white; color: var(--ink); border: 1px solid var(--line); }
.focus-card { margin-top: 24px; border-radius: 15px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 16px 18px; background: linear-gradient(100deg, #fff8eb, #fffdf8); border: 1px solid #f0d7a5; box-shadow: 0 6px 20px rgba(130,88,11,.06); }
.focus-icon { width: 38px; height: 38px; border-radius: 11px; background: #f7a928; color: white; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.focus-copy span { display: block; color: #9a5c08; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.focus-copy strong { display: block; margin-top: 3px; font-family: Manrope; font-size: 14px; }
.focus-copy p { margin: 3px 0 0; color: #786b57; font-size: 11px; }
.focus-action { background: transparent; color: #8b5108; white-space: nowrap; }
.focus-action span { font-size: 20px; vertical-align: -2px; margin-left: 5px; }
.section-heading, .queue-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 30px; }
.section-heading h2, .queue-toolbar h2 { font-size: 17px; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 13px; }
.metric { min-width: 0; border: 1px solid var(--line); background: white; border-radius: 13px; padding: 13px; text-align: left; transition: .2s ease; }
.metric:hover, .metric.active { border-color: #8cb8f3; transform: translateY(-2px); box-shadow: 0 9px 20px rgba(30,75,145,.09); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.metric-icon { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 12px; }
.metric.urgent .metric-icon { background: var(--red-soft); color: var(--red); }
.metric.good .metric-icon { background: var(--green-soft); color: var(--green); }
.metric strong { display: block; margin-top: 11px; font-family: Manrope; font-size: 22px; }
.metric label { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; line-height: 1.25; cursor: pointer; }
.metric .trend { color: var(--red); font-size: 9px; font-weight: 700; }
.toolbar-actions { display: flex; gap: 8px; }
.search-box { min-width: 245px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 0 11px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; padding: 10px 0; font-size: 12px; }
.filter-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 3px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 9px; }
.active-filters { min-height: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.active-filters span { padding: 5px 8px; border-radius: 7px; background: #e9f2ff; color: #255a9e; font-size: 10px; font-weight: 700; }
.active-filters button { border: 0; background: transparent; color: inherit; padding: 0 0 0 4px; }
.active-filters > button { font-size: 10px; color: var(--muted); }
.queue { display: grid; gap: 9px; margin-top: 8px; }
.meeting-card { display: grid; grid-template-columns: 5px minmax(170px, 1.4fr) minmax(130px, .9fr) minmax(130px, 1fr) minmax(115px, .7fr) auto auto; align-items: center; gap: 14px; background: white; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px 12px 0; overflow: hidden; transition: .2s ease; }
.meeting-card:hover { border-color: #c5d6ef; box-shadow: 0 8px 24px rgba(19,43,84,.07); }
.risk-bar { height: calc(100% + 24px); background: var(--amber); }.risk-bar.high { background: var(--red); }.risk-bar.low { background: var(--green); }
.lead-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lead-avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; background: #e7effc; color: #284f87; font-size: 11px; font-weight: 800; }
.lead-cell strong, .cell strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-cell small, .cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 12px; padding: 5px 8px; background: var(--amber-soft); color: var(--amber); font-size: 9px; font-weight: 800; }
.status-pill.blue { background: var(--blue-soft); color: var(--blue); }.status-pill.red { background: var(--red-soft); color: var(--red); }.status-pill.green { background: var(--green-soft); color: var(--green); }
.risk { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }.risk i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }.risk.high i { background: var(--red); }.risk.low i { background: var(--green); }
.open-button { border: 1px solid var(--line); background: #fbfcfe; color: var(--blue); border-radius: 9px; padding: 8px 11px; font-size: 10px; font-weight: 800; }
.empty-state, .state-card { margin-top: 16px; border: 1px dashed #cbd4e2; border-radius: 15px; padding: 45px 20px; background: white; text-align: center; }
.empty-state .state-icon, .state-card .state-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 15px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 20px; }
.empty-state p, .state-card p { color: var(--muted); font-size: 12px; }
.skeleton { height: 76px; border-radius: 13px; background: linear-gradient(90deg,#edf0f5 25%,#f8f9fb 45%,#edf0f5 65%); background-size: 300% 100%; animation: pulse 1.25s infinite; }
@keyframes pulse { from { background-position: 100% 0; } to { background-position: 0 0; } }
.overlay { position: fixed; inset: 0; background: rgba(8,20,43,.42); opacity: 0; pointer-events: none; transition: .25s; z-index: 90; }.overlay.open { opacity: 1; pointer-events: auto; }
.detail-drawer { position: fixed; top: 34px; right: 0; bottom: 0; width: min(720px, 96vw); background: var(--canvas); box-shadow: -18px 0 50px rgba(5,17,40,.17); transform: translateX(102%); transition: transform .3s ease; z-index: 100; overflow-y: auto; }.detail-drawer.open { transform: translateX(0); }
.drawer-header { position: sticky; top: 0; z-index: 2; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); padding: 16px 20px; }
.drawer-topline { display: flex; align-items: center; gap: 10px; }.drawer-topline button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: white; }.drawer-topline h2 { font-size: 18px; }.drawer-topline .status-pill { margin-left: auto; }
.drawer-sub { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 0 42px; color: var(--muted); font-size: 10px; }
.drawer-tabs { display: flex; overflow-x: auto; gap: 3px; margin-top: 14px; }.drawer-tabs button { white-space: nowrap; border: 0; background: transparent; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid transparent; font-size: 10px; font-weight: 700; }.drawer-tabs button.active { color: var(--blue); border-color: var(--blue); }
.drawer-body { padding: 18px; }
.drawer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 13px; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: white; padding: 15px; }
.panel h3 { font-size: 13px; }.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.panel-heading button { border: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 700; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 12px; }.info-item span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }.info-item strong { display: block; margin-top: 3px; font-size: 11px; }.masked { letter-spacing: .05em; }
.summary-box { margin-top: 11px; padding: 12px; border-radius: 10px; background: #f2f6fc; font-size: 11px; line-height: 1.55; }.summary-box .version { display: inline-block; margin-top: 8px; color: var(--blue); font-size: 9px; font-weight: 800; }
.checklist { margin: 10px 0 0; padding: 0; list-style: none; }.checklist li { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid #f0f2f6; font-size: 10px; }.checklist li:last-child { border: 0; }.checklist button { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 6px; border: 1px solid #cbd4e0; background: white; color: transparent; }.checklist li.done button { border-color: var(--green); background: var(--green); color: white; }.checklist small { display: block; margin-top: 2px; color: var(--muted); }
.action-stack { display: grid; gap: 7px; margin-top: 11px; }.action-stack button { width: 100%; text-align: left; border: 1px solid var(--line); background: white; border-radius: 9px; padding: 9px 10px; color: var(--ink); font-size: 10px; font-weight: 700; }.action-stack button.primary { background: var(--blue); border-color: var(--blue); color: white; }
.timeline { list-style: none; padding: 0; margin: 11px 0 0; }.timeline li { position: relative; padding: 0 0 15px 19px; font-size: 10px; line-height: 1.4; }.timeline li:before { content: ""; position: absolute; left: 2px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #79a9ee; }.timeline li:after { content: ""; position: absolute; left: 5px; top: 13px; bottom: 2px; width: 1px; background: #d8e1ed; }.timeline li:last-child:after { display: none; }.timeline time { display: block; color: var(--muted); font-size: 9px; }
.conversation { display: grid; gap: 9px; margin-top: 12px; }.bubble { max-width: 82%; border-radius: 12px 12px 12px 3px; padding: 10px 12px; background: #f0f3f8; font-size: 10px; line-height: 1.45; }.bubble.marina { margin-left: auto; background: #dfeeff; border-radius: 12px 12px 3px 12px; }.bubble strong { display: block; margin-bottom: 3px; font-size: 9px; }.bubble time { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; text-align: right; }
.wide { grid-column: 1 / -1; }.hidden { display: none !important; }
.modal { position: fixed; left: 50%; top: 50%; width: min(430px, calc(100vw - 30px)); transform: translate(-50%,-45%) scale(.97); opacity: 0; pointer-events: none; z-index: 120; border-radius: 16px; background: white; box-shadow: 0 25px 80px rgba(4,16,42,.25); transition: .2s; }.modal.open { opacity: 1; transform: translate(-50%,-50%) scale(1); pointer-events: auto; }.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px; border-bottom: 1px solid var(--line); }.modal-head h3 { font-size: 15px; }.modal-head button { border: 0; background: transparent; font-size: 20px; color: var(--muted); }.modal-body { padding: 18px; }.field { margin-bottom: 12px; }.field label { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 700; }.field input, .field select, .field textarea { width: 100%; border: 1px solid #ced6e3; border-radius: 9px; padding: 10px; outline: 0; font-size: 11px; }.field textarea { min-height: 80px; resize: vertical; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%,20px); opacity: 0; pointer-events: none; z-index: 150; padding: 10px 15px; border-radius: 10px; background: #10243f; color: white; box-shadow: var(--shadow); font-size: 11px; font-weight: 700; transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%,0); }
.state-menu { position: fixed; right: 35px; top: 92px; z-index: 70; width: 190px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }.state-menu button { width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 8px; font-size: 11px; }.state-menu button:hover { background: var(--blue-soft); }

@media (max-width: 1120px) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .meeting-card { grid-template-columns: 5px minmax(160px,1.3fr) minmax(120px,1fr) minmax(120px,1fr) auto; }
  .meeting-card .risk { display: none; }
}
@media (max-width: 800px) {
  .demo-banner { height: 42px; padding: 0 10px; gap: 6px; flex-wrap: wrap; line-height: 1; }.demo-banner p { font-size: 9px; }
  .app-shell { padding-top: 42px; display: block; }
  .sidebar { top: 42px; transform: translateX(-102%); transition: .25s; box-shadow: 15px 0 40px rgba(0,0,0,.2); }.sidebar.open { transform: translateX(0); }
  main { width: 100%; }.topbar { top: 42px; height: 56px; padding: 0 14px; }.menu-button { display: block; border: 0; background: transparent; font-size: 20px; color: var(--navy); }.mobile-brand { display: block; margin-left: 10px; font-family: Manrope; font-size: 13px; font-weight: 800; }.profile-chip span { display: none; }
  .content { padding: 22px 14px 42px; }.page-heading { align-items: flex-start; }.page-heading .primary-button { display: none; }h1 { font-size: 23px; }.page-heading p { font-size: 11px; }
  .focus-card { grid-template-columns: auto 1fr; padding: 13px; }.focus-action { grid-column: 2; justify-self: start; padding: 0; }.focus-copy strong { font-size: 12px; }.focus-copy p { font-size: 10px; }
  .metrics { display: flex; overflow-x: auto; margin-right: -14px; padding-right: 14px; scroll-snap-type: x mandatory; }.metric { flex: 0 0 125px; scroll-snap-align: start; }.metric strong { font-size: 19px; }
  .queue-toolbar { align-items: flex-start; flex-direction: column; }.toolbar-actions { width: 100%; }.search-box { flex: 1; min-width: 0; }.secondary-button { white-space: nowrap; }
  .meeting-card { grid-template-columns: 4px 1fr auto; gap: 10px; padding: 12px 10px 12px 0; }.meeting-card .cell, .meeting-card .risk { display: none; }.meeting-card .lead-cell { align-items: flex-start; }.meeting-card .open-button { align-self: center; }.lead-cell small { white-space: normal; }.risk-bar { height: calc(100% + 24px); }
  .detail-drawer { top: 42px; left: 0; right: auto; width: 100%; max-width: 100vw; }.drawer-header { padding: 13px 14px; }.drawer-topline h2 { min-width: 0; }.drawer-sub { margin-left: 42px; }.drawer-body { padding: 12px; }.drawer-grid { grid-template-columns: minmax(0, 1fr); }.panel { min-width: 0; }.wide { grid-column: 1; }.info-grid { grid-template-columns: 1fr 1fr; }
  .state-menu { top: 91px; right: 12px; }
}
