/* Step-by-step creator (wizard.js), the studio home tabs (studiohub.js) and the song cards of the Cartoon Maker. */
.wz { display: flex; flex-direction: column; gap: 16px; }
.wz-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.wz-step { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.wz-n { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--panel-3); color: var(--muted); border: 0; font: 700 12.5px var(--font); cursor: pointer; padding: 0; }
.wz-stage .wz-n { cursor: default; }
.wz-step.seen .wz-n { background: var(--accent-bg); color: var(--accent-2); }
.wz-step.on { border-color: var(--accent); color: var(--text); background: var(--accent-bg); } .wz-step.on .wz-n { background: var(--accent); color: #fff; }
.wz-step.done { color: var(--text); } .wz-step.done .wz-n { background: var(--ok, #3ecf8e); color: #06210f; }
.wz-body { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.wz-head h2 { font-size: 18px; letter-spacing: -.01em; } .wz-head p { margin-top: 4px; max-width: 70ch; }
.wz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wz-summary { border-top: 1px dashed var(--line-2); padding-top: 14px; }
.wz-adv { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.wz-adv > summary { cursor: pointer; padding: 9px 12px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 13px; list-style: none; }
.wz-adv > summary::-webkit-details-marker { display: none; } .wz-adv[open] > summary { color: var(--text); border-bottom: 1px solid var(--line); }
.wz-adv-body { padding: 12px; }
.wz .sp-step { border: 0; padding: 0; background: none; box-shadow: none; }
@media (max-width: 720px) { .wz-t { display: none; } .wz-step.on .wz-t { display: inline; } .wz-body { padding: 14px; } }

/* studio home */
.hub { display: flex; flex-direction: column; }
.hub-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.hub-th { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--panel-3); display: grid; place-items: center; color: var(--faint); flex: none; }
.hub-th img, .hub-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--text); } .hub-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-live { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--text); }
.hub-bar { height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; } .hub-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s ease; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.hub-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); }
.hub-card:hover { border-color: var(--accent); }
.hub-cover { aspect-ratio: 9 / 12; border-radius: 8px; background: var(--panel-3); display: grid; place-items: center; overflow: hidden; color: var(--faint); margin-bottom: 4px; }

/* the cartoon's music step */
.cb-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.cb-mode { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); cursor: pointer; font-size: 12.5px; }
.cb-mode b { color: var(--text); font-size: 14px; } .cb-mode.on { border-color: var(--accent); background: var(--accent-bg); }
.cb-preview { display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.cb-tl { display: flex; gap: 2px; height: 34px; border-radius: 8px; overflow: hidden; }
.cb-tl-c { display: block; background: var(--accent-d); border-radius: 3px; min-width: 3px; } .cb-tl-c.veo { background: #8f6cff; }
.cb-struct { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cb-copy { align-items: flex-start; }

/* ---- module guidance (guide.js): how it works, Beta, Advanced options, the credits a workflow uses ---- */
.beta-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #1b1300; background: #f5c542; vertical-align: middle; }
.guide-help > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 6px; }
.guide-help > summary::before { content: '?'; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; background: var(--accent-bg); color: var(--accent-2); font-size: 12px; font-weight: 700; }
.guide-body { display: grid; gap: 12px; margin-top: 10px; }
.guide-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 16px; align-items: start; }
.guide-list ol { margin: 4px 0 0 18px; padding: 0; } .guide-list li { margin: 2px 0; }
.guide-example { margin: 0; } .guide-example video { width: 100%; max-height: 420px; border-radius: 12px; background: #000; display: block; }
@media (max-width: 760px) { .guide-cols { grid-template-columns: 1fr; } }
.credits-box { display: grid; gap: 6px; margin: 8px 0; }
.credits-total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.credits-lines summary { cursor: pointer; font-size: 12.5px; color: var(--accent-2); }
.credits-lines table { width: 100%; margin-top: 6px; font-size: 12.5px; } .credits-lines td { padding: 3px 4px; vertical-align: top; }
