:root {
  --ink: #071c2f;
  --blue: #0b3a63;
  --blue-2: #2f75b5;
  --cyan: #00a7d8;
  --paper: #f5f8fb;
  --line: #dbe5ee;
  --muted: #66778a;
  --white: #fff;
  --ok: #0f9f6e;
  --bad: #d34a4a;
  --shadow: 0 18px 45px rgba(7, 28, 47, .1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  color: #dcecf7;
  background: linear-gradient(180deg, #061827, #0b3a63);
}
.brand img { width: 160px; margin-bottom: 12px; }
.brand span { display: block; font-weight: 950; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav a,
.back-link {
  padding: 11px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.82);
  font-weight: 850;
}
.sidebar nav a:hover,
.sidebar nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.back-link { margin-top: auto; border: 1px solid rgba(255,255,255,.18); }
.shell {
  margin-left: 252px;
  padding: 24px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(32px, 4vw, 48px); }
h2 { margin-bottom: 0; font-size: 24px; }
button,
.primary {
  min-height: 40px;
  padding: 9px 13px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
button:not(.primary) { color: var(--blue); background: #eaf4fb; }
button.danger {
  color: #fff;
  background: var(--bad);
}
.status-grid,
.grid-2 {
  display: grid;
  gap: 14px;
}
.dashboard-section {
  display: block;
}
.status-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 14px;
}
.status-grid article,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.status-grid article { padding: 18px; }
.status-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.status-grid strong { display: block; margin: 8px 0 3px; font-size: 30px; }
.status-grid small { color: var(--muted); font-weight: 750; }
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}
.admin-body .shell > section[id] {
  width: 100%;
}
.admin-body .grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
.admin-body .cards-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}
.admin-body .cards-list article {
  min-width: 0;
}
.panel { padding: 18px; }
.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.panel-head.compact { align-items: center; }
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-form {
  display: grid;
  gap: 10px;
}
.button-like {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-actions span {
  color: var(--muted);
  font-weight: 750;
}
.check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: #30485d;
}
.check-row input {
  width: 18px;
  min-height: 18px;
}
small.success { color: #15803d; font-weight: 850; }
small.error { color: #b91c1c; font-weight: 850; }
label { display: grid; gap: 6px; color: #30485d; font-weight: 850; }
input, select, textarea {
  min-height: 40px;
  padding: 9px 11px;
  color: var(--ink);
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
textarea { min-height: 86px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { min-height: auto; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ringgroup-members,
.ringgroup-config {
  display: grid;
  gap: 8px;
}
.ringgroup-members p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.active-calls-panel {
  margin-bottom: 14px;
}
.active-calls-panel td {
  white-space: nowrap;
}
.active-calls-panel .channel-name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.call-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.call-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(15, 159, 110, .12);
}
.call-state.idle::before,
.call-state.down::before {
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(102, 119, 138, .12);
}
.tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf4fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.tag.active, .tag.registered, .tag.answered { color: #086647; background: #e9f9f2; }
.tag.suspended, .tag.offline, .tag.failed { color: #9b2f2f; background: #fff0f0; }
.cards-list { display: grid; gap: 10px; margin-top: 12px; }
.cards-list article {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
}
.ivr-row {
  display: block;
  width: 100%;
  min-height: 104px;
  padding: 13px;
  color: var(--ink);
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
}
.ivr-row:hover {
  background: #f1fbff;
  border-color: #cdebf7;
}
.ivr-row h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.ivr-row p {
  color: var(--muted);
  margin: 0 0 8px;
}
.ivr-row small {
  color: var(--muted);
  font-weight: 750;
}
.cards-list h3 { margin-bottom: 5px; }
.cards-list p { color: var(--muted); margin: 0; }
.admin-client-editor {
  display: grid;
  gap: 14px;
}
.editor-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 2px;
}
.profile-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.editor-summary div,
.profile-summary div,
.subpanel {
  padding: 14px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.editor-summary span,
.profile-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.editor-summary strong,
.profile-summary strong {
  display: block;
  margin: 5px 0 2px;
  overflow-wrap: anywhere;
}
.editor-summary small {
  color: var(--muted);
  font-weight: 750;
}
.admin-resource-list {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}
.admin-body .admin-resource-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.admin-resource-list article {
  background: #fff;
}
.admin-resource-list form h3 {
  margin-bottom: 4px;
}
.admin-resource-list form small {
  color: var(--muted);
  font-weight: 750;
}
.admin-key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
pre {
  overflow: auto;
  margin: 12px 0 0;
  padding: 12px;
  color: #30485d;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  white-space: pre-wrap;
  font-family: inherit;
}
.result-message {
  display: none;
  margin: 12px 0 0;
  padding: 12px 14px;
  color: #30485d;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 750;
}
.result-message:not(:empty) { display: block; }
.result-message.success {
  color: #086647;
  background: #e9f9f2;
  border-color: #bcead5;
}
.result-message.error {
  color: #9b2f2f;
  background: #fff0f0;
  border-color: #f1c3c3;
}
.captcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 950;
}
.captcha-box button {
  padding: 7px 10px;
  font-size: 12px;
}
.solo-select { margin-bottom: 8px; }
.info-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: #30485d;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
}
code {
  padding: 2px 5px;
  background: #eaf4fb;
  border-radius: 5px;
}
.hidden { display: none !important; }
.client-body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, #eaf4fb, transparent 28%), var(--paper);
}
.client-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
.client-login {
  max-width: 460px;
  margin: 8vh auto 0;
}
.client-login img { width: 180px; margin-bottom: 16px; }
.client-login p,
.client-login small { color: var(--muted); }
.login-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0;
  padding: 5px;
  background: #eef5fa;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.login-tabs button {
  min-height: 36px;
  padding: 7px 8px;
  color: #496377;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
}
.login-tabs button.active {
  color: #fff;
  background: var(--blue);
}
.client-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 252px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
  color: #dcecf7;
  background: linear-gradient(180deg, #061827, #0b3a63);
}
.client-brand img {
  width: 162px;
  margin-bottom: 12px;
}
.client-brand span {
  display: block;
  font-weight: 950;
}
.client-nav {
  display: grid;
  gap: 7px;
}
.client-nav a {
  padding: 11px 12px;
  color: rgba(255,255,255,.82);
  border-radius: 8px;
  font-weight: 850;
}
.client-nav a:hover,
.client-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.client-sidebar #clientLogout {
  margin-top: auto;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
.client-content {
  margin-left: 252px;
  padding: 24px;
}
.client-content.no-sidebar {
  margin-left: 0;
  width: min(1180px, 100%);
  margin-inline: auto;
}
.extension-user-shell {
  padding: 24px;
}
.extension-portal-app {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  gap: 14px;
  width: min(1180px, 100%);
  margin: 6vh auto 0;
}
.extension-summary-panel,
.extension-password-panel {
  padding: 20px;
}
.extension-status-grid {
  margin: 18px 0 0;
}
.extension-status-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}
.extension-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.extension-actions .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.phone-session-bar {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(18,49,75,.14);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(18,49,75,.14);
}
.phone-session-bar a,
.phone-session-bar button {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 8px;
  font: 700 13px Roboto, Arial, sans-serif;
  text-decoration: none;
}
.phone-session-bar a {
  color: #12314b;
  background: #e9f0f6;
}
.phone-session-bar button {
  color: #fff;
  background: #9d1c2d;
}
.extension-user-app {
  width: 100%;
}
.extension-desk {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(360px, 1fr);
  gap: 14px;
  align-items: start;
}
.incoming-call-banner {
  position: sticky;
  top: 12px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(135deg, #08784f, #0c95c7);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  box-shadow: 0 20px 55px rgba(7, 28, 47, .28);
  animation: incomingPulse 1.1s ease-in-out infinite alternate;
}
.incoming-call-banner strong {
  display: block;
  margin: 2px 0;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}
.incoming-call-banner span {
  color: rgba(255,255,255,.84);
  font-weight: 850;
}
.incoming-call-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.incoming-call-actions button {
  min-width: 132px;
  min-height: 48px;
  color: #fff;
}
.incoming-call-actions .call-button {
  background: #15a463;
}
@keyframes incomingPulse {
  from { transform: translateY(0); box-shadow: 0 18px 48px rgba(7, 28, 47, .22); }
  to { transform: translateY(-2px); box-shadow: 0 26px 68px rgba(7, 28, 47, .34); }
}
.softphone-panel {
  position: sticky;
  top: 18px;
}
.softphone-display {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: #dcecf7;
  background: linear-gradient(160deg, #061827, #0b3a63);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
}
.softphone-display small {
  color: #a8d6f4;
  font-weight: 850;
}
.softphone-display input {
  min-height: 58px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 0;
}
.softphone-display input::placeholder {
  color: rgba(255,255,255,.55);
  font-size: 18px;
}
.call-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255,255,255,.78);
  font-weight: 800;
}
.dialpad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.dialpad button {
  min-height: 68px;
  display: grid;
  place-items: center;
  gap: 0;
  color: var(--ink);
  background: #f8fbfd;
  border: 1px solid var(--line);
}
.dialpad button:hover {
  border-color: var(--blue-2);
  background: #eef7fd;
}
.dialpad strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}
.dialpad span {
  min-height: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}
.softphone-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.softphone-actions .call-button {
  color: #fff;
  background: var(--ok);
}
.compact-search {
  width: min(220px, 100%);
}
.directory-list {
  display: grid;
  gap: 9px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}
.directory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.directory-row.self {
  border-color: #b7d8ef;
  background: #f0f8fd;
}
.directory-row strong {
  display: inline-flex;
  min-width: 62px;
  color: var(--blue);
  font-size: 19px;
}
.directory-row span {
  font-weight: 900;
}
.directory-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
}
.directory-row > div:last-child {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.transfer-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.security-panel {
  grid-column: 2;
}
.client-section {
  scroll-margin-top: 20px;
  margin-bottom: 14px;
}
.client-section > .panel + .panel {
  margin-top: 14px;
}
.client-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.horizontal-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trunk-config-card {
  display: grid;
  gap: 12px;
}
.trunk-config-card h3 {
  margin-bottom: 0;
}
.trunk-config-card form {
  display: grid;
  gap: 10px;
}
.trunk-config-card select,
.trunk-config-card button {
  width: 100%;
}
.trunk-extension-checks {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}
.trunk-extension-checks .check {
  align-items: center;
  min-height: 34px;
}
.extension-portal-box {
  grid-column: 1 / -1;
}
.billing-plans {
  display: grid;
  gap: 10px;
}
.billing-plan {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
}
.billing-plan.selected {
  border-color: var(--cyan);
  background: #f1fbff;
}
.billing-plan span {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.billing-plan strong { display: block; margin: 8px 0; font-size: 22px; }
.capacity-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px)) minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.provider-number-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.provider-number-form .wide-field,
.provider-number-form .form-actions,
.provider-number-form .primary {
  grid-column: 1 / -1;
}
.provider-number-form .form-actions {
  justify-content: start;
}
.capacity-form input {
  min-height: 46px;
  font-size: 18px;
  font-weight: 850;
}
.capacity-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f1fbff;
  border: 1px solid #cdebf7;
  border-radius: 10px;
}
.capacity-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.capacity-summary span {
  color: var(--muted);
  font-weight: 850;
}
.capacity-summary strong {
  color: var(--blue);
  text-align: right;
}
.capacity-summary small {
  color: var(--muted);
  font-weight: 750;
}
.panel-note {
  margin-top: -4px;
  margin-bottom: 14px;
  color: var(--muted);
}
.payment-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}
.payment-body {
  background:
    radial-gradient(circle at 12% 8%, #dff3fb, transparent 26%),
    linear-gradient(135deg, #f7fbfd 0%, #eef6fa 100%);
}
.payment-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 32px;
}
.payment-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.payment-brand img {
  width: 132px;
  display: block;
}
.payment-brand h1 {
  margin: 0;
}
.payment-back {
  margin-left: auto;
  padding: 10px 13px;
  color: var(--blue);
  background: #eaf4fb;
  border-radius: 8px;
  font-weight: 900;
}
.payment-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(340px, .95fr);
  gap: 16px;
  align-items: start;
}
.payment-checkout-card,
.payment-guide {
  min-height: calc(100vh - 130px);
}
.payment-summary-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.payment-summary-form button {
  grid-column: 1 / -1;
  justify-self: start;
}
.payment-status {
  min-height: 42px;
  padding: 12px 14px;
  margin-bottom: 12px;
  color: var(--blue);
  background: #f1fbff;
  border: 1px solid #cdebf7;
  border-radius: 8px;
  font-weight: 850;
}
.payment-status[data-tone="success"] {
  color: #136143;
  background: #eefaf4;
  border-color: #bde8d1;
}
.payment-status[data-tone="error"] {
  color: #8b1d1d;
  background: #fff1f1;
  border-color: #f0caca;
}
.stripe-embed {
  min-height: 520px;
}
.payment-guide h2 {
  margin-bottom: 10px;
}
.payment-guide ol {
  display: grid;
  gap: 10px;
  padding-left: 21px;
  margin: 0;
}
.payment-guide li {
  color: #30485d;
  line-height: 1.45;
}
.payment-guide li strong {
  color: var(--blue);
}
.payment-guide-note {
  margin-top: 16px;
  padding: 14px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.payment-guide-note p {
  margin: 6px 0 0;
  color: var(--muted);
}
.call-history {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.call-history article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.call-history h3 {
  margin-bottom: 4px;
  font-size: 16px;
}
.call-history p {
  margin: 0;
  color: var(--muted);
}
.call-history small {
  color: var(--muted);
  text-align: right;
}
.extension-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.extension-row {
  width: 100%;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
}
.extension-row:hover {
  background: #f1fbff;
  border-color: #cdebf7;
}
.extension-number {
  display: grid;
  place-items: center;
  min-height: 36px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 950;
}
.extension-row strong,
.extension-row small {
  display: block;
}
.extension-row small {
  color: var(--muted);
  margin-top: 3px;
}
.extension-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.extension-settings-form label { min-width: 0; }
.sip-config-box,
.extension-call-scope,
.extension-settings-form button {
  grid-column: 1 / -1;
}
.sip-config-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #f1fbff;
  border: 1px solid #cdebf7;
  border-radius: 10px;
}
.sip-config-box div {
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sip-config-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.sip-config-box strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.sip-config-box small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 750;
}
.extension-call-scope {
  flex-direction: row;
  align-items: center;
  padding: 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.extension-call-scope input {
  width: 18px;
  min-height: 18px;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 28, 47, .48);
}
.modal-panel {
  width: min(560px, 100%);
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(7, 28, 47, .24);
}
.modal-panel.wide {
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.modal-head h2 { margin-bottom: 0; }
.ivr-settings-form {
  display: grid;
  gap: 14px;
}
.ivr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.wide-field {
  grid-column: 1 / -1;
}
.ivr-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-title h3 {
  margin-bottom: 0;
}
.section-title .check span {
  display: grid;
  gap: 2px;
}
.section-title .check small {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}
.section-title small,
.audio-upload-row span {
  color: var(--muted);
  font-weight: 750;
}
.audio-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, .7fr);
  align-items: center;
  gap: 10px;
}
.ivr-keys {
  display: grid;
  gap: 8px;
}
.ivr-key-row {
  display: grid;
  grid-template-columns: 44px 160px minmax(120px, 1fr) minmax(140px, 1fr);
  align-items: center;
  gap: 8px;
}
.ivr-key-row strong {
  display: grid;
  place-items: center;
  min-height: 40px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
}
.store-filters {
  align-items: end;
  margin: 0 0 14px;
}
.admin-store-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}
.store-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.store-settings-form .check,
.store-settings-form button {
  grid-column: 1 / -1;
}
.store-admin-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
}
.store-admin-status span,
.store-orders-table small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.store-admin-status strong {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.store-orders-table th,
.store-orders-table td {
  vertical-align: top;
  min-width: 120px;
}
.store-orders-table td:nth-child(5),
.store-orders-table td:nth-child(6) {
  min-width: 220px;
}
#tienda {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  align-items: start;
  gap: 16px;
}
.store-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 10px;
}
.store-products {
  align-items: stretch;
}
.store-product-card {
  display: grid;
  grid-template-rows: 150px auto auto auto;
  gap: 10px;
  min-width: 250px;
  max-width: 290px;
}
.store-product-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.store-product-card h3,
.store-cart-row h3 {
  margin: 4px 0;
}
.store-product-card p,
.store-cart-row p {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.store-card-foot strong,
.store-cart-row strong {
  color: var(--blue);
  font-size: 18px;
}
.store-cart-row {
  min-width: 100%;
  max-width: 100%;
  padding: 12px;
}
.store-cart-row label {
  margin: 6px 0;
}
.store-cart-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}
.store-cart-panel .panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 10px;
  background: var(--white);
}
.store-cart-panel .cards-list.horizontal-list {
  display: grid;
  grid-template-columns: 1fr;
  max-height: 240px;
  overflow-y: auto;
}
.store-shipping-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.store-shipping-form .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}
.store-shipping-form h3 {
  margin: 2px 0 0;
}
.store-shipping-form label {
  font-size: 12px;
  gap: 4px;
}
.store-shipping-form input,
.store-shipping-form select {
  min-height: 36px;
  padding: 8px 10px;
}
@media (max-width: 980px) {
  .sidebar { position: static; width: auto; }
  .shell { margin-left: 0; padding: 16px; }
  .status-grid, .grid-2, #tienda, .admin-store-grid { grid-template-columns: 1fr; }
  .store-settings-form,
  .store-admin-status {
    grid-template-columns: 1fr;
  }
  .topbar, .panel-head { display: block; }
  .inline-form { margin-top: 12px; }
  .client-sidebar {
    position: static;
    width: auto;
  }
  .client-content {
    margin-left: 0;
    padding: 16px;
  }
  .client-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .client-topbar { display: block; }
  .capacity-form { grid-template-columns: 1fr; }
  .provider-number-form { grid-template-columns: 1fr; }
  .payment-layout {
    grid-template-columns: 1fr;
  }
  .payment-checkout-card,
  .payment-guide {
    min-height: 0;
  }
  .payment-summary-form {
    grid-template-columns: 1fr;
  }
  .payment-brand {
    flex-wrap: wrap;
  }
  .payment-back {
    margin-left: 0;
  }
  .extension-desk {
    grid-template-columns: 1fr;
  }
  .extension-portal-app {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .incoming-call-banner {
    position: static;
    display: grid;
  }
  .incoming-call-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .softphone-panel {
    position: static;
  }
  .phone-session-bar {
    inset: auto 10px 10px 10px;
    justify-content: center;
  }
  .security-panel {
    grid-column: auto;
  }
  .softphone-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .directory-row {
    grid-template-columns: 1fr;
  }
  .directory-row > div:last-child {
    justify-content: flex-start;
  }
  .extension-row { grid-template-columns: 68px minmax(0, 1fr); }
  .extension-row .tag { grid-column: 2; justify-self: start; }
  .extension-settings-form { grid-template-columns: 1fr; }
  .ivr-form-grid,
  .audio-upload-row,
  .ivr-key-row { grid-template-columns: 1fr; }
  .section-title { display: block; }
  .store-cart-panel {
    position: static;
    max-height: none;
  }
  .store-shipping-form .grid-2 {
    grid-template-columns: 1fr;
  }
}
