:root {
  --bg: #08111d;
  --panel: rgba(12, 20, 34, 0.94);
  --panel-soft: rgba(16, 27, 45, 0.88);
  --line: rgba(126, 156, 204, 0.18);
  --line-strong: rgba(126, 156, 204, 0.32);
  --text: #eef5ff;
  --muted: rgba(198, 216, 248, 0.72);
  --brand: #5ea2ff;
  --brand-2: #7aa2ff;
  --green: #7bc255;
  --green-soft: rgba(123, 194, 85, 0.16);
  --blue-soft: rgba(47, 95, 255, 0.18);
  --red-soft: rgba(251, 113, 133, 0.18);
  --yellow-soft: rgba(251, 191, 36, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --desktop-shell-width: 1480px;
  --desktop-open-width: 1220px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(94, 162, 255, 0.15), transparent 26%),
    radial-gradient(circle at top right, rgba(123, 194, 85, 0.1), transparent 24%),
    linear-gradient(180deg, #07101b 0%, #091321 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  padding-bottom: 92px;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-x: contain;
}

body:has(#workbenchAuthRoot:not([hidden])) {
  padding-bottom: 0;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 100vh;
  min-width: var(--desktop-shell-width);
}

#workbenchAuthRoot[hidden],
#appShell[hidden],
#bottomDockNav[hidden] {
  display: none;
}

#workbenchAuthRoot:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    radial-gradient(circle at top left, rgba(94, 162, 255, 0.15), transparent 26%),
    radial-gradient(circle at top right, rgba(123, 194, 85, 0.1), transparent 24%),
    linear-gradient(180deg, #07101b 0%, #091321 100%);
}

.workbench-login-screen {
  width: 100vw;
  height: 100vh;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 48px;
  overflow: hidden;
}

.workbench-login-shell {
  width: min(100%, 760px);
  display: grid;
  gap: 24px;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid rgba(126, 156, 204, 0.18);
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(123, 194, 85, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(12, 20, 34, 0.985), rgba(7, 12, 22, 0.985));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 46px 96px rgba(0, 0, 0, 0.42);
}

.workbench-login-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
}

.workbench-login-mark {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #5ce1e6);
  color: #04101d;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.workbench-login-brand h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
}

.workbench-login-note,
.workbench-login-error {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.workbench-login-note {
  color: rgba(198, 216, 248, 0.8);
}

.workbench-login-error {
  color: #ffb7bf;
}

.workbench-login-form {
  display: grid;
  gap: 18px;
}

.workbench-login-actions {
  display: flex;
  justify-content: flex-end;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 11, 19, 0.96), rgba(10, 16, 29, 0.98));
}

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

.sidebar-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #5ce1e6);
  color: #04101d;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sidebar-brand h1,
.hero-panel h2,
.panel h3,
.section-head h2,
.section-head h3 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(182, 208, 255, 0.84);
}

.sidebar-panel,
.panel,
.hero-panel,
.kpi-card,
.snapshot-card,
.schedule-preview-row,
.metric-card,
.payment-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-soft), var(--panel));
  box-shadow: var(--shadow);
}

.sidebar-panel,
.panel,
.hero-panel {
  border-radius: var(--radius-xl);
}

.sidebar-panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.lookup-toolbar {
  display: grid;
  gap: 12px;
}

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

.payment-method-head {
  width: min(100%, 460px);
  margin: 0 auto 14px;
  align-items: center;
}

.payment-method-head .eyebrow {
  margin: 0;
}

.panel-action-button {
  border: 1px solid rgba(126, 156, 204, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
}

.panel-action-button:hover {
  border-color: rgba(94, 162, 255, 0.28);
  background: rgba(94, 162, 255, 0.08);
}

.payment-method-action {
  padding: 10px 18px;
  border-radius: 18px;
  white-space: nowrap;
}

body.modal-open {
  overflow: hidden;
}

.search-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}

.search-input::placeholder {
  color: rgba(159, 176, 207, 0.78);
}

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

.lookup-stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.lookup-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lookup-stat strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}

.lookup-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: var(--muted);
  font-size: 0.9rem;
}

.lookup-meta strong {
  color: var(--text);
  font-size: 0.95rem;
}

.client-list {
  display: grid;
  gap: 12px;
}

.client-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 17px;
  text-align: left;
  cursor: pointer;
  transition: 0.16s ease;
}

.client-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.client-card.active {
  border-color: rgba(94, 162, 255, 0.42);
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.24), transparent 34%),
    radial-gradient(circle at bottom left, rgba(123, 194, 85, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(94, 162, 255, 0.2), rgba(255, 255, 255, 0.045));
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(94, 162, 255, 0.16),
    0 0 0 1px rgba(94, 162, 255, 0.22);
}

.client-card.active::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(94, 162, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.client-card.active .client-card-name strong {
  text-shadow: 0 0 18px rgba(94, 162, 255, 0.18);
}

.client-card.active .pill.billing {
  border-color: rgba(94, 162, 255, 0.28);
  background: linear-gradient(180deg, rgba(94, 162, 255, 0.24), rgba(255, 255, 255, 0.05));
  box-shadow:
    0 0 18px rgba(94, 162, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.client-card-head,
.client-card-metrics,
.billing-header,
.billing-actions,
.billing-overview-meta,
.schedule-preview-row,
.schedule-status,
.payment-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-card h4,
.billing-title h3 {
  margin: 0;
}

.client-card-name {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.client-card-name strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.client-card-subtitle {
  color: var(--muted);
  font-size: 0.86rem;
}

.subtle {
  color: var(--muted);
}

.client-card-metrics {
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-row {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-row strong {
  color: var(--text);
  font-size: 0.96rem;
}

.client-card-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-card-footer strong {
  color: var(--text);
  font-size: 0.9rem;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill.billing {
  background: rgba(94, 162, 255, 0.14);
  color: #cfe0ff;
  border-color: rgba(94, 162, 255, 0.24);
}

.pill.investigation {
  background: var(--green-soft);
  color: #d8f0ca;
  border-color: rgba(123, 194, 85, 0.3);
}

.pill.resolution {
  background: var(--blue-soft);
  color: #d8e4ff;
  border-color: rgba(122, 162, 255, 0.3);
}

.pill.processed {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.16), rgba(74, 222, 128, 0.08));
  color: #dcffe8;
  border-color: rgba(74, 222, 128, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 16px rgba(74, 222, 128, 0.08);
}

.pill.pending {
  background: linear-gradient(180deg, rgba(94, 162, 255, 0.16), rgba(94, 162, 255, 0.08));
  color: #e1edff;
  border-color: rgba(94, 162, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 16px rgba(94, 162, 255, 0.08);
}

.pill.failed {
  background: var(--red-soft);
  color: #ffd8df;
  border-color: rgba(251, 113, 133, 0.28);
}

.pill.pastdue {
  background: var(--yellow-soft);
  color: #ffe7aa;
  border-color: rgba(251, 191, 36, 0.26);
}

.main-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.app-shell.lookup-focus .sidebar-panel,
.app-shell.lookup-focus .hero-panel,
.app-shell.lookup-focus .kpi-grid,
.app-shell.lookup-focus .secondary-column {
  display: none;
}

.app-shell.lookup-focus .content-grid {
  grid-template-columns: 1fr;
}

.app-shell.lookup-focus .primary-column {
  max-width: 1040px;
}

.app-shell.client-opened .hero-panel,
.app-shell.client-opened .kpi-grid,
.app-shell.client-opened .sidebar {
  display: none;
}

.app-shell.client-opened {
  grid-template-columns: 1fr;
}

.app-shell.client-opened .main-shell {
  gap: 14px;
  padding: 28px;
}

.hero-panel {
  padding: 24px 26px;
}

.hero-panel p:last-child {
  margin: 12px 0 0;
  max-width: 860px;
  color: var(--muted);
  line-height: 1.6;
}

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

.kpi-card,
.metric-card,
.payment-card {
  border-radius: var(--radius-lg);
}

.kpi-card {
  padding: 18px;
}

.kpi-card p,
.metric-card span,
.payment-card span {
  margin: 0 0 10px;
  color: var(--muted);
}

.kpi-card strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.primary-column,
.secondary-column {
  display: grid;
  gap: 18px;
}

#paymentMethodPanel {
  display: flex;
  justify-content: center;
}

.panel {
  padding: 20px;
}

.billing-page {
  display: grid;
  gap: 18px;
}

.billing-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(123, 194, 85, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(16, 27, 45, 0.96), rgba(10, 17, 29, 0.98));
  box-shadow: var(--shadow);
}

.active-client-hero {
  border-color: rgba(94, 162, 255, 0.24);
  background:
    radial-gradient(circle at 12% 22%, rgba(123, 194, 85, 0.12), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(94, 162, 255, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(15, 27, 47, 0.98), rgba(7, 14, 26, 0.99));
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.46),
    0 0 42px rgba(94, 162, 255, 0.11);
}

.active-client-hero::before {
  content: "";
  position: absolute;
  top: -90px;
  left: 54px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(94, 162, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.active-client-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.active-client-hero .billing-title h3 {
  font-size: clamp(2rem, 3vw, 2.55rem);
  letter-spacing: -0.03em;
  text-shadow: 0 0 28px rgba(94, 162, 255, 0.16);
}

.schedules-hero {
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(123, 194, 85, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(16, 27, 45, 0.98), rgba(10, 17, 29, 0.98));
}

.billing-title {
  display: grid;
  gap: 10px;
}

.billing-account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-meta-pill,
.active-client-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.account-meta-pill {
  border: 1px solid rgba(126, 156, 204, 0.2);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.active-client-badge {
  border: 1px solid rgba(94, 162, 255, 0.28);
  background:
    radial-gradient(circle at left center, rgba(123, 194, 85, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(94, 162, 255, 0.22), rgba(255, 255, 255, 0.05));
  color: #f4fbff;
  box-shadow:
    0 0 20px rgba(94, 162, 255, 0.14),
    0 0 30px rgba(123, 194, 85, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.schedule-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 156, 204, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.billing-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.billing-stat-chip {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.billing-stat-chip span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.billing-stat-chip strong {
  display: block;
  font-size: 1.08rem;
}

.schedules-hero .billing-stat-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border-color: rgba(126, 156, 204, 0.22);
}

.billing-stat-chip.warning {
  border-color: rgba(251, 113, 133, 0.22);
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.12), rgba(255, 255, 255, 0.03));
}

.lookup-landing {
  display: grid;
  gap: 14px;
}

.lookup-search-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(123, 194, 85, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(18, 30, 49, 0.96), rgba(12, 20, 34, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 46px rgba(0, 0, 0, 0.26);
}

.lookup-search-panel {
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(16, 27, 45, 0.96), rgba(12, 20, 34, 0.96));
}

.lookup-search-stage {
  position: relative;
}

.lookup-search-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 20px;
  border: 1px solid rgba(92, 120, 168, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 15, 28, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 16px 34px rgba(0, 0, 0, 0.22);
}

.lookup-search-glow {
  position: absolute;
  inset: auto 8% -18px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(94, 162, 255, 0.18), transparent 72%);
  filter: blur(14px);
  opacity: 0.9;
  pointer-events: none;
}

.lookup-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(94, 162, 255, 0.1);
  color: rgba(212, 229, 255, 0.9);
  font-size: 1rem;
  flex: 0 0 auto;
}

.lookup-search-input {
  border: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  box-shadow: none;
}

.lookup-search-input:focus {
  border: 0;
  box-shadow: none;
}

.recommend-panel h3 {
  margin: 0;
}

.lookup-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.lookup-chip {
  border: 1px solid rgba(100, 127, 172, 0.28);
  border-radius: 999px;
  padding: 10px 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(12, 20, 34, 0.32);
  color: rgba(229, 239, 255, 0.9);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.landing-results-grid,
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.landing-result-card,
.recommend-card {
  text-align: left;
  border: 1px solid rgba(94, 123, 171, 0.28);
  border-radius: 22px;
  padding: 18px 18px 18px;
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  color: var(--text);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 34px rgba(0, 0, 0, 0.18);
}

.landing-result-card:hover,
.recommend-card:hover {
  transform: translateY(-1px);
  border-color: rgba(122, 162, 224, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.2);
}

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

.recommend-card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.recommend-card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  border: 1px solid rgba(101, 162, 246, 0.26);
  background:
    linear-gradient(180deg, rgba(94, 162, 255, 0.18), rgba(94, 162, 255, 0.08)),
    rgba(10, 18, 31, 0.72);
  color: #f4f8ff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.recommend-card-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(104, 171, 255, 0.22);
  background: rgba(94, 162, 255, 0.08);
  color: rgba(214, 229, 252, 0.88);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-result-card strong,
.recommend-card strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.landing-result-card p,
.recommend-card p {
  margin: 0;
  color: rgba(170, 189, 220, 0.82);
  line-height: 1.4;
}

.landing-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-result-meta span,
.landing-result-meta-label {
  color: rgba(162, 182, 214, 0.82);
  font-size: 0.9rem;
}

.recommend-card-progress {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 15px 13px;
  border-radius: 18px;
  border: 1px solid rgba(107, 133, 178, 0.2);
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(8, 14, 24, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 26px rgba(0, 0, 0, 0.16);
}

.recommend-card-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.recommend-card-progress-head strong {
  margin: 4px 0 0;
  font-size: 1rem;
  color: #f7fbff;
}

.recommend-card-progress-amount {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(104, 171, 255, 0.16);
  background: rgba(94, 162, 255, 0.08);
  color: rgba(232, 242, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.recommend-card-progress-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 29, 47, 0.96), rgba(8, 14, 24, 0.96));
  border: 1px solid rgba(113, 141, 189, 0.18);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.recommend-card-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(104, 171, 255, 0.92), rgba(141, 215, 255, 0.95) 55%, rgba(123, 194, 85, 0.88));
  box-shadow:
    0 0 18px rgba(94, 162, 255, 0.34),
    0 0 28px rgba(123, 194, 85, 0.16);
}

.recommend-card-progress-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(182, 201, 232, 0.84);
  font-size: 0.84rem;
}

.recommend-card-progress-foot strong {
  margin: 0;
  font-size: 0.92rem;
  color: #f7fbff;
}

.landing-result-meta strong {
  margin: 0;
  font-size: 0.98rem;
  color: #f5fbff;
}

.recommend-panel {
  display: grid;
  gap: 12px;
}

.billing-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.billing-toolbar {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.billing-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.workbench-access-button {
  min-height: 44px;
  border-radius: 16px;
  padding: 10px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workbench-access-button.is-connected {
  border-color: rgba(123, 194, 85, 0.24);
  background:
    radial-gradient(circle at top right, rgba(123, 194, 85, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 24px rgba(123, 194, 85, 0.12);
}

.workbench-access-button.is-disconnected {
  border-color: rgba(251, 113, 133, 0.22);
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 24px rgba(251, 113, 133, 0.09);
}

.workbench-logout-button {
  min-height: 44px;
}

.billing-action-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  width: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 11px 13px;
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: 0.16s ease;
  text-align: left;
}

.billing-action-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow:
    0 20px 32px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(126, 156, 204, 0.12);
}

.billing-action-card-primary {
  position: relative;
  overflow: hidden;
  border-color: rgba(123, 194, 85, 0.28);
  background:
    radial-gradient(circle at top right, rgba(123, 194, 85, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(123, 194, 85, 0.1), rgba(255, 255, 255, 0.03));
}

.billing-action-card-primary.is-live {
  border-color: rgba(123, 194, 85, 0.52);
  background:
    radial-gradient(circle at 18% 50%, rgba(123, 194, 85, 0.24), transparent 36%),
    radial-gradient(circle at top right, rgba(123, 194, 85, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(123, 194, 85, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(123, 194, 85, 0.18),
    0 0 26px rgba(123, 194, 85, 0.2),
    0 0 54px rgba(123, 194, 85, 0.14),
    0 22px 34px rgba(0, 0, 0, 0.28);
}

.billing-action-card-primary.is-live::before {
  content: "";
  position: absolute;
  inset: -24% auto auto -4%;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(123, 194, 85, 0.26), transparent 68%);
  pointer-events: none;
}

.billing-action-card-primary.is-live .billing-action-icon {
  background: linear-gradient(180deg, rgba(123, 194, 85, 0.24), rgba(255, 255, 255, 0.06));
  border-color: rgba(123, 194, 85, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(123, 194, 85, 0.18);
}

.billing-action-card-primary.is-live:hover {
  border-color: rgba(123, 194, 85, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(123, 194, 85, 0.22),
    0 0 34px rgba(123, 194, 85, 0.28),
    0 0 68px rgba(123, 194, 85, 0.16),
    0 24px 36px rgba(0, 0, 0, 0.32);
}

.billing-action-card-primary.is-locked {
  border-color: rgba(126, 156, 204, 0.14);
  background:
    radial-gradient(circle at top right, rgba(126, 156, 204, 0.04), transparent 34%),
    linear-gradient(180deg, rgba(13, 18, 29, 0.96), rgba(8, 12, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 26px rgba(0, 0, 0, 0.2);
}

.billing-action-card-primary.is-locked .billing-action-icon {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(238, 245, 255, 0.78);
}

.billing-action-card-primary.is-locked:hover {
  border-color: rgba(126, 156, 204, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 28px rgba(0, 0, 0, 0.22);
}

.billing-action-card-accent {
  border-color: rgba(122, 162, 255, 0.28);
  background:
    radial-gradient(circle at top right, rgba(122, 162, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(94, 162, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.billing-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.billing-action-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.billing-action-copy strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.billing-action-copy strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

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

.snapshot-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px 20px 20px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  background:
    radial-gradient(circle at 88% 14%, rgba(94, 162, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(10, 20, 38, 0.98), rgba(6, 12, 24, 0.99));
  border: 1px solid rgba(126, 156, 204, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(0, 0, 0, 0.34);
}

.snapshot-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), rgba(123, 194, 85, 0.9));
}

.snapshot-card.resolution::before {
  background: linear-gradient(90deg, #2f5fff, #7aa2ff);
}

.snapshot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.snapshot-card:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 156, 204, 0.28);
}

.snapshot-card.active {
  transform: translateY(-2px);
}

.snapshot-card.investigation.active {
  border-color: rgba(123, 194, 85, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 44px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(123, 194, 85, 0.28),
    0 0 28px rgba(123, 194, 85, 0.22);
}

.snapshot-card.resolution.active {
  border-color: rgba(122, 162, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 44px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(122, 162, 255, 0.28),
    0 0 28px rgba(122, 162, 255, 0.22);
}

.snapshot-card h4 {
  margin: 0;
  color: rgba(200, 214, 238, 0.7);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snapshot-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.snapshot-progress-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 156, 204, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.snapshot-value {
  color: #eef5ff;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 24px rgba(94, 162, 255, 0.08);
}

.snapshot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.snapshot-meta strong {
  color: var(--text);
  font-size: 12px;
}

.snapshot-track {
  position: relative;
  overflow: hidden;
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.32);
}

.snapshot-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), rgba(123, 194, 85, 0.9));
  box-shadow: 0 0 18px rgba(123, 194, 85, 0.2);
}

.snapshot-fill.resolution {
  background: linear-gradient(90deg, #2f5fff, #7aa2ff);
  box-shadow: 0 0 18px rgba(47, 95, 255, 0.22);
}

.schedule-card h3 {
  margin-bottom: 14px;
}

.schedule-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(10, 20, 36, 0.98), rgba(6, 12, 24, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 52px rgba(0, 0, 0, 0.34);
}

.schedule-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(126, 156, 204, 0.12);
  pointer-events: none;
}

.schedule-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 2px 2px 14px;
  border-bottom: 1px solid rgba(126, 156, 204, 0.12);
}

.schedule-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 330px;
}

.schedule-summary-chip {
  border: 1px solid rgba(126, 156, 204, 0.16);
  border-radius: 18px;
  padding: 13px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.schedule-summary-chip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.schedule-summary-chip strong {
  display: block;
  color: var(--text);
  font-size: 1.06rem;
}

.schedule-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-preview-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 13px;
  border-radius: 16px;
  border: 1px solid rgba(126, 156, 204, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 22px rgba(0, 0, 0, 0.14);
}

.schedule-preview-row::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.schedule-preview-row.processed {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.1), rgba(255, 255, 255, 0.035));
  border-color: rgba(74, 222, 128, 0.22);
}

.schedule-preview-row.processed::before {
  background: linear-gradient(180deg, rgba(123, 194, 85, 0.95), rgba(123, 194, 85, 0.35));
}

.schedule-preview-row.failed {
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(251, 113, 133, 0.26);
}

.schedule-preview-row.failed::before {
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.95), rgba(251, 113, 133, 0.35));
}

.schedule-preview-row.pastdue {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.1), rgba(255, 255, 255, 0.04));
  border-color: rgba(251, 191, 36, 0.22);
}

.schedule-preview-row.pastdue::before {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.95), rgba(251, 191, 36, 0.35));
}

.schedule-preview-row.pending {
  background: linear-gradient(180deg, rgba(94, 162, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(94, 162, 255, 0.22);
}

.schedule-preview-row.pending::before {
  background: linear-gradient(180deg, rgba(122, 162, 255, 0.95), rgba(122, 162, 255, 0.35));
}

.schedule-date {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 11px;
  border: 1px solid rgba(126, 156, 204, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: #f4f8ff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.schedule-row-main {
  display: grid;
  gap: 0;
}

.schedule-row-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.schedule-row-top .pill {
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.schedule-amount {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.04);
}

.schedule-status-card {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-width: 100px;
  min-height: 74px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(126, 156, 204, 0.14);
  background:
    radial-gradient(circle at top center, rgba(94, 162, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(9, 16, 30, 0.96), rgba(5, 10, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 18px rgba(0, 0, 0, 0.16);
  justify-items: center;
  text-align: center;
}

.schedule-status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.schedule-status-card small,
.schedule-note {
  color: var(--muted);
}

.schedule-preview-row.processed .schedule-status-card {
  border-color: rgba(74, 222, 128, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 26px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(74, 222, 128, 0.05);
}

.schedule-preview-row.pending .schedule-status-card {
  border-color: rgba(94, 162, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 26px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(94, 162, 255, 0.06);
}

.schedule-note {
  display: none;
  margin-top: 10px;
  max-width: 92%;
  line-height: 1.5;
}

.schedule-preview-row.failed .schedule-note {
  display: block;
  color: #ffd6dc;
  font-weight: 600;
}

.metric-grid,
.revenue-grid {
  display: grid;
  gap: 12px;
}

.revenue-dashboard-shell {
  position: relative;
  display: grid;
  gap: 12px;
}

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

.revenue-overview-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-height: 116px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(126, 156, 204, 0.16);
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(10, 22, 39, 0.94), rgba(6, 15, 28, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 42px rgba(0, 0, 0, 0.28);
}

.revenue-overview-card-toggle {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.revenue-overview-card-toggle.expanded {
  border-color: rgba(94, 162, 255, 0.24);
}

.revenue-overview-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(126, 156, 204, 0.12);
  border: 1px solid rgba(126, 156, 204, 0.08);
}

.revenue-overview-card.processed {
  background:
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(10, 28, 39, 0.94), rgba(5, 18, 28, 0.98));
}

.revenue-overview-card.failed {
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(22, 17, 31, 0.94), rgba(12, 13, 24, 0.98));
}

.revenue-overview-card span,
.revenue-schedule-summary-card span {
  color: rgba(203, 221, 255, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.revenue-overview-card strong {
  font-size: 2.1rem;
  line-height: 1;
}

.revenue-overview-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.revenue-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgba(126, 156, 204, 0.16);
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 18, 35, 0.98), rgba(9, 22, 40, 0.98));
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.3);
}

.revenue-main-grid > .panel {
  min-height: 520px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 12px 14px 16px;
}

.revenue-trend-panel {
  border-right: 1px solid rgba(126, 156, 204, 0.14) !important;
}

.revenue-trend-list,
.revenue-schedule-list {
  display: grid;
  gap: 10px;
}

.revenue-trend-row {
  display: grid;
  grid-template-columns: 1fr minmax(150px, 1.7fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(126, 156, 204, 0.1);
  background: rgba(11, 22, 39, 0.52);
}

.revenue-trend-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}

.revenue-trend-button.active {
  border-color: rgba(94, 162, 255, 0.18);
  background: rgba(14, 28, 47, 0.66);
}

.revenue-trend-group,
.revenue-dropdown-panel {
  display: grid;
  gap: 10px;
}

.revenue-trend-meta,
.revenue-trend-value,
.revenue-schedule-main,
.revenue-schedule-meta {
  display: grid;
  gap: 4px;
}

.revenue-trend-meta strong,
.revenue-schedule-main strong,
.revenue-schedule-meta strong {
  font-size: 0.96rem;
}

.revenue-trend-meta span,
.revenue-schedule-meta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.revenue-trend-track {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(126, 156, 204, 0.12);
}

.revenue-trend-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(123, 194, 85, 0.72), rgba(176, 227, 121, 0.98));
  box-shadow: 0 0 18px rgba(123, 194, 85, 0.26);
}

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

.revenue-schedule-summary-card {
  display: grid;
  gap: 8px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(126, 156, 204, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.revenue-schedule-summary-card strong {
  font-size: 1.75rem;
  line-height: 1;
}

.revenue-schedule-summary-card.danger {
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 26%),
    rgba(255, 255, 255, 0.04);
}

.revenue-schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(126, 156, 204, 0.12);
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.09), transparent 28%),
    rgba(8, 18, 33, 0.52);
}

.revenue-schedule-row.processed {
  border-color: rgba(74, 222, 128, 0.22);
  background:
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.12), transparent 28%),
    rgba(8, 26, 20, 0.56);
  box-shadow: 0 0 26px rgba(74, 222, 128, 0.1);
}

.revenue-schedule-row.failed {
  border-color: rgba(251, 113, 133, 0.18);
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.1), transparent 28%),
    rgba(28, 15, 22, 0.54);
}

.revenue-schedule-row.pending {
  border-color: rgba(126, 156, 204, 0.16);
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.09), transparent 28%),
    rgba(8, 18, 33, 0.52);
}

.revenue-schedule-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.revenue-timing-pill.today {
  background: rgba(126, 156, 204, 0.16);
  color: #f2f7ff;
}

.revenue-timing-pill.upcoming {
  background: rgba(94, 162, 255, 0.16);
  color: #ddebff;
}

.revenue-timing-pill.pastdue {
  background: rgba(251, 113, 133, 0.14);
  color: #ffd7de;
}

.revenue-schedule-meta {
  justify-items: end;
  text-align: right;
}

.revenue-dropdown-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 156, 204, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(26, 38, 63, 0.98), rgba(16, 25, 43, 0.98));
}

.revenue-dashboard-shell > .revenue-dropdown-panel {
  position: absolute;
  top: 128px;
  width: calc((100% - 42px) / 4);
  max-width: calc((100% - 42px) / 4);
  left: calc(((100% - 42px) / 4) + 14px);
  margin-left: 0;
  margin-top: 0;
  z-index: 6;
}

.revenue-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  color: var(--text);
}

.revenue-dropdown-head h3 {
  margin: 0;
  font-size: 1rem;
}

.revenue-dropdown-head span {
  display: block;
  margin-top: 3px;
  color: rgba(203, 221, 255, 0.66);
  font-size: 0.82rem;
}

.revenue-dropdown-total {
  color: #f4f8ff;
  font-size: 1.2rem;
}

.revenue-dropdown-surface {
  padding: 8px;
  background: rgba(225, 229, 236, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.revenue-dropdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(20, 32, 52, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.revenue-dropdown-meta {
  display: grid;
  gap: 4px;
}

.revenue-dropdown-meta strong {
  font-size: 0.94rem;
  color: #182235;
}

.revenue-dropdown-meta span {
  color: #687995;
  font-size: 0.8rem;
}

.revenue-dropdown-amount {
  color: #182235;
  font-size: 0.96rem;
}

.revenue-month-dropdown {
  padding: 0 2px 2px;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

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

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

.revenue-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.metric-card,
.payment-card {
  padding: 16px;
}

.revenue-month-card {
  display: grid;
  gap: 14px;
}

.revenue-month-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.revenue-month-breakdown div {
  display: grid;
  gap: 4px;
}

.revenue-month-breakdown label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.revenue-month-breakdown b {
  font-size: 0.96rem;
}

.revenue-activity-list,
.revenue-roster {
  display: grid;
  gap: 12px;
}

.revenue-activity-row,
.revenue-roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(126, 156, 204, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    rgba(8, 14, 24, 0.42);
}

.revenue-activity-row.processed {
  border-color: rgba(74, 222, 128, 0.26);
  box-shadow: 0 0 26px rgba(74, 222, 128, 0.1);
}

.revenue-activity-row.failed {
  border-color: rgba(251, 113, 133, 0.28);
  box-shadow: 0 0 26px rgba(251, 113, 133, 0.1);
}

.revenue-activity-row.pastdue {
  border-color: rgba(251, 191, 36, 0.26);
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.1);
}

.revenue-activity-main,
.revenue-roster-identity,
.revenue-roster-progress,
.revenue-roster-dates {
  display: grid;
  gap: 6px;
}

.revenue-activity-main strong,
.revenue-roster-identity strong,
.revenue-roster-progress strong,
.revenue-roster-dates strong {
  font-size: 1rem;
}

.revenue-activity-main span,
.revenue-roster-identity span,
.revenue-roster-progress span,
.revenue-roster-dates span {
  color: var(--muted);
  font-size: 0.85rem;
}

.revenue-activity-main small {
  color: #ffd7de;
  font-size: 0.8rem;
  font-weight: 600;
}

.revenue-activity-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.revenue-activity-meta strong {
  font-size: 1.08rem;
}

.payment-card-visual {
  position: relative;
  overflow: hidden;
  width: min(100%, 460px);
  min-height: 230px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 44px rgba(0, 0, 0, 0.28);
  display: grid;
  align-content: space-between;
  gap: 24px;
  color: #f5f8ff;
  margin: 0 auto;
}

.payment-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.payment-card-visual.visa {
  background:
    radial-gradient(circle at 18% 20%, rgba(89, 171, 255, 0.3), transparent 28%),
    radial-gradient(circle at 82% 82%, rgba(36, 84, 255, 0.22), transparent 26%),
    linear-gradient(135deg, #081a3b 0%, #0a224a 44%, #07152f 100%);
}

.payment-card-visual.mastercard {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 98, 54, 0.3), transparent 28%),
    radial-gradient(circle at 78% 24%, rgba(255, 189, 46, 0.24), transparent 24%),
    linear-gradient(135deg, #1b1020 0%, #281528 38%, #120f22 100%);
}

.payment-card-visual.amex {
  background:
    radial-gradient(circle at 18% 18%, rgba(90, 221, 255, 0.28), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(62, 171, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #0b3f5e 0%, #12608d 46%, #0a2f47 100%);
}

.payment-card-visual.generic {
  background:
    radial-gradient(circle at 18% 18%, rgba(126, 156, 204, 0.22), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(94, 162, 255, 0.14), transparent 26%),
    linear-gradient(135deg, #0d1b31 0%, #142744 46%, #0b1324 100%);
}

.payment-card-topline,
.payment-card-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.payment-card-chip {
  width: 42px;
  height: 32px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 230, 149, 0.95), rgba(196, 152, 56, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.14);
}

.payment-card-network {
  color: rgba(245, 248, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.payment-card-number {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.payment-card-holder {
  color: rgba(245, 248, 255, 0.9);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.payment-card-visual.amex .payment-card-number {
  letter-spacing: 0.1em;
}

.payment-card-visual.amex .payment-card-network {
  letter-spacing: 0.12em;
}

.payment-field {
  display: grid;
  gap: 8px;
}

.payment-field span {
  color: rgba(198, 216, 248, 0.84);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payment-field input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(126, 156, 204, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}

.payment-field input:focus {
  border-color: rgba(94, 162, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(94, 162, 255, 0.1);
}

.payment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(3, 7, 14, 0.72);
  backdrop-filter: blur(18px);
}

.payment-modal {
  width: min(100%, 740px);
  border-radius: 30px;
  border: 1px solid rgba(126, 156, 204, 0.2);
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(123, 194, 85, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(12, 20, 34, 0.985), rgba(7, 12, 22, 0.985));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 46px 96px rgba(0, 0, 0, 0.42);
  padding: 28px;
}

.backend-access-modal {
  width: min(100%, 760px);
}

.payment-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.payment-modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(126, 156, 204, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: 0.18s ease;
}

.payment-modal-close:hover {
  border-color: rgba(94, 162, 255, 0.3);
  background: rgba(94, 162, 255, 0.1);
}

.payment-modal-form {
  display: grid;
  gap: 18px;
}

.billing-schedule-modal {
  width: min(100%, 980px);
  max-height: min(92vh, 980px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.billing-schedule-chooser {
  width: min(100%, 860px);
  max-height: none;
  display: block;
  overflow: visible;
}

.billing-schedule-chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.billing-schedule-choice {
  border: 1px solid rgba(126, 156, 204, 0.18);
  border-radius: 26px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 40px rgba(0, 0, 0, 0.26);
}

.billing-schedule-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 162, 255, 0.32);
}

.billing-schedule-choice.investigation {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 40px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(94, 162, 255, 0.06);
}

.billing-schedule-choice.resolution {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 40px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(123, 194, 85, 0.07);
}

.billing-schedule-choice-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.billing-schedule-choice-top h4,
.billing-schedule-editor-head h4 {
  margin: 0;
}

.billing-schedule-choice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 156, 204, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 245, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-schedule-choice-total {
  margin-top: 18px;
  font-size: 2rem;
  font-weight: 800;
  color: #f3f7ff;
}

.billing-schedule-choice-stats {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(198, 216, 248, 0.8);
}

.billing-schedule-choice-stats strong {
  color: #f4f8ff;
}

.billing-schedule-subtitle {
  margin-top: 8px;
  color: rgba(198, 216, 248, 0.76);
  font-size: 0.92rem;
  font-weight: 600;
}

.billing-schedule-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.billing-schedule-summary-card {
  border: 1px solid rgba(126, 156, 204, 0.14);
  border-radius: 18px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.026);
}

.billing-schedule-summary-card.warning {
  border-color: rgba(251, 113, 133, 0.18);
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
}

.billing-schedule-summary-card span {
  display: block;
  color: rgba(198, 216, 248, 0.72);
  font-size: 0.82rem;
}

.billing-schedule-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
  color: #f4f8ff;
}

.billing-schedule-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.billing-schedule-insight-card {
  border: 1px solid rgba(126, 156, 204, 0.14);
  border-radius: 18px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.022);
}

.billing-schedule-insight-card span {
  display: block;
  color: rgba(198, 216, 248, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-schedule-insight-card strong {
  display: block;
  margin-top: 8px;
  color: #f4f8ff;
  font-size: 1rem;
}

.billing-schedule-planner-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(126, 156, 204, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.billing-schedule-planner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.billing-schedule-planner-head h4 {
  margin: 0;
}

.billing-schedule-planner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.billing-schedule-planner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.billing-schedule-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(238, 245, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
}

.billing-schedule-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.billing-schedule-planner-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 2px;
  color: rgba(214, 229, 252, 0.78);
  font-size: 0.92rem;
}

.billing-schedule-planner-preview strong {
  color: #f4f8ff;
}

.billing-schedule-planner-preview-main,
.billing-schedule-planner-preview-side {
  line-height: 1.3;
}

.billing-schedule-planner-meta {
  color: rgba(198, 216, 248, 0.72);
  font-size: 0.86rem;
  font-weight: 600;
}

.billing-schedule-save-state {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(94, 162, 255, 0.18);
  background: rgba(94, 162, 255, 0.08);
  color: rgba(238, 245, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
}

.billing-schedule-save-state.error {
  border-color: rgba(251, 113, 133, 0.22);
  background: rgba(251, 113, 133, 0.08);
  color: #ffd8de;
}

.billing-schedule-planner-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.billing-schedule-validation {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(126, 156, 204, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.billing-schedule-validation.blocking {
  border-color: rgba(251, 113, 133, 0.24);
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.03);
}

.billing-schedule-validation.advisory {
  border-color: rgba(123, 194, 85, 0.2);
  background:
    radial-gradient(circle at top right, rgba(123, 194, 85, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.03);
}

.billing-schedule-validation-head {
  display: grid;
  gap: 6px;
}

.billing-schedule-validation-head strong {
  color: #f4f8ff;
}

.billing-schedule-validation-head span {
  color: rgba(214, 229, 252, 0.76);
  font-size: 0.92rem;
}

.billing-schedule-validation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.billing-schedule-validation-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 156, 204, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(244, 248, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 600;
}

.billing-schedule-editor-shell {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(126, 156, 204, 0.14);
  background: rgba(255, 255, 255, 0.018);
}

.billing-schedule-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.billing-schedule-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.billing-schedule-editor-list {
  display: grid;
  gap: 14px;
}

.billing-schedule-edit-row {
  border: 1px solid rgba(126, 156, 204, 0.14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(8, 13, 22, 0.42);
}

.billing-schedule-edit-row.processed {
  border-color: rgba(123, 194, 85, 0.22);
  background:
    radial-gradient(circle at top left, rgba(74, 222, 128, 0.18), transparent 34%),
    radial-gradient(circle at right center, rgba(74, 222, 128, 0.12), transparent 30%),
    rgba(8, 13, 22, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(74, 222, 128, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(74, 222, 128, 0.08),
    0 0 32px rgba(74, 222, 128, 0.16),
    0 0 72px rgba(74, 222, 128, 0.1);
}

.billing-schedule-edit-row.processed .billing-schedule-edit-title span {
  border-color: rgba(74, 222, 128, 0.34);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.16), rgba(74, 222, 128, 0.08));
  color: #dcffe8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 18px rgba(74, 222, 128, 0.14);
}

.billing-schedule-edit-row.failed,
.billing-schedule-edit-row.pastdue {
  border-color: rgba(251, 113, 133, 0.22);
}

.billing-schedule-edit-row.failed {
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.18), transparent 34%),
    radial-gradient(circle at right center, rgba(251, 113, 133, 0.12), transparent 30%),
    rgba(14, 9, 16, 0.64);
  box-shadow:
    inset 0 0 0 1px rgba(251, 113, 133, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(251, 113, 133, 0.08),
    0 0 30px rgba(251, 113, 133, 0.16),
    0 0 70px rgba(251, 113, 133, 0.1);
}

.billing-schedule-edit-row.failed .billing-schedule-edit-title span {
  border-color: rgba(251, 113, 133, 0.34);
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.16), rgba(251, 113, 133, 0.08));
  color: #ffd8de;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 18px rgba(251, 113, 133, 0.14);
}

.billing-schedule-edit-row.pastdue {
  border-color: rgba(251, 191, 36, 0.26);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.2), transparent 34%),
    radial-gradient(circle at right center, rgba(245, 158, 11, 0.14), transparent 30%),
    rgba(18, 12, 6, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(251, 191, 36, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(245, 158, 11, 0.08),
    0 0 30px rgba(245, 158, 11, 0.16),
    0 0 72px rgba(251, 191, 36, 0.12);
}

.billing-schedule-edit-row.pastdue .billing-schedule-edit-title span {
  border-color: rgba(251, 191, 36, 0.34);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.08));
  color: #ffe4a6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 18px rgba(245, 158, 11, 0.14);
}

.billing-schedule-edit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.billing-schedule-edit-top strong {
  color: #f4f8ff;
  letter-spacing: 0.04em;
}

.billing-schedule-edit-title {
  display: grid;
  gap: 6px;
}

.billing-schedule-edit-title span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(126, 156, 204, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 245, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-schedule-edit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  align-items: end;
}

.billing-schedule-select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(126, 156, 204, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.billing-schedule-select:focus {
  border-color: rgba(94, 162, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(94, 162, 255, 0.1);
}

.billing-row-remove {
  border: 1px solid rgba(251, 113, 133, 0.18);
  border-radius: 14px;
  padding: 10px 14px;
  background: rgba(251, 113, 133, 0.08);
  color: #ffd8de;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.billing-row-remove:hover {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.28);
}

.billing-schedule-edit-row.has-blocking-issue {
  border-color: rgba(251, 113, 133, 0.28);
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.08);
}

.billing-schedule-edit-row.has-advisory-issue {
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.08);
}

.billing-schedule-row-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.billing-schedule-failure-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(251, 113, 133, 0.24);
  background:
    linear-gradient(180deg, rgba(251, 113, 133, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(23, 10, 15, 0.34);
  color: #ffd8de;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 18px rgba(0, 0, 0, 0.16);
}

.billing-schedule-row-issue {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.billing-schedule-row-issue.blocking {
  border: 1px solid rgba(251, 113, 133, 0.2);
  background: rgba(251, 113, 133, 0.1);
  color: #ffd6dc;
}

.billing-schedule-row-issue.advisory {
  border: 1px solid rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.1);
  color: #ffe7ac;
}

.billing-schedule-empty {
  border: 1px dashed rgba(126, 156, 204, 0.18);
  border-radius: 20px;
  padding: 20px;
  color: rgba(198, 216, 248, 0.74);
  text-align: center;
}

.billing-schedule-editor .payment-modal-header {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: -2px -2px 0;
  padding: 0 2px 14px;
  background: linear-gradient(180deg, rgba(12, 20, 34, 0.985) 76%, rgba(12, 20, 34, 0));
}

.billing-schedule-editor .payment-modal-form {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -6px;
}

.billing-schedule-editor .payment-modal-form::-webkit-scrollbar {
  width: 10px;
}

.billing-schedule-editor .payment-modal-form::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(126, 156, 204, 0.24);
}

.billing-schedule-editor .payment-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(12, 20, 34, 0), rgba(12, 20, 34, 0.985) 34%);
}

.billing-schedule-editor .billing-editor-cancel-button {
  margin-right: auto;
}

.add-payment-modal {
  width: min(100%, 760px);
}

.payment-modal-preview-shell {
  display: flex;
  justify-content: center;
  padding: 2px 0 4px;
}

.payment-modal-preview {
  width: min(100%, 430px);
  min-height: 220px;
  padding: 20px 22px;
  gap: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.payment-modal-preview .payment-card-number {
  font-size: 1.9rem;
}

.payment-card-expiry {
  color: rgba(245, 248, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.payment-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(126, 156, 204, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.payment-modal-chip,
.payment-modal-meta {
  color: rgba(238, 245, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.payment-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.payment-sync-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(126, 156, 204, 0.16);
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.payment-sync-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.payment-sync-panel-head h4 {
  margin: 0;
  font-size: 1.05rem;
}

.payment-sync-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(126, 156, 204, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 245, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.payment-sync-message {
  margin: 0;
  color: rgba(198, 216, 248, 0.8);
  font-size: 0.92rem;
  line-height: 1.55;
}

.payment-sync-message.is-error {
  color: #ffb7bf;
}

.payment-stripe-shell {
  min-height: 210px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(126, 156, 204, 0.16);
  background: rgba(6, 11, 20, 0.54);
}

.payment-stripe-shell-loading {
  display: grid;
  place-items: center;
  color: rgba(198, 216, 248, 0.78);
  font-weight: 600;
}

.payment-stripe-shell.is-disabled {
  opacity: 0.45;
}

.payment-field-full {
  grid-column: 1 / -1;
}

.payment-field-compact {
  max-width: none;
}

.payment-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.run-payment-modal {
  width: min(100%, 700px);
}

.run-payment-form {
  gap: 14px;
}

.run-payment-subtitle {
  margin: 8px 0 0;
  max-width: 520px;
  color: rgba(204, 219, 244, 0.82);
  line-height: 1.45;
}

.run-payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.run-payment-summary-card {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(124, 153, 201, 0.18);
  background:
    radial-gradient(circle at top right, rgba(94, 162, 255, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(13, 21, 35, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.run-payment-summary-card span {
  color: rgba(159, 182, 219, 0.78);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.run-payment-summary-card strong {
  color: #f5f9ff;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.run-payment-due-strip {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(126, 156, 204, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(10, 18, 31, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.15);
}

.run-payment-due-label {
  color: rgba(181, 201, 233, 0.84);
  font-size: 0.68rem;
  font-weight: 700;
}

.run-payment-due-pill {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(108, 139, 191, 0.18);
  background:
    linear-gradient(180deg, rgba(19, 34, 58, 0.98), rgba(10, 19, 33, 0.98));
  color: #eef5ff;
  font-size: 0.86rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.run-payment-method-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(126, 156, 204, 0.16);
  background:
    radial-gradient(circle at bottom left, rgba(60, 130, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(10, 18, 31, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.run-payment-method-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 2px 0;
}

.run-payment-method-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.run-payment-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 10px;
  border: 1px solid rgba(143, 168, 219, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: #dceaff;
  font-size: 0.8rem;
}

.run-payment-method-identity strong {
  display: block;
  color: #f4f8ff;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.run-payment-method-identity p {
  margin: 4px 0 0;
  color: rgba(183, 201, 232, 0.74);
  font-size: 0.78rem;
}

.run-payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.run-payment-badge.ready {
  border: 1px solid rgba(74, 222, 128, 0.22);
  background: rgba(74, 222, 128, 0.14);
  color: #ddffe8;
  box-shadow: 0 0 22px rgba(74, 222, 128, 0.12);
}

.run-payment-badge.blocked {
  border: 1px solid rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.12);
  color: #ffe8ae;
}

.run-payment-method-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.run-payment-method-stat {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(126, 156, 204, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 18px rgba(0, 0, 0, 0.14);
}

.run-payment-method-stat span {
  color: rgba(164, 186, 221, 0.72);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.run-payment-method-stat strong {
  color: #f4f8ff;
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}

.run-payment-method-picker {
  display: grid;
  gap: 5px;
  padding: 4px 2px 0;
}

.run-payment-method-picker > span {
  color: #eef4ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.run-payment-method-picker > small {
  color: rgba(180, 199, 231, 0.7);
  line-height: 1.45;
}

.run-payment-method-select-shell {
  position: relative;
  margin-top: 4px;
}

.run-payment-method-select-shell::after {
  content: '⌄';
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: rgba(208, 223, 247, 0.86);
  pointer-events: none;
  font-size: 0.9rem;
}

.run-payment-method-select {
  padding-right: 42px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(10, 33, 76, 0.92), rgba(8, 25, 58, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.18);
  appearance: none;
}

.run-payment-helper,
.run-payment-error {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(179, 198, 229, 0.72);
  font-size: 0.78rem;
  line-height: 1.45;
}

.payment-editor-button {
  border: 0;
  border-radius: 16px;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(94, 162, 255, 0.92), rgba(71, 127, 235, 0.9));
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.payment-editor-button.ghost {
  border: 1px solid rgba(126, 156, 204, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.payment-editor-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(71, 127, 235, 0.24);
}

.payment-editor-button[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 720px) {
  .payment-modal {
    padding: 22px;
  }

  .run-payment-summary-grid,
  .run-payment-method-stats {
    grid-template-columns: 1fr;
  }

  .payment-modal-preview {
    width: 100%;
    min-height: 198px;
    padding: 18px;
  }

  .payment-modal-preview .payment-card-number {
    font-size: 1.55rem;
  }

  .payment-modal-grid {
    grid-template-columns: 1fr;
  }

  .payment-sync-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .billing-schedule-chooser-grid,
  .billing-schedule-summary-grid,
  .billing-schedule-insight-grid,
  .billing-schedule-planner-grid,
  .billing-schedule-edit-grid {
    grid-template-columns: 1fr;
  }

  .billing-schedule-editor-head,
  .billing-schedule-planner-head,
  .billing-schedule-editor-actions,
  .billing-schedule-planner-actions,
  .billing-schedule-edit-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .billing-schedule-planner-preview {
    flex-direction: column;
    align-items: flex-start;
  }

  .billing-schedule-editor .payment-modal-form {
    padding-right: 2px;
    margin-right: -2px;
  }

  .payment-modal-actions {
    flex-wrap: wrap;
  }
}

.metric-card strong,
.payment-card strong {
  display: block;
  font-size: 1.16rem;
}

.payment-card-row + .payment-card-row {
  margin-top: 12px;
}

.payment-card-row strong {
  font-size: 0.98rem;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.bottom-dock-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(126, 156, 204, 0.22);
  background:
    linear-gradient(180deg, rgba(16, 25, 42, 0.86), rgba(7, 13, 24, 0.96));
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 -14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bottom-dock-utility,
.bottom-dock-spacer {
  flex: 1 1 0;
  display: flex;
  align-items: center;
}

.bottom-dock-utility {
  justify-content: flex-start;
}

.bottom-dock-spacer {
  justify-content: flex-end;
}

.bottom-dock-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.bottom-dock-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  min-width: 170px;
  border: 0;
  border-right: 1px solid rgba(126, 156, 204, 0.16);
  border-radius: 0;
  padding: 14px 18px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 0.18s ease;
}

.bottom-dock-item:last-child {
  border-right: 0;
}

.bottom-dock-item::before {
  content: "";
  position: absolute;
  inset: 8px 8px;
  opacity: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  transition: 0.18s ease;
}

.bottom-dock-item:hover {
  color: var(--text);
}

.bottom-dock-item:hover::before {
  opacity: 1;
}

.bottom-dock-item.active {
  color: var(--text);
}

.bottom-dock-item.active::before {
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(94, 162, 255, 0.16), rgba(123, 194, 85, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 20px rgba(94, 162, 255, 0.1);
}

.bottom-dock-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 0.95rem;
}

.bottom-dock-item.active .bottom-dock-icon {
  background: linear-gradient(180deg, rgba(94, 162, 255, 0.18), rgba(123, 194, 85, 0.08));
  border-color: rgba(126, 156, 204, 0.24);
  box-shadow: 0 0 16px rgba(94, 162, 255, 0.08);
}

.bottom-dock-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 138px;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(251, 113, 133, 0.18);
  padding: 12px 16px;
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(18, 10, 18, 0.52);
  color: #f4e8ee;
  cursor: pointer;
  transition: 0.18s ease;
}

.bottom-dock-logout:hover {
  color: #fff5f8;
  border-color: rgba(251, 113, 133, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 22px rgba(251, 113, 133, 0.12);
}

.bottom-dock-logout .bottom-dock-icon {
  background: rgba(251, 113, 133, 0.08);
  border-color: rgba(251, 113, 133, 0.14);
}

.app-shell.section-revenue .secondary-column,
.app-shell.section-schedules .secondary-column,
.app-shell.section-revenue .hero-panel,
.app-shell.section-revenue .kpi-grid,
.app-shell.section-schedules .hero-panel,
.app-shell.section-schedules .kpi-grid {
  display: none;
}

.app-shell.section-revenue .content-grid,
.app-shell.section-schedules .content-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 1400px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

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

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .kpi-grid,
  .snapshot-grid,
  .secondary-column,
  .billing-hero-stats,
  .billing-actions,
  .revenue-overview-grid,
  .revenue-schedule-summary,
  .revenue-month-grid,
  .revenue-dashboard-grid,
  .revenue-grid-expanded,
  .stacked-schedule-grid,
  .landing-results-grid,
  .recommend-grid {
    grid-template-columns: 1fr;
  }

  .revenue-main-grid {
    grid-template-columns: 1fr;
  }

  .revenue-dashboard-shell > .revenue-dropdown-panel {
    position: static;
    width: 100%;
    max-width: none;
    left: auto;
    top: auto;
    margin-left: 0;
    margin-top: 0;
  }

  .revenue-trend-panel {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(126, 156, 204, 0.14);
  }

  .revenue-trend-row {
    grid-template-columns: 1fr;
  }




  .lookup-stats,
  .client-card-metrics,
  .schedule-summary-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .main-shell,
  .sidebar {
    padding: 14px;
  }

  .hero-panel,
  .panel,
  .sidebar-panel {
    padding: 16px;
  }

  .bottom-dock-nav {
    padding-left: 10px;
    padding-right: 10px;
  }

  .bottom-dock-center {
    flex: 1 1 auto;
    min-width: 0;
  }

  .bottom-dock-item {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
  }

  .bottom-dock-logout {
    min-width: 0;
    padding: 12px 12px;
  }

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

  .billing-actions,
  .billing-header,
  .billing-toolbar,
  .schedule-card-head,
  .billing-overview-meta,
  .schedule-preview-row {
    flex-direction: column;
  }

  .schedule-preview-row {
    grid-template-columns: 1fr;
  }

  .lookup-meta,
  .client-card-footer,
  .schedule-row-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-status-card {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 1400px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .secondary-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 340px minmax(1100px, 1fr);
  }

  .app-shell.client-opened {
    grid-template-columns: 1fr;
    min-width: var(--desktop-open-width);
  }

  .sidebar {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

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

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

  .secondary-column {
    grid-template-columns: 1fr;
  }

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

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

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

  .client-card-metrics {
    flex-direction: row;
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .main-shell,
  .sidebar {
    padding: 24px;
  }

  .hero-panel,
  .panel,
  .sidebar-panel {
    padding: 20px;
  }

  .bottom-dock-nav {
    min-width: var(--desktop-open-width);
    padding-left: 22px;
    padding-right: 22px;
  }

  .bottom-dock-center {
    flex: 0 0 auto;
  }

  .bottom-dock-item {
    flex: 0 0 auto;
    min-width: 170px;
    padding: 14px 18px;
  }

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

  .billing-actions,
  .billing-header,
  .billing-toolbar,
  .schedule-card-head,
  .billing-overview-meta,
  .lookup-meta,
  .client-card-footer,
  .schedule-row-top {
    flex-direction: row;
    align-items: flex-start;
  }

  .schedule-preview-row {
    flex-direction: row;
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .schedule-status-card {
    justify-items: center;
    text-align: center;
  }
}
