@font-face {
  font-family: DM;
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  background: #0d0f10;
  color: #f0efed;
  font:
    14px DM,
    Arial,
    sans-serif;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 70% 0%, #1a1c1d55, transparent 48%), #0d0f10;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #eab18a;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
input,
select {
  color: #efedeb;
  background: #141719;
  border: 1px solid #3a3f43;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 42px;
  max-width: 100%;
}
input::placeholder {
  color: #939ba1;
}
select {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
.agent-identity h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  font-size: 40px;
  letter-spacing: -1.2px;
  line-height: 1.12;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
  color: #a5a9ad;
}
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  vertical-align: middle;
}
.icon-button {
  height: 42px;
  width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #bec2c5;
  flex: none;
}
.icon-button:hover {
  background: #ffffff09;
  color: #edb58e;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(110deg, #c88d61, #e5b48f);
  color: #15100d;
  font-weight: 600;
  border: 1px solid #e5b48f;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 20px;
}
.primary:hover {
  filter: brightness(1.07);
}
.secondary {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid #383b3e;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 15px;
  background: #191c1e;
}
.secondary:hover {
  border-color: #9b7255;
}
.text-link {
  color: #e5ad81;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.text-link .icon {
  width: 16px;
}
.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;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  z-index: 50;
  top: -80px;
  left: 20px;
  background: #e5b48f;
  color: #15100d;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #272a2c;
  background: linear-gradient(155deg, #141719, #0d1011 35%, #0e1011);
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow-y: auto;
  overflow-x: hidden;
}
.brand {
  height: 144px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
}
.brand img {
  object-fit: contain;
}
.brand span {
  letter-spacing: 6px;
  font-size: 20px;
  color: #e2ae86;
  padding-left: 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 18px 24px;
  min-height: 59px;
  color: #acb0b4;
  border-left: 3px solid transparent;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link .icon {
  width: 21px;
  height: 21px;
}
.nav-link:hover {
  color: #faf4ed;
  background: #ffffff04;
}
.nav-link.active {
  color: #f2e9de;
  background: linear-gradient(90deg, #c48d6225, #c48d6202);
  border-color: #ddb18b;
}
.nav-link.active .icon {
  color: #efc59c;
}
.sidebar-bottom {
  margin-top: auto;
  position: relative;
  padding: 24px 24px 95px;
}
.tenant-box label {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #a2a9af;
  display: block;
  margin-bottom: 10px;
}
.tenant-box select {
  width: 100%;
  font-size: 11px;
  padding: 9px 6px;
}
.brand-note {
  margin-top: 30px;
  color: #929da5;
  font-size: 12px;
}
.brand-note > span {
  display: block;
  width: 39px;
  height: 1px;
  background: #d79c6c;
  margin-bottom: 14px;
}
.sidebar-waves {
  position: absolute;
  pointer-events: none;
  bottom: -76px;
  left: -92px;
  width: 360px;
  height: 155px;
  border: 1px dashed #a16b3333;
  border-radius: 50%;
  box-shadow:
    0 -12px 0 -1px #0c0e10,
    0 -13px 0 0 #a16b3320,
    0 -26px 0 -1px #0c0e10,
    0 -27px 0 0 #a16b3320;
  transform: rotate(-22deg);
}
.main-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  padding: 30px 30px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.heading p {
  color: #aeb3b8;
  font-size: 18px;
  margin-top: 8px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.period-control {
  display: flex;
  align-items: center;
  border: 1px solid #34383b;
  border-radius: 10px;
  padding: 0 12px;
  height: 46px;
  background: #131618;
  gap: 8px;
}
.period-control .icon {
  width: 18px;
  color: #d59c75;
}
.period-control select {
  border: 0;
  background: transparent;
  min-height: 40px;
  font-size: 12px;
  padding: 4px;
  outline-offset: 1px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
  padding: 0 0 0 14px;
  border-left: 1px solid #303336;
  min-height: 46px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #3a3e42;
  background: linear-gradient(140deg, #292d32, #171b20);
  font-size: 13px;
}
.profile-copy {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-copy b {
  font-size: 12px;
  font-weight: 500;
}
.profile-copy small {
  font-size: 10px;
}
.notification {
  color: #d9ab89;
}
.mobile-menu {
  display: none;
}
#main {
  padding: 0 30px;
  flex: 1;
  outline: none;
  min-width: 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #939da5;
  font-size: 10px;
  padding: 24px 30px;
}
.footer-dot {
  padding: 0 8px;
  color: #ae815e;
}
.environment-banner {
  padding: 9px 12px;
  border: 1px solid #72533266;
  border-radius: 7px;
  background: #a36f2910;
  color: #dfb892;
  font-size: 11px;
  margin-bottom: 14px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #a2a8ad;
  font-size: 11px;
  margin-bottom: 15px;
  line-height: 1.6;
}
.notice .icon {
  height: 15px;
  width: 15px;
  margin-top: 1px;
  color: #b88a64;
}
.notice a {
  color: #deb18d;
  text-decoration: underline;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.kpi {
  padding: 20px 19px 17px;
  border: 1px solid #2c3033;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at top left, #ae815d0a, transparent 70%),
    linear-gradient(135deg, #14171988, #111416);
  min-height: 147px;
  position: relative;
  text-align: left;
  display: block;
  transition: border-color 0.15s;
}
.kpi:hover {
  border-color: #76583f;
}
.kpi-main {
  display: flex;
  align-items: center;
  gap: 20px;
}
.kpi-icon {
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background: #bb87500b;
  border: 1px solid #b9875533;
  color: #efb583;
  flex: none;
}
.kpi-icon .icon {
  width: 27px;
  height: 27px;
}
.kpi-label {
  font-size: 12px;
  color: #c8cbce;
  line-height: 1.4;
}
.kpi-value {
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-top: 7px;
  color: #eceef0;
}
.kpi-foot {
  font-size: 10px;
  color: #a1a9af;
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-foot .icon {
  width: 13px;
  height: 13px;
  color: #ba8e6b;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(305px, 1fr);
  gap: 17px;
}
.dashboard-left,
.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-width: 0;
}
.panel {
  border: 1px solid #2a2e31;
  border-radius: 12px;
  background: linear-gradient(135deg, #141719a8, #111416);
  overflow: hidden;
}
.panel-heading {
  padding: 20px 20px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.panel-heading h2 .icon {
  color: #e7ac79;
  width: 22px;
}
.panel-description {
  margin: -6px 22px 14px 55px;
  color: #a4a9ae;
  font-size: 12px;
  line-height: 1.6;
}
.chart-wrap {
  padding: 0 22px 18px;
  height: 233px;
  position: relative;
}
.chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}
.chart-legend {
  display: flex;
  gap: 16px;
  padding: 0 22px 16px;
  justify-content: flex-end;
  font-size: 10px;
  color: #a8aeb3;
}
.legend-line {
  display: inline-block;
  width: 17px;
  height: 2px;
  background: #e8a370;
  vertical-align: middle;
  margin-right: 6px;
}
.legend-line.grey {
  background: #8b9298;
}
.chart-table {
  padding: 0 22px 16px;
  color: #aaa;
  font-size: 11px;
}
.chart-table summary {
  cursor: pointer;
}
.chart-table table {
  width: 100%;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.chart-table th,
.chart-table td {
  text-align: left;
  padding: 4px;
  border-bottom: 1px solid #26292d;
}
.table-scroll {
  position: relative;
  overflow: auto;
  padding: 0 20px 10px;
}
.calls-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.calls-table th {
  color: #a5acb2;
  font-weight: 400;
  white-space: nowrap;
  padding: 12px 10px;
  border-bottom: 1px solid #2a2e31;
  font-size: 11px;
}
.calls-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #25292c;
  vertical-align: middle;
  color: #dfe1e3;
}
.calls-table tr:last-child td {
  border-bottom: 0;
}
.calls-table th:first-child,
.calls-table td:first-child {
  padding-left: 0;
}
.calls-table th:last-child,
.calls-table td:last-child {
  padding-right: 0;
}
.calls-table td small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.5;
}
.calls-table tbody tr:hover {
  background: #ffffff03;
}
.row-link {
  padding: 0;
  text-align: left;
  line-height: 1.5;
  font-size: inherit;
  color: #f2f3f4;
  font-weight: 500;
  max-width: 220px;
  overflow-wrap: anywhere;
}
.row-link:hover {
  color: #ebbb95;
}
.row-open {
  height: 28px;
  width: 28px;
}
.row-open .icon {
  width: 15px;
}
.nowrap {
  white-space: nowrap;
}
.badge {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #343a3f;
  border-radius: 20px;
  color: #c0c6cc;
  background: #ffffff04;
  white-space: nowrap;
  line-height: 1.15;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}
.badge.green {
  color: #73dec2;
  border-color: #2a645244;
  background: #1e7c5c12;
}
.badge.amber {
  color: #e9ba74;
  border-color: #8b653933;
  background: #a3733110;
}
.badge.red {
  color: #f18f7f;
  border-color: #85493e55;
  background: #a34b3412;
}
.badge.blue {
  color: #94c6e6;
  border-color: #40658044;
  background: #29648012;
}
.agent-panel .panel-heading {
  padding-bottom: 12px;
}
.agent-panel h2 {
  font-size: 21px;
}
.agent-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 22px 18px;
}
.agent-identity h3 {
  font-size: 30px;
  margin-bottom: 8px;
  line-height: 1.1;
}
.agent-identity p {
  font-size: 11px;
  color: #afb5bb;
  line-height: 1.5;
  max-width: 150px;
}
.agent-orb {
  position: relative;
  width: 128px;
  height: 128px;
  border: 1px solid #404246;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: radial-gradient(circle, #b0805820, transparent 67%), #101316;
  box-shadow: 0 0 30px #ca8a4512;
}
.agent-orb img {
  width: 76px;
  height: 76px;
  opacity: 0.85;
}
.orb-ring {
  position: absolute;
  inset: -6px;
  border: 3px solid #b7835a;
  border-right-color: #b7835a33;
  border-bottom-color: #b7835a33;
  border-radius: 50%;
  transform: rotate(-30deg);
  box-shadow: 0 0 10px #d78e5122;
}
.speaking .orb-ring {
  animation: orbit 12s linear infinite;
}
.waveform {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 14px;
  opacity: 0.75;
}
.waveform i {
  width: 2px;
  background: linear-gradient(#e6ab7f, #785c46);
  height: 9px;
  border-radius: 2px;
}
.waveform .wave-1 {
  height: 15px;
}
.waveform .wave-2 {
  height: 26px;
}
.waveform .wave-3 {
  height: 38px;
}
.waveform .wave-4 {
  height: 20px;
}
.waveform .wave-5 {
  height: 12px;
}
.waveform .wave-6 {
  height: 30px;
}
.agent-meta {
  border-top: 1px solid #272b2e;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #a0a9b0;
}
.agent-meta a {
  color: #d6a780;
}
.agent-meta .icon {
  width: 13px;
}
.priority-panel .panel-heading h2 {
  font-size: 21px;
}
.count-link {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #d49b6b0c;
  color: #d7a178;
  padding: 4px 7px;
  border-radius: 8px;
  font-size: 12px;
}
.count-link .icon {
  width: 14px;
}
.priority-list {
  padding: 0 13px 13px;
  display: grid;
  gap: 8px;
}
.priority-row {
  display: flex;
  gap: 13px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid #2c3033;
  border-radius: 9px;
  background: linear-gradient(120deg, #1a1d20, #171a1c);
  padding: 15px 12px;
  min-height: 82px;
}
.priority-row:hover {
  border-color: #75563e;
}
.priority-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #ffffff06;
  border-radius: 50%;
  color: #c4c9ce;
  flex: none;
}
.priority-icon.urgent {
  color: #f18b77;
  background: #b3443616;
}
.priority-icon .icon {
  width: 19px;
}
.priority-copy {
  flex: 1;
  min-width: 0;
}
.priority-copy b {
  font-size: 12px;
  font-weight: 500;
  display: block;
  line-height: 1.5;
}
.priority-copy small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.priority-row > .icon {
  width: 13px;
  color: #a8aeb3;
}
.empty-state {
  padding: 43px 22px;
  text-align: center;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.empty-state > .icon {
  width: 29px;
  height: 29px;
  color: #b28665;
  margin-bottom: 18px;
}
.empty-state h3 {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 12px;
  color: #a6afb6;
  max-width: 360px;
  line-height: 1.7;
}
.priority-panel .empty-state {
  min-height: 220px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-bottom: 1px solid #292d30;
  align-items: flex-end;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: #a8b0b6;
  min-width: 110px;
}
.filters .search-filter {
  flex: 1;
  min-width: 180px;
}
.filters input,
.filters select {
  font-size: 12px;
  min-height: 39px;
}
.filters button {
  min-height: 39px;
  font-size: 12px;
}
.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.page-toolbar p {
  font-size: 12px;
  color: #a3abb1;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid #282c30;
  gap: 14px;
  font-size: 12px;
  color: #a4adb4;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.pagination button {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}
.agent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.agent-config {
  padding: 0 20px 20px;
  display: grid;
  gap: 12px;
}
.definition-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #2b2f32;
  font-size: 12px;
}
.definition-row:last-child {
  border: 0;
}
.definition-row dt {
  color: #a2abb2;
}
.definition-row dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-body {
  padding: 0 22px 22px;
}
.settings-body > p {
  font-size: 12px;
  color: #a3abb2;
  margin-bottom: 16px;
}
.settings-body select {
  width: 100%;
}
.field-label {
  display: block;
  font-size: 12px;
  color: #b2bac0;
  margin-bottom: 9px;
}
.settings-body .secondary {
  margin-top: 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}
.distribution {
  padding: 0 22px 24px;
}
.distribution-row {
  margin-top: 18px;
  font-size: 12px;
}
.distribution-row > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #c3c9cf;
}
meter {
  width: 100%;
  height: 7px;
  border: 0;
  background: #262b30;
  border-radius: 4px;
}
meter::-webkit-meter-bar {
  background: #262b30;
  border: 0;
}
meter::-webkit-meter-optimum-value {
  background: #c08f65;
}
.error-panel {
  border: 1px solid #70473e;
  background: #653b3014;
  border-radius: 12px;
  padding: 35px;
  text-align: center;
}
.error-panel h2 {
  margin-bottom: 12px;
}
.error-panel p {
  font-size: 13px;
  color: #b2b7bb;
  margin-bottom: 20px;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.skeleton {
  height: 145px;
  border-radius: 12px;
  border: 1px solid #292e32;
  background: linear-gradient(110deg, #161a1d 30%, #1d2226 50%, #161a1d 70%);
  background-size: 200% 100%;
  animation: shimmer 1.7s infinite;
}
.skeleton-wide {
  height: 360px;
  margin-top: 18px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #232a2d;
  border: 1px solid #56615e;
  border-radius: 10px;
  padding: 14px 22px;
  box-shadow: 0 8px 40px #0008;
  z-index: 100;
  max-width: 90vw;
  font-size: 13px;
}
dialog {
  color: #eceef0;
  background: #121619;
  border: 1px solid #42464a;
  border-radius: 15px;
  width: min(900px, 94vw);
  max-height: 90vh;
  padding: 0;
  box-shadow: 0 24px 120px #000b;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(6px);
}
.detail-header {
  position: sticky;
  top: 0;
  background: #14181bf5;
  z-index: 3;
  padding: 22px 26px;
  border-bottom: 1px solid #30363b;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.detail-header h2 {
  font-size: 27px;
}
.detail-header small {
  display: block;
  margin-top: 7px;
}
.detail-body {
  padding: 24px 26px;
}
.detail-overview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.detail-overview span {
  border: 1px solid #30373d;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 12px;
  color: #c6cdd3;
}
.detail-section {
  margin-top: 23px;
}
.detail-section h3 {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #e2b38d;
}
.summary-box {
  background: #ffffff03;
  border: 1px solid #2e363c;
  padding: 18px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail-field {
  padding: 13px 15px;
  border: 1px solid #2e353b;
  border-radius: 8px;
}
.detail-field label {
  display: block;
  color: #9aa5ae;
  font-size: 10px;
  margin-bottom: 9px;
}
.detail-field p {
  font-size: 13px;
  overflow-wrap: anywhere;
  margin-bottom: 9px;
  white-space: pre-wrap;
}
.detail-field small {
  font-size: 10px;
}
.detail-footer {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 18px;
  border: 1px solid #544331;
  border-radius: 9px;
  background: #ad7d4510;
  margin-top: 25px;
}
.detail-footer label {
  flex: 1;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-footer p {
  font-size: 12px;
  color: #a4adb5;
}
.audio-empty {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px;
  border: 1px dashed #3d454c;
  border-radius: 9px;
}
.audio-empty > .icon {
  width: 29px;
  color: #c09a7b;
}
.audio-empty h4 {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 5px;
}
.audio-empty p {
  font-size: 11px;
  color: #a0aab3;
}
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11vw;
  background:
    radial-gradient(ellipse at 27% 44%, #9a60371b, transparent 42%),
    radial-gradient(ellipse at 70% 15%, #ffffff04, transparent 50%), #0d1012;
  padding: 60px 24px;
}
.login-brand {
  text-align: center;
  width: 300px;
}
.login-brand > span {
  display: block;
  font-size: 37px;
  letter-spacing: 11px;
  color: #e0b089;
  padding-left: 11px;
  margin-top: 20px;
}
.login-brand > p {
  color: #a2abb2;
  font-size: 14px;
  margin-top: 20px;
}
.login-card {
  width: 440px;
  padding: 38px;
  border-radius: 15px;
  border: 1px solid #343739;
  background: linear-gradient(130deg, #1b1e20aa, #121619);
  box-shadow: 0 20px 70px #0003;
}
.eyebrow {
  letter-spacing: 2.4px;
  font-size: 9px;
  color: #d0a07a;
  display: block;
  margin-bottom: 19px;
}
.login-card h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}
.login-card > p {
  font-size: 12px;
  color: #a4adb5;
  margin-top: 14px;
}
.login-card form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-card label {
  font-size: 11px;
  color: #c9cfd3;
  margin-top: 9px;
}
.login-card input {
  background: #0f1315;
  min-height: 44px;
}
.login-card .primary {
  margin-top: 18px;
  justify-content: space-between;
}
.login-foot {
  font-size: 10px;
  text-align: center;
  color: #a2adb5;
  border-top: 1px solid #2c343a;
  padding-top: 20px;
  margin-top: 22px;
}
.form-message {
  font-size: 12px;
  color: #f0b48c;
}
.login-caption {
  position: absolute;
  bottom: 26px;
  left: 36px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #c19675;
}
.login-caption span {
  letter-spacing: 0;
  color: #99a3ab;
  margin-left: 20px;
}
.boot-screen {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  min-height: 100vh;
  color: #b9c0c5;
  font-size: 13px;
}
@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@keyframes orbit {
  to {
    transform: rotate(330deg);
  }
}
@media (min-width: 1550px) {
  .topbar {
    padding: 30px 34px 25px;
  }
  #main {
    padding: 0 34px;
  }
  .heading p {
    font-size: 22px;
  }
  h1 {
    font-size: 44px;
  }
  .kpi-label {
    font-size: 14px;
  }
  .kpi-value {
    font-size: 39px;
  }
  .kpi-foot {
    font-size: 12px;
  }
  .chart-wrap {
    height: 205px;
  }
  .agent-identity {
    padding: 19px 27px 25px;
  }
  .agent-orb {
    width: 146px;
    height: 146px;
  }
  .agent-identity h3 {
    font-size: 33px;
  }
  .agent-identity p {
    font-size: 13px;
  }
  .calls-table {
    font-size: 13px;
  }
  .calls-table td {
    padding-top: 17px;
    padding-bottom: 17px;
  }
  .priority-copy b {
    font-size: 13px;
  }
  .priority-row {
    min-height: 90px;
  }
}
@media (max-width: 1250px) {
  .app-shell {
    grid-template-columns: 186px minmax(0, 1fr);
  }
  .nav-link {
    padding: 17px;
    gap: 12px;
    font-size: 12px;
  }
  .topbar {
    padding: 25px 22px 20px;
  }
  #main {
    padding: 0 22px;
  }
  .profile-copy {
    display: none;
  }
  .heading h1 {
    font-size: 34px;
  }
  .heading p {
    font-size: 14px;
  }
  .top-actions {
    gap: 5px;
  }
  .kpi-main {
    gap: 11px;
  }
  .kpi-icon {
    width: 40px;
    height: 40px;
  }
  .kpi-value {
    font-size: 30px;
  }
  .kpi {
    padding: 17px 13px;
  }
  .kpi-label {
    font-size: 11px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  }
  .agent-orb {
    width: 90px;
    height: 90px;
  }
  .agent-orb img {
    width: 58px;
    height: 58px;
  }
  .agent-identity {
    gap: 17px;
    padding: 18px;
  }
  .agent-identity h3 {
    font-size: 26px;
  }
  .agent-panel h2,
  .priority-panel .panel-heading h2 {
    font-size: 19px;
  }
  .panel-heading {
    padding: 17px;
  }
  .panel-heading h2 {
    font-size: 21px;
  }
  .agent-panel .panel-heading {
    flex-wrap: wrap;
  }
  .waveform {
    gap: 2px;
  }
  .badge {
    font-size: 9px;
    padding: 5px 7px;
  }
  .calls-table th {
    font-size: 10px;
  }
  .calls-table td {
    font-size: 11px;
  }
  .notification {
    display: none;
  }
  .sidebar-bottom {
    padding: 20px 16px 85px;
  }
}
@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .brand {
    height: 110px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .brand span,
  .nav-link span,
  .sidebar-bottom {
    display: none;
  }
  .nav-link {
    padding: 20px 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .kpi-grid {
    gap: 10px;
  }
  .kpi-icon {
    display: none;
  }
  .topbar {
    gap: 10px;
  }
  .period-control {
    height: 40px;
  }
  .top-actions {
    gap: 4px;
  }
  .topbar h1 {
    font-size: 32px;
  }
  .heading p {
    font-size: 13px;
  }
  .kpi {
    min-height: 121px;
  }
  .kpi-value {
    font-size: 31px;
  }
  .kpi-foot {
    font-size: 9px;
  }
  .agent-list,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .login-screen {
    gap: 5vw;
  }
  .login-brand {
    width: 260px;
  }
  .login-brand > span {
    font-size: 29px;
  }
  .login-card {
    width: 410px;
    padding: 32px;
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    visibility: hidden;
    position: fixed;
    left: 0;
    width: 230px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    border-right: 1px solid #6a513c;
    box-shadow: 20px 0 60px #0009;
  }
  .sidebar.open {
    visibility: visible;
    transform: translateX(0);
  }
  .sidebar .brand span,
  .sidebar .nav-link span,
  .sidebar .sidebar-bottom {
    display: block;
  }
  .sidebar .brand {
    height: 130px;
  }
  .sidebar .brand span {
    font-size: 20px;
  }
  .sidebar .nav-link {
    padding: 17px 24px;
  }
  .sidebar .brand img {
    width: 55px;
    height: 55px;
  }
  .mobile-menu {
    display: inline-flex;
    position: relative;
    z-index: 25;
  }
  .topbar {
    padding: 20px 14px 18px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .heading {
    flex: 1;
    padding-top: 6px;
  }
  .topbar h1 {
    font-size: 29px;
    letter-spacing: -0.6px;
  }
  .heading p {
    font-size: 12px;
    margin-top: 6px;
  }
  .top-actions {
    width: 100%;
    padding-left: 4px;
    justify-content: space-between;
    margin-top: 6px;
  }
  .profile {
    margin-left: auto;
  }
  .profile-copy {
    display: flex;
  }
  .period-control {
    height: 38px;
  }
  .period-control select {
    font-size: 11px;
  }
  #main {
    padding: 0 14px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .kpi {
    min-height: 120px;
    padding: 16px;
  }
  .kpi-value {
    font-size: 32px;
  }
  .kpi-foot {
    font-size: 9px;
    line-height: 1.5;
  }
  .kpi-label {
    font-size: 11px;
  }
  .dashboard-right {
    display: flex;
  }
  .panel-heading {
    padding: 18px 15px;
  }
  .panel-heading h2 {
    font-size: 21px;
  }
  .panel-heading .text-link {
    font-size: 10px;
    gap: 4px;
  }
  .panel-description {
    margin-left: 48px;
    font-size: 11px;
    margin-right: 15px;
  }
  .chart-wrap {
    height: 205px;
    padding-left: 10px;
    padding-right: 12px;
  }
  .chart-legend {
    font-size: 9px;
    padding-right: 16px;
  }
  .calls-table {
    min-width: 600px;
  }
  .table-scroll {
    padding-left: 15px;
    padding-right: 15px;
  }
  .agent-identity {
    padding: 16px 25px 24px;
    gap: 27px;
  }
  .agent-orb {
    width: 122px;
    height: 122px;
  }
  .agent-orb img {
    width: 76px;
    height: 76px;
  }
  .agent-identity h3 {
    font-size: 31px;
  }
  .waveform {
    gap: 3px;
  }
  .footer {
    padding: 22px 16px;
    font-size: 9px;
    flex-wrap: wrap;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    padding: 15px;
    gap: 9px;
  }
  .filters label {
    flex: 1;
    min-width: 120px;
  }
  .filters .search-filter {
    min-width: 100%;
  }
  .filters button {
    flex: 1;
  }
  .pagination {
    padding: 15px;
    font-size: 11px;
  }
  .page-toolbar {
    align-items: flex-start;
  }
  .page-toolbar p {
    font-size: 11px;
  }
  .detail-body {
    padding: 18px;
  }
  .detail-fields {
    grid-template-columns: 1fr;
  }
  .detail-header {
    padding: 18px;
  }
  .detail-header h2 {
    font-size: 24px;
  }
  .detail-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .login-screen {
    flex-direction: column;
    gap: 30px;
    padding: 40px 20px 75px;
  }
  .login-brand {
    width: auto;
  }
  .login-brand img {
    height: 65px;
    width: 65px;
  }
  .login-brand > span {
    font-size: 21px;
    letter-spacing: 7px;
    margin-top: 10px;
  }
  .login-brand > p {
    display: none;
  }
  .login-card {
    width: min(410px, 100%);
    padding: 27px;
  }
  .login-card h1 {
    font-size: 29px;
  }
  .login-caption {
    position: static;
    text-align: center;
    font-size: 8px;
  }
  .login-caption span {
    display: none;
  }
  .skeleton-grid {
    grid-template-columns: 1fr 1fr;
  }
  .notice {
    font-size: 10px;
  }
  .environment-banner {
    font-size: 10px;
  }
  .error-panel {
    padding: 25px 18px;
  }
}
.section-gap {
  margin-top: 18px;
}
.spaced {
  margin-top: 18px;
}
.detail-field small {
  display: block;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .top-actions .profile-copy {
    display: none;
  }
  .top-actions .profile {
    padding-left: 8px;
  }
  .agent-identity > div:last-child {
    min-width: 0;
  }
  .agent-identity h3 {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.audio-player {
  background: var(--panel, #151a1e);
  border: 1px solid #594332;
  border-radius: 12px;
  padding: 16px;
}
.audio-player audio {
  width: 100%;
  color-scheme: dark;
  accent-color: #e5a374;
}
.audio-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
}
.audio-options label {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 120px;
}
.audio-options input[type="range"] {
  accent-color: #e5a374;
}
.quality-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.quality-categories label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.quality-categories input {
  width: auto;
  accent-color: #e5a374;
}
#quality-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#quality-form textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  background: #111619;
  color: #e9ecee;
  border: 1px solid #41474c;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}
#quality-form select {
  margin-top: 8px;
}
.audio-message {
  color: #efb68b;
}

.followup-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.followup-form label{display:grid;gap:8px}.full-width{grid-column:1/-1}textarea{font:inherit;color:inherit;background:var(--bg,#14191c);border:1px solid #394044;border-radius:8px;padding:12px;resize:vertical;width:100%}.check-row{display:flex;align-items:center;gap:10px;margin-bottom:12px}.check-row input{width:auto}.notification-item{border-bottom:1px solid #394044;padding:12px 0;display:grid;gap:8px}.has-unread:after{content:"";position:absolute;top:5px;right:5px;background:#e5a374;width:8px;height:8px;border-radius:50%}#notification-dialog{width:min(560px,94vw);max-height:85vh;background:#14191c;color:#eee;border:1px solid #394044;border-radius:12px}#custom-period[hidden]{display:none}@media(max-width:600px){.followup-form{grid-template-columns:1fr}}
