.popup__backround {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(var(--ds-color-surface-2-rgb), 0.8);
  top: 0;
  z-index: 1060;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type=number] {
  -webkit-appearance: textfield;
  appearance: textfield;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.app-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(155, 104, 245, 0.18);
  border-top-color: var(--ds-color-accent, #9b68f5);
  border-radius: 50%;
  animation: app-spinner-spin 0.9s linear infinite;
}

@keyframes app-spinner-spin {
  to {
    transform: rotate(360deg);
  }
}
.input-number-control {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.input-number-control__icon {
  width: 13px;
  height: 13px;
}

.input-number-control__icon--up {
  transform: rotate(180deg);
}

.carousel-control-button {
  width: 30px;
  min-width: 30px;
}

.selectBox {
  position: fixed;
  border: 2px dashed #fff;
  background-color: rgba(255, 255, 255, 0.25);
}

.tooltip-inner {
  background-color: rgba(var(--ds-color-surface-3-rgb), 1);
}

.app-pill-badge {
  --app-pill-badge-bg: linear-gradient(90deg, var(--ds-gradient-primary-start) 0%, var(--ds-gradient-primary-end) 100%);
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--ds-color-text-primary);
  background: var(--app-pill-badge-bg);
  font-weight: 500;
  white-space: nowrap;
}

.app-status-pill {
  --app-status-pill-bg: rgba(var(--ds-color-warning-rgb), 0.2);
  --app-status-pill-color: var(--ds-color-warning);
  --app-status-pill-border: rgba(var(--ds-color-warning-rgb), 0.42);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--app-status-pill-border);
  background: var(--app-status-pill-bg) !important;
  color: var(--app-status-pill-color) !important;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.2rem 0.62rem;
}

.app-status-pill i {
  font-size: 0.75rem;
  line-height: 1;
}

.app-status-pill--success {
  --app-status-pill-bg: rgba(var(--ds-color-success-rgb), 0.2);
  --app-status-pill-color: var(--ds-color-success);
  --app-status-pill-border: rgba(var(--ds-color-success-rgb), 0.42);
}

.app-status-pill--warning {
  --app-status-pill-bg: rgba(var(--ds-color-warning-rgb), 0.2);
  --app-status-pill-color: var(--ds-color-warning);
  --app-status-pill-border: rgba(var(--ds-color-warning-rgb), 0.42);
}

.app-status-pill--danger {
  --app-status-pill-bg: rgba(var(--ds-color-danger-rgb), 0.2);
  --app-status-pill-color: var(--ds-color-danger);
  --app-status-pill-border: rgba(var(--ds-color-danger-rgb), 0.42);
}

.app-status-pill--info {
  --app-status-pill-bg: rgba(var(--ds-color-info-rgb), 0.2);
  --app-status-pill-color: var(--ds-color-info);
  --app-status-pill-border: rgba(var(--ds-color-info-rgb), 0.42);
}

.app-status-card {
  background: rgba(var(--ds-color-warning-rgb), 0.08);
  border: 1px solid rgba(var(--ds-color-warning-rgb), 0.45);
  border-radius: var(--ds-radius-md);
  padding: 0.6rem 0.8rem;
}

.app-status-card--verified {
  background: rgba(var(--ds-color-success-rgb), 0.18);
  border-color: rgba(var(--ds-color-success-rgb), 0.55);
}

.app-status-card--pending {
  background: rgba(var(--ds-color-info-rgb), 0.12);
  border-color: rgba(var(--ds-color-info-rgb), 0.5);
}

.content-divider {
  border-color: var(--ds-color-surface-2);
  opacity: 0.6;
  margin: 0 0 1rem;
}

.legal-modal__body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px;
  color: var(--ds-color-text-primary);
}

.legal-modal__doc {
  background: rgba(var(--ds-color-bg-rgb), 0.34);
  border: 1px solid rgba(var(--ds-color-text-primary-rgb), 0.12);
  color: var(--ds-color-text-primary);
  border-radius: 8px;
  padding: 16px;
}

.legal-modal__doc * {
  color: var(--ds-color-text-primary) !important;
  background: transparent !important;
}

.legal-modal__doc a,
.legal-modal__doc a * {
  color: var(--ds-color-accent-soft) !important;
  text-decoration: underline;
}

.legal-modal__doc p,
.legal-modal__doc li,
.legal-modal__doc td,
.legal-modal__doc th {
  line-height: 1.45 !important;
}

.modal-queue-hidden {
  display: none !important;
}

/* Global preloader layer (used outside legacy wizard too) */
.preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  pointer-events: auto;
  background: transparent !important;
  color: var(--ds-color-text-primary);
  text-align: center;
}

.preloader > .preloader-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 12, 0.28);
  backdrop-filter: blur(2px);
}

.preloader-spinner {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-width: 3px;
}

.preloader-message {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.preloader-message > .message-icon {
  font-size: 40px;
}

.brane-loader-s2 {
  position: absolute;
  inset: 0;
  z-index: 32;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  overflow: hidden;
  background: transparent !important;
  color: var(--ds-color-text-primary);
  pointer-events: auto;
}

.brane-loader-s2__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(48% 42% at 50% 42%, rgba(155, 104, 245, 0.16), transparent 68%), rgba(7, 7, 12, 0.48);
  backdrop-filter: blur(5px);
}

.brane-loader-s2__content {
  position: relative;
  z-index: 1;
  grid-row: 2;
  display: grid;
  justify-items: center;
}

.brane-loader-s2__logo {
  display: block;
  width: 44px;
  height: auto;
}

.brane-loader-s2__spinner {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

.brane-loader-s2__network,
.brane-loader-s2__desc {
  margin: 0;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.brane-loader-s2__desc {
  width: 100%;
  text-align: center;
}

.brane-loader-s2__network:empty {
  display: none;
}

.brane-loader-s2__footer {
  position: relative;
  z-index: 1;
  grid-row: 3;
  align-self: end;
  display: grid;
  width: min(560px, 100vw - 48px);
  justify-items: center;
  gap: 10px;
  padding-bottom: 18px;
  text-align: center;
}

.is-invalid {
  border: 1.5px solid #dc3545 !important;
}

.input-error-tip {
  color: #dc3545;
  font-size: 13px;
  margin-bottom: 5px;
  display: block;
}

.state-server-error {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.18);
  color: #f8fafc;
}

.state-server-error--compact {
  padding: 12px;
  gap: 8px;
}

.state-server-error__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.state-server-error__header > .ds-icon {
  color: var(--ds-color-danger);
  flex: 0 0 auto;
  line-height: 1.2;
  margin-top: 2px;
}

.state-server-error__title {
  font-weight: 700;
  line-height: 1.25;
}

.state-server-error__message,
.state-server-error__field {
  color: var(--ds-color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.state-server-error__fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 26px;
}

.state-server-error__field {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.state-server-error__field-path {
  color: var(--ds-color-danger);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.state-server-error__meta {
  display: block;
  padding-left: 26px;
  color: var(--ds-color-text-tertiary);
  font-size: 0.78rem;
}

.state-server-error__meta > summary {
  cursor: pointer;
  margin-bottom: 4px;
}

.state-server-error__meta > span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

* {
  box-sizing: border-box;
}

html,
body {
  --avvy-body-canvas: #0d0d14;
  --avvy-body-text: #f4f1ff;
  width: 100%;
  min-height: 100%;
  padding: 0;
  margin: 0 auto;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background: radial-gradient(circle at 72% 0%, rgba(105, 52, 194, 0.12), transparent 30rem), var(--avvy-body-canvas) !important;
  color: var(--avvy-body-text) !important;
  font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  overflow: visible;
}

html[data-app-scroll=runtime],
html[data-app-scroll=runtime] body {
  height: 100%;
  overflow: hidden;
}

html:has(.ds-modal-layer),
html:has(.auth-popup--s2) {
  overflow: hidden;
}

:root[data-theme=light] body {
  --avvy-body-canvas: #ebe9f2;
  --avvy-body-text: #191622;
  background: radial-gradient(circle at 72% 0%, rgba(131, 84, 227, 0.09), transparent 30rem), var(--avvy-body-canvas) !important;
}:root,
.avvy-ds-theme-dark {
  --ds-color-canvas: #0d0d14;
  --ds-color-bg-rgb: 13, 13, 20;
  --ds-color-shell: #12121b;
  --ds-color-shell-rgb: 18, 18, 27;
  --ds-color-control-rgb: 28, 27, 39;
  --ds-color-surface-1: #171720;
  --ds-color-surface-2: #1d1c27;
  --ds-color-surface-2-rgb: 29, 28, 39;
  --ds-color-surface-3: #252432;
  --ds-color-surface-3-rgb: 37, 36, 50;
  --ds-color-surface-4: #302e40;
  --ds-color-text-primary: #f4f1ff;
  --ds-color-text-primary-rgb: 244, 241, 255;
  --ds-color-text-secondary: #b8b4c7;
  --ds-color-text-secondary-rgb: 184, 180, 199;
  --ds-color-text-tertiary: #8e899e;
  --ds-color-text-muted: var(--ds-color-text-tertiary);
  --ds-color-accent: #9b68f5;
  --ds-color-accent-rgb: 155, 104, 245;
  --ds-color-accent-soft: #c9acff;
  --ds-color-accent-hover: #b58bff;
  --ds-color-info: #59b8ff;
  --ds-color-info-rgb: 89, 184, 255;
  --ds-color-success: #52d6a0;
  --ds-color-success-rgb: 82, 214, 160;
  --ds-color-warning: #f4bd5e;
  --ds-color-warning-rgb: 244, 189, 94;
  --ds-color-danger: #ff6b6b;
  --ds-color-danger-rgb: 255, 107, 107;
  --ds-gradient-primary-start: #59b8ff;
  --ds-gradient-primary-end: #9b68f5;
  --ds-gradient-brand: linear-gradient(135deg, #7f63ff 0%, #b56ef5 55%, #eb70d3 100%);
  --ds-gradient-feature: linear-gradient(135deg, #59b8ff 0%, #9b68f5 48%, #eb70d3 100%);
  --ds-gradient-feature-flow: linear-gradient(110deg, #59b8ff 0%, #9b68f5 24%, #eb70d3 50%, #9b68f5 76%, #59b8ff 100%);
  --ds-gradient-selected: linear-gradient(110deg, rgba(89, 184, 255, .66) 0%, rgba(155, 104, 245, .7) 52%, rgba(235, 112, 211, .64) 100%);
  --ds-border-subtle: rgba(255, 255, 255, .06);
  --ds-border-default: rgba(255, 255, 255, .1);
  --ds-border-raised: rgba(255, 255, 255, .14);
  --ds-border-muted: var(--ds-border-subtle);
  --ds-radius-s: 8px;
  --ds-radius-sm: var(--ds-radius-s);
  --ds-radius-m: 12px;
  --ds-radius-md: var(--ds-radius-m);
  --ds-radius-l: 16px;
  --ds-radius-xl: 20px;
  --ds-radius-2xl: 28px;
  --ds-control-radius: 12px;
  --ds-button-gap-inline: 12px;
  --ds-button-gap-stack: 12px;
  --ds-type-display-size: 40px;
  --ds-type-display-line: 48px;
  --ds-type-heading-size: 20px;
  --ds-type-heading-line: 28px;
  --ds-type-title-size: 16px;
  --ds-type-title-line: 24px;
  --ds-type-body-size: 14px;
  --ds-type-body-line: 21px;
  --ds-type-secondary-size: 13px;
  --ds-type-secondary-line: 19px;
  --ds-type-metric-size: 12px;
  --ds-type-metric-line: 18px;
  --ds-type-label-size: 11px;
  --ds-type-label-line: 16px;
  --ds-shadow-card: 0 10px 28px rgba(0, 0, 0, .24);
  --ds-shadow-soft: var(--ds-shadow-card);
  --ds-shadow-raised: 0 14px 36px rgba(0, 0, 0, .32);
  --ds-shadow-focus: 0 0 0 4px rgba(89, 184, 255, .16);
  --ds-motion-fast: 140ms;
  --ds-motion-base: 180ms;
  --ds-motion-slow: 260ms;
  --ds-motion-ease: cubic-bezier(.2, 0, 0, 1);
  --ds-font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  --ds-color-surface-0: var(--ds-color-canvas);
  --ds-color-app-bg: var(--ds-color-canvas);
  color-scheme: dark;
}

:root[data-theme="light"],
.avvy-ds-theme-light {
  --ds-color-canvas: #ebe9f2;
  --ds-color-bg-rgb: 235, 233, 242;
  --ds-color-shell: #f7f6fb;
  --ds-color-shell-rgb: 247, 246, 251;
  --ds-color-control-rgb: 245, 242, 250;
  --ds-color-surface-1: #f0eef6;
  --ds-color-surface-2: #ffffff;
  --ds-color-surface-2-rgb: 255, 255, 255;
  --ds-color-surface-3: #f5f2fa;
  --ds-color-surface-3-rgb: 245, 242, 250;
  --ds-color-surface-4: #e9e4f2;
  --ds-color-text-primary: #191622;
  --ds-color-text-primary-rgb: 25, 22, 34;
  --ds-color-text-secondary: #5e586b;
  --ds-color-text-secondary-rgb: 94, 88, 107;
  --ds-color-text-tertiary: #777083;
  --ds-color-accent: #8354e3;
  --ds-color-accent-rgb: 131, 84, 227;
  --ds-color-accent-soft: #6841b6;
  --ds-color-accent-hover: #7445d3;
  --ds-color-info: #277fc2;
  --ds-color-info-rgb: 39, 127, 194;
  --ds-color-success: #17875f;
  --ds-color-success-rgb: 23, 135, 95;
  --ds-color-warning: #a66b08;
  --ds-color-warning-rgb: 166, 107, 8;
  --ds-color-danger: #c73b57;
  --ds-color-danger-rgb: 199, 59, 87;
  --ds-gradient-primary-start: #338bcd;
  --ds-gradient-primary-end: #8354e3;
  --ds-gradient-selected: linear-gradient(110deg, rgba(51, 139, 205, .62) 0%, rgba(131, 84, 227, .68) 52%, rgba(205, 70, 177, .58) 100%);
  --ds-border-subtle: rgba(28, 22, 42, .07);
  --ds-border-default: rgba(28, 22, 42, .11);
  --ds-border-raised: rgba(28, 22, 42, .17);
  --ds-shadow-card: 0 10px 28px rgba(37, 28, 58, .08);
  --ds-shadow-raised: 0 16px 38px rgba(37, 28, 58, .14);
  --ds-shadow-focus: 0 0 0 4px rgba(39, 127, 194, .14);
  color-scheme: light;
}

.avvy-ds {
  box-sizing: border-box;
  background: var(--ds-color-canvas);
  color: var(--ds-color-text-primary);
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-line);
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

.avvy-ds *,
.avvy-ds *::before,
.avvy-ds *::after {
  box-sizing: inherit;
}

.avvy-ds button,
.avvy-ds input,
.avvy-ds select,
.avvy-ds textarea {
  font: inherit;
  letter-spacing: inherit;
}

.avvy-ds input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.avvy-ds select,
.avvy-ds textarea {
  min-width: 0;
  max-width: 100%;
}

.avvy-ds :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
  margin: 0;
}

.avvy-ds :where(h1, h2, h3, h4, h5, h6) {
  color: var(--ds-color-text-primary);
  font-family: inherit;
  font-weight: 600;
}

.avvy-ds button {
  cursor: pointer;
}

.avvy-ds button:disabled,
.avvy-ds input:disabled,
.avvy-ds select:disabled,
.avvy-ds textarea:disabled {
  cursor: not-allowed;
}

.avvy-ds :focus-visible {
  outline: none;
  box-shadow: var(--ds-shadow-focus);
}
:root,
.avvy-ds-theme-dark {
  --ds-color-canvas: #0d0d14;
  --ds-color-bg-rgb: 13, 13, 20;
  --ds-color-shell: #12121b;
  --ds-color-shell-rgb: 18, 18, 27;
  --ds-color-control-rgb: 28, 27, 39;
  --ds-color-surface-1: #171720;
  --ds-color-surface-2: #1d1c27;
  --ds-color-surface-2-rgb: 29, 28, 39;
  --ds-color-surface-3: #252432;
  --ds-color-surface-3-rgb: 37, 36, 50;
  --ds-color-surface-4: #302e40;
  --ds-color-text-primary: #f4f1ff;
  --ds-color-text-primary-rgb: 244, 241, 255;
  --ds-color-text-secondary: #b8b4c7;
  --ds-color-text-secondary-rgb: 184, 180, 199;
  --ds-color-text-tertiary: #8e899e;
  --ds-color-text-muted: var(--ds-color-text-tertiary);
  --ds-color-accent: #9b68f5;
  --ds-color-accent-rgb: 155, 104, 245;
  --ds-color-accent-soft: #c9acff;
  --ds-color-accent-hover: #b58bff;
  --ds-color-info: #59b8ff;
  --ds-color-info-rgb: 89, 184, 255;
  --ds-color-success: #52d6a0;
  --ds-color-success-rgb: 82, 214, 160;
  --ds-color-warning: #f4bd5e;
  --ds-color-warning-rgb: 244, 189, 94;
  --ds-color-danger: #ff6b6b;
  --ds-color-danger-rgb: 255, 107, 107;
  --ds-gradient-primary-start: #59b8ff;
  --ds-gradient-primary-end: #9b68f5;
  --ds-gradient-brand: linear-gradient(135deg, #7f63ff 0%, #b56ef5 55%, #eb70d3 100%);
  --ds-gradient-feature: linear-gradient(135deg, #59b8ff 0%, #9b68f5 48%, #eb70d3 100%);
  --ds-gradient-feature-flow: linear-gradient(110deg, #59b8ff 0%, #9b68f5 24%, #eb70d3 50%, #9b68f5 76%, #59b8ff 100%);
  --ds-gradient-selected: linear-gradient(110deg, rgba(89, 184, 255, .66) 0%, rgba(155, 104, 245, .7) 52%, rgba(235, 112, 211, .64) 100%);
  --ds-border-subtle: rgba(255, 255, 255, .06);
  --ds-border-default: rgba(255, 255, 255, .1);
  --ds-border-raised: rgba(255, 255, 255, .14);
  --ds-border-muted: var(--ds-border-subtle);
  --ds-radius-s: 8px;
  --ds-radius-sm: var(--ds-radius-s);
  --ds-radius-m: 12px;
  --ds-radius-md: var(--ds-radius-m);
  --ds-radius-l: 16px;
  --ds-radius-xl: 20px;
  --ds-radius-2xl: 28px;
  --ds-control-radius: 12px;
  --ds-button-gap-inline: 12px;
  --ds-button-gap-stack: 12px;
  --ds-type-display-size: 40px;
  --ds-type-display-line: 48px;
  --ds-type-heading-size: 20px;
  --ds-type-heading-line: 28px;
  --ds-type-title-size: 16px;
  --ds-type-title-line: 24px;
  --ds-type-body-size: 14px;
  --ds-type-body-line: 21px;
  --ds-type-secondary-size: 13px;
  --ds-type-secondary-line: 19px;
  --ds-type-metric-size: 12px;
  --ds-type-metric-line: 18px;
  --ds-type-label-size: 11px;
  --ds-type-label-line: 16px;
  --ds-shadow-card: 0 10px 28px rgba(0, 0, 0, .24);
  --ds-shadow-soft: var(--ds-shadow-card);
  --ds-shadow-raised: 0 14px 36px rgba(0, 0, 0, .32);
  --ds-shadow-focus: 0 0 0 4px rgba(89, 184, 255, .16);
  --ds-motion-fast: 140ms;
  --ds-motion-base: 180ms;
  --ds-motion-slow: 260ms;
  --ds-motion-ease: cubic-bezier(.2, 0, 0, 1);
  --ds-font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  --ds-color-surface-0: var(--ds-color-canvas);
  --ds-color-app-bg: var(--ds-color-canvas);
  color-scheme: dark;
}

:root[data-theme="light"],
.avvy-ds-theme-light {
  --ds-color-canvas: #ebe9f2;
  --ds-color-bg-rgb: 235, 233, 242;
  --ds-color-shell: #f7f6fb;
  --ds-color-shell-rgb: 247, 246, 251;
  --ds-color-control-rgb: 245, 242, 250;
  --ds-color-surface-1: #f0eef6;
  --ds-color-surface-2: #ffffff;
  --ds-color-surface-2-rgb: 255, 255, 255;
  --ds-color-surface-3: #f5f2fa;
  --ds-color-surface-3-rgb: 245, 242, 250;
  --ds-color-surface-4: #e9e4f2;
  --ds-color-text-primary: #191622;
  --ds-color-text-primary-rgb: 25, 22, 34;
  --ds-color-text-secondary: #5e586b;
  --ds-color-text-secondary-rgb: 94, 88, 107;
  --ds-color-text-tertiary: #777083;
  --ds-color-accent: #8354e3;
  --ds-color-accent-rgb: 131, 84, 227;
  --ds-color-accent-soft: #6841b6;
  --ds-color-accent-hover: #7445d3;
  --ds-color-info: #277fc2;
  --ds-color-info-rgb: 39, 127, 194;
  --ds-color-success: #17875f;
  --ds-color-success-rgb: 23, 135, 95;
  --ds-color-warning: #a66b08;
  --ds-color-warning-rgb: 166, 107, 8;
  --ds-color-danger: #c73b57;
  --ds-color-danger-rgb: 199, 59, 87;
  --ds-gradient-primary-start: #338bcd;
  --ds-gradient-primary-end: #8354e3;
  --ds-gradient-selected: linear-gradient(110deg, rgba(51, 139, 205, .62) 0%, rgba(131, 84, 227, .68) 52%, rgba(205, 70, 177, .58) 100%);
  --ds-border-subtle: rgba(28, 22, 42, .07);
  --ds-border-default: rgba(28, 22, 42, .11);
  --ds-border-raised: rgba(28, 22, 42, .17);
  --ds-shadow-card: 0 10px 28px rgba(37, 28, 58, .08);
  --ds-shadow-raised: 0 16px 38px rgba(37, 28, 58, .14);
  --ds-shadow-focus: 0 0 0 4px rgba(39, 127, 194, .14);
  color-scheme: light;
}

.avvy-ds {
  box-sizing: border-box;
  background: var(--ds-color-canvas);
  color: var(--ds-color-text-primary);
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-line);
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

.avvy-ds *,
.avvy-ds *::before,
.avvy-ds *::after {
  box-sizing: inherit;
}

.avvy-ds button,
.avvy-ds input,
.avvy-ds select,
.avvy-ds textarea {
  font: inherit;
  letter-spacing: inherit;
}

.avvy-ds input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.avvy-ds select,
.avvy-ds textarea {
  min-width: 0;
  max-width: 100%;
}

.avvy-ds :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
  margin: 0;
}

.avvy-ds :where(h1, h2, h3, h4, h5, h6) {
  color: var(--ds-color-text-primary);
  font-family: inherit;
  font-weight: 600;
}

.avvy-ds button {
  cursor: pointer;
}

.avvy-ds button:disabled,
.avvy-ds input:disabled,
.avvy-ds select:disabled,
.avvy-ds textarea:disabled {
  cursor: not-allowed;
}

.avvy-ds :focus-visible {
  outline: none;
  box-shadow: var(--ds-shadow-focus);
}

.ds-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-accent);
  color: #fff;
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-line);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--ds-motion-fast), border-color var(--ds-motion-fast), color var(--ds-motion-fast), transform var(--ds-motion-fast);
}

.ds-button:hover:not(:disabled) {
  background: var(--ds-color-accent-hover);
}

.ds-button:active:not(:disabled) {
  transform: translateY(1px);
}

.ds-button:disabled {
  opacity: .48;
}

.ds-button--secondary {
  border-color: var(--ds-border-default);
  background: var(--ds-color-surface-3);
  color: var(--ds-color-text-primary);
}

.ds-button--secondary:hover:not(:disabled) {
  background: var(--ds-color-surface-4);
}

.ds-button--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ds-color-text-secondary);
}

.ds-button--ghost:hover:not(:disabled) {
  background: var(--ds-color-surface-3);
  color: var(--ds-color-text-primary);
}

.ds-button--danger {
  background: rgba(255, 107, 107, .1);
  color: var(--ds-color-danger);
  border-color: rgba(255, 107, 107, .24);
}

.ds-button--danger:hover:not(:disabled) {
  background: rgba(255, 107, 107, .16);
}

.ds-button--compact {
  min-height: 40px;
  padding: 0 14px;
  font-size: var(--ds-type-secondary-size);
}

.ds-button--wide {
  width: 100%;
}

.ds-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ds-actions-row .ds-button {
  flex: 0 0 auto;
}

.ds-icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ds-icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-primary);
  transition: background var(--ds-motion-fast), border-color var(--ds-motion-fast), color var(--ds-motion-fast), transform var(--ds-motion-fast);
}

.ds-icon-button:hover:not(:disabled) {
  border-color: var(--ds-border-raised);
  background: var(--ds-color-surface-3);
}

.ds-icon-button--active {
  border-color: rgba(155, 104, 245, .55);
  background: rgba(155, 104, 245, .14);
  color: var(--ds-color-accent-soft);
}

.ds-search {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-secondary);
}

.ds-search:focus-within {
  border-color: var(--ds-color-info);
  box-shadow: var(--ds-shadow-focus);
}

.ds-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ds-color-text-primary);
}

.ds-search input::placeholder {
  color: var(--ds-color-text-tertiary);
}

.avvy-ds :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]), select, textarea, .avvy__input-text, .ds-field__control) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-m);
  background-color: var(--ds-color-surface-2);
  color: var(--ds-color-text-primary);
  font: inherit;
  letter-spacing: 0;
  outline: none;
  transition: border-color var(--ds-motion-fast), background-color var(--ds-motion-fast), box-shadow var(--ds-motion-fast), color var(--ds-motion-fast);
}

.avvy-ds :where(textarea, textarea.avvy__input-text, .ds-field__control--textarea) {
  min-height: 106px;
  resize: vertical;
  line-height: var(--ds-type-body-line);
}

.avvy-ds :where(select, select.avvy__input-text, select.ds-field__control):not([multiple]) {
  appearance: none;
  padding-right: var(--ds-select-padding-right, 44px);
  background-image: var(--ds-select-chevron-image, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A9A4B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"));
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.avvy-ds :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]), select, textarea, .avvy__input-text, .ds-field__control):hover:not(:disabled) {
  border-color: var(--ds-border-raised);
}

.avvy-ds :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]), select, textarea, .avvy__input-text, .ds-field__control):focus,
.avvy-ds :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]), select, textarea, .avvy__input-text, .ds-field__control):focus-visible {
  border-color: var(--ds-color-info);
  box-shadow: var(--ds-shadow-focus);
}

.avvy-ds :where(input, textarea)::placeholder {
  color: var(--ds-color-text-tertiary);
}

.avvy-ds :where(input, select, textarea, .avvy__input-text, .ds-field__control):disabled {
  opacity: .62;
}

.avvy-ds :where(.ds-select select) {
  background-image: none;
}

.ds-field {
  display: grid;
  gap: 7px;
}

.ds-field__label {
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
  font-weight: 600;
}

.ds-field__control {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-primary);
  font: inherit;
  outline: none;
}

select.ds-field__control,
.ds-field__control:is(select) {
  appearance: none;
  padding-right: var(--ds-select-padding-right, 44px);
  background-image: var(--ds-select-chevron-image, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A9A4B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"));
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.ds-field__control:focus {
  border-color: var(--ds-color-info);
  box-shadow: var(--ds-shadow-focus);
}

.ds-field__control.is-error {
  border-color: rgba(255, 107, 107, .72);
}

.ds-field__control--textarea {
  min-height: 124px;
  resize: vertical;
}

.ds-field__error {
  margin-top: 6px;
  color: var(--ds-color-danger);
  font-size: var(--ds-type-label-size);
  line-height: var(--ds-type-label-line);
}

.ds-select {
  position: relative;
  min-width: 0;
  width: 100%;
}

.ds-select select {
  width: 100%;
  min-height: 44px;
  appearance: none;
  padding: 0 var(--ds-select-padding-right, 44px) 0 14px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-control-radius);
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-primary);
  outline: 0;
}

.ds-select select:hover:not(:disabled) {
  border-color: var(--ds-border-raised);
}

.ds-select select:focus {
  border-color: var(--ds-color-info);
  box-shadow: var(--ds-shadow-focus);
}

.ds-select__chevron {
  position: absolute;
  right: 13px;
  bottom: 13px;
  pointer-events: none;
  color: var(--ds-color-text-tertiary);
}

.ds-tabs {
  display: inline-grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 5px;
  padding: 4px;
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-2);
}

.ds-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ds-color-text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.ds-dashboard-page > .ds-tabs {
  margin-bottom: 24px;
}

.ds-tab[aria-selected="true"] {
  background: var(--ds-color-surface-4);
  color: var(--ds-color-text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}

.ds-sidebar {
  display: flex;
  width: 260px;
  min-height: 100%;
  flex-direction: column;
  gap: 20px;
  padding: 20px 14px 16px;
  border-right: 1px solid var(--ds-border-subtle);
  background: var(--ds-color-surface-1);
}

.ds-sidebar__head,
.ds-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ds-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: var(--ds-color-text-primary);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}

.ds-brand img {
  width: 22.9px;
  height: 20px;
  flex: none;
}

.ds-sidebar__nav {
  overflow-y: auto;
  scrollbar-width: none;
}

.ds-sidebar__nav::-webkit-scrollbar {
  display: none;
}

.ds-nav-group {
  margin-bottom: 22px;
}

.ds-nav-group__title {
  margin: 0 12px 8px;
  color: var(--ds-color-text-tertiary);
  font-size: var(--ds-type-label-size);
  line-height: var(--ds-type-label-line);
  font-weight: 600;
  letter-spacing: .1em;
}

.ds-nav-link {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-m);
  background: transparent;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
  text-align: left;
  text-decoration: none;
  transition: color var(--ds-motion-fast), background var(--ds-motion-fast), border-color var(--ds-motion-fast);
}

.ds-nav-link:hover,
.ds-nav-link[aria-current="page"] {
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-primary);
}

.ds-sidebar__footer {
  margin-top: auto;
}

.ds-topbar {
  display: grid;
  height: 72px;
  min-height: 72px;
  grid-template-columns: minmax(360px, 1fr) auto;
  justify-content: stretch;
  padding: 0;
  border-bottom: 1px solid var(--ds-border-subtle);
  background: color-mix(in srgb, var(--ds-color-shell) 88%, transparent);
  backdrop-filter: blur(18px);
}

.ds-topbar__search {
  width: 100%;
  min-width: 0;
}

.ds-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-card-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  padding-left: 3px;
}

.ds-dashboard-page {
  display: block;
  min-width: 0;
  color: var(--ds-color-text-primary);
}

.ds-dashboard-page--section {
  min-height: calc(100vh - 72px);
  padding: 34px 0 20px;
}

.ds-dashboard-heading {
  margin: 24px 0 18px;
}

.ds-dashboard-heading h1 {
  margin: 0;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-display-size);
  line-height: var(--ds-type-display-line);
  font-weight: 600;
  letter-spacing: -.035em;
}

.ds-dashboard-heading h1:focus {
  outline: none;
}

.ds-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 8px 0 30px;
}

.ds-page-hero__copy {
  min-width: 0;
}

.ds-page-hero__action {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: flex-end;
}

.ds-page-hero p,
.ds-section-heading p {
  margin: 0 0 6px;
  color: var(--ds-color-accent-soft);
  font-size: var(--ds-type-label-size);
  line-height: var(--ds-type-label-line);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ds-page-hero h1 {
  margin: 0;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-display-size);
  line-height: var(--ds-type-display-line);
  font-weight: 600;
  letter-spacing: -.035em;
}

.ds-page-hero span {
  display: block;
  max-width: 560px;
  margin-top: 8px;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-line);
}

.ds-section {
  display: grid;
  gap: 14px;
}

.ds-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.ds-section-heading h2 {
  margin: 0;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-heading-size);
  line-height: var(--ds-type-heading-line);
}

.ds-card-row {
  display: grid;
  grid-auto-columns: minmax(250px, 270px);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.ds-card-row > * {
  scroll-snap-align: start;
}

.ds-featured-card {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--ds-border-raised);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-color-surface-1);
  box-shadow: var(--ds-shadow-raised);
}

.ds-featured-card__media,
.ds-featured-card__shade {
  position: absolute;
  inset: 0;
}

.ds-featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-featured-card__shade {
  background:
    linear-gradient(90deg, rgba(7, 7, 12, .92), rgba(7, 7, 12, .54) 46%, rgba(7, 7, 12, .1)),
    linear-gradient(0deg, rgba(7, 7, 12, .54), transparent 60%);
}

.ds-featured-card__favorite {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
}

.ds-featured-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 610px;
  align-content: end;
  gap: 12px;
  padding: 34px;
}

.ds-featured-card__body p {
  margin: 0;
  color: var(--ds-color-accent-soft);
  font-size: var(--ds-type-label-size);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ds-featured-card__body h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.ds-featured-card__body span {
  color: rgba(255, 255, 255, .78);
}

.ds-featured-card__tags,
.ds-featured-card__actions,
.ds-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ds-featured-card__tags em {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  font-size: var(--ds-type-label-size);
  font-style: normal;
  font-weight: 700;
}

.ds-toolbar {
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-l);
  background: var(--ds-color-surface-1);
}

.ds-page-toolbar {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-xl);
  background: linear-gradient(145deg, rgba(29, 28, 39, .94), rgba(23, 23, 32, .92));
  box-shadow: var(--ds-shadow-card);
}

.ds-toolbar-grid {
  display: grid;
  grid-template-columns: var(--ds-toolbar-columns, repeat(3, minmax(180px, 1fr)) auto);
  align-items: end;
  gap: 12px;
}

.ds-filter-group,
.ds-filter-select-field {
  min-width: 0;
}

.ds-field-label,
.ds-filter-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ds-color-text-tertiary);
  font-size: 10px;
  line-height: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ds-segmented-filter {
  display: flex;
  max-width: 100%;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: none;
}

.ds-filter-select { position: relative; min-width: 0; }

.ds-filter-select__native { width: 100%; min-height: 44px; }

.ds-filter-select__trigger {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-control-radius);
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
  font-weight: 600;
  text-align: left;
}

.ds-filter-select__trigger:hover:not(:disabled) { border-color: var(--ds-border-raised); background: var(--ds-color-surface-3); }

.ds-filter-select__trigger:focus-visible,
.ds-filter-select[data-open="true"] .ds-filter-select__trigger { border-color: var(--ds-color-info); outline: none; box-shadow: var(--ds-shadow-focus); }

.ds-filter-select__trigger .ds-icon { width: 18px; height: 18px; flex: none; margin-left: auto; transition: transform var(--ds-motion-fast); }

.ds-filter-select[data-open="true"] .ds-filter-select__trigger .ds-icon { transform: rotate(180deg); }

.ds-filter-select__trigger:disabled { opacity: .58; cursor: default; }

.ds-filter-select__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  gap: 3px;
  max-height: min(264px, 50dvh);
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--ds-border-raised);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-2);
  box-shadow: var(--ds-shadow-raised);
  overscroll-behavior: contain;
}

.ds-filter-select__menu button { min-height: 38px; padding: 0 10px; border: 0; border-radius: var(--ds-radius-s); background: transparent; color: var(--ds-color-text-secondary); font-size: var(--ds-type-secondary-size); text-align: left; }

.ds-filter-select__menu button:hover,
.ds-filter-select__menu button:focus-visible { outline: none; background: var(--ds-color-surface-4); color: var(--ds-color-text-primary); }

.ds-filter-select__menu button[aria-selected="true"] { background: var(--ds-color-surface-3); color: var(--ds-color-accent-soft); font-weight: 600; }

.ds-segmented-filter::-webkit-scrollbar {
  display: none;
}

.ds-filter-chip {
  display: inline-flex;
  min-height: 38px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--ds-border-default);
  border-radius: 999px;
  background: var(--ds-color-surface-1);
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
  text-align: center;
}

.ds-filter-chip:hover {
  border-color: var(--ds-border-raised);
  background: var(--ds-color-surface-3);
  color: var(--ds-color-text-primary);
}

.ds-filter-chip.is-active {
  border-color: transparent;
  background: linear-gradient(145deg, var(--ds-color-surface-4), var(--ds-color-surface-2)) padding-box, var(--ds-gradient-selected) border-box;
  color: var(--ds-color-accent-soft);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.ds-page-toolbar > .ds-button,
.ds-toolbar-grid > .ds-button {
  min-height: 40px;
  align-self: end;
}

.ds-page-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 24px 2px 14px;
}

.ds-page-summary--split {
  justify-content: space-between;
}

.ds-page-summary--end {
  justify-content: flex-end;
}

.ds-page-summary span {
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-heading-size);
  line-height: var(--ds-type-heading-line);
  font-weight: 600;
}

.ds-page-summary small {
  color: var(--ds-color-text-tertiary);
  font-size: var(--ds-type-metric-size);
  line-height: var(--ds-type-metric-line);
}

.ds-page-grid {
  min-width: 0;
}

.ds-page-grid--cards {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  padding-left: 3px;
}

.ds-page-grid--dashboard {
  display: grid;
  gap: 18px;
}

.ds-page-grid--columns {
  display: grid;
  grid-template-columns: var(--ds-page-grid-columns, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.ds-page-grid--wide-narrow {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

@media (max-width: 1200px) {
  .ds-page-grid--columns {
    grid-template-columns: 1fr;
  }
}

.ds-page-panel {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-color-surface-1);
  box-shadow: var(--ds-shadow-card);
}

.ds-page-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ds-page-panel__head p {
  margin: 0 0 6px;
  color: var(--ds-color-accent-soft);
  font-size: var(--ds-type-label-size);
  line-height: var(--ds-type-label-line);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ds-page-panel__head h2 {
  margin: 0;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-title-size);
  line-height: var(--ds-type-title-line);
  font-weight: 700;
}

.ds-page-panel__head span {
  display: block;
  margin-top: 6px;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-page-panel__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.ds-panel-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.ds-toolbar__filters {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ds-empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 240px;
  padding: 34px;
  border: 1px dashed var(--ds-border-raised);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-color-surface-1);
  color: var(--ds-color-text-secondary);
  text-align: center;
}

.ds-empty-state > .ds-icon {
  width: 42px;
  height: 42px;
  color: var(--ds-color-accent-soft);
}

.ds-empty-state strong {
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-title-size);
  line-height: var(--ds-type-title-line);
}

.ds-empty-state span {
  max-width: 520px;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-loading-state {
  display: grid;
  width: 100%;
  min-height: 240px;
  flex: 1 0 100%;
  grid-column: 1 / -1;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-loading-state > span,
.ds-loading-state__spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(155, 104, 245, .24);
  border-top-color: var(--ds-color-accent-soft);
  border-radius: 999px;
  animation: ds-loading-spin 760ms linear infinite;
}

.inventory-card-art > .ds-loading-state__spinner,
.inventory-card-media > .ds-loading-state__spinner {
  position: absolute;
  z-index: 2;
  top: calc(50% - 9px);
  left: calc(50% - 9px);
}

.ds-loading-state strong {
  color: inherit;
  font: inherit;
  font-weight: 600;
}

@keyframes ds-loading-spin {
  to { transform: rotate(360deg); }
}

.create-brane-page-s2__wizard,
.brane-wizard-s2 {
  min-width: 0;
}

.create-brane-page-s2__wizard {
  display: grid;
}

.brane-wizard-s2 {
  display: grid;
  gap: 18px;
}

.brane-wizard-s2__stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-l);
  background: var(--ds-color-surface-1);
}

.brane-wizard-s2__step {
  display: flex;
  min-height: 58px;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-secondary);
  text-align: left;
}

.brane-wizard-s2__step span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border-radius: 999px;
  background: var(--ds-color-surface-4);
  color: var(--ds-color-text-primary);
  font-weight: 800;
}

.brane-wizard-s2__step strong {
  min-width: 0;
  overflow: hidden;
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brane-wizard-s2__step.is-active,
.brane-wizard-s2__step.is-complete {
  border-color: rgba(155, 104, 245, .46);
  background: rgba(155, 104, 245, .12);
  color: var(--ds-color-text-primary);
}

.brane-wizard-s2__layout {
  display: block;
  padding-top: 0;
}

.brane-wizard-s2__main {
  padding: 0;
}

.ds-card-footer,
.ds-card-tags,
.ds-modal-meta,
.ds-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.oauth-callback-page-s2 {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  background: var(--ds-color-app-bg);
  color: var(--ds-color-text-primary);
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
}

.oauth-callback-panel-s2 {
  width: min(420px, 100%);
  text-align: center;
}

.route-fallback-s2 {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  background: var(--ds-color-app-bg);
  color: var(--ds-color-text-primary);
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
}

.prompt-workspace__title {
  margin: 0 0 12px;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-line);
  font-weight: 700;
}

.prompt-workspace__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.prompt-workspace__credits {
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.prompt-workspace__error {
  margin-top: 10px;
  color: var(--ds-color-danger);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-tag,
.ds-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--ds-border-default);
  border-radius: 999px;
  background: var(--ds-color-surface-3);
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-label-size);
  line-height: var(--ds-type-label-line);
  font-style: normal;
  font-weight: 700;
}

.ds-tag--featured {
  border-color: transparent;
  background: linear-gradient(var(--ds-color-surface-3), var(--ds-color-surface-3)) padding-box, var(--ds-gradient-selected) border-box;
  color: var(--ds-color-accent-soft);
}

.ds-tag--new,
.ds-status--available,
.ds-status--public {
  border-color: rgba(82, 214, 160, .32);
  background: rgba(82, 214, 160, .08);
  color: var(--ds-color-success);
}

.ds-status--private {
  border-color: rgba(244, 189, 94, .28);
  background: rgba(244, 189, 94, .08);
  color: var(--ds-color-warning);
}

.ds-status--failed,
.ds-status--danger {
  border-color: rgba(255, 107, 107, .28);
  background: rgba(255, 107, 107, .08);
  color: var(--ds-color-danger);
}

.ds-data-list {
  display: grid;
  gap: 10px;
}

.ds-data-row {
  display: grid;
  grid-template-columns: var(--ds-data-row-columns, minmax(260px, 1fr) auto auto auto);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-l);
  background: var(--ds-color-surface-2);
}

.ds-data-row.is-muted {
  opacity: .58;
}

.ds-data-cell {
  min-width: 0;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-data-cell > strong {
  display: block;
  overflow: hidden;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-data-cell--primary {
  color: var(--ds-color-text-primary);
}

.ds-data-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.ds-data-identity img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-3);
  object-fit: cover;
}

.ds-data-identity span,
.ds-data-identity strong,
.ds-data-identity small {
  min-width: 0;
}

.ds-data-identity span {
  display: grid;
  gap: 3px;
}

.ds-data-identity strong {
  overflow: hidden;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-line);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-data-identity small,
.ds-data-kicker {
  overflow: hidden;
  color: var(--ds-color-text-tertiary);
  font-size: var(--ds-type-label-size);
  line-height: var(--ds-type-label-line);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-data-kicker {
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.ds-data-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ds-text-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ds-color-text-secondary);
  font: inherit;
  font-size: var(--ds-type-secondary-size);
  font-weight: 700;
  cursor: pointer;
}

.ds-text-button:hover,
.ds-text-button:focus-visible {
  color: var(--ds-color-text-primary);
}

.ds-notice {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-l);
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-notice > .ds-icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}

.ds-notice > span {
  display: grid;
  flex: 1 1 180px;
  min-width: 0;
  gap: 3px;
}

.ds-notice > .ds-button {
  flex: none;
  margin-left: auto;
}

.ds-notice strong {
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-notice small {
  color: inherit;
  font: inherit;
}

.ds-notice--info {
  border-color: rgba(143, 103, 255, .26);
  background: rgba(143, 103, 255, .08);
}

.ds-notice--warning {
  border-color: rgba(244, 189, 94, .28);
  background: rgba(244, 189, 94, .08);
  color: var(--ds-color-warning);
}

.ds-notice--success {
  border-color: rgba(82, 214, 160, .28);
  background: rgba(82, 214, 160, .08);
  color: var(--ds-color-success);
}

.ds-notice--danger {
  border-color: rgba(255, 107, 107, .28);
  background: rgba(255, 107, 107, .08);
  color: var(--ds-color-danger);
}

.ds-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  min-width: 0;
}

.ds-metric-card {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-l);
  background: var(--ds-color-surface-2);
}

.ds-metric-card__icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-3);
  color: var(--ds-color-accent-soft);
}

.ds-metric-card__icon .ds-icon {
  width: 17px;
  height: 17px;
}

.ds-metric-card__label,
.ds-metric-card__meta {
  overflow: hidden;
  color: var(--ds-color-text-tertiary);
  font-size: var(--ds-type-label-size);
  line-height: var(--ds-type-label-line);
  text-overflow: ellipsis;
}

.ds-metric-card__label {
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ds-metric-card__value {
  overflow-wrap: anywhere;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-title-size);
  line-height: var(--ds-type-title-line);
}

.ds-metric-card--success .ds-metric-card__icon {
  border-color: rgba(82, 214, 160, .28);
  background: rgba(82, 214, 160, .08);
  color: var(--ds-color-success);
}

.ds-metric-card--warning .ds-metric-card__icon {
  border-color: rgba(244, 189, 94, .28);
  background: rgba(244, 189, 94, .08);
  color: var(--ds-color-warning);
}

.ds-metric-card--info .ds-metric-card__icon {
  border-color: rgba(91, 168, 255, .28);
  background: rgba(91, 168, 255, .08);
  color: var(--ds-color-info);
}

.ds-metric-card--danger .ds-metric-card__icon {
  border-color: rgba(255, 107, 107, .28);
  background: rgba(255, 107, 107, .08);
  color: var(--ds-color-danger);
}

.ds-status-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ds-status-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-l);
  background: var(--ds-color-surface-2);
}

.ds-status-row__icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-3);
  color: var(--ds-color-text-tertiary);
}

.ds-status-row__icon .ds-icon {
  width: 17px;
  height: 17px;
}

.ds-status-row__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.ds-status-row__copy strong {
  overflow: hidden;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-status-row__copy small {
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-label-size);
  line-height: var(--ds-type-label-line);
}

.ds-status-row__action {
  display: flex;
  justify-content: flex-end;
}

.ds-status-row.is-ready .ds-status-row__icon,
.ds-status-row--success .ds-status-row__icon {
  background: rgba(82, 214, 160, .1);
  color: var(--ds-color-success);
}

.ds-status-row--warning .ds-status-row__icon {
  background: rgba(244, 189, 94, .1);
  color: var(--ds-color-warning);
}

.ds-status-row--danger .ds-status-row__icon {
  background: rgba(255, 107, 107, .1);
  color: var(--ds-color-danger);
}

.ds-switch-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-l);
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-primary);
}

.ds-switch-row__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.ds-switch-row__copy strong {
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-switch-row__copy small {
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-label-size);
  line-height: var(--ds-type-label-line);
}

.ds-switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  flex: none;
  align-items: center;
}

.ds-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
}

.ds-switch i {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--ds-border-default);
  border-radius: 999px;
  background: var(--ds-color-surface-3);
  transition: background var(--ds-motion-fast), border-color var(--ds-motion-fast);
}

.ds-switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  content: "";
  border-radius: 999px;
  background: var(--ds-color-text-tertiary);
  transition: transform var(--ds-motion-fast), background var(--ds-motion-fast);
}

.ds-switch input:checked + i {
  border-color: rgba(155, 104, 245, .48);
  background: rgba(155, 104, 245, .22);
}

.ds-switch input:checked + i::after {
  transform: translateX(18px);
  background: var(--ds-color-accent-soft);
}

.ds-switch input:focus-visible + i {
  box-shadow: var(--ds-shadow-focus);
}

.ds-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-l);
  background: var(--ds-color-surface-2);
}

.ds-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-table th,
.ds-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ds-border-subtle);
  text-align: left;
  vertical-align: top;
}

.ds-table th {
  color: var(--ds-color-text-tertiary);
  font-size: var(--ds-type-label-size);
  line-height: var(--ds-type-label-line);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.ds-table td strong,
.ds-table td b {
  color: var(--ds-color-text-primary);
}

.ds-meta-list {
  display: grid;
  grid-template-columns: minmax(110px, .44fr) minmax(0, 1fr);
  align-content: start;
  gap: 10px 14px;
  margin: 0;
}

.ds-meta-list dt {
  color: var(--ds-color-text-tertiary);
  font-size: var(--ds-type-label-size);
  line-height: var(--ds-type-label-line);
  text-transform: uppercase;
}

.ds-meta-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-favorite {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
}

.ds-card-creator {
  overflow: hidden;
  color: var(--ds-color-text-tertiary);
  font-size: var(--ds-type-label-size);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-modal-layer {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(7, 7, 12, .72);
  backdrop-filter: blur(10px);
  overscroll-behavior: contain;
}

.ds-modal {
  display: flex;
  width: min(100%, 640px);
  max-height: calc(100dvh - 48px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ds-border-raised);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-color-surface-1);
  box-shadow: var(--ds-shadow-raised);
}

.password-hints {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.password-hints__meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ds-color-surface-3);
}

.password-hints__meter-fill {
  height: 100%;
  transition: width 0.25s ease;
}

.password-hints__label {
  color: var(--ds-color-text-tertiary);
  font-size: 12px;
  line-height: 1.3;
}

.password-hints__rules {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ds-color-text-tertiary);
  font-size: 12px;
  line-height: 1.35;
}

.password-hints__rules li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-hints__rules li.is-valid {
  color: var(--ds-color-success);
}

.password-hints__rules .ds-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.ds-modal--wide {
  width: min(100%, 920px);
}

.ds-modal--narrow {
  width: min(100%, 480px);
}

.ds-modal--xwide {
  width: min(100%, 1120px);
}

.ds-modal--danger {
  border-color: rgba(255, 91, 111, .3);
}

.ds-modal__head,
.ds-modal__footer {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ds-border-subtle);
}

.ds-modal__footer {
  justify-content: flex-end;
  border-top: 1px solid var(--ds-border-subtle);
  border-bottom: 0;
}

.ds-modal__heading {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.ds-modal__eyebrow {
  margin: 0;
  color: var(--ds-color-accent-soft);
  font-size: var(--ds-type-label-size);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ds-modal__title {
  margin: 0;
  font-size: var(--ds-type-heading-size);
  line-height: var(--ds-type-heading-line);
}

.ds-modal__subtitle {
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-modal__head .ds-icon-button {
  flex: none;
}

.ds-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px;
}

.ds-detail-modal {
  position: relative;
  display: grid;
  width: min(1040px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--ds-border-raised);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-color-surface-1);
  color: var(--ds-color-text-primary);
  box-shadow: var(--ds-shadow-raised);
}

.ds-detail-modal__close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
}

.ds-detail-modal__media {
  display: flex;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-right: 1px solid var(--ds-border-subtle);
  background: var(--ds-color-surface-1);
}

.ds-detail-modal__art {
  position: relative;
  display: block;
  min-height: 360px;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-l);
  background:
    radial-gradient(circle at 50% 36%, rgba(155, 104, 245, .14), transparent 42%),
    var(--ds-color-surface-3);
}

.ds-detail-modal__image {
  position: absolute;
  inset: 0;
  background-image: var(--ds-detail-image);
  background-position: center;
  background-size: cover;
}

.ds-detail-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 9px;
}

.ds-detail-modal__gallery-button {
  min-width: 0;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-2);
}

.ds-detail-modal__gallery-button[aria-pressed="true"] {
  border-color: var(--ds-color-accent);
  box-shadow: var(--ds-shadow-focus);
}

.ds-detail-modal__thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  background-image: var(--ds-detail-thumbnail);
  background-position: center;
  background-size: cover;
}

.ds-detail-modal__content {
  display: flex;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow-y: auto;
  padding: 26px 28px 18px;
  scrollbar-gutter: stable;
}

.ds-detail-modal__summary {
  display: grid;
  gap: 10px;
}

.ds-detail-modal__title-row {
  display: grid;
  gap: 6px;
  padding-right: 44px;
}

.ds-detail-modal__eyebrow {
  margin: 0;
  color: var(--ds-color-accent-soft);
  font-size: var(--ds-type-label-size);
  line-height: var(--ds-type-label-line);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ds-detail-modal__title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.ds-detail-modal__title-line h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ds-color-text-primary);
  font-size: 24px;
  line-height: 31px;
  font-weight: 700;
}

.ds-status-pill {
  flex: none;
  padding: 5px 8px;
  border: 1px solid var(--ds-border-default);
  border-radius: 999px;
  color: var(--ds-color-text-secondary);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.ds-status-pill--success,
.ds-status-pill.status-public,
.ds-status-pill.status-ready,
.ds-status-pill.status-complete,
.ds-status-pill.status-completed {
  border-color: rgba(82, 214, 160, .34);
  background: rgba(82, 214, 160, .1);
  color: var(--ds-color-success);
}

.ds-status-pill--info,
.ds-status-pill.status-unlisted {
  border-color: rgba(91, 168, 255, .34);
  background: rgba(91, 168, 255, .1);
  color: var(--ds-color-info);
}

.ds-status-pill--warning,
.ds-status-pill.status-private,
.ds-status-pill.status-draft,
.ds-status-pill.status-processing {
  border-color: rgba(244, 189, 94, .32);
  background: rgba(244, 189, 94, .1);
  color: var(--ds-color-warning);
}

.ds-status-pill--danger,
.ds-status-pill.status-failed,
.ds-status-pill.status-error {
  border-color: rgba(255, 107, 107, .34);
  background: rgba(255, 107, 107, .1);
  color: var(--ds-color-danger);
}

.ds-detail-modal__byline,
.ds-detail-modal__description {
  margin: 0;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-detail-modal__byline strong {
  color: var(--ds-color-text-primary);
}

.ds-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.ds-tag-list em {
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid var(--ds-border-subtle);
  border-radius: 999px;
  background: var(--ds-color-surface-3);
  color: var(--ds-color-text-secondary);
  font-size: 10px;
  line-height: 14px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.ds-meta-grid span {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-1);
  color: var(--ds-color-text-tertiary);
}

.ds-meta-grid small {
  overflow: hidden;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ds-meta-grid strong {
  overflow: hidden;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.ds-form-grid,
.ds-field {
  display: grid;
}

.ds-form-grid {
  width: 100%;
  gap: 16px;
  margin-top: 18px;
}

.ds-field {
  gap: 7px;
}

.ds-field label {
  color: var(--ds-color-text-primary);
  font-size: 13px;
  font-weight: 600;
}

.ds-field-hint {
  color: var(--ds-color-text-tertiary);
  font-size: var(--ds-type-metric-size);
  line-height: var(--ds-type-metric-line);
}

.ds-field-hint--danger {
  color: var(--ds-color-danger);
}

.ds-form-grid textarea {
  min-height: 116px;
}

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

.ds-link-row input,
.ds-link-row .ds-button {
  min-width: 0;
}

.ds-segmented-field {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.ds-segmented-field legend {
  margin-bottom: 9px;
  color: var(--ds-color-text-primary);
  font-size: var(--ds-type-secondary-size);
  font-weight: 600;
}

.ds-segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-control-radius);
  background: var(--ds-color-surface-1);
}

.ds-segmented-control label {
  cursor: pointer;
}

.ds-segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ds-segmented-control span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-metric-size);
  font-weight: 600;
}

.ds-segmented-control input:checked + span {
  background: var(--ds-color-surface-4);
  color: var(--ds-color-accent-soft);
  box-shadow: var(--ds-shadow-card);
}

.ds-segmented-control input:focus-visible + span {
  outline: 2px solid var(--ds-color-info);
  outline-offset: 2px;
}

.ds-segmented-field small {
  display: block;
  margin-top: 8px;
  color: var(--ds-color-text-tertiary);
  font-size: 11px;
  line-height: 16px;
}

.ds-danger-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 91, 111, .28);
  border-radius: var(--ds-radius-l);
  background: rgba(255, 91, 111, .07);
}

.ds-danger-zone > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.ds-danger-zone strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ds-color-danger);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-danger-zone strong .ds-icon {
  width: 16px;
  height: 16px;
}

.ds-danger-zone span {
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-metric-size);
  line-height: var(--ds-type-metric-line);
}

.ds-detail-modal__footer {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--ds-border-subtle);
  background: var(--ds-color-surface-2);
}

.ds-note {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(91, 168, 255, .25);
  border-radius: var(--ds-radius-m);
  background: rgba(91, 168, 255, .06);
}

.ds-note--error {
  border-color: rgba(255, 91, 111, .34);
  background: rgba(255, 91, 111, .08);
}

.ds-note strong {
  color: var(--ds-color-info);
  font-size: var(--ds-type-secondary-size);
}

.ds-note--error strong {
  color: var(--ds-color-danger);
}

.ds-note span {
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-metric-size);
  line-height: var(--ds-type-metric-line);
}

.ds-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.ds-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-check-row input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 1px 0 0;
  accent-color: var(--ds-color-accent);
}

.ds-modal__content > .ds-check-row {
  margin-top: 18px;
}

.ds-prose {
  display: grid;
  gap: 12px;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-secondary-size);
  line-height: var(--ds-type-secondary-line);
}

.ds-prose p {
  margin: 0;
}

.ds-prose b,
.ds-prose strong {
  color: var(--ds-color-text-primary);
  font-weight: 700;
}

.common-message-modal__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--ds-color-text-secondary);
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-line);
}

.common-message-modal__body p {
  margin: 0;
}

.common-message-modal__body p + p {
  margin-top: 8px;
}

.moderation-report-modal__form {
  display: grid;
  gap: 16px;
}

.moderation-report-modal__spinner {
  display: grid;
  min-height: 44px;
  place-items: center;
  color: var(--ds-color-accent-soft);
}

.moderation-report-modal__spinner .ds-icon {
  width: 22px;
  height: 22px;
}

.common-message-modal__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-2);
  color: var(--ds-color-accent);
}

.common-message-modal__icon .ds-icon {
  width: 20px;
  height: 20px;
}

.ds-modal-preview-frame {
  overflow: hidden;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-l);
  background: var(--ds-color-surface-2);
}

.ds-modal-preview-frame img {
  display: block;
  width: 100%;
}

.ds-modal__body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
  overflow: auto;
}

.ds-modal-preview {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  background: var(--ds-color-surface-2);
}

.ds-modal-preview__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--ds-radius-l);
  background: var(--ds-color-surface-3);
}

.ds-modal-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-modal-details {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.ds-modal-kicker {
  margin: 0;
  color: var(--ds-color-accent-soft);
  font-size: var(--ds-type-label-size);
  font-weight: 700;
  letter-spacing: .1em;
}

.ds-modal-description {
  margin: 0;
  color: var(--ds-color-text-secondary);
}

.ds-auth-layout {
  min-height: 100%;
  padding: calc(20px + env(safe-area-inset-top)) calc(28px + env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) calc(28px + env(safe-area-inset-left));
  background:
    radial-gradient(circle at 78% 20%, rgba(111, 73, 207, .2), transparent 30rem),
    radial-gradient(circle at 20% 90%, rgba(89, 184, 255, .08), transparent 28rem),
    var(--ds-color-canvas);
}

.ds-auth-layout__header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ds-auth-layout__main {
  display: grid;
  min-height: calc(100dvh - 112px);
  place-items: center;
  padding: 34px 16px 56px;
}

.ds-auth-card {
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-2xl);
  background: var(--ds-color-surface-1);
  box-shadow: var(--ds-shadow-raised);
}

.ds-auth-card--wide {
  width: min(100%, 760px);
}

.ds-auth-card__back {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  margin: -7px 0 0 -8px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ds-color-text-secondary);
}

.ds-auth-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
  color: var(--ds-color-accent-soft);
  font-size: var(--ds-type-label-size);
  font-weight: 700;
  letter-spacing: .11em;
}

.ds-auth-card__status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-color-success);
  box-shadow: 0 0 0 4px rgba(82, 214, 160, .1);
  content: "";
}

.ds-auth-card h1 {
  margin: 0;
  color: var(--ds-color-text-primary);
  font-size: 30px;
  line-height: 38px;
  font-weight: 600;
}

.ds-auth-card__support {
  margin: 10px 0 22px;
  color: var(--ds-color-text-secondary);
}

.ds-auth-card__body {
  display: grid;
  gap: 17px;
}

@media (max-width: 860px) {
  .ds-dashboard-page--section {
    padding: 20px 0 34px;
  }

  .ds-dashboard-heading {
    margin-top: 18px;
  }

  .ds-dashboard-heading h1 {
    font-size: 28px;
    line-height: 36px;
  }

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

  .ds-filter-group {
    grid-column: 1 / -1;
  }

  .ds-topbar {
    height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .ds-topbar__search {
    width: 100%;
  }

  .ds-topbar__actions {
    justify-content: flex-end;
  }

  .ds-sidebar {
    width: 100%;
  }

  .ds-modal__body {
    grid-template-columns: 1fr;
  }

  .ds-detail-modal {
    width: min(720px, calc(100vw - 28px));
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .ds-detail-modal__media {
    grid-row: 1;
    border-right: 0;
    border-bottom: 1px solid var(--ds-border-subtle);
  }

  .ds-detail-modal__art {
    min-height: min(42vw, 300px);
  }

  .ds-detail-modal__content {
    grid-row: 2;
  }

  .ds-detail-modal__footer {
    grid-row: 3;
  }
}

@media (max-width: 560px) {
  .ds-dashboard-heading {
    margin-top: 14px;
    margin-bottom: 14px;
  }

  .ds-page-hero {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ds-page-hero__action {
    justify-content: stretch;
  }

  .ds-page-hero .ds-button {
    width: 100%;
  }

  .ds-page-toolbar {
    padding: 14px;
  }

  .ds-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .ds-filter-group {
    grid-column: 1;
  }

  .ds-page-summary {
    display: grid;
    gap: 4px;
  }

  .ds-modal-layer {
    align-items: end;
    padding: 0;
  }

  .ds-modal {
    max-height: calc(100dvh - 8px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--ds-radius-xl) var(--ds-radius-xl) 0 0;
  }

  .ds-detail-modal {
    width: 100%;
    max-height: calc(100dvh - 8px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--ds-radius-xl) var(--ds-radius-xl) 0 0;
  }

  .ds-detail-modal__media,
  .ds-detail-modal__content {
    padding: 18px;
  }

  .ds-detail-modal__art {
    min-height: 210px;
  }

  .ds-detail-modal__title-line {
    align-items: stretch;
    flex-direction: column;
  }

  .ds-danger-zone,
  .ds-modal-actions {
    align-items: stretch;
  }

  .ds-modal-actions {
    flex-direction: column;
  }

  .ds-danger-zone,
  .ds-meta-grid,
  .ds-link-row {
    grid-template-columns: 1fr;
  }

  .ds-inline-actions .ds-button,
  .ds-danger-zone .ds-button,
  .ds-detail-modal__footer .ds-button {
    width: 100%;
  }

  .ds-data-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ds-data-actions {
    justify-content: flex-start;
  }

  .ds-meta-list {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="light"] .ds-page-toolbar {
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(240, 238, 246, .92));
}
.auth-popup {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
}

.auth-popup--s2 {
  align-items: stretch;
  padding: 0;
  overflow: auto;
  background: transparent;
  backdrop-filter: none;
}

.auth-popup--s2 .auth-experience {
  position: fixed;
  z-index: 80;
  inset: 0;
  width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  background: radial-gradient(circle at 78% 20%, rgba(111, 73, 207, 0.2), transparent 30rem), radial-gradient(circle at 20% 90%, rgba(89, 184, 255, 0.08), transparent 28rem), var(--ds-color-canvas);
  color: var(--ds-color-text-primary);
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-line);
}

.auth-popup--s2,
.auth-popup--s2 * {
  box-sizing: border-box;
}

.auth-popup--s2 button,
.auth-popup--s2 input,
.auth-popup--s2 select {
  font: inherit;
}

.auth-popup--s2 button {
  cursor: pointer;
}

.auth-popup--s2 button,
.auth-popup--s2 input {
  -webkit-tap-highlight-color: transparent;
}

.auth-popup--s2 button:focus-visible,
.auth-popup--s2 input:focus-visible {
  outline: 2px solid rgba(89, 184, 255, 0.78);
  outline-offset: 2px;
  box-shadow: var(--ds-shadow-focus);
}

.auth-popup--s2 svg {
  display: block;
}

.auth-popup--s2 .auth-shell {
  width: min(100%, 1500px);
  min-height: 100%;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) calc(28px + env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) calc(28px + env(safe-area-inset-left));
}

.auth-popup--s2 .auth-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth-popup--s2 .auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ds-color-text-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.auth-popup--s2 .auth-brand img {
  width: 25px;
  height: 22px;
}

.auth-popup--s2 .auth-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-popup--s2 .auth-header-actions .theme-toggle {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ds-border-default);
  border-radius: 999px;
  background: var(--ds-color-surface-1);
  color: var(--ds-color-text-secondary);
}

.auth-popup--s2 .auth-header-actions .theme-toggle svg,
.auth-popup--s2 .auth-submit-button svg,
.auth-popup--s2 .auth-link-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-popup--s2 .auth-link-button,
.auth-popup--s2 .auth-submit-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--ds-radius-m);
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-line);
  font-weight: 600;
  transition: background var(--ds-motion-fast), border-color var(--ds-motion-fast), color var(--ds-motion-fast), transform var(--ds-motion-fast);
}

.auth-popup--s2 .auth-link-button {
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: var(--ds-color-text-secondary);
}

.auth-popup--s2 .auth-link-button:hover {
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-primary);
}

.auth-popup--s2 .auth-submit-button {
  width: 100%;
  padding: 0 18px;
}

.auth-popup--s2 .auth-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.auth-popup--s2 .auth-page {
  display: grid;
  min-height: calc(100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  place-items: center;
  padding: 34px 16px 56px;
}

.auth-popup--s2 .auth-card {
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-2xl);
  background: var(--ds-color-surface-1);
  box-shadow: var(--ds-shadow-raised);
}

.auth-popup--s2 .auth-access-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 92% 0%, rgba(155, 104, 245, 0.09), transparent 40%), var(--ds-color-surface-1);
}

.auth-popup--s2 .auth-access-card::before {
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 104, 245, 0.9), rgba(89, 184, 255, 0.7), transparent);
  content: "";
}

.auth-popup--s2 .auth-card.wide {
  width: min(100%, 760px);
}

.auth-popup--s2 .entry-copy h1,
.auth-popup--s2 .auth-card h1 {
  margin: 0;
  color: var(--ds-color-text-primary);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.auth-popup--s2 .auth-card h1 {
  font-size: 30px;
  line-height: 38px;
}

.auth-popup--s2 .auth-card > p {
  margin: 10px 0 22px;
  color: var(--ds-color-text-secondary);
}

.auth-popup--s2 .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--ds-color-accent-soft);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.auth-popup--s2 .eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-color-success);
  content: "";
  box-shadow: 0 0 0 4px rgba(82, 214, 160, 0.1);
}

.auth-popup--s2 .auth-card > .eyebrow {
  display: flex;
  width: max-content;
  margin: 12px 0 10px;
  color: var(--ds-color-accent-soft);
}

.auth-popup--s2 .auth-back {
  display: flex;
  width: max-content;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  margin: -7px 0 0 -8px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ds-color-text-secondary);
}

.auth-popup--s2 .auth-back:hover {
  color: var(--ds-color-text-primary);
}

.auth-popup--s2 .auth-back svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.auth-popup--s2 .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 22px 0;
  padding: 4px;
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-2);
}

.auth-popup--s2 .auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ds-color-text-secondary);
  font-weight: 600;
}

.auth-popup--s2 .auth-tab[aria-selected=true] {
  background: var(--ds-color-surface-4);
  color: var(--ds-color-text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.auth-popup--s2 .auth-form,
.auth-popup--s2 .auth-action-stack,
.auth-popup--s2 .auth-provider-stack {
  display: grid;
  gap: var(--ds-button-gap-stack);
}

.auth-popup--s2 .auth-form {
  gap: 17px;
}

.auth-popup--s2 .field-group {
  display: grid;
  gap: 7px;
}

.auth-popup--s2 .field-group label,
.auth-popup--s2 .group-label {
  color: var(--ds-color-text-primary);
  font-size: 13px;
  font-weight: 600;
}

.auth-popup--s2 .field-group input,
.auth-popup--s2 .field-group select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-primary);
  outline: none;
}

.auth-popup--s2 .field-group input:hover,
.auth-popup--s2 .field-group select:hover {
  border-color: var(--ds-border-raised);
}

.auth-popup--s2 .field-group input:focus,
.auth-popup--s2 .field-group select:focus {
  border-color: var(--ds-color-info);
  box-shadow: var(--ds-shadow-focus);
}

.auth-popup--s2 .field-group input::placeholder {
  color: var(--ds-color-text-tertiary);
}

.auth-popup--s2 .field-hint {
  color: var(--ds-color-text-tertiary);
  font-size: 11px;
  line-height: 17px;
}

.auth-popup--s2 .auth-field-error {
  color: #ffaaa9;
}

.auth-popup--s2 .password-wrap {
  position: relative;
}

.auth-popup--s2 .password-wrap input {
  padding-right: 50px;
}

.auth-popup--s2 .password-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ds-color-text-tertiary);
}

.auth-popup--s2 .password-toggle:hover {
  background: var(--ds-color-surface-3);
  color: var(--ds-color-text-primary);
}

.auth-popup--s2 .password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-popup--s2 .form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-popup--s2 .check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ds-color-text-secondary);
  font-size: 12px;
}

.auth-popup--s2 .check-label input {
  width: 17px;
  height: 17px;
  accent-color: var(--ds-color-accent);
}

.auth-popup--s2 .text-action,
.auth-popup--s2 .auth-inline-link {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ds-color-accent-soft);
  font-size: 12px;
  font-weight: 600;
}

.auth-popup--s2 .text-action:hover,
.auth-popup--s2 .auth-inline-link:hover {
  color: var(--ds-color-text-primary);
}

.auth-popup--s2 .auth-inline-link {
  min-height: 0;
  font-size: inherit;
  vertical-align: baseline;
}

.auth-popup--s2 .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ds-color-text-tertiary);
  font-size: 11px;
}

.auth-popup--s2 .auth-divider::before,
.auth-popup--s2 .auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--ds-border-subtle);
  content: "";
}

.auth-popup--s2 .social-button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-primary);
  font-weight: 600;
}

.auth-popup--s2 .social-button:not(:disabled):hover {
  background: var(--ds-color-surface-3);
}

.auth-popup--s2 .auth-provider {
  position: relative;
  display: grid;
  min-height: 52px;
  place-items: center;
  padding: 0 92px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.auth-popup--s2 .auth-provider > span:nth-child(2) {
  position: relative;
  z-index: 1;
  justify-self: center;
}

.auth-popup--s2 .auth-provider small {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 14px;
  color: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.72;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.auth-popup--s2 .auth-provider:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.auth-popup--s2 .auth-provider-primary {
  border-color: transparent;
  background: linear-gradient(110deg, rgba(155, 104, 245, 0.09), rgba(89, 184, 255, 0.025)) padding-box, linear-gradient(var(--ds-color-surface-2), var(--ds-color-surface-2)) padding-box, linear-gradient(110deg, rgba(155, 104, 245, 0.72), rgba(89, 184, 255, 0.42)) border-box;
  color: var(--ds-color-text-primary);
  box-shadow: 0 8px 24px rgba(111, 63, 198, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-popup--s2 .auth-provider-primary:not(:disabled):hover {
  background: linear-gradient(110deg, rgba(155, 104, 245, 0.13), rgba(89, 184, 255, 0.045)) padding-box, linear-gradient(var(--ds-color-surface-3), var(--ds-color-surface-3)) padding-box, linear-gradient(110deg, rgba(191, 160, 255, 0.88), rgba(89, 184, 255, 0.58)) border-box;
  box-shadow: 0 11px 28px rgba(111, 63, 198, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.auth-popup--s2 .auth-provider-secondary {
  background: linear-gradient(110deg, rgba(155, 104, 245, 0.045), rgba(89, 184, 255, 0.035)), var(--ds-color-surface-2);
}

.auth-popup--s2 .auth-provider .provider-mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(19, 18, 28, 0.42);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-50%);
}

.auth-popup--s2 .google-mark {
  border-color: rgba(191, 160, 255, 0.34) !important;
  background: rgba(155, 104, 245, 0.1) !important;
  color: var(--ds-color-text-primary) !important;
}

.auth-popup--s2 .microsoft-mark {
  grid-template-columns: repeat(2, 6px);
  grid-template-rows: repeat(2, 6px);
  place-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
}

.auth-popup--s2 .microsoft-mark i {
  display: block;
  width: 6px;
  height: 6px;
  background: currentColor;
}

.auth-popup--s2 .provider-status {
  margin: 9px 0 0 !important;
  color: var(--ds-color-text-tertiary) !important;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.auth-popup--s2 .auth-email-entry {
  display: grid;
  width: 100%;
  min-height: 50px;
  place-content: center;
  gap: 0;
  padding: 0 18px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-m);
  background: var(--ds-color-surface-2);
  color: var(--ds-color-text-secondary);
  font-weight: 600;
  transition: border-color var(--ds-motion-fast), background var(--ds-motion-fast), color var(--ds-motion-fast);
}

.auth-popup--s2 .auth-email-entry small {
  color: var(--ds-color-text-tertiary);
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
}

.auth-popup--s2 .auth-email-entry:hover {
  border-color: var(--ds-border-raised);
  background: var(--ds-color-surface-3);
  color: var(--ds-color-text-primary);
}

.auth-popup--s2 .verification-secondary {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: 10px;
  text-align: center;
}

.auth-popup--s2 .verification-secondary small {
  max-width: 340px;
  color: var(--ds-color-text-tertiary);
  font-size: 10px;
  line-height: 16px;
}

.auth-popup--s2 .auth-process-card {
  text-align: center;
}

.auth-popup--s2 .auth-process-card > .eyebrow {
  margin-inline: auto;
}

.auth-popup--s2 .auth-process-card > p {
  max-width: 390px;
  margin-inline: auto;
}

.auth-popup--s2 .auth-process-icon,
.auth-popup--s2 .auth-google-mark {
  width: 48px;
  height: 48px;
  margin: 4px auto 18px;
  border-radius: 15px;
}

.auth-popup--s2 .auth-process-icon {
  display: grid;
  place-items: center;
  border: 3px solid var(--ds-color-surface-4);
  border-top-color: var(--ds-color-accent);
  animation: auth-spin 900ms linear infinite;
}

.auth-popup--s2 .auth-process-icon.complete {
  border: 0;
  background: rgba(82, 214, 160, 0.1);
  color: var(--ds-color-success);
  animation: none;
}

.auth-popup--s2 .auth-process-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.auth-popup--s2 .auth-legal {
  margin: 18px 0 0;
  color: var(--ds-color-text-tertiary);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.auth-popup--s2 .auth-error {
  display: none;
  padding: 11px 13px;
  border: 1px solid rgba(var(--ds-color-danger-rgb), 0.25);
  border-radius: var(--ds-radius-m);
  background: rgba(var(--ds-color-danger-rgb), 0.08);
  color: color-mix(in srgb, var(--ds-color-danger) 58%, white);
  font-size: 12px;
}

:root[data-theme=light] .auth-popup--s2 .auth-error {
  color: var(--ds-color-danger);
}

.auth-popup--s2 .auth-error.visible {
  display: block;
}

.auth-popup--s2 .status-panel {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(var(--ds-color-info-rgb), 0.2);
  border-radius: var(--ds-radius-l);
  background: rgba(var(--ds-color-info-rgb), 0.07);
}

.auth-popup--s2 .status-panel.success {
  border-color: rgba(var(--ds-color-success-rgb), 0.22);
  background: rgba(var(--ds-color-success-rgb), 0.07);
}

.auth-popup--s2 .status-panel .status-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 999px;
  background: var(--ds-color-surface-3);
  color: var(--ds-color-info);
}

.auth-popup--s2 .status-panel.success .status-icon {
  color: var(--ds-color-success);
}

.auth-popup--s2 .status-panel svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.auth-popup--s2 .status-panel strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.auth-popup--s2 .status-panel p {
  margin: 0;
  color: var(--ds-color-text-secondary);
  font-size: 11px;
  line-height: 17px;
}

.auth-popup--s2 .auth-support-action {
  margin-top: 10px;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 700px) {
  .auth-popup--s2 .auth-shell {
    padding: calc(12px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  }
  .auth-popup--s2 .auth-header {
    min-height: 56px;
  }
  .auth-popup--s2 .auth-header-actions .auth-link-button:first-child {
    display: none;
  }
  .auth-popup--s2 .auth-page {
    min-height: calc(100dvh - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 22px 0 36px;
  }
  .auth-popup--s2 .auth-card {
    padding: 22px 18px;
    border-radius: var(--ds-radius-xl);
  }
  .auth-popup--s2 .auth-card h1 {
    font-size: 26px;
    line-height: 34px;
  }
  .auth-popup--s2 .auth-provider {
    min-height: 48px;
    padding-inline: 54px;
  }
  .auth-popup--s2 .auth-provider small {
    display: none;
  }
  .auth-popup--s2 .form-row {
    align-items: flex-start;
    flex-direction: column;
  }
}