:root {
  --bg: #090a0c;
  --panel: #111318;
  --ink: #f4f1e8;
  --muted: #8f949d;
  --line: #2a2d33;
  --accent: #d8a84e;
  --green: #59bd83;
  --shadow: 0 22px 70px rgba(0, 0, 0, .55);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
  color: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #0d0f12;
  color: #fff;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
}

.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 26px;
  font-family: Manrope, Inter, sans-serif;
}

.brand-full-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(216, 168, 78, .20));
}

.sidebar nav {
  display: grid;
  gap: 4px;
}

.nav {
  border: 0;
  background: transparent;
  color: #aeb4bd;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border-radius: 6px;
  text-align: left;
  text-decoration: none;
  font-weight: 700;
}

.nav:hover,
.nav.active {
  background: #252119;
  color: #fff;
}

.nav svg,
.primary svg,
.icon-link svg {
  width: 18px;
  height: 18px;
}

.sidebar-card {
  margin-top: auto;
  border: 1px solid var(--line);
  background: #121419;
  border-radius: 14px;
  padding: 13px;
  display: grid;
  gap: 4px;
}

.sidebar-card span,
.sidebar-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sidebar-card strong {
  font: 800 13px Manrope, Inter, sans-serif;
}

.main {
  padding: 34px clamp(20px, 4vw, 64px);
  max-width: 1500px;
  width: 100%;
  margin: auto;
}

.greeting-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.greeting-title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.greeting-title > svg {
  width: 25px;
  height: 25px;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(216, 168, 78, .35));
  margin-top: 4px;
}

.greeting-title h1 {
  margin: 0;
  font: 800 clamp(28px, 4vw, 42px) Manrope, Inter, sans-serif;
  letter-spacing: 0;
}

.greeting-title p {
  margin: 7px 0 0;
  color: #b7bbc3;
  font-size: 15px;
  line-height: 1.55;
}

.eyebrow {
  font-size: 11px;
  font-weight: 900;
  color: var(--accent);
  margin: 0;
  letter-spacing: .14em;
}

.production-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border: 1px solid #3a3327;
  background: radial-gradient(circle at 82% 20%, rgba(216, 168, 78, .18), transparent 34%), linear-gradient(135deg, #13151a, #0b0c0f);
  box-shadow: var(--shadow);
}

.production-hero h2 {
  font: 800 clamp(28px, 4vw, 46px) Manrope, Inter, sans-serif;
  margin: 6px 0 10px;
  letter-spacing: 0;
  line-height: 1.05;
}

.production-hero p:not(.eyebrow) {
  color: #b7bbc3;
  line-height: 1.65;
  max-width: 660px;
  margin: 0;
}

.production-orb {
  display: grid;
  place-items: center;
}

.production-orb img {
  width: 138px;
  height: 138px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 26px rgba(216, 168, 78, .36));
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(340px, 520px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.composer,
.preview-panel,
.api-section {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: 0 3px 14px rgba(20, 24, 32, .05);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

textarea,
input,
select {
  border: 1px solid var(--line);
  background: #16181d;
  color: var(--ink);
  padding: 11px 12px;
  border-radius: 5px;
  outline: none;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 168, 78, .12);
}

textarea {
  width: 100%;
  font-size: 16px;
  line-height: 1.55;
  resize: vertical;
}

.prompt-label {
  font: 800 20px Manrope, Inter, sans-serif;
  color: var(--ink);
  margin-bottom: 10px;
}

.create-guidance {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 0;
  line-height: 1.55;
}

.composer-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.composer-row.two {
  grid-template-columns: minmax(0, 1fr) 94px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.asset-card {
  border: 1px solid var(--line);
  background: #121419;
  border-radius: 8px;
  padding: 13px;
}

.asset-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 800 13px Manrope, Inter, sans-serif;
}

.asset-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.asset-card input[type="file"] {
  width: 100%;
  padding: 9px;
  font-size: 11px;
}

.asset-card small {
  color: var(--muted);
  line-height: 1.45;
}

input[type="color"] {
  min-height: 43px;
  padding: 4px;
}

.composer-actions {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.composer-actions span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

code {
  color: #f2d18b;
}

.primary {
  border: 0;
  background: var(--accent);
  color: #090a0c;
  padding: 11px 16px;
  border-radius: 5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.section {
  margin-top: 34px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head h2 {
  font: 800 20px Manrope, Inter, sans-serif;
  margin: 0;
}

.section-head p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 13px;
}

.icon-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 5px;
  color: var(--ink);
  text-decoration: none;
}

.preview-frame {
  display: grid;
  place-items: center;
  min-height: 390px;
  border: 1px solid #3a3327;
  background: radial-gradient(circle at 50% 30%, rgba(216, 168, 78, .10), transparent 34%), #0b0c0f;
  overflow: hidden;
}

#preview {
  display: block;
  max-width: 100%;
  max-height: 62vh;
  background: #090a0c;
}

pre {
  margin: 14px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  background: #0d0f12;
  color: #cbd1da;
  border-radius: 5px;
  padding: 14px;
  line-height: 1.5;
  font-size: 12px;
}

.api-section pre {
  margin-top: 0;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 72px 1fr;
  }

  .brand-full-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    object-position: left center;
    border-radius: 50%;
  }

  .nav {
    justify-content: center;
  }

  .nav span,
  .sidebar-card {
    display: none;
  }

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

@media (max-width: 700px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 20;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 62px;
    flex-direction: row;
    padding: 7px;
  }

  .identity {
    display: none;
  }

  .sidebar nav {
    display: flex;
    width: 100%;
    justify-content: space-around;
  }

  .nav {
    width: 64px;
  }

  .main {
    padding: 22px 14px 84px;
  }

  .production-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .production-orb {
    display: none;
  }

  .composer,
  .preview-panel,
  .api-section {
    padding: 16px;
  }

  .composer-row,
  .composer-row.two,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-frame {
    min-height: 240px;
  }
}
