/* Genexts Studio (studio.js): calm & minimal, one teal accent */
#studio-root { overflow: auto; height: 100%; }
#studio-root p, #studio-root h1, #studio-root h2, #studio-root ul { margin: 0; }
.st-wrap { --st-accent: rgb(var(--brand-rgb, 46, 230, 182)); --st-line: rgba(127,127,127,.18); --st-soft: rgba(127,127,127,.05);
  max-width: 920px; margin: 0 auto; padding: 48px 32px 80px; display: flex; flex-direction: column; gap: 28px; }
.st-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.st-muted, .st-head p { color: var(--text-secondary, #94a3b8); }
.st-muted { font-size: .85rem; }

/* header */
.st-head { display: flex; flex-direction: column; gap: 8px; }
.st-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--st-accent); }
.st-eyebrow .st-i { width: 16px; height: 16px; }
.st-head h1 { font-size: 2rem; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.st-head p { font-size: 1rem; line-height: 1.5; max-width: 620px; }

/* service cards */
.st-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.st-svc { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; cursor: pointer; text-align: left;
  background: var(--st-soft); border: 1px solid var(--st-line); color: var(--text-primary); transition: border-color .15s, background .15s; }
.st-svc:hover { border-color: rgba(127,127,127,.32); }
.st-svc.on { border-color: color-mix(in srgb, var(--st-accent) 65%, transparent); background: color-mix(in srgb, var(--st-accent) 7%, transparent); }
.st-svc-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.st-svc-text b { font-size: .98rem; }
.st-svc-text small { font-size: .82rem; color: var(--text-secondary, #94a3b8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-logo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(127,127,127,.1); flex: none; overflow: hidden; }
.st-logo svg { width: 40px; height: 40px; }
.st-logo.big, .st-logo.big svg { width: 56px; height: 56px; border-radius: 15px; }
.st-pill { font-size: .72rem; padding: 4px 9px; border-radius: 999px; background: rgba(127,127,127,.12); color: var(--text-secondary, #94a3b8); white-space: nowrap; }
.st-pill::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; opacity: .8; }
.st-pill.ok { color: var(--st-accent); background: color-mix(in srgb, var(--st-accent) 12%, transparent); }

/* connect panel */
.st-connect { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 40px 28px;
  border-radius: 20px; border: 1px solid var(--st-line); background: var(--st-soft); }
.st-connect h2 { font-size: 1.4rem; font-weight: 700; }
.st-connect > p { color: var(--text-secondary, #94a3b8); max-width: 520px; line-height: 1.5; }
.st-points { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; width: 100%; max-width: 720px; margin: 10px 0 6px !important; }
.st-points li { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--st-line); background: rgba(127,127,127,.03); }
.st-points li .st-i { color: var(--st-accent); margin-top: 1px; }
.st-points span { display: flex; flex-direction: column; gap: 3px; font-size: .84rem; line-height: 1.45; color: var(--text-secondary, #94a3b8); }
.st-points b { color: var(--text-primary); font-size: .9rem; }
.st-big-btn { padding: .7rem 1.4rem !important; font-size: .98rem; display: inline-flex; align-items: center; gap: 8px; }

/* connected: toolbar, models, make */
.st-body { display: flex; flex-direction: column; gap: 16px; }
.st-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-seg { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--st-line); border-radius: 12px; background: var(--st-soft); }
.st-seg button { padding: .45rem .9rem; background: none; border: 0; border-radius: 9px; color: var(--text-secondary, #94a3b8); cursor: pointer; display: flex; gap: 6px; align-items: center; font-weight: 500; }
.st-seg button.on { background: color-mix(in srgb, var(--st-accent) 14%, transparent); color: var(--st-accent); }
.st-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: .55rem .8rem; border-radius: 12px; border: 1px solid var(--st-line); background: var(--st-soft); color: var(--text-secondary, #94a3b8); }
.st-search input { flex: 1; background: none; border: 0; outline: none; color: var(--text-primary); font-size: .92rem; }
.st-bal { font-size: .85rem; color: var(--text-secondary, #94a3b8); }
.st-bal a { color: var(--st-accent); text-decoration: none; }
.st-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; max-height: 440px; overflow: auto; padding: 2px; }
.st-model { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; cursor: pointer;
  background: var(--st-soft); border: 1px solid var(--st-line); color: var(--text-primary); transition: border-color .15s; }
.st-model:hover { border-color: rgba(127,127,127,.32); }
.st-model b { font-size: .92rem; }
.st-model em { font-style: normal; font-size: .72rem; color: var(--text-secondary, #94a3b8); }
.st-model span { font-size: .8rem; line-height: 1.4; color: var(--text-secondary, #94a3b8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-model small { font-size: .75rem; color: var(--st-accent); margin-top: auto; }
.st-model.poor small { color: #f59e0b; }
.st-model.on { border-color: var(--st-accent); background: color-mix(in srgb, var(--st-accent) 8%, transparent); }
.st-make { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--st-accent) 40%, transparent); background: var(--st-soft); }
.st-make-head { display: flex; gap: 10px; align-items: baseline; }
.st-make-head b { font-size: 1.05rem; }
.st-make-head small { color: var(--text-secondary, #94a3b8); }
.st-make textarea { width: 100%; box-sizing: border-box; border-radius: 12px; padding: .8rem .9rem; border: 1px solid var(--st-line); background: rgba(127,127,127,.06);
  color: var(--text-primary); resize: vertical; font: inherit; line-height: 1.5; outline: none; }
.st-make textarea:focus { border-color: color-mix(in srgb, var(--st-accent) 60%, transparent); }
.st-opts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.st-opts label { display: flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--text-secondary, #94a3b8); }
.st-opts select { padding: .4rem .6rem; border-radius: 9px; border: 1px solid var(--st-line); background: rgba(127,127,127,.06); color: var(--text-primary); }
.st-opts [data-act="make"] { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.st-hint { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px; border-radius: 14px; border: 1px dashed var(--st-line); color: var(--text-secondary, #94a3b8); font-size: .9rem; }
.st-err { color: #f87171; }

/* creations */
.st-gallery { display: flex; flex-direction: column; gap: 14px; }
.st-sec-head { display: flex; align-items: baseline; gap: 10px; }
.st-sec-head h2 { font-size: 1.15rem; font-weight: 700; }
.st-sec-head small { color: var(--text-secondary, #94a3b8); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.st-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 20px; border-radius: 18px; border: 1px dashed var(--st-line); color: var(--text-secondary, #94a3b8); text-align: center; }
.st-empty .st-i { width: 30px; height: 30px; margin-bottom: 4px; opacity: .7; }
.st-empty b { color: var(--text-primary); }
.st-empty span { font-size: .88rem; }
.st-item { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--st-line); background: var(--st-soft); }
.st-item img, .st-item video { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; background: #000; }
.st-item figcaption { padding: 10px 12px 12px; font-size: .8rem; display: flex; flex-direction: column; gap: 4px; }
.st-item figcaption span { color: var(--text-secondary, #94a3b8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-item figcaption a { color: var(--st-accent); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.st-item figcaption a .st-i { width: 14px; height: 14px; }
.st-wait { aspect-ratio: 1; display: grid; place-items: center; color: var(--text-secondary, #94a3b8); font-size: .85rem; padding: 1rem; text-align: center; }
.st-wait.bad { color: #f87171; }
@media (max-width: 640px) { .st-wrap { padding: 28px 16px 60px; gap: 22px; } .st-head h1 { font-size: 1.6rem; } }
