:root {
  color-scheme: light;
  --navy: #123d53;
  --navy-deep: #0f3346;
  --cream: #e9ddb5;
  --paper: #f8f4ea;
  --mint: #c8dfd8;
  --seafoam: #79d2c0;
  --panel-border: rgba(18, 61, 83, 0.12);
  --panel-shadow: 0 8px 22px rgba(18, 61, 83, 0.07);
  --sidebar-shadow: 10px 0 24px rgba(18, 61, 83, 0.1);
  --radius-panel: 12px;
  --radius-soft: 9px;
  --radius-tight: 7px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ece8df 0%, #f6f2e9 48%, #f8f4ea 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(233, 221, 181, 0.22), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(121, 210, 192, 0.09), transparent 18%);
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
}

.studio-shell {
  font-size: 14px;
  line-height: 1.35;
}

.studio-grid {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar-panel {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 16px !important;
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  box-shadow: var(--sidebar-shadow);
}

.sidebar-panel::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 128px;
  height: 52px;
  background: rgba(233, 221, 181, 0.18);
  border-bottom-right-radius: 14px;
}

.sidebar-panel .font-display.text-3xl {
  font-size: 2.1rem !important;
}

.sidebar-panel .mt-2 {
  margin-top: 0.35rem !important;
}

.sidebar-panel .mt-4 {
  margin-top: 0.7rem !important;
}

.sidebar-panel .mt-8 {
  margin-top: 1rem !important;
}

.sidebar-panel .pt-8 {
  padding-top: 0.9rem !important;
}

.sidebar-panel .badge-glow,
.sidebar-panel > .rounded-3xl,
.sidebar-panel > .rounded-2xl {
  padding: 0.8rem !important;
}

.sidebar-panel nav {
  display: grid;
  row-gap: 0.4rem;
  margin-top: 0.95rem !important;
}

.sidebar-panel .nav-pill {
  padding: 0.55rem 0.7rem !important;
  font-size: 13px !important;
}

.sidebar-panel .nav-pill-icon {
  width: 2rem !important;
  height: 2rem !important;
  font-size: 11px !important;
}

.sidebar-panel .grid.grid-cols-3 {
  gap: 0.35rem !important;
  margin-top: 0.7rem !important;
  font-size: 11px !important;
}

.sidebar-panel .grid.grid-cols-3 > div {
  padding: 0.55rem 0.2rem !important;
}

.sidebar-panel .grid.grid-cols-3 .text-xl {
  font-size: 1.5rem !important;
}

.sidebar-panel .text-lg {
  font-size: 0.9rem !important;
}

.sidebar-panel .text-sm {
  font-size: 0.82rem !important;
}

.sidebar-panel .text-xs {
  font-size: 0.68rem !important;
}

.main-panel {
  min-width: 0;
  padding: 10px 12px 12px !important;
}

.main-panel > .panel-card {
  padding: 12px 14px !important;
}

.main-panel > .panel-card > header {
  gap: 0.75rem !important;
  padding-bottom: 0.9rem !important;
}

.main-panel > .panel-card > header + div {
  margin-top: 0.85rem !important;
}

.main-panel > .panel-card h1.font-display {
  font-size: 3rem !important;
}

.main-panel > .panel-card header p.text-xs {
  font-size: 0.72rem !important;
}

.main-panel > .panel-card header p.text-sm {
  font-size: 0.82rem !important;
}

.main-panel > .panel-card input[type="search"] {
  min-width: 340px;
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
  font-size: 13px !important;
}

.main-panel > .panel-card button[data-action="focus-create-project"] {
  padding: 0.72rem 1rem !important;
  font-size: 13px !important;
}

.panel-card {
  border: 1px solid var(--panel-border);
  background: rgba(248, 244, 234, 0.96);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-panel);
}

.soft-card {
  border: 1px solid rgba(18, 61, 83, 0.08);
  background: rgba(255, 253, 248, 0.88);
  border-radius: var(--radius-soft);
}

.mesh-card {
  background: linear-gradient(180deg, rgba(200, 223, 216, 0.92), rgba(240, 247, 243, 0.95));
  border-radius: var(--radius-panel);
}

.poster-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-panel);
}

.poster-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: var(--radius-tight);
  border: 1px dashed rgba(18, 61, 83, 0.16);
  pointer-events: none;
}

.poster-fill {
  background:
    linear-gradient(180deg, rgba(233, 221, 181, 0.9), rgba(248, 244, 234, 0.94)),
    linear-gradient(180deg, #f5ecd1 0%, #efe2b9 100%);
  border-radius: var(--radius-tight);
}

.badge-glow {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.empty-state {
  border: 1px dashed rgba(18, 61, 83, 0.18);
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-soft);
}

.nav-pill[data-active="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fffdf7;
}

.nav-pill[data-active="true"] .nav-pill-icon {
  background: rgba(255, 255, 255, 0.12);
}

.nav-pill-icon {
  border-radius: var(--radius-tight);
}

.stat-strip {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-panel);
  padding: 1.1rem !important;
}

.stat-strip .mt-3 {
  margin-top: 0.5rem !important;
}

.stat-strip .mt-6 {
  margin-top: 0.9rem !important;
}

.stat-strip .text-xs {
  font-size: 0.72rem !important;
}

.stat-strip .text-sm {
  font-size: 0.82rem !important;
}

.stat-strip .text-lg {
  font-size: 1rem !important;
}

.stat-strip .text-3xl {
  font-size: 1.9rem !important;
}

.stat-strip .font-display.text-3xl {
  font-size: 2.05rem !important;
  max-width: 670px;
}

.stat-strip .rounded-3xl,
.stat-strip .rounded-2xl {
  padding: 0.85rem !important;
}

.text-balance {
  text-wrap: balance;
}

.studio-shell button,
.studio-shell input,
.studio-shell select,
.studio-shell textarea {
  border-radius: var(--radius-soft);
}

.studio-shell [class*="rounded-[32px]"],
.studio-shell [class*="rounded-[28px]"],
.studio-shell [class*="rounded-3xl"] {
  border-radius: var(--radius-panel) !important;
}

.studio-shell [class*="rounded-[24px]"],
.studio-shell [class*="rounded-[22px]"],
.studio-shell [class*="rounded-2xl"],
.studio-shell [class*="rounded-full"] {
  border-radius: var(--radius-soft) !important;
}

.studio-shell [class*="rounded-xl"] {
  border-radius: var(--radius-tight) !important;
}

.page-header {
  gap: 0.75rem !important;
}

.page-header-copy {
  width: 100%;
  min-width: 0;
}

.page-header-project {
  padding-bottom: 0.75rem !important;
}

.page-header-project h1.font-display {
  font-size: 2.45rem !important;
}

.project-header-block {
  display: grid;
  gap: 0.85rem;
}

.project-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.project-header-copy-inner {
  min-width: 0;
  flex: 1 1 420px;
}

.project-header-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(18, 61, 83, 0.55);
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
}

.project-header-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.project-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-kpi {
  min-width: 92px;
  border: 1px solid rgba(18, 61, 83, 0.1);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.7rem 0.85rem;
}

.project-kpi span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(18, 61, 83, 0.48);
}

.project-kpi strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--navy-deep);
}

.project-details-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.project-details-form label,
.studio-editor-form label {
  display: grid;
  gap: 0.45rem;
}

.project-details-form span,
.studio-editor-form span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(18, 61, 83, 0.52);
}

.project-details-form textarea,
.studio-editor-form input,
.studio-editor-form select,
.studio-editor-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 61, 83, 0.12);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.8rem 0.9rem;
  color: var(--navy-deep);
}

.project-model-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-assets-panel {
  display: grid;
  gap: 1.25rem;
}

.project-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.project-action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.asset-grid-expanded {
  margin-top: 0;
}

.studio-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
}

.studio-workspace-visuals {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.studio-selected-preview {
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(18, 61, 83, 0.1);
  border-radius: var(--radius-soft);
  background: linear-gradient(180deg, rgba(233, 221, 181, 0.88), rgba(248, 244, 234, 0.96));
}

.studio-selected-preview .asset-preview-image,
.studio-thumb-media .asset-preview-image {
  min-height: 100%;
}

.studio-thumb-grid {
  display: grid;
  gap: 0.7rem;
}

.studio-thumb {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid rgba(18, 61, 83, 0.09);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.studio-thumb-active {
  border-color: rgba(18, 61, 83, 0.22);
  box-shadow: inset 0 0 0 1px rgba(18, 61, 83, 0.12);
}

.studio-thumb-media {
  overflow: hidden;
  min-height: 64px;
  border-radius: calc(var(--radius-soft) - 2px);
  background: linear-gradient(180deg, rgba(233, 221, 181, 0.88), rgba(248, 244, 234, 0.96));
}

.studio-thumb-copy {
  min-width: 0;
}

.studio-thumb-copy p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy-deep);
  word-break: break-word;
}

.studio-thumb-index {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(18, 61, 83, 0.46);
}

.studio-workspace-editor {
  min-width: 0;
}

.studio-editor-shell {
  display: grid;
  gap: 1rem;
}

.project-drop-overlay {
  position: fixed;
  inset: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(18, 61, 83, 0.28);
  border-radius: 22px;
  background: rgba(248, 244, 234, 0.88);
  color: var(--navy-deep);
  font-family: Fraunces, serif;
  font-size: 2rem;
  text-align: center;
  pointer-events: none;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.asset-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.asset-card-active {
  border-color: rgba(18, 61, 83, 0.24);
  box-shadow: inset 0 0 0 1px rgba(18, 61, 83, 0.12), var(--panel-shadow);
}

.asset-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.asset-preview,
.studio-editor-preview {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(233, 221, 181, 0.88), rgba(248, 244, 234, 0.96));
}

.asset-preview {
  min-height: 180px;
  border-bottom: 1px solid rgba(18, 61, 83, 0.08);
}

.studio-editor-preview {
  min-height: 240px;
  border: 1px solid rgba(18, 61, 83, 0.1);
  border-radius: var(--radius-soft);
}

.asset-preview-image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.asset-preview-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  width: 100%;
  font-family: Fraunces, serif;
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: rgba(18, 61, 83, 0.46);
}

.asset-card-body {
  padding: 1rem;
}

.asset-card-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy-deep);
  word-break: break-word;
}

.asset-card-subtle {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(18, 61, 83, 0.56);
  word-break: break-all;
}

.asset-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.studio-editor {
  display: grid;
  gap: 1rem;
}

.studio-editor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.studio-editor-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

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

.studio-editor-wide,
.studio-editor-footer {
  grid-column: 1 / -1;
}

.studio-editor-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.studio-editor-footer p {
  margin: 0;
  max-width: 560px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(18, 61, 83, 0.62);
}
@media (max-width: 1024px) {
  .project-details-form,
  .studio-editor-form {
    grid-template-columns: 1fr;
  }

  .project-header-title-row {
    align-items: flex-start;
  }

  .studio-editor-meta {
    align-items: flex-start;
  }

  .studio-editor-preview {
    min-height: 200px;
  }

  .studio-workspace {
    grid-template-columns: 1fr;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-panel {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 84vw);
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .studio-shell[data-sidebar-open="true"] .sidebar-panel {
    transform: translateX(0);
  }

  .main-panel {
    padding: 10px !important;
  }

  .main-panel > .panel-card input[type="search"] {
    min-width: 100%;
  }

  .mobile-scrim {
    position: fixed;
    inset: 0;
    background: rgba(18, 61, 83, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 20;
  }

  .studio-shell[data-sidebar-open="true"] .mobile-scrim {
    opacity: 1;
    pointer-events: auto;
  }
}



