
.cs-tab-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.cs-tab-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.65rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  background: rgba(var(--black-color-rgb), 0.025);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  font-family: "Outfit", sans-serif;
}

.cs-tab-item:hover {
  background: rgba(var(--black-color-rgb), 0.055);
  border-color: rgba(var(--black-color-rgb), 0.1);
}

.cs-tab-item--active {
  background: rgba(var(--primary-color-rgb), 0.05);
  border-color: rgba(var(--primary-color-rgb), 0.18);
}

.cs-tab-item--active:hover {
  background: rgba(var(--primary-color-rgb), 0.07);
  border-color: rgba(var(--primary-color-rgb), 0.25);
}

.cs-tab-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(var(--black-color-rgb), 0.04);
  border: 1px solid rgba(var(--black-color-rgb), 0.07);
  color: var(--color-gray-500);
  transition: all 0.25s ease;
}

.cs-tab-icon svg {
  width: 14px;
  height: 14px;
}

.cs-tab-item--active .cs-tab-icon {
  background: rgba(var(--primary-color-rgb), 0.12);
  border-color: rgba(var(--primary-color-rgb), 0.25);
  color: var(--primary-color);
}

.cs-tab-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.cs-tab-label {
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--color-gray-700);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cs-tab-subtitle {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-gray-400);
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin-top: 2px;
}

.cs-tab-item--active .cs-tab-label {
  color: var(--text-color);
}

.cs-tab-arrow {
  flex-shrink: 0;
  color: var(--color-gray-400);
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
}

.cs-tab-arrow svg {
  width: 14px;
  height: 14px;
}

.cs-tab-item--active .cs-tab-arrow {
  color: rgba(var(--primary-color-rgb), 0.6);
}

.cs-tab-content {
  display: none;
}

main[data-view="design"] #col-design .cs-tab-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  animation: csPaneFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#cs-tab-content .create-card-wrap {
  width: 100%;
  flex: 1;
}

@keyframes csPaneFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cs-basic-form {
  gap: 1.25rem;
  animation: none;
  opacity: 1;
}

.cs-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 639px) {
  .cs-grid-2 {
    grid-template-columns: 1fr;
  }
}

.cs-select {
  position: relative;
  width: 100%;
}

.cs-select-btn {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--color-neutral-off-white);
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  border-radius: 0.6rem;
  padding: 0.65rem 0.85rem;
  font-size: var(--st-text-base);
  font-weight: 500;
  color: var(--text-color);
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.cs-select-btn:hover {
  border-color: rgba(var(--black-color-rgb), 0.14);
  background-color: var(--color-gray-100);
}

.cs-select[data-open="true"] .cs-select-btn {
  border-color: var(--primary-color);
  background: var(--white-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.cs-select-btn--empty .cs-select-value {
  color: var(--color-gray-400);
  font-weight: 400;
}

.cs-select-value {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.cs-select-chevron {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--color-gray-400);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.cs-select[data-open="true"] .cs-select-chevron {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.cs-select-btn:hover .cs-select-chevron {
  color: var(--color-gray-500);
}

.cs-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0.3rem;
  background: var(--white-color);
  border: 1px solid rgba(var(--black-color-rgb), 0.08);
  border-radius: 0.65rem;
  box-shadow:
    0 10px 30px -12px rgba(var(--color-slate-900-rgb), 0.18),
    0 4px 10px -4px rgba(var(--color-slate-900-rgb), 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  pointer-events: none;
  transform-origin: top center;
  transition:
    opacity 0.18s ease,
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-select[data-open="true"] .cs-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cs-select-option {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  font-size: var(--st-text-base);
  font-weight: 500;
  color: var(--color-gray-700);
  font-family: inherit;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.cs-select-option:hover,
.cs-select-option:focus-visible {
  background: rgba(var(--primary-color-rgb), 0.08);
  color: var(--text-color);
}

.cs-select-option.is-active {
  background: rgba(var(--primary-color-rgb), 0.12);
  color: var(--color-brand-green-ink-1c);
}

.cs-select-option-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.cs-select-option-check {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--primary-color);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.cs-select-option.is-active .cs-select-option-check {
  opacity: 1;
  transform: scale(1);
}

.cs-gi-area {
  align-items: stretch;
}

.cs-gi-textarea {
  padding: 0.65rem 0.85rem;
  resize: none;
  overflow: hidden;
  line-height: 1.5;
}

.cs-gi-area .gi-input-icon {
  display: none;
}

.cs-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  position: sticky;
  bottom: -1.5rem;
  margin: 0.5rem -1.5rem -1.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(
    to bottom,
    rgba(var(--color-neutral-off-white-rgb), 0.6),
    rgba(var(--color-neutral-off-white-rgb), 0.98) 45%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(var(--black-color-rgb), 0.06);
  z-index: 2;
}

.cs-form-actions .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.3);
}

.create-card-body.cs-placeholder-body {
  padding: 2rem;
  align-items: center;
  justify-content: center;
}

.cs-placeholder {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  background: rgba(var(--white-color-rgb), 0.55);
  border: 1px dashed rgba(var(--black-color-rgb), 0.08);
  border-radius: 0.85rem;
  width: 100%;
}

.cs-placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--primary-color-rgb), 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.cs-placeholder-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.cs-placeholder-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-gray-500);
  max-width: 32rem;
}

.cs-back-inner {
  position: relative;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.cs-pane-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 0.75rem;
  margin-right: -4px;
}

.cs-pane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cs-pane.gi-form {
  gap: 1rem;
}

.cs-pane .gi-input {
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
}

.cs-pane .gi-label {
  font-size: 0.75rem;
}

.cs-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cs-count-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-gray-500);
  background: rgba(var(--black-color-rgb), 0.045);
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.cs-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-color);
  background: rgba(var(--primary-color-rgb), 0.14);
  border: 1px solid rgba(var(--primary-color-rgb), 0.32);
  padding: 0.35rem 0.7rem;
  border-radius: 0.55rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cs-add-btn:hover:not(:disabled) {
  background: rgba(var(--primary-color-rgb), 0.22);
  border-color: rgba(var(--primary-color-rgb), 0.5);
}

.cs-add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  background: rgba(var(--white-color-rgb), 0.55);
  border: 1px dashed rgba(var(--black-color-rgb), 0.1);
  border-radius: 0.75rem;
}

.cs-empty-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--color-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-empty-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
}

.cs-empty-desc {
  font-size: 0.72rem;
  color: var(--color-gray-500);
}

.cs-tab-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--warning-color);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}

.cs-save-bar {
  flex-shrink: 0;
  margin: 0 -1.25rem;
  padding: 0.75rem;
  background: rgba(var(--white-color-rgb), 0.96);
  border-top: 1px solid rgba(var(--black-color-rgb), 0.08);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  z-index: 10;
}

@media (min-width: 640px) {
  .cs-save-bar {
    padding: 0.85rem 1rem;
  }
}

@media (min-width: 1024px) {
  .cs-save-bar {
    padding: 0.9rem 1.25rem;
  }
}

/* Layout overrides for the save bar's primary button. Visuals come from
   ActionButton (.v-action-btn--primary, --inline). */
.cs-save-btn:only-child {
  flex: 1 1 auto;
  width: 100%;
}

.cs-social-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cs-social-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  background: rgba(var(--black-color-rgb), 0.025);
  transition: all 0.2s ease;
}

.cs-social-row:hover {
  background: rgba(var(--black-color-rgb), 0.05);
  border-color: rgba(var(--black-color-rgb), 0.1);
}

.cs-social-row--inactive {
  opacity: 0.55;
}

.cs-social-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  background: rgba(var(--black-color-rgb), 0.04);
  border: 1px solid rgba(var(--black-color-rgb), 0.07);
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-social-meta {
  flex: 1;
  min-width: 0;
}

.cs-social-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.cs-social-url {
  font-size: 0.7rem;
  color: var(--color-gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.cs-social-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

/* Visuals come from ActionButton (.v-action-btn--secondary | --danger,
   --icon-only, --size-sm). */

.cs-media-pane {
  gap: 0.85rem;
}

.cs-media-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  background: rgba(var(--white-color-rgb), 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cs-media-card:hover {
  background: rgba(var(--white-color-rgb), 0.85);
  border-color: rgba(var(--black-color-rgb), 0.12);
}

.cs-media-card--gallery {
  cursor: default;
}

.cs-media-card--gallery:hover {
  background: rgba(var(--white-color-rgb), 0.5);
  border-color: rgba(var(--black-color-rgb), 0.06);
}

.cs-media-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cs-media-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.cs-media-card-hint {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-400);
  background: rgba(var(--black-color-rgb), 0.04);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.cs-media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 80px;
  padding: 0.75rem;
  border: 1.5px dashed rgba(var(--black-color-rgb), 0.12);
  border-radius: 0.55rem;
  color: var(--color-gray-500);
  font-size: 0.72rem;
  font-weight: 550;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
}

.cs-media-empty:hover {
  border-color: rgba(var(--primary-color-rgb), 0.45);
  background: rgba(var(--primary-color-rgb), 0.05);
  color: var(--text-color);
}

.cs-media-empty--cover {
  aspect-ratio: 4 / 1;
  min-height: 0;
}

.cs-media-empty--gallery {
  width: 100%;
  min-height: 100px;
}

.cs-media-thumb {
  border-radius: 0.55rem;
  overflow: hidden;
  background: var(--white-color);
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
}

.cs-media-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.cs-media-thumb--logo img {
  height: 80px;
  object-fit: contain;
  padding: 0.5rem;
}

.cs-media-thumb--cover img {
  aspect-ratio: 4 / 1;
  object-fit: cover;
}

.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cs-gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--color-gray-100);
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  cursor: pointer;
}

.cs-gallery-tile img,
.cs-gallery-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-gallery-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  background: rgba(var(--black-color-rgb), 0.25);
  pointer-events: none;
}

.cs-gallery-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(var(--black-color-rgb), 0.65);
  color: var(--white-color);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cs-gallery-tile:hover .cs-gallery-remove {
  opacity: 1;
}

.cs-gallery-tile--add {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px dashed rgba(var(--black-color-rgb), 0.15);
  color: var(--color-gray-500);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cs-gallery-tile--add:hover {
  border-color: rgba(var(--primary-color-rgb), 0.45);
  background: rgba(var(--primary-color-rgb), 0.05);
  color: var(--text-color);
}

.cs-pick-list {
  gap: 0.5rem;
}

.cs-pick-card {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  background: rgba(var(--black-color-rgb), 0.025);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cs-pick-card:hover {
  border-color: rgba(var(--black-color-rgb), 0.14);
  background: rgba(var(--black-color-rgb), 0.05);
}

.cs-pick-card.selected {
  border-color: rgba(var(--primary-color-rgb), 0.45);
  background: rgba(var(--primary-color-rgb), 0.08);
  box-shadow: 0 0 0 1px rgba(var(--primary-color-rgb), 0.15);
}

.cs-pick-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(var(--black-color-rgb), 0.04);
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-pick-card.selected .cs-pick-icon {
  background: rgba(var(--primary-color-rgb), 0.15);
  border-color: rgba(var(--primary-color-rgb), 0.35);
  color: var(--color-brand-green-ink-1c);
}

.cs-pick-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.cs-pick-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cs-pick-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-gray-400);
  line-height: 1.3;
  margin-top: 1px;
}

.cs-pick-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--black-color-rgb), 0.12);
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.cs-pick-card.selected .cs-pick-check {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--black-color);
}

.cs-url-preview {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(var(--primary-color-rgb), 0.25);
  background: rgba(var(--primary-color-rgb), 0.06);
}

.cs-social-url--hint {
  color: var(--color-gray-500);
  font-weight: 500;
}

.cs-appearance-pane {
  gap: 1.1rem;
}

.cs-appearance-pane .dc-section {
  gap: 6px;
}

.cs-appearance-pane .dc-section-title {
  font-size: 0.7rem;
  margin: 0 0 0.3rem 0.15rem;
}

.cs-save-bar--stack {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.35rem;
}

.cs-save-bar--stack .cs-save-btn {
  width: 100%;
}

/* Layout overrides for the Restore-to-Default text link (full-width inside
   the appearance save bar, centered). Visuals come from ActionButton
   (.v-action-btn--danger, --style-text, --size-sm). */
.cs-restore-default-btn {
  width: 100%;
  justify-content: center;
}
.cs-restore-default-btn.is-hidden {
  display: none;
}
.cs-restore-default-btn:focus-visible {
  outline: 2px solid rgba(var(--danger-color-rgb), 0.35);
  outline-offset: 2px;
}

.cs-visibility-wrap {
  margin-top: 10px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-visibility-pane {
  gap: 1.75rem;
}

.cs-visibility-pane .cs-section + .cs-section {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(var(--black-color-rgb), 0.08);
}

.cs-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cs-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-500);
  margin: 0 0 0.3rem 0.15rem;
}

.cs-visibility-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
}

.cs-section-head .cs-section-title {
  margin: 0;
}

.cs-slug-display {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(var(--black-color-rgb), 0.08);
  background: var(--color-neutral-off-white);
}

.cs-slug-display-icon {
  width: 14px;
  height: 14px;
  color: var(--color-gray-400);
  flex-shrink: 0;
}

.cs-slug-display-url {
  flex: 1;
  min-width: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.005em;
  line-height: 1.45;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Layout-only override for the slug edit button. Visuals come from
   ActionButton (.v-action-btn--primary, --size-sm). */
.cs-slug-edit-btn {
  flex-shrink: 0;
}
.cs-slug-edit-btn:focus-visible {
  outline: 2px solid rgba(var(--primary-color-rgb), 0.45);
  outline-offset: 2px;
}

.cs-slug-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid rgba(var(--black-color-rgb), 0.1);
  background: var(--color-neutral-off-white);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-family: "JetBrains Mono", "Outfit", monospace;
}

.cs-slug-field:focus-within {
  border-color: var(--primary-color);
  background: var(--white-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.12);
}

.cs-slug-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.6rem 0.55rem 0.75rem;
  background: rgba(var(--black-color-rgb), 0.045);
  color: var(--color-gray-500);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-right: 1px solid rgba(var(--black-color-rgb), 0.07);
  white-space: nowrap;
  user-select: text;
}

.cs-slug-input {
  all: unset;
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.005em;
  font-family: inherit;
  background: transparent;
}

.cs-slug-input::placeholder {
  color: var(--color-gray-400);
  font-weight: 400;
}

.cs-slug-hint {
  font-size: 0.72rem;
  color: var(--color-gray-500);
  letter-spacing: -0.005em;
  padding: 0 0.15rem;
}

.cs-slug-hint code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  background: rgba(var(--black-color-rgb), 0.06);
  padding: 0.05rem 0.3rem;
  border-radius: 0.25rem;
}

.cs-slug-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 0.25rem 0.15rem 0.5rem;
}

.cs-slug-modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cs-slug-modal-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.005em;
}

.cs-slug-modal-prefix-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(var(--black-color-rgb), 0.045);
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  width: fit-content;
  max-width: 100%;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  color: var(--color-gray-600);
  font-weight: 500;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.cs-slug-modal-prefix-icon {
  width: 12px;
  height: 12px;
  color: var(--color-gray-500);
  flex-shrink: 0;
}

.cs-slug-modal-prefix-text {
  min-width: 0;
}

.cs-slug-modal-input {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.65rem;
  background: var(--color-neutral-off-white);
  border: 1px solid rgba(var(--black-color-rgb), 0.12);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.005em;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cs-slug-modal-input::placeholder {
  color: var(--color-gray-400);
  font-weight: 400;
}

.cs-slug-modal-input:focus {
  border-color: var(--primary-color);
  background: var(--white-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.12);
}

.cs-slug-modal-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-radius: 0.7rem;
  background: rgba(var(--primary-color-rgb), 0.06);
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.cs-slug-modal-preview-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-500);
}

.cs-slug-modal-preview {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.5;
}

#cs-slug-modal-save.is-disabled,
#cs-slug-modal-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.cs-searchable-card {
  animation: csSearchableSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes csSearchableSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cs-visibility-card {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.65rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  background: rgba(var(--black-color-rgb), 0.025);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Outfit", sans-serif;
  text-align: left;
}

.cs-visibility-card:hover {
  background: rgba(var(--black-color-rgb), 0.055);
  border-color: rgba(var(--black-color-rgb), 0.1);
}

.cs-visibility-card.is-on {
  background: rgba(var(--success-color-rgb), 0.06);
  border-color: rgba(var(--success-color-rgb), 0.22);
}

.cs-visibility-card.is-on:hover {
  background: rgba(var(--success-color-rgb), 0.09);
  border-color: rgba(var(--success-color-rgb), 0.32);
}

.cs-visibility-card:focus-visible {
  outline: 2px solid rgba(var(--primary-color-rgb), 0.45);
  outline-offset: 2px;
}

.cs-visibility-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(var(--black-color-rgb), 0.04);
  border: 1px solid rgba(var(--black-color-rgb), 0.07);
  color: var(--color-gray-500);
  transition: all 0.25s ease;
}

.cs-visibility-icon svg {
  width: 14px;
  height: 14px;
}

.cs-visibility-card.is-on .cs-visibility-icon {
  background: rgba(var(--success-color-rgb), 0.14);
  border-color: rgba(var(--success-color-rgb), 0.3);
  color: var(--success-color);
}

.cs-visibility-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.cs-visibility-label {
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--color-gray-700);
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cs-info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: var(--color-gray-400);
  cursor: help;
  flex-shrink: 0;
  transition: color 0.18s ease, background 0.18s ease;
}

.cs-info-icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.cs-info-icon:hover,
.cs-info-icon:focus-visible {
  color: var(--text-color);
  background: rgba(var(--black-color-rgb), 0.06);
  outline: none;
}

.cs-visibility-card.is-on .cs-info-icon {
  color: rgba(var(--success-color-rgb), 0.7);
}

.cs-visibility-card.is-on .cs-info-icon:hover,
.cs-visibility-card.is-on .cs-info-icon:focus-visible {
  color: var(--success-color);
  background: rgba(var(--success-color-rgb), 0.12);
}

.cs-info-icon::before,
.cs-info-icon::after {
  display: none;
}

.cs-tip-pop {
  position: fixed;
  z-index: 2000;
  max-width: 240px;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  background: var(--text-color, #0f172a);
  color: var(--white-color, #ffffff);
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.005em;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cs-tip-pop.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cs-tip-pop::after {
  content: "";
  position: absolute;
  left: var(--cs-tip-arrow-x, 50%);
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: var(--text-color, #0f172a);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1px;
}

.cs-tip-pop[data-placement="below"]::after {
  top: -4px;
  bottom: auto;
}

.cs-visibility-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-gray-400);
  line-height: 1.3;
  margin-top: 2px;
}

.cs-visibility-card.is-on .cs-visibility-label {
  color: var(--text-color);
}

.cs-visibility-switch {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: rgba(var(--black-color-rgb), 0.18);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.cs-visibility-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white-color);
  box-shadow: 0 1px 2px rgba(var(--black-color-rgb), 0.2);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-visibility-card.is-on .cs-visibility-switch {
  background: var(--success-color);
}

.cs-visibility-card.is-on .cs-visibility-knob {
  transform: translateX(14px);
}

.cs-mode-switch-wrap {
  margin-top: 0.85rem;
  flex-shrink: 0;
}

.cs-mode-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: rgba(var(--black-color-rgb), 0.045);
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  border-radius: 0.7rem;
  padding: 3px;
  isolation: isolate;
  font-family: "Outfit", sans-serif;
}

.cs-mode-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 0.55rem;
  background: var(--white-color);
  box-shadow:
    0 1px 2px rgba(var(--black-color-rgb), 0.08),
    0 4px 12px -6px rgba(var(--black-color-rgb), 0.18);
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.cs-mode-thumb[data-mode="widget"] {
  transform: translateX(100%);
}

.cs-mode-option {
  all: unset;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray-500);
  cursor: pointer;
  border-radius: 0.55rem;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
  text-align: center;
}

.cs-mode-option svg {
  width: 14px;
  height: 14px;
}

.cs-mode-option:hover {
  color: var(--color-gray-700);
}

.cs-mode-option.is-active {
  color: var(--text-color);
}

.cs-mode-option:focus-visible {
  outline: 2px solid rgba(var(--primary-color-rgb), 0.45);
  outline-offset: 2px;
}

.cs-front-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
  overflow-y: auto;
  padding-right: 2px;
  opacity: 1;
  transition: opacity 0.18s ease-out;
  will-change: opacity;
}

.cs-front-body .cs-tab-nav {
  margin-top: 0;
  overflow: visible;
  min-height: auto;
  flex: 0 0 auto;
}

.cs-front-body .cs-widget-list {
  flex: 0 0 auto;
}

.cs-widget-nav {
  margin-top: 0 !important;
}

.cs-front-body.is-leaving {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.13s ease-in;
}

.cs-visibility-wrap {
  opacity: 1;
  transition: opacity 0.18s ease-out;
}

.cs-visibility-wrap.is-collapsed {
  display: none !important;
}

.cs-visibility-wrap.is-fading-in {
  opacity: 0;
}

.cs-widget-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-widget-row {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  background: rgba(var(--black-color-rgb), 0.025);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Outfit", sans-serif;
}

.cs-widget-row:hover {
  background: rgba(var(--black-color-rgb), 0.055);
  border-color: rgba(var(--black-color-rgb), 0.1);
}

.cs-widget-row.is-on {
  background: rgba(var(--primary-color-rgb), 0.05);
  border-color: rgba(var(--primary-color-rgb), 0.18);
}

.cs-widget-row.is-on:hover {
  background: rgba(var(--primary-color-rgb), 0.07);
  border-color: rgba(var(--primary-color-rgb), 0.28);
}

.cs-widget-row:focus-visible {
  outline: 2px solid rgba(var(--primary-color-rgb), 0.45);
  outline-offset: 2px;
}

.cs-widget-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(var(--black-color-rgb), 0.04);
  border: 1px solid rgba(var(--black-color-rgb), 0.07);
  color: var(--color-gray-500);
  transition: all 0.22s ease;
}

.cs-widget-icon svg {
  width: 14px;
  height: 14px;
}

.cs-widget-row.is-on .cs-widget-icon {
  background: rgba(var(--primary-color-rgb), 0.12);
  border-color: rgba(var(--primary-color-rgb), 0.25);
  color: var(--primary-color);
}

.cs-widget-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.cs-widget-label {
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--color-gray-700);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cs-widget-row.is-on .cs-widget-label {
  color: var(--text-color);
}

.cs-widget-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-gray-400);
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin-top: 2px;
}

.cs-widget-switch {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: rgba(var(--black-color-rgb), 0.18);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.cs-widget-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white-color);
  box-shadow: 0 1px 2px rgba(var(--black-color-rgb), 0.2);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-widget-row.is-on .cs-widget-switch {
  background: var(--primary-color);
}

.cs-widget-row.is-on .cs-widget-knob {
  transform: translateX(14px);
}

