:root {
  --navy: #07162f;
  --navy-2: #102955;
  --gold: #3b68ff;
  --gold-2: #7c5cff;
  --white: #ffffff;
  --off: #f5f7ff;
  --light: #edf2ff;
  --border: #d7dced;
  --border-strong: #bfc7da;
  --text: #111827;
  --body: #38465a;
  --muted: #6a768a;
  --green: #166534;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --red: #991b1b;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 6px;
  --max: 1140px;
  --shadow: 0 1px 3px rgba(5, 12, 31, 0.08), 0 1px 2px rgba(5, 12, 31, 0.04);
  --shadow-md: 0 4px 16px rgba(8, 18, 43, 0.1), 0 2px 6px rgba(8, 18, 43, 0.06);
  --shadow-lg: 0 8px 32px rgba(8, 18, 43, 0.14), 0 4px 12px rgba(8, 18, 43, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible,
.primary-nav a:focus-visible,
.tab-bar a:focus-visible,
.mobile-menu summary:focus-visible,
.mobile-menu-panel a:focus-visible,
.footer a:focus-visible,
.dashboard-nav a:focus-visible,
.setup-tab:focus-visible,
.toolbar-button:focus-visible,
.pagination-button:focus-visible,
.topbar-icon-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.search-field input:focus-visible,
.toolbar-select:focus-visible {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59, 104, 255, 0.28);
}

.range-field input[type="range"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.addon-toggle:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(59, 104, 255, 0.18);
}

.faq-list summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--white);
}

body.auth-page {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(59, 104, 255, 0.14), transparent 30%),
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.16), transparent 26%),
    linear-gradient(180deg, #eef2ff 0%, #f8f9ff 100%);
  color: var(--text);
}

body.dashboard-page {
  position: relative;
}

.auth-shell {
  width: min(1320px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 460px);
  gap: 28px;
  align-items: stretch;
}

.auth-copy,
.auth-panel {
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 80px rgba(13, 35, 64, 0.12);
  backdrop-filter: blur(14px);
}

.auth-copy {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.auth-copy-stack {
  display: grid;
  gap: 24px;
}

.auth-copy-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.auth-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.auth-panel {
  padding: 28px;
  display: grid;
  gap: 18px;
  align-self: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-mark {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 18px 34px rgba(13, 35, 64, 0.22);
}

.auth-brand > div > strong,
.auth-brand > div > span {
  display: block;
}

.auth-brand > div > strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-brand > div > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.auth-home-link {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth-copy h1 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.auth-lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--body);
  font-size: 1.04rem;
  line-height: 1.8;
}

.auth-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.auth-point {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.auth-point strong {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-point span {
  color: var(--body);
  line-height: 1.6;
}

.auth-selected-plan {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #07162f, #102955);
  color: var(--white);
  box-shadow: 0 20px 48px rgba(9, 27, 49, 0.24);
}

.auth-selected-plan .eyebrow {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.auth-selected-plan .eyebrow::before {
  background: rgba(124, 92, 255, 0.92);
}

.auth-selected-plan strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.auth-selected-plan span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.auth-checkout-resume {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid rgba(59, 104, 255, 0.28);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(59, 104, 255, 0.1), rgba(124, 92, 255, 0.08));
}

.auth-checkout-resume strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
}

.auth-checkout-resume p {
  margin: 0;
  color: var(--body);
  line-height: 1.6;
}

.auth-checkout-resume .btn {
  width: 100%;
}

.auth-form-card {
  padding: 22px;
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(13, 35, 64, 0.08);
}

.auth-form-head h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.auth-form-head p {
  margin: 8px 0 0;
  color: var(--body);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-form .field {
  margin-bottom: 0;
}

.auth-form .field span {
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form .field input {
  min-height: 48px;
  border-color: #d7dce7;
  background: #f7f8fb;
}

.auth-role-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.auth-footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.auth-footer-note a {
  color: var(--navy);
  font-weight: 800;
}

.auth-panel .form-status {
  margin: 0;
}

.customer-portal-page .dashboard-main {
  padding: 26px;
}

.customer-portal-page .dashboard-topbar {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.customer-portal-page .dashboard-topbar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: 1;
}

.customer-portal-page .dashboard-topbar-actions {
  align-items: flex-end;
}

.customer-portal-page .portal-workspace {
  min-width: 240px;
  margin-bottom: 0;
}

.customer-portal-page .portal-workspace span {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-portal-page .portal-workspace select {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.customer-portal-page .portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(59, 104, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 253, 0.98));
}

.customer-portal-page .portal-hero-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.customer-portal-page .portal-hero-copy h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.customer-portal-page .portal-hero-copy p {
  margin: 0;
  color: var(--body);
  line-height: 1.75;
}

.customer-portal-page .portal-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.customer-portal-page .portal-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-portal-page .portal-hero-metric {
  padding: 16px 18px;
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: 18px;
  background: rgba(13, 35, 64, 0.03);
}

.customer-portal-page .portal-hero-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-portal-page .portal-hero-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}

.customer-portal-page .portal-hero-metric em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

.customer-portal-page .summary-grid {
  margin-bottom: 18px;
}

.customer-portal-page .grid-2 {
  gap: 16px;
}

.customer-portal-page .section {
  padding: 28px 0 0;
  background: transparent;
  border: 0;
}

.customer-portal-page .section-alt {
  background: transparent;
  border: 0;
}

.customer-portal-page .section-inner {
  max-width: none;
  margin: 0;
}

.customer-portal-page .section h2 {
  margin-top: 0;
}

.customer-portal-page .lead {
  margin-top: 12px;
}

.customer-portal-page #plans-grid {
  align-items: stretch;
}

.customer-portal-page #reports-table-body tr td {
  vertical-align: top;
}

.customer-portal-page #portal-status {
  margin-top: 12px;
}

.customer-portal-page #billing-note {
  margin-top: 14px;
}

.customer-portal-page .plan-loading-card {
  min-height: 100%;
  display: grid;
  align-content: start;
}

.customer-portal-page .portal-dashboard {
  padding: 28px 56px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.customer-portal-page .portal-dashboard > *,
.customer-portal-page .portal-dashboard .section-inner,
.customer-portal-page .portal-dashboard .grid-2,
.customer-portal-page .portal-dashboard .card {
  min-width: 0;
}

.customer-portal-page .portal-page-hero {
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.customer-portal-page .portal-page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.customer-portal-page .portal-page-hero .eyebrow {
  justify-content: flex-start;
  color: var(--gold);
}

.customer-portal-page .portal-page-hero .eyebrow::before {
  background: var(--gold);
}

.customer-portal-page .portal-page-hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.customer-portal-page .portal-page-hero p {
  max-width: none;
  margin: 0;
  color: var(--body);
}

.customer-portal-page .portal-hero-copy {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px 0;
}

.customer-portal-page .portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.customer-portal-page .portal-hero-card {
  border-top-color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.98));
}

.customer-portal-page .portal-hero-card .portal-workspace {
  margin-bottom: 16px;
}

.customer-portal-page .portal-hero-card .portal-workspace select {
  width: 100%;
}

.customer-portal-page .portal-hero-metrics {
  margin-top: 4px;
}

.customer-portal-page .portal-hero-metric {
  background: rgba(13, 35, 64, 0.04);
}

.customer-portal-page .summary-grid {
  margin-bottom: 18px;
}

.customer-portal-page .section {
  padding-top: 0;
}

.customer-portal-page .section-alt {
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.customer-portal-page .section + .section {
  margin-top: 16px;
}

.customer-portal-page .section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.customer-portal-page #overview,
.customer-portal-page #usage,
.customer-portal-page #package,
.customer-portal-page #reports {
  scroll-margin-top: 112px;
}

.customer-portal-page #plans-grid {
  align-items: stretch;
}

.customer-portal-page #reports-table-body tr td {
  vertical-align: top;
}

.customer-portal-page .table-wrap {
  max-width: 100%;
}

.customer-portal-page .portal-package-card {
  position: relative;
  overflow: hidden;
  border-top-color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.98));
}

.customer-portal-page .portal-package-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(59, 104, 255, 0.08), transparent 32%);
}

.customer-portal-page .portal-package-card > * {
  position: relative;
  z-index: 1;
}

.customer-portal-page .portal-package-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.customer-portal-page .portal-package-summary .summary-stat {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.customer-portal-page .portal-package-summary .summary-stat span {
  font-size: 0.74rem;
}

.customer-portal-page .portal-package-summary .summary-stat strong {
  text-align: left;
  font-size: 1.02rem;
}

.customer-portal-page .portal-package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.customer-portal-page .portal-package-actions .btn {
  flex: 1 1 180px;
}

.customer-portal-page .usage-daily-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: 20px;
  background: rgba(13, 35, 64, 0.03);
}

.customer-portal-page .usage-daily-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.customer-portal-page .usage-daily-head strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-portal-page .usage-daily-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.customer-portal-page #usage-daily-summary {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(59, 104, 255, 0.12);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.customer-portal-page .usage-daily-list {
  display: grid;
  gap: 10px;
}

.customer-portal-page .usage-daily-row {
  display: grid;
  gap: 8px;
}

.customer-portal-page .usage-daily-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.customer-portal-page .usage-daily-meta span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.customer-portal-page .usage-daily-meta strong {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.customer-portal-page .usage-daily-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(13, 35, 64, 0.08);
}

.customer-portal-page .usage-daily-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #07162f, #3b68ff);
  box-shadow: 0 8px 18px rgba(59, 104, 255, 0.24);
}

.customer-portal-page .usage-daily-empty {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px dashed rgba(13, 35, 64, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.customer-portal-page .usage-daily-empty strong {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
}

.customer-portal-page .usage-daily-empty span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.customer-portal-page .custom-config-card {
  display: grid;
  gap: 18px;
}

.customer-portal-page .custom-minute-hero {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
}

.customer-portal-page .custom-minute-hero span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customer-portal-page .custom-minute-hero strong {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 4rem);
  line-height: 1;
}

.customer-portal-page .custom-minute-hero em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-weight: 700;
}

.customer-portal-page .range-field {
  display: grid;
  gap: 10px;
}

.customer-portal-page .range-field span {
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-portal-page .range-field input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.customer-portal-page .custom-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: stretch;
}

.customer-portal-page .minute-input-field {
  margin-bottom: 0;
}

.customer-portal-page .minute-input-field input {
  min-height: 52px;
}

.customer-portal-page .custom-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.customer-portal-page .custom-summary-grid .summary-stat {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.customer-portal-page .custom-summary-grid .summary-stat strong {
  text-align: left;
}

@media (max-width: 1024px) {
  .customer-portal-page .portal-hero {
    grid-template-columns: 1fr;
  }

  .customer-portal-page .portal-dashboard {
    padding-inline: 24px;
  }

  .customer-portal-page .portal-page-hero-inner,
  .customer-portal-page .custom-input-row,
  .customer-portal-page .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-portal-page .portal-package-summary,
  .customer-portal-page .custom-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .customer-portal-page .portal-hero {
    padding: 18px;
    border-radius: 18px;
  }

  .customer-portal-page .portal-hero-metrics {
    grid-template-columns: 1fr;
  }

  .customer-portal-page .portal-dashboard {
    padding: 16px 16px 56px;
  }

  .customer-portal-page .portal-page-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .customer-portal-page .portal-hero-copy {
    padding-top: 12px;
  }

  .customer-portal-page .usage-daily-head {
    flex-direction: column;
  }

  .customer-portal-page #usage-daily-summary {
    white-space: normal;
  }

  .customer-portal-page .portal-package-actions .btn {
    width: 100%;
  }

  .customer-portal-page .portal-actions > .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

.empty-cell {
  padding: 0;
  background: #fbfcfe;
}

.empty-state-block {
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px 20px;
  text-align: center;
}

.empty-state-block strong {
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.empty-state-block span {
  max-width: 520px;
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.7;
}

.loading-skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(13, 35, 64, 0.08);
}

.loading-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
  animation: loading-shimmer 1.3s infinite;
}

.loading-skeleton-line {
  width: 100%;
  height: 12px;
  border-radius: 999px;
}

.empty-state-skeleton {
  width: min(420px, 100%);
  margin: 0 auto;
  gap: 12px;
}

@keyframes loading-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1024px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: auto;
  }

  .auth-copy h1 {
    font-size: clamp(2.4rem, 8vw, 4rem);
  }
}

@media (max-width: 720px) {
  .auth-shell {
    width: 100%;
    padding: 16px;
  }

  .auth-copy,
  .auth-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .auth-form-card {
    padding: 18px;
  }

  .auth-copy-actions {
    flex-direction: column;
  }

  .auth-copy-actions .auth-home-link {
    width: 100%;
    justify-content: center;
  }

  .customer-portal-page .dashboard-main {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .auth-points {
    grid-template-columns: 1fr;
  }

  .customer-portal-page .tab-bar-inner {
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .customer-portal-page .tab-bar a {
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
}

body.portal-authenticated .portal-prelogin {
  display: none !important;
}

body.portal-authenticated .site {
  background:
    radial-gradient(circle at top left, rgba(59, 104, 255, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.1), transparent 22%),
    linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
}

.portal-dashboard {
  padding: 56px 56px 72px;
}

.portal-dashboard .section-inner {
  max-width: var(--max);
}

.portal-dashboard .section.mt-lg {
  padding: 32px 0 0;
}

.portal-dashboard .grid-2 {
  gap: 16px;
}

.portal-dashboard .card {
  height: 100%;
}

.portal-dashboard #plans-grid {
  align-items: stretch;
}

.portal-dashboard #reports-table-body tr td {
  vertical-align: top;
}

.top-strip {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.top-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 36px;
  padding: 7px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-strip-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.top-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.top-strip-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 2px solid var(--navy);
  box-shadow: var(--shadow-md);
}

.masthead-inner {
  max-width: var(--max);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--navy);
}

.brand-logo {
  line-height: 0;
}

.brand-image {
  display: block;
  width: auto;
  height: 36px;
  max-width: min(240px, 100%);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #39c8ff, #7c5cff);
  color: var(--navy);
  font-weight: 800;
}

.brand-name {
  font-size: 1rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.primary-nav a {
  color: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--navy);
}

@media (min-width: 1025px) {
  .masthead .nav-cta[href$="login.html"] {
    display: none;
  }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.nav-cta:hover {
  background: var(--navy-2);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 2rem));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.mobile-menu-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: var(--radius);
  color: var(--body);
  font-weight: 700;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a[aria-current="page"] {
  background: var(--off);
  color: var(--navy);
}

.tab-bar {
  background: var(--off);
  border-bottom: 1px solid var(--border);
}

.tab-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  overflow-x: auto;
}

.tab-bar a {
  min-height: 46px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tab-bar a:hover,
.tab-bar a[aria-current="page"] {
  color: var(--navy);
}

.tab-bar a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--gold);
}

.hero-inner {
  max-width: var(--max);
  min-height: 690px;
  margin: 0 auto;
  padding: 120px 56px 76px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 72px;
}

.home-page .hero-inner {
  min-height: 620px;
  padding-top: 104px;
  gap: 56px;
}

.hero-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px 14px;
  border: 1px solid rgba(59, 104, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(59, 104, 255, 0.16);
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #39c8ff, #7c5cff);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.7rem, 4.5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
}

h3 {
  font-size: 1.35rem;
}

.hero h1 {
  margin-bottom: 20px;
}

.accent {
  color: #39c8ff;
  background: linear-gradient(90deg, #39c8ff, #7c5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.78;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 800;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--gold-2);
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-2);
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.trust-list {
  display: grid;
  gap: 8px;
}

.trust-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 700;
}

.trust-list span::before,
.check-list li::before,
.feature-strip span::before {
  content: "✓";
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.hero-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 3px solid var(--gold);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.panel-label {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-summary-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.hero-summary-list li {
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: 16px;
  background: var(--white);
}

.hero-summary-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-summary-list span {
  display: block;
  margin-top: 6px;
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.mini-stat {
  padding: 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  background: var(--off);
}

.mini-stat strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.mini-stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.comparison small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}

.comparison .bad {
  color: var(--red);
}

.comparison .good {
  color: var(--green);
}

.vs {
  color: var(--border-strong);
  font-weight: 900;
}

.feature-strip {
  padding: 14px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-strip span::before {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.section {
  padding: 80px 56px;
}

.section-alt {
  background: var(--off);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold);
  flex: 0 0 auto;
}

.lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.75;
}

.section h2 {
  color: var(--navy);
  text-wrap: balance;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mt-lg {
  margin-top: 48px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card.topline {
  border-top: 3px solid var(--navy);
}

.metric {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1;
}

.card h3,
.card h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
}

.card p {
  margin: 0;
  color: var(--body);
  font-size: 0.9rem;
  line-height: 1.7;
}

.band {
  padding: 56px;
  background: var(--navy);
  color: var(--white);
}

.band-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.band-number {
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
}

.band p {
  max-width: 480px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.band-rule {
  width: 3px;
  height: 64px;
  background: var(--gold);
}

.page-hero {
  padding: 92px 56px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.page-hero .eyebrow {
  justify-content: center;
  color: var(--gold-2);
}

.page-hero .eyebrow::before {
  background: var(--gold-2);
}

.page-hero p {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.page-hero h1 {
  color: var(--white);
  text-wrap: balance;
}

.page-hero .feature-strip {
  width: 100%;
  margin-top: 24px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  justify-content: center;
  gap: 14px 22px;
}

.page-hero .feature-strip span {
  color: rgba(255, 255, 255, 0.88);
}

.page-hero .feature-strip span::before {
  background: var(--gold-2);
  border-color: var(--gold-2);
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--off);
  color: var(--navy);
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 16px;
}

.row-list {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.row-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
}

.row-list div:last-child {
  border-bottom: none;
}

.row-list strong {
  padding: 18px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row-list span {
  padding: 18px 22px;
  color: var(--body);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card.featured {
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-lg);
}

.flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.setup-fee {
  width: fit-content;
  margin: 12px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
}

.price-note {
  margin: 12px 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.overage-rate {
  width: fit-content;
  margin: 0 0 20px;
  padding: 7px 10px;
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  background: var(--green-bg);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--body);
  font-size: 0.9rem;
}

.price-card .btn {
  margin-top: auto;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) td {
  background: var(--off);
}

.yes {
  color: var(--green);
  font-weight: 900;
}

.no {
  color: var(--red);
  font-weight: 900;
}

.pricing-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 380px);
  gap: 24px;
  align-items: start;
}

.plan-builder-main {
  min-width: 0;
}

.bundle-option {
  position: relative;
  display: grid;
}

.bundle-option.is-selected {
  border-color: rgba(7, 22, 47, 0.34);
  box-shadow: 0 18px 44px rgba(8, 18, 43, 0.16);
  transform: translateY(-2px);
}

.bundle-option .btn {
  margin-top: auto;
}

.package-summary {
  position: sticky;
  top: 24px;
  padding: 26px;
  border-top: 3px solid var(--navy);
}

.summary-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.summary-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--off);
}

.summary-stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-stat strong {
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

.addon-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--off);
  cursor: pointer;
}

.addon-toggle input {
  margin-top: 4px;
  flex: none;
}

.addon-toggle strong,
.addon-toggle em {
  display: block;
}

.addon-toggle strong {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 900;
}

.addon-toggle em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.package-summary .btn {
  width: 100%;
  margin-top: 18px;
}

.custom-config-card {
  display: grid;
  gap: 18px;
}

.custom-config-card > h2,
.package-summary > h2,
.package-summary #package-title {
  margin-bottom: 4px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}

.custom-minute-hero {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
}

.custom-minute-hero span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.custom-minute-hero strong {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 4rem);
  line-height: 1;
}

.custom-minute-hero em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-weight: 700;
}

.range-field {
  display: grid;
  gap: 10px;
}

.range-field span {
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.range-field input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.custom-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: stretch;
}

.minute-input-field {
  margin-bottom: 0;
}

.minute-input-field input {
  min-height: 52px;
}

.custom-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.custom-summary-grid .summary-stat {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.custom-summary-grid .summary-stat strong {
  text-align: left;
}

.form-card {
  width: 100%;
  max-width: 560px;
  border-top: 3px solid var(--navy);
}

.form-card > h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off);
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59, 104, 255, 0.28);
}

.faq-list {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list details:last-child {
  border-bottom: none;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
  list-style: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary {
  background: var(--off);
}

.faq-list p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--body);
}

.footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  color: rgba(255, 255, 255, 0.62);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 56px 36px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-brand::before {
  content: "";
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: var(--gold);
}

.footer p {
  max-width: 260px;
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.84rem;
  line-height: 1.75;
}

.footer h4 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.84rem;
  font-weight: 700;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.footer-bottom nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
}

.page-hero h1,
.page-hero h2,
.hero h1,
.hero h2 {
  font-variant-numeric: lining-nums slashed-zero;
}

@media (max-width: 1280px) {
  .top-strip-inner > span:last-child {
    display: none;
  }
}

@media (max-width: 1024px) {
  .site:not(.portal-shell) > .tab-bar {
    display: none;
  }

  .top-strip-inner,
  .masthead-inner,
  .tab-bar-inner,
  .hero-inner,
  .section,
  .band,
  .page-hero,
  .footer-inner,
  .footer-bottom {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-hero {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .primary-nav,
  .masthead .nav-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-inner,
  .band-inner {
    grid-template-columns: 1fr;
  }

  .plan-builder {
    grid-template-columns: 1fr;
  }

  .package-summary {
    position: static;
  }

  .custom-input-row,
  .custom-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 80px;
  }

  .band-rule {
    width: 64px;
    height: 3px;
  }

  .grid-4,
  .grid-3,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .top-strip {
    display: none;
  }

  .masthead-inner {
    min-height: 64px;
  }

  .tab-bar-inner {
    padding-left: 8px;
    padding-right: 8px;
    justify-content: space-between;
  }

  .tab-bar a {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 5px;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }

  .hero-inner {
    padding-top: 64px;
    padding-bottom: 54px;
  }

  .page-hero {
    padding-top: 52px;
    padding-bottom: 44px;
  }

  .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-stats,
  .comparison,
  .grid-4,
  .grid-3,
  .grid-2,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .comparison {
    text-align: left;
  }

  .feature-strip {
    justify-content: flex-start;
    padding-left: 24px;
    padding-right: 24px;
  }

  .row-list div {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Admin dashboard */
.dashboard-page {
  background:
    radial-gradient(circle at top right, rgba(59, 104, 255, 0.08), transparent 32%),
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.08), transparent 26%),
    #eef2ff;
  color: var(--text);
}

.admin-auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.admin-auth-card {
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid rgba(13, 35, 64, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 80px rgba(13, 35, 64, 0.14);
  backdrop-filter: blur(14px);
}

.admin-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.admin-auth-mark {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 16px 30px rgba(13, 35, 64, 0.18);
}

.admin-auth-brand > div > strong,
.admin-auth-brand > div > span {
  display: block;
}

.admin-auth-brand > div > strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-auth-brand > div > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-auth-card h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.05;
}

.admin-auth-card p {
  margin: 0;
  color: var(--body);
  line-height: 1.75;
}

.admin-auth-form {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.admin-auth-form .field {
  margin-bottom: 0;
}

.admin-auth-form .field span {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-auth-form .field input {
  min-height: 48px;
  border-color: #d7dce7;
  background: #f7f8fb;
}

.admin-auth-submit {
  width: 100%;
}

.admin-auth-status,
.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  line-height: 1.55;
}

.admin-auth-status[data-tone="info"],
.form-status[data-tone="info"] {
  background: #f0f6ff;
  border-color: #c7daf7;
  color: #154079;
}

.admin-auth-status[data-tone="success"],
.form-status[data-tone="success"] {
  background: #eefbf2;
  border-color: #b8ebc8;
  color: #14633c;
}

.admin-auth-status[data-tone="error"],
.form-status[data-tone="error"] {
  background: #fff1f1;
  border-color: #f7c9c9;
  color: #9c1e1e;
}

.admin-auth-status[data-tone="warning"],
.form-status[data-tone="warning"] {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.dashboard-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: linear-gradient(180deg, #051023 0%, #081737 56%, #131b50 100%);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: 8px 0 26px rgba(5, 12, 22, 0.18);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 18px;
  color: var(--white);
}

.dashboard-brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.dashboard-brand > div > strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.dashboard-brand > div > span {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.dashboard-nav {
  display: grid;
  gap: 6px;
}

.dashboard-nav a {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dashboard-nav a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.dashboard-nav a:hover,
.dashboard-nav a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.dashboard-nav a.is-active {
  position: relative;
  box-shadow: inset 3px 0 0 var(--gold-2);
}

.dashboard-nav span:last-child {
  margin-left: auto;
}

.nav-badge,
.button-badge {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.nav-badge-soft {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.dashboard-help {
  margin-top: auto;
  padding: 18px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-help strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1rem;
}

.dashboard-help p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.dashboard-help-button {
  width: 100%;
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.dashboard-main {
  min-width: 0;
  padding: 28px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-topbar h1 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 2.8vw, 3.2rem);
  line-height: 1;
}

.dashboard-topbar p {
  margin: 10px 0 0;
  color: var(--body);
  font-size: 0.98rem;
}

.dashboard-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.topbar-icon-button svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-icon-button.has-badge {
  padding-right: 2px;
}

.button-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  box-shadow: 0 8px 14px rgba(59, 104, 255, 0.24);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 4px 0;
}

.admin-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-user-meta strong,
.admin-user-meta span {
  display: block;
}

.admin-user-meta strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.admin-user-meta span {
  color: var(--muted);
  font-size: 0.8rem;
}

.logout-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.summary-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  min-height: 116px;
  padding: 18px 20px;
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(13, 35, 64, 0.08);
}

.summary-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a1f3e, #1b2f68);
  color: var(--white);
}

.summary-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}

.summary-card em {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.summary-progress {
  grid-column: 1 / -1;
  height: 6px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(13, 35, 64, 0.08);
  overflow: hidden;
}

.summary-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #39c8ff, #7c5cff);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas:
    "customers setup"
    "usage transcript";
  gap: 16px;
}

.dashboard-extra-panels {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.customers-panel {
  grid-area: customers;
}

.setup-panel {
  grid-area: setup;
}

.usage-panel {
  grid-area: usage;
}

.transcript-panel {
  grid-area: transcript;
}

.panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(13, 35, 64, 0.08);
}

.panel[id] {
  scroll-margin-top: 18px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
}

.panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.selected-customer-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(59, 104, 255, 0.1), transparent 28%),
    rgba(248, 249, 251, 0.98);
}

.selected-customer-overview-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.selected-customer-overview-main .eyebrow {
  margin: 0;
}

.selected-customer-overview-main strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.05;
}

.selected-customer-overview-main span {
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.selected-customer-overview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: flex-start;
  min-width: 0;
}

.selected-customer-overview-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(13, 35, 64, 0.07);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.panel-tools,
.panel-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-field {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.search-field svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-field input,
.toolbar-select {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.search-field input {
  width: 100%;
}

.toolbar-select {
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 700;
}

.toolbar-button,
.pagination-button,
.play-button,
.row-action {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--navy);
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.pagination-button {
  min-width: 42px;
  border-color: var(--border);
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.pagination-button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.pagination-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.dashboard-table-wrap table {
  min-width: 100%;
}

.dashboard-table-wrap th {
  color: #6b7280;
}

.dashboard-table-wrap td {
  font-size: 0.9rem;
}

.dashboard-table-wrap tbody tr {
  transition: background 0.15s ease, transform 0.15s ease;
}

.dashboard-table-wrap tbody tr:hover,
.dashboard-table-wrap tbody tr.is-selected {
  background: rgba(13, 35, 64, 0.04);
}

.dashboard-table-wrap tbody tr.is-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--gold-2);
}

.customer-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #12295a;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.customer-cell strong,
.cell-stack strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
}

.customer-cell span,
.cell-stack span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eef1f6;
  color: #44516a;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.is-green {
  background: #e6f8ea;
  color: #1d6b3f;
}

.status-pill.is-amber {
  background: #fff5df;
  color: #a86400;
}

.status-pill.is-slate {
  background: #edf1f5;
  color: #4c5a6c;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.modal-open {
  overflow: hidden;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 18, 32, 0.62);
  backdrop-filter: blur(10px);
}

.admin-modal[hidden] {
  display: none !important;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
}

.admin-modal-card {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: min(90vh, 920px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(59, 104, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.98));
  box-shadow: 0 36px 100px rgba(13, 35, 64, 0.28);
}

.admin-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-modal-head h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.02;
}

.admin-modal-head p {
  margin: 8px 0 0;
  color: var(--body);
}

.modal-close-button {
  flex: 0 0 auto;
}

.create-customer-form {
  display: grid;
  gap: 14px;
}

.create-customer-form .field input:disabled {
  background: var(--off);
  color: var(--muted);
}

.setup-form {
  display: grid;
  gap: 12px;
}

.setup-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: 18px;
  background: rgba(248, 249, 251, 0.92);
}

.setup-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.setup-tab:hover {
  background: rgba(13, 35, 64, 0.04);
  color: var(--navy);
}

.setup-tab.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.setup-tab-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.setup-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(59, 104, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.98));
}

.setup-section[hidden] {
  display: none !important;
}

.setup-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.setup-section-head strong {
  display: block;
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 900;
}

.setup-section-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.setup-form .field {
  margin: 0;
}

.setup-form .field span {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setup-form .field input,
.setup-form .field select {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.integration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.integration-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.integration-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.integration-card-head strong {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
}

.integration-pill {
  min-height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(13, 35, 64, 0.08);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.integration-card .field.compact {
  gap: 4px;
  margin: 0 0 10px;
}

.integration-card .field.compact span {
  color: var(--muted);
  font-size: 0.68rem;
}

.toggle-list {
  display: grid;
  gap: 10px;
  padding: 8px 0 2px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--off);
}

.toggle-row strong {
  display: block;
  color: var(--navy);
  font-size: 0.88rem;
}

.toggle-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.79rem;
}

.toggle-row input {
  width: 44px;
  height: 26px;
  appearance: none;
  position: relative;
  border-radius: 999px;
  background: #cfd6e2;
  outline: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.toggle-row input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.toggle-row input:checked {
  background: linear-gradient(90deg, #39c8ff, #7c5cff);
}

.toggle-row input:checked::after {
  transform: translateX(18px);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.form-actions .btn {
  min-height: 44px;
}

.usage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
  gap: 16px;
}

.usage-chart-card {
  min-width: 0;
  padding: 14px 14px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.usage-chart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.usage-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  width: 18px;
  height: 6px;
  border-radius: 999px;
  background: var(--navy);
}

.legend-swatch-dashed {
  background: transparent;
  border-top: 2px dashed var(--gold);
}

.usage-chart {
  min-height: 230px;
}

.usage-chart-inner {
  position: relative;
  height: 100%;
  min-height: 230px;
  padding: 12px 6px 24px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.usage-chart-grid {
  position: absolute;
  inset: 12px 6px 28px 6px;
  background:
    linear-gradient(to top, rgba(13, 35, 64, 0.08) 1px, transparent 1px) 0 0 / 100% 25%;
  opacity: 0.8;
  pointer-events: none;
}

.usage-bar-group {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  gap: 8px;
  min-height: 180px;
}

.usage-bar-group span {
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.usage-bar {
  width: 100%;
  min-height: 8px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #07162f, #24428b);
  box-shadow: 0 6px 16px rgba(13, 35, 64, 0.12);
}

.usage-limit-line {
  position: absolute;
  left: 6px;
  right: 6px;
  border-top: 2px dashed var(--gold);
  pointer-events: none;
}

.usage-stats {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--off);
}

.usage-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.usage-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.transcript-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.transcript-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.transcript-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  flex: 0 0 auto;
}

.transcript-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.transcript-head strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.transcript-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.play-button {
  margin-left: auto;
  padding: 0 16px;
  background: var(--white);
  color: var(--navy);
}

.transcript-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.transcript-snippet {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(13, 35, 64, 0.04);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.75;
}

.panel-link {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 800;
}

.row-action {
  min-width: 34px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.row-action.is-danger {
  min-width: auto;
  padding: 0 12px;
  border-color: rgba(153, 27, 27, 0.18);
  background: rgba(153, 27, 27, 0.08);
  color: var(--red);
}

.row-action.is-danger:hover {
  background: rgba(153, 27, 27, 0.14);
  border-color: rgba(153, 27, 27, 0.28);
}

.empty-cell {
  padding: 0;
  color: var(--muted);
  text-align: center;
  background: #fbfcfe;
}

@media (max-width: 1240px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "customers"
      "setup"
      "usage"
      "transcript";
  }

  .usage-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .dashboard-app {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
  }

  .integration-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-main {
    padding: 18px;
  }

  .dashboard-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-topbar-actions {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .table-footer,
  .transcript-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .selected-customer-overview {
    grid-template-columns: 1fr;
  }

  .selected-customer-overview-pills {
    flex-direction: column;
  }

  .panel-tools,
  .panel-filters {
    width: 100%;
  }

  .search-field {
    min-width: 0;
    width: 100%;
  }

  .toolbar-select,
  .toolbar-button {
    width: 100%;
  }

  .dashboard-table-wrap {
    overflow-x: auto;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn,
  .play-button {
    width: 100%;
  }
}

/* Pricing summaries must not inherit the four-column admin dashboard grid. */
.site .plan-builder .package-summary .summary-grid {
  grid-template-columns: 1fr;
}

.site .plan-builder .custom-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .site .plan-builder .custom-summary-grid {
    grid-template-columns: 1fr;
  }
}
