:root {
  --bg: #f3f5f8;
  --bg-alt: #eef1f6;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #111827;
  --line: #d7dce5;
  --line-soft: #e7ebf2;
  --text: #111827;
  --muted: #667085;
  --muted-strong: #475467;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-rgb: 37, 99, 235;
  --accent-soft: #dbeafe;
  --success: #16a34a;
  --warning: #ca8a04;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

body.dashboard-body.is-dark-mode {
  --bg: #000000;
  --bg-alt: #000000;
  --surface: #161618;
  --surface-soft: #212124;
  --surface-strong: #f3f4f6;
  --line: #ffffff46;
  --line-soft: #00000073;
  --text: #edf2f7;
  --muted: #a0acbb;
  --muted-strong: #cad3de;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-rgb: 59, 130, 246;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --success: #22c55e;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  cursor: default;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

button,
input {
  font: inherit;
}

input:is([type="text"], [type="search"], [type="email"], [type="tel"], [type="url"], [type="password"], [type="number"], [type="date"]),
textarea {
  cursor: text;
}

code {
  padding: 0.08rem 0.35rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface-soft);
}

body.dashboard-body.is-dark-mode code {
  border-color: var(--line);
}

body.dashboard-body.is-dark-mode .auth-intro {
  background:
    radial-gradient(110% 80% at 12% 0%, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0) 65%),
    linear-gradient(160deg, #141a22 0%, #1a212b 100%);
}

body.dashboard-body.is-dark-mode .auth-intro::before {
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0) 70%);
}

body.dashboard-body.is-dark-mode .sidebar-theme-toggle[aria-pressed="true"] {
  color: #bfdbfe;
}

body.dashboard-body.is-dark-mode .dashboard-action-button--accent {
  color: #bfdbfe;
  border-color: rgba(var(--accent-rgb), 0.36);
  background: rgba(var(--accent-rgb), 0.16);
}

body.dashboard-body.is-dark-mode .dashboard-action-button--accent:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.24);
}

body.dashboard-body.is-dark-mode .website-card[open] .website-card__settings-button {
  border-color: rgba(var(--accent-rgb), 0.48);
  color: #bfdbfe;
}

body.dashboard-body.is-dark-mode .payment-badge {
  border-color: var(--line);
  color: var(--muted-strong);
  background: #171d25;
}

body.dashboard-body.is-dark-mode .payment-badge.is-success {
  border-color: rgba(34, 197, 94, 0.42);
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.2);
}

body.dashboard-body.is-dark-mode .payment-badge.is-warning {
  border-color: rgba(245, 158, 11, 0.46);
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.2);
}

body.dashboard-body.is-dark-mode .payment-badge.is-danger {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
  background: rgba(248, 113, 113, 0.18);
}

body.dashboard-body.is-dark-mode .inventory-status-badge.is-success,
body.dashboard-body.is-dark-mode .backup-origin-badge.is-schedule,
body.dashboard-body.is-dark-mode .payment-receipt-tag--paid {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.2);
}

body.dashboard-body.is-dark-mode .inventory-status-badge.is-danger {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.2);
}

body.dashboard-body.is-dark-mode .inventory-status-badge.is-accent,
body.dashboard-body.is-dark-mode .backup-origin-badge.is-pre-restore,
body.dashboard-body.is-dark-mode .payment-receipt-tag--amount,
body.dashboard-body.is-dark-mode .user-pill--super {
  color: #bfdbfe;
  border-color: rgba(var(--accent-rgb), 0.44);
  background: rgba(var(--accent-rgb), 0.2);
}

.dashboard-page {
  min-height: 100vh;
  height: 100vh;
  padding: 16px;
}

.auth-boot {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(0);
  transition:
    opacity 320ms ease,
    filter 320ms ease,
    visibility 0ms linear 320ms;
}

.auth-boot__loader {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(var(--accent-rgb), 0.24);
  border-top-color: rgba(var(--accent-rgb), 0.92);
  animation: auth-boot-spin 0.9s linear infinite;
}

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

.auth-shell,
.dashboard-shell {
  min-height: calc(100vh - 32px);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
}

.auth-intro,
.auth-card,
.dashboard-sidebar,
.dashboard-header,
.stat-card,
.panel-card,
.sidebar-summary {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.auth-intro {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(var(--accent-rgb), 0.18) 0%, rgba(var(--accent-rgb), 0) 62%),
    linear-gradient(160deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.auth-intro::before {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -84px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0) 70%);
  pointer-events: none;
}

.auth-kicker,
.auth-badge,
.dashboard-kicker,
.panel-card__eyebrow,
.stat-card__label,
.sidebar-summary__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
  background: var(--surface-soft);
}

.auth-intro h1 {
  max-width: 16ch;
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.auth-intro p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

.auth-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100%;
  gap: 18px;
  padding: 28px 26px;
}

.auth-card__header {
  display: grid;
  gap: 8px;
}

.auth-card__header h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.75rem;
}

.auth-card__header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-step {
  display: grid;
  grid-row: 1;
  align-self: center;
  gap: 14px;
}

.auth-step[hidden] {
  display: none !important;
}

.auth-form label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.auth-field {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.auth-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.auth-field i {
  color: var(--muted);
}

.auth-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.auth-field input[readonly] {
  color: var(--muted-strong);
  cursor: default;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  caret-color: transparent;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.auth-actions .auth-submit {
  margin-left: auto;
}

.auth-step[data-auth-step="login-code"] .auth-actions,
.auth-step[data-auth-step="recovery-code"] .auth-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
}

.auth-step[data-auth-step="login-code"] .auth-actions .auth-link-button,
.auth-step[data-auth-step="recovery-code"] .auth-actions .auth-link-button {
  justify-self: start;
  white-space: nowrap;
}

.auth-step[data-auth-step="login-code"] .auth-actions .auth-submit,
.auth-step[data-auth-step="recovery-code"] .auth-actions .auth-submit {
  margin-left: 0;
  justify-self: end;
}

.auth-inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.auth-submit,
.dashboard-logout {
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.auth-submit {
  min-height: 48px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  padding-left: 20px;
  padding-right: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.auth-submit:hover,
.dashboard-logout:hover {
  transform: translateY(-1px);
}

.auth-link-button {
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-link-button:hover {
  color: var(--accent-strong);
}

.auth-link-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  text-decoration: none;
}

.auth-back-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-back-button:hover {
  color: var(--accent);
}

body.is-auth-recovery-direct [data-auth-home-back],
body.is-auth-recovery-direct [data-auth-history-back] {
  display: none !important;
}

.auth-feedback {
  display: none;
}

.auth-note {
  display: flex;
  grid-row: 2;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-strong);
  line-height: 1.65;
  font-size: 0.94rem;
}

.auth-notice-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 2200;
  width: min(480px, calc(100vw - 20px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.auth-notice {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: grid;
  gap: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.auth-notice.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.auth-notice p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.auth-notice__timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.36;
  transform-origin: left center;
  animation-name: auth-notice-timer;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes auth-notice-timer {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

.auth-notice.is-processing {
  border-color: rgba(202, 138, 4, 0.42);
  background: #fff6d6;
  color: #8a5a03;
}

.auth-notice.is-success {
  border-color: rgba(22, 163, 74, 0.35);
  background: #e9fbea;
  color: #166534;
}

.auth-notice.is-error {
  border-color: rgba(185, 28, 28, 0.35);
  background: #feecec;
  color: #991b1b;
}

.auth-password-change-shell {
  min-height: calc(100vh - 32px);
  display: grid;
  place-items: center;
}

.auth-password-change-card {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(var(--accent-rgb), 0.18) 0%, rgba(var(--accent-rgb), 0) 62%),
    linear-gradient(160deg, var(--surface) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-sm);
}

.auth-password-change-card h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
}

.auth-password-change-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  height: calc(100vh - 32px);
  overflow: hidden;
}

.dashboard-sidebar {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  height: 100%;
  padding: 16px;
  overflow: hidden;
}

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

.sidebar-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.sidebar-brand strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
}

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

.sidebar-nav {
  display: grid;
  gap: 4px;
  align-content: start;
  overflow: auto;
  padding-right: 2px;
}

.sidebar-nav__group {
  display: grid;
  gap: 4px;
}

.sidebar-nav__group + .sidebar-nav__group {
  margin-top: 8px;
}

.sidebar-nav__label {
  margin: 0;
  padding: 4px 10px 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted-strong);
  text-decoration: none;
}

.sidebar-nav a.is-active,
.sidebar-nav a:hover {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface-soft);
}

.sidebar-summary {
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed var(--line);
  background: var(--surface-soft);
}

.sidebar-summary strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  color: var(--muted-strong);
}

.sidebar-theme-toggle {
  width: 100%;
  justify-content: center;
}

.sidebar-theme-toggle[aria-pressed="true"] {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.32);
  background: rgba(var(--accent-rgb), 0.14);
}

.dashboard-menu-toggle,
.dashboard-sidebar-backdrop {
  display: none;
}

.dashboard-menu-toggle {
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dashboard-mobile-header {
  display: none;
}

.dashboard-mobile-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dashboard-mobile-header__brand strong {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-mobile-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-close-mobile {
  display: none;
  margin-left: auto;
  width: 34px;
  min-height: 34px;
  padding: 0;
  place-items: center;
}

.sidebar-close-mobile i {
  line-height: 1;
}

.dashboard-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 14px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding-right: 4px;
}

.dashboard-header {
  display: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.dashboard-header__title {
  display: grid;
  gap: 6px;
}

.dashboard-header h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.dashboard-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted-strong);
  background: var(--surface-soft);
}

.dashboard-logout {
  min-height: 38px;
  padding: 0 12px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--line);
}

.dashboard-pill--soft {
  color: var(--muted);
}

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

.overview-secondary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.overview-financial-card {
  align-content: start;
}

.overview-financial-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.overview-financial-metrics[hidden] {
  display: none !important;
}

.overview-financial-metrics__wide {
  grid-column: 1 / -1;
}

.overview-activity-panel {
  min-height: 340px;
  align-content: start;
  overflow: hidden;
}

.panel-card__link {
  align-self: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.panel-card__link:hover {
  text-decoration: underline;
}

.stat-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.stat-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-views {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.dashboard-view {
  display: none;
  gap: 12px;
  align-content: start;
  min-height: 0;
}

.dashboard-view.is-active {
  display: grid;
  min-height: 100%;
}

.dashboard-view--list.is-active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.panel-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.panel-card--list-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.panel-card--list-layout .dashboard-pagination {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.panel-card--list-layout .site-list,
.panel-card--list-layout .redirects-list,
.panel-card--list-layout .payments-list,
.panel-card--list-layout .activity-list,
.panel-card--list-layout .users-list,
.panel-card--list-layout .data-table {
  min-height: 0;
}

.panel-card--list-layout .site-list,
.panel-card--list-layout .redirects-list,
.panel-card--list-layout .payments-list,
.panel-card--list-layout .activity-list,
.panel-card--list-layout .users-list {
  flex: 1;
  align-content: start;
  overflow-y: auto;
  padding-right: 4px;
}

.panel-card--list-layout .data-table {
  flex: 1;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.panel-card--list-layout .dashboard-list {
  align-content: start;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.users-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.users-form {
  align-content: start;
}

.users-form__fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 12px;
}

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

.users-form-switch {
  max-width: none;
}

.users-list {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.user-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface-soft);
}

.user-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.user-card__head strong {
  font-size: 0.96rem;
}

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

.user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
  background: var(--surface);
}

.user-pill--super {
  border-color: rgba(var(--accent-rgb), 0.22);
  color: var(--accent-strong);
  background: rgba(var(--accent-rgb), 0.08);
}

.user-card__meta {
  display: grid;
  gap: 4px;
  margin: 0;
}

.user-card__meta div {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 10px;
}

.user-card__meta dt {
  color: var(--muted);
}

.user-card__meta dd {
  margin: 0;
  font-weight: 700;
  word-break: break-word;
}

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

.panel-card__header h3 {
  margin: 4px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  line-height: 1.2;
}

.panel-card__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.signature-verifier-card {
  overflow: visible;
}

.dashboard-view.is-signature-admin {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signature-admin-upload-card {
  align-content: start;
}

.signature-admin-upload-card[hidden] {
  display: none !important;
}

.signature-dropzone--admin {
  min-height: clamp(200px, 24vw, 280px);
}

.signature-admin-signature-box .signature-result__meta {
  grid-template-columns: 1fr;
}

.signature-verifier {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  align-items: start;
  gap: 14px;
}

.signature-dropzone {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 28vw, 320px);
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 24px 18px;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  background: var(--surface-soft);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.signature-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.signature-dropzone:hover,
.signature-dropzone:focus-within {
  border-color: var(--line);
  transform: translateY(-1px);
  background: var(--surface);
}

.signature-dropzone.is-dragover {
  border-style: solid;
  border-color: var(--muted);
  background: var(--surface);
}

.signature-dropzone.is-processing {
  border-style: solid;
  border-color: var(--line);
  background: var(--surface);
}

.signature-dropzone.is-success {
  border-style: solid;
  border-color: rgba(22, 163, 74, 0.42);
  background: rgba(22, 163, 74, 0.06);
}

.signature-dropzone.is-warning {
  border-style: solid;
  border-color: rgba(202, 138, 4, 0.46);
  background: rgba(202, 138, 4, 0.1);
}

.signature-dropzone.is-error {
  border-style: solid;
  border-color: rgba(220, 38, 38, 0.42);
  background: rgba(220, 38, 38, 0.06);
}

.signature-dropzone__status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted-strong);
  background: var(--surface);
  font-size: 1.05rem;
}

.signature-dropzone.is-success .signature-dropzone__status-icon {
  color: #166534;
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.12);
}

.signature-dropzone.is-warning .signature-dropzone__status-icon {
  color: #854d0e;
  border-color: rgba(202, 138, 4, 0.36);
  background: rgba(202, 138, 4, 0.14);
}

.signature-dropzone.is-error .signature-dropzone__status-icon {
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.12);
}

.signature-dropzone__title {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: var(--text);
}

.signature-dropzone__subtitle {
  max-width: 66ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.signature-dropzone__file {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 760px);
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--muted-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signature-result {
  display: grid;
  align-content: start;
  width: 100%;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface-soft);
}

.signature-result__status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-strong);
  background: var(--surface);
}

.signature-result__message {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.signature-result__meta div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.signature-result__meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signature-result__meta dd {
  margin: 0;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  word-break: break-word;
}

.signature-result.is-success {
  border-color: rgba(22, 163, 74, 0.38);
  background: rgba(22, 163, 74, 0.08);
}

.signature-result.is-success .signature-result__status {
  color: #166534;
  border-color: rgba(22, 163, 74, 0.34);
  background: rgba(22, 163, 74, 0.12);
}

.signature-result.is-warning {
  border-color: rgba(202, 138, 4, 0.38);
  background: rgba(202, 138, 4, 0.1);
}

.signature-result.is-warning .signature-result__status {
  color: #854d0e;
  border-color: rgba(202, 138, 4, 0.34);
  background: rgba(202, 138, 4, 0.14);
}

.signature-result.is-error {
  border-color: rgba(220, 38, 38, 0.38);
  background: rgba(220, 38, 38, 0.08);
}

.signature-result.is-error .signature-result__status {
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.32);
  background: rgba(220, 38, 38, 0.12);
}

.signature-result.is-processing {
  border-color: var(--line);
  background: var(--surface-soft);
}

.signature-result__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

body.dashboard-body.is-dark-mode .signature-dropzone {
  border-color: var(--line);
  background: var(--surface-soft);
}

body.dashboard-body.is-dark-mode .signature-dropzone:hover,
body.dashboard-body.is-dark-mode .signature-dropzone:focus-within,
body.dashboard-body.is-dark-mode .signature-dropzone.is-dragover,
body.dashboard-body.is-dark-mode .signature-dropzone.is-processing {
  border-color: var(--line);
  background: var(--surface);
}

body.dashboard-body.is-dark-mode .signature-result {
  border-color: var(--line);
  background: var(--surface-soft);
}

body.dashboard-body.is-dark-mode .signature-result__status,
body.dashboard-body.is-dark-mode .signature-result__meta div {
  border-color: var(--line);
  background: var(--surface);
}

body.dashboard-body.is-dark-mode .signature-dropzone.is-success,
body.dashboard-body.is-dark-mode .signature-result.is-success {
  border-color: rgba(22, 163, 74, 0.46);
  background: rgba(22, 163, 74, 0.12);
}

body.dashboard-body.is-dark-mode .signature-dropzone.is-warning,
body.dashboard-body.is-dark-mode .signature-result.is-warning {
  border-color: rgba(202, 138, 4, 0.5);
  background: rgba(202, 138, 4, 0.14);
}

.site-list,
.redirects-list,
.payments-list,
.users-list,
.event-list,
.timeline-list,
.activity-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.website-card {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface-soft);
}

.website-card--archived {
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(245, 158, 11, 0.08);
}

.redirect-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface-soft);
}

.redirect-card--empty {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.redirect-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.redirect-card__identity {
  display: grid;
  gap: 4px;
}

.redirect-card__identity strong {
  font-size: 0.96rem;
}

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

.redirect-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.redirect-card__domains {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.redirect-card__domains[hidden] {
  display: none;
}

.redirect-card .form-feedback:empty {
  display: none;
}

.redirect-card__empty {
  color: var(--muted);
  line-height: 1.5;
}

.redirect-domain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.redirect-domain-row code {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-card--empty,
.payment-card--empty {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: var(--muted);
}

.website-card__summary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.website-card__summary::-webkit-details-marker {
  display: none;
}

.website-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.website-card__logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: contain;
  background: var(--surface);
}

.website-card__logo--fallback {
  display: grid;
  place-items: center;
  padding: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  background: var(--accent-soft);
}

.website-card__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.website-card__text strong,
.website-card--empty strong,
.event-list strong,
.timeline-list strong {
  display: block;
  font-size: 0.96rem;
}

.website-card__text small,
.website-card--empty small,
.event-list small {
  color: var(--muted);
}

.website-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 8px;
}

.website-card__metric {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.website-card__metric strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.website-card__metric small,
.website-card__action {
  color: var(--muted);
}

.website-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.website-card__settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.website-card__settings-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.website-card__settings-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.website-card__action {
  font-size: 0.9rem;
  font-weight: 700;
}

.website-card[open] .website-card__action {
  color: var(--accent);
}

.website-card[open] .website-card__settings-button {
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
}

.website-card__body {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
  border-top: 1px solid var(--line-soft);
}

.payment-card {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface-soft);
}

.payment-card__summary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.payment-card__summary--static {
  cursor: default;
}

.payment-card__summary::-webkit-details-marker {
  display: none;
}

.payment-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.payment-card__logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: contain;
  background: var(--surface);
}

.payment-card__logo--fallback {
  display: grid;
  place-items: center;
  padding: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  background: var(--accent-soft);
}

.payment-card__text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.payment-card__text strong {
  display: block;
  font-size: 0.98rem;
}

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

.payment-badge--inline {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

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

.payment-card__metric {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.payment-card__metric--editable {
  position: relative;
  padding-right: 50px;
}

.payment-card__metric strong {
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  line-height: 1.1;
}

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

.payment-card__metric-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.payment-card__metric--editable .payment-card__metric-meta {
  display: block;
}

.payment-card__metric-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted-strong);
  background: var(--surface-soft);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.payment-card__metric--editable .payment-card__metric-edit {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

.payment-card__metric-edit:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

.payment-card__metric--editable .payment-card__metric-edit:hover:not(:disabled) {
  transform: translateY(calc(-50% - 1px));
}

.payment-card__metric-edit:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.3);
  outline-offset: 2px;
}

.payment-card__metric-edit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.payment-card__metric-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.payment-card__status {
  display: flex;
  justify-content: flex-end;
}

.payment-card__status--action {
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-strong);
  background: var(--surface);
}

.payment-badge.is-success {
  border-color: rgba(22, 163, 74, 0.22);
  color: #166534;
  background: rgba(22, 163, 74, 0.10);
}

.payment-badge.is-warning {
  border-color: rgba(202, 138, 4, 0.22);
  color: #854d0e;
  background: rgba(202, 138, 4, 0.10);
}

.payment-badge.is-danger {
  border-color: rgba(220, 38, 38, 0.18);
  color: #991b1b;
  background: rgba(220, 38, 38, 0.10);
}

.payment-badge.is-neutral {
  color: var(--muted-strong);
  background: var(--surface);
}

.payment-card__body {
  display: grid;
  gap: 10px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line-soft);
}

.payment-card__setup {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.payment-months {
  display: grid;
}

.payment-month-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0 4px;
}

.payment-month-row--head {
  min-height: 30px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-month-row:not(.payment-month-row--head) {
  border-top: 1px solid var(--line-soft);
}

.page-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}

.page-row--head {
  min-height: 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-row:not(.page-row--head) {
  border-top: 1px solid var(--line-soft);
}

.page-row__link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.page-row__link:hover {
  text-decoration: underline;
}

.data-table {
  display: grid;
}

.dashboard-list {
  display: grid;
}

.dashboard-list-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 16px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.dashboard-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.pagination__status {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pagination__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination__button,
.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
}

.pagination__button {
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--muted-strong);
  background: var(--surface-soft);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.pagination__button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface);
}

.pagination__button.is-active {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.pagination__button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pagination__ellipsis {
  min-width: auto;
  padding: 0 4px;
  color: var(--muted);
}

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

.dashboard-toolbar--inventory {
  grid-template-columns: minmax(280px, 1.6fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr);
  align-items: end;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.dashboard-toolbar--activity {
  grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-toolbar--stores {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
}

.control-field,
.form-field {
  display: grid;
  gap: 8px;
}

.control-field--compact {
  max-width: 210px;
  justify-self: start;
}

.control-field--grow {
  min-width: 0;
}

.control-field span,
.form-field span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.control-field input,
.control-field select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: var(--surface);
}

.control-field input::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input[type="file"] {
  padding-top: 10px;
  padding-bottom: 10px;
}

.form-field input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-soft);
  cursor: pointer;
}

.form-field__hint {
  color: var(--muted);
  line-height: 1.5;
}

.form-field__link {
  width: fit-content;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.form-field__link:hover {
  text-decoration: underline;
}

.form-field textarea {
  min-height: 110px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

[data-user-websites-select] {
  min-height: 168px;
  padding-top: 8px;
  padding-bottom: 8px;
}

[data-dashboard-modal="user"] .dashboard-modal__dialog {
  width: min(640px, 100%);
  padding: 24px;
}

[data-dashboard-modal="user"] .dashboard-modal__header {
  gap: 6px;
  margin-bottom: 16px;
}

.user-management-form {
  gap: 18px;
}

.user-management-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), rgba(var(--accent-rgb), 0));
}

[data-dashboard-modal="user"] .form-actions {
  align-items: flex-start;
  gap: 16px;
}

[data-dashboard-modal="user"] .form-actions .auth-submit {
  min-width: 170px;
}

[data-dashboard-modal="user"] .form-feedback {
  line-height: 1.5;
}

.user-management-form__grid {
  gap: 10px;
}

.user-management-form__email-field input.is-locked,
.user-management-form__email-field input:disabled {
  border-color: var(--line-soft);
  color: var(--muted-strong);
  background: var(--surface-soft);
  cursor: not-allowed;
  pointer-events: none;
}

.user-sites-picker {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface-soft);
}

.user-sites-picker__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.user-sites-picker__heading {
  display: grid;
  gap: 4px;
}

.user-sites-picker__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.user-sites-picker__tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.user-sites-picker__search {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: var(--surface);
}

.user-sites-picker__search::placeholder {
  color: var(--muted);
}

.user-sites-picker__list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  padding-right: 4px;
  overflow-y: auto;
}

.user-sites-picker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.user-sites-picker__item:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--accent-rgb), 0.06);
}

.user-sites-picker__item:has(input:checked) {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.1);
}

.user-sites-picker__item input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.user-sites-picker__summary {
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed rgba(var(--accent-rgb), 0.3);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: rgba(var(--accent-rgb), 0.06);
}

.user-sites-picker__empty {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
}

.form-field__display {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-soft);
}

.vehicle-image-manager {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.vehicle-image-manager__header {
  display: grid;
  gap: 4px;
}

.vehicle-image-manager__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vehicle-image-manager__header strong {
  font-size: 0.96rem;
}

.vehicle-image-manager__header small {
  color: var(--muted);
  line-height: 1.5;
}

.vehicle-image-manager__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.vehicle-image-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.vehicle-image-card.is-dragging {
  opacity: 0.62;
}

.vehicle-image-card.is-drag-over {
  outline: 2px dashed rgba(var(--accent-rgb), 0.45);
  outline-offset: -3px;
}

.vehicle-image-card__media {
  width: 100%;
}

.vehicle-image-card__preview {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  cursor: zoom-in;
}

.vehicle-image-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 0.18s ease;
}

.vehicle-image-card__preview:hover img {
  transform: scale(1.12);
}

.vehicle-image-card__meta {
  display: grid;
  gap: 3px;
}

.vehicle-image-card__meta strong {
  font-size: 0.78rem;
}

.vehicle-image-card__meta small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.vehicle-image-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vehicle-image-manager__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.vehicle-image-card__square-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.vehicle-image-card__square-action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.vehicle-image-card__square-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vehicle-image-card__square-action--featured {
  color: #2f2400;
  border-color: #d1ff00;
  background: #d1ff00;
  box-shadow: 0 0 0 2px rgba(209, 255, 0, 0.25);
}

.vehicle-image-card__square-action--featured:disabled {
  opacity: 1;
  cursor: default;
}

.vehicle-image-card__square-action--primary {
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.32);
  background: rgba(107, 114, 128, 0.16);
}

.vehicle-image-card__square-action--delete {
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(220, 38, 38, 0.10);
}

.vehicle-image-card__square-action--drag {
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.32);
  background: rgba(107, 114, 128, 0.1);
  cursor: grab;
}

.vehicle-image-card__square-action--drag:active {
  cursor: grabbing;
}

.dashboard-image-preview {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dashboard-image-preview[hidden] {
  display: none;
}

[data-vehicle-image-help]:empty {
  display: none;
}

.dashboard-image-preview__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.dashboard-image-preview__dialog {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: 0;
}

.dashboard-image-preview__dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
}

.dashboard-form {
  display: grid;
  gap: 16px;
}

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

.vehicle-form-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.vehicle-form-grid .form-field,
.vehicle-form-grid .form-switch {
  grid-column: span 6;
}

.vehicle-form-grid__span-12 {
  grid-column: span 12 !important;
}

.vehicle-form-grid__span-6 {
  grid-column: span 6 !important;
}

.vehicle-form-grid__span-4 {
  grid-column: span 4 !important;
}

.vehicle-form-grid__span-3 {
  grid-column: span 3 !important;
}

.vehicle-form-grid__balanced-field {
  align-content: start;
}

.vehicle-form-grid__balanced-field input,
.vehicle-form-grid__balanced-field select {
  min-height: 54px;
}

.vehicle-form-grid__balanced-field .form-field__hint,
.vehicle-form-grid__balanced-field .form-field__link {
  min-height: 20px;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-switch {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.form-switch input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.form-switch span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.form-switch small {
  color: var(--muted);
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.form-feedback {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
}

.form-feedback.is-error {
  color: #b42318;
}

.form-feedback.is-success {
  color: var(--accent);
}

.website-settings-modal {
  display: grid;
  gap: 18px;
}

.website-settings-modal__lead {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: var(--muted-strong);
  line-height: 1.6;
  background: var(--surface-soft);
}

.website-settings-shell {
  display: grid;
  gap: 14px;
}

.website-settings-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), rgba(var(--accent-rgb), 0));
}

.website-settings-group__header {
  display: grid;
  gap: 4px;
}

.website-settings-group__title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
}

.website-settings-group__grid,
.website-settings-group__stack {
  display: grid;
  gap: 12px;
}

.website-settings-modal__maintenance-button {
  width: fit-content;
  min-height: 42px;
}

.website-settings-switch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
}

.website-settings-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.website-settings-switch__control {
  display: inline-flex;
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(100, 116, 139, 0.36);
  background: #d6deea;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.website-settings-switch__control::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.website-settings-switch__input:checked + .website-settings-switch__control {
  border-color: rgba(16, 185, 129, 0.4);
  background: #10b981;
}

.website-settings-switch__input:checked + .website-settings-switch__control::after {
  transform: translateX(20px);
}

.website-settings-switch__input:focus-visible + .website-settings-switch__control {
  outline: 2px solid rgba(var(--accent-rgb), 0.46);
  outline-offset: 2px;
}

.website-settings-switch__input:disabled + .website-settings-switch__control {
  opacity: 0.55;
  cursor: not-allowed;
}

.website-settings-switch__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.website-settings-switch__copy strong {
  font-size: 0.95rem;
}

.website-settings-switch__copy small {
  color: var(--muted);
  line-height: 1.55;
}

[data-dashboard-modal="website-settings"] .dashboard-modal__dialog {
  width: min(760px, 100%);
  padding: 24px;
  overflow-x: hidden;
}

[data-dashboard-modal="website-settings"] .dashboard-modal__header {
  gap: 6px;
  margin-bottom: 16px;
}

[data-dashboard-modal="website-settings"] .panel-card__eyebrow {
  margin-right: auto;
}

[data-dashboard-modal="website-settings"] .form-grid,
[data-dashboard-modal="website-settings"] .form-field,
[data-dashboard-modal="website-settings"] .website-settings-switch,
[data-dashboard-modal="website-settings"] .website-settings-switch__copy,
[data-dashboard-modal="website-settings"] .form-actions,
[data-dashboard-modal="website-settings"] .form-feedback {
  min-width: 0;
}

[data-dashboard-modal="website-settings"] .form-field__display,
[data-dashboard-modal="website-settings"] .form-feedback {
  overflow-wrap: anywhere;
  word-break: break-word;
}

[data-dashboard-modal="website-settings"] .form-actions {
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

[data-dashboard-modal="website-settings"] .form-actions .auth-submit {
  min-width: 190px;
}

[data-dashboard-modal="website-settings"] .form-feedback {
  line-height: 1.5;
}

.data-table__head,
.data-table__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 1fr;
  gap: 10px;
  align-items: center;
}

.data-table__head {
  min-height: 30px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table__head[hidden] {
  display: none !important;
}

.data-table__row {
  min-height: 48px;
  padding: 0 4px;
  border-top: 1px solid var(--line-soft);
}

.data-table__row b {
  font-weight: 800;
}

.inventory-table__head,
.inventory-table__row {
  grid-template-columns: 0.42fr 1.5fr 0.9fr 1fr 1fr 0.78fr 0.72fr 0.9fr 1fr;
}

.stores-table__head,
.stores-table__row {
  grid-template-columns: 1.2fr 1.8fr 1fr 1fr 0.6fr 1fr;
}

.backups-table__head,
.backups-table__row {
  grid-template-columns: 1.5fr 0.9fr 0.8fr 0.7fr 0.65fr 1fr;
}

.users-table__head,
.users-table__row {
  grid-template-columns: 1.2fr 1.3fr 0.95fr 0.8fr 1fr;
}

.backup-run {
  display: grid;
  gap: 2px;
}

.backup-run strong {
  font-size: 0.96rem;
}

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

.backup-origin-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-soft);
  color: var(--text);
}

.backup-origin-badge.is-schedule {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
}

.backup-origin-badge.is-scheduled-pending {
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
}

.backup-origin-badge.is-pre-restore {
  color: var(--accent-strong);
  background: rgba(var(--accent-rgb), 0.12);
}

.backup-origin-badge.is-manual {
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
}

.table-primary {
  display: grid;
  gap: 2px;
}

.table-primary strong {
  font-size: 0.96rem;
}

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

.inventory-status-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.inventory-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-soft);
  color: var(--text);
}

.inventory-status-badge.is-success {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
}

.inventory-status-badge.is-danger {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.14);
}

.inventory-status-badge.is-accent {
  color: var(--accent-strong);
  background: rgba(var(--accent-rgb), 0.14);
}

.inventory-drag-cell {
  display: flex;
  align-items: center;
}

.inventory-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  cursor: grab;
}

.inventory-drag-handle:active {
  cursor: grabbing;
}

.inventory-table__row.is-dragging {
  opacity: 0.68;
}

.inventory-table__row.is-drag-over {
  outline: 2px dashed rgba(var(--accent-rgb), 0.45);
  outline-offset: -4px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.dashboard-action-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-soft);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.dashboard-action-button--small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.92rem;
}

.dashboard-action-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--surface);
}

.dashboard-action-button--danger {
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.08);
}

.dashboard-action-button--danger:hover {
  border-color: rgba(220, 38, 38, 0.36);
  background: rgba(220, 38, 38, 0.12);
}

.dashboard-action-button--accent {
  color: var(--accent-strong);
  border-color: rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.08);
}

.dashboard-action-button--accent:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.14);
}

.auth-submit:disabled,
.dashboard-action-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-submit:disabled:hover,
.dashboard-action-button:disabled:hover {
  transform: none;
}

.payment-confirm {
  display: grid;
  gap: 16px;
}

.payment-confirm__lead,
.payment-confirm__warning {
  margin: 0;
  line-height: 1.6;
}

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

.payment-confirm__detail {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface-soft);
}

.payment-confirm__detail span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.payment-confirm__detail strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.payment-confirm__warning {
  padding: 14px;
  border: 1px solid rgba(202, 138, 4, 0.24);
  border-radius: 14px;
  color: #854d0e;
  background: rgba(202, 138, 4, 0.12);
}

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

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

.payment-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

[data-dashboard-modal="delete-confirm"] .payment-confirm__detail[hidden] {
  display: none !important;
}

[data-dashboard-modal="delete-confirm"] .payment-confirm__detail--wide {
  grid-column: span 2;
}

[data-dashboard-modal="logout-confirm"] .dashboard-modal__dialog {
  width: min(520px, 100%);
  padding: 24px;
}

[data-dashboard-modal="logout-confirm"] .dashboard-modal__header {
  gap: 6px;
  margin-bottom: 14px;
}

[data-dashboard-modal="logout-confirm"] .panel-card__eyebrow {
  margin-right: auto;
}

.logout-confirm {
  display: grid;
  gap: 20px;
}

.logout-confirm__message {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: var(--muted-strong);
  line-height: 1.6;
  background: var(--surface-soft);
}

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

.logout-confirm__button {
  width: 100%;
  min-height: 46px;
}

.dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dashboard-modal[hidden] {
  display: none;
}

.dashboard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.28);
  backdrop-filter: blur(10px);
}

.dashboard-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.dashboard-modal__dialog--compact {
  width: min(720px, 100%);
}

.dashboard-modal__header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.dashboard-modal__header h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
}

.dashboard-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--surface);
  cursor: pointer;
}

.event-list li,
.timeline-list li,
.activity-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface-soft);
}

.event-list span,
.timeline-list span,
.activity-list span {
  color: var(--muted);
  line-height: 1.55;
}

.timeline-list li {
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.activity-list li {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.activity-list i {
  margin-top: 3px;
  color: var(--accent);
}

.activity-list--overview {
  align-content: start;
}

.activity-entry {
  display: grid;
  gap: 4px;
}

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

.activity-entry small {
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-body.is-auth-pending,
.dashboard-body.is-auth-pending-leaving {
  overflow: hidden;
}

.dashboard-body.is-auth-pending .auth-shell,
.dashboard-body.is-auth-pending .auth-password-change-shell,
.dashboard-body.is-auth-pending .dashboard-shell {
  display: none;
}

.dashboard-body.is-auth-pending .auth-boot {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
  transition: none;
}

.dashboard-body.is-auth-pending-leaving .auth-boot {
  opacity: 0;
  visibility: visible;
  filter: blur(10px);
}

.dashboard-body.is-auth-pending-leaving .auth-shell,
.dashboard-body.is-auth-pending-leaving .auth-password-change-shell,
.dashboard-body.is-auth-pending-leaving .dashboard-shell {
  animation: auth-pending-reveal 320ms ease both;
}
@keyframes auth-pending-reveal {
  from {
    opacity: 0.94;
    filter: blur(10px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

.dashboard-body.is-auth-locked .dashboard-shell {
  display: none;
}

.dashboard-body.is-auth-locked:not(.is-auth-password-change) .auth-password-change-shell {
  display: none;
}

.dashboard-body.is-auth-password-change .auth-shell {
  display: none;
}

.dashboard-body.is-auth-password-change .dashboard-shell {
  display: none;
}

.dashboard-body.is-auth-password-change .auth-password-change-shell {
  display: grid;
}

.dashboard-body:not(.is-auth-locked) .auth-shell {
  display: none;
}

.dashboard-body:not(.is-auth-locked) .auth-password-change-shell {
  display: none;
}

.dashboard-body:not(.is-auth-locked) {
  overflow: hidden;
}

.dashboard-body.has-dashboard-modal {
  overflow: hidden;
}

@media (max-width: 1260px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .users-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-toolbar--inventory {
    grid-template-columns: minmax(280px, 1.6fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr);
  }

  .signature-verifier {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .auth-shell,
  .auth-password-change-shell,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    height: auto;
    overflow: visible;
    align-items: start;
  }

  .dashboard-page {
    padding: 10px;
  }

  .dashboard-sidebar {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 14px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .sidebar-summary {
    align-self: stretch;
    gap: 10px;
    margin-top: auto;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid var(--line-soft);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .sidebar-brand {
    position: relative;
    padding-right: 44px;
  }

  .sidebar-nav {
    min-height: 0;
    padding-right: 0;
    overflow: auto;
  }

  .sidebar-summary strong {
    white-space: normal;
    text-align: left;
  }

  .dashboard-menu-toggle {
    display: inline-flex;
  }

  .sidebar-close-mobile {
    display: grid;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    min-height: 36px;
    padding: 0;
  }

  .sidebar-theme-toggle,
  .sidebar-summary [data-dashboard-logout] {
    width: 100%;
  }

  .dashboard-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .dashboard-body.is-sidebar-popup-open {
    overflow: hidden;
  }

  .dashboard-body.is-sidebar-popup-open .dashboard-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-body.is-sidebar-popup-open .dashboard-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-main {
    grid-template-rows: auto minmax(0, 1fr);
    height: auto;
    overflow: visible;
    padding-right: 0;
    gap: 10px;
    align-content: start;
  }

  .dashboard-mobile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    align-self: start;
    min-height: 60px;
  }

  .dashboard-mobile-header .dashboard-menu-toggle {
    width: 34px;
    min-height: 34px;
    padding: 0;
  }

  .dashboard-toolbar--inventory,
  .dashboard-toolbar--activity,
  .dashboard-toolbar--stores,
  .dashboard-view.is-signature-admin {
    grid-template-columns: 1fr;
  }

  .dashboard-toolbar--inventory,
  .dashboard-toolbar--activity,
  .dashboard-toolbar--stores {
    overflow: visible;
    padding-bottom: 0;
  }

  .control-field--compact {
    max-width: none;
    justify-self: stretch;
  }

  .dashboard-toolbar,
  .form-grid,
  .stats-grid,
  .dashboard-view,
  .overview-financial-metrics {
    grid-template-columns: 1fr;
  }

  .panel-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-views,
  .dashboard-view,
  .dashboard-view--list.is-active,
  .panel-card--list-layout {
    height: auto;
  }

  .panel-card--list-layout {
    overflow: visible;
  }

  .panel-card--list-layout .site-list,
  .panel-card--list-layout .redirects-list,
  .panel-card--list-layout .payments-list,
  .panel-card--list-layout .activity-list,
  .panel-card--list-layout .users-list,
  .panel-card--list-layout .dashboard-list {
    overflow: visible;
    padding-right: 0;
  }

  .panel-card--list-layout .data-table {
    flex: initial;
    min-height: auto;
    overflow: visible;
  }

  .dashboard-body:not(.is-auth-locked) {
    overflow: auto;
  }

  .dashboard-body.is-sidebar-popup-open:not(.is-auth-locked) {
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  .auth-notice-stack {
    top: 12px;
    right: 10px;
    width: min(340px, calc(100vw - 20px));
  }

  .dashboard-page {
    padding: 10px;
  }

  .auth-shell,
  .auth-password-change-shell,
  .dashboard-shell {
    min-height: calc(100vh - 20px);
  }

  .auth-intro,
  .auth-card,
  .auth-password-change-card,
  .dashboard-sidebar,
  .dashboard-header,
  .stat-card,
  .panel-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-header__actions {
    flex-wrap: wrap;
  }

  .panel-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-toolbar,
  .form-grid,
  .stats-grid,
  .dashboard-view {
    grid-template-columns: 1fr;
  }

  .signature-dropzone {
    width: 100%;
    min-height: 220px;
    padding: 18px;
  }

  .signature-result__meta {
    grid-template-columns: 1fr;
  }

  .user-card__meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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

  .vehicle-form-grid .form-field,
  .vehicle-form-grid .form-switch,
  .vehicle-form-grid__span-12,
  .vehicle-form-grid__span-6,
  .vehicle-form-grid__span-4,
  .vehicle-form-grid__span-3 {
    grid-column: auto !important;
  }

  .vehicle-image-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vehicle-image-card__actions {
    justify-content: flex-end;
  }

  .vehicle-image-manager__header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-image-preview {
    padding: 10px;
  }

  .dashboard-image-preview__dialog {
    width: min(100vw - 20px, 980px);
    max-height: calc(100vh - 20px);
  }

  .dashboard-image-preview__dialog img {
    max-height: calc(100vh - 20px);
  }

  .overview-financial-metrics {
    grid-template-columns: 1fr;
  }

  .overview-financial-metrics__wide {
    grid-column: auto;
  }

  .overview-activity-panel {
    min-height: 220px;
  }

  .website-card__summary,
  .page-row,
  .data-table__head,
  .data-table__row,
  .timeline-list li,
  .activity-list li {
    grid-template-columns: 1fr;
  }

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

  .website-card__actions {
    justify-self: start;
  }

  .page-row,
  .data-table__row,
  .payment-month-row {
    gap: 6px;
    padding: 8px 0;
  }

  .page-row > span,
  .data-table__row > span,
  .payment-month-row > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .payment-card__summary,
  .payment-card__metrics,
  .payment-card__billing,
  .payment-month-row,
  .payment-confirm__details {
    grid-template-columns: 1fr;
  }

  #payments .payment-card__metrics {
    display: none;
  }

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

  .payment-card__status,
  .payment-card__status--action,
  .payment-confirm__actions {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .redirect-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .redirect-card__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .redirect-domain-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .redirect-domain-row code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .payment-confirm__actions {
    flex-direction: column-reverse;
  }

  [data-dashboard-modal="delete-confirm"] .payment-confirm__detail--wide {
    grid-column: auto;
  }

  .logout-confirm__actions {
    grid-template-columns: 1fr;
  }

  .logout-confirm__button {
    min-height: 44px;
  }

  .dashboard-pagination,
  .pagination__controls {
    justify-content: flex-start;
  }

  .dashboard-modal {
    padding: 12px;
  }

  .dashboard-modal__dialog,
  .dashboard-modal__dialog--compact {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  [data-dashboard-modal="user"] .dashboard-modal__dialog {
    padding: 18px;
  }

  [data-dashboard-modal="website-settings"] .dashboard-modal__dialog {
    padding: 18px;
  }

  .user-management-shell {
    padding: 12px;
  }

  .website-settings-shell {
    gap: 12px;
  }

  .website-settings-group {
    padding: 12px;
  }

  .website-settings-modal__maintenance-button,
  [data-dashboard-modal="website-settings"] .form-actions .auth-submit {
    width: 100%;
  }

  .user-sites-picker__header {
    flex-direction: column;
    align-items: stretch;
  }

  .user-sites-picker__tools {
    grid-template-columns: 1fr;
  }

  .page-row--head {
    display: none;
  }

  .data-table__head,
  .payment-month-row--head {
    display: none;
  }
}

.payment-pix {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface-soft);
}

.payment-pix[hidden] {
  display: none !important;
}

.payment-pix__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.payment-pix__header strong {
  font-family: "Sora", sans-serif;
}

.payment-pix__header small {
  color: var(--muted-strong);
  font-weight: 700;
}

.payment-pix__amount {
  display: grid;
  gap: 4px;
}

.payment-pix__amount span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-pix__amount strong {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
}

.payment-pix__qr {
  width: min(260px, 100%);
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: #fff;
  padding: 10px;
}

.payment-pix__checkmark {
  display: none;
  justify-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
}

.payment-pix__checkmark i {
  font-size: 2.4rem;
}

.payment-pix__checkmark strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.payment-pix__empty {
  color: var(--muted);
  font-size: 0.95rem;
}

.payment-pix textarea {
  width: 100%;
  resize: vertical;
  min-height: 70px;
}

.payment-pix__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-pix__paid-button {
  margin-left: auto;
}

.payment-pix__footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-pix__footer-close {
  margin-left: auto;
}

.payment-pix__footer[hidden] {
  display: none !important;
}

.payment-pix.is-paid .payment-pix__copy-wrap,
.payment-pix.is-paid .payment-pix__actions {
  display: none;
}

.payment-pix.is-paid .payment-pix__checkmark {
  display: grid;
}

[data-dashboard-modal="payment-confirm"] .payment-confirm.is-pix-focus .payment-confirm__lead,
[data-dashboard-modal="payment-confirm"] .payment-confirm.is-pix-focus .payment-confirm__details,
[data-dashboard-modal="payment-confirm"] .payment-confirm.is-pix-focus .payment-confirm__warning,
[data-dashboard-modal="payment-confirm"] .payment-confirm.is-pix-focus .payment-confirm__payer-grid,
[data-dashboard-modal="payment-confirm"] .payment-confirm.is-pix-focus > .payment-confirm__field,
[data-dashboard-modal="payment-confirm"] .payment-confirm.is-pix-focus > .form-feedback,
[data-dashboard-modal="payment-confirm"] .payment-confirm.is-pix-focus > .payment-confirm__actions {
  display: none;
}

[data-dashboard-modal="payment-confirm"] .payment-confirm.is-pix-focus .payment-pix {
  margin-top: 0;
}

.payment-receipts {
  display: grid;
  gap: 14px;
}

.payment-receipts__list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.payment-receipt-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title footer"
    "date footer";
  column-gap: 12px;
  row-gap: 6px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface-soft);
}

.payment-receipt-item__title {
  grid-area: title;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
  text-align: left;
}

.payment-receipt-item__date {
  grid-area: date;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
}

.payment-receipt-item__footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  align-self: center;
}

.payment-receipt-item__tags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.payment-receipt-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.payment-receipt-tag--amount {
  color: var(--accent-strong);
  border-color: rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.12);
}

.payment-receipt-tag--paid {
  color: #166534;
  border-color: rgba(22, 163, 74, 0.28);
  background: rgba(22, 163, 74, 0.14);
}

.payment-receipt-item__download {
  min-width: 36px;
  width: 36px;
  padding: 0;
  flex: 0 0 36px;
}

@media (max-width: 760px) {
  .payment-receipt-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "footer"
      "date";
  }

  .payment-receipt-item__title,
  .payment-receipt-item__date {
    text-align: center;
  }

  .payment-receipt-item__footer,
  .payment-receipt-item__tags {
    justify-content: center;
    flex-wrap: wrap;
  }

  .payment-pix__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-pix__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-pix__paid-button,
  .payment-pix__footer-close {
    margin-left: 0;
  }

  .payment-pix__actions .dashboard-action-button,
  .payment-pix__footer .dashboard-action-button {
    width: 100%;
  }
}
