:root {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #182439;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #121d32;
  --muted: #8490a3;
  --line: #e9edf3;
  --blue: #3568e9;
  --green: #1eaa79;
  --amber: #e3a234;
  --red: #e55a67;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: #f5f7fb; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #91adff; outline-offset: 2px; }
button:disabled { cursor: not-allowed; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 232px; flex: 0 0 232px; display: flex; flex-direction: column; padding: 25px 14px 14px; color: #aeb9cb; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 11px 35px; color: #fff; text-decoration: none; }
.brand-logo { display: block; width: 132px; height: auto; }
.brand-icon { display: none; width: 34px; height: 34px; object-fit: contain; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: #3165ec; color: #fff; }
.brand-mark svg { width: 27px; height: 27px; stroke-width: 2.3; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-family: "Segoe UI", system-ui, sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -.7px; }
.brand-copy small { color: #8492aa; font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.workspace-label { padding: 0 12px 10px; color: #738199; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.nav-list { display: grid; gap: 5px; }
.nav-item { position: relative; height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #aeb9cb; text-align: left; font-size: 12px; cursor: pointer; transition: background .18s, color .18s; }
.nav-item svg { width: 17px; height: 17px; color: #8c9bb2; }
.nav-item:hover { background: #1a2942; color: #fff; }
.nav-item.active { background: #213253; color: #fff; font-weight: 600; }
.nav-item.active::before { position: absolute; left: -14px; top: 10px; width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: #5791ff; content: ""; }
.nav-item.active svg { color: #78a6ff; }
.nav-count { min-width: 20px; height: 19px; display: grid; place-items: center; margin-left: auto; border-radius: 6px; background: #293851; color: #c4cede; font-size: 10px; }
.nav-count.warning { background: #493d32; color: #ffc86b; }
.sidebar-bottom { margin-top: auto; }
.status-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #30bd8a; box-shadow: 0 0 0 3px #244642; }
.profile { width: 100%; display: flex; align-items: center; gap: 9px; padding: 12px 7px 2px; border: 0; border-top: 1px solid #2a374b; background: transparent; text-align: left; cursor: pointer; }
.avatar, .customer-avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #dce7ff; color: #3b63c9; font-weight: 700; }
.avatar { width: 32px; height: 32px; font-size: 10px; }
.profile-copy { display: grid; gap: 3px; }
.profile-copy strong { color: #ecf1f9; font-size: 10px; font-weight: 600; }
.profile-copy small { color: #8491a7; font-size: 9px; }
.profile-menu { margin-left: auto; color: #91a0b4; font-size: 18px; letter-spacing: 2px; }
.profile-wrap { position: relative; }
.profile-popover { position: absolute; z-index: 50; left: 3px; right: 3px; bottom: calc(100% + 6px); padding: 5px; border: 1px solid #2b394f; border-radius: 8px; background: #1a2942; box-shadow: 0 10px 24px rgb(0 0 0 / .35); }
.profile-popover-item { width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: #e0e8f4; font-size: 11px; text-align: left; cursor: pointer; }
.profile-popover-item:hover { background: #213253; }
.access-page { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 24px; background: var(--navy); }
.access-card { width: min(360px, 100%); display: grid; gap: 14px; padding: 28px 26px; border: 1px solid #2b394f; border-radius: 10px; background: #182640; color: #aeb9cb; }
.access-brand { display: grid; justify-items: center; gap: 4px; }
.access-brand img { width: 150px; height: auto; }
.access-brand small { color: #738199; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.access-card h1 { margin: 6px 0 0; color: #ecf1f9; font-size: 15px; font-weight: 600; text-align: center; }
.access-field { display: grid; gap: 6px; font-size: 10px; color: #8c9bb2; }
.access-field input { height: 40px; padding: 0 11px; border: 1px solid #2f3e58; border-radius: 7px; background: #121d32; color: #ecf1f9; }
.access-field input:focus-visible { outline-color: #5791ff; }
.access-error { min-height: 18px; margin: 0; color: #ff9aa4; font-size: 10px; text-align: center; }
.access-submit { height: 40px; border: 0; border-radius: 7px; background: #3165ec; color: #fff; font-weight: 600; cursor: pointer; }
.access-submit:disabled { opacity: .6; cursor: not-allowed; }

.main-content { min-width: 0; flex: 1; }
.topbar { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid #ebeff5; background: rgba(255,255,255,.9); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #9aa4b4; font-size: 11px; }
.breadcrumbs strong { color: #354157; font-weight: 600; }
.crumb-separator { color: #ccd2dc; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.system-status { display: flex; align-items: center; gap: 8px; color: #68758a; font-size: 10px; }
.system-status .status-dot { width: 6px; height: 6px; margin: 0; box-shadow: none; }
.icon-button, .help-button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #e9edf3; border-radius: 7px; background: #fff; color: #6d7a8f; cursor: pointer; transition: background .15s, color .15s; }
.icon-button:hover, .help-button:hover { background: #f2f5fb; color: var(--blue); }
.icon-button svg { width: 15px; height: 15px; }
.help-button { width: 21px; height: 21px; border-radius: 50%; font-size: 11px; font-weight: 600; }
.page-content { max-width: 1440px; margin: 0 auto; padding: 29px 36px 20px; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.eyebrow, .section-kicker { color: #8c97a9; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.live-indicator { width: 6px; height: 6px; border-radius: 50%; background: #37b889; box-shadow: 0 0 0 3px #ddf4eb; }
.eyebrow-divider { color: #c5cbd5; }
h1, h2, p { margin: 0; }
h1 { margin-top: 9px; color: #1a2639; font-family: "Segoe UI", system-ui, sans-serif; font-size: clamp(23px, 2.3vw, 30px); font-weight: 700; letter-spacing: -1.1px; }
.wave { display: inline-block; color: #edae48; font-size: 21px; vertical-align: 2px; }
.welcome-subtitle { margin-top: 6px; color: #8a95a6; font-size: 12px; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 15px; height: 15px; }
.button-primary { background: var(--blue); color: white; box-shadow: 0 3px 8px #3568e92b; }
.button-primary:hover { background: #285add; box-shadow: 0 5px 12px #3568e944; }
.button-outline { border-color: #e3e8ef; background: white; color: #516075; }
.button-outline:hover { background: #f7f9fc; }
.button-small { min-height: 32px; padding: 0 11px; font-size: 10px; }
.button-small svg { width: 14px; height: 14px; }
.button-icon-only { width: 32px; min-height: 32px; padding: 0; border-color: #e3e8ef; background: white; color: #68768b; }
.button-icon-only svg { width: 15px; height: 15px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.metric-card, .panel { border: 1px solid #e9edf3; border-radius: 9px; background: #fff; box-shadow: 0 2px 5px #1c2b4205; }
.metric-card { min-height: 123px; padding: 15px 16px 12px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-label { color: #778397; font-size: 10px; font-weight: 500; }
.metric-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; }
.metric-icon svg { width: 15px; height: 15px; }
.icon-blue { background: #edf2ff; color: #5076dd; }
.icon-amber { background: #fff6e6; color: #d89a2e; }
.icon-green { background: #e8f8f1; color: #22a679; }
.icon-red { background: #fff0f0; color: #e2616d; }
.metric-value { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: #1d2a3e; font-family: "Segoe UI", system-ui, sans-serif; font-size: 25px; font-weight: 700; letter-spacing: -1px; }
.metric-change { display: flex; align-items: center; gap: 4px; font-family: "DM Sans", sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0; }
.metric-change span { color: #9aa4b4; font-size: 9px; font-weight: 400; }
.positive { color: #23a979; }
.warning-text { color: #d99229; }
.neutral { color: #718098; }
.metric-foot { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: #97a1b0; font-size: 9px; }
.metric-foot strong { color: #68758a; font-weight: 600; }
.metric-bar { width: 43px; height: 4px; overflow: hidden; border-radius: 3px; background: #edf1f6; }
.metric-bar i { height: 100%; display: block; border-radius: inherit; background: #6889ee; }
.metric-bar.green i { background: #40bc8f; }
.inline-dot { width: 6px; height: 6px; flex: 0 0 auto; display: inline-block; border-radius: 50%; }
.inline-dot.green { background: #2eb487; }
.inline-dot.amber { background: #e8ab42; }
.inline-dot.red { background: #e75c69; }

.work-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(280px, .92fr); gap: 15px; margin-bottom: 16px; }
.panel { min-width: 0; padding: 17px 18px 0; }
.panel-heading { min-height: 39px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.section-kicker { display: flex; align-items: center; gap: 6px; font-size: 8px; }
h2 { margin-top: 5px; color: #253248; font-family: "Segoe UI", system-ui, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -.3px; }
.count-badge { display: inline-grid; min-width: 19px; height: 18px; place-items: center; margin-left: 3px; border-radius: 5px; background: #edf2ff; color: #5273d3; font-family: "DM Sans", sans-serif; font-size: 9px; vertical-align: 1px; }
.count-alert { background: #fff0e8; color: #d9824f; }
.tiny-live { width: 5px; height: 5px; border-radius: 50%; background: #38b987; }
.text-button { padding: 4px 0; border: 0; background: transparent; color: #4c6fd2; font-size: 10px; font-weight: 600; cursor: pointer; }
.text-button:hover, .evidence-link:hover { color: #224ec6; }
.text-button span { padding-left: 3px; }
.queue-toolbar { display: flex; gap: 8px; margin: 14px 0 9px; }
.search-field { height: 33px; flex: 1; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #e9edf3; border-radius: 6px; background: #fff; }
.search-field svg { width: 14px; height: 14px; color: #96a1b1; }
.search-field input { width: 100%; min-width: 30px; border: 0; outline: none; background: transparent; color: #344258; font-size: 10px; }
.search-field input::placeholder { color: #a4adba; }
kbd { min-width: 16px; height: 18px; display: grid; place-items: center; border: 1px solid #edf0f4; border-radius: 4px; background: #f8f9fb; color: #9ba5b3; font-family: inherit; font-size: 9px; }
.filter-button { height: 33px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid #e9edf3; border-radius: 6px; background: #fff; color: #627086; font-size: 10px; cursor: pointer; }
.filter-button:hover { background: #f7f9fc; }
.filter-button svg { width: 14px; height: 14px; }
.filter-count { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 4px; background: #edf2ff; color: #4b6ed5; font-size: 9px; }
.queue-table-wrap { min-height: 169px; overflow-x: auto; }
.queue-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.queue-table th { padding: 8px 5px; border-bottom: 1px solid #edf0f4; color: #9aa4b2; font-size: 8px; font-weight: 600; letter-spacing: .07em; }
.queue-table th:first-child, .queue-table td:first-child { padding-left: 2px; }
.queue-table td { padding: 10px 5px; border-bottom: 1px solid #f0f2f6; color: #67758a; font-size: 9px; }
.queue-table tbody tr { cursor: pointer; transition: background .15s; }
.queue-table tbody tr:hover, .queue-table tbody tr.selected { background: #f7f9ff; }
.caller-cell { display: flex; align-items: center; gap: 8px; }
.caller-avatar { width: 26px; height: 26px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #eff1fa; color: #6c70a0; font-size: 8px; font-weight: 700; }
.caller-name { display: grid; gap: 3px; }
.caller-name strong { color: #39475d; font-size: 9px; font-weight: 600; }
.caller-name small { color: #a0a9b7; font-size: 8px; }
.reason-cell { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.wait-time { color: #4f5d72; font-variant-numeric: tabular-nums; }
.wait-time.urgent { color: #d95060; font-weight: 700; }
.priority-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 12px; font-size: 8px; font-weight: 600; }
.priority-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.priority-pill.high { background: #fff0ef; color: #d95d62; }
.priority-pill.medium { background: #fff6e7; color: #c68a2f; }
.priority-pill.normal { background: #edf7f3; color: #469778; }
.row-arrow { color: #b0b9c6; font-size: 15px; }
.empty-state { padding: 34px 10px; color: #9aa4b2; text-align: center; font-size: 10px; }
.panel-footer { min-height: 37px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf0f4; color: #919cad; font-size: 8px; }
.panel-footer > span { display: flex; align-items: center; gap: 6px; }
.panel-footer strong { color: #68758a; font-weight: 500; }
.incident-panel { padding-bottom: 0; }
.icon-button.small { width: 27px; height: 27px; margin-top: -2px; border-color: transparent; font-size: 17px; letter-spacing: 1px; }
.incident-list { margin-top: 11px; }
.incident-item { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border: 0; border-top: 1px solid #eff1f5; background: transparent; text-align: left; cursor: pointer; }
.incident-item:hover .incident-copy > strong { color: #4168ce; }
.incident-severity { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; }
.incident-severity svg { width: 15px; height: 15px; }
.severity-high { background: #fff0ef; color: #e05e67; }
.severity-medium { background: #fff6e7; color: #d29a38; }
.incident-copy { min-width: 0; flex: 1; display: grid; gap: 5px; }
.incident-copy > strong { overflow: hidden; color: #3a485d; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.incident-copy > small { color: #8c97a8; font-size: 9px; }
.incident-copy > small span { padding: 0 3px; color: #c2c8d1; }
.incident-meta { display: flex; align-items: center; gap: 9px; color: #a0a9b7; font-size: 8px; }
.incident-meta .priority-pill { padding: 3px 6px; }
.incident-chevron { margin: 5px 2px 0 0; color: #a5afbd; font-size: 18px; }
.incident-foot { min-height: 37px; display: flex; align-items: center; gap: 7px; border-top: 1px solid #edf0f4; color: #8b96a6; font-size: 8px; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 15px; }
.call-panel, .assistant-panel { padding-bottom: 14px; }
.call-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #f1e6cd; border-radius: 12px; background: #fffbf1; color: #a3792e; font-size: 8px; }
.call-state.active { border-color: #d6efe5; background: #f0fbf6; color: #318768; }
.call-state.on-hold { border-color: #e2e8f6; background: #f4f7ff; color: #6378bd; }
.customer-summary { display: flex; align-items: center; gap: 9px; margin-top: 15px; }
.customer-avatar { width: 37px; height: 37px; background: #e7edff; color: #5071cd; font-size: 11px; }
.customer-identity { min-width: 0; display: grid; gap: 4px; }
.customer-identity strong { color: #35445a; font-size: 11px; font-weight: 600; }
.customer-identity > span { color: #909bad; font-size: 8px; }
.customer-identity > span span { padding: 0 3px; color: #c1c8d2; }
.signal-chip { display: flex; align-items: center; gap: 5px; margin-left: auto; padding: 5px 7px; border: 1px solid #e4f3ec; border-radius: 5px; background: #f7fcf9; color: #548e74; font-size: 8px; white-space: nowrap; }
.signal-chip .inline-dot { width: 5px; height: 5px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0 12px; padding: 12px 0; border-top: 1px solid #eff1f5; border-bottom: 1px solid #eff1f5; }
.service-grid > div { min-width: 0; display: grid; gap: 5px; }
.service-grid > div:last-child { grid-column: 1 / -1; }
.service-grid span { color: #9ba5b3; font-size: 7px; font-weight: 600; letter-spacing: .07em; }
.service-grid strong { overflow: hidden; color: #526177; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.call-reason { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid #edf0f4; border-radius: 6px; background: #fbfcfe; }
.reason-icon { width: 27px; height: 27px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 6px; background: #eef2ff; color: #6581dc; }
.reason-icon svg { width: 15px; height: 15px; }
.call-reason > span:last-child { display: grid; gap: 4px; }
.call-reason small { color: #9aa4b2; font-size: 7px; font-weight: 600; letter-spacing: .06em; }
.call-reason strong { color: #5b687b; font-size: 9px; font-weight: 500; }
.call-actions { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.call-timer { margin-left: auto; color: #728096; font-family: "DM Sans", sans-serif; font-size: 10px; font-variant-numeric: tabular-nums; }
.demo-inline { margin-left: 4px; padding: 2px 4px; border-radius: 3px; background: #fff5df; color: #a77a2c; font-size: 7px; letter-spacing: .05em; vertical-align: 1px; }
.sparkle { color: #788be0; font-size: 11px; }
.ai-suggestion { margin-top: 14px; padding: 12px; border: 1px solid #e8ebfa; border-radius: 7px; background: linear-gradient(135deg, #fafaff, #fff 68%); }
.ai-suggestion-heading { display: flex; align-items: center; gap: 8px; }
.ai-avatar { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #eef0ff; color: #747ee1; font-size: 15px; }
.ai-suggestion-heading > span:nth-child(2) { display: grid; gap: 3px; }
.ai-suggestion-heading strong { color: #45516c; font-size: 9px; font-weight: 600; }
.ai-suggestion-heading small { color: #a1a8b8; font-size: 7px; }
.confidence { margin-left: auto; color: #8994ad; font-size: 7px; }
.ai-suggestion > p { margin: 10px 0 11px; color: #59667d; font-size: 9px; line-height: 1.6; }
.evidence-box { display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid #edf0f7; border-radius: 5px; background: #fff; }
.evidence-icon { width: 22px; height: 22px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 5px; background: #f2f4fa; color: #8894ab; }
.evidence-icon svg { width: 13px; height: 13px; }
.evidence-box > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.evidence-box strong { color: #67738a; font-size: 8px; font-weight: 600; }
.evidence-box small { overflow: hidden; color: #a0a8b6; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.evidence-link { margin-left: auto; padding: 3px; border: 0; background: transparent; color: #5675d1; font-size: 8px; cursor: pointer; white-space: nowrap; }
.assistant-prompt { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; color: #9aa3b1; font-size: 8px; }
.prompt-action { padding: 6px 8px; border: 1px solid #e9edf7; border-radius: 5px; background: white; color: #526bc1; font-size: 8px; font-weight: 600; cursor: pointer; }
.prompt-action:hover { background: #f7f8ff; }
.prompt-action span { padding-left: 4px; }
.page-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; color: #a1aab7; font-size: 8px; }
.page-footer span span { padding: 0 4px; }
.toast { position: fixed; z-index: 5; right: 24px; bottom: 22px; max-width: min(360px, calc(100vw - 32px)); padding: 12px 15px; transform: translateY(15px); border: 1px solid #26354e; border-radius: 7px; background: #18263c; color: #f3f6fb; box-shadow: 0 8px 25px #17243a30; font-size: 11px; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { transform: translateY(0); opacity: 1; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.dialer-dialog { width: min(420px, calc(100% - 28px)); max-width: none; max-height: min(760px, calc(100dvh - 28px)); overflow-y: auto; padding: 0; border: 1px solid #e5eaf2; border-radius: 12px; background: #fff; color: #182439; box-shadow: 0 24px 80px #101b3040; }
.dialer-dialog::backdrop { background: #101a2db0; backdrop-filter: blur(3px); }
.dialer-shell { padding: 21px; }
.dialer-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.dialer-heading h2 { margin-top: 6px; font-size: 17px; }
.dialer-heading .icon-button { font-size: 19px; line-height: 1; }
.dialer-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 19px 0 17px; padding: 4px; border-radius: 7px; background: #f3f5f9; }
.dialer-tab { min-height: 33px; border: 0; border-radius: 5px; background: transparent; color: #7c8798; font-size: 10px; font-weight: 600; cursor: pointer; }
.dialer-tab.active { background: #fff; color: #3b5fc1; box-shadow: 0 1px 4px #26395616; }
.dialer-label { display: block; margin-bottom: 6px; color: #788498; font-size: 9px; font-weight: 600; }
.dial-display { height: 45px; display: flex; align-items: center; margin-bottom: 12px; padding: 0 12px; border: 1px solid #e3e8f0; border-radius: 7px; }
.dial-display:focus-within { border-color: #86a2f1; box-shadow: 0 0 0 3px #edf2ff; }
.dial-display input { width: 100%; border: 0; outline: none; background: transparent; color: #26344a; font-size: 19px; font-weight: 600; letter-spacing: .05em; }
.dial-display input::placeholder { color: #c0c7d2; font-size: 14px; font-weight: 400; letter-spacing: 0; }
.dial-clear { width: 31px; height: 31px; flex: 0 0 auto; border: 0; border-radius: 5px; background: transparent; color: #8d99aa; font-size: 18px; cursor: pointer; }
.dial-clear:hover { background: #f2f4f8; }
.dial-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.dial-pad button { height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid #edf0f5; border-radius: 7px; background: #fff; color: #344258; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s, transform .12s; }
.dial-pad button:hover { transform: translateY(-1px); border-color: #dce5fb; background: #f7f9ff; }
.dial-pad button:active { transform: scale(.97); background: #edf2ff; }
.dial-pad button span { min-height: 8px; color: #9aa5b5; font-size: 7px; font-weight: 500; letter-spacing: .1em; }
.dialer-submit { width: 100%; min-height: 40px; margin-top: 13px; }
.dialer-submit:disabled { transform: none; background: #c4cde0; box-shadow: none; }
.transfer-intro { margin: 0 0 12px; color: #8290a3; font-size: 10px; line-height: 1.5; }
.operator-list { display: grid; gap: 7px; }
.operator-option { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid #e9edf3; border-radius: 7px; background: #fff; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.operator-option:not(:disabled):hover { border-color: #cbd8fa; background: #f9faff; }
.operator-option.selected { border-color: #6d8de9; background: #f5f7ff; box-shadow: 0 0 0 2px #eef2ff; }
.operator-option:disabled { cursor: not-allowed; opacity: .58; }
.operator-avatar { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 700; }
.avatar-ev { background: #e5f4ed; color: #39886a; }
.avatar-dn { background: #e8edfb; color: #5871ba; }
.avatar-sm { background: #f1edf8; color: #8870a4; }
.operator-details { min-width: 0; flex: 1; display: grid; gap: 4px; }
.operator-details strong { color: #3d4b60; font-size: 10px; font-weight: 600; }
.operator-details small { color: #929dae; font-size: 8px; }
.operator-availability { display: flex; align-items: center; gap: 5px; color: #419172; font-size: 8px; white-space: nowrap; }
.operator-availability i { width: 6px; height: 6px; border-radius: 50%; background: #36b789; }
.operator-availability.busy { color: #a1a8b4; }
.operator-availability.busy i { background: #b5bbc5; }
.operator-availability.offline { color: #7e8999; }
.operator-availability.offline i { background: #b5bbc5; }
.transfer-notice { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; padding: 9px; border-radius: 6px; background: #fff8e9; color: #967437; font-size: 9px; line-height: 1.45; }
.transfer-notice > span { width: 14px; height: 14px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #d5b976; border-radius: 50%; font-size: 9px; font-weight: 700; }
.dialer-disclaimer { margin: 12px 0 0; color: #a0a9b6; text-align: center; font-size: 8px; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1fr) 252px; align-items: start; gap: 16px; }
.dashboard-primary { min-width: 0; }
.quick-modules { position: sticky; top: 15px; min-width: 0; padding: 15px 12px 0; border: 1px solid #e9edf3; border-radius: 9px; background: #fff; box-shadow: 0 2px 5px #1c2b4205; }
.module-group { padding-top: 12px; }
.module-group h3 { margin: 0 0 8px 1px; color: #97a1b0; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.module-card { position: relative; min-width: 0; min-height: 63px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 5px; padding: 8px; overflow: hidden; border: 1px solid #edf0f5; border-radius: 7px; background: #fff; color: #58667b; text-align: left; font-size: 8px; font-weight: 600; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.module-card:hover { transform: translateY(-1px); border-color: #dce4f3; box-shadow: 0 3px 9px #1c2b4210; }
.module-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; }
.module-icon svg { width: 15px; height: 15px; }
.module-arrow { position: absolute; top: 8px; right: 8px; color: #aab4c1; font-size: 10px; }
.module-terminal { grid-column: 1 / -1; min-height: 48px; flex-direction: row; align-items: center; justify-content: flex-start; padding: 7px 9px; background: #f4f6ff; color: #485fba; }
.module-terminal .module-icon { background: #e3e9ff; color: #506fd5; }
.module-terminal .module-arrow { top: 16px; }
.module-cnmaestro .module-icon { background: #e6f7f4; color: #268f83; }
.module-dude .module-icon { background: #fff4e3; color: #cc8b28; }
.module-acs .module-icon { background: #edf7e9; color: #689b4a; }
.module-ticket .module-icon { background: #fff0e8; color: #d8834d; }
.module-users .module-icon { background: #eef1ff; color: #6878ce; }
.module-devices .module-icon { background: #eaf3ff; color: #5086c5; }
.module-calendar .module-icon { background: #f5efff; color: #8b6bc1; }
.module-techs .module-icon { background: #e7f7f1; color: #35977a; }
.module-vehicles .module-icon { background: #fff1ed; color: #d5795c; }
.module-stock .module-icon { background: #fff7df; color: #b4892c; }
.module-network .module-icon { background: #e9f6fa; color: #448ca1; }
.module-rag .module-icon { background: #f2efff; color: #7968bd; }
.module-stats .module-icon { background: #edf3ff; color: #5e7fc1; }
.modules-footer { min-height: 34px; display: flex; align-items: center; gap: 6px; margin-top: 11px; border-top: 1px solid #edf0f4; color: #99a3b1; font-size: 7px; }
.modules-footer .inline-dot { width: 5px; height: 5px; }
.terminal-dialog { width: min(620px, calc(100% - 28px)); max-width: none; padding: 0; overflow: hidden; border: 1px solid #273750; border-radius: 10px; background: #101a2a; color: #e8edf7; box-shadow: 0 24px 80px #101b3060; }
.terminal-dialog::backdrop { background: #101a2db0; backdrop-filter: blur(3px); }
.terminal-window { padding: 16px; }
.terminal-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #29364b; }
.terminal-brand { display: flex; align-items: center; gap: 9px; }
.terminal-logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: #223455; color: #88a6ff; }
.terminal-logo svg { width: 16px; height: 16px; }
.terminal-brand > span:last-child { display: grid; gap: 3px; }
.terminal-brand strong { font-size: 10px; }
.terminal-brand small { color: #7f8ca2; font-size: 7px; letter-spacing: .09em; }
.terminal-heading .icon-button { border-color: #334158; background: #1c293d; color: #b7c2d2; font-size: 18px; }
.terminal-screen { min-height: 240px; max-height: min(48vh, 420px); overflow-y: auto; padding: 13px 2px; color: #c5d0df; font-family: Consolas, "Courier New", monospace; font-size: 10px; line-height: 1.6; }
.terminal-line { margin: 0 0 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-line.terminal-muted { color: #8290a6; }
.terminal-line.terminal-command { color: #9bb4ff; }
.terminal-line.terminal-output { color: #b8d8c8; }
.terminal-line.terminal-error { color: #f0a0a4; }
.terminal-form { height: 39px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border: 1px solid #34425a; border-radius: 6px; background: #151f31; }
.terminal-form label { color: #8faaff; font-family: Consolas, monospace; font-size: 11px; }
.terminal-form input { min-width: 0; flex: 1; border: 0; outline: none; background: transparent; color: #f0f4fa; font-family: Consolas, monospace; font-size: 10px; }
.terminal-form input::placeholder { color: #69788f; }
.terminal-form button { min-height: 26px; padding: 0 9px; border: 0; border-radius: 4px; background: #426be3; color: white; font-size: 8px; font-weight: 600; cursor: pointer; }
.terminal-bottom { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: #7f8ca0; font-size: 7px; }
.terminal-bottom > span:first-child { display: flex; align-items: center; gap: 5px; }
.terminal-bottom i { width: 5px; height: 5px; border-radius: 50%; background: #42bd8f; }
@media (max-width: 1250px) { .dashboard-columns { grid-template-columns: minmax(0, 1fr); } .quick-modules { position: static; } .module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .module-terminal { grid-column: auto; min-height: 63px; flex-direction: column; align-items: flex-start; padding: 8px; } .module-terminal .module-arrow { top: 8px; } }

@media (min-width: 1500px) { .page-content { padding-top: 38px; } .metric-card { min-height: 135px; padding: 18px; } .queue-table-wrap { min-height: 190px; } }
@media (max-width: 1120px) { .sidebar { width: 205px; flex-basis: 205px; } .topbar { padding: 0 25px; } .page-content { padding-right: 25px; padding-left: 25px; } .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .work-grid { grid-template-columns: minmax(0, 1.3fr) minmax(260px, .9fr); } .queue-table th:nth-child(2), .queue-table td:nth-child(2) { display: none; } }
@media (max-width: 820px) { .sidebar { width: 64px; flex-basis: 64px; align-items: center; padding: 19px 8px 12px; } .brand { padding: 0 0 29px; } .brand-copy, .workspace-label, .nav-item > span, .environment-card > span:nth-child(2), .environment-card > .status-dot, .profile-copy, .profile-menu { display: none; } .nav-list { width: 100%; } .nav-item { justify-content: center; padding: 0; } .nav-item.active::before { left: -8px; } .nav-count { position: absolute; top: 2px; right: 3px; min-width: 14px; height: 14px; font-size: 8px; } .environment-card { justify-content: center; padding: 8px 0; border: 0; } .profile { justify-content: center; padding: 11px 0 1px; } .topbar { padding: 0 20px; } .page-content { padding: 24px 20px 18px; } .work-grid { grid-template-columns: 1fr; } .queue-table th:nth-child(2), .queue-table td:nth-child(2) { display: table-cell; } }
@media (max-width: 620px) { body { min-width: 320px; } .sidebar { width: 53px; flex-basis: 53px; padding-right: 6px; padding-left: 6px; } .brand-mark { width: 32px; height: 32px; } .topbar { height: 52px; padding: 0 13px; } .system-status { font-size: 0; gap: 0; } .system-status .status-dot { width: 7px; height: 7px; } .topbar-actions { gap: 8px; } .page-content { padding: 22px 12px 16px; } .welcome-row { align-items: flex-start; flex-direction: column; margin-bottom: 17px; } h1 { font-size: 24px; } .welcome-actions { width: 100%; } .welcome-actions .button { flex: 1; padding-right: 8px; padding-left: 8px; } .eyebrow { font-size: 8px; } .metrics-grid { gap: 9px; } .metric-card { min-height: 111px; padding: 12px 10px 9px; } .metric-label { max-width: 100px; font-size: 9px; } .metric-icon { width: 25px; height: 25px; } .metric-value { gap: 6px; font-size: 22px; } .metric-change { font-size: 8px; } .metric-change span { font-size: 7px; } .metric-foot { font-size: 8px; } .panel { padding-right: 11px; padding-left: 11px; } .queue-table th { font-size: 7px; } .queue-table td { padding-right: 3px; padding-left: 3px; } .queue-table th:nth-child(2), .queue-table td:nth-child(2) { display: none; } .lower-grid { grid-template-columns: 1fr; } .page-footer { flex-direction: column; } .incident-copy > strong { font-size: 9px; } .confidence { font-size: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

.app-shell { align-items: flex-start; }
.sidebar,
.quick-modules {
  position: sticky;
  top: 28px;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sidebar { border-radius: 0; }
.main-content { min-width: 0; }
.page-content { max-width: none; padding-right: 24px; padding-left: 24px; }
.lower-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 224px; align-items: start; }
.quick-modules {
  width: 252px;
  flex: 0 0 252px;
  padding: 15px 12px 0;
  border: 0;
  border-left: 1px solid #e9edf3;
  border-radius: 0;
  box-shadow: none;
}
.sidebar-metrics { margin: 22px 3px 12px; }
.sidebar-metrics h2 { margin: 0 0 9px 6px; color: #738199; font-size: 8px; font-weight: 700; letter-spacing: .11em; }
.sidebar-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sidebar-metric { min-width: 0; min-height: 53px; display: flex; align-items: center; gap: 6px; padding: 6px; border: 1px solid #29374e; border-radius: 7px; background: #17243a; }
.sidebar-metric > span:last-child { min-width: 0; display: grid; gap: 3px; }
.sidebar-metric strong { color: #f1f5fb; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; }
.sidebar-metric small { overflow: hidden; color: #9aa8bd; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-metric-icon { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; }
.sidebar-metric-icon svg { width: 13px; height: 13px; }
.metric-queue { background: #273a60; color: #8eaeff; }
.metric-wait { background: #483b2a; color: #f0bd68; }
.metric-done { background: #1c443c; color: #66d0a8; }
.metric-alert { background: #4a3038; color: #f18a91; }
.softphone-panel { min-width: 0; display: flex; flex-direction: column; padding: 12px 12px 13px; border: 1px solid #e9edf3; border-radius: 9px; background: #fff; box-shadow: 0 2px 5px #1c2b4205; }
.softphone-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 13px; }
.softphone-brand { min-width: 0; display: flex; align-items: center; gap: 8px; }
.softphone-brand > span:last-child { min-width: 0; display: grid; gap: 3px; }
.softphone-brand strong { color: #344258; font-size: 11px; }
.softphone-brand small { color: #929dae; font-size: 7px; letter-spacing: .06em; white-space: nowrap; }
.softphone-icon { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: #e8f7ef; color: #25996e; }
.softphone-icon svg { width: 16px; height: 16px; }
.softphone-online { display: inline-flex; align-items: center; gap: 5px; color: #548e74; font-size: 8px; white-space: nowrap; }
.softphone-online i { width: 6px; height: 6px; border-radius: 50%; background: #30b985; box-shadow: 0 0 0 3px #e2f5ec; }
.softphone-online.offline { color: #a1a8b4; }
.softphone-online.offline i { background: #b5bbc5; box-shadow: 0 0 0 3px #f1f3f6; }
.dialer-label { margin-top: 2px; }
.dial-display { height: 42px; margin-bottom: 9px; padding: 0 8px; }
.dial-display input { font-size: 16px; }
.dial-display input::placeholder { font-size: 11px; }
.dial-pad { gap: 5px; }
.dial-pad button { height: 43px; }
.softphone-call { width: 100%; min-height: 37px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; border: 0; border-radius: 7px; background: #1eaa79; color: #fff; font-size: 10px; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; }
.softphone-call:hover:not(:disabled) { transform: translateY(-1px); background: #168b62; }
.softphone-call:disabled { background: #c4cde0; }
.softphone-call.hangup { background: #e55a67; }
.softphone-call.hangup:hover { background: #d74352; }
.softphone-call svg { width: 15px; height: 15px; }
.softphone-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.softphone-contacts { margin-top: 10px; }
.softphone-contacts h3 { font-size: 0.85rem; margin: 0 0 4px; }
.softphone-contacts-status { font-size: 0.8rem; margin: 0 0 4px; opacity: 0.8; }
.softphone-contacts-list { list-style: none; margin: 0; padding: 0; max-height: 160px; overflow-y: auto; }
.softphone-contacts-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.softphone-contacts-form { display: grid; gap: 4px; margin-top: 6px; }
.softphone-contacts-form input { min-width: 0; }
.softphone-contacts-open { margin-top: 10px; width: 100%; }
.customer-contact-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.softphone-tools button { min-width: 0; min-height: 40px; display: grid; justify-items: center; align-content: center; gap: 3px; border: 1px solid #edf0f5; border-radius: 6px; background: #fff; color: #748197; cursor: pointer; }
.softphone-tools button:hover { border-color: #dce5fb; background: #f7f9ff; color: #456bd1; }
.softphone-tools svg { width: 14px; height: 14px; }
.softphone-tools span { font-size: 7px; }
.softphone-disclaimer { margin-top: 8px; color: #a0a9b6; text-align: center; font-size: 7px; line-height: 1.4; }
.dialer-dialog { width: min(390px, calc(100% - 28px)); }
.dialer-submit { display: flex; align-items: center; justify-content: center; gap: 7px; }

@media (max-width: 1250px) {
  .quick-modules { position: sticky; }
}
@media (max-width: 1100px) {
  .sidebar { width: 205px; flex-basis: 205px; }
  .quick-modules { width: 220px; flex-basis: 220px; padding-right: 9px; padding-left: 9px; }
  .page-content { padding-right: 15px; padding-left: 15px; }
  .lower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .softphone-panel { grid-column: 1 / -1; }
  .softphone-panel .dial-pad { max-width: 320px; margin: 0 auto; }
  .softphone-panel .dial-display,
  .softphone-panel .dialer-label { max-width: 320px; margin-right: auto; margin-left: auto; }
  .softphone-panel .dialer-label { margin-bottom: 6px; }
  .softphone-call,
  .softphone-tools,
  .softphone-disclaimer,
  .softphone-heading { max-width: 320px; margin-right: auto; margin-left: auto; }
  .softphone-heading { margin-bottom: 13px; }
}
@media (max-width: 1000px) {
  .lower-grid { grid-template-columns: minmax(0, 1fr); }
  .softphone-panel { grid-column: auto; }
  .softphone-panel .dial-pad,
  .softphone-panel .dial-display,
  .softphone-panel .dialer-label,
  .softphone-call,
  .softphone-tools,
  .softphone-disclaimer,
  .softphone-heading { max-width: 360px; }
}
@media (max-width: 820px) {
  .sidebar { width: 64px; flex-basis: 64px; align-items: center; }
  .sidebar-metrics { width: 100%; margin: 16px 0 10px; }
  .brand-logo { display: none; }
  .brand-icon { display: block; }
  .sidebar-metrics h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sidebar-metric-grid { grid-template-columns: 1fr; gap: 4px; }
  .sidebar-metric { min-height: 41px; flex-direction: column; justify-content: center; gap: 3px; padding: 3px; }
  .sidebar-metric-icon { width: 18px; height: 18px; }
  .sidebar-metric-icon svg { width: 11px; height: 11px; }
  .sidebar-metric > span:last-child { display: block; }
  .sidebar-metric strong { font-size: 9px; }
  .sidebar-metric small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-item .nav-count { display: grid; }
  .quick-modules { width: 64px; flex-basis: 64px; padding: 10px 5px; }
  .module-group h3,
  .module-card > span:not(.module-icon):not(.module-arrow),
  .modules-footer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .module-card .module-arrow { display: none; }
  .module-group { padding-top: 8px; }
  .module-grid { grid-template-columns: 1fr; gap: 5px; }
  .module-card,
  .module-terminal { width: 100%; min-height: 40px; justify-content: center; align-items: center; padding: 4px; }
  .module-card .module-icon { width: 28px; height: 28px; }
  .module-terminal { grid-column: auto; flex-direction: row; }
  .module-terminal .module-arrow { display: none; }
  .topbar { padding-right: 14px; padding-left: 14px; }
  .page-content { padding-right: 13px; padding-left: 13px; }
}
@media (max-width: 620px) {
  .sidebar { width: 53px; flex-basis: 53px; padding-right: 5px; padding-left: 5px; }
  .quick-modules { width: 53px; flex-basis: 53px; padding-right: 4px; padding-left: 4px; }
  .page-content { padding-right: 10px; padding-left: 10px; }
  .welcome-actions .button { width: 100%; }
  .panel { padding-right: 10px; padding-left: 10px; }
  .customer-summary { flex-wrap: wrap; }
  .signal-chip { margin-left: 46px; }
  .dialer-shell { padding: 15px; }
}

[hidden] { display: none !important; }
.module-card[aria-pressed="true"] { outline: 2px solid var(--blue); outline-offset: -2px; }
.module-view .lower-grid { grid-template-columns: minmax(0, 1fr); }
.module-view .call-panel, .module-view .assistant-panel { display: none; }
.simulation-panel { min-width: 0; }
.simulation-panel > p { font-size: 12px; line-height: 1.6; color: #516075; }
.simulation-panel h3 { margin: 0 0 10px; font-size: 14px; }
.simulation-panel .simulation-notice { margin: 12px 0; padding: 10px; border-radius: 6px; background: #fff6df; color: #79571d; font-size: 11px; }
.simulation-toolbar { display: flex; gap: 12px; margin: 16px 0 10px; }
.simulation-toolbar label:first-child { flex: 1; }
.simulation-panel label { display: grid; gap: 6px; min-width: 0; font-size: 11px; color: #516075; }
.simulation-panel input, .simulation-panel select, .simulation-panel textarea { width: 100%; min-width: 0; padding: 9px; border: 1px solid #d5ddeb; border-radius: 6px; background: white; color: #182439; font: inherit; }
.simulation-panel textarea { resize: vertical; }
.simulation-panel select:focus-visible, .simulation-panel textarea:focus-visible { outline: 3px solid #91adff; outline-offset: 2px; }
.simulation-summary { margin-bottom: 12px; font-size: 11px; color: #68758a; }
.simulation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.simulation-records { display: grid; gap: 8px; }
.simulation-record { display: grid; gap: 7px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: white; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.simulation-record:hover { background: #f5f8ff; }
.simulation-record[aria-pressed="true"] { border-color: var(--blue); background: #f0f4ff; }
.simulation-record strong { font-size: 12px; }
.simulation-record small, .simulation-record > span { font-size: 11px; color: #516075; line-height: 1.5; }
.simulation-record .simulation-state { width: fit-content; padding: 3px 7px; border-radius: 5px; background: #e8edf7; color: #354b72; font-weight: 600; }
.simulation-detail { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfd; overflow-wrap: anywhere; }
.simulation-detail p, .simulation-detail dd { font-size: 12px; line-height: 1.6; }
.simulation-detail dt { margin-top: 12px; color: #68758a; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.simulation-detail dd { margin: 3px 0 0; white-space: pre-wrap; }
.simulation-detail .simulation-provenance { margin-top: 16px; color: #68758a; font-size: 10px; }
.simulation-ticket-form { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.simulation-ticket-form .button { justify-self: start; }
#simulation-form-status { font-size: 12px; color: #36537e; }
@media (max-width: 1250px) {
  .module-view .lower-grid { grid-template-columns: minmax(0, 1fr); }
  .simulation-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .simulation-toolbar { flex-direction: column; }
  .simulation-panel .panel-heading { flex-wrap: wrap; gap: 12px; }
}

.lower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-modules > .softphone-panel { margin: 0 0 20px; padding: 12px; }
.quick-modules .softphone-brand small { font-size: 6px; }
.quick-modules .softphone-brand { gap: 5px; }
.quick-modules .softphone-icon { display: none; }
.quick-modules .softphone-heading { gap: 5px; }
.quick-modules #dial-toggle { flex: 0 0 31px; }
.calendar-page .simulation-records { display: none; }
.calendar-page .simulation-layout { display: block; margin-top: 16px; }
.calendar-page #simulation-detail { border-left: 3px solid var(--blue); }
.calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 10px; }
.calendar-toolbar h3 { margin: 0; flex: 1 1 180px; text-align: center; text-transform: capitalize; }
.calendar-navigation, .calendar-views { display: flex; gap: 4px; align-items: center; }
.calendar-views { padding: 3px; border-radius: 7px; background: #edf1f8; }
.calendar-views button { padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; font-size: 11px; cursor: pointer; }
.calendar-views button[aria-pressed="true"] { color: white; background: var(--blue); }
.calendar-timezone { margin: 8px 0 12px; color: #68758a; font-size: 10px; }
.calendar-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.calendar-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 560px; }
.calendar-weekday { padding: 10px 5px; background: #f6f8fc; color: #68758a; text-align: center; font-size: 11px; font-weight: 600; }
.calendar-day { min-height: 110px; min-width: 0; padding: 5px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.calendar-day-outside { background: #f7f9fc; }
.calendar-day-outside .calendar-day-number { color: #8a95a6; }
.calendar-day-number { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 11px; cursor: pointer; }
.calendar-day-number:hover { background: #dce7ff; }
.calendar-day-number[aria-current="date"] { background: var(--blue); color: white; }
.calendar-event { display: grid; gap: 3px; width: 100%; min-width: 0; padding: 6px; border: 1px solid #cee3dd; border-left: 3px solid #249a77; border-radius: 4px; background: #edf8f3; text-align: left; color: #284a41; cursor: pointer; overflow: hidden; }
.calendar-event-pending { border-color: #f0dfbb; border-left-color: #cf9427; background: #fff7e6; color: #70531f; }
.calendar-event[aria-pressed="true"] { outline: 2px solid var(--blue); outline-offset: -2px; }
.calendar-event strong { font-size: 10px; font-weight: 600; overflow-wrap: anywhere; }
.calendar-event small, .calendar-event-time { font-size: 9px; line-height: 1.3; }
.calendar-day .calendar-event { margin-top: 4px; }
.calendar-time-grid { display: grid; grid-template-columns: 48px repeat(var(--calendar-days), minmax(0, 1fr)); min-width: 760px; }
.calendar-single-day { min-width: 220px; }
.calendar-time-heading { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 7px; border-left: 1px solid var(--line); background: #f6f8fc; font-size: 10px; }
.calendar-hours { position: relative; color: #68758a; font-size: 9px; }
.calendar-hours span { position: absolute; right: 5px; }
.calendar-time-column { position: relative; min-width: 0; border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom, #e9edf3 0, #e9edf3 1px, transparent 1px, transparent 60px); }
.calendar-time-column .calendar-event { position: absolute; left: 3px; width: calc(100% - 6px); align-content: start; }
.calendar-empty { padding: 12px; margin-top: 10px; border-radius: 6px; background: #f5f7fb; color: #68758a; font-size: 12px; }
.calendar-upcoming { margin-top: 20px; }
.calendar-upcoming > p { margin: 5px 0 12px; color: #68758a; font-size: 11px; }
#calendar-upcoming-list { display: grid; gap: 8px; }
.calendar-upcoming-row { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 10px; align-items: center; }
.calendar-upcoming-date { color: #516075; font-size: 11px; }
@media (max-width: 620px) {
  .calendar-toolbar { justify-content: center; }
  .calendar-toolbar h3 { flex-basis: 100%; order: -1; }
  .calendar-upcoming-row { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .calendar-views button { padding: 7px 8px; }
}
@media (max-width: 1000px) {
  .lower-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .quick-modules > .softphone-panel { padding: 4px; background: transparent; border: 0; box-shadow: none; }
  .quick-modules .softphone-heading { justify-content: center; margin-bottom: 0; }
  .quick-modules .softphone-brand,
  .quick-modules .softphone-online,
  .quick-modules .softphone-tools,
  .quick-modules .softphone-disclaimer { display: none; }
  .quick-modules .softphone-call { padding: 4px; font-size: 0; }
  .quick-modules .softphone-call svg { flex-shrink: 0; }
  .quick-modules .dialer-expanded { position: fixed; z-index: 20; top: 38px; right: 8px; width: min(260px, calc(100vw - 70px)); padding: 12px; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 30px #18243933; }
  .quick-modules .dialer-expanded .softphone-heading { justify-content: space-between; margin-bottom: 12px; }
  .quick-modules .dialer-expanded .softphone-brand,
  .quick-modules .dialer-expanded .softphone-tools { display: flex; }
  .quick-modules .dialer-expanded .softphone-call { font-size: 10px; }
}
