:root {
  color-scheme:dark;
  --bg:#101110;
  --panel:#191b19;
  --line:#30322f;
  --text:#f4f5ed;
  --muted:#959b91;
  --lime:#d4f879;
  --side:224px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:14px 'DM Sans',sans-serif
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
a {
  color:inherit;
  text-decoration:none
}
button {
  cursor:pointer
}
button:disabled {
  cursor:not-allowed;
  opacity:.45
}
button,input,select,textarea {
  outline-offset:4px
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:2px solid var(--lime)
}
[hidden] {
  display:none!important
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip {
  position:fixed;
  top:-60px;
  left:10px;
  background:var(--lime);
  color:#111;
  padding:12px;
  z-index:100
}
.skip:focus {
  top:10px
}
.sidebar {
  width:var(--side);
  position:fixed;
  inset:0 auto 0 0;
  background:#151614;
  border-right:1px solid #292b27;
  padding:32px 18px 20px;
  display:flex;
  flex-direction:column;
  z-index:20
}
.wordmark {
  font:700 28px 'Space Grotesk',sans-serif;
  letter-spacing:-1.5px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 10px
}
.brand-symbol {
  background:var(--lime);
  color:#171a12;
  width:33px;
  height:33px;
  border-radius:50% 50% 10% 50%;
  display:grid;
  place-items:center;
  font-size:31px;
  line-height:1;
  transform:rotate(-12deg)
}
.beta {
  font:600 9px 'DM Sans',sans-serif;
  border:1px solid #515944;
  border-radius:4px;
  padding:3px 5px;
  letter-spacing:1px;
  margin-left:2px;
  color:var(--lime)
}
.back-link {
  font-size:11px;
  color:var(--muted);
  margin:22px 10px 42px
}
.back-link:hover,.text-button:hover {
  color:var(--lime)
}
.nav-label,.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:2px;
  color:var(--muted)
}
.nav-label {
  padding-left:12px;
  margin-bottom:12px
}
.side-nav {
  display:grid;
  gap:7px
}
.side-nav a {
  padding:13px 12px;
  border-radius:7px;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:13px;
  color:#b3b8ad
}
.side-nav a>span:first-child {
  font-size:19px;
  width:19px;
  text-align:center
}
.side-nav a.active {
  color:var(--lime);
  background:#2a3220
}
.side-nav a:hover {
  background:#242721
}
.nav-new {
  font-size:8px;
  letter-spacing:.8px;
  margin-left:auto;
  border:1px solid #5a6e37;
  padding:3px;
  border-radius:3px
}
.count {
  margin-left:auto;
  font-size:10px
}
.sidebar-bottom {
  margin-top:auto
}
.model-note {
  margin:30px 10px;
  font-size:9px;
  letter-spacing:1px;
  color:#bcc7a7
}
.tiny-dot {
  display:inline-block;
  background:var(--lime);
  width:6px;
  height:6px;
  border-radius:50%;
  flex-shrink:0
}
.model-note .tiny-dot {
  margin-right:6px
}
.model-note p {
  font-size:11px;
  line-height:1.8;
  letter-spacing:0;
  color:#818976
}
.settings-link {
  display:flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  padding:15px 10px;
  color:#afb5a8
}
.settings-link.active {
  color:var(--lime)
}
.profile {
  border-top:1px solid var(--line);
  display:flex;
  gap:10px;
  padding:20px 8px 0;
  font-size:11px;
  align-items:center
}
.avatar {
  background:#30352b;
  border:1px solid #505a43;
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  border-radius:50%;
  color:var(--lime)
}
small {
  display:block;
  color:var(--muted);
  font-size:11px;
  line-height:1.6
}
.profile small {
  font-size:10px
}
.app-shell {
  margin-left:var(--side)
}
.topbar {
  height:74px;
  padding:0 42px;
  border-bottom:1px solid #292b27;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.breadcrumb {
  font-size:12px;
  color:#9da394;
  display:flex;
  gap:17px;
  align-items:center
}
.breadcrumb strong {
  color:#ddd;
  font-weight:500
}
.breadcrumb>span {
  color:#52594a
}
.top-actions {
  display:flex;
  align-items:center;
  gap:24px
}
.development {
  color:#969e8b;
  font-size:9px;
  letter-spacing:1.4px
}
.connection-pill {
  border:1px solid #373c31;
  padding:8px 11px;
  border-radius:20px;
  font-size:10px;
  display:flex;
  gap:7px;
  align-items:center;
  color:#bdc3b4
}
.connection-pill i {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#8b907f
}
.connection-pill.connected i {
  background:var(--lime)
}
main {
  max-width:1660px;
  margin:auto;
  padding:30px 42px 0
}
.hero {
  min-height:365px;
  position:relative;
  border:1px solid #454b3e;
  border-radius:13px;
  overflow:hidden;
  background:#435445 url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1800&q=85') center 52%/cover
}
.hero-shade {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(10,24,15,.91),rgba(10,24,15,.48) 45%,rgba(10,24,15,.08)),linear-gradient(0deg,rgba(10,17,12,.55),transparent 50%)
}
.hero-copy {
  position:relative;
  padding:40px 44px;
  z-index:1
}
.hero .eyebrow {
  color:#d9e5c8;
  font-size:9px;
  letter-spacing:2.2px
}
.hero h1 {
  font:500 clamp(38px,4.1vw,64px)/1.04 'Space Grotesk',sans-serif;
  letter-spacing:-2.7px;
  margin:20px 0 15px
}
.hero h1 span {
  color:var(--lime)
}
.hero-copy>p:not(.eyebrow) {
  font-size:12px;
  line-height:1.8;
  color:#d4dacd
}
.light-button {
  background:var(--lime);
  color:#1b2113;
  border:0;
  border-radius:6px;
  padding:12px 18px;
  font-weight:700;
  font-size:11px;
  margin-top:8px;
  display:inline-flex;
  gap:30px
}
.hero-caption {
  position:absolute;
  right:30px;
  bottom:32px;
  font-size:8px;
  letter-spacing:1.5px;
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  max-width:260px
}
.hero-caption small {
  width:100%;
  font-size:9px;
  color:#d1d6c7;
  letter-spacing:0;
  padding-left:17px
}
.outline-dot {
  width:7px;
  height:7px;
  border:1px solid #e9f3d9;
  border-radius:50%;
  margin-top:2px
}
.hero-number {
  position:absolute;
  top:28px;
  right:30px;
  font-size:8px;
  letter-spacing:1.5px;
  color:#e0e6d6
}
.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin:36px 0 20px
}
.section-heading .eyebrow {
  font-size:8px;
  margin:0 0 9px
}
.section-heading h2 {
  font:500 24px 'Space Grotesk',sans-serif;
  letter-spacing:-.8px;
  margin:0
}
.muted {
  color:var(--muted);
  line-height:1.7
}
.small {
  font-size:11px
}
.studio-grid {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:20px
}
.panel {
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel)
}
.composer {
  padding:21px
}
.mode-tabs {
  display:flex;
  border-bottom:1px solid #35382f;
  margin:-2px 0 21px;
  gap:23px
}
.mode-tabs button {
  background:none;
  border:0;
  color:var(--muted);
  font-size:12px;
  padding:5px 0 16px;
  border-bottom:2px solid transparent
}
.mode-tabs button.active {
  color:var(--lime);
  border-bottom-color:var(--lime)
}
.form-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px
}
h3 {
  font-size:13px;
  font-weight:600;
  margin:0
}
.text-button {
  font-size:11px;
  color:#c8d1b8;
  background:none;
  border:0;
  padding:0;
  line-height:1.7
}
.form-heading .text-button {
  font-size:10px
}
textarea,input,select {
  background:#111410;
  color:var(--text);
  border:1px solid #363b30;
  border-radius:6px;
  padding:11px;
  width:100%;
  min-width:0
}
textarea {
  resize:vertical;
  line-height:1.8;
  font-size:12px
}
textarea::placeholder,input::placeholder {
  color:#78816e
}
#prompt {
  border-color:#3c4433;
  min-height:155px
}
.prompt-footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  font-size:9px;
  color:#808977;
  margin:8px 0 21px
}
.prompt-footer>span:last-child {
  white-space:nowrap
}
.settings-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
label {
  display:block;
  font-size:10px;
  color:#aeb7a1
}
label input,label select,label textarea {
  margin-top:8px
}
select {
  appearance:auto;
  font-size:11px;
  padding:11px 8px
}
.audio-row {
  border-top:1px solid #30352a;
  border-bottom:1px solid #30352a;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 0;
  margin:20px 0;
  gap:20px
}
.audio-row strong {
  font-size:11px
}
.audio-row small {
  font-size:10px;
  margin-top:4px
}
.switch {
  position:relative;
  width:32px;
  min-width:32px;
  height:19px;
  display:block
}
.switch input {
  position:absolute;
  opacity:0;
  width:100%;
  height:100%;
  margin:0;
  cursor:pointer
}
.switch>span:not(.sr-only) {
  position:absolute;
  inset:0;
  border-radius:20px;
  background:#49513f;
  pointer-events:none
}
.switch>span:not(.sr-only):after {
  content:'';
  position:absolute;
  left:3px;
  top:3px;
  width:13px;
  height:13px;
  background:#d8ddcf;
  border-radius:50%;
  transition:transform .2s
}
.switch input:checked+span {
  background:var(--lime)
}
.switch input:checked+span:after {
  background:#26311a;
  transform:translateX(13px)
}
.switch input:focus-visible+span {
  outline:2px solid white;
  outline-offset:4px
}
summary {
  cursor:pointer;
  font-size:11px;
  color:#c4cdb8;
  list-style:none
}
summary::-webkit-details-marker {
  display:none
}
.project-details summary {
  display:flex;
  justify-content:space-between
}
.project-details[open] summary {
  margin-bottom:15px
}
.project-details label {
  margin:12px 0
}
.composer-actions {
  display:flex;
  gap:10px;
  margin-top:23px
}
.primary-button,.secondary-button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  padding:12px 17px;
  border-radius:6px;
  font-size:11px;
  font-weight:700;
  border:1px solid transparent;
  line-height:1.5
}
.primary-button {
  background:var(--lime);
  color:#202717
}
.primary-button:hover,.light-button:hover {
  background:#e2ffa1
}
.secondary-button {
  background:#24291f;
  color:#d4ddc6;
  border-color:#3a4330
}
.secondary-button:hover {
  background:#323b2a
}
.composer-actions .primary-button {
  flex:1;
  justify-content:space-between
}
.form-hint {
  font-size:9px;
  line-height:1.8;
  color:#969f89;
  margin:12px 0 0
}
.preview-panel {
  padding:20px
}
.preview-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px
}
.badge {
  font-size:7px;
  letter-spacing:.7px;
  border:1px solid #46513a;
  color:#c0d4a2;
  padding:5px 7px;
  border-radius:4px;
  display:inline-block;
  line-height:1.5
}
.preview-stage {
  aspect-ratio:16/10;
  min-height:220px;
  border-radius:6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:radial-gradient(ellipse at 50% 40%,#2c3925 0,transparent 65%),#11170f;
  position:relative;
  overflow:hidden;
  padding:25px 18px
}
.preview-stage:before {
  content:'';
  position:absolute;
  inset:0;
  background-image:linear-gradient(#becb9b06 1px,transparent 1px),linear-gradient(90deg,#becb9b06 1px,transparent 1px);
  background-size:28px 28px;
  pointer-events:none
}
.preview-icon {
  font-size:30px;
  color:var(--lime);
  border:1px solid #64764e;
  border-radius:50%;
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  position:relative
}
.preview-stage h3 {
  font-size:13px;
  position:relative
}
.preview-stage p {
  font-size:11px;
  line-height:1.8;
  color:#9ea890;
  position:relative
}
.preview-tags {
  display:flex;
  gap:6px;
  margin-top:12px;
  position:relative
}
.preview-tags span {
  font-size:8px;
  letter-spacing:.8px;
  padding:5px 8px;
  background:#202b1b;
  border:1px solid #3a4830;
  border-radius:3px;
  color:#a8bb92
}
.frame-corners {
  position:absolute;
  inset:14px;
  border:1px solid #4d5d3933;
  pointer-events:none
}
.preview-stage video {
  width:100%;
  max-height:430px;
  position:relative;
  z-index:1;
  background:#000
}
.preview-stage:has(video) {
  padding:0;
  aspect-ratio:auto;
  min-height:250px
}
.preview-bottom {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:9px;
  color:#a4b190;
  margin-top:17px;
  line-height:1.7
}
.preview-bottom .tiny-dot {
  width:4px;
  height:4px
}
#result-actions {
  padding-top:15px
}
.direction-card {
  display:flex;
  gap:15px;
  padding:22px 5px;
  border-bottom:1px solid #30342b
}
.direction-icon {
  font-size:28px;
  color:var(--lime)
}
.direction-card h3 {
  font-size:12px
}
.direction-card p {
  font-size:11px;
  line-height:1.8;
  color:#9ca88e;
  max-width:300px;
  margin:8px 0
}
.direction-card .text-button {
  font-size:10px
}
.session-note {
  display:flex;
  gap:12px;
  padding:12px 6px;
  color:#758368;
  font-size:11px;
  line-height:1.8
}
.session-note>span {
  font-size:23px
}
.session-note p {
  margin:0
}
.preset-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
.preset-card {
  background:#1a1d17;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  text-align:left;
  color:var(--text);
  padding:0;
  position:relative;
  transition:transform .2s,border-color .2s
}
.preset-card:hover {
  transform:translateY(-3px);
  border-color:#829e5b
}
.preset-image {
  height:166px;
  position:relative;
  overflow:hidden;
  background:#293522
}
.preset-image img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s;
  opacity:.85
}
.preset-card:hover img {
  transform:scale(1.04)
}
.preset-image:after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,#0008,transparent 70%)
}
.preset-category {
  position:absolute;
  top:12px;
  left:12px;
  background:#101810aa;
  backdrop-filter:blur(8px);
  padding:5px 7px;
  font-size:8px;
  border-radius:4px;
  z-index:1
}
.preset-use {
  position:absolute;
  bottom:12px;
  right:12px;
  font-size:16px;
  z-index:1
}
.preset-copy {
  padding:15px
}
.preset-copy h3 {
  font-size:12px
}
.preset-copy p {
  font-size:10px;
  color:var(--muted);
  margin:6px 0 0
}
.page-heading {
  padding:28px 0 35px
}
.page-heading h1 {
  font:500 clamp(30px,4vw,48px)/1.15 'Space Grotesk',sans-serif;
  letter-spacing:-1.8px;
  margin:15px 0
}
.page-heading>p,.page-heading>div>p:not(.eyebrow) {
  color:var(--muted);
  line-height:1.8;
  font-size:13px
}
.filter-row {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:25px
}
.chip {
  border:1px solid #414936;
  background:#1c2118;
  color:#a8b39b;
  border-radius:24px;
  padding:9px 16px;
  font-size:11px
}
.chip.active {
  background:var(--lime);
  color:#202719;
  border-color:var(--lime)
}
.discover-grid {
  row-gap:24px
}
.discover-grid .preset-image {
  height:220px
}
.heading-split {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}
.library-toolbar {
  display:flex;
  gap:15px;
  margin-bottom:25px
}
.search {
  position:relative;
  flex:1
}
.search span {
  position:absolute;
  top:10px;
  left:12px;
  font-size:23px
}
.search input {
  margin:0;
  padding-left:40px;
  font-size:12px
}
.library-toolbar>select {
  width:175px
}
.library-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-bottom:25px
}
.empty-state {
  grid-column:1/-1;
  min-height:310px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px dashed #46523a;
  border-radius:12px;
  background:radial-gradient(ellipse at center,#26321e44,transparent)
}
.empty-state>span {
  font-size:40px;
  color:var(--lime);
  margin-bottom:20px
}
.empty-state p {
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  max-width:340px
}
.library-card {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
  min-width:0
}
.library-cover {
  height:155px;
  background:radial-gradient(ellipse at 70% 0,#475f34,transparent),linear-gradient(135deg,#2a3422,#111610);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  width:100%;
  border:0;
  color:var(--lime);
  font-size:36px;
  overflow:hidden
}
.library-cover img {
  width:100%;
  height:100%;
  object-fit:cover
}
.library-cover .badge {
  position:absolute;
  bottom:10px;
  left:10px;
  background:#111a0ddd
}
.library-body {
  padding:15px
}
.library-body h3 {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.library-body p {
  font-size:10px;
  color:var(--muted);
  line-height:1.8;
  margin:7px 0
}
.library-card-actions {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid #323a2b;
  padding-top:10px;
  margin-top:10px
}
.icon-button {
  font-size:18px;
  background:none;
  color:#c3d0b1;
  border:0;
  padding:4px 8px;
  border-radius:4px
}
.icon-button:hover {
  background:#37452a
}
.favorite.active {
  color:var(--lime)
}
.models-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px
}
.model-card {
  position:relative;
  padding:30px;
  border:1px solid #50623e;
  border-radius:12px;
  background:radial-gradient(ellipse at top right,#4e6b2c55,transparent 65%),#1a2116
}
.model-card.fast {
  background:radial-gradient(ellipse at top right,#2a4d4e66,transparent 65%),#17201c;
  border-color:#3c5750
}
.model-monogram {
  display:flex;
  align-items:flex-end;
  font:700 76px/1 'Space Grotesk',sans-serif;
  letter-spacing:-8px;
  color:var(--lime);
  margin-bottom:20px
}
.model-monogram>span {
  font:500 10px 'DM Sans',sans-serif;
  letter-spacing:2px;
  margin:0 0 7px 15px
}
.model-card>.badge {
  position:absolute;
  top:30px;
  right:25px
}
.model-card h2 {
  font:500 28px 'Space Grotesk',sans-serif;
  margin:24px 0 12px;
  letter-spacing:-1px
}
.model-card p {
  color:#aebba1;
  font-size:12px;
  line-height:1.9;
  max-width:300px
}
.model-features {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:25px 0
}
.model-features>span {
  border:1px solid #45563a;
  padding:6px 9px;
  border-radius:5px;
  color:#bfcbaf;
  font-size:10px
}
.future-models {
  display:flex;
  align-items:center;
  gap:22px;
  padding:25px;
  margin-top:25px
}
.future-models>span {
  font-size:38px;
  color:var(--lime)
}
.future-models>div {
  flex:1
}
.future-models p {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  margin-bottom:0
}
.settings-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px
}
.settings-panel {
  padding:28px;
  min-width:0
}
.settings-panel h2 {
  font:500 21px 'Space Grotesk',sans-serif;
  margin:0 0 22px;
  letter-spacing:-.6px
}
.settings-panel>p {
  font-size:12px
}
.settings-panel .audio-row {
  margin-top:0
}
.connection-detail {
  display:flex;
  gap:9px;
  align-items:center;
  font-size:12px;
  margin-top:23px
}
.settings-panel form {
  margin-top:20px
}
.settings-panel form button {
  margin-top:15px
}
.provider-row {
  display:flex;
  align-items:center;
  gap:12px;
  margin:25px 0
}
.provider-row>.badge {
  margin-left:auto
}
.provider-row strong {
  font-size:13px
}
.provider-icon {
  width:38px;
  height:38px;
  background:#e5e9d9;
  color:#222;
  font-size:30px;
  border-radius:7px;
  text-align:center;
  font-weight:bold
}
.setup-details {
  margin-top:25px;
  padding-top:20px;
  border-top:1px solid var(--line)
}
.setup-details p {
  font-size:11px;
  color:var(--muted);
  line-height:1.9
}
code {
  font-size:10px;
  color:#d0deb9;
  overflow-wrap:anywhere
}
.roadmap {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:18px
}
.roadmap li {
  display:flex;
  gap:10px;
  font-size:12px;
  color:#99a58d
}
.roadmap span {
  color:#74806a
}
.roadmap .done {
  color:var(--lime)
}
footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid #2d3327;
  padding:28px 0;
  margin-top:55px;
  gap:20px;
  font-size:9px;
  color:#77836c
}
.footer-brand {
  font:700 15px 'Space Grotesk',sans-serif;
  color:#bac7a8;
  display:flex;
  gap:15px;
  align-items:center
}
.footer-brand span {
  font:400 9px 'DM Sans',sans-serif;
  color:#77836c
}
.image-input-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:0 0 10px
}
.upload-box {
  position:relative;
  min-height:130px;
  border:1px dashed #536342;
  border-radius:6px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  overflow:hidden;
  background:#151c11;
  cursor:pointer
}
.upload-box>span {
  font-size:20px;
  color:var(--lime)
}
.upload-box strong {
  font-size:10px
}
.upload-box small {
  font-size:8px
}
.upload-box input {
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
  margin:0;
  z-index:2
}
.upload-box img {
  position:absolute;
  inset:0;
  object-fit:cover;
  width:100%;
  height:100%
}
.upload-box:focus-within {
  outline:2px solid var(--lime)
}
#image-inputs>.text-button {
  font-size:9px;
  margin-bottom:20px
}
#toast {
  position:fixed;
  bottom:28px;
  left:calc(var(--side) + 30px);
  right:30px;
  max-width:600px;
  background:#d4f879;
  color:#202817;
  border:1px solid #f1ffd5;
  box-shadow:0 8px 40px #0008;
  padding:14px 20px;
  border-radius:7px;
  font-size:12px;
  z-index:100;
  line-height:1.7
}
#toast.error {
  background:#f0c8a7;
  border-color:#ffddbf;
  color:#43270f
}
dialog {
  background:#1b2116;
  color:var(--text);
  border:1px solid #536740;
  border-radius:12px;
  max-width:580px;
  width:calc(100% - 32px);
  padding:28px;
  max-height:85vh;
  overflow:auto
}
dialog::backdrop {
  background:#080d07ba;
  backdrop-filter:blur(7px)
}
.dialog-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:15px
}
.dialog-head h2 {
  font:500 25px 'Space Grotesk',sans-serif;
  letter-spacing:-.8px;
  margin:0
}
.dialog-head button {
  margin-top:-5px
}
.guide-list {
  padding-left:22px;
  margin-top:25px
}
.guide-list li {
  margin:18px 0;
  color:var(--lime)
}
.guide-list strong {
  color:#e3ebd8;
  font-size:12px
}
.guide-list p {
  color:var(--muted);
  font-size:12px;
  margin:7px 0
}
blockquote {
  border-left:2px solid var(--lime);
  margin:25px 0;
  padding:12px 18px;
  background:#11180d;
  line-height:1.9;
  font-size:12px;
  color:#b7c7a3
}
.detail-prompt {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:13px;
  line-height:1.9;
  color:#d4dec7
}
.detail-meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:15px 0
}
.detail-meta span {
  font-size:10px;
  background:#303c25;
  padding:6px 9px;
  border-radius:4px
}
.detail-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px
}
.detail-video {
  width:100%;
  margin-top:20px;
  border-radius:7px
}
.spinner {
  width:37px;
  height:37px;
  border:2px solid #52653e;
  border-top-color:var(--lime);
  border-radius:50%;
  animation:spin 1s linear infinite;
  margin-bottom:22px
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
@media(min-width:1500px) {
  .hero {
    min-height:410px
  }
  .hero-copy {
    padding:50px
  }
  .hero h1 {
    font-size:67px
  }
  .preview-stage {
    min-height:300px
  }
  .preset-image {
    height:200px
  }
}
@media(max-width:1150px) {
  :root {
    --side:190px
  }
  .sidebar {
    padding-left:10px;
    padding-right:10px
  }
  main {
    padding:25px 25px 0
  }
  .topbar {
    padding:0 25px
  }
  .hero-copy {
    padding:35px
  }
  .hero-caption {
    display:none
  }
  .preview-heading {
    align-items:flex-start;
    flex-direction:column
  }
  .studio-grid {
    grid-template-columns:1.1fr 1fr;
    gap:14px
  }
  .composer,.preview-panel {
    padding:16px
  }
  .section-heading h2 {
    font-size:22px
  }
  .model-card>.badge {
    position:static
  }
  .model-card {
    padding:24px
  }
  .discover-grid .preset-image {
    height:170px
  }
}
@media(max-width:900px) {
  .studio-grid {
    grid-template-columns:1fr
  }
  .preview-heading {
    flex-direction:row
  }
  .preview-stage {
    aspect-ratio:16/8;
    min-height:240px
  }
  .preview-column {
    display:grid;
    grid-template-columns:1.5fr 1fr;
    gap:18px;
    align-items:start
  }
  .preview-panel {
    grid-row:span 2
  }
  .direction-card {
    padding-top:10px
  }
  .session-note {
    grid-column:2
  }
  .preset-grid,.library-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .preset-grid:not(.discover-grid) .preset-card:nth-child(3) {
    display:none
  }
  .settings-layout {
    grid-template-columns:1fr
  }
  .models-grid {
    grid-template-columns:1fr
  }
  .model-card {
    min-height:320px
  }
  .model-card>.badge {
    position:absolute
  }
  .future-models {
    flex-wrap:wrap
  }
}
@media(max-width:650px) {
  :root {
    --side:0px
  }
  .sidebar {
    position:sticky;
    top:0;
    width:100%;
    height:auto;
    padding:14px 15px 0;
    border-right:0;
    border-bottom:1px solid #3b4531;
    display:block;
    background:#141812f5;
    backdrop-filter:blur(12px)
  }
  .wordmark {
    font-size:23px;
    width:max-content;
    padding:0
  }
  .brand-symbol {
    width:27px;
    height:27px;
    font-size:25px
  }
  .back-link {
    position:absolute;
    right:16px;
    top:20px;
    margin:0;
    font-size:10px
  }
  .nav-label,.sidebar-bottom {
    display:none
  }
  .side-nav {
    display:flex;
    gap:4px;
    overflow-x:auto;
    margin-top:14px;
    scrollbar-width:none
  }
  .side-nav a {
    font-size:10px;
    white-space:nowrap;
    padding:12px 10px;
    border-radius:5px 5px 0 0;
    gap:6px
  }
  .side-nav a>span:first-child {
    font-size:14px;
    width:15px
  }
  .nav-new,.count {
    display:none
  }
  .app-shell {
    margin:0
  }
  .topbar {
    height:51px;
    padding:0 17px
  }
  .breadcrumb {
    font-size:10px;
    gap:10px
  }
  .development {
    display:none
  }
  .connection-pill {
    font-size:9px;
    padding:6px 9px
  }
  main {
    padding:16px 16px 0
  }
  .hero {
    min-height:320px;
    border-radius:9px
  }
  .hero-copy {
    padding:26px
  }
  .hero h1 {
    font-size:45px;
    letter-spacing:-2px;
    margin-top:23px
  }
  .hero .eyebrow {
    font-size:7px
  }
  .hero-copy>p:not(.eyebrow) {
    font-size:11px
  }
  .hero-number {
    font-size:6px;
    right:18px;
    top:18px
  }
  .hero-shade {
    background:linear-gradient(90deg,#102015ed,#10201555)
  }
  .section-heading {
    margin-top:28px;
    gap:10px
  }
  .section-heading h2 {
    font-size:21px
  }
  .section-heading>.small {
    display:none
  }
  .section-heading>.text-button {
    font-size:9px
  }
  .preview-column {
    display:block
  }
  .preview-heading {
    align-items:center
  }
  .direction-card {
    margin-top:10px;
    padding:18px 5px
  }
  .session-note {
    padding:14px 5px
  }
  .preview-stage {
    aspect-ratio:16/10
  }
  .preset-grid,.library-grid {
    gap:12px
  }
  .preset-image,.discover-grid .preset-image {
    height:140px
  }
  .preset-copy {
    padding:12px
  }
  .preset-copy h3 {
    font-size:11px
  }
  .preset-copy p {
    font-size:9px
  }
  .preset-category {
    top:8px;
    left:8px;
    font-size:7px;
    padding:4px
  }
  .page-heading {
    padding:20px 0 25px
  }
  .page-heading h1 {
    font-size:34px;
    letter-spacing:-1.3px
  }
  .page-heading>p,.page-heading>div>p:not(.eyebrow) {
    font-size:12px
  }
  .heading-split {
    align-items:flex-start;
    flex-direction:column
  }
  .library-toolbar {
    gap:8px
  }
  .library-toolbar>select {
    width:125px;
    font-size:10px
  }
  .search input {
    font-size:10px
  }
  .library-cover {
    height:120px
  }
  .library-body {
    padding:12px
  }
  .library-body h3 {
    font-size:12px
  }
  .library-card-actions .text-button {
    font-size:9px
  }
  .model-card>.badge {
    font-size:6px;
    right:18px
  }
  .settings-panel {
    padding:21px
  }
  .provider-row {
    flex-wrap:wrap
  }
  .provider-row>.badge {
    font-size:6px
  }
  .future-models {
    padding:20px;
    gap:12px
  }
  .future-models>div {
    min-width:180px
  }
  .future-models>.text-button {
    margin-left:40px
  }
  footer {
    align-items:flex-start;
    flex-direction:column;
    padding:22px 0;
    gap:14px;
    margin-top:35px
  }
  .prompt-footer {
    font-size:8px
  }
  .composer-actions {
    gap:8px
  }
  .primary-button,.secondary-button {
    font-size:10px;
    padding:12px 13px
  }
  #toast {
    left:16px;
    right:16px;
    bottom:16px
  }
  .view {
    scroll-margin-top:110px
  }
  .filter-row .chip {
    font-size:10px;
    padding:8px 12px
  }
  dialog {
    padding:22px
  }
  .dialog-head h2 {
    font-size:22px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation-duration:.01ms!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
/* Grid items must shrink to the viewport, including native form controls. */
.composer,.preview-column {
  min-width:0
}
.settings-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
@media(max-width:900px) {
  .studio-grid {
    grid-template-columns:minmax(0,1fr)
  }
}
.preview-stage {
  width:100%;
  min-width:0
}

/* Private account and workspace controls. */
.account-open { text-align: left; color: inherit; cursor: pointer; }
#account-dialog { width: min(620px, calc(100% - 28px)); }
#account-dialog .mode-tabs { flex-wrap: wrap; margin: 20px 0; gap: 8px; }
#account-dialog form, #import-form { display: grid; gap: 16px; }
#account-dialog label, #import-form label { display: grid; gap: 8px; }
#account-dialog input, #import-form input { width: 100%; min-width: 0; }
#account-dialog small { color: var(--muted); line-height: 1.6; }
#account-dialog > .text-button { display: block; width: fit-content; margin-top: 12px; }
#account-dialog > .text-button + .text-button { margin-top: 8px; }
#account-error { color: #ffb5a9; }
#recovery-result code { display: block; overflow-wrap: anywhere; padding: 16px; background: #111; margin: 18px 0; user-select: all; }
#recovery-result button { margin: 6px 0; }
#import-form { border-top: 1px solid #343830; padding-top: 20px; margin-top: 24px; }
#sign-out { margin-top: 12px; }
[hidden] { display: none !important; }

.profile.account-open { background: transparent; border-right: 0; border-left: 0; border-bottom: 0; width: 100%; }
#top-account { font-size: 11px; white-space: nowrap; }
@media (max-width: 760px) { .top-actions { gap: 8px; } }

/* Longer standalone brand remains usable on narrow phones. */
.wordmark { font-size: 27px; gap: 7px; }
@media (max-width: 760px) { .back-link { display: none; } }
@media (max-width: 360px) { .breadcrumb { gap: 6px; } .breadcrumb > strong { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
