:root {
  --bg0: #050816;
  --bg1: #020617;
  --panel: rgba(2, 6, 23, 0.92);
  --panel2: rgba(6, 12, 28, 0.86);
  --border: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(148, 163, 184, 0.34);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22c55e;
  --accent2: #0ea5e9;
  --danger: #f87171;
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 15% 0%, rgba(14,165,233,0.12), transparent 55%),
              radial-gradient(1000px 700px at 85% 10%, rgba(34,197,94,0.10), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
}

/* subtle cyber grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 55%, transparent 78%);
  opacity: 0.65;
}

#root {
  min-height: 100vh;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.qes-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(2,6,23,0.92), rgba(2,6,23,0.72));
  backdrop-filter: blur(10px);
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qes-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.10), 0 12px 30px rgba(0,0,0,0.35);
}

.title-stack h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.title-stack p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.user-info span {
  color: var(--text);
  opacity: 0.95;
}

.pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.28);
  background: rgba(148,163,184,0.08);
  font-size: 12px;
  white-space: nowrap;
}

main {
  flex: 1;
  padding: 22px clamp(14px, 2vw, 36px);
  max-width: none;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.auth-card {
  max-width: 420px;
  margin: 46px auto;
  background: var(--panel);
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.auth-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.panel {
  background: var(--panel2);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 12px;
}

input[type="file"],
input[type="password"],
input[type="email"],
input[type="text"],
input[type="number"],
input[type="date"],
select {
  margin-top: 6px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.38);
  background: rgba(2,6,23,0.78);
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: rgba(34,197,94,0.55);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.10);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

button.primary {
  background: linear-gradient(135deg, rgba(34,197,94,1), rgba(14,165,233,1));
  color: #020617;
}

button.primary:hover {
  filter: brightness(1.05);
}

button.secondary {
  background: rgba(148,163,184,0.08);
  color: var(--text);
  border-color: rgba(148,163,184,0.30);
}

button.secondary:hover {
  border-color: rgba(34,197,94,0.45);
  background: rgba(34,197,94,0.10);
}

button.small {
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  margin: 8px 0 0;
}

.status {
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
  color: var(--muted);
}

.qes-footer {
  padding: 12px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: rgba(156,163,175,0.85);
  text-align: center;
  background: rgba(2,6,23,0.65);
  backdrop-filter: blur(10px);
}

.hidden {
  display: none !important;
}

/* Desktop-style shell */
.shell {
  display: flex;
  gap: 18px;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - 132px);
  min-height: calc(100dvh - 132px);
}

.sidebar {
  width: 280px;
  background: rgba(2,6,23,0.80);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}

.sidebar .nav-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(148,163,184,0.06);
  color: var(--text);
  border: 1px solid rgba(148,163,184,0.18);
  font-weight: 800;
}

.nav-ico {
  width: 24px;
  display: inline-flex;
  justify-content: center;
}

.sidebar .nav-btn:hover {
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.08);
}

.sidebar .nav-btn.active {
  background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(14,165,233,0.16));
  border-color: rgba(34,197,94,0.52);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.08);
}

.sidebar .nav-btn.danger {
  background: rgba(248,113,113,0.10);
  border-color: rgba(248,113,113,0.30);
}

.sidebar-spacer {
  flex: 1;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
}

.page-area {
  background: linear-gradient(145deg, rgba(2,6,23,0.78), rgba(7,15,34,0.76));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(125,211,252,0.04);
  flex: 0 0 auto;
}

.activity-pane {
  background: linear-gradient(145deg, rgba(2,6,23,0.80), rgba(5,12,29,0.76));
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(125,211,252,0.04);
  flex: 1 1 auto;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

/* Fill the authenticated viewport. The activity log absorbs all space which
   remains after the active page, rather than appearing as a small card. */
#app-section,
#app-section > .shell,
#app-section .content {
  flex: 1 1 auto;
}

#app-section .page-area {
  max-height: 58%;
  overflow: auto;
}

#app-section .activity-pane {
  min-height: 0;
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 900;
}

.activity-log {
  height: auto;
  min-height: 300px;
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
}

.activity-item {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(148,163,184,0.18);
}

.activity-item:last-child {
  border-bottom: none;
}

.work-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(34,197,94,0.38);
  background: rgba(34,197,94,0.10);
  font-weight: 900;
  width: fit-content;
}

.work-banner .spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.toggle-row input {
  transform: scale(1.08);
}

.toggle-row.disabled {
  opacity: 0.55;
}

.row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .shell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar .nav-btn {
    width: auto;
    flex: 1 1 220px;
  }
}

/* QES production additions */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.desktop-only-nav {
  opacity: 0.62;
  filter: saturate(0.45);
}

.desktop-only-nav:hover,
.desktop-only-nav.active {
  opacity: 0.9;
  filter: saturate(0.8);
  border-color: rgba(148, 163, 184, 0.4) !important;
  background: rgba(148, 163, 184, 0.08) !important;
}

.desktop-badge {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-only-panel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  margin: 14px 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.14), rgba(15, 23, 42, 0.65));
}

.desktop-only-panel h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.desktop-only-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.desktop-only-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.11);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 24px;
}

.unavailable-panel {
  opacity: 0.42;
  pointer-events: none;
  filter: grayscale(0.75);
}

.notice {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  line-height: 1.45;
  font-size: 13px;
}

.notice.warning {
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: #fde68a;
}

.notice.warning span {
  color: #d6caa2;
}

.security-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.security-summary span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.07);
  border: 1px solid rgba(14, 165, 233, 0.22);
  color: #bae6fd;
  font-size: 11px;
}

.secure-export-grid {
  display: grid;
  gap: 14px;
}

fieldset {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 13px;
}

legend {
  padding: 0 7px;
  color: #bfdbfe;
  font-weight: 800;
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0;
}

.choice-row input {
  width: auto;
  margin: 0;
}

.disabled-control {
  opacity: 0.7;
}

.small {
  font-size: 12px;
}

.work-banner {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, 260px);
  align-items: center;
}

.work-banner progress {
  width: 100%;
  height: 12px;
  accent-color: var(--accent);
}

.status.success {
  color: #86efac;
}

.status.error {
  color: #fca5a5;
}

.status.warning {
  color: #fde68a;
}

@media (max-width: 760px) {
  .qes-header {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .user-info {
    flex-wrap: wrap;
  }

  .work-banner {
    grid-template-columns: auto 1fr;
  }

  .work-banner progress {
    grid-column: 1 / -1;
  }
}

.destination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 12px;
  background: rgba(2,6,23,0.45);
}

.destination-row p { margin: 4px 0 0; }

/* Help, tutorial and About QES */
.page-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.tutorial-panel {
  border-color: rgba(34, 197, 94, 0.38);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.09), rgba(14, 165, 233, 0.07));
}

.tutorial-meta {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.tutorial-meta progress {
  width: 100%;
  height: 10px;
  accent-color: var(--accent);
}

.tutorial-panel h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.tutorial-panel p {
  line-height: 1.6;
  min-height: 48px;
}

.tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

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

.help-list {
  margin: 0;
  padding-left: 21px;
  line-height: 1.58;
}

.help-list li + li {
  margin-top: 7px;
}

.do-panel {
  border-color: rgba(34, 197, 94, 0.30);
}

.dont-panel {
  border-color: rgba(248, 113, 113, 0.30);
}

.faq-panel,
.references-panel,
.platform-table-wrap {
  margin-top: 14px;
}

.faq-panel details {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 11px 0;
}

.faq-panel details:first-of-type {
  border-top: 0;
}

.faq-panel summary {
  cursor: pointer;
  font-weight: 800;
  color: #dbeafe;
}

.faq-panel details[open] summary {
  color: #86efac;
}

.faq-panel p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.platform-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.platform-table th,
.platform-table td {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  text-align: left;
  vertical-align: top;
}

.platform-table th {
  background: rgba(14, 165, 233, 0.10);
  color: #bae6fd;
}

.references-panel a {
  color: #7dd3fc;
  text-decoration: none;
}

.references-panel a:hover,
.references-panel a:focus {
  text-decoration: underline;
}

.security-summary.expanded span {
  font-size: 12px;
  padding: 7px 10px;
}

@media (max-width: 860px) {
  .help-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .page-heading-row {
    flex-direction: column;
  }

  .tutorial-meta {
    grid-template-columns: 1fr;
  }

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

  .platform-table {
    min-width: 660px;
  }
}

/* Password verification and Secure Export restore controls */
.password-visibility {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.password-visibility input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.secure-export-divider {
  height: 1px;
  margin: 10px 0 2px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.45), transparent);
}

.secure-export-decrypt {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.secure-export-decrypt h3 {
  margin: 0;
  color: #dbeafe;
}


/* QES interface refinement */
.qes-header { box-shadow: 0 10px 35px rgba(0,0,0,.22); }
.sidebar, .page-area, .activity-pane { position: relative; }
.sidebar::before, .page-area::before, .activity-pane::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(34,197,94,.18), transparent 28%, transparent 72%, rgba(14,165,233,.18));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; padding: 1px; opacity: .45;
}
button, .nav-btn { transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(14,165,233,.10); }
button.primary { border-color: rgba(125,211,252,.34); box-shadow: 0 8px 26px rgba(14,165,233,.14); }
.sidebar .nav-btn.active { box-shadow: 0 0 0 1px rgba(34,197,94,.12), 0 10px 28px rgba(14,165,233,.10); }
.password-visibility { padding: 6px 8px; border-radius: 10px; border: 1px solid rgba(148,163,184,.18); background: rgba(148,163,184,.05); }
.password-visibility:has(input:checked) { color: #dbeafe; border-color: rgba(34,197,94,.42); background: rgba(34,197,94,.09); }
.admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:14px; }
.admin-actions { display:flex; gap:8px; flex-wrap:wrap; }
.admin-users-panel { margin-top:14px; }
.table-scroll { overflow:auto; }
.admin-users-table { width:100%; border-collapse:collapse; min-width:850px; }
.admin-users-table th, .admin-users-table td { padding:10px 12px; border-bottom:1px solid rgba(148,163,184,.16); text-align:left; vertical-align:middle; }
.admin-users-table th { color:#bae6fd; background:rgba(14,165,233,.07); position:sticky; top:0; }
@media (max-width: 980px) { .admin-grid { grid-template-columns:1fr; } }

/* QES customer-plan, finance console, and large-backup refinements */
.usage-plan-panel {
  margin-top: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(14,165,233,.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14,165,233,.08), rgba(34,197,94,.055));
}
.usage-plan-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 9px;
}
.usage-plan-heading strong { color: #dbeafe; font-size: 14px; }
.plan-charge { color: #86efac; font-size: 12px; font-weight: 800; }
.usage-plan-panel progress {
  display: block;
  width: 100%;
  height: 11px;
  accent-color: var(--accent);
}
.usage-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.usage-plan-grid span {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(2,6,23,.36);
}
.usage-plan-grid small { display: block; color: var(--muted); margin-bottom: 4px; }
.usage-plan-grid strong { display: block; overflow-wrap: anywhere; color: #f0f9ff; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.form-grid .wide-field { grid-column: 1 / -1; }
.form-grid textarea {
  margin-top: 6px;
  width: 100%;
  resize: vertical;
  min-height: 82px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.38);
  background: rgba(2,6,23,.78);
  color: var(--text);
  font: inherit;
}
.billing-settings-panel,
.customer-plan-panel { margin-top: 14px; }
.billing-settings-panel { border-color: rgba(14,165,233,.30); }
.customer-plan-panel { border-color: rgba(34,197,94,.27); }
.admin-only-section.hidden { display: none !important; }
#admin-nav-btn .nav-ico { color: #67e8f9; }
#admin-nav-btn.active { border-color: rgba(34,211,238,.58); }
.secure-export-grid .status { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .usage-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide-field { grid-column: auto; }
}
@media (max-width: 520px) {
  .usage-plan-grid { grid-template-columns: 1fr; }
}

/* R7 runtime interoperability hotfix: bulk restore, inline help, and live billing */
.help-control-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.help-control-row .choice-row { margin: 0; }
.help-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, .5);
  background: rgba(14, 165, 233, .12);
  color: #cffafe;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}
.help-icon:hover,
.help-icon:focus-visible {
  border-color: rgba(134, 239, 172, .9);
  background: rgba(34, 197, 94, .16);
  outline: none;
}
.qes-help-popover {
  position: fixed;
  z-index: 10000;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(103, 232, 249, .52);
  background: #071122;
  color: #e0f2fe;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .48);
  font-size: 12px;
  line-height: 1.5;
}
.current-bill-panel {
  margin: 0 0 14px;
  padding: 13px;
  border: 1px solid rgba(34, 211, 238, .38);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(14, 165, 233, .09), rgba(34, 197, 94, .06));
}
.current-bill-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.current-bill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.current-bill-grid span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 10px;
  background: rgba(2, 6, 23, .42);
}
.current-bill-grid small,
.current-bill-grid strong { display: block; overflow-wrap: anywhere; }
.current-bill-grid small { margin-bottom: 4px; color: var(--muted); }
.current-bill-grid strong { color: #f0fdfa; }
.accounts-heading { margin-bottom: 10px; }
.accounts-heading h3,
.accounts-heading p { margin: 0; }
@media (max-width: 900px) {
  .current-bill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .current-bill-grid { grid-template-columns: 1fr; }
}

/* R7 HOTFIX5: tabbed admin workspace parity and bounded console views */
.admin-workspace-tabs,
.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}
.admin-subtabs {
  margin-top: -4px;
  padding-bottom: 6px;
  border-bottom-color: rgba(14, 165, 233, .16);
}
.admin-workspace-tabs button,
.admin-subtabs button {
  min-width: 0;
}
.admin-workspace-tabs button.active,
.admin-subtabs button.active {
  color: #ecfeff;
  border-color: rgba(34, 197, 94, .75);
  background: linear-gradient(135deg, rgba(34, 197, 94, .16), rgba(14, 165, 233, .16));
  box-shadow: inset 0 -2px 0 rgba(34, 197, 94, .65);
}
#page-admin > .panel,
#page-admin > .admin-grid {
  margin-top: 0;
}
#admin-users-panel,
#customer-service-panel,
#admin-plan-panel,
#admin-payment-panel,
#admin-top-grid {
  min-height: 0;
}
#admin-users-panel .table-scroll,
#customer-service-panel .table-scroll {
  max-height: min(58vh, 620px);
}
@media (max-width: 720px) {
  .admin-workspace-tabs button,
  .admin-subtabs button {
    flex: 1 1 150px;
  }
}

/* HOTFIX7 r4: Desktop/Web administration selection parity */
.admin-selection-actions {
  margin: 10px 0 12px;
}

.selectable-table tbody tr {
  cursor: pointer;
  transition: background .14s ease, box-shadow .14s ease;
}

.selectable-table tbody tr:hover,
.selectable-table tbody tr:focus-visible {
  background: rgba(14, 165, 233, .10);
  outline: none;
}

.selectable-table tbody tr.selected,
.selectable-table tbody tr[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(14, 165, 233, .88), rgba(34, 197, 94, .18));
  box-shadow: inset 3px 0 0 rgba(134, 239, 172, .95);
}

.selectable-table tbody tr.selected td,
.selectable-table tbody tr[aria-selected="true"] td {
  color: #f8fafc;
}

.admin-selected-details {
  min-height: 42px;
  margin: 10px 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.trial-editor-panel {
  margin-top: 12px;
}
