/* genai.albastov — mockup. Music's family: near-black, hairlines, Geist, grain. One accent. The images are the colour. */
@font-face { font-family: 'Geist'; src: url('fonts/Geist-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('fonts/Unbounded-latin.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #070708; --bg-1: #0d0d0f; --bg-2: #141417; --bg-3: #1b1b1f; --bg-4: #25252a;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.11); --line-3: rgba(255,255,255,.2);
  --hi: inset 0 1px 0 rgba(255,255,255,.045);
  --text: #f4f4f6; --text-2: #dcdce2; --text-3: #a9a9b2; --off: #55555d;
  --a: #ff5a1f; --a-ink: #160500; --a-soft: rgba(255,90,31,.13); --a-line: rgba(255,90,31,.5);
  --danger: #ff5a52;
  --font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.1,1);
  --nav: 56px; --rail: 72px; --gap: 10px;
  color-scheme: dark;
}
body[data-accent="ice"] { --a: #8fe3ff; --a-ink: #001218; --a-soft: rgba(143,227,255,.12); --a-line: rgba(143,227,255,.5); }
body[data-accent="bone"] { --a: #f1ece2; --a-ink: #0b0a08; --a-soft: rgba(241,236,226,.1); --a-line: rgba(241,236,226,.45); }

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13.5px/1.45 var(--font); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; overflow: hidden; display: flex; flex-direction: column; font-feature-settings: "ss01", "cv11"; font-variant-numeric: tabular-nums; }
body::after { content: ''; position: fixed; inset: 0; z-index: 400; pointer-events: none; background: url('noise.png'); opacity: .028; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--a); color: var(--a-ink); }
:focus-visible { outline: 1.5px solid var(--a); outline-offset: 2px; border-radius: 6px; }
.ico { width: 18px; height: 18px; display: block; flex: none; }
.ico.s { width: 14px; height: 14px; }
.mono { font-family: var(--font); font-size: 12px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.dim { color: var(--text-3); }
kbd { font: 500 10.5px var(--mono); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
* { scrollbar-width: thin; scrollbar-color: #2a2a30 transparent; }

/* role gating */
body[data-role="visitor"] .member-only, body[data-role="visitor"] .rail-btn.member, body:not([data-role="owner"]) .owner-only { display: none !important; }

/* ------------------------------------------------ nav (site chrome) */
.nav { flex: none; height: var(--nav); border-bottom: 1px solid rgba(237,237,232,.08); background: rgba(5,5,6,.9); font-family: 'Manrope', sans-serif; position: relative; z-index: 60; }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 22px; padding: 0 20px 0 22px; position: relative; }
.nav-mark { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 14px;  color: #edede8; white-space: nowrap; width: 196px; }
.nav-mark i { font-style: normal; font-weight: 300; opacity: .85; }
.nav-mark span { color: #ff3d00; }
.nav-slot { position: absolute; left: calc(var(--rail) + (100% - var(--rail)) / 2); transform: translateX(-50%); width: min(460px, 34vw); }
.nav-right { margin-left: auto; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.products { display: flex; gap: 24px; }
.products a { font-size: 13px; font-weight: 500; color: #edede8; opacity: .8; transition: color .15s, opacity .15s; }
.products a:hover { opacity: 1; color: #ff3d00; }
.products a.cur { opacity: 1; color: #fff; }
.me { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 4px; border-radius: 99px; border: 1px solid var(--line-2); }
.me-av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #2a2a30; font: 600 11px var(--font); }
.me-role { font: 600 12px var(--font); color: var(--text-2); }

.search { position: relative; width: min(460px, 100%); display: block; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.search input { width: 100%; height: 34px; padding: 0 40px 0 36px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font: 13px var(--font); outline: none; transition: border-color .15s, background .15s; }
.search input:focus { border-color: var(--line-3); background: var(--bg-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); }
.search.sm { width: 220px; } .search.sm input { height: 30px; }

/* ------------------------------------------------ layout */
.app { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
.rail { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0 14px; border-right: 1px solid var(--line); background: #09090b; }
.rail-btn { width: 60px; padding: 9px 0 7px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text-3); font-size: 10.5px; font-weight: 560; position: relative; transition: color .15s, background .15s; }
.rail-btn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.rail-btn.on { color: var(--text); background: var(--bg-3); box-shadow: var(--hi), 0 0 0 1px var(--line); }
.rail-btn.on::before { content: ''; position: absolute; left: -6px; top: 13px; bottom: 13px; width: 2px; border-radius: 2px; background: var(--a); }
.rail-btn .ico { width: 20px; height: 20px; }
.rail-grow { flex: 1; }
.gpu { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; width: 60px; cursor: default; }
.gpu b { font: 600 9px var(--mono);  color: var(--text-2); }
.gpu em { font: 500 9.5px var(--mono); font-style: normal; color: var(--text-3); }
.gpu-dot { width: 7px; height: 7px; border-radius: 50%; background: #e9e9ee; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.gpu.busy .gpu-dot { background: var(--a); animation: ping 1.4s infinite; }
.gpu.offline .gpu-dot { background: var(--off); box-shadow: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--a-line); } 100% { box-shadow: 0 0 0 9px transparent; } }

.main { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
.view { padding: 0 22px; animation: viewIn .28s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.dock-space { height: 190px; }
.scrimb { position: fixed; z-index: 65; left: var(--rail); right: 0; bottom: 0; height: 150px; pointer-events: none; background: linear-gradient(180deg, rgba(7,7,8,0), rgba(7,7,8,.82) 62%, var(--bg)); }

.vhead { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 62px; margin: 0 -22px; padding: 0 22px;
  background: linear-gradient(180deg, var(--bg) 70%, rgba(7,7,8,0)); }
.vhead.sub { position: static; margin-top: 18px; height: 52px; }
.vtitle { display: flex; align-items: baseline; gap: 10px; margin-right: 10px; white-space: nowrap; }
.vtitle h1 { margin: 0; font-size: 19px; font-weight: 640; letter-spacing: -.02em; }
.vtitle h2 { margin: 0; font-size: 15px; font-weight: 640; letter-spacing: -.01em; }
.vhead-grow, .dock-grow { flex: 1; }

.seg { display: inline-flex; flex: none; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 10px; padding: 2px; gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; color: var(--text-3); font-size: 12.5px; font-weight: 560; transition: color .15s, background .15s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--bg-4); color: var(--text); box-shadow: var(--hi), 0 1px 2px rgba(0,0,0,.4); }
.seg-sm button { padding: 4px 10px; font-size: 12px; }
.chips { display: flex; gap: 4px; flex: none; }
.chips button { height: 28px; padding: 0 11px; border-radius: 99px; color: var(--text-3); font-size: 12.5px; font-weight: 540; border: 1px solid transparent; transition: all .15s; white-space: nowrap; }
.chips button:hover { color: var(--text); }
.chips button.on { color: var(--text); border-color: var(--line-2); background: var(--bg-2); }
.pill { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; font-weight: 540; white-space: nowrap; transition: all .15s; }
.pill:hover { color: var(--text); border-color: var(--line-3); background: var(--bg-3); }
.pill b { font-weight: 600; color: var(--text); }
.pill .k { color: var(--text-3); }
.btn { height: 34px; padding: 0 13px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 12.5px; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--hi); transition: all .15s; white-space: nowrap; }
.btn:hover { background: var(--bg-3); border-color: var(--line-3); }
.btn:active { transform: scale(.98); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.accent { background: var(--a); color: var(--a-ink); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.btn.accent:hover { filter: brightness(1.08); }
.btn:disabled, .btn.accent:disabled { opacity: 1; background: var(--bg-3); color: var(--off); border-color: var(--line); box-shadow: none; pointer-events: none; }
.ibtn { width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--text-2); transition: all .15s; }
.ibtn:hover { color: var(--text); background: rgba(255,255,255,.07); }
.badge { font: 600 10px var(--mono);  padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); }
.badge.a { color: var(--a); border-color: var(--a-line); }
.row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------------------------ explore: masonry */
.masonry { display: flex; gap: var(--gap); align-items: flex-start; }
.masonry .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.card { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-2); cursor: zoom-in; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04); transform: translateZ(0); }
.card img, .card video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.card:hover img, .card:hover video { transform: scale(1.025); }
.card .ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; gap: 6px; opacity: 0; transition: opacity .2s;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72)); }
.card:hover .ov, .card:focus-visible .ov { opacity: 1; }
.card .ov p { margin: 0; font-size: 12px; line-height: 1.35; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.card .ov-row { display: flex; align-items: center; gap: 8px; }
.card .ov-row .who { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; margin-right: auto; }
.av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 650 10px var(--font); color: #111; background: #ddd; flex: none; }
.card .cnt { display: inline-flex; align-items: center; gap: 4px; font: 500 11px var(--mono); color: #fff; padding: 4px 6px; border-radius: 7px; background: rgba(0,0,0,.35); }
.card .cnt .ico { width: 13px; height: 13px; }
.card .cnt.liked { color: var(--a); }
.card .kind { position: absolute; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 5px; border-radius: 7px; background: rgba(0,0,0,.5); font: 600 10.5px var(--mono); color: #fff; z-index: 2; }
.card .kind .ico { width: 12px; height: 12px; }
.card .feat { position: absolute; top: 9px; right: 9px; z-index: 2; padding: 3px 7px; border-radius: 7px; background: rgba(0,0,0,.5); font: 600 10px var(--mono);  color: #fff; }
.card .lnk { position: absolute; top: 9px; right: 9px; z-index: 2; display: inline-flex; gap: 4px; align-items: center; padding: 3px 7px; border-radius: 7px; background: rgba(0,0,0,.5); font: 600 10.5px var(--mono); }
/* image fade-in */
.card img, .tile img, .res img { opacity: 0; }
.card img.in, .tile img.in, .res img.in { opacity: 1; transition: opacity .5s, transform .6s var(--ease); }

/* ------------------------------------------------ create: runs */
.runs { display: flex; flex-direction: column; gap: 28px; }
.run-g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.run-h { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.run-h p { margin: 0; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.run-h .meta { display: flex; gap: 6px; flex: none; }
.chip { font: 500 10.5px var(--mono); color: var(--text-3); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.chip.a { color: var(--a); border-color: var(--a-line); }
.run-h .when { margin-left: auto; flex: none; }
.run-imgs { display: flex; gap: var(--gap); height: 300px; }
.res { position: relative; height: 100%; border-radius: 12px; overflow: hidden; background: var(--bg-2); flex: none; cursor: zoom-in; box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
.res img, .res video { height: 100%; width: 100%; object-fit: cover; display: block; }
.res .acts { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 4px; opacity: 0; transform: translateY(4px); transition: all .18s var(--ease); }
.res:hover .acts { opacity: 1; transform: none; }
.res .acts button { height: 28px; padding: 0 9px; border-radius: 8px; background: rgba(10,10,12,.78); border: 1px solid rgba(255,255,255,.1); font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.res .acts button:hover { background: rgba(30,30,34,.95); }
.res .acts button.pri { background: var(--a); color: var(--a-ink); border-color: transparent; }
.res .acts .g { flex: 1; }
.res .acts .ibt { width: 28px; padding: 0; justify-content: center; }

/* developing: the image comes out of the noise as the sampler runs */
.res.dev { cursor: default; }
.res.dev img { filter: blur(var(--blur, 24px)) saturate(var(--sat, .3)) brightness(var(--br, .7)); transform: scale(1.08); opacity: 1; transition: filter .9s linear; }
.res.dev::after { content: ''; position: absolute; inset: 0; background: url('noise.png'); opacity: var(--grain, .5); mix-blend-mode: overlay; transition: opacity .9s linear; pointer-events: none; }
.res .state { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; flex-direction: column; gap: 7px; }
.res .state .l { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.res .bar { height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
.res .bar i { display: block; height: 100%; background: var(--a); width: 0; transition: width .9s linear; box-shadow: 0 0 10px var(--a); }
.res.wait { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--bg-2) 0 10px, var(--bg-1) 10px 20px); cursor: default; }
.res.wait .q { text-align: center; }
.res.wait .q b { display: block; font: 600 26px var(--mono); letter-spacing: -.02em; }
.res.wait .q span { font: 500 11px var(--mono); color: var(--text-3); }
.res.fail { display: grid; place-items: center; background: var(--bg-1); border: 1px dashed rgba(255,90,82,.35); box-shadow: none; cursor: default; }
.res.fail .q { text-align: center; padding: 20px; max-width: 260px; }
.res.fail .q b { color: var(--danger); font-size: 13px; display: block; margin-bottom: 4px; }
.res.fail .q span { color: var(--text-3); font-size: 12px; display: block; margin-bottom: 10px; }
.res.new { animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }

/* ------------------------------------------------ library */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--gap); }
.tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-2); cursor: zoom-in; box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile .ck { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,.7); background: rgba(0,0,0,.3); opacity: 0; transition: opacity .15s; display: grid; place-items: center; z-index: 2; }
.tile:hover .ck, .grid.selecting .tile .ck { opacity: 1; }
.tile.sel .ck { background: var(--a); border-color: var(--a); opacity: 1; }
.tile.sel .ck::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--a-ink); border-bottom: 2px solid var(--a-ink); transform: rotate(-45deg) translate(1px, -1px); }
.tile.sel { box-shadow: 0 0 0 2px var(--a); }
.tile .st { position: absolute; bottom: 8px; left: 8px; font: 600 9.5px var(--mono);  padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.55); }
.tile .st.pub { color: var(--a); }
.tile .kind { position: absolute; top: 8px; right: 8px; padding: 3px; border-radius: 6px; background: rgba(0,0,0,.5); }
.tile .kind .ico { width: 13px; height: 13px; }
.selbar { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line-2); }
.selbar .mono { margin-right: 6px; color: var(--a); }

/* ------------------------------------------------ models */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.model { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-1); display: flex; flex-direction: column; }
.model .strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 150px; gap: 2px; height: 150px; overflow: hidden; background: #000; }
.model .strip.paid { display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 18px; background: radial-gradient(120% 140% at 100% 0%, var(--a-soft), transparent 60%), var(--bg-2); }
.model .strip.paid b { font: 600 34px var(--mono); letter-spacing: -.03em; color: var(--text); }
.model .strip.paid span { font: 500 11px var(--mono); color: var(--text-3); }
.model .strip > * { width: 100%; height: 100%; object-fit: cover; min-width: 0; }
.model .strip .ph { background: repeating-linear-gradient(135deg, var(--bg-2) 0 8px, var(--bg-1) 8px 16px); }
.model .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.model .t { display: flex; align-items: center; gap: 8px; }
.model .t h3 { margin: 0; font-size: 15px; font-weight: 640; letter-spacing: -.01em; margin-right: auto; }
.model p { margin: 0; color: var(--text-3); font-size: 12.5px; }
.model .facts { display: flex; gap: 14px; font: 500 11px var(--mono); color: var(--text-2); }
.model .facts span b { color: var(--text-3); font-weight: 500; margin-right: 4px; }
.loras { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.lora { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-1); }
.lora .pv { aspect-ratio: 4/3; background: var(--bg-2); position: relative; }
.lora .pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lora .pv .badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.55); }
.lora .pv .face { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font: 500 11px var(--mono); background: repeating-linear-gradient(135deg, #121215 0 8px, #0e0e10 8px 16px); }
.lora .bd { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 7px; }
.lora .bd b { font-size: 13px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lora .trig { display: flex; gap: 4px; flex-wrap: wrap; }
.lora .trig button { font: 500 10.5px var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--text-2); }
.lora .trig button:hover { border-color: var(--a-line); color: var(--a); }
.lora .tg { display: flex; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.sw { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); cursor: pointer; user-select: none; }
.sw i { width: 26px; height: 15px; border-radius: 99px; background: var(--bg-4); position: relative; transition: background .15s; }
.sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #bbb; transition: all .18s var(--ease); }
.sw.on i { background: var(--a); }
.sw.on i::after { left: 13px; background: var(--a-ink); }

/* ------------------------------------------------ workflows */
.flows { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.flow { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); display: grid; grid-template-columns: 112px 1fr; overflow: hidden; }
.flow img { width: 112px; height: 100%; object-fit: cover; }
.flow .bd { padding: 13px 14px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.flow .t { display: flex; align-items: center; gap: 8px; }
.flow .t b { font-size: 14px; font-weight: 640; margin-right: auto; }
.flow p { margin: 0; font-size: 12px; color: var(--text-3); }
.flow .ks { display: flex; gap: 4px; flex-wrap: wrap; }
.flow .ks .chip .ico { display: inline; width: 10px; height: 10px; vertical-align: -1px; margin-right: 3px; }
.flow .ft { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.flow .ft .mono { margin-right: auto; }

/* ------------------------------------------------ queue */
.queue { max-width: 980px; display: flex; flex-direction: column; gap: 22px; }
.q-dev { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); }
.q-dev .big { font: 600 22px var(--mono); letter-spacing: -.02em; }
.q-dev .gpu-dot { margin: 0 4px; }
.q-dev p { margin: 0; color: var(--text-3); font-size: 12.5px; }
.q-dev .vram { margin-left: auto; width: 220px; display: flex; flex-direction: column; gap: 5px; font: 500 10.5px var(--mono); color: var(--text-3); }
.q-dev .vram i { height: 4px; border-radius: 2px; background: var(--bg-4); overflow: hidden; display: block; }
.q-dev .vram i b { display: block; height: 100%; background: var(--text); }
.q-lbl { font: 600 10.5px var(--mono);  color: var(--text-3); margin-bottom: 8px; }
.q-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.q-row { display: grid; grid-template-columns: 34px 48px minmax(0, 1fr) 150px 110px 64px; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--bg-1); }
.q-row:first-child { border-top: 0; }
.q-row .pos { font: 600 13px var(--mono); color: var(--text-3); text-align: right; }
.q-row .th { width: 48px; height: 34px; border-radius: 7px; overflow: hidden; background: var(--bg-3); display: grid; place-items: center; color: var(--text-3); }
.q-row .th img { width: 100%; height: 100%; object-fit: cover; }
.q-row .what { min-width: 0; }
.q-row .what b { display: block; font-size: 12.5px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-row .what span { font: 500 10.5px var(--mono); color: var(--text-3); }
.q-row .who { font-size: 12px; color: var(--text-2); }
.q-row .eta { font: 500 11px var(--mono); color: var(--text-2); text-align: right; }
.q-row .ops { display: flex; justify-content: flex-end; gap: 2px; }
.q-row.now { background: linear-gradient(90deg, var(--a-soft), transparent 60%), var(--bg-1); }
.q-row.now .pos { color: var(--a); }
.q-row.other .what b { color: var(--text-3); font-weight: 500; }
.mbar { height: 2px; background: var(--bg-4); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.mbar i { display: block; height: 100%; background: var(--a); }

/* ------------------------------------------------ the dock */
.dock { position: fixed; z-index: 70; left: calc(var(--rail) + (100vw - var(--rail)) / 2); bottom: 18px; transform: translateX(-50%); width: min(880px, calc(100vw - var(--rail) - 40px));
  background: #111114; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.6), var(--hi);
  transition: box-shadow .3s, border-color .3s, transform .35s var(--ease); }
.dock.glow { border-color: var(--a-line); box-shadow: 0 24px 60px -12px rgba(0,0,0,.85), 0 0 0 4px var(--a-soft), var(--hi); }
.dock.hide { transform: translate(-50%, 140%); }
.dock-visitor { display: none; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
body[data-role="visitor"] .dock-visitor { display: flex; }
.dock-visitor b { color: var(--a); font-family: var(--mono); }
.turnstile { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-2); }
.turnstile em { font-style: normal; color: var(--text-3); font-size: 10.5px; }
.ts-box { width: 14px; height: 14px; border-radius: 4px; background: #1f9d55; position: relative; }
.ts-box::after { content: ''; position: absolute; left: 4px; top: 2px; width: 4px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg); }
.dock-main { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 6px; }
.ref { width: 52px; height: 52px; flex: none; border-radius: 11px; border: 1px dashed var(--line-3); display: grid; place-items: center; color: var(--text-3); position: relative; transition: all .15s; }
.ref:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-2); }
.ref.has { border: 0; box-shadow: 0 0 0 1px var(--line-3); }
.ref.has > .ico { display: none; }
.ref img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.ref-x { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: #2c2c32; border: 1px solid var(--line-3); font-size: 12px; line-height: 15px; color: var(--text); }
.ref-tag { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 8.5px var(--mono);  padding: 1px 5px; border-radius: 4px; background: var(--a); color: var(--a-ink); }
#prompt { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: transparent; font-size: 15px; line-height: 1.45; padding: 14px 4px 6px; max-height: 160px; color: var(--text); }
#prompt::placeholder { color: var(--text-3); }
.run { flex: none; height: 52px; min-width: 150px; padding: 0 18px; border-radius: 13px; background: var(--a); color: var(--a-ink); display: flex; flex-direction: column; justify-content: center; text-align: left; gap: 1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 22px -6px var(--a-line); transition: transform .1s, filter .15s; }
.run:hover { filter: brightness(1.07); }
.run:active { transform: scale(.98); }
.run-l { font-weight: 700; font-size: 14px; }
.run-eta { font-size: 10.5px; opacity: .8; font-weight: 600; }
.run kbd { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--a-ink); border-color: rgba(0,0,0,.25); opacity: .7; }
.run.off { background: var(--bg-3); color: var(--text-2); box-shadow: none; }
.run.off kbd { color: var(--text-3); border-color: var(--line-2); }
.dock-bar { display: flex; align-items: center; gap: 6px; padding: 6px 12px 12px 74px; flex-wrap: wrap; }
.dock-bar .sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }
.dock-bar .pill { height: 28px; padding: 0 10px; font-size: 12px; }
body[data-mode="image"] .vid-only, body[data-mode="video"] .img-only { display: none !important; }
.engine button[data-v="paid"][aria-checked="true"] { background: var(--a-soft); color: var(--a); }

/* popover */
.pop { position: fixed; z-index: 90; min-width: 220px; max-width: 380px; background: #151518; border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.9); animation: popIn .16s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.pop h4 { margin: 6px 8px 6px; font: 600 10.5px var(--mono);  color: var(--text-3); }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; text-align: left; transition: background .12s; }
.opt:hover { background: var(--bg-3); }
.opt.on { background: var(--bg-3); }
.opt .ot { flex: 1; min-width: 0; }
.opt .ot b { display: block; font-size: 13px; font-weight: 600; }
.opt .ot span { display: block; font-size: 11.5px; color: var(--text-3); }
.opt .r { font: 500 11px var(--mono); color: var(--text-2); }
.opt .r.a { color: var(--a); }
.opt.on::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--a); flex: none; }
.aspects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; }
.aspects button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 9px; font: 500 11px var(--mono); color: var(--text-2); }
.aspects button:hover, .aspects button.on { background: var(--bg-3); color: var(--text); }
.aspects button.on i { border-color: var(--a); }
.aspects i { display: block; border: 1.5px solid var(--text-3); border-radius: 3px; }
.counts { display: flex; gap: 4px; padding: 4px; }
.counts button { flex: 1; height: 34px; border-radius: 8px; font: 600 13px var(--mono); color: var(--text-2); border: 1px solid var(--line); }
.counts button.on { border-color: var(--a); color: var(--a); background: var(--a-soft); }
.set { padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 12px; width: 340px; }
.set .f { display: flex; flex-direction: column; gap: 6px; }
.set .fl { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-2); }
.set .fl .mono { color: var(--text); }
.set .fl .d { color: var(--text-3); font-size: 10.5px; margin-left: 6px; }
.set input[type=range] { width: 100%; accent-color: var(--a); height: 4px; }
.set .seed { display: flex; gap: 6px; }
.set .seed input { flex: 1; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-1); padding: 0 10px; font: 500 12px var(--mono); outline: none; }
.set select { height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-1); padding: 0 8px; font-size: 12.5px; }
.set .note { font-size: 11px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 10px; }
.quote { margin: 4px; padding: 10px 12px; border-radius: 10px; background: var(--a-soft); border: 1px solid var(--a-line); font-size: 12px; color: var(--text); display: flex; justify-content: space-between; }
.quote b { font-family: var(--mono); color: var(--a); }

/* ------------------------------------------------ viewer */
.viewer { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr) 400px; background: #030303; animation: vwIn .22s var(--ease); }
@keyframes vwIn { from { opacity: 0; } }
.vw-stage { position: relative; display: grid; place-items: center; padding: 28px 70px; min-height: 0; overflow: hidden; }
.vw-stage::before { content: ''; position: absolute; inset: -60px; background: var(--vw-bg) center / cover; filter: blur(80px) brightness(.22) saturate(1.1); opacity: .9; transform: scale(1.1); }
.vw-media { position: relative; max-width: 100%; max-height: 100%; display: grid; place-items: center; }
.vw-media img, .vw-media video { max-width: 100%; max-height: calc(100vh - 56px); border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); display: block; animation: zoomIn .32s var(--ease); }
@keyframes zoomIn { from { transform: scale(.97); opacity: .4; } }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: rgba(0,0,0,.35); z-index: 2; }
.vw-nav:hover { color: #fff; background: rgba(0,0,0,.6); }
.vw-nav.prev { left: 16px; } .vw-nav.next { right: 16px; }
.vw-close { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; color: var(--text-2); background: rgba(0,0,0,.35); }
.vw-close:hover { color: #fff; }
.vw-side > * { flex: none; }
.vw-side { background: var(--bg-1); border-left: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.vw-who { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; }
.vw-who .av { width: 32px; height: 32px; font-size: 13px; }
.vw-who b { display: block; font-size: 14px; font-weight: 620; }
.vw-acts { display: flex; align-items: center; gap: 6px; padding: 0 20px 16px; border-bottom: 1px solid var(--line); }
.act { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); font: 500 12px var(--mono); color: var(--text-2); transition: all .15s; }
.act:hover { color: var(--text); border-color: var(--line-3); }
.act.like.on { color: var(--a); border-color: var(--a-line); background: var(--a-soft); }
.act.like.on .ico { fill: currentColor; }
.act.like.bump .ico { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.vw-sec { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.vw-lbl { display: flex; justify-content: space-between; align-items: center; font: 600 12px var(--font); color: var(--text-3); margin-bottom: 9px; }
.copy { font: 500 11px var(--font); letter-spacing: 0; text-transform: none; color: var(--text-2); }
.copy:hover { color: var(--a); }
.vw-prompt { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); letter-spacing: -.01em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 12.5px; }
.kv dt { color: var(--text-3); }
.kv { grid-template-columns: 96px 1fr; }
.kv dd { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--text); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lineage { display: flex; align-items: center; gap: 8px; }
.ln { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.ln .lt { width: 84px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--bg-3); position: relative; cursor: pointer; box-shadow: 0 0 0 1px var(--line-2); }
.ln .lt img, .ln .lt video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ln .lt .ico { position: absolute; right: 4px; bottom: 4px; width: 13px; height: 13px; color: #fff; filter: drop-shadow(0 1px 2px #000); }
.ln.self .lt { box-shadow: 0 0 0 2px var(--a); cursor: default; }
.ln span { font: 500 11px var(--font); color: var(--text-3); }
.lineage { align-items: flex-start; } .ln-arrow { margin-top: 18px; margin-bottom: 0; }
.ln-arrow { color: var(--text-3); font: 500 14px var(--mono); margin-bottom: 18px; }
.ln-empty { color: var(--text-3); font-size: 12px; }
.ln .lt.add { display: grid; place-items: center; border: 1px dashed var(--line-3); background: transparent; box-shadow: none; color: var(--text-3); font: 500 10.5px var(--font); text-align: center; padding: 4px; }
.ln .lt.add:hover { color: var(--a); border-color: var(--a-line); }

/* ------------------------------------------------ picker */
.scrim { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.8); display: grid; place-items: center; animation: vwIn .18s; }
.picker { width: min(1100px, calc(100vw - 60px)); height: min(760px, calc(100vh - 60px)); background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 40px 100px -20px #000; animation: popIn .22s var(--ease); }
.pk-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px 10px 20px; }
.pk-head h2 { margin: 0; font-size: 15px; font-weight: 640; }
.pk-chips { padding: 0 16px 10px; }
.pk-grid { flex: 1; min-height: 0; grid-auto-rows: max-content; overflow-y: auto; padding: 4px 16px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-content: start; }
.pk-grid .tile { cursor: pointer; }
.pk-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }

/* ------------------------------------------------ tweaks, toast */
.tweaks { position: fixed; z-index: 120; left: 6px; bottom: 70px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(20,20,24,.92); border: 1px solid var(--line-2); font-size: 11.5px; color: var(--text-3); width: 176px; }
.tweaks b { font: 600 10px var(--mono);  color: var(--text-2); }
.tweaks label { display: flex; flex-direction: column; gap: 3px; }
.tweaks select { height: 26px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 12px; padding: 0 6px; }
.toast { position: fixed; z-index: 130; left: 50%; top: 72px; transform: translateX(-50%); padding: 9px 14px; border-radius: 11px; background: #1c1c20; border: 1px solid var(--line-2); font-size: 12.5px; box-shadow: 0 12px 30px rgba(0,0,0,.6); animation: popIn .2s var(--ease); }
.toast b { color: var(--a); }

@media (max-width: 1100px) { .viewer { grid-template-columns: 1fr; grid-template-rows: 62vh auto; overflow-y: auto; } .vw-side { border-left: 0; } .products { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.budget { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.budget i { width: 90px; height: 3px; border-radius: 2px; background: var(--bg-4); overflow: hidden; display: block; }
.budget i b { display: block; height: 100%; background: var(--text); }
/* tweaks collapsed */
.tweaks { width: auto; }
.tweaks:not(.open) label { display: none; }
.tweaks > b { cursor: pointer; }
.tweaks:not(.open) { width: 60px; padding: 6px 4px; align-items: center; }
.tweaks.open { width: 176px; }
.dock-visitor .u { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }

.res .kind { position: absolute; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 5px; border-radius: 7px; background: rgba(0,0,0,.55); font: 600 10.5px var(--mono); color: #fff; z-index: 2; }
.res .kind .ico { width: 12px; height: 12px; }
.res .cancel { position: absolute; top: 8px; right: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; opacity: 0; transition: opacity .15s; }
.res.dev:hover .cancel { opacity: 1; }
.chip.from { display: inline-flex; align-items: center; gap: 5px; padding-left: 2px; }
.chip.from img { width: 22px; height: 14px; object-fit: cover; border-radius: 3px; display: block; }

/* ================================================= CREATE v2: composer | works | inspector */
.view.create { padding: 0; height: 100%; display: grid; grid-template-columns: 372px minmax(0, 1fr) auto; animation: none; }
.main:has(> .view.create:not([hidden])) { overflow: hidden; }
.composer { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #0a0a0c; }
.composer.glow { box-shadow: inset 0 0 0 1px var(--a-line); }
.cp-scroll { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 20px; }
.seg.wide { display: flex; } .seg.wide button { flex: 1; justify-content: center; padding: 7px 0; font-size: 13px; }
.cp-sec { display: flex; flex-direction: column; gap: 8px; }
.cp-lbl { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.cp-opt { font-weight: 450; color: var(--text-3); font-size: 12px; }
.cp-fold { width: 100%; justify-content: flex-start; gap: 6px; }
.cp-fold .ico { transition: transform .2s; } .cp-fold.open .ico { transform: rotate(180deg); }
#prompt, #neg { width: 100%; resize: none; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-1); padding: 12px 13px; font-size: 14.5px; line-height: 1.5; outline: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
#prompt { min-height: 132px; }
#neg { font-size: 13px; }
#prompt:focus, #neg:focus { border-color: var(--line-3); box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
#prompt::placeholder, #neg::placeholder { color: var(--text-3); }
.cp-more { align-self: flex-start; font-size: 12px; color: var(--text-3); }
.cp-more:hover { color: var(--text); }
.well { position: relative; height: 118px; border-radius: 12px; border: 1px dashed var(--line-3); display: grid; place-items: center; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.well:hover, .well.over { border-color: var(--a-line); background: var(--a-soft); }
.well.has { border: 0; height: 168px; background: #000; }
.well img { width: 100%; height: 100%; object-fit: contain; }
.well-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3); font-size: 12.5px; text-align: center; padding: 0 20px; }
.well-empty u { color: var(--text); text-underline-offset: 3px; }
.well-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; }
.cp-range { display: grid; grid-template-columns: auto 1fr 36px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.cp-range input { accent-color: var(--a); }
.cp-range output { text-align: right; color: var(--text); }
.mlist { display: flex; flex-direction: column; gap: 4px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); text-align: left; transition: all .15s; }
.mrow:hover { border-color: var(--line-3); }
.mrow.on { border-color: var(--a-line); background: var(--a-soft); }
.mrow .ot { flex: 1; min-width: 0; } .mrow b { display: block; font-size: 13.5px; font-weight: 600; }
.mrow .ot span { display: block; font-size: 12px; color: var(--text-3); }
.mrow .r { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.mrow .r.a { color: var(--a); }
.composer .aspects { padding: 0; grid-template-columns: repeat(4, 1fr); }
.composer .aspects button { border: 1px solid var(--line); font-family: var(--font); }
.composer .aspects button.on { border-color: var(--a-line); background: var(--a-soft); }
.composer .counts { padding: 0; }
.composer .counts button { font-family: var(--font); font-weight: 600; }
.composer .counts button:disabled { color: var(--off); border-color: var(--line); cursor: not-allowed; }
.lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.lchip { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 6px 0 11px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 550; }
.lchip input { width: 44px; accent-color: var(--a); }
.lchip button { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--text-3); }
.lchip button:hover { color: var(--text); background: var(--bg-4); }
.lchip.add { padding: 0 11px; border-style: dashed; color: var(--text-2); }
.lchip.add:hover { color: var(--text); border-color: var(--text-3); }
.composer .set { width: auto; padding: 0; }
.cp-foot { flex: none; padding: 12px 18px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: #0a0a0c; }
.cp-foot .engine { display: flex; } .cp-foot .engine button { flex: 1; justify-content: center; }
.cp-foot .engine button[data-v="paid"][aria-checked="true"] { background: var(--a-soft); color: var(--a); }
.composer .run { width: 100%; height: 50px; align-items: center; flex-direction: row; justify-content: space-between; padding: 0 18px; }
.composer .run-eta { font-size: 12px; font-weight: 600; opacity: .75; }
.cp-visitor { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--a-soft); border: 1px solid var(--a-line); font-size: 12.5px; }
body[data-role="visitor"] .cp-visitor { display: flex; }
.cp-visitor b { color: var(--a); } .cp-visitor .u { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.works { min-width: 0; min-height: 0; overflow-y: auto; padding: 0 22px 40px; }
.works .vhead { margin: 0 -22px; }
.res.sel { box-shadow: 0 0 0 2px var(--a); }
.run-imgs { height: 260px; overflow-x: auto; scrollbar-width: none; }

/* inspector: like Music, clicking a work opens it here */
.insp { width: 420px; min-height: 0; overflow-y: auto; border-left: 1px solid var(--line); background: var(--bg-1); display: flex; flex-direction: column; animation: inspIn .24s var(--ease); }
@keyframes inspIn { from { opacity: 0; transform: translateX(12px); } }
.insp > * { flex: none; }
.in-head { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); }
.in-head b { font-size: 14px; font-weight: 620; margin-right: auto; }
.in-media { position: relative; background: #000; display: grid; place-items: center; cursor: zoom-in; }
.in-media img, .in-media video { display: block; max-width: 100%; max-height: 380px; }
.in-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.in-acts .btn { width: 100%; }
.in-acts .wide { grid-column: span 2; }
.in-acts .row2 { grid-column: span 2; display: flex; gap: 6px; } .in-acts .row2 .btn { flex: 1; }
.insp .vw-sec { padding: 14px 18px; }
@media (max-width: 1280px) { .view.create { grid-template-columns: 340px minmax(0, 1fr) auto; } .insp { width: 360px; } }

.cp-scroll { padding-bottom: 28px; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); }
.cp-more::before { content: '+ '; }
.in-acts .danger { color: var(--text-3); background: transparent; box-shadow: none; }
.in-acts .danger:hover { color: var(--danger); border-color: rgba(255,90,82,.4); }
.res.dev .bar { height: 3px; }
