:root {
  --bg: #07111f;
  --bg-soft: #0b1b2f;
  --panel: rgba(14, 28, 46, 0.86);
  --panel-strong: #10233b;
  --ink: #eaf2ff;
  --muted: #9fb3cb;
  --accent: #2ec5ce;
  --accent-strong: #1ea8ff;
  --ok: #2dd98b;
  --warn: #ffd166;
  --danger: #ff6b6b;
  --line: rgba(159, 179, 203, 0.24);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 12%, #163156 0%, transparent 36%), radial-gradient(circle at 86% 12%, #0d3552 0%, transparent 34%), linear-gradient(145deg, #030913, #0a1627 42%, #061223 100%);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.2px;
}

p {
  margin: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.12;
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.34;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite;
}

.orb-a {
  background: #1ec8ff;
  top: -120px;
  right: -90px;
}

.orb-b {
  background: #22d3a1;
  left: -140px;
  bottom: -160px;
  animation-delay: -7s;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(18px) scale(1.05);
  }
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.shell-dashboard {
  display: block;
  padding: 0;
}

.shell-dashboard .dashboard {
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
}

.login-card {
  width: min(460px, 100%);
  padding: 34px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 40, 65, 0.92), rgba(9, 20, 36, 0.96));
  border: 1px solid rgba(46, 197, 206, 0.28);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.4px;
  font-size: 0.76rem;
  margin-bottom: 10px;
}

.login-card h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.subtext {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid rgba(46, 197, 206, 0.25);
  background: rgba(8, 20, 34, 0.86);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(30, 168, 255, 0.2);
}

button {
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  font-weight: 700;
  cursor: pointer;
  color: #021224;
  background: linear-gradient(100deg, var(--accent), var(--accent-strong));
  transition: transform 0.16s ease, filter 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.hint {
  color: var(--muted);
  font-size: 0.87rem;
  margin-top: 2px;
}

.error {
  min-height: 20px;
  color: var(--danger);
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

.dashboard {
  width: min(1200px, 100%);
  min-height: 88vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(46, 197, 206, 0.2);
  background: rgba(6, 14, 24, 0.78);
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 22px;
  background: linear-gradient(180deg, rgba(11, 27, 47, 0.97), rgba(8, 18, 32, 0.96));
  border-right: 1px solid rgba(46, 197, 206, 0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 15px rgba(46, 197, 206, 0.55);
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.tab-nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tab-link {
  width: 100%;
  text-align: left;
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  color: var(--ink);
  background: rgba(46, 197, 206, 0.1);
  border-color: rgba(46, 197, 206, 0.3);
}

.tab-link.active,
.tab-link:hover {
  transform: none;
  filter: none;
  color: var(--ink);
  background: rgba(46, 197, 206, 0.1);
  border-color: rgba(46, 197, 206, 0.3);
}

.logout-btn {
  margin-top: auto;
  background: rgba(255, 107, 107, 0.14);
  color: #ffd8d8;
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.logout-btn:hover {
  filter: brightness(1.1);
}

.content {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.welcome {
  color: var(--muted);
  margin-bottom: 2px;
}

.tab-subtitle {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d2ffec;
  background: rgba(45, 217, 139, 0.14);
  border: 1px solid rgba(45, 217, 139, 0.36);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(45, 217, 139, 0.8);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  border-radius: 14px;
  border: 1px solid rgba(46, 197, 206, 0.2);
  background: linear-gradient(160deg, rgba(16, 35, 59, 0.84), rgba(8, 21, 36, 0.88));
  padding: 16px;
}

.kpi-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.kpi-card h4 {
  margin: 8px 0 6px;
  font-size: 1.35rem;
}

.trend {
  font-size: 0.83rem;
  font-weight: 700;
}

.trend.up {
  color: #6ce6bc;
}

.trend.down {
  color: #7bd0ff;
}

.trend.neutral {
  color: #e7d99f;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.panel {
  border-radius: 14px;
  border: 1px solid rgba(46, 197, 206, 0.2);
  background: linear-gradient(160deg, rgba(16, 35, 59, 0.8), rgba(8, 21, 36, 0.9));
  padding: 16px;
}

.hbar-list {
  display: grid;
  gap: 12px;
}

.hbar-row {
  display: grid;
  gap: 6px;
}

.hbar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}

.hbar-meta strong {
  color: var(--ink);
}

.hbar-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(159, 179, 203, 0.2);
  overflow: hidden;
}

.hbar-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.donut-wrap {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 16px;
}

.donut {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: rgba(8, 20, 34, 0.95);
  border: 1px solid rgba(46, 197, 206, 0.18);
}

.legend {
  display: grid;
  gap: 8px;
}

.legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.legend-item strong {
  color: var(--ink);
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.spark-wrap {
  width: 100%;
}

.spark-wrap svg {
  width: 100%;
  height: 190px;
  border-radius: 10px;
  background: rgba(7, 18, 31, 0.55);
  border: 1px solid rgba(46, 197, 206, 0.16);
}

.spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.voice-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
}

.call-manager-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.call-entry-block,
.call-queue-panel {
  border: 1px solid rgba(46, 197, 206, 0.18);
  border-radius: 12px;
  background: rgba(7, 18, 31, 0.58);
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.call-entry-block p {
  color: var(--muted);
  font-size: 0.86rem;
}

.mobile-call-card {
  background: linear-gradient(170deg, rgba(13, 34, 56, 0.82), rgba(7, 18, 31, 0.78));
}

.dialer-display {
  border: 1px solid rgba(46, 197, 206, 0.25);
  border-radius: 12px;
  background: rgba(5, 15, 26, 0.9);
  padding: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.8px;
  text-align: center;
}

.dialer-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dial-key {
  margin-top: 0;
  padding: 10px 0;
  border-radius: 10px;
  font-size: 0.9rem;
  background: rgba(46, 197, 206, 0.12);
  border: 1px solid rgba(46, 197, 206, 0.3);
  color: #bceef2;
}

.dial-key:hover {
  transform: none;
  filter: none;
  background: rgba(46, 197, 206, 0.2);
}

.dial-back {
  background: rgba(255, 107, 107, 0.18);
  border-color: rgba(255, 107, 107, 0.35);
  color: #ffd0d0;
}

.dialer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dial-clear {
  margin-top: 0;
  background: rgba(255, 209, 102, 0.2);
  border: 1px solid rgba(255, 209, 102, 0.36);
  color: #ffedc3;
}

.dial-call {
  margin-top: 0;
  background: rgba(45, 217, 139, 0.22);
  border: 1px solid rgba(45, 217, 139, 0.4);
  color: #c7ffe5;
}

.dial-clear:hover,
.dial-call:hover {
  transform: none;
  filter: none;
}

.call-fields {
  display: grid;
  gap: 8px;
}

.call-fields input[type="text"],
.call-fields input[type="file"] {
  width: 100%;
  border: 1px solid rgba(46, 197, 206, 0.24);
  background: rgba(8, 20, 34, 0.88);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  font-family: "Manrope", sans-serif;
}

.file-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.call-queue-panel {
  grid-column: span 2;
}

.call-queue-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.call-queue-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

.call-import-status {
  color: var(--muted);
  font-size: 0.86rem;
}

.call-import-status.success {
  color: #9af6cb;
}

.call-import-status.error {
  color: #ffb6b6;
}

.voice-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(46, 197, 206, 0.24);
  background: rgba(8, 20, 34, 0.88);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  font-family: "Manrope", sans-serif;
}

.field textarea {
  resize: vertical;
  min-height: 98px;
}

.field-wide {
  grid-column: span 2;
}

.voice-save {
  grid-column: span 2;
  margin-top: 4px;
}

.voice-preview {
  border: 1px solid rgba(46, 197, 206, 0.18);
  border-radius: 12px;
  background: rgba(7, 18, 31, 0.6);
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.voice-preview h6 {
  font-size: 0.96rem;
}

.voice-preview p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.queue-table-wrap {
  overflow: auto;
  border: 1px solid rgba(46, 197, 206, 0.14);
  border-radius: 10px;
}

.queue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.queue-table th,
.queue-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(46, 197, 206, 0.1);
}

.queue-table th {
  color: var(--muted);
  font-weight: 700;
}

.queue-tag {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(46, 197, 206, 0.15);
  border: 1px solid rgba(46, 197, 206, 0.3);
}

.response-grid {
  display: grid;
  gap: 12px;
}

.response-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mini-stat {
  border: 1px solid rgba(46, 197, 206, 0.18);
  border-radius: 10px;
  background: rgba(7, 18, 31, 0.58);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

.mini-stat strong {
  font-size: 1.08rem;
}

.response-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.datatable-tools {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.datatable-tools input,
.datatable-tools select {
  width: 100%;
  border: 1px solid rgba(46, 197, 206, 0.24);
  background: rgba(8, 20, 34, 0.88);
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 11px;
  outline: none;
  font-family: "Manrope", sans-serif;
}

.response-table-wrap {
  overflow: auto;
  border: 1px solid rgba(46, 197, 206, 0.14);
  border-radius: 10px;
}

.response-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  font-size: 0.84rem;
}

.response-table th,
.response-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(46, 197, 206, 0.1);
  vertical-align: top;
}

.response-table th {
  color: var(--muted);
  font-weight: 700;
}

.response-row {
  transition: background 0.16s ease;
}

.response-row:hover {
  background: rgba(46, 197, 206, 0.08);
}

.customer-link {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ce9ef;
  font-weight: 700;
  cursor: pointer;
}

.customer-link:hover {
  transform: none;
  filter: none;
  text-decoration: underline;
}

.view-detail-btn {
  margin-top: 0;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  background: rgba(46, 197, 206, 0.14);
  border: 1px solid rgba(46, 197, 206, 0.34);
  color: #b5eff3;
}

.view-detail-btn:hover {
  transform: none;
  filter: none;
  background: rgba(46, 197, 206, 0.24);
}

.sentiment,
.fit {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.sentiment.positive {
  background: rgba(45, 217, 139, 0.15);
  border-color: rgba(45, 217, 139, 0.35);
  color: #a4ffd7;
}

.sentiment.neutral {
  background: rgba(46, 197, 206, 0.14);
  border-color: rgba(46, 197, 206, 0.34);
  color: #9ce9ef;
}

.sentiment.negative {
  background: rgba(255, 107, 107, 0.14);
  border-color: rgba(255, 107, 107, 0.36);
  color: #ffd4d4;
}

.fit.high {
  background: rgba(45, 217, 139, 0.22);
  border-color: rgba(45, 217, 139, 0.55);
  color: #bcffde;
}

.fit.medium {
  background: rgba(255, 209, 102, 0.22);
  border-color: rgba(255, 209, 102, 0.58);
  color: #fff0c9;
}

.fit.low {
  background: rgba(255, 107, 107, 0.22);
  border-color: rgba(255, 107, 107, 0.58);
  color: #ffe1e1;
}

.response-row.fit-row-high td:first-child {
  border-left: 3px solid rgba(45, 217, 139, 0.85);
}

.response-row.fit-row-medium td:first-child {
  border-left: 3px solid rgba(255, 209, 102, 0.9);
}

.response-row.fit-row-low td:first-child {
  border-left: 3px solid rgba(255, 107, 107, 0.9);
}

.response-row.fit-row-high:hover {
  background: rgba(45, 217, 139, 0.08);
}

.response-row.fit-row-medium:hover {
  background: rgba(255, 209, 102, 0.08);
}

.response-row.fit-row-low:hover {
  background: rgba(255, 107, 107, 0.08);
}

.response-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 19, 0.7);
  backdrop-filter: blur(4px);
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.response-modal.hidden {
  display: none;
}

.response-modal-card {
  width: min(1000px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(46, 197, 206, 0.26);
  background: linear-gradient(160deg, rgba(15, 34, 57, 0.95), rgba(9, 20, 35, 0.96));
  padding: 16px;
  display: grid;
  gap: 12px;
}

.modal-close {
  justify-self: end;
  margin-top: 0;
  padding: 8px 12px;
  font-size: 0.8rem;
}

.modal-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-meta span {
  display: inline-block;
  background: rgba(46, 197, 206, 0.12);
  border: 1px solid rgba(46, 197, 206, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.8rem;
  color: #b7ecf0;
}

.modal-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.insight-card {
  border: 1px solid rgba(46, 197, 206, 0.17);
  border-radius: 10px;
  background: rgba(7, 18, 31, 0.55);
  padding: 10px;
}

.insight-card h6 {
  margin-bottom: 7px;
}

.insight-card p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.insight-card.wide {
  grid-column: span 2;
}

.transcript-wrap h6 {
  margin-bottom: 8px;
}

.transcript-list {
  display: grid;
  gap: 8px;
}

.transcript-item {
  border: 1px solid rgba(46, 197, 206, 0.16);
  border-radius: 10px;
  background: rgba(7, 18, 31, 0.55);
  padding: 9px 10px;
}

.speaker {
  display: inline-block;
  font-size: 0.74rem;
  border-radius: 999px;
  padding: 2px 7px;
  margin-bottom: 6px;
  background: rgba(30, 168, 255, 0.2);
  border: 1px solid rgba(30, 168, 255, 0.3);
}

.transcript-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.panel.wide {
  grid-column: span 2;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

.bars {
  display: grid;
  gap: 10px;
}

.bars label {
  display: inline-block;
  font-size: 0.88rem;
  margin-bottom: 5px;
}

progress {
  width: 100%;
  height: 10px;
}

progress::-webkit-progress-bar {
  background: rgba(159, 179, 203, 0.17);
  border-radius: 999px;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
}

.signals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.signals li {
  display: flex;
  gap: 9px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.92rem;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex: 0 0 auto;
}

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(45, 217, 139, 0.7);
}

.dot.warn {
  background: var(--warn);
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.6);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.col {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(46, 197, 206, 0.22);
  background: rgba(8, 19, 33, 0.7);
}

.col p {
  color: var(--muted);
  margin-top: 7px;
}

.col.hot {
  border-color: rgba(45, 217, 139, 0.45);
  background: rgba(23, 48, 47, 0.48);
}

@media (max-width: 1080px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .panel.wide {
    grid-column: auto;
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donut-wrap {
    grid-template-columns: 1fr;
  }

  .voice-grid {
    grid-template-columns: 1fr;
  }

  .call-manager-grid {
    grid-template-columns: 1fr;
  }

  .call-queue-panel {
    grid-column: span 1;
  }

  .response-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .datatable-tools {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(46, 197, 206, 0.2);
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 14px;
  }

  .login-card,
  .content,
  .sidebar {
    padding: 16px;
  }

  .kpi-grid,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .voice-form {
    grid-template-columns: 1fr;
  }

  .field-wide,
  .voice-save {
    grid-column: span 1;
  }

  .response-stats {
    grid-template-columns: 1fr;
  }

  .datatable-tools {
    grid-template-columns: 1fr;
  }

  .modal-insight-grid {
    grid-template-columns: 1fr;
  }

  .insight-card.wide {
    grid-column: span 1;
  }
}
