/* Solora Onboarding v3: Light-first, frosted glass over silk shader, restrained shadows */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand Blue Accent (Matched to Official Solora Logo #5382ef) */
  --blue-500: #5382ef;
  --blue-600: #3d6ee0;
  --blue-400: #749cf5;
  --blue-border: rgba(83, 130, 239, 0.55);

  /* Radii */
  --radius-xl: 20px;
  --radius-lg: 15px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --radius-full: 999px;

  /* Motion */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f6fbff;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.8);
  --surface-elevated: rgba(248, 250, 252, 0.62);
  --surface-hover: rgba(255, 255, 255, 0.84);
  --border: rgba(15, 23, 42, 0.085);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --icon-color: #64748b;
  --icon-active: #334155;
  --check-idle-border: rgba(100, 116, 139, 0.42);
  --check-idle-icon: #94a3b8;
  --check-idle-bg: rgba(255, 255, 255, 0.65);
  --input-bg: rgba(255, 255, 255, 0.78);
  --blue-surface: rgba(59, 130, 246, 0.08);
  --stepper-bar-bg: rgba(255, 255, 255, 0.62);
  --stepper-bar-border: rgba(15, 23, 42, 0.09);
  --stepper-bar-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px -12px rgba(15, 23, 42, 0.14);
  --step-chip-bg: rgba(255, 255, 255, 0.96);
  --step-chip-border: rgba(15, 23, 42, 0.1);
  --step-chip-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --step-hover-bg: rgba(15, 23, 42, 0.04);
  --step-inactive: #8492a6;
  --step-hover: #475569;
  --step-active: #0f172a;
  --step-done: #475569;
  --step-arrow: rgba(15, 23, 42, 0.22);
  --shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] {
  --bg: #090c12;
  --surface: rgba(15, 20, 32, 0.6);
  --surface-strong: rgba(18, 24, 38, 0.74);
  --surface-elevated: rgba(22, 29, 46, 0.56);
  --surface-hover: rgba(28, 36, 56, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #718096;
  --icon-color: #94a3b8;
  --icon-active: #cbd5e1;
  --check-idle-border: rgba(255, 255, 255, 0.24);
  --check-idle-icon: rgba(255, 255, 255, 0.36);
  --check-idle-bg: rgba(255, 255, 255, 0.04);
  --input-bg: rgba(10, 14, 24, 0.65);
  --blue-surface: rgba(59, 130, 246, 0.13);
  --stepper-bar-bg: rgba(15, 20, 32, 0.58);
  --stepper-bar-border: rgba(255, 255, 255, 0.09);
  --stepper-bar-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px -14px rgba(0, 0, 0, 0.5);
  --step-chip-bg: rgba(255, 255, 255, 0.075);
  --step-chip-border: rgba(255, 255, 255, 0.13);
  --step-chip-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --step-hover-bg: rgba(255, 255, 255, 0.045);
  --step-inactive: #6b7a90;
  --step-hover: #cbd5e1;
  --step-active: #f8fafc;
  --step-done: #a3b1c6;
  --step-arrow: rgba(255, 255, 255, 0.2);
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* Shared Tabler SVG sizing */
.ti-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

[data-ti] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  transition: background-color 220ms var(--ease-smooth), color 220ms var(--ease-smooth);
}

.bg-shader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.ambient-fallback {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 25% 35%, rgba(96, 165, 250, 0.34), transparent 70%),
    radial-gradient(50% 50% at 65% 75%, rgba(59, 130, 246, 0.24), transparent 70%);
}

[data-theme="dark"] .ambient-fallback {
  background:
    radial-gradient(60% 55% at 25% 35%, rgba(30, 64, 175, 0.32), transparent 70%),
    radial-gradient(50% 50% at 65% 75%, rgba(37, 99, 235, 0.22), transparent 70%);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 32px 44px;
  display: flex;
  flex-direction: column;
}

.stage {
  flex: 1;
}

/* Top Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  flex: none;
}

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.brand-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Theme Button */
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun {
  display: none;
}

/* Step Panels */
.step-panel {
  animation: fadeSlideIn 260ms var(--ease-smooth);
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 40px;
}

.env-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.status-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

/* Frosted Module Card */
.module-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-subtle);
  transition:
    border-color 200ms var(--ease-smooth),
    background-color 200ms var(--ease-smooth),
    transform 200ms var(--ease-smooth);
}

.module-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.module-card.is-selected {
  border-color: var(--blue-border);
  background: var(--surface-strong);
}

.card-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px;
  cursor: pointer;
  outline: none;
}

.card-top:focus-visible {
  box-shadow: inset 0 0 0 2px var(--blue-500);
  border-radius: var(--radius-xl);
}

/* Bare, soft-colored icons with no bounding box */
.card-icon {
  flex: none;
  margin-top: 2px;
  color: var(--icon-color);
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms var(--ease-smooth);
}

.module-card.is-selected .card-icon {
  color: var(--icon-active);
}

.card-heading {
  flex: 1;
  min-width: 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.card-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card-heading p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.tag {
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Checkmark Circle (Grey Default -> Highlighted Blue) */
.check-circle {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--check-idle-border);
  background: var(--check-idle-bg);
  color: var(--check-idle-icon);
  font-size: 16px;
  display: grid;
  place-items: center;
  transition:
    background-color 200ms var(--ease-smooth),
    border-color 200ms var(--ease-smooth),
    color 200ms var(--ease-smooth),
    transform 280ms var(--ease-spring);
}

.check-svg {
  width: 15px;
  height: 15px;
}

.module-card:not(.is-selected):hover .check-circle {
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.module-card.is-selected .check-circle,
.check-circle.is-forced-active {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #ffffff;
  transform: scale(1.05);
}

/* Sub-modules List inside Multipart Cards */
.submodules {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 22px 22px;
}

.sub-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  outline: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    opacity 200ms ease;
}

.module-card:not(.is-selected) .sub-item {
  opacity: 0.82;
}

.sub-item:hover {
  border-color: var(--border-strong);
  opacity: 1 !important;
}

.sub-item:focus-visible {
  box-shadow: 0 0 0 2px var(--blue-500);
}

.module-card.is-selected .sub-item.is-checked {
  background: var(--blue-surface);
  border-color: rgba(59, 130, 246, 0.35);
}

.sub-check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--check-idle-border);
  background: var(--check-idle-bg);
  color: var(--check-idle-icon);
  font-size: 13px;
  display: grid;
  place-items: center;
  transition: all 220ms var(--ease-spring);
}

.sub-check .check-svg {
  width: 12px;
  height: 12px;
}

.module-card.is-selected .sub-item.is-checked .sub-check {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #ffffff;
  transform: scale(1.04);
}

.sub-copy {
  flex: 1;
  min-width: 0;
}

.sub-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.sub-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

.extensible-note {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Form & Review Cards */
.form-card,
.review-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-subtle);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.muted {
  color: var(--text-muted);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

input:focus {
  border-color: var(--blue-500);
  background: var(--surface-strong);
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.db-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.db-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.db-hint {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 160ms ease;
}

.seg-btn.is-selected {
  background: var(--blue-500);
  color: #fff;
}

.env-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Review Step */
.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.review-row-top {
  align-items: flex-start;
}

.review-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.review-value {
  font-size: 18px;
  font-weight: 650;
}

.review-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.review-modules-wrap {
  flex: 1;
}

.review-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
}

.review-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--blue-surface);
  border: 1px solid var(--blue-border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

.review-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
}

.callout-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.callout {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.callout strong {
  color: var(--text);
}

.callout code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--blue-600);
}

[data-theme="dark"] .callout code {
  color: var(--blue-400);
}

/* Footer & Flat, Crisp Buttons */
.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
}

.step-footer-narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.footer-hint {
  font-size: 13.5px;
  color: var(--text-muted);
}

.selection-summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--text-secondary);
}

.summary-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--check-idle-border);
  transition: background-color 200ms ease;
}

.summary-dot.has-selection {
  background: var(--blue-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
  background: var(--blue-500);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--blue-600);
}

.btn-ghost {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.link-btn {
  border: none;
  background: transparent;
  color: var(--blue-600);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

[data-theme="dark"] .link-btn {
  color: var(--blue-400);
}

.link-btn:hover {
  text-decoration: underline;
}

.launch-toast {
  max-width: 760px;
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--blue-border);
  animation: fadeSlideIn 240ms var(--ease-smooth);
}

.launch-toast strong {
  display: block;
  font-size: 15px;
}

.launch-toast span {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Bottom Stepper Bar: frosted segmented track, active step raised as a crisp chip */
.bottom-nav {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding-top: 8px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: var(--stepper-bar-bg);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--stepper-bar-border);
  border-radius: var(--radius-full);
  box-shadow: var(--stepper-bar-shadow);
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--step-inactive);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition:
    color 180ms var(--ease-smooth),
    background-color 180ms var(--ease-smooth),
    border-color 180ms var(--ease-smooth),
    box-shadow 180ms var(--ease-smooth);
}

.step-pill:hover {
  color: var(--step-hover);
  background: var(--step-hover-bg);
}

.step-pill:focus-visible {
  border-color: var(--blue-border);
  box-shadow: 0 0 0 3px rgba(83, 130, 239, 0.18);
}

.step-pill.is-done {
  color: var(--step-done);
}

.step-pill.is-active {
  color: var(--step-active);
  font-weight: 600;
  background: var(--step-chip-bg);
  border-color: var(--step-chip-border);
  box-shadow: var(--step-chip-shadow);
}

.step-icon {
  font-size: 16px;
  transition: color 180ms var(--ease-smooth);
}

.step-pill.is-done .step-icon,
.step-pill.is-active .step-icon {
  color: var(--blue-500);
}

[data-theme="dark"] .step-pill.is-done .step-icon,
[data-theme="dark"] .step-pill.is-active .step-icon {
  color: var(--blue-400);
}

.step-arrow {
  font-size: 13px;
  padding: 0 4px;
  color: var(--step-arrow);
  transition: color 180ms var(--ease-smooth);
}

.step-pill.is-done + .step-arrow {
  color: var(--blue-border);
}

@media (max-width: 820px) {
  .shell {
    padding: 20px 16px 32px;
  }
  .topbar {
    margin-bottom: 26px;
  }
  .step-header {
    margin-bottom: 26px;
  }
  .modules-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card-top {
    padding: 20px;
    gap: 14px;
  }
  .submodules {
    gap: 9px;
    padding: 0 16px 16px;
  }
  .extensible-note {
    margin-top: 14px;
  }
  .step-footer {
    flex-wrap: wrap;
    margin-top: 24px;
  }
  .selection-summary {
    width: 100%;
    justify-content: center;
    order: -1;
  }
  .bottom-nav {
    margin-top: 28px;
  }
  .stepper {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    padding: 4px;
  }
  .step-pill {
    height: 34px;
    padding: 0 12px 0 10px;
    font-size: 12.5px;
    gap: 6px;
  }
  .step-arrow {
    padding: 0 1px;
  }
}

/* ================= Production installer additions ================= */
[hidden] { display: none !important; }
.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; }
.field-hint { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.field-error { font-size: 12.5px; line-height: 1.4; color: #c42b2b; }
[data-theme="dark"] .field-error { color: #f87171; }
input.is-invalid { border-color: rgba(220, 38, 38, 0.55); }
input[type="number"], input[type="url"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field-span-2 { grid-column: 1 / -1; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 46px; }
.pass-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}
.pass-eye:hover { color: var(--text); background: var(--surface-hover); }
.pass-eye .icon-eye-off { display: none; }
.pass-eye[aria-pressed="true"] .icon-eye { display: none; }
.pass-eye[aria-pressed="true"] .icon-eye-off { display: inline-flex; }

.segmented-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.segmented-3 .seg-btn { padding: 8px 10px; white-space: nowrap; }
.seg-btn:focus-visible { outline: 2px solid var(--blue-border); outline-offset: 1px; }
.style-preview { display: flex; align-items: center; gap: 10px; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.style-mono {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.style-preview strong { color: var(--text-secondary); font-weight: 600; }

.data-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-elevated); border: 1px solid var(--border); font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.data-note [data-ti] { font-size: 16px; margin-top: 1px; color: var(--icon-color); }
.data-note code { font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.mysql-fields { display: flex; flex-direction: column; gap: 14px; }

.env-note { flex-wrap: wrap; }
.env-note .status-dot { flex: none; }
.env-note.is-warn .status-dot { background: #d97706; box-shadow: none; }
.env-note.is-bad .status-dot { background: #dc2626; box-shadow: none; }
.env-text { flex: 1; min-width: 0; }
.env-checks { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding-left: 20px; }
.env-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--surface-strong); font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.env-chip [data-ti] { font-size: 13px; }
.env-chip.is-ok [data-ti] { color: #16a34a; }
.env-chip.is-missing { color: var(--text-muted); }
.env-chip.is-missing [data-ti] { color: #d97706; }
[data-theme="dark"] .env-chip.is-ok [data-ti] { color: #34c06a; }

.sub-item.is-locked { cursor: default; }
.sub-item.is-locked .sub-desc::after { content: ' Included.'; color: var(--text-muted); }

.form-banner {
  max-width: 760px;
  margin: 0 auto 18px;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.06);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
}
.form-banner [data-ti] { color: #dc2626; font-size: 17px; margin-top: 1px; }
[data-theme="dark"] .form-banner { border-color: rgba(248, 113, 113, 0.24); background: rgba(248, 113, 113, 0.08); }
[data-theme="dark"] .form-banner [data-ti] { color: #f87171; }

.btn[disabled] { opacity: 0.7; cursor: default; }
.btn .btn-spin { width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; animation: obSpin 700ms linear infinite; }
@keyframes obSpin { to { transform: rotate(360deg); } }
.review-row + .review-row { margin-top: 0; }
.review-sub code { font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace; font-size: 12.5px; }

@media (max-width: 820px) {
  .segmented-3 .seg-btn { font-size: 12.5px; padding: 8px 6px; }
  .env-checks { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn .btn-spin { animation-duration: 2s; }
}
/* Step headings take focus for screen readers when a step changes; no visible ring for that. */
.step-header h1:focus { outline: none; }

/* Podcast audio storage limit (inside the Podcast card) */
.sub-storage {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  transition: border-color 180ms ease, opacity 200ms ease;
}
.sub-storage:hover { border-color: var(--border-strong); }
.module-card:not(.is-selected) .sub-storage { opacity: 0.82; }
.module-card:not(.is-selected) .sub-storage:hover { opacity: 1; }
.module-card:not(.is-selected) .quota-seg .seg-btn.is-selected { background: var(--surface-strong); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.quota-seg { width: 100%; }
.quota-seg .seg-btn:not(.is-selected):hover { color: var(--text); background: var(--surface-hover); }
.quota-manual { display: grid; gap: 6px; }
.quota-input { position: relative; width: 100%; max-width: 200px; }
.quota-input input { width: 100%; padding-right: 44px; }
.quota-unit { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 500; color: var(--text-muted); pointer-events: none; }
.sub-storage .quota-help { margin-top: 0; font-size: 13px; color: var(--text-muted); }
