:root {
  --navy: #071a34;
  --navy-2: #0d2a4b;
  --cyan: #08bde8;
  --cyan-dark: #078dab;
  --ink: #14273e;
  --muted: #718197;
  --line: #dce5ec;
  --soft: #f3f7f9;
  --white: #fff;
  --green: #15976f;
  --amber: #c7780b;
  --red: #c24242;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(8, 189, 232, .09), transparent 28%),
    linear-gradient(180deg, #f6faff 0%, #eef5f9 100%);
  font-size: 16px;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand-logo {
  display: block;
  width: clamp(170px, 16vw, 224px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 42%) 1fr;
  background: white;
}
.login-panel {
  padding: clamp(36px, 7vw, 90px);
  display: flex;
  flex-direction: column;
}
.login-card { width: min(430px, 100%); margin: auto; }
.login-card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-dark);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 750;
}
.login-card .eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--cyan); }
.login-card h1 { margin: 18px 0 10px; font-size: 38px; letter-spacing: 0; color: var(--navy); }
.login-card > p { margin: 0 0 34px; color: var(--muted); line-height: 1.6; }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { font-size: 12px; font-weight: 700; color: #43566d; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #cfdbe4;
  border-radius: 8px;
  background: white;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  outline: none;
}
.field textarea { min-height: 82px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(8, 189, 232, .13);
}
.primary-button {
  border: 0;
  border-radius: 8px;
  min-height: 46px;
  padding: 0 18px;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 800;
}
.primary-button:hover { background: #23c8ed; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.login-submit { width: 100%; margin-top: 4px; }
.form-error {
  color: var(--red);
  background: #fff0f0;
  border: 1px solid #f0caca;
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12px;
}
.login-help { margin-top: 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.webphone-link {
  display: flex;
  min-height: 46px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}
.webphone-link:hover { border-color: var(--cyan); background: #f3fcfe; }
.login-aside {
  background:
    radial-gradient(circle at 85% 15%, rgba(8, 189, 232, .25), transparent 32%),
    linear-gradient(145deg, #06172e, #0a2b4b);
  color: white;
  display: flex;
  align-items: center;
  padding: clamp(46px, 8vw, 110px);
}
.login-aside-inner { max-width: 600px; }
.login-aside .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: 8px 12px;
  border-radius: 999px;
  color: #bceeff;
  font-size: 11px;
}
.login-aside .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #42d69d; }
.login-aside h2 { font-size: clamp(38px, 5vw, 65px); line-height: 1.03; letter-spacing: 0; margin: 27px 0 22px; }
.login-aside p { max-width: 520px; color: #b5c4d4; font-size: 17px; line-height: 1.7; }
.login-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.login-points div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 15px; }
.login-points b { display: block; color: white; font-size: 13px; }
.login-points span { color: #8fa5ba; font-size: 11px; }

/* Application */
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  background: var(--navy);
  color: #a9b8c8;
  padding: 25px 17px 18px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  width: calc(100% - 8px);
  margin: 0 4px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}
.sidebar .brand-logo {
  width: 100%;
  max-width: 205px;
}
.workspace {
  margin: 28px 0 23px;
  border: 1px solid #25415f;
  background: #102b4b;
  border-radius: 9px;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace-icon {
  width: 34px; height: 34px; border-radius: 7px;
  display: grid; place-items: center; background: var(--cyan); color: var(--navy); font-size: 11px; font-weight: 900;
}
.workspace div { display: grid; gap: 3px; }
.workspace b { color: white; font-size: 13px; }
.workspace small { font-size: 11px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-section-label {
  display: block;
  margin: 15px 10px 5px;
  color: #6f849a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}
.nav-link {
  border: 0; background: transparent; color: inherit; text-align: left;
  height: 43px; border-radius: 7px; padding: 0 12px;
  display: flex; align-items: center; gap: 13px; font-size: 14px;
}
.nav-link:hover, .nav-link.active { background: #123553; color: white; }
.nav-link.active { box-shadow: inset 2px 0 var(--cyan); }
.nav-icon {
  width: 26px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
  color: #9eb2c4;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .35px;
  text-align: center;
  flex: 0 0 26px;
}
.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  background: rgba(10, 184, 214, .18);
  color: #d9fbff;
}
.sidebar-bottom { margin-top: auto; border-top: 1px solid #243b55; padding-top: 14px; }
.user-card { display: flex; align-items: center; gap: 9px; padding: 10px; background: #0d2744; border-radius: 8px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #254a6c; color: white; font-size: 10px; }
.user-card div { display: grid; gap: 3px; min-width: 0; }
.user-card b { color: white; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.user-card small { font-size: 11px; }
.logout-button { width: 100%; margin-top: 9px; border: 0; background: transparent; color: #94a8bb; font-size: 13px; padding: 8px; }
.app-main { width: calc(100% - 245px); margin-left: 245px; }
.topbar {
  height: 69px; background: white; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 31px; position: sticky; top: 0; z-index: 5;
}
.topbar-spacer { flex: 1; }
.mobile-menu-button,
.mobile-top-brand,
.mobile-drawer-backdrop,
.mobile-bottom-nav {
  display: none;
}

.mobile-page-host,
.mobile-app-page,
.mobile-screen-head,
.mobile-hero-card,
.mobile-card,
.mobile-metric-grid,
.mobile-action-grid,
.mobile-filter-card,
.mobile-section,
.mobile-setup-card {
  display: none;
}
.search-box { width: 340px; height: 39px; border: 1px solid var(--line); border-radius: 7px; color: #8997a6; display: flex; align-items: center; padding: 0 12px; font-size: 13px; }
.system-state { display: flex; align-items: center; gap: 8px; color: #607086; font-size: 13px; }
.system-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.page { padding: 31px; max-width: 1540px; margin: auto; }
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 25px;
  padding: 2px 2px 0;
}
.page-head .kicker { text-transform: uppercase; letter-spacing: 1.1px; font-size: 12px; color: #7a899b; font-weight: 800; }
.page-head h1 { color: var(--navy); margin: 6px 0; font-size: clamp(30px, 3vw, 42px); letter-spacing: 0; }
.page-head p { color: var(--muted); margin: 0; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 16px; }
.card { background: white; border: 1px solid var(--line); border-radius: 14px; }
.stat {
  padding: 19px;
  border-color: #dbe8f1;
  background:
    radial-gradient(circle at 92% 12%, rgba(8, 189, 232, .12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 16px 38px rgba(15, 40, 68, .06);
}
.stat span, .stat strong, .stat small { display: block; }
.stat span { color: #6d7d91; font-size: 13px; font-weight: 700; }
.stat strong { color: var(--navy); font-size: 31px; letter-spacing: 0; margin: 10px 0 6px; }
.stat small { color: var(--green); font-size: 12px; }
.wide-stat strong { font-size: clamp(23px, 2.2vw, 31px); overflow-wrap: anywhere; }
.customer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 370px);
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 36px);
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, rgba(8, 189, 232, .22), transparent 30%),
    linear-gradient(135deg, #071a34 0%, #0d3158 58%, #08566b 100%);
  color: white;
  box-shadow: 0 24px 55px rgba(7, 26, 52, .16);
}
.customer-hero h1 {
  margin: 8px 0 10px;
  color: white;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0;
}
.customer-hero p {
  max-width: 760px;
  margin: 0;
  color: #bfd6e6;
  font-size: 16px;
  line-height: 1.65;
}
.customer-hero .kicker,
.setup-hero .kicker,
.support-hero .kicker {
  color: #8beaff;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
  font-weight: 900;
}
.hero-number {
  display: grid;
  gap: 7px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px rgba(255,255,255,.14);
}
.hero-number span,
.hero-number small {
  color: #aecaee;
  font-size: 12px;
  font-weight: 800;
}
.hero-number strong {
  color: white;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}
.quick-action {
  border: 1px solid #dbe8f2;
  padding: 18px;
  text-align: left;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 14px 32px rgba(17, 45, 75, .06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.quick-action:hover {
  border-color: #9deaf7;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(17, 45, 75, .1);
}
.quick-action b {
  display: block;
  color: var(--navy);
  margin-bottom: 7px;
  font-size: 15px;
}
.quick-action span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.panel {
  padding: 22px;
  margin-bottom: 18px;
  border-color: #dbe8f1;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 40, 68, .07);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head h2 { font-size: 20px; color: var(--navy); margin: 0 0 5px; letter-spacing: 0; }
.panel-head p { color: #8795a5; font-size: 13px; margin: 0; }
.table-wrap {
  overflow-x: auto;
  border: 1px solid #e4edf4;
  border-radius: 16px;
  background: white;
  box-shadow: inset 0 1px rgba(255,255,255,.7);
}
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6fb 100%);
}
th {
  text-align: left;
  color: #6c7f95;
  font-size: 10px;
  letter-spacing: .7px;
  padding: 13px 14px;
  border-bottom: 1px solid #e4edf4;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  padding: 14px;
  border-bottom: 1px solid #edf3f7;
  font-size: 13px;
  color: #52657a;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr {
  transition: background .16s ease, box-shadow .16s ease;
}
tbody tr:hover td {
  background: #f8fcff;
}
td b { color: #24384f; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.5; }
.mono-list { line-height: 1.7; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 99px; background: #e9f7f2; color: var(--green); font-size: 11px; font-weight: 900; text-transform: lowercase; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.warning { background: #fff5df; color: var(--amber); }
.status.missed {
  background: #fff0f0;
  color: var(--red);
  border: 1px solid #f4c8c8;
}
.status.received {
  background: #e9f7f2;
  color: var(--green);
}
.secondary-button, .table-action {
  border: 1px solid var(--line); background: white; color: #496078; border-radius: 10px; padding: 9px 12px; font-size: 12px; font-weight: 850;
}
.secondary-button, .table-action { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.secondary-button:hover, .table-action:hover {
  border-color: #afeaf5;
  background: #f1fcff;
  color: #05637a;
  transform: translateY(-1px);
}
.danger-button, .danger-action {
  border-color: #f1c7c7 !important;
  background: #fff1f1 !important;
  color: var(--red) !important;
}
.danger-button:hover, .danger-action:hover { background: #ffe6e6 !important; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.table-select {
  width: 100%;
  min-width: 155px;
  border: 1px solid var(--line);
  background: white;
  color: #435a72;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 12px;
}
.table-action { padding: 7px 9px; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.icon-action {
  width: auto;
  height: 36px;
  min-width: 38px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.icon-action.danger-action {
  min-width: 34px;
  font-size: 13px;
  font-weight: 900;
}
.action-stack { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.wide-search {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 45px;
  padding: 0 14px;
  margin: 0 0 16px;
  color: var(--ink);
  background: white;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}
.filter-row .wide-search { margin: 0; }
.calls-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 135px;
  align-items: end;
  gap: 12px;
}
.calls-filter-row .compact-search {
  width: 100%;
  min-height: 42px;
}
.calls-filter-row .compact-field {
  width: auto;
}
.cdr-filter-row {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) 150px 175px 155px;
  align-items: end;
  gap: 10px;
}
.cdr-filter-row .compact-search {
  width: 100%;
  min-height: 42px;
}
.cdr-filter-row .compact-field {
  width: auto;
}
.compact-field {
  width: 190px;
  margin: 0;
}
.compact-field span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #43566d;
  margin-bottom: 7px;
}
td audio {
  width: 230px;
  max-width: 100%;
}
.detail-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
}
.detail-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-weight: 800; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.setup-grid article {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.setup-grid h2 { margin: 0 0 12px; color: var(--navy); font-size: 18px; }
.setup-grid p { margin: 8px 0; color: #52657a; line-height: 1.55; }
.setup-layout {
  display: grid;
  grid-template-columns: minmax(250px, .9fr) minmax(420px, 1.7fr) minmax(250px, .9fr);
  gap: 16px;
  align-items: stretch;
}
.setup-card {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.setup-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 18px;
}
.setup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 330px);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 95% 10%, rgba(8, 189, 232, .20), transparent 34%),
    linear-gradient(135deg, #071a34, #0f365e);
  color: white;
}
.setup-hero h2 {
  margin: 8px 0;
  color: white;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0;
}
.setup-hero p {
  max-width: 720px;
  margin: 0;
  color: #bfd6e6;
  line-height: 1.6;
}
.setup-server-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.09);
}
.setup-server-card span,
.setup-server-card small {
  color: #b8d2e3;
  font-size: 12px;
  font-weight: 800;
}
.setup-server-card strong {
  color: white;
  font-size: 21px;
  overflow-wrap: anywhere;
}
.setting-list {
  display: grid;
  gap: 9px;
}
.setting-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e6eef5;
}
.setting-list div:last-child { border-bottom: 0; }
.setting-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.setting-list b {
  color: var(--navy);
  text-align: right;
}
.app-link-list {
  display: grid;
  gap: 9px;
}
.app-link-list a {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #e2edf5;
  border-radius: 10px;
  background: white;
  color: var(--navy);
  text-decoration: none;
}
.app-link-list a:hover {
  border-color: #9deaf7;
  background: #effcff;
}
.app-link-list span {
  color: var(--muted);
  font-size: 12px;
}
.credential-panel {
  grid-column: 1 / -1;
  order: -1;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
}
.settings-panel {
  grid-column: span 1;
}
.apps-panel {
  grid-column: span 2;
}
.credential-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.credential-panel-head h2 {
  margin-bottom: 5px;
}
.credential-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.credential-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 12px;
}
.credential-table table {
  min-width: 720px;
}
.credential-table th {
  background: #f4f9fc;
  color: #60758c;
  font-size: 11px;
}
.credential-table td {
  vertical-align: middle;
}
.credential-table td small {
  color: var(--muted);
  font-size: 11px;
}
.credential-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}
.credential-cell code {
  display: block;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #e3edf4;
  border-radius: 9px;
  background: #f7fafc;
  color: #172b43;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
}
.icon-copy {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #bceef8;
  border-radius: 9px;
  background: #effcff;
  color: #05637a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
.icon-copy:hover,
.copy-mini:hover {
  background: #dcf8fe;
  border-color: #7edfed;
}
.icon-only-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-color: #bceef8;
  background: #effcff;
  color: #05637a;
  font-size: 16px;
}
.extension-credential-cell {
  min-width: 190px;
}
.customer-extension-table {
  overflow-x: hidden;
}
.customer-extension-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.customer-extension-table th,
.customer-extension-table td {
  padding: 11px 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.customer-extension-table th:nth-child(1),
.customer-extension-table td:nth-child(1) { width: 10%; }
.customer-extension-table th:nth-child(2),
.customer-extension-table td:nth-child(2) { width: 14%; }
.customer-extension-table th:nth-child(3),
.customer-extension-table td:nth-child(3) { width: 25%; }
.customer-extension-table th:nth-child(4),
.customer-extension-table td:nth-child(4) { width: 21%; }
.customer-extension-table th:nth-child(5),
.customer-extension-table td:nth-child(5) { width: 10%; }
.customer-extension-table th:nth-child(6),
.customer-extension-table td:nth-child(6) { width: 20%; }
.customer-extension-table .credential-cell {
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 6px;
}
.customer-extension-table .extension-credential-cell {
  min-width: 0;
}
.customer-extension-table .credential-cell code {
  padding: 8px 9px;
  font-size: 11px;
}
.customer-extension-table .icon-copy,
.customer-extension-table .icon-only-action {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
}
.customer-extension-table .action-stack {
  flex-wrap: wrap;
  gap: 6px;
}
.customer-extension-table td.action-stack {
  display: table-cell;
  white-space: nowrap;
}
.customer-extension-table td.action-stack .table-action {
  margin: 2px;
  vertical-align: middle;
}
.customer-extension-table .table-action:not(.icon-only-action) {
  padding: 7px 9px;
  font-size: 11px;
}
.credential-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dceaf3;
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 26px rgba(17, 45, 75, .05);
}
.credential-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.credential-title span {
  color: #078dab;
  background: #e9fbff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}
.credential-title strong {
  color: var(--navy);
  font-size: 15px;
}
.credential-field {
  display: grid;
  grid-template-columns: 92px minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid #e5eef5;
  border-radius: 10px;
  background: #fbfdff;
}
.credential-field span {
  color: #6d7d91;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.credential-field code {
  display: block;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e3edf4;
  border-radius: 8px;
  background: #f4f8fb;
  color: #172b43;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.4;
}
.copy-mini {
  min-height: 32px;
  white-space: nowrap;
  padding: 7px 10px;
  border-color: #bceef8;
  background: #effcff;
  color: #05637a;
}
.credential-copy-all {
  justify-self: end;
  border-color: #cce9d9;
  background: #f0fff7;
  color: #137351;
}
.setup-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.setup-steps div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #e2edf5;
  border-radius: 12px;
  padding: 13px;
  background: white;
}
.setup-steps b {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9fbff;
  color: #05637a;
  font-size: 12px;
}
.setup-steps span {
  color: #4f6278;
  font-size: 12px;
  line-height: 1.5;
}
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 14px;
}
.live-call-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #dce8f1;
}
.live-call-summary div {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}
.live-call-summary strong {
  color: var(--navy);
  font-size: 34px;
  letter-spacing: 0;
}
.live-call-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .45px;
}
.live-status-board {
  display: grid;
  gap: 10px;
}
.live-status-head,
.live-status-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(105px, .75fr) minmax(120px, .9fr) minmax(95px, .7fr) minmax(85px, .6fr) minmax(135px, 1fr) minmax(115px, .85fr);
  gap: 10px;
  align-items: center;
}
.live-status-head {
  padding: 0 12px;
  color: #8b98a7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .45px;
  text-transform: uppercase;
}
.live-status-row {
  padding: 12px;
  border: 1px solid #dce8f1;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: 0 10px 25px rgba(17, 45, 75, .05);
}
.live-status-row.active-call {
  border-color: #bceee0;
  background: linear-gradient(180deg, #ffffff 0%, #f1fffb 100%);
}
.live-status-cell {
  min-width: 0;
  color: #52657a;
  font-size: 13px;
}
.live-status-cell b {
  display: block;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.live-status-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.live-status-cell code {
  display: block;
  overflow-wrap: anywhere;
  color: #24384f;
  font-size: 11px;
}
.live-card {
  padding: 18px;
  border-radius: 15px;
  box-shadow: 0 14px 34px rgba(17, 45, 75, .06);
}
.live-card.online {
  border-color: #beeadd;
  background: linear-gradient(180deg, #ffffff 0%, #f1fff9 100%);
}
.live-card.offline {
  border-color: #f0dfb8;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}
.live-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.live-card h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 21px;
}
.live-card p {
  margin: 0 0 15px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.live-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.live-metrics div {
  border: 1px solid #e3edf4;
  border-radius: 10px;
  padding: 9px;
  background: white;
}
.live-metrics span {
  display: block;
  color: #8b98a7;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .35px;
}
.live-metrics b {
  display: block;
  color: #24384f;
  margin-top: 5px;
  font-size: 12px;
}
.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 24px;
  background:
    radial-gradient(circle at 95% 20%, rgba(8, 189, 232, .18), transparent 34%),
    linear-gradient(135deg, #071a34, #10375d);
  color: white;
}
.support-hero h2 {
  margin: 8px 0;
  color: white;
  font-size: clamp(24px, 3vw, 34px);
}
.support-hero p {
  margin: 0;
  color: #bfd6e6;
  line-height: 1.55;
}
.support-health {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 130px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.09);
}
.support-health strong {
  color: white;
  font-size: 40px;
  letter-spacing: 0;
}
.support-health span {
  color: #b8d2e3;
  font-size: 12px;
  font-weight: 800;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}
.support-card {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 14px 32px rgba(17, 45, 75, .05);
}
.support-card span {
  color: #6d7d91;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.support-card h3 {
  color: var(--navy);
  margin: 9px 0 7px;
  font-size: 22px;
  overflow-wrap: anywhere;
}
.support-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}
.ticket-create-form {
  display: grid;
  gap: 12px;
}
.support-ticket-list {
  display: grid;
  gap: 14px;
}
.support-ticket {
  padding: 0;
  overflow: hidden;
}
.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5eef5;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}
.ticket-top h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 18px;
}
.ticket-top p,
.ticket-meta small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.ticket-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  align-content: start;
  white-space: nowrap;
}
.ticket-thread {
  display: grid;
  gap: 10px;
  padding: 16px 20px;
  background: #fbfdff;
}
.ticket-message {
  max-width: min(720px, 92%);
  padding: 12px 14px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 24px rgba(17,45,75,.04);
}
.ticket-message.admin-message {
  justify-self: end;
  border-color: #bdeaf5;
  background: #ecfbff;
}
.ticket-message.customer-message {
  justify-self: start;
}
.ticket-message > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}
.ticket-message b {
  color: var(--navy);
}
.ticket-message small {
  color: #7b8ba0;
  white-space: nowrap;
}
.ticket-message p {
  margin: 0;
  color: #25384f;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ticket-reply-form {
  display: grid;
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid #e5eef5;
}
.ticket-reply-form textarea,
.ticket-create-form textarea {
  min-height: 96px;
}
.compact-empty {
  margin: 14px 20px;
  padding: 14px;
}
.diagnostic-list {
  display: grid;
  gap: 10px;
}
.diagnostic-list div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #e5eef5;
  border-radius: 12px;
  background: #fbfdff;
}
.diagnostic-list b {
  color: var(--navy);
}
.diagnostic-list span {
  color: #5f7187;
  line-height: 1.55;
  font-size: 13px;
}
.activity-list {
  display: grid;
  gap: 11px;
}
.activity-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
  border: 1px solid #e4edf4;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(8, 189, 232, .12);
}
.activity-body {
  display: grid;
  gap: 5px;
}
.activity-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.activity-topline b {
  color: var(--navy);
}
.activity-topline span,
.activity-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.activity-details {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 3px;
}
.activity-details span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #dceaf3;
  border-radius: 999px;
  background: #f5fbff;
  color: #4e6379;
  font-size: 12px;
  line-height: 1.25;
}
.activity-details b {
  color: var(--navy);
}
.activity-body code {
  display: block;
  overflow: auto;
  max-height: 120px;
  padding: 10px;
  border: 1px solid #e6eef5;
  border-radius: 9px;
  background: #f8fbfd;
  color: #42566c;
  white-space: pre-wrap;
}
.copy-line {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  min-width: 0;
}
.copy-line code {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #e4edf4;
  border-radius: 10px;
  background: #f7fafc;
  color: #24384f;
  overflow-wrap: anywhere;
}
.sip-uri-cell {
  max-width: 280px;
}
.sip-uri-cell code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-customers-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.admin-customers-table th,
.admin-customers-table td {
  padding: 11px 8px;
}
.admin-customers-table th:nth-child(1),
.admin-customers-table td:nth-child(1) { width: 13%; }
.admin-customers-table th:nth-child(2),
.admin-customers-table td:nth-child(2) { width: 13%; }
.admin-customers-table th:nth-child(3),
.admin-customers-table td:nth-child(3) { width: 19%; }
.admin-customers-table th:nth-child(4),
.admin-customers-table td:nth-child(4) { width: 9%; }
.admin-customers-table th:nth-child(5),
.admin-customers-table td:nth-child(5) { width: 8%; text-align: center; }
.admin-customers-table th:nth-child(6),
.admin-customers-table td:nth-child(6) { width: 13%; }
.admin-customers-table th:nth-child(7),
.admin-customers-table td:nth-child(7) { width: 13%; }
.admin-customers-table th:nth-child(8),
.admin-customers-table td:nth-child(8) { width: 12%; }
.admin-customers-table .action-stack {
  width: 108px;
  max-width: 108px;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
  align-content: flex-start;
}
.admin-customers-table .icon-action {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 8px;
  font-size: 14px;
}
.admin-customers-table .icon-action.danger-action {
  min-width: 32px;
  font-size: 15px;
}
.plan-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.plan-cell small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.warning-status {
  background: #fff5d6;
  border-color: #f8dd8b;
  color: #9a6200;
}
.customer-plan-summary {
  display: grid;
  grid-template-columns: minmax(130px, .9fr) minmax(160px, 1fr) minmax(190px, 1.05fr) minmax(170px, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 18px;
}
.customer-plan-summary > div {
  display: grid;
  align-content: center;
  border: 1px solid #e2edf5;
  border-radius: 18px;
  background: #f8fbfe;
  padding: 14px 16px;
  min-width: 0;
  min-height: 116px;
}
.customer-plan-summary > div > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.customer-plan-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: clamp(18px, 2vw, 24px);
  overflow-wrap: anywhere;
}
.live-countdown {
  color: #9a6200;
  font-variant-numeric: tabular-nums;
}
.countdown-clock {
  --countdown-progress: 100%;
  position: relative;
  width: min(124px, 100%);
  aspect-ratio: 1;
  margin: 6px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #081a2d 0 51%, transparent 52%),
    repeating-conic-gradient(from -90deg, rgba(8, 189, 232, .95) 0 3deg, transparent 3deg 7deg);
  filter: drop-shadow(0 18px 32px rgba(8, 189, 232, .18));
}
.countdown-clock::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, rgba(8,189,232,.95) var(--countdown-progress), rgba(36,56,79,.32) 0),
    repeating-conic-gradient(from -90deg, #08bde8 0 3deg, transparent 3deg 7deg);
  mask: radial-gradient(circle, transparent 0 77%, #000 78%);
  -webkit-mask: radial-gradient(circle, transparent 0 77%, #000 78%);
  box-shadow: 0 0 14px rgba(8,189,232,.42);
}
.countdown-clock::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgba(8,189,232,.14), transparent 42%),
    linear-gradient(180deg, #0a2037, #07172a);
  border: 1px solid rgba(139,234,255,.2);
}
.countdown-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 62%, rgba(139,234,255,.18) 64%, transparent 69%);
}
.countdown-face {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
}
.customer-plan-summary .countdown-face .countdown-digital {
  display: block;
  color: #11c8ff;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 900;
  letter-spacing: .15px;
  line-height: 1;
  text-shadow:
    0 0 8px rgba(17,200,255,.9),
    0 0 20px rgba(17,200,255,.45);
  font-variant-numeric: tabular-nums;
}
.customer-plan-summary .countdown-face small {
  color: #9fdff4;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.customer-plan-summary .plan-message {
  display: grid;
  align-content: center;
  gap: 8px;
}
.customer-plan-summary .plan-message .status {
  display: inline-flex;
  width: fit-content;
  justify-self: start;
  letter-spacing: 0;
}
.customer-plan-summary .plan-message small {
  color: var(--muted);
  font-weight: 700;
}
.customer-plan-summary.expired-plan {
  border-color: #ffcaca;
  background: #fff5f5;
}
.customer-plan-summary.expired-plan > div {
  border-color: #ffcaca;
  background: #fffafa;
}
.plans-filter-row {
  grid-template-columns: minmax(220px, 340px) minmax(140px, 180px) minmax(140px, 170px);
  align-items: end;
}
.plans-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.plans-table th,
.plans-table td {
  padding: 11px 8px;
  overflow-wrap: anywhere;
}
.plans-table th:nth-child(1),
.plans-table td:nth-child(1) { width: 14%; }
.plans-table th:nth-child(2),
.plans-table td:nth-child(2) { width: 15%; }
.plans-table th:nth-child(3),
.plans-table td:nth-child(3) { width: 13%; }
.plans-table th:nth-child(4),
.plans-table td:nth-child(4) { width: 10%; }
.plans-table th:nth-child(5),
.plans-table td:nth-child(5) { width: 10%; }
.plans-table th:nth-child(6),
.plans-table td:nth-child(6) { width: 10%; }
.plans-table th:nth-child(7),
.plans-table td:nth-child(7) { width: 8%; text-align: center; }
.plans-table th:nth-child(8),
.plans-table td:nth-child(8) { width: 12%; }
.plans-table th:nth-child(9),
.plans-table td:nth-child(9) { width: 8%; }
.plans-table .action-stack {
  flex-wrap: wrap;
  gap: 4px;
}
.admin-live-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.live-monitor-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: end;
  gap: 12px;
  margin: 10px 0 16px;
}
.live-monitor-toolbar .field {
  max-width: 280px;
}
.admin-live-table th,
.admin-live-table td {
  padding: 11px 8px;
  overflow-wrap: anywhere;
}
.admin-live-table th:nth-child(1),
.admin-live-table td:nth-child(1) { width: 14%; }
.admin-live-table th:nth-child(2),
.admin-live-table td:nth-child(2) { width: 16%; }
.admin-live-table th:nth-child(3),
.admin-live-table td:nth-child(3) { width: 16%; }
.admin-live-table th:nth-child(4),
.admin-live-table td:nth-child(4) { width: 12%; }
.admin-live-table th:nth-child(5),
.admin-live-table td:nth-child(5) { width: 13%; }
.admin-live-table th:nth-child(6),
.admin-live-table td:nth-child(6) { width: 10%; }
.admin-live-table th:nth-child(7),
.admin-live-table td:nth-child(7) { width: 13%; }
.admin-live-table th:nth-child(8),
.admin-live-table td:nth-child(8) { width: 6%; }
.admin-live-table code {
  font-size: 11px;
  white-space: normal;
}
.admin-live-table small {
  color: var(--muted);
  line-height: 1.45;
}
.admin-live-table tr.active-call td {
  background: #f3fcff;
}
.pager-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.pager-row div {
  display: flex;
  gap: 8px;
}
.compact-table table {
  min-width: 520px;
}
.cdr-card-list {
  display: grid;
  gap: 12px;
}
.cdr-card {
  border: 1px solid #dce8f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: 0 16px 36px rgba(17, 45, 75, .07);
  padding: 16px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.cdr-card:hover {
  border-color: #bfeef7;
  box-shadow: 0 20px 42px rgba(17, 45, 75, .1);
  transform: translateY(-1px);
}
.cdr-card-main {
  display: grid;
  grid-template-columns: minmax(190px, .75fr) minmax(0, 1.55fr);
  gap: 16px;
  align-items: start;
}
.cdr-card-title {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.cdr-card-title h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.cdr-card-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.cdr-card-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
}
.cdr-card-details div {
  min-width: 0;
  border: 1px solid #e7eef5;
  border-radius: 11px;
  background: white;
  padding: 10px 11px;
}
.cdr-card-details span {
  display: block;
  color: #8b98a7;
  text-transform: uppercase;
  letter-spacing: .35px;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 5px;
}
.cdr-card-details b {
  display: block;
  color: #273c54;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.cdr-card-details small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.cdr-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #e7eef5;
}
.cdr-card-actions .table-action {
  min-height: 38px;
  padding-inline: 14px;
}
.cdr-card-actions .icon-action {
  padding: 0;
}
.cdr-download {
  background: #e9fbff;
  border-color: #a7edf8;
  color: #05637a;
}
.cdr-simple-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.cdr-simple-table th,
.cdr-simple-table td {
  padding: 11px 8px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.cdr-simple-table th:nth-child(1),
.cdr-simple-table td:nth-child(1) { width: 14%; }
.cdr-simple-table th:nth-child(2),
.cdr-simple-table td:nth-child(2) { width: 10%; }
.cdr-simple-table th:nth-child(3),
.cdr-simple-table td:nth-child(3) { width: 13%; }
.cdr-simple-table th:nth-child(4),
.cdr-simple-table td:nth-child(4) { width: 18%; }
.cdr-simple-table th:nth-child(5),
.cdr-simple-table td:nth-child(5) { width: 10%; }
.cdr-simple-table th:nth-child(6),
.cdr-simple-table td:nth-child(6) { width: 13%; }
.cdr-simple-table th:nth-child(7),
.cdr-simple-table td:nth-child(7) { width: 8%; }
.cdr-simple-table th:nth-child(8),
.cdr-simple-table td:nth-child(8) { width: 14%; }
.cdr-simple-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}
.cdr-simple-table .action-stack {
  flex-wrap: nowrap;
  gap: 6px;
}
.cdr-simple-table .icon-action {
  width: auto;
  height: 30px;
  min-width: 42px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
}
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state b { display: block; color: var(--navy); margin-bottom: 7px; }
.loading { padding: 70px; text-align: center; color: var(--muted); }
.inline-form {
  display: grid;
  grid-template-columns: minmax(260px, 420px) auto;
  align-items: end;
  gap: 12px;
  max-width: 620px;
}
.inline-form .field { margin-bottom: 0; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4, 18, 36, .55);
  display: grid; place-items: center; padding: 20px; z-index: 20;
}
.modal { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: white; border-radius: 13px; box-shadow: 0 30px 90px rgba(3,20,40,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 17px; margin: 0; color: var(--navy); }
.modal-close { border: 0; background: #f0f4f6; width: 30px; height: 30px; border-radius: 50%; color: #617287; }
.modal form { padding: 22px; }
.modal-message { padding: 22px; }
.recording-modal audio {
  width: 100%;
  min-height: 54px;
  margin: 12px 0 6px;
}
.recording-modal .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.form-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.credential-result h3 { color: var(--navy); font-size: 20px; margin: 18px 0 6px; }
.credential-result > p { color: var(--muted); font-size: 12px; }
.credential-result dl { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin: 20px 0; }
.credential-result dl div { display: grid; grid-template-columns: 110px 1fr; gap: 15px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.credential-result dl div:last-child { border-bottom: 0; }
.credential-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.credential-list dl { margin: 0; }
.credential-result dt { color: var(--muted); font-size: 11px; }
.credential-result dd { margin: 0; color: var(--ink); font-size: 11px; overflow-wrap: anywhere; }
.credential-result code, td code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.toast { position: fixed; right: 24px; bottom: 24px; background: #103b30; color: #d8fff0; padding: 13px 16px; border-radius: 8px; box-shadow: 0 15px 45px rgba(4,20,35,.2); z-index: 30; font-size: 12px; }
.toast.error { background: #652929; color: #ffe7e7; }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .sidebar { width: 205px; }
  .app-main { width: calc(100% - 205px); margin-left: 205px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .setup-grid { grid-template-columns: 1fr; }
  .setup-layout {
    grid-template-columns: 1fr;
  }
  .customer-hero,
  .setup-hero,
  .support-hero {
    grid-template-columns: 1fr;
  }
  .quick-actions,
  .support-grid,
  .setup-steps,
  .live-call-summary,
  .customer-plan-summary {
    grid-template-columns: 1fr 1fr;
  }
  .live-status-head {
    display: none;
  }
  .live-status-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .live-status-cell::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #8b98a7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
  }
  .calls-filter-row {
    grid-template-columns: 1fr;
  }
  .plans-filter-row {
    grid-template-columns: 1fr;
  }
  .cdr-card-main { grid-template-columns: 1fr; }
  .cdr-card-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cdr-card-actions { justify-content: flex-start; }
}

@media (max-width: 650px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  body[data-page="customer"] {
    background:
      radial-gradient(circle at 20% -5%, rgba(8, 189, 232, .18), transparent 30%),
      linear-gradient(180deg, #eef9ff 0%, #f8fbfd 44%, #eef5f9 100%);
  }
  body[data-page="customer"] #app {
    padding: 0 !important;
    text-align: initial !important;
  }
  body[data-page="customer"] #app,
  body[data-page="customer"] .app-shell,
  body[data-page="customer"] .app-main,
  body[data-page="customer"] #view,
  body[data-page="customer"] .mobile-page-host,
  body[data-page="customer"] .mobile-app-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .login-panel { padding: 28px 22px; }
  body.mobile-menu-open {
    overflow: hidden;
  }
  .app-shell {
    display: block;
    min-height: 100vh;
  }
  .sidebar {
    display: flex;
    width: min(86vw, 318px);
    max-width: 318px;
    padding: 18px 14px;
    z-index: 80;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 20px 0 55px rgba(4, 18, 36, .32);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.mobile-menu-open .sidebar {
    transform: translateX(0);
  }
  .mobile-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    padding: 0;
    background: rgba(5, 18, 35, .52);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  body.mobile-menu-open .mobile-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar .brand {
    margin-top: 4px;
  }
  .sidebar .brand-logo {
    max-width: 190px;
  }
  .workspace {
    margin: 18px 0 17px;
  }
  .nav-link {
    min-height: 48px;
    height: auto;
    padding: 12px 13px;
    font-size: 15px;
    border-radius: 12px;
  }
  body[data-page="customer"] .sidebar {
    background:
      radial-gradient(circle at 90% 5%, rgba(8,189,232,.14), transparent 28%),
      linear-gradient(180deg, #061932 0%, #082846 100%);
  }
  body[data-page="customer"] .nav-link {
    border: 1px solid transparent;
  }
  body[data-page="customer"] .nav-link.active {
    background: linear-gradient(135deg, #0a416d 0%, #079ec0 100%);
    border-color: rgba(153,235,255,.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
  }
  .sidebar-bottom {
    margin-top: 18px;
  }
  .app-main { width: 100%; margin: 0; }
  .topbar {
    height: 72px;
    padding: 10px 14px;
    gap: 10px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(18, 47, 76, .09);
  }
  body[data-page="customer"] .topbar {
    width: 100%;
    margin: 0;
    padding: 10px 8px;
    border-radius: 0;
    background: linear-gradient(90deg, #ffffff 0%, #effcff 100%);
  }
  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dce9f2;
    border-radius: 13px;
    background: linear-gradient(135deg, #ffffff 0%, #eefbff 100%);
    color: var(--navy);
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(17, 45, 75, .08);
  }
  .mobile-top-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex: 1;
  }
  .mobile-top-brand .brand-logo {
    width: min(46vw, 170px);
  }
  .mobile-top-brand .brand {
    min-width: 0;
  }
  .topbar-spacer {
    display: none;
  }
  .system-state {
    flex: 0 0 auto;
    font-size: 11px;
    white-space: nowrap;
    min-width: 0;
  }
  body[data-page="customer"] .system-state {
    padding: 7px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e8fff5 0%, #eafaff 100%);
    color: #087c58;
    font-weight: 850;
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body[data-page="customer"] .mobile-bottom-nav {
    position: fixed;
    left: 5px;
    right: 5px;
    bottom: 6px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    border: 1px solid rgba(197, 219, 232, .88);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(239,251,255,.98) 100%);
    box-shadow: 0 20px 55px rgba(8, 30, 55, .22);
    backdrop-filter: blur(18px);
  }
  .mobile-nav-item {
    border: 0;
    border-radius: 17px;
    min-height: 52px;
    padding: 6px 4px;
    background: transparent;
    color: #697c91;
    display: grid;
    place-items: center;
    gap: 2px;
  }
  .mobile-nav-item:nth-child(2) span { color: #079a73; }
  .mobile-nav-item:nth-child(3) span { color: #0c7fd6; }
  .mobile-nav-item:nth-child(4) span { color: #7057d6; }
  .mobile-nav-item:nth-child(5) span { color: #e69516; }
  .mobile-nav-item span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    font-size: 16px;
    line-height: 1;
  }
  .mobile-nav-item b {
    font-size: 10px;
    line-height: 1;
  }
  .mobile-nav-item.active {
    background: linear-gradient(135deg, #06335d 0%, #08bde8 100%);
    color: white;
    box-shadow: 0 10px 24px rgba(8, 129, 176, .26);
  }
  .search-box { display: none; }
  .page {
    padding: 16px 10px 96px;
    max-width: 100%;
  }
  body[data-page="customer"] .mobile-page-host,
  body[data-page="customer"] .mobile-app-page,
  body[data-page="customer"] .mobile-screen-head,
  body[data-page="customer"] .mobile-hero-card,
  body[data-page="customer"] .mobile-card,
  body[data-page="customer"] .mobile-metric-grid,
  body[data-page="customer"] .mobile-action-grid,
  body[data-page="customer"] .mobile-filter-card,
  body[data-page="customer"] .mobile-section,
  body[data-page="customer"] .mobile-setup-card {
    display: block;
  }
  body[data-page="customer"] .mobile-page-host {
    min-height: calc(100vh - 72px);
  }
  body[data-page="customer"] .mobile-app-page {
    padding: 12px 6px 96px;
  }
  body[data-page="customer"] .mobile-screen-head {
    padding: 0 4px;
    text-align: left;
  }
  .mobile-screen-head {
    margin-bottom: 14px;
    text-align: left;
  }
  .mobile-screen-head span {
    color: #078dab;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 1.1px;
    text-transform: uppercase;
  }
  .mobile-screen-head h1 {
    margin: 5px 0 5px;
    color: var(--navy);
    font-size: 31px;
    line-height: 1.05;
    letter-spacing: 0;
  }
  .mobile-screen-head p {
    margin: 0;
    color: #65778c;
    font-size: 14px;
    line-height: 1.55;
  }
  .mobile-hero-card {
    margin-bottom: 12px;
    padding: 18px;
    border-radius: 20px;
    text-align: left;
    background:
      radial-gradient(circle at 92% 10%, rgba(8,189,232,.28), transparent 32%),
      linear-gradient(135deg, #071a34 0%, #0a385f 62%, #027694 100%);
    color: white;
    box-shadow: 0 22px 54px rgba(7, 26, 52, .22);
  }
  .mobile-hero-card span,
  .mobile-hero-card small {
    display: block;
    color: #b8d8e8;
    font-size: 12px;
    font-weight: 850;
  }
  .mobile-hero-card strong {
    display: block;
    margin: 8px 0 6px;
    color: white;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: 0;
  }
  .mobile-card,
  .mobile-setup-card {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #dce8f1;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 34px rgba(17, 45, 75, .08);
    text-align: left;
  }
  .mobile-card-title,
  .mobile-extension-top,
  .mobile-call-top,
  .mobile-section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }
  .mobile-card-title span,
  .mobile-extension-top span:not(.status),
  .mobile-call-top span,
  .mobile-setup-card span,
  .mobile-copy-field span,
  .mobile-call-meta span {
    color: #7e8fa2;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .7px;
    text-transform: uppercase;
  }
  .mobile-card h2,
  .mobile-setup-card h2,
  .mobile-extension-top h2,
  .mobile-call-top h2,
  .mobile-section-title h2 {
    margin: 4px 0 0;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: 0;
  }
  .mobile-card-title > b {
    padding: 9px 11px;
    border-radius: 14px;
    background: #e9fbff;
    color: #067b98;
    white-space: nowrap;
  }
  body[data-page="customer"] .mobile-plan-grid,
  body[data-page="customer"] .mobile-call-meta,
  body[data-page="customer"] .mobile-metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
  }
  .mobile-plan-grid div,
  .mobile-call-meta div,
  .mobile-metric {
    min-width: 0;
    padding: 10px;
    border-radius: 14px;
    background: #f4f9fc;
  }
  .mobile-plan-grid strong,
  .mobile-call-meta b,
  .mobile-metric strong {
    display: block;
    margin-top: 4px;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.25;
  }
  .mobile-metric span,
  .mobile-metric small {
    display: block;
    color: #7b8ca0;
    font-size: 11px;
    font-weight: 850;
  }
  body[data-page="customer"] .mobile-metric-grid {
    margin: 0 0 12px;
  }
  body[data-page="customer"] .mobile-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
  }
  .mobile-action-grid button,
  .mobile-section-title button {
    border: 1px solid #dce8f1;
    border-radius: 15px;
    background: #ffffff;
    color: var(--navy);
    text-align: left;
    padding: 12px;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(17,45,75,.06);
  }
  .mobile-action-grid button span {
    display: block;
    margin-top: 5px;
    color: #75879b;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
  }
  .mobile-section {
    margin-top: 14px;
  }
  .mobile-section-title {
    margin: 0 0 10px;
  }
  .mobile-section-title button {
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 12px;
    box-shadow: none;
  }
  .mobile-copy-field {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
    margin-top: 11px;
  }
  .mobile-copy-field span {
    grid-column: 1 / -1;
  }
  .mobile-copy-field code {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e3edf4;
    border-radius: 14px;
    background: #f7fafc;
    color: #152940;
    white-space: nowrap;
    overflow-x: auto;
    font-size: 13px;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }
  .mobile-action-row .primary-button,
  .mobile-action-row .secondary-button {
    width: 100%;
    min-height: 43px;
    text-decoration: none;
  }
  .mobile-call-item.missed-call {
    border-color: #f4c8c8;
    background: #fffafa;
  }
  body[data-page="customer"] .mobile-filter-card {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #dce8f1;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17,45,75,.06);
  }
  .mobile-filter-card input,
  .mobile-filter-card select {
    width: 100%;
    border: 1px solid #dce8f1;
    border-radius: 14px;
    padding: 12px;
    background: #f7fbfd;
    color: var(--navy);
    text-align: left;
  }
  .mobile-settings-list {
    display: grid;
    gap: 8px;
    margin: 12px 0;
  }
  .mobile-settings-list div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #e7f0f6;
  }
  .mobile-settings-list b {
    color: var(--navy);
    text-align: right;
  }
  .mobile-setup-card.highlight {
    background: linear-gradient(180deg, #ffffff 0%, #f0fbff 100%);
    border-color: #bfeefa;
  }
  .mobile-empty,
  .mobile-muted {
    display: block;
    padding: 18px;
    border: 1px dashed #cddde8;
    border-radius: 16px;
    background: rgba(255,255,255,.75);
    color: #75879b;
    text-align: left;
    font-size: 13px;
  }
  .page-head {
    display: grid;
    align-items: start;
    gap: 12px;
    margin-bottom: 14px;
  }
  .page-head h1 {
    font-size: 25px;
    letter-spacing: 0;
  }
  .page-head p {
    font-size: 13px;
    line-height: 1.5;
  }
  .page-head .secondary-button,
  .page-head .primary-button {
    width: 100%;
  }
  .panel {
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: 0 12px 30px rgba(15, 40, 68, .06);
  }
  .panel-head {
    display: grid;
    gap: 10px;
    align-items: start;
  }
  .panel-head h2 {
    font-size: 18px;
  }
  .panel-head p {
    font-size: 12px;
    line-height: 1.45;
  }
  .stats { grid-template-columns: 1fr; }
  .customer-hero,
  .setup-hero,
  .support-hero {
    width: 100%;
    margin: 0 0 14px;
    padding: 20px;
    border-radius: 24px;
  }
  .customer-hero h1,
  .setup-hero h1,
  .support-hero h1 {
    font-size: 29px;
    letter-spacing: 0;
  }
  .customer-hero p,
  .setup-hero p,
  .support-hero p {
    font-size: 13px;
  }
  .hero-number {
    padding: 14px;
  }
  .hero-number strong {
    font-size: 23px;
  }
  .quick-action {
    padding: 15px;
    border-radius: 15px;
  }
  body[data-page="customer"] .quick-actions {
    gap: 10px;
  }
  body[data-page="customer"] .quick-action {
    min-height: 92px;
    background:
      radial-gradient(circle at 92% 10%, rgba(8, 189, 232, .13), transparent 28%),
      #ffffff;
  }
  body[data-page="customer"] .customer-plan-summary {
    gap: 10px;
  }
  body[data-page="customer"] .customer-plan-summary > div {
    min-height: 94px;
    padding: 14px;
    border-radius: 18px;
  }
  body[data-page="customer"] .customer-plan-summary strong {
    font-size: 18px;
  }
  body[data-page="customer"] .countdown-clock {
    transform: scale(.86);
    transform-origin: left center;
  }
  body[data-page="customer"] .setup-layout,
  body[data-page="customer"] .setup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body[data-page="customer"] .credential-panel,
  body[data-page="customer"] .settings-panel,
  body[data-page="customer"] .apps-panel {
    grid-column: auto;
    order: initial;
  }
  body[data-page="customer"] .credential-panel {
    order: -1;
  }
  body[data-page="customer"] .setup-card,
  body[data-page="customer"] .setup-grid article {
    padding: 15px;
    border-radius: 16px;
  }
  body[data-page="customer"] .setting-list div {
    display: grid;
    gap: 4px;
  }
  body[data-page="customer"] .setting-list b {
    text-align: left;
  }
  body[data-page="customer"] .app-link-list a {
    border-radius: 14px;
    padding: 14px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 27px;
  }
  .quick-actions,
  .support-grid,
  .setup-steps,
  .live-call-summary,
  .customer-plan-summary,
  .live-metrics {
    grid-template-columns: 1fr;
  }
  .live-status-row {
    grid-template-columns: 1fr;
  }
  .credential-panel-head,
  .credential-title {
    display: grid;
  }
  .filter-row,
  .calls-filter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .wide-search,
  .compact-search,
  .field.compact-field,
  .field.compact-field select,
  .field.compact-field input {
    width: 100%;
  }
  .credential-field {
    grid-template-columns: 1fr;
  }
  .credential-copy-all,
  .copy-mini {
    width: 100%;
  }
  .customer-extension-table-full {
    overflow-x: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .customer-extension-table-full table,
  .customer-extension-table-full thead,
  .customer-extension-table-full tbody,
  .customer-extension-table-full tr,
  .customer-extension-table-full th,
  .customer-extension-table-full td {
    display: block;
    width: 100% !important;
    min-width: 0;
  }
  .customer-extension-table-full thead {
    display: none;
  }
  .customer-extension-table-full tr {
    margin-bottom: 13px;
    padding: 13px;
    border: 1px solid #dce8f1;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 45, 75, .06);
  }
  .customer-extension-table-full td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid #edf3f7;
  }
  .customer-extension-table-full td:last-child {
    border-bottom: 0;
  }
  .customer-extension-table-full td::before {
    color: #7d8da0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .45px;
    text-transform: uppercase;
  }
  .customer-extension-table-full td:nth-child(1)::before { content: "Extension"; }
  .customer-extension-table-full td:nth-child(2)::before { content: "Name"; }
  .customer-extension-table-full td:nth-child(3)::before { content: "Username"; }
  .customer-extension-table-full td:nth-child(4)::before { content: "Password"; }
  .customer-extension-table-full td:nth-child(5)::before { content: "Status"; }
  .customer-extension-table-full td:nth-child(6)::before { content: "Action"; }
  .customer-extension-table-full .action-stack,
  .customer-extension-table-full .credential-cell {
    min-width: 0;
    width: 100%;
  }
  .customer-extension-table-full .action-stack {
    justify-content: flex-start;
  }
  body[data-page="customer"] .call-table,
  body[data-page="customer"] .credential-table,
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) {
    overflow-x: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  body[data-page="customer"] .call-table table,
  body[data-page="customer"] .call-table thead,
  body[data-page="customer"] .call-table tbody,
  body[data-page="customer"] .call-table tr,
  body[data-page="customer"] .call-table th,
  body[data-page="customer"] .call-table td,
  body[data-page="customer"] .credential-table table,
  body[data-page="customer"] .credential-table thead,
  body[data-page="customer"] .credential-table tbody,
  body[data-page="customer"] .credential-table tr,
  body[data-page="customer"] .credential-table th,
  body[data-page="customer"] .credential-table td,
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) table,
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) thead,
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) tbody,
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) tr,
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) th,
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) td {
    display: block;
    width: 100% !important;
    min-width: 0;
  }
  body[data-page="customer"] .call-table thead,
  body[data-page="customer"] .credential-table thead,
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) thead {
    display: none;
  }
  body[data-page="customer"] .call-table tr,
  body[data-page="customer"] .credential-table tr,
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) tr {
    margin-bottom: 13px;
    padding: 13px;
    border: 1px solid #dce8f1;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 45, 75, .06);
  }
  body[data-page="customer"] .call-table td,
  body[data-page="customer"] .credential-table td,
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid #edf3f7;
    font-size: 13px;
  }
  body[data-page="customer"] .call-table td:last-child,
  body[data-page="customer"] .credential-table td:last-child,
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) td:last-child {
    border-bottom: 0;
  }
  body[data-page="customer"] .call-table td::before,
  body[data-page="customer"] .credential-table td::before,
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) td::before {
    color: #7d8da0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .45px;
    text-transform: uppercase;
  }
  body[data-page="customer"] .call-table td:nth-child(1)::before { content: "Direction"; }
  body[data-page="customer"] .call-table td:nth-child(2)::before { content: "From"; }
  body[data-page="customer"] .call-table td:nth-child(3)::before { content: "To"; }
  body[data-page="customer"] .call-table td:nth-child(4)::before { content: "Date"; }
  body[data-page="customer"] .call-table td:nth-child(5)::before { content: "Duration"; }
  body[data-page="customer"] .call-table td:nth-child(6)::before { content: "Status"; }
  body[data-page="customer"] .call-table td:nth-child(7)::before { content: "Recording"; }
  body[data-page="customer"] .call-table td:nth-child(8)::before { content: "Action"; }
  body[data-page="customer"] .credential-table td:nth-child(1)::before { content: "Extension"; }
  body[data-page="customer"] .credential-table td:nth-child(2)::before { content: "Username"; }
  body[data-page="customer"] .credential-table td:nth-child(3)::before { content: "Password"; }
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) td:nth-child(1)::before { content: "Extension"; }
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) td:nth-child(2)::before { content: "Name"; }
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) td:nth-child(3)::before { content: "Username"; }
  body[data-page="customer"] .customer-extension-table:not(.customer-extension-table-full) td:nth-child(4)::before { content: "Status"; }
  body[data-page="customer"] .call-table .table-action,
  body[data-page="customer"] .call-table .cdr-download {
    min-height: 38px;
  }
  body[data-page="customer"] .credential-table .credential-cell,
  body[data-page="customer"] .customer-extension-table .credential-cell {
    grid-template-columns: minmax(0, 1fr) 42px;
    width: 100%;
  }
  body[data-page="customer"] .credential-table .icon-copy,
  body[data-page="customer"] .customer-extension-table .icon-copy {
    width: 42px;
    height: 42px;
  }
  body[data-page="customer"] .credential-cell code,
  body[data-page="customer"] td code {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-overflow-scrolling: touch;
    font-size: 12px;
  }
  body[data-page="customer"] .customer-extension-table-full .action-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  body[data-page="customer"] .customer-extension-table-full .action-stack .table-action {
    width: 100%;
    min-height: 42px;
  }
  .pager-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
  }
  .pager-row div {
    grid-column: 1 / -1;
    text-align: center;
  }
  .pager-row button {
    width: 100%;
  }
  .ticket-top {
    display: grid;
    gap: 10px;
    padding: 15px;
  }
  .ticket-meta {
    justify-items: start;
    white-space: normal;
  }
  .ticket-thread,
  .ticket-reply {
    padding: 14px;
  }
  .ticket-message {
    max-width: 100%;
  }
  .activity-card {
    grid-template-columns: 14px minmax(0, 1fr);
    padding: 13px;
  }
  .activity-topline {
    display: grid;
    gap: 4px;
  }
  .activity-details span {
    border-radius: 12px;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    text-align: right;
  }
  .form-grid { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .form-actions .primary-button,
  .form-actions .secondary-button,
  .form-actions .danger-button {
    width: 100%;
  }
  .modal-backdrop {
    align-items: stretch;
    padding: 10px;
  }
  .modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }
  .modal-head {
    padding: 15px 16px;
  }
  .modal form,
  .modal-message {
    padding: 16px;
  }
  .cdr-card { padding: 13px; }
  .cdr-card-details { grid-template-columns: 1fr; }
  .cdr-card-actions .table-action,
  .cdr-card-actions .cdr-download { width: 100%; }

  /* Customer mobile full-bleed formula: fit every phone width without centered gutters. */
  body[data-page="customer"] {
    --mobile-edge: clamp(0px, 1vw, 4px);
  }
  body[data-page="customer"] #app,
  body[data-page="customer"] .app-shell,
  body[data-page="customer"] .app-main,
  body[data-page="customer"] #view,
  body[data-page="customer"] .mobile-page-host,
  body[data-page="customer"] .mobile-app-page {
    inline-size: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    transform: none !important;
  }
  body[data-page="customer"] .mobile-app-page {
    padding-inline: var(--mobile-edge) !important;
  }
  body[data-page="customer"] .mobile-screen-head,
  body[data-page="customer"] .mobile-hero-card,
  body[data-page="customer"] .mobile-card,
  body[data-page="customer"] .mobile-metric-grid,
  body[data-page="customer"] .mobile-action-grid,
  body[data-page="customer"] .mobile-filter-card,
  body[data-page="customer"] .mobile-section,
  body[data-page="customer"] .mobile-setup-card,
  body[data-page="customer"] .mobile-plan-card,
  body[data-page="customer"] .mobile-extension-card,
  body[data-page="customer"] .mobile-call-item,
  body[data-page="customer"] .mobile-live-card {
    inline-size: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  body[data-page="customer"] .mobile-screen-head {
    padding-inline: calc(var(--mobile-edge) + 2px) !important;
  }
  body[data-page="customer"] .mobile-bottom-nav {
    left: var(--mobile-edge) !important;
    right: var(--mobile-edge) !important;
    bottom: var(--mobile-edge) !important;
  }
  body[data-page="customer"] .mobile-bottom-nav::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(8,189,232,.35), rgba(5,28,54,.08), rgba(255,153,0,.22));
  }
  body[data-page="customer"] .mobile-nav-item.active span,
  body[data-page="customer"] .mobile-nav-item.active b {
    color: #ffffff;
  }

  /* Admin mobile layout: same clean phone experience as the customer panel. */
  body[data-page="admin"] {
    --mobile-edge: clamp(0px, 1vw, 4px);
    background:
      radial-gradient(circle at 18% -8%, rgba(8, 189, 232, .18), transparent 30%),
      radial-gradient(circle at 100% 10%, rgba(255, 153, 0, .12), transparent 24%),
      linear-gradient(180deg, #eef8ff 0%, #f8fbfd 48%, #edf5fa 100%);
  }
  body[data-page="admin"] #app {
    padding: 0 !important;
    text-align: initial !important;
  }
  body[data-page="admin"] #app,
  body[data-page="admin"] .app-shell,
  body[data-page="admin"] .app-main,
  body[data-page="admin"] #view,
  body[data-page="admin"] .page {
    inline-size: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    transform: none !important;
  }
  body[data-page="admin"] .sidebar {
    background:
      radial-gradient(circle at 92% 4%, rgba(255, 153, 0, .18), transparent 27%),
      radial-gradient(circle at 6% 18%, rgba(8, 189, 232, .14), transparent 30%),
      linear-gradient(180deg, #061932 0%, #092f55 100%);
  }
  body[data-page="admin"] .nav-link {
    border: 1px solid transparent;
  }
  body[data-page="admin"] .nav-link.active {
    background: linear-gradient(135deg, #083a67 0%, #08aeca 100%);
    border-color: rgba(153,235,255,.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
  }
  body[data-page="admin"] .topbar {
    width: 100%;
    margin: 0;
    padding: 10px 8px;
    border-radius: 0;
    background: linear-gradient(90deg, #ffffff 0%, #effcff 100%);
  }
  body[data-page="admin"] .system-state {
    padding: 7px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e8fff5 0%, #eafaff 100%);
    color: #087c58;
    font-weight: 850;
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body[data-page="admin"] .page {
    padding: 12px var(--mobile-edge) 96px !important;
    text-align: left !important;
  }
  body[data-page="admin"] .page-head {
    padding: 0 calc(var(--mobile-edge) + 2px);
  }
  body[data-page="admin"] .page-head h1 {
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: 0;
  }
  body[data-page="admin"] .page-head p {
    max-width: 100%;
    color: #65778c;
  }
  body[data-page="admin"] .page-head .primary-button,
  body[data-page="admin"] .page-head .secondary-button,
  body[data-page="admin"] .row-actions,
  body[data-page="admin"] .row-actions .secondary-button {
    width: 100%;
  }
  body[data-page="admin"] .row-actions {
    justify-content: stretch;
  }
  body[data-page="admin"] .panel,
  body[data-page="admin"] .card {
    inline-size: 100%;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  body[data-page="admin"] .panel {
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 34px rgba(17, 45, 75, .08);
  }
  body[data-page="admin"] .panel-head {
    display: grid;
    gap: 10px;
  }
  body[data-page="admin"] .panel-head .secondary-button {
    width: 100%;
  }
  body[data-page="admin"] .wide-search,
  body[data-page="admin"] .compact-search,
  body[data-page="admin"] .field,
  body[data-page="admin"] .compact-field,
  body[data-page="admin"] .field input,
  body[data-page="admin"] .field select,
  body[data-page="admin"] .table-select {
    width: 100%;
    min-width: 0;
  }
  body[data-page="admin"] .filter-row,
  body[data-page="admin"] .cdr-filter-row,
  body[data-page="admin"] .plans-filter-row,
  body[data-page="admin"] .live-monitor-toolbar,
  body[data-page="admin"] .inline-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }
  body[data-page="admin"] .live-call-summary,
  body[data-page="admin"] .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  body[data-page="admin"] .stat,
  body[data-page="admin"] .live-call-summary div {
    min-width: 0;
    padding: 13px;
    border-radius: 16px;
  }
  body[data-page="admin"] .mobile-bottom-nav {
    position: fixed;
    left: var(--mobile-edge) !important;
    right: var(--mobile-edge) !important;
    bottom: var(--mobile-edge) !important;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    border: 1px solid rgba(197, 219, 232, .88);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(239,251,255,.98) 100%);
    box-shadow: 0 20px 55px rgba(8, 30, 55, .22);
    backdrop-filter: blur(18px);
  }
  body[data-page="admin"] .mobile-bottom-nav::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(8,189,232,.35), rgba(5,28,54,.08), rgba(255,153,0,.22));
  }
  body[data-page="admin"] .mobile-nav-item.active span,
  body[data-page="admin"] .mobile-nav-item.active b {
    color: #ffffff;
  }
  body[data-page="admin"] .table-wrap {
    overflow-x: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body[data-page="admin"] .table-wrap table,
  body[data-page="admin"] .table-wrap thead,
  body[data-page="admin"] .table-wrap tbody,
  body[data-page="admin"] .table-wrap tr,
  body[data-page="admin"] .table-wrap th,
  body[data-page="admin"] .table-wrap td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body[data-page="admin"] .table-wrap table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto !important;
  }
  body[data-page="admin"] .table-wrap thead {
    display: none;
  }
  body[data-page="admin"] .table-wrap tr {
    margin-bottom: 12px;
    padding: 13px;
    border: 1px solid #dce8f1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 45, 75, .06);
  }
  body[data-page="admin"] .table-wrap tr.active-call {
    border-color: rgba(8, 189, 232, .42);
    background: linear-gradient(180deg, #ffffff 0%, #f0fbff 100%);
  }
  body[data-page="admin"] .table-wrap td {
    display: grid;
    grid-template-columns: minmax(86px, .72fr) minmax(0, 1.28fr);
    gap: 9px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid #edf3f7;
    overflow-wrap: anywhere;
    text-align: left !important;
    font-size: 13px;
  }
  body[data-page="admin"] .table-wrap td:last-child {
    border-bottom: 0;
  }
  body[data-page="admin"] .table-wrap td::before {
    content: attr(data-label);
    color: #7d8da0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .45px;
    text-transform: uppercase;
  }
  body[data-page="admin"] .table-wrap td code,
  body[data-page="admin"] .sip-uri-cell code {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  body[data-page="admin"] .copy-line,
  body[data-page="admin"] .credential-cell {
    grid-template-columns: minmax(0, 1fr) 38px;
    width: 100%;
    min-width: 0;
  }
  body[data-page="admin"] .admin-action-cell .action-stack,
  body[data-page="admin"] .action-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px;
    width: 100%;
    min-width: 0;
  }
  body[data-page="admin"] .admin-customers-table .icon-action,
  body[data-page="admin"] .cdr-simple-table .icon-action,
  body[data-page="admin"] .icon-action {
    width: auto;
    height: 34px;
    min-width: 38px;
    padding: 0 9px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1;
  }
  body[data-page="admin"] .admin-customers-table .icon-action.danger-action,
  body[data-page="admin"] .icon-action.danger-action {
    min-width: 34px;
    font-size: 13px;
  }
  body[data-page="admin"] .pager-row {
    margin-top: 4px;
  }
}
