:root {
  --c-deep: #25372f;
  --c-deep-2: #1b2a24;
  --c-forest: #4c705f;
  --c-forest-hover: #385444;
  --c-cream: #f3eee5;
  --c-paper: #faf7f0;
  --c-white: #fffdf8;
  --c-sage: #a8bbaf;
  --c-sage-light: #dfe6e0;
  --c-gold: #c59139;
  --c-ink: #191a17;
  --c-muted: #59645d;
  --c-line: #d5cec2;
  --c-danger: #a84f45;
  --c-success: #397357;
  --sidebar: 250px;
  --topbar: 76px;
  --demo: 34px;
  --ease: 180ms ease;
  --focus: 0 0 0 3px rgba(197, 145, 57, .34);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--c-cream); color: var(--c-ink); scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.5 "Segoe UI", Arial, sans-serif; background: var(--c-cream); overflow-x: hidden; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 2000; left: 12px; top: -80px; padding: 12px 16px; background: var(--c-white); color: var(--c-deep); font-weight: 700; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 0; box-shadow: var(--focus); }

.demo-bar { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--demo); display: flex; align-items: center; justify-content: center; gap: 24px; padding: 0 24px; background: var(--c-gold); color: var(--c-deep-2); font-size: 12px; letter-spacing: .02em; }
.demo-bar strong { text-transform: uppercase; letter-spacing: .1em; }
.demo-bar a { font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: calc(100dvh - var(--demo)); margin-top: var(--demo); }
.sidebar { position: fixed; inset: var(--demo) auto 0 0; z-index: 50; width: var(--sidebar); display: flex; flex-direction: column; color: var(--c-cream); background: var(--c-deep); border-right: 1px solid rgba(223, 230, 224, .14); }
.brand-lockup { height: var(--topbar); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 23px; border-bottom: 1px solid rgba(223, 230, 224, .14); }
.brand { display: inline-flex; align-items: flex-start; gap: 4px; color: var(--c-cream); text-decoration: none; font-size: 27px; font-weight: 780; letter-spacing: -.06em; line-height: 1; }
.brand i { width: 7px; height: 7px; margin-top: 1px; border-radius: 50%; background: var(--c-sage); }
.brand-lockup > b { padding: 4px 7px; border: 1px solid rgba(243, 238, 229, .3); color: var(--c-sage); font-size: 10px; letter-spacing: .16em; }
.side-nav { flex: 1; padding: 24px 14px; overflow-y: auto; }
.side-nav p { margin: 15px 10px 8px; color: var(--c-sage); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.side-nav p:first-child { margin-top: 0; }
.nav-item { position: relative; width: 100%; min-height: 46px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 11px; padding: 0 12px; border: 0; background: transparent; color: rgba(243, 238, 229, .72); text-align: left; transition: color var(--ease), background var(--ease); }
.nav-item::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; background: transparent; }
.nav-item:hover { color: var(--c-cream); background: rgba(255, 255, 255, .055); }
.nav-item.active { color: var(--c-cream); background: rgba(168, 187, 175, .12); }
.nav-item.active::before { background: var(--c-gold); }
.nav-item svg { width: 18px; height: 18px; }
.nav-item span { font-size: 14px; font-weight: 650; }
.nav-item em { min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; border-radius: 12px; background: var(--c-gold); color: var(--c-deep); font-size: 10px; font-style: normal; font-weight: 800; }
.sidebar-foot { padding: 15px 14px 18px; border-top: 1px solid rgba(223, 230, 224, .14); }
.capacity { margin: 0 9px 16px; color: var(--c-sage); font-size: 11px; }
.capacity b { color: var(--c-cream); }
.capacity > div { height: 3px; margin-top: 8px; background: rgba(223, 230, 224, .13); }
.capacity i { display: block; width: 50%; height: 100%; background: var(--c-gold); }
.profile-button { width: 100%; min-height: 52px; display: grid; grid-template-columns: 36px 1fr 18px; align-items: center; gap: 9px; padding: 7px 8px; border: 0; background: transparent; color: var(--c-cream); text-align: left; }
.profile-button > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; background: var(--c-forest); color: var(--c-cream); font-size: 11px; font-weight: 800; }
.profile-button span:nth-child(2) { display: grid; min-width: 0; }
.profile-button strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-button small { color: var(--c-sage); font-size: 10px; }
.profile-button svg { width: 15px; height: 15px; }

.workspace { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: var(--demo); z-index: 40; height: var(--topbar); display: flex; align-items: center; gap: 24px; padding: 0 clamp(20px, 3vw, 48px); background: rgba(250, 247, 240, .95); border-bottom: 1px solid var(--c-line); backdrop-filter: blur(14px); }
.mobile-menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--c-line); background: var(--c-paper); }
.mobile-menu-button span { display: block; width: 18px; height: 1px; margin: 5px auto; background: var(--c-deep); }
.global-search { width: min(450px, 45vw); min-height: 44px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--c-line); background: var(--c-white); }
.global-search svg { width: 17px; height: 17px; color: var(--c-forest); }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--c-ink); font-size: 14px; }
.global-search input::placeholder { color: #7c857f; }
kbd { padding: 2px 6px; border: 1px solid var(--c-line); background: var(--c-cream); color: var(--c-muted); font: 10px/1.5 "Segoe UI", sans-serif; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.availability { display: flex; align-items: center; gap: 8px; margin-right: 8px; color: var(--c-forest); font-size: 12px; font-weight: 700; }
.availability i, .status-dot, .number-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-success); box-shadow: 0 0 0 4px rgba(57, 115, 87, .12); }
.icon-button { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-deep); }
.icon-button > span { position: absolute; right: -4px; top: -5px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--c-gold); color: var(--c-deep); font-size: 9px; font-weight: 900; }
.primary-button, .secondary-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid var(--c-deep); font-size: 13px; font-weight: 780; text-decoration: none; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.primary-button { background: var(--c-deep); color: var(--c-cream); }
.primary-button:hover { background: var(--c-forest-hover); border-color: var(--c-forest-hover); }
.secondary-button { background: transparent; color: var(--c-deep); }
.secondary-button:hover { background: var(--c-deep); color: var(--c-cream); }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; }

main { padding: 38px clamp(20px, 3vw, 48px) 70px; }
.view { display: none; max-width: 1540px; margin: 0 auto; animation: view-in 260ms ease both; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.page-head h1 { margin: 3px 0 4px; color: var(--c-deep); font-size: clamp(34px, 4.4vw, 66px); line-height: .96; letter-spacing: -.055em; }
.page-head p:not(.eyebrow) { max-width: 640px; margin: 0; color: var(--c-muted); font-size: 15px; }
.eyebrow, .panel-kicker { margin: 0; color: var(--c-forest); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .16em; }

.metric-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); border: 1px solid var(--c-line); background: var(--c-white); }
.metric { position: relative; min-height: 190px; padding: 22px; overflow: hidden; border-right: 1px solid var(--c-line); }
.metric:last-child { border-right: 0; }
.metric > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--c-forest); }
.metric > div:first-child span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.metric > div:first-child svg { width: 18px; height: 18px; }
.metric > strong { display: block; margin-top: 25px; color: var(--c-deep); font-size: clamp(34px, 3.2vw, 54px); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.metric p { margin: 9px 0 0; color: var(--c-muted); font-size: 12px; }
.metric p b { color: var(--c-deep); }
.metric > a { position: absolute; left: 22px; bottom: 18px; color: var(--c-forest); font-size: 11px; font-weight: 750; text-decoration: none; }
.metric > a span { margin-left: 5px; }
.metric-dark { background: var(--c-deep); color: var(--c-cream); }
.metric-dark > div:first-child, .metric-dark > strong, .metric-dark p, .metric-dark p b { color: var(--c-cream); }
.metric-dark p { opacity: .72; }
.signal-line { position: absolute; left: 22px; right: 22px; bottom: 21px; height: 1px; background: rgba(243, 238, 229, .28); }
.signal-line::after { content: ""; position: absolute; left: 38%; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-gold); }
.mini-bars { position: absolute; right: 22px; bottom: 20px; width: 82px; height: 42px; display: flex; align-items: flex-end; gap: 5px; }
.mini-bars i { flex: 1; background: var(--c-sage); }
.mini-bars i:nth-child(1) { height: 28%; }
.mini-bars i:nth-child(2) { height: 48%; }
.mini-bars i:nth-child(3) { height: 35%; }
.mini-bars i:nth-child(4) { height: 62%; }
.mini-bars i:nth-child(5) { height: 42%; }
.mini-bars i:nth-child(6) { height: 24%; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr); gap: 18px; margin-top: 18px; }
.panel { background: var(--c-white); border: 1px solid var(--c-line); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--c-line); }
.panel-head h2 { margin: 4px 0 0; color: var(--c-deep); font-size: 22px; line-height: 1.05; letter-spacing: -.035em; }
.panel-kicker i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--c-success); box-shadow: 0 0 0 4px rgba(57, 115, 87, .12); }
.text-button { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: var(--c-forest); font-size: 12px; font-weight: 800; }
.text-button svg { width: 17px; height: 17px; transition: transform var(--ease); }
.text-button:hover svg { transform: translateX(3px); }
.live-call { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 26px 24px 22px; }
.caller-mark { position: relative; width: 56px; height: 56px; display: grid; place-items: center; background: var(--c-deep); color: var(--c-cream); font-size: 15px; font-weight: 800; }
.caller-mark i { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border: 3px solid var(--c-white); border-radius: 50%; background: var(--c-gold); }
.caller-copy { display: grid; min-width: 0; }
.caller-copy small { color: var(--c-forest); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.caller-copy strong { margin-top: 4px; color: var(--c-deep); font-size: 20px; }
.caller-copy span { color: var(--c-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.call-time { display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 7px; text-align: right; }
.call-time i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-success); animation: pulse 1.8s ease infinite; }
.call-time strong { color: var(--c-deep); font-size: 22px; font-variant-numeric: tabular-nums; }
.call-time span { grid-column: 1 / -1; color: var(--c-muted); font-size: 11px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(57, 115, 87, .12); } }
.queue-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 24px; border: solid var(--c-line); border-width: 1px 0; }
.queue-row > span { display: grid; padding: 13px 15px; border-right: 1px solid var(--c-line); }
.queue-row > span:last-child { border-right: 0; }
.queue-row b { color: var(--c-deep); font-size: 18px; font-variant-numeric: tabular-nums; }
.queue-row small { color: var(--c-muted); font-size: 10px; }
.flow-visual { min-height: 92px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; padding: 18px 24px; color: var(--c-forest); font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.flow-visual i { position: relative; height: 1px; background: var(--c-sage); }
.flow-visual i::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-gold); }
.flow-source, .flow-destination { padding: 8px 10px; border: 1px solid var(--c-sage); }
.flow-core { padding: 12px; background: var(--c-deep); color: var(--c-cream); }
.online-count { color: var(--c-success); font-size: 11px; font-weight: 800; }
.agent-list { margin: 0; padding: 5px 24px 12px; list-style: none; }
.agent-list li { min-height: 68px; display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--c-line); }
.agent-list li:last-child { border-bottom: 0; }
.avatar { position: relative; width: 36px; height: 36px; display: grid; place-items: center; color: var(--c-deep); font-size: 10px; font-weight: 850; }
.avatar-a { background: #d9e3d9; }.avatar-b { background: #eadcc9; }.avatar-c { background: #d7dfe3; }.avatar-d { background: #e1d7d2; }
.avatar i { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border: 2px solid var(--c-white); border-radius: 50%; background: var(--c-success); }
.avatar-d i { background: var(--c-gold); }
.agent-list li > span:nth-child(2) { display: grid; }
.agent-list strong { color: var(--c-deep); font-size: 12px; }
.agent-list small { color: var(--c-muted); font-size: 10px; }
.agent-list time { color: var(--c-forest); font-size: 11px; font-variant-numeric: tabular-nums; }
.assign-button { min-height: 34px; padding: 0 9px; border: 1px solid var(--c-line); background: transparent; color: var(--c-forest); font-size: 10px; font-weight: 800; }
.assign-button:hover { border-color: var(--c-forest); background: var(--c-sage-light); }

.activity-panel { margin-top: 18px; }
.segmented { display: flex; border: 1px solid var(--c-line); }
.segmented button { min-height: 34px; padding: 0 12px; border: 0; border-right: 1px solid var(--c-line); background: transparent; color: var(--c-muted); font-size: 10px; font-weight: 800; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--c-deep); color: var(--c-cream); }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: middle; }
th { color: var(--c-forest); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
td { color: var(--c-muted); font-size: 12px; }
tbody tr { transition: background var(--ease); }
tbody tr:hover { background: var(--c-paper); }
tbody tr:last-child td { border-bottom: 0; }
.customer-cell { display: flex; align-items: center; gap: 10px; }
.customer-cell span { width: 32px; height: 32px; display: grid; place-items: center; background: var(--c-sage-light); color: var(--c-deep); font-size: 9px; font-weight: 850; }
.customer-cell div { display: grid; }
.customer-cell strong { color: var(--c-deep); font-size: 12px; }
.customer-cell small { font-size: 10px; }
.channel-label { display: inline-flex; align-items: center; gap: 6px; color: var(--c-deep); font-weight: 750; }
.channel-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-forest); }
.channel-label.message i { background: var(--c-gold); }
.state { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.state-success { background: #e1eee6; color: #22573d; }
.state-live { background: #f1e5ca; color: #72551f; }
.state-danger { background: #f2dfdb; color: #833c34; }
.state-neutral { background: var(--c-sage-light); color: var(--c-deep); }

.toolbar { min-height: 66px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.toolbar > label { width: min(420px, 100%); min-height: 44px; display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--c-line); background: var(--c-white); }
.toolbar > label svg { width: 16px; color: var(--c-forest); }
.toolbar input { width: 100%; border: 0; outline: 0; background: transparent; }
.filter-set { display: flex; }
.filter-button { min-height: 44px; padding: 0 13px; border: 1px solid var(--c-line); border-right: 0; background: var(--c-white); color: var(--c-muted); font-size: 11px; font-weight: 750; }
.filter-button:last-child { border-right: 1px solid var(--c-line); }
.filter-button.active { background: var(--c-deep); color: var(--c-cream); border-color: var(--c-deep); }
.toolbar > .secondary-button { margin-left: auto; }
.result-count { margin-left: auto; color: var(--c-muted); font-size: 11px; }
.direction { display: inline-flex; align-items: center; gap: 5px; color: var(--c-deep); font-weight: 700; }
.direction::before { content: "↘"; color: var(--c-forest); }
.direction.out::before { content: "↗"; color: var(--c-gold); }

.customer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.customer-card { min-height: 250px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--c-line); background: var(--c-white); text-align: left; transition: border-color var(--ease), transform var(--ease); }
.customer-card:hover { border-color: var(--c-forest); transform: translateY(-2px); }
.customer-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.customer-card .company-mark { width: 45px; height: 45px; display: grid; place-items: center; background: var(--c-deep); color: var(--c-cream); font-size: 12px; font-weight: 850; }
.customer-card .follow-state { color: var(--c-forest); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.customer-card h2 { margin: 20px 0 2px; color: var(--c-deep); font-size: 21px; letter-spacing: -.035em; }
.customer-card > p { margin: 0; color: var(--c-muted); font-size: 12px; }
.customer-card footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--c-line); }
.customer-card footer span { display: grid; color: var(--c-muted); font-size: 10px; }
.customer-card footer b { color: var(--c-deep); font-size: 11px; }
.customer-card footer svg { color: var(--c-forest); }

.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--c-line); background: var(--c-white); }
.channel-card { min-height: 310px; display: flex; flex-direction: column; padding: 25px; border-right: 1px solid var(--c-line); }
.channel-card:last-child { border-right: 0; }
.channel-card header { display: flex; align-items: center; justify-content: space-between; color: var(--c-forest); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.channel-card > strong { margin-top: 38px; color: var(--c-deep); font-size: 54px; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.channel-card > p { margin: 8px 0 34px; color: var(--c-muted); font-size: 12px; }
.channel-card > div { display: flex; justify-content: space-between; color: var(--c-muted); font-size: 10px; }
.channel-card > div b { color: var(--c-deep); }
.channel-card progress { width: 100%; height: 4px; margin-top: 9px; border: 0; appearance: none; }
.channel-card progress::-webkit-progress-bar { background: var(--c-sage-light); }
.channel-card progress::-webkit-progress-value { background: var(--c-forest); }
.channel-card progress::-moz-progress-bar { background: var(--c-forest); }
.channel-card > button { min-height: 42px; margin-top: auto; padding: 0; border: 0; border-top: 1px solid var(--c-line); background: transparent; color: var(--c-forest); font-size: 11px; font-weight: 800; text-align: left; }
.channel-dark { background: var(--c-deep); color: var(--c-cream); border-color: var(--c-deep); }
.channel-dark header, .channel-dark > strong, .channel-dark > div b, .channel-dark > button { color: var(--c-cream); }
.channel-dark > p, .channel-dark > div { color: var(--c-sage); }
.channel-dark progress::-webkit-progress-bar { background: rgba(223, 230, 224, .15); }
.channel-dark progress::-webkit-progress-value { background: var(--c-gold); }
.channel-dark progress::-moz-progress-bar { background: var(--c-gold); }
.channel-dark > button { border-color: rgba(223, 230, 224, .16); }
.campaign-panel { margin-top: 18px; }
.campaign-list article { min-height: 75px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 12px 24px; border-bottom: 1px solid var(--c-line); }
.campaign-list article:last-child { border-bottom: 0; }
.channel-tag { width: 38px; height: 38px; display: grid; place-items: center; background: var(--c-sage-light); color: var(--c-deep); font-size: 9px; font-weight: 900; }
.campaign-list article > div { display: grid; }
.campaign-list strong { color: var(--c-deep); font-size: 12px; }
.campaign-list small { color: var(--c-muted); font-size: 10px; }

.number-list { display: grid; gap: 12px; }
.number-card { min-height: 122px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 26px; padding: 20px 24px; border: 1px solid var(--c-line); background: var(--c-white); }
.number-card h2 { margin: 2px 0; color: var(--c-deep); font-size: 27px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.number-card p { margin: 0; color: var(--c-muted); font-size: 11px; }
.number-type { color: var(--c-forest); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.number-status { display: flex; align-items: center; gap: 8px; color: var(--c-success); font-size: 11px; font-weight: 800; }
.number-card button { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--c-line); background: transparent; color: var(--c-deep); font-size: 10px; font-weight: 800; }
.number-card button svg { width: 15px; }
.primary-number { background: var(--c-deep); }
.primary-number h2, .primary-number p, .primary-number button { color: var(--c-cream); }
.primary-number .number-type { color: var(--c-sage); }
.primary-number button { border-color: rgba(243, 238, 229, .25); }

.workday-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--c-line); background: var(--c-white); overflow: hidden; }
.workday-strip > span { min-height: 82px; display: flex; flex-direction: column; justify-content: center; padding: 13px 20px; border-right: 1px solid var(--c-line); color: var(--c-muted); font-size: 10px; }
.workday-strip > span:nth-child(4) { border-right: 0; }
.workday-strip b { color: var(--c-deep); font-size: 23px; line-height: 1.15; }
.workday-strip > i { position: absolute; inset: auto 0 0; height: 3px; background: var(--c-sage-light); }
.workday-strip > i::before { content: ""; display: block; width: 42%; height: 100%; background: var(--c-gold); }
.task-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .65fr); gap: 18px; }
.task-list { padding: 0 24px; }
.task-item { min-height: 82px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--c-line); }
.task-item:last-child { border-bottom: 0; }
.task-check { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--c-sage); background: transparent; color: transparent; }
.task-check svg { width: 15px; height: 15px; }
.task-item.done .task-check { background: var(--c-deep); border-color: var(--c-deep); color: var(--c-cream); }
.task-item.done .task-copy strong { color: var(--c-muted); text-decoration: line-through; }
.task-copy { display: grid; min-width: 0; }
.task-copy strong { color: var(--c-deep); font-size: 13px; }
.task-copy small { overflow: hidden; color: var(--c-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-meta { display: grid; justify-items: end; gap: 4px; }
.task-meta time { color: var(--c-deep); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.task-meta span { color: var(--c-forest); font-size: 9px; font-weight: 800; }
.task-item.overdue .task-meta time { color: var(--c-danger); }
.day-agenda ol { margin: 0; padding: 6px 24px 0; list-style: none; }
.day-agenda li { min-height: 84px; display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--c-line); }
.day-agenda time { color: var(--c-gold); font-size: 13px; font-weight: 850; font-variant-numeric: tabular-nums; }
.day-agenda li span { display: grid; }
.day-agenda li b { color: var(--c-deep); font-size: 12px; }
.day-agenda li small { color: var(--c-muted); font-size: 10px; }
.agenda-button { width: calc(100% - 48px); margin: 18px 24px 22px; }

.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 18px; }
.calendar-head { min-height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--c-line); }
.calendar-head h2 { margin: 0; color: var(--c-deep); font-size: 24px; letter-spacing: -.04em; }
.calendar-head .icon-button span { font-size: 18px; }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.weekday-row { border-bottom: 1px solid var(--c-line); }
.weekday-row span { min-height: 42px; display: grid; place-items: center; color: var(--c-forest); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.calendar-grid button { position: relative; min-height: 84px; border: 0; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: transparent; color: var(--c-deep); font-size: 12px; font-weight: 750; }
.calendar-grid button:nth-child(7n) { border-right: 0; }
.calendar-grid button:nth-last-child(-n+7) { border-bottom: 0; }
.calendar-grid button:hover { background: var(--c-sage-light); }
.calendar-grid .muted-day { color: #929991; }
.calendar-grid .today { background: var(--c-deep); color: var(--c-cream); }
.calendar-grid .has-event i { position: absolute; left: 50%; bottom: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold); transform: translateX(-50%); }
.calendar-agenda .agenda-event { min-height: 92px; display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 12px; margin: 0 24px; border-bottom: 1px solid var(--c-line); }
.agenda-event time { color: var(--c-gold); font-size: 13px; font-weight: 850; }
.agenda-event span { display: grid; }
.agenda-event b { color: var(--c-deep); font-size: 12px; }
.agenda-event small { color: var(--c-muted); font-size: 10px; }

.pipeline-summary, .quote-summary, .ticket-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--c-line); background: var(--c-white); }
.pipeline-summary span, .quote-summary article, .ticket-summary article { min-height: 96px; display: flex; flex-direction: column; justify-content: center; padding: 15px 20px; border-right: 1px solid var(--c-line); }
.pipeline-summary span:last-child, .quote-summary article:last-child, .ticket-summary article:last-child { border-right: 0; }
.pipeline-summary small, .quote-summary span, .ticket-summary span { color: var(--c-muted); font-size: 10px; }
.pipeline-summary b, .quote-summary strong, .ticket-summary strong { color: var(--c-deep); font-size: 24px; letter-spacing: -.035em; }
.quote-summary small { color: var(--c-forest); font-size: 11px; }
.pipeline-board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.pipeline-column { min-height: 510px; border: 1px solid var(--c-line); background: rgba(250, 247, 240, .55); }
.pipeline-column header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; border-bottom: 1px solid var(--c-line); }
.pipeline-column header span { display: grid; }
.pipeline-column header strong { color: var(--c-deep); font-size: 12px; }
.pipeline-column header small { color: var(--c-muted); font-size: 9px; }
.pipeline-column header b { width: 26px; height: 26px; display: grid; place-items: center; background: var(--c-sage-light); color: var(--c-deep); font-size: 10px; }
.deal-list { display: grid; gap: 8px; padding: 8px; }
.deal-card { min-height: 145px; display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--c-line); background: var(--c-white); text-align: left; }
.deal-card:hover { border-color: var(--c-forest); }
.deal-card > small { color: var(--c-forest); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.deal-card strong { margin-top: 9px; color: var(--c-deep); font-size: 14px; }
.deal-card p { margin: 2px 0 12px; color: var(--c-muted); font-size: 10px; }
.deal-card footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--c-line); }
.deal-card footer span { display: grid; color: var(--c-muted); font-size: 9px; }
.deal-card footer b { color: var(--c-deep); font-size: 12px; }
.deal-card footer em { color: var(--c-gold); font-size: 10px; font-style: normal; font-weight: 850; }
.row-action { min-height: 36px; padding: 0 8px; border: 0; background: transparent; color: var(--c-forest); font-size: 10px; font-weight: 850; white-space: nowrap; }
.priority { color: var(--c-deep); font-size: 10px; }
.priority::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--c-gold); }
.priority-high { color: var(--c-danger); }
.priority-high::before { background: var(--c-danger); }
.priority-low { color: var(--c-muted); }
.priority-low::before { background: var(--c-sage); }

.report-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.report-toolbar > span { color: var(--c-muted); font-size: 10px; }
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--c-line); background: var(--c-white); }
.report-kpis article { min-height: 124px; display: flex; flex-direction: column; justify-content: center; padding: 20px; border-right: 1px solid var(--c-line); }
.report-kpis article:last-child { border-right: 0; }
.report-kpis span { color: var(--c-muted); font-size: 10px; }
.report-kpis strong { margin: 5px 0 3px; color: var(--c-deep); font-size: clamp(25px, 2.4vw, 36px); line-height: 1; letter-spacing: -.045em; }
.report-kpis small { color: var(--c-muted); font-size: 9px; }
.report-kpis small b { color: var(--c-success); }
.report-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.report-card { min-width: 0; overflow: hidden; }
.report-card-wide { grid-column: 1 / -1; }
.chart-total { color: var(--c-success); font-size: 12px; white-space: nowrap; }
.chart-legend { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 13px; color: var(--c-muted); font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i, .donut-legend i { width: 10px; height: 3px; display: inline-block; background: var(--c-forest); }
.chart-legend .legend-answered { background: var(--c-gold); }
.chart-legend .legend-performance { background: var(--c-forest); }
.chart-legend .legend-target { width: 2px; height: 12px; background: var(--c-gold); }
.line-chart-wrap { padding: 22px 24px 17px; }
.line-chart { width: 100%; height: 250px; display: block; overflow: visible; }
.line-chart path { fill: none; vector-effect: non-scaling-stroke; }
.chart-grid-line { stroke: var(--c-line); stroke-width: 1; }
.trend-incoming { stroke: var(--c-forest); stroke-width: 3; }
.trend-answered { stroke: var(--c-gold); stroke-width: 3; stroke-dasharray: 7 5; }
.trend-points { fill: var(--c-white); stroke: var(--c-forest); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-axis { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 1.5% 0 3.5%; color: var(--c-muted); font-size: 9px; text-align: center; }
.donut-layout { min-height: 298px; display: grid; grid-template-columns: minmax(150px, .9fr) minmax(145px, 1.1fr); align-items: center; gap: 22px; padding: 28px 30px; }
.donut-chart { position: relative; width: 180px; max-width: 100%; aspect-ratio: 1; justify-self: center; }
.donut-chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-chart circle { fill: none; stroke-width: 18; transform-origin: center; }
.donut-base { stroke: var(--c-sage-light); }
.donut-phone { stroke: var(--c-deep); stroke-dasharray: 160 204; }
.donut-sms { stroke: var(--c-forest); stroke-dasharray: 113 251; stroke-dashoffset: -160; }
.donut-wa { stroke: var(--c-gold); stroke-dasharray: 58 306; stroke-dashoffset: -273; }
.donut-otp { stroke: var(--c-sage); stroke-dasharray: 33 331; stroke-dashoffset: -331; }
.donut-chart > span, .sla-ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-chart strong, .sla-ring strong { color: var(--c-deep); font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.donut-chart small, .sla-ring small { margin-top: 5px; color: var(--c-muted); font-size: 9px; }
.donut-legend { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.donut-legend li { min-height: 47px; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; border-bottom: 1px solid var(--c-line); color: var(--c-muted); font-size: 10px; }
.donut-legend li:last-child { border-bottom: 0; }
.donut-legend b { color: var(--c-deep); font-size: 12px; }
.donut-legend .legend-phone { background: var(--c-deep); }
.donut-legend .legend-sms { background: var(--c-forest); }
.donut-legend .legend-wa { background: var(--c-gold); }
.donut-legend .legend-otp { background: var(--c-sage); }
.hourly-chart { height: 298px; display: grid; grid-template-columns: repeat(10, minmax(12px, 1fr)); align-items: end; gap: 8px; padding: 30px 24px 20px; }
.hourly-chart > div { height: 100%; display: grid; grid-template-rows: 1fr auto; align-items: end; gap: 9px; text-align: center; }
.hourly-chart i { width: 100%; min-height: 10px; display: block; background: var(--c-forest); }
.hourly-chart > div:nth-child(1) i { height: 24%; }
.hourly-chart > div:nth-child(2) i { height: 47%; }
.hourly-chart > div:nth-child(3) i { height: 63%; }
.hourly-chart > div:nth-child(4) i { height: 72%; }
.hourly-chart > div:nth-child(5) i { height: 52%; }
.hourly-chart > div:nth-child(6) i { height: 76%; }
.hourly-chart > div:nth-child(7) i { height: 94%; }
.hourly-chart > div:nth-child(8) i { height: 83%; }
.hourly-chart > div:nth-child(9) i { height: 66%; }
.hourly-chart > div:nth-child(10) i { height: 41%; }
.hourly-chart .peak i { background: var(--c-gold); }
.hourly-chart span { color: var(--c-muted); font-size: 9px; }
.funnel-chart { min-height: 298px; display: grid; align-content: center; gap: 19px; margin: 0; padding: 27px 30px; list-style: none; }
.funnel-chart li { display: grid; grid-template-columns: 105px minmax(80px, 1fr) 42px; align-items: center; gap: 12px; }
.funnel-chart span { display: grid; }
.funnel-chart b { color: var(--c-deep); font-size: 11px; }
.funnel-chart small { color: var(--c-muted); font-size: 9px; }
.funnel-chart i { height: 13px; display: block; background: var(--c-sage-light); }
.funnel-chart i::before { content: ""; height: 100%; display: block; background: var(--c-forest); }
.funnel-chart li:nth-child(1) i::before { width: 100%; }
.funnel-chart li:nth-child(2) i::before { width: 69%; }
.funnel-chart li:nth-child(3) i::before { width: 45%; }
.funnel-chart li:nth-child(4) i::before { width: 31%; background: var(--c-gold); }
.funnel-chart strong { color: var(--c-deep); font-size: 11px; text-align: right; }
.sla-layout { min-height: 298px; display: grid; grid-template-columns: minmax(160px, .8fr) minmax(170px, 1.2fr); align-items: center; gap: 22px; padding: 25px 30px; }
.sla-ring { position: relative; width: 180px; max-width: 100%; aspect-ratio: 1; justify-self: center; }
.sla-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sla-ring circle { fill: none; stroke-width: 16; }
.sla-base { stroke: var(--c-sage-light); }
.sla-progress { stroke: var(--c-gold); stroke-dasharray: 314 346; stroke-linecap: butt; }
.sla-copy { display: grid; }
.sla-copy p { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; border-bottom: 1px solid var(--c-line); color: var(--c-muted); font-size: 10px; }
.sla-copy p:last-child { border-bottom: 0; }
.sla-copy b { color: var(--c-deep); font-size: 14px; }
.bullet-chart { display: grid; gap: 0; padding: 12px 24px 18px; }
.bullet-chart > div { min-height: 66px; display: grid; grid-template-columns: 140px minmax(100px, 1fr) 48px; align-items: center; gap: 18px; border-bottom: 1px solid var(--c-line); }
.bullet-chart > div:last-child { border-bottom: 0; }
.bullet-chart span { display: grid; }
.bullet-chart b { color: var(--c-deep); font-size: 11px; }
.bullet-chart small { color: var(--c-muted); font-size: 9px; }
.bullet-chart > div > i { position: relative; height: 12px; display: block; background: var(--c-sage-light); }
.bullet-chart em { height: 100%; display: block; background: var(--c-forest); }
.bullet-chart .score-a { width: 96%; }
.bullet-chart .score-b { width: 93%; }
.bullet-chart .score-c { width: 89%; }
.bullet-chart .score-d { width: 86%; }
.bullet-chart u { position: absolute; top: -4px; bottom: -4px; left: 90%; width: 2px; background: var(--c-gold); text-decoration: none; }
.bullet-chart strong { color: var(--c-deep); font-size: 13px; text-align: right; }

.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 18px; }
.settings-layout > nav { display: flex; flex-direction: column; border: 1px solid var(--c-line); background: var(--c-white); align-self: start; }
.settings-layout > nav button { min-height: 50px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--c-line); background: transparent; color: var(--c-muted); text-align: left; font-size: 12px; font-weight: 750; }
.settings-layout > nav button:last-child { border-bottom: 0; }
.settings-layout > nav button.active { background: var(--c-deep); color: var(--c-cream); }
.settings-panel { padding: 26px; }
.settings-panel h2 { margin: 0 0 24px; color: var(--c-deep); font-size: 25px; letter-spacing: -.04em; }
.settings-panel > label:not(.switch-row) { display: grid; gap: 7px; margin-bottom: 18px; color: var(--c-forest); font-size: 11px; font-weight: 750; }
.settings-panel input[type="text"], .settings-panel select { min-height: 46px; padding: 0 12px; border: 1px solid var(--c-line); background: var(--c-paper); color: var(--c-deep); }
.switch-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--c-line); }
.switch-row > span { display: grid; }
.switch-row b { color: var(--c-deep); font-size: 12px; }
.switch-row small { color: var(--c-muted); font-size: 10px; }
.switch-row input { width: 42px; height: 22px; accent-color: var(--c-forest); }
.settings-panel > .primary-button { margin-top: 22px; }

.detail-drawer { position: fixed; z-index: 1010; inset: var(--demo) 0 0 auto; width: min(460px, 100%); padding: 0 28px 40px; overflow-y: auto; background: var(--c-paper); transform: translateX(102%); transition: transform 240ms ease; }
.detail-drawer.open { transform: none; }
.drawer-head { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--c-line); }
.drawer-head p, .dialog-head p { margin: 0; color: var(--c-forest); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
.drawer-head h2, .dialog-head h2 { margin: 3px 0 0; color: var(--c-deep); font-size: 25px; letter-spacing: -.04em; }
.drawer-hero { padding: 26px 0; }
.drawer-hero > span { width: 56px; height: 56px; display: grid; place-items: center; background: var(--c-deep); color: var(--c-cream); font-weight: 850; }
.drawer-hero h3 { margin: 18px 0 2px; color: var(--c-deep); font-size: 28px; letter-spacing: -.045em; }
.drawer-hero p { margin: 0; color: var(--c-muted); }
.drawer-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 28px; }
.drawer-section { padding: 20px 0; border-top: 1px solid var(--c-line); }
.drawer-section h4 { margin: 0 0 14px; color: var(--c-forest); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.detail-list { display: grid; gap: 11px; }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.detail-list span { color: var(--c-muted); }
.detail-list b { color: var(--c-deep); text-align: right; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 12px 1fr; gap: 11px; padding-bottom: 17px; }
.timeline li::before { content: ""; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--c-gold); }
.timeline li::after { content: ""; position: absolute; left: 3px; top: 13px; bottom: 0; width: 1px; background: var(--c-line); }
.timeline li:last-child::after { display: none; }
.timeline span { display: grid; color: var(--c-deep); font-size: 11px; }
.timeline small { color: var(--c-muted); }
.scrim { position: fixed; z-index: 1005; inset: 0; background: rgba(27, 42, 36, .52); }

dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; background: var(--c-paper); color: var(--c-ink); }
dialog::backdrop { background: rgba(27, 42, 36, .6); }
dialog form { padding: 0 28px 28px; }
.dialog-head { min-height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--c-line); }
.dialog-note { margin: 20px 0; padding: 11px 13px; border-left: 3px solid var(--c-gold); background: var(--c-white); color: var(--c-muted); font-size: 11px; }
dialog label { display: grid; gap: 6px; margin-bottom: 16px; color: var(--c-forest); font-size: 11px; font-weight: 750; }
dialog input, dialog select { width: 100%; min-height: 47px; padding: 0 12px; border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-deep); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.quick-options { display: grid; gap: 9px; padding: 22px 0 5px; }
.quick-options label { min-height: 52px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 13px; border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-deep); }
.quick-options input { width: auto; min-height: 0; accent-color: var(--c-forest); }
.quick-business-form { display: grid; gap: 2px; padding: 22px 0 4px; }
.empty-copy { margin: 0; padding: 28px 0; color: var(--c-muted); font-size: 12px; }
.toast { position: fixed; z-index: 2000; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 18px; background: var(--c-deep); color: var(--c-cream); font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity var(--ease), transform var(--ease); }
.toast.show { opacity: 1; transform: none; }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  :root { --sidebar: 220px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
  .overview-grid { grid-template-columns: 1fr; }
  .team-panel { display: none; }
  .customer-grid { grid-template-columns: repeat(2, 1fr); }
  .availability { display: none; }
}

@media (max-width: 860px) {
  :root { --sidebar: 250px; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-102%); transition: transform 240ms ease; box-shadow: 18px 0 42px rgba(27, 42, 36, .24); }
  .sidebar.open { transform: none; }
  .workspace { min-width: 0; }
  .topbar { padding: 0 18px; }
  .mobile-menu-button { display: block; }
  .global-search { width: min(390px, 52vw); }
  .topbar .primary-button { width: 44px; padding: 0; font-size: 0; }
  main { padding: 28px 18px 90px; }
  .report-dashboard { grid-template-columns: 1fr; }
  .report-card-wide { grid-column: auto; }
  .task-layout, .calendar-layout { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-layout > nav { flex-direction: row; overflow-x: auto; }
  .settings-layout > nav button { min-width: 130px; border-right: 1px solid var(--c-line); border-bottom: 0; }
}

@media (max-width: 620px) {
  :root { --demo: 42px; --topbar: 64px; }
  .demo-bar { justify-content: flex-start; gap: 8px; padding: 0 12px; font-size: 9px; }
  .demo-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .demo-bar span strong { display: none; }
  .demo-bar a { margin-left: auto; white-space: nowrap; }
  .topbar { gap: 10px; padding: 0 12px; }
  .global-search { flex: 1; width: auto; min-height: 42px; }
  .global-search kbd, .global-search input::placeholder { font-size: 0; }
  .global-search input::placeholder { color: transparent; }
  .topbar-actions .icon-button { display: none; }
  main { padding: 24px 12px 96px; }
  .page-head { align-items: flex-start; margin-bottom: 23px; }
  .page-head h1 { font-size: 40px; }
  .page-head > button { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 170px; padding: 17px; }
  .metric > strong { margin-top: 21px; font-size: 36px; }
  .metric > a { left: 17px; right: 10px; bottom: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .signal-line { left: 17px; right: 17px; }
  .mini-bars { display: none; }
  .panel-head { padding: 18px; }
  .live-call { grid-template-columns: 48px 1fr; gap: 12px; padding: 21px 18px 17px; }
  .caller-mark { width: 46px; height: 46px; }
  .call-time { grid-column: 1 / -1; display: flex; justify-content: flex-end; border-top: 1px solid var(--c-line); padding-top: 12px; }
  .call-time span { margin-left: 4px; }
  .queue-row { margin: 0 18px; }
  .queue-row > span { padding: 11px 9px; }
  .queue-row b { font-size: 15px; }
  .flow-visual { padding: 15px 18px; }
  .activity-panel { display: none; }
  .workday-strip, .pipeline-summary, .quote-summary, .ticket-summary { grid-template-columns: repeat(2, 1fr); }
  .workday-strip > span, .pipeline-summary span, .quote-summary article, .ticket-summary article { min-height: 74px; padding: 11px 14px; }
  .workday-strip > span:nth-child(2), .quote-summary article:nth-child(2), .ticket-summary article:nth-child(2), .pipeline-summary span:nth-child(2) { border-right: 0; }
  .workday-strip > span:nth-child(-n+2), .quote-summary article:nth-child(-n+2), .ticket-summary article:nth-child(-n+2), .pipeline-summary span:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
  .task-panel .panel-head { display: grid; }
  .task-list { padding: 0 16px; }
  .task-item { grid-template-columns: 30px minmax(0, 1fr); padding: 11px 0; }
  .task-meta { grid-column: 2; display: flex; justify-content: flex-start; gap: 8px; }
  .calendar-grid button { min-height: 54px; }
  .calendar-grid .has-event i { bottom: 8px; }
  .pipeline-board { grid-template-columns: repeat(4, minmax(82vw, 1fr)); margin-right: -12px; }
  .pipeline-column { min-height: 410px; }
  .toolbar { align-items: stretch; flex-wrap: wrap; }
  .toolbar > label { width: 100%; }
  .filter-set { width: 100%; overflow-x: auto; }
  .filter-button { flex: 1; white-space: nowrap; }
  .toolbar > .secondary-button { display: none; }
  .result-count { width: 100%; margin-left: 0; }
  .customer-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .channel-card { min-height: 275px; border-right: 0; border-bottom: 1px solid var(--c-line); }
  .channel-card:last-child { border-bottom: 0; }
  .campaign-list article { grid-template-columns: 38px 1fr; padding: 14px 16px; }
  .campaign-list .state { grid-column: 2; justify-self: start; }
  .number-card { grid-template-columns: 1fr auto; gap: 12px; padding: 18px; }
  .number-card h2 { font-size: 22px; }
  .number-card button { grid-column: 1 / -1; justify-content: center; }
  .report-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 16px; }
  .report-kpis { grid-template-columns: repeat(2, 1fr); }
  .report-kpis article { min-height: 105px; padding: 14px; }
  .report-kpis article:nth-child(2) { border-right: 0; }
  .report-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
  .report-kpis strong { font-size: 28px; }
  .chart-legend { justify-content: flex-start; }
  .report-card .panel-head { display: grid; }
  .line-chart-wrap { padding: 14px 12px 15px; }
  .line-chart { height: 190px; }
  .chart-axis { padding-left: 2%; font-size: 8px; }
  .donut-layout, .sla-layout { min-height: 0; grid-template-columns: 1fr; padding: 22px 18px; }
  .donut-chart, .sla-ring { width: 160px; }
  .hourly-chart { height: 260px; gap: 4px; padding: 24px 14px 17px; }
  .funnel-chart { min-height: 280px; padding: 22px 18px; }
  .funnel-chart li { grid-template-columns: 88px minmax(64px, 1fr) 38px; gap: 8px; }
  .bullet-chart { padding: 8px 18px 14px; }
  .bullet-chart > div { grid-template-columns: 90px minmax(70px, 1fr) 38px; gap: 9px; }
  .settings-layout > nav { margin: 0 -12px; border-left: 0; border-right: 0; }
  .settings-panel { padding: 20px 16px; }
  .switch-row { gap: 14px; }
  .mobile-nav { position: fixed; z-index: 60; inset: auto 0 0; min-height: 68px; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--c-line); background: rgba(250, 247, 240, .97); backdrop-filter: blur(12px); }
  .mobile-nav button { min-height: 66px; display: grid; place-items: center; align-content: center; gap: 4px; border: 0; background: transparent; color: var(--c-muted); font-size: 9px; }
  .mobile-nav button.active { color: var(--c-deep); }
  .mobile-nav button.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 2px; background: var(--c-gold); }
  .mobile-nav svg { width: 18px; height: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  dialog form { padding: 0 18px 20px; }
  .toast { left: 12px; right: 12px; bottom: 82px; max-width: none; }
}

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