:root {
  color-scheme: light;
  --overlay: rgba(255, 255, 255, 0.4);
  --text: #141414;
  --muted: rgba(20, 20, 20, 0.6);
  --danger: #c1121f;
  --sidebar-width: 260px;
  --settings-sidebar-width: 220px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: #f5f5f5;
  color: var(--text);
}

html.js body {
	opacity: 0;
	transition: opacity 0.3s ease;
}

html.js.edolls-ready body {
	opacity: 1;
}

.i18n-loading [data-i18n] {
  visibility: hidden;
}

.i18n-loading [data-language-selector] {
  visibility: hidden;
}

body.dashboard {
  background-color: #ffffff;
}

body.age-gate-active .dashboard__content,
body.age-gate-active .sidebar,
body.age-gate-active .home-mobile-nav,
body.age-gate-active .home-mobile-overlay,
body.age-gate-active .chat,
body.age-gate-active .log {
  filter: blur(6px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.dashboard__content {
  margin-left: 260px;
  padding: 32px 40px;
  min-height: 100vh;
}

.dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard__filters {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.chart-card {
  min-height: 360px;
}

.chart-card__body {
  width: 100%;
  min-height: 280px;
}

.chart-card__empty {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.heatmap-fallback {
  min-height: 280px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #ffffff;
  height: 100%;
}

.heatmap-fallback__title {
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
}

.heatmap-fallback__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.heatmap-fallback__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  max-height: calc(6 * 40px + 5 * 8px);
}

.heatmap-fallback__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 10px 12px;
  min-height: 40px;
}

.heatmap-fallback__name {
  font-size: 0.85rem;
  color: var(--text);
}

.heatmap-fallback__value {
  font-size: 0.85rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.chart-card__body--map {
  min-height: 420px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.heatmap-grid__map {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.heatmap-grid__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.heatmap-grid__label {
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.heatmap-grid__value {
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
}

@media (max-width: 1100px) {
  .heatmap-grid {
    grid-template-columns: 1fr;
  }
}

.panel--compact {
  min-height: 0;
}

.dashboard-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-stat__value {
  font-size: 2.4rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
}

.dashboard-stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard__title {
  font-size: 1.4rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-weight: 500;
}

.panel {
  border: 1px solid rgba(20, 20, 20, 0.12);
  background-color: #ffffff;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.panel--span {
  grid-column: 1 / -1;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.panel__action-button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
}

.panel__action-button:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.panel__action-button .material-symbols-outlined {
  font-size: 1.05rem;
}

.panel__action-button.is-active {
  border-color: rgba(20, 20, 20, 0.6);
  background: rgba(20, 20, 20, 0.08);
}

.swal-filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 0;
}

.swal-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.swal-filter-item input {
  width: 16px;
  height: 16px;
}

.swal-filter-note {
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-filter-actions {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 4px;
}

.panel__toggle {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.panel__toggle .material-symbols-outlined {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.panel.is-collapsed .panel__toggle .material-symbols-outlined {
  transform: rotate(-90deg);
}

.panel.is-collapsed .panel__body {
  display: none;
}

.panel__title {
  font-size: 0.9rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--muted);
}

.panel__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.watermark__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.watermark__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.watermark__dropzone {
  min-height: 240px;
}

.watermark__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.watermark__list li {
  border-left: 2px solid rgba(20, 20, 20, 0.2);
  padding-left: 12px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.form__group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.form__group[hidden] {
  display: none;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__field--full {
  grid-column: 1 / -1;
}

.social-media__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.is-loading .social-media__list {
  opacity: 0;
  visibility: hidden;
}

body.is-loading .social-media__row {
  opacity: 0;
}

.social-media__row {
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1.2fr) auto auto;
  gap: 16px;
  align-items: center;
}

.social-media__icon-placeholder {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.icon-button .material-symbols-outlined {
  font-size: 1.1rem;
}

.social-media__icon-placeholder--patreon {
  background-image: url("assets/icons/patreon.png");
}

.social-media__icon-placeholder--instagram {
  background-image: url("assets/icons/instagram.png");
}

.social-media__icon-placeholder--deviantart {
  background-image: url("assets/icons/deviantart.png");
}

.social-media__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-media__name {
  font-size: 0.9rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: var(--text);
}

.social-media__meta {
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
}


.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.toggle__track {
  width: 42px;
  height: 20px;
  background: rgba(193, 18, 31, 0.2);
  position: relative;
  border-radius: 999px;
}

.toggle__track::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  background: #c1121f;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle__track::after {
  transform: translateX(20px);
  background: #2f9e44;
}

.toggle input:checked + .toggle__track {
  background: rgba(47, 158, 68, 0.2);
}

@media (max-width: 900px) {
  .social-media__row {
    grid-template-columns: 1fr;
  }

  .social-media__icon-placeholder {
    width: 56px;
    height: 56px;
  }
}

.form__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.form__input,
.form__select,
.form__textarea {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
}

.form__textarea {
  resize: vertical;
}

.profile-photo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-photo__drop {
  position: relative;
  width: 140px;
  height: 140px;
  border: 2px dashed rgba(20, 20, 20, 0.4);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  background: #f5f5f5;
}

.profile-photo__drop.is-dragover {
  background: rgba(20, 20, 20, 0.05);
}

.profile-photo__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-photo__icon {
  font-size: 1.6rem;
  color: var(--muted);
}

.profile-photo__text {
  font-size: 0.65rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px;
}

.profile-photo__preview {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 50%;
  object-fit: cover;
  display: none;
}

.profile-photo__drop.has-preview .profile-photo__icon,
.profile-photo__drop.has-preview .profile-photo__text {
  display: none;
}

@media (max-width: 720px) {
  .profile-photo {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-photo__drop {
    width: 160px;
    height: 160px;
  }
}

.avatar-cropper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.avatar-cropper__canvas {
  width: 240px;
  height: 240px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 50%;
  background: #f5f5f5;
}

.avatar-cropper__range {
  width: 100%;
}

.image-cropper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.image-cropper__canvas {
  width: 320px;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #f5f5f5;
}

.image-cropper__range {
  width: 100%;
}

.image-cropper__hint {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.form__helper {
  font-size: 0.75rem;
  color: var(--muted);
}

.form__actions {
  display: flex;
  justify-content: flex-end;
}

.status__box {
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.status__value {
  font-size: 0.85rem;
  color: var(--text);
}

.button {
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: transparent;
  padding: 10px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}

.button:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.button[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.button--dashed {
  border: 1px dashed rgba(20, 20, 20, 0.4);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 10px 14px;
}

.grok-result__media {
  border: 1px solid rgba(20, 20, 20, 0.12);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.grok-result__media img,
.grok-result__media video {
  max-width: 100%;
  height: auto;
  display: block;
}

.table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.table__row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(220px, 1fr);
  gap: 16px;
  padding: 12px 0;
}

.table__row--users {
  grid-template-columns: minmax(200px, 1fr) minmax(220px, 1fr) 48px 48px;
}

.table__row--accounts {
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.2fr) minmax(220px, 1.2fr) minmax(140px, 0.8fr);
}

.table__row--accounts-users {
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.2fr) minmax(220px, 1.2fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) 96px;
}

.table__row--accounts-admin {
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.2fr) minmax(220px, 1.2fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr);
}

.table__row--uploads {
  grid-template-columns: minmax(120px, 0.6fr) minmax(180px, 0.8fr) minmax(220px, 1.2fr) minmax(160px, 0.9fr) minmax(160px, 0.9fr) 120px;
  align-items: center;
}

.table__cell--thumb {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uploads__thumb {
  width: 84px;
  height: 64px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.uploads__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uploads__thumb .material-symbols-outlined {
  font-size: 28px;
  color: var(--muted);
}

.uploads__meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.panel__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel__stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel__meta {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.table__row--four {
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(140px, 0.8fr);
}

.table__row--five {
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(140px, 0.8fr) 80px;
}

.table__row--header {
  padding-bottom: 8px;
}

.table__row--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.table__row--seven {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.table__row--eight {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.spendings__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.overview__range {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.overview__range-label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.overview__range-select {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  padding: 8px 12px;
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
  outline: none;
  min-width: 180px;
}

.overview__stat {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.overview__value {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.overview__value-small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.overview__delta {
  font-size: 0.85rem;
  color: var(--muted);
}

.overview__delta--positive {
  color: #1b7a3a;
}

.overview__delta--negative {
  color: #b42318;
}

.overview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.overview__chart-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.overview__chart-select {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  padding: 6px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
  outline: none;
}

.qwen-edit__form-panel {
  max-width: 460px;
  width: 100%;
  justify-self: start;
}

.seedvr2__form-panel {
  max-width: 460px;
  width: 100%;
  justify-self: start;
}

#qwen-dropzone {
  aspect-ratio: 3 / 2;
  min-height: 0;
}

#qwen-dropzone .upscaler__image-wrap {
  width: 100%;
  height: 100%;
  max-height: none;
}

#qwen-dropzone .upscaler__preview-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

#qwen-max-dropzone {
  aspect-ratio: 3 / 2;
  min-height: 0;
}

#qwen-max-dropzone .upscaler__image-wrap {
  width: 100%;
  height: 100%;
  max-height: none;
}

#qwen-max-dropzone .upscaler__preview-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

#seedvr-dropzone {
  aspect-ratio: 3 / 2;
  min-height: 0;
}

#seedvr-dropzone .upscaler__image-wrap {
  width: 100%;
  height: 100%;
  max-height: none;
}

#seedvr-dropzone .upscaler__preview-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.qwen-preview__placeholder {
  height: clamp(360px, 65vh, 700px);
  min-height: clamp(360px, 65vh, 700px);
  max-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(20, 20, 20, 0.3);
  border: none;
  background-color: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.qwen-preview__placeholder .material-symbols-outlined {
  font-size: 48px;
}

.qwen-preview__placeholder.has-output {
  color: transparent;
  cursor: pointer;
}

.qwen-preview__placeholder.has-output .material-symbols-outlined {
  opacity: 0;
}

.output-media {
  position: absolute;
  inset: 12px;
  --output-icon-inset: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  max-width: 100%;
  max-height: 100%;
}

.output-media__frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.output-media__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.qwen-output__download {
  display: none;
  position: absolute;
  z-index: 6;
  text-decoration: none;
  color: #ffffff;
}

.qwen-output__download[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.4;
}

.qwen-preview__placeholder.has-output .qwen-output__download {
  display: inline-flex;
}

.qwen-preview__placeholder.has-output .output-media {
  display: inline-flex;
}

.qwen-preview__placeholder.has-output .qwen-output__download .material-symbols-outlined {
  opacity: 0.7;
}

.qwen-preview__placeholder.has-output .seedvr-output__download .material-symbols-outlined {
  opacity: 0.7;
}

.qwen-output__download .material-symbols-outlined,
.seedvr-output__download .material-symbols-outlined {
  font-size: 25px;
  line-height: 1;
  opacity: 0.7;
}

.seedvr-output__placeholder {
  border: none;
  position: relative;
}

.seedvr-output__placeholder.has-output {
  cursor: pointer;
}

.seedvr-output__download {
  display: none;
  position: absolute;
  z-index: 6;
}

.seedvr-output__download[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.4;
}

.seedvr-output__placeholder.has-output .seedvr-output__download {
  display: inline-flex;
}

.seedvr-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.seedvr-actions__status {
  font-size: 0.8rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.qwen-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.qwen-actions__status {
  font-size: 0.8rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.filters--collapsed {
  display: none;
}

.filters__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.filters__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__field[hidden] {
  display: none;
}

.filters__field--wide {
  grid-column: span 2;
}

.filters__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.filters__input {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
}

.filters__input::placeholder {
  color: rgba(20, 20, 20, 0.5);
}

.filters__actions {
  display: flex;
  justify-content: flex-end;
}

.upscaler {
  margin-bottom: 32px;
}

.panel.upscaler.upscaler--active {
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #ffffff;
  padding: 20px 22px;
}

.upscaler__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upscaler__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upscaler__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.upscaler__input {
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
}

.upscaler__inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.upscaler__inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.upscaler__canvas {
  display: flex;
  justify-content: center;
}

.upscaler__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.upscaler__backdrop.is-active {
  opacity: 1;
}

.upscaler__dropzone {
  width: 100%;
  min-height: 420px;
  border: 2px dashed rgba(20, 20, 20, 0.35);
  background: #f7f7f7;
  --seedvr-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  z-index: 6;
}

.upscaler__dropzone.is-dragover {
  border-color: rgba(20, 20, 20, 0.6);
  background: rgba(20, 20, 20, 0.05);
}

.upscaler__file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.upscaler__placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  position: relative;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.upscaler__placeholder .material-symbols-outlined {
  font-size: 48px;
}

.upscaler__preview-image {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  display: block;
  object-fit: contain;
  width: auto;
  height: auto;
}

.upscaler__image-wrap {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  overflow: hidden;
  z-index: 1;
}

.upscaler__download {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 0;
  border: none;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  z-index: 7;
}

.upscaler__download[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.6;
}

.upscaler__dropzone.has-result .upscaler__download {
  display: inline-flex;
}

.upscaler__dropzone.has-image .upscaler__placeholder {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: rgba(247, 247, 247, 0.82);
}

.upscaler__dropzone.has-image .upscaler__preview-image {
  display: block;
}

.upscaler__dropzone.has-image:hover .upscaler__preview-image {
  opacity: 0.22;
}

.upscaler__dropzone.has-image:hover .upscaler__placeholder {
  opacity: 1;
  pointer-events: auto;
}

.upscaler__dropzone.has-image .upscaler__image-wrap {
  display: inline-flex;
}

.upscaler__dropzone.has-image {
  border: none;
  background: transparent;
}

.upscaler__loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  z-index: 5;
  pointer-events: none;
}

.upscaler__dropzone.is-processing .upscaler__loader {
  display: flex;
}

.upscaler__dropzone.is-processing .upscaler__preview-image {
	opacity: 0;
	position: relative;
	z-index: 1;
}

.upscaler__dropzone.is-processing .upscaler__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--seedvr-image);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0.3) blur(10px);
  pointer-events: none;
  z-index: 2;
}

.upscaler__dot {
  width: 10px;
  height: 10px;
  background: #ffffff;
  display: inline-block;
  animation: upscalerDots 1s infinite ease-in-out;
}

.upscaler__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.upscaler__dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes upscalerDots {
  0%,
  80%,
  100% {
    transform: scale(0.3);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.upscaler__footer {
  position: fixed;
  width: min(960px, calc(100vw - var(--sidebar-width) - 220px));
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.12);
  z-index: 5;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 15;
}

.upscaler__footer > * {
  align-self: center;
}

.upscaler__footer-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  min-width: 180px;
  align-items: end;
  justify-self: start;
}

.upscaler__footer-group .upscaler__field {
  min-width: 140px;
}

.upscaler__footer .button {
  justify-self: center;
}

.upscaler__status {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  justify-self: end;
  text-align: right;
}

.dashboard__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: transparent;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.icon-button:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.spendings__currency-toggle {
  display: inline-flex;
  gap: 8px;
}

.spendings__currency-toggle .button.is-active {
  background-color: rgba(20, 20, 20, 0.1);
}

.spendings__total {
  font-size: 1.4rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--text);
}

.spendings__api {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.spendings__api-label {
  font-size: 0.65rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.spendings__api-total {
  font-size: 0.95rem;
  letter-spacing: 0.08rem;
  color: var(--text);
}

@media (max-width: 900px) {
  .spendings__grid {
    grid-template-columns: 1fr;
  }

  .filters__row {
    grid-template-columns: 1fr;
  }

  .filters__field--wide {
    grid-column: span 1;
  }

  .upscaler__dropzone {
    min-height: 300px;
  }

  .upscaler__footer {
    left: 16px;
    right: 16px;
    width: auto;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .upscaler__footer-group {
    width: 100%;
  }

  .watermark__grid {
    grid-template-columns: 1fr;
  }

  .watermark__split {
    grid-template-columns: 1fr;
  }

  .processes {
    right: 96px;
  }
}

@keyframes processesLine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.table__cell {
  font-size: 0.9rem;
  color: var(--text);
}

.table__cell--action {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.table__icon-button {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
  box-sizing: border-box;
  line-height: 1;
}

.table__select {
  border: 1px solid rgba(20, 20, 20, 0.35);
  background: transparent;
  padding: 6px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  width: 100%;
  min-width: 120px;
  outline: none;
  border-radius: 0;
}

.grok-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 140px;
}

.user-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.user-gallery__empty {
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.user-gallery__filters {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.user-gallery__filters .form__label {
  margin-bottom: 0;
}

.user-gallery__filters .form__select {
  min-width: 180px;
}

.user-gallery-card {
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-gallery-card__media {
  position: relative;
  min-height: 180px;
  background: #f2f2f2;
}

.user-gallery-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-gallery-card__download {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
}

.user-gallery-card__body {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 14px;
}

.user-gallery-card__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.user-gallery-card__delete {
  border: none;
  background: transparent;
  color: var(--text);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  align-self: flex-end;
}

.user-gallery-card__delete .material-symbols-outlined {
  font-size: 1.1rem;
}

.user-gallery-card__tool {
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.user-gallery-card__date {
  font-size: 0.72rem;
  color: var(--text);
}

.user-gallery-card__prompt {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
  z-index: 60;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox__image {
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.98);
  transition: transform 0.18s ease;
}

.gallery-lightbox.is-open .gallery-lightbox__image {
  transform: scale(1);
}

.gallery-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  color: #ffffff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox__close .material-symbols-outlined {
  font-size: 1.6rem;
}

body.is-lightbox-open {
  overflow: hidden;
}

.grok-card {
  position: relative;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #f5f5f5;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.grok-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px);
  transition: filter 0.5s ease;
}

.grok-card.is-ready .grok-card__image {
  filter: none;
}

.grok-card__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 20, 20, 0.04), rgba(20, 20, 20, 0.12), rgba(20, 20, 20, 0.04));
  animation: grokShimmer 1.5s ease-in-out infinite;
}

.grok-card.is-ready .grok-card__placeholder {
  display: none;
}

.grok-card__download {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
}

.output-media__frame .qwen-output__download,
.output-media__frame .seedvr-output__download {
  top: var(--output-icon-inset);
  right: var(--output-icon-inset);
}

.upscaler__download .material-symbols-outlined,
.user-gallery-card__download .material-symbols-outlined,
.grok-card__download .material-symbols-outlined,
.qwen-output__download .material-symbols-outlined,
.seedvr-output__download .material-symbols-outlined {
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.grok-card__download[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.qwen-preview__placeholder .qwen-output__download,
.seedvr-output__placeholder .seedvr-output__download {
  display: none;
}

.qwen-preview__placeholder.has-output .qwen-output__download[aria-disabled="false"],
.seedvr-output__placeholder.has-output .seedvr-output__download[aria-disabled="false"] {
  display: inline-flex;
}

.grok-composer {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(900px, 92vw);
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 12px 16px;
  background: #ffffff;
  z-index: 20;
}

.grok-composer__menu {
  position: absolute;
  bottom: 72px;
  left: 16px;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.2);
  z-index: 25;
}


.grok-composer__menu[aria-hidden="true"] {
  display: none;
}

.grok-composer__option {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 6px 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  cursor: pointer;
}

.grok-composer__option.is-active {
  border-color: rgba(20, 20, 20, 0.8);
}

.grok-composer__icon {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  min-width: 64px;
  height: 58px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.grok-composer__label {
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.grok-composer__controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.grok-composer__control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grok-composer__control-label {
  font-size: 0.65rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.grok-composer__control-input {
  width: 68px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 6px 8px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
}

.grok-composer__input {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 0 44px 0 12px;
}

.grok-composer__textarea {
  border: none;
  width: 100%;
  resize: none;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 0;
  outline: none;
  background: transparent;
}

.grok-composer__send {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@keyframes grokShimmer {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.4;
  }
}

@media (max-width: 860px) {
  .dashboard__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .grok-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .grok-gallery {
    grid-template-columns: 1fr;
  }

  .user-gallery__grid {
    grid-template-columns: 1fr;
  }

  .grok-composer {
    grid-template-columns: 1fr;
  }

  .grok-composer__icon {
    width: 100%;
  }

  .grok-composer__controls {
    width: 100%;
    justify-content: space-between;
  }

  .grok-composer__control {
    flex: 1;
  }

  .grok-composer__control-input {
    width: 100%;
  }
}

.table__cell--muted {
  color: var(--muted);
}

.table__cell--api {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table__copy {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}

.table__copy .material-symbols-outlined {
  font-size: 1rem;
}

.table__cell--header {
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--muted);
}

.table__cell--header[data-sort-key] {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.table__cell--active {
  color: var(--text);
}

.table__cell--header[data-sort-key]::after {
  content: "";
  margin-left: 8px;
  font-size: 0.7rem;
  letter-spacing: 0;
  font-family: "Material Symbols Outlined";
  opacity: 0;
  transform: translateY(1px);
}

.table__cell--header[data-sort-direction='asc']::after {
  content: "arrow_upward";
  opacity: 1;
}

.table__cell--header[data-sort-direction='desc']::after {
  content: "arrow_downward";
  opacity: 1;
}

.table__divider {
  height: 1px;
  background-color: rgba(20, 20, 20, 0.2);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 24px;
  padding-bottom: 120px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/brand/images/Wallpaper_2.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) contrast(1.05);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.hero--loaded .hero__bg {
  animation: heroFade 2s ease-in-out forwards;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
  pointer-events: none;
}

.hero__watermark {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0.85;
}

.hero__mark {
  width: min(70vw, 520px);
  max-width: 100%;
  height: auto;
  display: block;
}

.hero--login {
  justify-content: center;
  padding-bottom: 48px;
}

.hero__panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: min(90vw, 420px);
  padding: 32px;
  background-color: rgba(255, 255, 255, 0.7);
}

.login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.login__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login__label {
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
}

.login__input {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
}

.login__password {
  position: relative;
  display: flex;
  align-items: center;
}

.login__password .login__input {
  width: 100%;
  padding-right: 46px;
}

.login__toggle {
  position: absolute;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.login__toggle .material-symbols-outlined {
  font-size: 22px;
}

.login__input:focus {
  border-color: rgba(20, 20, 20, 0.9);
}
.login__submit {
  margin-top: 8px;
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: transparent;
  padding: 12px 16px;
  font-size: 0.95rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}

.login__forgot {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  padding: 0;
  margin-top: -6px;
}

.login__register {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  padding: 10px 12px;
}

.login__forgot:hover {
  color: var(--text);
}

.login__register:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.login__error {
  min-height: 0.6rem;
  font-size: 0.9rem;
  color: var(--danger);
  text-align: left;
}

.login__submit:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.hero__tagline {
  position: relative;
  z-index: 2;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__cta {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: none;
  background: #ffffff;
  padding: 12px 20px;
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}

.hero__cta:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.hero__links {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
}

body.is-loading .hero__links {
  opacity: 0;
  visibility: hidden;
}

.hero--loaded .hero__links {
  visibility: visible;
  animation: heroFade 2s ease-in-out forwards;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: none;
  background-color: transparent;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.hero__icon {
  width: 56px;
  height: 56px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0));
}

.hero--loaded .hero__links .hero__icon {
  animation: heroIconFade 2s ease-in-out forwards;
}

@keyframes heroFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes heroIconFade {
  0% {
    opacity: 0;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0));
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
  }
}

.hero__icon--patreon {
  background-image: url("assets/icons/patreon.png");
}

.hero__icon--instagram {
  background-image: url("assets/icons/instagram.png");
}

.hero__icon--deviantart {
  background-image: url("assets/icons/deviantart.png");
}

.hero__link:hover {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .hero__links {
    bottom: 14px;
    gap: 10px;
  }

  .hero__cta {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .hero__link {
    width: 64px;
    height: 64px;
  }

  .hero__icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 640px) {
  .hero__mark {
    width: min(78vw, 360px);
  }
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background-color: #f2f2f2;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 24px;
}

.settings-page .dashboard__content {
  margin-left: calc(var(--sidebar-width) + var(--settings-sidebar-width));
}

.settings-sidebar {
  left: var(--sidebar-width);
  width: var(--settings-sidebar-width);
  background-color: #f7f7f7;
  border-left: 1px solid rgba(20, 20, 20, 0.12);
  padding: 24px 16px;
  gap: 20px;
}

.settings-sidebar .sidebar__nav {
  gap: 10px;
}

.settings-sidebar__header {
  gap: 8px;
}

.sidebar__nav {
  flex: 1;
}

.dashboard .sidebar__nav [data-collapse="landing"],
.dashboard .sidebar__nav [data-collapse-target="landing"] {
  display: none;
}

.sidebar__profile {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.profile {
  border: none;
  background: transparent;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
}

.profile__avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  overflow: visible;
  flex-shrink: 0;
}

.profile__avatar .material-symbols-outlined {
  font-size: 1.2rem;
}

.profile__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: none;
  z-index: 1;
}

.profile__status {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background-color: #2f9e44;
  z-index: 2;
}

.profile__status[data-status='busy'] {
  background-color: #c1121f;
}

.profile__name {
  flex: 1;
  font-size: 0.85rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.profile__chevron {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.profile.is-open .profile__chevron {
  transform: rotate(180deg);
}

.profile__menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  background-color: #f2f2f2;
  border: 1px solid rgba(20, 20, 20, 0.15);
  box-sizing: border-box;
  z-index: 5;
}

.profile__menu.is-open {
  display: flex;
}

.profile-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-header__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.profile-header__identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-header__avatar {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
}

.profile-header__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-header__handle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-header__name {
  font-size: 1.1rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  margin: 0;
}

.profile-header__handle {
  font-size: 0.85rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.7);
  margin: 0;
}

.profile-header__edit-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #141414;
  background: #ffffff;
  text-decoration: none;
}

.profile-header__edit-icon .material-symbols-outlined {
  font-size: 18px;
}

.profile-credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-credits__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  background: #ffffff;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.75rem;
}

.profile-credits__label {
  color: rgba(20, 20, 20, 0.6);
}

.profile-credits__value {
  color: #141414;
  font-weight: 600;
}

.profile-credits__value.is-infinite {
  font-size: 0.95rem;
}

.profile-credits__add {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #141414;
}

.profile-credits__add .material-symbols-outlined {
  font-size: 20px;
}

.profile-divider {
  height: 1px;
  background: rgba(20, 20, 20, 0.12);
  width: 100%;
}

.profile-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-section__actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.profile-achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-achievements__item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 12px;
}

.profile-achievements__item h3 {
  font-size: 0.9rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.profile-achievements__item p {
  font-size: 0.8rem;
  color: rgba(20, 20, 20, 0.7);
}

.profile-achievements__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.profile-achievements__progress {
  height: 6px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}

.profile-achievements__progress-bar {
  height: 100%;
  background: #141414;
  width: 0;
}

.profile-achievements__status {
  font-size: 0.7rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.achievements-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px;
}

.achievements-modal .profile-achievements {
  gap: 12px;
}

.profile-membership {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-membership__label {
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.profile-membership__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-credits-meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-credits-meter__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.profile-credits-meter__value {
  color: #141414;
}

.profile-credits-meter__bar {
  width: 100%;
  height: 8px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.profile-credits-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: #141414;
}

.profile-membership__plan {
  font-size: 1rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.profile-membership__note {
  font-size: 0.85rem;
  color: rgba(20, 20, 20, 0.6);
}

@media (max-width: 900px) {
  .profile-sections {
    grid-template-columns: 1fr;
  }
}

.home {
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: opacity 0.6s ease;
}

.home-section + .home-section {
  margin-top: 0;
}

.home-topbar {
  position: sticky;
  top: 0;
  width: calc(100% + 80px);
  height: 50px;
  background: #000000;
  z-index: 15;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -40px;
  margin-right: -40px;
  margin-bottom: 0;
}

.home-topbar__logo {
  height: 28px;
  width: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.home.is-fading {
  opacity: 0;
}

.dashboard__content.home {
  padding-top: 0;
  background: transparent;
}

.home-hero {
  position: relative;
  padding: 16px 36px 24px;
  margin: 0 -40px 0;
  border: none;
  background: transparent;
  color: var(--text);
  min-height: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: flex-start;
}

.home-hero.is-fading,
.home-section.is-fading {
  opacity: 0;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: none;
  width: 100%;
  margin-top: 0;
}

.home-hero__logo {
  position: absolute;
  top: 36px;
  left: 36px;
  width: min(320px, 80%);
  height: auto;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 6px 10px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  font-size: 0.7rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

.home-hero__title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  margin: 0;
}

.home-hero__subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-section {
  padding: 0;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.6s ease;
}

.home-section[data-home-cards-section] {
  border: none;
  background-color: transparent;
}

.home-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 0;
  border: none;
  background: transparent;
}

.home-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-section__title,
.home-block__title {
  font-size: 1.1rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  margin: 0;
}

.home-section__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-block {
  padding: 24px;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-block--title,
.home-block--text {
  border: none;
  background: transparent;
  padding: 4px 0;
}

.home-block--text.home-block--size-sm,
.home-block--text.home-block--size-md,
.home-block--text.home-block--size-lg {
  padding: 4px 0;
}

.home-block--align-left {
  text-align: left;
}

.home-block--align-center {
  text-align: center;
}

.home-block--align-right {
  text-align: right;
}

.home-block--align-center .home-block__image {
  margin-left: auto;
  margin-right: auto;
}

.home-block--align-right .home-block__image {
  margin-left: auto;
}

.home-block--size-sm {
  padding: 16px;
}

.home-block--size-md {
  padding: 24px;
}

.home-block--size-lg {
  padding: 32px;
}

.home-block--size-sm .home-block__title {
  font-size: 0.95rem;
}

.home-block--size-lg .home-block__title {
  font-size: 1.25rem;
}

.home-block--size-sm .home-section__text {
  font-size: 0.9rem;
}

.home-block--size-lg .home-section__text {
  font-size: 1.1rem;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}

.home-card {
  border: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #ffffff;
}

.home-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-card--layout-side {
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 16px;
  row-gap: 10px;
  align-items: start;
}

.home-card--layout-full {
  position: relative;
  min-height: 220px;
  padding: 16px;
  color: #ffffff;
  overflow: hidden;
}

.home-card--layout-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.home-card--layout-full > * {
  position: relative;
  z-index: 1;
}

.home-card--layout-full .home-card__meta,
.home-card--layout-full .home-card__summary {
  color: rgba(255, 255, 255, 0.78);
}

.home-card--layout-full .home-card__link {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.home-card--layout-side .home-card__image,
.home-card--layout-side .home-preview__dropzone {
  grid-column: 1;
  grid-row: 1 / -1;
}

.home-card--layout-side .home-card__content {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.home-card__meta {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-editor .home-card__meta.is-hidden {
  opacity: 0.5;
  text-decoration: line-through;
}

.home-editor .home-card__meta.is-hidden .home-preview__text {
  text-decoration: line-through;
}

.home-card__title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  font-weight: 400;
}

.home-card__summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.home-card__link {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 20, 20, 0.3);
  align-self: flex-start;
}

.home-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.home-card--layout-full .home-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-card--layout-side .home-card__image {
  grid-row: 1 / -1;
  width: 160px;
  height: 160px;
  min-height: 160px;
}

.home-preview__dropzone {
  border: 1px dashed rgba(20, 20, 20, 0.3);
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 160px;
}

.home-preview__dropzone.is-dragover {
  background: rgba(20, 20, 20, 0.06);
}

.home-preview__dropzone--filled {
  border-style: solid;
  padding: 0;
  background: #ffffff;
}

.home-preview__dropzone-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-preview__dropzone-placeholder {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-preview__dropzone-title {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
}

.home-preview__dropzone-subtitle {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.home-card--layout-side .home-preview__dropzone {
  grid-row: 1 / -1;
  width: 160px;
  min-height: 160px;
  aspect-ratio: 1 / 1;
}

.home-empty {
  margin: 0;
  color: var(--muted);
  display: none;
}

.home-block__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.home-config__group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.home-config__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.home-config__item {
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-config__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-config__item-remove {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-config__item-title {
  font-size: 0.68rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-config__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-editor .dashboard__content {
  height: 100vh;
  overflow: hidden;
  padding: 0;
}

.home-editor .home-preview {
  flex: 1;
  min-height: 0;
}

.home-editor__palette {
  position: fixed;
  top: 32px;
  right: 32px;
  width: min(320px, calc(100vw - var(--sidebar-width) - 48px));
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: #ffffff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 15;
}

.home-editor__palette-toggle {
  align-self: flex-end;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home-editor__palette.is-collapsed {
  width: 52px;
  padding: 10px;
  gap: 0;
}

.home-editor__palette.is-collapsed .home-preview__controls,
.home-editor__palette.is-collapsed .home-editor__actions {
  display: none;
}

.home-editor__palette.is-collapsed .home-editor__palette-toggle .material-symbols-outlined {
  transform: rotate(180deg);
}

.home-editor .home-hero {
  margin: 0 0 24px;
}

.home-editor .home-topbar {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  height: 50px;
}

.home-editor .home-hero__content {
  padding-top: 0;
}

.home-editor .home-hero__logo {
  width: min(280px, 70%);
}

.home-editor__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.home-editor__hidden {
  display: none;
}

.home-preview__controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: center;
}

.home-editor__palette .home-preview__controls {
  grid-template-columns: 1fr;
}

.home-preview__canvas {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.home-editor .home-preview__canvas {
  max-height: none;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  padding-bottom: 24px;
}

.home-editor .home-preview__canvas > * {
  width: 100%;
  flex: 0 0 auto;
  align-self: stretch;
  clear: both;
}

.home-preview__editable {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  position: relative;
  z-index: 1;
  width: 100%;
}

.home-preview__text {
  cursor: text;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-preview__editable.is-empty .home-preview__text {
  color: var(--muted);
}

.home-preview__editable.is-hidden .home-preview__text {
  text-decoration: line-through;
}

.home-preview__edit {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.home-preview__toggle {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.home-preview__toggle.is-hidden {
  opacity: 0.6;
}

.home-preview__card {
  position: relative;
}

.home-preview__main-block {
  border: 1px dashed rgba(20, 20, 20, 0.2);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fbfbfb;
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.home-preview__main-block > .home-section,
.home-preview__main-block > .home-block {
  margin: 0;
  width: 100%;
}

.home-preview__main-block .home-section {
  border: none;
  background: transparent;
  padding: 0;
}

.home-preview__main-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-preview__main-block-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-preview__main-block-label {
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-preview__field {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-preview__field-label {
  font-size: 0.55rem;
  letter-spacing: 0.12rem;
}

.home-preview__select {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 4px 6px;
  font-size: 0.65rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--text);
  font-family: inherit;
}

.home-preview__input {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 4px 6px;
  font-size: 0.65rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--text);
  font-family: inherit;
  min-width: 120px;
}

.home-preview__input--color {
  padding: 0;
  height: 28px;
  min-width: 44px;
}

.home-preview__main-block-add {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.home-preview__card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  z-index: 2;
}

.home-preview__drag {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: var(--text);
}

.home-preview__layout-select {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 4px 6px;
  font-size: 0.65rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--text);
  font-family: inherit;
}

.home-preview__drag .material-symbols-outlined {
  font-size: 16px;
}

.home-preview__card.is-over {
  outline: 2px dashed rgba(20, 20, 20, 0.35);
  outline-offset: 2px;
}

.home-preview__main-block.is-over {
  outline: 2px dashed rgba(20, 20, 20, 0.35);
  outline-offset: 2px;
}

.home-preview__edit .material-symbols-outlined {
  font-size: 16px;
}

.home-preview__toggle .material-symbols-outlined {
  font-size: 16px;
}

.home-preview__inline-input,
.home-preview__inline-textarea {
  border: 1px solid rgba(20, 20, 20, 0.4);
  background: transparent;
  padding: 6px 8px;
  font-size: 0.85rem;
  color: var(--text);
  font-family: inherit;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 180px;
}

.home-preview__inline-textarea {
  min-height: 60px;
  resize: vertical;
}

.home-preview__section-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.home-preview__placeholder {
  border: 1px dashed rgba(20, 20, 20, 0.3);
  background: transparent;
  padding: 16px;
}

.home-preview__action {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 6px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text);
}

.home-preview__action--icon {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-preview__action--icon .material-symbols-outlined {
  font-size: 16px;
}

.home-preview__focal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  align-items: center;
}

.home-preview__focal {
  display: none;
}

.home-preview__focal.is-visible {
  display: grid;
}

.home-config__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.home-config__section-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-layouts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.home-layout {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background-color: #ffffff;
}

.home-layout__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.home-layout__title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.home-layout__toggle {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home-layout__toggle .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.home-layout.is-collapsed .home-layout__toggle .material-symbols-outlined {
  transform: rotate(-90deg);
}

.home-layout__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-layout.is-collapsed .home-layout__body {
  display: none;
}

.home-layout__settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.home-config__status {
  font-size: 0.72rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-config__picker {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.home-config__picker .form__input {
  width: 100%;
}

.home-config__picker-actions {
  display: inline-flex;
  gap: 4px;
  align-items: stretch;
}

.home-config__picker-button {
  border: 1px solid rgba(20, 20, 20, 0.2);
  width: 30px;
  height: 100%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
}

.home-config__picker-button .material-symbols-outlined {
  font-size: 18px;
}

.home-config .form__field {
  gap: 6px;
}

.home-config .form__label {
  font-size: 0.7rem;
  letter-spacing: 0.1rem;
}

.home-config .form__input,
.home-config .form__textarea,
.home-config .form__select {
  padding: 8px 10px;
  font-size: 0.85rem;
}

.home-config .form__input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
}

.home-config .form__textarea {
  min-height: 64px;
}

.home-config .form__actions .button,
.home-config .button--dashed {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.home-config__picker-button:hover {
  background-color: rgba(20, 20, 20, 0.06);
}

.media-library {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-library__paths {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--muted);
}

.media-library__roots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-library__dropzone {
  border: 1px dashed rgba(20, 20, 20, 0.35);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  background: rgba(20, 20, 20, 0.02);
}

.media-library__dropzone.is-dragover {
  background: rgba(20, 20, 20, 0.08);
}

.media-library__dropzone-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.02rem;
}

.media-library__dropzone-content strong {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.media-library__dropzone-content .material-symbols-outlined {
  font-size: 28px;
  color: var(--muted);
}

.media-library__input {
  display: none;
}

.media-library__root {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 6px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  cursor: pointer;
}

.media-library__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.media-library__item {
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: transparent;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.media-library__item:hover {
  background-color: rgba(20, 20, 20, 0.05);
}

.media-library__icon {
  font-size: 28px;
  color: var(--muted);
}

.media-library__thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border: 1px solid rgba(20, 20, 20, 0.1);
}

.media-library__name {
  font-size: 0.75rem;
  color: var(--text);
  word-break: break-word;
}

@media (max-width: 960px) {
  .home-hero {
    padding: 16px 28px 20px;
  }

  .home-hero__logo {
    top: 28px;
    left: 28px;
  }
}

@media (max-width: 720px) {
  .home {
    gap: 0;
  }

  .home-section + .home-section {
    margin-top: 0;
  }

  .home-topbar {
    margin-top: 0;
    margin-bottom: 0;
  }

  .home-hero {
    padding: 12px 24px 20px;
  }

  .home-hero__logo {
    top: 24px;
    left: 24px;
  }

  .home-section {
    padding: 0;
  }

  .home-block {
    padding: 20px;
  }
}

.profile__option {
  border: none;
  background: transparent;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}

.profile__option-icon {
  font-size: 1.05rem;
  color: var(--text);
}

.profile__divider {
  width: 100%;
  height: 1px;
  background: rgba(20, 20, 20, 0.15);
  margin: 4px 0;
}

.profile__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background-color: #2f9e44;
}

.profile__dot--busy {
  background-color: #c1121f;
}

.profile__status-group {
  position: relative;
}

.profile__option--submenu {
  justify-content: space-between;
}

.profile__submenu-chevron {
  font-size: 1rem;
  color: var(--muted);
}

.profile__submenu {
  display: none;
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: #f2f2f2;
  z-index: 6;
  flex-direction: column;
  gap: 6px;
}

.profile__status-group.is-open .profile__submenu {
  display: flex;
}

.profile__status-group.is-open .profile__submenu-chevron {
  color: var(--text);
}

.profile__submenu-option {
  width: 100%;
}

.chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
}

.chat__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background-color: #f2f2f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
}

.chat__toggle-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: #c1121f;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.chat__toggle-badge[hidden] {
  display: none;
}

.log {
  position: fixed;
  right: 96px;
  bottom: 24px;
  z-index: 20;
}

.processes {
  position: fixed;
  right: 168px;
  bottom: 24px;
  z-index: 20;
}

.processes__pill {
  min-width: 230px;
  height: 56px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background-color: #f2f2f2;
  border-radius: 999px;
  display: none;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  cursor: default;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.processes__pill.is-visible {
  display: inline-flex;
}

.processes__pill-label {
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.processes__pill-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.processes__pill-status {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.processes__pill-ring {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.processes__pill-cancel {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(193, 18, 31, 0.14);
  color: #c1121f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  border-radius: 999px;
  z-index: 3;
}

.processes__pill-cancel .material-symbols-outlined {
  font-size: 18px;
}

.processes__pill-ring-svg {
  position: absolute;
  inset: 0;
  width: 36px;
  height: 36px;
  transform: rotate(-90deg);
}

.processes__pill-ring-track,
.processes__pill-ring-progress {
  fill: none;
  stroke-width: 3;
}

.processes__pill-ring-track {
  stroke: rgba(20, 20, 20, 0.18);
}

.processes__pill-ring-progress {
  stroke: #141414;
}

.processes__pill-percent {
  position: relative;
  font-size: 0.6rem;
  letter-spacing: 0.08rem;
  color: var(--text);
  z-index: 1;
}

.processes__pill-check {
  display: none;
  font-size: 20px;
  color: #1b7a3a;
  position: relative;
  z-index: 1;
}

.processes__pill-fail {
  display: none;
  font-size: 20px;
  color: #c1121f;
  position: relative;
  z-index: 1;
}

.processes__pill-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(20, 20, 20, 0.35);
  background: rgba(20, 20, 20, 0.12);
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.processes__pill-close .material-symbols-outlined {
  font-size: 16px;
}

.processes__pill:hover .processes__pill-close {
  opacity: 1;
  pointer-events: auto;
}

.processes__pill.is-complete .processes__pill-ring-progress {
  stroke: #1b7a3a;
}

.processes__pill.is-complete .processes__pill-ring-track {
  stroke: rgba(27, 122, 58, 0.2);
}

.processes__pill.is-complete .processes__pill-percent {
  display: none;
}

.processes__pill.is-complete .processes__pill-check {
  display: inline-flex;
}

.processes__pill.is-failed .processes__pill-ring-progress {
  stroke: #c1121f;
}

.processes__pill.is-failed .processes__pill-ring-track {
  stroke: rgba(193, 18, 31, 0.2);
}

.processes__pill.is-failed .processes__pill-percent {
  display: none;
}

.processes__pill.is-failed .processes__pill-fail {
  display: inline-flex;
}

.processes__pill.is-failed .processes__pill-status {
  color: #c1121f;
}

.processes__pill.is-canceled .processes__pill-label {
  text-decoration: line-through;
  color: var(--muted);
}

.processes__pill.is-canceled .processes__pill-status {
  color: #c1121f;
}

.processes__pill.is-processing .processes__pill-ring:hover .processes__pill-cancel {
  opacity: 1;
  pointer-events: auto;
}

.processes__pill.is-processing .processes__pill-ring:hover .processes__pill-percent {
  opacity: 0;
}

.processes__pill.is-processing .processes__pill-percent {
  pointer-events: none;
}

.processes__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: max-content;
  min-width: 230px;
  max-width: calc(100vw - var(--sidebar-width) - 48px);
  background: transparent;
  border: none;
  display: none;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.processes__panel .processes__header {
  display: none;
}

.processes__panel.is-open {
  display: flex;
}

.processes__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
}

.processes__title {
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.processes__close {
  border: none;
  background: transparent;
  cursor: pointer;
}

.processes__body {
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  align-items: flex-end;
}

.processes__empty {
  font-size: 0.78rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
}

.processes__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 10px 12px;
}

.processes__pill--stacked {
  width: auto;
  min-width: 230px;
  display: inline-flex;
}

.processes__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.processes__tool {
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.processes__status {
  font-size: 0.82rem;
  color: var(--text);
}

.processes__bar {
  width: 100%;
  height: 6px;
  background: rgba(20, 20, 20, 0.1);
  position: relative;
}

.processes__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #141414;
  width: 0;
}

.log__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background-color: #f2f2f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.log__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 360px;
  height: 320px;
  min-width: 320px;
  min-height: 240px;
  max-width: calc(100vw - var(--sidebar-width) - 48px);
  max-height: 520px;
  background-color: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.log__panel.is-open {
  display: flex;
}

.log__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.log__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.log__title {
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.log__close,
.log__button {
  border: none;
  background: transparent;
  cursor: pointer;
}

.log__body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 0.8rem;
  white-space: pre-wrap;
  color: var(--muted);
}

.chat__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 480px;
  height: 420px;
  min-width: 480px;
  min-height: 440px;
  max-width: calc(100vw - var(--sidebar-width) - 48px);
  max-height: 640px;
  background-color: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.chat__resize {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: nwse-resize;
}

.chat__resize::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(20, 20, 20, 0.35);
  border-left: 2px solid rgba(20, 20, 20, 0.35);
}

.chat__panel.is-open {
  display: flex;
}

.chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.chat__title {
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.chat__close {
  border: none;
  background: transparent;
  cursor: pointer;
}

.chat__search {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.chat__search input {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 8px 10px;
  font-size: 0.85rem;
  outline: none;
}

.chat__body {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(300px, 1fr);
  height: 100%;
  min-height: 0;
}

.chat__users {
  border-right: 1px solid rgba(20, 20, 20, 0.08);
  overflow-y: auto;
}

.chat__user {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat__user-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: #c1121f;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-left: auto;
}

.chat__user-badge[hidden] {
  display: none;
}

.chat__user-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.chat__user-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.chat__user-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background-color: rgba(20, 20, 20, 0.06);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text);
}

.chat__user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat__user.is-active {
  background-color: rgba(20, 20, 20, 0.06);
}

.chat__user-name {
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat__user-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #a0a0a0;
}

.chat__status-dot--avatar {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
}

.chat__status-dot[data-status='online'] {
  background-color: #2f9e44;
}

.chat__status-dot[data-status='busy'] {
  background-color: #c1121f;
}

.chat__messages {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  flex: 1;
  min-height: 0;
}

.chat__history {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  min-height: 0;
}

.chat__bubble {
  max-width: 80%;
  padding: 8px 10px;
  border: none;
  font-size: 0.8rem;
  line-height: 1.4;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background-color: #dbe9ff;
}

.chat__bubble-text {
  min-width: 0;
}

.chat__bubble-time {
  font-size: 0.6rem;
  color: var(--muted);
  flex-shrink: 0;
}

.chat__bubble--me {
  margin-left: auto;
  background-color: #e6e6e6;
}

.chat__typing {
  max-width: 80%;
  padding: 8px 10px;
  border: none;
  font-size: 0.8rem;
  line-height: 1.4;
  border-radius: 14px;
  display: flex;
  align-items: center;
  background-color: #dbe9ff;
}

.chat__typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chat__typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--muted);
  animation: chatTypingPulse 1s infinite ease-in-out;
}

.chat__typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chat__typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chatTypingPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.site-footer {
  padding: 0 24px 24px;
  margin-top: 48px;
  position: relative;
}

.site-footer__rule {
  width: 100%;
  height: 1px;
  background-color: rgba(20, 20, 20, 0.12);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr);
  gap: 32px;
  padding-top: 24px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.site-footer__logo {
  width: min(200px, 80%);
  height: auto;
}

.site-footer__tagline {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.site-footer__title {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04rem;
  text-transform: none;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--text);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__brand .site-footer__socials {
  margin-top: 4px;
  width: min(200px, 80%);
  justify-content: center;
}

.site-footer__social {
  border: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  color: var(--text);
}

.site-footer__social-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(20, 20, 20, 0.25));
}

.site-footer__rating {
  width: 52px;
  height: auto;
}

.site-footer__rating-link {
  display: inline-flex;
  align-self: flex-start;
}

.site-footer__rating-link--bottom {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 22px;
  align-self: center;
}

.age-gate__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding-bottom: 6px;
}

.age-gate__rating {
  width: 56px;
  height: auto;
}

.age-gate__rating-link {
  display: inline-flex;
}

.age-gate__logo {
  width: 250px;
  height: auto;
}

.age-gate__title {
  margin: 4px 0 0;
  font-size: 1.3rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  font-weight: 700;
}

.age-gate-popup .swal2-html-container {
  margin-top: 0;
}

.age-gate-popup .swal2-actions {
  flex-direction: row;
  justify-content: center;
  gap: 12px;
}

.age-gate-popup .swal2-footer {
  margin: 16px 0 0;
  padding: 0;
  border-top: 0;
  display: flex;
  justify-content: center;
}

.age-gate__language {
  position: absolute;
  top: -8px;
  left: -8px;
}

.age-gate__language-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.25);
  color: #141414;
  font-size: 0.7rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 0;
}

.age-gate__language-icon {
  font-size: 16px;
}

.age-gate__language-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 150px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.18);
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.12);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 0;
  z-index: 2;
}

.age-gate__language-menu[hidden] {
  display: none;
}

.age-gate__language-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 6px 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}

.legal-page {
  background-color: #f5f5f5;
  color: var(--text);
  min-height: 100vh;
  --legal-doc-width: 750px;
}

.legal-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 72px;
  background-color: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.12);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 10px 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.7rem;
  background-color: #ffffff;
}

.legal-back .material-symbols-outlined {
  font-size: 18px;
}

.legal-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-weight: 500;
}

.legal-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-card {
  border: none;
  background-color: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-card__title {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-card__body {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
}

.legal-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
  line-height: 1.6;
}

.legal-shell--embedded {
  max-width: none;
  background-color: transparent;
  border: none;
  padding: 0;
  gap: 0;
}

.legal-shell--document {
  max-width: none;
  background-color: transparent;
  border: none;
  padding: 32px 16px 72px;
  gap: 32px;
  align-items: center;
}

.legal-shell--editor {
  max-width: 1100px;
  background-color: transparent;
  border: none;
  padding: 40px 24px 72px;
  gap: 0;
}

.legal-doc-controls {
  width: 100%;
  max-width: var(--legal-doc-width);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-doc-action {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background-color: #ffffff;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.7rem;
}

.legal-doc-action .material-symbols-outlined {
  font-size: 18px;
}

.legal-doc-logo {
  padding: 8px 16px;
}

.legal-doc-logo img {
  display: block;
  height: 22px;
  width: auto;
}

.legal-document {
  width: 100%;
  max-width: var(--legal-doc-width);
  margin: 0 auto;
  padding: 32px 28px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background-color: #ffffff;
  line-height: 1.65;
  min-height: 60vh;
}

.legal-document img {
  max-width: 100%;
  height: auto;
}

.legal-scroll-top {
  position: fixed;
  left: 50%;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.25);
  background: #ffffff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.legal-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.legal-scroll-top .material-symbols-outlined {
  font-size: 22px;
}

.legal-doc-actions {
  width: 100%;
  display: flex;
  justify-content: center;
}

.legal-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 10px 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.7rem;
  background-color: #ffffff;
}

.legal-home-link .material-symbols-outlined {
  font-size: 18px;
}

.legal-doc {
  width: 100%;
  display: flex;
  justify-content: center;
}

.legal-doc .doc-content {
  width: 100%;
  max-width: var(--legal-doc-width, 600px) !important;
  margin: 0 auto;
}

.legal-doc .c3,
.legal-doc .c10,
.legal-doc .c11,
.legal-doc .c16 {
  max-width: var(--legal-doc-width, 600px) !important;
  margin: 0 auto;
}

.legal-embed {
  display: flex;
  justify-content: center;
  padding: 40px 20px 72px;
}

.legal-embed .doc-content {
  margin: 0;
  width: 100%;
  max-width: 600px !important;
}

.legal-embed ul,
.legal-embed ol {
  margin-left: 0;
  padding-left: 0;
}

.legal-embed li {
  margin-left: 0;
  padding-left: 0;
}

@media (max-width: 640px) {
  .legal-shell {
    padding: 24px 18px 64px;
  }

  .legal-title {
    font-size: 1.3rem;
  }

  .legal-doc-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-doc-action {
    justify-content: center;
  }

  .legal-scroll-top {
    left: 50%;
    right: auto;
    transform: translate(-50%, 0);
  }

  .legal-scroll-top.is-visible {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 900px) {
  .site-footer {
    padding-bottom: 96px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

.chat__composer {
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  padding: 10px;
  display: flex;
  gap: 8px;
  min-height: 64px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.chat__composer input {
  flex: 1;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 8px 10px;
  font-size: 0.85rem;
  outline: none;
  min-width: 220px;
  flex-basis: 220px;
}

.chat__send {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chat__send .material-symbols-outlined {
  font-size: 1rem;
}

@media (max-width: 640px) {
  .chat {
    right: 16px;
    bottom: 16px;
  }

  .log {
    right: 88px;
    bottom: 16px;
  }

  .chat__panel {
    width: calc(100vw - 32px);
    height: calc(100vh - 140px);
    min-width: 0;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 140px);
  }

  .log__panel {
    width: calc(100vw - 32px);
    height: 40vh;
    max-width: calc(100vw - 32px);
  }

  .chat__body {
    grid-template-columns: 1fr;
  }

  .chat__users {
    max-height: 120px;
  }
}

.sidebar__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sidebar__home-shortcut {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  z-index: 2;
}

.sidebar__home-shortcut .material-symbols-outlined {
  font-size: 20px;
}

.sidebar__home-shortcut:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.4);
  outline-offset: 2px;
}

.sidebar__collapse {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.sidebar__collapse .material-symbols-outlined {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.sidebar__logo {
  width: 140px;
  height: auto;
}

.sidebar__title {
  font-size: 0.75rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  max-width: 140px;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar__divider {
  height: 1px;
  background: rgba(20, 20, 20, 0.15);
  margin: 6px 0;
}

.sidebar__language {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.sidebar__language-toggle,
.sidebar__language-option {
  border: none;
  background: transparent;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.7rem;
  justify-content: flex-start;
}

.sidebar__language-toggle {
  width: 100%;
}

.sidebar__language-icon,
.sidebar__language-chevron {
  font-size: 18px;
}

.sidebar__language-chevron {
  margin-left: auto;
}

.sidebar__language-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.12);
  z-index: 3;
}

.sidebar__language-menu.is-open {
  display: flex;
}

.sidebar__language-option.is-active {
  background: rgba(20, 20, 20, 0.06);
}

.sidebar__language-option[hidden] {
  display: none;
}

.sidebar__language-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  display: block;
}

.home-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.35);
  z-index: 40;
}

.home-mobile-nav {
  display: none;
}

.home-mobile-nav__button {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.home-mobile-nav__button .material-symbols-outlined {
  font-size: 24px;
}

.settings__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.settings__list li {
  border-left: 2px solid rgba(20, 20, 20, 0.2);
  padding-left: 12px;
}

.settings__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.settings__section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings__section-title {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
}

.settings__section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.settings__route-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings__route-item {
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: #ffffff;
}

.settings__route-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings__route-title {
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.settings__route-path {
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
}

.settings__ip-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings__ip-item {
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: #ffffff;
}

.settings__ip-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings__ip-value {
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.settings__ip-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.settings__ip-empty {
  margin: 0;
}

.settings__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.settings__status {
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.settings__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.settings__preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.settings__preview-frame {
  width: 100%;
  height: 420px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
}

.settings__preview-shell {
  position: relative;
}

.settings__preview-launch {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.settings-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 70;
}

.settings-preview-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.settings-preview-overlay__frame {
  position: relative;
  width: min(1100px, 92vw);
  height: min(720px, 90vh);
  background: #ffffff;
}

.settings-preview-overlay__iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.settings-preview-overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #141414;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.settings-preview-overlay__close .material-symbols-outlined {
  font-size: 26px;
}

.doc-editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 80;
}

.doc-editor-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.doc-editor {
  width: min(1200px, 94vw);
  height: min(82vh, 820px);
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc-editor__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.doc-editor__eyebrow {
  margin: 0 0 4px;
  font-size: 0.7rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-editor__title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.doc-editor__subtitle {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.doc-editor__close {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  color: var(--text);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.doc-editor__close .material-symbols-outlined {
  font-size: 20px;
}

.doc-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  background-color: #f7f7f7;
}

.doc-editor__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-editor__select,
.doc-editor__input {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 8px 10px;
  font-size: 0.85rem;
  min-width: 140px;
  font-family: inherit;
  color: var(--text);
}

.doc-editor__input[type="color"] {
  padding: 2px 6px;
  min-width: 60px;
  height: 36px;
}

.doc-editor__button {
  border: 1px solid rgba(20, 20, 20, 0.4);
  background: #ffffff;
  padding: 8px 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
}

.doc-editor__button .material-symbols-outlined {
  font-size: 18px;
}

.doc-editor__divider {
  width: 1px;
  height: 32px;
  background: rgba(20, 20, 20, 0.2);
}

.doc-editor__content {
  flex: 1;
  margin: 20px;
  padding: 20px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  overflow: auto;
  background: #ffffff;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
}

.doc-editor__content:focus {
  outline: none;
  border-color: rgba(20, 20, 20, 0.35);
}

.doc-editor__content:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.doc-editor__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 20px 20px;
}

@media (max-width: 900px) {
  .settings__preview-frame {
    height: 360px;
  }

  .settings-preview-overlay__frame {
    width: 94vw;
    height: 88vh;
  }

  .doc-editor {
    width: 94vw;
    height: 86vh;
  }
}

.sidebar__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  padding: 8px 0;
}

.sidebar__link--toggle {
  background: none;
  border: none;
  width: 100%;
  justify-content: space-between;
  padding: 8px 0;
  font-family: inherit;
}

.sidebar__icon {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: currentColor;
}

.sidebar__chevron {
  margin-left: auto;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.sidebar__link--toggle.is-open .sidebar__chevron {
  transform: rotate(180deg);
}

.sidebar__submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 4px 26px;
  position: relative;
}

.sidebar__submenu.is-open {
  display: flex;
}

.sidebar__submenu.is-open::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -2px;
  bottom: 2px;
  width: 1px;
  background: rgba(20, 20, 20, 0.25);
}

.sidebar__submenu.is-open::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 9px;
  width: 14px;
  height: 1px;
  background: rgba(20, 20, 20, 0.25);
}

.sidebar__sublink {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  padding: 2px 0;
  line-height: 1.2;
  position: relative;
}

.sidebar__sublink::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: rgba(20, 20, 20, 0.25);
  transform: translateY(-50%);
}

.sidebar__sublabel {
  font-size: 0.7rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.45);
  padding-top: 6px;
}

.sidebar__sublink--active {
  color: var(--text);
  font-weight: 500;
}

.sidebar__link--active {
  font-weight: 700;
}

.home-page .sidebar__header {
  align-items: flex-end;
}

.home-page .sidebar {
  transition: width 0.25s ease, padding 0.25s ease;
}

.home-page .dashboard__content {
  transition: margin-left 0.25s ease;
}

.home-page.home-sidebar-collapsed .sidebar {
  width: 60px;
  padding: 20px 10px;
}

.home-page.home-sidebar-collapsed .dashboard__content {
  margin-left: 60px;
}

.home-page.home-sidebar-collapsed .sidebar__collapse .material-symbols-outlined {
  transform: rotate(180deg);
}

.home-page.home-sidebar-collapsed .sidebar__link {
  justify-content: center;
  font-size: 0;
  width: 100%;
  text-align: center;
  gap: 0;
  position: relative;
  min-height: 34px;
}

.home-page.home-sidebar-collapsed .sidebar__link::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.08);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.home-page.home-sidebar-collapsed .sidebar__link:hover::before,
.home-page.home-sidebar-collapsed .sidebar__link:focus-visible::before,
.home-page.home-sidebar-collapsed .sidebar__link:active::before {
  opacity: 1;
}

.home-page.home-sidebar-collapsed .sidebar__chevron {
  display: none;
}

.home-page.home-sidebar-collapsed .sidebar__submenu {
  display: none;
}

.home-page.home-sidebar-collapsed .sidebar__sublabel {
  display: block;
  text-align: center;
  padding: 6px 0 0;
}

.sidebar__sublabel-short {
  display: none;
}

.home-page.home-sidebar-collapsed .sidebar__sublabel-full {
  display: none;
}

.home-page.home-sidebar-collapsed .sidebar__sublabel-short {
  display: inline;
}

.home-page.home-sidebar-collapsed .sidebar__icon {
  font-size: 1.2rem;
  margin: 0;
  width: 34px;
  height: 34px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.home-page.home-sidebar-collapsed .profile {
  justify-content: center;
  padding: 10px;
  gap: 0;
}

.home-page.home-sidebar-collapsed .sidebar__header {
  align-items: center;
}

.home-page.home-sidebar-collapsed .profile__avatar {
  width: 36px;
  height: 36px;
}

.home-page.home-sidebar-collapsed .profile__name,
.home-page.home-sidebar-collapsed .profile__chevron {
  display: none;
}

.home-page.home-sidebar-collapsed .sidebar__language-toggle [data-language-current],
.home-page.home-sidebar-collapsed .sidebar__language-toggle .sidebar__language-chevron {
  display: none;
}

.home-page.home-sidebar-collapsed .sidebar__language-toggle {
  justify-content: center;
  padding: 8px 0;
}

.home-page.home-sidebar-collapsed .sidebar__language-menu {
  display: none;
}

.home-page.home-sidebar-collapsed .sidebar__language-menu.is-open {
  display: flex;
  left: 0;
  right: auto;
  transform: none;
  width: 200px;
}

.home-page.home-sidebar-collapsed .profile__menu {
  left: 0;
  right: auto;
  transform: none;
  width: 220px;
}

@media (max-width: 900px) {
  .home-topbar {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 0;
  }
  .sidebar {
    width: 220px;
    padding: 20px 16px;
  }

  .sidebar__logo {
    width: 120px;
  }

  :root {
    --sidebar-width: 220px;
  }

  .dashboard__content {
    margin-left: 220px;
    padding: 28px 24px;
  }

  .settings-page .dashboard__content {
    margin-left: calc(var(--sidebar-width) + var(--settings-sidebar-width));
  }

  .home-hero {
    margin: 0 -24px 0;
  }
}

@media (max-width: 640px) {
  .home-topbar {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 0;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  :root {
    --sidebar-width: 0px;
  }

  .sidebar__profile {
    margin-top: 16px;
  }

  .dashboard__content {
    margin-left: 0;
    padding: 24px 20px;
  }

  .settings-sidebar {
    position: relative;
    left: 0;
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(20, 20, 20, 0.12);
    padding: 16px 20px;
  }

  .settings-page .dashboard__content {
    margin-left: 0;
  }

  .sidebar__collapse {
    display: none;
  }

  .home-hero {
    margin: 0 -20px 0;
  }

  .home-page .dashboard__content {
    padding-bottom: 96px;
  }

  .home-page .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 75vw;
    height: 100vh;
    min-height: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 50;
    background-color: #f2f2f2;
  }

  .home-page.home-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .home-page.home-sidebar-open .home-mobile-overlay {
    display: block;
  }

  .home-page .home-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: #ffffff;
    border-top: 1px solid rgba(20, 20, 20, 0.12);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    z-index: 60;
  }

  .table__row {
    grid-template-columns: 1fr;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .overview__stats {
    grid-template-columns: 1fr;
  }

  .overview__grid {
    grid-template-columns: 1fr;
  }

  .table__row--four {
    grid-template-columns: 1fr;
  }

  .panel__split {
    grid-template-columns: 1fr;
  }

  .home-editor__palette {
    position: static;
    width: 100%;
  }
}

.swal-popup {
  border-radius: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 24px 24px 20px;
}

.swal2-title,
.swal2-html-container {
  color: #000000;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.swal2-title {
  font-weight: 400;
  text-transform: uppercase;
}

.swal2-icon {
  border: none;
  background: transparent;
  width: 72px;
  height: 72px;
}

.swal2-icon .material-symbols-outlined {
  font-size: 44px;
}

.swal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.swal-form--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.swal-form--grid .swal-form__field--full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .swal-form--grid {
    grid-template-columns: 1fr;
  }

  .swal-form--grid .swal-form__field--full {
    grid-column: auto;
  }
}

.swal-stats {
  display: grid;
  gap: 12px;
  text-align: left;
}

.swal-stats__row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 12px;
  align-items: center;
}

.swal-stats__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-stats__value {
  font-size: 0.95rem;
  color: var(--text);
}

.swal-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swal-form__control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.swal-form__control .swal-form__input {
  width: 100%;
}

.swal-form__status {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
}

.swal-form__status.is-valid {
  color: #0b6b3a;
  opacity: 1;
}

.swal-form__status.is-invalid {
  color: var(--danger);
  opacity: 1;
}

.swal-form__hint {
  min-height: 0.85rem;
  font-size: 0.75rem;
  color: var(--danger);
}

.swal-form__notice {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--danger);
  min-height: 0.9rem;
}

.swal-form__notice.is-visible {
  display: block;
}

.swal-form__notice-link {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.swal-form__consent {
  align-items: flex-start;
  gap: 8px;
}

.swal-form__consent .swal-form__control {
  gap: 8px;
  align-items: flex-start;
}

.swal-form__checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  margin-top: 2px;
}

.swal-form__consent-text {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.4;
}

.swal-legal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.35);
  z-index: 30050;
  padding: 24px;
}

.swal-legal.is-open {
  display: flex;
}

.swal-legal__panel {
  position: relative;
  width: min(960px, 92vw);
  height: min(78vh, 720px);
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.12);
  display: flex;
  flex-direction: column;
  padding-top: 48px;
}

.swal-legal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.swal-legal__close .material-symbols-outlined {
  font-size: 20px;
}

.swal-legal__frame {
  width: 100%;
  height: calc(100% - 48px);
  border: none;
}

.swal-popup--legal-open .swal2-actions,
.swal-actions--hidden,
.swal-legal-open .swal2-actions,
.swal-legal-open .swal2-confirm,
.swal-legal-open .swal2-cancel {
  display: none !important;
}

.legal-page--embedded .legal-doc-controls a.legal-doc-action {
  display: none;
}

.legal-page--embedded .legal-doc-controls {
  justify-content: flex-end;
}

.legal-page--loading .legal-doc-controls {
  opacity: 0;
}


.swal-form__tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swal-form__row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 160px 140px 120px;
  gap: 12px;
  align-items: center;
}

.swal-form__row--header {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-form__cell {
  font-size: 0.85rem;
  color: var(--text);
}

.swal-popup {
  width: min(720px, 92vw);
}

.swal-form__row .swal-form__input[type="number"] {
  max-width: 140px;
}

.api-spend-toast-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: #ffffff;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.08rem;
  color: #d92d2d;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 6;
}

.api-spend-toast-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.swal-form__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-form__input {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}

.swal-form__input--status {
  padding-right: 36px;
}

.swal-form__input.is-valid {
  border-color: #0b6b3a;
}

.swal-form__input.is-invalid {
  border-color: var(--danger);
}

.swal2-validation-message {
  background: transparent;
  color: var(--danger);
  text-align: left;
  padding: 0;
  margin: 8px 0 0;
  font-size: 0.8rem;
  display: block;
}

.swal2-validation-message::before {
  display: none;
}

select.swal-form__input {
  appearance: none;
  background-color: transparent;
}

.swal-button {
  border-radius: 0;
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: transparent;
  padding: 10px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}

.swal-button--secondary {
  border-color: rgba(20, 20, 20, 0.4);
  color: var(--muted);
}

.swal2-actions {
  gap: 12px;
}

.registration-complete {
  background: #ffffff;
  color: var(--text);
}

.registration-complete__main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 20px;
  text-align: center;
}

.registration-complete__logo {
  width: 160px;
  height: auto;
}

.registration-complete__title {
  font-size: 1.4rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-weight: 500;
}

.registration-complete__message {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 520px;
}

.registration-complete__status {
  min-height: 1.2em;
  font-size: 0.85rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.registration-complete__status.is-error {
  color: var(--danger);
}

.content-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.content-editor__compact {
  min-width: 130px;
}

.content-editor__color {
  width: 56px;
  min-width: 56px;
  padding: 0;
}

.content-editor__surface {
  min-height: 340px;
  padding: 12px;
  border: 1px solid #d8dde8;
  background: #fff;
  color: #111;
  line-height: 1.6;
}

.content-editor__surface:focus {
  outline: none;
  border-color: #111;
}

.content-editor__image-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-editor__image-row .form__label {
  width: 100%;
}

.content-editor__file-input {
  display: none;
}

.content-editor__control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.content-editor__image-options {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 8px;
}

.content-editor__control-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--muted);
}

.content-editor__image-row .button {
  width: 100%;
  align-self: stretch;
}

.content-editor__pending-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr 64px;
  gap: 8px;
  align-items: center;
}

.content-editor__pending-row #editor-insert-image {
  width: auto;
  min-width: 150px;
}

.content-editor__pending-list {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  border: 1px solid #d8dde8;
  background: #fff;
  padding: 6px;
}

.content-editor__pending-item {
  width: 52px;
  height: 52px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid #d8dde8;
  background: #f6f8fd;
  cursor: grab;
}

.content-editor__pending-item.is-dragging {
  opacity: 0.5;
}

.content-editor__pending-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-editor__pending-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border: 1px solid #141414;
  background: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.content-editor__pending-delete .material-symbols-outlined {
  font-size: 14px;
}

.content-editor__add-square {
  width: 64px;
  height: 64px;
  border: 1px dashed #b9c2d4;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.content-editor__add-square.is-dragover {
  border-color: #111;
}

.content-editor__add-square.is-uploading {
  opacity: 0.65;
  pointer-events: none;
}

.content-editor__add-square .material-symbols-outlined {
  font-size: 24px;
}

.content-editor__surface img.is-selected-content-image {
  outline: 2px dashed #111;
  outline-offset: 3px;
}

.content-editor__surface img[data-content-editor-image="true"] {
  display: block;
  margin: 12px auto;
}

.content-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eceff6;
}

.content-list__row:last-child {
  border-bottom: 0;
}

.content-list__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.content-list__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.custom-public-page {
  min-height: 100vh;
  margin: 0;
  background: #f3f5fa;
  color: #111;
  font-family: Montserrat, Arial, sans-serif;
}

.custom-public-page__shell {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.custom-public-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: #111;
  text-decoration: none;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.custom-public-page__article {
  background: #fff;
  border: none;
  box-shadow: none;
  padding: 18px;
  width: min(900px, 100%);
  margin: 0 auto;
  overflow-wrap: anywhere;
}

.custom-public-page .panel,
.custom-public-page .panel--span,
.custom-public-page .custom-public-page__article {
  border: none !important;
  box-shadow: none !important;
}

.custom-public-page__article img {
  max-width: 100%;
  height: auto;
}

.custom-public-page__article img[data-content-editor-image="true"] {
  display: block;
  margin: 12px auto;
}

@media (max-width: 900px) {
  .content-editor__image-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-editor__pending-row {
    grid-template-columns: 1fr;
  }

  .content-editor__add-square {
    width: 100%;
  }
}
