:root {
  --bg: #fafafa;
  --paper: rgba(255, 255, 255, 0.94);
  --ink: #2c3e50;
  --muted: #5f6c78;
  --accent: #ff7f50;
  --accent-soft: #ffe1d6;
  --accent-strong: #f26b4f;
  --teal: #5fb8b8;
  --teal-soft: #dff4f4;
  --yellow: #f4d03f;
  --line: #e8e8e8;
  --ok: #2f8a7f;
  --warn: #b57f00;
  --bad: #d95d39;
  --shadow: 0 18px 42px rgba(44, 62, 80, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 127, 80, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(95, 184, 184, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(244, 208, 63, 0.12), transparent 24%),
    linear-gradient(145deg, #fff8f4, #fafafa 40%, #f4fbfb 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  display: grid;
  gap: 4px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.brand small {
  color: var(--muted);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.nav-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 6px;
  margin: -10px -6px;
}

.nav-button {
  border: 0;
  background: transparent;
  padding: 10px 6px;
  margin: -10px -6px;
  font: inherit;
  cursor: pointer;
}

#topbar-signout-button {
  font-weight: 800;
}

#topbar-account-button {
  font-weight: 800;
}

.hidden {
  display: none !important;
}

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

.hero,
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 32px;
  background: #243444;
  color: rgba(255, 250, 246, 0.88);
}

.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 26px;
  text-align: center;
}

.site-footer__logo {
  display: block;
  width: 160px;
  max-width: 100%;
  margin: 0 auto 12px;
  filter: none;
}

.site-footer__copy,
.site-footer__links {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: #fffdf9;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__release {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 250, 246, 0.72);
}

.site-footer__release a {
  color: #fffdf9;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.site-footer__release a:hover {
  text-decoration-thickness: 2px;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  border-radius: 24px;
  padding: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 127, 80, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(95, 184, 184, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
}

.hero h1,
.panel h2 {
  margin: 0;
  line-height: 1.05;
  font-family: "Poppins", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 4.8rem);
  max-width: 10ch;
}

.eyebrow,
.section-label,
.hero-card-label,
.meta-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-text,
#headline-summary {
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.02rem;
  max-width: 62ch;
}

.hero-card {
  border-radius: 16px;
  padding: 24px;
  color: #fffdfa;
  background:
    radial-gradient(circle at top left, rgba(242, 107, 79, 0.42), transparent 30%),
    radial-gradient(circle at bottom right, rgba(95, 184, 184, 0.18), transparent 36%),
    radial-gradient(circle at 80% 18%, rgba(244, 208, 63, 0.24), transparent 18%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(145deg, #f26b4f 0%, #ff7f50 42%, #f7a17f 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 48px rgba(242, 107, 79, 0.18);
}

.hero-card.is-onboarding-locked {
  opacity: 0.74;
  filter: saturate(0.72);
}

.hero-card-score {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 16px 0 8px;
}

.hero-card-score span {
  font-size: 4.5rem;
  line-height: 0.9;
  color: #fffdf9;
  text-shadow: 0 6px 18px rgba(117, 47, 32, 0.18);
}

.hero-card .hero-card-label,
.hero-card small,
.hero-card #headline-summary {
  color: rgba(255, 245, 238, 0.92);
}

.hero-card .hero-card-label {
  letter-spacing: 0.16em;
}

.hero-card #headline-summary {
  max-width: 28ch;
  text-wrap: balance;
}

.hero-account-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 240, 229, 0.18);
}

.hero-account-meta {
  display: grid;
  gap: 6px;
  width: min(100%, 460px);
}

.hero-account-bar .meta-label {
  margin-bottom: 0;
  color: rgba(255, 242, 234, 0.76);
}

.hero-account-name {
  margin: 0;
  color: #fffdf9;
  font-weight: 700;
  line-height: 1.35;
}

.hero-account-context {
  margin: 2px 0 0;
  max-width: 44ch;
  color: rgba(255, 245, 238, 0.9);
  line-height: 1.45;
  font-size: 0.95rem;
}

.hero-account-bar select {
  max-width: 100%;
  background: rgba(255, 255, 255, 0.13);
  color: #fffdf9;
  border-color: rgba(255, 240, 229, 0.24);
  box-shadow: none;
}

.hero-signout-button {
  justify-self: start;
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), #4aa5a5) !important;
  color: #fffdf9 !important;
  box-shadow: 0 12px 24px rgba(95, 184, 184, 0.22);
}

.hero-signout-button:hover {
  background: linear-gradient(135deg, #67c3c3, #4aa5a5) !important;
  box-shadow: 0 14px 28px rgba(95, 184, 184, 0.26);
}

.dashboard {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.dashboard.is-admin-layout > * {
  order: 4;
}

.dashboard.is-admin-layout #admin-panel {
  order: 1;
}

.dashboard.is-admin-layout #admin-impersonation-warning {
  order: 2;
}

.dashboard.is-admin-layout .hero {
  order: 3;
}

.panel {
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(95, 184, 184, 0.95), rgba(95, 184, 184, 0.42));
  pointer-events: none;
}

.panel-heading,
.profile-grid,
.provider-grid,
.split-panel,
.prompt-entry,
.action-card,
.roadmap-card,
.region-entry,
.competitor-entry {
  display: grid;
}

.panel-heading {
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.chip {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(242, 107, 79, 0.14);
}

.profile-grid,
.provider-grid,
.split-panel {
  gap: 16px;
}

.overview-grid,
.profile-summary-grid {
  display: grid;
  gap: 16px;
}

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

.overview-grid > .overview-card:nth-child(3),
.overview-grid > .overview-card:nth-child(4) {
  grid-column: span 1;
  min-width: 0;
}

#overview-best-region,
#overview-weak-region {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

@media (min-width: 1100px) {
  .overview-grid {
    grid-template-columns: minmax(180px, 0.9fr) minmax(180px, 0.9fr) minmax(260px, 1.2fr) minmax(260px, 1.2fr);
  }
}

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

  .profile-name-field {
    grid-column: auto;
  }
}

.profile-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 12px;
  margin-bottom: 0;
}

.website-summary-block .summary-value,
#profile-website-display {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.region-picker {
  display: grid;
  grid-template-columns: minmax(0, 360px) max-content;
  gap: 10px;
  align-items: center;
}

#add-region-button {
  padding: 10px 12px;
  min-width: 0;
  width: auto;
  font-size: 0.88rem;
  line-height: 1.1;
  background: rgba(242, 107, 79, 0.95);
  color: #fffaf4;
  border-color: rgba(242, 107, 79, 0.95);
  box-shadow: 0 10px 24px rgba(242, 107, 79, 0.18);
}

#add-region-button:hover {
  background: rgba(227, 92, 64, 0.98);
  box-shadow: 0 14px 28px rgba(242, 107, 79, 0.22);
}

.region-pill {
  padding-right: 6px;
}

.region-pill-remove {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 0 2px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 210px);
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(242, 107, 79, 0.14);
  background: rgba(255, 247, 243, 0.94);
  color: var(--ink);
}

.social-chip-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: 0 0 auto;
  color: #fffdf9;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.social-chip-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.social-chip-handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.94rem;
}

.profile-panel {
  gap: 18px;
}

.profile-edit-shell {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(242, 107, 79, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 127, 80, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 247, 0.96), rgba(255, 243, 238, 0.92)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(242, 107, 79, 0.08);
}

.profile-edit-header {
  margin-bottom: 16px;
}

.profile-edit-header h3 {
  margin: 6px 0 0;
  font-size: 1.1rem;
}

.collector-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.profile-name-field {
  grid-column: span 2;
}

.auth-form {
  align-content: start;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(44, 62, 80, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 127, 80, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(95, 184, 184, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 248, 0.82)),
    rgba(255, 255, 255, 0.7);
  box-shadow:
    0 24px 48px rgba(242, 107, 79, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
}

.auth-form::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f26b4f 0%, #ff9a73 46%, #5fb8b8 100%);
  opacity: 0.92;
}

.auth-view {
  display: grid;
  gap: 18px;
}

.auth-choice-card {
  min-height: 100%;
  border-color: rgba(255, 127, 80, 0.16);
  background:
    radial-gradient(circle at top right, rgba(242, 107, 79, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 247, 244, 0.92));
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.auth-choice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 107, 79, 0.24);
  box-shadow: 0 24px 42px rgba(242, 107, 79, 0.14);
}

.auth-choice-card .form-actions {
  margin-top: auto;
}

#signin-form {
  border-color: rgba(242, 107, 79, 0.2);
  background:
    radial-gradient(circle at top left, rgba(255, 170, 145, 0.32), transparent 34%),
    radial-gradient(circle at bottom right, rgba(95, 184, 184, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 249, 246, 0.98), rgba(255, 240, 233, 0.94));
  box-shadow: 0 24px 44px rgba(242, 107, 79, 0.12);
}

#signin-form .meta-label,
#signin-form .auth-copy,
#signin-form .supporting-copy,
#signin-form .field-hint,
#signin-form .auth-validation,
#signin-form .text-link-button {
  color: var(--ink);
}

#signin-form input {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(242, 107, 79, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 20px rgba(170, 79, 51, 0.08);
}

#signup-form {
  border-color: rgba(242, 107, 79, 0.2);
  background:
    radial-gradient(circle at top left, rgba(255, 170, 145, 0.32), transparent 34%),
    radial-gradient(circle at bottom right, rgba(95, 184, 184, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 249, 246, 0.98), rgba(255, 240, 233, 0.94));
  box-shadow: 0 24px 44px rgba(242, 107, 79, 0.12);
}

#signup-form .meta-label,
#signup-form .auth-copy,
#signup-form .supporting-copy,
#signup-form .field-hint,
#signup-form .auth-validation,
#signup-form .text-link-button {
  color: var(--ink);
}

#signup-form input {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(242, 107, 79, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 20px rgba(170, 79, 51, 0.08);
}

.signup-hero {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(242, 107, 79, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 171, 145, 0.28), transparent 34%),
    radial-gradient(circle at bottom right, rgba(95, 184, 184, 0.18), transparent 38%),
    linear-gradient(145deg, #f26b4f 0%, #ff7f50 52%, #f4a07f 100%);
  box-shadow: 0 22px 40px rgba(190, 88, 59, 0.2);
  color: var(--ink);
}

.signup-hero h3 {
  margin: 0;
  font-size: 1.68rem;
  line-height: 1.08;
  color: #ffffff;
  max-width: 18ch;
  text-shadow: 0 10px 22px rgba(112, 44, 30, 0.18);
}

/* Override #signup-form ID specificity so hero text reads on coral */
#signup-form .signup-hero .meta-label,
#signup-form .signup-hero .auth-copy {
  color: rgba(255, 250, 247, 0.9);
}

.signup-hero-pills {
  margin-top: 2px;
}

.signup-hero .auth-feature-pill {
  border-color: rgba(255, 250, 247, 0.22);
  background: rgba(255, 250, 247, 0.18);
  color: #fffdfa;
}

.signup-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.signup-hero-card {
  display: grid;
  gap: 6px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 6px 18px rgba(180, 70, 40, 0.14);
  min-height: 92px;
}

.signup-hero-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(160deg, #3d5166, #2c3e50);
  color: #ffffff;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.signup-hero-card span {
  color: var(--ink);
  line-height: 1.35;
  font-size: 0.92rem;
}

#password-reset-request-form,
#password-reset-confirm-form,
#invite-accept-form {
  border-color: rgba(95, 184, 184, 0.2);
  background:
    radial-gradient(circle at top right, rgba(95, 184, 184, 0.16), transparent 32%),
    radial-gradient(circle at bottom left, rgba(242, 107, 79, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 246, 240, 0.98), rgba(255, 236, 228, 0.94));
  box-shadow: 0 24px 44px rgba(95, 184, 184, 0.1);
}

.invite-hero {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(242, 107, 79, 0.22);
  background:
    radial-gradient(circle at top left, rgba(255, 171, 145, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(95, 184, 184, 0.16), transparent 38%),
    linear-gradient(145deg, #f26b4f 0%, #ff7f50 58%, #f4a07f 100%);
  box-shadow: 0 22px 40px rgba(190, 88, 59, 0.2);
  color: #fffaf7;
}

.invite-hero h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  color: #ffffff;
}

.invite-feature-row {
  margin-top: 2px;
}

.invite-hero .meta-label,
.invite-hero .auth-copy {
  color: rgba(255, 250, 247, 0.9);
}

.invite-hero .auth-feature-pill {
  border-color: rgba(255, 250, 247, 0.2);
  background: rgba(255, 250, 247, 0.14);
  color: #fffaf7;
}

#password-reset-request-form input,
#password-reset-confirm-form input,
#invite-accept-form input {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(95, 184, 184, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 20px rgba(76, 141, 141, 0.08);
}

.signup-plan-field select {
  max-width: 240px;
}

/* Required field indicators */
#signup-form label:has(#signup-account-name) .meta-label::after,
#signup-form label:has(#signup-email) .meta-label::after,
#signup-form label:has(#signup-password) .meta-label::after,
#signup-form label:has(#signup-plan) .meta-label::after {
  content: " *";
  color: #e8562e;
  font-weight: 700;
}

.signup-plan-summary {
  display: grid;
  gap: 14px;
  margin-top: -6px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(242, 107, 79, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 127, 80, 0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(95, 184, 184, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 247, 0.9));
  box-shadow: 0 16px 28px rgba(170, 79, 51, 0.08);
}

.signup-plan-selected {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: -4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(242, 107, 79, 0.12);
  border: 1px solid rgba(242, 107, 79, 0.16);
  color: var(--ink);
}

@media (max-width: 860px) {
  .signup-hero-grid {
    grid-template-columns: 1fr;
  }

  .signup-hero h3 {
    max-width: none;
  }

  .signup-plan-summary__top {
    flex-direction: column;
  }

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

.signup-plan-selected__label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.signup-plan-selected strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.signup-plan-selected strong span {
  color: var(--accent-strong);
}

.signup-plan-summary__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.signup-plan-summary__eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.signup-plan-summary__price {
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.signup-plan-summary__name {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
}

.signup-plan-summary__providers {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(95, 184, 184, 0.08);
  border: 1px solid rgba(95, 184, 184, 0.12);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.signup-plan-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.signup-plan-summary__metric {
  display: grid;
  gap: 6px;
  padding: 12px 12px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(242, 107, 79, 0.1);
}

.signup-plan-summary__metric strong {
  color: var(--ink);
  line-height: 1.25;
  font-size: 0.94rem;
}

.signup-plan-summary__metric span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.signup-plan-summary__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
  display: grid;
  gap: 4px;
}

.auth-back-row {
  margin-bottom: -4px;
}

.auth-link-row {
  margin-top: 8px;
  white-space: nowrap;
}

.checklist-next-link-row {
  margin-top: 10px;
  margin-bottom: 0;
}

.text-link-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
}

.auth-copy,
.field-hint,
.auth-validation {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.auth-feature-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(242, 107, 79, 0.16);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(242, 107, 79, 0.08);
}

.field-hint {
  font-size: 0.82rem;
}

.field-hint-attention {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(242, 107, 79, 0.14);
  border: 1px solid rgba(242, 107, 79, 0.22);
  color: #9a412d;
  font-weight: 700;
}

.field-hint-success {
  color: #2c7a73;
  font-weight: 700;
}

#admin-account-owner-hint {
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  line-height: 1.3;
}

.inline-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.inline-status-pill[data-state="error"] {
  background: rgba(242, 107, 79, 0.14);
  border: 1px solid rgba(242, 107, 79, 0.22);
  color: #9a412d;
}

.inline-status-pill[data-state="success"] {
  background: rgba(95, 184, 184, 0.14);
  border: 1px solid rgba(95, 184, 184, 0.22);
  color: #2c7a73;
}

.auth-validation.is-valid {
  color: var(--ok);
}

.auth-validation.is-invalid {
  color: var(--bad);
}

#auth-global-status {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 127, 80, 0.1);
  color: var(--accent-strong);
}

#auth-global-status[data-state="success"] {
  background: rgba(95, 184, 184, 0.12);
  color: #2c7a73;
}

#auth-global-status[data-state="error"] {
  background: rgba(171, 74, 56, 0.12);
  color: #9e3b2d;
}

#app-global-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 127, 80, 0.1);
  color: var(--accent-strong);
}

#app-global-status[data-state="success"] {
  background: rgba(95, 184, 184, 0.12);
  color: #2c7a73;
}

#app-global-status[data-state="error"] {
  background: rgba(171, 74, 56, 0.12);
  color: #9e3b2d;
}

.admin-impersonation-warning {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(171, 74, 56, 0.28);
  background: rgba(171, 74, 56, 0.14);
  color: #8d2f24;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

#auth-panel {
  margin-top: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 127, 80, 0.18), transparent 22%),
    radial-gradient(circle at top right, rgba(95, 184, 184, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 251, 248, 0.95));
  box-shadow: 0 24px 56px rgba(44, 62, 80, 0.08);
}

.profile-form label {
  display: grid;
  gap: 8px;
}

input,
textarea,
.profile-form input,
.profile-form textarea,
.auth-form input,
.auth-form textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus,
.profile-form input:focus,
.profile-form textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(242, 107, 79, 0.32);
  box-shadow:
    0 0 0 4px rgba(242, 107, 79, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.profile-form input:disabled,
.profile-form textarea:disabled,
.auth-form input:disabled,
.auth-form textarea:disabled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  cursor: default;
}

.profile-panel .panel-heading {
  align-items: center;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-title-row h2 {
  margin: 0;
}

.profile-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#profile-summary-copy {
  max-width: none;
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-actions .action-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.collector-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 14px;
}

.collector-actions .action-button {
  min-width: 170px;
  flex: 0 0 auto;
}

.collector-provider-status-top {
  margin-top: 12px;
}

.collector-limit-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(242, 107, 79, 0.12);
  border: 1px solid rgba(242, 107, 79, 0.16);
  color: var(--accent-strong);
  font-size: 0.95rem;
  line-height: 1.4;
}

.collector-limit-note-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.collector-limit-note .compact-action {
  margin-left: auto;
  flex: 0 0 auto;
}

.action-button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffaf4;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(242, 107, 79, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.action-button.alt {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid rgba(44, 62, 80, 0.08);
}

.action-button.teal {
  background: linear-gradient(135deg, var(--teal), #4aa5a5);
  color: #fffaf4;
  box-shadow: 0 10px 24px rgba(95, 184, 184, 0.22);
}

.action-button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(242, 107, 79, 0.24);
}

.action-button.alt:hover {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.96);
}

.action-button.teal:hover {
  box-shadow: 0 14px 28px rgba(95, 184, 184, 0.24);
}

.auth-create-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#profile-edit-button {
  background: rgba(242, 107, 79, 0.95);
  color: #fffaf4;
  border-color: rgba(242, 107, 79, 0.95);
  box-shadow: 0 10px 24px rgba(242, 107, 79, 0.22);
}

#profile-edit-button:hover {
  background: rgba(227, 92, 64, 0.98);
  box-shadow: 0 14px 28px rgba(242, 107, 79, 0.26);
}

#workspace-users-toggle-button {
  background: rgba(95, 184, 184, 0.95);
  color: #fffaf4;
  border-color: rgba(95, 184, 184, 0.95);
  box-shadow: 0 10px 24px rgba(95, 184, 184, 0.22);
}

#workspace-users-toggle-button:hover {
  background: rgba(79, 166, 166, 0.98);
  box-shadow: 0 14px 28px rgba(95, 184, 184, 0.26);
}

#workspace-users-shell {
  margin-top: 16px;
}

.action-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.warning-text {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(242, 107, 79, 0.12);
  color: var(--accent-strong);
  border: 1px solid rgba(242, 107, 79, 0.16);
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label-row .meta-label {
  margin-bottom: 0;
}

.website-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
}

#input-website {
  min-width: 0;
}

#autofill-profile {
  padding: 12px 18px;
  min-width: 0;
  width: auto;
  font-size: 0.9rem;
  line-height: 1.1;
  white-space: nowrap;
  background: rgba(242, 107, 79, 0.95);
  border-color: rgba(242, 107, 79, 0.95);
  color: #fffaf4;
  box-shadow: 0 12px 26px rgba(242, 107, 79, 0.2);
}

#autofill-profile:hover {
  background: rgba(227, 92, 64, 0.98);
  border-color: rgba(227, 92, 64, 0.98);
  box-shadow: 0 14px 28px rgba(242, 107, 79, 0.24);
}

@media (max-width: 720px) {
  .collector-actions {
    flex-wrap: wrap;
    align-items: stretch;
  }

  /* 2×2 meta grid so Run search button is closer to the top */
  .collector-panel {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .collector-actions {
    grid-column: 1 / -1;
    margin-top: 2px;
    margin-bottom: 6px;
  }

  .collector-provider-status-top {
    margin-top: 6px;
  }

  #collector-panel h2 {
    font-size: 1.15rem;
  }

  .field-label-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .website-input-row {
    grid-template-columns: 1fr;
  }
}

.run-status-card {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.run-status-card.is-complete {
  border-color: rgba(242, 107, 79, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 196, 171, 0.38), transparent 34%),
    rgba(255, 250, 247, 0.62);
}

.run-status-card.is-running {
  border-color: rgba(242, 107, 79, 0.2);
  background:
    radial-gradient(circle at top right, rgba(95, 184, 184, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(242, 107, 79, 0.16), transparent 36%),
    rgba(255, 250, 247, 0.68);
  box-shadow:
    0 14px 30px rgba(44, 62, 80, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.run-status-card.is-running #collector-run-status-label {
  color: var(--accent-strong);
}

.source-entry.is-tracked-site {
  border-color: rgba(242, 107, 79, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 196, 171, 0.34), transparent 36%),
    rgba(255, 250, 247, 0.62);
}

.history-insight-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 27, 24, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.history-insight-card.is-tracked-site {
  border-color: rgba(242, 107, 79, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 196, 171, 0.34), transparent 36%),
    rgba(255, 250, 247, 0.62);
}

.history-insight-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.history-insight-header > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  flex: 1;
}

.history-insight-header strong {
  font-size: 1rem;
  line-height: 1.2;
  word-break: break-word;
}

.history-insight-header .summary-pill {
  flex-shrink: 0;
  white-space: nowrap;
}

.history-insight-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.history-insight-metrics span {
  white-space: nowrap;
}

.trend-sparkline {
  height: 28px;
  margin-top: 2px;
}

.trend-sparkline svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trend-sparkline polyline {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-sparkline.coral polyline {
  stroke: #f26b4f;
}

.trend-sparkline.teal polyline {
  stroke: #5fb8b8;
}

.trend-sparkline.slate polyline {
  stroke: #5f6c78;
}

.source-table {
  display: grid;
  gap: 8px;
}

.history-table {
  display: grid;
  gap: 10px;
}

.source-table-header,
.history-table-header,
.source-entry-button {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) 72px 96px 82px 80px;
  align-items: center;
  gap: 14px;
}

.history-table-header,
.history-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) 82px 84px 90px;
  align-items: center;
  gap: 14px;
}

.source-table-header {
  padding: 0 14px 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.history-table-header {
  padding: 0 18px 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audit-table {
  display: grid;
  gap: 6px;
}

.audit-table-header,
.audit-row-summary {
  display: grid;
  grid-template-columns: 168px minmax(140px, 1fr) 180px 130px minmax(0, 2fr);
  gap: 12px;
  align-items: center;
}

.audit-table-header {
  padding: 0 12px 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-row {
  border: 1px solid rgba(31, 27, 24, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  overflow: hidden;
}

.audit-row-summary {
  padding: 9px 12px;
  font-size: 0.88rem;
  cursor: pointer;
  list-style: none;
}

.audit-row-summary::-webkit-details-marker {
  display: none;
}

.audit-date,
.audit-action,
.audit-actor,
.audit-entity,
.audit-details {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-action {
  font-size: 0.9rem;
}

.audit-details-full {
  margin: 0;
  padding: 0 12px 12px;
  border-top: 1px solid rgba(31, 27, 24, 0.08);
  background: rgba(244, 107, 79, 0.06);
  color: var(--ink);
  font-size: 0.81rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.source-domain {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.08rem;
  font-weight: 700;
}

.source-entry {
  padding: 0;
}

.source-entry-button {
  width: 100%;
  padding: 14px;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.source-entry-button:disabled {
  cursor: default;
}

.source-domain-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.source-domain-wrap > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.source-entry-toggle {
  color: #8b5e5b;
  font-size: 0.92rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.source-entry[data-source-entry="expanded"] .source-entry-toggle {
  transform: rotate(180deg);
}

.history-date,
.history-coverage {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-rank,
.source-position,
.source-count,
.source-share,
.history-prompts,
.history-warning-count {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.source-rank,
.source-position,
.source-count,
.source-share,
.history-prompts,
.history-warning-count,
.source-table-header span:not(:first-child),
.history-table-header span:nth-child(3),
.history-table-header span:nth-child(4) {
  text-align: right;
}

.history-table-header span,
.history-entry span,
.history-entry strong {
  text-align: left;
}

.source-list-expand {
  margin-top: 14px;
}

.source-list-expand summary {
  cursor: pointer;
  font-weight: 700;
  color: #7f563a;
  margin-bottom: 12px;
}

.source-searches {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(45, 33, 26, 0.08);
}

.source-search-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.source-search-list li {
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(164, 104, 87, 0.06);
}

.source-search-list li strong {
  font-size: 0.92rem;
}

.source-search-list li span {
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.92rem;
}

.source-search-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  font: inherit;
  line-height: 1.4;
  cursor: pointer;
}

.source-search-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.source-movement {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.run-status-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(242, 107, 79, 0.12);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(242, 107, 79, 0.98);
  box-shadow: 0 0 18px rgba(242, 107, 79, 0.24);
  transition: width 320ms ease;
}

.profile-grid,
.provider-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.split-panel {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.provider-card,
.overview-card,
.prompt-entry,
.action-card,
.roadmap-card,
.region-entry,
.competitor-entry,
.inspector-entry,
.source-entry {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.44)),
    rgba(255, 255, 255, 0.48);
  position: relative;
  overflow: hidden;
}

.provider-card::before,
.overview-card::before,
.prompt-entry::before,
.action-card::before,
.region-entry::before,
.competitor-entry::before,
.inspector-entry::before,
.source-entry::before,
.summary-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(95, 184, 184, 0.95), rgba(95, 184, 184, 0.36));
}

.provider-card strong,
.region-entry strong,
.competitor-entry strong,
.inspector-entry strong,
.prompt-entry strong,
.action-card strong,
.roadmap-card strong {
  font-size: 1.1rem;
}

.provider-card-locked {
  opacity: 0.72;
}

.provider-card-locked::before {
  background: linear-gradient(90deg, rgba(95, 184, 184, 0.38), rgba(95, 184, 184, 0.14));
}

.prompt-entry.is-highlighted {
  border-color: rgba(95, 184, 184, 0.36);
  background:
    radial-gradient(circle at top right, rgba(95, 184, 184, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(242, 107, 79, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 250, 247, 0.9), rgba(255, 241, 235, 0.82));
  box-shadow:
    0 0 0 4px rgba(95, 184, 184, 0.12),
    0 18px 34px rgba(44, 62, 80, 0.12);
}

.history-entry {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.44)),
    rgba(255, 255, 255, 0.48);
}

.admin-compact-entry {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 27, 24, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.admin-compact-title,
.admin-compact-meta,
.admin-compact-subtle {
  margin: 0;
}

.admin-compact-title {
  font-size: 0.96rem;
  line-height: 1.35;
}

.admin-compact-meta,
.admin-compact-subtle {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.admin-compact-subtle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-users-table {
  display: grid;
  gap: 8px;
}

.admin-users-header,
.admin-user-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1.55fr) 110px minmax(170px, 1.15fr) minmax(280px, 1.7fr) 72px;
  gap: 12px;
  align-items: center;
}

.admin-users-header {
  padding: 0 4px 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-user-record {
  border: 1px solid rgba(31, 27, 24, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  overflow: hidden;
}

.admin-user-record summary {
  list-style: none;
}

.admin-user-record summary::-webkit-details-marker {
  display: none;
}

.admin-user-summary {
  padding: 12px 14px;
  cursor: pointer;
}

.admin-user-email,
.admin-user-role,
.admin-user-account,
.admin-user-status {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-role,
.admin-user-account,
.admin-user-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-user-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.admin-user-status.is-active {
  color: #2f8f79;
}

.admin-user-status.is-disabled {
  color: #b55b44;
}

.admin-user-status.is-pending {
  color: #c97a1d;
}

.admin-user-status.is-archived {
  color: var(--muted);
}

.admin-user-view {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.admin-user-record[open] .admin-user-view::after {
  content: " ▲";
}

.admin-user-record:not([open]) .admin-user-view::after {
  content: " ▼";
}

.admin-user-detail {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(31, 27, 24, 0.08);
  background: rgba(242, 107, 79, 0.08);
}

.admin-detail-row.admin-detail-user-actions {
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, auto);
  justify-content: start;
}

.admin-accounts-table {
  display: grid;
  gap: 8px;
}

.admin-accounts-subheading {
  margin: 6px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-accounts-empty {
  margin: 0 4px;
}

.admin-accounts-header,
.admin-account-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1.25fr) 120px 100px 72px 72px;
  gap: 12px;
  align-items: center;
}

.admin-accounts-header {
  padding: 0 4px 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-account-row {
  border: 1px solid rgba(31, 27, 24, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  overflow: hidden;
}

.admin-account-row summary {
  list-style: none;
}

.admin-account-row summary::-webkit-details-marker {
  display: none;
}

.admin-account-summary {
  padding: 12px 14px;
  cursor: pointer;
}

.admin-account-name,
.admin-account-owner,
.admin-account-plan,
.admin-account-status,
.admin-account-usage,
.admin-account-view {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-account-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-account-current {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(95, 184, 184, 0.14);
  color: #2c7a73;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-account-owner,
.admin-account-plan,
.admin-account-status,
.admin-account-usage,
.admin-account-view {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-account-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-account-status.is-active {
  color: #2f8f79;
}

.admin-account-status.is-disabled {
  color: #b55b44;
}

.admin-account-status.is-archived {
  color: var(--muted);
}

.admin-account-status-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.admin-account-view {
  text-align: right;
}

.admin-account-row[open] .admin-account-view::after {
  content: " ▲";
}

.admin-account-row:not([open]) .admin-account-view::after {
  content: " ▼";
}

.admin-account-detail {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(31, 27, 24, 0.08);
  background: rgba(242, 107, 79, 0.08);
}

.admin-account-feedback {
  display: inline-flex;
  align-items: center;
  align-self: start;
  max-width: fit-content;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 12px 24px rgba(242, 107, 79, 0.12);
}

.admin-account-feedback[data-state="success"] {
  background: rgba(242, 107, 79, 0.96);
  color: #fffaf7;
}

.admin-account-feedback[data-state="error"] {
  background: rgba(130, 51, 38, 0.94);
  color: #fff7f3;
}

.admin-account-feedback.is-pending-plan {
  background: rgba(95, 184, 184, 0.16);
  color: #1f6464;
  box-shadow: none;
}

.admin-detail-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.admin-detail-row.admin-detail-actions {
  grid-template-columns: repeat(4, auto);
  justify-content: start;
}

.admin-detail-actions [data-admin-open-account] {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: rgba(242, 107, 79, 0.32);
  color: #fffaf4;
  box-shadow: 0 10px 24px rgba(242, 107, 79, 0.2);
}

.admin-detail-actions [data-admin-open-account]:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(242, 107, 79, 0.24);
}

.compact-action {
  padding: 10px 12px;
  font-size: 0.9rem;
}

.destructive-action[data-confirming="1"] {
  background: rgba(242, 107, 79, 0.18) !important;
  border-color: rgba(242, 107, 79, 0.42) !important;
  color: var(--accent-strong) !important;
}

#admin-create-account-form {
  grid-template-columns: minmax(220px, 1.8fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(220px, 1.5fr) auto;
  align-items: end;
}

#admin-create-account-form .admin-create-account-messages {
  display: grid;
  gap: 8px;
  margin-top: -4px;
}

#admin-create-account-form .auth-copy {
  max-width: 44ch;
}

#admin-create-account-form .form-actions {
  margin-top: 0;
}

#admin-create-account-form #admin-account-owner-hint {
  margin: 0;
}

#admin-create-account-form #admin-account-status {
  margin: 0;
  justify-self: start;
}

.admin-mini-table {
  display: grid;
  gap: 8px;
}

.admin-mini-table-header,
.admin-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 86px 52px minmax(90px, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-mini-table-header {
  padding: 0 4px 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-mini-row {
  padding: 10px 12px;
  border: 1px solid rgba(31, 27, 24, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.admin-mini-name,
.admin-mini-plan,
.admin-mini-runs {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-mini-plan,
.admin-mini-runs {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-mini-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(242, 107, 79, 0.12);
}

.admin-mini-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(242, 107, 79, 0.98);
}

.admin-signups-table .admin-mini-table-header,
.admin-signups-table .admin-signup-row {
  grid-template-columns: minmax(0, 2.3fr) minmax(88px, 0.9fr) minmax(120px, 1fr) 72px;
}

.admin-signup-primary,
.admin-signup-plan,
.admin-signup-date,
.admin-signup-value {
  min-width: 0;
}

.admin-signup-primary,
.admin-signup-plan,
.admin-signup-date,
.admin-signup-value {
  display: grid;
  gap: 1px;
}

.admin-signup-row {
  cursor: pointer;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.admin-signup-row:hover {
  border-color: rgba(242, 107, 79, 0.22);
  background: rgba(255, 255, 255, 0.68);
}

.admin-signup-row:focus-visible {
  outline: 2px solid rgba(242, 107, 79, 0.35);
  outline-offset: 2px;
}

.admin-signup-email {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-signup-subtle {
  color: var(--muted);
  font-size: inherit;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-scheduled-table .admin-mini-table-header,
.admin-scheduled-table .admin-mini-row {
  grid-template-columns: minmax(0, 2.1fr) 72px minmax(132px, 1fr) minmax(132px, 1fr);
}

.admin-scheduled-next,
.admin-scheduled-last {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-failed-table .admin-mini-table-header,
.admin-failed-table .admin-mini-row {
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 0.9fr) minmax(0, 2.2fr);
}

.admin-failed-time,
.admin-failed-error {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-failed-time {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-failed-error {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-jobs-table .admin-mini-table-header,
.admin-jobs-table .admin-mini-row,
.admin-jobs-table .admin-job-summary {
  grid-template-columns: minmax(150px, 1.2fr) 84px 84px minmax(132px, 1fr) minmax(0, 1.9fr) 20px;
}

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

.admin-email-metric-card {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(44, 62, 80, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.admin-email-metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.admin-email-table .admin-mini-table-header,
.admin-email-table .admin-mini-row {
  grid-template-columns: minmax(150px, 1.2fr) minmax(180px, 1.6fr) 84px 96px minmax(132px, 1fr);
}

.admin-email-template-table .admin-mini-table-header,
.admin-email-template-table .admin-mini-row {
  grid-template-columns: minmax(180px, 1.5fr) 84px 72px minmax(132px, 1fr);
}

.admin-email-failure-table .admin-mini-table-header,
.admin-email-failure-table .admin-mini-row {
  grid-template-columns: minmax(140px, 1.1fr) minmax(180px, 1.4fr) minmax(180px, 1.8fr) 92px minmax(132px, 1fr);
}

.admin-email-template,
.admin-email-provider,
.admin-email-time,
.admin-email-reason {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-email-result {
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-email-result.is-success {
  color: #2f8f79;
}

.admin-email-result.is-failed {
  color: #a63a2f;
}

.admin-email-reason {
  max-width: 100%;
}

.admin-email-expand-row summary {
  list-style: none;
  cursor: pointer;
}

.admin-email-expand-row summary::-webkit-details-marker {
  display: none;
}

.admin-email-expand-body {
  margin-top: 6px;
  padding: 10px 12px 12px;
  border: 1px solid rgba(44, 62, 80, 0.08);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-email-expand-body p {
  margin: 0;
}

.admin-email-expand-body p + p {
  margin-top: 6px;
}

.admin-email-retry {
  display: flex;
  align-items: center;
}

.admin-email-retry-copy {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-email-filter-clear {
  padding: 8px 10px;
  font-size: 0.82rem;
}

.admin-job-status,
.admin-job-origin,
.admin-job-updated,
.admin-job-detail {
  font-size: 0.9rem;
}

.admin-job-origin,
.admin-job-updated,
.admin-job-detail {
  color: var(--muted);
}

.admin-job-status {
  font-weight: 700;
  text-transform: capitalize;
}

.admin-job-status.is-running {
  color: #b55b44;
}

.admin-job-status.is-queued {
  color: #5f6c78;
}

.admin-job-status.is-failed {
  color: #a63a2f;
}

.admin-job-origin,
.admin-job-updated,
.admin-job-detail {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-job-record {
  border: 1px solid rgba(31, 27, 24, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  overflow: hidden;
}

.admin-job-record summary {
  list-style: none;
}

.admin-job-record summary::-webkit-details-marker {
  display: none;
}

.admin-job-summary {
  cursor: pointer;
  padding: 10px 12px;
}

.admin-job-summary::after {
  content: "▼";
  grid-column: 6;
  justify-self: end;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-job-record[open] .admin-job-summary::after {
  content: "▲";
}

.admin-job-detail-full {
  margin: 0;
  padding: 12px 12px 0;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.admin-job-detail-panel {
  border-top: 1px solid rgba(31, 27, 24, 0.08);
  background: rgba(242, 107, 79, 0.08);
}

.admin-job-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
}

.attention-entry {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 84px minmax(0, 3fr) auto;
  gap: 12px;
  align-items: center;
}

.attention-entry-name,
.attention-entry-plan {
  margin: 0;
}

.attention-entry-plan {
  white-space: nowrap;
}

.attention-entry-reasons {
  margin: 0;
  line-height: 1.45;
}

.attention-entry-view {
  justify-self: end;
  white-space: nowrap;
}

.history-warning-details {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 27, 24, 0.08);
}

.history-warning-details summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 700;
}

.history-warning-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.inline-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

#admin-audit-filter-form {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(140px, 0.85fr) minmax(180px, 1.1fr) 82px auto auto;
  gap: 10px;
  align-items: end;
}

#admin-audit-filter-form .action-button {
  margin-top: 0;
  white-space: nowrap;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.admin-collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.admin-collapsible-summary::-webkit-details-marker {
  display: none;
}

.admin-collapsible-toggle {
  flex: 0 0 auto;
  font-size: 0;
}

.admin-collapsible-toggle::before {
  font-size: 0.95rem;
  font-weight: 700;
}

.admin-audit-panel:not([open]) .admin-collapsible-toggle::before {
  content: "Show";
  color: var(--teal);
}

.admin-audit-panel[open] .admin-collapsible-toggle::before {
  content: "Hide";
  color: var(--accent-strong);
}

.admin-collapsible-body {
  margin-top: 14px;
}

.summary-block {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
  position: relative;
  overflow: hidden;
}

.summary-value {
  margin: 0;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pill-row,
.checklist-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.summary-pill,
.checklist-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 127, 80, 0.12);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  width: 100%;
  min-height: 36px;
}

.prompt-source-sites {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.prompt-evidence {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.summary-pill.is-tracked-site {
  background: rgba(95, 184, 184, 0.18);
  color: #1f6464;
}

.summary-pill-warning {
  background: rgba(242, 107, 79, 0.18);
  color: #8d341f;
}

.summary-pill-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.summary-pill-button:hover {
  background: rgba(242, 107, 79, 0.18);
}

.plan-change-card {
  display: grid;
  gap: 12px;
}

#plan-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#plan-grid .plan-card-secondary {
  min-height: 100%;
  grid-column: span 2;
}

#plan-grid .plan-card-current {
  grid-column: span 2;
}

#plan-grid .plan-change-card {
  grid-column: span 4;
  align-content: start;
}

.plan-change-pills,
.plan-change-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#plan-change-status {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 127, 80, 0.1);
  color: var(--accent-strong);
}

#plan-change-status[data-state="success"] {
  border: 1px solid rgba(95, 184, 184, 0.28);
  background: linear-gradient(135deg, rgba(95, 184, 184, 0.22), rgba(95, 184, 184, 0.12));
  color: #1f6460;
  box-shadow: 0 14px 32px rgba(95, 184, 184, 0.14);
}

#plan-change-status[data-state="error"] {
  background: rgba(171, 74, 56, 0.12);
  color: #9e3b2d;
}

#billing-panel {
  background:
    linear-gradient(135deg, rgba(242, 107, 79, 0.16), rgba(95, 184, 184, 0.12)),
    rgba(255, 247, 244, 0.92);
  border: 1px solid rgba(242, 107, 79, 0.14);
  box-shadow: 0 22px 48px rgba(132, 82, 64, 0.12);
}

#billing-panel .panel-heading {
  margin-bottom: 6px;
}

#billing-panel .section-label {
  color: var(--accent-strong);
}

#billing-panel .profile-form {
  gap: 18px;
}

#billing-panel .profile-form-actions {
  margin-top: 8px;
  width: 100%;
  justify-content: space-between;
}

.billing-quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(44, 62, 80, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.billing-quick-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.billing-cancel-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(242, 107, 79, 0.26);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(242, 107, 79, 0.96), rgba(255, 127, 80, 0.92));
  color: #fff;
}

.billing-cancel-choice .meta-label,
.billing-cancel-choice .supporting-copy {
  color: inherit;
}

.billing-cancel-choice-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}

.billing-preview {
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(95, 184, 184, 0.22);
  background:
    radial-gradient(circle at top right, rgba(95, 184, 184, 0.14), transparent 32%),
    radial-gradient(circle at bottom left, rgba(242, 107, 79, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.92);
}

.billing-preview-header h3 {
  margin: 0;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.2rem;
}

.billing-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.billing-preview-card {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(44, 62, 80, 0.08);
}

.billing-preview-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.5rem;
  line-height: 1;
}

.billing-preview #billing-preview-summary {
  margin: 14px 0 0;
}

.billing-preview-advisories {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.billing-preview-advisories li + li {
  margin-top: 6px;
}

#billing-portal-button {
  margin-left: auto;
}

.billing-checkout-spinner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 500;
}

.billing-checkout-spinner .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(95, 184, 184, 0.3);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#setup-next-row {
  margin-top: 16px;
}

#next-step-panel {
  display: grid;
  gap: 10px;
}

@media (max-width: 860px) {
  #plan-grid {
    grid-template-columns: 1fr;
  }

  #plan-grid .plan-card-current,
  #plan-grid .plan-change-card,
  #plan-grid .plan-card-secondary {
    grid-column: auto;
  }

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

  .billing-quick-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .billing-quick-actions-buttons {
    justify-content: flex-start;
    width: 100%;
  }

  .billing-cancel-choice-buttons {
    justify-content: flex-start;
    width: 100%;
  }
}


.coverage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  border: 1px solid transparent;
}

.coverage-pill.live {
  background: rgba(255, 127, 80, 0.12);
  border-color: rgba(242, 107, 79, 0.2);
  color: var(--accent-strong);
}

.coverage-pill.example {
  background: rgba(95, 184, 184, 0.12);
  border-color: rgba(95, 184, 184, 0.18);
  color: #367e7e;
}

.coverage-pill.muted {
  background: rgba(44, 62, 80, 0.06);
  border-color: rgba(44, 62, 80, 0.08);
  color: var(--muted);
}

.checklist-pill.complete {
  background: rgba(255, 255, 255, 0.18);
  color: #fffdfa;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.checklist-pill.pending {
  background: rgba(255, 250, 246, 0.92);
  color: var(--accent-strong);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.checklist-pill-button {
  border: 0;
  background: inherit;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: inherit;
  transition: all 0.2s ease;
}

.checklist-pill-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.12);
}

.checklist-pill-button:active {
  transform: translateY(0);
}

.setup-checklist-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at top left, rgba(242, 107, 79, 0.42), transparent 30%),
    radial-gradient(circle at bottom right, rgba(95, 184, 184, 0.18), transparent 36%),
    radial-gradient(circle at 80% 18%, rgba(244, 208, 63, 0.2), transparent 18%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(145deg, #f26b4f 0%, #ff7f50 42%, #f7a17f 100%);
  color: #fffdfa;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 48px rgba(242, 107, 79, 0.16);
}

.setup-checklist-panel::after {
  content: "";
  position: absolute;
  inset: auto -30px -36px auto;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.setup-checklist-panel .meta-label,
.setup-checklist-panel .setup-title,
.setup-checklist-panel .supporting-copy,
.setup-checklist-panel .text-link-button {
  color: #fffdfa;
}

.setup-checklist-panel .meta-label {
  color: rgba(255, 253, 250, 0.82);
}

.setup-checklist-panel .supporting-copy {
  color: rgba(255, 250, 246, 0.9);
}

.setup-checklist-panel .text-link-button {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 250, 246, 0.45);
}

.setup-checklist-panel .text-link-button:hover {
  text-decoration-color: rgba(255, 250, 246, 0.9);
}

#setup-checklist-next-link {
  display: inline-block;
  padding: 10px 18px;
  background: var(--teal);
  color: white;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

#setup-checklist-next-link:hover {
  background: #4a9a9a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(95, 184, 184, 0.3);
  text-decoration: none;
}

#setup-checklist-next-link:active {
  transform: translateY(0);
}

.setup-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.checklist-stack {
  margin-top: 14px;
}

.next-step-card {
  display: grid;
  gap: 8px;
}

.overview-grid.is-onboarding-locked .overview-card:not(:first-child),
.overview-grid.is-onboarding-locked .overview-card {
  opacity: 0.58;
  filter: saturate(0.72);
}

.overview-grid.is-onboarding-locked .overview-card:first-child {
  opacity: 0.84;
}

.split-panel.is-onboarding-locked {
  grid-template-columns: minmax(0, 1fr);
}

.split-panel.is-onboarding-locked #setup-checklist-panel {
  min-width: 0;
}

.trend-panel-copy {
  margin: 4px 0 0;
}

.trend-card {
  display: flex;
  flex-direction: column;
  align-content: start;
  height: 100%;
}

.trend-card .supporting-copy {
  margin-bottom: 0;
}

.trend-bars {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 54px;
  margin-top: auto;
  padding-top: 12px;
}

.trend-bars span {
  flex: 1;
  min-width: 0;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(255, 160, 122, 0.92), rgba(242, 107, 79, 0.84));
}

.trend-bars span.inverse {
  background: linear-gradient(180deg, rgba(95, 184, 184, 0.9), rgba(60, 145, 145, 0.78));
}

.trend-bars.inactive span {
  background: rgba(44, 62, 80, 0.16);
}

#trend-panel.is-onboarding-locked {
  opacity: 0.72;
}

#trend-panel.is-onboarding-locked .panel-heading h2,
#trend-panel.is-onboarding-locked .panel-heading .section-label {
  color: var(--muted);
}

#provider-panel.is-onboarding-locked,
#regional-competitor-panel.is-onboarding-locked,
#actions-panel.is-onboarding-locked,
#sources-panel.is-onboarding-locked,
#prompt-panel.is-onboarding-locked,
#history-panel.is-onboarding-locked {
  opacity: 0.64;
}

#provider-panel.is-onboarding-locked .panel-heading h2,
#provider-panel.is-onboarding-locked .panel-heading .section-label,
#regional-competitor-panel.is-onboarding-locked .panel-heading h2,
#regional-competitor-panel.is-onboarding-locked .panel-heading .section-label,
#actions-panel.is-onboarding-locked .panel-heading h2,
#actions-panel.is-onboarding-locked .panel-heading .section-label,
#sources-panel.is-onboarding-locked .panel-heading h2,
#sources-panel.is-onboarding-locked .panel-heading .section-label,
#prompt-panel.is-onboarding-locked .panel-heading h2,
#prompt-panel.is-onboarding-locked .panel-heading .section-label,
#history-panel.is-onboarding-locked .panel-heading h2,
#history-panel.is-onboarding-locked .panel-heading .section-label {
  color: var(--muted);
}

.next-step-card strong {
  font-size: 1.15rem;
  font-family: Georgia, "Times New Roman", serif;
}

.quick-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.next-step-profile-button {
  background: rgba(95, 184, 184, 0.95);
  border-color: rgba(95, 184, 184, 0.95);
  color: #fffdf9;
  box-shadow: 0 12px 26px rgba(95, 184, 184, 0.2);
}

.next-step-profile-button:hover {
  background: rgba(77, 166, 166, 0.98);
  border-color: rgba(77, 166, 166, 0.98);
  box-shadow: 0 14px 28px rgba(95, 184, 184, 0.24);
}

.overview-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
}

.provider-topline,
.region-topline,
.competitor-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score {
  font-size: 2.2rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}

.score-scale {
  margin-left: 4px;
  font-size: 0.42em;
  color: var(--muted);
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
}

.provider-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 10px 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.provider-metrics span {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
}

.provider-metrics strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.status-pill.good {
  background: rgba(255, 127, 80, 0.12);
  color: var(--accent-strong);
}

.status-pill.watch {
  background: rgba(242, 107, 79, 0.14);
  color: var(--accent-strong);
}

.status-pill.neutral {
  background: rgba(95, 184, 184, 0.14);
  color: #267777;
}

.status-pill.risk {
  background: rgba(138, 45, 38, 0.12);
  color: var(--bad);
}

.metric,
.supporting-copy,
.prompt-snippet,
.reason-list,
.roadmap-copy,
.history-meta,
.inspector-meta {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.required-indicator {
  color: var(--accent-strong);
}

.billing-status-message {
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(242, 107, 79, 0.18);
  background: rgba(242, 107, 79, 0.1);
  color: #8d2e1f;
}

.billing-status-message[data-state="success"] {
  border-color: rgba(95, 184, 184, 0.2);
  background: rgba(95, 184, 184, 0.12);
  color: #225f5f;
}

.billing-status-message[data-state="attention"] {
  border-color: rgba(242, 107, 79, 0.28);
  background: linear-gradient(135deg, rgba(242, 107, 79, 0.22), rgba(242, 107, 79, 0.12));
  color: #7f2417;
  box-shadow: 0 18px 36px rgba(242, 107, 79, 0.12);
}

.list-stack {
  display: grid;
  gap: 14px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(242, 107, 79, 0.08);
  overflow: hidden;
  margin-top: 12px;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.prompt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.prompt-group {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
  overflow: hidden;
}

.prompt-group + .prompt-group {
  margin-top: 14px;
}

.prompt-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.prompt-group summary::-webkit-details-marker {
  display: none;
}

.prompt-group-summary {
  display: grid;
  gap: 4px;
}

.prompt-group-title {
  font-weight: 800;
  color: var(--ink);
}

.prompt-group-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.prompt-group-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(242, 107, 79, 0.16);
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-strong);
  flex: 0 0 auto;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.prompt-group-toggle svg {
  width: 16px;
  height: 16px;
}

.prompt-group[open] .prompt-group-toggle {
  transform: rotate(180deg);
  background: rgba(255, 127, 80, 0.08);
  border-color: rgba(242, 107, 79, 0.24);
}

.prompt-group-list {
  padding: 0 18px 18px;
}

.actions-expand {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
  overflow: hidden;
}

.actions-expand summary {
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--accent-strong);
  font-weight: 700;
}

.actions-expand summary::-webkit-details-marker {
  display: none;
}

.actions-expand-list {
  padding: 0 18px 18px;
}

.prompt-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 127, 80, 0.11);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

a {
  color: var(--teal);
  text-decoration-color: rgba(95, 184, 184, 0.32);
}

a:hover {
  text-decoration-color: currentColor;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(242, 107, 79, 0.35);
  outline-offset: 2px;
}

/* ============================================================
   Section navigation
   ============================================================ */

.section-nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  z-index: 50;
  margin-bottom: 4px;
}

.section-tab {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.14s, color 0.14s;
  white-space: nowrap;
}

.section-tab:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.section-tab.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffaf4;
}

.section-tab svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

@media (max-width: 800px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .brand-logo {
    width: 160px;
  }

  .brand small {
    display: none;
  }

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

  .hero-copy {
    order: 2;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-card {
    order: 1;
  }

  .panel-heading {
    grid-template-columns: 1fr;
  }

  .profile-panel-actions {
    justify-content: flex-start;
  }

  .action-button {
    min-height: 44px;
  }

  .compact-action {
    min-height: 44px;
  }

  .region-picker {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .hero-account-bar {
    align-items: stretch;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .hero,
  .panel {
    border-radius: 20px;
    padding: 18px;
  }

  .auth-form {
    padding: 16px;
  }

  .signup-plan-summary {
    padding: 14px;
  }

  .signup-plan-summary__metric {
    padding: 10px;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  #profile-save-status {
    order: -1;
    width: 100%;
  }

  .source-table-header {
    display: none;
  }

  .history-table-header {
    display: none;
  }

  .audit-table-header {
    display: none;
  }

  .source-entry {
    padding: 0;
  }

  .source-entry-button {
    grid-template-columns: minmax(0, 1fr) repeat(4, auto);
    gap: 10px;
  }

  .history-entry {
    grid-template-columns: minmax(0, 1fr) repeat(4, auto);
    gap: 10px;
  }

  .audit-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-mini-table-header {
    display: none;
  }

  .admin-mini-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-users-header {
    display: none;
  }

  .admin-user-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-user-view {
    text-align: left;
  }

  .admin-accounts-header {
    display: none;
  }

  .admin-account-summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-account-view {
    text-align: left;
  }

  .admin-detail-row,
  .admin-detail-row.admin-detail-actions {
    grid-template-columns: 1fr;
  }

  .attention-entry {
    grid-template-columns: 1fr;
  }

  #admin-audit-filter-form {
    grid-template-columns: 1fr;
  }

  .source-domain {
    white-space: normal;
  }

  .history-date,
  .history-coverage {
    white-space: normal;
  }

  .section-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    border-radius: 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(44, 62, 80, 0.08);
    margin-bottom: 0;
  }

  .section-tab {
    flex-direction: column;
    gap: 3px;
    padding: 6px 4px;
    font-size: 0.72rem;
    min-height: 52px;
  }

  .section-tab svg {
    width: 22px;
    height: 22px;
  }

  #app-main {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .site-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 600px) and (max-width: 860px) {
  .panel-heading {
    gap: 12px;
  }

  .profile-panel-actions {
    gap: 8px;
  }
}

/* Stripe checkout loading modal */
.stripe-loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease-out;
}

.stripe-loading-modal.hidden {
  display: none;
}

.stripe-loading-content {
  background: var(--paper);
  padding: 48px 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(44, 62, 80, 0.16);
  max-width: 380px;
  animation: slideUp 0.3s ease-out;
}

.stripe-loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  border: 4px solid rgba(95, 184, 184, 0.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.stripe-loading-text {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  font-family: "Poppins", "Inter", sans-serif;
}

.stripe-loading-subtext {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Your Prompts Panel Styles */

.prompts-container {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.prompts-list {
  display: grid;
  gap: 16px;
}

.prompt-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.prompt-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.prompt-item-region {
  font-weight: 500;
  color: var(--ink);
}

.prompt-item-edited {
  display: inline-block;
  padding: 2px 6px;
  background: var(--accent-soft);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent-strong);
}

.prompt-text-display {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}

.prompt-text-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

.prompt-text-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(95, 184, 184, 0.1);
}

.prompt-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.prompt-actions .action-button {
  font-size: 0.9rem;
  padding: 8px 16px;
}

.prompts-actions {
  display: grid;
  gap: 12px;
}

.prompts-actions .action-button {
  width: fit-content;
}

.prompts-quota-info {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.prompts-loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.prompts-loading-modal p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
}

.error-message {
  padding: 16px;
  border-left: 4px solid var(--bad);
  background: rgba(217, 93, 57, 0.08);
  border-radius: 8px;
  color: var(--bad);
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}
