:root {
  --d27-accent: #ff5700;
  --d27-secondary: #0796a3;
  --d27-complement-1: #fed766;
  --d27-complement-2: #721817;

  --color-brand-25: #f6f8fd;
  --color-brand-50: #eef3fb;
  --color-brand-100: #d9e3f4;
  --color-brand-200: #b3c7e9;
  --color-brand-300: #8aa8da;
  --color-brand-400: #5f83c6;
  --color-brand-500: #2f5da6;
  --color-brand-600: #274f8c;
  --color-brand-700: #214374;
  --color-brand-800: #1b365f;
  --color-brand-900: #142946;
  --color-brand-950: #0b1a33;

  --color-orange-500: #ff5700;
  --color-orange-600: #e54e00;
  --color-orange-700: #c94600;

  --color-blue-light-500: #0796a3;
  --color-blue-light-600: #067f89;
  --color-blue-light-700: #056774;
}

.btn-danger {
  background-color: #dc2626;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-danger:disabled {
  background-color: #fca5a5;
}


.menu-item-active {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.menu-item-inactive {
  color: rgba(255, 255, 255, 0.8) !important;
}

.menu-item-inactive:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.sidebar .menu-item-icon-inactive {
  fill: rgba(255, 255, 255, 0.7) !important;
}

.sidebar .menu-item-icon-active {
  fill: #ffffff !important;
}

.status-badge {
  background-color: #ecfdf3;
  color: #027a48;
  border-color: #a6f4c5;
}

.status-badge.active {
  background-color: #ecfdf3;
  color: #027a48;
  border-color: #a6f4c5;
}

.status-badge.blocked {
  background-color: #fff6ed;
  color: #b54708;
  border-color: #fedf89;
}

.status-badge.readonly {
  background-color: #f0f9ff;
  color: #026aa2;
  border-color: #b9e6fe;
}

.status-badge.deleted {
  background-color: #fef3f2;
  color: #b42318;
  border-color: #fecaca;
}

.status-badge.unknown {
  background-color: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.my-products-summary {
  background: #ffffff;
}

.my-products-card[data-summary-theme="brand"] {
  border: 3px solid #ff5700;
}

.my-products-card[data-summary-theme="product"] {
  border: 3px solid var(--my-products-theme-color, #ff5700);
}

.my-products-card[data-summary-theme="brand"] > .border-t {
  border-top-color: #ff5700;
}

.my-products-card[data-summary-theme="product"] > .border-t {
  border-top-color: var(--my-products-theme-color, #ff5700);
}

.my-products-summary[data-summary-theme="brand"] {
  background: #ff5700;
}

.my-products-summary[data-summary-theme="product"] {
  background: var(--my-products-theme-color, #ff5700);
}

.dark .my-products-summary[data-summary-theme="brand"] {
  background: #ff5700;
}

.dark .my-products-summary[data-summary-theme="product"] {
  background: var(--my-products-theme-color, #ff5700);
}

.my-products-summary-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  white-space: nowrap;
  min-height: 2.2rem;
}

.my-products-summary-pill {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.my-products-summary-chip {
  background: var(--color-gray-50);
  border-color: var(--color-gray-200);
  color: var(--color-gray-700);
}

.dark .my-products-summary-chip {
  background: rgba(17, 24, 39, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

.my-products-summary[data-summary-theme="brand"] .my-products-summary-chip {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.72);
  color: #7a2e0e;
}

.my-products-summary[data-summary-theme="product"] .my-products-summary-chip {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.72);
  color: #3f1f13;
}

.dark .my-products-summary[data-summary-theme="brand"] .my-products-summary-chip {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.72);
  color: #7a2e0e;
}

.dark .my-products-summary[data-summary-theme="product"] .my-products-summary-chip {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.72);
  color: #3f1f13;
}

.my-products-card[open] .my-products-summary-chevron {
  transform: rotate(90deg);
}

.my-products-history[open] .my-products-disclosure-chevron {
  transform: rotate(90deg);
}

.commercial-plan-price {
  font-size: 1.36rem;
  line-height: 1;
}

.login-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(145deg, #153b66 0%, var(--color-brand-500) 48%, #091426 100%);
}

.login-glass {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.login-glass-strong {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-login-page {
  background:
    radial-gradient(circle at top left, rgba(70, 95, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

.dark .auth-login-page {
  background:
    radial-gradient(circle at top left, rgba(70, 95, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #0b1220 0%, #111827 100%);
}

.login-card {
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-brand-500), var(--d27-complement-2));
}

.login-action-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.login-action-chip {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid #d0d5dd;
  background: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #344054;
  text-decoration: none;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.login-action-chip:hover {
  transform: translateY(-1px);
  border-color: #98a2b3;
  background: #f8fafc;
}

.login-action-chip.is-active {
  border-color: #101828;
  background: #101828;
  color: #fff;
}

.dark .login-action-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.72);
  color: #e5e7eb;
}

.dark .login-action-chip:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(31, 41, 55, 0.84);
}

.dark .login-action-chip.is-active {
  border-color: rgba(255, 255, 255, 0.9);
  background: #fff;
  color: #101828;
}

.login-surface :is(a, button, input):focus-visible {
  outline: 3px solid rgba(70, 95, 255, 0.28);
  outline-offset: 2px;
}

.login-passkey-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

/* Auth premium screen */
.auth-premium-page {
  --auth-text: #0f172a;
  --auth-muted: #5b6678;
  --auth-border: rgba(15, 23, 42, 0.08);
  --auth-surface: rgba(255, 255, 255, 0.82);
  --auth-card-surface: rgba(255, 255, 255, 0.94);
  --auth-shadow:
    0 28px 72px rgba(15, 23, 42, 0.08),
    0 10px 30px rgba(15, 23, 42, 0.05);
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(47, 93, 166, 0.08), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(47, 93, 166, 0.06), transparent 18%),
    linear-gradient(180deg, #f8f9fc 0%, #eef2f6 100%);
  color: var(--auth-text);
}

.dark .auth-premium-page {
  --auth-text: #f8fafc;
  --auth-muted: #a5b1c2;
  --auth-border: rgba(148, 163, 184, 0.14);
  --auth-surface: rgba(15, 23, 42, 0.82);
  --auth-card-surface: rgba(15, 23, 42, 0.88);
  --auth-shadow:
    0 28px 72px rgba(2, 6, 23, 0.45),
    0 10px 30px rgba(2, 6, 23, 0.3);
  background:
    radial-gradient(circle at 0% 0%, rgba(47, 93, 166, 0.18), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(47, 93, 166, 0.14), transparent 18%),
    linear-gradient(180deg, #07101e 0%, #0f172a 100%);
}

.auth-premium-page :is(a, button, input):focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(47, 93, 166, 0.16);
}

.auth-premium-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 36px);
}

.auth-premium-layout {
  display: grid;
  min-height: calc(100vh - clamp(36px, 8vw, 72px));
  grid-template-columns: minmax(380px, 1.04fr) minmax(460px, 0.96fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}

.commercial-plan-html > :first-child {
  margin-top: 0;
}

.commercial-plan-html > :last-child {
  margin-bottom: 0;
}

.commercial-plan-html p + p,
.commercial-plan-html ul,
.commercial-plan-html ol,
.commercial-plan-html table,
.commercial-plan-html blockquote {
  margin-top: 0.75rem;
}

.commercial-plan-html ul,
.commercial-plan-html ol {
  padding-left: 1.25rem;
}

.commercial-plan-html ul {
  list-style: disc;
}

.commercial-plan-html ol {
  list-style: decimal;
}

.commercial-plan-html li + li {
  margin-top: 0.35rem;
}

.commercial-plan-html strong {
  color: #101828;
}

.dark .commercial-plan-html strong {
  color: #f8fafc;
}

.auth-brand-panel {
  display: flex;
}

.auth-brand-panel__surface {
  position: relative;
  display: flex;
  min-height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(160deg, #0d1b2e 0%, #173556 34%, #20456d 100%);
  padding: clamp(28px, 3vw, 42px);
  color: #fff;
  box-shadow:
    0 30px 80px rgba(9, 20, 38, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-brand-panel__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.55;
}

.auth-brand-panel__orb--one {
  right: -6%;
  top: 12%;
  height: 240px;
  width: 240px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-brand-panel__orb--two {
  bottom: -4%;
  left: 10%;
  height: 180px;
  width: 180px;
  background: rgba(254, 215, 102, 0.12);
}

.auth-brand-panel__top,
.auth-brand-panel__content,
.auth-brand-panel__footer {
  position: relative;
  z-index: 1;
}

.auth-brand-panel__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.auth-brand-panel__center {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  text-align: center;
}

.auth-brand-panel__campaign {
  width: min(100%, 28rem);
  min-height: clamp(128px, 16vh, 220px);
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  flex: 0 0 auto;
}

.auth-brand-eyebrow,
.auth-card-kicker,
.auth-compact-brand__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.auth-brand-eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.auth-brandmark {
  display: block;
  width: clamp(104px, 9vw, 148px);
  height: auto;
  margin-top: 1rem;
  object-fit: contain;
}

.auth-brandmark--centered {
  margin-top: 0;
  margin-inline: auto;
}

.auth-brand-panel__content {
  max-width: 39rem;
}

.auth-hero-title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.auth-hero-subtitle {
  margin: 1.25rem 0 0;
  max-width: 35rem;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.auth-hero-list {
  display: grid;
  gap: 0.95rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-hero-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.auth-hero-bullet {
  display: inline-flex;
  height: 2.15rem;
  width: 2.15rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}

.auth-hero-bullet svg {
  height: 1rem;
  width: 1rem;
}

.auth-brand-panel__footer {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.56);
}

.auth-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-compact-brand {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
  border-radius: 24px;
  border: 1px solid var(--auth-border);
  background: var(--auth-surface);
  padding: 1rem 1.15rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
}

.auth-compact-brand__text {
  margin: 0;
  max-width: 22rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--auth-text);
}

.auth-compact-brand__logo {
  width: clamp(84px, 20vw, 110px);
  height: auto;
  object-fit: contain;
}

.auth-card {
  position: relative;
  width: min(100%, 560px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--auth-border);
  background: var(--auth-card-surface);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(18px);
  animation: authCardIn 280ms ease-out;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 93, 166, 0.28), transparent);
}

.auth-card--mfa {
  width: min(100%, 520px);
}

.auth-card-head {
  margin-bottom: 1.5rem;
}

.auth-card-head--panel {
  margin-bottom: 1.35rem;
}

.auth-card-kicker {
  color: var(--auth-muted);
}

.auth-card-title,
.auth-panel-title {
  margin: 0;
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--auth-text);
}

.auth-card-title {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 2.6vw, 2.55rem);
}

.auth-panel-title {
  font-size: clamp(1.65rem, 2vw, 1.95rem);
}

.auth-card-subtitle,
.auth-panel-subtitle {
  margin: 0.6rem 0 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--auth-muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 1.55rem;
  padding: 0.38rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(15, 23, 42, 0.04);
}

.dark .auth-tabs {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab {
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #5f6c7d;
  font-size: 0.96rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.auth-tab:hover {
  color: var(--auth-text);
}

.auth-tab.is-active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--auth-text);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.dark .auth-tab {
  color: #a5b1c2;
}

.dark .auth-tab.is-active {
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
}

.auth-panel {
  animation: authPanelIn 180ms ease-out;
}

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

.auth-status {
  margin-bottom: 1rem;
  border: 1px solid;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-status-note {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
}

.auth-status--success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.auth-status--neutral {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(248, 250, 252, 0.8);
  color: #334155;
}

.auth-status--info {
  border-color: rgba(47, 93, 166, 0.22);
  background: rgba(47, 93, 166, 0.08);
  color: #244a83;
}

.auth-status--error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b42318;
}

.dark .auth-status--success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.dark .auth-status--neutral {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
  color: #e2e8f0;
}

.dark .auth-status--info {
  border-color: rgba(96, 165, 250, 0.26);
  background: rgba(96, 165, 250, 0.1);
  color: #dbeafe;
}

.dark .auth-status--error {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

.auth-passkey-btn {
  display: flex;
  min-height: 64px;
  width: 100%;
  align-items: center;
  gap: 0.95rem;
  border: 1px solid rgba(47, 93, 166, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 252, 0.96));
  padding: 0.95rem 1rem;
  text-align: left;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.auth-passkey-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 93, 166, 0.36);
  box-shadow: 0 24px 36px rgba(15, 23, 42, 0.08);
}

.auth-passkey-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

.dark .auth-passkey-btn {
  border-color: rgba(96, 165, 250, 0.22);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(12, 19, 33, 0.94));
  box-shadow: 0 20px 38px rgba(2, 6, 23, 0.28);
}

.auth-passkey-btn__icon {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(47, 93, 166, 0.1);
  color: var(--color-brand-500);
}

.auth-passkey-btn__icon svg {
  height: 1.35rem;
  width: 1.35rem;
}

.auth-passkey-btn__content {
  min-width: 0;
}

.auth-passkey-btn__title {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  color: var(--auth-text);
}

.auth-passkey-btn__meta {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.84rem;
  color: var(--auth-muted);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.45rem 0 1.25rem;
  color: #7a8595;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(148, 163, 184, 0.3);
}

.dark .auth-divider {
  color: #94a3b8;
}

.dark .auth-divider::before,
.dark .auth-divider::after {
  background: rgba(148, 163, 184, 0.18);
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form--compact {
  margin-bottom: 0.4rem;
}

.auth-field {
  display: grid;
  gap: 0.5rem;
}

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

.auth-input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 1rem;
  font-size: 0.98rem;
  color: var(--auth-text);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.auth-input-action-wrap {
  position: relative;
}

.auth-input--with-action {
  padding-right: 3.6rem;
}

.auth-input-action-btn {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  transition:
    color 140ms ease,
    background-color 140ms ease;
}

.auth-input-action-btn:hover {
  background: rgba(47, 93, 166, 0.08);
  color: var(--color-brand-500);
}

.auth-input-action-btn:focus-visible {
  outline: none;
  background: rgba(47, 93, 166, 0.08);
  box-shadow: 0 0 0 3px rgba(47, 93, 166, 0.14);
  color: var(--color-brand-500);
}

.auth-input-action-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.auth-input-action-icon--hide {
  display: none;
}

.auth-input-action-btn[aria-pressed="true"] .auth-input-action-icon--show {
  display: none;
}

.auth-input-action-btn[aria-pressed="true"] .auth-input-action-icon--hide {
  display: block;
}

.auth-input::placeholder {
  color: #98a2b3;
}

.auth-input:hover {
  border-color: rgba(47, 93, 166, 0.24);
}

.auth-input:focus {
  border-color: rgba(47, 93, 166, 0.7);
  box-shadow: 0 0 0 4px rgba(47, 93, 166, 0.12);
}

.auth-input[aria-invalid="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.dark .auth-input {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.24);
  color: #f8fafc;
}

.dark .auth-input-action-btn {
  color: #94a3b8;
}

.dark .auth-input-action-btn:hover,
.dark .auth-input-action-btn:focus-visible {
  background: rgba(96, 165, 250, 0.12);
  color: #dbeafe;
}

.dark .auth-input::placeholder {
  color: #64748b;
}

.auth-helper {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--auth-muted);
}

.auth-field-error {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #b42318;
}

.dark .auth-field-error {
  color: #fca5a5;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--auth-muted);
}

.auth-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-brand-500);
}

.auth-link,
.auth-text-link {
  color: var(--color-brand-500);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 140ms ease, opacity 140ms ease;
}

.auth-link:hover,
.auth-text-link:hover {
  color: var(--color-brand-600);
}

.auth-text-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.auth-text-link--center {
  display: block;
  margin-top: 1.2rem;
  text-align: center;
}

.auth-primary-btn,
.auth-secondary-btn {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 650;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.auth-primary-btn {
  border: 0;
  background: linear-gradient(180deg, var(--color-brand-500), var(--color-brand-600));
  color: #fff;
  box-shadow: 0 16px 30px rgba(47, 93, 166, 0.22);
}

.auth-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(47, 93, 166, 0.26);
}

.auth-primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.auth-secondary-btn {
  border: 1px solid rgba(47, 93, 166, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-brand-500);
}

.dark .auth-secondary-btn {
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(15, 23, 42, 0.42);
  color: #dbeafe;
}

.auth-secondary-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 93, 166, 0.32);
}

.auth-inline-message {
  display: none;
  margin: 0.8rem 0 0;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0.8rem 0.9rem;
  font-size: 0.84rem;
  line-height: 1.5;
}

.auth-inline-message.is-visible {
  display: block;
}

.auth-inline-message.is-success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.auth-inline-message.is-error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b42318;
}

.dark .auth-inline-message.is-success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
}

.dark .auth-inline-message.is-error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.auth-switch-copy {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--auth-muted);
}

.auth-noscript-note {
  margin: 0.9rem 0 0;
  text-align: center;
}

.auth-mfa-stack {
  display: grid;
  gap: 0.4rem;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1279px) {
  .auth-premium-layout {
    grid-template-columns: minmax(320px, 0.96fr) minmax(440px, 1.04fr);
  }

  .auth-hero-title {
    font-size: clamp(2rem, 3vw, 3.2rem);
  }
}

@media (max-width: 1023px) {
  .auth-premium-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-stage {
    display: block;
  }

  .auth-compact-brand {
    display: flex;
  }

  .auth-card {
    width: min(100%, 680px);
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .auth-premium-shell {
    padding: 0.95rem;
  }

  .auth-compact-brand {
    padding: 0.95rem 1rem;
  }

  .auth-card {
    width: 100%;
    border-radius: 24px;
    padding: 1.2rem 1.05rem 1.15rem;
  }

  .auth-card-title {
    font-size: 1.85rem;
  }

  .auth-panel-title {
    font-size: 1.45rem;
  }

  .auth-tabs {
    margin-bottom: 1.2rem;
  }

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

  .auth-divider {
    margin: 1.2rem 0 1rem;
  }

  .auth-passkey-btn {
    padding: 0.85rem 0.95rem;
  }
}

/* Timezone selector (TomSelect) */
.ts-hidden-accessible {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ts-wrapper.single {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: transparent;
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  min-height: 44px;
}

.ts-wrapper.single .ts-control {
  min-height: 52px;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: transparent !important;
}

.ts-wrapper.single .ts-control .item {
  width: 100%;
}

.d27-tz-selected {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.d27-tz-selected-label {
  font-size: 0.875rem;
  color: #1f2937;
}

.d27-tz-selected-meta {
  margin-top: 2px;
  font-size: 0.75rem;
  color: #6b7280;
}

.dark .d27-tz-selected-label {
  color: rgba(255, 255, 255, 0.9);
}

.dark .d27-tz-selected-meta {
  color: rgba(255, 255, 255, 0.55);
}

.ts-wrapper.focus {
  border-color: #ff5700;
  box-shadow: 0 0 0 4px rgba(255, 87, 0, 0.2);
}

.dark .ts-wrapper.single .ts-control {
  background-color: #111827;
  color: rgba(255, 255, 255, 0.9);
}

.dark .ts-wrapper.single {
  border-color: #374151;
  background-color: #111827;
}

.ts-dropdown {
  border-radius: 0.75rem;
  border-color: #e5e7eb;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

.ts-dropdown .ts-dropdown-content {
  max-height: 300px;
}

/* =============================
   Dialog27 Theme System (D27)
   Structure: Sidebar darker
   Context: Header premium
   Action: Orange (#FF5700)
   ============================= */

:root {
  --d27-primary: #2f5da6;
  --d27-action: #ff5700;
  --d27-action-hover: #e54e00;
  --d27-secondary: #0796a3;
  --d27-sidebar-bg: #1b365f;
  --d27-sidebar-border: rgba(255, 255, 255, 0.1);
  --d27-surface: #ffffff;
  --d27-header-border: rgba(255, 255, 255, 0.14);
  --d27-header-shadow: rgba(0, 0, 0, 0.1);
  --d27-focus-ring: rgba(255, 87, 0, 0.35);
}

/* ---------- HEADER (premium) ---------- */
header.bg-brand-500 {
  background: linear-gradient(
    180deg,
    rgba(47, 93, 166, 0.94) 0%,
    rgba(39, 79, 140, 0.92) 45%,
    rgba(27, 54, 95, 0.9) 100%
  ) !important;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--d27-header-border) !important;

  box-shadow:
    0 10px 24px var(--d27-header-shadow),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;

  position: sticky;
}

/* Accent underline (action color) */
header.bg-brand-500 {
  background-clip: padding-box;
}

header.bg-brand-500::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 87, 0, 0.85), rgba(7, 150, 163, 0.55));
}

/* ---------- SIDEBAR (structure) ---------- */
.d27-sidebar,
.sidebar,
aside[data-sidebar],
aside.sidebar {
  background: var(--d27-sidebar-bg) !important;
}

.d27-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Menu items (inactive) */
.d27-sidebar .menu-item-inactive,
.sidebar .menu-item-inactive {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* Hover = action hint (orange) but subtle */
.d27-sidebar .menu-item-inactive:hover,
.sidebar .menu-item-inactive:hover {
  background-color: rgba(255, 87, 0, 0.1) !important;
  color: #ffffff !important;
}

/* Active item: keep it elegant -> subtle orange accent bar */
.d27-sidebar .menu-item-active,
.sidebar .menu-item-active {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  position: relative;
}

.d27-sidebar .menu-item-active::before,
.sidebar .menu-item-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--d27-action);
}

/* Icons: hover/active hint */
.d27-sidebar .menu-item-icon-inactive,
.sidebar .menu-item-icon-inactive {
  fill: rgba(255, 255, 255, 0.7) !important;
}

.d27-sidebar .menu-item-inactive:hover .menu-item-icon-inactive,
.sidebar .menu-item-inactive:hover .menu-item-icon-inactive {
  fill: rgba(255, 255, 255, 0.92) !important;
}

/* Submenu items (Accesos/Whatsapp children) */
.d27-sidebar .menu-dropdown-item-inactive,
.sidebar .menu-dropdown-item-inactive {
  color: rgba(255, 255, 255, 0.82) !important;
}

.d27-sidebar .menu-dropdown-item-inactive:hover,
.sidebar .menu-dropdown-item-inactive:hover {
  background-color: rgba(255, 87, 0, 0.1) !important;
  color: #ffffff !important;
}

.d27-sidebar .menu-dropdown-item-active,
.sidebar .menu-dropdown-item-active {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

/* ---------- BUTTON SYSTEM ---------- */
.d27-btn-primary {
  background: var(--d27-action) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 18px rgba(255, 87, 0, 0.18);
}

.d27-btn-primary:hover {
  background: var(--d27-action-hover) !important;
}

.d27-btn-primary:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px var(--d27-focus-ring), 0 10px 18px rgba(255, 87, 0, 0.18);
}

.d27-btn-primary:disabled,
.d27-btn-primary[disabled] {
  background: linear-gradient(180deg, #fed7aa, #fdba74) !important;
  color: rgba(154, 52, 18, 0.78) !important;
  border-color: rgba(251, 146, 60, 0.22) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

.d27-btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.d27-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

/* ---------- LINKS / FOCUS ---------- */
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  box-shadow: 0 0 0 4px var(--d27-focus-ring) !important;
}

/* ---------- TABLE ACTIONS (optional enhancement) ---------- */
.d27-table-action {
  border-color: rgba(47, 93, 166, 0.3) !important;
}

.d27-table-action:hover {
  border-color: rgba(255, 87, 0, 0.55) !important;
  color: var(--d27-action) !important;
}

.d27-audit-btn {
  transition: border-color 0.15s ease, color 0.15s ease;
}

.d27-audit-btn:hover,
.d27-audit-btn:focus-visible {
  border-color: rgba(255, 87, 0, 0.55) !important;
  color: var(--d27-action) !important;
}

.d27-audit-popover-portal {
  position: fixed;
  z-index: 999999;
  width: 280px;
  max-width: 320px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.75rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.dark .d27-audit-popover-portal {
  border-color: rgba(255, 255, 255, 0.14);
  background: #111827;
}

.d27-audit-title {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.dark .d27-audit-title {
  color: #9ca3af;
}

.d27-audit-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5rem;
  row-gap: 0.125rem;
  font-size: 0.75rem;
}

.d27-audit-label {
  color: #6b7280;
}

.dark .d27-audit-label {
  color: #9ca3af;
}

.d27-audit-value {
  color: #374151;
}

.dark .d27-audit-value {
  color: #e5e7eb;
}

.d27-audit-exact {
  color: #6b7280;
}

.dark .d27-audit-exact {
  color: #9ca3af;
}

.d27-audit-separator {
  height: 1px;
  margin: 0.5rem 0;
  background: #f3f4f6;
}

.dark .d27-audit-separator {
  background: #1f2937;
}

/* =============================
   DOCS Theme (Scoped)
   Header orange gradient only for DOCS shell
   ============================= */
.docs-theme header.bg-brand-500 {
  background: linear-gradient(
    180deg,
    rgba(255, 87, 0, 0.96) 0%,
    rgba(247, 84, 0, 0.94) 50%,
    rgba(230, 79, 0, 0.92) 100%
  ) !important;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.docs-theme header.bg-brand-500::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 87, 0, 0.9), rgba(243, 101, 39, 0.72));
}

.docs-theme .sidebar .menu-item .menu-item-text,
.docs-theme .sidebar .menu-dropdown-item {
  font-size: 0.83rem;
}

.docs-theme .sidebar .menu-item.opacity-55 {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.16);
}

.docs-review-split > .gutter {
  position: relative;
  width: 10px;
  flex: 0 0 10px;
  align-self: stretch;
  min-height: 100%;
  cursor: col-resize;
}

.docs-review-split > .gutter::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 87, 0, 0.18), rgba(255, 87, 0, 0.6), rgba(255, 87, 0, 0.18));
}

.docs-review-split.docs-review-split-collapsed > .gutter {
  display: none;
}

.docs-review-canvas:not(.hidden) {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  background: #fff;
}

.docs-review-image:not(.hidden) {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  transform-origin: top center;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  background: #fff;
}

.docs-modal-shell,
.docs-config-modal-shell {
  align-items: flex-start;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.docs-modal-panel,
.docs-config-modal-panel {
  max-height: calc(100vh - 2rem);
  margin: 0 auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.docs-project-wizard-modal {
  max-width: min(1020px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 0.8rem);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.75rem;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
  padding: 1.3rem 1.15rem 0;
}

.docs-project-wizard-shell {
  align-items: center;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.docs-project-wizard-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.98);
  color: #94a3b8;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.docs-project-wizard-close:hover {
  border-color: rgba(203, 213, 225, 0.95);
  background: #fff;
  color: #475569;
}

.docs-project-wizard-close svg {
  width: 1rem;
  height: 1rem;
}

.docs-project-wizard-form {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.docs-project-wizard-header {
  padding-right: 3rem;
}

.docs-project-wizard-header-main {
  display: grid;
  gap: 0.35rem;
}

.docs-project-wizard-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.62rem;
  line-height: 1.1;
  font-weight: 700;
}

.docs-project-wizard-subtitle {
  margin: 0;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
}

.docs-project-wizard-template-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.35rem;
  margin-top: 0.2rem;
  border: 1px solid rgba(255, 87, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 87, 0, 0.08);
  color: #e54e00;
  padding: 0.38rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.docs-project-wizard-stepper-wrap {
  margin-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.docs-project-wizard-stepper-scroll {
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.docs-project-wizard-stepper {
  display: flex;
  align-items: flex-start;
  min-width: 720px;
}

.docs-project-wizard-step {
  flex: 1 0 0;
  min-width: 92px;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

.docs-project-wizard-step:not(:disabled) {
  cursor: pointer;
}

.docs-project-wizard-step:disabled {
  cursor: default;
}

.docs-project-wizard-step-rail {
  display: flex;
  align-items: center;
  width: 100%;
}

.docs-project-wizard-step-line {
  flex: 1 1 auto;
  height: 1.5px;
  border-radius: 999px;
  background: #dbe4ef;
  transition: background-color 160ms ease;
}

.docs-project-wizard-step-line.is-hidden {
  visibility: hidden;
}

.docs-project-wizard-step-line.is-complete {
  background: #2f5da6;
}

.docs-project-wizard-step-circle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.82rem;
  height: 1.82rem;
  margin: 0 0.45rem;
  border: 1.5px solid #d6e0eb;
  border-radius: 999px;
  background: #fff;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.docs-project-wizard-step-circle svg {
  width: 0.92rem;
  height: 0.92rem;
}

.docs-project-wizard-step-label {
  display: block;
  margin-top: 0.38rem;
  text-align: center;
  color: #a0aec0;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 600;
  transition: color 160ms ease;
}

.docs-project-wizard-step[data-state="active"] .docs-project-wizard-step-circle {
  border-color: #ff5700;
  background: #ff5700;
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 87, 0, 0.22);
}

.docs-project-wizard-step[data-state="completed"] .docs-project-wizard-step-circle {
  border-color: #2f5da6;
  background: #2f5da6;
  color: #fff;
}

.docs-project-wizard-step[data-state="active"] .docs-project-wizard-step-label {
  color: #0f172a;
}

.docs-project-wizard-step[data-state="completed"] .docs-project-wizard-step-label {
  color: #2f5da6;
}

.docs-project-wizard-error {
  margin-top: 1rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 1rem;
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.docs-project-wizard-main {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 0 6rem;
}

.docs-project-wizard-step-panel {
  width: 100%;
}

.docs-project-wizard-step-panel--start {
  display: grid;
  gap: 1rem;
}

.docs-project-wizard-step-panel--narrow {
  max-width: 760px;
  margin: 0 auto;
}

.docs-project-wizard-step-panel--form {
  max-width: 700px;
  margin: 0 auto;
}

.docs-project-wizard-section-header {
  display: grid;
  gap: 0.45rem;
}

.docs-project-wizard-section-header--form {
  gap: 0;
}

.docs-project-wizard-section-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 700;
}

.docs-project-wizard-section-intro {
  margin: 0;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.55;
}

.docs-project-wizard-section-intro--form {
  color: #475569;
  font-size: 0.97rem;
  line-height: 1.55;
}

.docs-project-wizard-form-stack {
  display: grid;
  gap: 1rem;
}

.docs-project-wizard-fields-grid {
  display: grid;
  gap: 1rem;
}

.docs-project-wizard-fields-help {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.docs-project-wizard-form-field {
  display: grid;
  gap: 0.4rem;
}

.docs-project-wizard-form-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
}

.docs-project-wizard-form-optional {
  color: #a0aec0;
  font-size: 0.78rem;
  font-weight: 500;
}

.docs-project-wizard-form-input,
.docs-project-wizard-form-textarea {
  width: 100%;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 0.8rem;
  background: #fff;
  color: #0f172a;
  padding: 0.8rem 0.95rem;
  font-size: 0.97rem;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.docs-project-wizard-form-input {
  min-height: 2.9rem;
}

.docs-project-wizard-form-textarea {
  min-height: 4.4rem;
  resize: vertical;
}

.docs-project-wizard-form-hint {
  margin: 0;
  color: #e54e00;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 500;
}

.docs-project-wizard-doctype-list {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  background: #fff;
}

.docs-project-wizard-doctype-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.78rem 0.95rem;
  cursor: pointer;
}

.docs-project-wizard-doctype-row + .docs-project-wizard-doctype-row {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.docs-project-wizard-doctype-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.18rem;
}

.docs-project-wizard-doctype-copy {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
}

.docs-project-wizard-doctype-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.docs-project-wizard-doctype-name {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.docs-project-wizard-doctype-code {
  color: #a0aec0;
  font-size: 0.78rem;
  line-height: 1.3;
}

.docs-project-wizard-doctype-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  padding: 0.14rem 0.46rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.docs-project-wizard-doctype-default {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #64748b;
  font-size: 0.78rem;
}

.docs-project-wizard-documents-help {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.95rem;
  background: #f8fafc;
  color: #64748b;
  padding: 0.9rem 1rem;
  font-size: 0.87rem;
  line-height: 1.5;
}

.docs-project-wizard-ai-list {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  background: #fff;
}

.docs-project-wizard-ai-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 0.8rem 0.95rem;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.docs-project-wizard-ai-option + .docs-project-wizard-ai-option {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.docs-project-wizard-ai-option.is-selected {
  position: relative;
  background: #fffaf5;
  box-shadow: inset 0 0 0 1px rgba(255, 87, 0, 0.9);
}

.docs-project-wizard-ai-option-control {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.2rem;
}

.docs-project-wizard-ai-option-dot {
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.docs-project-wizard-ai-option.is-selected .docs-project-wizard-ai-option-dot {
  border-color: #ff5700;
  background: #ff5700;
}

.docs-project-wizard-ai-option-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.docs-project-wizard-ai-option-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.docs-project-wizard-ai-option-title {
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
}

.docs-project-wizard-ai-option-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  padding: 0.16rem 0.45rem;
  font-size: 0.71rem;
  font-weight: 700;
}

.docs-project-wizard-ai-option-description {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.docs-project-wizard-ai-note {
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 0.95rem;
  background: #f8fbff;
  color: #475569;
  padding: 0.9rem 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

.docs-project-wizard-plugin-list {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  background: #fff;
}

.docs-project-wizard-plugin-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.82rem 0.95rem;
  cursor: pointer;
  background: #fff;
}

.docs-project-wizard-plugin-row + .docs-project-wizard-plugin-row {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.docs-project-wizard-plugin-row.is-selected {
  background: #fffaf5;
  box-shadow: inset 0 0 0 1px rgba(255, 87, 0, 0.9);
}

.docs-project-wizard-plugin-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.18rem;
}

.docs-project-wizard-plugin-copy {
  min-width: 0;
  display: grid;
  gap: 0.32rem;
}

.docs-project-wizard-plugin-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.docs-project-wizard-plugin-name {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.docs-project-wizard-plugin-code {
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.3;
}

.docs-project-wizard-plugin-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 87, 0, 0.12);
  color: #e54e00;
  padding: 0.16rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.docs-project-wizard-plugin-description {
  color: #64748b;
}

.docs-project-wizard-plugin-description p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.docs-project-wizard-plugin-rationale {
  border: 1px solid rgba(255, 87, 0, 0.28);
  border-radius: 0.8rem;
  background: #fff6ef;
  color: #b45309;
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.docs-project-wizard-summary-table {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  background: #fff;
}

.docs-project-wizard-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.4fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 0.9rem 1rem;
}

.docs-project-wizard-summary-row + .docs-project-wizard-summary-row {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.docs-project-wizard-summary-label {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
}

.docs-project-wizard-summary-value {
  min-width: 0;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 500;
}

.docs-project-wizard-summary-subvalue {
  margin: 0.18rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.docs-project-wizard-summary-edit {
  border: 0;
  background: transparent;
  color: #2f5da6;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 600;
  padding: 0;
}

.docs-project-wizard-summary-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  padding: 0.2rem 0.55rem;
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 600;
}

.docs-project-wizard-diagram-card {
  display: grid;
  gap: 0.7rem;
}

.docs-project-wizard-diagram-card-copy {
  display: grid;
  gap: 0.35rem;
  align-content: center;
}

.docs-project-wizard-diagram-card-title {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-project-wizard-diagram-card-intro {
  margin: 0;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.6;
}

.docs-project-wizard-diagram-scroll {
  overflow-x: auto;
}

.docs-project-wizard-diagram-board {
  min-width: 680px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #fff, #fbfdff);
  padding: 0.9rem 0.95rem 1rem;
}

.docs-project-wizard-diagram-headings {
  display: grid;
  grid-template-columns: 210px 110px 1fr;
  gap: 1rem;
  padding: 0 0.2rem 0.75rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-project-wizard-diagram-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
}

.docs-project-wizard-diagram-project {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 0.35rem;
}

.docs-project-wizard-diagram-project-card {
  width: 100%;
  max-width: 180px;
  min-height: 108px;
  border-radius: 1.1rem;
  background: #0f2044;
  box-shadow: 0 16px 32px rgba(15, 32, 68, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
  text-align: center;
}

.docs-project-wizard-diagram-project-brand {
  color: #ff9f6b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.docs-project-wizard-diagram-project-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.docs-project-wizard-diagram-flow {
  position: relative;
  display: grid;
  gap: 0.95rem;
  padding-left: 0.35rem;
}

.docs-project-wizard-diagram-flow::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 1.15rem;
  width: 1.5px;
  background: #dbe4ef;
}

.docs-project-wizard-diagram-row {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.docs-project-wizard-diagram-row::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  width: 1.45rem;
  height: 1.5px;
  background: #dbe4ef;
}

.docs-project-wizard-diagram-user {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-left: 1.85rem;
  border: 1.5px solid rgba(47, 93, 166, 0.32);
  border-radius: 999px;
  background: #eef4ff;
  color: #2f5da6;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(47, 93, 166, 0.08);
}

.docs-project-wizard-diagram-docs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.docs-project-wizard-diagram-doc {
  position: relative;
  width: 3.25rem;
  height: 1.42rem;
  border: 1px solid #dbe4ef;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.12);
}

.docs-project-wizard-diagram-doc::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  top: 0.45rem;
  height: 1px;
  background: #dbe4ef;
  box-shadow: 0 0.3rem 0 #e7eef7;
}

.docs-project-wizard-templates-block {
  display: grid;
  gap: 0.85rem;
}

.docs-project-wizard-templates-header {
  display: grid;
  gap: 0.35rem;
}

.docs-project-wizard-templates-grid,
.docs-project-wizard-template-blank-row {
  display: grid;
  gap: 0.75rem;
}

.docs-project-wizard-templates-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-project-wizard-template-card {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  background: #fff;
  text-align: left;
  padding: 0.88rem 0.95rem 0.82rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.docs-project-wizard-template-card:hover {
  border-color: rgba(255, 87, 0, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.docs-project-wizard-template-card.is-selected {
  border-color: rgba(255, 87, 0, 0.9);
  background: #fff6ef;
  box-shadow: 0 18px 38px rgba(255, 87, 0, 0.12);
}

.docs-project-wizard-template-card.is-blank {
  border-style: dashed;
  background: linear-gradient(180deg, #fff, #fcfcfd);
}

.docs-project-wizard-template-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.docs-project-wizard-template-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.9rem;
  background: #fff1e8;
  color: #ff5700;
}

.docs-project-wizard-template-text {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.docs-project-wizard-template-title {
  color: #0f172a;
  font-size: 0.94rem;
  line-height: 1.25;
  font-weight: 700;
}

.docs-project-wizard-template-tag {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
}

.docs-project-wizard-template-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #ff5700;
  color: #fff;
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.docs-project-wizard-template-check svg {
  width: 0.78rem;
  height: 0.78rem;
}

.docs-project-wizard-template-card.is-selected .docs-project-wizard-template-check {
  opacity: 1;
  transform: scale(1);
}

.docs-project-wizard-template-warning {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.35rem;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  padding: 0.16rem 0.5rem;
  font-size: 0.71rem;
  font-weight: 700;
}

.docs-project-wizard-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: auto;
  padding: 0.75rem 0 0.95rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.98) 16%, #fff 45%);
  backdrop-filter: blur(12px);
}

.docs-project-wizard-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.docs-project-wizard-footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  border-radius: 0.9rem;
  padding: 0 1.25rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.docs-project-wizard-footer-button-secondary {
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: #fff;
  color: #334155;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.docs-project-wizard-success {
  max-width: 34rem;
  margin: 0 auto;
  padding: 4rem 1rem 3.5rem;
  text-align: center;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .docs-modal-shell,
  .docs-config-modal-shell {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .docs-modal-panel,
  .docs-config-modal-panel {
    max-height: calc(100vh - 3rem);
  }

  .docs-project-wizard-modal {
    max-height: calc(100vh - 0.6rem);
    padding: 1.55rem 1.55rem 0;
  }

  .docs-project-wizard-close {
    top: 1.15rem;
    right: 1.15rem;
  }

  .docs-project-wizard-diagram-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.9fr);
    gap: 1.15rem;
    align-items: center;
  }

  .docs-project-wizard-diagram-card-copy {
    padding-right: 0.25rem;
  }

  .docs-project-wizard-fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .docs-project-wizard-diagram-scroll {
    overflow-x: hidden;
  }

  .docs-project-wizard-diagram-board {
    min-width: 0;
    width: 100%;
  }

  .docs-project-wizard-diagram-headings {
    grid-template-columns: 180px 92px 180px;
    gap: 0.8rem;
  }

  .docs-project-wizard-diagram-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 0.8rem;
  }

  .docs-project-wizard-diagram-project-card {
    max-width: 168px;
    min-height: 102px;
  }

  .docs-project-wizard-diagram-flow {
    gap: 0.75rem;
    padding-left: 0;
  }

  .docs-project-wizard-diagram-flow::before {
    left: 0.95rem;
  }

  .docs-project-wizard-diagram-row {
    grid-template-columns: 92px 180px;
    gap: 0.55rem;
  }

  .docs-project-wizard-diagram-row::before {
    left: 0.95rem;
    width: 1.15rem;
  }

  .docs-project-wizard-diagram-user {
    width: 2.45rem;
    height: 2.45rem;
    margin-left: 1.45rem;
  }

  .docs-project-wizard-diagram-docs {
    width: 180px;
    flex: 0 0 180px;
    gap: 0.35rem;
  }

  .docs-project-wizard-diagram-doc {
    flex: 1 1 0;
    width: auto;
  }
}

@media (max-width: 767px) {
  .docs-project-wizard-modal {
    max-width: calc(100vw - 0.9rem);
    max-height: calc(100vh - 0.35rem);
    border-radius: 1.35rem;
    padding: 0.95rem 0.85rem 0;
  }

  .docs-project-wizard-title {
    font-size: 1.4rem;
  }

  .docs-project-wizard-subtitle {
    font-size: 0.88rem;
  }

  .docs-project-wizard-stepper {
    min-width: 660px;
  }

  .docs-project-wizard-main {
    padding-bottom: 7rem;
  }

  .docs-project-wizard-diagram-board {
    min-width: 620px;
  }

  .docs-project-wizard-diagram-headings {
    grid-template-columns: 180px 96px 1fr;
  }

  .docs-project-wizard-diagram-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .docs-project-wizard-templates-grid {
    grid-template-columns: 1fr;
  }

  .docs-project-wizard-footer {
    flex-wrap: wrap;
  }

  .docs-project-wizard-summary-row {
    grid-template-columns: 1fr;
    gap: 0.32rem;
  }

  .docs-project-wizard-summary-edit {
    justify-self: start;
  }

  .docs-project-wizard-footer-actions {
    width: 100%;
  }

  .docs-project-wizard-footer-button,
  .docs-project-wizard-footer-actions .docs-project-wizard-footer-button {
    flex: 1 1 auto;
  }
}

.dark .docs-project-wizard-modal {
  border-color: rgba(51, 65, 85, 0.9);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.52);
}

.dark .docs-project-wizard-close {
  border-color: rgba(71, 85, 105, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #94a3b8;
}

.dark .docs-project-wizard-close:hover {
  color: #e2e8f0;
}

.dark .docs-project-wizard-title {
  color: #f8fafc;
}

.dark .docs-project-wizard-subtitle,
.dark .docs-project-wizard-diagram-card-title,
.dark .docs-project-wizard-diagram-headings,
.dark .docs-project-wizard-section-intro {
  color: #94a3b8;
}

.dark .docs-project-wizard-template-badge {
  border-color: rgba(255, 87, 0, 0.35);
  background: rgba(255, 87, 0, 0.14);
  color: #ffb48b;
}

.dark .docs-project-wizard-stepper-wrap,
.dark .docs-project-wizard-footer {
  border-color: rgba(51, 65, 85, 0.9);
}

.dark .docs-project-wizard-step-line {
  background: rgba(71, 85, 105, 0.9);
}

.dark .docs-project-wizard-step-line.is-complete {
  background: #60a5fa;
}

.dark .docs-project-wizard-step-circle {
  border-color: rgba(71, 85, 105, 0.9);
  background: #0f172a;
  color: #94a3b8;
  box-shadow: none;
}

.dark .docs-project-wizard-step[data-state="completed"] .docs-project-wizard-step-circle {
  border-color: #60a5fa;
  background: #2f5da6;
}

.dark .docs-project-wizard-step-label {
  color: #64748b;
}

.dark .docs-project-wizard-step[data-state="active"] .docs-project-wizard-step-label,
.dark .docs-project-wizard-step[data-state="completed"] .docs-project-wizard-step-label {
  color: #e2e8f0;
}

.dark .docs-project-wizard-error {
  border-color: rgba(185, 28, 28, 0.45);
  background: rgba(127, 29, 29, 0.24);
  color: #fecaca;
}

.dark .docs-project-wizard-section-title,
.dark .docs-project-wizard-start-intro-copy,
.dark .docs-project-wizard-template-title {
  color: #f8fafc;
}

.dark .docs-project-wizard-section-intro--form,
.dark .docs-project-wizard-form-label,
.dark .docs-project-wizard-doctype-name,
.dark .docs-project-wizard-plugin-name,
.dark .docs-project-wizard-summary-value {
  color: #f8fafc;
}

.dark .docs-project-wizard-form-optional,
.dark .docs-project-wizard-doctype-code,
.dark .docs-project-wizard-doctype-default,
.dark .docs-project-wizard-documents-help,
.dark .docs-project-wizard-fields-help,
.dark .docs-project-wizard-ai-option-description,
.dark .docs-project-wizard-ai-note,
.dark .docs-project-wizard-plugin-code,
.dark .docs-project-wizard-summary-label,
.dark .docs-project-wizard-summary-subvalue {
  color: #94a3b8;
}

.dark .docs-project-wizard-form-input,
.dark .docs-project-wizard-form-textarea,
.dark .docs-project-wizard-doctype-list,
.dark .docs-project-wizard-documents-help,
.dark .docs-project-wizard-ai-list,
.dark .docs-project-wizard-ai-note,
.dark .docs-project-wizard-plugin-list,
.dark .docs-project-wizard-summary-table {
  border-color: rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: none;
}

.dark .docs-project-wizard-doctype-row + .docs-project-wizard-doctype-row {
  border-top-color: rgba(51, 65, 85, 0.9);
}

.dark .docs-project-wizard-ai-option {
  background: rgba(15, 23, 42, 0.9);
}

.dark .docs-project-wizard-ai-option + .docs-project-wizard-ai-option {
  border-top-color: rgba(51, 65, 85, 0.9);
}

.dark .docs-project-wizard-plugin-row {
  background: rgba(15, 23, 42, 0.9);
}

.dark .docs-project-wizard-plugin-row + .docs-project-wizard-plugin-row,
.dark .docs-project-wizard-summary-row + .docs-project-wizard-summary-row {
  border-top-color: rgba(51, 65, 85, 0.9);
}

.dark .docs-project-wizard-plugin-row.is-selected {
  background: rgba(255, 87, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 87, 0, 0.72);
}

.dark .docs-project-wizard-ai-option.is-selected {
  background: rgba(255, 87, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 87, 0, 0.72);
}

.dark .docs-project-wizard-ai-option-title {
  color: #f8fafc;
}

.dark .docs-project-wizard-ai-option-dot {
  border-color: rgba(71, 85, 105, 0.9);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: none;
}

.dark .docs-project-wizard-ai-option.is-selected .docs-project-wizard-ai-option-dot {
  border-color: #ff5700;
  background: #ff5700;
}

.dark .docs-project-wizard-ai-option-badge {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.dark .docs-project-wizard-plugin-badge {
  background: rgba(255, 87, 0, 0.16);
  color: #ffb48b;
}

.dark .docs-project-wizard-plugin-rationale {
  border-color: rgba(255, 87, 0, 0.32);
  background: rgba(255, 87, 0, 0.12);
  color: #fdba74;
}

.dark .docs-project-wizard-summary-edit {
  color: #93c5fd;
}

.dark .docs-project-wizard-summary-chip {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.dark .docs-project-wizard-doctype-badge {
  border-color: rgba(217, 119, 6, 0.42);
  background: rgba(120, 53, 15, 0.35);
  color: #fcd34d;
}

.dark .docs-project-wizard-diagram-board,
.dark .docs-project-wizard-template-card {
  border-color: rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: none;
}

.dark .docs-project-wizard-template-card.is-selected {
  border-color: rgba(255, 87, 0, 0.72);
  background: rgba(255, 87, 0, 0.12);
}

.dark .docs-project-wizard-template-card.is-blank {
  background: rgba(15, 23, 42, 0.78);
}

.dark .docs-project-wizard-template-icon {
  background: rgba(255, 87, 0, 0.12);
  color: #ffb48b;
}

.dark .docs-project-wizard-template-tag {
  color: #94a3b8;
}

.dark .docs-project-wizard-template-warning {
  border-color: rgba(217, 119, 6, 0.42);
  background: rgba(120, 53, 15, 0.35);
  color: #fcd34d;
}

.dark .docs-project-wizard-diagram-project-card {
  box-shadow: none;
}

.dark .docs-project-wizard-diagram-flow::before,
.dark .docs-project-wizard-diagram-row::before,
.dark .docs-project-wizard-diagram-doc::before {
  background: rgba(71, 85, 105, 0.9);
}

.dark .docs-project-wizard-diagram-user {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(30, 41, 59, 0.9);
  color: #bfdbfe;
  box-shadow: none;
}

.dark .docs-project-wizard-diagram-doc {
  border-color: rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: none;
}

.dark .docs-project-wizard-footer {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.96) 16%, #111827 42%);
}

.dark .docs-project-wizard-footer-button-secondary {
  border-color: rgba(71, 85, 105, 0.8);
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  box-shadow: none;
}

.docs-review-ocr-layer {
  overflow: hidden;
}

.docs-review-ocr-scan {
  position: absolute;
  border-radius: 1rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.1)),
    rgba(15, 23, 42, 0.08);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.docs-review-ocr-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 3.5rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.18), rgba(16, 185, 129, 0.34), rgba(37, 99, 235, 0));
  filter: blur(0.3px);
  animation: docs-review-ocr-scan 1.8s ease-in-out infinite;
}

.docs-review-ocr-scanlabel {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

.docs-review-ocr-box {
  position: absolute;
  border: 1.5px solid rgba(37, 99, 235, 0.5);
  border-radius: 0.7rem;
  background: rgba(59, 130, 246, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 6px 18px rgba(37, 99, 235, 0.12);
  pointer-events: auto;
  cursor: grab;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.docs-review-ocr-box:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(37, 99, 235, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 10px 26px rgba(37, 99, 235, 0.18);
}

.docs-review-ocr-box:active,
.docs-review-ocr-box.is-dragging {
  cursor: grabbing;
  transform: scale(0.985);
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.85);
}

.dark .docs-review-ocr-scan {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.22)),
    rgba(15, 23, 42, 0.16);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.dark .docs-review-ocr-box {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.62);
}

.dark .docs-review-ocr-box:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(125, 211, 252, 0.72);
}

@keyframes docs-review-ocr-scan {
  0% {
    top: -12%;
  }
  100% {
    top: calc(100% - 2rem);
  }
}

.docs-onboarding-root {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 99990;
  max-width: min(360px, calc(100vw - 1.5rem));
}

.docs-onboarding-panel {
  width: min(360px, calc(100vw - 1.5rem));
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.docs-onboarding-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem 0.55rem;
}

.docs-onboarding-panel-copy {
  min-width: 0;
}

.docs-onboarding-panel-title {
  margin: 0;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
}

.docs-onboarding-panel-subtitle {
  margin: 0.18rem 0 0;
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.35;
}

.docs-onboarding-panel-minimize {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: #fff;
  color: #64748b;
}

.docs-onboarding-panel-minimize svg {
  width: 0.9rem;
  height: 0.9rem;
}

.docs-onboarding-progress {
  padding: 0 0.95rem 0.75rem;
}

.docs-onboarding-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  color: #475569;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.docs-onboarding-progress-top strong {
  color: #2f5da6;
  font-size: 0.76rem;
}

.docs-onboarding-progress-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: #dbe5f5;
  overflow: hidden;
}

.docs-onboarding-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f5da6, #5f87c7);
}

.docs-onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0 0.95rem 0.95rem;
  margin: 0;
  list-style: none;
}

.docs-onboarding-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.85rem;
  background: #f8fafc;
}

.docs-onboarding-step.is-complete {
  background: #f5fbf7;
  border-color: rgba(187, 247, 208, 0.9);
}

.docs-onboarding-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: transparent;
  flex-shrink: 0;
}

.docs-onboarding-step-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

.docs-onboarding-step-icon.is-complete {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.docs-onboarding-step-copy {
  min-width: 0;
  display: flex;
  align-items: center;
}

.docs-onboarding-step-title {
  display: inline-block;
  position: relative;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-onboarding-step-title.has-tooltip {
  cursor: help;
  text-decoration: none;
}

.docs-onboarding-step-title-link {
  color: inherit;
  text-decoration: none;
}

.docs-onboarding-step-title-link:hover,
.docs-onboarding-step-title-link:focus-visible {
  color: #0f172a;
  text-decoration: none;
}

.docs-onboarding-step-title.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.55rem);
  z-index: 10;
  min-width: 180px;
  max-width: 240px;
  padding: 0.5rem 0.6rem;
  border-radius: 0.7rem;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.docs-onboarding-step-title.has-tooltip::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  bottom: calc(100% + 0.15rem);
  z-index: 10;
  border-width: 0.35rem;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.96) transparent transparent transparent;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.docs-onboarding-step-title.has-tooltip:hover::after,
.docs-onboarding-step-title.has-tooltip:hover::before,
.docs-onboarding-step-title.has-tooltip:focus-visible::after,
.docs-onboarding-step-title.has-tooltip:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.docs-onboarding-step-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.docs-onboarding-step-cta,
.docs-onboarding-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  white-space: nowrap;
}

.docs-onboarding-step-cta {
  background: #2f5da6;
  color: #fff;
  box-shadow: 0 6px 14px rgba(47, 93, 166, 0.14);
}

.docs-onboarding-step-badge {
  background: #dcfce7;
  color: #166534;
}

.docs-onboarding-header-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(10px);
}

.docs-onboarding-header-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.docs-onboarding-header-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
}

.docs-onboarding-header-progress {
  margin-top: 0.1rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.78);
}

.docs-onboarding-header-ring {
  --docs-onboarding-progress: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: conic-gradient(#8fb3ef calc(var(--docs-onboarding-progress) * 1%), rgba(255, 255, 255, 0.25) 0);
  flex-shrink: 0;
}

.docs-onboarding-header-ring-inner {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #2f5da6;
}

@media (max-width: 1023px) {
  .docs-onboarding-root {
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100vw - 1rem);
  }

  .docs-onboarding-panel {
    width: calc(100vw - 1rem);
  }

  .docs-onboarding-header-button {
    max-width: 220px;
    padding-left: 0.75rem;
    padding-right: 0.6rem;
  }
}

.docs-end-user-editor-modal {
  border-radius: 1.9rem;
}

.docs-end-user-editor-intro {
  margin-bottom: 1.2rem;
  border: 1px solid rgba(254, 215, 170, 0.95);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 251, 235, 0.98));
  color: #9a3412;
  padding: 1rem 1.1rem;
  font-size: 0.94rem;
  line-height: 1.55;
}

.docs-end-user-editor-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.35rem;
  background: #fff;
  padding: 1.15rem;
}

.docs-end-user-editor-card + .docs-end-user-editor-card {
  margin-top: 1rem;
}

.docs-end-user-editor-card--soft {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.88), rgba(255, 255, 255, 0.98));
}

.docs-end-user-editor-card--channels {
  border-color: rgba(253, 186, 116, 0.95);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: inset 3px 0 0 #f97316;
}

.docs-end-user-editor-card-head {
  margin-bottom: 1rem;
}

.docs-end-user-editor-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#docs-end-users-display-name,
#docs-end-users-project-id {
  min-height: 3.2rem;
  height: 3.2rem;
}

.docs-end-user-channel-groups {
  display: grid;
  gap: 1rem;
}

.docs-end-user-channel-group {
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
}

.docs-end-user-channel-group-head {
  margin-bottom: 0.8rem;
}

.docs-end-user-channel-group-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.docs-end-user-channel-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  background: rgba(255, 247, 237, 0.92);
  color: #f97316;
  flex-shrink: 0;
}

.docs-end-user-channel-group-icon svg {
  width: 1rem;
  height: 1rem;
}

.docs-end-user-channel-group-icon--whatsapp {
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.96);
}

.docs-end-user-channel-group-icon--email {
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(239, 246, 255, 0.96);
}

.docs-end-user-channel-group-icon--drive {
  color: #0f9d58;
  border-color: rgba(15, 157, 88, 0.24);
  background: rgba(236, 253, 245, 0.96);
}

.docs-end-user-channel-group-title {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.docs-end-user-channel-group-hint {
  margin: 0.2rem 0 0;
  color: #78716c;
  font-size: 0.8rem;
}

.docs-end-user-channel-list {
  display: grid;
  gap: 0.8rem;
}

.docs-end-user-channel-row {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.docs-end-user-channel-row-input {
  min-width: 0;
}

.docs-end-user-channel-remove,
.docs-end-user-channel-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.96);
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.docs-end-user-channel-remove {
  min-height: 2.85rem;
  padding: 0 0.95rem;
}

.docs-end-user-channel-add {
  width: 100%;
  min-height: 2.85rem;
  margin-top: 0.9rem;
  border-style: dashed;
}

.docs-end-user-channel-remove:hover,
.docs-end-user-channel-add:hover {
  border-color: rgba(249, 115, 22, 0.85);
  background: rgba(255, 247, 237, 0.98);
  color: #c2410c;
  transform: translateY(-1px);
}

.docs-end-user-drive-panel {
  border-color: rgba(14, 165, 233, 0.26);
  background:
    linear-gradient(135deg, rgba(240, 253, 244, 0.78), rgba(239, 246, 255, 0.72)),
    #fff;
}

.docs-end-user-drive-panel.is-disabled {
  opacity: 0.72;
}

.docs-end-user-drive-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.docs-end-user-drive-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  padding: 0.2rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.docs-end-user-drive-badge--success {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.96);
  color: #15803d;
}

.docs-end-user-drive-badge--warning {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(255, 251, 235, 0.96);
  color: #b45309;
}

.docs-end-user-drive-body {
  display: grid;
  gap: 0.95rem;
}

.docs-end-user-drive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.docs-end-user-drive-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.96);
  color: #334155;
  padding: 0 0.95rem;
  font-size: 0.78rem;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.docs-end-user-drive-button:hover {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(239, 246, 255, 0.96);
  color: #1d4ed8;
  transform: translateY(-1px);
}

.docs-end-user-drive-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.docs-end-user-drive-button-primary {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(135deg, #2563eb, #0f9d58);
  color: #fff;
}

.docs-end-user-drive-button-primary:hover {
  border-color: rgba(37, 99, 235, 0.32);
  background: linear-gradient(135deg, #1d4ed8, #15803d);
  color: #fff;
}

.docs-end-user-drive-button-compact {
  min-height: 2.25rem;
  padding: 0 0.78rem;
}

.docs-end-user-drive-button-danger {
  border-color: rgba(248, 113, 113, 0.55);
  color: #b91c1c;
}

.docs-end-user-drive-button-danger:hover {
  border-color: rgba(220, 38, 38, 0.55);
  background: rgba(254, 242, 242, 0.96);
  color: #991b1b;
}

.docs-end-user-drive-note {
  border: 1px solid rgba(186, 230, 253, 0.9);
  border-radius: 0.95rem;
  background: rgba(240, 249, 255, 0.86);
  color: #0369a1;
  padding: 0.72rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.docs-end-user-drive-config {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(0, 0.9fr) auto;
  align-items: end;
}

.docs-end-user-drive-folder-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  width: 100%;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.42rem 0.48rem 0.42rem 0.85rem;
  color: #0f172a;
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.docs-end-user-drive-folder-picker:hover {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(239, 246, 255, 0.92);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.docs-end-user-drive-folder-picker:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  box-shadow: none;
}

.docs-end-user-drive-folder-selected {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-end-user-drive-folder-selected.is-empty {
  color: #64748b;
  font-weight: 700;
}

.docs-end-user-drive-folder-picker-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  border-radius: 0.6rem;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  padding: 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.docs-drive-picker-modal {
  z-index: 100010;
}

.docs-drive-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(18px);
}

.docs-drive-picker-panel {
  position: relative;
  display: flex;
  height: min(42rem, calc(100vh - 2rem));
  max-height: calc(100vh - 2rem);
  width: min(44rem, 100%);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.docs-drive-picker-header,
.docs-drive-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
}

.docs-drive-picker-header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.docs-drive-picker-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.docs-drive-picker-title {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}

.docs-drive-picker-subtitle,
.docs-drive-picker-selection {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.docs-drive-picker-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  width: 2.25rem;
  flex: 0 0 auto;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  color: #475569;
}

.docs-drive-picker-close svg {
  height: 1rem;
  width: 1rem;
}

.docs-drive-picker-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.65rem;
}

.docs-drive-picker-tree {
  display: grid;
  gap: 0.28rem;
}

.docs-drive-picker-empty,
.docs-drive-picker-row--muted {
  color: #64748b;
  font-size: 0.82rem;
  padding: 0.8rem;
}

.docs-drive-picker-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  padding-left: calc(var(--drive-depth, 0) * 1.25rem);
}

.docs-drive-picker-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.9rem;
  width: 1.9rem;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 0.6rem;
  background: rgba(248, 250, 252, 0.95);
  color: #475569;
  font-size: 0.9rem;
  font-weight: 900;
}

.docs-drive-picker-folder {
  display: grid;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  background: transparent;
  padding: 0.48rem 0.62rem;
  text-align: left;
}

.docs-drive-picker-folder:hover,
.docs-drive-picker-node.is-selected > .docs-drive-picker-row .docs-drive-picker-folder {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(239, 246, 255, 0.94);
}

.docs-drive-picker-folder--container {
  font-weight: 900;
}

.docs-drive-picker-folder-name {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-drive-picker-folder-id {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-drive-picker-load-more {
  justify-self: start;
  margin-left: calc(2.35rem + (var(--drive-depth, 0) * 1.25rem));
  min-height: 2rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  color: #1d4ed8;
  padding: 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 850;
}

.docs-drive-picker-footer-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.docs-end-user-drive-channels {
  display: grid;
  gap: 0.8rem;
}

.docs-end-user-drive-empty {
  margin: 0;
  border: 1px dashed rgba(125, 211, 252, 0.85);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  padding: 0.85rem;
  font-size: 0.84rem;
}

.docs-end-user-drive-channel {
  display: grid;
  gap: 0.7rem;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.85rem;
}

.docs-end-user-drive-channel-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.docs-end-user-drive-channel-title {
  margin: 0;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.docs-end-user-drive-channel-subtitle {
  margin: 0.18rem 0 0;
  color: #64748b;
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

.docs-end-user-drive-channel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  color: #64748b;
  font-size: 0.74rem;
}

.docs-end-user-drive-channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.docs-end-user-drive-channel-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  color: #475569;
  padding: 0.16rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.docs-end-user-drive-channel-status--success {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.96);
  color: #15803d;
}

.docs-end-user-drive-channel-status--warning {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(255, 251, 235, 0.96);
  color: #b45309;
}

.docs-end-user-editor-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.3rem;
}

.docs-end-user-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.docs-end-user-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.docs-end-user-switch-track {
  display: inline-flex;
  align-items: center;
  width: 3rem;
  height: 1.7rem;
  padding: 0.18rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.98);
  transition: background-color 160ms ease;
}

.docs-end-user-switch-thumb {
  width: 1.32rem;
  height: 1.32rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  transition: transform 160ms ease;
}

.docs-end-user-switch input:checked + .docs-end-user-switch-track {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.docs-end-user-switch input:checked + .docs-end-user-switch-track .docs-end-user-switch-thumb {
  transform: translateX(1.26rem);
}

.docs-end-user-editor-advanced {
  margin-top: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.95);
}

.docs-end-user-editor-advanced-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1rem;
}

.docs-end-user-editor-advanced-summary::-webkit-details-marker {
  display: none;
}

.docs-end-user-editor-advanced-body {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  padding: 1rem;
}

.docs-end-user-editor-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
}

.docs-end-user-editor-summary {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding-left: 0.85rem;
  padding-right: 1rem;
}

.docs-end-user-editor-summary-label {
  margin: 0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-end-user-editor-summary-text {
  margin: 0.25rem 0 0;
  color: #0f172a;
  font-size: 0.94rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.docs-end-user-editor-summary-text.is-error {
  color: #b91c1c;
}

.docs-end-user-editor-footer .docs-project-wizard-footer-actions {
  margin-left: auto;
  flex: 0 0 auto;
  width: auto;
  flex-wrap: nowrap;
}

.docs-end-user-editor-footer .docs-project-wizard-footer-button,
.docs-end-user-editor-footer .docs-project-wizard-footer-actions .docs-project-wizard-footer-button {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .docs-end-user-editor-grid {
    grid-template-columns: 1fr;
  }

  .docs-end-user-channel-row {
    grid-template-columns: 1fr;
  }

  .docs-end-user-channel-remove {
    width: 100%;
  }

  .docs-end-user-drive-head,
  .docs-end-user-drive-channel-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-end-user-drive-config {
    grid-template-columns: 1fr;
  }

  .docs-end-user-drive-actions,
  .docs-end-user-drive-channel-actions,
  .docs-end-user-drive-button {
    width: 100%;
  }

  .docs-end-user-drive-folder-picker,
  .docs-drive-picker-footer,
  .docs-drive-picker-footer-actions,
  .docs-drive-picker-footer-actions .docs-end-user-drive-button {
    width: 100%;
  }

  .docs-end-user-drive-folder-picker {
    grid-template-columns: 1fr;
  }

  .docs-drive-picker-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .docs-drive-picker-panel {
    height: calc(100vh - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .docs-end-user-editor-footer {
    align-items: flex-end;
    flex-wrap: nowrap;
  }

  .docs-end-user-editor-summary {
    max-width: none;
    padding-left: 0.6rem;
    padding-right: 0.75rem;
  }

  .docs-end-user-editor-footer .docs-project-wizard-footer-actions {
    width: auto;
  }

  .docs-end-user-editor-footer .docs-project-wizard-footer-button,
  .docs-end-user-editor-footer .docs-project-wizard-footer-actions .docs-project-wizard-footer-button {
    flex: 0 0 auto;
  }
}

.dark .docs-end-user-editor-intro {
  border-color: rgba(249, 115, 22, 0.28);
  background: linear-gradient(135deg, rgba(67, 20, 7, 0.9), rgba(41, 17, 10, 0.96));
  color: #fed7aa;
}

.dark .docs-end-user-editor-card {
  border-color: rgba(51, 65, 85, 0.95);
  background: rgba(15, 23, 42, 0.9);
}

.dark .docs-end-user-editor-card--soft {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.92));
}

.dark .docs-end-user-editor-card--channels {
  border-color: rgba(194, 65, 12, 0.85);
  background: linear-gradient(180deg, rgba(60, 24, 12, 0.86), rgba(15, 23, 42, 0.92));
}

.dark .docs-end-user-channel-group {
  border-color: rgba(194, 65, 12, 0.5);
  background: rgba(15, 23, 42, 0.62);
}

.dark .docs-end-user-channel-group-title {
  color: #f8fafc;
}

.dark .docs-end-user-channel-group-icon {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(30, 41, 59, 0.9);
}

.dark .docs-end-user-channel-group-icon--whatsapp {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(20, 83, 45, 0.26);
  color: #4ade80;
}

.dark .docs-end-user-channel-group-icon--email {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(30, 64, 175, 0.24);
  color: #93c5fd;
}

.dark .docs-end-user-channel-group-icon--drive {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(20, 83, 45, 0.24);
  color: #86efac;
}

.dark .docs-end-user-channel-group-hint,
.dark .docs-end-user-editor-summary-label {
  color: #cbd5e1;
}

.dark .d27-btn-primary:disabled,
.dark .d27-btn-primary[disabled] {
  background: linear-gradient(180deg, rgba(154, 52, 18, 0.5), rgba(124, 45, 18, 0.56)) !important;
  color: rgba(254, 215, 170, 0.82) !important;
  border-color: rgba(251, 146, 60, 0.16) !important;
}

.dark .docs-end-user-channel-remove,
.dark .docs-end-user-channel-add {
  border-color: rgba(71, 85, 105, 0.95);
  background: rgba(15, 23, 42, 0.94);
  color: #e2e8f0;
}

.dark .docs-end-user-channel-remove:hover,
.dark .docs-end-user-channel-add:hover {
  border-color: rgba(249, 115, 22, 0.75);
  background: rgba(67, 20, 7, 0.92);
  color: #fdba74;
}

.dark .docs-end-user-drive-panel {
  border-color: rgba(14, 165, 233, 0.28);
  background:
    linear-gradient(135deg, rgba(20, 83, 45, 0.26), rgba(30, 64, 175, 0.2)),
    rgba(15, 23, 42, 0.62);
}

.dark .docs-end-user-drive-badge,
.dark .docs-end-user-drive-button,
.dark .docs-end-user-drive-channel-status,
.dark .docs-end-user-drive-folder-picker,
.dark .docs-drive-picker-close,
.dark .docs-drive-picker-toggle,
.dark .docs-drive-picker-load-more {
  border-color: rgba(71, 85, 105, 0.95);
  background: rgba(15, 23, 42, 0.94);
  color: #e2e8f0;
}

.dark .docs-end-user-drive-folder-picker:hover,
.dark .docs-drive-picker-folder:hover,
.dark .docs-drive-picker-node.is-selected > .docs-drive-picker-row .docs-drive-picker-folder {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(30, 64, 175, 0.24);
}

.dark .docs-end-user-drive-folder-selected,
.dark .docs-drive-picker-title,
.dark .docs-drive-picker-folder-name {
  color: #f8fafc;
}

.dark .docs-end-user-drive-folder-selected.is-empty,
.dark .docs-drive-picker-subtitle,
.dark .docs-drive-picker-selection,
.dark .docs-drive-picker-empty,
.dark .docs-drive-picker-row--muted,
.dark .docs-drive-picker-folder-id {
  color: #cbd5e1;
}

.dark .docs-end-user-drive-folder-picker-action {
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
}

.dark .docs-drive-picker-panel {
  border-color: rgba(51, 65, 85, 0.95);
  background: #0f172a;
}

.dark .docs-drive-picker-header,
.dark .docs-drive-picker-footer {
  border-color: rgba(51, 65, 85, 0.95);
}

.dark .docs-end-user-drive-badge--success,
.dark .docs-end-user-drive-channel-status--success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(20, 83, 45, 0.26);
  color: #86efac;
}

.dark .docs-end-user-drive-badge--warning,
.dark .docs-end-user-drive-channel-status--warning {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(113, 63, 18, 0.24);
  color: #fde68a;
}

.dark .docs-end-user-drive-button:hover {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(30, 64, 175, 0.24);
  color: #bfdbfe;
}

.dark .docs-end-user-drive-button-danger {
  border-color: rgba(248, 113, 113, 0.38);
  color: #fca5a5;
}

.dark .docs-end-user-drive-button-danger:hover {
  border-color: rgba(248, 113, 113, 0.48);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
}

.dark .docs-end-user-drive-button-primary,
.dark .docs-end-user-drive-button-primary:hover {
  border-color: rgba(96, 165, 250, 0.3);
  background: linear-gradient(135deg, #1d4ed8, #15803d);
  color: #fff;
}

.dark .docs-end-user-drive-note {
  border-color: rgba(14, 165, 233, 0.24);
  background: rgba(12, 74, 110, 0.24);
  color: #bae6fd;
}

.dark .docs-end-user-drive-empty,
.dark .docs-end-user-drive-channel {
  border-color: rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.68);
}

.dark .docs-end-user-drive-channel-title {
  color: #f8fafc;
}

.dark .docs-end-user-drive-channel-subtitle,
.dark .docs-end-user-drive-channel-meta,
.dark .docs-end-user-drive-empty {
  color: #cbd5e1;
}

.dark .docs-end-user-switch-track {
  background: rgba(51, 65, 85, 0.95);
}

.dark .docs-end-user-editor-advanced {
  border-color: rgba(51, 65, 85, 0.95);
  background: rgba(15, 23, 42, 0.7);
}

.dark .docs-end-user-editor-advanced-body {
  border-top-color: rgba(51, 65, 85, 0.95);
}

.dark .docs-end-user-editor-summary-text {
  color: #f8fafc;
}

.dark .docs-end-user-editor-summary-text.is-error {
  color: #fca5a5;
}
