:root[data-aura-theme="loft"] {
  color-scheme: dark;
  --loft-text: #fff4e8;
  --loft-muted: #dfd1c7;
  --loft-violet: #dca8ff;
  --loft-rim: #bc75ea;
  --loft-panel: rgba(24, 18, 19, .87);
  --loft-border: rgba(239, 215, 235, .29);
  --loft-font: "Avenir Next", "Inter", system-ui, sans-serif;
  background: #19120f;
}
html[data-aura-theme="loft"] body {
  color: var(--loft-text);
  font-family: var(--loft-font);
  min-height: 100vh;
  background: transparent !important;
}
html[data-aura-theme="loft"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14,9,8,.35), rgba(15,9,11,.43)), url("/assets/loft/loft.webp") center 42% / cover no-repeat;
}
html[data-aura-theme="loft"].loft-cool body::before {
  background-image: linear-gradient(175deg, rgba(38,20,68,.51), rgba(15,9,30,.17)), url("/assets/loft/loft.webp");
  filter: saturate(.79) hue-rotate(7deg);
}
[data-aura-theme="loft"] :focus-visible { outline: 2px solid #e1adff !important; outline-offset: 3px; }
[data-aura-theme="loft"] [hidden] { display: none !important; }
.loft-home { margin: 0; }
.loft-home *, .loft-header *, .loft-gallery * { box-sizing: border-box; }
.loft-header a, .loft-home a, .loft-gallery a { color: inherit; text-decoration: none; }
.loft-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(100% - 32px, 1180px); margin-inline: auto; min-height: 66px;
  position: relative; z-index: 20;
}
.loft-home .loft-header { width: min(100% - 36px, 692px); }
.loft-brand { display: inline-flex; align-items: center; gap: 8px; font: 750 clamp(1.06rem, 3.8vw, 1.45rem)/1 var(--loft-font); letter-spacing: -.045em; }
.loft-brand img { width: 32px; height: 32px; object-fit: contain; }
.loft-menu { position: relative; }
.loft-menu summary {
  display: flex; gap: .55rem; align-items: center; cursor: pointer; list-style: none;
  min-height: 44px; padding: 0 .75rem; border-radius: 12px; color: var(--loft-text);
  background: #151015d9; border: 1px solid var(--loft-border); font-size: .875rem;
}
.loft-menu summary::-webkit-details-marker { display: none; }
.loft-menu nav {
  position: absolute; inset: calc(100% + 8px) 0 auto auto; width: 195px; padding: 6px;
  border: 1px solid var(--loft-border); border-radius: 14px; background: #201721;
  box-shadow: 0 14px 30px #0008;
}
.loft-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 .65rem; font-size: .9rem; border-radius: 6px; }
.loft-menu nav a:hover, .loft-menu nav a[aria-current] { background: #543064; }
.loft-skip { position: fixed; top: 4px; left: 4px; z-index: 50; transform: translateY(-140%); background: #24172a; padding: 12px; }
.loft-skip:focus { transform: none; }
.loft-landing { width: min(100% - 40px, 650px); margin: 12px auto 0; }
.loft-landing h1, .loft-gallery h1 {
  color: var(--loft-text); margin: 0 0 .32em;
  font: 790 clamp(2.65rem, 9.5vw, 5rem)/.94 var(--loft-font);
  letter-spacing: -.069em; text-shadow: 0 3px 30px #160c0a;
}
.loft-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 2vw, 14px); margin: 17px 0 18px; }
.loft-glass, [data-aura-theme="loft"] body :is(.chrome-button,.glass-button,.secondary,.generate-button) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border: 1px solid var(--loft-border); border-radius: 13px;
  background: linear-gradient(180deg, #5e4e4e62, #241c20bd 67%, #241724cf);
  color: var(--loft-text); box-shadow: inset 0 1px 0 #f5d7ff2e, 0 4px 12px #100b0c56;
  padding: 8px 14px; font: 680 .95rem/1.2 var(--loft-font);
  backdrop-filter: blur(10px); cursor: pointer; text-shadow: 0 1px 3px #000;
}
.loft-glass:hover, [data-aura-theme="loft"] body :is(.chrome-button,.glass-button,.secondary,.generate-button):hover {
  border-color: #ce96f1; background-color: #4b2a50a0;
}
[data-aura-theme="loft"] body button:disabled { cursor: default; opacity: .55; }
.loft-steps .loft-glass { flex-direction: column; border-top-color: #d1a3df; padding-inline: 5px; min-height: 65px; gap: 5px; font-size: clamp(.78rem, 3vw, 1.08rem); text-align: center; }
.loft-steps .loft-glass span { text-wrap: balance; }
.loft-home svg, .loft-gallery-tools svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.loft-home .loft-aura { color: #d098ff; filter: drop-shadow(0 0 5px #b348ff); }
.loft-example { margin: 0; }
.loft-shot { position: relative; margin: 0; border-radius: 15px; overflow: hidden; border: 1px solid #f5dec985; background: #2a1e1e; box-shadow: 0 6px 23px #130a0a85; }
.loft-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.loft-original { aspect-ratio: 1.91; }
.loft-result { aspect-ratio: 1.67; border-color: #cd83fb; box-shadow: 0 0 19px #9e44e465, 0 8px 25px #11071b88; }
.loft-original img { object-position: 50% 43%; }
.loft-shot figcaption { position: absolute; top: 9px; left: 9px; border-radius: 999px; padding: 5px 10px; background: #201916df; color: #fff6eb; font-size: .875rem; font-weight: 650; }
.loft-result figcaption { background: #35213dea; color: #f4dcff; border: 1px solid #b575d8; }
.loft-expand { display: grid; place-items: center; position: absolute; right: 4px; bottom: 4px; width: 44px; height: 44px; border-radius: 10px; background: #171012ca; }
.loft-expand:hover { background: #512e61; }
.loft-home .loft-down { display: block; width: 20px; height: 20px; margin: 7px auto; color: #fff4ed; }
.loft-example-note { font-size: .8125rem; color: var(--loft-muted); margin: 8px 0 0; text-align: right; text-shadow: 0 1px 5px #000; }
.loft-primary, [data-aura-theme="loft"] body .chrome-button { border-color: var(--loft-rim); box-shadow: inset 0 1px 0 #e3b5ff65, 0 0 15px #ab4ae453; }
.loft-landing > .loft-primary { display: flex; width: max-content; margin: 12px auto; padding-inline: 24px; border-radius: 999px; }
.loft-shortcuts, .loft-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; align-items: center; }
.loft-shortcuts a, .loft-footer button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 3px; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.loft-footer { padding: 8px 16px max(12px,env(safe-area-inset-bottom)); color: var(--loft-muted); }
.loft-footer button { background: none; border: 0; color: inherit; cursor: pointer; }
#loft-image { padding: 5px; margin: auto; width: min(96vw,1000px); max-width: none; background: #1c151b; border: 1px solid var(--loft-border); border-radius: 12px; overflow: visible; }
#loft-image::backdrop, [data-aura-theme="loft"] dialog::backdrop { background: #100913ce; backdrop-filter: blur(4px); }
#loft-image img { display: block; width: 100%; border-radius: 8px; }
#loft-image button { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--loft-border); color: #fff; background: #201720ef; font-size: 1.45rem; cursor: pointer; }
.loft-gallery { max-width: 1140px; width: calc(100% - 32px); margin: 18px auto 55px; }
.loft-gallery-heading { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; margin-bottom: 18px; }
.loft-gallery-heading h1 { margin: 0; }
.loft-gallery-tools { display: grid; gap: 12px; }
.loft-search { display: flex; min-height: 47px; align-items: center; gap: 10px; border: 1px solid var(--loft-border); border-radius: 13px; width: min(100%,380px); padding: 0 12px; background: var(--loft-panel); }
.loft-search input { flex: 1; width: 100%; border: 0; padding: 8px 0; color: #fff; background: none; font: 500 1rem var(--loft-font); }
.loft-categories { display: flex; gap: 7px; flex-wrap: wrap; }
.loft-categories .loft-glass { font-size: .875rem; }
.loft-categories button[aria-pressed="true"] { border-color: #e1a4ff; background: #54296bde; }
.loft-count { color: var(--loft-muted); font-size: .875rem; margin: 13px 0; }
.loft-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,150px),1fr)); gap: 11px; }
.loft-tile { color: #fff4e8; background: var(--loft-panel); margin: 0; border: 1px solid var(--loft-border); border-radius: 12px; overflow: hidden; text-align: left; padding: 0; cursor: pointer; min-width: 0; }
.loft-tile:hover { border-color: #cf8ff4; }
.loft-tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; border-radius: 0; }
.loft-tile > span { display: grid; gap: 2px; padding: 8px 10px 10px; }
.loft-tile strong { color: #fff4e8; font-size: .96rem; overflow-wrap: anywhere; }
.loft-tile small { color: var(--loft-muted); font: 500 .8125rem var(--loft-font); }
[data-aura-theme="loft"] body #modal.champ-dialog { width: min(calc(100% - 28px),680px) !important; max-width: none !important; max-height: calc(100dvh - 22px); padding: 0 !important; border: 1px solid #ba85cb !important; border-radius: 19px !important; background: #201721 !important; color: var(--loft-text); overflow: auto; }
[data-aura-theme="loft"] #modal.champ-dialog .champ-detail { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); min-height: 0 !important; }
[data-aura-theme="loft"] #modal.champ-dialog .champ-detail-art { aspect-ratio: auto !important; height: min(73dvh,610px) !important; min-height: 0 !important; background: #180f1b !important; }
[data-aura-theme="loft"] #modal.champ-dialog .champ-detail-art img { display: block; width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center !important; transform: none !important; }
[data-aura-theme="loft"] #modal.champ-dialog .champ-detail-copy { align-self: center; padding: 18px; position: static !important; }
[data-aura-theme="loft"] #modal.champ-dialog .dialog-top { position: absolute; top: 6px; right: 6px; z-index: 3; }
[data-aura-theme="loft"] #modal.champ-dialog .dialog-top button { width: 44px; height: 44px; background: #211622e8; border: 1px solid var(--loft-border); }
/* Account, creation and render controls share the homepage materials. */
[data-aura-theme="loft"] body { isolation: isolate; }
[data-aura-theme="loft"] body :is(.uv-sidebar,.uv-topbar,.uv-mobile-nav,.auth-header,.site-header>.desktop-nav,.mobile-nav,.membership-header) { display: none !important; }
[data-aura-theme="loft"] body :is(#app,.uv-main,.page,.membership-page,.app-shell) { margin-inline: auto !important; background-color: transparent !important; }
[data-aura-theme="loft"] body #app { display: block !important; padding: 0 !important; width: 100% !important; min-height: 0 !important; }
[data-aura-theme="loft"] body :is(.uv-main,.page,.membership-page,.app-shell,.auth-page) { width: min(100% - 32px,1140px) !important; max-width: 1140px !important; padding-inline: 0 !important; }
[data-aura-theme="loft"] body :is(.site-header,.topbar) { position: relative !important; inset: auto !important; width: min(100% - 32px,1140px) !important; margin: 0 auto 12px !important; padding: 0 !important; display: flex !important; justify-content: flex-end !important; align-items: center; min-height: 39px !important; border: 0 !important; background: transparent !important; backdrop-filter: none !important; }
[data-aura-theme="loft"] body :is(.site-header,.topbar) > :is(.brand,nav) { display: none !important; }
[data-aura-theme="loft"] body :is(.uv-main,.page,.membership-page,.app-shell,.auth-page) :is(h1,h2,h3,.metal-text) { color: var(--loft-text) !important; -webkit-text-fill-color: var(--loft-text) !important; text-shadow: 0 2px 12px #110b0a77; }
[data-aura-theme="loft"] body :is(.uv-main,.page,.membership-page,.app-shell,.auth-page) h1 { font-family: var(--loft-font); letter-spacing: -.058em; line-height: 1; font-size: clamp(2.25rem,7vw,4.2rem) !important; }
[data-aura-theme="loft"] body :is(.uv-main,.page,.membership-page,.app-shell,.auth-page) p { color: var(--loft-muted); }
[data-aura-theme="loft"] body :is(.studio-form,.canvas,.chat-panel,.sidebar,.auth-form-area,.owned-card,.membership-plan,.aura-review,.connected-next,#history,#job,#signin,#owner-account-help,.empty-state) {
  background: var(--loft-panel) !important; border: 1px solid var(--loft-border) !important; border-radius: 16px !important;
  box-shadow: inset 0 1px 0 #eddedb16, 0 6px 24px #140b0b38 !important;
}
[data-aura-theme="loft"] body :is(.drop-zone,.champ-selector,.prompt-input,.molten-input-wrap) { background: #281f25eb !important; border-color: #c098c295 !important; border-radius: 12px !important; }
[data-aura-theme="loft"] body .drop-zone { min-height: 142px; }
[data-aura-theme="loft"] body .studio-intro { background: none !important; box-shadow: none !important; border: 0 !important; }
[data-aura-theme="loft"] body #signin { padding: clamp(18px, 4vw, 38px); max-width: 680px; margin: 0 auto; }
[data-aura-theme="loft"] body #signin .loft-signin-note { margin: 10px 0 18px; }
[data-aura-theme="loft"] body .loft-assist { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
[data-aura-theme="loft"] body .site-footer { color: var(--loft-muted); background: transparent; }
[data-aura-theme="loft"] body .auth-art { background: none !important; }
[data-aura-theme="loft"] body .auth-form-area { padding: clamp(18px,4vw,32px); }
[data-aura-theme="loft"] body .membership-hero { background: transparent !important; }
[data-aura-theme="loft"] body .ac-cook-orbit, [data-aura-theme="loft"] body .ac-cook-inner { animation-duration: 4s; }
@media (max-width: 600px) {
  html[data-aura-theme="loft"] body::before { background-image: linear-gradient(180deg,rgba(14,9,8,.25),rgba(15,9,11,.30)),url("/assets/loft/loft-mobile.webp"); }
  html[data-aura-theme="loft"].loft-cool body::before { background-image: linear-gradient(175deg,rgba(38,20,68,.50),rgba(15,9,30,.17)),url("/assets/loft/loft-mobile.webp"); }
  .loft-header { min-height: 58px; }
  .loft-gallery-heading { align-items: center; }
  .loft-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .loft-categories .loft-glass { min-height: 44px; padding-inline: 9px; }
  [data-aura-theme="loft"] #modal.champ-dialog .champ-detail { grid-template-columns: minmax(0,1fr); }
  [data-aura-theme="loft"] #modal.champ-dialog .champ-detail-art { height: min(60dvh,540px) !important; }
  [data-aura-theme="loft"] #modal.champ-dialog .champ-detail-copy { padding: 12px 16px 16px; }
  [data-aura-theme="loft"] #modal.champ-dialog .champ-detail-copy h2 { margin: 0 0 2px; }
  [data-aura-theme="loft"] #modal.champ-dialog .champ-detail-copy p { margin: 3px 0 5px; }
  [data-aura-theme="loft"] body .auth-art { display: none !important; }
}
@media (min-width: 760px) {
  .loft-home .loft-landing { width: min(100% - 52px,690px); }
  .loft-home .loft-steps .loft-glass { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  [data-aura-theme="loft"] *, [data-aura-theme="loft"] *::before, [data-aura-theme="loft"] *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.loft-tile img { object-fit: contain; object-position: center; padding: 5px 3px 0; }
[data-aura-theme="loft"] .loft-gallery h1 { background: none !important; -webkit-text-fill-color: var(--loft-text) !important; }
[data-aura-theme="loft"] .loft-search input { background: none !important; border: 0 !important; box-shadow: none !important; }
[data-aura-theme="loft"] #modal.champ-dialog .champ-detail-art img { position: static !important; }
[data-aura-theme="loft"] #modal.champ-dialog .champ-detail-art { background: radial-gradient(ellipse at 50% 55%,#54324e,#1d141f 75%) !important; }
.loft-upload-guest :is(#signin,#studio,#owner-account-help,#main>#message,.site-header) { display: none !important; }
.loft-upload-entry {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 24px; align-items: center;
  width: min(100%,920px); margin: clamp(18px,5vw,72px) auto 28px;
  background: var(--loft-panel); border: 1px solid var(--loft-border); padding: clamp(16px,4vw,34px); border-radius: 18px;
}
.loft-upload-entry p { max-width: 40ch; font-size: 1rem; line-height: 1.5; }
.loft-upload-entry figure { margin: 0; border: 1px solid var(--loft-border); border-radius: 12px; overflow: hidden; background: #20161d; }
.loft-upload-entry figure img { display: block; width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; }
.loft-upload-entry figcaption { padding: 10px 12px; font-size: .875rem; color: var(--loft-muted); }
.loft-upload-target {
  display: grid; justify-items: center; gap: 7px; padding: 18px 8px; margin: 15px 0 11px; text-align: center;
  color: var(--loft-text); background: #322337c9; border: 1px dashed var(--loft-rim); border-radius: 12px; text-decoration: none;
}
.loft-upload-target:hover { background: #50345ad9; }
.loft-upload-target span { color: var(--loft-muted); font-size: .875rem; }
.loft-upload-target svg { width: 22px; height: 22px; fill: none; stroke: #e0abff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-aura-theme="loft"] .studio-layout:has(.selected-champ[hidden]) { grid-template-columns: minmax(0,1fr) !important; max-width: 700px; margin-inline: auto; }
[data-aura-theme="loft"] .studio-layout:has(.selected-champ[hidden]) .studio-form { width: 100%; max-width: none; }
[data-aura-theme="loft"] :is(#send,#use-video,.mobile-tabs button) { background: linear-gradient(180deg,#5e4e4e82,#271b2be6) !important; border: 1px solid var(--loft-rim) !important; color: #fff4e8 !important; }
@media (max-width: 680px) { .loft-upload-entry { grid-template-columns: minmax(0,1fr); gap: 18px; } }
