:root {
  --brand-indigo: #4f46e5;
  --brand-blue: #0ea5e9;
  --brand-coral: #f43f5e;
  --bg: #f4f6fa;
  --bg-end: #eaeef5;
  --bg-card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 24px 48px -12px rgba(79, 70, 229, 0.12), 0 8px 16px -8px rgba(15, 23, 42, 0.06);
  --input-bg: #f8fafc;
  --grad-1: rgba(79, 70, 229, 0.12);
  --grad-2: rgba(14, 165, 233, 0.1);
  --grad-3: rgba(244, 63, 94, 0.06);
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.08);
}

html[data-theme="dark"] {
  --bg: #0c0f1a;
  --bg-end: #12182a;
  --bg-card: #161c30;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #2d3748;
  --shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.45);
  --input-bg: #0f172a;
  --grad-1: rgba(99, 102, 241, 0.18);
  --grad-2: rgba(14, 165, 233, 0.12);
  --grad-3: rgba(244, 63, 94, 0.08);
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  font-family: "Sora", Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 380px at 15% -5%, var(--grad-1), transparent 55%),
    radial-gradient(700px 320px at 90% 10%, var(--grad-2), transparent 50%),
    radial-gradient(500px 260px at 50% 100%, var(--grad-3), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-end) 100%);
  transition: background 0.35s ease, color 0.25s ease;
}

/* Login / signup — card centered in viewport */
body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

body.auth-page .auth-card {
  flex-shrink: 0;
  width: min(100%, 26.5rem);
  margin: 0 auto;
}

body.auth-page .auth-card--wizard {
  width: min(100%, 28rem);
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}

.theme-toggle:hover { border-color: var(--brand-indigo); }

.theme-toggle .material-symbols-outlined {
  font-size: 1.35rem;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

/* ── Card ── */
.auth-card {
  width: min(100%, 26.5rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 0;
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.auth-card::before,
.auth-card::after {
  display: none !important;
  content: none !important;
}

.auth-card-body {
  padding: 1.75rem 1.75rem 1.5rem;
}

/* ── Header: logo left · copy right ── */
.auth-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.auth-logo {
  width: 5.5rem;
  height: auto;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
}

.auth-logo .mail-logo {
  width: 4.5rem;
  height: auto;
  object-fit: contain;
}

.auth-logo .mail-logo--light,
.app-brand .mail-logo--light { display: block; }

.auth-logo .mail-logo--dark,
.app-brand .mail-logo--dark { display: none; }

html[data-theme="dark"] .auth-logo .mail-logo--light,
html[data-theme="dark"] .app-brand .mail-logo--light { display: none; }

html[data-theme="dark"] .auth-logo .mail-logo--dark,
html[data-theme="dark"] .app-brand .mail-logo--dark { display: block; }

.auth-head-copy {
  text-align: right;
  min-width: 0;
}

.auth-head h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

.auth-sub {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--muted);
}

/* ── Form ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.auth-login-step {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

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

.auth-login-step--2fa {
  gap: 1rem;
}

.auth-2fa-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin: 0;
  padding: 1rem 1.125rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.07) 0%,
    rgba(14, 165, 233, 0.05) 100%
  );
}

.auth-2fa-banner-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-indigo) 0%, #0ea5e9 100%);
  box-shadow: 0 4px 14px -4px rgba(79, 70, 229, 0.55);
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.auth-2fa-hint {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
}

.auth-2fa-hint strong {
  font-weight: 600;
  color: var(--brand-indigo);
}

.auth-2fa-field {
  margin-top: 0.125rem;
}

.auth-otp-input {
  font-size: 1.375rem !important;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-align: center;
  padding: 0.85rem 1rem !important;
  border-radius: 0.75rem !important;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  border-color: rgba(99, 102, 241, 0.35) !important;
  background: var(--bg-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-otp-input:focus {
  border-color: var(--brand-indigo) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
  outline: none;
}

.auth-otp-input::placeholder {
  letter-spacing: 0.28em;
  color: rgba(100, 116, 139, 0.45);
  font-weight: 600;
}

.auth-2fa-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.auth-2fa-actions .btn-primary,
.auth-2fa-actions .btn-secondary {
  width: 100%;
  margin: 0;
  min-height: 2.75rem;
}

.auth-2fa-resend {
  margin: 0.625rem 0 0;
  padding: 0;
  text-align: center;
  line-height: 1.5;
}

.auth-2fa-resend .auth-text-link {
  font-size: 0.8125rem;
}

.auth-text-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  color: var(--brand-indigo);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(99, 102, 241, 0.45);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.auth-text-link:hover:not(:disabled):not(.is-busy) {
  color: #4338ca;
  text-decoration-color: currentColor;
}

.auth-text-link:disabled,
.auth-text-link.is-busy {
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: none;
}

html[data-theme="dark"] .auth-2fa-banner {
  border-color: rgba(129, 140, 248, 0.22);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.14) 0%,
    rgba(14, 165, 233, 0.08) 100%
  );
}

html[data-theme="dark"] .auth-2fa-hint strong {
  color: #a5b4fc;
}

html[data-theme="dark"] .auth-otp-input {
  border-color: rgba(129, 140, 248, 0.35) !important;
  background: rgba(15, 23, 42, 0.5);
}

html[data-theme="dark"] .auth-otp-input:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.field input {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  font-family: "Sora", Inter, "Segoe UI", Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  background: var(--input-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Saved credentials / autofill — match app font (Chrome, Safari, Edge) */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active,
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  font-family: "Sora", Inter, "Segoe UI", Arial, sans-serif !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
  transition: background-color 99999s ease-in-out 0s;
}

.field input:autofill,
.auth-form input:autofill {
  font-family: "Sora", Inter, "Segoe UI", Arial, sans-serif !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  background-color: var(--input-bg) !important;
}

.field input::placeholder { color: var(--muted); opacity: 0.7; }

.field input:hover { border-color: #94a3b8; }

.field input:focus {
  outline: none;
  border-color: var(--brand-indigo);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.field input.field-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.pw-wrap { position: relative; }

.pw-wrap input { padding-right: 2.75rem; }

.pw-toggle {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.pw-toggle:hover { color: var(--brand-indigo); }

.pw-toggle .material-symbols-outlined {
  font-size: 1.15rem;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: -0.25rem;
  font-size: 0.8125rem;
}

.remember {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.remember input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--brand-indigo);
  cursor: pointer;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.terms input {
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: var(--brand-indigo);
  cursor: pointer;
}

.link {
  color: var(--brand-indigo);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.link:hover { text-decoration: underline; }

html[data-theme="dark"] .link { color: #818cf8; }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.75rem;
  margin-top: 0.25rem;
  padding: 0 1rem;
  border: none;
  border-radius: 0.625rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-blue) 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.btn-primary:active { transform: scale(0.99); }

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Legacy inline toasts (replaced by popup) */
.toast {
  display: none !important;
}

/* ── Popup toast (5s auto-dismiss) ── */
.mail-toast-popup {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  z-index: 10000;
  width: min(24rem, calc(100vw - 2rem));
  transform: translateX(-50%) translateY(-1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.mail-toast-popup.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mail-toast-popup.is-leaving {
  opacity: 0;
  transform: translateX(-50%) translateY(-0.75rem);
}

.mail-toast-popup__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.65rem 0.75rem;
  padding: 0.9rem 1rem 1.1rem;
  border-radius: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.mail-toast-popup.is-error .mail-toast-popup__inner {
  border-color: rgba(220, 38, 38, 0.35);
  background: color-mix(in srgb, var(--error-bg) 40%, var(--bg-card));
}

.mail-toast-popup.is-info .mail-toast-popup__inner {
  border-color: rgba(79, 70, 229, 0.28);
  background: color-mix(in srgb, rgba(79, 70, 229, 0.08) 50%, var(--bg-card));
}

.mail-toast-popup.is-success .mail-toast-popup__inner {
  border-color: rgba(34, 197, 94, 0.35);
  background: color-mix(in srgb, rgba(34, 197, 94, 0.1) 55%, var(--bg-card));
}

.mail-toast-popup__icon {
  font-size: 1.35rem;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
  margin-top: 0.1rem;
}

.mail-toast-popup.is-error .mail-toast-popup__icon { color: var(--error); }
.mail-toast-popup.is-info .mail-toast-popup__icon { color: var(--brand-indigo); }
.mail-toast-popup.is-success .mail-toast-popup__icon { color: #15803d; }

html[data-theme="dark"] .mail-toast-popup.is-info .mail-toast-popup__icon {
  color: #a5b4fc;
}

html[data-theme="dark"] .mail-toast-popup.is-success .mail-toast-popup__icon {
  color: #4ade80;
}

.mail-toast-popup__text {
  margin: 0;
  padding-top: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text);
}

.mail-toast-popup__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.mail-toast-popup__close:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

.mail-toast-popup__close .material-symbols-outlined {
  font-size: 1.125rem;
}

.mail-toast-popup__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(15, 23, 42, 0.06);
}

.mail-toast-popup__progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(1);
}

.mail-toast-popup.is-error .mail-toast-popup__progress-fill {
  background: var(--error);
}

.mail-toast-popup.is-info .mail-toast-popup__progress-fill {
  background: var(--brand-indigo);
}

.mail-toast-popup.is-success .mail-toast-popup__progress-fill {
  background: #22c55e;
}

@keyframes mail-toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ── Footer ── */
.auth-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.auth-footer {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Wizard ── */
.is-hidden {
  display: none !important;
}

.auth-card--wizard {
  width: min(100%, 28rem);
}

.auth-card--wizard .auth-card-body {
  padding: 1.5rem 1.5rem 1.25rem;
}

.auth-card--wizard .auth-head {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  align-items: center;
}

.auth-card--wizard .auth-head {
  grid-template-columns: auto 1fr;
}

.auth-card--wizard .auth-logo {
  width: auto;
  height: auto;
  align-self: center;
}
.auth-card--wizard .auth-logo .mail-logo {
  width: 4.5rem;
  height: auto;
}

.auth-card--wizard .auth-head-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wizard-progress {
  margin-bottom: 1rem;
}

.wizard-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.wizard-step-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.wizard-step-current {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.wizard-track {
  height: 3px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.wizard-track-fill {
  display: block;
  height: 100%;
  width: 33.33%;
  border-radius: 999px;
  background: var(--brand-indigo);
  transition: width 0.25s ease;
}

html[data-theme="dark"] .wizard-track-fill {
  background: #818cf8;
}

.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wizard-panel {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.wizard-panel-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.wizard-form .field {
  margin-bottom: 0;
}

.wizard-form .toast {
  margin-top: 0.5rem;
}

.wizard-actions {
  display: grid;
  gap: 0.65rem;
  align-items: stretch;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.wizard-actions[data-layout="1"] {
  grid-template-columns: 1fr;
}

.wizard-actions[data-layout="2"] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}

.wizard-actions .btn-primary,
.wizard-actions .btn-secondary {
  width: 100%;
  height: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
}

@media (max-width: 480px) {
  .wizard-actions[data-layout="2"] {
    grid-template-columns: 1fr;
  }
}

.wizard-footer {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
  text-align: center;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  background: var(--input-bg);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.btn-secondary:hover { border-color: var(--brand-indigo); }

/* ── App shell ── */
body.app-body {
  display: block;
  padding: 1.25rem;
  padding-top: 4rem;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 52rem);
  margin: 0 auto;
}

.app-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.app-nav h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.app-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-indigo);
  background: rgba(79, 70, 229, 0.08);
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active { color: #a5b4fc; }

.app-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  margin-bottom: 1rem;
}

.app-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.app-card p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.app-card p:last-child { margin-bottom: 0; }

.banner {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: rgba(79, 70, 229, 0.06);
}

.banner.warn {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.08);
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pill.pending { background: rgba(234, 179, 8, 0.15); color: #b45309; }

.status-pill.verified { background: rgba(34, 197, 94, 0.15); color: #15803d; }

.status-pill.failed { background: var(--error-bg); color: var(--error); }

.status-pill.needs_mx {
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
}

html[data-theme="dark"] .status-pill.pending { color: #fbbf24; }

html[data-theme="dark"] .status-pill.verified { color: #4ade80; }

html[data-theme="dark"] .status-pill.needs_mx {
  background: rgba(251, 146, 60, 0.18);
  color: #fdba74;
}

.dns-empty {
  margin: 0.75rem 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.dns-cf-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  background: #e2e8f0;
}

html[data-theme="dark"] .dns-cf-badge {
  color: #e2e8f0;
  background: #334155;
}

/* ── Domain page (full width) ── */
body.app-body--domain {
  display: block;
  padding: 0;
  padding-top: 0;
  min-height: 100dvh;
}

body.app-body--domain .app-topbar {
  margin-bottom: 0.65rem;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
  background: transparent;
  gap: 0.75rem 1rem;
}

body.app-body--domain .theme-toggle.theme-toggle--bar {
  cursor: pointer;
}

.domain-layout {
  width: min(100%, 80rem);
  max-width: calc(100vw - 2.5rem);
  margin: 0 auto;
  padding: 0.5rem clamp(1rem, 2.5vw, 1.5rem) 2rem;
}

@media (min-width: 1024px) {
  .domain-layout {
    max-width: calc(100vw - 4rem);
  }
}

.domain-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.domain-panel {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 1.125rem;
  background: var(--bg-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.domain-panel-head {
  padding: 1.35rem 1.5rem 0;
}

.domain-panel-head h2 {
  margin: 0 0 0.35rem;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.domain-panel-head p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.domain-panel-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.domain-panel-title-row h2 {
  margin: 0;
}

.domain-panel--dns .domain-panel-head {
  padding: 1.35rem 1.5rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.domain-panel--dns .domain-panel-title-row {
  margin-bottom: 0;
}

.domain-panel--dns .dns-table-host {
  padding: 0.35rem 0 0.5rem;
}

.domain-connect-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.75rem 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

@media (max-width: 560px) {
  .domain-connect-form {
    grid-template-columns: 1fr;
  }

  .domain-connect-btn {
    width: 100%;
  }
}

.domain-connect-field {
  min-width: 0;
  margin: 0;
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.dns-table-host .field-hint a,
.domain-panel-head + * .field-hint a {
  color: var(--brand-indigo);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.dns-table-host .field-hint a:hover,
.domain-panel-head + * .field-hint a:hover {
  opacity: 0.88;
}

.field-hint--error {
  color: var(--error);
  font-weight: 500;
}

.domain-connect-field input.field-invalid {
  border-color: var(--error);
}

.domain-connect-field input {
  max-width: none;
  height: 2.75rem;
  box-sizing: border-box;
}

.domain-connect-form .domain-connect-btn.btn-primary {
  width: auto;
  min-width: 9.5rem;
  height: 2.75rem;
  min-height: 2.75rem;
  margin-top: 0;
  padding: 0 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 0.625rem;
  box-sizing: border-box;
  white-space: nowrap;
}

.dns-table-host {
  padding: 0 0 0.35rem;
}

.dns-table-host .dns-cf-hint {
  display: block;
  box-sizing: border-box;
  width: auto;
  margin: 0.65rem 1.5rem 1.15rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text);
  background: rgba(79, 70, 229, 0.06);
}

.dns-table-host .dns-cf-hint strong {
  font-weight: 700;
  color: var(--brand-indigo);
}

.dns-table-host .dns-records-head,
.dns-table-host .dns-records-list {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.dns-table-host .dns-subheading {
  margin: 1.35rem 1.5rem 0.35rem;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text);
}

.dns-table-host .dns-subheading--first {
  margin-top: 0.5rem;
}

.domain-panel-lead {
  margin: 0.4rem 1.5rem 1rem;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 42rem;
  color: var(--text-muted, #64748b);
}

.dns-table-host .dns-subheading + .field-hint,
.dns-table-host .dns-subheading--first + .field-hint {
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/* Breathing room before the first hint box after intro copy */
.dns-table-host .dns-subheading--first + .field-hint + .dns-cf-hint {
  margin-top: 0.85rem;
}

.dns-table-host .dns-records-list + .dns-subheading {
  margin-top: 2rem;
}

html[data-theme="dark"] .dns-table-host .dns-cf-hint {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(129, 140, 248, 0.35);
}

html[data-theme="dark"] .dns-table-host .dns-cf-hint strong {
  color: #a5b4fc;
}

.domain-panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1.5rem 1.6rem;
  border-top: 1px solid var(--border);
  background: rgba(79, 70, 229, 0.02);
}

.domain-panel-foot .btn-primary,
.domain-panel-foot .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 0.5rem;
  white-space: nowrap;
  box-sizing: border-box;
}

.domain-panel-foot .btn-primary {
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.domain-panel-foot .btn-primary:hover {
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.38);
}

.domain-panel-foot .btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.domain-panel-foot .btn-secondary:hover {
  background: color-mix(in srgb, var(--brand-indigo) 6%, var(--bg-card));
  border-color: rgba(79, 70, 229, 0.35);
  color: var(--brand-indigo);
}

html[data-theme="dark"] .domain-panel-foot {
  background: rgba(99, 102, 241, 0.04);
}

html[data-theme="dark"] .domain-panel-foot .btn-secondary {
  background: var(--bg-card);
}

@media (max-width: 720px) {
  .domain-panel-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .domain-panel-foot .btn-primary,
  .domain-panel-foot .btn-secondary {
    width: 100%;
  }
}

.dns-records-head {
  display: none;
}

@media (min-width: 900px) {
  .dns-records-head {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr) 10rem;
    gap: 1rem 1.65rem;
    align-items: end;
    padding: 0 1.5rem 0.65rem;
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .dns-records-head--mx {
    grid-template-columns: 5rem minmax(0, 0.85fr) minmax(12rem, 1.55fr) 10rem;
    align-items: end;
  }

  .dns-records-head-mx-mid {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1rem;
    min-width: 0;
  }

  .dns-records-head-mx-mid span:first-child {
    flex: 0 0 6rem;
    min-width: 5.25rem;
    max-width: 7rem;
  }

  .dns-records-head-mx-mid span:last-child {
    flex: 1 1 auto;
    min-width: min(12rem, 30vw);
  }
}

.dns-records-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.6rem;
}

.dns-record--mx .dns-type-badge {
  align-self: center;
  margin-top: 0;
}

/* Priority + hostname on one horizontal line (single row height) */
.dns-mx-stack {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 1px; /* avoid focus ring clip */
}

.dns-mx-stack > .dns-field {
  flex: 0 0 auto;
  margin: 0;
  gap: 0;
}

.dns-mx-stack > .dns-field:first-child {
  flex: 0 0 auto;
  width: 6rem;
  min-width: 5.25rem;
  max-width: 7rem;
}

.dns-mx-stack > .dns-field:last-child {
  flex: 1 1 auto;
  min-width: min(14rem, 40vw);
  max-width: 100%;
}

.dns-mx-stack > .dns-field .dns-field-label {
  display: none;
}

.dns-mx-stack > .dns-field .dns-field-row {
  gap: 0.55rem;
}

.dns-record {
  --dns-field-h: 2.625rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--input-bg);
}

@media (min-width: 900px) {
  .dns-record {
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr) 10rem;
    gap: 1rem 1.65rem;
    align-items: center;
    padding: 1.1rem 1.35rem;
  }

  .dns-record--mx {
    grid-template-columns: 5rem minmax(0, 0.85fr) minmax(12rem, 1.55fr) 10rem;
    align-items: center;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }

  .dns-record .dns-field-label {
    display: none;
  }

  .dns-field--proxy {
    display: flex;
    align-items: center;
    min-height: var(--dns-field-h);
  }
}

.dns-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  box-sizing: border-box;
  height: var(--dns-field-h, 2.5rem);
  min-height: var(--dns-field-h, 2.5rem);
  padding: 0 0.4rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--brand-indigo);
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

@media (min-width: 900px) {
  .dns-type-badge {
    width: 100%;
  }
}

.dns-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.dns-field-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.dns-field-row {
  --dns-field-h: 2.625rem;
  display: flex;
  align-items: stretch;
  gap: 0.7rem;
  min-width: 0;
}

.dns-field-value {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  height: var(--dns-field-h);
  margin: 0;
  padding: 0 0.85rem;
  box-sizing: border-box;
  overflow: hidden;
  font-family: "Sora", Inter, "Segoe UI", Arial, sans-serif;
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.dns-field-value__text {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.25;
}

.dns-field--proxy {
  align-self: center;
}

@media (max-width: 899px) {
  .dns-field--proxy {
    margin-top: 0.35rem;
  }
}

.dns-proxy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  height: var(--dns-field-h, 2.5rem);
  min-height: var(--dns-field-h, 2.5rem);
  width: fit-content;
  max-width: 100%;
  padding: 0 0.65rem;
  border-radius: 0.5rem;
  font-family: "Sora", Inter, "Segoe UI", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: #475569;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

@media (min-width: 900px) {
  .dns-proxy-badge {
    width: 100%;
  }
}

.dns-proxy-badge__icon {
  font-size: 1rem !important;
  color: #64748b;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
}

.dns-proxy-badge__label {
  letter-spacing: 0.01em;
}

html[data-theme="dark"] .dns-proxy-badge {
  color: #cbd5e1;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-color: #475569;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .dns-proxy-badge__icon {
  color: #94a3b8;
}

.dns-copy {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--dns-field-h, 2.5rem);
  height: var(--dns-field-h, 2.5rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-sizing: border-box;
  background: var(--bg-card);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.dns-copy:hover {
  color: var(--brand-indigo);
  border-color: var(--brand-indigo);
}

.dns-copy.copied {
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

html[data-theme="dark"] .dns-copy.copied {
  color: #4ade80;
}

.dns-copy .material-symbols-outlined {
  font-size: 1rem;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  height: auto;
  width: auto;
  border-radius: 0.5rem;
}

.btn-ghost-link {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.mailbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mailbox-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.mailbox-list li:last-child { border-bottom: none; }

.mailbox-email { font-weight: 600; }

.locked-overlay {
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 0.75rem;
}

.inline-form .field {
  flex: 1;
  min-width: 8rem;
  margin: 0;
}

.inline-form .btn-primary {
  width: auto;
  margin-top: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.field select {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--input-bg);
}

/* ── Dashboard ── */
body.app-body--dashboard {
  display: block;
  place-items: unset;
  padding: 0;
  min-height: 100dvh;
}

.dash-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.dash-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.dash-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.dash-brand-name {
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.dash-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  margin-left: auto;
}

.dash-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.nav-pill .material-symbols-outlined {
  font-size: 1.1rem;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.nav-pill:hover {
  color: var(--brand-indigo);
  background: rgba(79, 70, 229, 0.06);
}

.nav-pill.active {
  color: var(--brand-indigo);
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.14);
}

html[data-theme="dark"] .nav-pill:hover,
html[data-theme="dark"] .nav-pill.active {
  color: #a5b4fc;
}

.nav-pill--btn {
  appearance: none;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-card);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-back .material-symbols-outlined {
  font-size: 1.2rem;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.nav-back:hover {
  color: var(--brand-indigo);
  border-color: rgba(79, 70, 229, 0.25);
  background: rgba(79, 70, 229, 0.06);
}

.app-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

body.app-body.app-body--domain {
  padding-top: 0;
}

body.app-body--domain .theme-toggle--bar,
.theme-toggle--bar {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  background: var(--bg-card);
  box-shadow: none;
  box-sizing: border-box;
}

body.app-body--domain .theme-toggle--bar .material-symbols-outlined,
.theme-toggle--bar .material-symbols-outlined {
  font-size: 1.2rem;
}

.dash-main {
  flex: 1;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem;
}

.dash-intro {
  margin-bottom: 1.35rem;
}

.dash-intro-title {
  margin: 0 0 0.35rem;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.dash-intro-sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

.app-shell--wide {
  width: min(100%, 90rem);
  max-width: calc(100vw - 2rem);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem) 2.5rem;
}

body.app-body:not(.app-body--dashboard):not(.app-body--domain) {
  display: block;
  place-items: unset;
  padding: 0;
  padding-top: 3.75rem;
}

.app-topbar,
.dash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.app-brand:hover .app-brand-title {
  color: var(--brand-indigo);
}

html[data-theme="dark"] .app-brand:hover .app-brand-title {
  color: #a5b4fc;
}

.app-brand-logo {
  width: 3.15rem;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0;
}

.app-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.app-brand-eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-brand-title {
  margin: 0;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.app-topbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.nav-link--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.nav-link--icon .material-symbols-outlined {
  font-size: 1.125rem;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.nav-link--icon:hover {
  color: var(--brand-indigo);
  background: rgba(79, 70, 229, 0.06);
}

.nav-link--icon.active {
  color: var(--brand-indigo);
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.15);
}

html[data-theme="dark"] .nav-link--icon:hover,
html[data-theme="dark"] .nav-link--icon.active {
  color: #a5b4fc;
}

.nav-link--btn {
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 720px) {
  .nav-link--icon span:not(.material-symbols-outlined) {
    display: none;
  }

  .nav-link--icon {
    padding: 0.55rem;
  }

  .nav-link--icon .material-symbols-outlined {
    font-size: 1.25rem;
  }
}

.dash-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 0.75rem;
}

.dash-banner-step {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--brand-indigo);
}

.dash-banner-text {
  flex: 1;
  min-width: 12rem;
}

.dash-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .setup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.setup-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 11.5rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.setup-card.is-active {
  border-color: rgba(79, 70, 229, 0.32);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.08), 0 10px 32px rgba(79, 70, 229, 0.08);
}

.setup-card.is-done {
  border-color: rgba(34, 197, 94, 0.25);
}

.setup-card.is-locked {
  opacity: 0.72;
}

.setup-card.is-locked .btn-primary,
.setup-card.is-locked .btn-primary.btn-disabled {
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}

.setup-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.setup-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
  color: var(--muted);
  background: var(--input-bg);
  border: 1px solid var(--border);
}

.setup-card.is-active .setup-num {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-indigo), var(--brand-blue));
}

.setup-card.is-done .setup-num {
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

html[data-theme="dark"] .setup-card.is-done .setup-num {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.14);
}

.setup-card.is-locked .setup-num {
  color: #94a3b8;
}

.setup-card-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  text-align: left;
}

.setup-status {
  flex-shrink: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--input-bg);
}

.setup-status.is-done {
  color: #15803d;
  background: rgba(34, 197, 94, 0.12);
}

.setup-status.is-active {
  color: var(--brand-indigo);
  background: rgba(79, 70, 229, 0.1);
}

.setup-status.is-locked {
  color: #64748b;
  background: var(--input-bg);
}

html[data-theme="dark"] .setup-status.is-done {
  color: #4ade80;
}

html[data-theme="dark"] .setup-status.is-active {
  color: #a5b4fc;
}

.setup-meta {
  margin: 0;
  padding-left: 2.65rem;
  min-height: 0;
}

.setup-meta:empty {
  display: none;
}

.setup-detail {
  flex: 1;
  margin: 0;
  padding-left: 2.65rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
}

.setup-company {
  padding-left: 2.65rem;
  text-align: left;
}

.setup-company-name {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.setup-company-line {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.setup-company-line:last-child {
  margin-bottom: 0;
}

.setup-actions {
  display: flex;
  justify-content: flex-start;
  padding-left: 2.65rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.setup-actions .btn-primary,
.setup-actions .btn-secondary {
  min-width: 0;
}

@media (max-width: 720px) {
  .nav-pill span:not(.material-symbols-outlined) {
    display: none;
  }

  .nav-pill {
    padding: 0.5rem;
  }

  .setup-meta,
  .setup-detail,
  .setup-actions,
  .setup-company {
    padding-left: 0;
  }
}

.toast--dash {
  margin-top: 1.5rem;
}

a.btn-primary.btn-disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 380px) {
  .auth-card-body { padding: 1.5rem 1.25rem 1.25rem; }

  .auth-head {
    grid-template-columns: 3rem 1fr;
    column-gap: 0.75rem;
  }

  .auth-logo { width: 4.75rem; min-height: 3.75rem; height: auto; }

  .auth-logo .mail-logo { width: 3.75rem; }

  .auth-head h1 { font-size: 1.2rem; }

  .auth-sub { font-size: 0.75rem; }
}

/* ── Confirm modal ── */
body.mail-confirm-open {
  overflow: hidden;
}

.mail-confirm-root {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mail-confirm-root.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mail-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.mail-confirm-card {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg-card);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.mail-confirm-title {
  margin: 0 0 0.65rem;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.mail-confirm-message {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.mail-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.mail-confirm-actions .btn-primary,
.mail-confirm-actions .btn-secondary {
  width: auto;
  min-height: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0 1.2rem;
  font-size: 0.875rem;
}

.mail-confirm-ok--danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.35);
}

.mail-confirm-ok--danger:hover {
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.42);
}

html[data-theme="dark"] .mail-confirm-backdrop {
  background: rgba(0, 0, 0, 0.65);
}

@media (max-width: 480px) {
  .mail-confirm-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .mail-confirm-actions .btn-primary,
  .mail-confirm-actions .btn-secondary {
    width: 100%;
  }
}

/* ── Success modal (domain verified) ── */
body.mail-success-open {
  overflow: hidden;
}

.mail-success-root {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.mail-success-root.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mail-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.mail-success-card {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 1.125rem;
  text-align: center;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 55%);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

html[data-theme="dark"] .mail-success-card {
  border-color: rgba(74, 222, 128, 0.35);
  background: linear-gradient(180deg, #14532d 0%, #161c30 55%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.mail-success-emoji {
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 0 auto 0.85rem;
  padding: 0;
  border: none;
  background: transparent;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.mail-success-title {
  margin: 0 0 0.5rem;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #15803d;
}

html[data-theme="dark"] .mail-success-title {
  color: #4ade80;
}

.mail-success-message {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

html[data-theme="dark"] .mail-success-message {
  color: #cbd5e1;
}

.mail-success-ok {
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.mail-success-ok:hover {
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.42);
}

/* ── Mailboxes (domain-layout + aligned form panels) ── */
.domain-panel--form .domain-panel-head {
  padding: 1.5rem 1.5rem 1.25rem;
}

.domain-panel--form .domain-panel-head h2 {
  margin: 0 0 0.5rem;
}

.domain-panel--form .domain-panel-head p {
  margin: 0;
  max-width: 42rem;
}

.domain-panel--form.domain-panel--dns .domain-panel-head {
  padding-bottom: 1.15rem;
}

.mailbox-create-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  margin: 0;
  padding: 0 1.5rem 1.5rem;
}

.mailbox-create-form .field,
.mailbox-create-form .domain-connect-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.mailbox-create-form .field label,
.mailbox-create-form .domain-connect-field label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.mailbox-create-form .field > input,
.mailbox-create-form .field > select,
.mailbox-create-form .domain-connect-field > input,
.mailbox-create-form .domain-connect-field > select {
  width: 100%;
  max-width: none;
  height: 2.75rem;
  margin: 0;
  box-sizing: border-box;
}

.mailbox-create-form .field-hint {
  margin: 0;
}

.mailbox-create-form .field-hint[hidden] {
  display: none;
}

.mailbox-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
}

.mailbox-form-row .field {
  min-width: 0;
}

.mailbox-create-form .pw-wrap {
  position: relative;
  width: 100%;
}

.mailbox-create-form .pw-wrap input {
  width: 100%;
  padding-right: 2.75rem;
}

.mailbox-create-form .pw-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .mailbox-form-row {
    grid-template-columns: 1fr;
  }
}

.email-compose-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  background: var(--input-bg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-compose-row:hover {
  border-color: #94a3b8;
}

.email-compose-row:focus-within {
  border-color: var(--brand-indigo);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.email-compose-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 100%;
  padding: 0 0.875rem;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: "Sora", Inter, "Segoe UI", Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text);
}

.email-compose-row input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.email-compose-row input:focus {
  outline: none;
  box-shadow: none;
}

.email-compose-domain {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--brand-indigo);
  background: rgba(79, 70, 229, 0.08);
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

html[data-theme="dark"] .email-compose-domain {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.14);
}

.domain-panel--form .domain-panel-foot {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.domain-panel--form .domain-panel-foot .btn-primary,
.domain-panel--form .domain-panel-foot .btn-secondary,
.domain-panel--form .domain-panel-foot a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 0.5rem;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
}

.domain-panel--form .domain-panel-foot a.btn-secondary:hover {
  text-decoration: none;
}

#lockedCard.domain-panel--form .domain-panel-head {
  padding-bottom: 1.5rem;
}

.mailbox-ses-hint {
  margin: 0 1.5rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text);
  background: rgba(79, 70, 229, 0.06);
}

.mailbox-ses-hint strong {
  color: var(--brand-indigo);
}

.mailbox-ses-hint a {
  font-weight: 600;
  color: var(--brand-indigo);
}

html[data-theme="dark"] .mailbox-ses-hint {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(129, 140, 248, 0.35);
}

.mailbox-list-host {
  padding: 0 1.5rem 1.5rem;
}

.mailbox-list-host .mailbox-list li {
  padding: 0.75rem 0;
}

.mailbox-list-host .mailbox-list li .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 0.5rem;
  white-space: nowrap;
  box-sizing: border-box;
}

.mailbox-email--empty {
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 560px) {
  .domain-panel--form .domain-panel-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .domain-panel--form .domain-panel-foot .btn-primary,
  .domain-panel--form .domain-panel-foot .btn-secondary,
  .domain-panel--form .domain-panel-foot a.btn-secondary {
    width: 100%;
  }

  .email-compose-domain {
    padding: 0 0.75rem;
    font-size: 0.8125rem;
  }
}

/* ── Main dashboard (/dashboard/m) ── */
.page-mail-dashboard .dash-main,
.page-mail-dashboard .dash-main.dash-main--scroll {
  flex: 1;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
}

.page-mail-dashboard .dash-board {
  width: 100%;
  max-width: none;
}

.page-mail-dashboard .dash-board-sub {
  max-width: none;
}

.page-mail-dashboard .dash-m-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: none;
}

@media (min-width: 1100px) {
  .page-mail-dashboard .dash-m-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-mail-dashboard .dash-m-card--wide {
    grid-column: 1 / -1;
  }
}

.dash-m-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.dash-m-card {
  border: 1px solid var(--border);
  border-radius: 1.125rem;
  background: var(--bg-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.dash-m-card--wide {
  grid-column: 1 / -1;
}

.dash-m-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  padding: 1.35rem 1.5rem 1rem;
}

.dash-m-card-head > div {
  flex: 1;
  min-width: 0;
}

.dash-m-card-head h2 {
  margin: 0 0 0.25rem;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.dash-m-card-head p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.dash-m-card-icon {
  font-size: 1.5rem;
  color: var(--brand-indigo);
  flex-shrink: 0;
}

.dash-m-card-actions {
  padding: 0 1.5rem 1.35rem;
}

.dash-m-mailbox-list {
  list-style: none;
  margin: 0;
  padding: 0 1.5rem 1.35rem;
  border-top: 1px solid var(--border);
}

.dash-m-mailbox-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.dash-m-mailbox-list li:last-child {
  border-bottom: none;
}

.dash-m-mailbox-email {
  font-weight: 600;
  color: var(--text);
}

.dash-m-mailbox-name {
  color: var(--muted);
}

.dash-m-mailbox-empty {
  padding: 1rem 0;
  color: var(--muted);
}

.dash-m-mailbox-empty a {
  font-weight: 600;
  color: var(--brand-indigo);
}

@media (max-width: 720px) {
  .dash-m-grid {
    grid-template-columns: 1fr;
  }
}


/* ── Hubleep Mail brand marks (overrides layout/sidebar clashes) ── */
img.mail-logo,
img.mail-logo--light,
img.mail-logo--dark,
img.app-brand-logo,
img.hub-brand-logo,
img.dash-sidebar-logo-mini,
img.setup-m-top__logo,
.webmail-topbar-logo img,
.header-logo .logo-icon img,
.lp-brand img,
.landing-brand img,
.mail-logo-wrap .mail-logo {
  border-radius: 0 !important;
  object-fit: contain;
}

.auth-logo .mail-logo,
.app-brand-logo,
.hub-brand-logo,
.dash-sidebar-logo-mini,
.setup-m-top__logo,
.header-logo .logo-icon img {
  width: auto;
  height: auto;
  max-width: 100%;
}

.auth-logo .mail-logo {
  width: 4.5rem;
}

.app-brand-logo {
  width: 3.15rem;
  max-height: 1.95rem;
}

.hub-brand-logo {
  width: 3.1rem;
  max-height: 1.9rem;
}

/* mail-sidebar beats mail-dashboard-layout hide/square rules */
.page-mail-dashboard .dash-sidebar-logo-mini {
  object-fit: contain !important;
  border-radius: 0 !important;
}

.page-mail-dashboard .dash-sidebar:not(:hover):not(:focus-within) .dash-sidebar-logo-mini {
  width: 2.75rem !important;
  height: auto !important;
  max-height: 1.7rem !important;
  position: static !important;
  transform: none !important;
  transform-origin: left center !important;
}

.page-mail-dashboard .dash-sidebar:hover .dash-sidebar-logo-mini,
.page-mail-dashboard .dash-sidebar:focus-within .dash-sidebar-logo-mini,
.page-mail-dashboard .dash-sidebar.is-open .dash-sidebar-logo-mini {
  display: block !important;
  opacity: 1 !important;
  width: 6.25rem !important;
  height: auto !important;
  max-height: 2.35rem !important;
  pointer-events: auto !important;
  position: static !important;
  transform: none !important;
  transform-origin: left center !important;
}

@media (max-width: 900px) {
  .page-mail-dashboard .dash-sidebar .dash-sidebar-logo-mini {
    display: block !important;
  }
}
