:root {
  color-scheme: light;
  --bg: #eef4fb;
  --panel: #ffffff;
  --ink: #061935;
  --muted: #5b6b84;
  --line: #cdd8e6;
  --blue: #2563eb;
  --blue-2: #18bdf2;
  --blue-3: #0f8df0;
  --green: #17b26a;
  --red: #dc2626;
  --select-border: rgba(37, 99, 235, 0.34);
  --shadow: 0 22px 58px rgba(6, 25, 53, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, sans-serif;
}

.blockwriteai-global-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(238, 244, 251, 0.72);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.blockwriteai-global-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.blockwriteai-loader-mark {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: min(280px, 100%);
  padding: 24px 28px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(6, 25, 53, 0.18);
}

.blockwriteai-loader-mark strong {
  display: inline-block;
  color: #061935;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  animation: blockwriteai-loader-wave 1.05s ease-in-out infinite;
  transform-origin: center bottom;
}

.blockwriteai-loader-mark small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

button.is-loading,
a.is-loading {
  cursor: wait;
}

.ghost-action.icon-only-action,
.icon-only-action {
  width: 38px;
  min-width: 38px;
  padding: 0;
  justify-content: center;
}

.icon-only-action span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.is-refreshing > i,
.icon-only-action.is-loading > i {
  animation: fa-spin 1s linear infinite;
}

@keyframes blockwriteai-loader-wave {
  0%, 100% {
    transform: translateY(0) skewX(0deg);
    text-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }
  50% {
    transform: translateY(-4px) skewX(-3deg);
    text-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
  }
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.landing-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 8%, rgba(23, 178, 106, 0.14), transparent 28%),
    radial-gradient(circle at 88% 2%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 46%, #eaf2fb 100%);
  color: var(--ink);
}

.landing-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 25, 53, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(6, 25, 53, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 76%);
  opacity: 0.65;
}

.landing-nav,
.landing-hero,
.landing-section,
.landing-cta,
.landing-footer {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 32px));
  margin-inline: auto;
}

.landing-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px 0 12px;
}

.landing-brand img {
  display: block;
  width: 230px;
  max-width: 100%;
  height: auto;
}

.landing-logo-dark {
  display: none !important;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-links,
.landing-nav-actions,
.landing-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-links {
  justify-content: center;
}

.landing-links a,
.landing-footer span,
.landing-lead,
.landing-section-head p,
.landing-workflow p,
.landing-cta p {
  color: var(--muted);
}

.landing-links a {
  padding: 9px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.landing-links a:hover,
.landing-links a:focus-visible {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(214, 225, 241, 0.22);
  border-radius: 999px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.landing-button:hover,
.landing-button:focus-visible {
  transform: translateY(-1px);
}

.landing-button.primary {
  border-color: #16b56f;
  background: linear-gradient(135deg, #16b56f, #0f8df0);
  color: white;
  box-shadow: 0 18px 42px rgba(23, 178, 106, 0.22);
}

.landing-button.ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(6, 25, 53, 0.08);
}

.landing-button.ghost:hover,
.landing-button.ghost:focus-visible {
  border-color: rgba(37, 99, 235, 0.34);
  background: #f8fbff;
  color: var(--blue);
}

.landing-section .landing-button.ghost,
.landing-cta .landing-button.ghost,
.landing-price-card .landing-button.ghost {
  border-color: #d6e1f1;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(6, 25, 53, 0.08);
}

.landing-section .landing-button.ghost:hover,
.landing-section .landing-button.ghost:focus-visible,
.landing-cta .landing-button.ghost:hover,
.landing-cta .landing-button.ghost:focus-visible,
.landing-price-card .landing-button.ghost:hover,
.landing-price-card .landing-button.ghost:focus-visible {
  border-color: rgba(37, 99, 235, 0.34);
  background: #f8fbff;
  color: var(--blue);
}

.landing-button.large {
  min-height: 50px;
  padding-inline: 24px;
}

.landing-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  min-width: 132px;
  border: 1px solid #d6e1f1;
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(6, 25, 53, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.landing-theme-toggle:hover,
.landing-theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.34);
  color: var(--blue);
}

.landing-theme-toggle[aria-pressed="true"] {
  border-color: rgba(23, 178, 106, 0.42);
  color: #087443;
}

.landing-menu-toggle,
.landing-menu-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d6e1f1;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(6, 25, 53, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.landing-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 25, 53, 0.44);
  backdrop-filter: blur(8px);
}

.landing-mobile-menu {
  display: none;
}

.landing-hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(320px, 0.68fr) minmax(680px, 1.32fr);
  align-items: center;
  gap: 28px;
  padding: 52px 0 80px;
}

.landing-hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  color: #102033;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 900;
}

.landing-hero .landing-eyebrow i {
  color: #16b56f;
}

.landing-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.92;
  letter-spacing: 0;
}

.landing-lead {
  max-width: 660px;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
}

.landing-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.landing-stats span {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 134px;
  padding: 13px 16px;
  border: 1px solid #d6e1f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 13px;
}

.landing-stats strong {
  color: var(--ink);
  font-size: 20px;
}

.landing-product {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d6e1f1;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(6, 25, 53, 0.16);
}

.landing-product-top {
  display: grid;
  grid-template-columns: 10px 10px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #d6e1f1;
  background: #f8fbff;
}

.landing-product-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.landing-product-top span:nth-child(2) {
  background: #ffbd2e;
}

.landing-product-top span:nth-child(3) {
  background: #28c840;
}

.landing-product-top strong {
  margin-left: 4px;
  font-size: 15px;
}

.landing-product-top em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.landing-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
}

.landing-toolbar button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 10px;
  padding: 0;
  color: var(--blue);
  background: #eff6ff;
}

.landing-blocks {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.landing-block {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d6e1f1;
  border-radius: 16px;
  background: #fff;
}

.landing-block.active {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: inset 4px 0 0 var(--blue);
}

.landing-block small {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eafaf2;
  color: #087443;
  font-weight: 900;
}

.landing-block strong {
  display: block;
  margin-bottom: 4px;
}

.landing-json {
  min-height: 112px;
  max-height: 150px;
  margin: 0 18px 20px;
  border-radius: 14px;
  background: #091326;
  color: #dce7ff;
  font-size: 13px;
}

.landing-playground {
  display: grid;
  align-self: start;
}

.landing-playground-actions,
.landing-json-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
}

.landing-json-head {
  padding-top: 0;
  color: var(--ink);
}

.landing-json-head strong {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.landing-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid #d6e1f1;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(6, 25, 53, 0.08);
}

.landing-mini-button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--blue-3));
  color: #fff;
  box-shadow: 0 16px 34px rgba(23, 178, 106, 0.22);
}

.landing-mini-button:hover,
.landing-mini-button:focus-visible {
  transform: translateY(-1px);
}

.landing-playground-surface {
  min-height: 520px;
  max-height: 640px;
  margin: 0 18px 18px;
  overflow: auto;
  border: 1px solid #d6e1f1;
  border-radius: 16px;
  background: #fff;
}

.landing-playground-loading {
  display: grid;
  min-height: 520px;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.landing-playground-surface .rbe,
.landing-playground-surface .rbe-root {
  width: 100%;
  min-width: 0;
  min-height: 520px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.landing-playground-surface .rbe-canvas {
  min-width: 0;
  padding: 18px 18px 26px;
}

.landing-playground-surface .rbe-shell,
.landing-playground-surface .rbe-editor-shell,
.landing-playground-surface .rbe-editor-card,
.landing-playground-surface .rbe-editor-body,
.landing-playground-surface .rbe-content,
.landing-playground-surface .rbe-block,
.landing-playground-surface .rbe-block-content {
  max-width: 100%;
  min-width: 0;
}

.landing-playground-surface .rbe-empty-hint {
  margin-left: 48px;
}

.landing-playground-surface .rbe-block {
  margin-bottom: 14px;
}

.landing-playground-surface .rbe-block-actions {
  right: 10px;
}

.landing-playground-json {
  min-height: 150px;
  max-height: 220px;
  overflow: auto;
  white-space: pre;
}

.landing-body.is-dark {
  --bg: #07111f;
  --panel: #101c2f;
  --ink: #f8fbff;
  --muted: #a9b8ce;
  --line: #263954;
  background:
    radial-gradient(circle at 18% 8%, rgba(23, 178, 106, 0.17), transparent 28%),
    radial-gradient(circle at 86% 4%, rgba(37, 99, 235, 0.18), transparent 32%),
    linear-gradient(180deg, #07111f 0%, #0a1424 48%, #0d1a2f 100%);
  color: var(--ink);
}

.landing-body.is-dark::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  opacity: 0.7;
}

.landing-body.is-dark .landing-links a,
.landing-body.is-dark .landing-footer span,
.landing-body.is-dark .landing-lead,
.landing-body.is-dark .landing-section-head p,
.landing-body.is-dark .landing-cta p {
  color: var(--muted);
}

.landing-body.is-dark .landing-links a:hover,
.landing-body.is-dark .landing-links a:focus-visible {
  color: #8af3c1;
  background: rgba(255, 255, 255, 0.08);
}

.landing-body.is-dark .landing-logo-light {
  display: none !important;
}

.landing-body.is-dark .landing-logo-dark {
  display: block !important;
}

.landing-body.is-dark .landing-eyebrow {
  color: #8af3c1;
}

.landing-body.is-dark .landing-theme-toggle,
.landing-body.is-dark .landing-menu-toggle,
.landing-body.is-dark .landing-menu-close,
.landing-body.is-dark .landing-billing-switch,
.landing-body.is-dark .landing-footer-policy,
.landing-body.is-dark .landing-button.ghost,
.landing-body.is-dark .landing-section .landing-button.ghost,
.landing-body.is-dark .landing-cta .landing-button.ghost,
.landing-body.is-dark .landing-price-card .landing-button.ghost,
.landing-body.is-dark .landing-mini-button:not(.primary) {
  border-color: #263954;
  background: #101c2f;
  color: #f8fbff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.landing-body.is-dark .landing-footer-policy i {
  color: #8af3c1;
}

.landing-body.is-dark .landing-billing-switch button {
  color: #a9b8ce;
}

.landing-body.is-dark .landing-billing-switch button:hover,
.landing-body.is-dark .landing-billing-switch button:focus-visible {
  color: #f8fbff;
}

.landing-body.is-dark .landing-billing-switch button.is-active {
  color: #fff;
}

.landing-body.is-dark .landing-stats span,
.landing-body.is-dark .landing-product,
.landing-body.is-dark .landing-section,
.landing-body.is-dark .landing-cta,
.landing-body.is-dark .landing-feature-grid article,
.landing-body.is-dark .landing-price-card,
.landing-body.is-dark .landing-doc-grid article,
.landing-body.is-dark .landing-premium-grid article {
  border-color: #263954;
  background: rgba(16, 28, 47, 0.94);
  color: #f8fbff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.landing-body.is-dark .landing-product-top,
.landing-body.is-dark .landing-playground-surface,
.landing-body.is-dark .landing-json {
  border-color: #263954;
  background: #0b1220;
}

.landing-body.is-dark .landing-json-head,
.landing-body.is-dark .landing-json-head strong,
.landing-body.is-dark .landing-section h2,
.landing-body.is-dark .landing-cta h2,
.landing-body.is-dark .landing-hero h1,
.landing-body.is-dark .landing-stats strong,
.landing-body.is-dark .landing-price-card h3,
.landing-body.is-dark .landing-feature-grid h3,
.landing-body.is-dark .landing-doc-grid h3 {
  color: #f8fbff;
}

.landing-body.is-dark .landing-premium {
  background: linear-gradient(135deg, rgba(16, 28, 47, 0.96), rgba(8, 38, 30, 0.94));
}

.landing-body.is-dark .landing-mobile-menu {
  border-color: #263954;
  background: rgba(16, 28, 47, 0.98);
  color: #f8fbff;
}

.landing-body.is-dark .landing-mobile-links a {
  border-color: #263954;
  background: #0b1220;
  color: #f8fbff;
}

.landing-body.is-dark .landing-mobile-menu-bottom {
  border-color: #263954;
}

.landing-body.is-dark .landing-playground-surface .rbe,
.landing-body.is-dark .landing-playground-surface .rbe-root,
.landing-body.is-dark .landing-playground-surface .rbe-canvas,
.landing-body.is-dark .landing-playground-surface .rbe-editor-card,
.landing-body.is-dark .landing-playground-surface .rbe-editor-body {
  background: #0b1220;
  color: #f8fbff;
}

.landing-body.is-dark .landing-playground-surface .rbe-block,
.landing-body.is-dark .landing-playground-surface .rbe-toolbar,
.landing-body.is-dark .landing-playground-surface .rbe-block-content,
.landing-body.is-dark .landing-playground-surface .rbe-editor-header {
  border-color: #263954;
  background: #111827;
  color: #f8fbff;
}

.landing-section,
.landing-cta {
  margin-top: 26px;
  padding: 52px;
  border: 1px solid rgba(214, 225, 241, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.landing-section h2,
.landing-cta h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.05;
}

.landing-section .landing-eyebrow {
  color: #087443;
}

.landing-section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.landing-pricing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.landing-billing-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 5px;
  border: 1px solid #d6e1f1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(6, 25, 53, 0.08);
}

.landing-billing-switch button {
  min-width: 108px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.landing-billing-switch button:hover,
.landing-billing-switch button:focus-visible {
  color: var(--ink);
}

.landing-billing-switch button.is-active {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 178, 106, 0.24);
}

.landing-section-head p {
  max-width: 760px;
  line-height: 1.65;
}

.landing-section .landing-section-head p,
.landing-workflow p,
.landing-cta p {
  color: var(--muted);
}

.landing-feature-grid,
.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-feature-grid article,
.landing-price-card {
  padding: 22px;
  border: 1px solid #d6e1f1;
  border-radius: 18px;
  background: #fff;
}

.landing-feature-grid i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 20px;
}

.landing-feature-grid h3,
.landing-price-card h3 {
  margin: 0 0 10px;
}

.landing-feature-grid p,
.landing-price-card p,
.landing-price-card li {
  color: var(--muted);
  line-height: 1.55;
}

.landing-premium {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.96));
}

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

.landing-premium-grid article {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 128px;
  border: 1px solid #b7ecd4;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.landing-premium-grid i {
  color: #0f8df0;
  font-size: 28px;
}

.landing-price-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.landing-price-card.featured {
  border-color: rgba(23, 178, 106, 0.48);
  box-shadow: 0 18px 40px rgba(23, 178, 106, 0.14);
}

.plan-badge {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eafaf2;
  color: #087443;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-price-card h3 {
  font-size: 30px;
}

.landing-price-card h3 small {
  color: var(--muted);
  font-size: 14px;
}

.landing-price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.landing-price-card .landing-button {
  margin-top: 8px;
  width: 100%;
}

.landing-documentation {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

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

.landing-doc-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 238px;
  padding: 22px;
  border: 1px solid #d6e1f1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(6, 25, 53, 0.06);
}

.landing-doc-grid i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eafaf2;
  color: #087443;
  font-size: 20px;
}

.landing-doc-grid h3 {
  margin: 0;
}

.landing-doc-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.landing-doc-grid .landing-button {
  width: fit-content;
  min-height: 38px;
  margin-top: auto;
}

.landing-workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 28px;
  align-items: center;
}

.landing-workflow p {
  line-height: 1.65;
}

.landing-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid #d6e1f1;
  border-radius: 16px;
  background: #fff;
}

.landing-steps strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #102139;
  color: #8af3c1;
}

.landing-cta {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.landing-cta p {
  max-width: 640px;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 48px;
  font-size: 14px;
}

.landing-footer-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.landing-footer-brand img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.landing-footer-policies {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-footer-policy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #d6e1f1;
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(6, 25, 53, 0.06);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.landing-footer-policy i {
  color: var(--green);
}

.landing-footer-policy:hover,
.landing-footer-policy:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}

@media (max-width: 980px) {
  .landing-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    gap: 14px;
    z-index: 60;
  }

  .landing-links,
  .landing-nav-actions {
    display: none;
  }

  .landing-menu-toggle,
  .landing-menu-close {
    display: inline-flex;
  }

  .landing-menu-toggle {
    justify-self: end;
  }

  .landing-body.is-mobile-menu-open .landing-nav {
    z-index: 80;
    pointer-events: none;
  }

  .landing-body.is-mobile-menu-open .landing-menu-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 70;
    border-color: rgba(37, 99, 235, 0.22);
    background: #ffffff;
    color: var(--ink);
    pointer-events: auto;
  }

  .landing-body.is-mobile-menu-open .landing-nav > .landing-brand {
    visibility: hidden;
  }

  .landing-mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: min(390px, calc(100vw - 56px));
    height: 100dvh;
    padding: 18px;
    border-left: 1px solid #d6e1f1;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -22px 0 70px rgba(6, 25, 53, 0.22);
    transform: translateX(calc(100% + 24px));
    transition: transform 0.24s ease;
  }

  .landing-body.is-mobile-menu-open {
    overflow: hidden;
  }

  .landing-body.is-mobile-menu-open .landing-mobile-menu {
    transform: translateX(0);
  }

  .landing-mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 2px 56px 18px 0;
    border-bottom: 1px solid #d6e1f1;
  }

  .landing-mobile-menu-head .landing-brand img {
    width: 205px;
  }

  .landing-mobile-links {
    display: grid;
    gap: 10px;
    padding: 20px 0;
  }

  .landing-mobile-links a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d6e1f1;
    border-radius: 14px;
    background: #f8fbff;
    color: var(--ink);
    text-decoration: none;
    font-weight: 900;
  }

  .landing-mobile-links a:hover,
  .landing-mobile-links a:focus-visible {
    border-color: rgba(37, 99, 235, 0.34);
    color: var(--blue);
  }

  .landing-mobile-menu-bottom {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #d6e1f1;
  }

  .landing-mobile-menu-bottom .landing-theme-toggle,
  .landing-mobile-menu-bottom .landing-button {
    width: 100%;
  }

  .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .landing-product {
    max-width: 720px;
  }

  .landing-feature-grid,
  .landing-pricing-grid,
  .landing-workflow,
  .landing-doc-grid {
    grid-template-columns: 1fr;
  }

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

  .landing-pricing-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .landing-nav,
  .landing-hero,
  .landing-section,
  .landing-cta,
  .landing-footer {
    width: min(100% - 24px, 1180px);
  }

  .landing-brand img {
    width: 210px;
  }

  .landing-links {
    gap: 4px;
  }

  .landing-links a {
    padding-inline: 8px;
    font-size: 13px;
  }

  .landing-nav-actions,
  .landing-hero-actions,
  .landing-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-footer-policies {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-footer-policy {
    justify-content: center;
    width: 100%;
  }

  .landing-button,
  .landing-button.large,
  .landing-theme-toggle,
  .landing-billing-switch {
    width: 100%;
  }

  .landing-billing-switch button {
    min-width: 0;
    flex: 1 1 0;
  }

  .landing-hero {
    gap: 22px;
    padding-bottom: 40px;
  }

  .landing-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-product-top {
    grid-template-columns: 10px 10px 10px minmax(0, 1fr);
  }

  .landing-product-top em {
    grid-column: 1 / -1;
    margin-bottom: 10px;
  }

  .landing-block {
    grid-template-columns: 1fr;
  }

  .landing-playground-actions,
  .landing-json-head {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-mini-button {
    width: 100%;
  }

  .landing-playground-surface {
    min-height: 420px;
    max-height: 560px;
    margin-inline: 12px;
  }

  .landing-playground-surface .rbe,
  .landing-playground-surface .rbe-root {
    min-height: 420px;
  }

  .landing-playground-surface .rbe-canvas {
    padding: 14px 12px 22px;
  }

  .landing-playground-json {
    margin-inline: 12px;
  }

  .landing-section,
  .landing-cta {
    padding: 28px 18px;
    border-radius: 20px;
  }

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

@media (max-width: 420px) {
  .landing-brand img {
    width: 190px;
  }

  .landing-premium-grid {
    grid-template-columns: 1fr;
  }

  .landing-product {
    border-radius: 18px;
  }

  .landing-json {
    font-size: 12px;
  }
}

.auth-body {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
}

.auth-body::before,
.auth-body::after {
  content: "";
  position: fixed;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
}

.auth-body::before {
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 18% 70%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 48% 82%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 63% 18%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.4px),
    radial-gradient(circle at 78% 66%, rgba(255, 255, 255, 0.64) 0 1px, transparent 1.5px),
    radial-gradient(circle at 91% 34%, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.5px),
    radial-gradient(circle at 96% 88%, rgba(255, 255, 255, 0.68) 0 1px, transparent 1.4px),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08), transparent 46%),
    linear-gradient(#000, #000);
  background-size:
    360px 360px,
    430px 430px,
    520px 520px,
    470px 470px,
    600px 600px,
    380px 380px,
    540px 540px,
    460px 460px,
    100% 100%,
    100% 100%;
  animation: bwai-star-drift 42s linear infinite;
}

.auth-body::after {
  display: none;
}

.auth-shell {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.auth-brand-panel {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 640px;
  padding: 42px;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(24, 189, 242, 0.72), rgba(37, 99, 235, 0.68) 72%, rgba(23, 197, 220, 0.54)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  color: white;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 260px;
  border-radius: 999px;
  opacity: 0.22;
  z-index: -1;
}

.auth-brand-panel::before {
  top: -86px;
  right: -130px;
  background: white;
  transform: rotate(-12deg);
}

.auth-brand-panel::after {
  left: -160px;
  bottom: -90px;
  background: #0b65e5;
  transform: rotate(16deg);
}

.auth-wave {
  position: absolute;
  inset-inline: -20%;
  height: 220px;
  border-radius: 0 0 50% 50%;
  pointer-events: none;
  z-index: -1;
}

.auth-wave-one {
  top: 54px;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(8deg);
  animation: bwai-panel-wave 12s ease-in-out infinite alternate;
}

.auth-wave-two {
  bottom: 12px;
  background: rgba(0, 91, 220, 0.22);
  transform: rotate(-7deg);
  animation: bwai-panel-wave-alt 15s ease-in-out infinite alternate;
}

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

.auth-brand-panel .auth-logo {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 8px 18px rgba(6, 25, 53, 0.22));
}

.auth-brand-copy {
  max-width: 460px;
}

.eyebrow {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
}

.auth-brand-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: 0;
}

.auth-brand-copy p:not(.eyebrow),
.auth-benefits {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}

.auth-benefits span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-card {
  position: relative;
  display: grid;
  align-content: center;
  padding: 46px;
  background: rgba(255, 255, 255, 0.92);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(340px, 100%);
  margin: 0 auto 30px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f9fd;
}

.auth-card.is-two-factor .auth-tabs {
  display: none;
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.community-hero {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 32px));
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: stretch;
}

.community-hero h1 {
  margin: 8px 0 14px;
  max-width: 880px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.community-section {
  margin-top: 72px;
}

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

.community-card {
  border: 1px solid #d6e1f1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(6, 25, 53, 0.08);
  padding: 24px;
}

.community-card > i {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #e9fff6;
  color: var(--green);
  font-size: 20px;
}

.community-card h3 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 20px;
}

.community-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.community-card a:not(.landing-button) {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.community-card a:not(.landing-button)::after {
  content: "\f061";
  margin-left: 8px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
}

.community-status {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.community-status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(23, 178, 106, 0.14);
}

.community-status strong {
  margin-top: 22px;
  color: var(--ink);
  font-size: 26px;
}

.community-status p {
  margin-top: 10px;
}

.community-cta {
  margin-top: 56px;
}

.landing-body.is-dark .community-hero h1,
.landing-body.is-dark .community-card h3,
.landing-body.is-dark .community-status strong {
  color: #f7fbff;
}

.landing-body.is-dark .community-card {
  border-color: rgba(128, 218, 255, 0.24);
  background: rgba(7, 16, 32, 0.84);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.landing-body.is-dark .community-card p {
  color: #bdcce2;
}

.landing-body.is-dark .community-card > i {
  background: rgba(23, 178, 106, 0.16);
}

@media (max-width: 980px) {
  .community-hero,
  .community-grid {
    grid-template-columns: 1fr;
  }
}

.auth-tab.is-active {
  color: white;
  background: linear-gradient(135deg, var(--blue-3), var(--blue));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.auth-panel {
  display: none;
}

.auth-panel.is-active {
  display: block;
}

.auth-heading {
  text-align: center;
  margin-bottom: 28px;
}

.auth-heading h2 {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: clamp(30px, 4vw, 42px);
}

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

.auth-form[hidden],
.auth-expired-panel[hidden] {
  display: none !important;
}

.auth-form label > span {
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.auth-form input:not([type="checkbox"]),
.auth-form select {
  width: 100%;
  min-height: 48px;
  border-color: transparent;
  border-radius: 999px;
  padding-inline: 20px;
  background: #c8ecdf;
  text-align: center;
  font-weight: 700;
}

.auth-password-field {
  position: relative;
  display: block;
  width: 100%;
}

.auth-form .auth-password-field input:not([type="checkbox"]) {
  padding-left: 20px;
  padding-right: 56px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(6, 25, 53, 0.62);
  transform: translateY(-50%);
  transition: background 0.18s ease, color 0.18s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.58);
  color: var(--blue);
  outline: none;
}

.auth-form input:not([type="checkbox"])::placeholder {
  color: rgba(6, 25, 53, 0.42);
}

.auth-form input:not([type="checkbox"]):focus,
.auth-form select:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.34);
  background: #d5f3e8;
}

#twoFactorLoginPanel .auth-heading::before {
  content: "\f3ed";
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(236, 253, 245, 0.94), rgba(219, 234, 254, 0.78));
  color: #059669;
  font: var(--fa-font-solid);
  font-size: 1.55rem;
  box-shadow:
    12px 12px 28px rgba(148, 163, 184, 0.18),
    -10px -10px 24px rgba(255, 255, 255, 0.88);
}

#twoFactorLoginForm input[name="two_factor_code"] {
  min-height: 58px;
  font-size: 1.45rem;
  letter-spacing: 0.2em;
  font-weight: 900;
}

.auth-two-factor-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.auth-row,
.terms,
.auth-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.terms,
.auth-check {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-check.form-check {
  min-height: auto;
  margin: 0;
  padding-left: 0;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #111827;
  font-family: Arial, sans-serif;
}

.checkbox input[type="checkbox"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.checkbox .checkmark {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background-color: #ffffff2b;
  box-shadow:
    rgba(0, 0, 0, 0.62) 0 0 5px inset,
    rgba(0, 0, 0, 0.21) 0 0 0 24px inset,
    #22cc3f 0 0 0 0 inset,
    rgba(224, 224, 224, 0.45) 0 1px 0 0;
  cursor: pointer;
  position: relative;
}

.checkbox .checkmark::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #e3e3e3;
  box-shadow: transparent 0 0 0 2px, rgba(0, 0, 0, 0.3) 0 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}

.checkbox input[type="checkbox"]:checked + .checkmark {
  background-color: #22cc3f;
  box-shadow:
    rgba(0, 0, 0, 0.62) 0 0 5px inset,
    #22cc3f 0 0 0 2px inset,
    #22cc3f 0 0 0 24px inset,
    rgba(224, 224, 224, 0.45) 0 1px 0 0;
}

.checkbox input[type="checkbox"]:checked + .checkmark::after {
  background-color: #fff;
}

.checkbox input[type="checkbox"]:focus-visible + .checkmark {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.checkbox .label {
  min-width: 0;
  margin-right: 0;
  user-select: none;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  overflow-wrap: break-word;
}

.checkbox-center {
  justify-content: center;
  width: 100%;
}

.checkbox-table-cell {
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.auth-select-wrap {
  position: relative;
}

.auth-select-wrap > span {
  display: block;
  width: 100%;
  text-align: left;
}

.auth-select-wrap .select2-container {
  width: 100% !important;
}

.auth-select-wrap .select2-container--bootstrap-5 .select2-selection {
  position: relative;
  min-height: 48px;
  padding: 0 !important;
  border: 1px solid rgba(6, 25, 53, 0.1);
  border-radius: 999px;
  background: #c8ecdf;
  box-shadow: 0 8px 18px rgba(6, 25, 53, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-radius 0.18s ease;
}

.auth-select-wrap .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.auth-select-wrap .select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: var(--select-border);
  outline: 3px solid rgba(37, 99, 235, 0.18);
  background: #d5f3e8;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
}

.auth-select-wrap .select2-container--bootstrap-5.select2-container--open.select2-container--below .select2-selection {
  border-radius: 24px 24px 12px 12px;
}

.auth-select-wrap .select2-container--bootstrap-5.select2-container--open.select2-container--above .select2-selection {
  border-radius: 12px 12px 24px 24px;
}

.auth-select-wrap .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  min-height: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 56px !important;
  color: var(--ink);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-weight: 800;
  line-height: 1 !important;
}

.auth-select-wrap .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
  font-weight: 900;
}

.auth-select-wrap .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
  position: absolute !important;
  top: 50% !important;
  right: 18px !important;
  width: 18px !important;
  height: 18px !important;
  transform: translateY(-50%) !important;
  pointer-events: none;
}

.select2-container--bootstrap-5 .select2-dropdown.auth-select-dropdown {
  overflow: hidden;
  border: 1px solid var(--select-border);
  background: #f7fffb;
  box-shadow: 0 20px 38px rgba(37, 99, 235, 0.16);
}

.select2-container--bootstrap-5.select2-container--below .select2-dropdown.auth-select-dropdown {
  margin-top: 7px;
  border-radius: 16px 16px 22px 22px;
}

.select2-container--bootstrap-5.select2-container--above .select2-dropdown.auth-select-dropdown {
  margin-bottom: 7px;
  border-radius: 22px 22px 16px 16px;
}

.select2-container--bootstrap-5 .select2-dropdown.auth-select-dropdown .select2-results__option {
  min-height: 42px;
  padding: 10px 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-align: center;
}

.select2-container--bootstrap-5 .select2-dropdown.auth-select-dropdown .select2-results__option--selected {
  background: #d5f3e8;
  color: var(--ink);
}

.select2-container--bootstrap-5 .select2-dropdown.auth-select-dropdown .select2-results__option--highlighted {
  background: var(--blue);
  color: #fff;
}

.auth-social {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-social-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.social-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-height: 52px;
  border: 1px solid rgba(6, 25, 53, 0.13);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(6, 25, 53, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.social-login:hover,
.social-login:focus-visible {
  transform: translateY(-1px);
  border-color: var(--select-border);
  color: var(--ink);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.12);
}

.social-login.is-disabled,
.social-login.is-disabled:hover,
.social-login.is-disabled:focus-visible {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  border-color: rgba(6, 25, 53, 0.13);
  background: #fff;
  box-shadow: none;
}

.social-login-tooltip-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
}

.social-login-tooltip-wrap:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 4px;
}

.social-login-tooltip {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 14px);
  left: 50%;
  width: min(310px, calc(100vw - 40px));
  padding: 13px 15px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.97);
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.social-login-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 7px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.97);
  transform: translateX(-50%);
}

.social-login-tooltip strong,
.social-login-tooltip span {
  display: block;
}

.social-login-tooltip strong {
  margin-bottom: 5px;
  color: #93c5fd;
  font-size: 12px;
}

.social-login-tooltip-wrap.is-disabled:hover .social-login-tooltip,
.social-login-tooltip-wrap.is-disabled:focus-visible .social-login-tooltip,
.social-login-tooltip-wrap.is-disabled:focus-within .social-login-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.social-login .fa-google {
  color: #4285f4;
  transition: color 0.18s ease;
}

.social-login .fa-github {
  color: #111827;
  transition: color 0.18s ease;
}

.social-login .fa-jira {
  color: #2684ff;
  transition: color 0.18s ease;
}

.social-login.google:hover,
.social-login.google:focus-visible {
  border-color: #9ca3af;
  background: linear-gradient(145deg, #f3f4f6 0%, #d1d5db 46%, #111827 100%);
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.22);
}

.social-login.google:hover .fa-google,
.social-login.google:focus-visible .fa-google {
  color: #ea4335;
}

.social-login.github:hover,
.social-login.github:focus-visible {
  border-color: #6b7280;
  background: linear-gradient(145deg, #ffffff 0%, #d1d5db 42%, #05070d 100%);
  box-shadow: 0 18px 30px rgba(5, 7, 13, 0.2);
}

.social-login.github:hover .fa-github,
.social-login.github:focus-visible .fa-github {
  color: #e5e7eb;
}

.social-login.jira:hover,
.social-login.jira:focus-visible {
  border-color: #60a5fa;
  background: linear-gradient(145deg, #eff6ff 0%, #93c5fd 42%, #0f172a 100%);
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.22);
}

.social-login.jira:hover .fa-jira,
.social-login.jira:focus-visible .fa-jira {
  color: #ffffff;
}

.link-button {
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.link-button:hover,
.link-button:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
}

.link-button:disabled,
.link-button.is-disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.58;
}

.otp-expiry-timer {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: -4px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.otp-expiry-timer strong {
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.pill {
  width: min(220px, 100%);
  margin: 12px auto 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.switch-copy {
  text-align: center;
  font-size: 14px;
}

.auth-message {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
}

.auth-message.success {
  color: #087443;
  background: #eafaf2;
  border: 1px solid #a7f3d0;
}

.auth-message.danger {
  color: #b42318;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.auth-message.info {
  color: #175cd3;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.auth-shell-simple {
  grid-template-columns: minmax(280px, 520px);
  justify-content: center;
}

.auth-shell-simple .auth-card {
  min-width: 0;
}

.auth-card-glass {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.auth-card-standalone {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  min-height: 640px;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.auth-simple-logo {
  display: block;
  width: min(210px, 72%);
  margin: 0 auto 34px;
}

.auth-simple-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-expired-panel {
  text-align: center;
}

.auth-expired-action {
  display: block;
  color: #fff;
  text-decoration: none;
}

.auth-expired-action:hover,
.auth-expired-action:focus-visible {
  color: #fff;
}

.policy-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 2%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  color: #0f172a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.policy-page {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
}

.policy-watermark {
  position: fixed;
  right: -42px;
  bottom: 8%;
  width: min(560px, 62vw);
  opacity: 0.03;
  pointer-events: none;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  color: #2563eb;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.policy-back:hover,
.policy-back:focus-visible {
  border-color: rgba(37, 99, 235, 0.34);
  background: #eff6ff;
}

.policy-hero,
.policy-highlight-grid article,
.policy-section-grid article,
.policy-contact,
.policy-footer {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.policy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
  padding: 36px;
}

.policy-hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.policy-eyebrow {
  margin: 0;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 900;
}

.policy-page h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.policy-page h2 {
  margin: 0;
  color: #1e293b;
  font-size: 19px;
  line-height: 1.25;
}

.policy-page p {
  margin: 0;
  color: #475569;
  line-height: 1.72;
}

.policy-effective {
  width: fit-content;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eff6ff;
  color: #1d4ed8 !important;
  font-weight: 900;
}

.policy-hero-text {
  max-width: 760px;
  color: #334155 !important;
  font-size: 18px;
}

.policy-logo-card {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 15%, rgba(37, 99, 235, 0.14), transparent 32%),
    linear-gradient(135deg, #ffffff, #f1f5f9);
}

.policy-logo-card img {
  width: min(300px, 86%);
  height: auto;
}

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

.policy-trust span,
.policy-contact-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 0 16px;
  background: #eff6ff;
  color: #1e293b;
  font-weight: 900;
}

.policy-trust span::before,
.policy-contact-list span::before {
  content: "\2713";
  color: #2563eb;
  font-weight: 900;
}

.policy-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.policy-highlight-grid article {
  padding: 24px;
}

.policy-highlight-grid ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: #475569;
  line-height: 1.6;
}

.policy-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.policy-section-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 214px;
  padding: 24px;
}

.policy-section-grid article span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f1f5f9;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.policy-section-grid a,
.policy-contact a {
  color: #2563eb;
  font-weight: 900;
}

.policy-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
}

.policy-contact h2 {
  margin-top: 8px;
  font-size: clamp(26px, 4vw, 40px);
}

.policy-contact p:not(.policy-eyebrow) {
  margin-top: 10px;
}

.policy-contact-list {
  display: grid;
  gap: 10px;
}

.policy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 20px 24px;
  color: #475569;
}

.policy-footer strong {
  color: #0f172a;
}

.trial-overview,
.trial-features {
  margin-top: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.trial-overview {
  display: grid;
  grid-template-columns: 1.05fr repeat(3, 1fr);
  overflow: hidden;
}

.trial-overview-heading,
.trial-stat {
  padding: 24px;
}

.trial-overview-heading {
  display: grid;
  align-content: center;
  gap: 8px;
  background: #0f172a;
}

.trial-overview-heading h2 {
  color: #ffffff;
  font-size: 26px;
}

.trial-overview-heading .policy-eyebrow {
  color: #93c5fd;
}

.trial-stat {
  display: grid;
  align-content: center;
  gap: 8px;
  border-left: 1px solid #e5e7eb;
}

.trial-stat > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trial-stat strong {
  display: block;
  color: #0f172a;
  font-size: 21px;
  line-height: 1.25;
}

.trial-stat small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.trial-stat p {
  font-size: 13px;
}

.trial-notices {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.trial-notice {
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid;
  border-radius: 16px;
  padding: 16px 20px;
  background: #ffffff;
}

.trial-notice strong {
  color: #1e293b;
}

.trial-notice span {
  color: #475569;
  line-height: 1.5;
}

.trial-notice-success { border-color: #bbf7d0; background: #f0fdf4; }
.trial-notice-success strong { color: #15803d; }
.trial-notice-warning { border-color: #fde68a; background: #fffbeb; }
.trial-notice-warning strong { color: #b45309; }
.trial-notice-danger { border-color: #fecaca; background: #fef2f2; }
.trial-notice-danger strong { color: #b91c1c; }

.trial-features {
  padding: 28px;
}

.trial-section-heading {
  max-width: 680px;
}

.trial-section-heading h2 {
  margin-top: 8px;
  font-size: clamp(26px, 4vw, 38px);
}

.trial-section-heading > p:last-child {
  margin-top: 10px;
}

.trial-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.trial-feature-grid article {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  background: #f8fafc;
}

.trial-feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.trial-feature-grid ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: #475569;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .policy-hero,
  .policy-contact,
  .policy-highlight-grid,
  .policy-section-grid,
  .policy-trust {
    grid-template-columns: 1fr;
  }

  .trial-overview,
  .trial-feature-grid {
    grid-template-columns: 1fr;
  }

  .trial-stat {
    border-top: 1px solid #e5e7eb;
    border-left: 0;
  }

  .policy-hero {
    padding: 24px;
  }

  .policy-logo-card {
    min-height: 190px;
  }

  .policy-section-grid article {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .policy-page {
    width: min(100% - 24px, 1200px);
    padding-top: 18px;
  }

  .policy-hero,
  .policy-highlight-grid article,
  .policy-section-grid article,
  .policy-contact {
    padding: 18px;
  }

  .policy-hero-text {
    font-size: 16px;
  }

  .trial-features {
    padding: 18px;
  }

  .trial-notice {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .policy-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.rbe-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12000;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.rbe-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  background: #ffffff;
  color: #172033;
  padding: 12px 14px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: auto;
}

.rbe-toast.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rbe-toast.is-hiding {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.rbe-toast i {
  margin-top: 2px;
}

.rbe-toast strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.rbe-toast span {
  display: block;
  margin-top: 2px;
  color: #475467;
  font-size: 12px;
  line-height: 1.4;
}

.rbe-toast.is-error {
  border-color: #fecaca;
  background: #fff7f7;
}

.rbe-toast.is-error i,
.rbe-toast.is-error strong {
  color: #b42318;
}

.rbe-toast.is-warning {
  border-color: #fedf89;
  background: #fffbeb;
}

.rbe-toast.is-warning i,
.rbe-toast.is-warning strong {
  color: #b54708;
}

.rbe-toast.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.rbe-toast.is-success i,
.rbe-toast.is-success strong {
  color: #087443;
}

.rbe-toast.is-info {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.rbe-toast.is-info i,
.rbe-toast.is-info strong {
  color: #175cd3;
}

.rbe-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes bwai-star-drift {
  0% {
    transform: translate3d(0, 0, 0);
    background-position:
      0 0,
      40px 70px,
      90px 30px,
      120px 160px,
      180px 90px,
      240px 220px,
      310px 130px,
      360px 260px,
      50% 50%,
      0 0;
  }
  100% {
    transform: translate3d(-4%, -3%, 0);
    background-position:
      220px 320px,
      330px 240px,
      430px 390px,
      520px 470px,
      640px 540px,
      700px 620px,
      760px 600px,
      840px 720px,
      50% 50%,
      0 0;
  }
}

@keyframes bwai-panel-wave {
  0% {
    transform: translateX(-2%) rotate(8deg);
  }
  100% {
    transform: translateX(8%) rotate(4deg);
  }
}

@keyframes bwai-panel-wave-alt {
  0% {
    transform: translateX(4%) rotate(-7deg);
  }
  100% {
    transform: translateX(-7%) rotate(-3deg);
  }
}

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

.shell.narrow {
  width: min(680px, calc(100% - 32px));
}

.hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(6, 25, 53, 0.06);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  margin-bottom: 18px;
}

.brand-lockup {
  display: grid;
  gap: 10px;
}

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

.user-badge {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  color: #087443;
  background: #eafaf2;
  border: 1px solid #a7f3d0;
  font-weight: 800;
}

.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #17b26a);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.profile-avatar.has-picture {
  overflow: hidden;
  background: #fff;
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar:hover,
.profile-avatar:focus-visible,
.profile-menu.is-open .profile-avatar {
  border-color: rgba(23, 178, 106, 0.74);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 12px 24px rgba(37, 99, 235, 0.18);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  display: grid;
  gap: 4px;
  width: 190px;
  padding: 8px;
  border: 1px solid #d6e1f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(6, 25, 53, 0.16);
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown button {
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #17233a;
  font-size: 13px;
}

.profile-dropdown button:hover,
.profile-dropdown button:focus-visible {
  background: #eff6ff;
  color: #175cd3;
}

.profile-dropdown button[hidden] {
  display: none;
}

h1,
h2 {
  margin: 0 0 8px;
}

p {
  color: var(--muted);
  margin: 0;
}

.hint {
  font-size: 13px;
  line-height: 1.45;
}

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

.panel {
  padding: 20px;
}

.stack {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: white;
}

textarea {
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 16px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button.primary,
.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

pre {
  min-height: 360px;
  max-height: 560px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: 7px;
  background: #0b1220;
  color: #dce7ff;
  white-space: pre-wrap;
}

.output-panel {
  grid-row: span 2;
}

.team-form {
  margin-top: 14px;
}

.team-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.team-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.team-member > div {
  min-width: 0;
}

.team-member strong,
.team-member span {
  overflow-wrap: anywhere;
}

.team-member span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

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

table.team-member-table {
  display: table;
  width: 100%;
  min-width: max(760px, 100%);
  table-layout: fixed;
}

table.team-member-table .team-member-col-member {
  width: calc(100% - 232px);
}

table.team-member-table .team-member-col-status {
  width: 104px;
}

table.team-member-table .team-member-col-actions {
  width: 128px;
}

table.team-member-table th:nth-child(2),
table.team-member-table td[data-label="Domain Status"] {
  width: 104px;
  text-align: center;
}

table.team-member-table th:nth-child(3),
table.team-member-table td[data-label="Actions"] {
  width: 128px;
  text-align: center;
}

table.team-member-table td[data-label="Actions"].team-member-actions {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

table.team-member-table th:nth-child(2) > button,
table.team-member-table th:nth-child(3) > button {
  justify-content: center;
  gap: 6px;
  text-align: center;
}

table.team-member-table th:nth-child(2) > button i,
table.team-member-table th:nth-child(3) > button i {
  margin-left: 4px;
}

.team-member-datatable {
  width: 100%;
}

.team-member-datatable .signature-table-wrap {
  width: 100%;
}

.team-member-table .signature-table-value strong,
.team-member-table .signature-table-value span {
  display: inline;
}

.team-member-table .signature-table-value strong + span {
  margin-left: 4px;
}

.invitation-table .invitation-col-status,
.saved-signatures-table .signature-col-status,
.billing-table .billing-col-status,
.platform-setting-table col:nth-child(4) {
  width: 88px;
}

.invitation-table .invitation-col-actions,
.saved-signatures-table .signature-col-actions {
  width: 96px;
}

.team-member-table .team-member,
.team-member-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px auto;
  align-items: center;
  gap: 12px;
}

.team-member-head {
  padding: 0 12px 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-member-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

table.team-member-table .team-member-actions button,
table.team-member-table .team-member-actions .member-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 66px;
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  gap: 4px;
  white-space: nowrap;
}

table.team-member-table .team-member-actions button i {
  flex: 0 0 auto;
  margin: 0;
}

.team-member button,
.domain-status-action {
  min-height: 32px;
  padding: 0 10px;
  color: #b42318;
  border-color: #fecaca;
  background: #fff7f7;
}

.team-member button.keep-member-action,
.domain-status-action.keep-member-action {
  color: #087443;
  border-color: #a7f3d0;
  background: #ecfdf3;
}

.review-decision-actions {
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.review-decision-actions button {
  width: auto;
}

.signature-identity-layout {
  display: grid;
  grid-template-columns: minmax(0, 75%) minmax(0, 25%);
  gap: 0;
  align-items: stretch;
}

.signature-identity-layout > .admin-form {
  min-width: 0;
  padding-right: 24px;
}

.signature-preview-pane {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.signature-preview-card {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 11px 10px 10px;
  overflow: hidden;
  border: 1px solid #67e09b;
  border-radius: 9px;
  background-color: #effcf5;
  color: #071c2f;
  box-shadow: 0 10px 24px rgba(23, 178, 106, 0.09);
}

.signature-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.signature-preview-document {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 5px;
  background: #e60000;
  color: #fff;
  box-shadow: 0 7px 14px rgba(230, 0, 0, 0.24);
}

.signature-preview-status {
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #d8f8e6;
  color: #087443;
  font-size: 10px;
  font-weight: 900;
}

.signature-preview-mark {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  overflow: hidden;
  color: #071c2f;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 16px;
  font-style: italic;
  line-height: 1.4;
  white-space: normal;
}

.signature-preview-details {
  min-width: 0;
}

.signature-preview-details p {
  margin: 2px 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.25;
}

.signature-preview-details strong {
  font-weight: 500;
}

.signature-records-panel .team-list {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .signature-identity-layout {
    grid-template-columns: minmax(0, 58%) minmax(260px, 42%);
  }

  .signature-identity-layout > .admin-form {
    padding-right: 18px;
  }

  .signature-preview-pane {
    padding-left: 18px;
  }
}

@media (max-width: 860px) {
  .signature-identity-layout {
    grid-template-columns: 1fr;
  }

  .signature-identity-layout > .admin-form {
    padding-right: 0;
  }

  .signature-preview-pane {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

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

  .signature-identity-layout > .admin-form {
    padding-right: 0;
  }

  .signature-preview-pane {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

.signature-datatable {
  display: grid;
  gap: 12px;
  width: 100%;
}

.signature-datatable-toolbar,
.signature-datatable-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.signature-datatable-search,
.signature-datatable-page-size {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signature-datatable-search input,
.signature-datatable-page-size select {
  min-height: 38px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
  color: #17233a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.signature-datatable-search input {
  width: min(320px, 62vw);
}

.signature-datatable-page-size select {
  width: 76px;
  padding: 0 8px;
}

.public-section-page-filter {
  flex: 0 1 320px;
  justify-content: flex-end;
  white-space: nowrap;
}

.public-section-page-filter > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.public-section-page-filter select {
  width: min(248px, 58vw);
  min-width: 180px;
}

.signature-datatable-footer {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.signature-datatable-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signature-datatable-pages button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  justify-content: center;
}

.signature-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.signature-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.signature-table th,
.signature-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e6edf6;
  color: #17233a;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.signature-table th {
  padding: 0;
  color: #475569;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signature-table th > button {
  width: 100%;
  min-height: 42px;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.signature-table th > button:hover,
.signature-table th > button:focus-visible {
  color: #175cd3;
  background: #eff6ff;
}

.signature-table th > button i {
  color: #94a3b8;
  font-size: 11px;
}

.signature-table tbody tr:last-child td {
  border-bottom: 0;
}

.signature-table-value,
.signature-table-date span,
.dashboard-date-full,
.dashboard-date-mobile,
.signature-table-status .status-pill {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.signature-table-date,
.signature-table-status,
.signature-table-actions {
  white-space: nowrap;
}

.signature-table-status,
.signature-table-actions {
  text-align: center;
}

.signature-table-status .status-pill {
  min-width: 76px;
  width: fit-content;
}

.signature-table-status .status-pill.status-dot-only {
  min-width: 22px;
  width: 22px;
}

.profile-picture-form {
  display: block;
}

.profile-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.2rem;
  width: min(100%, 880px);
  margin: 0 auto;
  text-align: center;
}

.profile-photo-panel {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.profile-photo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border: 4px solid #cbd5e1;
  border-radius: 50%;
  background: linear-gradient(145deg, #edf2f7, #f8fafc);
  appearance: none;
  padding: 0;
  color: inherit;
  font: inherit;
  box-shadow:
    18px 18px 38px rgba(100, 116, 139, 0.24),
    -16px -16px 34px rgba(255, 255, 255, 0.86),
    inset 8px 8px 18px rgba(100, 116, 139, 0.14),
    inset -8px -8px 18px rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.profile-photo-frame.has-picture {
  border-color: #16a34a;
}

.profile-photo-frame img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

.profile-photo-frame.is-processing {
  cursor: wait;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  color: #64748b;
}

.profile-avatar-fallback b {
  display: grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.68);
  font-size: 3.4rem;
  font-weight: 900;
}

.profile-avatar-fallback em {
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.profile-upload-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.55rem;
  color: #fff;
  background: rgba(15, 23, 42, 0.58);
  opacity: 0;
  transform: translateY(32%);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(.22, 1, .36, 1);
}

.profile-upload-overlay i {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  font-size: 2rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.25);
  transform: translateY(56px) scale(0.92);
  transition: transform 0.28s cubic-bezier(.22, 1, .36, 1);
}

.profile-upload-overlay span {
  font-weight: 900;
}

.profile-photo-frame:hover .profile-upload-overlay,
.profile-photo-frame:focus-within .profile-upload-overlay {
  opacity: 1;
  transform: translateY(0);
}

.profile-photo-frame:hover .profile-upload-overlay i,
.profile-photo-frame:focus-within .profile-upload-overlay i {
  transform: translateY(0) scale(1);
}

.profile-photo-frame.is-processing .profile-upload-overlay {
  opacity: 0;
  transform: translateY(32%);
  pointer-events: none;
}

.profile-processing-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
  transition: opacity 0.18s ease;
}

.profile-processing-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    conic-gradient(
      from -90deg,
      #ef4444 0deg,
      #f59e0b var(--profile-upload-mid-angle, 0deg),
      #16a34a var(--profile-upload-angle, 0deg),
      rgba(15, 23, 42, 0.3) 0
    );
}

.profile-processing-overlay::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(3px);
}

.profile-photo-frame.is-processing .profile-processing-overlay {
  opacity: 1;
}

.profile-processing-percent {
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.42);
}

.profile-processing-label {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.profile-picture-form input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.profile-photo-caption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  color: #475569;
  font-weight: 700;
}

.profile-photo-caption i {
  color: #16a34a;
}

.profile-image-editor-backdrop {
  z-index: 1300;
}

.profile-image-editor-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  width: min(980px, calc(100vw - 40px));
  max-height: min(92vh, 840px);
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  padding: 22px;
  background: #64748b;
  color: #fff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.42);
}

.profile-image-editor-modal header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
}

.profile-image-editor-body {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 0.72fr);
  gap: 20px;
  min-height: 0;
}

.profile-image-editor-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.profile-image-editor-change {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
  transform: translate(-50%, calc(-50% + 42px));
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(.22, 1, .36, 1);
}

.profile-image-editor-stage:hover .profile-image-editor-change,
.profile-image-editor-stage:focus-within .profile-image-editor-change {
  opacity: 1;
  transform: translate(-50%, -50%);
}

#profileImageEditorCanvas {
  display: block;
  width: min(420px, 78vw);
  height: min(420px, 78vw);
  border: 5px solid #16a34a;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

#profileImageEditorCanvas.is-dragging {
  cursor: grabbing;
}

.profile-image-editor-controls {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding-right: 4px;
}

.profile-image-control-group {
  display: grid;
  gap: 10px;
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.profile-image-control-group strong {
  color: #fff;
}

.profile-image-control-group label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.profile-image-control-group input[type="range"] {
  width: 100%;
}

.profile-image-editor-hint {
  margin: -2px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  line-height: 1.35;
}

.profile-image-swatch-grid,
.profile-image-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-image-swatch,
.profile-image-filter {
  min-height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-image-swatch.is-active,
.profile-image-filter.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.profile-image-swatch[data-bg="remove"] {
  background:
    linear-gradient(45deg, rgba(255,255,255,.24) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.24) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.24) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.24) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}

.profile-image-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.profile-image-editor-actions button {
  min-width: 112px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.profile-image-editor-actions .primary {
  border-color: #fff;
  background: #fff;
  color: #175cd3;
}

@media (max-width: 820px) {
  .profile-image-editor-body {
    grid-template-columns: 1fr;
  }
  .profile-image-editor-stage {
    min-height: 330px;
  }
  .profile-image-swatch-grid,
  .profile-image-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.profile-info-panel {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  width: 100%;
  min-width: 0;
}

.profile-name-row h3 {
  margin: 0;
  color: #071b3a;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.08;
}

.profile-email-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.45rem 0 0;
  color: #475569;
  font-weight: 700;
}

.profile-email-line i {
  color: #16a34a;
  font-size: 1.05rem;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.6rem;
  width: min(100%, 760px);
}

.profile-detail {
  display: grid;
  justify-items: center;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.55rem 0.35rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
}

.profile-detail strong {
  color: #64748b;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-detail span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-weight: 800;
}

.two-factor-setup {
  display: grid;
  gap: 1rem;
}

.two-factor-panel [hidden] {
  display: none !important;
}

.two-factor-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.two-factor-start-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.85rem;
  min-height: 188px;
  padding: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.74));
  text-align: center;
  box-shadow:
    14px 14px 32px rgba(148, 163, 184, 0.12),
    -12px -12px 28px rgba(255, 255, 255, 0.8);
}

.two-factor-start-card strong {
  color: #071b3a;
  font-size: 1.08rem;
}

.two-factor-start-card .hint {
  max-width: 520px;
  margin: 0;
}

.two-factor-otp-preview {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  min-width: 190px;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.two-factor-otp-preview span {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.two-factor-otp-preview code {
  color: #0f2f64;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.two-factor-setup-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
  padding: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.78));
  box-shadow:
    14px 14px 32px rgba(148, 163, 184, 0.16),
    -12px -12px 28px rgba(255, 255, 255, 0.86);
}

.two-factor-qr-frame {
  display: grid;
  place-items: center;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(191, 219, 254, 0.92);
  background: #fff;
  box-shadow:
    inset 8px 8px 18px rgba(148, 163, 184, 0.12),
    inset -8px -8px 18px rgba(255, 255, 255, 0.9),
    0 18px 36px rgba(37, 99, 235, 0.12);
}

.two-factor-qr-frame img {
  width: 220px;
  height: 220px;
  border-radius: 14px;
  image-rendering: crisp-edges;
}

.two-factor-setup-copy {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.two-factor-secret-label {
  display: grid;
  gap: 0.45rem;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.two-factor-secret {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f2f64;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  text-transform: none;
}

.two-factor-form input[name="code"] {
  max-width: 260px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.two-factor-verify-form {
  grid-template-columns: minmax(220px, 280px) auto;
  align-items: end;
}

.two-factor-verify-form label {
  min-width: 0;
}

.two-factor-verify-actions {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
}

.two-factor-enabled-flow,
.two-factor-disable-form {
  display: grid;
  gap: 1rem;
}

.two-factor-enabled-flow {
  justify-items: center;
}

.two-factor-enabled-flow .profile-details {
  width: min(100%, 760px);
  margin: 0 auto 0.05rem;
  justify-content: center;
}

.two-factor-enabled-flow .profile-detail {
  text-align: center;
}

.two-factor-disable-form {
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.two-factor-disable-form label {
  display: grid;
  justify-items: center;
  width: min(100%, 360px);
  margin: 0 auto;
}

.two-factor-disable-form input {
  max-width: none;
  width: 100%;
}

.two-factor-disable-form input[name="password"] {
  text-align: center;
}

.two-factor-disable-form .centered-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 0.1rem;
}

.two-factor-info-card,
.two-factor-disable-warning {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 1.15rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.78));
  text-align: center;
  box-shadow:
    14px 14px 32px rgba(148, 163, 184, 0.14),
    -12px -12px 28px rgba(255, 255, 255, 0.86);
}

.two-factor-info-card strong,
.two-factor-disable-warning strong {
  color: #071b3a;
  font-size: 1.12rem;
}

.two-factor-info-card .hint,
.two-factor-disable-warning .hint {
  max-width: 680px;
  margin: 0;
}

.two-factor-info-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.two-factor-info-points span {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  min-height: 92px;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
}

.two-factor-info-points i {
  color: #2563eb;
  font-size: 1.05rem;
}

.two-factor-disable-warning {
  border-color: rgba(239, 68, 68, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 247, 237, 0.95), rgba(254, 242, 242, 0.86));
}

.two-factor-disable-warning.compact {
  width: 100%;
  padding: 0.95rem;
}

.two-factor-disable-warning .hint.warning {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  color: #92400e;
  background: rgba(255, 251, 235, 0.88);
  font-weight: 750;
}

.centered-actions {
  justify-content: center;
  align-items: center;
  width: 100%;
}

.recovery-codes-wrap {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(240, 253, 244, 0.92), rgba(239, 246, 255, 0.72));
  box-shadow:
    14px 14px 32px rgba(148, 163, 184, 0.14),
    -12px -12px 28px rgba(255, 255, 255, 0.86);
}

.recovery-codes-wrap > strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.recovery-codes-confirmed {
  margin-top: 1rem;
}

.recovery-codes-centered {
  width: min(100%, 920px);
  margin: 0 auto;
}

.recovery-codes-centered .recovery-codes-head {
  align-items: center;
}

.recovery-codes-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.recovery-codes-head > div:first-child {
  display: grid;
  gap: 0.45rem;
}

.recovery-codes-head strong {
  color: #071b3a;
  font-size: 1.12rem;
}

.recovery-codes-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  min-height: 30px;
  padding: 0 0.75rem;
  border: 1px solid rgba(34, 197, 94, 0.34);
  border-radius: 999px;
  color: #047857;
  background: rgba(236, 253, 245, 0.96);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recovery-codes-badge.danger {
  border-color: rgba(239, 68, 68, 0.34);
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.96);
}

.recovery-code-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.recovery-code-actions .ghost-action {
  min-height: 38px;
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #1d4ed8;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
}

.recovery-code-actions .ghost-action:hover,
.recovery-code-actions .ghost-action:focus-visible {
  border-color: rgba(37, 99, 235, 0.42);
  background: #eff6ff;
}

.recovery-codes-wrap .hint.warning {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 12px;
  color: #92400e;
  background: rgba(255, 251, 235, 0.82);
  font-weight: 750;
}

.recovery-codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0.55rem;
}

.recovery-codes code {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: inset 3px 3px 9px rgba(148, 163, 184, 0.1);
}

@media (max-width: 860px) {
  .profile-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-details {
    grid-template-columns: 1fr;
    width: 100%;
    text-align: left;
  }

  .two-factor-setup-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .two-factor-start-grid {
    grid-template-columns: 1fr;
  }

  .two-factor-secret {
    margin: 0 auto;
  }

  .two-factor-verify-form {
    grid-template-columns: 1fr;
  }

  .two-factor-verify-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .two-factor-info-points {
    grid-template-columns: 1fr;
  }

  .recovery-codes-head,
  .recovery-codes-centered .recovery-codes-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .recovery-code-actions {
    justify-content: center;
  }
}

.component-visual-editor {
  display: grid;
  gap: 0.8rem;
}

.component-visual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.9rem;
  background: rgba(248, 250, 252, 0.78);
}

.component-visual-toolbar div {
  display: grid;
  gap: 0.15rem;
}

.component-visual-toolbar span {
  color: #64748b;
  font-size: 0.86rem;
}

.component-visual-toolbar button {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.75rem;
  color: #0f172a;
  background: #fff;
  cursor: pointer;
}

.component-visual-frame-wrap {
  position: relative;
  height: min(78vh, 58rem);
  min-height: 38rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 1rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 18px 45px rgba(15, 23, 42, 0.08);
}

.component-visual-frame-wrap.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #fff;
  pointer-events: none;
}

.component-visual-frame-wrap.is-wide-section-preview {
  overflow: auto hidden;
}

.component-visual-frame-wrap iframe {
  width: 100%;
  min-width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.component-visual-frame-wrap.is-loading iframe {
  opacity: 0;
}

.component-attribute-modal {
  width: min(42rem, calc(100vw - 2rem));
}

.component-attribute-modal input[readonly] {
  background: rgba(241, 245, 249, 0.85);
  color: #475569;
}

.dashboard-responsive-table td[data-label="Status"],
.signature-table td[data-label="Status"],
.billing-table td[data-label="Status"],
.platform-setting-table td[data-label="Status"] {
  width: 96px;
  max-width: 96px;
  text-align: center;
}

.dashboard-responsive-table th:has(button[title*="Status"]),
.signature-table th:has(button[title*="Status"]),
.billing-table th:has(button[title*="Status"]),
.platform-setting-table th:has(button[title*="Status"]) {
  width: 96px;
  max-width: 96px;
  text-align: center;
}

.signature-table-empty {
  height: 74px;
  color: #64748b !important;
  text-align: center !important;
  font-weight: 800;
}

.signature-table-actions button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  justify-content: center;
  color: #b42318;
  border-color: #fecaca;
  background: #fff7f7;
}

.signature-table-actions button + button {
  margin-left: 4px;
}

.signature-table-actions button:disabled {
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #f8fafc;
}

.signature-table th:nth-child(1),
.signature-table th:nth-child(2) {
  width: 17%;
}

.signature-table th:nth-child(3) {
  width: 9%;
}

.signature-table th:nth-child(4) {
  width: 12%;
}

.signature-table th:nth-child(5),
.signature-table th:nth-child(6) {
  width: 14%;
}

.signature-table th:nth-child(7) {
  width: 9%;
}

.signature-table th:nth-child(8) {
  width: 8%;
}

.billing-records {
  width: 100%;
}

.audit-table {
  min-width: 980px;
}

.audit-table th:nth-child(1) {
  width: 24%;
}

.audit-table th:nth-child(2) {
  width: 16%;
}

.audit-table th:nth-child(3),
.audit-table th:nth-child(4) {
  width: 12%;
}

.audit-table th:nth-child(5) {
  width: 20%;
}

.audit-table th:nth-child(6) {
  width: 16%;
}

.organization-license-datatable {
  margin-top: 10px;
}

.organization-license-toolbar {
  margin-top: 18px;
  margin-bottom: 10px;
}

.organization-license-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
}

.organization-license-table {
  min-width: 1180px;
  table-layout: fixed;
}

.organization-license-table .org-license-col-name { width: 142px; }
.organization-license-table .org-license-col-email { width: 184px; }
.organization-license-table .org-license-col-role { width: 70px; }
.organization-license-table .org-license-col-status { width: 116px; }
.organization-license-table .org-license-col-reference { width: 140px; }
.organization-license-table .org-license-col-type { width: 100px; }
.organization-license-table .org-license-col-created,
.organization-license-table .org-license-col-updated { width: 126px; }
.organization-license-table .org-license-col-managed { width: 104px; }
.organization-license-table .org-license-col-actions { width: 128px; }

.organization-license-table th.org-license-col-managed,
.organization-license-table td[data-label="Managed By"] {
  width: 132px;
}

.organization-license-table th.org-license-col-actions,
.organization-license-table td[data-label="Actions"] {
  width: 112px;
}

.organization-license-table th,
.organization-license-table td {
  vertical-align: middle;
}

.organization-license-table th:nth-child(n) {
  width: auto;
}

.organization-license-table th > button {
  min-height: 42px;
  padding: 0 12px;
}

.organization-license-table th > button span,
.organization-license-table th > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organization-license-table th > span {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
}

.organization-license-table .signature-table-value {
  max-width: 100%;
}

.organization-license-table .signature-table-date span {
  white-space: normal;
  line-height: 1.35;
}

.organization-license-suspended {
  margin-top: 6px;
  width: fit-content;
}

.dashboard-silent-loader {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  color: #40536f;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dashboard-silent-loader span {
  width: 12px;
  height: 12px;
  border: 2px solid #cde7f0;
  border-top-color: #1e8ca7;
  border-radius: 50%;
  animation: dashboard-silent-spin 0.72s linear infinite;
}

.is-dashboard-silent-loading .dashboard-silent-loader {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

.organization-license-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.organization-license-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.organization-license-actions button:hover:not(:disabled),
.organization-license-actions button:focus-visible:not(:disabled) {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.organization-license-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.organization-license-actions button.danger {
  color: #dc2626;
  background: #fff1f2;
  border-color: #fecdd3;
}

.organization-license-actions button.danger:hover:not(:disabled),
.organization-license-actions button.danger:focus-visible:not(:disabled) {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #b42318;
}

.organization-license-actions button.success {
  color: #047857;
  background: #ecfdf3;
  border-color: #a7f3d0;
}

.organization-license-actions button.success:hover:not(:disabled),
.organization-license-actions button.success:focus-visible:not(:disabled) {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.organization-activity-datatable {
  margin-top: 18px;
}

.organization-activity-toolbar {
  margin-bottom: 10px;
}

.organization-activity-table {
  min-width: 900px;
}

.my-activity-datatable {
  margin-top: 14px;
}

.my-activity-table {
  min-width: 900px;
}

.my-activity-table th:nth-child(1) { width: 32%; }
.my-activity-table th:nth-child(2) { width: 22%; }
.my-activity-table th:nth-child(3) { width: 26%; }
.my-activity-table th:nth-child(4) { width: 20%; }

.organization-activity-table th:nth-child(1) { width: 32%; }
.organization-activity-table th:nth-child(2) { width: 30%; }
.organization-activity-table th:nth-child(3) { width: 20%; }
.organization-activity-table th:nth-child(4) { width: 18%; }

.status-pill.danger {
  color: #b42318;
  background: #fee4e2;
  border-color: #fecdca;
}

.billing-table {
  min-width: 1040px;
}

[data-domain-datatable] .billing-table {
  min-width: 1540px;
}

[data-review-datatable] .billing-table {
  min-width: 980px;
}

[data-enterprise-request-datatable] .billing-table {
  min-width: 1380px;
}

[data-enterprise-review-datatable] .billing-table {
  min-width: 1040px;
}

[data-enterprise-request-datatable] .billing-table th > button,
[data-enterprise-review-datatable] .billing-table th > button {
  min-height: 44px;
  white-space: normal;
}

.enterprise-request-col-id,
.enterprise-review-col-id {
  width: 100px;
}

.enterprise-request-col-organization {
  width: 220px;
}

.enterprise-request-col-summary {
  width: 280px;
}

.enterprise-request-col-submitter {
  width: 160px;
}

.enterprise-request-col-date,
.enterprise-request-col-updated {
  width: 190px;
}

.enterprise-request-col-status {
  width: 110px;
}

.enterprise-request-col-actions {
  width: 130px;
}

.enterprise-review-col-organization {
  width: 260px;
}

.enterprise-review-col-submitter,
.enterprise-review-col-date {
  width: 190px;
}

.enterprise-review-col-status {
  width: 120px;
}

.enterprise-review-col-actions {
  width: 140px;
}

.enterprise-requirement-summary {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-domain-datatable] .billing-table th > button {
  min-height: 44px;
  white-space: normal;
}

[data-review-datatable] .billing-table th > button {
  min-height: 44px;
  white-space: normal;
}

[data-domain-datatable] .domain-col-organization {
  width: 220px;
}

[data-domain-datatable] .domain-col-approved {
  width: 180px;
}

[data-domain-datatable] .domain-col-compliant {
  width: 140px;
}

[data-domain-datatable] .domain-col-noncompliant {
  width: 170px;
}

[data-domain-datatable] .domain-col-account {
  width: 120px;
}

[data-domain-datatable] .domain-col-domain {
  width: 170px;
}

[data-domain-datatable] .domain-col-requested {
  width: 190px;
}

[data-domain-datatable] .domain-col-date {
  width: 150px;
}

[data-domain-datatable] .domain-col-status {
  width: 120px;
}

[data-domain-datatable] .domain-col-actions {
  width: 120px;
}

[data-review-datatable] .review-col-member {
  width: 190px;
}

[data-review-datatable] .review-col-email {
  width: 240px;
}

[data-review-datatable] .review-col-organization {
  width: 190px;
}

[data-review-datatable] .review-col-status {
  width: 130px;
}

[data-review-datatable] .review-col-date {
  width: 160px;
}

[data-review-datatable] .review-col-actions {
  width: 90px;
}

.billing-table-actions button {
  color: #175cd3;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.billing-table-actions button:hover,
.billing-table-actions button:focus-visible {
  color: #0b4bb3;
  border-color: #93c5fd;
  background: #dbeafe;
}

.billing-table-actions button:disabled {
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #f8fafc;
}

.billing-table th:nth-child(1) {
  width: 24%;
}

.billing-table th:nth-child(2) {
  width: 13%;
}

.billing-table th:nth-child(3),
.billing-table th:nth-child(6) {
  width: 15%;
}

.billing-table th:nth-child(4),
.billing-table th:nth-child(5) {
  width: 11%;
}

.billing-table th:nth-child(7) {
  width: 11%;
}

.invite-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(24, 124, 255, 0.24);
  border-radius: 14px;
  background: rgba(24, 124, 255, 0.08);
}

.invite-result strong {
  grid-column: 1 / -1;
  color: #08284a;
}

.invite-result input {
  min-width: 0;
  font-size: 12px;
}

.invite-result button {
  width: auto;
  min-height: 38px;
  padding: 0 12px;
}

.member-chip {
  display: inline-flex !important;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #087443 !important;
  background: #eafaf2;
  border: 1px solid #a7f3d0;
  font-weight: 800;
}

.notice {
  padding: 12px 14px;
  margin: 16px 0;
  border-radius: 7px;
  font-weight: 700;
}

.notice.success {
  background: #eafaf2;
  color: #087443;
  border: 1px solid #a7f3d0;
}

.notice.danger {
  background: #fef2f2;
  color: #b42318;
  border: 1px solid #fecaca;
}

.meta {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  margin: 20px 0;
}

.meta.compact {
  margin-bottom: 0;
}

.meta dt {
  font-weight: 800;
}

.meta dd {
  margin: 0;
  color: var(--muted);
}

.dashboard-body {
  background: #edf3f9;
  overflow-x: hidden;
}

.admin-sidebar-handle,
.admin-sidebar-backdrop {
  display: none;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  overflow-y: auto;
  background: #e5e9ef;
  color: #122033;
  border-right: 1px solid #cbd5e1;
}

.admin-brand {
  display: block;
  padding: 10px 8px 18px;
  border-bottom: 1px solid #cbd5e1;
}

.admin-brand img {
  width: 210px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.12));
}

.admin-user {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.admin-user > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 900;
}

.admin-user strong,
.admin-user small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user small {
  margin-top: 3px;
  color: #64748b;
}

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

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  font-weight: 800;
  transition: background 0.16s ease, color 0.16s ease;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 3px 0 0 var(--blue);
}

.admin-nav i {
  width: 18px;
  text-align: center;
}

.admin-sidebar-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(23, 178, 106, 0.34);
  border-radius: 8px;
  background: rgba(23, 178, 106, 0.11);
}

.admin-sidebar-note strong,
.admin-sidebar-note span {
  display: block;
}

.admin-sidebar-note span {
  margin-top: 6px;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.admin-main {
  min-width: 0;
  padding: 24px;
  overflow-x: hidden;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(6, 25, 53, 0.06);
}

.admin-topbar h1 {
  margin: 2px 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.admin-topbar p:not(.admin-eyebrow) {
  max-width: 780px;
}

.admin-eyebrow-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 14px;
}

.idle-lock-countdown {
  display: inline-block;
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.idle-lock-countdown[hidden] {
  display: none !important;
}

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

.admin-topbar-actions .button,
.admin-topbar-actions button,
.ghost-action {
  gap: 8px;
}

.admin-eyebrow {
  margin: 0;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  font-weight: 900;
}

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

.metric-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid #8ba4c1;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(6, 25, 53, 0.06);
}

.metric-card.metric-primary {
  border-left-color: var(--blue);
}

.metric-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  justify-self: center;
  align-self: center;
  border-radius: 8px;
  color: var(--green);
  background: rgba(23, 178, 106, 0.12);
  font-size: 19px;
}

.metric-card small,
.metric-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.metric-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.metric-card .metric-icon {
  display: inline-grid;
  margin-top: 0;
  color: var(--green);
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.auto-renewal-overview-card {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
}

.auto-renewal-overview-card[hidden] {
  display: none !important;
}

.auto-renewal-overview-card .billing-estimate-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auto-renewal-overview-card .status-pill,
.auto-renewal-overview-card .checkbox span {
  display: inline-flex;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.auto-renewal-overview-card .billing-estimate {
  width: 100%;
}

.auto-renewal-overview-card .form-actions {
  justify-content: flex-end;
}

.usage-pagination {
  margin-top: 12px;
}

.metric-icon i,
.metric-icon svg {
  display: block;
  line-height: 1;
}

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

[data-dashboard-page][hidden] {
  display: none !important;
}

[data-dashboard-link][hidden] {
  display: none !important;
}

[data-seat-only][hidden],
[data-audit-only][hidden],
[data-super-only][hidden] {
  display: none !important;
}

.dashboard-grid.two-col,
.billing-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dashboard-grid.team-grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}

.team-invitations-panel {
  grid-column: 1 / -1;
  min-width: 0;
}

.billing-grid {
  align-items: start;
}

.wide-panel {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin-top: 2px;
}

.dashboard-billing-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 4px;
  border: 1px solid #d6e1f1;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dashboard-billing-switch button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: #40536f;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-billing-switch button:hover,
.dashboard-billing-switch button:focus-visible {
  color: var(--blue);
  background: #eff6ff;
}

.dashboard-billing-switch button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #16b56f, #0f8df0);
  box-shadow: 0 8px 18px rgba(15, 141, 240, 0.22);
}

.metric-license-domain {
  display: inline;
  color: #087443;
  font-weight: 900;
}

.metric-card span.metric-license-domain,
#metricLicenseDetail .metric-license-domain {
  display: inline;
  margin-top: 0;
  color: #087443;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

#metricLicenseDetail {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  color: #40536f;
  background: #f5f8fc;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.has-status-dot::before {
  content: "\f111";
  display: inline-block;
  color: var(--status-dot-color, currentColor);
  font-family: "Font Awesome 6 Free";
  font-size: 0.58em;
  font-weight: 900;
  line-height: 1;
  animation: statusBreathingDot 1.6s ease-in-out infinite;
}

.status-pill.status-dot-only {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  overflow: visible;
  border-color: transparent;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 1;
  vertical-align: middle;
}

.status-pill.status-dot-only::before {
  font-size: 10px;
}

.status-pill.status-dot-success { --status-dot-color: #16a34a; }
.status-pill.status-dot-warning { --status-dot-color: #f97316; }
.status-pill.status-dot-danger { --status-dot-color: #dc2626; }

@keyframes statusBreathingDot {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.78);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.status-pill[hidden] {
  display: none !important;
}

.status-pill.info {
  color: #175cd3;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.status-pill.success {
  color: #087443;
  border-color: #a7f3d0;
  background: #ecfdf3;
}

.status-pill.warning {
  color: #92400e;
  border-color: #fed7aa;
  background: #fff7ed;
}

.status-pill.danger {
  color: #b42318;
  border-color: #fecaca;
  background: #fff1f2;
}

.status-pill.status-dot-only,
.dashboard-responsive-table .status-pill.status-dot-only {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px;
  margin-right: auto;
  margin-left: auto;
  padding: 0;
  overflow: visible;
  border-color: transparent;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.status-pill.status-dot-only::before,
.dashboard-responsive-table .status-pill.status-dot-only::before {
  font-size: 12px;
}

.dashboard-status-cell,
.signature-table-status,
.billing-table-status,
.dashboard-responsive-table td[data-label*="Status"],
.dashboard-responsive-table th[data-label*="Status"],
.dashboard-responsive-table th:has(button[title*="Status"]),
.dashboard-responsive-table th:has(span[title*="Status"]),
.organization-license-table td[data-label*="Status"],
.team-member-table td[data-label*="Status"],
.team-member-table th:nth-child(2) {
  text-align: center;
}

.dashboard-status-cell .status-pill.status-dot-only,
.signature-table-status .status-pill.status-dot-only,
.billing-table-status .status-pill.status-dot-only,
.organization-license-table td[data-label*="Status"] .status-pill.status-dot-only {
  display: inline-flex;
  margin-right: auto;
  margin-left: auto;
}

.dashboard-responsive-table td[data-label*="Status"] .status-pill.status-dot-only,
.team-member-table td[data-label*="Status"] .status-pill.status-dot-only {
  display: inline-flex;
  margin-right: auto;
  margin-left: auto;
}

.flow-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.flow-steps li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.flow-steps strong,
.flow-steps small {
  display: block;
}

.flow-steps small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

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

.requirement-grid h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 15px;
}

.requirement-grid h3 .fa-circle-check {
  color: var(--green);
}

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

.clean-list li {
  position: relative;
  padding-left: 18px;
  color: #17233a;
  line-height: 1.4;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.muted-list li {
  color: var(--muted);
}

.muted-list li::before {
  background: #94a3b8;
}

.access-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.access-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #087443;
  background: #eafaf2;
  border: 1px solid #a7f3d0;
  font-size: 12px;
  font-weight: 900;
}

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

.admin-form.single-column {
  grid-template-columns: 1fr;
}

.admin-form .wide,
.form-actions,
.action-grid,
.admin-form .hint {
  grid-column: 1 / -1;
}

.platform-settings-grid {
  grid-template-columns: minmax(0, 1fr);
}

.platform-settings-grid > .wide-panel {
  grid-column: 1 / -1;
}

.platform-setting-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.platform-setting-tabs button {
  border: 1px solid var(--border-color, #dbe3ef);
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
}

.platform-setting-tabs button.is-active {
  color: #fff;
  border-color: #3157d5;
  background: #3157d5;
}

.admin-form label.platform-checkbox {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.icon-only-action {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  justify-content: center;
}

.platform-setting-modal {
  width: min(620px, 100%);
}

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

#letterheadSettingsForm .checkbox.wide {
  width: fit-content;
  max-width: 100%;
  justify-self: start;
}

.letterhead-two-col,
.letterhead-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.letterhead-address-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.letterhead-address-grid .wide {
  grid-column: 1 / -1;
}

.letterhead-autofetch-note {
  display: block;
  margin: 3px 0 6px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.letterhead-phone-row {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  gap: 8px;
}

.letterhead-edit-wrap {
  position: relative;
}

.letterhead-edit-wrap input {
  padding-right: 42px;
}

.letterhead-edit-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  line-height: 1;
}

.letterhead-edit-toggle:hover,
.letterhead-edit-toggle:focus-visible {
  background: transparent;
  color: #1d4ed8;
}

.letterhead-edit-toggle[hidden] {
  display: none !important;
}

.letterhead-upload-card {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(180px, 240px);
  gap: 12px;
  align-items: stretch;
  border: 1px solid var(--border-color, #dbe3ef);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.letterhead-upload-card > div:first-child {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
}

.letterhead-upload-card strong {
  color: #102033;
}

.letterhead-upload-card small {
  color: #6b7a90;
  font-weight: 700;
}

.letterhead-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 148px;
  border: 2px dashed #6d4cff;
  border-radius: 8px;
  background: #fbf9ff;
  color: #172033;
  text-align: center;
  cursor: pointer;
}

.letterhead-dropzone i {
  color: #239add;
  font-size: 44px;
}

.letterhead-dropzone span {
  font-weight: 900;
}

.letterhead-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.letterhead-preview-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 148px;
  border: 1px solid var(--border-color, #dbe3ef);
  border-radius: 8px;
  background: #f7fafc;
  overflow: hidden;
  color: #6b7a90;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.letterhead-preview-box img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 190px;
  object-fit: contain;
  padding: 10px;
}

.letterhead-preview-box img[hidden],
.letterhead-image-delete[hidden] {
  display: none !important;
}

.letterhead-image-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  padding: 0 !important;
  background: #dc2626;
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.24);
}

.letterhead-image-delete i {
  display: block;
  margin: 0;
  font-size: 15px;
  line-height: 1;
}

.letterhead-preview-box:hover .letterhead-image-delete:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.letterhead-upload-card.is-uploading .letterhead-dropzone {
  opacity: .68;
  pointer-events: none;
}

.letterhead-upload-card.is-same-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .letterhead-upload-grid {
    grid-template-columns: 1fr;
  }
  .letterhead-address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .letterhead-two-col,
  .letterhead-address-grid,
  .letterhead-phone-row {
    grid-template-columns: 1fr;
  }
  .letterhead-upload-card {
    grid-template-columns: 1fr;
  }
}

.platform-setting-modal .admin-form {
  margin-top: 4px;
}

.platform-setting-datatable {
  margin-top: 4px;
}

.platform-setting-table {
  min-width: 1040px;
}

.platform-setting-table th:nth-child(1) { width: 19%; }
.platform-setting-table th:nth-child(2) { width: 17%; }
.platform-setting-table th:nth-child(3) { width: 25%; }
.platform-setting-table th:nth-child(4) { width: 10%; }
.platform-setting-table th:nth-child(5) { width: 18%; }
.platform-setting-table th:nth-child(6) { width: 11%; }

.platform-setting-audit-table {
  min-width: 980px;
}

.platform-setting-audit-table th:nth-child(1) { width: 20%; }
.platform-setting-audit-table th:nth-child(2),
.platform-setting-audit-table th:nth-child(3) { width: 24%; }
.platform-setting-audit-table th:nth-child(4) { width: 14%; }
.platform-setting-audit-table th:nth-child(5) { width: 18%; }

.platform-setting-key {
  display: block;
  overflow: hidden;
  color: #174ea6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signature-table-actions .platform-edit-action {
  color: #175cd3;
  border-color: #bfdbfe;
  background: #eff6ff;
}

@media (max-width: 900px) {
  .platform-settings-grid { grid-template-columns: 1fr; }
}

.dashboard-responsive-table .signature-table-status,
.dashboard-responsive-table td[data-label="Status"],
.dashboard-responsive-table td[data-label="Domain Status"],
.dashboard-responsive-table td[data-label="License Status"],
.signature-table td[data-label="Status"],
.signature-table td[data-label="Domain Status"],
.signature-table td[data-label="License Status"] {
  text-align: center;
}

.dashboard-responsive-table .signature-table-status .status-pill.status-dot-only,
.dashboard-responsive-table td[data-label="Status"] .status-pill.status-dot-only,
.dashboard-responsive-table td[data-label="Domain Status"] .status-pill.status-dot-only,
.dashboard-responsive-table td[data-label="License Status"] .status-pill.status-dot-only,
.signature-table td[data-label="Status"] .status-pill.status-dot-only,
.signature-table td[data-label="Domain Status"] .status-pill.status-dot-only,
.signature-table td[data-label="License Status"] .status-pill.status-dot-only {
  display: inline-flex;
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px;
  margin-right: auto;
  margin-left: auto;
}

.dashboard-responsive-table.team-member-table th:nth-child(2),
.dashboard-responsive-table.team-member-table th:nth-child(3),
.dashboard-responsive-table.team-member-table td[data-label="Domain Status"],
.dashboard-responsive-table.team-member-table td[data-label="Actions"] {
  text-align: center;
}

.dashboard-responsive-table.team-member-table td[data-label="Actions"].team-member-actions {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

.dashboard-responsive-table.team-member-table th:nth-child(2) > button,
.dashboard-responsive-table.team-member-table th:nth-child(3) > button {
  justify-content: center;
}

.dashboard-responsive-table.team-member-table .team-member-actions button,
.dashboard-responsive-table.team-member-table .team-member-actions .member-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 66px;
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-form label {
  color: #17233a;
  font-size: 13px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  min-height: 42px;
  border-radius: 8px;
  background: #fbfdff;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.42);
}

.role-notice {
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.role-notice.success {
  border-color: #a7f3d0;
  color: #087443;
  background: #ecfdf5;
}

.sync-email-grid .panel {
  min-width: 0;
}

.sync-email-grid {
  display: grid;
  grid-template-columns: minmax(210px, 20%) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.sync-email-sidebar-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  height: auto;
  min-height: min(760px, calc(100vh - 150px));
  padding: 14px;
  overflow: visible;
}

.sync-email-message-panel {
  display: flex;
  flex-direction: column;
  min-height: min(760px, calc(100vh - 150px));
  min-width: 0;
}

.sync-email-new-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #5b2fd3;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(91, 47, 211, 0.2);
}

.sync-email-new-message:hover {
  background: #4c24bd;
}

.sync-email-side-nav,
.sync-email-side-actions {
  display: grid;
  gap: 4px;
}

.sync-email-side-nav button,
.sync-email-side-actions button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  text-align: left;
  font-weight: 700;
}

.sync-email-side-nav button:hover,
.sync-email-side-actions button:hover,
.sync-email-side-nav button.is-active {
  background: #f3f4f6;
}

.sync-email-side-nav button i,
.sync-email-side-actions button i {
  color: #4b5563;
  font-size: 1rem;
}

.sync-email-side-nav button strong,
.sync-email-side-actions button strong {
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #6b7280;
  color: #fff;
  font-size: 0.76rem;
  text-align: center;
}

.sync-email-side-actions {
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.sync-email-side-actions .sync-email-circle-sync {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 52px;
  padding: 4px 0;
}

.sync-email-side-actions .sync-email-circle-sync:hover {
  background: transparent;
}

.sync-email-folder-box {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.sync-email-folder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  color: #475467;
  font-size: 0.8rem;
  font-weight: 900;
}

.sync-email-folder-heading button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
}

.sync-email-folder-heading button:hover {
  background: #f3f4f6;
}

.sync-email-custom-folders {
  display: grid;
  gap: 4px;
}

.sync-email-custom-folders button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  text-align: left;
  font-weight: 800;
}

.sync-email-custom-folders button:hover,
.sync-email-custom-folders button.is-active {
  background: #f3f4f6;
}

.sync-email-custom-folders button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-email-custom-folders button strong {
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #6b7280;
  color: #fff;
  font-size: 0.74rem;
  text-align: center;
}

.sync-email-custom-folders button em {
  display: none;
  gap: 2px;
  align-items: center;
  font-style: normal;
}

.sync-email-custom-folders button:hover em,
.sync-email-custom-folders button:focus-within em {
  display: inline-flex;
}

.sync-email-custom-folders button em span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: #475569;
}

.sync-email-custom-folders button em span:hover {
  background: #e5e7eb;
}

.sync-email-all-progress {
  display: grid;
  min-height: 52px;
  place-items: center;
  padding: 4px 0;
}

.sync-email-all-progress[hidden] {
  display: none !important;
}

.sync-email-sync-circle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #3651d4;
  box-shadow: inset 0 0 0 1px rgba(83, 117, 255, 0.22);
}

.sync-email-archive-modal {
  width: min(920px, calc(100vw - 32px));
}

.sync-email-archive-table {
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
}

.sync-email-archive-table.is-empty {
  display: grid;
  min-height: 54px;
  place-items: center;
  overflow: visible;
  border: 0;
}

.sync-email-archive-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
}

.sync-email-archive-grid {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.sync-email-archive-grid th,
.sync-email-archive-grid td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: #334155;
  font-size: 0.88rem;
  text-align: left;
  vertical-align: middle;
}

.sync-email-archive-grid th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 900;
}

.sync-email-archive-grid tr:last-child td {
  border-bottom: 0;
}

.sync-email-archive-grid td strong,
.sync-email-archive-grid td span {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-email-archive-grid td strong {
  color: #0f172a;
}

.sync-email-archive-grid td span {
  color: #64748b;
  font-size: 0.82rem;
}

.sync-email-archive-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-start;
  align-items: center;
}

.sync-email-archive-actions button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-width: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 0.92rem;
}

.sync-email-archive-actions button:hover {
  background: #f8fafc;
}

.sync-email-archive-actions button.danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

.sync-email-archive-actions button.danger:hover {
  background: #fee2e2;
}

.sync-email-sidebar-panel .sync-email-account-list {
  gap: 8px;
  overflow: visible;
}

.sync-email-sidebar-panel .sync-email-account {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  overflow: visible;
}

.sync-email-sidebar-panel .sync-email-account:hover,
.sync-email-sidebar-panel .sync-email-account:focus-within {
  z-index: 30;
}

.sync-email-sidebar-panel .sync-email-account-actions {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.sync-email-account-main:hover + .sync-email-account-actions,
.sync-email-account-main:focus-within + .sync-email-account-actions,
.sync-email-account-actions:hover,
.sync-email-account-actions:focus-within {
  display: flex;
}

.sync-email-account-main {
  min-width: 0;
  padding-right: 88px;
}

.sync-email-account-main strong {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.sync-email-account-name {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-email-account-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-email-account-main strong {
  overflow: visible;
  white-space: nowrap;
}

.sync-email-status-tag {
  flex: 0 0 auto;
  min-width: fit-content;
  max-width: none;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.sync-email-status-tag.is-queued {
  background: #fff7ed;
  color: #c2410c;
}

.sync-email-status-tag.is-progress {
  background: #eef2ff;
  color: #3651d4;
}

.sync-email-status-tag.is-completed {
  background: #dcfce7;
  color: #166534;
}

.sync-email-account-progress {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--sync-progress-color) var(--sync-progress), #e5e7eb 0deg);
}

.sync-email-account-progress span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: inherit;
  background: #fff;
  color: #111827;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.sync-email-sidebar-panel .sync-email-account-actions button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 0.8rem;
}

.sync-email-account-list,
.sync-email-list {
  display: grid;
  gap: 12px;
}

.sync-email-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
}

.sync-email-account,
.sync-email-row {
  display: grid;
  grid-template-columns: 12px 24px 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0;
  background: #fff;
}

.sync-email-account {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: auto;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
}

.sync-email-account strong,
.sync-email-row strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
}

.sync-email-account span,
.sync-email-account small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #667085;
  font-size: 0.82rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-email-sidebar-panel .sync-email-account {
  grid-template-columns: minmax(0, 1fr);
}

.sync-email-sidebar-panel .sync-email-account-main strong {
  display: flex;
}

.sync-email-sidebar-panel .sync-email-status-tag {
  display: inline-block;
  font-size: 0.58rem;
}

.sync-email-account .sync-email-account-main strong {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: visible;
}

.sync-email-account .sync-email-account-name {
  flex: 0 1 auto;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.sync-email-account .sync-email-status-tag {
  flex: 0 0 auto;
  white-space: nowrap;
}

.sync-email-row.is-unread {
  background: #fff7ed;
  font-weight: 800;
}

.sync-email-row:hover {
  background: #f3f4f6;
}

.sync-email-row.is-unread:hover {
  background: #ffedd5;
}

.sync-email-drag {
  color: #9ca3af;
  font-size: 0.78rem;
  cursor: grab;
}

.sync-email-row:active .sync-email-drag {
  cursor: grabbing;
}

.sync-email-check {
  display: inline-grid;
  place-items: center;
}

.sync-email-check input {
  display: none;
}

.sync-email-check span {
  width: 18px;
  height: 18px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
}

.sync-email-check input:checked + span {
  border-color: #5375ff;
  background: #5375ff;
  box-shadow: inset 0 0 0 4px #fff;
}

.sync-email-star,
.sync-email-open {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.sync-email-star {
  color: #64748b;
}

.sync-email-star.is-starred {
  color: #f59e0b;
}

.sync-email-draft-row .sync-email-star {
  display: inline-grid;
  place-items: center;
  color: #64748b;
  pointer-events: none;
}

.sync-email-open {
  display: grid;
  grid-template-columns: minmax(130px, 240px) minmax(240px, 1fr);
  gap: 14px;
  align-items: center;
  color: #334155;
  text-align: left;
}

.sync-email-account-actions,
.sync-email-row-actions {
  display: flex;
  gap: 8px;
}

.sync-email-row-actions {
  display: none;
}

.sync-email-row:hover .sync-email-row-meta {
  display: none;
}

.sync-email-row:hover .sync-email-row-actions {
  display: flex;
}

.sync-email-sender,
.sync-email-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-email-sender {
  color: #334155;
  font-weight: 400;
}

.sync-email-subject {
  color: #1f2937;
  font-weight: 400;
}

.sync-email-row.is-unread .sync-email-sender,
.sync-email-row.is-unread .sync-email-subject,
.sync-email-row.is-unread .sync-email-row-meta {
  font-weight: 800;
}

.sync-email-row-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 96px;
  color: #475467;
  font-size: 0.82rem;
}

.sync-email-folder-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--tag-color) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag-color) 12%, #fff);
  color: color-mix(in srgb, var(--tag-color) 70%, #111827);
  font-size: 0.74rem;
  font-weight: 900;
  overflow: hidden;
  line-height: 1;
}

.sync-email-account-actions button,
.sync-email-row-actions button,
.sync-email-row-action {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: #fff;
  color: #475467;
}

.sync-email-row-actions button {
  width: 32px;
  height: 32px;
  border-color: transparent;
  background: transparent;
}

.sync-email-account-actions button:hover,
.sync-email-row-actions button:hover,
.sync-email-row-action:hover {
  border-color: rgba(83, 117, 255, 0.45);
  color: #3651d4;
}

.sync-email-account-actions .danger,
.sync-email-row-actions .danger,
.sync-email-row-action.danger {
  color: #b42318;
}

.sync-email-filters button.is-active {
  border-color: rgba(83, 117, 255, 0.55);
  background: rgba(83, 117, 255, 0.1);
  color: #3651d4;
}

.sync-email-toolbar,
.sync-email-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.sync-email-message-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sync-email-message-filters button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

.sync-email-message-filters button:hover,
.sync-email-message-filters button.is-active {
  border-color: rgba(83, 117, 255, 0.55);
  background: rgba(83, 117, 255, 0.1);
  color: #3651d4;
}

.sync-email-bulk-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  margin: 0 auto;
}

.sync-email-bulk-delete[hidden] {
  display: none;
}

.sync-email-bulk-delete button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff5f5;
  color: #b91c1c;
  font-weight: 900;
}

.sync-email-bulk-delete button strong {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-size: 0.76rem;
}

.sync-email-bulk-progress {
  width: min(220px, 34vw);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.sync-email-bulk-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #ec4899, #5375ff, #16a34a);
  transition: width 0.24s ease;
}

.sync-email-bulk-delete > strong {
  margin-left: 8px;
  color: #0f172a;
  font-size: 0.82rem;
}

.sync-email-toolbar label,
.sync-email-sidebar-mailbox-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 0.84rem;
  font-weight: 800;
}

.sync-email-toolbar .sync-email-mailbox-filter,
.sync-email-sidebar-mailbox-filter {
  flex: 0 1 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.sync-email-sidebar-mailbox-filter {
  width: 100%;
  margin: 0;
}

.sync-email-mailbox-filter span {
  display: inline-block;
  min-width: max-content;
}

.sync-email-mailbox-filter select {
  min-width: 260px;
  max-width: min(360px, 42vw);
  min-height: 40px;
  padding: 0 38px 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  appearance: none;
  background: #fff linear-gradient(45deg, transparent 50%, #475569 50%), linear-gradient(135deg, #475569 50%, transparent 50%);
  background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sync-email-sidebar-mailbox-filter select {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.sync-email-mailbox-filter select:focus {
  outline: 3px solid rgba(83, 117, 255, 0.16);
  border-color: rgba(83, 117, 255, 0.55);
}

.sync-email-pagination {
  justify-content: flex-end;
  margin: 14px 0 0;
}

.sync-email-pagination button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: #fff;
  color: #475467;
}

.sync-email-message-panel {
  position: relative;
}

.sync-email-message-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.sync-email-messages {
  min-height: 100%;
}

.sync-email-reader {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  overflow: hidden;
}

.sync-email-reader[hidden] {
  display: none;
}

.sync-email-reader-shell {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  background: #fff;
}

.sync-email-reader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.sync-email-reader-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(440px, 45vw);
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.86rem;
}

.sync-email-reader-toolbar,
.sync-email-reader-message-actions,
.sync-email-reader-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-email-reader-toolbar button,
.sync-email-reader-message-actions button,
.sync-email-reader-footer-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  cursor: pointer;
}

.sync-email-reader-toolbar button:hover,
.sync-email-reader-message-actions button:hover,
.sync-email-reader-footer-actions button:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.sync-email-reader-avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
  color: #4f46e5;
  font-weight: 900;
}

.sync-email-reader-toolbar {
  padding: 7px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.sync-email-reader-content {
  overflow-y: auto;
  overflow-x: hidden;
  background: #f3f6fb;
}

.sync-email-reader-subject-row {
  padding: 16px 24px 10px;
  background: #fff;
}

.sync-email-reader-subject-row h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.3;
  color: #0f172a;
}

.sync-email-reader-message-card {
  min-height: 460px;
  margin: 0;
  border: 1px solid #dbe3ef;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: #fff;
  overflow: visible;
}

.sync-email-reader-message-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.sync-email-reader-from-block {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  font-size: 0.9rem;
}

.sync-email-reader-from-block strong {
  overflow-wrap: anywhere;
}

.sync-email-reader-recipient-toggle {
  justify-content: flex-start !important;
  width: fit-content;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  color: #64748b !important;
  font-size: 0.84rem;
}

.sync-email-reader-recipient-detail {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  display: grid;
  gap: 6px;
  width: min(430px, 76vw);
  max-width: calc(100vw - 80px);
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.sync-email-reader-recipient-detail[hidden] {
  display: none;
}

.sync-email-reader-recipient-detail p {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  color: #475569;
  font-size: 0.82rem;
}

.sync-email-reader-recipient-detail strong {
  text-align: right;
  font-weight: 600;
  color: #64748b;
}

.sync-email-reader-message-actions {
  position: relative;
  flex-shrink: 0;
  color: #475569;
  font-size: 0.82rem;
}

.sync-email-reader-message-actions time {
  margin-right: 4px;
  white-space: nowrap;
}

.sync-email-reader-menu-wrap {
  position: relative;
}

.sync-email-reader-menu-button {
  background: #f1f5f9 !important;
}

.sync-email-reader-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 3;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.sync-email-reader-menu[hidden] {
  display: none;
}

.sync-email-reader-menu button {
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  border-radius: 8px;
  color: #0f172a;
  font-size: 0.88rem;
}

.sync-email-reader-menu button:hover {
  background: #e5e7eb;
}

.sync-email-reader-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.sync-email-reader-attachments a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 310px;
  padding: 8px 10px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  text-decoration: none;
}

.sync-email-reader-attachments a:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.sync-email-reader-attachments span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-email-reader-attachments small {
  color: #64748b;
}

.sync-email-reader-body-wrap {
  min-height: 520px;
  padding: 28px 24px 80px;
  background: #f3f6fb;
  overflow-y: auto;
  overflow-x: hidden;
}

.sync-email-reader-html-body,
.sync-email-reader-text-body {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  color: #111827;
}

.sync-email-reader-html-body {
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
}

.sync-email-reader-html-body img {
  max-width: 100% !important;
  height: auto;
}

.sync-email-reader-html-body table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
}

.sync-email-reader-html-body td,
.sync-email-reader-html-body th {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sync-email-reader-html-body div,
.sync-email-reader-html-body section,
.sync-email-reader-html-body article,
.sync-email-reader-html-body p {
  max-width: 100% !important;
  box-sizing: border-box;
}

.sync-email-reader-html-body pre,
.sync-email-reader-html-body code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sync-email-reader-text-body {
  padding: 24px;
  border-radius: 10px;
  background: #fff;
  line-height: 1.7;
}

.sync-email-reader-footer-actions {
  position: sticky;
  bottom: 0;
  padding: 10px 18px;
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.96);
}

.sync-email-reader-footer-actions button {
  min-width: auto;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.sync-email-original-source {
  max-height: 60vh;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sync-email-summary-box {
  display: grid;
  gap: 10px;
  color: #0f172a;
}

.sync-email-summary-box p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fbff;
  line-height: 1.55;
}

.sync-email-read {
  display: grid;
  gap: 18px;
}

.sync-email-read-meta {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #f8fafc;
}

.sync-email-read-meta div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}

.sync-email-read-meta strong {
  color: #475467;
  font-size: 0.8rem;
}

.sync-email-read-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #0f172a;
}

.sync-email-read-body {
  max-height: 58vh;
  overflow: auto;
  padding: 4px 2px;
  color: #1f2937;
  font-size: 0.94rem;
  line-height: 1.65;
}

.sync-email-read-body p {
  margin: 0 0 14px;
  white-space: pre-wrap;
}

.sync-email-read-body strong {
  color: #111827;
  font-weight: 800;
}

.sync-email-quote {
  margin: 14px 0 18px;
  padding: 0 0 0 14px;
  border-left: 2px solid #d1d5db;
  color: #475569;
}

.sync-email-quote p {
  margin-bottom: 12px;
}

.sync-email-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.sync-email-attachments a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: min(100%, 360px);
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.9rem;
  text-decoration: none;
}

.sync-email-attachments a:hover {
  border-color: rgba(83, 117, 255, 0.45);
  background: #f8faff;
  color: #3651d4;
}

.sync-email-attachments a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-email-attachments small {
  color: #64748b;
  font-size: 0.78rem;
}

.sync-email-compose-form {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #fff;
}

.sync-compose-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1070;
  background: rgba(15, 23, 42, 0.68);
}

.sync-compose-backdrop[hidden],
.sync-compose-window[hidden] {
  display: none !important;
}

.sync-compose-window {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 1080;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  width: min(620px, calc(100vw - 40px));
  height: min(620px, calc(100vh - 80px));
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
}

.sync-compose-window[data-compose-size="large"] {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(1040px, calc(100vw - 160px));
  height: min(82vh, 820px);
  transform: translate(-50%, -50%);
}

.sync-compose-window.is-minimized {
  top: auto;
  right: 28px;
  bottom: 24px;
  left: auto;
  width: min(360px, calc(100vw - 40px));
  height: 44px;
  transform: none;
}

.sync-compose-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: #f3f4f6;
}

.sync-compose-titlebar strong {
  color: #111827;
  font-size: 0.94rem;
}

.sync-compose-titlebar div {
  display: flex;
  align-items: center;
  gap: 2px;
}

.sync-compose-titlebar button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
}

.sync-compose-titlebar button:hover {
  background: #e5e7eb;
}

.sync-compose-window .sync-email-compose-form {
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto;
}

.sync-compose-window.is-minimized .sync-email-compose-form {
  display: none;
}

.sync-compose-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  color: #475467;
  font-size: 0.9rem;
}

.sync-compose-line span {
  font-weight: 700;
}

.sync-compose-line input,
.sync-compose-line select {
  width: 100%;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  outline: none;
}

.sync-compose-line button {
  border: 0;
  background: transparent;
  color: #475467;
  font-weight: 700;
}

.sync-compose-extra {
  display: grid;
}

.sync-compose-extra .sync-compose-line {
  grid-template-columns: 32px minmax(0, 1fr);
}

.sync-email-composer {
  min-height: 320px;
  max-height: 58vh;
  overflow: auto;
  padding: 18px 14px;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.65;
  outline: none;
}

.sync-compose-window .sync-email-composer {
  min-height: 0;
  max-height: none;
}

.sync-email-composer:empty::before {
  content: attr(data-placeholder);
  color: #98a2b3;
}

.sync-email-composer a {
  color: #2563eb;
}

.sync-email-composer img {
  max-width: 100%;
  height: auto;
}

.sync-compose-attachments {
  display: grid;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.sync-compose-attachment-summary {
  color: #475467;
  font-size: 0.86rem;
}

.sync-compose-attachment-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sync-compose-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  background: #f3f4f6;
  color: #334155;
}

.sync-compose-attachment-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-compose-attachment-chip small {
  color: #64748b;
  white-space: nowrap;
}

.sync-compose-attachment-chip button {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111827;
}

.sync-compose-attachment-chip button:hover {
  background: #e5e7eb;
}

.sync-compose-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.sync-compose-send,
.sync-compose-tools,
.sync-compose-end {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sync-compose-send .primary:first-child {
  min-height: 36px;
  border-radius: 8px 0 0 8px;
}

.sync-compose-send .primary:last-child {
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-left: 1px solid rgba(255,255,255,0.38);
  border-radius: 0 8px 8px 0;
}

.sync-compose-tools button,
.sync-compose-end button {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
}

.sync-compose-tools button:hover,
.sync-compose-end button:hover {
  background: #eef2ff;
  color: #3651d4;
}

.sync-compose-end button:first-child {
  width: auto;
  padding: 0 10px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .sync-email-grid {
    grid-template-columns: 1fr;
  }

  .sync-email-sidebar-panel {
    position: static;
    height: auto;
    min-height: auto;
  }

  .sync-email-message-panel {
    min-height: auto;
  }

  .sync-email-side-nav {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .sync-compose-window,
  .sync-compose-window[data-compose-size="large"] {
    right: 12px;
    bottom: 12px;
    left: 12px;
    top: auto;
    width: auto;
    height: min(78vh, 680px);
    transform: none;
  }
}

button.is-disabled,
button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.billing-estimate {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 12px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #f8fafc;
}

.billing-estimate[aria-busy="true"] {
  border-color: #bfdbfe;
}

.billing-estimate.is-upgrade {
  border-color: #a7f3d0;
  background: #effdf6;
}

.billing-estimate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.billing-estimate-head strong,
.billing-estimate-head span {
  display: block;
}

.billing-estimate-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

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

.billing-estimate-grid div {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-estimate-grid small,
.billing-estimate-grid strong {
  display: block;
}

.billing-estimate-grid small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  font-weight: 900;
}

.billing-estimate-grid strong {
  margin-top: 5px;
  font-size: 17px;
}

.auto-renewal-checkout-option {
  align-items: center;
  padding: 12px;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  background: #effdf6;
}

.auto-renewal-checkout-option .label {
  color: #0f5132;
}

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

.action-grid button,
.plan-card {
  justify-content: flex-start;
  gap: 8px;
}

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

.license-card-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.license-card {
  width: 100%;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.license-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-bottom: 1px solid #e6edf6;
}

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

.license-row strong {
  color: #17233a;
  font-size: 13px;
}

.license-key-display {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #17233a;
  font-size: 13px;
  font-weight: 800;
}

.license-key-display span,
.license-key-display code {
  overflow-wrap: anywhere;
}

.license-key-display em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  color: #26324a;
  background: #eef2f7;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.license-key-display code {
  color: #17233a;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.license-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.license-actions button {
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  box-shadow: none;
}

.license-actions button .fa-trash,
.license-actions button[data-license-action="delete"] {
  color: #94a3b8;
}

.license-actions button span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.license-ack-row {
  grid-template-columns: 150px minmax(0, 1fr);
  color: #6b3f00;
  background: #fff7e6;
  font-weight: 700;
}

body.license-onboarding-locked [data-dashboard-link]:not([data-dashboard-link="license"]) {
  pointer-events: none;
  opacity: 0.42;
}

.license-info-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.license-alert {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.license-alert p {
  margin: 0;
}

.license-alert.warning {
  color: #6b3f00;
  background: #fff4d6;
}

.license-alert.info {
  color: #1f2937;
  background: #f0f3f7;
}

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

.billing-addon-shell {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe5f3;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.96));
}

.billing-addon-shell .panel-heading.compact {
  padding: 0;
  border: 0;
  min-height: 0;
}

.addon-credit-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.addon-credit-pack {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d5e2f2;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  color: #17233a;
}

.addon-credit-pack strong {
  font-size: 15px;
}

.addon-credit-pack span {
  color: var(--muted);
  font-size: 13px;
}

.addon-credit-pack:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
}

.addon-credit-packs.is-locked .addon-credit-pack,
.addon-credit-pack:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.addon-credit-packs.is-locked .addon-credit-pack:hover,
.addon-credit-pack:disabled:hover {
  border-color: #d5e2f2;
  box-shadow: none;
}

.addon-credit-pack.is-selected {
  border-color: #34d399;
  background: #ecfdf5;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.14);
}

.addon-credit-lock-message {
  grid-column: 1 / -1;
  margin: 0;
}

.addon-credit-custom {
  align-content: start;
}

.addon-credit-custom label {
  display: grid;
  gap: 5px;
}

.addon-credit-custom input,
.addon-credit-custom button {
  width: 100%;
  min-width: 0;
}

.plan-card {
  display: grid;
  min-height: 108px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.plan-card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.plan-card.is-current {
  border-color: #a7f3d0;
  background: #effdf6;
}

.plan-card.is-selected {
  border-color: var(--line);
  background: #f8fafc;
  box-shadow: none;
}

.plan-card.is-disabled,
.plan-card:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.plan-card.is-disabled:hover,
.plan-card:disabled:hover {
  border-color: var(--line);
  box-shadow: none;
}

.plan-card strong,
.plan-card span,
.plan-card small {
  display: block;
}

.plan-card span {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.plan-card small {
  color: var(--muted);
  line-height: 1.35;
}

.plan-name-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-name-row em {
  padding: 4px 8px;
  border-radius: 999px;
  color: #087443;
  background: #dcfce7;
  border: 1px solid #a7f3d0;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.plan-name-row em.upgrade {
  color: #175cd3;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.plan-name-row em.downgrade {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.plan-name-row em.select {
  color: #40536f;
  background: #f1f5f9;
  border-color: #d8e2ef;
}

.plan-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #087443;
  background: #eafaf2;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.feature-pill span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.feature-pill.is-disabled {
  color: #64748b;
  background: #f1f5f9;
  border-color: #d8e2ef;
}

.feature-pill.is-disabled span {
  background: #94a3b8;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 25, 53, 0.46);
}

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

.idle-lock-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(6, 25, 53, 0.94), rgba(15, 23, 42, 0.92));
  backdrop-filter: blur(12px);
}

.idle-lock-screen[hidden] {
  display: none;
}

.idle-lock-panel [hidden],
.idle-lock-panel label[hidden] {
  display: none !important;
}

.idle-lock-screen.is-unlocking {
  animation: idleLockSlideAway 0.52s ease forwards;
}

.idle-lock-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(214, 225, 241, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 80px rgba(2, 8, 23, 0.34);
}

.idle-lock-brand img {
  width: 188px;
  height: auto;
  display: block;
}

.idle-lock-user {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.idle-lock-user > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #10b981);
  overflow: hidden;
  border: 3px solid #14a44d;
}

.idle-lock-user > span.has-picture {
  background: #f8fafc;
}

.idle-lock-user > span img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#idleLockInitials {
  position: relative;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 0 !important;
  flex: 0 0 58px;
  overflow: hidden !important;
}

#idleLockAvatar {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

#idleLockAvatar[hidden] {
  display: none !important;
}

.idle-lock-user h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 26px;
}

.idle-lock-user strong,
.idle-lock-user small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idle-lock-user small {
  color: #64748b;
}

.idle-lock-password-wrap input:not([type="checkbox"]) {
  padding-right: 56px;
}

.dashboard-body.is-dashboard-locked {
  overflow: hidden;
}

@keyframes idleLockSlideAway {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 18px;
  border: 1px solid #d6e1f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.enterprise-request-modal {
  display: grid;
  gap: 14px;
}

.enterprise-request-summary {
  display: grid;
  gap: 12px;
}

.app-dialog-modal {
  display: grid;
  gap: 14px;
}

.app-dialog-close-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
  padding: 0;
}

#appDialogPromptWrap[hidden],
#appDialogModal [data-app-dialog-cancel][hidden] {
  display: none !important;
}

.app-dialog-details {
  display: grid;
  gap: 10px;
}

.app-dialog-detail {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.app-dialog-detail strong {
  color: var(--ink);
  font-size: 13px;
}

.app-dialog-detail span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
}

.app-dialog-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

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

.usage-card {
  display: grid;
  gap: 5px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.usage-card small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 900;
}

.usage-card strong {
  font-size: 24px;
}

.usage-card span {
  color: var(--muted);
  font-size: 13px;
}

.premium-feature-card.is-depleted {
  border-color: #fed7aa;
  background: #fff7ed;
}

.premium-feature-card.is-depleted .usage-meter i {
  background: linear-gradient(90deg, #f97316, #dc2626);
}

.usage-meter,
.trend-row div {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
}

.usage-meter i,
.trend-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.trend-bars {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.trend-bars.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.usage-calendar-shell {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.usage-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.usage-calendar-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.usage-calendar-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.usage-calendar-select span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.usage-calendar-select select {
  width: auto;
  max-width: 92px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  padding: 0 26px 0 10px;
}

.usage-calendar-toolbar > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.usage-calendar-toolbar strong {
  font-size: 15px;
}

.usage-calendar-toolbar small,
.usage-calendar-day small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.compact-action {
  min-height: 34px;
  padding: 8px 10px;
  white-space: nowrap;
}

.usage-calendar-icon-button,
.usage-detail-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
}

.usage-calendar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.usage-calendar-filters button {
  min-height: 28px;
  border: 1px solid #bfe7d4;
  border-radius: 999px;
  background: #ecfdf5;
  color: #087443;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.usage-calendar-filters button.is-active {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--blue);
}

.usage-calendar-weekdays,
.usage-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.usage-calendar-weekdays span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.usage-calendar-empty,
.usage-calendar-day {
  min-width: 0;
  min-height: 76px;
}

.usage-calendar-day {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 8px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.usage-calendar-day:hover,
.usage-calendar-day.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.usage-calendar-day.is-today {
  border-color: #10b981;
}

.usage-calendar-day:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.usage-calendar-day span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.usage-calendar-day strong {
  font-size: 16px;
}

.usage-calendar-day.intensity-1 {
  background: #ecfdf5;
}

.usage-calendar-day.intensity-2 {
  background: #d1fae5;
}

.usage-calendar-day.intensity-3 {
  background: #bfdbfe;
}

.usage-calendar-day.intensity-4 {
  background: #dbeafe;
  border-color: #60a5fa;
}

.trend-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.trend-row:hover,
.trend-row.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.trend-row span {
  color: var(--muted);
  font-weight: 800;
}

.trend-row strong {
  text-align: right;
}

.timeline-item.ai .timeline-dot {
  background: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.timeline-item.success .timeline-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 178, 106, 0.12);
}

.timeline-item.danger .timeline-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.premium-event-note {
  color: #b45309 !important;
  font-weight: 900 !important;
}

.ai-usage-details {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ai-usage-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.ai-usage-detail-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ai-usage-detail-list {
  display: grid;
  gap: 10px;
}

.ai-usage-detail-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ai-usage-detail-card.is-failed {
  border-color: #fecaca;
  background: #fff7f7;
}

.ai-usage-call-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.usage-detail-toggle {
  margin-left: auto;
}

[data-usage-detail-body][hidden] {
  display: none !important;
}

.ai-usage-call-meta strong {
  color: #0f172a;
}

.ai-usage-call-meta small {
  color: var(--muted);
  font-weight: 700;
}

.ai-usage-call-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ai-usage-call-grid section {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ai-usage-call-grid h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-usage-call-grid pre {
  min-height: 96px;
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #172033;
  white-space: pre-wrap;
  word-break: break-word;
  font: 12px/1.45 Consolas, "Courier New", monospace;
}

.ai-usage-block-count {
  color: var(--muted);
  font-weight: 800;
}

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

.member-usage-head,
.member-usage-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) 72px 92px 92px minmax(180px, 1.2fr);
  align-items: center;
  gap: 10px;
}

.member-usage-head {
  padding: 0 12px 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 900;
}

.member-usage-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.member-usage-row strong,
.member-usage-row small {
  display: block;
}

.member-usage-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.member-usage-row b {
  color: #0f172a;
  font-size: 18px;
}

.premium-member-usage-head,
.premium-member-usage-row {
  grid-template-columns: minmax(180px, 1.4fr) 72px 82px 120px minmax(220px, 1.3fr);
}

.timeline-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.timeline-list h3 {
  margin: 4px 0;
  font-size: 15px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.timeline-item.signature .timeline-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 178, 106, 0.12);
}

.timeline-item strong,
.timeline-item small {
  display: block;
}

.timeline-item small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.role-matrix {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.role-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.role-row.is-current {
  border-color: #a7f3d0;
  background: #effdf6;
}

.role-row span {
  color: var(--muted);
  font-size: 13px;
}

.enterprise-review-form {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  padding: 16px;
}

.enterprise-review-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) max-content;
  gap: 10px 18px;
  align-items: center;
}

.enterprise-review-header strong {
  color: #071534;
  line-height: 1.25;
}

.enterprise-review-header span,
.enterprise-review-header time {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.enterprise-review-header time {
  justify-self: end;
  white-space: nowrap;
}

.enterprise-review-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}

.enterprise-review-summary-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 86px;
  padding: 12px;
  border: 1px solid #cbd8eb;
  border-radius: 8px;
  background: #fff;
}

.enterprise-review-summary-grid small,
.enterprise-review-note small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 900;
}

.enterprise-review-summary-grid strong {
  min-width: 0;
  color: #071534;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.25;
}

.enterprise-review-note {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d6e1f1;
  border-radius: 8px;
  background: #fbfdff;
}

.enterprise-review-note p {
  margin: 0;
  color: #253858;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.enterprise-review-decline {
  display: grid;
  gap: 8px;
  color: #17233a;
  font-size: 13px;
  font-weight: 800;
}

.enterprise-review-decline[hidden] {
  display: none;
}

.enterprise-review-decline textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border-radius: 8px;
  background: #fbfdff;
}

.enterprise-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.enterprise-review-actions button {
  min-height: 42px;
  padding: 0 16px;
}

.enterprise-review-actions button span {
  color: inherit;
}

.ghost-action {
  min-height: 36px;
  padding: 0 12px;
  background: #f8fafc;
}

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

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

  .hero-actions {
    justify-content: flex-start;
  }

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

  .dashboard-body.is-admin-menu-open {
    overflow: hidden;
  }

  .dashboard-body {
    --sidebar-slide-duration: 1s;
    --sidebar-slide-ease: cubic-bezier(0.22, 1, 0.36, 1);
  }

  .admin-sidebar-handle {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    width: 10px !important;
    height: 150px;
    padding: 13px;
    border: 1px solid rgb(229 233 239);
    border-left: 0;
    border-radius: 0 90px 90px 0;
    color: #1e8ca7;
    background: rgb(229 233 239);
    box-shadow: 5px 0 18px rgb(231 233 237 / 14%);
    transform: translate3d(0, -50%, 0);
    will-change: transform, box-shadow;
    transition: transform var(--sidebar-slide-duration) var(--sidebar-slide-ease),
      box-shadow var(--sidebar-slide-duration) var(--sidebar-slide-ease);
    touch-action: manipulation;
  }

  .admin-sidebar-handle::before,
  .admin-sidebar-handle::after {
    display: none;
    content: none;
  }

  .admin-sidebar-handle i {
    position: relative;
    z-index: 1;
    font-size: 18px;
    transform: translateX(1px) rotate(0deg);
    transform-origin: center;
    transition: transform var(--sidebar-slide-duration) var(--sidebar-slide-ease);
    will-change: transform;
  }

  .dashboard-body.is-admin-menu-open .admin-sidebar-handle {
    left: 0;
    transform: translate3d(min(310px, calc(100vw - 56px)), -50%, 0);
    width: 10px !important;
  }

  .dashboard-body.is-sidebar-arrow-flipped .admin-sidebar-handle i {
    transform: translateX(-1px) rotate(180deg);
  }

  .dashboard-body.is-sidebar-arrow-flipped.is-sidebar-arrow-effect .admin-sidebar-handle i {
    animation: sidebar-arrow-pop-left 0.52s ease;
  }

  .dashboard-body:not(.is-sidebar-arrow-flipped).is-sidebar-arrow-effect .admin-sidebar-handle i {
    animation: sidebar-arrow-pop-right 0.52s ease;
  }

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: block;
    border: 0;
    background: rgba(15, 23, 42, 0.38);
    opacity: 1;
    transition: opacity var(--sidebar-slide-duration) var(--sidebar-slide-ease);
  }

  .admin-sidebar-backdrop[hidden] {
    display: none;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    width: min(310px, calc(100vw - 56px));
    height: 100vh;
    transform: translateX(-100%);
    transition: transform var(--sidebar-slide-duration) var(--sidebar-slide-ease);
    will-change: transform;
    box-shadow: 22px 0 48px rgba(15, 23, 42, 0.18);
  }

  .dashboard-body.is-admin-menu-open .admin-sidebar {
    transform: translateX(0);
  }

  @keyframes sidebar-arrow-pop-left {
    0% {
      transform: translateX(-1px) rotate(180deg) scale(1);
    }
    45% {
      transform: translateX(-1px) rotate(180deg) scale(1.24);
    }
    100% {
      transform: translateX(-1px) rotate(180deg) scale(1);
    }
  }

  @keyframes sidebar-arrow-pop-right {
    0% {
      transform: translateX(1px) rotate(0deg) scale(1);
    }
    45% {
      transform: translateX(1px) rotate(0deg) scale(1.24);
    }
    100% {
      transform: translateX(1px) rotate(0deg) scale(1);
    }
  }

  .admin-sidebar-note {
    margin-top: 0;
  }

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

  .summary-grid,
  .dashboard-grid.two-col,
  .dashboard-grid.team-grid,
  .billing-grid,
  .usage-grid {
    grid-template-columns: 1fr;
  }

  .usage-calendar-shell {
    padding: 10px;
  }

  .usage-calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-calendar-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .usage-calendar-empty,
  .usage-calendar-day {
    min-height: 64px;
  }

  .usage-calendar-day {
    padding: 6px;
  }

  .usage-calendar-day small {
    display: none;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .member-usage-head {
    display: none;
  }

  .member-usage-row {
    grid-template-columns: 1fr 1fr;
  }

  .member-usage-row > span:first-child,
  .member-usage-row > span:last-child {
    grid-column: 1 / -1;
  }

  .ai-usage-detail-head,
  .ai-usage-call-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-usage-call-grid {
    grid-template-columns: 1fr;
  }

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

  .addon-credit-packs {
    grid-template-columns: 1fr;
  }

  .billing-estimate-head {
    flex-direction: column;
  }

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

  .license-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .license-actions {
    justify-content: flex-start;
  }

  .enterprise-review-header {
    grid-template-columns: 1fr;
  }

  .enterprise-review-header time {
    justify-self: start;
    white-space: normal;
  }

  .enterprise-review-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .enterprise-review-summary-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-review-actions {
    justify-content: stretch;
  }

  .enterprise-review-actions button {
    flex: 1 1 0;
  }
}

@media (max-width: 640px) {
  .signature-datatable-toolbar,
  .signature-datatable-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .signature-datatable-search,
  .signature-datatable-page-size,
  .signature-datatable-search input,
  .signature-datatable-page-size select {
    width: 100%;
  }

  .signature-datatable-pages {
    justify-content: space-between;
  }

  .signature-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .signature-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .signature-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .signature-table tr,
  .signature-table td {
    display: block;
    width: 100%;
  }

  .signature-table tbody tr {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .signature-table td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
    overflow-wrap: anywhere;
  }

  .signature-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .signature-table tbody tr:last-child td,
  .signature-table td:last-child {
    border-bottom: 0;
  }

  .signature-table-status,
  .signature-table-actions {
    text-align: left;
  }

  .signature-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .signature-table-actions button {
    width: 34px;
    margin-left: 0;
  }

  .signature-table-actions button + button {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .auth-body {
    padding: 16px;
    place-items: start center;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    width: min(100%, 560px);
    min-height: auto;
    border-radius: 22px;
  }

  .auth-brand-panel {
    min-height: auto;
    padding: 28px;
    gap: 16px;
  }

  .auth-card {
    align-content: start;
    padding: 30px 22px;
  }

  .auth-card-standalone {
    min-height: auto;
    border-radius: 22px;
  }

  .auth-logo,
  .brand-logo {
    width: 190px;
  }

  .auth-brand-copy h1 {
    margin-bottom: 0;
    font-size: 30px;
    line-height: 1.04;
  }

  .auth-brand-copy p:not(.eyebrow),
  .auth-benefits {
    display: none;
  }

  .eyebrow {
    margin-bottom: 8px;
  }

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

  .auth-heading {
    margin-bottom: 22px;
  }

  .auth-social {
    gap: 10px;
  }

  .social-login {
    width: 48px;
    height: 48px;
    min-height: 48px;
  }
}

@media (max-width: 460px) {
  .auth-body {
    padding: 12px;
  }

  .auth-shell {
    width: 100%;
    min-height: auto;
    border-radius: 20px;
  }

  .auth-brand-panel {
    min-height: auto;
    padding: 18px;
    gap: 14px;
  }

  .auth-logo,
  .brand-logo {
    width: 176px;
  }

  .auth-brand-copy h1 {
    margin-bottom: 0;
    font-size: 26px;
  }

  .auth-card {
    padding: 20px 16px 26px;
  }

  .auth-card-standalone {
    border-radius: 20px;
  }

  .auth-heading h2 {
    font-size: 28px;
  }

  .auth-form {
    gap: 12px;
  }

  .social-login-tooltip {
    position: fixed;
    right: 16px;
    bottom: 18px;
    left: 16px;
    width: auto;
    transform: translateY(8px);
  }

  .social-login-tooltip::after {
    display: none;
  }

  .social-login-tooltip-wrap.is-disabled:hover .social-login-tooltip,
  .social-login-tooltip-wrap.is-disabled:focus-visible .social-login-tooltip,
  .social-login-tooltip-wrap.is-disabled:focus-within .social-login-tooltip {
    transform: translateY(0);
  }

  .auth-tabs {
    margin-bottom: 24px;
  }

  .admin-main {
    padding: 14px;
  }

  .modal-backdrop {
    align-items: start;
    padding: 12px;
  }

  .modal-panel {
    max-height: calc(100vh - 24px);
    padding: 14px;
    border-radius: 10px;
  }

  .admin-sidebar {
    padding: 16px;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .admin-nav a {
    font-size: 13px;
  }

  .admin-topbar,
  .panel {
    padding: 16px;
  }

  .profile-menu {
    margin-left: auto;
  }

  .profile-dropdown {
    right: 0;
    width: min(190px, calc(100vw - 28px));
  }

  .summary-grid {
    gap: 10px;
  }

  .metric-card {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 96px;
    padding: 12px;
  }

  .metric-icon {
    width: 40px;
    height: 40px;
  }

  .requirement-grid,
  .admin-form,
  .action-grid,
  .plan-cards {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions {
    justify-content: stretch;
  }

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

  .ghost-action.icon-only-action,
  .icon-only-action {
    width: 38px;
    min-width: 38px;
    flex: 0 0 38px;
  }

  .panel-heading .icon-only-action {
    align-self: flex-start;
  }

  .review-decision-actions {
    justify-content: center;
  }

  .review-decision-actions button {
    width: auto;
  }

  .rbe-toast-stack {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

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

  .team-member {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .team-member-head {
    display: none;
  }

  .team-member-table .team-member {
    display: grid;
    grid-template-columns: 1fr;
  }

  .team-member-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .team-member button {
    width: 100%;
  }

  #domains .team-member .member-chip,
  #domains .team-member .status-pill {
    align-self: flex-start;
  }

  .signature-datatable-toolbar,
  .signature-datatable-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .signature-datatable-search,
  .signature-datatable-page-size,
  .signature-datatable-search input,
  .signature-datatable-page-size select {
    width: 100%;
  }

  .signature-datatable-pages {
    justify-content: space-between;
  }

  .signature-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .signature-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .signature-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .signature-table tr,
  .signature-table td {
    display: block;
    width: 100%;
  }

  .signature-table tbody tr {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .signature-table td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
  }

  .signature-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .signature-table tbody tr:last-child td,
  .signature-table td:last-child {
    border-bottom: 0;
  }

  .signature-table-status,
  .signature-table-actions {
    text-align: left;
  }

  .signature-table-actions button {
    width: 34px;
  }

  .invite-result {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .admin-topbar {
    align-items: flex-start;
  }

  .admin-topbar h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .admin-topbar p:not(.admin-eyebrow) {
    max-width: 620px;
  }

  .profile-dropdown {
    right: 0;
    width: min(210px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .panel,
  .metric-card {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .admin-topbar {
    gap: 14px;
    padding: 18px;
  }

  .admin-topbar h1 {
    font-size: 28px;
  }

  .admin-topbar > div:first-child {
    min-width: 0;
  }

  .admin-topbar-actions {
    flex: 0 0 auto;
  }

  .status-pill {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .billing-table-wrap,
  .organization-license-table-wrap,
  .signature-table-wrap {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .admin-main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
    padding: 14px;
  }

  .admin-topbar h1 {
    margin-bottom: 5px;
    font-size: 23px;
    line-height: 1.15;
  }

  .admin-topbar p:not(.admin-eyebrow) {
    font-size: 13px;
    line-height: 1.45;
  }

  .admin-topbar-actions {
    justify-content: flex-end;
    width: auto;
    min-width: 44px;
  }

  .admin-topbar-actions .status-pill {
    order: 2;
    width: min(100%, 220px);
    margin-top: 6px;
  }

  .profile-menu {
    margin-left: 0;
  }

  .profile-dropdown {
    position: fixed;
    top: 62px;
    right: 14px;
    left: auto;
    width: min(176px, calc(100vw - 28px));
    max-height: calc(100vh - 86px);
    padding: 6px;
    overflow-y: auto;
  }

  .profile-dropdown button {
    min-height: 32px;
    padding: 0 8px;
    gap: 8px;
    font-size: 12px;
  }

  .panel {
    padding: 14px;
  }

  .panel-heading {
    gap: 10px;
  }

  .panel-heading h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .admin-form input,
  .admin-form select,
  .admin-form textarea,
  .signature-datatable-search input,
  .signature-datatable-page-size select {
    max-width: 100%;
  }

  .modal-panel {
    width: min(100%, calc(100vw - 24px));
  }

  .billing-table-actions,
  .organization-license-actions,
  .signature-table-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .admin-topbar {
    padding: 12px;
  }

  .admin-topbar h1 {
    font-size: 21px;
  }

  .profile-avatar {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: 13px;
  }

  .profile-dropdown {
    top: 58px;
    right: 12px;
    width: min(168px, calc(100vw - 24px));
  }
}

/* Shared dashboard responsive primitives: tables and cards inherit these automatically. */
.admin-main,
.dashboard-grid,
.summary-grid,
.panel,
.dashboard-responsive-card,
.signature-datatable,
.billing-records,
.team-list,
.role-matrix,
.license-card-list,
.plan-cards,
.addon-credit-packs {
  min-width: 0;
}

.dashboard-responsive-card {
  overflow-wrap: anywhere;
}

.dashboard-responsive-table-wrap,
.signature-table-wrap,
.billing-table-wrap,
.organization-license-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dashboard-responsive-table-wrap table,
.signature-table,
.billing-table,
.organization-license-table,
.audit-table,
.platform-setting-table,
.platform-setting-audit-table,
.organization-activity-table,
.member-usage-table {
  width: 100%;
  min-width: max(760px, 100%);
}

.signature-table th,
.billing-table th,
.organization-license-table th,
.audit-table th,
.platform-setting-table th,
.platform-setting-audit-table th,
.organization-activity-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.signature-table th > span,
.signature-table th > button,
.billing-table th > span,
.billing-table th > button,
.organization-license-table th > span,
.organization-license-table th > button {
  min-width: 0;
}

.signature-table td,
.billing-table td,
.organization-license-table td,
.audit-table td,
.platform-setting-table td,
.platform-setting-audit-table td,
.organization-activity-table td {
  overflow-wrap: anywhere;
}

.billing-addon-shell,
.addon-credit-packs,
.plan-cards,
.license-card-list {
  justify-items: stretch;
}

.addon-credit-packs {
  align-items: stretch;
}

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

  .plan-cards,
  .license-card-list,
  .addon-credit-packs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-grid,
  .dashboard-grid.two-col,
  .dashboard-grid.team-grid,
  .billing-grid,
  .license-grid,
  .platform-settings-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    flex-wrap: wrap;
  }

  .dashboard-billing-switch,
  .status-pill {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .summary-grid,
  .plan-cards,
  .license-card-list,
  .addon-credit-packs {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .summary-grid {
    gap: 12px;
  }

  .dashboard-responsive-card,
  .panel,
  .metric-card,
  .plan-card,
  .license-card,
  .usage-card,
  .premium-feature-card,
  .signature-preview-card,
  .ai-usage-detail-card {
    padding: 14px;
  }

  .metric-card {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 92px;
  }

  .metric-icon {
    width: 42px;
    height: 42px;
  }

  .metric-card strong,
  .plan-card strong,
  .usage-card strong {
    font-size: 18px;
  }

  .signature-datatable-toolbar,
  .signature-datatable-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .signature-datatable-search,
  .signature-datatable-page-size {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .signature-datatable-search,
  .signature-datatable-page-size,
  .signature-datatable-search input,
  .signature-datatable-page-size select {
    width: 100%;
  }

  .signature-table-wrap,
  .billing-table-wrap,
  .organization-license-table-wrap,
  .dashboard-responsive-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .signature-table,
  .billing-table,
  .organization-license-table,
  .audit-table,
  .platform-setting-table,
  .platform-setting-audit-table,
  .organization-activity-table,
  .member-usage-table {
    display: table;
    min-width: max(720px, 100%);
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
  }

  .signature-table thead,
  .billing-table thead,
  .organization-license-table thead,
  .audit-table thead,
  .platform-setting-table thead,
  .platform-setting-audit-table thead,
  .organization-activity-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .signature-table tr,
  .billing-table tr,
  .organization-license-table tr,
  .audit-table tr,
  .platform-setting-table tr,
  .platform-setting-audit-table tr,
  .organization-activity-table tr {
    display: table-row;
    width: auto;
  }

  .signature-table td,
  .billing-table td,
  .organization-license-table td,
  .audit-table td,
  .platform-setting-table td,
  .platform-setting-audit-table td,
  .organization-activity-table td {
    display: table-cell;
    width: auto;
  }

  .signature-table tbody tr,
  .billing-table tbody tr,
  .organization-license-table tbody tr,
  .audit-table tbody tr,
  .platform-setting-table tbody tr,
  .platform-setting-audit-table tbody tr,
  .organization-activity-table tbody tr {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .signature-table td,
  .billing-table td,
  .organization-license-table td,
  .audit-table td,
  .platform-setting-table td,
  .platform-setting-audit-table td,
  .organization-activity-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6edf6;
  }

  .signature-table td::before,
  .billing-table td::before,
  .organization-license-table td::before,
  .audit-table td::before,
  .platform-setting-table td::before,
  .platform-setting-audit-table td::before,
  .organization-activity-table td::before {
    content: none;
  }

  .signature-table-status,
  .signature-table-actions,
  .billing-table-actions,
  .organization-license-actions {
    text-align: left;
    white-space: normal;
  }

  .signature-table-actions,
  .billing-table-actions,
  .organization-license-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .signature-table-actions button,
  .billing-table-actions button,
  .organization-license-actions button {
    flex: 0 0 auto;
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .dashboard-responsive-table td,
  .dashboard-responsive-table .signature-table-value,
  .dashboard-responsive-table .status-pill,
  .dashboard-responsive-table .dashboard-date-full,
  .dashboard-responsive-table .dashboard-date-mobile {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-responsive-table .dashboard-date-full {
    display: none;
  }

  .dashboard-responsive-table .dashboard-date-mobile {
    display: block;
  }

  .dashboard-responsive-table .signature-table-status .status-pill,
  .dashboard-responsive-table .dashboard-status-cell .status-pill,
  .dashboard-responsive-table .status-pill {
    min-width: 0;
    max-width: 100%;
    min-height: 22px;
    padding: 0 6px;
    font-size: 10px;
    line-height: 20px;
    letter-spacing: 0;
  }

  .organization-license-table {
    min-width: 1120px;
  }

  .organization-license-table th.org-license-col-managed,
  .organization-license-table td[data-label="Managed By"] {
    width: 148px !important;
    min-width: 148px !important;
  }

  .organization-license-table th.org-license-col-actions,
  .organization-license-table td[data-label="Actions"] {
    width: 118px !important;
    min-width: 118px !important;
  }

  .dashboard-responsive-table td.dashboard-action-cell,
  .dashboard-responsive-table .dashboard-action-cell,
  .dashboard-responsive-table .signature-table-actions,
  .dashboard-responsive-table .billing-table-actions,
  .dashboard-responsive-table .organization-license-actions {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .dashboard-responsive-table td.dashboard-action-cell,
  .dashboard-responsive-table td.signature-table-actions,
  .dashboard-responsive-table td.billing-table-actions,
  .dashboard-responsive-table td.organization-license-actions {
    display: table-cell;
    vertical-align: middle;
  }

  .dashboard-responsive-table .dashboard-action-cell:not(td),
  .dashboard-responsive-table .signature-table-actions:not(td),
  .dashboard-responsive-table .billing-table-actions:not(td),
  .dashboard-responsive-table .organization-license-actions:not(td) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .dashboard-responsive-table .dashboard-action-cell button,
  .dashboard-responsive-table .signature-table-actions button,
  .dashboard-responsive-table .billing-table-actions button,
  .dashboard-responsive-table .organization-license-actions button,
  .dashboard-responsive-table .org-license-icon-action {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    flex: 0 0 28px;
    margin-left: 0;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .dashboard-responsive-table .signature-table-status .status-pill,
  .dashboard-responsive-table .dashboard-status-cell .status-pill,
  .dashboard-responsive-table .status-pill {
    min-height: 20px;
    padding: 0 5px;
    font-size: 9px;
    line-height: 18px;
  }

  .dashboard-responsive-table .dashboard-action-cell button,
  .dashboard-responsive-table .signature-table-actions button,
  .dashboard-responsive-table .billing-table-actions button,
  .dashboard-responsive-table .organization-license-actions button,
  .dashboard-responsive-table .org-license-icon-action {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    flex-basis: 26px;
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .admin-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
  }

  .admin-topbar-actions {
    width: auto;
    min-width: 44px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .profile-menu {
    flex: 0 0 auto;
  }

  .profile-dropdown {
    right: 0;
    left: auto;
    max-width: calc(100vw - 24px);
    z-index: 1500;
  }
}

body:not(.auth-body):not(.dashboard-body) :is(#blockwriteai-global-heading-scale, h1, h2) {
  font-size: clamp(36px, calc(5.1vw - 40px), 50px) !important;
  line-height: 1.12 !important;
}

body:not(.auth-body):not(.dashboard-body) :is(#blockwriteai-global-heading-scale, h1, h2) span {
  display: inline-block;
  font-size: clamp(38px, calc(5.1vw - 45px), 45px) !important;
  line-height: 1.16 !important;
  padding-bottom: 0.08em;
}

.dashboard-body :is(
  .dashboard-responsive-table,
  .signature-table,
  .billing-table,
  .organization-license-table,
  .audit-table,
  .platform-setting-table,
  .platform-setting-audit-table,
  .organization-activity-table,
  .member-usage-table,
  .team-member-table
) :is(th, td) {
  text-align: center !important;
}

.dashboard-body :is(
  .signature-table,
  .billing-table,
  .organization-license-table,
  .audit-table,
  .platform-setting-table,
  .platform-setting-audit-table,
  .organization-activity-table,
  .member-usage-table,
  .team-member-table
) th > :is(button, span) {
  justify-content: center !important;
  text-align: center !important;
}

.dashboard-body :is(
  .signature-table-value,
  .signature-table-date,
  .dashboard-date-full,
  .dashboard-date-mobile,
  .signature-table-status,
  .signature-table-actions,
  .billing-table-status,
  .billing-table-actions,
  .organization-license-actions,
  .dashboard-action-cell,
  .checkbox-table-cell
) {
  justify-content: center !important;
  text-align: center !important;
}

.dashboard-body .dashboard-date-full {
  display: block !important;
}

.dashboard-body .dashboard-date-mobile {
  display: none !important;
}

@media (max-width: 1024px) {
  .dashboard-body .dashboard-date-full {
    display: none !important;
  }

  .dashboard-body .dashboard-date-mobile {
    display: block !important;
  }
}
