/* Theme tokens and base theme variables */
:root {
  --color-cream: #f8f7ff;
  --color-sidebar: #efedff;
  --color-ink: #312e81;
  --color-terracotta: #6366f1;
  --color-sage: #8b5cf6;
  --color-paper: #ffffff;
  --color-paper-soft: #f1efff;
  --color-dots: rgba(99, 102, 241, 0.10);
  --color-danger-bg: #fef2f2;
  --color-danger-border: #fca5a5;
  --color-danger-text: #b91c1c;
  --color-modal-overlay: rgba(90, 107, 79, 0.60);
  --color-brand-accent: var(--color-ink);
  /* Semantic design-system tokens */
  --bg: var(--color-cream);
  --surface: var(--color-paper);
  --surface-muted: var(--color-paper-soft);
  --ink: var(--color-ink);
  --ink-muted: color-mix(in srgb, var(--color-ink) 68%, transparent);
  --primary: var(--color-ink);
  --accent: #6366f1;
  --accent-soft: color-mix(in srgb, var(--color-terracotta) 14%, var(--color-paper));
  --success: var(--color-sage);
  --warning: #c49545;
  --danger: var(--color-danger-text);
  --ring: #6366f1;
  --color-sky: #7fa4c7;
  --color-honey: #d7aa54;
  --color-brand-shadow: color-mix(in srgb, var(--color-brand-accent) 72%, var(--color-ink));
  --font-heading: 'Kalam', cursive;
  --font-body: 'Patrick Hand', cursive;
  --text-display: 4.25rem;
  --text-h1: 3.4rem;
  --text-h2: 2.7rem;
  --text-h3: 2.15rem;
  --text-body: 1.08rem;
  --text-body-sm: 0.92rem;
  --text-eyebrow: 0.72rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  --shadow-flat: none;
  --shadow-raised: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-stacked: 3px 3px 0 0 rgba(99, 102, 241, 0.24);
}

/* Theme: Light */
body.theme-light {
  --color-cream: #f7f9fc;
  --color-sidebar: #e9eef6;
  --color-ink: #314256;
  --color-terracotta: #e28743;
  --color-sage: #6aa690;
  --color-paper: #ffffff;
  --color-paper-soft: #eef3f8;
  --color-dots: rgba(49, 66, 86, 0.08);
  --color-danger-bg: #fff1f2;
  --color-danger-border: #fda4af;
  --color-danger-text: #be123c;
  --color-modal-overlay: rgba(49, 66, 86, 0.58);
}

/* Theme: Dark */
body.theme-dark {
  --color-cream: #121922;
  --color-sidebar: #1b2431;
  --color-ink: #e7eedf;
  --color-terracotta: #e0a27a;
  --color-sage: #8ec2af;
  --color-paper: #253244;
  --color-paper-soft: #1f2b3a;
  --color-dots: rgba(231, 238, 223, 0.08);
  --color-danger-bg: #43252b;
  --color-danger-border: #d38a96;
  --color-danger-text: #ffe0e5;
  --color-modal-overlay: rgba(10, 14, 22, 0.74);
  color-scheme: dark;
}

/* Theme: Space */
body.theme-space {
  --color-cream: #eef1ff;
  --color-sidebar: #e1e7ff;
  --color-ink: #42486f;
  --color-terracotta: #f39b7c;
  --color-sage: #7f8fe7;
  --color-paper: #ffffff;
  --color-paper-soft: #f4f6ff;
  --color-dots: rgba(66, 72, 111, 0.12);
  --color-danger-bg: #fff0f3;
  --color-danger-border: #f1a4b2;
  --color-danger-text: #9f3e56;
  --color-modal-overlay: rgba(56, 64, 112, 0.48);
}

/* Theme: Garden */
body.theme-garden {
  --color-cream: #eef5ea;
  --color-sidebar: #dfead8;
  --color-ink: #49624c;
  --color-terracotta: #d98967;
  --color-sage: #6ea06c;
  --color-paper: #fbfdf8;
  --color-paper-soft: #f3f8ee;
  --color-dots: rgba(73, 98, 76, 0.10);
  --color-danger-bg: #fff1f0;
  --color-danger-border: #efaa9e;
  --color-danger-text: #a34f43;
  --color-modal-overlay: rgba(73, 98, 76, 0.44);
}

/* Theme: Summer */
body.theme-summer {
  --color-cream: #fff4de;
  --color-sidebar: #ffe7bf;
  --color-ink: #635043;
  --color-terracotta: #ff9b67;
  --color-sage: #57b7c8;
  --color-paper: #fffdf6;
  --color-paper-soft: #fff0d1;
  --color-dots: rgba(99, 80, 67, 0.10);
  --color-danger-bg: #fff0ef;
  --color-danger-border: #f7a496;
  --color-danger-text: #b44d43;
  --color-modal-overlay: rgba(99, 80, 67, 0.42);
}

/* Shared site styles migrated from legacy inline CSS */
body {
  color: var(--color-ink);
  background-color: var(--color-cream);
  background-image: radial-gradient(var(--color-dots) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 100vh;
  min-height: 100svh;
  overscroll-behavior-y: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dotted-bg {
  background-color: var(--color-cream);
  background-image: radial-gradient(var(--color-dots) 1px, transparent 1px);
  background-size: 24px 24px;
}

.sprite-box {
  background-color: #ffffff;
  border: 2px solid var(--color-ink);
  box-shadow: inset 3px 3px 0px rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 70;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  min-height: 4.25rem;
}

.mobile-header .logo-trigger {
  min-width: 0;
  flex: 1;
}

.mobile-header-actions {
  position: relative;
  z-index: 72;
  flex-shrink: 0;
}

/* Button taxonomy */
.mobile-header-btn,
.btn-mobile-icon {
  background-color: var(--color-paper);
}

.brand-action-btn,
.btn-brand-accent {
  background-color: color-mix(in srgb, var(--color-brand-accent) 12%, var(--color-paper)) !important;
  border-color: color-mix(in srgb, var(--color-brand-accent) 82%, var(--color-ink)) !important;
  color: var(--color-brand-accent) !important;
  box-shadow: 2px 2px 0px 0px color-mix(in srgb, var(--color-brand-accent) 78%, var(--color-ink)) !important;
}

.brand-action-btn:hover,
.btn-brand-accent:hover {
  background-color: color-mix(in srgb, var(--color-brand-accent) 18%, var(--color-paper)) !important;
  color: var(--color-brand-accent) !important;
}

.brand-action-btn .font-bold,
.brand-action-btn iconify-icon,
.btn-brand-accent .font-bold,
.btn-brand-accent iconify-icon,
.brand-accent-icon {
  color: inherit;
}

.btn-surface,
.btn-toolbar,
.btn-toolbar-icon,
.btn-inline-action,
.btn-inline-link,
.btn-inline-icon,
.btn-modal-close {
  background-color: var(--color-paper);
  color: var(--color-ink);
}

.btn-surface iconify-icon,
.btn-surface .font-bold,
.btn-toolbar iconify-icon,
.btn-toolbar .font-bold,
.btn-toolbar-icon iconify-icon,
.btn-inline-action iconify-icon,
.btn-inline-link iconify-icon,
.btn-inline-icon iconify-icon,
.btn-modal-close iconify-icon,
.btn-primary-fill iconify-icon,
.btn-primary-fill .font-bold,
.btn-danger-soft iconify-icon,
.btn-danger-soft .font-bold,
.btn-accent-fill iconify-icon,
.btn-accent-fill .font-bold {
  color: inherit;
}

.btn-surface-icon,
.btn-inline-icon,
.btn-toolbar-icon,
.btn-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-surface-compact,
.btn-inline-action,
.btn-inline-link {
  min-height: 2.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.85rem;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.btn-inline-icon {
  width: 2.45rem;
  height: 2.45rem;
  min-height: 2.45rem;
  padding: 0;
  border-radius: 0.85rem;
}

.language-select-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  background-color: var(--color-paper);
  padding: 0.7rem 0.9rem;
  min-height: 3rem;
  position: relative;
}

.language-select-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.language-select-leading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.language-select {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--color-ink);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  outline: 3px solid transparent;
  outline-offset: 2px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 0;
}

.language-select-chevron {
  font-size: 1rem;
  opacity: 0.7;
  flex-shrink: 0;
  pointer-events: none;
}

.language-select-help {
  font-size: 0.74rem;
  line-height: 1.4;
}

.language-select option {
  color: #111827;
}

.language-onboarding-card {
  max-height: 32rem;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition: opacity 220ms ease, transform 220ms ease, max-height 280ms ease, margin 280ms ease;
}

.language-onboarding-card.is-hiding {
  opacity: 0;
  transform: translateY(-12px);
  max-height: 0;
  margin-bottom: 0 !important;
  pointer-events: none;
}

.language-onboarding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.75rem;
}

.language-onboarding-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  min-height: 78px;
  text-align: left;
  padding: 0.95rem 1rem;
  background: white;
}

.language-onboarding-choice.is-active {
  background: color-mix(in srgb, var(--color-brand-accent) 10%, white);
  box-shadow: 4px 4px 0 0 var(--color-brand-shadow);
  transform: translate(-1px, -1px);
}

.language-onboarding-choice-main {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
}

.language-onboarding-choice-sub {
  font-size: 0.74rem;
  line-height: 1.2;
  opacity: 0.62;
  font-weight: 700;
}

.brand-accent-fill {
  color: var(--color-brand-accent) !important;
}

.brand-accent-surface {
  background-color: color-mix(in srgb, var(--color-brand-accent) 12%, var(--color-paper)) !important;
  border-color: color-mix(in srgb, var(--color-brand-accent) 34%, transparent) !important;
}

.board-inline-action,
.btn-chip-action {
  appearance: none;
  min-height: 2.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.95rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 22%, var(--color-paper));
  background: color-mix(in srgb, var(--color-paper) 90%, var(--color-sidebar));
  color: color-mix(in srgb, var(--color-ink) 88%, var(--color-paper));
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-ink) 34%, transparent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.board-inline-action:hover,
.btn-chip-action:hover {
  background: var(--color-paper);
  border-color: color-mix(in srgb, var(--color-ink) 42%, var(--color-paper));
  box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--color-ink) 40%, transparent);
  transform: translate(-1px, -1px);
}

.board-inline-action:active,
.btn-chip-action:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 color-mix(in srgb, var(--color-ink) 28%, transparent);
}

.btn-primary-fill {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  box-shadow: var(--shadow-stacked);
}

.btn-primary-fill:hover {
  background: color-mix(in srgb, var(--primary) 88%, black 12%);
  color: var(--bg);
}

.btn-primary-fill iconify-icon,
.btn-primary-fill .font-bold {
  color: inherit;
}

.btn-accent-fill {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--primary);
  box-shadow: var(--shadow-stacked);
}

.btn-accent-fill:hover {
  background: color-mix(in srgb, var(--accent) 82%, var(--primary));
  color: var(--surface);
}

.btn-success-fill {
  background: var(--success);
  color: var(--surface);
  border-color: var(--primary);
  box-shadow: var(--shadow-stacked);
}

.btn-success-fill:hover {
  background: color-mix(in srgb, var(--color-sage) 82%, var(--color-ink));
  color: var(--color-paper);
}

.btn-danger-soft {
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
  border-color: var(--color-danger-border);
  box-shadow: 2px 2px 0 0 var(--color-danger-border);
}

.btn-danger-soft:hover {
  background: color-mix(in srgb, var(--color-danger-bg) 82%, white);
  color: var(--color-danger-text);
}

.btn-modal-close {
  width: 2.5rem;
  height: 2.5rem;
}

.iconify-helper-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--color-brand-accent) 84%, var(--color-ink));
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--color-brand-accent) 44%, transparent);
  padding-bottom: 0.08rem;
}

.iconify-helper-link:hover {
  color: var(--color-brand-accent);
  border-bottom-color: color-mix(in srgb, var(--color-brand-accent) 88%, transparent);
}

.nav-soon-btn {
  opacity: 0.72;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-soon-btn:hover,
.nav-soon-btn:focus-visible {
  opacity: 1;
}

.coming-soon-toast {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate3d(0, 8px, 0) scale(0.98);
  z-index: 120;
  max-width: min(88vw, 24rem);
  width: max-content;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.coming-soon-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.coming-soon-toast-card {
  border-radius: 1.1rem;
  border: 2px solid color-mix(in srgb, var(--color-brand-accent) 80%, var(--color-ink));
  background: color-mix(in srgb, var(--color-paper) 92%, var(--color-sidebar));
  color: var(--color-brand-accent);
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--color-brand-accent) 64%, transparent);
  padding: 0.85rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.2;
}

.coming-soon-toast-label {
  font-weight: 700;
}

@media (max-width: 767px) {
  #shelf-grid,
  #fyc-categories {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  }
  #de-grid > * {
    flex-basis: min(17.5rem, 100vw - 5.5rem);
    min-width: min(17.5rem, 100vw - 5.5rem) !important;
    max-width: min(17.5rem, 100vw - 5.5rem) !important;
  }
  body {
    overflow-y: auto;
  }
  main {
    overflow: visible !important;
    min-height: auto !important;
  }
  #mobile-notepad-btn {
    bottom: max(1.5rem, env(safe-area-inset-bottom) + 1rem);
  }
  #bulletin-board {
    border-top-width: 0 !important;
    overflow: hidden;
  }
  #bulletin-board.is-hidden-mobile {
    transform: translateY(calc(100% + 3rem));
  }
  #bulletin-rings {
    position: static;
    opacity: 1;
    transition: opacity 0.2s ease;
    padding-top: 0.15rem;
  }
  #bulletin-board.is-hidden-mobile #bulletin-rings {
    opacity: 0;
    pointer-events: none;
  }
  .mobile-bulletin-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--color-sidebar) 96%, white), var(--color-sidebar));
    border-bottom: 2px solid color-mix(in srgb, var(--color-ink) 22%, transparent);
    box-shadow: 0 3px 0 0 color-mix(in srgb, var(--color-ink) 10%, transparent);
    padding-top: 1rem;
  }
  .mobile-bulletin-toolbar .notepad-ring {
    position: relative;
    top: 0;
    flex: 0 0 auto;
  }
  .mobile-bulletin-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 1rem 0.85rem;
  }
  .mobile-bulletin-close {
    flex-shrink: 0;
    min-height: 40px;
    background-color: var(--color-paper);
  }
}
.wobbly-card {
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-stacked);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
}

.wobbly-card:hover:not(.no-hover) {
  transform: none;
  box-shadow: var(--shadow-stacked);
}

.wobbly-btn {
  border-radius: var(--radius-md);
  border: 2px solid var(--primary);
  box-shadow: 3px 3px 0px 0px var(--color-brand-shadow);
  transition: all 0.15s ease;
  cursor: pointer;
}

.wobbly-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-stacked);
}

.ui-button,
[data-ui-button] {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-weight: 900;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.ui-button[data-variant=primary],
[data-ui-button][data-variant=primary] {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--shadow-stacked);
}

.ui-button[data-variant=secondary],
[data-ui-button][data-variant=secondary] {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-flat);
}

.ui-button[data-variant=ghost],
[data-ui-button][data-variant=ghost] {
  border-color: transparent;
  background: transparent;
  box-shadow: var(--shadow-flat);
}

.ui-button[data-variant=subtle],
[data-ui-button][data-variant=subtle] {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--primary));
  background: var(--accent-soft);
  box-shadow: var(--shadow-flat);
}

.ui-button[data-variant=danger],
[data-ui-button][data-variant=danger] {
  border-color: var(--color-danger-border);
  background: var(--color-danger-bg);
  color: var(--danger);
}

.ui-button[data-size=sm],
[data-ui-button][data-size=sm] {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  font-size: var(--text-body-sm);
}

.ui-button[data-size=lg],
[data-ui-button][data-size=lg] {
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  font-size: 1.12rem;
}

.ui-button:hover:not(:disabled),
[data-ui-button]:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-stacked);
}

.ui-button:active:not(:disabled),
[data-ui-button]:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 var(--color-brand-shadow);
}

.ui-button:disabled,
[data-ui-button]:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

.ui-icon-button {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--primary);
}

.ui-chip {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--primary);
  font-weight: 900;
}

.ui-chip[aria-pressed=true],
.ui-chip.is-active,
.ui-chip.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--accent) 45%, var(--primary));
}

.ui-card {
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.ui-card.is-selected,
.ui-card[data-variant=selected] {
  border: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 52%, var(--surface));
  box-shadow: var(--shadow-stacked);
}

.ui-card[data-variant=empty-state] {
  border-style: dashed;
  background: var(--surface-muted);
  box-shadow: var(--shadow-flat);
}

.ui-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  min-width: 0;
}

.ui-section-header .eyebrow,
.ui-eyebrow {
  color: var(--ink-muted);
  font-size: var(--text-eyebrow);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wobbly-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px 0px var(--color-ink);
}

.wobbly-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 2px 2px 0px 0px color-mix(in srgb, var(--color-ink) 42%, transparent) !important;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
  padding-left: 0.95rem;
  padding-right: 0.95rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  min-height: 78px;
  min-width: 0;
  text-align: left;
}

.theme-option > span:first-child {
  font-size: 0.98rem;
  line-height: 1.05;
  white-space: normal;
  overflow-wrap: anywhere;
}

.theme-option .theme-option-meta {
  font-size: 0.68rem;
  line-height: 1.1;
  opacity: 0.72;
  white-space: normal;
  overflow-wrap: anywhere;
}

.theme-option[data-theme=warm] {
  background-color: #fcfbf8 !important;
  color: #5a6b4f !important;
  border-color: #5a6b4f !important;
  box-shadow: 2px 2px 0px 0px #5a6b4f !important;
}

.theme-option[data-theme=light] {
  background-color: #ffffff !important;
  color: #334155 !important;
  border-color: #334155 !important;
  box-shadow: 2px 2px 0px 0px #334155 !important;
}

.theme-option[data-theme=dark] {
  background-color: #253244 !important;
  color: #f8fafc !important;
  border-color: #f8fafc !important;
  box-shadow: 2px 2px 0px 0px #f8fafc !important;
}

.theme-option[data-theme=space] {
  background-color: #eef1ff !important;
  color: #42486f !important;
  border-color: #7f8fe7 !important;
  box-shadow: 2px 2px 0px 0px #7f8fe7 !important;
}

.theme-option[data-theme=garden] {
  background-color: #f3f8ee !important;
  color: #49624c !important;
  border-color: #6ea06c !important;
  box-shadow: 2px 2px 0px 0px #6ea06c !important;
}

.theme-option[data-theme=summer] {
  background-color: #fff7e7 !important;
  color: #635043 !important;
  border-color: #ff9b67 !important;
  box-shadow: 2px 2px 0px 0px #ff9b67 !important;
}

.theme-option[data-theme=warm] .theme-option-meta {
  color: rgba(90, 107, 79, 0.72);
}

.theme-option[data-theme=light] .theme-option-meta {
  color: rgba(51, 65, 85, 0.72);
}

.theme-option[data-theme=dark] .theme-option-meta {
  color: rgba(248, 250, 252, 0.78);
}

.theme-option[data-theme=space] .theme-option-meta {
  color: rgba(66, 72, 111, 0.72);
}

.theme-option[data-theme=garden] .theme-option-meta {
  color: rgba(73, 98, 76, 0.72);
}

.theme-option[data-theme=summer] .theme-option-meta {
  color: rgba(99, 80, 67, 0.72);
}

.theme-option.is-active {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px 0px var(--color-ink);
  outline: 3px dashed color-mix(in srgb, var(--color-terracotta) 60%, transparent);
  outline-offset: 3px;
}

.icon-color-swatch {
  position: relative;
  border-radius: 26px 10px 20px 12px/12px 20px 10px 26px;
  border: 2px solid color-mix(in srgb, var(--color-ink) 22%, transparent);
  box-shadow: 2px 2px 0px 0px color-mix(in srgb, var(--color-ink) 18%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-width: 0;
  overflow: hidden;
}

.icon-color-swatch:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px 0px color-mix(in srgb, var(--color-ink) 24%, transparent);
  border-color: color-mix(in srgb, var(--color-ink) 42%, transparent);
}

.icon-color-swatch.is-selected {
  border-color: color-mix(in srgb, var(--color-ink) 82%, transparent);
  box-shadow: 4px 4px 0px 0px color-mix(in srgb, var(--color-ink) 28%, transparent);
}

.icon-color-swatch-label {
  color: var(--color-ink);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  font-size: 0.88rem;
  line-height: 1.1;
}

.icon-color-swatch-copy {
  min-width: 0;
}

.icon-color-swatch-check {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.15s ease, transform 0.15s ease;
  background-color: color-mix(in srgb, var(--color-paper) 92%, transparent);
  border: 2px solid color-mix(in srgb, var(--color-ink) 58%, transparent);
  color: var(--color-ink);
}

.icon-color-swatch.is-selected .icon-color-swatch-check {
  opacity: 1;
  transform: scale(1);
}

.logo-color-swatch {
  display: grid !important;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 0.9rem;
  min-height: 132px;
  padding: 1rem 1rem 0.95rem !important;
}

.logo-color-swatch-preview {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5rem;
  padding: 0.34rem;
  border-radius: 1.45rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  background: color-mix(in srgb, var(--color-paper) 84%, white 16%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.logo-color-swatch-chip {
  display: block;
  width: 100%;
  min-height: 4.2rem;
  height: 4.2rem;
  border-radius: 1.18rem;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

#logo-icon-color-grid,
#profile-avatar-color-grid {
  grid-template-columns: repeat(auto-fit, minmax(8.9rem, 1fr));
}

.logo-color-swatch .icon-color-swatch-copy {
  width: 100%;
  padding-right: 0;
}

.logo-color-swatch .icon-color-swatch-label {
  display: block;
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  line-height: 1.12;
  font-size: 0.92rem;
}

.logo-color-swatch .icon-color-swatch-check {
  top: 1.1rem;
  right: 1rem;
  transform: none;
}

.profile-avatar-mode-btn {
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.profile-avatar-mode-btn.is-active {
  background-color: color-mix(in srgb, var(--color-brand-accent) 16%, var(--color-paper)) !important;
  border-color: color-mix(in srgb, var(--color-brand-accent) 85%, var(--color-ink)) !important;
  color: var(--color-brand-accent) !important;
  box-shadow: 3px 3px 0px 0px color-mix(in srgb, var(--color-brand-accent) 78%, var(--color-ink)) !important;
}

.profile-avatar-preview-shell {
  background: color-mix(in srgb, var(--color-sidebar) 74%, var(--color-paper));
}

.stack-modal-shell {
  overflow-y: auto;
  padding: max(0.85rem, env(safe-area-inset-top) + 0.35rem) max(0.85rem, env(safe-area-inset-right)) max(0.85rem, env(safe-area-inset-bottom) + 0.35rem) max(0.85rem, env(safe-area-inset-left));
  align-items: flex-start;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.stack-modal-card {
  width: 100%;
  max-height: calc(100svh - 1rem);
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.stack-modal-header {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: var(--color-cream);
  padding: 1rem 1rem 0.9rem;
  border-bottom: 2px dashed color-mix(in srgb, var(--color-ink) 15%, transparent);
}

.stack-modal-title {
  min-width: 0;
  padding-right: 0.25rem;
}

.stack-modal-body {
  padding: 1rem;
}

.stack-modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: linear-gradient(to top, var(--color-cream) 82%, color-mix(in srgb, var(--color-cream) 76%, transparent));
  padding: 0.9rem 1rem 1rem;
  border-top: 2px dashed color-mix(in srgb, var(--color-ink) 15%, transparent);
}

.settings-modal-shell {
  z-index: 90;
  padding: clamp(0.9rem, 2vw, 1.45rem);
}

.settings-modal-card {
  max-width: min(100%, 44rem);
}

.settings-modal-header {
  background: var(--color-cream);
  backdrop-filter: none;
  padding: 1.2rem 1.35rem 1rem;
}

.settings-modal-title {
  min-width: 0;
}

.settings-modal-card .stack-modal-body {
  padding: 1.2rem 1.35rem 1.35rem;
}

.settings-sections-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-content: start;
}

.settings-sections-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.settings-section {
  border: 2px dashed color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 1.8rem;
  background: color-mix(in srgb, var(--color-paper) 92%, white 8%);
  overflow: hidden;
  height: fit-content;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.settings-section-summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  cursor: pointer;
  padding: 1.2rem 1.2rem 1.1rem;
  background: color-mix(in srgb, var(--color-paper) 78%, white 22%);
  min-height: 9.75rem;
  position: relative;
}

.settings-section-summary-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.95rem;
  min-width: 0;
  flex: 1;
}

.settings-section-icon {
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 16%, transparent);
  background: color-mix(in srgb, var(--color-paper) 78%, white 22%);
  font-size: 1.18rem;
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-brand-shadow) 48%, transparent);
}

.account-summary-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.58;
  white-space: nowrap;
}

.account-summary-cue iconify-icon {
  font-size: 0.95rem;
  transition: transform 180ms ease;
}

.settings-section-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-right: 2.25rem;
}

.settings-section-summary::-webkit-details-marker {
  display: none;
}

.settings-section-summary:hover {
  background: color-mix(in srgb, var(--color-brand-accent) 10%, var(--color-paper));
  transform: translateY(-1px);
}

.settings-section-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.68;
  line-height: 1.2;
}

.settings-section-hint {
  display: block;
  margin-top: 0;
  font-size: 0.96rem;
  line-height: 1.4;
  font-weight: 700;
  opacity: 0.88;
  max-width: 22ch;
}

.settings-section-chevron {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: transform 180ms ease;
}

.settings-section[open] .settings-section-chevron {
  transform: rotate(180deg);
}

.settings-section[open] {
  border-color: color-mix(in srgb, var(--color-brand-accent) 28%, var(--color-ink) 18%);
  box-shadow: 5px 5px 0 0 color-mix(in srgb, var(--color-brand-shadow) 38%, transparent);
  background: color-mix(in srgb, var(--color-paper) 88%, white 12%);
}

.settings-section[open] .settings-section-summary {
  min-height: auto;
  padding-bottom: 1rem;
}

.settings-section[open] .settings-section-summary:hover {
  transform: none;
  background: color-mix(in srgb, var(--color-brand-accent) 10%, var(--color-paper));
}

.settings-section-panel {
  padding: 1.1rem 1.2rem 1.2rem;
  border-top: 2px dashed color-mix(in srgb, var(--color-ink) 12%, transparent);
}

.settings-auth-card {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
}

.settings-auth-card-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.settings-auth-card-copy {
  min-width: 0;
}

.settings-auth-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.settings-auth-card-actions .brand-action-btn,
.settings-auth-card-actions .btn-brand-accent {
  width: auto;
  min-width: min(100%, 14rem);
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .settings-sections-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}
.icon-picker-shell {
  z-index: 110;
}

.icon-picker-card {
  max-width: min(100%, 46rem);
}

.icon-picker-grid {
  max-height: min(54svh, 25rem);
  overflow-y: auto;
  padding: 0.25rem;
}

.editor-modal-shell {
  z-index: 100;
}

.editor-modal-card {
  max-width: min(100%, 34rem);
}

.editor-modal-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.96;
}

@media (max-width: 767px) {
  .settings-modal-shell {
    padding-top: max(0.75rem, env(safe-area-inset-top) + 0.35rem);
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom) + 0.35rem);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .settings-modal-card {
    max-height: calc(100svh - 0.75rem);
  }
  .settings-auth-card {
    padding: 0.95rem;
  }
  .settings-auth-card-actions {
    justify-content: stretch;
  }
  .settings-auth-card-actions .brand-action-btn,
  .settings-auth-card-actions .btn-brand-accent {
    width: 100%;
    min-width: 0;
  }
  .settings-modal-header {
    position: static;
    padding: 0.95rem 1rem 0.8rem;
  }
  .settings-modal-title {
    font-size: clamp(1.55rem, 6vw, 2rem);
    line-height: 0.94;
    gap: 0.45rem;
  }
  .language-onboarding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .language-onboarding-choice {
    min-height: 72px;
    padding: 0.8rem 0.85rem;
  }
  .language-onboarding-choice-main {
    font-size: 0.92rem;
  }
  .language-onboarding-choice-sub {
    font-size: 0.68rem;
  }
  .stack-modal-body {
    padding: 1rem;
  }
  .stack-modal-header {
    gap: 0.75rem;
  }
  .stack-modal-footer {
    padding: 0.8rem 0.95rem 0.95rem;
  }
  .settings-section-summary {
    padding: 1rem;
    min-height: auto;
  }
  .settings-section-summary-main {
    gap: 0.8rem;
  }
  .settings-section-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.9rem;
    font-size: 1.05rem;
  }
  .account-summary-cue {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }
  .settings-section-hint {
    font-size: 0.85rem;
    max-width: none;
  }
  .settings-section-copy {
    padding-right: 2rem;
  }
  .settings-section-panel {
    padding: 1rem;
  }
  .theme-option {
    min-height: 78px;
    padding: 0.8rem 0.75rem !important;
  }
  .theme-option > span:first-child {
    font-size: 0.95rem;
  }
  .theme-option .theme-option-meta {
    font-size: 0.68rem;
  }
  .icon-color-swatch {
    min-height: 68px;
    padding: 0.75rem 2.7rem 0.75rem 0.75rem !important;
    gap: 0.65rem !important;
  }
  .icon-color-swatch:not(.logo-color-swatch) > span:first-child {
    width: 2.25rem;
    height: 2.25rem;
  }
  .icon-color-swatch-check {
    width: 1.5rem;
    height: 1.5rem;
    right: 0.7rem;
  }
  .icon-color-swatch-label {
    font-size: 0.76rem;
    line-height: 1.05;
  }
  .icon-color-swatch-copy {
    line-height: 1.05;
  }
  .logo-color-swatch {
    min-height: 118px;
    gap: 0.7rem;
    padding: 0.85rem 0.85rem 0.8rem !important;
  }
  .logo-color-swatch-preview {
    min-height: 4.35rem;
    padding: 0.28rem;
    border-radius: 1.2rem;
  }
  .logo-color-swatch-chip {
    width: 100%;
    min-height: 3.55rem;
    height: 3.55rem;
    border-radius: 0.98rem;
  }
  .logo-color-swatch .icon-color-swatch-copy {
    padding-right: 0;
  }
  .logo-color-swatch .icon-color-swatch-label {
    font-size: 0.78rem;
    line-height: 1.05;
  }
  .logo-color-swatch .icon-color-swatch-check {
    top: 0.75rem;
    right: 0.75rem;
  }
  .icon-picker-card,
  .editor-modal-card {
    max-height: calc(100svh - 0.75rem);
  }
  .icon-picker-grid {
    max-height: min(48svh, 20rem);
  }
  .editor-modal-title {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
  }
}
@media (min-width: 768px) {
  .stack-modal-shell {
    align-items: center;
    padding: 1rem;
  }
  .stack-modal-card {
    max-height: calc(100svh - 2rem);
  }
  .stack-modal-header {
    padding: 1.1rem 1.25rem 1rem;
  }
  .stack-modal-body {
    padding: 1.15rem 1.25rem 1.25rem;
  }
  .stack-modal-footer {
    padding: 1rem 1.25rem 1.2rem;
  }
}
#main-content {
  min-width: 0;
}

#shelf-grid,
#fyc-categories {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
}

#de-grid > * {
  flex: 0 0 clamp(15.75rem, 26vw, 20rem);
  min-width: clamp(15.75rem, 26vw, 20rem) !important;
  max-width: clamp(15.75rem, 26vw, 20rem) !important;
}

#de-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#de-grid > * {
  min-width: 0 !important;
  max-width: none !important;
  width: 100%;
  flex: initial !important;
}

@media (max-width: 1279px) {
  #de-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  #de-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  #main-sidebar {
    width: 12rem;
    padding: 1.2rem 0.9rem;
  }
  #main-sidebar nav {
    margin-top: 1.35rem;
  }
  #main-sidebar .brand-action-btn,
  #main-sidebar .btn-brand-accent {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  #main-content {
    padding: 1.25rem;
  }
  #dashboard-greeting {
    font-size: clamp(2.45rem, 4.3vw, 3.25rem);
    line-height: 0.95;
  }
  #shelf-reorder-hint {
    display: none;
  }
  #shelf-grid,
  #fyc-categories {
    gap: 0.95rem;
  }
  #fyc-expanded-area {
    padding: 1.1rem;
  }
  #de-grid {
    gap: 1rem;
    padding-bottom: 1rem;
  }
  #de-grid > * {
    flex-basis: clamp(15rem, 29vw, 18rem);
    min-width: clamp(15rem, 29vw, 18rem) !important;
    max-width: clamp(15rem, 29vw, 18rem) !important;
  }
  #bulletin-board {
    min-width: 18rem;
    max-width: min(44vw, 34rem);
  }
  #bulletin-content {
    padding: 1rem 0.95rem 1.1rem;
  }
}
@media (min-width: 1280px) and (max-width: 1535px) {
  #bulletin-board {
    min-width: 20rem;
    max-width: min(42vw, 36rem);
  }
}
@media (min-width: 1536px) {
  #de-grid > * {
    flex-basis: clamp(18rem, 22vw, 21rem);
    min-width: clamp(18rem, 22vw, 21rem) !important;
    max-width: clamp(18rem, 22vw, 21rem) !important;
  }
}
.tape {
  background-color: color-mix(in srgb, var(--color-terracotta) 40%, transparent);
  width: 80px;
  height: 24px;
  transform: rotate(-5deg);
  position: absolute;
  top: -12px;
  left: 50%;
  margin-left: -40px;
  z-index: 10;
}

/* Pushpin for sticky notes */
.pushpin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-terracotta);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.3), inset -2px -2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.pushpin::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-ink) 20%, transparent);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--color-ink) 40%, transparent);
}

#bulletin-wrapper {
  transition: width 0.22s ease, min-width 0.22s ease;
}

#bulletin-board.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  flex: 0 0 0 !important;
  overflow: hidden;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-width: 0 !important;
}

#bulletin-board.collapsed #bulletin-content {
  opacity: 0;
  pointer-events: none;
}

#bulletin-content {
  transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
  #bulletin-wrapper.is-collapsed {
    width: 3.5rem;
    min-width: 3.5rem;
    overflow: visible;
  }
  #bulletin-wrapper.is-collapsed #bulletin-resizer {
    display: none !important;
  }
  #bulletin-wrapper.is-collapsed #bulletin-desktop-toggle {
    left: 0.5rem;
  }
  #bulletin-wrapper:not(.is-collapsed) #bulletin-desktop-toggle {
    left: -1.25rem;
  }
}
#bulletin-canvas {
  position: relative;
  min-height: max(1800px, 100vh + 720px);
  padding-bottom: 6rem;
}

.bulletin-action-bar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  padding: var(--space-3);
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 84%, var(--surface-muted));
  box-shadow: var(--shadow-raised);
}

.bulletin-action-bar > div {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.bulletin-action-bar strong {
  min-width: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1;
}

.bulletin-action-bar .wobbly-btn {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  #bulletin-canvas {
    min-height: max(1400px, 85vh + 520px);
    padding-bottom: 7rem;
  }
  .bulletin-action-bar {
    position: relative;
    flex-direction: column;
    align-items: stretch;
  }
}
#sticky-notes-layer {
  min-height: 100%;
}

.sticky-note-card {
  border-color: color-mix(in srgb, var(--color-ink) 75%, rgba(24, 28, 38, 0.55));
  box-shadow: 4px 6px 0px rgba(0, 0, 0, 0.18);
}

.sticky-note-text {
  color: #24303b !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
  white-space: normal;
}

.sticky-note-lines {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: stretch;
}

.sticky-note-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.sticky-note-row.is-plain {
  display: block;
}

.sticky-note-marker {
  flex: 0 0 auto;
  font-weight: 700;
  line-height: 1.25;
  min-width: 1rem;
  text-align: center;
  opacity: 0.82;
}

.sticky-note-marker.is-checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 0.28rem;
  border: 2px solid rgba(36, 48, 59, 0.72);
  margin-top: 0.1rem;
  position: relative;
  background: rgba(255, 255, 255, 0.32);
}

.sticky-note-marker.is-checkbox.checked::after {
  content: "";
  position: absolute;
  left: 0.19rem;
  top: 0.02rem;
  width: 0.3rem;
  height: 0.58rem;
  border-right: 2px solid rgba(36, 48, 59, 0.82);
  border-bottom: 2px solid rgba(36, 48, 59, 0.82);
  transform: rotate(45deg);
}

.sticky-note-line {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sticky-note-spacer {
  display: block;
  height: 0.4rem;
}

.sticky-note-action {
  background-color: rgba(255, 255, 255, 0.94) !important;
  color: #24303b !important;
  border-color: rgba(36, 48, 59, 0.7) !important;
}

.sticky-color-swatch {
  border-radius: 28px 10px 22px 12px/12px 22px 10px 28px;
  border: 2px solid rgba(36, 48, 59, 0.22);
  box-shadow: 2px 2px 0px 0px rgba(36, 48, 59, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  color: #24303b;
}

.sticky-color-swatch:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px 0px rgba(36, 48, 59, 0.18);
  border-color: rgba(36, 48, 59, 0.42);
}

.sticky-color-swatch.is-selected {
  border-color: rgba(36, 48, 59, 0.8);
  box-shadow: 4px 4px 0px 0px rgba(36, 48, 59, 0.26);
}

.sticky-color-swatch-label {
  color: #24303b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

.sticky-color-swatch-check {
  background-color: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(36, 48, 59, 0.6);
  color: #24303b;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sticky-color-swatch.is-selected .sticky-color-swatch-check {
  opacity: 1;
  transform: scale(1);
}

.sticky-note-save-btn,
.btn-note-save {
  background-color: #24303b !important;
  color: #f8fafc !important;
  border-color: #24303b !important;
  box-shadow: 2px 2px 0px 0px rgba(36, 48, 59, 0.42) !important;
}

.sticky-note-save-btn:hover,
.btn-note-save:hover {
  background-color: #d5946a !important;
  color: #24303b !important;
  border-color: #24303b !important;
  box-shadow: 4px 4px 0px 0px rgba(36, 48, 59, 0.24) !important;
}

.sticky-note-save-btn:active,
.btn-note-save:active {
  box-shadow: 0px 0px 0px 0px rgba(36, 48, 59, 0.24) !important;
}

.spark-replies-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.35rem 0.1rem 0.55rem;
  scroll-snap-type: x proximity;
}

.spark-reply-card {
  min-width: 220px;
  max-width: 220px;
  min-height: 190px;
  background-color: var(--reply-note-color, #fef08a);
  scroll-snap-align: start;
  position: relative;
}

.spark-reply-card .tape {
  background-color: rgba(0, 0, 0, 0.12);
  width: 72px;
  height: 20px;
  top: -10px;
  margin-left: -36px;
}

.spark-reply-text {
  color: #24303b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.spark-reply-meta {
  color: rgba(36, 48, 59, 0.7);
}

.spark-reply-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.spark-reply-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--color-ink) 22%, var(--color-paper));
  background: color-mix(in srgb, var(--color-paper) 88%, var(--color-sidebar));
  color: color-mix(in srgb, var(--color-ink) 88%, var(--color-paper));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.spark-reply-pill[data-tone=pending] {
  border-color: color-mix(in srgb, var(--color-terracotta) 34%, var(--color-paper));
  background: color-mix(in srgb, var(--color-terracotta) 16%, var(--color-paper));
  color: var(--color-terracotta);
}

.spark-reply-pill[data-tone=approved] {
  border-color: color-mix(in srgb, var(--color-sage) 38%, var(--color-paper));
  background: color-mix(in srgb, var(--color-sage) 14%, var(--color-paper));
  color: color-mix(in srgb, var(--color-sage) 70%, var(--color-ink));
}

.spark-reply-status {
  font-size: 0.85rem;
  line-height: 1.35;
}

.spark-reply-status[data-tone=success] {
  color: color-mix(in srgb, var(--color-sage) 78%, var(--color-ink));
}

.spark-reply-status[data-tone=error] {
  color: var(--color-danger-text);
}

.spark-reply-status[data-tone=warning] {
  color: var(--color-terracotta);
}

.spark-reply-empty {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--color-ink) 24%, transparent);
  box-shadow: none;
  background-color: color-mix(in srgb, var(--color-paper) 72%, transparent);
}

body.theme-dark .bg-white,
body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
  background-color: var(--color-paper) !important;
  color: var(--color-ink) !important;
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
}

body.theme-dark .bg-slate-50 {
  background-color: var(--color-paper-soft) !important;
}

body.theme-dark .text-slate-700,
body.theme-dark .text-slate-800 {
  color: var(--color-ink) !important;
}

body.theme-dark .border-slate-700 {
  border-color: var(--color-ink) !important;
}

body.theme-dark .bg-red-50 {
  background-color: var(--color-danger-bg) !important;
}

body.theme-dark .text-red-600 {
  color: var(--color-danger-text) !important;
}

body.theme-dark .border-red-200,
body.theme-dark .border-red-300 {
  border-color: var(--color-danger-border) !important;
}

body.theme-dark .notepad-ring {
  background: linear-gradient(to right, #5d6f81, #c7d2de, #5d6f81);
}

body.theme-dark .sticky-note-card {
  box-shadow: 5px 8px 0px rgba(0, 0, 0, 0.34);
  filter: saturate(1.04) brightness(1.02);
}

body.theme-dark .sticky-note-text {
  color: #22303c !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.theme-dark .sticky-note-action {
  background-color: rgba(248, 251, 255, 0.96) !important;
  color: #1d2834 !important;
  border-color: rgba(29, 40, 52, 0.72) !important;
}

body.theme-dark .sticky-color-swatch {
  border-color: rgba(29, 40, 52, 0.24);
  box-shadow: 2px 2px 0px 0px rgba(10, 14, 22, 0.26);
}

body.theme-dark .sticky-color-swatch:hover {
  border-color: rgba(29, 40, 52, 0.46);
  box-shadow: 4px 4px 0px 0px rgba(10, 14, 22, 0.34);
}

body.theme-dark .sticky-color-swatch.is-selected {
  border-color: rgba(29, 40, 52, 0.82);
  box-shadow: 4px 4px 0px 0px rgba(10, 14, 22, 0.42);
}

body.theme-dark .sticky-color-swatch-check {
  background-color: rgba(248, 251, 255, 0.94);
  border-color: rgba(29, 40, 52, 0.7);
  color: #1d2834;
}

body.theme-dark .sticky-note-save-btn,
body.theme-dark .btn-note-save {
  background-color: #f0f6eb !important;
  color: #1d2834 !important;
  border-color: #1d2834 !important;
  box-shadow: 2px 2px 0px 0px rgba(10, 14, 22, 0.42) !important;
}

body.theme-dark .sticky-note-save-btn:hover,
body.theme-dark .btn-note-save:hover {
  background-color: #e0a27a !important;
  color: #1d2834 !important;
  border-color: #1d2834 !important;
  box-shadow: 4px 4px 0px 0px rgba(10, 14, 22, 0.3) !important;
}

body.theme-dark .spark-reply-pill {
  border-color: rgba(231, 238, 223, 0.22);
  background: rgba(37, 50, 68, 0.92);
  color: rgba(231, 238, 223, 0.92);
}

body.theme-dark .spark-reply-pill[data-tone=pending] {
  background: rgba(224, 162, 122, 0.14);
  border-color: rgba(224, 162, 122, 0.38);
  color: #ffd8bf;
}

body.theme-dark .spark-reply-pill[data-tone=approved] {
  background: rgba(142, 194, 175, 0.14);
  border-color: rgba(142, 194, 175, 0.4);
  color: #d5f2e8;
}

body.theme-dark .spark-reply-status[data-tone=success] {
  color: #d5f2e8;
}

body.theme-dark .spark-reply-status[data-tone=error] {
  color: #ffe0e5;
}

body.theme-dark .spark-reply-empty {
  background-color: rgba(37, 50, 68, 0.72);
  border-color: rgba(231, 238, 223, 0.2);
}

body.theme-dark .theme-option[data-theme=warm] {
  background-color: #fcfbf8 !important;
  color: #5a6b4f !important;
  border-color: #5a6b4f !important;
  box-shadow: 2px 2px 0px 0px #5a6b4f !important;
}

body.theme-dark .theme-option[data-theme=warm] span {
  color: #5a6b4f !important;
}

body.theme-dark .theme-option[data-theme=light] {
  background-color: #ffffff !important;
  color: #334155 !important;
  border-color: #334155 !important;
  box-shadow: 2px 2px 0px 0px #334155 !important;
}

body.theme-dark .theme-option[data-theme=light] span {
  color: #334155 !important;
}

body.theme-dark .theme-option[data-theme=dark] {
  background-color: #253244 !important;
  color: #f8fafc !important;
  border-color: #f8fafc !important;
  box-shadow: 2px 2px 0px 0px #f8fafc !important;
}

body.theme-dark .theme-option[data-theme=dark] span {
  color: #f8fafc !important;
}

body.theme-dark .theme-option[data-theme=warm] .theme-option-meta {
  color: rgba(90, 107, 79, 0.72) !important;
}

body.theme-dark .theme-option[data-theme=light] .theme-option-meta {
  color: rgba(51, 65, 85, 0.72) !important;
}

body.theme-dark .theme-option[data-theme=dark] .theme-option-meta {
  color: rgba(248, 250, 252, 0.78) !important;
}

body.theme-dark .hover\:bg-white:hover {
  background-color: var(--color-paper-soft) !important;
}

body.theme-dark .empty-state-card:hover,
body.theme-dark .exploration-add-card:hover {
  background-color: var(--color-paper-soft) !important;
  border-color: color-mix(in srgb, var(--color-ink) 38%, transparent) !important;
  box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.18);
}

body.theme-dark .wobbly-card.bg-cream,
body.theme-dark .wobbly-btn.bg-cream,
body.theme-dark .bg-cream {
  background-color: var(--color-paper-soft) !important;
}

body.theme-light input,
body.theme-light textarea,
body.theme-light select {
  background-color: var(--color-paper) !important;
  color: var(--color-ink) !important;
}

body.theme-light .bg-cream {
  background-color: var(--color-paper-soft) !important;
}

/* Drag & Drop styling */
.dragging {
  opacity: 0.5;
  transform: scale(1.05);
  cursor: grabbing !important;
}

.drag-over {
  border-style: dashed !important;
  border-color: var(--color-terracotta) !important;
  background-color: color-mix(in srgb, var(--color-terracotta) 10%, transparent) !important;
}

/* Mobile Note Pad Rings */
.notepad-ring {
  width: 16px;
  height: 36px;
  border: 4px solid var(--color-ink);
  border-radius: 20px;
  background: linear-gradient(to right, #e2e8f0, #94a3b8, #e2e8f0);
  position: absolute;
  top: -18px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 60;
}

.install-app-btn {
  background: linear-gradient(135deg, var(--color-terracotta), color-mix(in srgb, var(--color-terracotta) 70%, white));
  color: #ffffff;
  border-color: color-mix(in srgb, var(--color-ink) 70%, transparent);
  box-shadow: 2px 2px 0px 0px var(--color-ink);
}

.install-app-btn:hover {
  filter: brightness(1.04);
}

.install-app-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.1);
}

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
  background: var(--color-paper);
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: 3px 3px 0 0 var(--color-ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.logo-trigger {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
}

.logo-trigger:hover {
  transform: scale(1.02);
}

.reveal-on-focus {
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.group:hover .reveal-on-focus,
.group:focus-within .reveal-on-focus,
.reveal-on-focus:focus-visible {
  opacity: 1 !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.nav-main-btn.is-active {
  background: color-mix(in srgb, var(--color-brand-accent) 14%, white);
  border-color: color-mix(in srgb, var(--color-brand-accent) 72%, var(--color-ink));
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--color-brand-shadow) 55%, transparent);
  transform: translate(-1px, -1px);
}

.creative-suite-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.creative-suite-intro {
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--color-brand-accent) 12%, transparent), transparent 42%), color-mix(in srgb, white 88%, var(--color-paper) 12%);
}

.creative-suite-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.75fr);
  gap: 1rem;
  align-items: end;
}

.creative-suite-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
}

.creative-suite-summary {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-self: stretch;
  justify-content: center;
}

.creative-suite-summary-value {
  font-family: "Kalam", cursive;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 0.95;
}

.creative-suite-summary-meta {
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.72;
  font-weight: 700;
}

.creative-suite-section-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.creative-suite-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
}

.creative-suite-section-copy {
  max-width: 42rem;
}

.creative-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.95rem;
}

.creative-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 10.5rem;
  padding: 1rem;
  text-align: left;
  background: color-mix(in srgb, var(--color-paper) 90%, white 10%);
  cursor: pointer;
}

.creative-type-card.is-active {
  border-color: color-mix(in srgb, var(--color-brand-accent) 72%, var(--color-ink));
  box-shadow: 5px 5px 0 0 color-mix(in srgb, var(--color-brand-shadow) 48%, transparent);
  transform: translate(-1px, -1px);
}

.creative-type-card.is-add {
  border-style: dashed;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: color-mix(in srgb, var(--color-sidebar) 44%, var(--color-paper));
}

.creative-type-icon,
.creative-focus-icon,
.creative-profile-icon,
.creative-box-row-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  background: color-mix(in srgb, var(--color-paper) 88%, white 12%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  overflow: hidden;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.creative-type-edit-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.creative-suite-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: 1.2rem;
  align-items: start;
}

.creative-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.95rem;
}

.creative-focus-slot {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 12rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--color-paper) 90%, white 10%);
}

.creative-focus-slot.is-active {
  border-color: color-mix(in srgb, var(--color-brand-accent) 72%, var(--color-ink));
  box-shadow: 5px 5px 0 0 color-mix(in srgb, var(--color-brand-shadow) 48%, transparent);
  transform: translate(-1px, -1px);
}

.creative-focus-slot.is-empty {
  border-style: dashed;
  background: color-mix(in srgb, var(--color-sidebar) 42%, var(--color-paper));
}

.creative-focus-slot.is-add {
  border-style: dashed;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: color-mix(in srgb, var(--color-paper) 84%, var(--color-sidebar));
}

.creative-focus-slot-top,
.creative-box-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.creative-slot-badge,
.creative-profile-badge,
.creative-box-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  background: color-mix(in srgb, var(--color-paper) 86%, white 14%);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.78;
}

.creative-focus-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.creative-focus-copy,
.creative-box-row-copy {
  min-width: 0;
  flex: 1;
}

.creative-focus-actions,
.creative-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.creative-profile-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-height: 100%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-brand-accent) 7%, transparent), transparent 58%), color-mix(in srgb, var(--color-paper) 90%, white 10%);
}

.creative-profile-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.creative-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.creative-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  background: color-mix(in srgb, var(--color-paper) 86%, white 14%);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.creative-checklist {
  display: grid;
  gap: 0.7rem;
}

.creative-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 2px dashed color-mix(in srgb, var(--color-ink) 14%, transparent);
  background: color-mix(in srgb, var(--color-paper) 86%, white 14%);
  font-weight: 700;
  line-height: 1.35;
}

.creative-checklist-item .creative-checklist-index {
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--color-ink) 16%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: white;
}

.creative-box-list {
  display: grid;
  gap: 0.85rem;
}

.creative-box-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--color-paper) 90%, white 10%);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.creative-box-row:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 0 color-mix(in srgb, var(--color-brand-shadow) 38%, transparent);
}

.creative-box-row.is-active {
  border-color: color-mix(in srgb, var(--color-brand-accent) 72%, var(--color-ink));
  box-shadow: 5px 5px 0 0 color-mix(in srgb, var(--color-brand-shadow) 48%, transparent);
  transform: translate(-1px, -1px);
}

.creative-box-row-main {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.creative-box-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.creative-empty-state {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.9rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-brand-accent) 5%, transparent), transparent 60%), color-mix(in srgb, white 90%, var(--color-paper) 10%);
}

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

.creative-editor-tools-grid.creative-editor-tools-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.creative-suite-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.creative-editor-helper {
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0.62;
}

@media (max-width: 1279px) {
  .creative-suite-intro-grid,
  .creative-suite-workbench {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .creative-type-grid,
  .creative-focus-grid,
  .creative-editor-grid,
  .creative-editor-tools-grid,
  .creative-editor-tools-grid.creative-editor-tools-grid--triple {
    grid-template-columns: 1fr;
  }
  .creative-box-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .creative-box-row-actions {
    justify-content: flex-start;
  }
  .creative-suite-summary {
    min-width: 0;
  }
}
.studio-logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  color: var(--color-cream);
  flex-shrink: 0;
}

.sidebar-topbar {
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  min-width: 0;
}

.sidebar-topbar .logo-trigger {
  min-width: 0;
  flex: 1 1 auto;
}

.sidebar-collapse-toggle {
  width: 2.6rem;
  height: 2.6rem;
  min-width: 2.6rem;
  min-height: 2.6rem;
  border-radius: 0.85rem;
}

.nav-main-btn,
.nav-soon-btn,
.sidebar-nav-primary,
.sidebar-nav-secondary {
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 4.15rem;
  padding: 0.9rem 1rem;
  text-align: left;
  border-radius: 1rem;
}

.nav-main-btn,
.sidebar-nav-primary {
  opacity: 0.7;
  background: var(--color-paper) !important;
  border-color: var(--color-ink) !important;
  box-shadow: 3px 3px 0 0 var(--color-ink) !important;
  color: var(--color-ink) !important;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.nav-main-btn:hover,
.nav-main-btn:focus-visible,
.sidebar-nav-primary:hover,
.sidebar-nav-primary:focus-visible {
  opacity: 1;
}

.nav-main-btn.is-active,
.sidebar-nav-primary.is-active {
  opacity: 1;
  background: var(--color-paper) !important;
  border-color: var(--color-terracotta) !important;
  box-shadow: 3px 3px 0 0 var(--color-ink) !important;
  outline: 0;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-terracotta) 20%, transparent), 3px 3px 0 0 var(--color-ink) !important;
  transform: none;
}

.nav-main-btn.is-active .font-bold,
.nav-main-btn.is-active iconify-icon,
.sidebar-nav-primary.is-active .font-bold,
.sidebar-nav-primary.is-active iconify-icon {
  color: var(--color-terracotta) !important;
}

.nav-soon-stack {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  opacity: 0.5;
}

.nav-soon-btn,
.sidebar-nav-secondary {
  opacity: 1;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--color-ink) !important;
  min-height: auto;
  padding: 0.8rem 1rem;
  border-radius: 0.875rem;
  position: relative;
  cursor: pointer;
}

.nav-soon-btn:hover,
.nav-soon-btn:focus-visible,
.sidebar-nav-secondary:hover,
.sidebar-nav-secondary:focus-visible {
  background: color-mix(in srgb, var(--color-paper) 45%, transparent) !important;
  box-shadow: none !important;
  transform: none;
  opacity: 1;
}

.sidebar-shell {
  width: 18rem !important;
  background: var(--color-sidebar) !important;
  border-right: 2px solid color-mix(in srgb, var(--color-ink) 20%, transparent) !important;
  backdrop-filter: none !important;
  transition: width 0.22s ease, padding 0.22s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
  body.sidebar-collapsed #main-sidebar {
    width: 5.25rem !important;
    padding: 1rem 0.65rem !important;
    overflow-x: visible;
  }
  body.sidebar-collapsed #main-sidebar .sidebar-topbar {
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  body.sidebar-collapsed #main-sidebar .sidebar-topbar .logo-trigger {
    width: 100%;
    flex: 0 0 auto;
    justify-content: center;
  }
  body.sidebar-collapsed #main-sidebar .logo-trigger > span:not(.studio-logo-mark),
  body.sidebar-collapsed #main-sidebar .nav-main-btn > span,
  body.sidebar-collapsed #main-sidebar .nav-soon-btn > span,
  body.sidebar-collapsed #main-sidebar .mt-auto {
    display: none !important;
  }
  body.sidebar-collapsed #main-sidebar nav {
    margin-top: 0;
  }
  body.sidebar-collapsed #main-sidebar .nav-main-btn,
  body.sidebar-collapsed #main-sidebar .nav-soon-btn {
    width: 100%;
    min-height: 3.35rem;
    justify-content: center;
    padding: 0.75rem !important;
  }
  body.sidebar-collapsed #main-sidebar .nav-soon-stack {
    align-items: center;
    gap: 0.45rem;
    padding-top: 0.75rem;
  }
  body.sidebar-collapsed #main-sidebar .sidebar-collapse-toggle {
    width: 100%;
    height: 2.65rem;
    min-width: 0;
  }
}
.sidebar-language-field {
  min-height: 3rem;
}

.sidebar-account-card {
  box-shadow: 4px 4px 0px 0px var(--color-ink);
}

.nav-soon-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.2rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--color-ink) 10%, transparent);
  color: color-mix(in srgb, var(--color-ink) 82%, white);
}

body.page-studio-active #main-content {
  padding-top: 2rem;
}

body.page-studio-active #bulletin-wrapper,
body.page-studio-active #mobile-notepad-btn {
  display: none !important;
}

body.page-studio-active .creative-suite-shell {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

body.page-studio-active .creative-suite-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

body.page-studio-active .creative-suite-page-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.page-studio-active .creative-suite-page-subtitle {
  font-size: 1.125rem;
  line-height: 1.4;
  opacity: 0.6;
}

body.page-studio-active .creative-suite-page-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.page-studio-active .creative-suite-toolbar-btn,
body.page-studio-active .creative-suite-toolbar-icon-btn {
  background: var(--color-paper);
  border: 2px solid var(--color-ink);
  box-shadow: 3px 3px 0 0 var(--color-ink);
}

body.page-studio-active .creative-suite-toolbar-btn {
  min-height: 3.25rem;
  padding: 0.65rem 1.25rem;
  border-radius: 1rem;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

body.page-studio-active .creative-suite-toolbar-icon-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  font-size: 1.3rem;
}

body.page-studio-active .creative-suite-lane-section,
body.page-studio-active .creative-suite-focus-section,
body.page-studio-active .creative-suite-box-section,
body.page-studio-active .creative-suite-dex-card {
  background: transparent;
}

body.page-studio-active .creative-suite-section-row,
body.page-studio-active .creative-suite-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

body.page-studio-active .creative-suite-section-row--focus {
  margin-bottom: 1.25rem;
}

body.page-studio-active .studio-maker-type-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.page-studio-active .creative-maker-type-rail {
  position: relative;
  min-width: 0;
}

body.page-studio-active .creative-maker-type-viewport {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-bottom: 0.2rem;
}

body.page-studio-active .creative-maker-type-viewport::-webkit-scrollbar {
  display: none;
}

body.page-studio-active .creative-maker-type-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: stretch;
  min-width: max-content;
}

body.page-studio-active .creative-maker-type-track > article {
  flex: 0 0 clamp(13rem, 17vw, 15rem);
  min-width: 13rem;
  scroll-snap-align: start;
}

body.page-studio-active .creative-maker-type-track > article {
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.page-studio-active .creative-maker-type-track > article:hover,
body.page-studio-active .creative-maker-type-track > article:focus-visible,
body.page-studio-active .creative-maker-type-track > article:focus-within {
  background: var(--maker-type-hover-surface, color-mix(in srgb, var(--color-sidebar) 22%, var(--color-paper)));
  transform: translate(-1px, -1px);
}

body.page-studio-active .creative-suite-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.75rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 18%, transparent);
  background: var(--color-paper);
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-ink) 18%, transparent);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.82;
  text-decoration: none;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.page-studio-active .creative-suite-link-btn:hover,
body.page-studio-active .creative-suite-link-btn:focus-visible {
  opacity: 1;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--color-ink) 24%, transparent);
  border-color: color-mix(in srgb, var(--color-brand-accent) 35%, var(--color-ink) 25%);
}

body.page-studio-active .creative-suite-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--color-ink) 5%, transparent);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.6;
  white-space: nowrap;
}

body.page-studio-active .creative-suite-focus-tools,
body.page-studio-active .studio-focus-tools {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.page-studio-active .studio-mini-icon-btn,
body.page-studio-active .btn-inline-icon {
  width: 2.45rem;
  height: 2.45rem;
  min-height: 2.45rem;
  padding: 0;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-studio-active .studio-mini-icon-btn:disabled,
body.page-studio-active .btn-inline-icon:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none !important;
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-ink) 18%, transparent) !important;
}

body.page-studio-active .creative-suite-lane-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body.page-studio-active .creative-lane-card {
  position: relative;
  min-height: 9.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--color-paper);
  border: 2px solid var(--color-ink);
  border-radius: 1rem;
  box-shadow: 3px 3px 0 0 var(--color-ink);
  padding: 1.4rem 1rem 1.05rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.page-studio-active .creative-lane-card:hover,
body.page-studio-active .creative-lane-card:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 0 var(--color-ink);
}

body.page-studio-active .creative-lane-card.is-active {
  border-color: var(--color-terracotta);
  box-shadow: 3px 3px 0 0 var(--color-terracotta);
}

body.page-studio-active .creative-lane-icon,
body.page-studio-active .creative-focus-sprite,
body.page-studio-active .creative-dex-sprite,
body.page-studio-active .creative-box-sprite {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 2px solid var(--color-ink);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-studio-active .creative-lane-icon {
  width: 3.25rem;
  height: 3.25rem;
}

body.page-studio-active .creative-focus-sprite {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.05rem;
}

body.page-studio-active .creative-box-sprite {
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
}

body.page-studio-active .creative-lane-icon iconify-icon,
body.page-studio-active .creative-focus-sprite iconify-icon,
body.page-studio-active .creative-dex-sprite iconify-icon,
body.page-studio-active .creative-box-sprite iconify-icon {
  width: 1.96rem;
  height: 1.96rem;
  font-size: 1.96rem;
}

body.page-studio-active .creative-suite-symbol {
  width: 2.04rem !important;
  height: 2.04rem !important;
  font-size: 2.04rem !important;
  display: block;
  margin: auto;
  flex-shrink: 0;
  line-height: 1;
  vertical-align: middle;
}

body.page-studio-active .creative-suite-symbol--lane {
  width: 2.08rem !important;
  height: 2.08rem !important;
  font-size: 2.08rem !important;
}

body.page-studio-active .creative-suite-symbol--focus {
  width: 2.3rem !important;
  height: 2.3rem !important;
  font-size: 2.3rem !important;
}

body.page-studio-active .creative-suite-symbol--box {
  width: 2rem !important;
  height: 2rem !important;
  font-size: 2rem !important;
}

body.page-studio-active .creative-suite-symbol--dex {
  width: 3.74rem !important;
  height: 3.74rem !important;
  font-size: 3.74rem !important;
}

body.page-studio-active .creative-lane-edit,
body.page-studio-active .creative-focus-edit {
  display: none !important;
}

body.page-studio-active .creative-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(10.75rem, auto);
  gap: 1rem;
  align-items: stretch;
  overflow: visible;
  padding: 0.25rem;
}

body.page-studio-active .creative-focus-card {
  --slot-accent: var(--color-terracotta);
  position: relative;
  min-width: 0;
  min-height: 10.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.25rem 1rem 1.15rem 1.65rem;
  background: var(--color-paper);
  border: 2px solid var(--color-ink);
  border-radius: 1.35rem;
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--color-ink) 62%, transparent);
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-focus-card:focus-visible,
body.page-studio-active .creative-focus-card.is-active {
  border-color: var(--color-terracotta);
  box-shadow: inset 0 0 0 2px var(--color-terracotta), 3px 3px 0 0 color-mix(in srgb, var(--color-terracotta) 58%, var(--color-ink));
  transform: translate(-1px, -1px);
}

body.page-studio-active .creative-focus-card.is-empty {
  background: color-mix(in srgb, var(--color-paper) 72%, transparent);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--color-ink) 34%, transparent);
  box-shadow: none;
  justify-content: center;
  text-align: center;
}

body.page-studio-active .creative-focus-card.is-reserved {
  border-color: color-mix(in srgb, var(--color-ink) 72%, transparent);
  background: color-mix(in srgb, var(--color-paper) 90%, var(--color-sidebar));
}

body.page-studio-active .creative-focus-card.is-filled {
  border-color: var(--slot-accent);
  background: color-mix(in srgb, var(--color-paper) 95%, white);
}

body.page-studio-active .creative-focus-card:focus-visible,
body.page-studio-active .creative-focus-card.is-active {
  border-color: var(--color-terracotta);
  box-shadow: inset 0 0 0 2px var(--color-terracotta), 3px 3px 0 0 color-mix(in srgb, var(--color-terracotta) 58%, var(--color-ink));
}

body.page-studio-active .creative-focus-card.is-pointer-dragging {
  opacity: 0.55;
  transform: rotate(-1deg) scale(0.985);
}

body.page-studio-active .creative-focus-card.is-drop-target {
  outline: 3px dashed var(--color-terracotta);
  outline-offset: 0.35rem;
}

body.page-studio-active .creative-focus-card.is-keyboard-dragging {
  border-style: dashed;
  background: color-mix(in srgb, var(--color-terracotta) 10%, var(--color-paper));
}

body.page-studio-active .creative-slot-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-width: 0;
  height: 100%;
}

body.page-studio-active .creative-focus-card.is-filled .creative-slot-main {
  align-items: flex-start;
}

body.page-studio-active .creative-slot-sprite {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 1rem;
}

body.page-studio-active .creative-slot-sprite.is-reserved {
  border-style: dashed;
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-ink) 26%, transparent);
  background: color-mix(in srgb, var(--color-sidebar) 50%, var(--color-paper));
}

body.page-studio-active .creative-slot-copy {
  min-width: 0;
  flex: 1;
}

body.page-studio-active .creative-slot-drag-handle {
  position: absolute;
  z-index: 4;
  left: 0.35rem;
  top: 50%;
  width: 1.35rem;
  height: 2.2rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  opacity: 0;
  cursor: grab;
  transition: opacity 0.16s ease, background-color 0.16s ease;
  touch-action: none;
}

body.page-studio-active .creative-slot-drag-handle:active {
  cursor: grabbing;
}

body.page-studio-active .creative-focus-card:hover .creative-slot-drag-handle,
body.page-studio-active .creative-focus-card:focus-within .creative-slot-drag-handle {
  opacity: 0.46;
}

body.page-studio-active .creative-slot-drag-handle:focus-visible {
  opacity: 1;
  background: color-mix(in srgb, var(--color-terracotta) 12%, var(--color-paper));
  outline: 3px solid color-mix(in srgb, var(--color-terracotta) 35%, transparent);
  outline-offset: 2px;
}

body.page-studio-active .creative-slot-title {
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 5.8rem;
}

body.page-studio-active .creative-slot-subtitle {
  margin-top: 0.24rem;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.58;
}

body.page-studio-active .creative-focus-card-copy {
  min-width: 0;
  flex: 1;
}

body.page-studio-active .creative-focus-meta {
  margin-top: 0.25rem;
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
}

body.page-studio-active .creative-focus-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.72rem;
}

body.page-studio-active .creative-focus-tag {
  padding: 0.3rem 0.5rem;
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--color-ink) 5%, transparent);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
}

body.page-studio-active .creative-slot-status-chip {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-sage) 14%, var(--color-paper));
  border: 1.5px solid color-mix(in srgb, var(--color-sage) 42%, transparent);
  color: color-mix(in srgb, var(--color-sage) 70%, var(--color-ink));
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.page-studio-active .creative-slot-status-chip[data-tone=progress] {
  background: color-mix(in srgb, var(--color-terracotta) 12%, var(--color-paper));
  border-color: color-mix(in srgb, var(--color-terracotta) 45%, transparent);
  color: var(--color-terracotta);
}

body.page-studio-active .creative-slot-status-chip[data-tone=planning],
body.page-studio-active .creative-slot-status-chip[data-tone=setup] {
  background: color-mix(in srgb, var(--color-ink) 5%, var(--color-paper));
  border-color: color-mix(in srgb, var(--color-ink) 18%, transparent);
  color: color-mix(in srgb, var(--color-ink) 70%, transparent);
}

body.page-studio-active .creative-slot-assign-pill,
body.page-studio-active .creative-slot-project-chip,
body.page-studio-active .studio-empty-slot-assign {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--color-terracotta) 55%, transparent);
  background: color-mix(in srgb, var(--color-terracotta) 10%, var(--color-paper));
  color: var(--color-ink);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

body.page-studio-active .studio-empty-slot-assign {
  margin-top: 0.45rem;
  justify-content: center;
  color: var(--color-ink);
}

body.page-studio-active .creative-slot-action-bar {
  position: absolute;
  z-index: 3;
  opacity: 0;
  transform: translateY(-0.25rem);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

body.page-studio-active .creative-slot-action-bar {
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.18rem;
  align-items: center;
  padding: 0.2rem;
  border: 1.5px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-paper) 74%, transparent);
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-ink) 12%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.page-studio-active .creative-focus-card:hover .creative-slot-action-bar,
body.page-studio-active .creative-focus-card:focus-within .creative-slot-action-bar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.page-studio-active .creative-slot-action-btn {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, background-color 0.14s ease;
}

body.page-studio-active .creative-slot-action-btn:hover,
body.page-studio-active .creative-slot-action-btn:focus-visible {
  background: color-mix(in srgb, var(--color-terracotta) 12%, var(--color-paper));
  outline: 3px solid color-mix(in srgb, var(--color-terracotta) 35%, transparent);
  outline-offset: 2px;
  transform: translate(-1px, -1px);
}

body.page-studio-active .creative-slot-action-btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

body.page-studio-active .creative-focus-card.is-editing .creative-slot-action-bar {
  display: none;
}

body.page-studio-active .creative-slot-confirm {
  width: calc(100% + 2.3rem);
  margin: 0.8rem -1.15rem -1.15rem;
  padding: 0.72rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border-top: 2px dashed color-mix(in srgb, var(--color-ink) 18%, transparent);
  background: color-mix(in srgb, var(--color-danger-bg) 82%, var(--color-paper));
  animation: creative-slot-confirm-in 0.18s ease;
  font-size: 0.82rem;
  font-weight: 900;
}

body.page-studio-active .creative-slot-confirm-actions {
  display: inline-flex;
  gap: 0.45rem;
  white-space: nowrap;
}

body.page-studio-active .creative-slot-confirm button {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

body.page-studio-active .creative-slot-confirm-cancel {
  border: 2px solid color-mix(in srgb, var(--color-ink) 20%, transparent);
  background: var(--color-paper);
}

body.page-studio-active .creative-slot-confirm-delete {
  border: 2px solid var(--color-danger-border);
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
}

body.page-studio-active .creative-slot-inline-edit {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  justify-content: center;
  min-height: 7.5rem;
}

body.page-studio-active .creative-slot-name-edit-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

body.page-studio-active .creative-slot-name-editor {
  flex: 1;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  border: 2px dashed color-mix(in srgb, var(--color-terracotta) 68%, transparent);
  background: color-mix(in srgb, var(--color-paper) 88%, white);
  outline: 3px solid transparent;
  outline-offset: 2px;
  font-size: 1.25rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

body.page-studio-active .creative-slot-name-editor:empty::before {
  content: attr(data-placeholder);
  color: color-mix(in srgb, var(--color-ink) 35%, transparent);
}

body.page-studio-active .creative-slot-name-editor:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-terracotta) 36%, transparent);
  outline-offset: 2px;
}

body.page-studio-active .creative-slot-edit-check,
body.page-studio-active .creative-slot-edit-cancel {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--color-ink) 16%, transparent);
  background: var(--color-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-studio-active .creative-slot-add-card {
  min-height: 4rem;
  align-self: center;
  justify-self: stretch;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  opacity: 0.68;
}

body.page-studio-active .creative-slot-add-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--color-ink) 16%, transparent);
  background: color-mix(in srgb, var(--color-paper) 42%, transparent);
}

body.page-studio-active .creative-slot-add-card:hover,
body.page-studio-active .creative-slot-add-card:focus-visible {
  opacity: 1;
  outline: 3px solid color-mix(in srgb, var(--color-terracotta) 26%, transparent);
  outline-offset: 2px;
}

body.page-studio-active .creative-slot-add-card.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.creative-slot-progress {
  min-width: 6.25rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.24rem 0.45rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--color-paper) 70%, transparent);
  border: 2px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
}

.creative-slot-progress-label {
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.64;
  white-space: nowrap;
}

.creative-slot-progress-track {
  height: 0.28rem;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-ink) 10%, transparent);
}

.creative-slot-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-terracotta);
  transition: width 0.2s ease;
}

body.page-studio-active .creative-focus-crosshair {
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--color-terracotta);
  flex-shrink: 0;
}

body.page-studio-active .creative-suite-dex-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem;
  align-items: start;
}

body.page-studio-active .creative-box-list-wrap {
  background: var(--color-paper);
  border: 2px solid var(--color-ink);
  border-radius: 1.8rem;
  box-shadow: 5px 5px 0 0 color-mix(in srgb, var(--color-brand-shadow) 44%, transparent);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.page-studio-active .creative-box-entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--color-paper);
  border-bottom: 2px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  cursor: pointer;
  transition: background-color 0.16s ease;
}

body.page-studio-active .creative-box-entry:last-child {
  border-bottom: 0;
}

body.page-studio-active .creative-box-entry:hover,
body.page-studio-active .creative-box-entry:focus-within,
body.page-studio-active .creative-box-entry.is-active {
  background: color-mix(in srgb, var(--color-sidebar) 30%, var(--color-paper));
}

body.page-studio-active .creative-box-entry-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

body.page-studio-active .creative-box-entry-copy {
  min-width: 0;
  flex: 1;
}

body.page-studio-active .creative-box-level,
body.page-studio-active .creative-box-status {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  padding-right: 0.5rem;
}

body.page-studio-active .creative-box-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--color-ink) 18%, transparent);
  background: color-mix(in srgb, var(--color-paper) 90%, var(--color-sidebar));
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-right: 0.7rem;
}

body.page-studio-active .creative-box-status[data-tone=ready] {
  border-color: color-mix(in srgb, var(--color-sage) 55%, transparent);
  color: var(--color-sage);
}

body.page-studio-active .creative-box-status[data-tone=progress] {
  border-color: color-mix(in srgb, var(--color-terracotta) 45%, transparent);
  color: var(--color-terracotta);
}

body.page-studio-active .creative-box-status[data-tone=planning] {
  border-color: color-mix(in srgb, var(--color-sky) 45%, transparent);
  color: color-mix(in srgb, var(--color-sky) 72%, var(--color-ink));
}

body.page-studio-active .creative-box-status[data-tone=setup] {
  border-color: color-mix(in srgb, var(--color-ink) 20%, transparent);
  color: color-mix(in srgb, var(--color-ink) 64%, transparent);
}

body.page-studio-active .creative-box-actions {
  display: flex !important;
}

body.page-studio-active .creative-suite-create-btn {
  margin-top: 1rem;
}

body.page-studio-active .creative-suite-dex-card {
  background: var(--color-paper);
  border: 2px solid var(--color-ink);
  border-radius: 1.5rem;
  box-shadow: 8px 8px 0 0 var(--color-ink);
  overflow: hidden;
}

body.page-studio-active .creative-dex-hero {
  padding: 2rem;
  background: color-mix(in srgb, var(--color-sidebar) 35%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
}

body.page-studio-active .creative-dex-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

body.page-studio-active .creative-dex-hero-main {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  min-width: 0;
}

body.page-studio-active .creative-dex-sprite {
  width: 6rem;
  height: 6rem;
  border-radius: 1.25rem;
  box-shadow: 4px 4px 0 0 var(--color-ink), inset 3px 3px 0 rgba(0, 0, 0, 0.05);
}

body.page-studio-active .creative-dex-sprite iconify-icon {
  width: 3rem;
  height: 3rem;
}

body.page-studio-active .creative-dex-number {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  background: var(--color-terracotta);
  color: var(--color-paper);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-studio-active .creative-dex-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

body.page-studio-active .creative-dex-quote {
  font-size: 1.15rem;
  line-height: 1.3;
  opacity: 0.7;
  font-style: italic;
}

body.page-studio-active .creative-dex-edit {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--color-paper);
  border: 2px solid color-mix(in srgb, var(--color-ink) 25%, transparent);
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-ink) 35%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-studio-active .creative-dex-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

body.page-studio-active .creative-dex-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

body.page-studio-active .creative-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

body.page-studio-active .creative-signal-card {
  padding: 1rem 1.05rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-paper) 92%, var(--color-sidebar));
  box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--color-ink) 14%, transparent);
}

body.page-studio-active .creative-signal-card[data-tone=ready] {
  border-color: color-mix(in srgb, var(--color-sage) 38%, transparent);
  background: color-mix(in srgb, var(--color-paper) 90%, var(--color-sage) 10%);
}

body.page-studio-active .creative-signal-card[data-tone=progress] {
  border-color: color-mix(in srgb, var(--color-terracotta) 32%, transparent);
  background: color-mix(in srgb, var(--color-paper) 90%, var(--color-terracotta) 8%);
}

body.page-studio-active .creative-signal-card[data-tone=planning] {
  border-color: color-mix(in srgb, var(--color-sky) 30%, transparent);
  background: color-mix(in srgb, var(--color-paper) 92%, var(--color-sky) 8%);
}

body.page-studio-active .creative-signal-card[data-tone=setup] {
  border-color: color-mix(in srgb, var(--color-ink) 16%, transparent);
  background: color-mix(in srgb, var(--color-paper) 94%, var(--color-cream) 6%);
}

body.page-studio-active .creative-signal-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
  opacity: 0.45;
}

body.page-studio-active .creative-signal-value {
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

body.page-studio-active .creative-signal-helper {
  font-size: 0.8rem;
  line-height: 1.35;
  opacity: 0.68;
}

body.page-studio-active .creative-tool-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

body.page-studio-active .creative-tool-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--color-cream);
  border: 2px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 0.95rem;
  font-weight: 700;
}

body.page-studio-active .creative-tool-card iconify-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

body.page-studio-active .creative-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body.page-studio-active .creative-action-card {
  padding: 1rem;
  background: var(--color-paper);
  border: 2px dashed color-mix(in srgb, var(--color-ink) 30%, transparent);
  border-radius: 1rem;
  box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--color-ink) 18%, transparent);
}

body.page-studio-active .creative-action-card.is-empty {
  background: color-mix(in srgb, var(--color-paper) 88%, transparent);
  border-color: color-mix(in srgb, var(--color-ink) 26%, transparent);
  box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--color-ink) 14%, transparent);
}

body.page-studio-active .creative-action-label {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 0.45rem;
}

body.page-studio-active .creative-action-card.is-empty .creative-action-label {
  opacity: 0.24;
}

body.page-studio-active .creative-action-copy {
  font-weight: 700;
}

body.page-studio-active .creative-action-card.is-empty .creative-action-copy {
  color: color-mix(in srgb, var(--color-ink) 32%, transparent);
  font-style: italic;
}

body.page-studio-active .creative-dex-footer {
  padding-top: 1rem;
  border-top: 2px dashed color-mix(in srgb, var(--color-ink) 10%, transparent);
  display: flex;
  gap: 1rem;
}

body.page-studio-active .creative-dex-footer .wobbly-btn {
  flex: 1;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

body.page-studio-active .creative-focus-assign-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

body.page-studio-active .creative-focus-assign-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 1rem;
  background: var(--color-paper);
  box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--color-ink) 15%, transparent);
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

body.page-studio-active .creative-focus-assign-option:hover,
body.page-studio-active .creative-focus-assign-option:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--color-ink) 22%, transparent);
  background: color-mix(in srgb, var(--color-sidebar) 28%, var(--color-paper));
}

body.page-studio-active .creative-focus-assign-title {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

body.page-studio-active .creative-focus-assign-meta {
  font-size: 0.8rem;
  line-height: 1.3;
  opacity: 0.62;
  font-weight: 700;
}

body.page-studio-active .creative-focus-assign-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--color-ink) 16%, transparent);
  background: color-mix(in srgb, var(--color-paper) 88%, var(--color-sidebar));
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

body.page-studio-active .creative-focus-assign-badge.is-current {
  border-color: color-mix(in srgb, var(--color-sage) 40%, transparent);
  color: var(--color-sage);
}

body.page-studio-active .creative-focus-empty-helper {
  padding: 1rem 1.1rem;
  border: 2px dashed color-mix(in srgb, var(--color-ink) 20%, transparent);
  border-radius: 1rem;
  font-size: 0.92rem;
  opacity: 0.7;
  background: color-mix(in srgb, var(--color-paper) 90%, transparent);
}

.creative-slot-popover {
  position: fixed;
  z-index: 80;
  box-sizing: border-box;
  max-width: calc(100vw - 1.5rem);
  max-height: min(34rem, 100vh - 1.5rem);
  overflow: auto;
  padding: 1rem;
  border: 2px solid var(--color-ink);
  border-radius: 1.35rem;
  background: var(--color-paper);
  box-shadow: 6px 6px 0 0 color-mix(in srgb, var(--color-ink) 42%, transparent);
}

.creative-slot-popover.hidden {
  display: none;
}

.creative-slot-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.creative-slot-popover-summary {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0.64;
  font-weight: 700;
}

.creative-slot-popover-close {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--color-ink) 16%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.creative-slot-search-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.58;
}

.creative-slot-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 22%, transparent);
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--color-paper) 88%, white);
  margin-bottom: 0.85rem;
}

.creative-slot-search-wrap input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-weight: 800;
  color: var(--color-ink);
}

.creative-slot-popover-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.creative-slot-popover-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.75rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-paper) 92%, var(--color-sidebar));
  text-align: left;
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-ink) 12%, transparent);
}

.creative-slot-popover-option:hover,
.creative-slot-popover-option:focus-visible,
.creative-slot-popover-option.is-current {
  border-color: var(--color-terracotta);
  outline: 3px solid color-mix(in srgb, var(--color-terracotta) 28%, transparent);
  outline-offset: 2px;
  background: color-mix(in srgb, var(--color-terracotta) 9%, var(--color-paper));
}

.creative-slot-popover-option-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 0.8rem;
  background: var(--color-paper);
}

.creative-slot-popover-option strong,
.creative-slot-popover-option small {
  display: block;
}

.creative-slot-popover-option strong {
  font-size: 0.9rem;
  line-height: 1.1;
}

.creative-slot-popover-option small {
  margin-top: 0.22rem;
  font-size: 0.72rem;
  line-height: 1.25;
  opacity: 0.62;
  font-weight: 800;
}

.creative-slot-popover-option em {
  margin-left: auto;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}

.creative-slot-create-link {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.72rem 0.75rem;
  border: 2px dashed color-mix(in srgb, var(--color-ink) 24%, transparent);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 900;
  color: var(--color-ink);
  background: color-mix(in srgb, var(--color-paper) 72%, transparent);
}

.creative-slot-create-link:hover,
.creative-slot-create-link:focus-visible {
  border-color: var(--color-terracotta);
  outline: 3px solid color-mix(in srgb, var(--color-terracotta) 30%, transparent);
  outline-offset: 2px;
}

.creative-slot-toast-region {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(clamp(1.25rem, 4vh, 2.75rem) + env(safe-area-inset-bottom));
  width: min(420px, 100vw - 2rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 0.6rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.creative-slot-toast-region.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.creative-slot-toast-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 2px solid var(--color-ink);
  border-radius: 1rem;
  background: var(--color-paper);
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--color-ink) 40%, transparent);
  font-weight: 900;
  pointer-events: auto;
}

.creative-slot-toast-undo {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-terracotta) 12%, var(--color-paper));
  border: 2px solid color-mix(in srgb, var(--color-terracotta) 60%, transparent);
  color: var(--color-ink);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

@keyframes creative-slot-confirm-in {
  from {
    opacity: 0;
    transform: translateY(-0.45rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body.page-studio-active .creative-analysis-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body.page-studio-active .creative-analysis-panel {
  padding: 1rem 1.1rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-paper) 92%, var(--color-sidebar));
  box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--color-ink) 12%, transparent);
}

body.page-studio-active .creative-analysis-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

body.page-studio-active .creative-analysis-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  body.page-studio-active .creative-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  body.page-studio-active .creative-suite-lane-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  body.page-studio-active .creative-focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  body.page-studio-active .creative-focus-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1023px) {
  body.page-studio-active .creative-suite-dex-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  body.page-studio-active .creative-dex-columns,
  body.page-studio-active .creative-actions-grid,
  body.page-studio-active .creative-analysis-columns {
    grid-template-columns: 1fr;
  }
  body.page-studio-active .creative-profile-section {
    order: -1;
  }
}
@media (max-width: 1535px) {
  body.page-studio-active .creative-focus-card.is-filled .creative-slot-main {
    flex-direction: column;
    justify-content: center;
  }
}
@media (max-width: 767px) {
  #main-sidebar {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(18rem, 100vw - 3rem) !important;
    max-width: calc(100vw - 3rem);
    transform: translateX(-100%) !important;
    z-index: 80;
  }
  body.mobile-nav-open #main-sidebar {
    transform: translateX(0) !important;
  }
  body.page-studio-active #main-sidebar {
    transform: translateX(-100%) !important;
  }
  body.page-studio-active.mobile-nav-open #main-sidebar {
    transform: translateX(0) !important;
  }
  #mobile-nav-overlay {
    display: none !important;
  }
  body.mobile-nav-open #mobile-nav-overlay {
    display: block !important;
  }
  #main-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto;
  }
  body.page-studio-active #main-content {
    padding-top: 1.5rem;
  }
  body.page-studio-active .creative-suite-page-header,
  body.page-studio-active .creative-suite-section-row,
  body.page-studio-active .creative-suite-box-header {
    flex-direction: column;
    align-items: flex-start;
  }
  body.page-studio-active .studio-maker-type-tools {
    width: 100%;
    justify-content: flex-start;
  }
  body.page-studio-active .creative-maker-type-track > article {
    flex-basis: min(78vw, 16rem);
    min-width: min(78vw, 16rem);
  }
  body.page-studio-active .creative-suite-page-actions,
  body.page-studio-active .creative-suite-focus-tools {
    width: 100%;
    justify-content: flex-start;
  }
  body.page-studio-active .creative-focus-card,
  body.page-studio-active .creative-dex-top,
  body.page-studio-active .creative-dex-hero-main {
    flex-direction: column;
    align-items: flex-start;
  }
  body.page-studio-active .creative-dex-hero,
  body.page-studio-active .creative-dex-body {
    padding: 1.5rem;
  }
  body.page-studio-active .creative-box-actions {
    position: static;
    opacity: 1;
    margin-top: 0.75rem;
    justify-content: flex-start;
  }
  body.page-studio-active .creative-box-entry {
    align-items: flex-start;
  }
  body.page-studio-active .creative-box-entry-main {
    width: 100%;
  }
}
@media (hover: none) {
  body.page-studio-active .creative-lane-edit,
  body.page-studio-active .creative-focus-edit {
    opacity: 1;
    transform: translateY(0);
  }
  body.page-studio-active .creative-slot-action-bar {
    opacity: 0.54;
    transform: translateY(0);
    pointer-events: auto;
  }
  body.page-studio-active .creative-slot-action-bar:focus-within,
  body.page-studio-active .creative-slot-action-bar:active {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.page-studio-active .creative-focus-card,
  body.page-studio-active .creative-slot-action-bar,
  .creative-slot-toast-region,
  .creative-slot-progress-fill {
    transition: none !important;
    animation: none !important;
  }
  body.page-studio-active .creative-slot-confirm {
    animation: none !important;
  }
}
/* Shared shell for Creative Suite */
body.page-studio-active #dashboard-main-header {
  display: none !important;
}

body.page-studio-active #main-content {
  padding: 0 !important;
  width: 100%;
  max-width: none;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.page-studio-active #creative-suite-view {
  display: block !important;
  height: 100%;
}

body.page-studio-active .studio-export-main {
  padding-bottom: clamp(7rem, 12vh, 9rem) !important;
}

body.page-studio-active #creative-suite-view.hidden {
  display: none !important;
}

body.page-studio-active .wobbly-card {
  border-radius: 1.5rem;
  border: 2px solid var(--color-ink);
  box-shadow: 4px 4px 0px 0px var(--color-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.page-studio-active .wobbly-card:hover:not(.no-hover) {
  transform: none;
  box-shadow: 4px 4px 0px 0px var(--color-ink);
}

body.page-studio-active .wobbly-btn {
  border-radius: 1rem;
  border: 2px solid var(--color-ink);
  box-shadow: 3px 3px 0px 0px var(--color-ink);
  transition: all 0.15s ease;
}

body.page-studio-active .wobbly-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px 0px var(--color-ink);
}

body.page-studio-active .wobbly-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px 0px var(--color-ink);
}

body.page-studio-active .studio-export-shell,
body.page-studio-active .creative-suite-shell {
  min-height: 100vh;
  min-height: 100svh;
}

body.page-studio-active .btn-toolbar,
body.page-studio-active .btn-toolbar-icon,
body.page-studio-active .btn-inline-action,
body.page-studio-active .btn-inline-link,
body.page-studio-active .btn-inline-icon,
body.page-studio-active .btn-surface {
  background: var(--color-paper);
}

body.page-studio-active .studio-symbol {
  width: 1em;
  height: 1em;
  line-height: 1;
  display: block;
  flex-shrink: 0;
}

body.page-studio-active .sprite-box .studio-symbol {
  width: auto;
  height: auto;
}

body.page-studio-active .studio-box-entry.is-active {
  background: transparent;
}

body.page-studio-active .studio-empty-slot {
  background: color-mix(in srgb, var(--color-paper) 82%, transparent);
  border-color: color-mix(in srgb, var(--color-ink) 20%, transparent);
  box-shadow: 4px 4px 0px 0px var(--color-ink);
}

body.page-studio-active .studio-empty-slot {
  border: 2px dashed color-mix(in srgb, var(--color-ink) 28%, transparent);
  background: color-mix(in srgb, var(--color-paper) 86%, transparent);
  box-shadow: 4px 4px 0px 0px color-mix(in srgb, var(--color-ink) 34%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body.page-studio-active .studio-empty-slot:hover,
body.page-studio-active .studio-empty-slot:focus-visible {
  transform: translate(-1px, -1px);
  border-color: color-mix(in srgb, var(--color-ink) 42%, transparent);
  box-shadow: 5px 5px 0px 0px color-mix(in srgb, var(--color-ink) 42%, transparent);
}

body.page-studio-active .studio-empty-slot-inner {
  min-height: 6.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  text-align: left;
}

body.page-studio-active .studio-empty-slot-plus {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: 2px dashed color-mix(in srgb, var(--color-ink) 22%, transparent);
  color: color-mix(in srgb, var(--color-ink) 48%, transparent);
  background: color-mix(in srgb, var(--color-paper) 70%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-studio-active .studio-empty-slot-plus iconify-icon {
  font-size: 1.45rem;
}

body.page-studio-active .studio-empty-slot-copy {
  min-width: 0;
}

body.page-studio-active .studio-empty-slot-title {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  color: color-mix(in srgb, var(--color-ink) 48%, transparent);
  font-style: italic;
}

body.page-studio-active .studio-empty-slot-hint {
  margin-top: 0.4rem;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-ink) 30%, transparent);
}

body.page-studio-active .studio-manage-stack {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

body.page-studio-active .studio-manage-btn,
body.page-studio-active .studio-row-manage-btn,
body.page-studio-active .btn-icon-quiet {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-paper);
  border: 2px solid color-mix(in srgb, var(--color-ink) 18%, transparent);
  box-shadow: 2px 2px 0px 0px color-mix(in srgb, var(--color-ink) 22%, transparent);
  color: var(--color-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.page-studio-active .studio-manage-btn:hover,
body.page-studio-active .studio-manage-btn:focus-visible,
body.page-studio-active .studio-row-manage-btn:hover,
body.page-studio-active .studio-row-manage-btn:focus-visible,
body.page-studio-active .btn-icon-quiet:hover,
body.page-studio-active .btn-icon-quiet:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px 0px color-mix(in srgb, var(--color-ink) 28%, transparent);
  background: color-mix(in srgb, var(--color-sidebar) 35%, var(--color-paper));
}

body.page-studio-active .studio-row-manage {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

body.page-studio-active .studio-box-entry:hover .studio-row-manage,
body.page-studio-active .studio-box-entry:focus-within .studio-row-manage {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  body.page-studio-active .studio-manage-stack,
  body.page-studio-active .studio-row-manage {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }
  body.page-studio-active #creative-suite-maker-type-grid > article:hover > .studio-manage-stack,
  body.page-studio-active #creative-suite-maker-type-grid > article:focus-within > .studio-manage-stack,
  body.page-studio-active #creative-suite-focus-grid > article:hover > .studio-manage-stack,
  body.page-studio-active #creative-suite-focus-grid > article:focus-within > .studio-manage-stack,
  body.page-studio-active .studio-box-entry:hover .studio-row-manage,
  body.page-studio-active .studio-box-entry:focus-within .studio-row-manage {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}
body.page-studio-active .btn-inline-link:hover,
body.page-studio-active .btn-inline-link:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px 0px var(--color-ink);
}

@media (max-width: 1023px) {
  body.page-studio-active .studio-export-shell {
    flex-direction: column;
    overflow-y: auto;
  }
}
@media (max-width: 767px) {
  body.page-studio-active .studio-export-main {
    padding: 1.5rem 1rem 2rem;
  }
  body.page-studio-active .studio-header-row,
  body.page-studio-active .studio-section-row,
  body.page-studio-active .studio-box-row {
    flex-direction: column;
    align-items: flex-start;
  }
  body.page-studio-active .studio-header-actions,
  body.page-studio-active .studio-focus-tools {
    width: 100%;
    justify-content: flex-start;
  }
  body.page-studio-active .studio-dex-grid,
  body.page-studio-active .studio-actions-grid,
  body.page-studio-active .creative-signal-grid {
    grid-template-columns: 1fr;
  }
  body.page-studio-active .studio-main-grid {
    grid-template-columns: 1fr;
  }
}
/* Creative Sandbox replacement */
body.page-studio-active .creative-sandbox-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  overflow-x: hidden;
}

body.page-studio-active .creative-sandbox-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 2rem;
}

body.page-studio-active .creative-sandbox-title-block {
  max-width: none;
  min-width: 0;
  display: grid;
  gap: 0.75rem;
}

body.page-studio-active .creative-sandbox-kicker,
body.page-studio-active .creative-sandbox-route-label,
body.page-studio-active .creative-sandbox-layer-label {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
}

body.page-studio-active .creative-sandbox-kicker {
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0.1rem;
  line-height: 1.25;
}

body.page-studio-active .creative-sandbox-title-block h1 {
  margin: 0;
  font-size: clamp(4rem, 6.25vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: 0;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-intro {
  margin: 0;
  max-width: 48rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.25;
  color: color-mix(in srgb, var(--color-ink) 76%, transparent);
  overflow-wrap: anywhere;
}

body.page-studio-active .creative-sandbox-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 2.1rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

body.page-studio-active .creative-sandbox-actions .btn-toolbar {
  min-height: 3rem;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-actions .btn-toolbar-icon {
  width: 3rem;
  height: 3rem;
  min-height: 3rem;
}

body.page-studio-active .creative-sandbox-focus-toggle[aria-pressed=true] {
  background: color-mix(in srgb, var(--color-sage) 18%, white);
}

body.page-studio-active .creative-sandbox-toast {
  align-self: flex-start;
  min-height: 2.25rem;
  padding: 0.55rem 0.85rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

body.page-studio-active .creative-sandbox-toast.is-visible {
  border-color: color-mix(in srgb, var(--color-ink) 18%, transparent);
  background: color-mix(in srgb, var(--color-sage) 18%, var(--color-paper));
  opacity: 1;
  transform: translateY(0);
}

body.page-studio-active .creative-sandbox-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.34fr) minmax(19rem, 0.94fr);
  align-items: start;
  gap: 1.25rem;
  min-width: 0;
}

body.page-studio-active .creative-sandbox-route,
body.page-studio-active .creative-sandbox-panel,
body.page-studio-active .creative-sandbox-preview {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

body.page-studio-active .creative-sandbox-route {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  background: color-mix(in srgb, white 86%, var(--color-sidebar));
}

body.page-studio-active .creative-sandbox-route-head,
body.page-studio-active .creative-sandbox-preview-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

body.page-studio-active .creative-sandbox-progress {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
}

body.page-studio-active .creative-sandbox-progress-track {
  display: block;
  height: 0.55rem;
  overflow: hidden;
  border: 2px solid var(--color-ink);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-paper) 78%, white);
}

body.page-studio-active .creative-sandbox-progress-track span {
  display: block;
  height: 100%;
  border-right: 2px solid var(--color-ink);
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-sage));
  transition: width 0.18s ease;
}

body.page-studio-active .creative-sandbox-progress-track span.is-empty {
  border-right: 0;
  background: transparent;
}

body.page-studio-active .creative-sandbox-step-list {
  display: grid;
  gap: 0.6rem;
}

body.page-studio-active .creative-sandbox-step {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 4.6rem;
  padding: 0.7rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 18%, transparent);
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--color-paper) 80%, white);
  text-align: left;
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-ink) 16%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body.page-studio-active .creative-sandbox-step:hover,
body.page-studio-active .creative-sandbox-step:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--color-ink) 24%, transparent);
  border-color: color-mix(in srgb, var(--color-ink) 38%, transparent);
}

body.page-studio-active .creative-sandbox-step.is-active {
  border-color: var(--color-ink);
  background: color-mix(in srgb, var(--color-terracotta) 15%, var(--color-paper));
  box-shadow: 4px 4px 0 0 var(--color-ink);
}

body.page-studio-active .creative-sandbox-guide-route .creative-sandbox-step.is-active {
  border-left: 0.4rem solid var(--color-terracotta);
  background: color-mix(in srgb, var(--color-terracotta) 22%, white);
  box-shadow: 3px 4px 0 0 color-mix(in srgb, var(--color-ink) 62%, transparent);
}

body.page-studio-active .creative-sandbox-step.is-complete:not(.is-active) {
  background: color-mix(in srgb, var(--color-sage) 18%, white);
}

body.page-studio-active .creative-sandbox-step-index {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-ink);
  border-radius: 999px;
  background: var(--color-paper);
  font-size: 0.75rem;
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-step-icon,
body.page-studio-active .creative-sandbox-step-status {
  width: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-studio-active .creative-sandbox-step-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

body.page-studio-active .creative-sandbox-step-copy strong {
  font-size: 1rem;
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-step-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: color-mix(in srgb, var(--color-ink) 62%, transparent);
  font-size: 0.78rem;
  line-height: 1.12;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.page-studio-active .creative-sandbox-route-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

body.page-studio-active .creative-sandbox-small-btn,
body.page-studio-active .creative-sandbox-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  font-weight: 800;
}

body.page-studio-active .creative-sandbox-panel {
  background: color-mix(in srgb, var(--color-paper) 88%, white);
}

body.page-studio-active .creative-sandbox-panel-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-bottom: 2px dashed color-mix(in srgb, var(--color-ink) 20%, transparent);
  background: color-mix(in srgb, var(--color-sidebar) 18%, var(--color-paper));
}

body.page-studio-active .creative-sandbox-layer-number {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-ink);
  border-radius: 1rem;
  background: white;
  box-shadow: 3px 3px 0 0 var(--color-ink);
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-panel-head h2 {
  margin-top: 0.15rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

body.page-studio-active .creative-sandbox-panel-head p:last-child,
body.page-studio-active .creative-sandbox-preview-head p {
  margin-top: 0.4rem;
  color: color-mix(in srgb, var(--color-ink) 68%, transparent);
  font-size: 1.05rem;
  line-height: 1.2;
}

body.page-studio-active .creative-sandbox-panel-body {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

body.page-studio-active .creative-sandbox-panel-note {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 2px dashed color-mix(in srgb, var(--color-ink) 24%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-sage) 12%, white);
  color: color-mix(in srgb, var(--color-ink) 72%, transparent);
  font-size: 1.05rem;
  line-height: 1.2;
}

body.page-studio-active .creative-sandbox-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body.page-studio-active .creative-sandbox-field {
  display: grid;
  gap: 0.45rem;
}

body.page-studio-active .creative-sandbox-field span {
  font-size: 0.72rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
}

body.page-studio-active .creative-sandbox-field textarea {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  padding: 0.85rem;
  border: 2px solid var(--color-ink);
  border-radius: 1rem;
  background: white;
  color: var(--color-ink);
  font-size: 1.1rem;
  line-height: 1.24;
  outline: 3px solid transparent;
  outline-offset: 2px;
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-ink) 18%, transparent);
}

body.page-studio-active .creative-sandbox-field textarea:focus {
  box-shadow: 4px 4px 0 0 var(--color-sage);
}

body.page-studio-active .creative-sandbox-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

body.page-studio-active .creative-sandbox-chip-grid--types {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-studio-active .creative-sandbox-chip,
body.page-studio-active .creative-sandbox-time-option {
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 22%, transparent);
  border-radius: 1rem;
  background: white;
  text-align: left;
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-ink) 18%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.page-studio-active .creative-sandbox-chip:hover,
body.page-studio-active .creative-sandbox-chip:focus-visible,
body.page-studio-active .creative-sandbox-time-option:hover,
body.page-studio-active .creative-sandbox-time-option:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--color-ink) 28%, transparent);
}

body.page-studio-active .creative-sandbox-chip.is-selected,
body.page-studio-active .creative-sandbox-time-option.is-selected,
body.page-studio-active .creative-sandbox-pill.is-selected {
  border-color: var(--color-ink);
  background: color-mix(in srgb, var(--color-terracotta) 16%, white);
  box-shadow: 3px 3px 0 0 var(--color-ink);
}

body.page-studio-active .creative-sandbox-chip span {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

body.page-studio-active .creative-sandbox-chip strong,
body.page-studio-active .creative-sandbox-time-option strong {
  font-size: 1rem;
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-chip small,
body.page-studio-active .creative-sandbox-time-option span {
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
  font-size: 0.82rem;
  line-height: 1.1;
}

body.page-studio-active .creative-sandbox-pill-grid,
body.page-studio-active .creative-sandbox-time-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

body.page-studio-active .creative-sandbox-pill {
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 24%, transparent);
  border-radius: 999px;
  background: white;
  font-weight: 800;
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-ink) 14%, transparent);
}

body.page-studio-active .creative-sandbox-time-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.page-studio-active .creative-sandbox-time-option {
  min-height: 6.2rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

body.page-studio-active .creative-sandbox-output-edit {
  display: grid;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 2px dashed color-mix(in srgb, var(--color-ink) 18%, transparent);
}

body.page-studio-active .creative-sandbox-output-edit h3 {
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: 0;
}

body.page-studio-active .creative-sandbox-panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-top: 2px dashed color-mix(in srgb, var(--color-ink) 18%, transparent);
}

body.page-studio-active .creative-sandbox-panel-footer .creative-sandbox-nav-btn {
  min-width: 10rem;
}

body.page-studio-active .creative-sandbox-nav-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

body.page-studio-active .creative-sandbox-preview {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  background: color-mix(in srgb, white 88%, var(--color-paper));
}

body.page-studio-active .creative-sandbox-preview-head h2 {
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: 0;
}

body.page-studio-active .creative-sandbox-map-stack,
body.page-studio-active .creative-sandbox-exit {
  display: grid;
  gap: 0.65rem;
}

body.page-studio-active .creative-sandbox-map-stack section,
body.page-studio-active .creative-sandbox-exit article {
  padding: 0.8rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-paper) 82%, white);
}

body.page-studio-active .creative-sandbox-exit {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px dashed color-mix(in srgb, var(--color-ink) 18%, transparent);
}

body.page-studio-active .creative-sandbox-exit article {
  background: color-mix(in srgb, var(--color-sage) 10%, white);
}

body.page-studio-active .creative-sandbox-map-stack span,
body.page-studio-active .creative-sandbox-exit span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-ink) 54%, transparent);
}

body.page-studio-active .creative-sandbox-map-stack p,
body.page-studio-active .creative-sandbox-exit p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

@media (max-width: 1599px) {
  body.page-studio-active .creative-sandbox-layout {
    grid-template-columns: minmax(16rem, 0.46fr) minmax(0, 1fr);
  }
  body.page-studio-active .creative-sandbox-preview {
    position: static;
    grid-column: 1/-1;
  }
  body.page-studio-active .creative-sandbox-map-stack,
  body.page-studio-active .creative-sandbox-exit {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1279px) {
  body.page-studio-active .creative-sandbox-layout {
    grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  }
  body.page-studio-active .creative-sandbox-map-stack,
  body.page-studio-active .creative-sandbox-exit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1023px) {
  body.page-studio-active .creative-sandbox-header,
  body.page-studio-active .creative-sandbox-layout {
    grid-template-columns: 1fr;
  }
  body.page-studio-active .creative-sandbox-header {
    display: grid;
    gap: 1.5rem;
  }
  body.page-studio-active .creative-sandbox-intro {
    max-width: min(100%, 34rem);
  }
  body.page-studio-active .creative-sandbox-title-block h1 {
    line-height: 0.92;
    white-space: normal;
  }
  body.page-studio-active .creative-sandbox-actions {
    padding-top: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  body.page-studio-active .creative-sandbox-route {
    position: static;
  }
  body.page-studio-active .creative-sandbox-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.page-studio-active .creative-sandbox-chip-grid--types,
  body.page-studio-active .creative-sandbox-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  body.page-studio-active .creative-sandbox-main {
    padding: 1rem !important;
    padding-bottom: clamp(6rem, 18vh, 8rem) !important;
  }
  body.page-studio-active .creative-sandbox-header,
  body.page-studio-active .creative-sandbox-layout,
  body.page-studio-active .creative-sandbox-route,
  body.page-studio-active .creative-sandbox-panel,
  body.page-studio-active .creative-sandbox-preview {
    width: calc(100vw - 4rem) !important;
    max-width: calc(100vw - 4rem) !important;
  }
  body.page-studio-active .creative-sandbox-title-block,
  body.page-studio-active .creative-sandbox-intro {
    max-width: 100%;
  }
  body.page-studio-active .creative-sandbox-intro {
    max-width: 20.5rem !important;
  }
  body.page-studio-active .creative-sandbox-actions {
    width: 100%;
    justify-content: stretch;
  }
  body.page-studio-active .creative-sandbox-actions .btn-toolbar {
    flex: 1 1 9rem;
  }
  body.page-studio-active .creative-sandbox-title-block h1 {
    font-size: clamp(2.7rem, 16vw, 4rem);
  }
  body.page-studio-active .creative-sandbox-step-list,
  body.page-studio-active .creative-sandbox-field-grid,
  body.page-studio-active .creative-sandbox-chip-grid,
  body.page-studio-active .creative-sandbox-chip-grid--types,
  body.page-studio-active .creative-sandbox-time-grid,
  body.page-studio-active .creative-sandbox-map-stack,
  body.page-studio-active .creative-sandbox-exit {
    grid-template-columns: 1fr;
  }
  body.page-studio-active .creative-sandbox-panel-head,
  body.page-studio-active .creative-sandbox-panel-footer {
    flex-direction: column;
  }
  body.page-studio-active .creative-sandbox-panel-footer .creative-sandbox-nav-btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
  body.page-studio-active .creative-sandbox-header,
  body.page-studio-active .creative-sandbox-layout,
  body.page-studio-active .creative-sandbox-route,
  body.page-studio-active .creative-sandbox-panel,
  body.page-studio-active .creative-sandbox-preview {
    max-width: 18.75rem !important;
  }
  body.page-studio-active .creative-sandbox-intro {
    font-size: 1rem;
  }
}
/* Creative Sandbox responsive sweep */
body.page-studio-active .creative-sandbox-main {
  --sandbox-gutter: clamp(1rem, 2.4vw, 3rem);
  --sandbox-gap: clamp(1rem, 1.45vw, 1.75rem);
  --sandbox-rail: minmax(16rem, 0.74fr);
  --sandbox-work: minmax(32rem, 1.34fr);
  --sandbox-map: minmax(19rem, 0.94fr);
  padding: var(--sandbox-gutter) !important;
  padding-bottom: clamp(6rem, 10vh, 9rem) !important;
  gap: clamp(1.5rem, 2.4vw, 3.25rem);
}

body.page-studio-active .creative-sandbox-main,
body.page-studio-active .creative-sandbox-main * {
  box-sizing: border-box;
}

body.page-studio-active .creative-sandbox-header,
body.page-studio-active .creative-sandbox-layout {
  width: 100% !important;
  max-width: none !important;
  margin-inline: auto;
}

body.page-studio-active .creative-sandbox-header {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 2vw, 2.25rem);
}

body.page-studio-active .creative-sandbox-title-block {
  max-width: 100%;
  gap: clamp(0.65rem, 0.9vw, 0.95rem);
}

body.page-studio-active .creative-sandbox-kicker {
  max-width: min(100%, 54rem);
  font-size: clamp(0.72rem, 0.62vw, 0.9rem);
  letter-spacing: 0.18em;
}

body.page-studio-active .creative-sandbox-title-block h2 {
  max-width: 100%;
  font-size: clamp(4.15rem, 6vw, 7.5rem);
  line-height: 0.86;
  text-wrap: balance;
  white-space: normal;
}

body.page-studio-active .creative-sandbox-intro {
  max-width: min(100%, 56rem) !important;
  font-size: clamp(1.08rem, 1.45vw, 1.45rem);
  line-height: 1.22;
}

body.page-studio-active .creative-sandbox-actions {
  flex: 0 0 auto;
  align-self: start;
  padding-top: clamp(1.8rem, 2.35vw, 2.6rem);
}

body.page-studio-active .creative-sandbox-layout {
  grid-template-columns: var(--sandbox-rail) var(--sandbox-work) var(--sandbox-map);
  gap: var(--sandbox-gap);
}

body.page-studio-active .creative-sandbox-route,
body.page-studio-active .creative-sandbox-panel,
body.page-studio-active .creative-sandbox-preview {
  width: 100% !important;
  max-width: none !important;
}

body.page-studio-active .creative-sandbox-route,
body.page-studio-active .creative-sandbox-preview {
  position: sticky;
  top: var(--sandbox-gutter);
}

body.page-studio-active .creative-sandbox-panel-head {
  padding: clamp(1rem, 1.35vw, 1.5rem);
}

body.page-studio-active .creative-sandbox-panel-head h2 {
  font-size: clamp(2.4rem, 3.15vw, 4.2rem);
}

body.page-studio-active .creative-sandbox-panel-body,
body.page-studio-active .creative-sandbox-panel-footer {
  padding: clamp(1rem, 1.35vw, 1.5rem);
}

@media (max-width: 2199px) {
  body.page-studio-active .creative-sandbox-header {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 1.6vw, 1.5rem);
  }
  body.page-studio-active .creative-sandbox-title-block {
    max-width: min(100%, 72rem);
  }
  body.page-studio-active .creative-sandbox-actions {
    max-width: min(100%, 38rem);
    padding-top: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (min-width: 2200px) {
  body.page-studio-active .creative-sandbox-main {
    --sandbox-gutter: clamp(3rem, 3vw, 5rem);
    --sandbox-gap: clamp(1.75rem, 1.4vw, 2.75rem);
    --sandbox-rail: minmax(22rem, 0.72fr);
    --sandbox-work: minmax(48rem, 1.45fr);
    --sandbox-map: minmax(27rem, 0.96fr);
    max-width: 2360px;
    margin-inline: auto;
  }
  body.page-studio-active .creative-sandbox-title-block h1 {
    font-size: clamp(7rem, 5.2vw, 9rem);
  }
  body.page-studio-active .creative-sandbox-intro {
    max-width: 72rem !important;
    font-size: clamp(1.45rem, 0.9vw, 1.75rem);
  }
  body.page-studio-active .creative-sandbox-step {
    min-height: 5.35rem;
    padding: 0.9rem;
  }
  body.page-studio-active .creative-sandbox-route-label,
  body.page-studio-active .creative-sandbox-layer-label,
  body.page-studio-active .creative-sandbox-map-stack span,
  body.page-studio-active .creative-sandbox-exit span {
    font-size: 0.9rem;
  }
  body.page-studio-active .creative-sandbox-progress,
  body.page-studio-active .creative-sandbox-step-copy strong,
  body.page-studio-active .creative-sandbox-map-stack p,
  body.page-studio-active .creative-sandbox-exit p {
    font-size: 1.12rem;
  }
  body.page-studio-active .creative-sandbox-step-copy small,
  body.page-studio-active .creative-sandbox-panel-head p:last-child,
  body.page-studio-active .creative-sandbox-preview-head p {
    font-size: 1rem;
  }
  body.page-studio-active .creative-sandbox-panel-head h2 {
    font-size: clamp(4.2rem, 3.65vw, 5.75rem);
  }
  body.page-studio-active .creative-sandbox-preview-head h2 {
    font-size: clamp(2.8rem, 2vw, 3.45rem);
  }
  body.page-studio-active .creative-sandbox-field textarea {
    min-height: 10rem;
    font-size: 1.25rem;
  }
}
@media (max-width: 1799px) {
  body.page-studio-active .creative-sandbox-main {
    --sandbox-rail: minmax(15rem, 0.5fr);
    --sandbox-work: minmax(0, 1fr);
  }
  body.page-studio-active .creative-sandbox-layout {
    grid-template-columns: var(--sandbox-rail) var(--sandbox-work);
  }
  body.page-studio-active .creative-sandbox-preview {
    position: static;
    grid-column: 1/-1;
  }
  body.page-studio-active .creative-sandbox-map-stack,
  body.page-studio-active .creative-sandbox-exit {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1279px) {
  body.page-studio-active .creative-sandbox-main {
    --sandbox-gutter: clamp(1rem, 2vw, 1.75rem);
    --sandbox-gap: 1rem;
  }
  body.page-studio-active .creative-sandbox-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  body.page-studio-active .creative-sandbox-title-block h1 {
    white-space: normal;
  }
  body.page-studio-active .creative-sandbox-actions {
    justify-content: flex-start;
    padding-top: 0;
    flex-wrap: wrap;
  }
  body.page-studio-active .creative-sandbox-layout {
    grid-template-columns: minmax(14rem, 0.78fr) minmax(0, 1.22fr);
  }
  body.page-studio-active .creative-sandbox-map-stack,
  body.page-studio-active .creative-sandbox-exit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1023px) {
  body.page-studio-active .creative-sandbox-layout {
    grid-template-columns: 1fr;
  }
  body.page-studio-active .creative-sandbox-route,
  body.page-studio-active .creative-sandbox-preview {
    position: static;
  }
  body.page-studio-active .creative-sandbox-route {
    padding: 0.95rem;
  }
  body.page-studio-active .creative-sandbox-step-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0 0.15rem 0.35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  body.page-studio-active .creative-sandbox-step {
    min-width: min(19rem, 72vw);
    scroll-snap-align: start;
  }
  body.page-studio-active .creative-sandbox-route-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  body.page-studio-active .creative-sandbox-main {
    --sandbox-gutter: max(1rem, env(safe-area-inset-left));
    padding: 1rem !important;
    padding-bottom: clamp(6rem, 18vh, 8rem) !important;
  }
  body.page-studio-active .creative-sandbox-header,
  body.page-studio-active .creative-sandbox-layout,
  body.page-studio-active .creative-sandbox-route,
  body.page-studio-active .creative-sandbox-panel,
  body.page-studio-active .creative-sandbox-preview {
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
  }
  body.page-studio-active .creative-sandbox-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }
  body.page-studio-active .creative-sandbox-title-block {
    gap: 0.65rem;
  }
  body.page-studio-active .creative-sandbox-title-block h1 {
    font-size: clamp(3.25rem, 16vw, 4.4rem);
    line-height: 0.9;
  }
  body.page-studio-active .creative-sandbox-intro {
    max-width: 100% !important;
    font-size: 1.08rem;
    line-height: 1.25;
  }
  body.page-studio-active .creative-sandbox-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 3rem;
    gap: 0.5rem;
    min-width: 0;
  }
  body.page-studio-active .creative-sandbox-focus-toggle {
    display: none !important;
  }
  body.page-studio-active .creative-sandbox-actions .btn-toolbar,
  body.page-studio-active .creative-sandbox-actions .btn-toolbar-icon {
    min-width: 0;
    width: 100%;
  }
  body.page-studio-active .creative-sandbox-actions .btn-toolbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 3rem;
    padding-inline: 0.65rem !important;
    font-size: 0.95rem;
    line-height: 1;
  }
  body.page-studio-active .creative-sandbox-actions .btn-toolbar iconify-icon {
    flex: 0 0 auto;
    font-size: 1.12rem;
  }
  body.page-studio-active .creative-sandbox-actions .btn-toolbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
  }
  body.page-studio-active .creative-sandbox-route-actions,
  body.page-studio-active .creative-sandbox-field-grid,
  body.page-studio-active .creative-sandbox-chip-grid,
  body.page-studio-active .creative-sandbox-chip-grid--types,
  body.page-studio-active .creative-sandbox-time-grid,
  body.page-studio-active .creative-sandbox-map-stack,
  body.page-studio-active .creative-sandbox-exit {
    grid-template-columns: 1fr;
  }
  body.page-studio-active .creative-sandbox-panel-head,
  body.page-studio-active .creative-sandbox-panel-footer {
    flex-direction: column;
  }
  body.page-studio-active .creative-sandbox-panel-head h2 {
    font-size: clamp(2.45rem, 13vw, 3.4rem);
  }
  body.page-studio-active .creative-sandbox-field textarea {
    min-height: 7.25rem;
    font-size: 1.02rem;
  }
  body.page-studio-active .creative-sandbox-panel-footer .creative-sandbox-nav-btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
  body.page-studio-active .creative-sandbox-actions {
    grid-template-columns: 1fr;
    max-width: min(100%, 22rem);
  }
  body.page-studio-active .creative-sandbox-actions .btn-toolbar {
    padding-inline: 0.8rem !important;
    font-size: 0.95rem;
  }
  body.page-studio-active .creative-sandbox-actions .btn-toolbar-icon {
    width: 3rem;
    justify-self: start;
  }
}
@media (max-width: 359px) {
  body.page-studio-active .creative-sandbox-actions {
    grid-template-columns: 1fr;
  }
}
/* Creative Sandbox canvas workbench */
body.page-studio-active .creative-sandbox-workbench {
  grid-template-columns: minmax(11rem, 0.32fr) minmax(34rem, 1.18fr) minmax(24rem, 0.86fr);
  gap: clamp(1rem, 1.25vw, 1.6rem);
  align-items: start;
}

body.page-studio-active .creative-sandbox-toolbox,
body.page-studio-active .creative-sandbox-canvas,
body.page-studio-active .creative-sandbox-planning-stack {
  min-width: 0;
}

body.page-studio-active .creative-sandbox-toolbox {
  position: sticky;
  top: var(--sandbox-gutter, 1rem);
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: color-mix(in srgb, white 88%, var(--color-sidebar));
}

body.page-studio-active .creative-sandbox-toolbox-head,
body.page-studio-active .creative-sandbox-canvas-head {
  display: grid;
  gap: 0.35rem;
}

body.page-studio-active .creative-sandbox-toolbox-head h2,
body.page-studio-active .creative-sandbox-canvas-head h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

body.page-studio-active .creative-sandbox-toolbox-head p:last-child {
  margin: 0;
  color: color-mix(in srgb, var(--color-ink) 68%, transparent);
  font-size: 1rem;
  line-height: 1.12;
}

body.page-studio-active .creative-sandbox-tool-list {
  display: grid;
  gap: 0.7rem;
}

body.page-studio-active .creative-sandbox-tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 4.2rem;
  padding: 0.7rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 18%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-paper) 84%, white);
  text-align: left;
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--color-ink) 14%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.page-studio-active .creative-sandbox-tool:hover,
body.page-studio-active .creative-sandbox-tool:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--color-ink) 28%, transparent);
}

body.page-studio-active .creative-sandbox-tool.is-active {
  border-color: var(--color-ink);
  background: color-mix(in srgb, var(--color-terracotta) 14%, white);
  box-shadow: 4px 4px 0 0 var(--color-ink);
}

body.page-studio-active .creative-sandbox-tool-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-ink);
  border-radius: 0.8rem;
  background: var(--color-paper);
}

body.page-studio-active .creative-sandbox-tool span:last-child {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

body.page-studio-active .creative-sandbox-tool strong {
  font-size: 1rem;
  line-height: 1;
}

body.page-studio-active .creative-sandbox-tool small {
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
  font-size: 0.78rem;
  line-height: 1.1;
}

body.page-studio-active .creative-sandbox-toolbox-foot {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.9rem;
  border-top: 2px dashed color-mix(in srgb, var(--color-ink) 18%, transparent);
  color: color-mix(in srgb, var(--color-ink) 66%, transparent);
  font-weight: 800;
}

body.page-studio-active .creative-sandbox-canvas {
  min-height: clamp(42rem, 64vh, 58rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1rem, 1.6vw, 1.5rem);
  overflow: hidden;
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--color-ink) 12%, transparent) 1px, transparent 0), color-mix(in srgb, var(--color-paper) 88%, white);
  background-size: 22px 22px;
}

body.page-studio-active .creative-sandbox-canvas-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

body.page-studio-active .creative-sandbox-active-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.65rem;
  border: 2px solid var(--color-ink);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-sage) 14%, white);
  font-weight: 900;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-surface {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(18rem, 1fr);
  gap: 1rem;
}

body.page-studio-active .creative-sandbox-capture-pad {
  display: grid;
  gap: 0.45rem;
}

body.page-studio-active .creative-sandbox-capture-pad span,
body.page-studio-active .creative-sandbox-surface-objects span {
  font-size: 0.72rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-ink) 54%, transparent);
}

body.page-studio-active .creative-sandbox-capture-pad textarea {
  width: 100%;
  min-height: clamp(10rem, 24vh, 16rem);
  resize: vertical;
  padding: clamp(1rem, 1.4vw, 1.35rem);
  border: 2px dashed color-mix(in srgb, var(--color-ink) 28%, transparent);
  border-radius: 1.25rem;
  background: color-mix(in srgb, white 82%, var(--color-paper));
  color: var(--color-ink);
  font-size: clamp(1.25rem, 1.55vw, 1.55rem);
  line-height: 1.25;
  outline: 3px solid transparent;
  outline-offset: 2px;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, white 72%, transparent);
}

body.page-studio-active .creative-sandbox-capture-pad textarea:focus {
  border-style: solid;
  box-shadow: 4px 4px 0 0 var(--color-sage);
}

body.page-studio-active .creative-sandbox-surface-objects {
  position: relative;
  min-height: 24rem;
}

body.page-studio-active .creative-sandbox-surface-note,
body.page-studio-active .creative-sandbox-surface-frame,
body.page-studio-active .creative-sandbox-surface-shape,
body.page-studio-active .creative-sandbox-surface-planning {
  position: absolute;
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 2px solid var(--color-ink);
  background: white;
  color: var(--color-ink);
  text-align: left;
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--color-ink) 24%, transparent);
}

body.page-studio-active .creative-sandbox-surface-note {
  left: 1%;
  top: 6%;
  width: min(18rem, 46%);
  min-height: 9rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-terracotta) 12%, white);
  transform: rotate(-1.5deg);
}

body.page-studio-active .creative-sandbox-surface-frame {
  right: 4%;
  top: 1%;
  width: min(23rem, 52%);
  min-height: 12rem;
  border-radius: 0.65rem;
  background: color-mix(in srgb, white 84%, var(--color-sidebar));
}

body.page-studio-active .creative-sandbox-surface-shape {
  left: 18%;
  bottom: 7%;
  width: min(16rem, 42%);
  min-height: 8rem;
  border-radius: 999px;
  place-items: center;
  text-align: center;
  background: color-mix(in srgb, var(--color-sage) 16%, white);
}

body.page-studio-active .creative-sandbox-surface-planning {
  right: 7%;
  bottom: 6%;
  width: min(20rem, 48%);
  min-height: 9rem;
  border-radius: 1rem 1rem 1rem 0.35rem;
  background: color-mix(in srgb, var(--color-paper) 86%, white);
  cursor: pointer;
}

body.page-studio-active .creative-sandbox-surface-line {
  position: absolute;
  left: 38%;
  top: 47%;
  width: 30%;
  height: 0;
  border-top: 3px dashed color-mix(in srgb, var(--color-ink) 42%, transparent);
  transform: rotate(-11deg);
}

body.page-studio-active .creative-sandbox-surface-note p,
body.page-studio-active .creative-sandbox-surface-frame p,
body.page-studio-active .creative-sandbox-surface-shape p,
body.page-studio-active .creative-sandbox-surface-planning p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body.page-studio-active .creative-sandbox-surface-frame strong {
  font-size: 1.35rem;
  line-height: 1;
}

body.page-studio-active .creative-sandbox-planning-stack {
  display: grid;
  gap: 1rem;
}

body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-route,
body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-preview {
  position: static;
  top: auto;
}

body.page-studio-active .creative-sandbox-planning-stack:not(.is-planning-active) .creative-sandbox-route,
body.page-studio-active .creative-sandbox-planning-stack:not(.is-planning-active) .creative-sandbox-panel {
  display: none;
}

body.page-studio-active .creative-sandbox-planning-stack:not(.is-planning-active) .creative-sandbox-preview {
  position: sticky;
  top: var(--sandbox-gutter, 1rem);
}

body.page-studio-active .creative-sandbox-planning-stack:not(.is-planning-active) .creative-sandbox-preview-head h2 {
  font-size: clamp(2rem, 2.35vw, 2.9rem);
}

body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-panel-head {
  padding: 1rem;
}

body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-panel-head h2 {
  font-size: clamp(1.85rem, 2.1vw, 2.65rem);
}

body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-panel-body,
body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-panel-footer {
  padding: 1rem;
}

body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-field-grid,
body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-chip-grid,
body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-chip-grid--types,
body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-time-grid,
body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-map-stack,
body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-exit {
  grid-template-columns: 1fr;
}

body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-field textarea {
  min-height: 6.5rem;
  font-size: 1rem;
}

@media (max-width: 1799px) {
  body.page-studio-active .creative-sandbox-workbench {
    grid-template-columns: minmax(10rem, 0.32fr) minmax(0, 1fr);
  }
  body.page-studio-active .creative-sandbox-planning-stack {
    grid-column: 1/-1;
    grid-template-columns: minmax(14rem, 0.6fr) minmax(0, 1fr);
  }
  body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-preview {
    grid-column: 1/-1;
  }
}
@media (max-width: 1023px) {
  body.page-studio-active .creative-sandbox-workbench,
  body.page-studio-active .creative-sandbox-planning-stack {
    grid-template-columns: 1fr;
  }
  body.page-studio-active .creative-sandbox-toolbox {
    position: static;
  }
  body.page-studio-active .creative-sandbox-tool-list {
    grid-template-columns: repeat(5, minmax(8rem, 1fr));
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }
  body.page-studio-active .creative-sandbox-tool {
    min-width: 8rem;
  }
}
@media (max-width: 767px) {
  body.page-studio-active .creative-sandbox-canvas {
    min-height: 46rem;
  }
  body.page-studio-active .creative-sandbox-canvas-head {
    grid-template-columns: 1fr;
  }
  body.page-studio-active .creative-sandbox-active-tool {
    justify-self: start;
  }
  body.page-studio-active .creative-sandbox-surface {
    grid-template-rows: auto auto;
  }
  body.page-studio-active .creative-sandbox-surface-objects {
    min-height: 0;
    display: grid;
    gap: 0.8rem;
  }
  body.page-studio-active .creative-sandbox-surface-note,
  body.page-studio-active .creative-sandbox-surface-frame,
  body.page-studio-active .creative-sandbox-surface-shape,
  body.page-studio-active .creative-sandbox-surface-planning {
    position: static;
    width: 100%;
    min-height: 7rem;
    transform: none;
  }
  body.page-studio-active .creative-sandbox-surface-shape {
    border-radius: 1rem;
  }
  body.page-studio-active .creative-sandbox-surface-line {
    position: static;
    width: 100%;
    margin: 0.2rem 0;
    transform: none;
  }
}
/* Creative Sandbox app workspace */
body.page-studio-active .creative-sandbox-shell {
  min-height: 100svh;
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--color-ink) 8%, transparent) 1px, transparent 0), color-mix(in srgb, var(--color-paper) 82%, white);
  background-size: 20px 20px;
}

body.page-studio-active .creative-sandbox-main {
  --sandbox-appbar-height: 4.25rem;
  --sandbox-right-rail: clamp(21rem, 28vw, 28rem);
  width: 100%;
  max-width: none !important;
  height: 100svh;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: var(--sandbox-appbar-height) minmax(0, 1fr);
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
  background: transparent;
}

body.page-studio-active .creative-sandbox-appbar {
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto minmax(14rem, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 13%, transparent);
  background: color-mix(in srgb, white 86%, var(--color-paper));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--color-ink) 7%, transparent);
  z-index: 3;
}

body.page-studio-active .creative-sandbox-appbar-left,
body.page-studio-active .creative-sandbox-mode-switch,
body.page-studio-active .creative-sandbox-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

body.page-studio-active .creative-sandbox-title-block {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  max-width: none;
}

body.page-studio-active .creative-sandbox-title-block h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.35rem, 1.5vw, 1.85rem);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-studio-active .creative-sandbox-kicker {
  max-width: 100%;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-studio-active .creative-sandbox-mode-switch {
  justify-self: center;
  padding: 0.25rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, white 92%, var(--color-paper));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-ink) 7%, transparent);
}

body.page-studio-active .creative-sandbox-mode-switch button,
body.page-studio-active .creative-sandbox-zoom {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px solid transparent;
  padding: 0.4rem 0.8rem;
  border-radius: 0.8rem;
  color: color-mix(in srgb, var(--color-ink) 74%, transparent);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-mode-switch button.is-active {
  border: 2px solid var(--accent);
  background: var(--primary);
  color: var(--bg);
  box-shadow: 2px 2px 0 0 var(--accent);
}

body.page-studio-active .creative-sandbox-mode-switch button.is-active iconify-icon {
  color: inherit;
}

body.page-studio-active .creative-sandbox-actions {
  justify-content: flex-end;
  padding-top: 0;
  flex-wrap: nowrap;
}

body.page-studio-active .creative-sandbox-actions .btn-toolbar,
body.page-studio-active .creative-sandbox-actions .btn-toolbar-icon,
body.page-studio-active .creative-sandbox-focus-toggle {
  min-height: 2.65rem;
  height: 2.65rem;
  border-radius: 0.8rem;
  box-shadow: none;
}

body.page-studio-active .creative-sandbox-actions .btn-toolbar {
  padding-inline: 0.8rem !important;
}

body.page-studio-active .creative-sandbox-actions .btn-toolbar-icon {
  width: auto !important;
  min-width: max-content;
  padding-inline: 0.8rem !important;
  gap: 0.35rem;
}

body.page-studio-active .creative-sandbox-action-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-toast {
  position: absolute;
  top: 5rem;
  left: 50%;
  z-index: 8;
  transform: translate(-50%, -4px);
  background: white;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--color-ink) 12%, transparent);
}

body.page-studio-active .creative-sandbox-toast.is-visible {
  transform: translate(-50%, 0);
}

body.page-studio-active [data-tooltip],
body.sidebar-collapsed #main-sidebar [data-tooltip],
#main-sidebar .sidebar-collapse-toggle[data-tooltip] {
  position: relative;
}

body.page-studio-active [data-tooltip]::after,
body.sidebar-collapsed #main-sidebar [data-tooltip]::after,
#main-sidebar .sidebar-collapse-toggle[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  z-index: 80;
  width: max-content;
  max-width: 14rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  background: var(--color-ink);
  color: var(--color-cream);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.2rem);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

body.sidebar-collapsed #main-sidebar [data-tooltip]::after,
#main-sidebar .sidebar-collapse-toggle[data-tooltip]::after {
  left: calc(100% + 0.55rem);
  top: 50%;
  bottom: auto;
  transform: translate(-0.25rem, -50%);
}

body.page-studio-active [data-tooltip]:hover::after,
body.page-studio-active [data-tooltip]:focus-visible::after,
body.sidebar-collapsed #main-sidebar [data-tooltip]:hover::after,
body.sidebar-collapsed #main-sidebar [data-tooltip]:focus-visible::after,
#main-sidebar .sidebar-collapse-toggle[data-tooltip]:hover::after,
#main-sidebar .sidebar-collapse-toggle[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.sidebar-collapsed #main-sidebar [data-tooltip]:hover::after,
body.sidebar-collapsed #main-sidebar [data-tooltip]:focus-visible::after,
#main-sidebar .sidebar-collapse-toggle[data-tooltip]:hover::after,
#main-sidebar .sidebar-collapse-toggle[data-tooltip]:focus-visible::after {
  transform: translate(0, -50%);
}

body.page-studio-active .creative-sandbox-tool:not(.creative-sandbox-tool--mini)[data-tooltip]::after {
  display: none;
}

body.page-studio-active .creative-sandbox-workbench {
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) var(--sandbox-right-rail);
  gap: 0;
  align-items: stretch;
  margin: 0;
  overflow: hidden;
}

body.page-studio-active .creative-sandbox-workbench[data-workspace-view=hub] {
  overflow-anchor: none;
}

body.page-studio-active .creative-sandbox-toolbox {
  position: relative;
  top: auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  min-width: 0;
  height: 100%;
  padding: 0.85rem 0.55rem;
  border: 0;
  border-right: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 0;
  background: color-mix(in srgb, white 82%, var(--color-paper));
  box-shadow: none;
  overflow: visible;
}

body.page-studio-active .creative-sandbox-tool-list,
body.page-studio-active .creative-sandbox-toolbox-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

body.page-studio-active .creative-sandbox-tool {
  position: relative;
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, var(--color-ink) 74%, transparent);
}

body.page-studio-active .creative-sandbox-tool:hover,
body.page-studio-active .creative-sandbox-tool:focus-visible,
body.page-studio-active .creative-sandbox-tool.is-active {
  transform: none;
  border-color: color-mix(in srgb, var(--color-ink) 12%, transparent);
  background: color-mix(in srgb, var(--color-sage) 12%, white);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--color-ink) 8%, transparent);
  color: var(--color-ink);
}

body.page-studio-active .creative-sandbox-tool.is-active {
  background: color-mix(in srgb, var(--color-terracotta) 18%, white);
}

body.page-studio-active .creative-sandbox-tool-icon {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.page-studio-active .creative-sandbox-tool-tip {
  position: absolute;
  left: calc(100% + 0.65rem);
  top: 50%;
  z-index: 10;
  min-width: 9rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--color-cream) 16%, transparent);
  border-radius: 0.75rem;
  background: var(--color-ink);
  color: var(--color-cream);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-ink) 12%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translate(-0.25rem, -50%);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

body.page-studio-active .creative-sandbox-tool:hover .creative-sandbox-tool-tip,
body.page-studio-active .creative-sandbox-tool:focus-visible .creative-sandbox-tool-tip {
  opacity: 1;
  transform: translate(0, -50%);
}

body.page-studio-active .creative-sandbox-tool-tip strong,
body.page-studio-active .creative-sandbox-tool-tip small {
  font-size: 0.8rem;
  line-height: 1.1;
}

body.page-studio-active .creative-sandbox-tool-tip small {
  color: color-mix(in srgb, var(--color-cream) 72%, transparent);
}

body.page-studio-active .creative-sandbox-layer-count {
  width: 3.1rem;
  height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid color-mix(in srgb, var(--color-ink) 16%, transparent);
  border-radius: 999px;
  background: white;
  font-weight: 900;
  box-shadow: inset 0 0 0 0.35rem color-mix(in srgb, var(--color-sage) 18%, transparent);
}

body.page-studio-active .creative-sandbox-canvas {
  position: relative;
  min-height: 0;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--color-ink) 8%, transparent) 1px, transparent 0), color-mix(in srgb, #f5f5f2 94%, white);
  background-size: 22px 22px;
}

body.page-studio-active .creative-sandbox-canvas-tools-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(13.5rem, auto);
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem clamp(0.75rem, 2vw, 1.25rem);
  border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  background: color-mix(in srgb, white 88%, var(--color-paper));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-ink) 6%, transparent);
}

body.page-studio-active .creative-sandbox-canvas-tools-label {
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-canvas-tools-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.05rem;
}

body.page-studio-active .creative-sandbox-canvas-tools-row button {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 0.8rem;
  background: white;
  color: var(--color-ink);
  font-weight: 900;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

body.page-studio-active .creative-sandbox-canvas-tools-row button:hover,
body.page-studio-active .creative-sandbox-canvas-tools-row button:focus-visible,
body.page-studio-active .creative-sandbox-canvas-tools-row button.is-active {
  border-color: var(--color-ink);
  background: color-mix(in srgb, var(--color-terracotta) 13%, white);
  outline: 3px solid transparent;
  outline-offset: 2px;
  transform: translateY(-1px);
}

body.page-studio-active .creative-sandbox-canvas-guide-cta {
  min-height: 2.75rem;
  min-width: 13.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--color-terracotta) 34%, var(--color-ink));
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--color-terracotta) 10%, white);
  color: var(--color-ink);
  font-weight: 900;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

body.page-studio-active .creative-sandbox-canvas-guide-cta span {
  display: grid;
  gap: 0.05rem;
  text-align: left;
}

body.page-studio-active .creative-sandbox-canvas-guide-cta strong,
body.page-studio-active .creative-sandbox-canvas-guide-cta small {
  display: block;
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-canvas-guide-cta small {
  color: color-mix(in srgb, var(--color-ink) 60%, transparent);
  font-size: 0.72rem;
}

body.page-studio-active .creative-sandbox-canvas-guide-cta:hover,
body.page-studio-active .creative-sandbox-canvas-guide-cta:focus-visible {
  border-color: var(--color-ink);
  background: color-mix(in srgb, var(--color-terracotta) 15%, white);
  outline: 3px solid transparent;
  outline-offset: 2px;
  transform: translateY(-1px);
}

body.page-studio-active .creative-sandbox-canvas-toolbar {
  position: sticky;
  top: 4.8rem;
  left: 50%;
  z-index: 2;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem auto 0;
  padding: 0.3rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, white 92%, var(--color-paper));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-ink) 8%, transparent);
}

body.page-studio-active .creative-sandbox-active-tool {
  min-height: 2.3rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--color-sage) 12%, white);
  box-shadow: none;
}

body.page-studio-active .creative-sandbox-save-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, white 80%, var(--color-paper));
  color: color-mix(in srgb, var(--color-ink) 72%, transparent);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-save-status[data-status=saved] {
  background: color-mix(in srgb, var(--color-sage) 18%, white);
  color: var(--color-ink);
}

body.page-studio-active .creative-sandbox-save-status[data-status=unsaved] {
  background: color-mix(in srgb, var(--color-terracotta) 13%, white);
}

body.page-studio-active .creative-sandbox-save-status[data-status=saving] iconify-icon {
  animation: creative-sandbox-spin 0.9s linear infinite;
}

@keyframes creative-sandbox-spin {
  to {
    transform: rotate(360deg);
  }
}
body.page-studio-active .creative-sandbox-surface {
  position: relative;
  width: min(1180px, 100% - 3rem);
  min-height: max(820px, 100% - 1rem);
  display: block;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 8rem) clamp(1.25rem, 4vw, 4rem);
}

body.page-studio-active .creative-sandbox-surface-objects {
  position: relative;
  min-height: 620px;
}

body.page-studio-active .creative-sandbox-surface-note,
body.page-studio-active .creative-sandbox-surface-frame,
body.page-studio-active .creative-sandbox-surface-shape,
body.page-studio-active .creative-sandbox-surface-planning {
  border: 1px solid color-mix(in srgb, var(--color-ink) 24%, transparent);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--color-ink) 10%, transparent);
}

body.page-studio-active .creative-sandbox-surface-note {
  left: 7%;
  top: 12%;
  width: min(21rem, 42%);
}

body.page-studio-active .creative-sandbox-surface-frame {
  right: 8%;
  top: 18%;
  width: min(25rem, 48%);
}

body.page-studio-active .creative-sandbox-surface-shape {
  left: 22%;
  bottom: 14%;
  width: min(17rem, 38%);
}

body.page-studio-active .creative-sandbox-surface-planning {
  right: 12%;
  bottom: 9%;
  width: min(21rem, 44%);
}

body.page-studio-active .creative-sandbox-surface-line {
  left: 36%;
  top: 52%;
}

body.page-studio-active .creative-sandbox-planning-stack {
  grid-column: auto;
  grid-template-columns: none;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  background: color-mix(in srgb, white 90%, var(--color-paper));
  overflow: auto;
}

body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-route,
body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-panel,
body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-preview {
  position: static;
  top: auto;
  width: 100% !important;
  max-width: none !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-route,
body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-panel {
  border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
}

body.page-studio-active .creative-sandbox-preview {
  grid-column: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  overflow: auto;
}

body.page-studio-active .creative-sandbox-right-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-paper) 78%, white);
}

body.page-studio-active .creative-sandbox-right-tabs button {
  min-height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  color: color-mix(in srgb, var(--color-ink) 68%, transparent);
}

body.page-studio-active .creative-sandbox-right-tabs button.is-active {
  background: white;
  color: var(--color-ink);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--color-ink) 8%, transparent);
}

body.page-studio-active .creative-sandbox-preview-head h2 {
  font-size: 1.5rem;
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-map-stack,
body.page-studio-active .creative-sandbox-exit {
  grid-template-columns: 1fr;
}

body.page-studio-active .creative-sandbox-map-stack {
  max-height: calc(100svh - 23rem);
  overflow: auto;
  padding-right: 0.15rem;
}

body.page-studio-active .creative-sandbox-exit {
  display: none;
}

body.page-studio-active .creative-sandbox-map-stack section,
body.page-studio-active .creative-sandbox-exit article {
  border: 1px solid color-mix(in srgb, var(--color-ink) 11%, transparent);
  border-radius: 0.85rem;
  background: color-mix(in srgb, white 74%, var(--color-paper));
}

body.page-studio-active .creative-sandbox-chat-box {
  position: static;
  display: grid;
  gap: 0.65rem;
  margin-top: 0;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 1.25rem;
  background: white;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--color-ink) 8%, transparent);
}

body.page-studio-active .creative-sandbox-chat-box > span:first-child {
  font-size: 1.35rem;
  line-height: 1.1;
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
}

body.page-studio-active .creative-sandbox-planning-stack.is-build-active .creative-sandbox-chat-box {
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: 1rem;
}

body.page-studio-active .creative-sandbox-planning-stack.is-build-active .creative-sandbox-chat-box > span:first-child {
  font-size: 1.15rem;
}

body.page-studio-active .creative-sandbox-chat-box textarea {
  width: 100%;
  min-height: clamp(5.75rem, 14vh, 8rem);
  max-height: 13rem;
  resize: vertical;
  border: 0;
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--color-paper) 64%, white);
  padding: 0.85rem;
  color: var(--color-ink);
  font-size: 1.05rem;
  line-height: 1.2;
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-sandbox-planning-stack.is-build-active .creative-sandbox-chat-box textarea {
  min-height: clamp(4.5rem, 10vh, 6.5rem);
  padding: 0.7rem;
  font-size: 0.98rem;
}

body.page-studio-active .creative-sandbox-chat-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: color-mix(in srgb, var(--color-ink) 62%, transparent);
}

body.page-studio-active .creative-sandbox-planning-stack.is-build-active .creative-sandbox-chat-actions {
  gap: 0.5rem;
}

body.page-studio-active .creative-sandbox-chat-actions strong {
  margin-left: auto;
  font-size: 0.8rem;
  line-height: 1.1;
}

body.page-studio-active .creative-sandbox-workbench[data-workspace-view=hub],
body.page-studio-active .creative-sandbox-workbench[data-workspace-view=guide],
body.page-studio-active .creative-sandbox-workbench[data-workspace-view=tools],
body.page-studio-active .creative-sandbox-workbench[data-workspace-view=projects] {
  grid-template-columns: minmax(0, 1fr) !important;
  overflow: auto;
}

body.page-studio-active .creative-sandbox-workspace {
  grid-column: 1/-1;
  min-height: 0;
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
  overflow: auto;
  scroll-padding-top: clamp(0.75rem, 1.5vw, 1.25rem);
  overflow-anchor: none;
}

body.page-studio-active .creative-sandbox-toolbox[hidden],
body.page-studio-active .creative-sandbox-canvas[hidden],
body.page-studio-active .creative-sandbox-planning-stack[hidden],
body.page-studio-active .creative-sandbox-workspace[hidden] {
  display: none !important;
}

body.page-studio-active .creative-sandbox-hub,
body.page-studio-active .creative-sandbox-library,
body.page-studio-active .creative-sandbox-guide-workspace {
  width: min(100%, 1320px);
  min-height: auto;
  display: grid;
  align-content: start;
  gap: clamp(0.9rem, 1.7vw, 1.45rem);
  margin: 0 auto;
}

body.page-studio-active .creative-sandbox-hub {
  padding-top: 0;
  scroll-margin-top: 0;
}

body.page-studio-active .creative-sandbox-hub-hero,
body.page-studio-active .creative-sandbox-workspace-head,
body.page-studio-active .creative-sandbox-hub-panel,
body.page-studio-active .creative-sandbox-detail-panel,
body.page-studio-active .creative-sandbox-library-card {
  border: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, white 82%, var(--color-paper));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--color-ink) 7%, transparent);
}

body.page-studio-active .creative-sandbox-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(0.7rem, 1.2vw, 1rem);
  min-height: clamp(9rem, 18vh, 13rem);
  padding: clamp(0.9rem, 1.5vw, 1.35rem);
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  background: color-mix(in srgb, white 84%, var(--color-paper));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--color-ink) 6%, transparent);
}

body.page-studio-active .creative-sandbox-hub-welcome {
  display: grid;
  gap: 0.5rem;
  min-height: min-content;
}

body.page-studio-active .creative-sandbox-hub-hero h2,
body.page-studio-active .creative-sandbox-workspace-head h2 {
  font-size: clamp(2.1rem, 3.35vw, 4.25rem);
  line-height: 0.98;
}

body.page-studio-active .creative-sandbox-hub-hero p:last-child,
body.page-studio-active .creative-sandbox-hub-welcome > p:not(.creative-sandbox-route-label),
body.page-studio-active .creative-sandbox-workspace-head p:last-child {
  max-width: 34rem;
  color: color-mix(in srgb, var(--color-ink) 70%, transparent);
  font-size: clamp(0.92rem, 0.9vw, 1rem);
  line-height: 1.25;
}

body.page-studio-active .creative-sandbox-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.3rem);
}

body.page-studio-active .creative-sandbox-hub-card {
  min-height: clamp(10.5rem, 15vw, 14rem);
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  gap: clamp(0.6rem, 1vw, 0.9rem);
  padding: clamp(1rem, 1.65vw, 1.55rem);
  border: 2px solid var(--color-ink);
  border-radius: clamp(1.35rem, 3vw, 2rem);
  background: white;
  color: var(--color-ink);
  text-align: center;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--color-ink) 62%, transparent);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

body.page-studio-active .creative-sandbox-hub-card:hover,
body.page-studio-active .creative-sandbox-hub-card:focus-visible {
  transform: translateY(-4px);
  background: color-mix(in srgb, var(--color-sage) 14%, white);
  box-shadow: 6px 8px 0 color-mix(in srgb, var(--color-ink) 70%, transparent);
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-sandbox-hub-icon,
body.page-studio-active .creative-sandbox-library-icon,
body.page-studio-active .creative-sandbox-recent-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--color-ink) 18%, transparent);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--color-paper) 72%, white);
}

body.page-studio-active .creative-sandbox-hub-icon {
  width: clamp(3.7rem, 4.2vw, 4.9rem);
  height: clamp(3.7rem, 4.2vw, 4.9rem);
  border: 2px solid color-mix(in srgb, var(--color-ink) 54%, transparent);
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--color-paper) 58%, white);
}

body.page-studio-active .creative-sandbox-hub-card[data-hub-card=create] .creative-sandbox-hub-icon {
  background: color-mix(in srgb, var(--color-terracotta) 10%, white);
}

body.page-studio-active .creative-sandbox-hub-card[data-hub-card=tools] .creative-sandbox-hub-icon {
  background: color-mix(in srgb, var(--color-sky) 10%, white);
}

body.page-studio-active .creative-sandbox-hub-card[data-hub-card=projects] .creative-sandbox-hub-icon {
  background: color-mix(in srgb, var(--success) 10%, white);
}

body.page-studio-active .creative-sandbox-hub-icon iconify-icon {
  font-size: clamp(2.25rem, 3vw, 3rem);
}

body.page-studio-active .creative-sandbox-hub-card strong {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.65vw, 1.9rem);
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-hub-card span:not(.creative-sandbox-hub-icon):not(.creative-sandbox-route-label) {
  color: color-mix(in srgb, var(--color-ink) 68%, transparent);
  max-width: 18rem;
  font-size: clamp(0.95rem, 1vw, 1.12rem);
  line-height: 1.22;
}

body.page-studio-active .creative-sandbox-hub-card em {
  margin-top: 0.1rem;
  font-style: normal;
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--color-ink);
}

body.page-studio-active .creative-sandbox-resume-card,
body.page-studio-active .creative-sandbox-hub-pins {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, white 78%, var(--color-paper));
  color: var(--color-ink);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--color-ink) 7%, transparent);
  text-align: left;
}

body.page-studio-active .creative-sandbox-resume-card {
  width: fit-content;
  max-width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon label action" "icon title action";
  align-items: center;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

body.page-studio-active .creative-sandbox-resume-card:hover,
body.page-studio-active .creative-sandbox-resume-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-ink);
  background: color-mix(in srgb, var(--color-terracotta) 9%, white);
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-sandbox-resume-card > span {
  grid-area: icon;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--color-ink) 18%, transparent);
  border-radius: 0.8rem;
  background: white;
}

body.page-studio-active .creative-sandbox-resume-card small {
  grid-area: label;
  color: color-mix(in srgb, var(--color-ink) 55%, transparent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.page-studio-active .creative-sandbox-resume-card strong {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-resume-card em {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-terracotta);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-hub-pins {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
}

body.page-studio-active .creative-sandbox-hub-pins h3 {
  font-size: 1.35rem;
  line-height: 1;
}

body.page-studio-active .creative-sandbox-hub-pins > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

body.page-studio-active .creative-sandbox-pin-shortcut {
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 16%, transparent);
  border-radius: 999px;
  background: white;
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-hub-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.9fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}

body.page-studio-active .creative-sandbox-hub-panel {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.page-studio-active .creative-sandbox-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1rem, 1.6vw, 1.4rem);
}

body.page-studio-active .creative-sandbox-panel-head h3,
body.page-studio-active .creative-sandbox-hub-glance h3,
body.page-studio-active .creative-sandbox-focus-mini h3 {
  font-size: clamp(1.7rem, 2.4vw, 3rem);
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-panel-link {
  min-width: max-content;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.25rem;
}

body.page-studio-active .creative-sandbox-panel-link:hover,
body.page-studio-active .creative-sandbox-panel-link:focus-visible {
  color: var(--color-terracotta);
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-sandbox-recent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.5vw, 1.35rem);
}

body.page-studio-active .creative-sandbox-recent-project {
  min-width: 0;
  min-height: clamp(8.5rem, 11vw, 11.5rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon title" "icon title" "copy copy" "status status";
  gap: 0.45rem 0.8rem;
  align-items: start;
  padding: clamp(1rem, 1.7vw, 1.35rem);
  border: 2px solid var(--color-ink);
  border-radius: clamp(1.1rem, 2.4vw, 1.55rem);
  background: white;
  color: var(--color-ink);
  text-align: left;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--color-ink) 62%, transparent);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

body.page-studio-active .creative-sandbox-recent-project:hover,
body.page-studio-active .creative-sandbox-recent-project:focus-visible,
body.page-studio-active .creative-sandbox-recent-project.is-active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--color-ink) 38%, transparent);
  background: color-mix(in srgb, var(--color-sage) 10%, white);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--color-ink) 68%, transparent);
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-sandbox-recent-icon {
  grid-area: icon;
  width: 3rem;
  height: 3rem;
}

body.page-studio-active .creative-sandbox-recent-project .creative-sandbox-route-label {
  grid-area: label;
}

body.page-studio-active .creative-sandbox-recent-project strong {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.45vw, 1.7rem);
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-recent-project > span:not(.creative-sandbox-recent-icon):not(.creative-sandbox-route-label) {
  grid-area: copy;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: color-mix(in srgb, var(--color-ink) 68%, transparent);
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  line-height: 1.16;
}

body.page-studio-active .creative-sandbox-recent-project em,
body.page-studio-active .creative-sandbox-status-mini {
  grid-area: status;
  width: max-content;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-terracotta) 12%, white);
  color: var(--color-ink);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

body.page-studio-active .creative-sandbox-recent-project em[data-tone=ready],
body.page-studio-active .creative-sandbox-status-mini[data-tone=ready] {
  background: color-mix(in srgb, var(--color-sage) 18%, white);
}

body.page-studio-active .creative-sandbox-recent-project small {
  grid-area: workspace;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
  font-size: 0.8rem;
  font-weight: 800;
}

body.page-studio-active .creative-sandbox-hub-empty-card,
body.page-studio-active .creative-sandbox-analyze-card {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.35rem;
  min-height: 7.5rem;
  padding: 0.95rem;
  border: 1px dashed color-mix(in srgb, var(--color-ink) 22%, transparent);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--color-paper) 72%, white);
  color: var(--color-ink);
  text-align: left;
}

body.page-studio-active .creative-sandbox-analyze-card {
  width: 100%;
  margin-top: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border-style: solid;
  background: color-mix(in srgb, var(--color-sage) 9%, white);
}

body.page-studio-active .creative-sandbox-analyze-card:hover,
body.page-studio-active .creative-sandbox-analyze-card:focus-visible {
  border-color: color-mix(in srgb, var(--color-ink) 34%, transparent);
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-sandbox-analyze-card span {
  grid-row: 1/span 2;
}

body.page-studio-active .creative-sandbox-analyze-card strong,
body.page-studio-active .creative-sandbox-hub-empty-card strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-analyze-card small,
body.page-studio-active .creative-sandbox-hub-empty-card p {
  color: color-mix(in srgb, var(--color-ink) 62%, transparent);
  font-size: 0.88rem;
  line-height: 1.16;
}

body.page-studio-active .creative-sandbox-hub-panel--aside,
body.page-studio-active .creative-sandbox-hub-glance,
body.page-studio-active .creative-sandbox-focus-mini,
body.page-studio-active .creative-sandbox-hub-context-list {
  display: grid;
  gap: clamp(0.8rem, 1.2vw, 1.15rem);
}

body.page-studio-active .creative-sandbox-hub-context-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon label" "icon value" "helper helper";
  gap: 0.12rem 0.6rem;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 0.75rem;
  background: white;
}

body.page-studio-active .creative-sandbox-hub-context-list article > span:not(.creative-sandbox-hub-strip-icon),
body.page-studio-active .creative-sandbox-detail-list span,
body.page-studio-active .creative-sandbox-detail-columns span {
  color: color-mix(in srgb, var(--color-ink) 56%, transparent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.page-studio-active .creative-sandbox-hub-strip-icon {
  grid-area: icon;
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--color-paper) 78%, white);
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
}

body.page-studio-active .creative-sandbox-hub-context-list article > span:not(.creative-sandbox-hub-strip-icon) {
  grid-area: label;
}

body.page-studio-active .creative-sandbox-hub-context-list strong {
  grid-area: value;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.95rem, 1vw, 1.12rem);
}

body.page-studio-active .creative-sandbox-hub-context-list p {
  grid-area: helper;
  min-width: 0;
  color: color-mix(in srgb, var(--color-ink) 60%, transparent);
  font-size: 0.82rem;
  line-height: 1.15;
}

body.page-studio-active .creative-sandbox-focus-mini {
  min-height: clamp(10rem, 15vw, 15rem);
  align-content: center;
  padding: clamp(1.1rem, 1.8vw, 1.65rem);
  border: 2px solid var(--color-ink);
  border-radius: clamp(1.1rem, 2.4vw, 1.55rem);
  background: white;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--color-ink) 62%, transparent);
}

body.page-studio-active .creative-sandbox-focus-mini > strong {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.8vw, 2rem);
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-focus-mini > span {
  width: max-content;
  max-width: 100%;
  padding: 0.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 50%, transparent);
  border-radius: 0.2rem;
  background: color-mix(in srgb, var(--color-paper) 70%, white);
  color: color-mix(in srgb, var(--color-ink) 70%, transparent);
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-mini-list,
body.page-studio-active .creative-sandbox-mini-tags {
  display: grid;
  gap: 0.45rem;
}

body.page-studio-active .creative-sandbox-mini-list span {
  padding: 0.55rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 0.65rem;
  background: white;
  font-size: 0.9rem;
  line-height: 1.15;
}

body.page-studio-active .creative-sandbox-mini-tags {
  display: flex;
  flex-wrap: wrap;
}

body.page-studio-active .creative-sandbox-mini-tags span {
  padding: 0.3rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-paper) 75%, white);
  font-size: 0.78rem;
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem);
}

body.page-studio-active .creative-sandbox-workspace-action {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
}

body.page-studio-active .creative-sandbox-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

body.page-studio-active .creative-sandbox-guide-workspace {
  width: min(100%, 1560px);
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
}

body.page-studio-active .creative-sandbox-guide-head {
  align-items: center;
}

body.page-studio-active .creative-sandbox-guide-head h2 {
  font-size: clamp(2rem, 3vw, 3.7rem);
}

body.page-studio-active .creative-sandbox-guide-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr) minmax(16rem, 21rem);
  gap: clamp(0.85rem, 1.5vw, 1.2rem);
  align-items: start;
}

body.page-studio-active .creative-sandbox-guide-route,
body.page-studio-active .creative-sandbox-guide-panel,
body.page-studio-active .creative-sandbox-guide-context {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, white 84%, var(--color-paper));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--color-ink) 7%, transparent);
}

body.page-studio-active .creative-sandbox-guide-route,
body.page-studio-active .creative-sandbox-guide-context {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.85rem;
  max-height: calc(100svh - var(--sandbox-appbar-height) - 2.5rem);
  padding: 0.95rem;
  overflow: auto;
}

body.page-studio-active .creative-sandbox-guide-route .creative-sandbox-route-head {
  display: grid;
  gap: 0.55rem;
}

body.page-studio-active .creative-sandbox-guide-mini-context {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px dashed color-mix(in srgb, var(--color-ink) 16%, transparent);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--color-paper) 70%, white);
  color: color-mix(in srgb, var(--color-ink) 64%, transparent);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.12;
}

body.page-studio-active .creative-sandbox-guide-route .creative-sandbox-step-list {
  display: grid;
  gap: 0.55rem;
}

body.page-studio-active .creative-sandbox-guide-route .creative-sandbox-step {
  min-height: 4.25rem;
  grid-template-columns: auto auto minmax(0, 1fr);
  padding: 0.65rem;
  border-width: 1px;
  border-radius: 0.85rem;
  box-shadow: none;
}

body.page-studio-active .creative-sandbox-guide-route .creative-sandbox-step-copy small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-studio-active .creative-sandbox-guide-panel {
  overflow: hidden;
}

body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(0.85rem, 1.4vw, 1.15rem);
  margin: 0;
  padding: clamp(1rem, 1.7vw, 1.4rem);
  border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
}

body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-layer-number {
  width: 3.4rem;
  height: 3.4rem;
  flex: 0 0 auto;
}

body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-panel-head h2 {
  font-size: clamp(2rem, 3vw, 3.45rem);
  line-height: 0.98;
}

body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-panel-head p:last-child {
  max-width: 44rem;
  font-size: clamp(1rem, 1vw, 1.08rem);
}

body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-panel-body,
body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-panel-footer {
  padding: clamp(1rem, 1.7vw, 1.4rem);
}

body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-panel-body {
  display: grid;
  gap: 1rem;
}

body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-field-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-field textarea {
  min-height: clamp(8rem, 18vh, 12rem);
}

body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-panel-footer {
  border-top: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
}

body.page-studio-active .creative-sandbox-guide-context h3 {
  font-size: clamp(1.45rem, 2vw, 2.3rem);
  line-height: 1;
}

body.page-studio-active .creative-sandbox-guide-context > p {
  color: color-mix(in srgb, var(--color-ink) 68%, transparent);
  line-height: 1.2;
}

body.page-studio-active .creative-sandbox-guide-mark-list {
  display: grid;
  gap: 0.65rem;
}

body.page-studio-active .creative-sandbox-guide-mark-list article {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 11%, transparent);
  border-radius: 0.85rem;
  background: color-mix(in srgb, white 72%, var(--color-paper));
}

body.page-studio-active .creative-sandbox-guide-mark-list span {
  color: color-mix(in srgb, var(--color-ink) 56%, transparent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.page-studio-active .creative-sandbox-guide-mark-list strong {
  font-size: 1rem;
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-guide-mark-list p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: color-mix(in srgb, var(--color-ink) 62%, transparent);
  font-size: 0.9rem;
  line-height: 1.16;
}

body.page-studio-active .creative-sandbox-delete-btn {
  border-color: color-mix(in srgb, var(--color-terracotta) 45%, var(--color-ink)) !important;
  color: color-mix(in srgb, var(--color-terracotta) 75%, var(--color-ink)) !important;
  background: color-mix(in srgb, var(--color-terracotta) 10%, white) !important;
}

body.page-studio-active .creative-sandbox-filter-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

body.page-studio-active .creative-sandbox-filter-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-paper) 68%, white);
  color: color-mix(in srgb, var(--color-ink) 68%, transparent);
  font-weight: 900;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-filter-row button {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 999px;
  background: white;
  font-weight: 900;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-filter-row button.is-active {
  background: var(--primary);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 2px 2px 0 0 var(--accent);
}

body.page-studio-active .creative-sandbox-filter-row button.is-active iconify-icon {
  color: inherit;
}

body.page-studio-active .creative-sandbox-filter-row button.creative-sandbox-filter-add {
  border-style: dashed;
  background: color-mix(in srgb, var(--color-sage) 10%, white);
}

body.page-studio-active .creative-sandbox-pinned-tools {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(0.8rem, 1.4vw, 1.15rem);
  padding: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, white 82%, var(--color-paper));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--color-ink) 6%, transparent);
}

body.page-studio-active .creative-sandbox-pinned-tools h3 {
  font-size: clamp(1.25rem, 1.4vw, 1.75rem);
  line-height: 1;
}

body.page-studio-active .creative-sandbox-pinned-tools p:not(.creative-sandbox-route-label) {
  color: color-mix(in srgb, var(--color-ink) 64%, transparent);
  line-height: 1.15;
}

body.page-studio-active .creative-sandbox-pinned-tool-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

body.page-studio-active .creative-sandbox-pinned-tool {
  min-width: min(100%, 13rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 0.85rem;
  background: white;
}

body.page-studio-active .creative-sandbox-pinned-tool button {
  min-width: 0;
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--color-ink);
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-pinned-tool button:first-child {
  justify-content: flex-start;
}

body.page-studio-active .creative-sandbox-pinned-tool button:first-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-pinned-tool button:not(:first-child) {
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  background: color-mix(in srgb, var(--color-paper) 62%, white);
}

body.page-studio-active .creative-sandbox-pinned-tool button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.page-studio-active .creative-sandbox-pinned-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px dashed color-mix(in srgb, var(--color-ink) 20%, transparent);
  border-radius: 0.85rem;
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

body.page-studio-active .creative-sandbox-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
}

body.page-studio-active .creative-sandbox-library-card {
  min-height: 15rem;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

body.page-studio-active .creative-sandbox-library-card:hover,
body.page-studio-active .creative-sandbox-library-card:focus-visible,
body.page-studio-active .creative-sandbox-library-card.is-active {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 48%, white);
  box-shadow: var(--shadow-stacked);
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-sandbox-project-card {
  position: relative;
  border-left: 0.4rem solid var(--project-accent, var(--color-ink));
}

body.page-studio-active .creative-sandbox-project-card.is-active {
  background: color-mix(in srgb, var(--project-accent, var(--color-sage)) 10%, white);
}

body.page-studio-active .creative-sandbox-library-card-head,
body.page-studio-active .creative-sandbox-card-actions,
body.page-studio-active .creative-sandbox-card-meta,
body.page-studio-active .creative-sandbox-detail-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

body.page-studio-active .creative-sandbox-library-card-head {
  justify-content: space-between;
}

body.page-studio-active .creative-sandbox-library-card h3,
body.page-studio-active .creative-sandbox-detail-panel h3 {
  font-size: clamp(1.35rem, 1.7vw, 2rem);
  line-height: 1;
}

body.page-studio-active .creative-sandbox-library-card p,
body.page-studio-active .creative-sandbox-detail-panel > p {
  color: color-mix(in srgb, var(--color-ink) 68%, transparent);
  line-height: 1.22;
}

body.page-studio-active .creative-sandbox-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 999px;
  background: white;
  font-size: 0.75rem;
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-status-pill[data-tone=ready],
body.page-studio-active .creative-sandbox-signal-list article[data-tone=ready] {
  background: color-mix(in srgb, var(--color-sage) 20%, white);
}

body.page-studio-active .creative-sandbox-status-pill[data-tone=progress],
body.page-studio-active .creative-sandbox-signal-list article[data-tone=progress] {
  background: color-mix(in srgb, var(--color-sky) 18%, white);
}

body.page-studio-active .creative-sandbox-status-pill[data-tone=planning],
body.page-studio-active .creative-sandbox-signal-list article[data-tone=planning] {
  background: color-mix(in srgb, var(--color-honey) 20%, white);
}

body.page-studio-active .creative-sandbox-status-pill[data-tone=setup],
body.page-studio-active .creative-sandbox-signal-list article[data-tone=setup] {
  background: color-mix(in srgb, var(--color-terracotta) 14%, white);
}

body.page-studio-active .creative-sandbox-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.page-studio-active .creative-sandbox-tag-row span {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-paper) 70%, white);
  font-size: 0.76rem;
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-card-meta {
  flex-wrap: wrap;
  margin-top: auto;
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
  font-size: 0.82rem;
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-card-meta i {
  width: 0.65rem;
  height: 0.65rem;
  display: inline-block;
  border: 1px solid color-mix(in srgb, var(--color-ink) 22%, transparent);
  border-radius: 999px;
  background: var(--project-accent, var(--color-ink));
}

body.page-studio-active .creative-sandbox-card-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.page-studio-active .creative-sandbox-project-link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.5rem;
  border: 1px dashed color-mix(in srgb, var(--color-ink) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-terracotta) 9%, white);
  color: var(--color-ink);
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-card-actions {
  flex-wrap: wrap;
  padding-top: 0.35rem;
}

body.page-studio-active .creative-sandbox-card-actions button,
body.page-studio-active .creative-sandbox-detail-actions button {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 0.75rem;
  background: white;
  color: var(--color-ink);
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-card-actions button.btn-primary-fill,
body.page-studio-active .creative-sandbox-detail-actions button.btn-primary-fill {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-cream);
}

body.page-studio-active .creative-sandbox-card-actions button:disabled,
body.page-studio-active .creative-sandbox-detail-actions button:disabled {
  opacity: 1;
  border-color: color-mix(in srgb, var(--color-ink) 26%, transparent);
  background: color-mix(in srgb, var(--color-ink) 8%, white);
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--color-ink) 26%, transparent) !important;
  cursor: not-allowed;
}

body.page-studio-active .creative-sandbox-card-actions button.btn-primary-fill:disabled,
body.page-studio-active .creative-sandbox-detail-actions button.btn-primary-fill:disabled {
  border-color: color-mix(in srgb, var(--color-ink) 30%, transparent);
  background: color-mix(in srgb, var(--color-ink) 10%, white);
  color: color-mix(in srgb, var(--color-ink) 62%, transparent);
}

body.page-studio-active .creative-sandbox-detail-panel {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

body.page-studio-active .creative-sandbox-detail-list,
body.page-studio-active .creative-sandbox-detail-columns {
  display: grid;
  gap: 0.55rem;
}

body.page-studio-active .creative-sandbox-detail-list span,
body.page-studio-active .creative-sandbox-detail-columns section {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 0.85rem;
  background: color-mix(in srgb, white 70%, var(--color-paper));
}

body.page-studio-active .creative-sandbox-detail-list strong,
body.page-studio-active .creative-sandbox-detail-columns p {
  color: var(--color-ink);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

body.page-studio-active .creative-sandbox-project-type-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--project-accent, var(--color-sage)) 12%, white);
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-project-type-line span {
  width: 0.7rem;
  height: 0.7rem;
  display: inline-block;
  border-radius: 999px;
  background: var(--project-accent, var(--color-ink));
}

body.page-studio-active .creative-sandbox-link-field {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 0.9rem;
  background: color-mix(in srgb, white 72%, var(--color-paper));
}

body.page-studio-active .creative-sandbox-link-field span,
body.page-studio-active .creative-sandbox-detail-columns span {
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.page-studio-active .creative-sandbox-link-field input {
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 0.75rem;
  background: white;
  color: var(--color-ink);
  font: inherit;
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-link-field input:focus {
  border-color: var(--color-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-sage) 16%, transparent);
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-sandbox-link-field input.is-invalid {
  border-color: color-mix(in srgb, #b42318 72%, var(--color-ink));
  background: color-mix(in srgb, #b42318 6%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, #b42318 10%, transparent);
}

body.page-studio-active .creative-sandbox-link-field small {
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
  line-height: 1.12;
}

body.page-studio-active .creative-sandbox-link-field small.is-error {
  color: color-mix(in srgb, #b42318 86%, var(--color-ink));
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-signal-list {
  display: grid;
  gap: 0.55rem;
}

body.page-studio-active .creative-sandbox-signal-list article {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 0.85rem;
}

body.page-studio-active .creative-sandbox-signal-list span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
}

body.page-studio-active .creative-sandbox-signal-list strong {
  font-size: 1rem;
}

body.page-studio-active .creative-sandbox-signal-list p {
  color: color-mix(in srgb, var(--color-ink) 68%, transparent);
  line-height: 1.15;
}

body.page-studio-active .creative-sandbox-detail-actions {
  flex-wrap: wrap;
}

body.page-studio-active .creative-sandbox-detail-note {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  border: 1px dashed color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

body.page-studio-active .creative-sandbox-detail-note span {
  color: var(--ink-muted);
  font-size: var(--text-eyebrow);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.page-studio-active .creative-sandbox-detail-note p {
  color: var(--primary);
  line-height: 1.18;
}

body.page-studio-active .creative-sandbox-overflow-menu {
  position: relative;
  display: inline-flex;
}

body.page-studio-active .creative-sandbox-overflow-menu summary {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  list-style: none;
  cursor: pointer;
}

body.page-studio-active .creative-sandbox-overflow-menu summary::-webkit-details-marker {
  display: none;
}

body.page-studio-active .creative-sandbox-overflow-menu > div {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 20;
  min-width: 12rem;
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

body.page-studio-active .creative-sandbox-overflow-menu:not([open]) > div {
  display: none !important;
}

body.page-studio-active .creative-sandbox-overflow-menu button {
  width: 100%;
  justify-content: flex-start;
  border-color: color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: none;
}

body.page-studio-active .creative-sandbox-progress-segments {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.3rem;
  width: 100%;
}

body.page-studio-active .creative-sandbox-progress-segments span {
  min-height: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, white 72%, var(--color-paper));
}

body.page-studio-active .creative-sandbox-progress-segments span.is-filled {
  border-color: var(--color-ink);
  background: color-mix(in srgb, var(--color-terracotta) 60%, var(--color-sage));
}

body.page-studio-active .creative-sandbox-object-title-input,
body.page-studio-active .creative-sandbox-object-text-input {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--color-ink);
  cursor: text;
  user-select: text;
  touch-action: auto;
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-sandbox-object-title-input {
  padding: 0.15rem 0.25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.2vw, 1.85rem);
  font-weight: 900;
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-object-text-input {
  min-height: 4.5rem;
  resize: vertical;
  padding: 0.25rem;
  font-size: clamp(0.95rem, 0.8vw, 1.1rem);
  line-height: 1.18;
}

body.page-studio-active .creative-sandbox-object-title-input:focus,
body.page-studio-active .creative-sandbox-object-text-input:focus {
  border-color: color-mix(in srgb, var(--color-ink) 18%, transparent);
  background: color-mix(in srgb, white 72%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-sage) 16%, transparent);
}

body.page-studio-active .creative-sandbox-object-title-input::placeholder,
body.page-studio-active .creative-sandbox-object-text-input::placeholder {
  color: color-mix(in srgb, var(--color-ink) 50%, transparent);
}

@media (max-width: 1199px) {
  body.page-studio-active .creative-sandbox-main {
    --sandbox-right-rail: minmax(20rem, 24rem);
    grid-template-rows: auto minmax(0, 1fr);
  }
  body.page-studio-active .creative-sandbox-appbar {
    grid-template-columns: minmax(12rem, 1fr) auto;
    grid-template-rows: auto auto;
    height: auto;
    min-height: var(--sandbox-appbar-height);
    align-items: start;
  }
  body.page-studio-active .creative-sandbox-mode-switch {
    grid-column: 1/-1;
    grid-row: 2;
    justify-self: stretch;
    overflow-x: auto;
  }
  body.page-studio-active .creative-sandbox-actions {
    grid-column: 2;
    grid-row: 1;
  }
  body.page-studio-active .creative-sandbox-workbench {
    grid-template-columns: 4.5rem minmax(0, 1fr) var(--sandbox-right-rail);
  }
  body.page-studio-active .creative-sandbox-actions .btn-toolbar {
    font-size: 0.9rem;
    gap: 0.4rem;
  }
  body.page-studio-active .creative-sandbox-actions .btn-toolbar iconify-icon {
    font-size: 1.1rem;
  }
}
@media (max-width: 900px) {
  body.page-studio-active .creative-sandbox-main {
    height: auto;
    min-height: 100svh;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: auto;
  }
  body.page-studio-active .creative-sandbox-appbar {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: var(--sandbox-appbar-height);
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
  }
  body.page-studio-active .creative-sandbox-appbar-left,
  body.page-studio-active .creative-sandbox-mode-switch,
  body.page-studio-active .creative-sandbox-actions {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
  body.page-studio-active .creative-sandbox-actions {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }
  body.page-studio-active .creative-sandbox-workbench {
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  body.page-studio-active .creative-sandbox-toolbox {
    position: sticky;
    top: var(--sandbox-appbar-height);
    z-index: 2;
    height: auto;
    grid-template-rows: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
    overflow: hidden;
  }
  body.page-studio-active .creative-sandbox-tool-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }
  body.page-studio-active .creative-sandbox-tool {
    width: 3.35rem;
    min-width: 3.35rem;
    min-height: 3.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    overflow: hidden;
  }
  body.page-studio-active .creative-sandbox-tool-icon {
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 auto;
  }
  body.page-studio-active .creative-sandbox-toolbox-foot {
    flex-direction: row;
    justify-content: flex-end;
  }
  body.page-studio-active .creative-sandbox-tool-tip {
    display: none;
  }
  body.page-studio-active .creative-sandbox-canvas {
    min-height: 42rem;
  }
  body.page-studio-active .creative-sandbox-surface {
    width: 100%;
    min-height: 42rem;
    padding: 2rem 1rem;
  }
  body.page-studio-active .creative-sandbox-planning-stack {
    height: auto;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  }
  body.page-studio-active .creative-sandbox-hub-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  body.page-studio-active .creative-sandbox-resume-card,
  body.page-studio-active .creative-sandbox-hub-pins,
  body.page-studio-active .creative-sandbox-pinned-tools {
    grid-template-columns: 1fr;
  }
  body.page-studio-active .creative-sandbox-hub-pins > div:last-child,
  body.page-studio-active .creative-sandbox-pinned-tool-row {
    justify-content: flex-start;
  }
  body.page-studio-active .creative-sandbox-hub-grid,
  body.page-studio-active .creative-sandbox-hub-dashboard,
  body.page-studio-active .creative-sandbox-recent-grid,
  body.page-studio-active .creative-sandbox-library-layout,
  body.page-studio-active .creative-sandbox-guide-layout {
    grid-template-columns: 1fr;
  }
  body.page-studio-active .creative-sandbox-panel-head {
    align-items: flex-start;
  }
  body.page-studio-active .creative-sandbox-detail-panel {
    position: static;
  }
  body.page-studio-active .creative-sandbox-guide-head {
    display: grid;
    align-items: start;
  }
  body.page-studio-active .creative-sandbox-guide-route,
  body.page-studio-active .creative-sandbox-guide-context {
    position: static;
    max-height: none;
  }
}
@media (max-width: 560px) {
  body.page-studio-active .creative-sandbox-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
    width: 100%;
    overflow: visible;
  }
  body.page-studio-active .creative-sandbox-mode-switch {
    border-radius: 0.85rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
    overflow: visible;
  }
  body.page-studio-active .creative-sandbox-guide-workspace {
    gap: 0.85rem;
  }
  body.page-studio-active .creative-sandbox-guide-head h2,
  body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-panel-head h2 {
    font-size: clamp(1.85rem, 12vw, 2.65rem);
  }
  body.page-studio-active .creative-sandbox-library,
  body.page-studio-active .creative-sandbox-library-layout,
  body.page-studio-active .creative-sandbox-library-grid,
  body.page-studio-active .creative-sandbox-detail-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body.page-studio-active .creative-sandbox-library {
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: hidden;
  }
  body.page-studio-active .creative-sandbox-workspace-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  body.page-studio-active .creative-sandbox-workspace-head > div:first-child {
    min-width: 0;
  }
  body.page-studio-active .creative-sandbox-library-layout {
    overflow: hidden;
  }
  body.page-studio-active .creative-sandbox-detail-panel {
    padding: 0.8rem;
  }
  body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-panel-head,
  body.page-studio-active .creative-sandbox-guide-panel .creative-sandbox-panel-footer,
  body.page-studio-active .creative-sandbox-workspace-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  body.page-studio-active .creative-sandbox-workspace-action {
    width: 100%;
  }
  body.page-studio-active .creative-sandbox-mode-switch button {
    width: 100%;
    min-width: 0;
    min-height: 2.55rem;
    padding-inline: 0.5rem;
    white-space: normal;
    line-height: 1.05;
  }
  body.page-studio-active .creative-sandbox-filter-row {
    flex-wrap: wrap;
    overflow: visible;
  }
  body.page-studio-active .creative-sandbox-toolbox {
    grid-template-columns: 1fr;
  }
  body.page-studio-active .creative-sandbox-tool-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
  body.page-studio-active .creative-sandbox-tool {
    width: 100%;
    min-width: 0;
  }
  body.page-studio-active .creative-sandbox-toolbox-foot {
    justify-content: start;
  }
  body.page-studio-active .creative-sandbox-canvas-tools-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  body.page-studio-active .creative-sandbox-canvas-tools-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  body.page-studio-active .creative-sandbox-canvas-tools-row button {
    width: 100%;
  }
  body.page-studio-active .creative-sandbox-canvas-guide-cta {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  body.page-studio-active .creative-sandbox-canvas-toolbar {
    top: 8.5rem;
    max-width: calc(100% - 1rem);
    flex-wrap: wrap;
    justify-content: center;
  }
  body.page-studio-active .creative-sandbox-filter-row button {
    flex: 1 1 auto;
  }
  body.page-studio-active .creative-sandbox-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  body.page-studio-active .creative-sandbox-detail-actions button {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.page-studio-active .creative-sandbox-overflow-menu,
  body.page-studio-active .creative-sandbox-overflow-menu summary {
    width: 100%;
  }
  body.page-studio-active .creative-sandbox-overflow-menu > div {
    position: static;
    margin-top: 0.45rem;
    width: 100%;
  }
  body.page-studio-active .creative-sandbox-actions .creative-sandbox-focus-toggle {
    display: none !important;
  }
  body.page-studio-active .creative-sandbox-actions .btn-toolbar,
  body.page-studio-active .creative-sandbox-actions .btn-toolbar-icon {
    width: 100% !important;
    min-width: 0;
    padding-inline: 0.55rem !important;
  }
  body.page-studio-active .creative-sandbox-actions .creative-sandbox-action-label {
    font-size: 0.78rem;
  }
  body.page-studio-active .creative-sandbox-panel-head {
    display: grid;
    gap: 0.55rem;
  }
  body.page-studio-active .creative-sandbox-recent-project,
  body.page-studio-active .creative-sandbox-analyze-card {
    grid-template-columns: minmax(0, 1fr);
  }
  body.page-studio-active .creative-sandbox-recent-icon,
  body.page-studio-active .creative-sandbox-analyze-card span {
    grid-row: auto;
  }
  body.page-studio-active .creative-sandbox-recent-project {
    grid-template-areas: "icon" "label" "title" "copy" "status" "workspace";
  }
  body.page-studio-active .creative-sandbox-recent-project small {
    text-align: left;
  }
  body.page-studio-active .creative-sandbox-surface-objects {
    min-height: 34rem;
    display: grid;
    gap: 0.85rem;
  }
  body.page-studio-active .creative-sandbox-surface-note,
  body.page-studio-active .creative-sandbox-surface-frame,
  body.page-studio-active .creative-sandbox-surface-shape,
  body.page-studio-active .creative-sandbox-surface-planning,
  body.page-studio-active .creative-sandbox-surface-line {
    position: static;
    width: 100%;
    transform: none;
  }
  body.page-studio-active .creative-sandbox-surface-shape {
    border-radius: 1rem;
  }
}
/* Make the canvas the full workspace surface; panels float on it. */
@media (min-width: 901px) {
  body.page-studio-active .creative-sandbox-workbench {
    position: relative;
    grid-template-columns: 4.75rem minmax(0, 1fr) !important;
  }
  body.page-studio-active .creative-sandbox-canvas {
    grid-column: 2/-1;
    grid-row: 1;
    width: 100% !important;
  }
  body.page-studio-active .creative-sandbox-planning-stack {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: min(var(--sandbox-right-rail), 32vw);
    min-width: 21rem;
    max-width: 28rem;
    box-shadow: -18px 0 38px color-mix(in srgb, var(--color-ink) 8%, transparent);
  }
  body.page-studio-active .creative-sandbox-surface {
    width: 100%;
    max-width: none;
    padding-right: calc(min(var(--sandbox-right-rail), 32vw) + clamp(2rem, 6vw, 8rem));
  }
  body.page-studio-active .creative-sandbox-workbench[data-workspace-view=hub],
  body.page-studio-active .creative-sandbox-workbench[data-workspace-view=guide],
  body.page-studio-active .creative-sandbox-workbench[data-workspace-view=tools],
  body.page-studio-active .creative-sandbox-workbench[data-workspace-view=projects] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
/* Make tools create usable sandbox marks instead of acting like a static mockup. */
body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-preview {
  order: -1;
  flex: 1 1 auto;
  min-height: 0;
  gap: 1rem;
}

body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-route,
body.page-studio-active .creative-sandbox-planning-stack .creative-sandbox-panel {
  display: none;
}

body.page-studio-active .creative-sandbox-planning-stack.is-planning-active .creative-sandbox-route,
body.page-studio-active .creative-sandbox-planning-stack.is-planning-active .creative-sandbox-panel {
  display: block;
}

body.page-studio-active .creative-sandbox-planning-stack.is-planning-active .creative-sandbox-route {
  flex: 0 0 clamp(14rem, 34vh, 18rem);
  overflow: auto;
}

body.page-studio-active .creative-sandbox-planning-stack.is-planning-active .creative-sandbox-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

body.page-studio-active .creative-sandbox-planning-stack.is-planning-active .creative-sandbox-preview {
  min-height: auto;
  border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
}

body.page-studio-active .creative-sandbox-planning-stack.is-build-active .creative-sandbox-preview,
body.page-studio-active .creative-sandbox-planning-stack.is-map-active .creative-sandbox-preview {
  min-height: 0;
  overflow: auto;
}

body.page-studio-active .creative-sandbox-planning-stack.is-build-active .creative-sandbox-preview {
  gap: 0.75rem;
  padding: 0.85rem;
}

body.page-studio-active .creative-sandbox-planning-stack.is-build-active .creative-sandbox-preview-head {
  gap: 0.4rem;
  margin-bottom: 0;
}

body.page-studio-active .creative-sandbox-planning-stack.is-build-active .creative-sandbox-preview-head h2 {
  font-size: clamp(1.65rem, 1.85vw, 2.2rem);
}

body.page-studio-active .creative-sandbox-planning-stack.is-build-active .creative-sandbox-preview-head p {
  margin-top: 0.15rem;
  font-size: 0.98rem;
}

body.page-studio-active .creative-sandbox-surface-objects {
  min-height: 860px;
}

body.page-studio-active .creative-sandbox-board-object {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: clamp(11rem, var(--w) * 1%, 34rem);
  min-height: clamp(6.5rem, var(--h) * 0.72rem, 20rem);
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 22%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, white 84%, var(--color-paper));
  box-shadow: 0 18px 38px color-mix(in srgb, var(--color-ink) 9%, transparent);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

body.page-studio-active .creative-sandbox-object-delete {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--color-ink) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, white 88%, var(--color-paper));
  color: var(--color-ink);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--color-ink) 8%, transparent);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.14s ease, transform 0.14s ease, background 0.14s ease;
}

body.page-studio-active .creative-sandbox-board-object:hover .creative-sandbox-object-delete,
body.page-studio-active .creative-sandbox-board-object:focus-within .creative-sandbox-object-delete,
body.page-studio-active .creative-sandbox-object-delete:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

body.page-studio-active .creative-sandbox-object-delete:hover,
body.page-studio-active .creative-sandbox-object-delete:focus-visible {
  background: color-mix(in srgb, var(--color-terracotta) 16%, white);
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-sandbox-board-object:hover,
body.page-studio-active .creative-sandbox-board-object:focus-visible,
body.page-studio-active .creative-sandbox-board-object.is-active {
  outline: 3px solid transparent;
  outline-offset: 2px;
  transform: translateY(-2px);
  border-color: var(--color-ink);
  box-shadow: 0 20px 44px color-mix(in srgb, var(--color-ink) 13%, transparent);
}

body.page-studio-active .creative-sandbox-board-object.is-dragging {
  z-index: 6;
  cursor: grabbing;
  transform: translateY(-2px) rotate(0deg);
  box-shadow: 0 24px 54px color-mix(in srgb, var(--color-ink) 18%, transparent);
}

body.page-studio-active .creative-sandbox-board-object--frame {
  background: color-mix(in srgb, white 72%, var(--color-sage));
}

body.page-studio-active .creative-sandbox-board-object--shape {
  min-height: clamp(8.5rem, var(--h) * 0.88rem, 20rem);
  border-width: 2px;
  border-style: dashed;
  border-radius: 1.4rem 2.2rem 1.6rem 2rem;
  background: radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--color-terracotta) 18%, transparent), transparent 32%), color-mix(in srgb, var(--color-paper) 62%, white);
  text-align: center;
  align-content: center;
}

body.page-studio-active .creative-sandbox-board-object--shape .creative-sandbox-object-label,
body.page-studio-active .creative-sandbox-board-object--shape .creative-sandbox-object-title-input,
body.page-studio-active .creative-sandbox-board-object--shape .creative-sandbox-object-text-input {
  text-align: center;
}

body.page-studio-active .creative-sandbox-board-object--line {
  min-height: 4.25rem;
  align-content: center;
  transform: rotate(-4deg);
}

body.page-studio-active .creative-sandbox-board-object--line::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.85rem;
  border-top: 2px dashed color-mix(in srgb, var(--color-ink) 35%, transparent);
}

body.page-studio-active .creative-sandbox-board-object--comment {
  background: color-mix(in srgb, var(--color-terracotta) 12%, white);
}

body.page-studio-active .creative-sandbox-board-object.is-empty p {
  color: color-mix(in srgb, var(--color-ink) 56%, transparent);
}

body.page-studio-active .creative-sandbox-object-label,
body.page-studio-active .creative-sandbox-empty-state span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: color-mix(in srgb, var(--color-ink) 52%, transparent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.page-studio-active .creative-sandbox-board-object strong,
body.page-studio-active .creative-sandbox-empty-state strong {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.2vw, 1.85rem);
  line-height: 1.05;
}

body.page-studio-active .creative-sandbox-board-object p {
  font-size: clamp(0.95rem, 0.8vw, 1.1rem);
  line-height: 1.18;
}

body.page-studio-active .creative-sandbox-empty-state {
  position: absolute;
  left: clamp(1rem, 6vw, 5rem);
  top: clamp(4rem, 16vh, 10rem);
  width: min(29rem, 100% - 2rem);
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
  border: 1px dashed color-mix(in srgb, var(--color-ink) 22%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, white 62%, transparent);
  color: color-mix(in srgb, var(--color-ink) 70%, transparent);
}

body.page-studio-active .creative-sandbox-empty-state--canvas {
  width: min(34rem, 100% - 2rem);
  padding: clamp(1.1rem, 1.8vw, 1.55rem);
  border-style: dashed;
  background: color-mix(in srgb, white 76%, var(--color-paper));
  box-shadow: 0 18px 38px color-mix(in srgb, var(--color-ink) 7%, transparent);
}

body.page-studio-active .creative-sandbox-empty-state--canvas p,
body.page-studio-active .creative-sandbox-empty-state--canvas small {
  margin: 0;
  color: color-mix(in srgb, var(--color-ink) 60%, transparent);
  line-height: 1.2;
}

body.page-studio-active .creative-sandbox-empty-state--canvas small {
  padding-top: 0.45rem;
  border-top: 1px dashed color-mix(in srgb, var(--color-ink) 15%, transparent);
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-empty-state--workspace {
  position: static;
  grid-column: 1/-1;
  width: 100%;
  max-width: 42rem;
  min-height: clamp(16rem, 31vh, 22rem);
  align-content: center;
  justify-self: center;
  margin-top: clamp(1rem, 4vh, 3rem);
  padding: clamp(1.2rem, 2vw, 1.75rem);
  border: 2px dashed color-mix(in srgb, var(--color-ink) 24%, transparent);
  border-radius: 1.35rem;
  background: color-mix(in srgb, white 78%, var(--color-paper));
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--color-ink) 18%, transparent);
  text-align: left;
}

body.page-studio-active .creative-sandbox-empty-state--workspace p {
  max-width: 30rem;
  color: color-mix(in srgb, var(--color-ink) 64%, transparent);
  font-size: clamp(0.98rem, 1vw, 1.15rem);
  line-height: 1.2;
}

body.page-studio-active .creative-sandbox-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

body.page-studio-active .creative-sandbox-empty-actions button {
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  font-weight: 900;
}

body.page-studio-active .creative-sandbox-quick-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

body.page-studio-active .creative-sandbox-planning-stack.is-build-active .creative-sandbox-quick-tools {
  gap: 0.45rem;
}

body.page-studio-active .creative-sandbox-quick-tools button,
body.page-studio-active .creative-sandbox-object-list button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 0.8rem;
  background: color-mix(in srgb, white 72%, var(--color-paper));
  font-weight: 900;
  text-align: left;
}

body.page-studio-active .creative-sandbox-planning-stack.is-build-active .creative-sandbox-quick-tools button {
  min-height: 2.35rem;
  padding: 0.5rem 0.65rem;
}

body.page-studio-active .creative-sandbox-quick-tools button:hover,
body.page-studio-active .creative-sandbox-quick-tools button:focus-visible,
body.page-studio-active .creative-sandbox-object-list button:hover,
body.page-studio-active .creative-sandbox-object-list button:focus-visible,
body.page-studio-active .creative-sandbox-object-list button.is-active {
  border-color: var(--color-ink);
  background: color-mix(in srgb, var(--color-sage) 14%, white);
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-sandbox-object-list {
  display: grid;
  gap: 0.45rem;
  max-height: 10rem;
  overflow: auto;
  padding-right: 0.15rem;
}

body.page-studio-active .creative-sandbox-object-list button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-object-inspector {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-sage) 10%, white);
}

body.page-studio-active .creative-sandbox-object-inspector label {
  display: grid;
  gap: 0.35rem;
}

body.page-studio-active .creative-sandbox-object-inspector label span {
  color: color-mix(in srgb, var(--color-ink) 58%, transparent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.page-studio-active .creative-sandbox-object-inspector input,
body.page-studio-active .creative-sandbox-object-inspector textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 0.75rem;
  background: white;
  padding: 0.7rem 0.8rem;
  color: var(--color-ink);
  outline: 3px solid transparent;
  outline-offset: 2px;
}

body.page-studio-active .creative-sandbox-object-inspector input:focus,
body.page-studio-active .creative-sandbox-object-inspector textarea:focus {
  border-color: var(--color-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-sage) 22%, transparent);
}

body.page-studio-active .creative-sandbox-object-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.page-studio-active .creative-sandbox-object-actions .creative-sandbox-small-btn {
  min-width: max-content;
  padding-inline: 0.85rem;
  white-space: nowrap;
}

body.page-studio-active .creative-sandbox-send {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: var(--color-ink);
  color: white;
  font-weight: 900;
}

@media (max-width: 900px) {
  body.page-studio-active .creative-sandbox-surface-objects {
    min-height: 620px;
  }
  body.page-studio-active .creative-sandbox-board-object {
    width: clamp(10rem, var(--w) * 1.2%, 28rem);
  }
}
@media (max-width: 560px) {
  body.page-studio-active .creative-sandbox-board-object,
  body.page-studio-active .creative-sandbox-empty-state,
  body.page-studio-active .creative-sandbox-surface-planning {
    position: static;
    width: 100%;
    transform: none;
  }
  body.page-studio-active .creative-sandbox-quick-tools {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  html:has(body.page-studio-active) {
    height: 100%;
    overflow: hidden;
  }
  body.page-studio-active {
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
  }
  body.page-studio-active #main-content {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    padding: 0 !important;
  }
  body.page-studio-active #creative-suite-view,
  body.page-studio-active .creative-suite-shell,
  body.page-studio-active .studio-export-shell {
    min-height: 0 !important;
    height: 100% !important;
  }
  body.page-studio-active .creative-sandbox-main {
    min-height: 0 !important;
    height: 100% !important;
    overflow: auto !important;
    padding: 0.8rem !important;
    padding-bottom: clamp(2rem, 10vh, 4rem) !important;
  }
}
@media (max-width: 560px) {
  body.page-studio-active .creative-sandbox-mode-switch {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    flex-wrap: initial;
    overflow: visible !important;
  }
  body.page-studio-active .creative-sandbox-mode-switch button {
    width: 100% !important;
    min-width: 0;
    flex: initial;
    white-space: normal;
    line-height: 1.05;
  }
  body.page-studio-active .creative-sandbox-guide-route .creative-sandbox-step-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    overflow: visible;
    padding-bottom: 0.25rem;
  }
  body.page-studio-active .creative-sandbox-guide-route .creative-sandbox-step {
    width: 100%;
    min-width: 0;
  }
  body.page-studio-active .creative-sandbox-guide-head {
    gap: 0.75rem;
    padding: 0.85rem;
  }
  body.page-studio-active .creative-sandbox-guide-head h2 {
    font-size: clamp(1.9rem, 10vw, 2.45rem);
  }
  body.page-studio-active .creative-sandbox-guide-panel {
    order: -1;
    overflow: visible;
  }
}
@media (max-width: 1023px) {
  body.page-studio-active {
    flex-direction: column !important;
  }
  body.page-studio-active .mobile-header {
    display: flex !important;
  }
  body.page-studio-active #main-sidebar {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(18rem, 100vw - 3rem) !important;
    max-width: calc(100vw - 3rem);
    transform: translateX(-100%) !important;
  }
  body.page-studio-active.mobile-nav-open #main-sidebar {
    transform: translateX(0) !important;
  }
  body.page-studio-active #main-sidebar .btn-modal-close {
    display: flex !important;
  }
  body.page-studio-active #mobile-nav-overlay {
    display: none !important;
  }
  body.page-studio-active.mobile-nav-open #mobile-nav-overlay {
    display: block !important;
  }
  body.page-studio-active #main-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.page-studio-active .creative-sandbox-filter-row {
    scroll-padding-inline: 1rem;
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  body.page-studio-active .creative-sandbox-filter-row button,
  body.page-studio-active .creative-sandbox-filter-label {
    flex: 0 0 auto;
  }
}
@media (max-width: 1024px) {
  body.page-studio-active .creative-sandbox-filter-row {
    flex-wrap: wrap;
    overflow: visible;
  }
  body.page-studio-active .creative-sandbox-filter-row button,
  body.page-studio-active .creative-sandbox-filter-label {
    flex: 0 1 auto;
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* UI/UX overhaul compatibility layer */
*:focus-visible {
  outline: 3px solid #6366f1 !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

button,
a,
[role=button] {
  min-width: 44px !important;
  min-height: 44px !important;
}

button {
  border: 1px solid rgba(99, 102, 241, 0.18);
}

input,
textarea,
select,
summary {
  min-height: 44px;
}

iconify-icon {
  --iconify-icon-stroke-width: 1.75;
}

.wobbly-card,
[class*=card],
[class*=Card],
body.page-studio-active .creative-sandbox-library-card,
body.page-studio-active .creative-sandbox-detail-panel,
body.page-studio-active .creative-sandbox-hub-hero,
body.page-studio-active .creative-sandbox-hub-panel,
body.page-studio-active .creative-sandbox-pinned-tools,
body.page-studio-active .creative-sandbox-pinned-tool,
body.page-studio-active .creative-sandbox-board-object,
body.page-studio-active .creative-sandbox-guide-route,
body.page-studio-active .creative-sandbox-guide-panel,
body.page-studio-active .creative-sandbox-guide-context,
.settings-auth-card,
.sidebar-account-card {
  border-width: 1px !important;
  border-color: rgba(99, 102, 241, 0.15) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.wobbly-btn,
.btn-surface,
.btn-toolbar,
.btn-toolbar-icon,
.btn-mobile-icon,
.btn-modal-close,
.btn-chip-action,
.btn-inline-action,
.btn-inline-link,
.btn-brand-accent {
  border-width: 1px !important;
  border-color: rgba(99, 102, 241, 0.28) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.btn-primary-fill,
.btn-accent-fill,
.btn-success-fill,
.creative-sandbox-workspace-action.btn-primary-fill {
  background: #6366f1 !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
}

.btn-surface,
.btn-toolbar,
.btn-toolbar-icon,
.btn-mobile-icon,
.btn-modal-close,
.creative-sandbox-workspace-action.btn-surface,
.creative-sandbox-detail-actions .btn-surface,
.creative-sandbox-overflow-menu summary {
  background: rgba(255, 255, 255, 0.78) !important;
  color: #312e81 !important;
}

.btn-brand-accent,
.nav-main-btn,
.nav-soon-btn,
.sidebar-nav-primary,
.sidebar-nav-secondary {
  background: rgba(99, 102, 241, 0.05) !important;
  color: #312e81 !important;
}

.btn-surface:hover,
.btn-surface:focus-visible,
.btn-toolbar:hover,
.btn-toolbar:focus-visible,
.btn-toolbar-icon:hover,
.btn-toolbar-icon:focus-visible,
.btn-brand-accent:hover,
.btn-brand-accent:focus-visible {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: #6366f1 !important;
  color: #312e81 !important;
}

.btn-danger-soft {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.25) !important;
  color: #991b1b !important;
}

.nav-main-btn.is-active,
.sidebar-nav-primary.is-active,
.creative-sandbox-mode-switch button.is-active,
body.page-studio-active .creative-sandbox-mode-switch button.is-active,
body.page-studio-active .creative-sandbox-library-card.is-active,
body.page-studio-active .creative-sandbox-step.is-active,
body.page-studio-active .creative-sandbox-chip.is-selected,
body.page-studio-active .creative-sandbox-pill.is-selected,
body.page-studio-active .creative-sandbox-time-option.is-selected,
body.page-studio-active .creative-sandbox-filter-row button.is-active {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: #6366f1 !important;
  color: #312e81 !important;
  box-shadow: 3px 3px 0 0 rgba(99, 102, 241, 0.22) !important;
}

.creative-sandbox-mode-switch button.is-active iconify-icon,
body.page-studio-active .creative-sandbox-mode-switch button.is-active iconify-icon {
  color: inherit !important;
}

[class*=empty-state],
.empty-state,
.empty-state-card,
body.page-studio-active .creative-sandbox-empty-state,
body.page-studio-active .creative-sandbox-pinned-empty {
  background: rgba(99, 102, 241, 0.03) !important;
  border: 1px dashed rgba(99, 102, 241, 0.2) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  text-align: center;
  color: #6366f1 !important;
  box-shadow: none !important;
}

.card-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  min-width: 0;
}

#de-grid.card-grid {
  overflow: visible !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  scroll-snap-type: none !important;
}

.creative-sandbox-workspace-head,
body.page-studio-active .creative-sandbox-workspace-head,
body.page-studio-active .creative-sandbox-hub-hero {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.page-studio-active .creative-sandbox-title-block h2 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.15rem, 1.35vw, 1.65rem);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-studio-active .creative-sandbox-step,
body.page-studio-active .creative-sandbox-step-copy,
body.page-studio-active .creative-sandbox-step-copy strong,
body.page-studio-active .creative-sandbox-step-copy small,
body.page-studio-active .creative-sandbox-object-list button span {
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
}

body.page-studio-active .creative-sandbox-step {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

body.page-studio-active .creative-sandbox-board-object--shape {
  border-width: 1px !important;
  background: rgba(99, 102, 241, 0.04) !important;
}

body.page-studio-active .creative-sandbox-library-layout {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
}

body.page-studio-active .creative-sandbox-detail-panel {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

body.page-studio-active .creative-sandbox-filter-row {
  overflow-x: auto;
  scroll-padding-inline: 1rem;
  padding-right: 2rem;
}

.logo-trigger,
.creative-sandbox-panel-link,
body.page-studio-active .creative-sandbox-mode-switch button {
  border: 1px solid rgba(99, 102, 241, 0.28) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  color: #312e81 !important;
}

.sidebar-collapse-toggle,
body.page-studio-active .creative-sandbox-focus-toggle,
body.page-studio-active .creative-sandbox-actions .btn-toolbar,
body.page-studio-active .creative-sandbox-actions .btn-toolbar-icon,
body.page-studio-active .creative-sandbox-mode-switch button,
body.page-studio-active .creative-sandbox-zoom {
  min-width: 44px !important;
  min-height: 44px !important;
  height: auto !important;
}

body.page-studio-active .creative-sandbox-filter-row::-webkit-scrollbar,
.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-bar {
  scrollbar-width: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.page-studio-active {
    flex-direction: row !important;
  }
  body.page-studio-active .mobile-header {
    display: none !important;
  }
  body.page-studio-active #main-sidebar {
    position: relative !important;
    inset: auto !important;
    width: 16rem !important;
    max-width: 16rem !important;
    transform: translateX(0) !important;
  }
  body.page-studio-active #mobile-nav-overlay {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  body.page-studio-active .creative-sandbox-library-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  body.page-studio-active .creative-sandbox-detail-panel {
    position: relative;
    inset: auto;
  }
}
@media (max-width: 768px) {
  button,
  a,
  [role=button] {
    min-width: 48px;
    min-height: 48px;
  }
  .card,
  .wobbly-card,
  .empty-state-card,
  .sidebar-account-card,
  body.page-studio-active .creative-sandbox-library-card,
  body.page-studio-active .creative-sandbox-hub-panel,
  body.page-studio-active .creative-sandbox-recent-project {
    padding: 16px;
    margin-bottom: 12px;
  }
  .filter-pill,
  body.page-studio-active .creative-sandbox-filter-row button {
    padding: 10px 20px;
  }
}
@media (max-width: 767px) {
  #main-sidebar,
  body.page-studio-active #main-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(22rem, 100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    height: 100svh !important;
    transform: translateX(-105%) !important;
    overflow-y: auto;
    z-index: 90;
  }
  body.mobile-nav-open #main-sidebar,
  body.page-studio-active.mobile-nav-open #main-sidebar {
    transform: translateX(0) !important;
  }
  body.mobile-nav-open #mobile-nav-overlay,
  body.page-studio-active.mobile-nav-open #mobile-nav-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(49, 46, 129, 0.4);
    backdrop-filter: blur(3px);
    z-index: 80;
  }
  #main-sidebar .nav-main-btn > span,
  #main-sidebar .nav-soon-btn > span,
  body.sidebar-collapsed #main-sidebar .nav-main-btn > span,
  body.sidebar-collapsed #main-sidebar .nav-soon-btn > span {
    display: inline-flex !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    overflow: visible !important;
  }
  .nav-main-btn,
  .nav-soon-btn {
    justify-content: flex-start !important;
  }
}
@media (max-width: 640px) {
  .tab-bar,
  body.page-studio-active .creative-sandbox-mode-switch {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tab-bar button,
  body.page-studio-active .creative-sandbox-mode-switch button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
  }
  .card-grid,
  #shelf-grid.card-grid,
  #fyc-categories.card-grid,
  #de-grid.card-grid,
  body.page-studio-active .creative-sandbox-library-grid.card-grid,
  body.page-studio-active .creative-sandbox-recent-grid.card-grid {
    grid-template-columns: 1fr !important;
  }
}
