/* Naxa Phone — Glacier Glass visual system.
   This file intentionally contains presentation-only overrides so the existing
   dashboard data, auth, calling and safety behavior remain unchanged. */

:root {
  --bg: #c8deed;
  --surface: rgba(238, 249, 255, 0.46);
  --surface-soft: rgba(216, 238, 251, 0.53);
  --ink: #123d66;
  --muted: #577897;
  --line: rgba(255, 255, 255, 0.82);
  --forest: #174c78;
  --forest-2: #123d66;
  --mint: #8bf4e1;
  --teal: #1187b4;
  --teal-soft: rgba(148, 226, 247, 0.26);
  --blue: #4ba9ff;
  --amber: #a56a13;
  --red: #bc4b57;
  --glass-edge: rgba(255, 255, 255, 0.94);
  --glass-line: rgba(149, 218, 255, 0.68);
  --glass-fill: rgba(224, 242, 253, 0.4);
  --glass-fill-strong: rgba(231, 247, 255, 0.6);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 1px 0 0 rgba(255, 255, 255, 0.68),
    inset 0 -1px 0 rgba(72, 181, 235, 0.3),
    0 12px 32px rgba(28, 83, 125, 0.15),
    0 0 0 1px rgba(89, 192, 246, 0.3),
    0 0 15px rgba(84, 201, 255, 0.12);
  --glass-glow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 1px 0 0 rgba(255, 255, 255, 0.76),
    inset 0 -1px 0 rgba(61, 191, 244, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.84),
    0 0 15px rgba(74, 205, 255, 0.42),
    0 0 34px rgba(59, 177, 245, 0.24),
    0 17px 39px rgba(29, 82, 122, 0.19);
  --glass-glow-strong:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 1px 0 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(51, 193, 250, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.94),
    0 0 13px rgba(89, 221, 255, 0.58),
    0 0 30px rgba(43, 179, 255, 0.37),
    0 18px 42px rgba(25, 78, 120, 0.22);
  color-scheme: light;
}

html {
  background: #c8deed;
}

body {
  background:
    radial-gradient(circle at 10% -4%, rgba(255, 255, 255, 0.96), transparent 29rem),
    radial-gradient(circle at 98% 12%, rgba(83, 197, 255, 0.48), transparent 26rem),
    radial-gradient(circle at 48% 108%, rgba(91, 236, 220, 0.24), transparent 30rem),
    linear-gradient(154deg, #deedf7 0%, #bfd8e9 48%, #d8e8f3 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.7), transparent 11rem),
    radial-gradient(circle at 82% 70%, rgba(64, 195, 255, 0.25), transparent 17rem);
}

button,
input,
textarea,
select {
  color: var(--ink);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(58, 164, 231, 0.78);
  outline-offset: 3px;
}

h1 {
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
}

h2 { color: var(--ink); }

.eyebrow {
  color: #5c80a0;
  letter-spacing: 0.12em;
}

.network-banner {
  background: rgba(165, 92, 39, 0.92);
  box-shadow: 0 8px 26px rgba(52, 83, 108, 0.2);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

/* Login */
.login-shell {
  position: relative;
  isolation: isolate;
  width: min(660px, 100%);
  grid-template-columns: 1fr;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  padding: 34px 26px 42px;
  background: #c9e0f0;
}

.login-shell::before,
.login-shell::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -8%;
  pointer-events: none;
}

.login-shell::before {
  background: url("/assets/login-flow-background.webp") center / cover no-repeat;
  transform: scale(1.08);
  animation: login-glass-drift 18s ease-in-out infinite alternate;
}

.login-shell::after {
  z-index: -1;
  background:
    radial-gradient(ellipse at 18% 14%, rgba(255, 255, 255, 0.54), transparent 31%),
    radial-gradient(ellipse at 88% 40%, rgba(83, 206, 255, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(229, 245, 255, 0.08), rgba(125, 190, 228, 0.12));
  mix-blend-mode: screen;
  animation: login-light-shift 13s ease-in-out infinite alternate;
}

@keyframes login-glass-drift {
  0% { transform: scale(1.08) translate3d(-1.5%, -0.6%, 0); }
  48% { transform: scale(1.12) translate3d(1.2%, 1.5%, 0); }
  100% { transform: scale(1.09) translate3d(-0.4%, 2.2%, 0); }
}

@keyframes login-light-shift {
  from { transform: translate3d(-1.5%, 0, 0); opacity: 0.7; }
  to { transform: translate3d(1.5%, -1%, 0); opacity: 1; }
}

.login-card,
.install-preview {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: linear-gradient(145deg, rgba(224, 244, 255, 0.22), rgba(188, 220, 241, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 1px 0 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(53, 159, 220, 0.22),
    0 0 0 1px rgba(118, 202, 245, 0.2),
    0 20px 56px rgba(30, 82, 123, 0.11);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
}

.login-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.login-card::before {
  content: none;
}

.login-topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-wordmark {
  width: 145px;
  height: auto;
  display: block;
  flex: none;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.72)) drop-shadow(0 0 12px rgba(83, 189, 244, 0.22));
}

.login-topbar .secure-label {
  min-height: 39px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(238, 250, 255, 0.34), rgba(193, 225, 243, 0.18));
  color: #407399;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 1px rgba(110, 199, 243, 0.14),
    0 8px 22px rgba(43, 102, 143, 0.08);
  text-transform: uppercase;
}

.login-topbar .secure-label > .ph {
  color: #45bd9b;
  font-size: 19px;
  filter: drop-shadow(0 0 7px rgba(98, 232, 194, 0.42));
}

.login-heading {
  margin: 46px 0 27px;
}

.login-heading h1 {
  margin: 0 0 9px;
  color: #123d66;
  font-size: clamp(38px, 8.2vw, 54px);
  font-weight: 730;
  letter-spacing: -0.045em;
}

.login-heading h2 {
  margin: 0 0 5px;
  color: #153f67;
  font-size: clamp(27px, 6.5vw, 39px);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.login-heading p {
  color: #3e6a8d;
  font-size: 14px;
  line-height: 1.45;
}

.login-field {
  margin-top: 12px;
}

.login-input-shell {
  min-height: 66px;
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(230, 247, 255, 0.34), rgba(156, 202, 232, 0.22)),
    rgba(215, 237, 249, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 1px 0 0 rgba(255, 255, 255, 0.74),
    inset 0 -1px 0 rgba(54, 169, 227, 0.26),
    0 0 0 1px rgba(126, 210, 250, 0.22),
    0 0 15px rgba(78, 204, 255, 0.18),
    0 11px 24px rgba(39, 91, 128, 0.08);
  backdrop-filter: blur(19px) saturate(170%);
  -webkit-backdrop-filter: blur(19px) saturate(170%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.login-input-shell:focus-within {
  border-color: rgba(255, 255, 255, 1);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(60, 181, 237, 0.36),
    0 0 0 2px rgba(116, 221, 255, 0.42),
    0 0 22px rgba(80, 207, 255, 0.34),
    0 13px 28px rgba(37, 90, 129, 0.12);
  transform: translateY(-1px);
}

.login-input-shell input {
  min-width: 0;
  min-height: 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #164b76;
  font-size: 16px;
  outline: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.login-input-shell input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-input-shell input::placeholder {
  color: #6486a3;
  opacity: 1;
}

.login-field-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: rgba(189, 228, 248, 0.27);
  color: #f7fdff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 0 1px rgba(93, 198, 244, 0.26),
    0 0 13px rgba(75, 210, 255, 0.45);
  font-size: 23px;
  text-shadow: 0 0 8px rgba(69, 184, 235, 0.45);
}

.login-field-action {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font-size: 24px;
  filter: drop-shadow(0 0 6px rgba(55, 169, 224, 0.34));
}

.login-field-trailing {
  justify-self: center;
  color: rgba(255, 255, 255, 0.93);
  font-size: 24px;
  filter: drop-shadow(0 0 6px rgba(55, 169, 224, 0.34));
}

.login-brand .brand-mark,
.brand-mark.compact,
.preview-logo {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(193, 231, 250, 0.4);
  color: #1a5c88;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 0 20px rgba(72, 184, 246, 0.22);
}

.brand-product { color: #16466f; letter-spacing: 0.08em; }
.secure-label { border-color: rgba(125, 221, 201, 0.62); background: rgba(179, 248, 233, 0.3); color: #21765f; }

.field input,
.field textarea,
.contact-language-field select {
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: rgba(230, 243, 252, 0.43);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 0 0 1px rgba(116, 198, 241, 0.18);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.field input::placeholder,
.field textarea::placeholder { color: #6e8ca8; }

.remember-account {
  margin-top: 15px;
  color: #234f73;
}
.remember-account input {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  accent-color: #55bce6;
}
.remember-account strong { font-size: 13px; }
.remember-account small { color: #66829a; font-size: 9px; }

.primary-button,
.contact-ai-call {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(91, 191, 244, 0.72), rgba(109, 217, 229, 0.62));
  color: #0d3d65;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(48, 158, 219, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.76),
    0 0 16px rgba(70, 209, 255, 0.48),
    0 0 32px rgba(53, 174, 244, 0.25),
    0 14px 30px rgba(34, 102, 151, 0.22);
  text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}

.primary-button:hover,
.contact-ai-call:hover { filter: brightness(1.04); }

#loginButton {
  min-height: 61px;
  margin-top: 19px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(159, 219, 248, 0.55), rgba(95, 180, 228, 0.4)),
    rgba(172, 219, 243, 0.38);
  font-size: 18px;
}

#loginButton > .ph {
  color: rgba(255, 255, 255, 0.98);
  font-size: 23px;
  filter: drop-shadow(0 0 8px rgba(76, 198, 249, 0.48));
}

.install-preview {
  padding: 16px 18px;
  border-radius: 22px;
}

.login-install-card {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
}

.install-device-icon {
  width: 58px;
  height: 58px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 17px;
  background: rgba(191, 226, 245, 0.3);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px #fff, 0 0 16px rgba(74, 197, 249, 0.26);
}

.install-device-icon .ph-device-mobile { font-size: 34px; }
.install-device-icon .ph-plus-circle {
  position: absolute;
  right: 4px;
  bottom: 5px;
  padding: 2px;
  border-radius: 50%;
  background: #d2eaf8;
  color: #6baee2;
  font-size: 19px;
}

.install-card-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: #1c517d;
}

.install-card-copy strong { font-size: 14px; }
.install-card-copy span { font-size: 12px; }
.install-card-copy small { color: #527796; font-size: 10px; }
.install-card-arrow { color: rgba(255, 255, 255, 0.95); font-size: 25px; }
}

.phone-preview {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(205, 232, 248, 0.44);
  box-shadow: inset 0 0 0 2px rgba(112, 193, 236, 0.42), 0 26px 58px rgba(48, 101, 139, 0.2);
}

.phone-island,
.preview-home { background: #153c5f; }

/* Shell and header */
.app-shell {
  position: relative;
  isolation: isolate;
  background: #c8deed;
}

.app-shell::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -6%;
  pointer-events: none;
  background: url("/assets/login-flow-background.webp") center top / cover no-repeat;
  opacity: 0.82;
  transform: scale(1.07);
  animation: app-glass-drift 24s ease-in-out infinite alternate;
}

@keyframes app-glass-drift {
  0% { transform: scale(1.07) translate3d(-1.2%, -0.5%, 0); }
  52% { transform: scale(1.11) translate3d(1.4%, 1.2%, 0); }
  100% { transform: scale(1.08) translate3d(-0.3%, 2%, 0); }
}

.app-main {
  position: relative;
  z-index: 1;
}

.tab-panel.active {
  animation: panel-glass-enter 260ms ease-out both;
}

@keyframes panel-glass-enter {
  from { opacity: 0.72; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(207, 228, 243, 0.58);
  color: var(--ink);
  box-shadow:
    inset 0 -1px 0 rgba(88, 190, 240, 0.22),
    0 10px 28px rgba(31, 81, 117, 0.1),
    0 0 18px rgba(68, 190, 248, 0.12);
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
}

.header-brand-wordmark {
  min-width: 102px;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.header-wordmark {
  width: 92px;
  height: auto;
  display: block;
  margin: 0;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.76)) drop-shadow(0 0 10px rgba(73, 184, 242, 0.24));
}
.header-workspace-label {
  color: #2b5f83;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
}

.brand-mark.compact { width: 40px; height: 40px; }

.connection-pill {
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: rgba(223, 243, 252, 0.46);
  color: #2a668e;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.96),
    0 0 0 1px rgba(102, 207, 250, 0.2),
    0 0 14px rgba(78, 208, 255, 0.2),
    0 5px 18px rgba(49, 111, 151, 0.1);
}

.connection-pill.offline { color: #9c641d; }
.connection-pill > .ph { color: #3baf91; font-size: 14px; filter: drop-shadow(0 0 5px rgba(74, 221, 180, 0.42)); }
.status-dot { background: #73eab7; box-shadow: 0 0 10px rgba(75, 226, 164, 0.7); }

.header-account-button,
.owner-avatar {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(212, 235, 249, 0.58);
  color: #1c5e8b;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.96), 0 7px 18px rgba(45, 104, 143, 0.12);
}

.header-account-button.active,
.owner-avatar.large {
  border-color: rgba(109, 215, 255, 0.8);
  background: rgba(175, 226, 250, 0.7);
  color: #174d77;
}

.app-main {
  padding-top: 30px;
}

.welcome-row,
.section-heading {
  align-items: center;
}

.welcome-row > div > p:last-child,
.section-heading > div > p:last-child { color: var(--muted); }

/* Shared glacier panels */
.priority-card,
.metric-card,
.source-card,
.recent-section,
.safety-strip,
.workspace-toolbar,
.lead-card,
.call-card,
.contact-card,
.agent-work-card,
.live-monitor-card,
.workbench-metrics article,
.batch-builder,
.outbound-history-section,
.inbound-archive,
.usage-cost-card,
.free-unit-section,
.service-cost-note,
.account-card,
.account-security-card,
.device-card,
.session-policy,
.empty-state,
.detail-sheet,
.contact-call-actions,
.detail-meta-grid > div {
  border: 1px solid var(--glass-edge);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(215, 241, 253, 0.08) 45%, rgba(89, 203, 255, 0.07)),
    var(--glass-fill);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(142%);
  -webkit-backdrop-filter: blur(22px) saturate(142%);
}

.priority-card {
  border-radius: 22px;
  background:
    linear-gradient(128deg, rgba(198, 231, 249, 0.66), rgba(216, 241, 250, 0.32)),
    var(--glass-fill);
  color: var(--ink);
}

.priority-card .eyebrow { color: #5580a1; }
.priority-card h2 { color: #123f68; }
.priority-card p:last-child { color: #557895; }

.light-button,
.secondary-button,
.add-contact-button,
.icon-button,
.text-button,
.sheet-edit,
.contact-workbench-button,
.contact-manual-call {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(218, 239, 251, 0.52);
  color: #1d6695;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 6px 18px rgba(49, 108, 148, 0.1);
}

.metric-grid { gap: 13px; }
.metric-card { position: relative; overflow: hidden; border-radius: 19px; }
.metric-card.accent {
  border-color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(145deg, rgba(185, 225, 248, 0.58), rgba(229, 246, 254, 0.42));
  box-shadow: var(--glass-glow-strong);
}
.metric-card > span,
.metric-card small { color: var(--muted); }
.metric-card strong { color: #154d79; }
.metric-card small { max-width: 72%; }
.metric-icon {
  position: absolute;
  right: 13px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 26px;
  filter: drop-shadow(0 0 7px rgba(48, 177, 237, 0.58));
}

.source-grid > div,
.mini-lead-card,
.candidate-card,
.outbound-history-card,
.free-unit-row,
.usage-live-row,
.usage-direction-grid article,
.usage-net-summary article,
.usage-service-grid article,
.contact-counters span {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(223, 240, 251, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.source-grid-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  background: rgba(178, 226, 248, 0.44);
  color: #1b78a8;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.96), 0 0 12px rgba(64, 188, 242, 0.22);
  font-size: 17px;
}
.source-grid-icon.gmail { background: rgba(249, 218, 220, 0.46); color: #a54b56; }
.source-grid-icon.marketing { background: rgba(198, 239, 227, 0.5); color: #287b68; }

.source-avatar {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(184, 221, 247, 0.46);
  color: #2b6c98;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 0 18px rgba(72, 175, 235, 0.14);
}
.source-avatar.source-gmail { background: rgba(250, 218, 220, 0.45); color: #a64a55; }
.source-avatar.source-marketing { background: rgba(217, 239, 222, 0.52); color: #397c68; }
.source-avatar.source-phone { background: rgba(178, 231, 249, 0.48); color: #1679a7; }
.source-avatar > .ph { font-size: 18px; }

.industry-avatar {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(202, 233, 248, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 1px rgba(96, 193, 239, 0.2),
    0 0 13px rgba(64, 183, 240, 0.25);
}

.industry-avatar > .ph {
  font-size: 21px;
  filter: drop-shadow(0 0 6px currentColor);
}

.industry-tone-home { color: #147ca7; background: rgba(172, 226, 247, 0.48); }
.industry-tone-health { color: #12856f; background: rgba(177, 237, 221, 0.5); }
.industry-tone-food { color: #ad6b25; background: rgba(250, 224, 181, 0.5); }
.industry-tone-professional { color: #315f9f; background: rgba(194, 215, 248, 0.5); }
.industry-tone-technology { color: #6557af; background: rgba(211, 203, 248, 0.5); }
.industry-tone-retail { color: #a34d79; background: rgba(245, 204, 226, 0.48); }
.industry-tone-community { color: #4f8248; background: rgba(208, 235, 194, 0.5); }
.industry-tone-transport { color: #93622b; background: rgba(244, 220, 181, 0.5); }
.industry-tone-industrial { color: #536c7e; background: rgba(202, 219, 228, 0.52); }
.industry-tone-property { color: #23768a; background: rgba(184, 229, 234, 0.5); }
.industry-tone-travel { color: #337eb0; background: rgba(188, 225, 248, 0.5); }
.industry-tone-creative { color: #7854a4; background: rgba(225, 207, 244, 0.5); }
.industry-tone-beauty { color: #a34f79; background: rgba(247, 208, 226, 0.5); }

.industry-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.industry-detail-badge > .ph { font-size: 15px; }

.mini-lead-card,
.lead-card,
.call-card,
.contact-card {
  color: var(--ink);
}

.mini-lead-card:hover,
.lead-card:hover,
.call-card:hover,
.contact-card:hover {
  border-color: rgba(117, 205, 250, 0.9);
  box-shadow: var(--glass-glow);
}

.record-meta,
.contact-activity,
.contact-counters span,
.timeline-event div > span { color: var(--muted); }

.record-status,
.detail-language,
.status-chip,
.batch-counter,
.outbound-result,
.outbound-service-status {
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(215, 236, 249, 0.54);
  color: #3f6f93;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.record-status.status-follow-up,
.status-chip.active,
.usage-estimate-badge.active,
.outbound-result.active { background: rgba(171, 237, 224, 0.46); color: #1d7863; }

.safety-strip {
  background: rgba(215, 238, 249, 0.38);
}
.safety-icon { background: rgba(176, 225, 250, 0.5); color: #1b74a4; }

/* Search, filters and list controls */
.workspace-toolbar { border-radius: 18px; }
.search-field {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(220, 239, 251, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 6px 18px rgba(53, 108, 145, 0.08);
}
.search-field input { color: var(--ink); }
.search-field input::placeholder { color: #708ca5; }
.search-icon { color: #397ba6; }

.filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(219, 237, 249, 0.44);
  color: #496f8e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}
.filter-chip > .ph { font-size: 14px; }
.filter-chip.active {
  border-color: rgba(108, 206, 255, 0.82);
  background: rgba(165, 222, 249, 0.58);
  color: #155d8c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 0 1px rgba(255, 255, 255, 0.62),
    0 0 17px rgba(59, 194, 255, 0.38);
}

.contact-avatar {
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: linear-gradient(145deg, rgba(182, 221, 247, 0.62), rgba(224, 242, 252, 0.42));
  color: #175d8b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 0 18px rgba(84, 183, 239, 0.18);
}
.contact-group-heading {
  margin: 8px 5px -2px;
  color: #245d87;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.contact-group-heading:first-child { margin-top: 0; }
.contact-counters .saved-contact-label { background: rgba(169, 238, 222, 0.48); color: #207860; }
.contact-arrow,
.timeline-arrow { color: #4e91bc; }

/* Workbench */
.agent-work-card {
  background:
    linear-gradient(140deg, rgba(194, 228, 248, 0.68), rgba(221, 242, 251, 0.32)),
    var(--glass-fill);
  color: var(--ink);
}
.agent-copy h2 { color: #123f68; }
.agent-copy > p { color: #527493; }
.agent-state-row { color: #236a94; }
.agent-live-dot { background: #78edb9; box-shadow: 0 0 12px rgba(84, 230, 170, 0.66); }
.agent-policy-row span { border: 1px solid rgba(255, 255, 255, 0.72); background: rgba(211, 235, 249, 0.42); color: #456e8e; }
.agent-policy-row span:first-child { background: rgba(183, 232, 250, 0.52); color: #17668f; }

.agent-visual {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.agent-work-card[data-agent-state="calling"][data-call-phase="connected"] .agent-visual {
  filter: drop-shadow(0 0 16px rgba(66, 202, 255, 0.42));
}

.live-monitor-card {
  border-color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(145deg, rgba(209, 237, 251, 0.56), rgba(226, 245, 252, 0.34));
  box-shadow: var(--glass-glow);
}
.live-monitor-headphones {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(174, 225, 248, 0.46);
  color: #1b79a8;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.98),
    0 0 11px rgba(81, 217, 255, 0.48),
    0 0 24px rgba(57, 181, 247, 0.28);
}
.live-monitor-copy > p { color: #537694; }
.live-monitor-badge { border-color: rgba(255, 255, 255, 0.85); background: rgba(217, 238, 249, 0.52); color: #4c7392; }
.live-monitor-meta > span { color: #1a567f; }
.live-monitor-meta small { color: var(--muted); }
.live-monitor-button {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(202, 227, 240, 0.55);
  color: #648199;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.95);
}
.live-monitor-card[data-monitor-state="ringing"] { border-color: rgba(255, 255, 255, 0.96); background: rgba(237, 239, 222, 0.5); }
.live-monitor-card[data-monitor-state="unavailable"] { border-color: rgba(143, 225, 205, 0.82); }

.workbench-metrics strong { color: #164f7b; }
.candidate-card.selected { border-color: rgba(81, 192, 247, 0.86); background: rgba(177, 224, 248, 0.46); box-shadow: var(--glass-glow-strong); }
.candidate-checkbox { border-color: rgba(70, 157, 209, 0.58); background: rgba(231, 246, 253, 0.66); }
.candidate-card.selected .candidate-checkbox { background: #4aade0; color: #fff; }
.outbound-history-icon { background: rgba(177, 229, 248, 0.46); color: #1c77a5; }
.outbound-history-card { border-radius: 14px; }

/* Costs */
.usage-cost-card,
.free-unit-section { border-radius: 20px; }
.usage-live-row,
.usage-direction-grid article,
.usage-net-summary article,
.usage-service-grid article { border-radius: 15px; }
.usage-current-duration,
.usage-live-row strong,
.usage-direction-grid strong,
.usage-net-summary strong,
.usage-service-grid strong { color: #15517e; }
.usage-direction-grid article,
.usage-service-grid article { position: relative; overflow: hidden; }
.cost-metric-icon,
.service-icon {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 21px;
  filter: drop-shadow(0 0 7px rgba(53, 183, 239, 0.55));
}
.service-icon { font-size: 23px; }
.usage-net-total {
  background: linear-gradient(145deg, rgba(173, 222, 247, 0.58), rgba(225, 243, 251, 0.4)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.96), 0 0 20px rgba(70, 181, 240, 0.16) !important;
}
.usage-free-offset strong { color: #1f8a70; }
.usage-estimate-badge { border: 1px solid rgba(255, 255, 255, 0.82); background: rgba(214, 236, 249, 0.5); color: #4e7492; }
.free-unit-track { border: 1px solid rgba(255, 255, 255, 0.74); background: rgba(180, 207, 225, 0.42); }
.free-unit-track i { background: linear-gradient(90deg, #62c8ff, #8cebd4); box-shadow: 0 0 12px rgba(80, 203, 226, 0.34); }
.free-unit-track i.low { background: linear-gradient(90deg, #f1b372, #e47878); }
.service-cost-note { color: #50728e; }
.free-unit-row {
  grid-template-columns: 38px minmax(0, 1fr) minmax(118px, 0.85fr);
  gap: 9px;
}
.free-unit-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  background: rgba(176, 224, 247, 0.46);
  color: #1775a4;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.96), 0 0 10px rgba(63, 186, 239, 0.2);
  font-size: 18px;
}

/* Account, sheets and forms */
.text-button.danger,
.revoke-button {
  border: 1px solid rgba(230, 157, 166, 0.45);
  background: rgba(255, 223, 226, 0.42);
  color: var(--red);
}
.account-security-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 17px 18px;
  border-radius: 18px;
}
.account-security-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: rgba(170, 232, 218, 0.4);
  color: #22836a;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.98), 0 0 15px rgba(72, 210, 177, 0.24);
  font-size: 24px;
}
.account-security-card h2 { margin: 4px 0 3px; }
.account-security-card > div > span { color: var(--muted); font-size: 11px; }
.account-security-card > strong {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(170, 237, 222, 0.44);
  color: #1e7c64;
  font-size: 11px;
  white-space: nowrap;
}
.device-icon { border: 1px solid rgba(255, 255, 255, 0.88); background: rgba(187, 224, 246, 0.48); color: #1c6b99; }
.current-label { color: #20856a !important; }
.session-policy { color: var(--muted); }
.session-policy strong { color: var(--ink); }

.sheet-backdrop {
  background: rgba(74, 113, 140, 0.32);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}
.detail-sheet { background: rgba(220, 238, 249, 0.88); }
.sheet-header { border-bottom-color: rgba(255, 255, 255, 0.68); }
.sheet-close { border: 1px solid rgba(255, 255, 255, 0.86); background: rgba(214, 235, 248, 0.58); color: var(--ink); }
.sheet-handle { background: rgba(72, 133, 172, 0.38); }
.detail-block { border-top-color: rgba(255, 255, 255, 0.72); }
.detail-block p { color: #3f6482; }
.contact-call-actions { background: rgba(205, 235, 248, 0.48); }
.timeline-event { border-top-color: rgba(255, 255, 255, 0.62); color: var(--ink); }
.timeline-marker { background: rgba(216, 236, 248, 0.58); color: #266f9a; }
.event-call .timeline-marker { background: rgba(172, 229, 247, 0.52); color: #167aa8; }
.sheet-action { border: 1px solid rgba(255, 255, 255, 0.9); background: rgba(157, 214, 243, 0.62); color: #154b75; }

/* Frosted five-tab dock */
.bottom-nav {
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(202, 225, 241, 0.7);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.98),
    0 -1px 0 rgba(84, 191, 242, 0.28),
    0 -12px 34px rgba(30, 78, 115, 0.14),
    0 0 22px rgba(72, 194, 249, 0.12);
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
}
.bottom-nav-item {
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(219, 237, 248, 0.26);
  color: #577a96;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.58);
}
.bottom-nav-item.active {
  border-color: rgba(255, 255, 255, 0.96);
  background: rgba(177, 224, 249, 0.62);
  color: #126c9d;
  box-shadow: var(--glass-glow-strong);
}
.bottom-nav-item > .ph { filter: drop-shadow(0 0 6px rgba(69, 181, 241, 0.3)); }
.bottom-nav-item.active > .ph { filter: drop-shadow(0 0 8px rgba(37, 186, 255, 0.66)); }

.toast {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(24, 77, 115, 0.9);
  box-shadow: 0 18px 44px rgba(35, 76, 105, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .login-card,
  .app-header,
  .priority-card,
  .metric-card,
  .source-card,
  .recent-section,
  .workspace-toolbar,
  .lead-card,
  .call-card,
  .contact-card,
  .agent-work-card,
  .live-monitor-card,
  .batch-builder,
  .outbound-history-section,
  .usage-cost-card,
  .free-unit-section,
  .account-card,
  .device-card,
  .bottom-nav { background-color: rgba(226, 240, 249, 0.96); }
}

@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 8% -2%, rgba(255, 255, 255, 0.9), transparent 19rem),
      radial-gradient(circle at 102% 30%, rgba(73, 192, 255, 0.4), transparent 17rem),
      linear-gradient(165deg, #dcecf6 0%, #bcd5e7 55%, #d5e7f2 100%);
  }

  .login-shell {
    width: 100%;
    min-height: 100dvh;
    align-content: start;
    padding: max(24px, env(safe-area-inset-top)) 20px calc(27px + env(safe-area-inset-bottom));
  }
  .login-card { padding: 0; border-radius: 0; }
  .login-topbar { min-height: 44px; }
  .login-wordmark { width: 142px; }
  .login-topbar .secure-label {
    min-height: 35px;
    padding: 0 9px;
    font-size: 8px;
  }
  .login-topbar .secure-label > .ph { font-size: 17px; }
  .login-heading { margin: 47px 0 28px; }
  .login-heading h1 { font-size: 38px; }
  .login-heading h2 { font-size: 29px; }
  .login-input-shell { min-height: 65px; }
  .login-input-shell input { min-height: 63px; }
  .login-install-card { display: grid; }

  .app-header {
    min-height: calc(68px + env(safe-area-inset-top));
    padding-top: calc(13px + env(safe-area-inset-top));
    padding-bottom: 13px;
  }
  .header-wordmark { width: 92px; }
  .header-workspace-label { font-size: 7px; letter-spacing: 0.14em; }
  .connection-pill { font-size: 9px; }
  .header-account-button { width: 34px; height: 34px; }

  .app-main { width: calc(100% - 24px); padding: 23px 0 35px; }
  .welcome-row { margin-bottom: 18px; }
  .welcome-row h1,
  .section-heading h1 { font-size: 31px; letter-spacing: -0.045em; }

  .priority-card { gap: 16px; padding: 19px; }
  .priority-card h2 { font-size: 22px; }
  .priority-card .light-button { min-height: 43px; }

  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .metric-card,
  .metric-card:last-child { min-height: 112px; grid-column: auto; padding: 13px 11px; }
  .metric-card > span { font-size: 10px; }
  .metric-card strong { margin-top: 13px; font-size: 30px; }
  .metric-card small { margin-top: 11px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

  .source-card,
  .recent-section { padding: 15px; }
  .source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .source-grid > div { padding: 10px 8px; }
  .source-grid strong { font-size: 19px; }

  .section-heading { align-items: flex-start; }
  .heading-actions { gap: 7px; }
  .add-contact-button { min-width: 72px; min-height: 40px; flex: none; justify-content: center; white-space: nowrap; }
  .workspace-toolbar { padding: 9px; }
  .search-field { min-height: 50px; border-radius: 15px; }
  .filter-chip { min-height: 38px; }
  .lead-card,
  .call-card,
  .contact-card { border-radius: 17px; }

  .agent-work-card { grid-template-columns: 118px minmax(0, 1fr); }
  .agent-visual { width: 118px; height: 118px; }
  .live-monitor-card { border-radius: 18px; }
  .workbench-metrics { gap: 7px; }
  .batch-builder,
  .outbound-history-section,
  .usage-cost-card,
  .free-unit-section { border-radius: 19px; }

  .usage-live-row,
  .usage-direction-grid,
  .usage-net-summary,
  .usage-service-grid { gap: 7px; }
  .usage-service-grid article { min-height: 94px; }

  .account-security-card { align-items: flex-start; }

  .bottom-nav {
    gap: 4px;
    padding-top: 7px;
  }
  .bottom-nav-item {
    width: min(70px, 19vw);
    min-height: 55px;
    border-radius: 13px;
  }
  .bottom-nav-item > .ph { font-size: 20px; }
  .bottom-nav-item small { font-size: 9px; }
}

@media (max-width: 370px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-card strong { font-size: 27px; }
  .source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .source-grid > div { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
  .source-grid small { margin: 0; }
  .connection-pill { display: inline-flex; }
  .free-unit-row { grid-template-columns: 34px minmax(0, 1fr); }
  .free-unit-row > div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --glass-fill: rgba(225, 239, 248, 0.94); --glass-fill-strong: rgba(229, 242, 250, 0.97); }
  .login-input-shell,
  .login-install-card { background: rgba(224, 240, 250, 0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .login-shell::before,
  .login-shell::after,
  .app-shell::before { animation: none !important; }
}

/* Unified command-card glass treatment */
.agent-work-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background:
    radial-gradient(circle at 50% 20%, rgba(247, 250, 255, 0.86), transparent 18rem),
    radial-gradient(circle at 12% 72%, rgba(191, 237, 255, 0.34), transparent 16rem),
    linear-gradient(148deg, rgba(224, 241, 252, 0.72), rgba(225, 240, 249, 0.38));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 1),
    inset 0 -1px rgba(147, 203, 235, 0.2),
    0 0 0 3px rgba(177, 225, 249, 0.22),
    0 18px 44px rgba(54, 135, 184, 0.16),
    0 0 28px rgba(102, 206, 255, 0.18);
}
.agent-work-card::before {
  content: "";
  width: 62%;
  height: 34%;
  position: absolute;
  top: -19%;
  left: -11%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(32px);
  pointer-events: none;
}
.agent-work-card > .live-monitor-button {
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: linear-gradient(145deg, rgba(235, 248, 255, 0.76), rgba(181, 226, 249, 0.52));
  color: #337da5;
  box-shadow: inset 0 1px rgba(255, 255, 255, 1), 0 0 18px rgba(68, 197, 255, 0.34);
}
.agent-work-card > .live-monitor-button:disabled { color: #7294aa; opacity: 0.72; }
.agent-work-card[data-monitor-state="ready"] > .live-monitor-button,
.agent-work-card[data-monitor-state="listening"] > .live-monitor-button {
  border-color: rgba(177, 255, 222, 0.96);
  background: rgba(204, 249, 230, 0.72);
  box-shadow: inset 0 1px #fff, 0 0 20px rgba(69, 224, 165, 0.55);
}
.agent-work-card[data-monitor-state="listening"] > .live-monitor-button { animation: liveMonitorGlow 1.15s ease-in-out infinite alternate; }
.agent-work-card[data-call-phase="conversation"] .agent-wave-orb { animation: callWaveOrb 1.08s ease-in-out infinite; }
.agent-work-card[data-monitor-state="listening"] .agent-wave-orb { filter: saturate(1.08) brightness(1.05) drop-shadow(0 0 22px rgba(77, 215, 255, 0.62)); }
.agent-call-timer { text-shadow: 0 0 14px rgba(66, 222, 158, 0.38); }
.call-progress-panel {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, rgba(225, 242, 252, 0.58), rgba(231, 245, 251, 0.3));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.95), 0 8px 25px rgba(65, 137, 178, 0.08);
}
.call-terminal-status { border: 1px solid rgba(255, 255, 255, 0.86); background: rgba(211, 232, 243, 0.58); color: #527792; }
.agent-work-card[data-call-phase="ended"] .call-terminal-status { background: rgba(229, 237, 241, 0.7); }

@keyframes liveMonitorGlow {
  from { box-shadow: inset 0 1px #fff, 0 0 15px rgba(69, 224, 165, 0.42); }
  to { box-shadow: inset 0 1px #fff, 0 0 28px rgba(69, 224, 165, 0.72); }
}
