:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, sans-serif;
  color: #edf0f6;
  background: #101216;
  --surface: #191c22;
  --line: #343941;
  --muted: #abb4c2;
  --blue: #82adff;
  --lime: #a3df44;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select { font: inherit; }
a, button, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.top {
  min-height: 62px; padding: 10px clamp(16px, 3vw, 42px); background: #16181e;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 720; }
.logo {
  display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 7px;
  background: var(--lime); color: #17230a; font-size: 13px; font-weight: 850;
}
.division { padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; }
.top-tools, .switcher { display: flex; align-items: center; gap: 10px; }
.switcher { color: var(--muted); font-size: 13px; }
select, .quiet {
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: #edf0f6;
}
.quiet:hover { border-color: var(--blue); }
.workspace { max-width: 1560px; padding: 34px clamp(16px, 3vw, 45px) 48px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.category { color: var(--muted); font-size: 12px; margin: 0 0 7px; }
h1 { font-size: clamp(27px, 4vw, 40px); line-height: 1.16; letter-spacing: -.045em; margin: 0; }
h2 { font-size: 21px; margin: 22px 0 13px; letter-spacing: -.025em; }
h3 { font-size: 14px; margin: 0 0 15px; letter-spacing: -.01em; }
.badge { display: inline-block; width: fit-content; border: 1px solid #4b505b; border-radius: 4px; padding: 4px 7px; font-size: 11px; color: #bac4d1; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-top: 22px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 10px 0; font-size: 13px; font-weight: 680; }
.tabs button[aria-current] { color: var(--blue); border-bottom-color: #508dff; }
.panels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.panels.overview { grid-template-columns: 1.1fr 1.45fr .85fr; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); padding: 14px; }
.panel-note { color: var(--muted); margin: 8px 0 0; font-size: 12px; line-height: 1.45; }
.coverage { display: flex; flex-direction: column; align-items: stretch; }
.meter {
  width: min(215px, 100%); margin: 8px auto 0; aspect-ratio: 2 / 1; position: relative; overflow: hidden;
}
.meter::before { content: ''; position: absolute; inset: 0 0 auto; height: 200%; border-radius: 50%; border: 16px solid #45523b; box-shadow: inset 0 0 0 1px #647459; }
.meter-value { position: absolute; inset: auto 0 0; text-align: center; display: grid; gap: 4px; }
.meter-value strong, .stat-value { font-size: clamp(25px, 4vw, 34px); font-weight: 750; letter-spacing: -.04em; }
.meter-value span { font-size: 12px; color: var(--lime); }
.coverage .panel-note { margin: 11px auto 0; }
.stat-value { display: block; margin: 0 0 10px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); }
th { color: var(--blue); font-size: 11px; }
th:last-child, td:last-child { text-align: right; }
td:last-child .badge { white-space: nowrap; }
.empty { min-height: 180px; }
.overview .empty:nth-last-child(2) { grid-column: span 2; }
.plot {
  min-height: 112px; display: grid; place-items: center; border: 1px solid #2e333c;
  background: repeating-linear-gradient(to bottom, transparent 0 25px, #303642 25px 26px); color: var(--muted); font-size: 12px;
}
.plot span { padding: 5px 10px; background: var(--surface); }
.sign-in { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-panel { width: min(430px, 100%); padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.login-panel h1 { margin-top: 24px; }
.login-panel p { color: var(--muted); line-height: 1.55; margin: 10px 0 21px; }
.primary { display: inline-block; padding: 9px 14px; border-radius: 5px; color: #0d1728; background: var(--blue); font-weight: 680; text-decoration: none; }
@media (max-width: 860px) {
  .panels, .panels.overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview .empty:nth-last-child(2) { grid-column: auto; }
}
@media (max-width: 560px) {
  .workspace { padding-top: 22px; }
  .panels.overview { grid-template-columns: minmax(0, 1fr); }
  .top-tools { width: 100%; justify-content: space-between; }
  .division { margin-left: 0; }
}
[hidden] { display:none !important; }
.console-link, .record-list a { color:var(--blue); text-decoration:none; }
.console-link { display:inline-block; margin:0 0 10px; font-size:12px; }
.console-link:hover, .record-list a:hover { text-decoration:underline; }
.metric-link { border:0; background:none; color:var(--blue); padding:4px; }
dialog { width:min(700px,calc(100% - 28px)); max-height:85dvh; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:#edf0f6; }
dialog::backdrop { background:#080b12bb; }
.record-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.record-heading h2 { margin:0; }
.record-search { display:grid; gap:6px; margin:14px 0; color:var(--muted); font-size:12px; }
.record-search input { font:inherit; background:#101216; color:#edf0f6; border:1px solid var(--line); border-radius:4px; padding:7px; }
.record-list { max-height:55dvh; overflow:auto; }
.record-list td, .record-list th { padding:7px; }
.alert-list { display:grid; gap:7px; }
.alert-list button { text-align:left; }
.toast { position:fixed; bottom:16px; right:16px; z-index:2; padding:7px; background:var(--surface); border:1px solid var(--blue); border-radius:6px; box-shadow:0 8px 32px #0009; }
.workspace-controls { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:16px; }
.workspace-controls > .quiet { margin-left:auto; }
.channel-links { display:flex; flex-wrap:wrap; gap:4px; }
.channel-links [aria-current] { color:var(--blue); border-color:var(--blue); }
.bell { position:relative; display:grid; place-items:center; min-width:37px; padding:7px; }
#alert-count { position:absolute; top:-5px; right:-5px; border-radius:15px; background:#e2556a; color:#11080b; padding:1px 5px; font-size:10px; font-weight:800; }
#alert-menu { position:fixed; inset:64px 16px auto auto; margin:0; width:min(360px,calc(100% - 32px)); max-height:70dvh; overflow:auto; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:#edf0f6; padding:14px; box-shadow:0 12px 42px #0009; }
#alert-menu h2 { margin:0 0 12px; font-size:17px; }
#alert-items { display:grid; gap:7px; }
#alert-items button { text-align:left; }
.fresh-overview .panel { min-height:142px; }
.queue-summary { display:flex; flex-direction:column; gap:5px; }
.summary-stat, .risk-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); font-size:13px; }
.summary-stat { flex-direction:row-reverse; }
.summary-stat strong { font-size:20px; color:var(--lime); }
.summary-stat span { color:var(--muted); }
.risk-row .metric-link { color:#ffaa9b; }
.bar-chart { display:grid; gap:9px; padding:5px 0; }
.bar-line { display:grid; grid-template-columns:minmax(80px,1fr) 1.5fr auto; align-items:center; gap:8px; color:var(--muted); font-size:12px; }
.bar-line strong { color:#edf0f6; font-variant-numeric:tabular-nums; }
.bar-line progress { appearance:none; width:100%; height:10px; color:var(--lime); border:0; border-radius:5px; background:#262d2a; }
.bar-line progress::-webkit-progress-bar { background:#262d2a; border-radius:5px; }
.bar-line progress::-webkit-progress-value { background:var(--lime); border-radius:5px; }
.bar-line progress::-moz-progress-bar { background:var(--lime); border-radius:5px; }
.csat-panel .quiet { margin-top:10px; }
.queue-summary .console-link { margin:8px 0 0; }
.wide { grid-column:span 2; }
.widget-options { margin-top:14px; }
.widget-option { display:grid; grid-template-columns:1.2fr 1fr 1fr; align-items:center; gap:8px; border-top:1px solid var(--line); padding:8px 0; font-size:13px; }
.widget-option select { min-width:0; width:100%; }
.widget-option label { display:flex; align-items:center; gap:7px; }
.record-preview { padding-left:18px; color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
@media(max-width:560px) { .workspace-controls > .quiet { margin-left:0; } .wide { grid-column:span 2; } .widget-option select { padding:6px 3px; font-size:11px; } }
.view-tools { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; }
.control-label { display:grid; gap:4px; color:var(--muted); font-size:11px; }
.refresh-control { display:flex; gap:4px; }
.view-note { margin:12px 0 0; color:var(--muted); font-size:12px; min-height:16px; }
.health { display:inline-block; border-radius:4px; padding:5px 8px; font-size:11px; font-weight:700; white-space:nowrap; }
.health.green { background:#244b26; color:#b4ed93; }
.health.yellow { background:#534216; color:#ffe08a; }
.health.red { background:#592831; color:#ffc0c6; }
.health.gray { background:#2e353f; color:#c3cbd7; }
.health-table-wrap { max-height:260px; overflow:auto; }
.health-table th, .health-table td { padding:6px 5px; }
.health-table th:first-child, .health-table td:first-child { padding-left:0; }
.health-table th:nth-child(2), .health-table td:nth-child(2) { text-align:right; }
.health-table .metric-link { text-align:left; }
.queue-comparison { grid-column:span 2; }
@media(max-width:700px) { .view-tools { width:100%; } }
@media(max-width:560px) { .queue-comparison { grid-column:auto; } }

.starter-list{list-style:none;padding:0;margin:0;max-height:28rem;overflow:auto}
.starter-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem 1rem;padding:.75rem 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.starter-row .panel-note{display:block;margin:.25rem 0 0}
.starter-row time{font-variant-numeric:tabular-nums}
@media(max-width:480px){.starter-row{grid-template-columns:minmax(0,1fr)}}

.employee-profile{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr));gap:.65rem 1rem}
.employee-profile dt{font-weight:700}
.employee-profile dd{margin:0;overflow-wrap:anywhere}
.workforce-filters:not([hidden]) { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }

.top-tools { flex-wrap:wrap; justify-content:flex-end; }
.bell { display:inline-flex; gap:7px; align-items:center; }
.top-tools button[aria-current] { border-color:var(--blue); color:var(--blue); }
.workspace > .tabs { margin:0 0 24px; overflow-x:auto; }
.application-widgets { margin-top:14px; }
.panels.dashboard-grid { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:14px; }
.dashboard-grid .widget-wide { grid-column:span 2; }
.dashboard-grid .widget-full { grid-column:1 / -1; }
.dashboard-widget { padding:16px; }
.dashboard-widget h3 { font-size:16px; }
.dashboard-widget-tools, .dashboard-widget-controls, .dashboard-widget-counts,
.widget-position { display:flex; flex-wrap:wrap; align-items:flex-end; gap:7px; }
.dashboard-widget-tools { justify-content:space-between; margin-bottom:12px; }
.dashboard-field { display:grid; gap:4px; color:var(--muted); font-size:12px; min-width:0; }
.dashboard-field input { max-width:100%; width:100%; min-width:8rem; font:inherit; border:1px solid var(--line);
  border-radius:5px; background:#101216; color:#edf0f6; padding:7px; }
.dashboard-field select { max-width:100%; }
.dashboard-widget-counts .quiet { font-size:12px; padding:5px 8px; text-align:left; }
.dashboard-widget-counts [aria-pressed="true"] { border-color:var(--blue); color:var(--blue); }
.dashboard-widget-list { list-style:none; margin:10px 0 0; padding:0; }
.dashboard-widget-list li { padding:8px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.dashboard-widget-list .metric-link { text-align:left; }
.dashboard-widget-list .panel-note { display:block; margin:2px 0 0; }
.widget-expanded { padding:10px 0; }
.library-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:center;
  padding:10px 0; border-top:1px solid var(--line); }
.library-toggle { display:flex; gap:7px; align-items:center; }
.widget-position button:disabled { opacity:.4; cursor:default; }
.integrations .panel .quiet { display:block; margin-top:10px; }
@media(max-width:920px) { .panels.dashboard-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .panels.dashboard-grid { grid-template-columns:minmax(0,1fr); }
  .dashboard-grid .widget-wide { grid-column:1 / -1; }
  .workspace > .tabs { gap:14px; }
  .library-row { grid-template-columns:minmax(0,1fr) auto; }
  .library-toggle { grid-column:1 / -1; }
}
.channel-links [aria-pressed=true]{color:var(--blue);border-color:var(--blue)}
.device-deck{margin:10px 0}.device-deck-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.device-deck .employee-profile{grid-template-columns:1fr;margin:0}.device-deck dd{overflow-wrap:anywhere}
@media(max-width:560px){.device-deck-grid{grid-template-columns:1fr}}

.workspace-profile-toolbar,.workspace-profile-content{margin-top:12px}
.workspace-profile>.workforce-filters{margin-top:12px}
.workspace-profile-tabs{overflow-x:auto;white-space:nowrap}
.workspace-profile-content{display:grid;gap:12px}
.workspace-profile-content .panel{min-width:0;overflow:auto}
.workspace-event{padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.workspace-event summary{cursor:pointer}
.workspace-event a{display:inline-block;margin:0 10px}
.workspace-evidence{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.85rem}
.workspace-case-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;align-items:start;margin-top:12px}
.workspace-case-form label{display:grid;gap:6px}
.workspace-case-form textarea{min-height:75px;background:var(--panel);color:inherit;border:1px solid var(--line);border-radius:6px;padding:8px}

.panels.report-layout{display:block}
.freshdesk-report-content{margin-top:14px;display:grid;gap:14px}
.report-metrics,.report-weeks{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.report-weeks{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.issue-rank{display:grid;gap:5px;margin:10px 0}
.issue-rank button{justify-self:start;text-align:left}
.issue-rank span{color:var(--muted);font-size:.85rem}
.issue-rank progress{width:100%;height:9px;accent-color:var(--blue)}

.slack-activity canvas{display:block;width:100%;height:auto;margin-top:12px}
