@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --border: #d9dee8;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-2: 0 10px 20px rgba(15, 23, 42, 0.08);
  --accent: #1f3b73;
  --accent-2: #2958a9;
  --accent-soft: rgba(31, 59, 115, 0.10);
  --accent-glow: rgba(31, 59, 115, 0.18);
  --accent-shadow: rgba(41, 88, 169, 0.18);
  --danger: #b91c1c;
}

.theme-dark {
  --bg: #0b1220;
  --surface: #101a2a;
  --surface-2: #0e1625;
  --text: #e8edf6;
  --muted: #9fb2c8;
  --muted-2: #8899b2;
  --border: #1f2a3a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 12px 26px rgba(0, 0, 0, 0.35);
  --accent: #5aa9ff;
  --accent-2: #7cc0ff;
  --accent-soft: rgba(90, 169, 255, 0.14);
  --accent-glow: rgba(90, 169, 255, 0.20);
  --accent-shadow: rgba(90, 169, 255, 0.22);
  --danger: #f87171;
}

.engine-traditional {
  --accent: #1f3b73;
  --accent-2: #2958a9;
  --accent-soft: rgba(31, 59, 115, 0.10);
  --accent-glow: rgba(31, 59, 115, 0.18);
  --accent-shadow: rgba(41, 88, 169, 0.18);
}

.engine-string {
  --accent: #1f6f5a;
  --accent-2: #2c9b7b;
  --accent-soft: rgba(31, 111, 90, 0.10);
  --accent-glow: rgba(31, 111, 90, 0.18);
  --accent-shadow: rgba(44, 155, 123, 0.18);
}

.engine-dynamic {
  --accent: #a14b1f;
  --accent-2: #d16b2b;
  --accent-soft: rgba(161, 75, 31, 0.10);
  --accent-glow: rgba(161, 75, 31, 0.18);
  --accent-shadow: rgba(209, 107, 43, 0.18);
}

.engine-paired {
  --accent: #8b2f2f;
  --accent-2: #d04b4b;
  --accent-soft: rgba(139, 47, 47, 0.12);
  --accent-glow: rgba(139, 47, 47, 0.20);
  --accent-shadow: rgba(208, 75, 75, 0.20);
}

* { box-sizing: border-box; }

.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;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--surface-2));
}

.theme-dark {
  background: linear-gradient(180deg, var(--bg), var(--surface-2));
}

html.theme-dark {
  background: var(--bg);
}

.app {
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px 24px 70px;
  position: relative;
}

.view-stage {
  position: relative;
  margin-top: 16px;
  transition: height 520ms cubic-bezier(0.22, 0.8, 0.24, 1);
  will-change: height;
}

.view-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 520ms cubic-bezier(0.22, 0.8, 0.24, 1),
    transform 520ms cubic-bezier(0.22, 0.8, 0.24, 1);
  will-change: opacity, transform;
}

.view-panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.90)),
    var(--surface);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 28px rgba(15, 23, 42, 0.07);
  position: relative;
  overflow: visible;
  z-index: 30;
}

.theme-dark .topbar {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(15, 23, 42, 0.86)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.24);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 280px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.90)),
    color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 34px rgba(15, 23, 42, 0.10),
    0 14px 32px var(--accent-shadow);
}

.brand-mark svg {
  width: 45px;
  height: 45px;
}

.brand-mark,
.plans-brand-mark,
.auth-mark,
.admin-brand-mark {
  overflow: hidden;
}

.brand-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.theme-dark .brand-mark {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.90)),
    #f8fafc;
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 14px 32px var(--accent-shadow);
}

.logo-bar,
.logo-dot-dark {
  fill: #08265c;
}

.logo-dot-accent {
  fill: var(--accent-2);
}

.is-main .topbar {
  min-height: 116px;
  padding: 24px 28px;
  border: 2px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 20px;
  background:
    linear-gradient(112deg,
      color-mix(in srgb, var(--surface) 94%, var(--accent-soft)),
      color-mix(in srgb, var(--surface-2) 72%, var(--accent-soft)) 58%,
      color-mix(in srgb, var(--surface) 86%, var(--accent-soft))
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 22px 48px var(--accent-shadow),
    var(--shadow-2);
}

.theme-dark.is-main .topbar {
  border-color: rgba(124, 192, 255, 0.18);
  background:
    linear-gradient(112deg,
      color-mix(in srgb, var(--surface) 92%, #020617),
      color-mix(in srgb, var(--surface-2) 78%, var(--accent-soft)) 58%,
      color-mix(in srgb, var(--surface) 86%, #020617)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.34),
    var(--shadow-2);
}

body[data-is-pro="false"].is-main .topbar {
  border-bottom-color: rgba(217, 222, 232, 0.72);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 38px rgba(41, 88, 169, 0.12);
}

.theme-dark[data-is-pro="false"].is-main .topbar {
  border-color: rgba(124, 192, 255, 0.18);
  border-bottom-color: rgba(124, 192, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 42px rgba(0, 0, 0, 0.32);
}

.is-main .title {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.is-main .subtitle {
  margin-top: 7px;
  font-size: 1rem;
}

.is-main .topbar-actions {
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.is-main .topbar-main {
  padding-right: 10px;
}

.theme-dark.is-main .topbar-actions {
  background: transparent;
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 18px;
  padding: 5px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.theme-dark .topbar-actions {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-user-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 26px rgba(15, 23, 42, 0.08);
}

.theme-dark .topbar-user-card {
  border-color: rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.58)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.model-select {
  position: relative;
  z-index: 30;
}

.model-select summary {
  list-style: none;
}

.model-select summary::-webkit-details-marker {
  display: none;
}

.model-select-trigger {
  min-height: 56px;
  min-width: 238px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px 7px 9px;
  border-radius: 15px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
    var(--surface);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 26px rgba(37, 99, 235, 0.10);
}

.theme-dark .model-select-trigger {
  border-color: rgba(124, 192, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.58)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.model-select-current-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.17);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.86)),
    rgba(37, 99, 235, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 16px rgba(37, 99, 235, 0.09);
}

.model-select-current-icon .model-current-logo {
  width: 24px;
  height: 24px;
  display: none;
  object-fit: contain;
}

.model-select.is-model-google-translate .model-select-current-icon .model-current-google,
.model-select.is-model-gpt-5-4-nano .model-select-current-icon .model-current-openai,
.model-select.is-model-gpt-5-4-mini .model-select-current-icon .model-current-openai {
  display: block;
}

.theme-dark .model-select-current-icon .model-current-openai {
  filter: invert(1);
}

.theme-dark .model-select-current-icon {
  color: #8db8ff;
  border-color: rgba(124, 192, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.82)),
    rgba(37, 99, 235, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 16px rgba(0, 0, 0, 0.24);
}

.model-select-copy {
  display: grid;
  gap: 5px;
  line-height: 1;
  min-width: 142px;
  flex: 1 1 auto;
}

.model-select-label {
  color: var(--muted-2);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-select strong {
  color: var(--text);
  font-size: 0.90rem;
  font-weight: 850;
  white-space: nowrap;
}

.model-select-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.model-select[open] .model-select-chevron {
  transform: rotate(180deg);
}

.model-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    var(--surface);
  box-shadow:
    0 22px 44px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.model-select-menu[hidden],
.account-popover[hidden],
.safety-policy-modal[hidden] {
  display: none;
}

.theme-dark .model-select-menu {
  border-color: rgba(124, 192, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96)),
    var(--surface);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.model-select-section {
  padding: 7px 8px 5px;
  color: var(--muted-2);
  font-size: 0.60rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.model-option {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.model-option:hover,
.model-option:focus-visible,
.model-option.is-selected {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  outline: none;
}

.model-option-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 900;
}

.model-option-google {
  background: rgba(255, 255, 255, 0.90);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.theme-dark .model-option-google {
  background: rgba(15, 23, 42, 0.70);
  box-shadow: inset 0 0 0 1px rgba(124, 192, 255, 0.20);
}

.model-option-google svg {
  width: 21px;
  height: 21px;
  display: block;
}

.model-option-openai {
  color: #111827;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.theme-dark .model-option-openai {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.70);
  box-shadow: inset 0 0 0 1px rgba(248, 250, 252, 0.18);
}

.model-option-openai img {
  width: 21px;
  height: 21px;
  display: block;
  object-fit: contain;
}

.theme-dark .model-option-openai img {
  filter: invert(1);
}

.model-option-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
}

.model-option-copy strong {
  font-size: 0.78rem;
  font-weight: 850;
}

.model-option-copy small {
  color: var(--muted);
  font-size: 0.70rem;
  font-weight: 650;
}

.model-option-check {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.model-option.is-selected .model-option-check {
  opacity: 1;
}

.topbar-main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 8px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-dark .topbar-main {
  border-right-color: rgba(148, 163, 184, 0.14);
}

.engine-label {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.engine-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

.theme-dark .engine-switch {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.54);
}

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

.title {
  font-size: 1.58rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  color: var(--text);
}

.subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

@supports (-webkit-background-clip: text) {
  .title {
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 72%, var(--text)), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .theme-dark .title {
    background: linear-gradient(120deg, #eef5ff, #b7d3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.pill-version {
  border-color: rgba(29, 78, 216, 0.25);
  background: var(--accent-soft);
  color: var(--accent);
}

.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  min-width: 132px;
}

.badge-ready {
  min-width: 64px;
  min-height: 28px;
  padding: 6px 10px;
  justify-content: center;
}

.badge-main {
  font-size: 0.8rem;
  line-height: 1.1;
}

.badge-sub {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) 2px minmax(760px, 1.28fr);
  gap: 20px;
  margin-top: 16px;
  align-items: start;
}

.is-main {
  min-height: 100vh;
  overflow: hidden;
}

.is-main .app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-bottom: 24px;
}

.is-main .view-stage {
  flex: 1;
  min-height: 0;
  height: auto !important;
}

.is-main .view-panel {
  min-height: 0;
}

.is-main .layout {
  height: 100%;
  min-height: 0;
  align-items: start;
  position: relative;
}

.is-main.has-results {
  overflow: auto;
}

.is-main.has-results .app {
  height: auto;
  min-height: 100vh;
}

.is-main.has-results .view-stage,
.is-main.has-results .layout.has-results {
  height: auto;
  overflow: visible;
}

.is-main .layout::before {
  content: "";
  position: absolute;
  left: var(--dashboard-divider-x, 50%);
  top: var(--dashboard-divider-top, 0px);
  width: 2px;
  height: var(--dashboard-divider-height, 0px);
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.86);
  pointer-events: none;
}

.theme-dark.is-main .layout::before {
  background: color-mix(in srgb, var(--accent) 24%, var(--border));
}

.card.credits-card {
  margin-top: 12px;
  padding: 18px 18px 20px;
  border: 3px solid rgba(31, 59, 115, 0.50);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  outline: 2px solid rgba(31, 59, 115, 0.45);
  outline-offset: -2px;

  background:
    linear-gradient(120deg,
      rgba(31, 59, 115, 0.16),
      rgba(82, 138, 210, 0.12),
      rgba(31, 111, 90, 0.12),
      rgba(161, 75, 31, 0.12)
    ) 0 0 / 320% 320%,
    radial-gradient(760px 240px at 0% -10%, rgba(31, 59, 115, 0.18), transparent 62%),
    radial-gradient(640px 220px at 100% 0%, rgba(31, 59, 115, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--surface-2)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;

  animation: engineGlow 12s ease-in-out infinite;
  box-shadow:
    inset 0 0 0 1px rgba(31, 59, 115, 0.28),
    0 24px 54px var(--accent-shadow),
    var(--shadow-2);

  transition: transform 180ms ease, box-shadow 180ms ease;
}

.credits-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 32px 72px var(--accent-shadow),
    var(--shadow);
}

.theme-dark .card.credits-card {
  border-color: rgba(90, 169, 255, 0.45);
  outline-color: rgba(90, 169, 255, 0.45);
  background:
    linear-gradient(120deg,
      rgba(90, 169, 255, 0.22),
      rgba(124, 192, 255, 0.18),
      rgba(62, 156, 133, 0.18),
      rgba(209, 107, 43, 0.18)
    ) 0 0 / 320% 320%,
    radial-gradient(760px 240px at 0% -10%, rgba(90, 169, 255, 0.24), transparent 62%),
    radial-gradient(640px 220px at 100% 0%, rgba(90, 169, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #0c1626, #0f1c2f) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;

  animation: engineGlow 12s ease-in-out infinite;
  box-shadow:
    inset 0 0 0 1px rgba(90, 169, 255, 0.28),
    0 24px 54px var(--accent-shadow),
    var(--shadow-2);
}

.credits-card .meta-label {
  color: var(--muted-2);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.credits-card .meta-value {
  margin-top: 2px;
  font-size: 1.05rem;
  font-weight: 700;
}

.credits-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 190px at 100% 0%, rgba(255,255,255,0.40), transparent 66%),
    radial-gradient(520px 180px at 0% 100%, rgba(255,255,255,0.22), transparent 70%);
  opacity: 0.32;
  pointer-events: none;
}

.theme-dark .credits-card::before {
  opacity: 0.14;
}

.is-main .card.credits-card {
  border: 1px solid var(--border);
  outline: none;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-2);
  animation: none;
}

.is-main .card.credits-card::before {
  opacity: 0.06;
}

.theme-dark.is-main .card.credits-card {
  border-color: var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-2);
}

.free-tier-card {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  margin-top: -2px;
  padding: 18px 32px;
  border: 2px solid color-mix(in srgb, #1f3b73 24%, #d9dee8);
  border-top: 1px solid rgba(217, 222, 232, 0.92);
  border-radius: 0 0 20px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 22px 48px rgba(41, 88, 169, 0.12),
    var(--shadow-2);
  color: #0f172a;
}

.free-tier-plan {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 340px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.free-tier-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(31, 59, 115, 0.10);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 253, 0.96));
  color: #1f3b73;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 22px rgba(31, 59, 115, 0.10);
}

.free-tier-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(0.75px, 1px);
}

.free-tier-meter {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
}

.free-tier-pill {
  display: grid;
  grid-template-columns: 34px max-content minmax(180px, 230px) max-content;
  align-items: center;
  gap: 22px;
  width: min(720px, 100%);
  min-height: 54px;
  padding: 8px 24px 8px 18px;
  border: 1px solid rgba(31, 59, 115, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 255, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 30px rgba(31, 59, 115, 0.10);
}

.free-tier-balance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #2563eb;
}

.free-tier-balance-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.28));
}

.free-tier-count {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.free-tier-used-copy {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.free-tier-track {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.38);
}

.free-tier-track span {
  display: block;
  height: 100%;
  min-width: 5px;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6df6, #a8b8ff);
  box-shadow: 0 0 14px rgba(89, 135, 255, 0.34);
}

.free-tier-upgrade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 146px;
  min-height: 48px;
  margin-left: auto;
  border-radius: 13px;
  border-color: rgba(31, 59, 115, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #1f3b73;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 24px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.free-tier-upgrade svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.free-tier-upgrade:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 59, 115, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 28px rgba(31, 59, 115, 0.12);
}

.theme-dark .free-tier-card {
  border-color: rgba(124, 192, 255, 0.18);
  border-top-color: rgba(124, 192, 255, 0.16);
  background: linear-gradient(180deg, #101a2a, #0e1625);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 22px 48px rgba(0, 0, 0, 0.28),
    var(--shadow-2);
}

.theme-dark .free-tier-plan,
.theme-dark .free-tier-count {
  color: var(--text);
}

.theme-dark .free-tier-pill {
  border-color: rgba(124, 192, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(14, 29, 51, 0.94), rgba(9, 20, 36, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(172, 202, 255, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

.theme-dark .free-tier-balance-icon {
  color: #4f83ff;
}

.theme-dark .free-tier-used-copy {
  color: #9fb3cf;
}

.theme-dark .free-tier-track {
  background: rgba(120, 144, 178, 0.28);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(160, 190, 255, 0.08);
}

.theme-dark .free-tier-icon,
.theme-dark .free-tier-upgrade {
  border-color: rgba(124, 192, 255, 0.18);
  background: rgba(15, 23, 42, 0.42);
  color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

body:not(.is-main) .topbar {
  position: relative;
  z-index: 2;
  padding: 0 22px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  justify-content: flex-end;
}

body:not(.is-main) .topbar::before {
  display: none;
}

body:not(.is-main) .brand {
  display: none;
}

body.auth-page:not(.is-main) .brand {
  display: flex;
}

body:not(.is-main) .brand .subtitle {
  display: none;
}

body.auth-page:not(.is-main) .brand .subtitle {
  display: block;
}

body:not(.is-main) .title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--muted-2);
  background: none;
  -webkit-text-fill-color: currentColor;
}

body:not(.is-main) .btn.theme {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(31, 59, 115, 0.16);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 12px 28px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(14px);
}

.theme-dark:not(.is-main) .btn.theme {
  border-color: rgba(124, 192, 255, 0.18);
  background: rgba(8, 15, 27, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

body:not(.is-main) .card.credits-card {
  display: none;
}

body:not(.is-main) .free-tier-card {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .view-stage {
    transition: none;
  }

  .view-panel {
    transition: none;
    transform: none;
  }

  .setup-card,
  .setup-card-head,
  .setup-card-body,
  .setup-card-check,
  .setup-card-chevron {
    transition: none;
    transform: none;
  }
}

.stack {
  display: grid;
  gap: 12px;
  grid-column: 1;
  position: sticky;
  top: 16px;
  align-self: start;
}

.is-main .stack {
  align-content: start;
  align-self: start;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 42px 58px 0;
  margin: 0 -42px -58px 0;
  position: static;
  scrollbar-color: rgba(100, 116, 139, 0.26) transparent;
  scrollbar-gutter: stable;
}

.is-main .stack::-webkit-scrollbar {
  width: 4px;
}

.is-main .stack::-webkit-scrollbar-track {
  background: transparent;
}

.is-main .stack::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.28);
  background-clip: padding-box;
  border-radius: 999px;
}

.is-main .stack::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.42);
  background-clip: padding-box;
}

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
}

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

.card h2 {
  margin: 2px 0 0;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
}

.setup-card {
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.94)),
    var(--surface);
  border-color: color-mix(in srgb, var(--accent) 14%, var(--border));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 26px rgba(15, 23, 42, 0.07);
  transform: translateZ(0);
  transition:
    padding 520ms cubic-bezier(0.18, 0.86, 0.22, 1),
    border-color 420ms ease,
    box-shadow 420ms ease,
    background 420ms ease,
    transform 420ms ease;
}

.setup-card.is-current {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 16px 34px rgba(15, 23, 42, 0.08),
    0 12px 24px var(--accent-shadow);
}

.setup-card.is-collapsed {
  padding-top: 15px;
  padding-bottom: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 8px 18px rgba(15, 23, 42, 0.055);
}

.setup-card-head {
  align-items: center;
  margin-bottom: 14px;
  transition: margin 460ms cubic-bezier(0.18, 0.86, 0.22, 1);
}

.setup-card.is-collapsed .setup-card-head {
  margin-bottom: 0;
}

.setup-card-toggle {
  appearance: none;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px 22px;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  text-align: left;
  cursor: pointer;
}

.setup-card-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 5px;
  border-radius: 12px;
}

.setup-card-step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 245, 249, 0.86)),
    var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
}

.setup-card.is-current .setup-card-step {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.setup-card-title {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.setup-card-title > span:first-child {
  font-size: 1.08rem;
  line-height: 1.16;
  font-weight: 820;
  letter-spacing: -0.01em;
}

.setup-card-summary {
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 680;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-card-check,
.setup-card-chevron {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--muted-2);
}

.setup-card-check {
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.30), transparent 42%),
    linear-gradient(180deg, #34d97b, #12a956);
  color: #ffffff;
  opacity: 0;
  transform: scale(0.86);
  box-shadow:
    0 0 0 1px rgba(18, 169, 86, 0.24),
    0 8px 18px rgba(18, 169, 86, 0.22);
  transition:
    opacity 300ms ease,
    transform 360ms cubic-bezier(0.18, 0.86, 0.22, 1);
}

.setup-card.is-complete .setup-card-check {
  opacity: 1;
  transform: scale(1);
}

.setup-card-check svg,
.setup-card-chevron svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setup-card-chevron {
  transition: transform 460ms cubic-bezier(0.18, 0.86, 0.22, 1);
}

.setup-card.is-collapsed .setup-card-chevron {
  transform: rotate(-90deg);
}

.setup-card-body {
  max-height: 1400px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transform-origin: top;
  transition:
    max-height 620ms cubic-bezier(0.18, 0.86, 0.22, 1),
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.18, 0.86, 0.22, 1);
}

.setup-card.is-collapsed .setup-card-body {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.setup-card.is-collapsed .card-actions {
  display: none;
}

.content-safety-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 15px;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(217, 119, 6, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 247, 237, 0.86), rgba(255, 251, 235, 0.70)),
    color-mix(in srgb, #f59e0b 8%, var(--surface));
  color: #7c4a03;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

.content-safety-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: #d97706;
  background: color-mix(in srgb, #f59e0b 13%, transparent);
}

.content-safety-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-safety-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 0.79rem;
  line-height: 1.38;
  font-weight: 680;
}

.content-safety-copy strong {
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 850;
}

.content-safety-copy span {
  color: color-mix(in srgb, #7c4a03 76%, var(--muted));
}

.content-safety-copy a {
  justify-self: start;
  color: #2563eb;
  font-weight: 850;
  text-decoration: none;
}

.content-safety-copy a::after {
  content: " ↗";
  font-size: 0.82em;
}

.content-safety-copy a:hover {
  text-decoration: underline;
}

.setup-card .card-actions .btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.theme-dark .setup-card.is-current {
  border-color: rgba(124, 192, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 38px rgba(0, 0, 0, 0.30),
    0 12px 28px rgba(90, 169, 255, 0.12);
}

.theme-dark .setup-card {
  background:
    linear-gradient(180deg, rgba(17, 28, 45, 0.92), rgba(13, 23, 38, 0.88)),
    var(--surface);
  border-color: rgba(126, 164, 214, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 12px 26px rgba(0, 0, 0, 0.22);
}

.theme-dark .setup-card.is-collapsed {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.theme-dark .setup-card-check {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.32), transparent 42%),
    linear-gradient(180deg, #46ee8d, #18b965);
  color: #06150d;
  box-shadow:
    0 0 0 1px rgba(94, 234, 156, 0.20),
    0 0 18px rgba(34, 197, 94, 0.32),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.theme-dark .setup-card-step {
  background:
    linear-gradient(180deg, rgba(20, 34, 55, 0.94), rgba(12, 24, 41, 0.90)),
    var(--surface-2);
  border-color: rgba(126, 164, 214, 0.18);
}

.theme-dark .content-safety-notice {
  border-color: rgba(245, 158, 11, 0.26);
  background:
    linear-gradient(180deg, rgba(44, 32, 18, 0.68), rgba(28, 25, 18, 0.54)),
    rgba(245, 158, 11, 0.06);
  color: #facc15;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 22px rgba(0, 0, 0, 0.13);
}

.theme-dark .content-safety-icon {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.13);
}

.theme-dark .content-safety-copy strong {
  color: #fbbf24;
}

.theme-dark .content-safety-copy span {
  color: #c8b69a;
}

.theme-dark .content-safety-copy a {
  color: #77a9ff;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.chip.subtle {
  background: rgba(255, 255, 255, 0.9);
}

.card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

select,
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
input[type="range"] {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
  opacity: 0.8;
}

.select-field {
  appearance: none;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  padding-right: 36px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(31, 59, 115, 0.08);
}

.theme-dark .select-field {
  box-shadow: inset 0 0 0 1px rgba(90, 169, 255, 0.12);
}

input[type="range"] {
  padding: 0;
  border: 0;
  background: transparent;
  height: 28px;
  accent-color: var(--accent);
  appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
  margin-top: -6px;
}

input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}

input[type="range"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(31, 59, 115, 0.18);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(29, 78, 216, 0.5);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
  z-index: 40;
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid rgba(15, 23, 42, 0.10);
}

.theme-dark .account-menu {
  border-left-color: rgba(148, 163, 184, 0.16);
}

.account-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 3px 10px 3px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

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

.theme-dark .account-menu summary {
  background: rgba(15, 23, 42, 0.58);
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.account-name {
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 800;
}

.account-popover {
  position: absolute;
  z-index: 80;
  right: 0;
  top: calc(100% + 10px);
  width: min(260px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-email {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-link,
.account-logout {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
}

.account-link {
  margin-bottom: 8px;
  text-decoration: none;
}

.brand-home {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.account-page .topbar-main,
.account-page .account-menu {
  display: none;
}

.account-page-actions {
  gap: 12px;
}

.account-back {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
}

.account-topbar-logout-form {
  margin: 0;
}

.account-topbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1.5px solid rgba(255, 90, 61, 0.46);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.70);
  color: #f04424;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.account-topbar-logout:hover {
  border-color: rgba(255, 90, 61, 0.72);
  background: rgba(255, 247, 245, 0.94);
  color: #e93b1b;
  transform: translateY(-1px);
}

.account-topbar-logout:focus-visible {
  outline: 3px solid rgba(255, 90, 61, 0.22);
  outline-offset: 3px;
}

.account-topbar-logout svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.account-app {
  padding-bottom: 70px;
}

.account-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  width: 100%;
  min-width: 0;
}

.account-layout > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.account-hero-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
  background:
    radial-gradient(circle at 84% 42%, rgba(255, 255, 255, 0.70) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
    linear-gradient(105deg, color-mix(in srgb, var(--accent-soft) 64%, #ffffff), #f8fbff 62%, color-mix(in srgb, var(--accent-soft) 32%, #ffffff));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 40px rgba(15, 23, 42, 0.08);
}

.theme-dark .account-hero-card {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  background:
    radial-gradient(circle at 84% 42%, rgba(124, 192, 255, 0.16) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
    linear-gradient(105deg, color-mix(in srgb, var(--surface) 88%, var(--accent-soft)), #101827 62%, #0f172a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.18);
}

.account-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-hero-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 18px 34px var(--accent-shadow);
}

.account-hero-copy {
  min-width: 0;
}

.account-identity h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.account-identity p,
.account-card-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.account-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.account-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.account-info-badge.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
}

.account-info-badge.status.active::before {
  background: #20c997;
}

.account-info-badge.status.inactive::before {
  background: var(--danger);
}

.account-info-badge.plan {
  min-width: 124px;
  justify-content: center;
}

.account-info-badge.plan svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.account-info-badge.plan img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.account-info-badge.plan.pro {
  border-color: rgba(224, 173, 58, 0.42);
  background: linear-gradient(180deg, #fff8df, #fff1bf);
  color: #9a6500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(180, 122, 12, 0.10);
}

.account-info-badge.plan.free {
  min-height: 38px;
  padding: 0 18px;
  gap: 10px;
  border-color: rgba(37, 99, 235, 0.64);
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.96), rgba(233, 241, 255, 0.90));
  color: #2c63b8;
  font-size: 0.96rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 22px rgba(37, 99, 235, 0.10);
}

.theme-dark .account-info-badge {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.theme-dark .account-info-badge.plan.pro {
  border-color: rgba(224, 173, 58, 0.42);
  background: linear-gradient(180deg, rgba(120, 82, 16, 0.56), rgba(82, 55, 11, 0.50));
  color: #ffd978;
}

.theme-dark .account-info-badge.plan.free {
  border-color: rgba(72, 128, 238, 0.82);
  background:
    linear-gradient(180deg, rgba(20, 41, 75, 0.82), rgba(13, 29, 54, 0.78));
  color: #9ec7ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(46, 91, 190, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.account-upgrade-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #2958a9;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(31, 59, 115, 0.07);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.account-upgrade-cta:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(31, 59, 115, 0.10);
  transform: translateY(-1px);
}

.account-upgrade-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-dark .account-upgrade-cta {
  border-color: rgba(124, 192, 255, 0.18);
  background: rgba(15, 23, 42, 0.62);
  color: #8ec7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.account-usage-card {
  padding: 28px 34px 32px;
  border-color: #dbe4f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 44px rgba(15, 23, 42, 0.08);
}

.theme-dark .account-usage-card {
  border-color: rgba(126, 164, 214, 0.22);
  background:
    radial-gradient(560px 220px at 86% 8%, rgba(90, 169, 255, 0.12), transparent 62%),
    linear-gradient(180deg, #101b2d, #0d1728);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 38px rgba(0, 0, 0, 0.20);
}

.account-usage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.account-usage-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.12;
  font-weight: 900;
}

.account-usage-card .account-card-copy {
  margin-top: 6px;
  font-size: 1.02rem;
  line-height: 1.28;
}

.account-usage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 126px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #d6e0ed;
  border-radius: 12px;
  background: #ffffff;
  color: #0b3f9e;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 8px 18px rgba(15, 23, 42, 0.04);
}

.account-usage-link.manage {
  border-color: rgba(20, 86, 205, 0.42);
  background: linear-gradient(135deg, #1b5ec9, #102db1);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 28px rgba(20, 86, 205, 0.24);
}

.account-usage-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-dark .account-usage-link {
  border-color: rgba(124, 192, 255, 0.18);
  background: rgba(15, 23, 42, 0.62);
  color: #9ec7ff;
}

.theme-dark .account-usage-link.manage {
  border-color: rgba(90, 169, 255, 0.36);
  background: linear-gradient(135deg, #1b5ec9, #102db1);
  color: #ffffff;
}

.account-usage-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.26fr) minmax(200px, 0.94fr) minmax(220px, 1fr);
  gap: 18px;
}

.account-usage-grid.pro {
  grid-template-columns: minmax(280px, 1.26fr) minmax(210px, 0.94fr) minmax(230px, 1fr);
}

.account-usage-item {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 28px 32px 26px;
  border: 1px solid #dbe6f4;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.theme-dark .account-usage-item {
  border-color: rgba(126, 164, 214, 0.18);
  background: rgba(9, 19, 34, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.account-usage-item span,
.account-usage-item small {
  display: block;
  color: #4f6282;
  font-size: 0.96rem;
  line-height: 1.35;
  font-weight: 650;
}

.theme-dark .account-usage-item span,
.theme-dark .account-usage-item small {
  color: #aebed2;
}

.account-usage-item strong {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1;
  font-weight: 900;
}

.account-usage-item small {
  margin-top: 20px;
}

.account-usage-item.plan {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(260px 180px at 16% 0%, rgba(57, 116, 229, 0.08), transparent 70%),
    linear-gradient(180deg, #f8fbff, #f4f8ff);
}

.plan-state-pack .account-usage-item.plan,
.plan-state-pro .account-usage-item.plan {
  border-color: rgba(52, 105, 206, 0.38);
  background:
    radial-gradient(360px 260px at 86% 24%, rgba(52, 117, 232, 0.42), transparent 68%),
    linear-gradient(135deg, #07153e 0%, #114ca6 62%, #2c72e1 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 28px rgba(29, 78, 216, 0.16);
}

.plan-state-pro .account-usage-item.plan {
  background:
    radial-gradient(360px 260px at 86% 20%, rgba(55, 119, 246, 0.62), transparent 68%),
    radial-gradient(420px 280px at 18% 80%, rgba(0, 36, 99, 0.78), transparent 70%),
    linear-gradient(135deg, #020c32 0%, #093a9f 64%, #2366df 100%);
}

.theme-dark .account-usage-item.plan {
  background:
    radial-gradient(220px 120px at 92% 0%, rgba(90, 169, 255, 0.15), transparent 64%),
    linear-gradient(180deg, rgba(22, 43, 76, 0.82), rgba(13, 29, 54, 0.78));
}

.theme-dark .plan-state-pack .account-usage-item.plan,
.theme-dark .plan-state-pro .account-usage-item.plan {
  background:
    radial-gradient(360px 260px at 86% 24%, rgba(52, 117, 232, 0.42), transparent 68%),
    linear-gradient(135deg, #07153e 0%, #114ca6 62%, #2c72e1 100%);
}

.theme-dark .plan-state-pro .account-usage-item.plan {
  background:
    radial-gradient(360px 260px at 86% 20%, rgba(55, 119, 246, 0.62), transparent 68%),
    radial-gradient(420px 280px at 18% 80%, rgba(0, 36, 99, 0.78), transparent 70%),
    linear-gradient(135deg, #020c32 0%, #093a9f 64%, #2366df 100%);
}

.account-usage-item.plan > div {
  position: relative;
  z-index: 1;
}

.plan-state-pack .account-usage-item.plan span,
.plan-state-pack .account-usage-item.plan strong,
.plan-state-pro .account-usage-item.plan span,
.plan-state-pro .account-usage-item.plan strong {
  color: #ffffff;
}

.account-plan-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid #d6e0ed;
  border-radius: 999px;
  color: #4f6282;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

.account-plan-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-state-pack .account-plan-pill,
.plan-state-pro .account-plan-pill {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(8, 29, 73, 0.40);
  color: #ffffff;
}

.account-plan-stack {
  position: absolute;
  right: 26px;
  bottom: 20px;
  width: 116px;
  height: 98px;
  opacity: 0.34;
}

.account-plan-stack::before,
.account-plan-stack::after {
  content: "";
  position: absolute;
  left: 20px;
  width: 74px;
  height: 44px;
  border: 9px solid rgba(190, 203, 224, 0.28);
  border-radius: 13px;
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.account-plan-stack::before {
  top: 8px;
}

.account-plan-stack::after {
  top: 34px;
  box-shadow: 0 26px 0 rgba(190, 203, 224, 0.16);
}

.plan-state-pack .account-plan-stack,
.plan-state-pro .account-plan-stack {
  opacity: 0.24;
}

.plan-state-pack .account-plan-stack::before,
.plan-state-pack .account-plan-stack::after,
.plan-state-pro .account-plan-stack::before,
.plan-state-pro .account-plan-stack::after {
  border-color: rgba(151, 190, 255, 0.28);
}

.account-usage-item.usage,
.account-usage-item.credits {
  display: flex;
  flex-direction: column;
}

.account-usage-dots {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.account-usage-dots i {
  display: block;
  width: 24px;
  height: 24px;
  border: 2px solid #dce5f1;
  border-radius: 999px;
  background: #fbfdff;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.04);
}

.account-usage-dots i.used {
  border-color: rgba(23, 99, 204, 0.26);
  background: #1462c4;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.26), 0 6px 14px rgba(20, 98, 196, 0.18);
}

.account-infinity-mark {
  display: grid;
  place-items: center;
  width: 142px;
  height: 68px;
  margin: 14px auto 0;
  color: #3a79ea;
  filter: drop-shadow(0 16px 18px rgba(37, 99, 235, 0.24));
}

.account-infinity-mark svg {
  width: 100%;
  height: 100%;
}

.account-infinity-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 13;
  stroke-linecap: round;
}

.account-usage-check {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: auto !important;
  color: #0b54c4 !important;
  font-size: 0.92rem !important;
}

.account-usage-check svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-credit-status {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  color: #4f6282;
  font-size: 0.98rem;
  font-weight: 650;
}

.account-credit-status > span:last-child {
  color: #4f6282;
  font-size: 0.98rem;
  font-weight: 650;
}

.account-credit-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: #36cfa2;
  vertical-align: middle;
}

.account-credit-icon {
  display: grid !important;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #edf3ff;
  color: #10244a;
}

.account-credit-icon.available {
  background: #d9f8e8;
  color: #0f3d2e;
}

.account-credit-icon.diamond {
  position: relative;
  background: #e9f1ff;
  color: #1462c4;
}

.account-credit-icon.diamond::before,
.account-credit-icon.diamond::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #72a5ff;
  transform: rotate(45deg);
}

.account-credit-icon.diamond::before {
  top: 12px;
  right: 11px;
}

.account-credit-icon.diamond::after {
  top: 22px;
  right: 2px;
  width: 5px;
  height: 5px;
}

.account-credit-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-credit-icon.available svg {
  width: 23px;
  height: 23px;
}

.account-credit-status.pro > span:last-child {
  color: #0b54c4;
  line-height: 1.5;
}

.theme-dark .account-usage-dots i {
  border-color: rgba(126, 164, 214, 0.22);
  background: rgba(7, 18, 35, 0.86);
}

.theme-dark .account-credit-status,
.theme-dark .account-credit-status > span:last-child,
.theme-dark .account-credit-status.pro > span:last-child {
  color: #d8e5f7;
}

.theme-dark .account-credit-icon {
  background: rgba(126, 164, 214, 0.15);
  color: #9ec7ff;
}

.account-usage-card {
  padding: 28px 40px;
  overflow: hidden;
  border-color: #d9e4f2;
  border-radius: 17px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 15px 32px rgba(15, 23, 42, 0.06);
}

.plan-state-pack.account-usage-card {
  border-color: #cfe5dd;
  background:
    radial-gradient(460px 150px at 8% 50%, rgba(218, 249, 235, 0.42), transparent 74%),
    #ffffff;
}

.plan-state-pro.account-usage-card {
  border-color: rgba(37, 99, 235, 0.26);
  background:
    radial-gradient(520px 170px at 16% 42%, rgba(225, 235, 255, 0.72), transparent 70%),
    radial-gradient(380px 150px at 76% 46%, rgba(250, 210, 99, 0.18), transparent 70%),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 16px 36px rgba(29, 78, 216, 0.10);
}

.theme-dark .account-usage-card {
  border-color: rgba(126, 164, 214, 0.22);
  background: #101b2d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 38px rgba(0, 0, 0, 0.20);
}

.theme-dark .plan-state-pack.account-usage-card {
  border-color: rgba(96, 212, 165, 0.24);
  background:
    radial-gradient(420px 150px at 8% 50%, rgba(40, 143, 105, 0.17), transparent 72%),
    #101b2d;
}

.theme-dark .plan-state-pro.account-usage-card {
  border-color: rgba(105, 158, 255, 0.32);
  background:
    radial-gradient(520px 170px at 16% 42%, rgba(37, 99, 235, 0.22), transparent 72%),
    radial-gradient(380px 150px at 76% 46%, rgba(244, 191, 72, 0.14), transparent 70%),
    #101b2d;
}

.account-usage-strip {
  display: grid;
  grid-template-columns:
    minmax(0, 0.92fr)
    1px
    minmax(0, 1fr)
    1px
    minmax(0, 1.02fr)
    1px
    minmax(0, 0.82fr)
    minmax(182px, auto);
  align-items: center;
  gap: clamp(20px, 1.9vw, 32px);
  min-height: 60px;
}

.account-usage-segment {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.account-usage-segment > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
}

.account-usage-title-segment {
  gap: 20px;
}

.account-usage-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border: 1.5px solid #cadbf4;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0 42%, #f6f9ff 78%, #eef5ff 100%);
  color: #1c5fc6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 8px 16px rgba(31, 77, 150, 0.055);
}

.account-usage-icon.plan-icon {
  width: 60px;
  height: 60px;
  margin-top: 0;
  border-color: #cadbf4;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0 42%, #f6f9ff 78%, #eef5ff 100%);
  color: #1c5fc6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 8px 16px rgba(31, 77, 150, 0.055);
}

.account-usage-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-usage-icon.plan-icon svg {
  width: 29px;
  height: 29px;
}

.plan-state-pack .account-usage-icon.plan-icon,
.plan-state-pack .account-usage-metric.current-plan .account-usage-icon {
  border-color: rgba(33, 139, 101, 0.30);
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0 42%, #eefcf6 78%, #def8ee 100%);
  color: #147a59;
}

.plan-state-pro .account-usage-icon.plan-icon,
.plan-state-pro .account-usage-metric.current-plan .account-usage-icon {
  border-color: rgba(37, 99, 235, 0.38);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.52), transparent 32%),
    linear-gradient(135deg, #1c5fc6, #0f2fa9 72%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 12px 22px rgba(37, 99, 235, 0.22);
}

.plan-state-pro .account-usage-metric.credits .account-usage-icon {
  border-color: rgba(203, 152, 29, 0.40);
  background:
    radial-gradient(circle at 50% 42%, #ffffff 0 36%, #fff8df 76%, #ffefaa 100%);
  color: #95620f;
}

.account-usage-segment h2 {
  margin: 0;
  color: #071226;
  font-size: 1.12rem;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.account-usage-segment div > span {
  display: block;
  color: #52647e;
  font-size: 0.94rem;
  line-height: 1.1;
  font-weight: 700;
}

.account-usage-segment strong {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: #071226;
  font-size: 1.18rem;
  line-height: 1;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-state-pro .account-usage-segment strong {
  color: #061640;
}

.account-usage-divider {
  display: block;
  width: 1px;
  height: 68px;
  background: #cddae9;
}

.plan-state-pro .account-usage-divider {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.14), rgba(191, 145, 32, 0.35), rgba(37, 99, 235, 0.14));
}

.account-usage-strip .account-usage-link {
  min-width: 160px;
  max-width: 100%;
  min-height: 60px;
  padding: 0 24px;
  border: 1.5px solid #d6e1ef;
  border-radius: 12px;
  color: #0f4daa;
  font-size: 0.96rem;
  font-weight: 900;
  justify-self: end;
  align-self: center;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(15, 23, 42, 0.04);
}

.plan-state-pack .account-usage-strip .account-usage-link {
  border-color: rgba(33, 139, 101, 0.28);
  color: #116a4f;
}

.account-usage-strip .account-usage-link.manage {
  min-width: 172px;
  border-color: rgba(37, 99, 235, 0.44);
  background:
    linear-gradient(135deg, #1c5fc6, #0f2fa9);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 26px rgba(37, 99, 235, 0.20);
}

.account-usage-strip .account-usage-link svg {
  width: 18px;
  height: 18px;
}

.theme-dark .account-usage-icon {
  border-color: rgba(126, 164, 214, 0.24);
  background: rgba(8, 17, 31, 0.72);
  color: #8ec7ff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.theme-dark .plan-state-pack .account-usage-icon.plan-icon,
.theme-dark .plan-state-pack .account-usage-metric.current-plan .account-usage-icon {
  border-color: rgba(96, 212, 165, 0.30);
  background: rgba(26, 88, 67, 0.36);
  color: #9af0cb;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.theme-dark .plan-state-pro .account-usage-icon.plan-icon,
.theme-dark .plan-state-pro .account-usage-metric.current-plan .account-usage-icon {
  border-color: rgba(90, 169, 255, 0.36);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #1b5ec9, #102db1);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.20);
}

.theme-dark .plan-state-pro .account-usage-metric.credits .account-usage-icon {
  border-color: rgba(244, 191, 72, 0.34);
  background: rgba(117, 82, 8, 0.28);
  color: #ffd66d;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.theme-dark .account-usage-segment div > span {
  color: #aebed2;
}

.theme-dark .account-usage-segment h2,
.theme-dark .account-usage-segment strong,
.theme-dark .plan-state-pro .account-usage-segment strong {
  color: #e8edf6;
}

.theme-dark .account-usage-divider,
.theme-dark .plan-state-pro .account-usage-divider {
  background: rgba(126, 164, 214, 0.18);
}

@media (max-width: 1180px) {
  .account-usage-card {
    padding: 20px;
  }

  .account-usage-strip {
    grid-template-columns:
      minmax(170px, 0.78fr)
      1px
      minmax(175px, 1fr)
      1px
      minmax(190px, 1fr)
      1px
      minmax(165px, 0.78fr)
      auto;
    gap: 18px;
    min-height: 48px;
  }

  .account-usage-icon,
  .account-usage-icon.plan-icon {
    width: 44px;
    height: 44px;
  }

  .account-usage-icon svg,
  .account-usage-icon.plan-icon svg {
    width: 23px;
    height: 23px;
  }

  .account-usage-segment {
    gap: 14px;
  }

  .account-usage-segment h2 {
    font-size: 0.95rem;
  }

  .account-usage-segment div > span {
    font-size: 0.82rem;
  }

  .account-usage-segment strong {
    font-size: 0.95rem;
  }

  .account-usage-strip .account-usage-link {
    min-width: 116px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.88rem;
  }
}

@media (max-width: 760px) {
  .account-usage-card {
    padding: 18px;
  }

  .account-usage-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .account-usage-divider {
    width: 100%;
    height: 1px;
  }

  .account-usage-strip .account-usage-link {
    width: 100%;
    justify-self: stretch;
  }
}

.admin-page {
  min-height: 100vh;
  background: #f8fbff;
  color: #12203a;
}

.theme-dark.admin-page {
  background: #081120;
  color: #e8edf6;
}

.admin-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  background: #f8fbff;
}

.theme-dark .admin-shell {
  background: #081120;
}

.admin-sidebar {
  padding: 18px 14px;
  border-right: 1px solid #dce5f0;
  background: rgba(255, 255, 255, 0.88);
}

.theme-dark .admin-sidebar {
  border-right-color: rgba(124, 192, 255, 0.14);
  background: rgba(8, 15, 28, 0.92);
}

.admin-brand,
.admin-nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.admin-brand {
  gap: 12px;
  margin-bottom: 34px;
  padding: 0 10px;
  color: #0f2b62;
  font-size: 1.02rem;
  font-weight: 900;
}

.theme-dark .admin-brand {
  color: #e8edf6;
}

.admin-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dfe8f4;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(31, 59, 115, 0.08);
}

.theme-dark .admin-brand-mark {
  border-color: rgba(124, 192, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 241, 250, 0.94)),
    #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 28px rgba(0, 0, 0, 0.28),
    0 10px 24px rgba(45, 101, 190, 0.16);
}

.admin-brand-mark svg {
  width: 30px;
  height: 30px;
}

.admin-nav {
  display: grid;
  gap: 12px;
}

.admin-nav a {
  gap: 12px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  color: #66758d;
  font-size: 0.88rem;
  font-weight: 850;
}

.admin-nav a.active {
  background: #eaf2ff;
  color: #2459b8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.theme-dark .admin-nav a {
  color: #9fb0c7;
}

.theme-dark .admin-nav a.active {
  background: rgba(59, 130, 246, 0.16);
  color: #9dccff;
}

.admin-nav svg,
.admin-metric-icon svg,
.admin-status-icon svg,
.admin-user-avatar.action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-main {
  padding: 14px 28px 22px 18px;
}

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

.admin-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: 1.72rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.admin-header p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 800;
}

.theme-dark .admin-header h1 {
  color: #f2f7ff;
}

.theme-dark .admin-header p {
  color: #9fb0c7;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-date-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.theme-dark .admin-date-pill {
  border-color: rgba(124, 192, 255, 0.16);
  background: rgba(12, 23, 40, 0.9);
  color: #e8edf6;
}

.admin-theme {
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.admin-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1f3b73, #2958a9);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-metric-card,
.admin-panel,
.admin-status-card {
  border: 1px solid #dfe8f4;
  border-radius: 13px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 28px rgba(15, 23, 42, 0.045);
}

.theme-dark .admin-metric-card,
.theme-dark .admin-panel,
.theme-dark .admin-status-card {
  border-color: rgba(124, 192, 255, 0.15);
  background: rgba(15, 25, 42, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 32px rgba(0, 0, 0, 0.22);
}

.admin-metric-card {
  min-height: 92px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.admin-metric-icon,
.admin-status-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #edf4ff;
  color: #3164bf;
  flex: 0 0 auto;
}

.admin-metric-card.gold .admin-metric-icon {
  background: #fff5df;
  color: #d48b17;
}

.admin-metric-card span,
.admin-panel-head span,
.admin-list-row small,
.admin-user-stats span {
  color: #718096;
  font-size: 0.72rem;
  font-weight: 850;
}

.admin-metric-card strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 1.55rem;
  line-height: 1;
}

.admin-metric-note {
  display: block;
  margin-top: 7px;
  color: #718096;
  font-size: 0.67rem;
  line-height: 1;
  font-weight: 850;
}

.admin-metric-note.good {
  color: #139c79;
}

.theme-dark .admin-metric-card strong,
.theme-dark .admin-user-stats strong,
.theme-dark .admin-status-card strong {
  color: #f2f7ff;
}

.admin-overview-grid,
.admin-users-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 14px;
}

.admin-panel {
  min-height: 276px;
  padding: 20px 22px;
}

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

.admin-panel-head h2 {
  margin: 0;
  color: #1e293b;
  font-size: 1.05rem;
}

.theme-dark .admin-panel-head h2 {
  color: #e8edf6;
}

.admin-panel-head a {
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #f3f7fe;
  color: #2459b8;
  font-size: 0.7rem;
  font-weight: 850;
  text-decoration: none;
}

.theme-dark .admin-panel-head a {
  background: rgba(59, 130, 246, 0.12);
  color: #9dccff;
}

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

.admin-list-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  color: #263246;
  text-decoration: none;
}

.admin-list-row.selected {
  padding: 9px;
  margin: -9px;
  border-radius: 12px;
  background: #edf3ff;
}

.theme-dark .admin-list-row {
  color: #d6e2f2;
}

.theme-dark .admin-list-row.selected {
  background: rgba(59, 130, 246, 0.14);
}

.admin-list-row strong {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 0.86rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-row span small {
  display: block;
  margin-top: 5px;
}

.admin-list-row em {
  min-width: 40px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #def8ef;
  color: #0f8a71;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.admin-list-row em.pro {
  background: #eaf2ff;
  color: #2459b8;
}

.support-admin-row {
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(122, 149, 192, 0.16);
}

.support-admin-row:last-child {
  border-bottom: 0;
}

.support-admin-message {
  max-width: 820px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-user-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background: #dbe8ff;
  color: #1f3b73;
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-user-avatar.action {
  background: #edf4ff;
  color: #3164bf;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.admin-status-card {
  min-height: 104px;
  padding: 20px 18px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.admin-status-card.ok .admin-status-icon {
  background: #dff8ef;
  color: #18a985;
}

.admin-status-card.warn .admin-status-icon {
  background: #fff2dc;
  color: #d48b17;
}

.admin-status-card.purple .admin-status-icon {
  background: #eeeaff;
  color: #6d5dfc;
}

.admin-status-card strong {
  display: block;
  color: #1e293b;
  font-size: 0.9rem;
}

.admin-status-card small,
.admin-status-card em {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.admin-status-card em {
  color: #139c79;
}

.admin-status-card.warn em {
  color: #d4741d;
}

.admin-status-card:not(.ok):not(.warn) em {
  color: #64748b;
}

.admin-search,
.admin-inline-form {
  display: flex;
  gap: 10px;
}

.admin-search {
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-search input[type="search"],
.admin-inline-form input {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f8fbff;
  color: #0f172a;
  font: inherit;
  font-weight: 750;
}

.admin-search input[type="search"] {
  flex: 1 0 100%;
}

.admin-search .btn {
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
}

.admin-plan-filter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  padding: 4px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.admin-plan-filter label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border-radius: 9px;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.admin-plan-filter label.active {
  background: #eaf2ff;
  color: #2459b8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.10);
}

.admin-plan-filter input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.theme-dark .admin-search input[type="search"],
.theme-dark .admin-inline-form input,
.theme-dark .admin-user-stats div,
.theme-dark .admin-metric-icon,
.theme-dark .admin-status-icon {
  border-color: rgba(124, 192, 255, 0.14);
  background: rgba(8, 17, 31, 0.88);
  color: #f2f7ff;
}

.theme-dark .admin-plan-filter {
  border-color: rgba(124, 192, 255, 0.14);
  background: rgba(8, 17, 31, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.theme-dark .admin-plan-filter label {
  color: #9fb1c9;
}

.theme-dark .admin-plan-filter label.active {
  background: rgba(37, 99, 235, 0.20);
  color: #b9d5ff;
  box-shadow: inset 0 0 0 1px rgba(124, 192, 255, 0.18);
}

.admin-users-panel {
  min-height: 560px;
}

.admin-users-layout {
  grid-template-columns: minmax(260px, 0.42fr) minmax(700px, 1fr);
  gap: 24px;
}

.admin-user-detail {
  align-self: start;
}

.admin-user-detail-card {
  align-self: start;
  min-height: 0;
  padding: 28px 34px 24px;
  overflow: hidden;
  border: 1px solid #d9e4f2;
  border-radius: 12px;
  background:
    radial-gradient(560px 260px at 18% 0%, rgba(41, 104, 218, 0.08), transparent 62%),
    linear-gradient(145deg, #ffffff 0%, #fbfdff 55%, #f7faff 100%);
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 22px 52px rgba(72, 100, 145, 0.16);
}

.theme-dark .admin-user-detail-card {
  border-color: rgba(93, 126, 178, 0.30);
  background:
    radial-gradient(560px 260px at 18% 0%, rgba(41, 104, 218, 0.20), transparent 62%),
    linear-gradient(145deg, #091426 0%, #071120 54%, #081322 100%);
  color: #f3f7ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 22px 52px rgba(6, 16, 34, 0.24);
}

.admin-detail-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.admin-detail-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 24%, rgba(151, 184, 255, 0.45), transparent 36%),
    linear-gradient(135deg, #233f82, #326bdf);
  color: #ffffff;
  font-size: 1.52rem;
  font-weight: 900;
  box-shadow:
    0 0 0 1px rgba(126, 164, 214, 0.20),
    0 16px 32px rgba(31, 91, 210, 0.26);
}

.admin-detail-identity {
  min-width: 0;
}

.admin-detail-identity > div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.admin-detail-identity h2 {
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.6rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-dark .admin-detail-identity h2 {
  color: #f8fbff;
}

.admin-detail-identity p {
  margin: 9px 0 0;
  overflow: hidden;
  color: #64748b;
  font-size: 1rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-dark .admin-detail-identity p {
  color: #a5b1c4;
}

.admin-detail-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(117, 166, 255, 0.34);
  border-radius: 7px;
  background: linear-gradient(180deg, #3a79ea, #2459c8);
  color: #eef5ff;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(38, 103, 226, 0.28);
}

.admin-detail-plan-badge.pro {
  border-color: rgba(245, 183, 77, 0.42);
  background: linear-gradient(180deg, #f2ad39, #c98218);
}

.admin-detail-joined {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}

.theme-dark .admin-detail-joined {
  color: #9ca9bd;
}

.admin-detail-joined svg,
.admin-detail-stats svg,
.admin-detail-control-panel h3 svg,
.admin-dark-action svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-detail-joined svg {
  width: 21px;
  height: 21px;
  color: #7a8aa4;
}

.theme-dark .admin-detail-joined svg {
  color: #7d8798;
}

.admin-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  margin-bottom: 24px;
}

.admin-detail-stats article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 94px;
  padding: 18px 22px;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  background: rgba(248, 251, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.theme-dark .admin-detail-stats article {
  border-color: rgba(110, 140, 185, 0.20);
  background: rgba(4, 13, 27, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.admin-detail-stats svg {
  width: 33px;
  height: 33px;
  color: #3d7cff;
}

.admin-detail-stats span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
}

.theme-dark .admin-detail-stats span {
  color: #8896aa;
}

.admin-detail-stats strong {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.38rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-dark .admin-detail-stats strong {
  color: #f8fbff;
}

.admin-detail-stats article:last-child strong {
  font-size: 0.98rem;
}

.admin-detail-stats article:last-child {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
}

.admin-detail-stats article:last-child svg {
  width: 31px;
  height: 31px;
}

.admin-detail-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.admin-detail-control-panel {
  min-height: 192px;
  padding: 20px 22px;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  background: rgba(248, 251, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.theme-dark .admin-detail-control-panel {
  border-color: rgba(110, 140, 185, 0.20);
  background: rgba(7, 18, 35, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-detail-control-panel h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: #172033;
  font-size: 0.83rem;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-dark .admin-detail-control-panel h3 {
  color: #edf4ff;
}

.admin-detail-control-panel h3 svg {
  width: 25px;
  height: 25px;
  color: #3677f5;
}

.admin-dark-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-dark-action-grid form {
  min-width: 0;
  margin: 0;
}

.admin-dark-action-grid form.wide {
  grid-column: 1 / -1;
}

.admin-dark-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #d6e2f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #172033;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 22px rgba(72, 100, 145, 0.10);
}

.theme-dark .admin-dark-action {
  border-color: rgba(110, 140, 185, 0.23);
  background: rgba(13, 25, 43, 0.86);
  color: #e7edf7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

.admin-dark-action.primary {
  border-color: rgba(65, 128, 255, 0.72);
  background: linear-gradient(135deg, #2762dc, #2f72ee);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 28px rgba(38, 103, 226, 0.27);
}

.admin-dark-action svg {
  width: 23px;
  height: 23px;
  color: #7fa9ff;
  flex: 0 0 auto;
}

.admin-dark-action.primary svg {
  color: #dceaff;
}

.admin-user-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-user-stats div {
  padding: 14px;
  border: 1px solid #e4ebf5;
  border-radius: 12px;
  background: #f8fbff;
}

.admin-user-stats strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
}

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

.admin-action-grid form,
.admin-action-grid button {
  width: 100%;
}

.admin-inline-form {
  grid-column: 1 / -1;
}

.admin-empty,
.admin-coming-soon p {
  margin: 0;
  color: #64748b;
  font-weight: 750;
}

.admin-coming-soon {
  min-height: 360px;
  display: grid;
  place-content: center;
  text-align: center;
}

.admin-coming-soon h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 2rem;
}

.admin-settings-grid {
  margin-top: 0;
}

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

  .admin-sidebar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid #dbe3ef;
  }

  .theme-dark .admin-sidebar {
    border-bottom-color: rgba(124, 192, 255, 0.12);
  }

  .admin-brand {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .admin-nav {
    display: flex;
    flex: 1;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .admin-nav a {
    flex: 0 0 auto;
  }

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

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

@media (max-width: 760px) {
  .admin-sidebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-nav {
    width: 100%;
  }

  .admin-main {
    padding: 24px 16px;
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .admin-header-actions {
    flex-wrap: wrap;
  }

  .admin-metrics,
  .admin-overview-grid,
  .admin-users-layout,
  .admin-user-stats,
  .admin-action-grid,
  .admin-status-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    min-height: 0;
  }

  .admin-list-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .admin-list-row > small,
  .admin-list-row > em {
    grid-column: 2;
    justify-self: start;
  }
}

.plans-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(41, 88, 169, 0.06), transparent 64%),
    linear-gradient(180deg, #f7f9fd, #ffffff);
  color: #07152f;
  overflow: auto;
}

.plans-page.theme-dark {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(90, 169, 255, 0.10), transparent 64%),
    linear-gradient(180deg, #081120, #0b1220);
  color: #e8edf6;
}

.plans-app {
  max-width: 1400px;
  padding: 2px;
}

.is-main .plans-app {
  display: block;
  height: auto;
  min-height: 100vh;
  padding-bottom: 2px;
}

.plans-shell {
  overflow: hidden;
  border: 1px solid rgba(122, 149, 192, 0.48);
  border-radius: 14px;
  background: #ffffff;
  box-shadow:
    0 16px 36px rgba(31, 59, 115, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.theme-dark .plans-shell {
  border-color: rgba(124, 192, 255, 0.20);
  background: #0f1728;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.plans-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  padding: 24px 62px;
  border-bottom: 1px solid rgba(122, 149, 192, 0.22);
  background: rgba(255, 255, 255, 0.96);
}

.theme-dark .plans-topbar {
  border-bottom-color: rgba(124, 192, 255, 0.15);
  background: rgba(15, 23, 40, 0.96);
}

.plans-brand {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: inherit;
  text-decoration: none;
}

.plans-brand-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(122, 149, 192, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f4f7fc);
  box-shadow:
    0 10px 22px rgba(31, 59, 115, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.plans-brand-mark svg {
  width: 42px;
  height: 42px;
}

.plans-brand-name {
  color: #08183a;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.theme-dark .plans-brand-name {
  color: #edf5ff;
}

.plans-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.plans-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(122, 149, 192, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f5f8fe);
  color: #07152f;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(31, 59, 115, 0.08);
}

.theme-dark .plans-back {
  border-color: rgba(124, 192, 255, 0.18);
  background: rgba(15, 23, 42, 0.68);
  color: #e8edf6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.plans-theme.btn.theme {
  width: 54px;
  height: 54px;
  min-height: 54px;
  border-radius: 999px;
  border-color: rgba(122, 149, 192, 0.24);
  background: #ffffff;
  color: #08183a;
  box-shadow: 0 8px 18px rgba(31, 59, 115, 0.08);
}

.theme-dark .plans-theme.btn.theme {
  border-color: rgba(124, 192, 255, 0.18);
  background: rgba(15, 23, 42, 0.68);
  color: #e8edf6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.plans-account.account-menu {
  display: block;
  border-left: 0;
  padding-left: 0;
}

.plans-account.account-menu summary {
  min-height: 54px;
  gap: 10px;
  padding: 6px 16px 6px 7px;
  border-radius: 999px;
  border-color: rgba(122, 149, 192, 0.24);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 59, 115, 0.08);
}

.theme-dark .plans-account.account-menu summary {
  border-color: rgba(124, 192, 255, 0.18);
  background: rgba(15, 23, 42, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.plans-account .account-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.82rem;
}

.plans-account .account-name {
  max-width: 104px;
  color: #08183a;
  font-size: 0.98rem;
}

.theme-dark .plans-account .account-name {
  color: #e8edf6;
}

.plans-account-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #244065;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-dark .plans-account-chevron {
  stroke: #c7d7ea;
}

.plans-main {
  padding: 0 44px 24px;
}

.plans-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  overflow: hidden;
  min-height: 322px;
  margin-top: 0;
  padding: 46px 70px;
  border: 1px solid rgba(122, 149, 192, 0.22);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background:
    radial-gradient(380px 220px at 74% 45%, rgba(41, 88, 169, 0.14), transparent 68%),
    linear-gradient(112deg, #f8fbff 0%, #eef5ff 54%, #f8fbff 100%);
}

.theme-dark .plans-hero {
  border-color: rgba(124, 192, 255, 0.14);
  background:
    radial-gradient(380px 220px at 74% 45%, rgba(90, 169, 255, 0.14), transparent 68%),
    linear-gradient(112deg, #111d31 0%, #0e1a2d 54%, #111d31 100%);
}

.plans-hero-copy {
  position: relative;
  z-index: 3;
}

.plans-hero-copy h1 {
  margin: 0;
  max-width: 640px;
  color: #08183a;
  font-size: 2.45rem;
  line-height: 1.1;
  font-weight: 800;
}

.theme-dark .plans-hero-copy h1 {
  color: #f2f7ff;
}

.plans-hero-copy p {
  margin: 22px 0 0;
  color: #244065;
  font-size: 1.18rem;
  line-height: 1.55;
  font-weight: 500;
}

.theme-dark .plans-hero-copy p {
  color: #b5c5da;
}

.plans-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.plans-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(122, 149, 192, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #244065;
  font-size: 0.86rem;
  font-weight: 800;
}

.theme-dark .plans-trust-row span {
  border-color: rgba(124, 192, 255, 0.16);
  background: rgba(15, 23, 42, 0.56);
  color: #d6e2f2;
}

.plans-trust-row svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #1f3b73;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-dark .plans-trust-row svg {
  stroke: #7cc0ff;
}

.plans-hero-art {
  position: relative;
  align-self: stretch;
  min-height: 322px;
  margin: -46px -70px -46px -46px;
  overflow: hidden;
  isolation: isolate;
}

.plans-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(238, 245, 255, 0.98) 0%, rgba(238, 245, 255, 0.78) 13%, rgba(238, 245, 255, 0.20) 34%, transparent 56%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.86) 0%, transparent 18%, transparent 82%, rgba(248, 251, 255, 0.88) 100%);
}

.theme-dark .plans-hero-art::after {
  background:
    linear-gradient(90deg, rgba(14, 26, 45, 0.78) 0%, rgba(14, 26, 45, 0.30) 14%, rgba(14, 26, 45, 0.04) 34%, transparent 58%),
    linear-gradient(180deg, rgba(17, 29, 49, 0.08) 0%, transparent 18%, transparent 82%, rgba(17, 29, 49, 0.12) 100%);
}

.plans-hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.96;
  filter: drop-shadow(0 18px 26px rgba(31, 59, 115, 0.12));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.plans-hero-image-dark {
  display: none;
}

.theme-dark .plans-hero-image-light {
  display: none;
}

.theme-dark .plans-hero-image-dark {
  display: block;
}

.theme-dark .plans-hero-image {
  opacity: 1;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.28));
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.plans-credit-explainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px solid rgba(31, 59, 115, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 30px rgba(31, 59, 115, 0.08);
}

.plans-credit-explainer span {
  display: block;
  margin-bottom: 4px;
  color: #61708a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plans-credit-explainer strong {
  color: var(--text);
  font-size: 1rem;
}

.plans-credit-explainer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plans-credit-explainer li {
  padding: 9px 12px;
  border: 1px solid rgba(31, 59, 115, 0.12);
  border-radius: 12px;
  background: rgba(248, 250, 255, 0.86);
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
}

.plans-credit-explainer b {
  color: #1f3b73;
}

.theme-dark .plans-credit-explainer {
  border-color: rgba(124, 192, 255, 0.16);
  background: rgba(10, 24, 40, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(0, 0, 0, 0.16);
}

.theme-dark .plans-credit-explainer span,
.theme-dark .plans-credit-explainer li {
  color: #a9bdd8;
}

.theme-dark .plans-credit-explainer strong,
.theme-dark .plans-credit-explainer b {
  color: #f7fbff;
}

.theme-dark .plans-credit-explainer li {
  border-color: rgba(124, 192, 255, 0.14);
  background: rgba(15, 23, 42, 0.46);
}

.plan-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  min-height: 438px;
  padding: 28px 24px 18px;
  border: 1px solid rgba(122, 149, 192, 0.24);
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  box-shadow:
    0 14px 32px rgba(31, 59, 115, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.theme-dark .plan-card {
  border-color: rgba(124, 192, 255, 0.16);
  background: #101b2d;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.plan-card h2 {
  margin: 0;
  min-height: 24px;
  color: #16409a;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
}

.theme-dark .plan-card h2 {
  color: #9fc9ff;
}

.plan-icon {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 66px;
  height: 66px;
  margin-top: 20px;
  border-radius: 999px;
  background: #eff5ff;
  color: #214c9a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 26px rgba(31, 59, 115, 0.10);
}

.plan-icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-icon-image {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.plan-glyph {
  overflow: visible;
  filter: drop-shadow(0 7px 8px rgba(31, 59, 115, 0.18));
}

.plan-glyph-shadow {
  fill: rgba(31, 59, 115, 0.18);
  stroke: none;
}

.plan-glyph-sheen,
.plan-stack-line,
.plan-plus-spark,
.plan-trophy-handle,
.plan-trophy-stem,
.plan-trophy-base,
.plan-trophy-sheen {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-glyph-sheen {
  stroke-width: 2.4;
}

.plan-stack-back {
  stroke: rgba(31, 59, 115, 0.12);
  stroke-width: 1;
}

.plan-stack-top {
  fill: rgba(232, 243, 255, 0.90);
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.4;
}

.plus-top {
  stroke: rgba(255, 255, 255, 0.68);
}

.plan-stack-line {
  stroke: rgba(255, 255, 255, 0.64);
  stroke-width: 2.2;
}

.plan-stack-highlight {
  fill: rgba(255, 255, 255, 0.58);
  stroke: none;
}

.plan-plus-spark {
  stroke: #8d70df;
  stroke-width: 2.8;
}

.plan-trophy-handle {
  stroke: #d99b22;
  stroke-width: 4.2;
}

.plan-trophy-cup {
  stroke: rgba(151, 93, 5, 0.18);
  stroke-width: 1.2;
}

.plan-trophy-sheen {
  stroke: url(#proGoldSheen);
  stroke-width: 3.2;
}

.plan-trophy-stem,
.plan-trophy-base {
  stroke: #b5740d;
  stroke-width: 4;
}

.plan-icon.free {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.96), transparent 36%),
    linear-gradient(180deg, #eef5ff, #f9fbff);
}

.plan-icon.free .free-feather {
  width: 48px;
  height: 48px;
  transform: rotate(-2deg);
  filter: drop-shadow(0 7px 8px rgba(31, 59, 115, 0.20));
}

.plan-icon.pack .pack-coins,
.plan-icon.plus .plus-coins {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 7px 8px rgba(31, 59, 115, 0.18));
}

.plan-icon.plus .plus-coins {
  width: 60px;
  height: 60px;
}

.plan-icon.pack {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.94), transparent 34%),
    linear-gradient(180deg, #e6f2ff, #f4f9ff);
  color: #2d65bd;
}

.plan-glyph-pack {
  transform: scale(1.18);
  transform-origin: center;
}

.plan-icon.plus {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(180deg, #f3edff, #fbf8ff);
  color: #6f59ca;
}

.plan-glyph-plus {
  transform: scale(1.18);
  transform-origin: center;
}

.plan-icon.pro {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(180deg, #fff2cb, #fff8e6);
  color: #c58417;
}

.plan-glyph-pro {
  transform: scale(1.16);
  transform-origin: center;
}

.theme-dark .plan-icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.22);
}

.theme-dark .plan-icon.free {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.10), transparent 36%),
    linear-gradient(180deg, rgba(90, 169, 255, 0.14), rgba(90, 169, 255, 0.06));
}

.theme-dark .plan-icon.pack {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.10), transparent 36%),
    linear-gradient(180deg, rgba(90, 169, 255, 0.16), rgba(90, 169, 255, 0.07));
}

.theme-dark .plan-icon.plus {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.10), transparent 36%),
    linear-gradient(180deg, rgba(141, 112, 223, 0.20), rgba(141, 112, 223, 0.08));
}

.theme-dark .plan-icon.pro {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(246, 207, 99, 0.20), rgba(217, 155, 34, 0.08));
}

.plan-price {
  margin-top: 12px;
  color: #081326;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.theme-dark .plan-price {
  color: #f2f7ff;
}

.plan-price span {
  margin-left: 4px;
  color: #244065;
  font-size: 0.92rem;
  font-weight: 800;
}

.theme-dark .plan-price span,
.theme-dark .plan-included,
.theme-dark .plan-card li {
  color: #b5c5da;
}

.plan-included {
  margin: 14px 0 20px;
  min-height: 18px;
  color: #436188;
  font-size: 0.86rem;
  font-weight: 800;
}

.plan-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px 12px 0;
  border-top: 1px solid rgba(122, 149, 192, 0.18);
  list-style: none;
  text-align: left;
}

.theme-dark .plan-card ul {
  border-top-color: rgba(124, 192, 255, 0.14);
}

.plan-card li {
  position: relative;
  padding-left: 24px;
  color: #244065;
  font-size: 0.83rem;
  font-weight: 700;
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.35em;
  width: 10px;
  height: 6px;
  border-left: 2px solid #1d5db5;
  border-bottom: 2px solid #1d5db5;
  transform: rotate(-45deg);
}

.plan-select {
  align-self: end;
  min-height: 52px;
  margin-top: 22px;
  border: 2px solid rgba(41, 88, 169, 0.24);
  border-radius: 8px;
  background: #ffffff;
  color: #16409a;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(31, 59, 115, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.theme-dark .plan-select {
  border-color: rgba(124, 192, 255, 0.22);
  background: rgba(15, 23, 42, 0.64);
  color: #ddecff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.plan-select:hover,
.plan-select.is-selected {
  transform: translateY(-1px);
  border-color: rgba(41, 88, 169, 0.48);
  box-shadow:
    0 14px 24px rgba(31, 59, 115, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.plan-select.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #1f3b73, #2b66c8);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(31, 59, 115, 0.22);
}

.plan-card.popular {
  border: 2px solid #2a61bf;
  box-shadow:
    0 18px 38px rgba(31, 59, 115, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.theme-dark .plan-card.popular {
  border-color: #4c9aff;
  box-shadow:
    0 20px 40px rgba(36, 107, 204, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.plan-ribbon {
  position: absolute;
  top: -18px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 20px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #1f3b73, #2b66c8);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 10px 20px rgba(31, 59, 115, 0.18);
}

.plan-ribbon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.plans-dashboard-strip {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.3fr;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(122, 149, 192, 0.20);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow:
    0 12px 28px rgba(31, 59, 115, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.plans-dashboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(122, 149, 192, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.70);
}

.plans-dashboard-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: #edf4ff;
  color: #1f3b73;
}

.plans-dashboard-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plans-dashboard-label {
  display: block;
  color: #536b91;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plans-dashboard-item strong {
  display: block;
  margin-top: 3px;
  color: #081326;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
}

.theme-dark .plans-dashboard-strip {
  border-color: rgba(124, 192, 255, 0.16);
  background: linear-gradient(180deg, #101b2d, #0d1728);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.theme-dark .plans-dashboard-item {
  border-color: rgba(124, 192, 255, 0.14);
  background: rgba(15, 23, 42, 0.52);
}

.theme-dark .plans-dashboard-icon {
  background: rgba(124, 192, 255, 0.12);
  color: #7cc0ff;
}

.theme-dark .plans-dashboard-label {
  color: #8fa6c2;
}

.theme-dark .plans-dashboard-item strong {
  color: #e8edf6;
}

.plans-page .plans-app {
  max-width: 1520px;
  padding: 8px;
}

.plans-page.is-main .plans-app {
  padding-bottom: 8px;
}

.plans-page .plans-shell {
  min-height: 0;
  background:
    radial-gradient(760px 360px at 78% 12%, rgba(42, 102, 200, 0.08), transparent 62%),
    #ffffff;
}

.plans-page.theme-dark .plans-shell {
  background:
    radial-gradient(760px 360px at 78% 12%, rgba(74, 163, 255, 0.12), transparent 62%),
    #0b1424;
}

.plans-page .plans-main {
  padding: 0 56px 38px;
}

.plans-page .plans-hero {
  align-items: start;
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, 0.72fr);
  min-height: 282px;
  padding: 24px 78px 8px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  isolation: isolate;
}

.theme-dark .plans-page .plans-hero,
.plans-page.theme-dark .plans-hero {
  background: transparent;
}

.plans-page .plans-hero-copy {
  position: relative;
  z-index: 2;
  transform: translateY(28px);
}

.plans-page .plans-hero-copy h1 {
  max-width: 560px;
  font-size: 2.72rem;
  line-height: 1.04;
  font-weight: 900;
}

.plans-page .plans-hero-copy p {
  max-width: 720px;
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.55;
}

.plans-page .plans-hero-art {
  position: absolute;
  z-index: 1;
  inset: -18px -78px 0 336px;
  width: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  opacity: 0.98;
  filter:
    saturate(1.08)
    drop-shadow(0 26px 58px rgba(30, 112, 255, 0.18));
}

body:not(.theme-dark).plans-page .plans-hero-art {
  opacity: 0.96;
  mix-blend-mode: normal;
}

.plans-page .plans-hero-art::after {
  display: none;
}

.plans-page .plans-hero-image {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center right;
  opacity: 1;
  filter: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.30) 9%, #000 22%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.30) 9%, #000 22%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.plans-page.theme-dark .plans-hero-image {
  filter: none;
}

.plans-credit-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 30px auto 0;
  max-width: 1280px;
  border: 1px solid rgba(122, 149, 192, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 28px rgba(31, 59, 115, 0.07);
  overflow: hidden;
}

.theme-dark .plans-credit-strip {
  border-color: rgba(124, 192, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(17, 31, 52, 0.78), rgba(11, 24, 42, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.credit-strip-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 18px 30px;
  text-align: left;
}

.credit-strip-item + .credit-strip-item {
  border-left: 1px solid rgba(122, 149, 192, 0.20);
}

.theme-dark .credit-strip-item + .credit-strip-item {
  border-left-color: rgba(124, 192, 255, 0.14);
}

.credit-strip-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #1f66c9;
  background: transparent;
  box-shadow: none;
}

.theme-dark .credit-strip-icon {
  color: #8ec9ff;
  background: transparent;
}

.credit-strip-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.credit-strip-image {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(31, 88, 169, 0.16));
}

.theme-dark .credit-strip-image {
  filter:
    drop-shadow(0 0 10px rgba(74, 163, 255, 0.10))
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
}

.credit-strip-item strong,
.credit-strip-item span {
  display: block;
}

.credit-strip-item strong {
  color: #102447;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.18;
}

.theme-dark .credit-strip-item strong {
  color: #f1f7ff;
}

.credit-strip-item span {
  margin-top: 5px;
  color: #5a6c8d;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
}

.theme-dark .credit-strip-item span {
  color: #9fb4d2;
}

.plans-page .plans-grid {
  gap: 24px;
  max-width: 1288px;
  margin: 38px auto 0;
}

.plans-page .plan-card {
  grid-template-rows: auto auto auto auto auto 1fr auto;
  min-height: 500px;
  padding: 30px 24px 24px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
  box-shadow:
    0 14px 32px rgba(31, 59, 115, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.theme-dark .plans-page .plan-card,
.plans-page.theme-dark .plan-card {
  background:
    linear-gradient(180deg, rgba(16, 31, 52, 0.94), rgba(11, 24, 42, 0.88));
}

.plans-page .plan-card.popular {
  border-color: #2c86ff;
  box-shadow:
    0 18px 40px rgba(38, 118, 255, 0.16),
    0 0 0 1px rgba(76, 154, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.theme-dark .plans-page .plan-card.popular,
.plans-page.theme-dark .plan-card.popular {
  border-color: #4c9aff;
  box-shadow:
    0 22px 46px rgba(26, 119, 255, 0.18),
    0 0 0 1px rgba(76, 154, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.plans-page .plan-card h2 {
  min-height: auto;
  color: #173264;
  font-size: 1.12rem;
  line-height: 1.15;
  font-weight: 900;
}

.theme-dark .plans-page .plan-card h2,
.plans-page.theme-dark .plan-card h2 {
  color: #dcecff;
}

.plan-subtitle {
  margin: 8px 0 0;
  color: #5c6f90;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.25;
}

.theme-dark .plan-subtitle {
  color: #a9bad2;
}

.plans-page .plan-icon {
  width: 96px;
  height: 96px;
  margin-top: 18px;
  background: transparent;
  box-shadow: none;
}

.theme-dark .plans-page .plan-icon,
.plans-page.theme-dark .plan-icon {
  background: transparent;
  box-shadow: none;
}

.plans-page .plan-icon-image {
  width: 98px;
  height: 98px;
  filter: drop-shadow(0 14px 22px rgba(31, 59, 115, 0.18));
}

.plans-page .plan-icon.free .free-feather,
.plans-page .plan-icon.pack .pack-coins,
.plans-page .plan-icon.plus .plus-coins,
.plans-page .plan-icon.pro .pro-trophy {
  width: 98px;
  height: 98px;
  transform: scale(1.14);
}

.plans-page .plan-price {
  margin-top: 16px;
  font-size: 2.15rem;
  font-weight: 900;
}

.plans-page .plan-included {
  margin: 12px 0 0;
  min-height: auto;
  color: #36547e;
  font-size: 0.84rem;
  font-weight: 850;
}

.plans-page .plan-value {
  min-height: 17px;
  margin: 4px 0 18px;
  color: #617491;
  font-size: 0.78rem;
  font-weight: 700;
}

.plans-page .plan-card:first-child .plan-value {
  visibility: hidden;
}

.theme-dark .plans-page .plan-included,
.plans-page.theme-dark .plan-included,
.theme-dark .plans-page .plan-value,
.plans-page.theme-dark .plan-value {
  color: #a7bad4;
}

.plans-page .plan-card ul {
  gap: 13px;
  padding: 20px 2px 0;
}

.plans-page .plan-card li {
  font-size: 0.82rem;
  line-height: 1.35;
}

.plans-page .plan-select {
  min-height: 50px;
  margin-top: 24px;
  border-radius: 8px;
}

.plans-page .plan-ribbon {
  top: -15px;
  left: 50%;
  min-height: 30px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plans-page .plan-ribbon svg {
  width: 13px;
  height: 13px;
}

.plans-helper-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 46px;
  color: #526987;
  font-size: 0.83rem;
  font-weight: 650;
}

.plans-helper-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(41, 88, 169, 0.28);
  border-radius: 999px;
  color: #1e67d4;
  font-size: 0.72rem;
  font-weight: 900;
}

.plans-helper-row a {
  color: #1e67d4;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.theme-dark .plans-helper-row {
  color: #a9bdd8;
}

.theme-dark .plans-helper-icon {
  border-color: rgba(124, 192, 255, 0.34);
  color: #7cc0ff;
}

.theme-dark .plans-helper-row a {
  color: #7cc0ff;
}

.plans-page .plans-dashboard-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1340px;
  margin: 28px auto 0;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow:
    0 12px 28px rgba(31, 59, 115, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.plans-page .plans-dashboard-item {
  gap: 11px;
  padding: 10px 12px;
}

.plans-page .plans-dashboard-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 9px;
}

.plans-page .plans-dashboard-icon svg {
  width: 19px;
  height: 19px;
}

.plans-page .plans-dashboard-label {
  font-size: 0.68rem;
}

.plans-page .plans-dashboard-item strong {
  font-size: 0.84rem;
  line-height: 1.2;
}

/* Help & Feedback page */
.support-page {
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(860px 420px at 72% 2%, rgba(37, 99, 235, 0.08), transparent 66%),
    linear-gradient(180deg, #f6f9fd, #ffffff);
  color: #07152f;
}

.support-page.theme-dark {
  background:
    radial-gradient(860px 420px at 72% 0%, rgba(74, 163, 255, 0.10), transparent 66%),
    linear-gradient(180deg, #06101f, #081120 64%, #0b1220);
  color: #e8edf6;
}

.support-app {
  max-width: 1520px;
  margin: 0 auto;
  padding: 8px;
}

.support-shell {
  min-height: calc(100vh - 16px);
  overflow: hidden;
  border: 1px solid rgba(122, 149, 192, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(760px 360px at 82% 8%, rgba(42, 102, 200, 0.08), transparent 62%),
    #ffffff;
  box-shadow:
    0 20px 54px rgba(31, 59, 115, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.support-page.theme-dark .support-shell {
  border-color: rgba(124, 192, 255, 0.22);
  background:
    radial-gradient(760px 360px at 82% 8%, rgba(74, 163, 255, 0.12), transparent 62%),
    #0b1424;
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.support-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 44px;
  border-bottom: 1px solid rgba(122, 149, 192, 0.22);
}

.support-page.theme-dark .support-topbar {
  border-bottom-color: rgba(124, 192, 255, 0.16);
}

.support-actions {
  flex-wrap: nowrap;
}

.support-main {
  padding: 42px clamp(28px, 5vw, 72px) 54px;
}

.support-hero {
  max-width: 760px;
  margin-bottom: 28px;
}

.support-kicker {
  margin: 0 0 12px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-page.theme-dark .support-kicker {
  color: #66b4ff;
}

.support-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: #07152f;
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 0.98;
}

.support-page.theme-dark .support-hero h1 {
  color: #f6f9ff;
}

.support-hero p {
  max-width: 660px;
  margin: 18px 0 0;
  color: #4d5e7a;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.6;
}

.support-page.theme-dark .support-hero p {
  color: #b6c4d8;
}

.support-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 920px;
  min-height: 48px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.88);
  color: #18345f;
  font-weight: 750;
}

.support-notice.success {
  border-color: rgba(22, 163, 74, 0.28);
  background: rgba(236, 253, 245, 0.84);
}

.support-notice.error {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(254, 242, 242, 0.88);
}

.support-notice span {
  color: #51627e;
}

.support-page.theme-dark .support-notice {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(13, 31, 58, 0.76);
  color: #f7fbff;
}

.support-page.theme-dark .support-notice span {
  color: #b8c7dc;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 24px;
  align-items: start;
}

.support-workspace {
  min-width: 0;
}

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

.support-type-card {
  position: relative;
  min-height: 158px;
  padding: 18px;
  border: 1px solid rgba(122, 149, 192, 0.30);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 250, 255, 0.78));
  box-shadow: 0 14px 34px rgba(31, 59, 115, 0.08);
  cursor: pointer;
}

.support-page.theme-dark .support-type-card {
  border-color: rgba(124, 192, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(14, 29, 50, 0.88), rgba(10, 24, 42, 0.78));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.support-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.support-type-card img {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(15, 58, 128, 0.22);
}

.support-type-card strong,
.support-type-card > span:not(.support-type-check):not(.support-type-icon-wrap) {
  display: block;
}

.support-type-card strong {
  color: #0d1c38;
  font-size: 1rem;
  line-height: 1.2;
}

.support-page.theme-dark .support-type-card strong {
  color: #f7fbff;
}

.support-type-card > span:not(.support-type-check):not(.support-type-icon-wrap) {
  margin-top: 6px;
  color: #5d6f8d;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.42;
}

.support-page.theme-dark .support-type-card > span:not(.support-type-check):not(.support-type-icon-wrap) {
  color: #b0c0d6;
}

.support-type-card:hover,
.support-type-card:has(input:checked),
.support-type-card.is-selected {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow:
    0 20px 44px rgba(37, 99, 235, 0.16),
    inset 0 0 0 1px rgba(37, 99, 235, 0.24);
}

.support-type-check {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: #2b74ff;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.86);
}

.support-type-card:has(input:checked) .support-type-check,
.support-type-card.is-selected .support-type-check {
  opacity: 1;
  transform: scale(1);
}

.support-form-card,
.support-info-card {
  border: 1px solid rgba(122, 149, 192, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.82));
  box-shadow: 0 18px 46px rgba(31, 59, 115, 0.10);
}

.support-page.theme-dark .support-form-card,
.support-page.theme-dark .support-info-card {
  border-color: rgba(124, 192, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(14, 30, 52, 0.88), rgba(10, 22, 38, 0.82));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.support-form-card {
  padding: 26px;
}

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

.support-form-head h2,
.support-info-card h2 {
  margin: 0;
  color: #0d1c38;
  font-size: 1.25rem;
  line-height: 1.15;
}

.support-page.theme-dark .support-form-head h2,
.support-page.theme-dark .support-info-card h2 {
  color: #f7fbff;
}

.support-form-head p,
.support-info-card p {
  margin: 8px 0 0;
  color: #5d6f8d;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.support-page.theme-dark .support-form-head p,
.support-page.theme-dark .support-info-card p {
  color: #adbed5;
}

.support-status-pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-page.theme-dark .support-status-pill {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(37, 99, 235, 0.16);
  color: #8ec5ff;
}

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

.support-form-card label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #20304c;
  font-size: 0.82rem;
  font-weight: 900;
}

.support-page.theme-dark .support-form-card label {
  color: #dce8f6;
}

.support-form-card em {
  color: #ef4444;
  font-style: normal;
}

.support-form-card input,
.support-form-card select,
.support-form-card textarea {
  width: 100%;
  border: 1px solid rgba(122, 149, 192, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  color: #0f172a;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  outline: none;
}

.support-form-card input,
.support-form-card select {
  min-height: 46px;
  padding: 0 13px;
}

.support-form-card textarea {
  resize: vertical;
  min-height: 158px;
  padding: 13px;
  line-height: 1.5;
}

.support-page.theme-dark .support-form-card input,
.support-page.theme-dark .support-form-card select,
.support-page.theme-dark .support-form-card textarea {
  border-color: rgba(124, 192, 255, 0.18);
  background: rgba(6, 16, 31, 0.62);
  color: #edf5ff;
}

.support-form-card input:focus,
.support-form-card select:focus,
.support-form-card textarea:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.support-field-full {
  margin: 16px 0;
}

.support-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.support-form-actions .btn {
  min-height: 48px;
  padding: 0 18px;
}

.support-form-actions .btn.primary {
  min-width: 190px;
}

.support-form-actions svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-side {
  display: grid;
  gap: 16px;
}

.support-info-card {
  padding: 22px;
}

.support-info-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.support-shield {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(22, 163, 74, 0.10);
  color: #16a34a;
}

.support-page.theme-dark .support-shield {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.support-shield svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-info-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.support-info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 149, 192, 0.20);
}

.support-page.theme-dark .support-info-list div {
  border-top-color: rgba(124, 192, 255, 0.14);
}

.support-info-list dt,
.support-info-list dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 850;
}

.support-info-list dt {
  color: #5d6f8d;
}

.support-info-list dd {
  color: #12213c;
  text-align: right;
}

.support-page.theme-dark .support-info-list dt {
  color: #aabbd3;
}

.support-page.theme-dark .support-info-list dd {
  color: #f2f7ff;
}

.support-faq details {
  padding: 14px 0;
  border-top: 1px solid rgba(122, 149, 192, 0.20);
}

.support-faq details:first-of-type {
  margin-top: 12px;
}

.support-page.theme-dark .support-faq details {
  border-top-color: rgba(124, 192, 255, 0.14);
}

.support-faq summary {
  cursor: pointer;
  color: #172746;
  font-size: 0.9rem;
  font-weight: 900;
}

.support-page.theme-dark .support-faq summary {
  color: #eef6ff;
}

.support-faq p {
  margin-top: 10px;
}

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

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

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

@media (max-width: 760px) {
  .support-app {
    padding: 0;
  }

  .support-shell {
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .support-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .support-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .support-main {
    padding: 28px 18px 36px;
  }

  .support-hero h1 {
    max-width: 11ch;
    font-size: 2.34rem;
  }

  .support-type-grid,
  .support-form-grid,
  .support-side {
    grid-template-columns: 1fr;
  }

  .support-type-card {
    min-height: 130px;
  }

  .support-form-card,
  .support-info-card {
    border-radius: 12px;
  }

  .support-form-card {
    padding: 20px;
  }

  .support-form-head,
  .support-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .support-form-actions .btn,
  .support-form-actions .btn.primary {
    width: 100%;
    min-width: 0;
  }
}

/* Support Center v3: premium dark SaaS support surface */
.support-page {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(900px 480px at 78% 0%, rgba(37, 99, 235, 0.15), transparent 68%),
    linear-gradient(180deg, #020817 0%, #030712 100%);
  color: #edf5ff;
}

.support-page.theme-dark {
  background:
    radial-gradient(900px 480px at 78% 0%, rgba(37, 99, 235, 0.15), transparent 68%),
    linear-gradient(180deg, #020817 0%, #030712 100%);
  color: #edf5ff;
}

.support-page .support-app {
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px 24px 70px;
  position: relative;
}

.support-page .support-shell {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 22px;
  background:
    radial-gradient(700px 360px at 78% 6%, rgba(37, 99, 235, 0.12), transparent 68%),
    linear-gradient(180deg, rgba(8, 20, 40, 0.96), rgba(4, 12, 26, 0.98));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.35),
    0 0 50px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.support-page .support-topbar {
  min-height: 116px;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 24, 44, 0.92), rgba(6, 16, 31, 0.88));
}

.support-page .support-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.support-page .support-brand .brand-mark {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.90)),
    color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
  border-color: color-mix(in srgb, var(--accent) 14%, var(--border));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 34px rgba(15, 23, 42, 0.10),
    0 14px 32px var(--accent-shadow);
}

.support-page.theme-dark .support-brand .brand-mark {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.90)),
    #f8fafc;
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 14px 32px var(--accent-shadow);
}

.support-page .support-brand .brand-mark svg {
  width: 45px;
  height: 45px;
}

.support-page .support-brand .title {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  color: var(--text);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 72%, var(--text)), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.support-page .support-brand .subtitle {
  margin-top: 7px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.support-page.theme-dark .support-brand .title {
  background: linear-gradient(120deg, #eef5ff, #b7d3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.support-page .support-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 7px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 18px;
  background: rgba(2, 8, 23, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
}

.support-page .topbar-actions.support-actions {
  padding: 7px !important;
  border: 1px solid rgba(96, 165, 250, 0.16) !important;
  background: rgba(2, 8, 23, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 32px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: none !important;
}

.support-page .support-back.account-back {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px;
  background: rgba(8, 18, 34, 0.76);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.support-page .support-account summary {
  border: 1px solid rgba(93, 158, 244, 0.24);
  background: rgba(5, 14, 27, 0.66);
  color: #eef6ff;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  background: rgba(5, 14, 27, 0.76);
}

.support-page .support-theme.btn.theme {
  width: 48px;
  height: 48px;
  min-height: 48px;
  border-color: rgba(96, 165, 250, 0.22);
  border-radius: 14px;
  background: rgba(8, 18, 34, 0.76);
  color: #eef6ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.support-page .support-account summary {
  min-height: 48px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
}

.support-page .support-account .account-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #1b57b8, #15428e);
  color: #ffffff;
  font-size: 0.82rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.support-page .support-account .account-name {
  color: #f4f8ff;
  font-size: 0.95rem;
  font-weight: 900;
}

.support-page .support-main {
  padding: 30px 32px 34px;
}

.support-page .support-notice {
  max-width: none;
  min-height: 42px;
  margin: 0 0 15px;
  border-color: rgba(46, 134, 255, 0.30);
  border-radius: 10px;
  background: rgba(8, 22, 40, 0.74);
  color: #f7fbff;
  font-size: 0.82rem;
}

.support-page .support-notice.success {
  border-color: rgba(50, 209, 108, 0.26);
  background: rgba(12, 42, 33, 0.82);
}

.support-page .support-notice span {
  color: #b9c8dc;
}

.support-page .support-layout {
  display: block;
}

.support-page .support-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 24px;
}

.support-page .support-type-card {
  position: relative;
  display: flex;
  min-height: 158px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 26px 22px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(190px 130px at 20% 10%, rgba(59, 130, 246, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(12, 28, 52, 0.88), rgba(7, 18, 36, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 34px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.support-page .support-type-card:hover,
.support-page .support-type-card:focus-visible {
  border-color: rgba(96, 165, 250, 0.42);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 42px rgba(0, 0, 0, 0.22),
    0 0 26px rgba(37, 99, 235, 0.08);
}

.support-page .support-type-card:has(input:checked),
.support-page .support-type-card.is-active {
  border-color: rgba(59, 130, 246, 0.95);
  background:
    radial-gradient(circle at 20% 15%, rgba(59, 130, 246, 0.48), transparent 34%),
    linear-gradient(135deg, rgba(29, 78, 216, 0.90), rgba(8, 28, 62, 0.96));
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.20),
    0 18px 50px rgba(37, 99, 235, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.support-page .support-type-card:has(input:checked) .support-type-icon-wrap,
.support-page .support-type-card.is-active .support-type-icon-wrap {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.support-page .support-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.support-page .support-type-icon-wrap {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  margin: 0 0 10px;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.support-page .support-type-card .support-type-icon-wrap {
  display: grid;
  place-items: center;
}

.support-page .support-type-icon {
  position: static;
  grid-area: 1 / 1;
  display: block;
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: none;
  box-shadow: none;
  transition: opacity 160ms ease;
}

.support-page .support-type-icon-light {
  opacity: 0;
}

.support-page .support-type-card strong {
  margin: 0;
  color: #f7fbff;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.15;
}

.support-page .support-type-card > span:not(.support-type-check):not(.support-type-icon-wrap) {
  margin-top: 9px;
  color: #b7c5d8;
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1.36;
}

.support-page .support-type-check {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  color: #ffffff;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 150ms ease, transform 150ms ease;
}

.support-page .support-type-check svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-page .support-type-card:has(input:checked) .support-type-check,
.support-page .support-type-card.is-active .support-type-check {
  opacity: 1;
  transform: scale(1);
}

.support-page .support-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.support-page .support-form-card,
.support-page .support-info-card {
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(37, 99, 235, 0.11), transparent 70%),
    linear-gradient(180deg, rgba(10, 26, 50, 0.92), rgba(5, 16, 32, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(0, 0, 0, 0.18);
}

.support-page .support-form-card {
  padding: 32px;
}

.support-page .support-form-head {
  display: block;
  margin: 0 0 30px;
}

.support-page .support-form-head h1,
.support-page .support-info-card h2 {
  margin: 0;
  color: #f7fbff;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.14;
}

.support-page .support-form-head p {
  margin: 10px 0 0;
  color: #b7c5d8;
  font-size: 0.98rem;
  font-weight: 640;
  line-height: 1.45;
}

.support-page .support-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.support-page .support-form-grid-bottom {
  align-items: end;
}

.support-page .support-form-card label {
  display: grid;
  gap: 10px;
  min-width: 0;
  color: #dce9fb;
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.2;
}

.support-page .support-form-card em {
  color: #ff6176;
  font-style: normal;
}

.support-page .support-form-card input,
.support-page .support-form-card select,
.support-page .support-form-card textarea,
.support-page .support-file-control {
  width: 100%;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 10px;
  background: rgba(3, 12, 26, 0.72);
  color: #eaf2ff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  color-scheme: dark;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.support-page .support-form-card input,
.support-page .support-form-card select,
.support-page .support-file-control {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 16px;
}

.support-page .support-form-card textarea {
  min-height: 140px;
  padding: 16px;
  resize: vertical;
  line-height: 1.48;
}

.support-page .support-form-card input::placeholder,
.support-page .support-form-card textarea::placeholder {
  color: rgba(190, 205, 226, 0.66);
}

.support-page .support-form-card input:focus,
.support-page .support-form-card select:focus,
.support-page .support-form-card textarea:focus {
  border-color: rgba(59, 130, 246, 0.85);
  background: rgba(3, 12, 26, 0.84);
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.support-page .support-field-full {
  margin: 26px 0 26px;
}

.support-page .support-file-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f0f7ff;
  cursor: pointer;
}

.support-page .support-file-control input {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.support-page .support-file-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.22);
  color: #60a5fa;
}

.support-page .support-file-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-page .support-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.support-page .support-form-actions .btn.primary {
  min-width: 190px;
  min-height: 52px;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid rgba(98, 174, 255, 0.58);
  border-radius: 12px;
  background: linear-gradient(135deg, #1d7cff, #2563eb);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 900;
  box-shadow:
    0 14px 34px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.support-page .support-form-actions .btn.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 42px rgba(37, 99, 235, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.support-page .support-form-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-page .support-side {
  display: grid;
  gap: 24px;
}

.support-page .support-info-card {
  padding: 28px;
}

.support-page .support-status-card {
  min-height: 208px;
  border-color: rgba(16, 185, 129, 0.28);
  background:
    radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(10, 38, 48, 0.94), rgba(7, 22, 39, 0.96));
}

.support-page .support-info-title {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.support-page .support-status-card .support-info-title h2 {
  font-size: 1.34rem;
  line-height: 1.08;
}

.support-page .support-shield {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 16px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.34), rgba(6, 38, 45, 0.78));
  color: #86efac;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.18);
}

.support-page .support-shield svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-page .support-info-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
}

.support-page .support-info-list div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  row-gap: 4px;
  min-width: 0;
  padding: 15px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.support-page .support-info-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.support-page .support-info-list dt,
.support-page .support-info-list dd {
  margin: 0;
  min-width: 0;
}

.support-page .support-info-list dt {
  display: contents;
}

.support-page .support-info-list dt svg {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: #9db0c7;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-page .support-info-list dt span {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.support-page .support-info-list dd {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: rgba(248, 250, 252, 0.96);
  text-align: left;
  white-space: normal;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.support-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.74);
}

.support-page .support-faq {
  padding: 28px;
}

.support-page .support-faq h2 {
  font-size: 1.35rem;
}

.support-page .support-faq details {
  padding: 15px 0;
  border-top: 1px solid rgba(96, 165, 250, 0.18);
}

.support-page .support-faq details:first-of-type {
  margin-top: 15px;
}

.support-page .support-faq summary {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
  color: #dce9fa;
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.3;
  list-style: none;
  padding-right: 0;
}

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

.support-page .support-faq summary::before {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid rgba(61, 146, 255, 0.55);
  border-radius: 999px;
  color: #57a1ff;
  font-size: 0.72rem;
  font-weight: 950;
}

.support-page .support-faq summary::after {
  content: "";
  position: static;
  justify-self: end;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid #96a8bd;
  border-bottom: 1.7px solid #96a8bd;
  transform: rotate(45deg);
}

.support-page .support-faq summary span {
  min-width: 0;
}

.support-page .support-faq details:hover summary {
  color: #f3f8ff;
}

.support-page .support-faq p {
  margin: 11px 0 0 30px;
  color: #aebed2;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.support-help-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 10px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 12px;
  background: rgba(3, 12, 26, 0.38);
  color: #64adff;
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.support-help-link:hover {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(37, 99, 235, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 28px rgba(37, 99, 235, 0.10);
}

.support-help-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.support-page:not(.theme-dark) {
  background:
    radial-gradient(780px 390px at 80% 0%, rgba(38, 114, 246, 0.10), transparent 68%),
    linear-gradient(180deg, #f6f9fe 0%, #ffffff 100%);
  color: #07152f;
}

body.support-page:not(.theme-dark) .support-shell {
  border-color: rgba(154, 174, 207, 0.46);
  background:
    radial-gradient(640px 300px at 82% 6%, rgba(45, 119, 243, 0.10), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 22px 52px rgba(31, 59, 115, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.support-page:not(.theme-dark) .support-topbar {
  border-bottom-color: rgba(154, 174, 207, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92));
}

body.support-page:not(.theme-dark) .topbar-actions.support-actions,
body.support-page:not(.theme-dark) .support-actions {
  background: rgba(247, 250, 255, 0.86) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

body.support-page:not(.theme-dark) .support-theme.btn.theme {
  border-color: rgba(31, 59, 115, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 28px rgba(15, 23, 42, 0.10);
}

body.support-page:not(.theme-dark) .support-back.account-back {
  border-color: rgba(31, 59, 115, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 28px rgba(15, 23, 42, 0.10);
}

body.support-page:not(.theme-dark) .support-account summary {
  border-color: rgba(31, 59, 115, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 28px rgba(15, 23, 42, 0.10);
}

body.support-page:not(.theme-dark) .support-account .account-name {
  color: #0f172a;
}

body.support-page:not(.theme-dark) .support-type-card {
  border-color: rgba(154, 174, 207, 0.48);
  background:
    radial-gradient(130px 100px at 28% 4%, rgba(47, 134, 255, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.90));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 26px rgba(31, 59, 115, 0.08);
}

body.support-page:not(.theme-dark) .support-type-card:hover,
body.support-page:not(.theme-dark) .support-type-card:focus-visible {
  border-color: rgba(47, 134, 255, 0.55);
}

body.support-page:not(.theme-dark) .support-type-card:has(input:checked),
body.support-page:not(.theme-dark) .support-type-card.is-active {
  border-color: #2f80ff;
  background:
    radial-gradient(140px 100px at 28% 4%, rgba(47, 134, 255, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
  box-shadow:
    0 0 0 1px rgba(47, 134, 255, 0.20),
    0 18px 34px rgba(47, 134, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.support-page:not(.theme-dark) .support-type-card strong,
body.support-page:not(.theme-dark) .support-form-head h1,
body.support-page:not(.theme-dark) .support-info-card h2 {
  color: #07152f;
}

body.support-page:not(.theme-dark) .support-type-card > span:not(.support-type-check):not(.support-type-icon-wrap),
body.support-page:not(.theme-dark) .support-form-head p {
  color: #52627c;
}

body.support-page:not(.theme-dark) .support-type-icon-wrap {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body.support-page:not(.theme-dark) .support-type-card:has(input:checked) .support-type-icon-wrap,
body.support-page:not(.theme-dark) .support-type-card.is-active .support-type-icon-wrap {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body.support-page:not(.theme-dark) .support-type-icon-dark {
  opacity: 0;
}

body.support-page:not(.theme-dark) .support-type-icon-light {
  opacity: 1;
}

body.support-page:not(.theme-dark) .support-form-card,
body.support-page:not(.theme-dark) .support-info-card {
  border-color: rgba(154, 174, 207, 0.46);
  background:
    radial-gradient(320px 180px at 50% 0%, rgba(47, 134, 255, 0.06), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
  box-shadow:
    0 18px 36px rgba(31, 59, 115, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.support-page:not(.theme-dark) .support-form-card label {
  color: #18345f;
}

body.support-page:not(.theme-dark) .support-form-card input,
body.support-page:not(.theme-dark) .support-form-card select,
body.support-page:not(.theme-dark) .support-form-card textarea,
body.support-page:not(.theme-dark) .support-file-control {
  border-color: rgba(154, 174, 207, 0.54);
  background: rgba(255, 255, 255, 0.92);
  color: #10203d;
}

body.support-page:not(.theme-dark) .support-form-card input::placeholder,
body.support-page:not(.theme-dark) .support-form-card textarea::placeholder {
  color: rgba(82, 98, 124, 0.64);
}

body.support-page:not(.theme-dark) .support-file-control {
  color: #10203d;
}

body.support-page:not(.theme-dark) .support-shield {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

body.support-page:not(.theme-dark) .support-info-list dt {
  color: #52627c;
}

body.support-page:not(.theme-dark) .support-info-list dt span {
  color: rgba(82, 98, 124, 0.82);
}

body.support-page:not(.theme-dark) .support-info-list dt svg {
  stroke: #63738f;
}

body.support-page:not(.theme-dark) .support-info-list dd {
  color: #10203d;
}

body.support-page:not(.theme-dark) .support-faq details {
  border-top-color: rgba(154, 174, 207, 0.34);
}

body.support-page:not(.theme-dark) .support-faq summary {
  color: #13233f;
}

body.support-page:not(.theme-dark) .support-faq summary::after {
  border-color: #63738f;
}

body.support-page:not(.theme-dark) .support-faq p {
  color: #52627c;
}

body.support-page:not(.theme-dark) .support-help-link {
  border-color: rgba(47, 134, 255, 0.22);
  background: rgba(239, 246, 255, 0.60);
  color: #1d64d8;
}

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

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

@media (max-width: 820px) {
  .support-page .support-app {
    padding: 0;
  }

  .support-page .support-shell {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .support-page .support-topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
  }

  .support-page .support-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .support-page .support-main {
    padding: 18px;
  }

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

@media (max-width: 560px) {
  .support-page .support-brand .subtitle {
    max-width: 28ch;
  }

  .support-page .support-type-grid,
  .support-page .support-form-grid,
  .support-page .support-side {
    grid-template-columns: 1fr;
  }

  .support-page .support-type-card {
    min-height: 140px;
  }

  .support-page .support-form-actions {
    justify-content: stretch;
  }

  .support-page .support-form-actions span:first-child {
    display: none;
  }

  .support-page .support-form-actions .btn.primary {
    width: 100%;
  }
}

.account-settings-section {
  display: grid;
  gap: 18px;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
}

.account-settings-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.account-settings-option {
  appearance: none;
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 22px;
  min-width: 0;
  min-height: 128px;
  padding: 24px 28px;
  border: 1px solid color-mix(in srgb, var(--border) 92%, #ffffff);
  border-radius: 18px;
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(47, 134, 255, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 34px rgba(15, 23, 42, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.account-settings-option:hover {
  border-color: rgba(47, 134, 255, 0.32);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 20px 42px rgba(37, 99, 235, 0.10);
}

.account-settings-option:focus-visible {
  outline: 3px solid rgba(47, 134, 255, 0.22);
  outline-offset: 3px;
}

.account-settings-option.is-selected {
  border-color: rgba(47, 134, 255, 0.86);
  background:
    radial-gradient(460px 180px at 8% 8%, rgba(47, 134, 255, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(240, 247, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 1px rgba(47, 134, 255, 0.16),
    0 18px 46px rgba(37, 99, 235, 0.18);
}

.account-settings-option-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #2f75ff;
  background:
    radial-gradient(circle at 50% 38%, rgba(89, 151, 255, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(241, 247, 255, 0.98), rgba(219, 234, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 26px rgba(37, 99, 235, 0.14);
}

.account-settings-option-icon.security {
  color: #2672ce;
  background:
    radial-gradient(circle at 50% 38%, rgba(74, 151, 255, 0.20), transparent 62%),
    linear-gradient(180deg, rgba(238, 247, 255, 0.98), rgba(210, 232, 255, 0.94));
}

.account-settings-option-icon svg {
  display: block;
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-settings-option-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.account-settings-option-copy strong {
  color: #10214a;
  font-size: 1.2rem;
  line-height: 1.12;
  font-weight: 850;
}

.account-settings-option-copy span {
  color: #53637d;
  font-size: 0.98rem;
  line-height: 1.38;
  font-weight: 650;
}

.account-settings-option-chevron {
  display: grid;
  place-items: center;
  color: #596b86;
}

.account-settings-option-chevron svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-dark .account-settings-option {
  border-color: rgba(126, 164, 214, 0.24);
  background:
    radial-gradient(460px 180px at 0% 0%, rgba(47, 134, 255, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(15, 31, 52, 0.92), rgba(10, 24, 42, 0.94));
  color: #f7fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 42px rgba(0, 0, 0, 0.18);
}

.theme-dark .account-settings-option:hover {
  border-color: rgba(91, 165, 255, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 22px 48px rgba(0, 0, 0, 0.22);
}

.theme-dark .account-settings-option.is-selected {
  border-color: rgba(74, 151, 255, 0.92);
  background:
    radial-gradient(460px 180px at 8% 8%, rgba(47, 134, 255, 0.32), transparent 62%),
    linear-gradient(180deg, rgba(16, 38, 67, 0.96), rgba(8, 23, 42, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(74, 151, 255, 0.20),
    0 20px 52px rgba(37, 99, 235, 0.20);
}

.theme-dark .account-settings-option-icon {
  color: #9cc5ff;
  background:
    radial-gradient(circle at 50% 38%, rgba(79, 143, 255, 0.26), transparent 62%),
    linear-gradient(180deg, rgba(35, 82, 150, 0.62), rgba(21, 51, 98, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 28px rgba(37, 99, 235, 0.18);
}

.theme-dark .account-settings-option-icon.security {
  color: #b9d6ff;
  background:
    radial-gradient(circle at 50% 38%, rgba(96, 165, 250, 0.24), transparent 62%),
    linear-gradient(180deg, rgba(28, 73, 128, 0.66), rgba(16, 47, 87, 0.66));
}

.theme-dark .account-settings-option-copy strong {
  color: #f7fbff;
}

.theme-dark .account-settings-option-copy span {
  color: #c3d1e4;
}

.theme-dark .account-settings-option-chevron {
  color: #d8e5f7;
}

.account-settings-card,
.account-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  justify-self: center;
  width: min(760px, 100%);
  padding: 32px 38px 30px;
  border-radius: 20px;
  border-color: color-mix(in srgb, var(--border) 92%, #ffffff);
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 18px 42px rgba(15, 23, 42, 0.08);
}

.account-settings-panel[hidden] {
  display: none !important;
}

.account-settings-panel.is-active {
  animation: accountPanelIn 190ms ease-out;
}

@keyframes accountPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theme-dark .account-settings-card {
  border-color: rgba(126, 164, 214, 0.24);
  background: #101b2d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.22);
}

.account-settings-card .card-head {
  margin-bottom: 2px;
}

.account-settings-card h2 {
  margin: 0;
  color: var(--accent);
  font-size: 1.42rem;
  line-height: 1.12;
  font-weight: 800;
}

.theme-dark .account-settings-card h2 {
  color: #8ec7ff;
}

.account-settings-card .account-card-copy {
  margin-top: 8px;
  color: #60708a;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 650;
}

.theme-dark .account-settings-card .account-card-copy {
  color: #c7d6e8;
}

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

.account-field label {
  margin: 0;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.2;
  font-weight: 800;
}

.account-field input[type="email"],
.account-field input[type="password"],
.account-field input[type="text"] {
  min-height: 54px;
  border-radius: 10px;
  border-color: #dbe3ef;
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.02);
}

.theme-dark .account-field label {
  color: #d8e5f7;
}

.theme-dark .account-field input[type="email"],
.theme-dark .account-field input[type="password"],
.theme-dark .account-field input[type="text"] {
  border-color: rgba(126, 164, 214, 0.24);
  background: #0a1524;
  color: #f7fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.01);
}

.account-profile-stack {
  display: grid;
  gap: 22px;
}

.account-profile-stack .account-save {
  margin-top: 10px;
}

.account-settings-panel > .account-save {
  margin-top: 10px;
}

.account-settings-card input:disabled {
  background: #ffffff;
  color: var(--text);
  opacity: 1;
  cursor: not-allowed;
}

.theme-dark .account-settings-card input:disabled {
  background: #0a1524;
  color: #d8e5f7;
}

.account-message {
  margin: 0;
}

.account-message.success {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface));
  color: var(--accent);
}

.account-save {
  margin-top: auto;
  min-height: 62px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f3b93, #3974e5);
  font-size: 0.98rem;
  font-weight: 800;
  gap: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 26px rgba(31, 59, 147, 0.24);
}

.account-save svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-save:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 30px rgba(31, 59, 147, 0.28);
}

.theme-dark .account-save {
  background: linear-gradient(135deg, #285fc4, #5aa9ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 28px rgba(0, 0, 0, 0.28);
}

.account-password-wrap {
  position: relative;
}

.account-password-wrap input {
  width: 100%;
  padding-right: 54px;
}

.account-password-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transform: translateY(-50%);
}

.account-password-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-password-icon:hover,
.account-password-icon:focus-visible {
  color: #2958a9;
}

.account-password-icon:focus-visible,
.auth-input-trailing:focus-visible {
  outline: 3px solid rgba(41, 88, 169, 0.22);
  outline-offset: 4px;
}

.file-picker {
  display: block;
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.file-picker:hover {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.file-picker input[type="file"] {
  display: none;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.help {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 0.92rem;
}

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

.field .help {
  margin-top: 4px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

.switch-row label {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 2px;
  max-height: 260px;
  overflow: auto;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.checkbox-item:hover {
  border-color: rgba(29, 78, 216, 0.25);
  box-shadow: 0 10px 16px rgba(15, 23, 42, 0.06);
}

.checkbox-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.checkbox-item span {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.card-run .card-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 15px;
  margin-bottom: 20px;
}

.card-run {
  min-height: 218px;
  padding: 18px 18px 22px;
  border-radius: 18px;
}

.card-run h2 {
  margin: 2px 0 0;
  font-size: 1.14rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card-run.setup-card {
  min-height: 0;
}

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

.card-run.is-collapsed .setup-card-head {
  margin-bottom: 0;
}

.card-run .run-row {
  display: flex;
  gap: 20px;
  margin-top: 0;
}

.card-run .run-row .btn {
  flex: 1 1 0;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
}

.card-run .run-row .btn.secondary {
  border-color: #d5dfed;
  background: #ffffff;
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(15, 23, 42, 0.05);
}

.run-button-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.card-run .status {
  display: none;
}

.credit-estimate-card {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(66, 132, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 24px rgba(37, 99, 235, 0.06);
}

.credit-estimate-card[hidden] {
  display: none;
}

.credit-estimate-label {
  display: block;
  margin-bottom: 4px;
  color: #607089;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credit-estimate-card strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.credit-estimate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #53637c;
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 750;
}

.credit-estimate-card.is-insufficient {
  border-color: rgba(220, 38, 38, 0.32);
  background: linear-gradient(180deg, rgba(255, 247, 247, 0.98), rgba(255, 241, 242, 0.94));
}

.credit-estimate-card.is-insufficient .credit-estimate-label,
.credit-estimate-card.is-insufficient .credit-estimate-meta {
  color: #991b1b;
}

.theme-dark .card-run .run-row .btn.secondary {
  border-color: rgba(126, 164, 214, 0.20);
  background: rgba(6, 17, 29, 0.72);
  color: #f7fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.16);
}

.theme-dark .credit-estimate-card {
  border-color: rgba(124, 192, 255, 0.20);
  background: linear-gradient(180deg, rgba(16, 32, 52, 0.78), rgba(10, 24, 40, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 26px rgba(0, 0, 0, 0.16);
}

.theme-dark .credit-estimate-label,
.theme-dark .credit-estimate-meta {
  color: #a9bdd8;
}

.theme-dark .credit-estimate-card strong {
  color: #f7fbff;
}

.theme-dark .credit-estimate-card.is-insufficient {
  border-color: rgba(248, 113, 113, 0.30);
  background: linear-gradient(180deg, rgba(69, 10, 10, 0.52), rgba(41, 14, 20, 0.42));
}

.theme-dark .credit-estimate-card.is-insufficient .credit-estimate-label,
.theme-dark .credit-estimate-card.is-insufficient .credit-estimate-meta {
  color: #fecaca;
}

.card-run .run-row .btn.danger {
  border-color: rgba(185, 28, 28, 0.34);
  background: #fff5f5;
  color: #991b1b;
}

.theme-dark .card-run .run-row .btn.danger {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(69, 10, 10, 0.58);
  color: #fecaca;
}


@media (max-width: 520px) {
  .card-run .run-row {
    flex-direction: column;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(29, 78, 216, 0.2);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(29, 78, 216, 0.18);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.btn[hidden] {
  display: none !important;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(29, 78, 216, 0.22);
  filter: saturate(1.02);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.secondary {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
}

body.paywall-visible {
  overflow: hidden;
}

body.paywall-visible .app {
  filter: blur(7px) brightness(0.94);
  opacity: 0.86;
  pointer-events: none;
  user-select: none;
}

.theme-dark.paywall-visible .app {
  filter: blur(7px) brightness(0.74);
  opacity: 0.74;
}

.safety-policy-visible .app {
  filter: blur(8px) brightness(0.96);
  opacity: 0.88;
}

.theme-dark.safety-policy-visible .app {
  filter: blur(8px) brightness(0.66);
  opacity: 0.80;
}

.paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(242, 246, 252, 0.54);
  backdrop-filter: blur(3px);
}

.theme-dark .paywall-overlay {
  background: rgba(8, 17, 32, 0.58);
}

.paywall-overlay[hidden] {
  display: none;
}

.safety-policy-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 28px 24px;
  background: rgba(241, 246, 253, 0.62);
  backdrop-filter: blur(8px);
}

@supports not (height: 100dvh) {
  .safety-policy-overlay {
    height: 100vh;
    min-height: 100vh;
  }
}

.theme-dark .safety-policy-overlay {
  background: rgba(2, 8, 23, 0.62);
}

.safety-policy-overlay[hidden] {
  display: none;
}

.safety-policy-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(720px, calc(100vw - 48px));
  height: min(880px, calc(100dvh - 56px));
  max-height: calc(100dvh - 56px);
  overflow: hidden;
  padding: 52px 64px 48px;
  border: 1px solid rgba(47, 95, 168, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(680px 340px at 34% -22%, rgba(59, 130, 246, 0.12), transparent 64%),
    radial-gradient(520px 280px at 92% 8%, rgba(96, 165, 250, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.98));
  color: #10214a;
  box-shadow:
    0 28px 80px rgba(31, 63, 115, 0.18),
    0 0 42px rgba(37, 99, 235, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

@supports not (height: 100dvh) {
  .safety-policy-modal {
    height: min(880px, calc(100vh - 56px));
    max-height: calc(100vh - 56px);
  }
}

.theme-dark .safety-policy-modal {
  border-color: rgba(96, 165, 250, 0.35);
  background:
    radial-gradient(680px 340px at 34% -22%, rgba(59, 130, 246, 0.15), transparent 64%),
    linear-gradient(180deg, rgba(15, 35, 65, 0.98), rgba(8, 22, 42, 0.98));
  color: #eef5ff;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.safety-policy-close {
  appearance: none;
  position: absolute;
  top: 36px;
  right: 36px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(37, 99, 235, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.70);
  color: rgba(30, 64, 126, 0.86);
  cursor: pointer;
  line-height: 0;
}

.safety-policy-close:hover {
  background: rgba(232, 240, 255, 0.92);
  border-color: rgba(37, 99, 235, 0.58);
  color: #17458f;
}

.theme-dark .safety-policy-close {
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(15, 35, 65, 0.55);
  color: #d7e1f2;
}

.theme-dark .safety-policy-close:hover {
  background: rgba(30, 64, 120, 0.68);
  color: #ffffff;
}

.safety-policy-close svg {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
  transform: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
}

.safety-policy-copy h2 {
  margin: 0 64px 22px 0;
  color: inherit;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.safety-policy-copy p {
  margin: 0;
  color: #4f607d;
  font-size: 1.02rem;
  line-height: 1.38;
  font-weight: 600;
}

.theme-dark .safety-policy-copy p {
  color: #c4cedd;
}

.safety-policy-divider {
  height: 1px;
  margin: 28px 0 30px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.04), rgba(84, 108, 148, 0.18), rgba(59, 130, 246, 0.04));
  flex: 0 0 auto;
}

.theme-dark .safety-policy-divider {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.04), rgba(148, 163, 184, 0.18), rgba(96, 165, 250, 0.04));
}

.safety-policy-list {
  display: grid;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 0 0 auto;
}

.safety-policy-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.safety-policy-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.40), transparent 38%),
    linear-gradient(180deg, #4b8dff, #275fd4);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.16),
    0 8px 18px rgba(37, 99, 235, 0.16);
}

.theme-dark .safety-policy-number {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(180deg, #315ec9, #1b397e);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.16),
    0 9px 20px rgba(0, 0, 0, 0.22);
}

.safety-policy-list li > span:last-child {
  display: grid;
  gap: 6px;
}

.safety-policy-list strong {
  color: #10214a;
  font-size: 1.12rem;
  line-height: 1.18;
  font-weight: 820;
  letter-spacing: 0;
}

.theme-dark .safety-policy-list strong {
  color: #f3f7ff;
}

.safety-policy-list li > span:last-child > span {
  color: #53637d;
  font-size: 0.96rem;
  line-height: 1.38;
  font-weight: 570;
}

.theme-dark .safety-policy-list li > span:last-child > span {
  color: #bac5d6;
}

.safety-policy-responsibility h3 {
  margin: 0 0 8px;
  color: #10214a;
  font-size: 1.14rem;
  line-height: 1.2;
  font-weight: 820;
}

.theme-dark .safety-policy-responsibility h3 {
  color: #f3f7ff;
}

.safety-policy-responsibility p {
  margin: 0;
  color: #53637d;
  font-size: 0.96rem;
  line-height: 1.38;
  font-weight: 570;
}

.theme-dark .safety-policy-responsibility p {
  color: #bac5d6;
}

.safety-policy-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-top: 34px;
  flex: 0 0 auto;
}

.safety-policy-confirm {
  width: 260px;
  height: 56px;
  min-height: 56px;
  border-radius: 12px;
  font-size: 1.06rem;
  font-weight: 820;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 12px 24px rgba(37, 99, 235, 0.26);
}

.safety-policy-full-link {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  color: #1d6feb;
  font-size: 1.06rem;
  font-weight: 820;
  text-decoration: none;
}

.safety-policy-full-link:hover {
  text-decoration: underline;
}

.theme-dark .safety-policy-full-link {
  color: #60a5fa;
}

@media (max-height: 840px) and (min-width: 561px) {
  .safety-policy-modal {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.35) transparent;
  }
}

.paywall-modal {
  position: relative;
  width: min(900px, calc(100vw - 48px));
  max-height: min(90vh, 780px);
  overflow: visible;
  margin-top: 54px;
  padding: 128px 96px 44px;
  border: 1px solid rgba(123, 140, 166, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(560px 220px at 50% -10%, rgba(67, 112, 196, 0.08), transparent 66%),
    linear-gradient(180deg, #ffffff, #fbfcff);
  color: #111827;
  box-shadow:
    0 30px 80px rgba(31, 59, 115, 0.14),
    0 10px 28px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.theme-dark .paywall-modal {
  border-color: rgba(124, 192, 255, 0.18);
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(90, 169, 255, 0.14), transparent 64%),
    linear-gradient(180deg, #111d31, #0f1728);
  color: #e8edf6;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    0 12px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.paywall-lock {
  position: absolute;
  top: -54px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: 0;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, transparent 37px, rgba(228, 234, 244, 0.74) 38px, rgba(228, 234, 244, 0.74) 39px, transparent 40px),
    radial-gradient(circle at 50% 50%, transparent 55px, rgba(235, 239, 246, 0.76) 56px, rgba(235, 239, 246, 0.76) 57px, transparent 58px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
  color: #1f5dbb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 38px rgba(15, 23, 42, 0.10);
}

.theme-dark .paywall-lock {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(90, 169, 255, 0.18), rgba(90, 169, 255, 0.08));
  color: #7cc0ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

.paywall-lock svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paywall-copy {
  text-align: center;
}

.paywall-copy .paywall-eyebrow {
  margin: 0 0 14px;
  color: #1f5dbb;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.paywall-copy h2 {
  margin: 0;
  color: #0f172a;
  font-size: 2.18rem;
  line-height: 1.12;
  font-weight: 900;
  white-space: nowrap;
}

.theme-dark .paywall-copy h2 {
  color: #f2f7ff;
}

.paywall-copy p {
  margin: 22px 0 0;
  color: #243044;
  font-size: 1.22rem;
  line-height: 1.45;
  font-weight: 500;
}

.theme-dark .paywall-copy p {
  color: #c7d7ea;
}

.theme-dark .paywall-copy .paywall-eyebrow {
  color: #7cc0ff;
}

.paywall-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  justify-content: center;
  justify-items: center;
  gap: 28px;
  margin: 42px auto 40px;
  padding: 0;
  list-style: none;
  max-width: 600px;
}

.paywall-benefits li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  width: 100%;
  color: #263246;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.paywall-benefits li > span:last-child {
  display: block;
  width: 100%;
}

.theme-dark .paywall-benefits li {
  color: #d6e2f2;
}

.paywall-benefit-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 1px solid rgba(31, 91, 183, 0.12);
  border-radius: 14px;
  color: #1f5dbb;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(31, 59, 115, 0.07);
}

.theme-dark .paywall-benefit-icon {
  border-color: rgba(124, 192, 255, 0.44);
  background: rgba(124, 192, 255, 0.10);
  color: #7cc0ff;
}

.paywall-benefit-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paywall-actions {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.paywall-actions .btn {
  width: min(464px, 100%);
  min-height: 58px;
  border-radius: 10px;
  font-size: 1.18rem;
  font-weight: 900;
}

.paywall-upgrade {
  gap: 16px;
  background: linear-gradient(135deg, #1d63dd, #1657c7);
  border-color: rgba(29, 99, 221, 0.42);
  text-decoration: none;
  box-shadow:
    0 18px 30px rgba(29, 99, 221, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.theme-dark .paywall-upgrade {
  background: linear-gradient(135deg, #244b87, #3278d8);
  border-color: rgba(124, 192, 255, 0.22);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.paywall-upgrade svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paywall-plans {
  color: #243044;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.theme-dark .paywall-plans {
  color: #d6e2f2;
}

.paywall-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 0;
  color: #6b7c95;
  font-size: 1.02rem;
  font-weight: 600;
}

.theme-dark .paywall-trust {
  color: #9fb2c8;
}

.paywall-trust svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn.theme {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  box-shadow: none;
  padding: 0;
  flex: 0 0 auto;
}

.theme-icon {
  grid-area: 1 / 1;
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 160ms ease, transform 160ms ease;
}

.theme-icon-sun {
  fill: none;
  stroke-width: 2;
  opacity: 0;
  transform: scale(0.72) rotate(-20deg);
}

.theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-dark .theme-icon-moon {
  opacity: 0;
  transform: scale(0.72) rotate(20deg);
}

.theme-dark .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-dark .btn.theme {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.54);
}
.btn.ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  padding: 10px 14px;
}

.status {
  color: var(--muted);
  font-weight: 600;
}

.card-meta {
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.meta-split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.meta-right {
  text-align: right;
}

.meta-label {
  color: var(--muted-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.meta-value {
  margin-top: 2px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-results {
  position: relative;
  grid-column: 3;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 32px;
  --results-bg: #eef5ff;
  --results-panel: rgba(255, 255, 255, 0.78);
  --results-panel-2: rgba(236, 244, 255, 0.82);
  --results-line: rgba(79, 116, 174, 0.22);
  --results-text: #13213d;
  --results-muted: #5d6f8d;
  --results-accent: #2563eb;
  --results-accent-2: #48a6ff;
  border-width: 2px;
  border-color: rgba(86, 125, 188, 0.32);
  box-shadow:
    0 34px 74px rgba(54, 91, 145, 0.16),
    0 16px 34px rgba(15, 23, 42, 0.07);
  background:
    radial-gradient(680px 300px at 10% 4%, rgba(72, 166, 255, 0.20), transparent 64%),
    radial-gradient(760px 420px at 98% 8%, rgba(37, 99, 235, 0.12), transparent 58%),
    linear-gradient(180deg, #fbfdff 0%, var(--results-bg) 100%);
}

.theme-dark .card-results {
  --results-bg: #071321;
  --results-panel: #0b1b2e;
  --results-panel-2: #0d2138;
  --results-line: rgba(126, 164, 214, 0.22);
  --results-text: #f7fbff;
  --results-muted: #a9bdd8;
  --results-accent: #4aa3ff;
  --results-accent-2: #1f6fed;
  border-color: rgba(90, 169, 255, 0.34);
  box-shadow: 0 34px 86px rgba(10, 27, 48, 0.24), var(--shadow);
  background:
    radial-gradient(760px 360px at 12% 0%, rgba(74, 163, 255, 0.18), transparent 62%),
    radial-gradient(760px 420px at 100% 8%, rgba(31, 111, 237, 0.18), transparent 58%),
    linear-gradient(180deg, #08192d, var(--results-bg));
}

.card-results::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background:
    radial-gradient(560px 220px at 16% 10%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 22%);
  opacity: 0.9;
}

.theme-dark .card-results::after {
  opacity: 0.24;
}

.card-results > * {
  position: relative;
  z-index: 1;
}

.card-results h2 {
  margin: 0;
  color: var(--results-text);
  font-size: clamp(1.65rem, 2vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

.is-main .card-results {
  align-self: start;
  height: var(--results-card-height, auto);
  max-height: var(--results-card-height, none);
  min-height: 0;
  padding: 24px;
}

.is-main .layout:has(#tables[style*="none"]) .card-results {
  align-self: start;
}

.is-main .layout.has-results .card-results,
.is-main .layout:has(#tables[style*="flex"]) .card-results {
  align-self: start;
  height: var(--results-card-height, auto);
  max-height: var(--results-card-height, none);
  min-height: 0;
}

.is-main .layout.has-results .card-results.has-results {
  height: auto;
  max-height: none;
  overflow: visible;
}

.card-results .results-head {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 230px);
  align-items: center;
  gap: 20px;
  padding: 30px 28px;
  margin: 0 0 28px;
  overflow: visible;
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--results-line);
  border-bottom-color: color-mix(in srgb, var(--results-line) 58%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--results-panel) 88%, white), var(--results-panel)),
    var(--results-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 22px 42px var(--accent-shadow);
}

.is-main .card-results .results-head {
  gap: 16px;
  margin-bottom: 18px;
  padding: 22px 24px;
}

.results-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.results-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.results-subtitle {
  margin: 10px 0 0;
  color: var(--results-muted);
  font-size: 0.96rem;
  font-weight: 500;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.results-action-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background:
    none;
  box-shadow: none;
}

.results-action-dock:empty {
  display: none;
}

.theme-dark .results-action-dock {
  background: none;
  box-shadow: none;
}

.theme-dark .card-results .results-head {
  background:
    linear-gradient(180deg, rgba(16, 37, 62, 0.82), rgba(8, 24, 42, 0.72)),
    var(--results-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 46px rgba(0, 0, 0, 0.18);
}

.card-results .results-meta {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  z-index: 1;
  padding: 0 0 16px;
  margin: 0;
  border-radius: 12px;
  background: transparent;
}

.card-results #results-empty {
  flex: 0 0 auto;
  min-height: 0;
}

.card-results .toggle-row {
  background: color-mix(in srgb, var(--results-panel) 76%, transparent);
  border: 1px solid var(--results-line);
  border-radius: 14px;
  gap: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.card-results .results-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(98px, 1fr));
  width: 100%;
}

.theme-dark .card-results .toggle-row {
  background: rgba(7, 19, 33, 0.62);
}

.card-results .results-count-badge {
  min-width: 0;
  min-height: 42px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  text-align: left;
  background: linear-gradient(180deg, color-mix(in srgb, var(--results-accent) 12%, var(--surface)), color-mix(in srgb, var(--results-accent-2) 10%, var(--surface-2)));
  border-color: color-mix(in srgb, var(--results-accent) 36%, var(--border));
  color: var(--results-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 12px 28px var(--accent-shadow);
}

.card-results .results-count-badge .badge-main,
.card-results .results-count-badge .badge-sub {
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
}

.card-results .results-count-badge .badge-main {
  color: var(--results-text);
  font-weight: 800;
  letter-spacing: 0;
}

.card-results .results-count-badge .badge-sub {
  color: var(--muted);
  font-weight: 700;
}

.card-results .results-count-badge .badge-sub:not([style*="none"])::before {
  content: none;
}

.btn.secondary.results-download {
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--results-accent-2) 60%, transparent);
  border-radius: 12px;
  padding: 0 24px;
  font-size: 0.92rem;
  white-space: nowrap;
  width: min(172px, 100%);
  color: #ffffff;
  background: linear-gradient(135deg, var(--results-accent), var(--results-accent-2));
  box-shadow: 0 18px 34px var(--accent-shadow);
}

.card-results .pill-btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 0;
  color: var(--results-muted);
  font-size: 0.9rem;
  border-color: transparent;
  box-shadow: none;
}

.card-results .pill-btn.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--results-accent) 20%, transparent), color-mix(in srgb, var(--results-accent-2) 10%, transparent));
  color: var(--results-text);
  border-color: color-mix(in srgb, var(--results-accent) 42%, var(--border));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--results-accent) 18%, transparent),
    0 0 22px var(--accent-shadow);
}

.bulk-welcome-grid {
  grid-template-columns: 1fr;
}

.job-progress {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(20, 83, 45, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.theme-dark .job-progress {
  border-color: rgba(125, 211, 252, 0.18);
  background: rgba(15, 23, 42, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.job-progress[hidden] {
  display: none;
}

.job-progress-top,
.job-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.job-progress-top strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.job-progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
}

.theme-dark .job-progress-track {
  background: rgba(255, 255, 255, 0.1);
}

.job-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent-shadow);
  transition: width 220ms ease;
}

.theme-dark .job-progress-fill {
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.34);
}

.job-progress.is-indeterminate .job-progress-track {
  position: relative;
}

.job-progress.is-indeterminate .job-progress-fill {
  width: 34% !important;
  min-width: 46px;
  animation: progress-slide 1.05s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.24);
}

@keyframes progress-slide {
  0% {
    transform: translateX(-115%);
  }

  100% {
    transform: translateX(315%);
  }
}

.translation-results {
  flex: 1 1 auto;
  min-height: 0;
  gap: 18px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-gutter: stable;
}

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

.summary-item {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid rgba(20, 83, 45, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.theme-dark .summary-item {
  border-color: rgba(125, 211, 252, 0.16);
  background: rgba(15, 23, 42, 0.42);
}

.summary-item .label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.summary-item strong {
  color: var(--text);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.error-wrap {
  margin: 0;
}

.error-wrap[hidden] {
  display: none;
}

.error-title {
  margin-bottom: 6px;
  font-weight: 900;
}

.error-wrap ul {
  margin: 0;
  padding-left: 18px;
}

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

.toggle-row {
  display: inline-flex;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.pill-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 10px;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.pill-btn.active {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 6px 14px rgba(15, 23, 42, 0.07);
}

.theme-dark .pill-btn.active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: #d8e8ff;
  border-color: rgba(124, 192, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.engine-switch .pill-btn {
  border: 1px solid transparent;
}

.engine-switch .pill-btn.active {
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.filter-clear {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
  padding: 0 4px;
}

.matched-rows {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-page {
  background:
    radial-gradient(980px 520px at 50% -16%, rgba(255, 255, 255, 0.92), transparent 62%),
    linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
}

.theme-dark.auth-page {
  background:
    radial-gradient(980px 520px at 50% -16%, rgba(90, 169, 255, 0.12), transparent 62%),
    linear-gradient(180deg, #07101f 0%, #0b1220 100%);
}

.auth-app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  max-width: none;
  padding: clamp(28px, 5vh, 58px) 24px;
}

.auth-shell {
  position: relative;
  width: min(1450px, 100%);
  min-height: min(820px, calc(100vh - 112px));
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  border: 1px solid #d7deea;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.11),
    0 10px 26px rgba(15, 23, 42, 0.06);
}

.theme-dark .auth-shell {
  border-color: rgba(148, 163, 184, 0.18);
  background: #0f172a;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    0 10px 26px rgba(0, 0, 0, 0.22);
}

.auth-theme-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 8;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 26px rgba(15, 23, 42, 0.10);
}

.theme-dark .auth-theme-toggle {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.82);
  color: #e8edf6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 30px rgba(0, 0, 0, 0.24);
}

.auth-info-panel {
  padding: clamp(48px, 4.8vw, 68px);
  background:
    linear-gradient(90deg, rgba(240, 245, 255, 0.96), rgba(246, 249, 255, 0.92)),
    #f4f7fd;
  border-right: 1px solid rgba(215, 222, 234, 0.72);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 36px;
}

.theme-dark .auth-info-panel {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(16, 26, 42, 0.94)),
    #101a2a;
  border-right-color: rgba(124, 192, 255, 0.16);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.035);
}

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

.auth-mark,
.auth-feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #dbe3ef;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(15, 23, 42, 0.06);
}

.theme-dark .auth-mark,
.theme-dark .auth-feature-icon {
  background: rgba(248, 250, 252, 0.94);
  border-color: rgba(124, 192, 255, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 22px rgba(0, 0, 0, 0.20);
}

.auth-mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.auth-mark svg {
  width: 40px;
  height: 40px;
}

.auth-brand-name {
  color: #123f8b;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.theme-dark .auth-brand-name {
  color: #dbeafe;
}

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

.auth-info-copy h1 {
  max-width: 17ch;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.65rem, 3.55vw, 3.95rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0;
}

.theme-dark .auth-info-copy h1,
.theme-dark .auth-feature h2,
.theme-dark .auth-heading h2,
.theme-dark .auth-form label:not(.auth-check),
.theme-dark .auth-check {
  color: #e8edf6;
}

.auth-info-copy p {
  max-width: 500px;
  margin: 0;
  color: #3f4a5f;
  font-size: clamp(1.16rem, 1.32vw, 1.38rem);
  line-height: 1.55;
  font-weight: 450;
}

.theme-dark .auth-info-copy p,
.theme-dark .auth-feature p,
.theme-dark .auth-heading p,
.theme-dark .auth-switch {
  color: #aebcd0;
}

.auth-feature-list {
  display: grid;
  gap: 30px;
  align-content: start;
  margin-top: 10px;
}

.auth-feature {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.auth-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.auth-feature-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: #113f8c;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-feature:first-child .auth-feature-icon svg {
  fill: #1f5cc6;
  stroke: none;
}

.theme-dark .auth-feature-icon svg {
  stroke: #2958a9;
}

.theme-dark .auth-feature:first-child .auth-feature-icon svg {
  fill: #2958a9;
}

.auth-feature h2 {
  margin: 0 0 9px;
  color: #0f172a;
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 800;
}

.auth-feature p {
  max-width: 380px;
  margin: 0;
  color: #4b5568;
  font-size: 1.08rem;
  line-height: 1.42;
  font-weight: 450;
}

.auth-dots {
  display: flex;
  gap: 16px;
  align-items: center;
}

.auth-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d7dde9;
}

.auth-dots span.active {
  background: #123f8b;
}

.theme-dark .auth-dots span {
  background: #334155;
}

.theme-dark .auth-dots span.active {
  background: #7cc0ff;
}

.auth-form-panel {
  padding: clamp(52px, 6vw, 88px);
  display: grid;
  place-items: center;
  background: #ffffff;
}

.theme-dark .auth-form-panel {
  background: #0f172a;
}

.auth-form-card {
  width: min(560px, 100%);
}

.auth-heading {
  margin-bottom: 44px;
}

.auth-heading h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: clamp(2.25rem, 2.7vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-heading p {
  margin: 0;
  color: #4b5568;
  font-size: 1.18rem;
  line-height: 1.4;
  font-weight: 450;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label:not(.auth-check) {
  margin: 0;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 800;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap input {
  width: 100%;
  height: 64px;
  padding: 0 58px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 1.18rem;
  font-weight: 500;
  box-shadow: none;
}

.theme-dark .auth-input-wrap input {
  border-color: rgba(148, 163, 184, 0.20);
  background: rgba(15, 23, 42, 0.72);
  color: #e8edf6;
}

.auth-input-wrap input:focus {
  border-color: #2958a9;
  box-shadow: 0 0 0 4px rgba(41, 88, 169, 0.12);
}

.auth-input-wrap.has-error input {
  padding-right: 92px;
  border-color: #ef4444;
  color: #111827;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10);
}

.theme-dark .auth-input-wrap.has-error input {
  border-color: #f87171;
  color: #f8fafc;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16);
}

.auth-input-wrap.has-error input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

.auth-input-wrap input::placeholder {
  color: #6b7280;
}

.theme-dark .auth-input-wrap input::placeholder {
  color: #7f8da3;
}

.auth-input-icon,
.auth-input-trailing {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #596579;
  pointer-events: none;
}

.theme-dark .auth-input-icon,
.theme-dark .auth-input-trailing {
  color: #9fb2c8;
}

.auth-input-icon {
  left: 18px;
}

.auth-input-trailing {
  right: 17px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.auth-field-error-icon {
  position: absolute;
  right: 56px;
  z-index: 1;
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #ef4444;
  pointer-events: none;
}

.theme-dark .auth-field-error-icon {
  color: #f87171;
}

.auth-input-wrap.has-error .auth-field-error-icon {
  display: grid;
}

.auth-input-icon svg,
.auth-input-trailing svg,
.auth-field-error-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-field-error-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: #ffffff;
  stroke-width: 2.2;
}

.auth-field-error {
  margin: -8px 0 4px;
  color: #dc2626;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}

.theme-dark .auth-field-error {
  color: #f87171;
}

.auth-input-trailing:hover,
.auth-input-trailing:focus-visible {
  color: #2958a9;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 20px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 650;
}

.auth-check input {
  width: 29px;
  height: 29px;
  margin: 0;
  border-radius: 7px;
  accent-color: #1f4fa3;
}

.auth-options a {
  color: #123f8b;
  font-size: 1.08rem;
  font-weight: 650;
  text-decoration: none;
}

.theme-dark .auth-options a,
.theme-dark .auth-switch a {
  color: #7cc0ff;
}

.auth-submit {
  width: 100%;
  min-height: 66px;
  border: 1px solid #183f86;
  border-radius: 8px;
  background: linear-gradient(180deg, #2458b3, #1e4a99);
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 28px rgba(30, 74, 153, 0.16);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 32px rgba(30, 74, 153, 0.20);
}

.auth-switch {
  margin: 42px 0 0;
  color: #4b5568;
  font-size: 1.14rem;
  font-weight: 450;
  text-align: center;
}

.auth-switch a {
  margin-left: 8px;
  color: #123f8b;
  font-weight: 800;
  text-decoration: none;
}

.auth-alert {
  margin: -28px 0 28px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 24%, #d8dee8);
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger) 8%, #ffffff);
  color: var(--danger);
  font-weight: 800;
}

.theme-dark .auth-alert {
  border-color: color-mix(in srgb, var(--danger) 30%, rgba(148, 163, 184, 0.20));
  background: color-mix(in srgb, var(--danger) 14%, #0f172a);
}

.welcome-card {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(100svh - 116px));
  padding: 46px 52px 40px;
  border: 2px solid rgba(31, 59, 115, 0.26);
  border-radius: clamp(28px, 3vw, 42px);
  background:
    radial-gradient(960px 420px at -12% 0%, rgba(255, 255, 255, 0.95), transparent 58%),
    radial-gradient(760px 360px at 100% 0%, var(--accent-soft), transparent 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, white), color-mix(in srgb, var(--surface-2) 96%, white));
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.48),
    inset 0 0 0 8px rgba(31, 59, 115, 0.08),
    0 40px 96px rgba(15, 23, 42, 0.12),
    0 20px 44px var(--accent-shadow);
  display: grid;
  align-content: center;
  gap: 30px;
  isolation: isolate;
}

.welcome-card::before,
.welcome-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.welcome-card::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 18%),
    repeating-linear-gradient(90deg, rgba(31, 59, 115, 0.05) 0 1px, transparent 1px 112px),
    repeating-linear-gradient(180deg, rgba(31, 59, 115, 0.04) 0 1px, transparent 1px 92px);
  opacity: 0.42;
}

.welcome-card::after {
  inset: auto -16% -28% 44%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
  filter: blur(32px);
  opacity: 0.9;
  z-index: 0;
}

.welcome-card > * {
  position: relative;
  z-index: 1;
}

.theme-dark .welcome-card {
  border-color: rgba(124, 192, 255, 0.34);
  background:
    radial-gradient(920px 380px at -12% 0%, rgba(255, 255, 255, 0.03), transparent 56%),
    radial-gradient(720px 360px at 100% 0%, rgba(90, 169, 255, 0.14), transparent 52%),
    linear-gradient(180deg, #09121f, #0d1726 58%, #0b1523);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.025),
    inset 0 0 0 8px rgba(124, 192, 255, 0.10),
    0 44px 100px rgba(0, 0, 0, 0.34),
    0 20px 46px rgba(90, 169, 255, 0.10);
}

.theme-dark .welcome-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    repeating-linear-gradient(90deg, rgba(124, 192, 255, 0.05) 0 1px, transparent 1px 112px),
    repeating-linear-gradient(180deg, rgba(124, 192, 255, 0.04) 0 1px, transparent 1px 92px);
  opacity: 0.22;
}

.theme-dark .welcome-card::after {
  opacity: 0.72;
}

.welcome-hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
}

.welcome-copy {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
  max-width: 760px;
  animation: welcomeRise 680ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.welcome-kicker,
.welcome-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.welcome-kicker::before,
.welcome-section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.welcome-product {
  margin: 0;
  max-width: none;
  font-size: 7.4rem;
  line-height: 0.86;
  letter-spacing: 0;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  word-break: keep-all;
}

.welcome-title {
  margin: 0;
  max-width: 16ch;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
}

.welcome-sub {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
}

@keyframes welcomeRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.welcome-preview {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  animation: welcomeRise 760ms cubic-bezier(0.22, 0.8, 0.24, 1) 90ms both;
}

.welcome-preview::before {
  content: "";
  position: absolute;
  inset: 8% -8% -18% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(28px);
  opacity: 0.8;
}

.welcome-preview-card {
  --preview-accent: #86a4df;
  --preview-soft: rgba(117, 147, 208, 0.18);
  --preview-line: rgba(134, 164, 223, 0.85);
  position: relative;
  min-height: 230px;
  height: 100%;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(31, 59, 115, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 252, 0.30)),
    linear-gradient(135deg, rgba(31, 59, 115, 0.10), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 28px 60px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-rows: 1fr;
}

.welcome-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}

.theme-dark .welcome-preview-card {
  border-color: rgba(124, 192, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(10, 18, 31, 0.86), rgba(10, 17, 29, 0.62)),
    linear-gradient(135deg, rgba(90, 169, 255, 0.12), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 66px rgba(0, 0, 0, 0.34);
}

.theme-dark .welcome-preview-card::before {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 58%);
}

.welcome-preview-card[data-preview-engine="traditional"] {
  --preview-accent: #86a4df;
  --preview-soft: rgba(134, 164, 223, 0.18);
  --preview-line: rgba(146, 173, 228, 0.9);
}

.welcome-preview-card[data-preview-engine="string"] {
  --preview-accent: #86d1b1;
  --preview-soft: rgba(134, 209, 177, 0.18);
  --preview-line: rgba(134, 209, 177, 0.88);
}

.welcome-preview-card[data-preview-engine="dynamic"] {
  --preview-accent: #f0a26a;
  --preview-soft: rgba(240, 162, 106, 0.18);
  --preview-line: rgba(240, 162, 106, 0.9);
}

.welcome-preview-card[data-preview-engine="paired"] {
  --preview-accent: #df8f9b;
  --preview-soft: rgba(223, 143, 155, 0.18);
  --preview-line: rgba(223, 143, 155, 0.88);
}

.welcome-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.welcome-preview-label,
.welcome-preview-engine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.welcome-preview-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.welcome-preview-engine {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--preview-accent) 22%, transparent);
  background: color-mix(in srgb, var(--preview-accent) 12%, transparent);
  color: var(--preview-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.welcome-preview-stage {
  position: relative;
  min-height: 194px;
  overflow: hidden;
  padding: 0;
}

.welcome-preview-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08) 50%, transparent),
    repeating-linear-gradient(90deg, rgba(31, 59, 115, 0.04) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(180deg, rgba(31, 59, 115, 0.04) 0 1px, transparent 1px 54px);
  opacity: 0.65;
  pointer-events: none;
}

.theme-dark .welcome-preview-stage::before {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03) 50%, transparent),
    repeating-linear-gradient(90deg, rgba(124, 192, 255, 0.05) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(180deg, rgba(124, 192, 255, 0.05) 0 1px, transparent 1px 54px);
  opacity: 0.42;
}

.welcome-visual {
  position: absolute;
  inset: 14px 0;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-preview-card[data-preview-engine="traditional"] .welcome-visual-traditional,
.welcome-preview-card[data-preview-engine="string"] .welcome-visual-string,
.welcome-preview-card[data-preview-engine="dynamic"] .welcome-visual-dynamic,
.welcome-preview-card[data-preview-engine="paired"] .welcome-visual-paired {
  opacity: 1;
  transform: none;
}

.traditional-grid,
.string-stack,
.dynamic-stack,
.paired-layout {
  width: 100%;
}

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

.traditional-grid span,
.dynamic-band,
.welcome-paired-card {
  display: block;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--preview-accent) 22%, white);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--preview-accent) 84%, white), color-mix(in srgb, var(--preview-accent) 58%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.theme-dark .traditional-grid span,
.theme-dark .dynamic-band,
.theme-dark .welcome-paired-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.traditional-grid span {
  height: 38px;
}

.traditional-grid span:nth-child(n + 5):nth-child(-n + 8) {
  opacity: 0.7;
}

.traditional-grid span:nth-child(n + 9) {
  opacity: 0.42;
}

.string-stack {
  display: grid;
  gap: 13px;
}

.string-line {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--preview-accent) 26%, transparent);
  opacity: 0.24;
}

.string-line.short {
  width: 72%;
}

.string-line.is-highlight {
  height: 20px;
  opacity: 1;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--preview-accent) 88%, white), color-mix(in srgb, var(--preview-accent) 64%, transparent));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--preview-accent) 16%, transparent);
}

.welcome-visual-dynamic {
  align-items: flex-end;
}

.dynamic-stack {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  padding: 6px 0 30px;
}

.dynamic-band {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 28px 28px 18px 18px;
}

.dynamic-band.size-wide {
  height: 58%;
}

.dynamic-band.size-tall {
  height: 86%;
}

.dynamic-band.size-medium {
  height: 70%;
}

.dynamic-band.soft {
  opacity: 0.62;
}

.dynamic-band.size-small {
  height: 42%;
}

.dynamic-points {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  display: flex;
  justify-content: space-between;
}

.dynamic-points span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--preview-line);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--preview-accent) 14%, transparent);
}

.paired-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.paired-column {
  display: grid;
  gap: 12px;
}

.paired-column:first-child .welcome-paired-card {
  justify-self: end;
}

.paired-column:last-child .welcome-paired-card {
  justify-self: start;
}

.welcome-paired-card {
  width: 100%;
  height: 46px;
}

.welcome-paired-card.short {
  width: 82%;
}

.paired-links {
  position: relative;
  width: calc(100% + 32px);
  height: 152px;
  margin-left: -16px;
}

.paired-link-map {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.paired-link-line {
  stroke: var(--preview-line);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.paired-link-line.one,
.paired-link-line.three {
  opacity: 0.86;
}

.paired-link-dot {
  fill: var(--preview-accent);
  stroke: color-mix(in srgb, var(--preview-accent) 14%, transparent);
  stroke-width: 10;
  vector-effect: non-scaling-stroke;
}

.welcome-preview-caption {
  grid-column: 1 / -1;
  justify-self: center;
  min-height: 1.5em;
  margin: 4px 0 0;
  max-width: 44ch;
  text-align: center;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
  font-weight: 600;
}

.welcome-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: min(580px, 100%);
  margin: 18px auto 0;
  padding: 0;
  color: rgba(100, 116, 139, 0.56);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.welcome-credit::before,
.welcome-credit::after {
  content: "";
  width: 78px;
  height: 1px;
  flex: 0 1 78px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.16));
}

.welcome-credit::after {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.16), transparent);
}

.theme-dark .welcome-credit {
  color: rgba(159, 176, 199, 0.52);
}

.theme-dark .welcome-credit::before,
.theme-dark .welcome-credit::after {
  background: linear-gradient(90deg, transparent, rgba(124, 192, 255, 0.11));
}

.theme-dark .welcome-credit::after {
  background: linear-gradient(90deg, rgba(124, 192, 255, 0.11), transparent);
}

.welcome-selector {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 59, 115, 0.12);
  animation: welcomeRise 760ms cubic-bezier(0.22, 0.8, 0.24, 1) 180ms both;
}

.theme-dark .welcome-selector {
  border-top-color: rgba(124, 192, 255, 0.14);
}

.welcome-section-head {
  margin: 0;
  padding: 0;
  border: 0;
}

.welcome-section-title {
  margin: 0;
  max-width: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--muted-2);
  text-transform: uppercase;
  white-space: nowrap;
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(640px, 100%);
}

.welcome-option {
  --mode-accent: #86a4df;
  --mode-accent-2: #5f7fc5;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(31, 59, 115, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.welcome-option[data-engine="traditional"] {
  --mode-accent: #86a4df;
  --mode-accent-2: #5f7fc5;
}

.welcome-option[data-engine="string"] {
  --mode-accent: #86d1b1;
  --mode-accent-2: #4ca987;
}

.welcome-option[data-engine="dynamic"] {
  --mode-accent: #f0a26a;
  --mode-accent-2: #c86d36;
}

.welcome-option[data-engine="paired"] {
  --mode-accent: #df8f9b;
  --mode-accent-2: #c05c72;
}

.inline-alert {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(185, 28, 28, 0.4);
  background: rgba(185, 28, 28, 0.08);
  color: #7f1d1d;
  font-weight: 700;
  font-size: 0.92rem;
}

.theme-dark .inline-alert {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.welcome-option::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--mode-accent) 62%, transparent);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.welcome-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--mode-accent) 12%, transparent);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.theme-dark .welcome-option {
  border-color: rgba(124, 192, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.welcome-option:hover::before,
.welcome-option.is-previewed::before,
.welcome-option:focus-visible::before {
  opacity: 1;
}

.welcome-option:hover::after,
.welcome-option.is-previewed::after,
.welcome-option:focus-visible::after {
  opacity: 1;
}

.welcome-option:focus-visible {
  outline: none;
}

.welcome-name {
  position: relative;
  z-index: 1;
  transition: color 180ms ease;
}

.welcome-name {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.welcome-option:hover,
.welcome-option.is-previewed,
.welcome-option:focus-visible {
  border-color: color-mix(in srgb, var(--mode-accent) 38%, transparent);
  transform: translateY(-1px);
}

.welcome-option:hover .welcome-name,
.welcome-option.is-previewed .welcome-name,
.welcome-option:focus-visible .welcome-name {
  color: color-mix(in srgb, var(--mode-accent) 84%, var(--text));
}

.filter-callout {
  margin-top: 10px;
  border-radius: 16px;
  border: 2px solid rgba(31, 59, 115, 0.25);
  background: var(--accent-soft);
  padding: 12px;
}

.theme-dark .filter-callout {
  border-color: rgba(90, 169, 255, 0.28);
}

.filter-callout label {
  margin-top: 0;
}

.filter-callout input[type="text"] {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}

.filter-callout input[type="text"]:focus {
  outline: none;
  border-color: rgba(31, 59, 115, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 59, 115, 0.12);
}

@media (max-width: 1100px) {
  .welcome-hero {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .welcome-preview {
    justify-self: center;
  }

  .welcome-selector {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 980px) {
  body:not(.is-main) .topbar {
    padding: 0 16px 12px;
  }

  .welcome-card {
    min-height: auto;
    padding: 24px 22px 28px;
    border-radius: 28px;
  }
}

@media (max-width: 720px) {
  body:not(.is-main) .topbar {
    padding: 0 10px 10px;
  }

  body:not(.is-main) .btn.theme {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .welcome-preview-card {
    min-height: 260px;
    padding: 20px;
    border-radius: 24px;
  }

  .welcome-preview-stage {
    min-height: 220px;
  }

  .welcome-product {
    font-size: 4rem;
  }

  .welcome-title {
    max-width: none;
  }

  .welcome-selector {
    gap: 18px;
  }

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

  .welcome-option {
    min-height: 48px;
    padding: 0 14px;
  }

  .paired-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .paired-links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-copy,
  .welcome-preview,
  .welcome-selector,
  .welcome-visual,
  .welcome-option::before,
  .welcome-option::after,
  .welcome-name {
    animation: none;
    transition: none;
    transform: none;
  }
}

.table-wrap {
  position: relative;
  margin-top: 26px;
  border: 1px solid var(--results-line);
  border-radius: 18px;
  min-height: 0;
  overflow: auto;
  background:
    linear-gradient(180deg, var(--results-panel), var(--results-bg)),
    var(--results-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.tables-preview {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.tables-preview[hidden] {
  display: none;
}

.card-results .tables-preview .table-wrap {
  flex: 1 1 auto;
  margin-top: 0;
  scrollbar-gutter: stable;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.translation-results table {
  width: 100%;
  min-width: 1100px;
  table-layout: fixed;
}

#ngrams-table th:nth-child(1),
#ngrams-table td:nth-child(1) {
  width: 14%;
}

#ngrams-table th:nth-child(2),
#ngrams-table td:nth-child(2) {
  width: 32%;
}

#ngrams-table th:nth-child(3),
#ngrams-table td:nth-child(3) {
  width: 14%;
}

#ngrams-table th:nth-child(4),
#ngrams-table td:nth-child(4) {
  width: 14%;
}

#ngrams-table th:nth-child(5),
#ngrams-table td:nth-child(5) {
  width: 26%;
}

#keywords-table th:nth-child(1),
#keywords-table td:nth-child(1) {
  width: 16%;
}

#keywords-table th:nth-child(2),
#keywords-table td:nth-child(2) {
  width: 42%;
}

#keywords-table th:nth-child(3),
#keywords-table td:nth-child(3) {
  width: 16%;
}

#keywords-table th:nth-child(4),
#keywords-table td:nth-child(4) {
  width: 26%;
}

#ngrams-table th:nth-child(2),
#ngrams-table th:nth-child(3) {
  text-align: left;
}

th, td {
  padding: 17px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--results-line) 58%, transparent);
  text-align: left;
  font-size: 0.92rem;
  white-space: nowrap;
  word-break: break-word;
  color: var(--results-text);
}

.translation-results th,
.translation-results td {
  min-width: 180px;
  max-width: 440px;
  padding: 14px 16px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
  line-height: 1.45;
}

.translation-results th {
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

.translation-results .col-id {
  min-width: 70px;
  max-width: 110px;
  white-space: nowrap;
  overflow-wrap: normal;
}

.translation-results .col-text {
  min-width: 300px;
  max-width: 520px;
}

.results-open-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid var(--results-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--results-panel) 82%, transparent);
}

.results-open-panel h3 {
  margin: 0;
  color: var(--results-text);
  font-size: 1.08rem;
}

.results-open-panel p {
  margin: 6px 0 0;
  color: var(--results-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

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

.insight-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--results-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--results-panel) 88%, white), color-mix(in srgb, var(--results-panel-2) 84%, transparent)),
    var(--results-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 14px 28px color-mix(in srgb, var(--accent-shadow) 44%, transparent);
}

.theme-dark .insight-card {
  background:
    linear-gradient(180deg, rgba(16, 37, 62, 0.72), rgba(8, 24, 42, 0.62)),
    var(--results-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.14);
}

.insight-head,
.insight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.insight-head span {
  color: var(--results-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.insight-head strong {
  color: var(--results-text);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.insight-foot {
  color: var(--results-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.insight-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--results-muted) 16%, transparent);
}

.insight-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--results-accent), var(--results-accent-2));
  transition: width 220ms ease;
}

.insight-bar.density span {
  background: linear-gradient(90deg, #16a34a, var(--results-accent));
}

.insight-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  color: var(--results-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.insight-mini-grid span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.insight-mini-grid strong {
  color: var(--results-text);
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

.card-results {
  border-radius: 30px;
}

.theme-dark .card-results {
  --results-bg: #071321;
  --results-panel: rgba(13, 29, 49, 0.74);
  --results-panel-2: rgba(15, 35, 59, 0.72);
  --results-line: rgba(118, 157, 211, 0.24);
  --results-text: #f7fbff;
  --results-muted: #a9bdd8;
  --results-accent: #4a97ff;
  --results-accent-2: #236dff;
  background:
    radial-gradient(620px 260px at 8% 8%, rgba(54, 111, 220, 0.22), transparent 64%),
    radial-gradient(820px 380px at 92% 2%, rgba(20, 68, 134, 0.17), transparent 62%),
    linear-gradient(180deg, #08182d 0%, #071321 100%);
}

body:not(.theme-dark) .card-results:not(.has-results) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.96) 100%);
  box-shadow:
    0 28px 62px rgba(54, 91, 145, 0.13),
    0 12px 28px rgba(15, 23, 42, 0.05);
}

.card-results .results-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 8px 2px 0;
  margin: 0 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.card-results:not(.has-results) .results-head {
  margin-bottom: 28px;
  padding-bottom: 30px;
}

.card-results:not(.has-results) .results-head::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 1px;
  background: color-mix(in srgb, var(--results-line) 72%, transparent);
}

.theme-dark .card-results .results-head {
  background: transparent;
  box-shadow: none;
}

.card-results .results-title-group {
  gap: 22px;
}

.results-status-orb {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 999px;
  color: #2f75ff;
  background:
    radial-gradient(circle at 50% 50%, rgba(80, 142, 255, 0.20), transparent 58%),
    rgba(35, 97, 210, 0.10);
  box-shadow:
    0 0 0 7px rgba(37, 99, 235, 0.08),
    0 16px 38px rgba(31, 111, 237, 0.26);
}

.theme-dark .results-status-orb {
  color: #91b9ff;
  background:
    radial-gradient(circle at 50% 50%, rgba(74, 151, 255, 0.22), transparent 58%),
    rgba(28, 73, 150, 0.28);
}

body:not(.theme-dark) .results-status-orb {
  color: #2563eb;
  background:
    radial-gradient(circle at 50% 50%, rgba(74, 151, 255, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(224, 237, 255, 0.84));
  box-shadow:
    0 0 0 7px rgba(37, 99, 235, 0.07),
    0 16px 34px rgba(37, 99, 235, 0.18);
}

.results-status-orb svg {
  width: 62px;
  height: 62px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(74, 151, 255, 0.34));
}

.results-status-orb circle {
  opacity: 0.74;
}

.card-results h2 {
  font-size: clamp(1.78rem, 2.35vw, 2.45rem);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: 0;
}

.card-results .results-subtitle {
  margin-top: 10px;
  color: var(--results-muted);
  font-size: clamp(0.94rem, 1.1vw, 1.08rem);
  font-weight: 650;
  line-height: 1.35;
}

.results-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 218px;
  min-height: 66px;
  padding: 0 28px;
  border: 1px solid rgba(94, 170, 255, 0.62);
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 850;
  background: linear-gradient(180deg, rgba(78, 160, 255, 0.95), rgba(28, 93, 242, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 18px 34px rgba(28, 93, 242, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.results-strip-view-btn {
  min-width: 212px;
  min-height: 58px;
  gap: 14px;
}

.results-view-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 22px 42px rgba(28, 93, 242, 0.30);
}

.results-view-btn svg,
.results-download-btn svg,
.results-workload-icon svg,
.results-shield svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.results-view-btn svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.5;
}

.card-results:not(.has-results) .results-head {
  display: none;
}

.card-results:not(.has-results) {
  padding: 0;
}

.card-results #results-empty {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  align-content: stretch;
  gap: 18px;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(14px, 1.8vw, 28px) clamp(28px, 4.2vw, 68px);
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  color: #11213d;
  text-align: center;
  background: transparent;
  box-shadow: none;
}

.card-results #results-empty.has-estimate {
  grid-template-rows: auto auto;
  align-content: center;
  gap: clamp(20px, 2.4vw, 34px);
  padding-block: clamp(28px, 3vw, 44px);
}

.card-results #results-empty[hidden] {
  display: none !important;
}

.results-idle-hero {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: clamp(6px, 0.9vw, 12px);
  width: 100%;
  max-width: 590px;
  margin: 0 auto;
}

.results-idle-illustration {
  display: block;
  width: clamp(132px, 11.5vw, 190px);
  height: auto;
  margin: 0 0 clamp(0px, 0.35vw, 4px);
  border-radius: 0;
  filter:
    drop-shadow(0 16px 24px rgba(60, 111, 218, 0.10))
    drop-shadow(0 3px 8px rgba(83, 126, 211, 0.08));
}

.results-idle-illustration-dark {
  display: none;
}

.theme-dark .results-idle-illustration-light {
  display: none;
}

.theme-dark .results-idle-illustration-dark {
  display: block;
  filter:
    drop-shadow(0 18px 28px rgba(43, 120, 255, 0.18))
    drop-shadow(0 2px 8px rgba(104, 170, 255, 0.10));
}

.card-results #results-empty.has-estimate .results-idle-illustration {
  width: clamp(96px, 8.5vw, 140px);
}

.results-idle-hero h3 {
  margin: 0;
  color: #0e2349;
  font-size: clamp(1.5rem, 2.1vw, 2.12rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.card-results #results-empty.has-estimate .results-idle-hero h3 {
  font-size: clamp(1.24rem, 1.65vw, 1.72rem);
}

.results-idle-hero p {
  max-width: 510px;
  margin: 0;
  color: #5f6f93;
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-weight: 650;
  line-height: 1.36;
}

#results-idle-model-name {
  color: #1275f4;
  font-weight: 900;
}

#results-idle-model-meta {
  color: #5f6f93;
  font-weight: 650;
}

.results-idle-security {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 16px;
  width: min(420px, 90%);
  margin-top: clamp(8px, 1.2vw, 16px);
  padding: 12px 18px;
  border: 1.5px dashed rgba(83, 143, 246, 0.34);
  border-radius: 13px;
  text-align: left;
  background: rgba(255, 255, 255, 0.50);
}

.results-idle-security-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #116ff2;
  background: linear-gradient(180deg, rgba(242, 247, 255, 0.96), rgba(221, 234, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 18px rgba(38, 104, 225, 0.08);
}

.results-idle-security-icon svg {
  display: block;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.results-idle-security-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #35de73;
  box-shadow: 0 0 0 3px rgba(53, 222, 115, 0.10);
}

.results-idle-security-copy strong,
.results-idle-security-copy span {
  display: block;
}

.results-idle-security-copy strong {
  color: #173264;
  font-size: clamp(0.84rem, 0.92vw, 0.92rem);
  font-weight: 900;
  line-height: 1.2;
}

.results-idle-security-copy span {
  margin-top: 5px;
  color: #51658b;
  font-size: clamp(0.78rem, 0.86vw, 0.86rem);
  font-weight: 650;
  line-height: 1.25;
}

.results-idle-estimate {
  align-self: end;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 28px 24px;
  border: 1px solid rgba(112, 143, 194, 0.28);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(249, 252, 255, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 34px rgba(42, 70, 116, 0.06);
}

.results-idle-estimate[hidden] {
  display: none !important;
}

.results-idle-summary {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1fr 1fr;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 0 4px 18px;
  border: 0;
  border-bottom: 1px solid rgba(120, 145, 184, 0.28);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.results-idle-metric {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  min-height: 54px;
  padding: 0 20px;
  text-align: left;
}

.results-idle-metric + .results-idle-metric {
  border-left: 1px solid rgba(120, 145, 184, 0.34);
}

.results-idle-metric.featured {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding-left: 0;
}

.results-idle-metric-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #2b6df7;
  background:
    radial-gradient(circle at 50% 40%, rgba(91, 143, 255, 0.14), transparent 60%),
    rgba(233, 241, 255, 0.92);
}

.results-idle-metric-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.results-idle-metric-label {
  display: block;
  color: #667899;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.results-idle-metric .results-idle-metric-value {
  display: block;
  margin-top: 0;
  color: #102447;
  font-size: clamp(1.12rem, 1.22vw, 1.28rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
}

.results-idle-metric.featured .results-idle-metric-value {
  font-size: clamp(1.12rem, 1.22vw, 1.28rem);
}

.results-idle-translate-btn {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 148px;
  min-height: 46px;
  padding: 0 28px;
  border: 1px solid rgba(91, 145, 255, 0.66);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 850;
  background: linear-gradient(180deg, #3f87ff, #155fe9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 12px 24px rgba(30, 98, 235, 0.25);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.results-idle-translate-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 16px 30px rgba(30, 98, 235, 0.31);
}

.results-idle-translate-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.results-idle-translate-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-dark .card-results #results-empty {
  color: #e4edff;
  background: transparent;
  box-shadow: none;
}

.theme-dark .results-idle-hero h3,
.theme-dark .results-idle-metric-value,
.theme-dark .results-idle-security-copy strong {
  color: #eef5ff;
}

.theme-dark .results-idle-hero p,
.theme-dark .results-idle-metric-label,
.theme-dark .results-idle-security-copy span {
  color: #9fb4d2;
}

.theme-dark #results-idle-model-name {
  color: #6aa7ff;
}

.theme-dark #results-idle-model-meta {
  color: #9fb4d2;
}

.theme-dark .results-idle-estimate {
  border-color: rgba(124, 166, 229, 0.22);
  background: rgba(10, 25, 44, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.theme-dark .results-idle-security {
  border-color: rgba(124, 166, 229, 0.22);
  background: rgba(10, 25, 44, 0.60);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.theme-dark .results-idle-summary {
  border-bottom-color: rgba(137, 168, 216, 0.20);
}

.theme-dark .results-idle-security-icon,
.theme-dark .results-idle-metric-icon {
  color: #8cb5ff;
  background: rgba(47, 109, 246, 0.14);
}

.theme-dark .results-idle-metric + .results-idle-metric {
  border-left-color: rgba(137, 168, 216, 0.20);
}

.card-results #results-wrap[hidden],
.results-dashboard[hidden] {
  display: none !important;
}

.results-dashboard {
  display: grid;
  gap: 28px;
  overflow: auto;
  padding-right: 2px;
}

.results-metric-panels {
  display: grid;
  grid-template-columns: 1.04fr 1.16fr 1fr;
  gap: 18px;
}

.results-dashboard-panel {
  min-width: 0;
  min-height: 244px;
  padding: 24px 24px;
  border: 1px solid var(--results-line);
  border-radius: 20px;
  background:
    radial-gradient(340px 220px at 16% 0%, rgba(255, 255, 255, 0.08), transparent 64%),
    linear-gradient(180deg, var(--results-panel), color-mix(in srgb, var(--results-panel-2) 88%, transparent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 34px rgba(2, 8, 23, 0.10);
}

body:not(.theme-dark) .results-dashboard-panel {
  background:
    radial-gradient(320px 180px at 16% 0%, rgba(72, 166, 255, 0.12), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 255, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 32px rgba(54, 91, 145, 0.10);
}

.theme-dark .results-dashboard-panel {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 42px rgba(0, 0, 0, 0.15);
}

.results-dashboard-panel h3 {
  margin: 0 0 22px;
  color: color-mix(in srgb, var(--results-text) 84%, var(--results-muted));
  font-size: 1.04rem;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: 0;
}

.results-stat-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.results-stat-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  min-height: 38px;
  padding: 7px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--results-line) 58%, transparent);
}

.results-stat-list div:last-child,
.results-stat-list .results-progress-row {
  border-bottom: 0;
}

.results-stat-list dt {
  color: var(--results-muted);
  font-size: 0.94rem;
  font-weight: 780;
  line-height: 1.2;
}

.results-stat-list dd {
  margin: 0;
  color: var(--results-text);
  font-size: 1.24rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.results-stat-list-large {
  gap: 4px;
}

.results-stat-list-large div {
  min-height: 52px;
}

.results-stat-list-large dd {
  font-size: 1.45rem;
}

.results-dashboard .insight-bar {
  height: 10px;
  background: rgba(116, 137, 169, 0.16);
  box-shadow: inset 0 1px 2px rgba(2, 8, 23, 0.18);
}

.results-dashboard .insight-bar span {
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.32);
}

.results-density-detail {
  margin: 5px 0 17px;
  color: var(--results-muted);
  font-size: 0.94rem;
  font-weight: 780;
}

.results-workload-list {
  display: grid;
  gap: 0;
}

.results-workload-list > div {
  display: grid;
  grid-template-columns: 24px auto auto;
  align-items: center;
  gap: 7px;
  min-height: 72px;
  border-bottom: 1px solid color-mix(in srgb, var(--results-line) 58%, transparent);
}

.results-workload-list > div:last-child {
  border-bottom: 0;
}

.results-workload-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: color-mix(in srgb, var(--results-text) 72%, var(--results-muted));
}

body:not(.theme-dark) .results-workload-icon {
  color: #315d9d;
}

.results-workload-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.results-workload-list strong {
  color: var(--results-text);
  font-size: 1.16rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  white-space: nowrap;
}

.results-workload-list span:last-child {
  justify-self: start;
  color: var(--results-muted);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.results-success-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 132px;
  padding: 24px 34px;
  border: 1px solid var(--results-line);
  border-radius: 20px;
  background:
    radial-gradient(260px 160px at 7% 50%, rgba(43, 107, 232, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(13, 32, 54, 0.18), rgba(10, 25, 42, 0.10)),
    color-mix(in srgb, var(--results-panel) 82%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body:not(.theme-dark) .results-success-strip {
  background:
    radial-gradient(260px 160px at 7% 50%, rgba(37, 99, 235, 0.10), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(239, 246, 255, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 16px 30px rgba(54, 91, 145, 0.10);
}

.results-shield {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  color: #8db4ff;
  filter: drop-shadow(0 0 16px rgba(74, 151, 255, 0.26));
}

body:not(.theme-dark) .results-shield {
  color: #2563eb;
  filter: drop-shadow(0 0 14px rgba(37, 99, 235, 0.18));
}

body:not(.theme-dark) .results-shield path:first-child {
  fill: rgba(37, 99, 235, 0.08);
}

.results-shield svg {
  width: 80px;
  height: 80px;
  stroke-width: 3;
}

.results-shield path:first-child {
  fill: rgba(32, 85, 176, 0.14);
}

.results-success-strip h3 {
  margin: 0;
  color: var(--results-text);
  font-size: 1.28rem;
  line-height: 1.18;
  font-weight: 850;
}

.results-success-strip p {
  margin: 8px 0 0;
  color: var(--results-muted);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 680;
}

.results-success-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.results-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 212px;
  min-height: 58px;
  padding: 0 24px;
  border: 1px solid var(--results-line);
  border-radius: 14px;
  color: color-mix(in srgb, var(--results-text) 74%, var(--results-muted));
  background: rgba(8, 20, 35, 0.18);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 820;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.results-download-btn:not(:disabled):hover {
  transform: translateY(-1px);
  color: var(--results-text);
  border-color: color-mix(in srgb, var(--results-accent) 56%, var(--results-line));
  background: rgba(28, 93, 242, 0.14);
}

.results-download-btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.results-download-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.25;
}

.results-app {
  max-width: 1520px;
}

.results-page-main {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.results-page.is-main {
  min-height: 100vh;
  overflow: auto;
}

.results-page.is-main .app,
.results-page .app {
  display: block;
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.results-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px 4px;
}

.results-page-head h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.results-page-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.premium-download-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(304px, 100%);
  min-height: 58px;
  padding: 8px 22px 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(45, 212, 255, 0.72);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(2, 8, 23, 0.26);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0;
  background:
    radial-gradient(100px 80px at 16% 20%, rgba(56, 189, 248, 0.68), transparent 70%),
    linear-gradient(180deg, #0d8fff 0%, #0759de 48%, #0635b7 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(4, 31, 127, 0.58),
    0 0 0 2px rgba(29, 155, 255, 0.14),
    0 14px 26px rgba(29, 78, 216, 0.24),
    0 0 26px rgba(14, 165, 233, 0.20);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.premium-download-btn::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border: 1px solid rgba(147, 197, 253, 0.50);
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 38%),
    linear-gradient(90deg, rgba(56, 189, 248, 0.28), rgba(29, 78, 216, 0) 38%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -18px 36px rgba(3, 7, 90, 0.18);
}

.premium-download-btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.82), rgba(59, 130, 246, 0.14), rgba(34, 211, 238, 0.70));
  filter: blur(8px);
  opacity: 0.42;
}

.premium-download-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(125, 211, 252, 0.50);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 20%, rgba(125, 211, 252, 0.36), transparent 52%),
    linear-gradient(180deg, rgba(14, 165, 233, 0.46), rgba(29, 78, 216, 0.44));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -16px 28px rgba(3, 7, 90, 0.20),
    0 10px 22px rgba(3, 7, 90, 0.24);
}

.premium-download-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 0 rgba(2, 8, 23, 0.18));
}

.premium-download-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.03);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.36),
    inset 0 -2px 0 rgba(4, 31, 127, 0.58),
    0 0 0 2px rgba(29, 155, 255, 0.20),
    0 17px 30px rgba(29, 78, 216, 0.28),
    0 0 34px rgba(14, 165, 233, 0.26);
}

.premium-download-btn:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.52);
  outline-offset: 5px;
}

.results-kicker {
  margin: 0 0 10px !important;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.results-page-summary {
  grid-template-columns: repeat(8, minmax(112px, 1fr));
}

.results-workbook-shell {
  display: grid;
  gap: 16px;
}

.results-metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  overflow: hidden;
  border: 1px solid rgba(31, 59, 115, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 252, 0.94)),
    #f8fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 18px 42px rgba(31, 59, 115, 0.10);
}

.results-metric-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 14px 16px;
  color: var(--text);
  border-right: 1px solid rgba(31, 59, 115, 0.12);
}

.results-metric-item:last-child {
  border-right: 0;
}

.results-metric-item svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.results-metric-item.metric-warn svg {
  stroke: #f59e0b;
}

.results-metric-item strong {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.results-metric-item span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
}

.results-preview-panel {
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(31, 59, 115, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(720px 260px at 20% -10%, rgba(45, 111, 194, 0.10), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.96)),
    #f8fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 24px 58px rgba(31, 59, 115, 0.12);
}

.results-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(31, 59, 115, 0.14);
}

.results-preview-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.results-preview-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(31, 59, 115, 0.16);
  border-radius: 10px;
  color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(237, 244, 252, 0.84)),
    #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.results-preview-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.results-preview-toolbar h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.1;
}

.results-preview-toolbar p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.results-preview-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.results-search {
  display: grid;
  grid-template-columns: 18px minmax(120px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 230px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(31, 59, 115, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
}

.results-search svg,
.results-columns-menu summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.results-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.results-search input::placeholder {
  color: var(--muted);
}

.results-columns-menu {
  position: relative;
}

.results-columns-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(31, 59, 115, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

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

.results-columns-menu .chevron {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.results-columns-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  display: grid;
  gap: 8px;
  min-width: 210px;
  padding: 12px;
  border: 1px solid rgba(31, 59, 115, 0.16);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(31, 59, 115, 0.16);
}

.results-column-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 30px;
  cursor: pointer;
}

.results-column-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #59d4bc;
}

.results-column-option span {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-page-errors {
  margin: 0;
}

.results-page-table-card {
  grid-column: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.results-page-table-card .results-head {
  margin-bottom: 18px;
}

.results-page-table-wrap {
  max-height: min(68vh, 760px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.results-preview-panel .results-page-table-wrap {
  margin: 0;
  border-color: rgba(31, 59, 115, 0.16);
  border-top: 2px solid rgba(29, 78, 216, 0.34);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.results-polished-table {
  border-collapse: separate;
  border-spacing: 0;
}

.results-polished-table th,
.results-polished-table td {
  border-bottom: 1px solid rgba(31, 59, 115, 0.12);
  color: var(--text);
}

.results-polished-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 15px 18px;
  border-top: 1px solid rgba(29, 78, 216, 0.16);
  background: #edf4fb;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
}

.results-polished-table td {
  height: 82px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.5;
  vertical-align: top;
}

.results-polished-table tbody tr:nth-child(even) td {
  background: rgba(246, 250, 255, 0.92);
}

.results-polished-table tbody tr:hover td {
  background: rgba(232, 241, 253, 0.96);
}

.results-polished-table .col-row-number {
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  color: var(--muted);
  white-space: nowrap;
}

.results-polished-table .cell-preview-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.results-polished-table tr.is-filtered {
  display: none;
}

.results-polished-table .is-column-hidden {
  display: none;
}

.theme-dark .results-metric-strip {
  border-color: rgba(70, 118, 177, 0.34);
  background:
    linear-gradient(180deg, rgba(16, 38, 67, 0.96), rgba(8, 23, 42, 0.98)),
    #08172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 52px rgba(2, 8, 23, 0.26);
}

.theme-dark .results-metric-item {
  color: #eaf3ff;
  border-right-color: rgba(70, 118, 177, 0.24);
}

.theme-dark .results-metric-item svg {
  stroke: #59d4bc;
}

.theme-dark .results-metric-item.metric-warn svg {
  stroke: #f59e0b;
}

.theme-dark .results-metric-item strong {
  color: #f8fbff;
}

.theme-dark .results-metric-item span {
  color: #8fa8c7;
}

.theme-dark .results-preview-panel {
  border-color: rgba(70, 118, 177, 0.38);
  background:
    radial-gradient(720px 260px at 20% -10%, rgba(45, 111, 194, 0.24), transparent 64%),
    linear-gradient(180deg, #0d2340, #07182d 52%, #061526),
    #07182d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 28px 68px rgba(2, 8, 23, 0.30);
}

.theme-dark .results-preview-toolbar {
  border-bottom-color: rgba(70, 118, 177, 0.28);
}

.theme-dark .results-preview-icon {
  border-color: rgba(70, 118, 177, 0.36);
  color: #59d4bc;
  background:
    linear-gradient(180deg, rgba(35, 82, 134, 0.42), rgba(8, 24, 44, 0.52)),
    #0a1d35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.theme-dark .results-preview-toolbar h2 {
  color: #f8fbff;
}

.theme-dark .results-preview-toolbar p {
  color: #91a9c8;
}

.theme-dark .results-search,
.theme-dark .results-columns-menu summary {
  border-color: rgba(70, 118, 177, 0.28);
  background: rgba(8, 24, 44, 0.72);
  color: #dce9fa;
}

.theme-dark .results-search input {
  color: #f8fbff;
}

.theme-dark .results-search input::placeholder {
  color: #7f98b8;
}

.theme-dark .results-columns-menu .chevron {
  color: #8fa8c7;
}

.theme-dark .results-columns-popover {
  border-color: rgba(70, 118, 177, 0.34);
  background: #0a1d35;
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.42);
}

.theme-dark .results-column-option span {
  color: #dce9fa;
}

.theme-dark .results-preview-panel .results-page-table-wrap {
  border-color: rgba(70, 118, 177, 0.30);
  border-top-color: rgba(89, 212, 188, 0.40);
  background: #07182d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.theme-dark .results-polished-table th,
.theme-dark .results-polished-table td {
  border-bottom-color: rgba(70, 118, 177, 0.20);
  color: #eaf3ff;
}

.theme-dark .results-polished-table th {
  border-top-color: rgba(89, 212, 188, 0.22);
  background: #0b2039;
  color: #a9bdd8;
}

.theme-dark .results-polished-table td {
  background: rgba(7, 24, 45, 0.86);
  color: #eef6ff;
}

.theme-dark .results-polished-table tbody tr:nth-child(even) td {
  background: rgba(8, 28, 52, 0.84);
}

.theme-dark .results-polished-table tbody tr:hover td {
  background: rgba(20, 55, 92, 0.82);
}

.theme-dark .results-polished-table .col-row-number {
  color: #bdd0e8;
}

td.ngram-text {
  white-space: normal;
}


.stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.stat-line strong {
  color: var(--text);
  font-weight: 700;
}

th {
  color: var(--results-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: var(--results-panel-2);
}

.ngram-text {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 700;
}

tr:hover td {
  background: color-mix(in srgb, var(--results-accent) 8%, transparent);
}

tbody tr.coverage-highlight td {
  background: color-mix(
    in srgb,
    var(--results-accent) calc(16% * var(--highlight-strength)),
    var(--results-panel)
  );
}

tbody tr.coverage-highlight td:first-child {
  box-shadow: inset 3px 0 0 var(--results-accent);
}

.rank-pill {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--results-text);
  font-size: 0.98rem;
  font-weight: 800;
  background: linear-gradient(135deg, color-mix(in srgb, var(--results-accent) 72%, white), color-mix(in srgb, var(--results-accent-2) 20%, transparent));
  border: 1px solid color-mix(in srgb, var(--results-line) 70%, transparent);
}

tbody tr.coverage-highlight .rank-pill {
  background: color-mix(
    in srgb,
    var(--results-accent) calc(72% * var(--highlight-strength)),
    var(--results-panel)
  );
}

tbody tr:not(.coverage-highlight) .rank-pill {
  color: var(--results-muted);
  background: color-mix(in srgb, var(--results-line) 28%, transparent);
}

.coverage-cell {
  display: grid;
  grid-template-columns: minmax(62px, 76px) minmax(34px, 1fr);
  align-items: center;
  gap: 10px;
}

.coverage-pill {
  display: inline-flex;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 12px;
  color: var(--results-text);
  font-size: 0.88rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--results-panel) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--results-line) 72%, transparent);
}

.coverage-track {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--results-line) 42%, transparent);
  overflow: hidden;
}

.coverage-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--results-accent-2), var(--results-accent));
}

.paired-cards {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.paired-card {
  position: relative;
  min-height: 0;
  height: auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(420px 160px at 0% 0%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 72%, var(--surface)));
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 12px;
}

.card-results .paired-card {
  border-color: color-mix(in srgb, var(--results-line) 78%, transparent);
  background:
    radial-gradient(420px 160px at 0% 0%, color-mix(in srgb, var(--results-accent) 10%, transparent), transparent 60%),
    color-mix(in srgb, var(--results-panel) 84%, transparent);
}

.theme-dark .paired-card {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

.paired-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.paired-index {
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 999px;
  padding: 5px 10px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.card-results .paired-index {
  color: var(--results-text);
  background: color-mix(in srgb, var(--results-accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--results-line) 78%, transparent);
}

.paired-score strong {
  color: var(--accent);
}

.card-results .paired-score,
.card-results .paired-score strong {
  color: var(--results-text);
}

.paired-relationship {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.paired-side {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.card-results .paired-side {
  border-color: color-mix(in srgb, var(--results-line) 72%, transparent);
  background: color-mix(in srgb, var(--results-bg) 72%, transparent);
}

.theme-dark .paired-side {
  background: rgba(255, 255, 255, 0.035);
}

.paired-connector {
  position: relative;
  align-self: center;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), var(--accent), color-mix(in srgb, var(--accent) 10%, transparent));
}

.paired-connector::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.paired-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.paired-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--surface-2);
}

.card-results .paired-label {
  color: var(--results-muted);
  border-color: color-mix(in srgb, var(--results-line) 74%, transparent);
  background: color-mix(in srgb, var(--results-line) 22%, transparent);
}

.paired-col {
  font-weight: 700;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-results .paired-col {
  color: var(--results-text);
}

.paired-size {
  font-size: 0.82rem;
  color: var(--muted);
}

.card-results .paired-size,
.card-results .paired-stats {
  color: var(--results-muted);
}

.paired-gram {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text);
  word-break: break-word;
}

.card-results .paired-gram {
  color: var(--results-text);
}

.paired-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.paired-stat strong {
  color: var(--text);
  margin-left: 6px;
}

.card-results .paired-stat strong {
  color: var(--results-text);
}

.paired-empty {
  color: var(--muted);
  padding: 8px 4px;
}

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

  .auth-info-panel,
  .auth-form-panel {
    padding: 42px;
  }

  .auth-info-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(215, 222, 234, 0.72);
  }

  .theme-dark .auth-info-panel {
    border-bottom-color: rgba(124, 192, 255, 0.16);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.035);
  }

  .auth-info-copy h1 {
    max-width: 16ch;
  }

  .auth-feature-list {
    gap: 24px;
  }

  body:not(.is-main) .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  body:not(.is-main) .topbar-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  body:not(.is-main) .topbar-main {
    flex: 1 1 300px;
    min-width: 0;
  }

  body:not(.is-main) .engine-switch {
    width: 100%;
    flex-wrap: wrap;
  }

  body:not(.is-main) .engine-switch .pill-btn {
    flex: 1 1 120px;
  }

  .free-tier-card {
    flex-wrap: wrap;
    gap: 18px 24px;
  }

  .free-tier-plan {
    min-width: 220px;
  }

  .free-tier-meter {
    flex: 1 1 460px;
  }

  .free-tier-pill {
    grid-template-columns: 34px max-content minmax(150px, 1fr) max-content;
    gap: 18px;
  }

  .plans-app {
    padding: 10px;
  }

  .is-main .plans-app {
    padding-bottom: 10px;
  }

  .plans-shell {
    min-height: calc(100vh - 20px);
  }

  .plans-page .plans-shell {
    min-height: 0;
  }

  .plans-topbar {
    padding: 22px 34px;
  }

  .plans-page .plans-main {
    padding: 0 28px 32px;
  }

  .plans-page .plans-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 388px;
    padding: 28px 48px 16px;
  }

  .plans-page .plans-hero-art {
    inset: 124px -48px 6px 18%;
    width: auto;
    min-height: 0;
    margin: 0;
  }

  .plans-page .plans-hero-image {
    object-position: center;
  }

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

  .plans-page .plans-credit-strip {
    grid-template-columns: 1fr;
  }

  .credit-strip-item + .credit-strip-item {
    border-left: 0;
    border-top: 1px solid rgba(122, 149, 192, 0.20);
  }

  .theme-dark .credit-strip-item + .credit-strip-item {
    border-top-color: rgba(124, 192, 255, 0.14);
  }

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

  .brand {
    min-width: 0;
  }

  .layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .checkbox-list { grid-template-columns: 1fr; }
  .stack { position: static; }

  .is-main {
    min-height: 100vh;
    overflow: auto;
  }

  .is-main .app {
    display: block;
    height: auto;
    min-height: 100vh;
    padding-bottom: 70px;
  }

  .is-main .view-stage {
    height: auto !important;
    overflow: visible;
  }

  .is-main .layout {
    height: auto;
  }

  .is-main .layout::before {
    display: none;
  }

  .stack,
  .card-results {
    grid-column: auto;
  }

  .is-main .stack,
  .is-main .card-results {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 980px) {
  .engine-switch .pill-btn {
    flex: 1 1 120px;
  }

  .free-tier-card {
    align-items: stretch;
    padding: 18px 22px;
  }

  .free-tier-meter {
    order: 3;
    flex-basis: 100%;
  }

  .free-tier-pill {
    width: 100%;
  }

  .plans-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .plans-nav {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .plans-page .plans-hero-copy h1 {
    font-size: 2rem;
  }

  .plans-page .plans-hero-copy p {
    font-size: 1rem;
  }

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

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

  .results-metric-item {
    border-right: 0;
    border-bottom: 1px solid rgba(31, 59, 115, 0.12);
  }

  .results-metric-item:last-child {
    border-bottom: 0;
  }

  .theme-dark .results-metric-item {
    border-bottom-color: rgba(70, 118, 177, 0.22);
  }

  .results-page-head,
  .results-open-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .premium-download-btn {
    width: 100%;
  }

  .results-preview-toolbar,
  .results-preview-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .results-search {
    min-width: 0;
  }

  .results-insights {
    grid-template-columns: 1fr;
  }

  .results-metric-panels {
    grid-template-columns: 1fr;
  }

  .results-success-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .results-success-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .results-download-btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .results-metric-strip {
    grid-template-columns: 1fr;
  }

  .results-metric-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(31, 59, 115, 0.12);
  }

  .card-results .results-head {
    gap: 18px;
  }

  .card-results .results-title-group {
    align-items: flex-start;
  }

  .results-status-orb {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .results-status-orb svg {
    width: 50px;
    height: 50px;
  }

  .results-view-btn {
    width: 100%;
    min-width: 0;
  }

  .results-success-strip {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .results-shield {
    width: 74px;
    height: 74px;
  }

  .results-shield svg {
    width: 66px;
    height: 66px;
  }

  .theme-dark .results-metric-item:nth-last-child(-n + 2) {
    border-bottom-color: rgba(70, 118, 177, 0.22);
  }

  .results-metric-item:last-child {
    border-bottom: 0;
  }

  .results-preview-panel {
    padding: 14px;
  }

  .premium-download-btn {
    gap: 12px;
    min-height: 54px;
    padding: 8px 18px 8px 9px;
    font-size: 0.94rem;
  }

  .premium-download-icon {
    width: 38px;
    height: 38px;
  }

  .premium-download-icon svg {
    width: 21px;
    height: 21px;
  }

  .paywall-overlay {
    padding: 16px;
  }

  .paywall-modal {
    width: min(100%, 560px);
    margin-top: 46px;
    padding: 96px 24px 28px;
    border-radius: 20px;
  }

  .paywall-lock {
    top: -44px;
    width: 104px;
    height: 104px;
  }

  .paywall-lock svg {
    width: 40px;
    height: 40px;
  }

  .paywall-copy .paywall-eyebrow {
    font-size: 0.78rem;
  }

  .paywall-copy h2 {
    font-size: 1.62rem;
    white-space: normal;
  }

  .paywall-copy p {
    font-size: 1rem;
  }

  .paywall-benefits {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 18px;
    margin: 30px 0;
  }

  .paywall-benefits li:last-child {
    grid-column: 1 / -1;
  }

  .paywall-actions .btn {
    min-height: 54px;
    font-size: 1rem;
  }

  .free-tier-card {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 18px;
  }

  .free-tier-plan,
  .free-tier-count {
    min-width: 0;
    white-space: normal;
  }

  .free-tier-pill {
    grid-template-columns: 28px 1fr;
    gap: 10px 14px;
    padding: 12px 14px;
  }

  .free-tier-balance-icon {
    width: 28px;
    height: 28px;
  }

  .free-tier-track,
  .free-tier-used-copy {
    grid-column: 2;
  }

  .free-tier-upgrade {
    width: 100%;
  }

  .plans-page .plans-app {
    padding: 0;
  }

  .plans-page.is-main .plans-app {
    padding-bottom: 0;
  }

  .plans-shell {
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .plans-topbar {
    min-height: 0;
    padding: 18px;
  }

  .plans-brand {
    gap: 14px;
  }

  .plans-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .plans-brand-mark svg {
    width: 34px;
    height: 34px;
  }

  .plans-brand-name {
    font-size: 1.4rem;
  }

  .plans-back,
  .plans-theme.btn.theme,
  .plans-account.account-menu summary {
    min-height: 44px;
  }

  .plans-back {
    padding: 0 14px;
  }

  .plans-theme.btn.theme {
    width: 44px;
    height: 44px;
  }

  .plans-page .plans-main {
    padding: 0 14px 28px;
  }

  .plans-page .plans-hero {
    min-height: 430px;
    padding: 22px 22px 14px;
  }

  .plans-page .plans-hero-copy h1 {
    font-size: 1.7rem;
  }

  .plans-trust-row span {
    width: 100%;
  }

  .plans-page .plans-hero-art {
    inset: 218px -150px 10px -18px;
    min-height: 0;
    transform: none;
    margin-bottom: 0;
  }

  .plans-page .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: 0;
  }

  .plans-helper-row {
    flex-wrap: wrap;
    text-align: center;
  }

  .plans-page .plans-dashboard-strip {
    grid-template-columns: 1fr;
  }

  .plans-footer-trust {
    align-items: flex-start;
    text-align: left;
  }

  .auth-app {
    padding: 18px 14px 42px;
  }

  .auth-shell {
    border-radius: 18px;
  }

  .auth-info-panel,
  .auth-form-panel {
    padding: 28px 22px;
  }

  .auth-brand-name {
    font-size: 2rem;
  }

  .auth-info-copy h1 {
    font-size: 2.25rem;
    line-height: 1.16;
  }

  .auth-info-copy p,
  .auth-feature p,
  .auth-heading p {
    font-size: 1rem;
  }

  .auth-feature {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
  }

  .auth-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .auth-feature h2 {
    font-size: 1rem;
  }

  .auth-heading {
    margin-bottom: 34px;
  }

  .auth-heading h2 {
    font-size: 2rem;
  }

  .auth-input-wrap input {
    height: 58px;
    padding: 0 50px;
    font-size: 1rem;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .auth-submit {
    min-height: 60px;
  }

  .account-name {
    display: none;
  }

  .account-page-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .account-settings-card,
  .account-settings-panel {
    width: 100%;
    padding: 28px 22px 24px;
  }

  .account-usage-head {
    flex-direction: column;
  }

  .account-usage-grid,
  .account-usage-grid.pro {
    grid-template-columns: 1fr;
  }

  .account-hero-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-hero-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1rem;
  }

  .account-identity h1 {
    font-size: 2rem;
  }

  .card-results .results-head {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .results-title-group,
  .results-toolbar {
    width: 100%;
  }

  .results-action-dock {
    width: 100%;
  }

  .results-tabs {
    min-width: 0;
  }

  .results-download {
    justify-self: end;
  }

  .paired-relationship {
    grid-template-columns: 1fr;
  }

  .paired-connector {
    width: 2px;
    height: 24px;
    justify-self: center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), var(--accent), color-mix(in srgb, var(--accent) 10%, transparent));
  }

  .paired-connector::after {
    top: auto;
    right: 50%;
    bottom: 1px;
    transform: translateX(50%) rotate(135deg);
  }
}

/* Cinematic translation results page */
body.results-cinematic {
  --results-bg: #071327;
  --results-bg-2: #0a1d39;
  --results-panel: rgba(13, 31, 58, 0.72);
  --results-panel-strong: rgba(13, 35, 66, 0.84);
  --results-line: rgba(85, 143, 207, 0.22);
  --results-line-strong: rgba(99, 178, 255, 0.34);
  --results-text: #f7fbff;
  --results-muted: #a8b8d3;
  --results-teal: #59d4bc;
  --results-blue: #4b8dff;
  --results-warn: #f4a928;
  min-height: 100vh;
  color: var(--results-text);
  background:
    radial-gradient(900px 520px at 55% -10%, rgba(47, 113, 255, 0.30), transparent 64%),
    radial-gradient(720px 420px at 90% 12%, rgba(18, 89, 220, 0.22), transparent 68%),
    linear-gradient(180deg, #071327 0%, #061327 48%, #07172b 100%);
  overflow-x: hidden;
}

body.results-cinematic::before,
body.results-cinematic::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.results-cinematic::before {
  background:
    radial-gradient(2px 2px at 22% 10%, rgba(124, 192, 255, 0.32), transparent 70%),
    radial-gradient(1px 1px at 50% 7%, rgba(255, 255, 255, 0.24), transparent 70%),
    radial-gradient(1px 1px at 68% 18%, rgba(124, 192, 255, 0.28), transparent 70%),
    radial-gradient(1px 1px at 82% 9%, rgba(255, 255, 255, 0.20), transparent 70%);
}

body.results-cinematic::after {
  display: none;
}

.results-cinematic .results-app {
  position: relative;
  z-index: 1;
  max-width: 1520px;
  padding: 28px 24px 52px;
}

body.results-page.results-cinematic .results-topbar {
  position: relative;
  z-index: 30;
  justify-content: space-between;
  min-height: 116px;
  margin-bottom: 28px;
  padding: 24px 28px;
  border: 2px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 20px;
  background:
    linear-gradient(112deg,
      color-mix(in srgb, var(--surface) 94%, var(--accent-soft)),
      color-mix(in srgb, var(--surface-2) 72%, var(--accent-soft)) 58%,
      color-mix(in srgb, var(--surface) 86%, var(--accent-soft))
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 22px 48px var(--accent-shadow),
    var(--shadow-2);
  background-clip: padding-box;
  overflow: visible;
}

.results-cinematic .results-topbar .brand {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 280px;
}

.results-cinematic .results-topbar .brand .subtitle {
  display: block;
}

body.theme-dark.results-page.results-cinematic .results-topbar {
  border-color: rgba(124, 192, 255, 0.18);
  background:
    linear-gradient(112deg,
      color-mix(in srgb, var(--surface) 92%, #020617),
      color-mix(in srgb, var(--surface-2) 78%, var(--accent-soft)) 58%,
      color-mix(in srgb, var(--surface) 86%, #020617)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.34),
    var(--shadow-2);
}

.results-cinematic .results-topbar .title {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.results-cinematic .results-topbar .subtitle {
  margin-top: 7px;
  font-size: 1rem;
}

body.results-page.results-cinematic .results-topbar .topbar-actions {
  position: relative;
  z-index: 35;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.results-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.results-back-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, rgba(15, 23, 42, 0.08));
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 12px 22px rgba(37, 99, 235, 0.10);
}

.results-back-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  outline-offset: 2px;
}

.results-back-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-dark.results-cinematic .results-back-btn {
  color: #d8e8ff;
  background: rgba(15, 23, 42, 0.50);
  border-color: rgba(124, 192, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.theme-dark.results-cinematic .results-back-btn:hover {
  color: #ffffff;
  border-color: rgba(124, 192, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 24px rgba(37, 99, 235, 0.18);
}

.results-cinematic .results-topbar .account-name {
  display: inline;
}

body.theme-dark.results-page.results-cinematic .results-topbar .topbar-actions {
  background: transparent;
}

.results-cinematic .results-topbar .account-menu {
  z-index: 60;
}

.results-cinematic .results-topbar .account-popover {
  z-index: 120;
}

.results-cinematic .results-page-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  margin: 0;
}

.results-cinematic .results-page-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  min-height: 250px;
  padding: 38px 46px;
  overflow: hidden;
  border: 1px solid rgba(73, 125, 190, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(5, 14, 29, 0.66) 0%, rgba(5, 14, 29, 0.25) 48%, rgba(5, 14, 29, 0.32) 100%),
    linear-gradient(180deg, rgba(2, 8, 23, 0.18), rgba(2, 8, 23, 0.35)),
    url("assets/results-hero-wave.png") center center / cover no-repeat,
    #071327;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 24px 58px rgba(0, 0, 0, 0.18);
}

.results-cinematic .results-page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 180px at 58% 57%, rgba(40, 116, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%);
  opacity: 1;
  pointer-events: none;
}

.results-cinematic .results-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-top: 2px;
}

.results-cinematic .results-kicker {
  margin: 0 0 17px !important;
  color: #99b3d6;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.results-cinematic .results-page-head h1 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--results-text);
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.96;
}

.results-success-icon {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  color: #64d972;
  filter: drop-shadow(0 0 14px rgba(100, 217, 114, 0.36));
}

.results-success-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.results-ready {
  margin: 21px 0 15px;
  color: #edf5ff;
  font-size: 1.08rem;
  font-weight: 750;
}

.results-file-line,
.results-output-count {
  margin: 0;
  color: var(--results-muted);
  font-size: 1rem;
  font-weight: 700;
}

.results-file-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.results-file-line svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--results-teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(89, 212, 188, 0.30));
}

.results-output-count {
  margin-top: 10px;
}

.results-cinematic .premium-download-btn {
  position: relative;
  z-index: 2;
  justify-content: flex-start;
  gap: 22px;
  width: 334px;
  min-height: 92px;
  margin-top: 34px;
  padding: 16px 28px;
  border-color: rgba(95, 186, 255, 0.72);
  border-radius: 13px;
  background:
    radial-gradient(150px 110px at 20% 18%, rgba(91, 192, 255, 0.48), transparent 70%),
    linear-gradient(135deg, #2c86ff 0%, #1856df 48%, #182ab1 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(3, 7, 90, 0.40),
    0 0 0 1px rgba(69, 156, 255, 0.18),
    0 16px 42px rgba(19, 84, 226, 0.34);
}

.results-cinematic .premium-download-btn::before {
  inset: 0;
  border-color: rgba(158, 210, 255, 0.18);
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(90deg, rgba(94, 207, 255, 0.18), transparent 44%);
  box-shadow: none;
}

.results-cinematic .premium-download-btn::after {
  opacity: 0;
}

.results-cinematic .premium-download-icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.results-cinematic .premium-download-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.9;
}

.premium-download-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.premium-download-copy strong {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1;
}

.premium-download-copy small {
  color: rgba(216, 230, 255, 0.74);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.results-cinematic .results-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 16px 18px 16px 22px;
  border: 1px solid rgba(76, 127, 186, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(420px 160px at 8% 40%, rgba(45, 111, 194, 0.16), transparent 72%),
    linear-gradient(180deg, rgba(13, 32, 60, 0.88), rgba(8, 24, 45, 0.92)),
    rgba(8, 24, 45, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(0, 0, 0, 0.16);
}

.results-status-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  color: #c5d4ea;
  font-size: 1.02rem;
  font-weight: 720;
}

.results-status-summary strong {
  color: #72df83;
  font-size: 1.04rem;
  font-weight: 850;
  white-space: nowrap;
}

.results-status-check {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: #72df83;
  filter: drop-shadow(0 0 14px rgba(100, 217, 114, 0.30));
}

.results-status-check svg {
  width: 100%;
  height: 100%;
  fill: rgba(114, 223, 131, 0.14);
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.results-status-divider {
  width: 1px;
  height: 20px;
  flex: 0 0 auto;
  background: rgba(148, 163, 184, 0.34);
}

.results-status-file {
  max-width: min(42vw, 560px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-cinematic .results-status-download {
  width: auto;
  min-width: 236px;
  min-height: 54px;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0 24px;
  border-radius: 10px;
}

.results-cinematic .results-status-download .premium-download-icon {
  width: 24px;
  height: 24px;
}

.results-cinematic .results-status-download .premium-download-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.3;
}

.results-cinematic .results-status-download .premium-download-copy {
  display: block;
}

.results-cinematic .results-status-download .premium-download-copy strong {
  font-size: 0.98rem;
  line-height: 1;
}

.results-cinematic .results-status-download .premium-download-copy small {
  display: none;
}

.results-cinematic .results-workbook-shell {
  display: grid;
  gap: 0;
}

.results-cinematic .results-metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 20px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.results-cinematic .results-metric-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 103px;
  padding: 22px 30px;
  border: 1px solid var(--results-line);
  border-radius: 13px;
  color: var(--results-text);
  background:
    linear-gradient(180deg, rgba(20, 42, 78, 0.78), rgba(10, 27, 51, 0.78)),
    rgba(11, 29, 54, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 42px rgba(0, 0, 0, 0.16);
}

.results-cinematic .results-metric-item:last-child {
  border-right: 1px solid var(--results-line);
}

.results-cinematic .results-metric-item svg {
  width: 30px;
  height: 30px;
  stroke: var(--results-teal);
  stroke-width: 1.9;
  filter: drop-shadow(0 0 16px rgba(89, 212, 188, 0.22));
}

.results-cinematic .results-metric-item.metric-warn svg {
  stroke: var(--results-warn);
  filter: drop-shadow(0 0 14px rgba(244, 169, 40, 0.26));
}

.results-cinematic .results-metric-item strong {
  color: var(--results-text);
  font-size: 1.5rem;
  font-weight: 850;
  line-height: 1;
}

.results-cinematic .results-metric-item span {
  margin-top: 9px;
  color: var(--results-muted);
  font-size: 0.95rem;
  font-weight: 720;
}

.results-cinematic .results-preview-panel {
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--results-line-strong);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(14, 35, 66, 0.86), rgba(8, 24, 45, 0.90)),
    rgba(9, 24, 45, 0.90);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 26px 70px rgba(0, 0, 0, 0.18);
}

.results-cinematic .results-preview-toolbar {
  margin-bottom: 21px;
  padding-bottom: 0;
  border-bottom: 0;
}

.results-cinematic .results-preview-title {
  gap: 18px;
}

.results-cinematic .results-preview-icon {
  width: 52px;
  height: 52px;
  border-color: rgba(89, 212, 188, 0.28);
  border-radius: 11px;
  color: var(--results-teal);
  background:
    linear-gradient(180deg, rgba(21, 75, 91, 0.46), rgba(8, 36, 54, 0.54)),
    rgba(14, 55, 72, 0.50);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(89, 212, 188, 0.10);
}

.results-cinematic .results-preview-icon svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.9;
}

.results-cinematic .results-preview-toolbar h2 {
  color: var(--results-text);
  font-size: 1.42rem;
  font-weight: 850;
  line-height: 1;
}

.results-cinematic .results-preview-toolbar p {
  margin-top: 9px;
  color: var(--results-muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.results-cinematic .results-preview-controls {
  gap: 20px;
}

.results-cinematic .results-search,
.results-cinematic .results-columns-menu summary {
  min-height: 51px;
  border-color: rgba(76, 127, 186, 0.24);
  border-radius: 9px;
  background: rgba(7, 20, 40, 0.58);
  color: #9fb2ce;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.results-cinematic .results-search {
  grid-template-columns: 20px minmax(190px, 1fr);
  min-width: 340px;
  padding: 0 18px;
}

.results-cinematic .results-search svg,
.results-cinematic .results-columns-menu summary svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

.results-cinematic .results-search input {
  color: var(--results-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.results-cinematic .results-search input::placeholder {
  color: #7d8ea9;
}

.results-cinematic .results-columns-menu summary {
  gap: 11px;
  padding: 0 19px;
  color: #d7e4f7;
  font-size: 0.95rem;
  font-weight: 800;
}

.results-cinematic .results-columns-popover {
  min-width: 230px;
  border-color: rgba(76, 127, 186, 0.28);
  background: #081a31;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.results-cinematic .results-column-option span {
  color: #d8e4f4;
}

.results-cinematic .results-preview-panel .results-page-table-wrap {
  height: clamp(420px, calc(100vh - 360px), 760px);
  max-height: none;
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(76, 127, 186, 0.24);
  border-top: 1px solid rgba(76, 127, 186, 0.34);
  border-radius: 10px;
  background: rgba(7, 20, 39, 0.70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.results-cinematic .results-job-menu {
  position: relative;
}

.results-cinematic .results-job-popover {
  min-width: 260px;
  padding: 14px;
}

.results-job-popover dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.results-job-popover dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 36px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(76, 127, 186, 0.18);
}

.results-job-popover dl > div:last-child {
  border-bottom: 0;
}

.results-job-popover dt {
  color: #96a9c5;
  font-size: 0.78rem;
  font-weight: 780;
}

.results-job-popover dd {
  margin: 0;
  color: #e7f0ff;
  font-size: 0.86rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.results-job-popover .is-quiet dd {
  color: #9fb2ce;
}

.results-job-popover .is-warning dd {
  color: #f4a928;
}

.results-cinematic .results-page-table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.results-cinematic .results-page-table-wrap::-webkit-scrollbar-track {
  background: rgba(7, 20, 39, 0.92);
}

.results-cinematic .results-page-table-wrap::-webkit-scrollbar-thumb {
  border: 3px solid rgba(7, 20, 39, 0.92);
  border-radius: 999px;
  background: rgba(96, 149, 210, 0.48);
}

.results-cinematic .results-polished-table {
  border-collapse: separate;
  border-spacing: 0;
}

.results-cinematic .results-polished-table th,
.results-cinematic .results-polished-table td {
  border-bottom: 1px solid rgba(76, 127, 186, 0.17);
}

.results-cinematic .results-polished-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 19px 24px;
  border-top: 0;
  background: rgba(18, 42, 78, 0.96);
  color: #9fb0cd;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.results-cinematic .results-polished-table td {
  height: 88px;
  padding: 15px 24px;
  background: rgba(8, 24, 45, 0.76);
  color: #d8e2f0;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
  vertical-align: top;
}

.results-cinematic .results-polished-table tbody tr:nth-child(even) td {
  background: rgba(9, 27, 51, 0.74);
}

.results-cinematic .results-polished-table tbody tr:hover td {
  background: rgba(21, 48, 84, 0.86);
}

.results-cinematic .results-polished-table .col-row-number {
  width: 74px;
  min-width: 74px;
  max-width: 74px;
  color: #9eb1ce;
  text-align: center;
}

.results-cinematic .results-polished-table .cell-preview-text {
  -webkit-line-clamp: 3;
}

.results-cinematic .results-page-errors {
  border-color: rgba(244, 169, 40, 0.34);
  background: rgba(71, 45, 8, 0.30);
  color: #ffe8ba;
}

body.results-cinematic:not(.theme-dark) {
  --results-bg: #f5f7fc;
  --results-bg-2: #eaf0f8;
  --results-panel: rgba(255, 255, 255, 0.88);
  --results-panel-strong: rgba(255, 255, 255, 0.96);
  --results-line: rgba(31, 59, 115, 0.16);
  --results-line-strong: rgba(31, 59, 115, 0.24);
  --results-text: #0f172a;
  --results-muted: #52627b;
  color: var(--results-text);
  background:
    radial-gradient(900px 520px at 55% -10%, rgba(54, 120, 226, 0.14), transparent 64%),
    linear-gradient(180deg, #f7f9fd 0%, #edf2f9 100%);
}

body.results-cinematic:not(.theme-dark)::before {
  opacity: 0.34;
  mix-blend-mode: multiply;
}

.results-cinematic:not(.theme-dark) .results-page-head {
  border-color: rgba(31, 59, 115, 0.20);
  background:
    linear-gradient(90deg, rgba(5, 14, 29, 0.72) 0%, rgba(5, 14, 29, 0.30) 48%, rgba(5, 14, 29, 0.38) 100%),
    linear-gradient(180deg, rgba(2, 8, 23, 0.16), rgba(2, 8, 23, 0.34)),
    url("assets/results-hero-wave.png") center center / cover no-repeat,
    #071327;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(31, 59, 115, 0.16);
}

.results-cinematic:not(.theme-dark) .results-page-head h1,
.results-cinematic:not(.theme-dark) .results-ready {
  color: #f8fbff;
}

.results-cinematic:not(.theme-dark) .results-kicker {
  color: #b7c8e6;
}

.results-cinematic:not(.theme-dark) .results-file-line,
.results-cinematic:not(.theme-dark) .results-output-count {
  color: #b8c7df;
}

.results-cinematic:not(.theme-dark) .results-status-bar {
  border-color: rgba(31, 59, 115, 0.16);
  background:
    radial-gradient(420px 160px at 8% 40%, rgba(37, 99, 235, 0.10), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 252, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 42px rgba(31, 59, 115, 0.10);
}

.results-cinematic:not(.theme-dark) .results-status-summary {
  color: #52627b;
}

.results-cinematic:not(.theme-dark) .results-status-summary strong {
  color: #15803d;
}

.results-cinematic:not(.theme-dark) .results-status-check {
  color: #16a34a;
  filter: drop-shadow(0 0 12px rgba(22, 163, 74, 0.18));
}

.results-cinematic:not(.theme-dark) .results-status-check svg {
  fill: rgba(22, 163, 74, 0.10);
}

.results-cinematic:not(.theme-dark) .results-status-divider {
  background: rgba(31, 59, 115, 0.18);
}

.results-cinematic:not(.theme-dark) .results-metric-item {
  color: var(--results-text);
  border-color: rgba(31, 59, 115, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 252, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 42px rgba(31, 59, 115, 0.10);
}

.results-cinematic:not(.theme-dark) .results-metric-item:last-child {
  border-right-color: rgba(31, 59, 115, 0.16);
}

.results-cinematic:not(.theme-dark) .results-metric-item strong {
  color: #111827;
}

.results-cinematic:not(.theme-dark) .results-metric-item span {
  color: #52627b;
}

.results-cinematic:not(.theme-dark) .results-preview-panel {
  border-color: rgba(31, 59, 115, 0.22);
  background:
    radial-gradient(720px 260px at 20% -10%, rgba(45, 111, 194, 0.10), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.96)),
    #f8fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 24px 58px rgba(31, 59, 115, 0.12);
}

.results-cinematic:not(.theme-dark) .results-preview-icon {
  border-color: rgba(31, 59, 115, 0.16);
  color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(237, 244, 252, 0.84)),
    #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.results-cinematic:not(.theme-dark) .results-preview-toolbar h2 {
  color: #111827;
}

.results-cinematic:not(.theme-dark) .results-preview-toolbar p {
  color: #52627b;
}

.results-cinematic:not(.theme-dark) .results-search,
.results-cinematic:not(.theme-dark) .results-columns-menu summary {
  border-color: rgba(31, 59, 115, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: #52627b;
}

.results-cinematic:not(.theme-dark) .results-search input {
  color: #111827;
}

.results-cinematic:not(.theme-dark) .results-search input::placeholder {
  color: #66748c;
}

.results-cinematic:not(.theme-dark) .results-columns-menu summary {
  color: #111827;
}

.results-cinematic:not(.theme-dark) .results-columns-popover {
  border-color: rgba(31, 59, 115, 0.16);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(31, 59, 115, 0.16);
}

.results-cinematic:not(.theme-dark) .results-column-option span {
  color: #111827;
}

.results-cinematic:not(.theme-dark) .results-job-popover dl > div {
  border-bottom-color: rgba(31, 59, 115, 0.12);
}

.results-cinematic:not(.theme-dark) .results-job-popover dt {
  color: #52627b;
}

.results-cinematic:not(.theme-dark) .results-job-popover dd {
  color: #111827;
}

.results-cinematic:not(.theme-dark) .results-job-popover .is-quiet dd {
  color: #64748b;
}

.results-cinematic:not(.theme-dark) .results-job-popover .is-warning dd {
  color: #b45309;
}

.results-cinematic:not(.theme-dark) .results-preview-panel .results-page-table-wrap {
  border-color: rgba(31, 59, 115, 0.16);
  border-top-color: rgba(29, 78, 216, 0.28);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.results-cinematic:not(.theme-dark) .results-page-table-wrap::-webkit-scrollbar-track {
  background: #eef4fb;
}

.results-cinematic:not(.theme-dark) .results-page-table-wrap::-webkit-scrollbar-thumb {
  border-color: #eef4fb;
  background: rgba(76, 104, 148, 0.38);
}

.results-cinematic:not(.theme-dark) .results-polished-table th,
.results-cinematic:not(.theme-dark) .results-polished-table td {
  border-bottom-color: rgba(31, 59, 115, 0.12);
}

.results-cinematic:not(.theme-dark) .results-polished-table th {
  background: #edf4fb;
  color: #52627b;
}

.results-cinematic:not(.theme-dark) .results-polished-table td {
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
}

.results-cinematic:not(.theme-dark) .results-polished-table tbody tr:nth-child(even) td {
  background: rgba(246, 250, 255, 0.94);
}

.results-cinematic:not(.theme-dark) .results-polished-table tbody tr:hover td {
  background: rgba(232, 241, 253, 0.98);
}

.results-cinematic:not(.theme-dark) .results-polished-table .col-row-number {
  color: #64748b;
}

@media (max-width: 1180px) {
  .results-cinematic .results-topbar {
    align-items: center;
    flex-direction: row;
    gap: 18px;
  }

  .results-cinematic .results-topbar .brand {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
  }

  .results-cinematic .results-topbar .topbar-actions {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .results-cinematic .results-app {
    padding: 24px;
  }

  .results-cinematic .results-page-head {
    min-height: 0;
  }

  .results-cinematic .results-status-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .results-cinematic .results-status-download {
    align-self: flex-start;
  }

  .results-cinematic .results-page-head::before {
    right: 20px;
  }

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

  .results-cinematic .results-metric-item {
    border-right: 1px solid var(--results-line);
  }
}

@media (max-width: 860px) {
  .results-cinematic .results-page-head {
    flex-direction: column;
    gap: 22px;
  }

  .results-cinematic .premium-download-btn {
    width: min(360px, 100%);
    margin-top: 0;
  }

  .results-cinematic .results-preview-toolbar,
  .results-cinematic .results-preview-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .results-cinematic .results-search {
    min-width: 0;
  }

  .results-cinematic .results-status-summary {
    flex-wrap: wrap;
  }

  .results-status-file {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .results-cinematic .results-app {
    padding: 18px 14px 32px;
  }

  .results-cinematic .results-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .results-cinematic .results-topbar .brand {
    min-width: 0;
  }

  .results-cinematic .results-topbar .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .results-cinematic .results-topbar .brand-mark svg {
    width: 38px;
    height: 38px;
  }

  .results-cinematic .results-topbar .title {
    font-size: 1.8rem;
  }

  .results-cinematic .results-topbar .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .results-cinematic .results-topbar .account-menu summary {
    max-width: 150px;
  }

  .results-cinematic .results-topbar .account-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .results-cinematic .results-page-head h1 {
    font-size: 2.25rem;
  }

  .results-cinematic .results-metric-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .results-cinematic .results-metric-item {
    min-height: 84px;
    padding: 18px 20px;
  }

  .results-cinematic .results-preview-panel {
    padding: 16px;
  }

  .results-cinematic .premium-download-btn {
    min-height: 78px;
  }

  .results-cinematic .results-status-download {
    width: 100%;
    min-width: 0;
    min-height: 54px;
  }

  .results-cinematic .results-preview-panel .results-page-table-wrap {
    height: 520px;
    min-height: 420px;
  }
}

/* Welcome model selection refresh */
body:not(.is-main) {
  overflow-x: hidden;
}

body:not(.is-main):not(.results-page) .app {
  max-width: 100%;
  min-height: 100vh;
  padding: 0;
}

body:not(.is-main):not(.results-page) .topbar {
  display: none;
}

body:not(.is-main):not(.results-page) .topbar-actions {
  min-height: 58px;
  padding: 7px;
  gap: 7px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 34px rgba(15, 23, 42, 0.08);
}

body:not(.is-main):not(.results-page) .view-stage {
  width: 100%;
  margin: 0;
}

body:not(.is-main) .welcome-card {
  min-height: 100svh;
  padding: 54px clamp(34px, 5vw, 72px) 56px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(680px 300px at 50% -10%, rgba(37, 99, 235, 0.08), transparent 72%),
    radial-gradient(760px 420px at 12% 100%, rgba(219, 234, 254, 0.54), transparent 68%),
    radial-gradient(760px 420px at 88% 100%, rgba(219, 234, 254, 0.54), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 36px 100px rgba(37, 99, 235, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  align-content: start;
  gap: 0;
}

body:not(.is-main) .welcome-card::before,
body:not(.is-main) .welcome-card::after {
  display: none;
}

body:not(.is-main) .welcome-card > * {
  position: relative;
  z-index: 2;
}

.welcome-dot-field {
  position: absolute;
  width: 116px;
  height: 116px;
  z-index: 1;
  opacity: 0.68;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.42) 0 2px, transparent 2.4px);
  background-size: 26px 26px;
  pointer-events: none;
}

.welcome-dot-field-left {
  left: 26px;
  top: 30px;
}

.welcome-dot-field-right {
  right: 36px;
  top: 490px;
}

.welcome-wave {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.70;
}

.welcome-wave-left {
  left: -170px;
  bottom: -110px;
  width: 720px;
  height: 250px;
  border-radius: 55% 45% 0 0;
  background:
    linear-gradient(25deg, rgba(185, 208, 255, 0.74), rgba(222, 234, 255, 0.34) 58%, transparent 58%),
    linear-gradient(15deg, rgba(211, 226, 255, 0.62), transparent 72%);
  transform: rotate(10deg);
}

.welcome-wave-right {
  right: -190px;
  bottom: -102px;
  width: 820px;
  height: 246px;
  border-radius: 65% 35% 0 0;
  background:
    linear-gradient(155deg, rgba(185, 208, 255, 0.75), rgba(229, 239, 255, 0.34) 56%, transparent 56%),
    linear-gradient(175deg, rgba(211, 226, 255, 0.62), transparent 76%);
  transform: rotate(-8deg);
}

body:not(.is-main) .welcome-card .welcome-dot-field,
body:not(.is-main) .welcome-card .welcome-wave {
  position: absolute;
  z-index: 1;
}

body:not(.is-main) .welcome-hero {
  margin: 0;
  padding: 0;
  display: block;
}

body:not(.is-main) .welcome-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0;
  animation: welcomeRise 640ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.welcome-app-icon {
  width: 88px;
  height: 88px;
  margin: 0 0 24px;
  border-radius: 22px;
  object-fit: cover;
  filter: drop-shadow(0 18px 26px rgba(37, 99, 235, 0.22));
}

body:not(.is-main) .welcome-product {
  margin: 0;
  color: #0f1830;
  font-size: clamp(4rem, 7vw, 6.85rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

body:not(.is-main) .welcome-sub {
  margin: 31px 0 0;
  max-width: 780px;
  color: #31446c;
  font-size: clamp(1.08rem, 1.35vw, 1.34rem);
  line-height: 1.5;
  font-weight: 500;
}

.welcome-model-grid {
  width: min(1100px, 100%);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  animation: welcomeRise 700ms cubic-bezier(0.22, 0.8, 0.24, 1) 90ms both;
}

.welcome-model-card {
  position: relative;
  min-height: 232px;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 36px 30px 30px;
  border: 1px solid rgba(185, 199, 224, 0.74);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #10192f;
  text-align: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 46px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.welcome-model-card:hover,
.welcome-model-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.42);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 24px 52px rgba(37, 99, 235, 0.12);
}

.welcome-model-card.is-selected {
  border-color: #2563ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 28px 60px rgba(37, 99, 235, 0.18);
}

.welcome-model-select {
  position: absolute;
  top: 28px;
  right: 25px;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #a8b6d5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #ffffff;
}

.welcome-model-select::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
  transition: opacity 160ms ease;
}

.welcome-model-card.is-selected .welcome-model-select {
  border-color: #2563eb;
  background: #0f5eea;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.welcome-model-card.is-selected .welcome-model-select::before {
  opacity: 1;
}

.welcome-model-select svg {
  display: none;
}

.welcome-model-logo {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  margin: 0 0 20px;
}

.welcome-model-logo svg,
.welcome-model-logo img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
}

.welcome-model-openai img {
  width: 52px;
  height: 52px;
}

.welcome-model-card strong {
  display: block;
  margin: 0;
  font-size: clamp(1.18rem, 1.45vw, 1.42rem);
  line-height: 1.12;
  font-weight: 900;
  color: #10192f;
}

.welcome-model-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  margin-top: 18px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 800;
}

.welcome-model-pill.reliable {
  color: #0b5be7;
  background: rgba(37, 99, 235, 0.12);
}

.welcome-model-pill.fast {
  color: #059669;
  background: rgba(16, 185, 129, 0.15);
}

.welcome-model-pill.quality {
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.14);
}

.welcome-model-copy {
  display: block;
  margin-top: 23px;
  color: #31446c;
  font-size: clamp(0.94rem, 1.04vw, 1.05rem);
  line-height: 1.45;
  font-weight: 500;
}

.welcome-feature-row {
  width: min(1120px, 100%);
  margin: 50px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: #1f2b48;
  font-size: 0.98rem;
  font-weight: 650;
  animation: welcomeRise 720ms cubic-bezier(0.22, 0.8, 0.24, 1) 130ms both;
}

.welcome-feature-row span {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  white-space: nowrap;
}

.welcome-feature-row span + span::before {
  content: "";
  width: 1px;
  height: 24px;
  margin-right: 16px;
  background: rgba(112, 132, 172, 0.36);
}

.welcome-feature-row svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 10px;
  fill: none;
  stroke: #1357d8;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.10);
}

.welcome-launch {
  width: min(540px, 100%);
  min-height: 64px;
  margin: 44px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #1168ff, #004bdf);
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 30px rgba(37, 99, 235, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: welcomeRise 740ms cubic-bezier(0.22, 0.8, 0.24, 1) 170ms both;
}

.welcome-launch:hover,
.welcome-launch:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 20px 38px rgba(37, 99, 235, 0.42);
}

.welcome-launch svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-secure-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 0;
  color: #31446c;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.welcome-secure-note svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #1357d8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:not(.is-main) .welcome-credit {
  width: min(580px, 100%);
  margin: 46px auto 0;
  color: #40537b;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.88;
}

body:not(.is-main) .welcome-credit::before,
body:not(.is-main) .welcome-credit::after {
  width: 110px;
  flex-basis: 110px;
  background: rgba(148, 163, 184, 0.24);
}

.theme-dark:not(.is-main) .welcome-card {
  border-color: rgba(124, 192, 255, 0.18);
  background:
    radial-gradient(760px 320px at 50% -8%, rgba(37, 99, 235, 0.24), transparent 72%),
    radial-gradient(700px 420px at 10% 100%, rgba(29, 78, 216, 0.20), transparent 72%),
    radial-gradient(700px 420px at 90% 100%, rgba(37, 99, 235, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(8, 16, 31, 0.99), rgba(3, 8, 20, 0.98));
}

.theme-dark:not(.is-main) .welcome-product,
.theme-dark:not(.is-main) .welcome-model-card strong {
  color: #f8fbff;
}

.theme-dark:not(.is-main) .welcome-sub,
.theme-dark:not(.is-main) .welcome-model-copy,
.theme-dark:not(.is-main) .welcome-feature-row,
.theme-dark:not(.is-main) .welcome-secure-note,
.theme-dark:not(.is-main) .welcome-credit {
  color: #c9d7f2;
}

.theme-dark:not(.is-main) .welcome-model-card {
  border-color: rgba(124, 192, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(20, 33, 57, 0.88), rgba(8, 17, 32, 0.82));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(15, 23, 42, 0.30);
}

.theme-dark:not(.is-main) .welcome-model-card:hover,
.theme-dark:not(.is-main) .welcome-model-card:focus-visible {
  border-color: rgba(96, 165, 250, 0.48);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(96, 165, 250, 0.18);
}

.theme-dark:not(.is-main) .welcome-model-card.is-selected {
  border-color: rgba(96, 165, 250, 0.78);
  background:
    linear-gradient(180deg, rgba(24, 44, 82, 0.90), rgba(9, 20, 40, 0.86));
  box-shadow:
    0 28px 62px rgba(37, 99, 235, 0.20),
    0 0 0 1px rgba(96, 165, 250, 0.22);
}

.theme-dark:not(.is-main) .welcome-model-select {
  border-color: rgba(148, 163, 184, 0.54);
  background: rgba(15, 23, 42, 0.62);
}

.theme-dark:not(.is-main) .welcome-model-card.is-selected .welcome-model-select {
  border-color: #60a5fa;
  background: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.theme-dark:not(.is-main) .welcome-model-pill.reliable {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.22);
}

.theme-dark:not(.is-main) .welcome-model-pill.fast {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
}

.theme-dark:not(.is-main) .welcome-model-pill.quality {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.22);
}

.theme-dark:not(.is-main) .welcome-feature-row {
  color: #d9e5f7;
}

.theme-dark:not(.is-main) .welcome-feature-row span + span::before {
  background: rgba(96, 165, 250, 0.20);
}

.theme-dark:not(.is-main) .welcome-feature-row svg {
  border-color: rgba(96, 165, 250, 0.30);
  background: rgba(15, 23, 42, 0.78);
  stroke: #60a5fa;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.theme-dark:not(.is-main) .welcome-launch {
  color: #ffffff;
  background: linear-gradient(180deg, #2563eb, #1742b7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 34px rgba(37, 99, 235, 0.28);
}

.theme-dark:not(.is-main) .welcome-secure-note svg {
  stroke: #60a5fa;
}

.theme-dark:not(.is-main) .welcome-credit::before,
.theme-dark:not(.is-main) .welcome-credit::after {
  background: rgba(96, 165, 250, 0.18);
}

.theme-dark:not(.is-main) .welcome-model-openai img {
  filter: invert(1);
}

@media (max-width: 1180px) {
  .welcome-model-grid {
    margin-top: 44px;
    gap: 24px;
  }

  .welcome-feature-row {
    margin-top: 42px;
    flex-wrap: wrap;
    row-gap: 18px;
  }

  .welcome-feature-row span + span::before {
    display: none;
  }
}

@media (max-width: 880px) {
  body:not(.is-main):not(.results-page) .app {
    padding: 18px 14px 0;
  }

  body:not(.is-main):not(.results-page) .topbar,
  body:not(.is-main):not(.results-page) .view-stage {
    width: 100%;
  }

  body:not(.is-main):not(.results-page) .topbar {
    justify-content: center;
  }

  body:not(.is-main) .welcome-card {
    min-height: auto;
    padding: 40px 18px 34px;
    border-radius: 24px;
  }

  .welcome-app-icon {
    width: 78px;
    height: 78px;
  }

  body:not(.is-main) .welcome-product {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .welcome-model-grid {
    grid-template-columns: 1fr;
    width: min(430px, 100%);
    margin-top: 38px;
  }

  .welcome-model-card {
    min-height: 220px;
    padding-top: 32px;
  }

  .welcome-feature-row {
    width: min(430px, 100%);
    margin-top: 34px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .welcome-feature-row span {
    justify-content: flex-start;
  }

  .welcome-launch {
    margin-top: 34px;
  }

  .welcome-secure-note {
    margin-top: 24px;
  }

  body:not(.is-main) .welcome-credit {
    margin-top: 36px;
  }
}

@media (max-width: 560px) {
  .safety-policy-overlay {
    align-items: start;
    padding: 14px;
    overflow: auto;
  }

  .safety-policy-modal {
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 24px 18px 22px;
  }

  .safety-policy-copy h2 {
    font-size: 1.45rem;
  }

  .safety-policy-copy p,
  .safety-policy-list li > span:last-child > span,
  .safety-policy-responsibility p {
    font-size: 0.92rem;
  }

  .safety-policy-list li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 13px;
  }

  .safety-policy-number {
    width: 32px;
    height: 32px;
    font-size: 0.96rem;
  }

  .safety-policy-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .safety-policy-confirm,
  .safety-policy-full-link {
    width: 100%;
    text-align: center;
  }
}

/* App logo: the PNG is now the whole mark, so remove the old icon container shell. */
.brand-mark,
.support-page .support-brand .brand-mark,
.plans-brand-mark,
.auth-mark,
.admin-brand-mark {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.theme-dark .brand-mark,
.support-page.theme-dark .support-brand .brand-mark,
.theme-dark .plans-brand-mark,
.theme-dark .auth-mark,
.theme-dark .admin-brand-mark {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark,
.support-page .support-brand .brand-mark {
  width: 76px;
  height: 76px;
  border-radius: 0;
}

.plans-brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 0;
}

.auth-mark {
  width: 66px;
  height: 66px;
  border-radius: 0;
}

.admin-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 0;
}

.brand-logo-img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: filter, transform;
  filter:
    drop-shadow(0 14px 18px rgba(37, 99, 235, 0.24))
    drop-shadow(0 5px 12px rgba(124, 58, 237, 0.16));
}

.brand-logo-dark {
  display: none;
}

.theme-dark .brand-logo-light {
  display: none;
}

.theme-dark .brand-logo-dark {
  display: block;
  filter:
    drop-shadow(0 0 16px rgba(56, 189, 248, 0.38))
    drop-shadow(0 15px 24px rgba(37, 99, 235, 0.32))
    drop-shadow(0 4px 10px rgba(124, 58, 237, 0.22));
}

.welcome-app-logo {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  margin: 0 0 24px;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: filter, transform;
  filter:
    drop-shadow(0 20px 26px rgba(37, 99, 235, 0.28))
    drop-shadow(0 8px 20px rgba(124, 58, 237, 0.20));
}

.theme-dark .welcome-app-logo {
  filter:
    drop-shadow(0 0 22px rgba(56, 189, 248, 0.42))
    drop-shadow(0 22px 32px rgba(37, 99, 235, 0.36))
    drop-shadow(0 8px 22px rgba(124, 58, 237, 0.28));
}

.welcome-app-icon {
  width: 106px;
  height: 106px;
  grid-area: 1 / 1;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity, transform;
  filter: none;
}

/* Auth Option 1 redesign */
.auth-page {
  background:
    radial-gradient(900px 520px at 50% -18%, rgba(255, 255, 255, 0.95), transparent 64%),
    linear-gradient(180deg, #f3f7ff 0%, #eaf0f8 100%);
}

.theme-dark.auth-page {
  background:
    radial-gradient(900px 520px at 50% -18%, rgba(37, 99, 235, 0.18), transparent 64%),
    linear-gradient(180deg, #07101f 0%, #0b1220 100%);
}

.auth-app {
  min-height: 100vh;
  padding: clamp(18px, 3.2vh, 34px) 24px;
}

.auth-shell {
  width: min(1450px, calc(100vw - 48px));
  min-height: min(760px, calc(100vh - 36px));
  grid-template-columns: minmax(0, 0.49fr) minmax(0, 0.51fr);
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.13),
    0 12px 28px rgba(37, 99, 235, 0.08);
}

.theme-dark .auth-shell {
  border-color: rgba(96, 165, 250, 0.22);
  background: #0c1628;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.42),
    0 0 46px rgba(37, 99, 235, 0.10);
}

.auth-theme-toggle {
  top: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #0f1f3d;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 28px rgba(15, 23, 42, 0.10);
}

.theme-dark .auth-theme-toggle {
  color: #eaf2ff;
  background: rgba(10, 22, 42, 0.84);
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.25);
}

.auth-info-panel {
  position: relative;
  overflow: hidden;
  padding: 58px 64px 44px;
  background:
    radial-gradient(560px 500px at 80% 25%, rgba(255, 255, 255, 0.70), transparent 58%),
    linear-gradient(135deg, #f6fbff 0%, #e5efff 46%, #eee7ff 100%);
  border-right: 1px solid rgba(226, 232, 240, 0.88);
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
}

.auth-info-panel::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: -150px;
  right: -170px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 44%, rgba(219, 234, 254, 0.36) 45% 46%, transparent 47%);
  opacity: 0.78;
  pointer-events: none;
}

.auth-info-panel::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -70px;
  width: 500px;
  height: 260px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 21px, rgba(37, 99, 235, 0.12) 22px 23px, transparent 24px 44px);
  transform: rotate(-18deg);
  opacity: 0.34;
  pointer-events: none;
}

.theme-dark .auth-info-panel {
  background:
    radial-gradient(520px 520px at 80% 28%, rgba(37, 99, 235, 0.18), transparent 58%),
    linear-gradient(135deg, #081427 0%, #0b1a31 54%, #111835 100%);
  border-right-color: rgba(96, 165, 250, 0.16);
}

.theme-dark .auth-info-panel::before {
  background:
    radial-gradient(circle, rgba(59, 130, 246, 0.16) 0 44%, rgba(124, 58, 237, 0.20) 45% 46%, transparent 47%);
  opacity: 0.92;
}

.theme-dark .auth-info-panel::after {
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 21px, rgba(96, 165, 250, 0.16) 22px 23px, transparent 24px 44px);
  opacity: 0.38;
}

.auth-brand-lockup,
.auth-info-copy,
.auth-feature-list,
.auth-dots {
  position: relative;
  z-index: 1;
}

.auth-brand-lockup {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.auth-page .auth-mark {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.auth-page .auth-mark::before {
  content: "";
  position: absolute;
  inset: 20px 10px -10px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 42%, rgba(56, 189, 248, 0.24), transparent 34%),
    radial-gradient(circle at 50% 62%, rgba(37, 99, 235, 0.28), rgba(124, 58, 237, 0.20) 46%, transparent 72%);
  filter: blur(18px);
}

.auth-page .auth-mark::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 8px;
  bottom: -12px;
  z-index: -1;
  height: 44px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(124, 58, 237, 0.30), rgba(37, 99, 235, 0.18) 45%, transparent 72%);
  filter: blur(14px);
}

.theme-dark.auth-page .auth-mark::before {
  background:
    radial-gradient(circle at 46% 42%, rgba(56, 189, 248, 0.36), transparent 34%),
    radial-gradient(circle at 50% 62%, rgba(37, 99, 235, 0.34), rgba(124, 58, 237, 0.28) 48%, transparent 74%);
}

.theme-dark.auth-page .auth-mark::after {
  background:
    radial-gradient(ellipse at center, rgba(56, 189, 248, 0.24), rgba(124, 58, 237, 0.30) 45%, transparent 72%);
}

.auth-page .auth-mark .brand-logo-img {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  filter: none;
}

.auth-brand-name {
  max-width: 10ch;
  color: #081735;
  font-size: clamp(3.15rem, 4.25vw, 4.25rem);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: 0;
}

.theme-dark .auth-brand-name {
  color: #f4f8ff;
}

.auth-info-copy {
  gap: 10px;
  margin-top: 6px;
}

.auth-info-copy h1 {
  width: max-content;
  max-width: 100%;
  color: #0d47d9;
  font-size: clamp(1.94rem, 2.22vw, 2.28rem);
  line-height: 1.08;
  font-weight: 850;
  white-space: nowrap;
}

.auth-info-copy h1 br {
  display: block;
}

.theme-dark .auth-info-copy h1 {
  color: #7cc0ff;
}

.auth-info-copy p {
  max-width: 520px;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 600;
  margin-top: 15px;
}

.theme-dark .auth-info-copy p {
  color: #aebcd0;
}

.auth-feature-list {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 23px;
}

.auth-feature {
  min-height: 78px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  justify-items: stretch;
  align-items: center;
  align-content: center;
  gap: 14px;
  padding: 12px 18px;
  text-align: left;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.theme-dark .auth-feature {
  border-color: rgba(96, 165, 250, 0.18);
  background: rgba(8, 20, 40, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 34px rgba(0, 0, 0, 0.26);
}

.auth-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 0;
  background: #ffffff;
  color: #0d47d9;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.theme-dark .auth-feature-icon {
  background: rgba(15, 35, 65, 0.94);
  color: #7cc0ff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.20);
}

.auth-feature-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.auth-feature h2 {
  margin: 0;
  color: #0f1f3d;
  max-width: 13ch;
  font-size: 0.82rem;
  line-height: 1.12;
  font-weight: 850;
}

.theme-dark .auth-feature h2 {
  color: #f4f8ff;
}

.auth-feature p {
  max-width: none;
  margin: 0;
  color: #475569;
  font-size: 0.68rem;
  line-height: 1.18;
  font-weight: 700;
}

.theme-dark .auth-feature p {
  color: #aebcd0;
}

.auth-dots {
  align-self: end;
  gap: 15px;
  margin-top: 20px;
}

.auth-dots span {
  width: 13px;
  height: 13px;
  background: #d4ddec;
}

.auth-dots span.active {
  background: #0d62ff;
}

.auth-form-panel {
  position: relative;
  padding: 76px 84px 58px 66px;
  background: #ffffff;
}

.theme-dark .auth-form-panel {
  background:
    radial-gradient(620px 360px at 76% 0%, rgba(59, 130, 246, 0.10), transparent 62%),
    #0c1628;
}

.auth-form-card {
  width: min(450px, 100%);
  margin: 0 auto 0 clamp(8px, 2.5vw, 44px);
}

.auth-heading {
  margin-bottom: 34px;
}

.auth-heading h2 {
  margin: 0 0 12px;
  color: #081735;
  font-size: clamp(2.35rem, 3.05vw, 3rem);
  line-height: 1.08;
  font-weight: 850;
}

.theme-dark .auth-heading h2 {
  color: #f4f8ff;
}

.auth-heading p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
}

.theme-dark .auth-heading p {
  color: #aebcd0;
}

.auth-form {
  gap: 14px;
}

.auth-form label:not(.auth-check) {
  color: #0f1f3d;
  font-size: 0.9rem;
  line-height: 1.1;
  font-weight: 850;
}

.theme-dark .auth-form label:not(.auth-check),
.theme-dark .auth-check {
  color: #eaf2ff;
}

.auth-input-wrap input {
  height: 56px;
  padding: 0 54px;
  border: 1px solid #cbd7e8;
  border-radius: 10px;
  color: #0f1f3d;
  background: #ffffff;
  font-size: 1rem;
  font-weight: 650;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.theme-dark .auth-input-wrap input {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(3, 12, 26, 0.72);
  color: #eaf2ff;
}

.auth-input-wrap input:focus {
  border-color: #2563eb;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.12),
    0 8px 22px rgba(37, 99, 235, 0.08);
}

.auth-input-icon {
  left: 17px;
}

.auth-input-trailing {
  right: 15px;
}

.auth-input-icon,
.auth-input-trailing {
  color: #64748b;
}

.theme-dark .auth-input-icon,
.theme-dark .auth-input-trailing {
  color: #9fb2c8;
}

.auth-input-icon svg,
.auth-input-trailing svg,
.auth-field-error-icon svg {
  width: 21px;
  height: 21px;
}

.auth-options {
  margin: 10px 0 22px;
}

.auth-check {
  gap: 12px;
  color: #0f1f3d;
  font-size: 0.9rem;
  font-weight: 850;
}

.auth-check input {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.auth-options a {
  color: #0d47d9;
  font-size: 0.9rem;
  font-weight: 850;
}

.auth-submit {
  min-height: 62px;
  border: 1px solid rgba(29, 78, 216, 0.84);
  border-radius: 10px;
  background: linear-gradient(180deg, #1d7cff 0%, #0d57df 100%);
  font-size: 1.08rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 32px rgba(37, 99, 235, 0.24);
}

.auth-submit:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 20px 36px rgba(37, 99, 235, 0.30);
}

.auth-switch {
  margin: 42px 0 0;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 650;
}

.auth-switch a {
  color: #0d47d9;
  font-weight: 850;
}

.auth-alert {
  margin: -18px 0 24px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.auth-field-error {
  margin: -7px 0 4px;
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .auth-shell {
    width: min(760px, calc(100vw - 32px));
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-info-panel {
    min-height: auto;
    padding: 48px 44px 40px;
    border-right: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  }

  .theme-dark .auth-info-panel {
    border-bottom-color: rgba(96, 165, 250, 0.16);
  }

  .auth-feature-list {
    max-width: 520px;
  }

  .auth-form-panel {
    padding: 50px 44px 46px;
  }
}

@media (max-width: 640px) {
  .auth-app {
    padding: 14px;
  }

  .auth-shell {
    width: 100%;
    border-radius: 18px;
  }

  .auth-theme-toggle {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }

  .auth-info-panel,
  .auth-form-panel {
    padding: 34px 22px;
  }

  .auth-page .auth-mark,
  .auth-page .auth-mark .brand-logo-img {
    width: 118px;
    height: 118px;
  }

  .auth-brand-name {
    font-size: 3.35rem;
  }

  .auth-info-copy h1 {
    font-size: 1.85rem;
  }

  .auth-feature-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .auth-feature {
    min-height: 76px;
    grid-template-columns: 48px minmax(0, 1fr);
    justify-items: stretch;
    text-align: left;
    padding: 12px 16px;
  }

  .auth-feature p {
    max-width: none;
  }

  .auth-heading h2 {
    font-size: 2rem;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
