:root {
  color-scheme: dark;
  --canvas-w: 1710;
  --canvas-h: 949;
  --bg: #020813;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  overflow-x: auto;
  color: #f3f8ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-shell {
  width: min(100vw, 1710px);
  min-width: 1180px;
  padding: 0;
}

.dashboard-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1710 / 949;
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 20%, rgba(0, 170, 255, .11), transparent 36rem),
    linear-gradient(135deg, #020813 0%, #05131f 55%, #020713 100%);
}

.panel {
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.brand-panel {
  left: 1.7%;
  top: 1.05%;
  width: 21.5%;
  height: 5.4%;
  z-index: 3;
  overflow: visible;
}

.brand-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-static {
  position: relative;
}

.brand-bell-overlay {
  clip-path: inset(0 86.2% 0 0);
  transform-origin: 7% 57%;
  animation: brand-bell-tremble 10.5s ease-in-out infinite;
  pointer-events: none;
}

.brand-signal-overlay {
  clip-path: inset(0 78.5% 0 11.4%);
  animation: brand-signal-pulse 8.8s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity: .84;
  pointer-events: none;
}

@keyframes brand-bell-tremble {
  0%, 84%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-.7deg); }
  86% { transform: rotate(.55deg); }
  87% { transform: rotate(-.32deg); }
  88% { transform: rotate(.18deg); }
  89% { transform: rotate(0deg); }
}

@keyframes brand-signal-pulse {
  0%, 18%, 100% { opacity: .92; filter: hue-rotate(0deg) saturate(1.08) brightness(1.06); }
  35%, 48% { opacity: .42; filter: hue-rotate(118deg) saturate(1.35) brightness(.98); }
  62%, 74% { opacity: .78; filter: hue-rotate(-10deg) saturate(1.15) brightness(1.02); }
  86%, 92% { opacity: .55; filter: hue-rotate(92deg) saturate(1.25) brightness(.98); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-bell-overlay,
  .brand-signal-overlay {
    animation: none;
  }
}

.sidebar-ui {
  position: absolute;
  left: 1.052631%;
  top: 7.376185%;
  width: 12.163743%;
  height: 90.620653%;
  border: 1px solid rgba(46, 121, 178, .36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 25, 42, .96), rgba(3, 13, 25, .96)),
    radial-gradient(circle at 50% 10%, rgba(18, 187, 255, .15), transparent 12rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 35px rgba(0, 0, 0, .32);
  z-index: 2;
  padding: .82% .58%;
  display: flex;
  flex-direction: column;
  gap: 2.2%;
}

.topbar-panel {
  left: 14.152047%;
  top: 0;
  width: 85.847953%;
  height: 7.376185%;
}

.topbar-ui {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.6% 0 10.2%;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(2, 8, 18, .96), rgba(4, 13, 24, .94)),
    radial-gradient(circle at 72% 50%, rgba(20, 146, 220, .10), transparent 24rem);
  border-bottom: 1px solid rgba(49, 106, 149, .22);
}

.topbar-spacer {
  min-width: 30%;
}

.top-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.35vw, 26px);
  color: #f6f8fb;
  white-space: nowrap;
}

.top-status strong {
  font-size: clamp(12px, .9vw, 17px);
  font-weight: 760;
  line-height: 1;
}

.top-signal-bars {
  width: clamp(42px, 3.5vw, 65px);
  height: clamp(28px, 2.7vw, 48px);
  display: flex;
  align-items: end;
  gap: 8%;
}

.top-signal-bars span {
  width: 12%;
  border-radius: 3px 3px 0 0;
  background: rgba(120, 230, 70, .24);
}

.top-signal-bars span:nth-child(1) { height: 28%; }
.top-signal-bars span:nth-child(2) { height: 45%; }
.top-signal-bars span:nth-child(3) { height: 62%; }
.top-signal-bars span:nth-child(4) { height: 79%; }
.top-signal-bars span:nth-child(5) { height: 100%; }

.top-signal-bars span.active {
  background: linear-gradient(180deg, #91f15a, #c4ef52);
  box-shadow: 0 0 8px rgba(145, 241, 90, .28);
}

.top-sim-icon {
  width: clamp(24px, 2vw, 38px);
  height: clamp(24px, 2vw, 38px);
  color: #39d796;
  fill: rgba(57, 215, 150, .14);
  filter: drop-shadow(0 0 8px rgba(57, 215, 150, .25));
}

.top-sim-text {
  display: grid;
  gap: 4px;
}

.top-sim-text span,
#topClock {
  color: rgba(230, 238, 246, .72);
  font-size: clamp(10px, .72vw, 13px);
  line-height: 1.12;
}

.top-divider {
  width: 1px;
  height: clamp(26px, 2.2vw, 42px);
  background: rgba(255, 255, 255, .08);
}

.top-clock-icon {
  width: clamp(26px, 2.2vw, 42px);
  height: clamp(26px, 2.2vw, 42px);
  color: rgba(226, 236, 247, .82);
  stroke-width: 1.6;
}

#topClock {
  display: grid;
  gap: 4px;
  color: #f5f7fb;
  font-weight: 700;
}

.top-user {
  min-width: clamp(210px, 14vw, 290px);
  height: clamp(38px, 3.4vw, 58px);
  border: 0;
  background: transparent;
  color: #eaf4ff;
  display: grid;
  grid-template-columns: clamp(34px, 3.1vw, 52px) 9px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.top-user span {
  width: clamp(34px, 3.1vw, 52px);
  height: clamp(34px, 3.1vw, 52px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(22, 53, 82, .94);
  color: #dcecff;
  font-weight: 800;
  font-size: clamp(12px, .9vw, 16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.top-user b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff7d7d;
  align-self: end;
  margin: 0 0 7px -14px;
  box-shadow: 0 0 9px rgba(255, 125, 125, .65);
}

.top-user.logged-in b {
  background: #27d690;
  box-shadow: 0 0 9px rgba(39, 214, 144, .65);
}

.top-user em {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
  font-style: normal;
}

.top-user em strong,
.top-user em small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-user em strong {
  color: #f4f8ff;
  font-size: clamp(11px, .78vw, 14px);
  line-height: 1;
}

.top-user em small {
  color: rgba(220, 234, 247, .62);
  font-size: clamp(9px, .62vw, 11px);
  line-height: 1;
}

.top-user i {
  width: 16px;
  height: 16px;
  color: rgba(234, 244, 255, .72);
}

.top-logout {
  min-height: clamp(32px, 2.7vw, 44px);
  border: 1px solid rgba(255, 91, 91, .34);
  border-radius: 7px;
  background: rgba(60, 11, 18, .18);
  color: #ffb5b5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 clamp(9px, .8vw, 14px);
  font: 800 clamp(10px, .72vw, 13px)/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.top-logout[hidden] {
  display: none;
}

.top-logout:hover {
  background: rgba(255, 91, 91, .14);
  box-shadow: 0 0 14px rgba(255, 91, 91, .12);
}

.top-logout i {
  width: 16px;
  height: 16px;
}

.system-panel {
  left: 14.152047%;
  top: 7.481559%;
  width: 50.116959%;
  height: 38.040042%;
}

.status-panel {
  left: 65.380117%;
  top: 7.481559%;
  width: 32.865497%;
  height: 49.209694%;
}

.status-ui {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
  z-index: 2;
}

.status-card {
  min-width: 0;
  border: 1px solid rgba(54, 123, 170, .36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(28, 145, 220, .12), transparent 7rem),
    linear-gradient(145deg, rgba(8, 24, 40, .96), rgba(4, 15, 28, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 12px 25px rgba(0, 0, 0, .22);
  padding: 8.5% 7.2%;
  overflow: hidden;
}

.status-card h2 {
  margin: 0 0 10%;
  color: #f4f7fb;
  font-size: clamp(10px, .8vw, 15px);
  line-height: 1.05;
  font-weight: 760;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .65);
}

.status-body {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 11%;
}

.status-card strong {
  display: block;
  color: #f5f7fb;
  font-size: clamp(13px, 1.1vw, 23px);
  line-height: 1.05;
  font-weight: 780;
  white-space: nowrap;
}

.status-card span {
  display: block;
  margin-top: .25em;
  color: rgba(222, 232, 240, .78);
  font-size: clamp(9px, .68vw, 13px);
  line-height: 1.15;
  white-space: nowrap;
}

.status-card i {
  flex: 0 0 auto;
  width: clamp(34px, 3.1vw, 58px);
  height: clamp(34px, 3.1vw, 58px);
  color: #27c7ff;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 7px rgba(39, 199, 255, .35));
}

.signal-bars {
  flex: 0 0 auto;
  width: clamp(54px, 5vw, 92px);
  height: clamp(45px, 4.6vw, 78px);
  display: flex;
  align-items: end;
  gap: 9%;
}

.signal-bars span {
  width: 13%;
  margin: 0;
  border-radius: 3px 3px 0 0;
  background: rgba(34, 225, 186, .24);
  box-shadow: none;
}

.signal-bars span:nth-child(1) { height: 30%; }
.signal-bars span:nth-child(2) { height: 48%; }
.signal-bars span:nth-child(3) { height: 65%; }
.signal-bars span:nth-child(4) { height: 82%; }
.signal-bars span:nth-child(5) { height: 100%; }

.signal-bars span.active {
  background: linear-gradient(180deg, #67f978, #20d6d2);
  box-shadow: 0 0 10px rgba(49, 231, 142, .4);
}

#signalQuality,
#networkType,
#simReady,
#callState,
#ttsReady,
#audioJack,
#mqttState {
  color: #73f65d;
}

#operatorName,
#mqttMode {
  color: #67d9ff;
}

.sim-card i {
  color: #ffe451;
  fill: rgba(255, 228, 81, .18);
  filter: drop-shadow(0 0 8px rgba(255, 228, 81, .25));
}

.call-card .status-body,
.sms-card .status-body {
  gap: 9%;
}

.active-call-icon {
  flex: 0 0 auto;
  width: clamp(50px, 4.7vw, 80px);
  height: clamp(50px, 4.7vw, 80px);
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(94, 239, 93, .28));
}

.sms-message-icon {
  flex: 0 0 auto;
  width: clamp(48px, 4.45vw, 76px);
  height: clamp(48px, 4.45vw, 76px);
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(24, 174, 234, .32));
}

.round-icon {
  width: clamp(48px, 4.4vw, 76px);
  height: clamp(48px, 4.4vw, 76px);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.round-icon i {
  width: 56%;
  height: 56%;
}

.round-icon.green {
  background: rgba(59, 232, 91, .20);
}

.round-icon.green i {
  color: #69ee6b;
  fill: rgba(105, 238, 107, .16);
}

.round-icon.blue {
  background: rgba(0, 158, 227, .23);
}

.round-icon.blue i {
  color: #18aeea;
  fill: rgba(24, 174, 234, .20);
}

.audio-card i {
  color: #66f06d;
}

.temp-card i {
  color: #e9eef5;
}

.sparkline {
  width: clamp(72px, 6.3vw, 116px);
  height: clamp(36px, 3.1vw, 52px);
  overflow: visible;
}

.sparkline polyline {
  fill: none;
  stroke: #0c7db3;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(12, 125, 179, .3));
}

.cpu-card .status-body {
  justify-content: space-between;
  gap: 7%;
}

.ram-card .status-body {
  justify-content: space-between;
  gap: 8%;
  align-items: flex-start;
  padding-top: 0;
}

.ram-card h2 {
  margin-bottom: 4%;
}

.ram-ring {
  --ram: 38%;
  flex: 0 0 auto;
  width: clamp(44px, 3.8vw, 62px);
  height: clamp(44px, 3.8vw, 62px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translateY(-18%);
  background:
    radial-gradient(circle, #071728 56%, transparent 57%),
    conic-gradient(#9be85a var(--ram), rgba(25, 48, 69, .95) 0);
  box-shadow: inset 0 0 0 8px rgba(18, 42, 62, .75), 0 0 10px rgba(155, 232, 90, .12);
}

.ram-ring span {
  margin: 0;
  color: #f5f8fb;
  font-size: clamp(12px, .95vw, 18px);
  font-weight: 800;
}

.uptime-card .status-body {
  gap: 8%;
}

.uptime-card i {
  color: #e5ebf2;
}

.flow-panel {
  left: 14.152047%;
  top: 46.786091%;
  width: 27.426901%;
  height: 20.758694%;
}

.console-panel {
  left: 14.152047%;
  top: 68.493151%;
  width: 27.426901%;
  height: 27.608008%;
}

.events-panel {
  left: 42.339181%;
  top: 46.786091%;
  width: 21.929825%;
  height: 49.209694%;
}

.map-panel {
  left: 65.204678%;
  top: 56.25%;
  width: 33.040936%;
  height: 40.2%;
}

.lbs-panel {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 7px;
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid rgba(54, 123, 170, .36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 52% 48%, rgba(0, 204, 186, .16), transparent 12rem),
    linear-gradient(145deg, rgba(8, 24, 40, .96), rgba(4, 15, 28, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 12px 25px rgba(0, 0, 0, .22);
  color: #f4f8ff;
  overflow: hidden;
}

.lbs-panel header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}

.lbs-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lbs-panel header p,
.lbs-panel header h2,
.lbs-panel h3,
.lbs-panel dl,
.lbs-note {
  margin: 0;
}

.lbs-panel header p {
  color: #39ddff;
  font-size: clamp(8px, .52vw, 11px);
  text-transform: uppercase;
}

.lbs-panel header h2 {
  margin-top: 2px;
  font-size: clamp(11px, .78vw, 14px);
  line-height: 1.05;
}

.lbs-panel header span {
  color: rgba(207, 225, 238, .64);
  font-size: clamp(8px, .52vw, 10px);
  white-space: nowrap;
}

.lbs-header-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(36, 211, 255, .34);
  border-radius: 7px;
  background: rgba(8, 41, 66, .82);
  color: #f4f8ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(37, 210, 255, .08);
}

.lbs-header-actions button:hover {
  border-color: rgba(52, 226, 255, .70);
  background: rgba(10, 62, 95, .92);
  box-shadow: 0 0 18px rgba(37, 210, 255, .20);
}

.lbs-header-actions button i {
  width: 16px;
  height: 16px;
}

.lbs-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  grid-template-rows: 104px minmax(0, 1fr);
  gap: 7px;
}

.lbs-card,
.lbs-map-card {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(72, 154, 205, .22);
  border-radius: 7px;
  background: rgba(2, 18, 32, .58);
  padding: 7px 8px;
  overflow: hidden;
}

.lbs-card h3 {
  color: rgba(244, 248, 255, .92);
  font-size: clamp(9px, .62vw, 12px);
  line-height: 1.05;
  margin-bottom: 4px;
}

.lbs-card dl,
.lbs-map-card dl {
  display: grid;
  gap: 2px;
}

.lbs-card dl div,
.lbs-map-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
}

.lbs-card dt,
.lbs-map-card dt {
  color: rgba(190, 205, 218, .66);
  font-size: clamp(8px, .52vw, 10px);
  white-space: nowrap;
}

.lbs-card dd,
.lbs-map-card dd {
  margin: 0;
  color: #f4f8ff;
  font-size: clamp(8px, .56vw, 11px);
  font-weight: 760;
  text-align: right;
  overflow-wrap: anywhere;
}

.lbs-signal-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal-bars.small {
  width: clamp(36px, 3vw, 56px);
  height: clamp(24px, 2vw, 32px);
}

.lbs-signal-line strong {
  display: block;
  color: #f8fbff;
  font-size: clamp(12px, .86vw, 17px);
  line-height: 1.05;
}

.lbs-signal-line span {
  display: block;
  margin-top: 2px;
  color: #74f95f;
  font-size: clamp(8px, .54vw, 11px);
}

.signal-range {
  display: flex;
  gap: 4px;
  margin: 5px 0 3px;
}

.signal-range button,
.lbs-actions button,
.lbs-actions a {
  border: 1px solid rgba(36, 211, 255, .28);
  border-radius: 6px;
  background: rgba(8, 41, 66, .78);
  color: #f4f8ff;
  cursor: pointer;
}

.signal-range button {
  min-width: 30px;
  min-height: 18px;
  font-size: 9px;
}

.signal-range button.active {
  color: #0b1723;
  background: linear-gradient(180deg, #67f978, #20d6d2);
}

.signal-history {
  width: 100%;
  height: 18px;
  overflow: visible;
}

.signal-history polyline {
  fill: none;
  stroke: #79f75f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(121, 247, 95, .35));
}

.lbs-map-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .82fr);
  gap: 8px;
}

.lbs-map {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(72, 154, 205, .22);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(11, 30, 48, .78);
}

#lbsLeafletMap {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #071728;
}

#lbsLeafletMap .leaflet-tile {
  filter: saturate(.55) hue-rotate(155deg) brightness(.42) contrast(1.28);
}

#lbsLeafletMap .leaflet-control-attribution {
  background: rgba(3, 14, 25, .62);
  color: rgba(226, 240, 250, .62);
  font-size: 8px;
}

#lbsLeafletMap .leaflet-control-attribution a {
  color: rgba(69, 232, 255, .78);
}

.lbs-map-state {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  border: 1px solid rgba(37, 210, 255, .26);
  border-radius: 6px;
  background: rgba(2, 14, 26, .78);
  color: rgba(244, 248, 255, .88);
  padding: 5px 7px;
  font-size: clamp(8px, .52vw, 10px);
  line-height: 1.2;
  pointer-events: none;
}

.lbs-leaflet-marker {
  width: 18px;
  height: 18px;
  border: 2px solid #071728;
  border-radius: 50%;
  background: #25e9ce;
  box-shadow: 0 0 0 8px rgba(37, 233, 206, .18), 0 0 18px rgba(37, 233, 206, .6);
}

.lbs-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.lbs-actions button,
.lbs-actions a {
  min-width: 0;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 7px;
  font: 760 clamp(8px, .56vw, 11px)/1.05 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
}

.lbs-actions button i,
.lbs-actions a i {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.lbs-note {
  color: rgba(210, 225, 238, .70);
  font-size: clamp(8px, .52vw, 10px);
  line-height: 1.25;
}

.lbs-note.error {
  color: #ff8e8e;
}

.lbs-expanded .system-panel,
.lbs-expanded .status-panel,
.lbs-expanded .flow-panel,
.lbs-expanded .console-panel,
.lbs-expanded .events-panel {
  display: none;
}

.lbs-expanded .map-panel.lbs-panel {
  left: 14.152047%;
  top: 7.481559%;
  width: 84.093567%;
  height: 88.620653%;
  z-index: 14;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at 52% 48%, rgba(0, 204, 186, .18), transparent 32rem),
    linear-gradient(145deg, rgba(8, 24, 40, .98), rgba(4, 15, 28, .99));
  box-shadow: 0 0 32px rgba(0, 214, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.lbs-expanded .lbs-panel header p {
  font-size: clamp(11px, .72vw, 14px);
  font-weight: 800;
}

.lbs-expanded .lbs-panel header h2 {
  font-size: clamp(24px, 1.65vw, 34px);
}

.lbs-expanded .lbs-panel header span {
  font-size: clamp(12px, .76vw, 15px);
}

.lbs-expanded .lbs-header-actions button {
  width: 40px;
  height: 40px;
}

.lbs-expanded .lbs-header-actions button i {
  width: 20px;
  height: 20px;
}

.lbs-expanded .lbs-grid {
  grid-template-columns: minmax(260px, .78fr) minmax(280px, .82fr) minmax(0, 1.65fr);
  grid-template-rows: minmax(160px, .34fr) minmax(0, 1fr);
  gap: 12px;
}

.lbs-expanded .lbs-map-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 2.25fr) minmax(260px, .75fr);
  gap: 14px;
}

.lbs-expanded .lbs-card,
.lbs-expanded .lbs-map-card {
  padding: 14px 16px;
  border-radius: 8px;
}

.lbs-expanded .lbs-card h3 {
  font-size: clamp(16px, 1vw, 21px);
  margin-bottom: 10px;
}

.lbs-expanded .lbs-card dl,
.lbs-expanded .lbs-map-card dl {
  gap: 8px;
}

.lbs-expanded .lbs-card dt,
.lbs-expanded .lbs-map-card dt {
  font-size: clamp(13px, .82vw, 17px);
}

.lbs-expanded .lbs-card dd,
.lbs-expanded .lbs-map-card dd {
  font-size: clamp(14px, .92vw, 19px);
}

.lbs-expanded .lbs-signal-line {
  gap: 18px;
}

.lbs-expanded .signal-bars.small {
  width: clamp(72px, 5.3vw, 108px);
  height: clamp(48px, 3.6vw, 68px);
}

.lbs-expanded .lbs-signal-line strong {
  font-size: clamp(28px, 1.9vw, 40px);
}

.lbs-expanded .lbs-signal-line span {
  font-size: clamp(14px, .92vw, 18px);
}

.lbs-expanded .signal-range {
  gap: 8px;
  margin: 12px 0 8px;
}

.lbs-expanded .signal-range button {
  min-width: 58px;
  min-height: 34px;
  font-size: clamp(13px, .78vw, 16px);
}

.lbs-expanded .signal-history {
  height: 54px;
}

.lbs-expanded .lbs-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lbs-expanded .at-console {
  display: none;
}

.lbs-expanded .lbs-actions button,
.lbs-expanded .lbs-actions a {
  min-height: 52px;
  border-radius: 8px;
  gap: 12px;
  font-size: clamp(14px, .9vw, 18px);
}

.lbs-expanded .lbs-actions button i,
.lbs-expanded .lbs-actions a i {
  width: 30px;
  height: 30px;
}

.lbs-expanded .lbs-note {
  font-size: clamp(13px, .82vw, 16px);
}

.lbs-expanded #lbsLeafletMap .leaflet-control-attribution {
  font-size: 10px;
}

.lbs-expanded .lbs-map-state {
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  font-size: clamp(13px, .82vw, 16px);
}

.side-nav {
  display: grid;
  gap: 4px;
}

.nav-link {
  width: 100%;
  min-height: 4.9%;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(245, 250, 255, .88);
  cursor: pointer;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 7px;
  text-align: left;
  font: 650 clamp(9px, .72vw, 13px)/1.1 Inter, ui-sans-serif, system-ui, sans-serif;
  transition: background-color .16s ease, box-shadow .16s ease, border-color .16s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(90deg, rgba(0, 185, 255, .30), rgba(14, 78, 126, .16));
  box-shadow: inset 3px 0 0 rgba(18, 207, 255, .96), 0 0 18px rgba(18, 207, 255, .10);
  transition: opacity .16s ease;
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  opacity: .62;
}

.nav-link.active::before {
  opacity: .86;
}

.nav-link i,
.nav-link span,
.nav-link b {
  position: relative;
  z-index: 1;
}

.nav-link i {
  width: clamp(17px, 1.25vw, 23px);
  height: clamp(17px, 1.25vw, 23px);
  color: rgba(245, 250, 255, .82);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .12));
}

.nav-link.active i,
.nav-link:hover i {
  color: #12d2ff;
}

.nav-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.nav-link b {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31e78e;
  box-shadow: 0 0 10px rgba(49, 231, 142, .82);
}

.nav-link:focus-visible {
  outline: 2px solid #13d8ff;
  outline-offset: -2px;
}

.module-widget {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 2.5%;
  min-height: 25.8%;
  border: 1px solid rgba(79, 146, 189, .28);
  border-radius: 8px;
  background: rgba(5, 20, 34, .82);
  padding: 10px 11px;
  color: rgba(243, 248, 255, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.module-widget p,
.module-widget h2,
.module-widget dl {
  margin: 0;
}

.module-widget p {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9cf96b;
  font-size: clamp(10px, .72vw, 13px);
}

.module-widget p span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7dff51;
  box-shadow: 0 0 12px rgba(125, 255, 81, .85);
}

.module-widget h2 {
  margin: 2px 0 10px 19px;
  font-size: clamp(10px, .75vw, 13px);
  font-weight: 500;
}

.module-widget dl {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.module-widget dt {
  color: rgba(190, 205, 218, .72);
  font-size: clamp(9px, .62vw, 11px);
}

.module-widget dd {
  margin: -2px 0 5px;
  color: rgba(245, 250, 255, .88);
  font-size: clamp(10px, .68vw, 12px);
}

.locator-page {
  --locator-side-width: 31%;
  --locator-bottom-height: 24%;
  position: absolute;
  left: 14.152047%;
  top: 7.481559%;
  width: 84.093567%;
  height: 88.514226%;
  z-index: 12;
  display: none;
  grid-template-columns: minmax(460px, 1fr) minmax(250px, var(--locator-side-width));
  grid-template-rows: auto minmax(230px, 1fr) minmax(150px, var(--locator-bottom-height));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(54, 123, 170, .36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 43% 39%, rgba(0, 204, 186, .13), transparent 30rem),
    linear-gradient(145deg, rgba(6, 21, 36, .98), rgba(3, 12, 24, .98));
  box-shadow: 0 0 32px rgba(0, 214, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .04);
  color: #f4f8ff;
}

.view-locator .system-panel,
.view-locator .status-panel,
.view-locator .flow-panel,
.view-locator .console-panel,
.view-locator .events-panel,
.view-locator .map-panel,
.view-calls .system-panel,
.view-calls .status-panel,
.view-calls .flow-panel,
.view-calls .console-panel,
.view-calls .events-panel,
.view-calls .map-panel,
.view-sms .system-panel,
.view-sms .status-panel,
.view-sms .flow-panel,
.view-sms .console-panel,
.view-sms .events-panel,
.view-sms .map-panel,
.view-voice .system-panel,
.view-voice .status-panel,
.view-voice .flow-panel,
.view-voice .console-panel,
.view-voice .events-panel,
.view-voice .map-panel,
.view-admin .system-panel,
.view-admin .status-panel,
.view-admin .flow-panel,
.view-admin .console-panel,
.view-admin .events-panel,
.view-admin .map-panel {
  display: none;
}

.view-locator .locator-page {
  display: grid;
}

.view-sms .sms-workbench,
.view-calls .calls-page,
.view-voice .voice-page,
.view-admin .admin-page {
  display: grid;
}

.locator-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.locator-header p,
.locator-header h1,
.locator-card h2,
.locator-card dl,
.locator-bottom h2,
.locator-bottom dl,
.locator-tool-status {
  margin: 0;
}

.locator-header p {
  color: #39ddff;
  font-size: clamp(11px, .72vw, 14px);
  font-weight: 800;
  text-transform: uppercase;
}

.locator-header h1 {
  margin-top: 4px;
  font-size: clamp(24px, 1.9vw, 38px);
  line-height: 1.02;
  letter-spacing: 0;
}

.locator-live {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(220, 235, 248, .78);
  font-size: clamp(11px, .76vw, 14px);
  white-space: nowrap;
}

.locator-live span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #7dff51;
  box-shadow: 0 0 13px rgba(125, 255, 81, .78);
}

.locator-map-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(72, 154, 205, .24);
  border-radius: 8px;
  overflow: hidden;
  background: #071728;
}

.locator-resize-edge,
.locator-resize-corner {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(75, 221, 255, .44);
  background: rgba(3, 20, 35, .70);
  color: #eaf8ff;
  opacity: .72;
}

.locator-resize-edge {
  right: 0;
  top: 0;
  width: 12px;
  height: 100%;
  border-width: 0 0 0 1px;
  border-radius: 0;
  cursor: ew-resize;
}

.locator-resize-corner {
  right: 9px;
  bottom: 9px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  cursor: nwse-resize;
}

.locator-resize-corner::before,
.locator-resize-corner::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 12px;
  height: 2px;
  background: rgba(125, 242, 255, .9);
  transform: rotate(-45deg);
  transform-origin: right center;
}

.locator-resize-corner::after {
  right: 6px;
  bottom: 11px;
  width: 8px;
}

#locatorLeafletMap {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #071728;
}

#locatorLeafletMap .leaflet-tile {
  filter: saturate(.62) hue-rotate(155deg) brightness(.48) contrast(1.22);
}

#locatorLeafletMap .leaflet-control-attribution {
  background: rgba(3, 14, 25, .62);
  color: rgba(226, 240, 250, .62);
  font-size: 9px;
}

#locatorLeafletMap .leaflet-control-attribution a {
  color: rgba(69, 232, 255, .78);
}

.locator-map-note {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border: 1px solid rgba(37, 210, 255, .28);
  border-radius: 7px;
  background: rgba(2, 14, 26, .80);
  color: rgba(244, 248, 255, .90);
  padding: 8px 10px;
  font-size: clamp(10px, .68vw, 13px);
  line-height: 1.25;
  pointer-events: none;
}

.locator-side {
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.locator-card,
.locator-bottom article {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(72, 154, 205, .24);
  border-radius: 8px;
  background: rgba(2, 18, 32, .70);
  padding: 12px;
  overflow: hidden;
}

.locator-card h2,
.locator-bottom h2 {
  color: rgba(244, 248, 255, .94);
  font-size: clamp(13px, .86vw, 17px);
  line-height: 1.05;
  margin-bottom: 10px;
}

.locator-card dl,
.locator-bottom dl {
  display: grid;
  gap: 7px;
}

.locator-card dl div,
.locator-bottom dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.locator-card dt,
.locator-bottom dt {
  color: rgba(190, 205, 218, .68);
  font-size: clamp(10px, .66vw, 13px);
  white-space: nowrap;
}

.locator-card dd,
.locator-bottom dd {
  margin: 0;
  color: #f4f8ff;
  font-size: clamp(10px, .72vw, 14px);
  font-weight: 780;
  text-align: right;
  overflow-wrap: anywhere;
}

.locator-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.locator-links a,
.locator-tools button {
  min-height: 32px;
  border: 1px solid rgba(36, 211, 255, .30);
  border-radius: 7px;
  background: rgba(8, 41, 66, .78);
  color: #f4f8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  cursor: pointer;
  font: 760 clamp(10px, .68vw, 13px)/1 Inter, ui-sans-serif, system-ui, sans-serif;
}

.locator-signal-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.locator-signal-main strong {
  display: block;
  font-size: clamp(19px, 1.35vw, 28px);
  line-height: 1;
}

.locator-signal-main span {
  display: block;
  margin-top: 4px;
  color: #74f95f;
  font-size: clamp(11px, .75vw, 14px);
}

.locator-signal svg {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  overflow: visible;
}

.locator-signal polyline {
  fill: none;
  stroke: #79f75f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(121, 247, 95, .35));
}

.locator-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.locator-tools button i {
  width: 16px;
  height: 16px;
}

#locatorToolStatus {
  margin: 10px 0 0;
  color: rgba(210, 225, 238, .72);
  font-size: clamp(10px, .66vw, 12px);
  line-height: 1.25;
}

.btsearch-marker {
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 16%, transparent 17%),
    conic-gradient(#ffb23a 0 25%, #e33a98 0 50%, #52c276 0 75%, #5e7cff 0);
  border: 2px solid rgba(244, 248, 255, .92);
  box-shadow: 0 0 0 6px rgba(37, 233, 206, .14), 0 0 18px rgba(37, 233, 206, .38);
}

.btsearch-popup {
  min-width: 280px;
  max-width: 340px;
  color: #edf6ff;
}

#locatorLeafletMap .leaflet-popup-content-wrapper,
#locatorLeafletMap .leaflet-popup-tip,
#lbsLeafletMap .leaflet-popup-content-wrapper,
#lbsLeafletMap .leaflet-popup-tip {
  background: rgba(5, 14, 25, .98) !important;
  color: #edf6ff !important;
  border: 1px solid rgba(76, 190, 232, .32) !important;
  box-shadow: 0 0 28px rgba(0, 214, 255, .18) !important;
}

#locatorLeafletMap .leaflet-popup-content,
#lbsLeafletMap .leaflet-popup-content {
  margin: 12px 14px;
  color: #edf6ff !important;
}

#locatorLeafletMap .leaflet-popup-close-button,
#lbsLeafletMap .leaflet-popup-close-button {
  color: rgba(236, 246, 255, .8);
}

.btsearch-popup strong {
  display: block;
  color: #66f1ff;
  margin-bottom: 4px;
}

.btsearch-popup span {
  display: block;
  color: rgba(230, 241, 250, .72);
  font-size: 12px;
  line-height: 1.35;
}

.btsearch-popup .btsearch-match-note {
  margin-top: 8px;
  color: #ffe1a2;
  font-weight: 850;
}

.btsearch-popup a {
  display: inline-flex;
  margin-top: 9px;
  color: #55eaff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.btsearch-popup-rows {
  display: grid;
  gap: 0;
  margin: 9px -10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.btsearch-popup-row {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.btsearch-popup-row:last-child {
  border-bottom: 0;
}

.btsearch-popup-row.matched {
  background: rgba(246, 172, 53, .16);
  box-shadow: inset 3px 0 0 rgba(246, 172, 53, .72);
}

.btsearch-popup-row .btsearch-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 2px;
  background: #f5aa35;
}

.btsearch-popup-row b {
  color: #f4f8ff;
  font-size: 13px;
  line-height: 1.2;
}

.btsearch-popup-row small {
  display: inline-block;
  margin-left: 7px;
  color: rgba(225, 234, 242, .70);
  font-size: 11px;
  font-weight: 750;
}

.btsearch-popup-row p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 5px 0 0;
}

.btsearch-popup-row em {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  color: rgba(230, 240, 248, .76);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

#locatorToolStatus.error {
  color: #ff8e8e;
}

.locator-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 12px;
  min-height: 0;
}

.locator-bottom pre {
  height: calc(100% - 25px);
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #8cff72;
  font: 600 clamp(9px, .62vw, 12px)/1.38 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 1180px) {
  body {
    place-items: start;
  }
}

.sms-workbench {
  position: absolute;
  left: 14.152047%;
  top: 7.481559%;
  width: 84.093567%;
  height: 88.514226%;
  z-index: 21;
  display: none;
  grid-template-columns: 31% minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(37, 210, 255, .34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 44% 38%, rgba(0, 214, 255, .12), transparent 29rem),
    linear-gradient(145deg, rgba(3, 16, 28, .985), rgba(8, 35, 54, .97));
  box-shadow: 0 0 28px rgba(0, 214, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #f4f8ff;
}

.sms-workbench.visible {
  display: grid;
}

.sms-workbench header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sms-workbench header p,
.sms-workbench header h2,
.sms-compose label,
.sms-item p {
  margin: 0;
}

.sms-workbench header p {
  color: #39ddff;
  font-size: 12px;
  text-transform: uppercase;
}

.sms-workbench header h2 {
  font-size: clamp(26px, 2vw, 42px);
  line-height: 1;
}

.sms-workbench button {
  border: 1px solid rgba(36, 211, 255, .28);
  border-radius: 7px;
  background: rgba(8, 41, 66, .78);
  color: #f4f8ff;
  cursor: pointer;
}

.sms-workbench header button {
  width: 36px;
  height: 36px;
}

.sms-compose {
  display: grid;
  gap: 14px;
  align-self: start;
}

.sms-compose.locked {
  opacity: .45;
  pointer-events: none;
}

.sms-login {
  display: grid;
  gap: 9px;
  align-self: start;
  border: 1px solid rgba(72, 154, 205, .22);
  border-radius: 7px;
  background: rgba(2, 18, 32, .74);
  padding: 10px;
}

.sms-login.hidden {
  display: none;
}

.sms-login label {
  display: grid;
  gap: 5px;
  color: rgba(220, 234, 247, .78);
  font-size: 12px;
}

.sms-login input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(72, 154, 205, .32);
  border-radius: 7px;
  background: rgba(1, 13, 25, .72);
  color: #f5fbff;
  padding: 9px 10px;
  font: inherit;
}

.sms-login button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
}

.sms-compose label {
  display: grid;
  gap: 8px;
  color: rgba(220, 234, 247, .78);
  font-size: clamp(13px, .86vw, 16px);
}

.sms-compose label span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.sms-compose label b {
  color: rgba(57, 221, 255, .86);
  font-weight: 500;
}

.sms-compose input,
.sms-compose textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(72, 154, 205, .32);
  border-radius: 7px;
  background: rgba(1, 13, 25, .72);
  color: #f5fbff;
  padding: 12px 14px;
  font: 650 clamp(13px, .86vw, 16px)/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

.sms-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sms-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  font-size: clamp(13px, .86vw, 16px);
}

.sms-actions i,
.sms-workbench header i {
  width: 17px;
  height: 17px;
}

.sms-status {
  align-self: start;
  min-height: 20px;
  color: #85ff6a;
  font-size: clamp(12px, .76vw, 15px);
}

.sms-status.error {
  color: #ff7d7d;
}

.sms-maintenance {
  display: grid;
  gap: 7px;
  align-self: start;
  border: 1px solid rgba(255, 174, 66, .28);
  border-radius: 7px;
  background: rgba(42, 20, 2, .28);
  padding: 10px;
}

.sms-maintenance button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-color: rgba(255, 174, 66, .42);
  color: #ffe0a3;
}

.sms-maintenance button:hover {
  background: rgba(255, 174, 66, .14);
}

.sms-maintenance button#smsClearAll {
  border-color: rgba(255, 91, 91, .42);
  color: #ffb5b5;
}

.sms-maintenance button#smsClearAll:hover {
  background: rgba(255, 91, 91, .14);
}

.sms-maintenance i {
  width: 17px;
  height: 17px;
}

.sms-maintenance p {
  margin: 0;
  color: rgba(224, 234, 244, .66);
  font-size: 12px;
  line-height: 1.35;
}

.sms-lists {
  grid-row: 2 / 4;
  grid-column: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  gap: 9px;
}

.sms-list-group {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  overflow: hidden;
}

.sms-list-group h3 {
  margin: 0;
  color: rgba(238, 247, 255, .9);
  font-size: clamp(14px, .9vw, 18px);
  line-height: 1.1;
  letter-spacing: 0;
}

.sms-list-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding: 0 3px 1px 0;
}

.sms-item,
.sms-empty {
  min-width: 0;
  border: 1px solid rgba(72, 154, 205, .22);
  border-radius: 7px;
  background: rgba(2, 18, 32, .74);
  padding: 11px;
}

.sms-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  min-width: 0;
}

.sms-item-head span {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.sms-item strong {
  min-width: 0;
  color: #45e8ff;
  overflow-wrap: anywhere;
}

.sms-item.sent {
  border-color: rgba(132, 255, 92, .26);
  background: rgba(7, 35, 28, .64);
}

.sms-item.sent strong {
  color: #98ff65;
}

.sms-item span,
.sms-empty {
  color: rgba(211, 225, 238, .66);
  font-size: clamp(11px, .72vw, 13px);
}

.sms-item p {
  color: rgba(247, 251, 255, .88);
  font-size: clamp(12px, .78vw, 15px);
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sms-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 7px;
}

.sms-item-actions button {
  width: 28px;
  height: 26px;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.sms-item-actions i {
  width: 14px;
  height: 14px;
}

.sms-item-actions button[data-sms-reply] {
  color: #7df2ff;
}

.sms-item-actions button[data-sms-delete-kind] {
  color: #ffb5b5;
}

.voice-page,
.admin-page {
  position: absolute;
  left: 14.152047%;
  top: 7.481559%;
  width: 84.093567%;
  height: 88.514226%;
  z-index: 21;
  display: none;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(54, 123, 170, .36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 43% 39%, rgba(0, 204, 186, .13), transparent 30rem),
    linear-gradient(145deg, rgba(6, 21, 36, .985), rgba(3, 12, 24, .985));
  box-shadow: 0 0 32px rgba(0, 214, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .04);
  color: #f4f8ff;
}

.voice-page {
  grid-template-columns: 42% minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) 27%;
}

.admin-page {
  grid-template-columns: minmax(300px, 34%) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: auto;
}

.calls-page {
  position: absolute;
  left: 14.152047%;
  top: 7.481559%;
  width: 84.093567%;
  height: 88.514226%;
  z-index: 21;
  display: none;
  grid-template-columns: 34% minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) 32%;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(54, 123, 170, .36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 42% 35%, rgba(0, 214, 255, .12), transparent 29rem),
    linear-gradient(145deg, rgba(6, 21, 36, .985), rgba(3, 12, 24, .985));
  box-shadow: 0 0 32px rgba(0, 214, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .04);
  color: #f4f8ff;
}

.workspace-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.workspace-header p,
.workspace-header h1,
.workspace-card h2,
.workspace-status {
  margin: 0;
}

.workspace-header p {
  color: #62defb;
  font-size: clamp(11px, .72vw, 14px);
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.workspace-header h1 {
  margin-top: 3px;
  font-size: clamp(26px, 2vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.workspace-live {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(220, 234, 247, .76);
  font-size: clamp(12px, .78vw, 15px);
}

.workspace-live span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8cff64;
  box-shadow: 0 0 18px rgba(140, 255, 100, .75);
}

.workspace-card {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(72, 154, 205, .28);
  border-radius: 8px;
  background: rgba(2, 15, 29, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  padding: 16px;
}

.workspace-card h2 {
  margin-bottom: 13px;
  font-size: clamp(16px, 1.05vw, 22px);
}

.voice-editor {
  display: grid;
  gap: 12px;
  align-content: start;
}

.voice-editor label,
.admin-user-form {
  min-width: 0;
}

.voice-editor label {
  display: grid;
  gap: 7px;
  color: rgba(220, 234, 247, .76);
  font-size: clamp(12px, .78vw, 15px);
}

.voice-editor input,
.voice-editor textarea,
.voice-editor select,
.call-dialer input,
.admin-user-form input,
.admin-user-form select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(72, 154, 205, .32);
  border-radius: 7px;
  background: rgba(1, 13, 25, .78);
  color: #f5fbff;
  padding: 11px 12px;
  font: 650 clamp(12px, .78vw, 15px)/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

.call-dialer,
.call-audio,
.call-contacts,
.call-recordings {
  display: grid;
  align-content: start;
  gap: 12px;
}

.call-dialer label {
  display: grid;
  gap: 7px;
  color: rgba(220, 234, 247, .76);
  font-size: clamp(12px, .78vw, 15px);
}

.call-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.call-actions button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(36, 211, 255, .30);
  border-radius: 7px;
  background: rgba(8, 41, 66, .78);
  color: #f4f8ff;
  cursor: pointer;
  font: 800 clamp(12px, .78vw, 15px)/1.05 Inter, ui-sans-serif, system-ui, sans-serif;
}

.call-actions button i {
  width: 18px;
  height: 18px;
}

.call-audio {
  grid-column: 2;
  grid-row: 2;
}

.call-audio-bridge {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.call-audio-bridge button,
.call-save-settings {
  min-height: 38px;
  border: 1px solid rgba(36, 211, 255, .30);
  border-radius: 7px;
  background: rgba(8, 41, 66, .78);
  color: #f4f8ff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 800 clamp(11px, .72vw, 14px)/1.05 Inter, ui-sans-serif, system-ui, sans-serif;
}

.call-audio-bridge button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.call-audio-bridge i,
.call-save-settings i {
  width: 17px;
  height: 17px;
}

#callLocalMonitor {
  width: 100%;
  min-height: 34px;
}

.call-audio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.call-audio-grid article {
  border: 1px solid rgba(72, 154, 205, .22);
  border-radius: 8px;
  background: rgba(2, 18, 32, .64);
  padding: 12px;
}

.call-audio-grid i {
  width: 28px;
  height: 28px;
  color: #42e6ff;
  margin-bottom: 8px;
}

.call-audio-grid strong,
.call-audio-grid span {
  display: block;
}

.call-audio-grid span,
.call-switches {
  color: rgba(211, 225, 238, .68);
  font-size: clamp(11px, .72vw, 14px);
  line-height: 1.35;
}

.call-switches {
  display: grid;
  gap: 8px;
}

.call-switches label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.call-voice-answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border-top: 1px solid rgba(72, 154, 205, .18);
  padding-top: 10px;
}

.call-voice-answer label {
  display: grid;
  gap: 6px;
  color: rgba(220, 234, 247, .76);
  font-size: clamp(11px, .72vw, 14px);
}

.call-voice-answer select {
  min-width: 0;
  border: 1px solid rgba(72, 154, 205, .32);
  border-radius: 7px;
  background: rgba(1, 13, 25, .78);
  color: #f5fbff;
  padding: 10px 12px;
  font: 650 clamp(12px, .78vw, 15px)/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

.call-voice-answer button {
  min-height: 42px;
  border: 1px solid rgba(36, 211, 255, .30);
  border-radius: 7px;
  background: rgba(8, 41, 66, .78);
  color: #f4f8ff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  font: 800 clamp(11px, .72vw, 14px)/1.05 Inter, ui-sans-serif, system-ui, sans-serif;
}

.call-contacts {
  grid-column: 1;
  grid-row: 3;
  min-height: 0;
  overflow: hidden;
}

.call-recordings {
  grid-column: 2;
  grid-row: 3;
  min-height: 0;
  overflow: hidden;
}

.call-contact-list,
.call-recording-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
}

.call-contact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(72, 154, 205, .22);
  border-radius: 8px;
  background: rgba(2, 18, 32, .74);
  padding: 10px;
}

.call-recording-item {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(72, 154, 205, .22);
  border-radius: 8px;
  background: rgba(2, 18, 32, .74);
  padding: 10px;
}

.call-recording-item header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.call-recording-item strong {
  color: #f5fbff;
}

.call-recording-item span {
  color: rgba(211, 225, 238, .68);
  font-size: 12px;
}

.call-recording-item audio {
  width: 100%;
  min-height: 34px;
}

.call-recording-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.call-recording-actions a,
.call-recording-actions button {
  min-height: 28px;
  border: 1px solid rgba(36, 211, 255, .24);
  border-radius: 6px;
  background: rgba(8, 41, 66, .70);
  color: #f4f8ff;
  padding: 6px 9px;
  text-decoration: none;
  cursor: pointer;
  font: 750 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
}

.call-contact-item strong,
.call-contact-item span {
  display: block;
}

.call-contact-item span {
  color: rgba(211, 225, 238, .68);
  font-size: 12px;
}

.call-contact-item button {
  min-height: 30px;
  border: 1px solid rgba(36, 211, 255, .24);
  border-radius: 6px;
  background: rgba(8, 41, 66, .70);
  color: #f4f8ff;
  cursor: pointer;
}

.voice-controls {
  display: grid;
  grid-template-columns: 1fr 1.2fr .8fr;
  gap: 10px;
}

.workspace-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.workspace-actions button,
.admin-user-form button {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(36, 211, 255, .30);
  border-radius: 7px;
  background: rgba(8, 41, 66, .78);
  color: #f4f8ff;
  cursor: pointer;
  font: 800 clamp(11px, .72vw, 14px)/1.05 Inter, ui-sans-serif, system-ui, sans-serif;
}

.workspace-actions button i,
.admin-user-form button i {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.workspace-actions button:hover,
.admin-user-form button:hover {
  border-color: rgba(64, 227, 255, .56);
  box-shadow: 0 0 14px rgba(0, 214, 255, .14);
}

.workspace-status {
  color: rgba(210, 225, 238, .72);
  font-size: clamp(11px, .72vw, 14px);
  line-height: 1.35;
}

.workspace-status.error {
  color: #ff8e8e;
}

.voice-audio-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.voice-audio-preview:empty {
  display: none;
}

.voice-audio-preview audio,
.voice-item audio {
  width: 100%;
  min-width: 0;
  height: 34px;
  margin-top: 8px;
}

.voice-audio-preview a {
  color: #55eaff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.voice-library {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.voice-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 4px;
}

.voice-item {
  border: 1px solid rgba(72, 154, 205, .24);
  border-radius: 8px;
  background: rgba(2, 18, 32, .74);
  padding: 12px;
}

.voice-item header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.voice-item strong {
  color: #45e8ff;
}

.voice-item p {
  margin: 0;
  color: rgba(247, 251, 255, .86);
  font-size: clamp(12px, .78vw, 15px);
  line-height: 1.35;
  white-space: pre-wrap;
}

.voice-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.voice-item-actions button {
  min-height: 28px;
  border: 1px solid rgba(36, 211, 255, .24);
  border-radius: 6px;
  background: rgba(8, 41, 66, .70);
  color: #f4f8ff;
  cursor: pointer;
}

.voice-engines {
  grid-column: 1 / -1;
  overflow: hidden;
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.engine-grid article {
  min-width: 0;
  border: 1px solid rgba(72, 154, 205, .20);
  border-radius: 8px;
  background: rgba(2, 18, 32, .54);
  padding: 12px;
}

.engine-grid strong,
.engine-grid span {
  display: block;
}

.engine-grid strong {
  color: #7df2ff;
  margin-bottom: 5px;
}

.engine-grid span {
  color: rgba(211, 225, 238, .68);
  font-size: clamp(11px, .7vw, 13px);
  line-height: 1.35;
}

.account-card,
.password-card,
.session-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.account-form {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.password-form {
  grid-template-columns: 1fr;
}

.account-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: rgba(220, 234, 247, .76);
  font-size: 12px;
}

.account-form label span {
  font-weight: 700;
}

.account-form input,
.admin-user-form input,
.admin-user-form select {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(72, 154, 205, .30);
  border-radius: 7px;
  background: rgba(1, 13, 25, .72);
  color: #f5fbff;
  padding: 10px 11px;
  font: inherit;
}

.account-form button {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
}

.account-form button i {
  width: 17px;
  height: 17px;
}

.session-actions {
  display: grid;
  gap: 12px;
}

.session-actions p {
  margin: 0;
  color: rgba(220, 234, 247, .72);
  font-size: 13px;
  line-height: 1.4;
}

.session-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-color: rgba(255, 91, 91, .42);
  color: #ffb5b5;
}

.session-actions button:hover {
  background: rgba(255, 91, 91, .14);
}

.session-actions button i {
  width: 17px;
  height: 17px;
}

.admin-users {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
}

.admin-user-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 8px;
}

.admin-user-form button {
  grid-column: 1 / -1;
}

.admin-user-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-user-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(72, 154, 205, .22);
  border-radius: 8px;
  background: rgba(2, 18, 32, .74);
  padding: 10px;
}

.admin-user-item strong {
  color: #f5fbff;
}

.admin-user-item span {
  color: #7df2ff;
  font-size: 12px;
}

.permissions-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  font-size: clamp(11px, .72vw, 14px);
}

.permissions-table th,
.permissions-table td {
  border-bottom: 1px solid rgba(72, 154, 205, .18);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

.permissions-table th {
  color: #7df2ff;
  font-size: clamp(10px, .66vw, 12px);
  text-transform: uppercase;
}

.permissions-table td {
  color: rgba(243, 248, 255, .88);
}

.view-sms .at-console,
.view-calls .at-console,
.view-voice .at-console,
.view-admin .at-console {
  display: none;
}

.view-locator .at-console {
  top: 93.1%;
  width: 23.5%;
  z-index: 13;
}

.at-console {
  position: absolute;
  left: 15.45%;
  top: 83.6%;
  width: 25.2%;
  z-index: 30;
  display: grid;
  gap: 8px;
}

.at-console form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 6px;
}

.at-console input {
  min-width: 0;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid rgba(72, 154, 205, .34);
  border-radius: 7px;
  background: rgba(1, 13, 25, .84);
  color: #f5fbff;
  padding: 0 12px;
  font: 650 clamp(11px, .78vw, 14px)/1 Inter, ui-sans-serif, system-ui, sans-serif;
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, .32);
}

.at-console button {
  border: 1px solid rgba(36, 211, 255, .34);
  border-radius: 7px;
  background: rgba(7, 81, 126, .84);
  color: #f4fbff;
  cursor: pointer;
}

.at-console button i {
  width: 18px;
  height: 18px;
}

.at-terminal {
  border: 1px solid rgba(37, 210, 255, .34);
  border-radius: 8px;
  background: rgba(2, 14, 26, .97);
  box-shadow: 0 0 24px rgba(0, 214, 255, .18);
  overflow: hidden;
}

.at-terminal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(80, 156, 205, .20);
  color: #45e8ff;
  font-size: 12px;
}

.at-terminal header button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: rgba(8, 41, 66, .82);
}

.at-terminal header button i {
  width: 14px;
  height: 14px;
}

.at-terminal pre {
  max-height: 150px;
  margin: 0;
  padding: 9px;
  overflow: auto;
  color: #8cff72;
  font: 600 11px/1.42 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
