/* The studio on the home page: Create (left) with your songs (right), the player
   pinned at the bottom, and the Album batch / Settings views. Sits inside the
   site-wide frame (shell.css); colour tokens from landing.css. */
:root { --ok: #46d6c3; --warn: #e6a95c; --err: #f26a5f; --input: #0f1118; --outline: #343c4f; --strip-h: 42px; --player-h: 76px; }
.st { min-height: calc(100vh - var(--strip-h)); display: flex; flex-direction: column; }
.st section { padding: 0; } /* landing.css pads every section */
.app-view[hidden] { display: none !important; }
body.has-player .st { padding-bottom: var(--player-h); }
.st svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st svg.fill, .st-player svg.fill { fill: currentColor; stroke: none; }
.flash-fill { animation: flash-fill 1.1s ease; }
@keyframes flash-fill { 0% { border-color: var(--accent-hi); box-shadow: inset 0 0 0 2px rgba(233, 168, 58, 0.45); } 100% { box-shadow: none; } }

/* ================= Create + Your songs ================= */
/* one screen: Create (two thirds) and Your songs (one third), Swara's picture over the songs */
.st-home {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  height: calc(100vh - var(--strip-h)); min-height: 640px;
}
body.has-player .st-home { height: calc(100vh - var(--strip-h) - var(--player-h)); }
.st-tabs { display: none; }
/* no overscroll containment: at the end of a panel the page itself scrolls on (to the FAQ below) */
.st-create, .st .st-songs { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #262b39 transparent; }
.st-create { border-right: 1px solid var(--border-soft); }
.st-create-in { padding: 18px 24px 24px; }

/* the headline: plain words over the form */
.st-intro { margin: 2px 2px 16px; }
.st-h1 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.st-h1 span {
  background: linear-gradient(95deg, #fff1cf, var(--accent-hi) 45%, var(--accent) 80%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.st-sub { margin: 6px 0 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.5; }

/* Swara, whole, at the top of Your songs */
.st-art { position: relative; margin: 0 0 18px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(233, 168, 58, 0.28); box-shadow: 0 18px 40px -18px rgba(233, 168, 58, 0.35); }
.st-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.st-art figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: 12px; color: var(--text-dim); text-align: center;
  background: linear-gradient(0deg, rgba(8, 8, 10, 0.92), rgba(8, 8, 10, 0));
}
.st-art figcaption b { color: var(--accent-hi); font-weight: 700; }
.st-phone-art { display: none; }

/* engine picker */
.st-engine { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.st-composer .st-status { margin: 12px 0 0; }
.st-engine-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-select {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(7, 8, 11, 0.5); color: var(--text-dim); cursor: pointer;
}
.st-select:hover, .st-select:focus-within { border-color: rgba(233, 168, 58, 0.5); }
.st-select svg { width: 16px; height: 16px; flex-shrink: 0; }
.st-select-k { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); }
.st-select select { background: transparent; border: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 700; padding: 6px 2px; cursor: pointer; min-width: 0; }
.st-select select:focus-visible { outline: none; box-shadow: none; }
.st-select select option { background: var(--card); color: var(--text); }
.st-engine-pick { flex: 1; min-width: 220px; }
.st-engine-pick select { flex: 1; }
.st-link-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 4px; background: none; border: none; cursor: pointer;
  color: var(--accent-hi); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 194, 92, 0.35); text-underline-offset: 3px;
}
.st-link-btn:hover { text-decoration-color: var(--accent-hi); }
.st-link-btn svg { width: 16px; height: 16px; }
.st-link-btn[hidden] { display: none; }

.st-pro { margin-top: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); }
.st-pro[hidden] { display: none; }
.st-keyline { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; }
.st-key-state { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-key-state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex-shrink: 0; }
.st-key-state .dot.ok { background: var(--ok); }
.st-key-where { font-weight: 500; color: var(--text-faint); font-size: 12.5px; }
.st-keyget { margin: 8px 0 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; padding-left: 10px; border-left: 2px solid var(--accent-lo); }
.st-keyget[hidden] { display: none; }
.st-keyget a { color: var(--accent-hi); font-weight: 700; text-decoration: none; }
.st-keyget a:hover { text-decoration: underline; }
.key-get-steps { color: var(--text-faint); }
.st-model { width: 100%; margin-top: 10px; }
.st-model select { flex: 1; }
.st-cost { margin: 8px 0 0; font-size: 12.5px; color: var(--text-faint); line-height: 1.5; }

/* small buttons */
.st-mini {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: 12.5px; font-weight: 700; border: 1px solid var(--border); background: transparent; color: var(--text);
}
.st-mini:hover { border-color: rgba(233, 168, 58, 0.55); }
.st-mini.primary { border: none; color: #0b0b0d; background: linear-gradient(90deg, var(--accent-lo), var(--accent)); }
.st-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: transparent;
}
.st-btn.primary { border: none; color: #0b0b0d; background: linear-gradient(90deg, var(--accent-lo), var(--accent)); }
.st-btn:hover { border-color: rgba(233, 168, 58, 0.55); }
.st-btn:disabled { opacity: .6; cursor: default; }

/* status cards (device check, one-time download, errors) */
.st-status:empty { display: none; }
.st-status { margin-bottom: 14px; }
.st-card {
  display: flex; gap: 13px; align-items: flex-start; padding: 14px 15px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border);
}
.st-card[hidden] { display: none; }
#pending-job-card { margin-bottom: 14px; border-color: rgba(230, 169, 92, 0.5); }
.st-card.gold { border-color: rgba(233, 168, 58, 0.45); background: linear-gradient(160deg, rgba(233, 168, 58, 0.09), transparent 60%), var(--card); }
.st-card.good { border-color: rgba(70, 214, 195, 0.4); background: linear-gradient(160deg, rgba(70, 214, 195, 0.07), transparent 60%), var(--card); }
.st-card.bad { border-color: rgba(242, 106, 95, 0.45); }
.st-card.slim { padding: 10px 13px; align-items: center; background: transparent; border-color: var(--border-soft); }
.st-card-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(233, 168, 58, 0.12); color: var(--accent-hi);
}
.st-card-icon svg { width: 20px; height: 20px; }
.st-card.good .st-card-icon, .st-card.slim .st-card-icon { background: rgba(70, 214, 195, 0.12); color: var(--ok); }
.st-card.slim .st-card-icon { width: 28px; height: 28px; border-radius: 8px; }
.st-card.slim .st-card-icon svg { width: 16px; height: 16px; }
.st-card.bad .st-card-icon { background: rgba(242, 106, 95, 0.12); color: #ff9b9b; }
.st-card-body { flex: 1; min-width: 0; }
.st-card-body h3 { margin: 1px 0 4px; font-size: 14.5px; }
.st-card.slim h3 { font-size: 13.5px; margin: 0; }
.st-card-body p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.st-card.slim .st-card-body p { font-size: 12.5px; color: var(--text-faint); }
.st-card-body p + p { margin-top: 6px; }
.st-card-body p.st-warn { color: var(--warn); }
.st-card-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.st-prog { margin: 10px 0 8px; }
.st-prog-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.st-prog-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.st-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi)); transition: width .4s ease; }

/* composer */
.st-composer { padding: 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)), var(--card); border: 1px solid var(--border); }
.st-composer:focus-within { border-color: rgba(233, 168, 58, 0.35); }
.st-seg { display: flex; padding: 3px; border-radius: 999px; background: rgba(7, 8, 11, 0.6); border: 1px solid var(--border-soft); margin-bottom: 14px; }
.st-seg button {
  flex: 1; padding: 7px 12px; border-radius: 999px; border: none; background: transparent; cursor: pointer;
  color: var(--text-dim); font: inherit; font-size: 13.5px; font-weight: 700;
}
.st-seg button.on { color: #0b0b0d; background: linear-gradient(90deg, var(--accent-lo), var(--accent)); }
.st-field { margin-bottom: 12px; }
.st-field[hidden] { display: none; }
.st-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 6px; }
.st-label label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.st-hint { font-size: 12px; color: var(--text-faint); }
.st-composer textarea {
  width: 100%; resize: vertical; min-height: 54px; padding: 11px 13px; border-radius: 12px;
  background: rgba(7, 8, 11, 0.55); border: 1px solid var(--border-soft); color: var(--text);
  font: inherit; font-size: 14.5px; line-height: 1.5;
}
.st-composer textarea::placeholder { color: #6d7590; }
#create-lyrics { min-height: 170px; font-size: 14px; }
.st-dice {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text-dim); font: inherit; font-size: 12.5px; font-weight: 700;
}
.st-dice svg { width: 17px; height: 17px; }
.st-dice svg circle { fill: currentColor; stroke: none; }
.st-dice:hover { color: var(--accent-hi); border-color: rgba(233, 168, 58, 0.55); }
.st-dice:hover svg { transform: rotate(-12deg); }
.st-dice svg { transition: transform .2s ease; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.st-chip {
  padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.st-chip:hover { color: var(--text); border-color: rgba(233, 168, 58, 0.5); }
.st-chip.on { color: var(--accent-hi); border-color: rgba(233, 168, 58, 0.6); background: rgba(233, 168, 58, 0.1); }
.st-opts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.st-opts .st-select { height: 36px; border-radius: 999px; }
.st-opts .st-select select { font-size: 13px; }
.st-pro-len { font-size: 12.5px; color: var(--text-faint); }
.st-pro-len[hidden], .swara-only[hidden] { display: none !important; }
.st-ghost {
  display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent;
  color: var(--text-dim); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; margin-left: auto;
}
.st-ghost svg { width: 15px; height: 15px; transition: transform .2s ease; }
.st-ghost[aria-expanded="true"] { color: var(--accent-hi); border-color: rgba(233, 168, 58, 0.5); }
.st-ghost[aria-expanded="true"] svg { transform: rotate(180deg); }
.st-ghost:hover { color: var(--text); border-color: rgba(233, 168, 58, 0.5); }
.st-adv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; padding: 12px 2px 2px; border-top: 1px solid var(--border-soft); }
.st-adv[hidden] { display: none; }
.st-adv-f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-faint); min-width: 0; }
.st-adv-wide, .st-adv-f:first-child { grid-column: 1 / -1; }
.st-adv select, .st-adv input[type=text] {
  background: rgba(7, 8, 11, 0.55); border: 1px solid var(--border-soft); color: var(--text); border-radius: 9px;
  padding: 7px 10px; font: inherit; font-size: 13.5px; font-weight: 500; width: 100%; min-width: 0;
}
.st-inline { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text-dim); }
.st-inline input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); }
.st-inline output { min-width: 62px; font-size: 12.5px; color: var(--text); }
.st-inline input[type=text] { width: 96px; flex-shrink: 0; }
.st-inline .st-hint { font-size: 11px; line-height: 1.3; }
.st-msg { margin: 10px 2px 0; font-size: 13px; color: #ffb3a8; }
.st-msg[hidden] { display: none; }
.st-go {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 48px; margin-top: 14px;
  border-radius: 999px; border: none; cursor: pointer; font: inherit; font-size: 16px; font-weight: 800; color: #0b0b0d;
  background: linear-gradient(90deg, var(--accent-lo), var(--accent), var(--accent-hi));
  box-shadow: 0 10px 28px -10px rgba(233, 168, 58, 0.7); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.st-go svg { width: 19px; height: 19px; stroke-width: 2; }
.st-go:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(233, 168, 58, 0.85); }
.st-go:disabled { filter: grayscale(0.6) brightness(0.7); cursor: default; transform: none; box-shadow: none; }
.st-go-bar {
  position: sticky; bottom: 0; z-index: 2; margin: 0 -16px -16px; padding: 4px 16px 16px; border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(20, 23, 34, 0), var(--card) 22px);
}
.st-go-bar .st-go { margin-top: 10px; }
.st-eta { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--text-faint); }
.st-eta:empty { display: none; }

/* your songs */
.st .st-songs { padding: 24px 28px 40px; min-width: 0; }
.st-songs-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.st-songs-head h2 { margin: 0; font-size: 21px; display: flex; align-items: center; gap: 10px; }
.st-n { font-size: 12px; font-weight: 800; color: var(--text-faint); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.st-n:empty { display: none; }
.st-songs-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-search { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(7, 8, 11, 0.5); color: var(--text-faint); }
.st-search:focus-within { border-color: rgba(233, 168, 58, 0.5); }
.st-search svg { width: 15px; height: 15px; }
.st-search input { background: none; border: none; color: var(--text); font: inherit; font-size: 13px; width: 130px; }
.st-search input:focus-visible { outline: none; box-shadow: none; }
.st-filter { display: inline-flex; padding: 2px; border-radius: 999px; border: 1px solid var(--border); }
.st-filter button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; border: none; background: transparent; color: var(--text-dim); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.st-filter button svg { width: 13px; height: 13px; }
.st-filter button.on { background: rgba(233, 168, 58, 0.13); color: var(--accent-hi); }
.st-where { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; font-size: 12.5px; color: var(--text-faint); }
.st-where a { color: var(--text-dim); font-weight: 700; }
.st-where.warn { padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(230, 169, 92, 0.45); background: rgba(230, 169, 92, 0.07); color: var(--text-dim); }
.st-where.warn span { flex: 1; min-width: 200px; }
.st-list { display: flex; flex-direction: column; gap: 4px; }

.sg {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 8px 10px 8px 8px; border-radius: 14px; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease;
}
.sg:hover { background: rgba(255, 255, 255, 0.03); }
.sg.current, .sg.open { background: rgba(255, 255, 255, 0.035); border-color: var(--border-soft); }
.sg.playing { border-color: rgba(233, 168, 58, 0.35); background: rgba(233, 168, 58, 0.05); }
.sg.fresh { animation: sg-in .6s ease; border-color: rgba(233, 168, 58, 0.45); }
@keyframes sg-in { from { opacity: 0; transform: translateY(-6px); } }
.sg-cover {
  position: relative; width: 64px; height: 64px; border-radius: 12px; border: none; padding: 0; cursor: pointer; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.28), transparent 45%),
    linear-gradient(140deg, hsl(var(--h1, 36) 62% 46%), hsl(var(--h2, 20) 58% 22%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.sg-cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0 2px, transparent 2px 7px); mask: linear-gradient(0deg, #000 0 32%, transparent 60%); -webkit-mask: linear-gradient(0deg, #000 0 32%, transparent 60%); }
.sg-ic {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; z-index: 1;
  display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(4px);
  opacity: 0; transform: scale(.85); transition: opacity .15s ease, transform .15s ease;
}
.sg-ic svg { width: 15px; height: 15px; }
.sg:hover .sg-ic, .sg.playing .sg-ic, .sg.current .sg-ic, .sg-cover:focus-visible .sg-ic { opacity: 1; transform: none; }
.sg-note { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -15px 0 0 -13px; z-index: 1; color: rgba(255, 255, 255, 0.92); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); transition: opacity .15s ease; }
.sg-note svg { width: 26px; height: 26px; stroke-width: 1.9; }
.sg:hover .sg-note, .sg.playing .sg-note, .sg.current .sg-note, .sg-cover:focus-visible .sg-note { opacity: 0; }
.sg-len { position: absolute; right: 4px; bottom: 3px; z-index: 1; font-size: 10.5px; font-weight: 700; padding: 0 4px; border-radius: 4px; background: rgba(0, 0, 0, 0.5); font-variant-numeric: tabular-nums; }
.sg-main { min-width: 0; cursor: pointer; border-radius: 8px; }
.sg-main:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.sg-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--text); min-width: 0; }
.sg-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.sg-tag { display: inline-block; margin-left: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; vertical-align: 2px; }
.sg-style { margin-top: 2px; font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-meta { margin-top: 2px; font-size: 11.5px; color: var(--text-faint); }
.sg-meta:empty { display: none; }
.sg-acts { display: flex; align-items: center; gap: 2px; }
.sg-fav, .sg-more {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: transparent; cursor: pointer; color: var(--text-faint);
  display: inline-flex; align-items: center; justify-content: center;
}
.sg-fav svg, .sg-more svg { width: 18px; height: 18px; }
.sg-fav:hover, .sg-more:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.sg-fav.on { color: #ff6b8a; }
.sg-fav.on svg { fill: currentColor; }
.sg-fav:not(.on) { opacity: 0; }
.sg:hover .sg-fav, .sg-fav:focus-visible, .sg.open .sg-fav, .sg.current .sg-fav { opacity: 1; }
@media (hover: none) { .sg-fav:not(.on) { opacity: 1; } }
.sg-detail { grid-column: 2 / -1; padding: 2px 4px 8px 0; }
.sg-dmeta { font-size: 12px; color: var(--text-faint); margin-bottom: 8px; }
.sg-detail h4 { margin: 10px 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.sg-dtext { margin: 0; font: inherit; font-size: 13px; line-height: 1.55; color: var(--text-dim); white-space: pre-wrap; max-height: 220px; overflow-y: auto; padding: 9px 11px; border-radius: 10px; background: rgba(7, 8, 11, 0.5); border: 1px solid var(--border-soft); }
.sg-dacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
/* a song being made */
.sg-making { border-color: rgba(233, 168, 58, 0.35); background: linear-gradient(90deg, rgba(233, 168, 58, 0.07), transparent 70%); cursor: default; }
.sg-making .sg-cover { cursor: default; }
.sg-spin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; z-index: 1; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: sg-spin .9s linear infinite; }
@keyframes sg-spin { to { transform: rotate(360deg); } }
.sg-step { display: flex; align-items: center; gap: 7px; margin: 3px 0 7px; font-size: 12.5px; color: var(--text-dim); }
.sg-live { display: inline-flex; }
.sg-live[hidden] { display: none; }
.sg-live i, .pl-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.sg-making .st-bar { max-width: 360px; }
.st-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 56px 20px; border: 1px dashed var(--border); border-radius: 18px; color: var(--text-faint); }
.st-empty b { color: var(--text); font-size: 15.5px; }
.st-empty p { margin: 0; max-width: 360px; font-size: 13.5px; line-height: 1.55; }
.st-empty > svg { width: 26px; height: 26px; color: #ff6b8a; }
.st-empty-art { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; color: var(--accent-hi); background: rgba(233, 168, 58, 0.1); box-shadow: inset 0 0 0 1px rgba(233, 168, 58, 0.25); }
.st-empty-art svg { width: 28px; height: 28px; }

/* the ⋯ menu */
.st-menu {
  position: fixed; z-index: 60; min-width: 190px; padding: 6px; border-radius: 12px;
  background: #171a25; border: 1px solid var(--outline); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.st-menu[hidden] { display: none; }
.st-menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 8px; border: none; background: none; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
.st-menu button:hover, .st-menu button:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.st-menu button.danger { color: #ff9b9b; }

/* ================= the player ================= */
.st-player {
  position: fixed; left: 248px; right: 0; bottom: 0; z-index: 40; height: var(--player-h);
  display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(200px, 1.4fr) auto; align-items: center; gap: 18px;
  padding: 0 18px 0 12px; background: rgba(13, 15, 21, 0.97); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(233, 168, 58, 0.25); box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.4);
}
.st-player[hidden] { display: none; }
.st-player svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-cover { width: 50px; height: 50px; border-radius: 10px; flex-shrink: 0; background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.28), transparent 45%), linear-gradient(140deg, hsl(var(--h1, 36) 62% 46%), hsl(var(--h2, 20) 58% 22%)); }
.st-player > .pl-cover { display: none; }
.pl-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-info::before { content: ""; }
.pl-info { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.pl-info b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-info span { font-size: 12px; color: var(--text-faint); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-live { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-hi); font-weight: 700; }
.pl-ctrl { display: flex; align-items: center; gap: 6px; }
.pl-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: transparent; color: var(--text-dim); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pl-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.pl-play { width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #0b0b0d; background: linear-gradient(135deg, var(--accent-hi), var(--accent)); box-shadow: 0 6px 18px -6px rgba(233, 168, 58, 0.7); }
.pl-play svg { width: 18px; height: 18px; }
.pl-seek { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; min-width: 0; }
.pl-seek input { flex: 1; min-width: 0; height: 4px; -webkit-appearance: none; appearance: none; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) 0 var(--p, 0%), rgba(255, 255, 255, 0.12) var(--p, 0%)); }
.pl-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(233, 168, 58, 0.35); }
.pl-seek input::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 50%; background: #fff; }
.pl-right { display: flex; align-items: center; gap: 2px; }
.st-player.live .pl-seek, .st-player.live #pl-prev, .st-player.live #pl-next, .st-player.live #pl-dl { visibility: hidden; }

/* ================= about + footer (under Create) ================= */
.st-about { margin: 0; padding: 40px 28px 10px !important; border-top: 1px solid var(--border-soft); }
.st-about > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.st-about h2 { font-size: 21px; margin: 0 auto 16px; text-align: center; }
.st-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-point { padding: 15px 15px 13px; border-radius: 14px; background: var(--card); border: 1px solid var(--border-soft); }
.st-point b { display: block; margin-bottom: 5px; color: var(--accent-hi); font-size: 14px; }
.st-point p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.st-faq { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.st-faq details { border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(255, 255, 255, 0.015); }
.st-faq summary { cursor: pointer; padding: 11px 15px; font-weight: 700; font-size: 14px; list-style: none; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: "+"; float: right; color: var(--text-faint); font-weight: 400; font-size: 18px; line-height: 1; }
.st-faq details[open] summary::after { content: "\2013"; }
.st-faq p { margin: 0; padding: 0 15px 13px; color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }
.st-faq a, .st-more a { color: var(--accent-hi); }
.st-more { margin: 16px auto 0; text-align: center; font-size: 13px; color: var(--text-faint); line-height: 1.7; }
.st-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 28px 26px; margin-top: 28px; border-top: 1px solid var(--border-soft); font-size: 13px; }
.st-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.st-footer a { color: var(--text-faint); text-decoration: none; }
.st-footer a:hover { color: var(--text); }
body:not([data-view="create"]) .st-about { display: none; }

/* ================= Album batch, Settings (and the switched-off views) ================= */
.st-page { width: 100%; max-width: 1080px; padding: 30px 32px 40px; font-size: 14px; }
.st-page[hidden] { display: none; }
.st-page .page-title { font-size: 26px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.page-sub { font-size: 14px; color: var(--text-dim); margin: 0 0 20px; max-width: 760px; line-height: 1.55; }
.st-page .card, details.card {
  background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 16px;
}
.st-page .card h2 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.st-advanced summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text-dim); }
.st-advanced[open] summary { margin-bottom: 10px; }
.st-help { margin-top: 4px; }
.st-help a { color: var(--accent-hi); }
.acct-who { font-size: 13px; color: var(--text-dim); }
.help-card {
  background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--border); border-left: 3px solid var(--accent-lo);
  border-radius: 14px; padding: 13px 18px; margin-bottom: 16px;
}
.help-card summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; }
.help-card summary::-webkit-details-marker { display: none; }
.help-badge { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(233, 168, 58, 0.14); color: var(--accent-hi); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px rgba(233, 168, 58, 0.5); }
.help-card summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 18px; }
.help-card[open] summary::after { content: "\2212"; }
.help-card .a { padding-top: 12px; }
.help-card ul { margin: 0 0 10px; padding-left: 20px; color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.help-card li { margin-bottom: 6px; }
.help-card .help-link { font-size: 13px; font-weight: 700; color: var(--accent-hi); text-decoration: none; }
.optional-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ok); background: rgba(70, 214, 195, 0.12); border: 1px solid rgba(70, 214, 195, 0.4); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.st-page .hint, .modal .hint { font-size: 13px; color: var(--text-dim); margin: 0 0 10px; line-height: 1.5; }
.st-page .hint a { color: var(--accent-hi); }
.st-page .faint { font-size: 12.5px; color: var(--text-faint); }
.st-page p.faint { margin: 6px 0 0; line-height: 1.5; }
.row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.two-col { display: flex; gap: 18px; align-items: flex-start; }
.two-col > .main { flex: 3; min-width: 0; }
.two-col > .side { flex: 0 0 330px; }
.st-page label { font-size: 13px; color: var(--text-dim); }
.st-page input[type=text], .st-page input[type=password], .st-page input[type=number], .st-page textarea, .st-page select, .modal input {
  background: var(--input); border: 1px solid var(--outline); border-radius: 9px; color: var(--text); padding: 8px 10px; font-size: 14px; font-family: inherit; width: 100%;
}
.st-page select option { background: var(--card); }
.st-page input[type=file] { color: var(--text-dim); font: inherit; font-size: 13px; }
.st-page input[readonly] { cursor: default; caret-color: transparent; }
.st-page button, .st-page a.btn, .modal button {
  background: var(--card-alt); color: var(--text); border: 1px solid var(--border); border-radius: 9px; padding: 8px 16px;
  font-weight: 600; cursor: pointer; font-size: 14px; font-family: inherit; display: inline-block; text-decoration: none; line-height: 1.3;
}
.st-page button:hover:not(:disabled), .st-page a.btn:hover, .modal button:hover { border-color: var(--accent); }
.st-page button:disabled { opacity: 0.5; cursor: default; }
.st-page button.primary, .st-page a.btn.primary, .modal button.primary { background: linear-gradient(90deg, var(--accent-lo), var(--accent)); color: #0b0b0d; border: none; }
.st-page button.danger { background: #2a1414; color: var(--err); border-color: var(--err); }
.st-page table th { font-size: 12px; color: var(--text-faint); font-weight: 700; border-bottom: 1px solid var(--border); }
.st-page table td { font-size: 13px; border-bottom: 1px solid var(--border-soft); }
.st-page input[type=range] { flex: 1; width: 100%; accent-color: var(--accent); }
.duration-row { display: flex; align-items: center; gap: 12px; }
.duration-label { min-width: 46px; text-align: right; font-weight: 700; color: var(--accent-hi); font-size: 13px; }
.key-row { display: flex; gap: 8px; align-items: center; }
.key-row input { flex: 1; }
.key-row input[readonly] { background: rgba(255, 255, 255, 0.025) !important; border: 1px dashed var(--border) !important; color: var(--text-faint) !important; cursor: pointer; }
.key-row input[readonly]::placeholder { color: var(--text-faint); font-style: italic; }
.key-get { margin: 6px 0 10px; font-size: 13px; color: var(--text-dim); line-height: 1.5; padding-left: 10px; border-left: 2px solid var(--accent-lo); }
.key-get a { color: var(--accent-hi); font-weight: 700; text-decoration: none; }
.key-get a:hover { text-decoration: underline; }
.modal .key-get { margin: 0 0 12px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; margin-bottom: 4px; border: 1px solid transparent; }
.list li:hover { background: var(--card-alt); }
.list li.selected { background: var(--card-alt); border-color: var(--accent); }
.list li.list-empty-wrap { padding: 0; cursor: default; }
.list li.list-empty-wrap:hover { background: transparent; }
.list-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 16px; color: var(--text-faint); background: var(--input); border: 1px dashed var(--border); border-radius: 12px; font-size: 13px; line-height: 1.5; }
.list-empty button { margin-top: 6px; }
.flow { margin: 16px 0 18px; }
.flow-step { display: flex; gap: 16px; }
.flow-node { flex-shrink: 0; width: 36px; display: flex; flex-direction: column; align-items: center; }
.flow-num { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--accent-hi), var(--accent-lo)); color: #100b02; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.flow-line { flex: 1; width: 2px; min-height: 24px; margin: 4px 0; background: linear-gradient(180deg, var(--accent-lo), var(--border) 90%); }
.flow-card { flex: 1; min-width: 0; background: var(--card-alt); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; }
.flow-step-last .flow-card { margin-bottom: 0; }
.flow-card-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; margin: 0 0 7px; }
.flow-caption { font-size: 13px; color: var(--text-dim); margin: 0; line-height: 1.55; }
.flow-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; background: linear-gradient(90deg, var(--accent-lo), var(--accent)); color: #0b0b0d; border-radius: 9px; padding: 10px 18px; font-weight: 700; font-size: 14px; text-decoration: none; }
.flow-action.secondary { background: var(--card-hi); color: var(--text); border: 1px solid var(--outline); }

/* toasts + dialogs */
.toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 1100; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
body.has-player .toast-stack { bottom: calc(var(--player-h) + 16px); }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; width: 360px; max-width: calc(100vw - 32px); background: linear-gradient(180deg, #1d2231, #161a26); border: 1px solid var(--outline); border-left: 4px solid var(--text-faint); border-radius: 12px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); animation: toast-in 0.22s cubic-bezier(.2,.9,.3,1.2); }
.toast.leaving { animation: toast-out 0.2s ease forwards; }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--err); }
.toast.warn { border-left-color: var(--warn); }
.toast.busy { border-left-color: var(--accent); }
.toast-icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.toast.ok .toast-icon { background: var(--ok); color: #08211c; }
.toast.err .toast-icon { background: var(--err); color: #2a0b08; }
.toast.warn .toast-icon { background: var(--warn); color: #2a1a06; }
.toast.busy .toast-icon { border: 2.5px solid rgba(233, 168, 58, 0.25); border-top-color: var(--accent-hi); animation: sg-spin 0.8s linear infinite; }
.toast-body { flex: 1; min-width: 0; }
.toast-text { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.toast-sub { font-size: 13px; color: var(--text-dim); margin-top: 3px; line-height: 1.45; word-break: break-word; }
.toast-close { flex-shrink: 0; background: transparent; border: none; padding: 0 2px; color: var(--text-faint); font-size: 18px; line-height: 1; cursor: pointer; }
.toast-close:hover { color: var(--text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
.modal-overlay { position: fixed; inset: 0; background: rgba(4, 5, 8, 0.65); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--outline); border-radius: 16px; padding: 22px 24px; width: 440px; max-width: calc(100vw - 32px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.modal h2 { margin: 0 0 8px; font-size: 17px; }
.modal .modal-body { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin: 0 0 4px; }
.modal input { border-color: var(--accent); }
.modal-icon { width: 40px; height: 40px; border-radius: 50%; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; background: rgba(233, 168, 58, 0.14); color: var(--accent-hi); box-shadow: inset 0 0 0 1.5px rgba(233, 168, 58, 0.5); }
.modal-icon svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .toast, .toast.leaving, .sg.fresh { animation: none; } }

/* ================= smaller screens ================= */
@media (max-width: 1180px) {
  .st-home { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
  .st-player { grid-template-columns: minmax(140px, 1fr) auto minmax(160px, 1.2fr) auto; gap: 12px; }
}
@media (max-width: 900px) {
  :root { --strip-h: 94px; --player-h: 128px; }
  .st-home { display: block; }
  .st-tabs {
    display: flex; position: sticky; top: 94px; z-index: 20; gap: 4px; padding: 8px 14px;
    background: rgba(10, 11, 15, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-soft);
  }
  .st-tabs button { flex: 1; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .st-tabs button[aria-selected="true"] { color: #0b0b0d; border-color: transparent; background: linear-gradient(90deg, var(--accent-lo), var(--accent)); }
  .st-tab-n:not(:empty)::before { content: "· "; }
  .st-create { position: static; height: auto !important; overflow: visible; border-right: none; }
  .st-create-in { padding: 18px 16px 24px; }
  .st .st-songs { padding: 16px 16px 30px; }
  body[data-tab="songs"] .st-create, body[data-tab="create"] .st-songs { display: none; }
  .st-songs-head h2 { display: none; }
  .st-songs-head { justify-content: flex-start; }
  .st-songs-tools { flex: 1; }
  .st-search { flex: 1; }
  .st-search input { width: 100%; }
  .st-player {
    left: 0; height: auto; padding: 10px 12px 12px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info ctrl" "seek seek"; row-gap: 6px; column-gap: 10px;
  }
  .pl-info { grid-area: info; }
  .pl-ctrl { grid-area: ctrl; }
  .pl-seek { grid-area: seek; }
  .pl-right { position: absolute; top: 10px; right: 138px; display: none; }
  .st-points { grid-template-columns: 1fr; }
  .st-about { padding: 30px 16px 10px !important; }
  .st-footer { padding: 20px 16px 24px; }
  .st-page { padding: 22px 16px 36px; }
  .two-col { flex-direction: column; }
  .two-col > .side { flex: 1 1 auto; width: 100%; }
  .key-row { flex-wrap: wrap; }
  .key-row label { width: 100% !important; }
  .toast-stack { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .toast { width: auto; }
}
@media (max-width: 480px) {
  .st-adv { grid-template-columns: 1fr; }
  .sg { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 11px; }
  .sg-cover { width: 54px; height: 54px; }
  .st-filter button span { display: none; }
}

/* ---- engine cards, field messages, graphics-card tip ---- */
.st-label .st-lab { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.st-engine .st-label { margin-bottom: 8px; }
.st-engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-eng {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 9px 10px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--border); background: rgba(7, 8, 11, 0.45); color: var(--text-dim); font: inherit; transition: border-color .15s ease, background .15s ease;
}
.st-eng b { position: relative; padding-left: 20px; font-size: 13px; color: var(--text); white-space: nowrap; }
.st-eng b::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -7px; border-radius: 50%; border: 1.5px solid var(--outline); }
.st-eng span { font-size: 11.5px; line-height: 1.35; color: var(--text-faint); padding-left: 20px; }
.st-eng:hover { border-color: rgba(233, 168, 58, 0.45); }
.st-eng.on { border-color: rgba(233, 168, 58, 0.7); background: rgba(233, 168, 58, 0.09); }
.st-eng.on b::before { border-color: var(--accent-hi); background: radial-gradient(circle, var(--accent-hi) 0 3.5px, transparent 4px); }
.st-eng.on span { color: var(--text-dim); }
.st-eng[hidden] { display: none; }
.st-engine .st-pro { margin-top: 10px; }
.st-status .st-card { scroll-margin: 20px 0 120px; }
.st-fmsg { margin: 6px 2px 0; font-size: 12.5px; line-height: 1.45; color: #ffb3a8; }
.st-fmsg.warn { color: var(--warn); }
.st-fmsg[hidden] { display: none; }
.st-composer textarea.st-bad { border-color: rgba(242, 106, 95, 0.7); }
.st-tip { margin: 5px 2px 0; font-size: 11.5px; color: var(--text-faint); }
.st-fmsg:not([hidden]) + .st-tip { display: none; }
.st-gputip { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(7, 8, 11, 0.45); border: 1px solid var(--border-soft); }
.st-gputip p { font-size: 12.5px !important; }
.st-gputip ol { margin: 6px 0 6px; padding-left: 20px; font-size: 12.5px; color: var(--text-dim); line-height: 1.55; }
.st-gputip a { color: var(--accent-hi); font-weight: 700; }
.st-gputip .st-gputip-sub { color: var(--text-faint) !important; }
@media (max-width: 480px) { .st-engines { grid-template-columns: 1fr; } .st-eng { flex-direction: row; align-items: center; gap: 8px; } .st-eng span { padding-left: 0; } }
.st-hint[hidden] { display: none; }
/* the FREE pill on the Swara Engine card */
.st-free {
  display: inline-block; margin-left: 7px; padding: 1px 8px 1px; border-radius: 999px; vertical-align: 1px;
  font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .09em; color: #06110f;
  background: linear-gradient(100deg, #3ee6b0, #37c8f0 45%, #b58cff 80%, #3ee6b0) 0 0 / 220% 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 3px 12px -3px rgba(62, 230, 176, 0.65);
  animation: st-free-shine 6s linear infinite;
}
@keyframes st-free-shine { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .st-free { animation: none; } }

/* ---- composer as two columns: Lyrics | Style + Engine, options + Create in one bar ---- */
.st-create-in { min-height: 100%; display: flex; flex-direction: column; }
.st-composer { flex: 1; display: flex; flex-direction: column; }
.st-cols { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.st-cols .st-label { min-height: 30px; }
.st-cols:has(#st-lyrics-wrap[hidden]) { grid-template-columns: minmax(0, 1fr); }
.st-cols:has(#st-lyrics-wrap[hidden]) #st-col-l { display: none; }
.st-cols:has(#st-lyrics-wrap[hidden]) #create-caption { min-height: 150px; }
.st-col { display: flex; flex-direction: column; min-width: 0; }
#st-col-l .st-field { flex: 1; display: flex; flex-direction: column; margin: 0; }
#st-col-l #create-lyrics { flex: 1; min-height: 230px; }
#st-col-r .st-field { margin-bottom: 0; }
.st-cols .st-engine { margin: 14px 0 0; padding-top: 0; border-top: none; }
.st-cols .st-engines { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.st-cols .st-eng { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; }
.st-cols .st-eng span { padding-left: 0; text-align: right; }
.st-go-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; padding-top: 12px; }
.st-go-bar .st-opts { flex: 1; margin: 0; }
.st-go-bar .st-ghost { margin-left: 0; }
.st-go-bar .st-go { width: auto; min-width: 220px; margin: 0; padding: 0 30px; }
.st-go-bar .st-msg, .st-go-bar .st-eta { flex-basis: 100%; margin: 0; }
.st-go-bar .st-eta { text-align: right; }
.st-adv { margin-top: 14px; scroll-margin: 16px 0 150px; }
.st .st-songs { padding: 16px 20px 24px; }
.st-songs-head h2 { font-size: 18px; }
.st-songs-head { flex-direction: column; align-items: stretch; gap: 10px; }
.st-songs-tools .st-search { flex: 1; }
.st-songs-tools .st-search input { width: 100%; }
.st-songs .sg { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 11px; padding: 6px 6px 6px 6px; }
.st-songs .sg-cover { width: 52px; height: 52px; border-radius: 10px; }
.st-empty { padding: 36px 16px; }
.sg-ex .sg-title { white-space: normal; line-height: 1.3; }
.st-ex-head { margin: 4px 0 8px; padding: 14px 14px 12px; border-radius: 14px; border: 1px dashed var(--border); }
.st-ex-head b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.st-ex-head p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.st-songs-tools .st-filter { flex-shrink: 0; }

@media (min-width: 901px) and (max-height: 820px) {
  .st-create-in { padding: 12px 20px 14px; }
  .st-seg { margin-bottom: 10px; }
  #create-caption { min-height: 0; height: 64px; }
  .st-cols .st-eng { padding: 7px 12px; }
  .st-cols .st-engine { margin-top: 10px; }
  .st-chips { margin-top: 7px; }
  .st-go-bar { margin-top: 8px; padding-top: 8px; }
}
@media (max-width: 1280px) {
  .st-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #st-col-l #create-lyrics { min-height: 170px; }
  .st-cols .st-engines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-cols .st-eng { flex-direction: column; align-items: flex-start; gap: 2px; }
  .st-cols .st-eng span { padding-left: 20px; text-align: left; }
  .st-go-bar .st-go { flex: 1 1 100%; }
}
@media (max-width: 900px) {
  .st-home { display: block; height: auto !important; min-height: 0; }
  .st-create, .st .st-songs { overflow: visible; }
  .st-create { border-right: none; }
  .st-create-in { padding: 16px 16px 24px; }
  .st .st-songs { padding: 16px 16px 30px; }
  /* phones: the picture opens the page, the headline starts the form */
  .st-phone-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 75% 30%; border-bottom: 1px solid rgba(233, 168, 58, 0.22); }
  .st-art { display: none; }
  .st-h1 { font-size: 24px; }
  .st-sub { font-size: 13.5px; }
  .st-go-bar { position: static; background: none; margin: 14px 0 0; padding: 0; }
  .st-go-bar .st-go { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .st-cols .st-engines { grid-template-columns: minmax(0, 1fr); }
  .st-cols .st-eng { flex-direction: row; align-items: center; }
  .st-cols .st-eng span { padding-left: 0; }
}

/* ---------- Album Maker (#batch): the Studio's editor frame (studio-edit.css) ---------- */
.am-view { flex: 1; display: flex; flex-direction: column; }
.am { --sx-h: calc(100vh - var(--strip-h)); flex: 1; }
.am .am-ic { display: inline-flex; width: 34px; height: 34px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent-hi); background: rgba(233, 168, 58, 0.1); }
.am .am-ic svg { width: 18px; height: 18px; }
.am-count { font-size: 12.5px; font-weight: 700; color: var(--text-faint); white-space: nowrap; margin-right: auto; }
.am-lanes { padding: 0 0 28px; }
.am-head { padding: 18px 22px 6px; }
.am-head h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.am-head p { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-dim); max-width: 560px; }
.am-list { list-style: none; margin: 0; padding: 10px 22px 0; display: grid; gap: 12px; }
.am-song { padding: 12px 14px 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); transition: border-color .2s ease, box-shadow .2s ease; }
.am-song:focus-within { border-color: rgba(233, 168, 58, 0.5); }
.am-song.busy { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 30px -12px rgba(233, 168, 58, 0.6); }
.am-song.done { border-color: rgba(70, 214, 195, 0.45); }
.am-song-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.am-n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #0b0b0d; background: linear-gradient(135deg, var(--accent-hi), var(--accent)); }
.am-song.done .am-n { background: var(--ok); }
.am-t { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 800; }
.am-t:hover { border-color: var(--border); }
.am-t:focus { outline: none; border-color: rgba(233, 168, 58, 0.55); background: rgba(7, 8, 11, 0.5); }
.am-t::placeholder { color: var(--text-faint); font-weight: 600; }
.am-st-box:empty { display: none; }
.am-st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--text-dim); background: rgba(255, 255, 255, 0.05); }
.am-st.busy { color: var(--accent-hi); background: rgba(233, 168, 58, 0.12); }
.am-st.busy::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: am-spin .8s linear infinite; }
.am-st.ok { color: var(--ok); background: rgba(70, 214, 195, 0.1); }
.am-st.err { color: var(--err); background: rgba(242, 106, 95, 0.1); cursor: help; }
.am-st.warn { color: var(--warn); background: rgba(230, 169, 92, 0.1); }
@keyframes am-spin { to { transform: rotate(360deg); } }
.am-x { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: none; background: transparent; color: var(--text-faint); font-size: 20px; line-height: 1; cursor: pointer; }
.am-x:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.am-x:disabled { opacity: .3; cursor: default; }
.am-running .am-x { visibility: hidden; }
.am-f { display: block; margin-top: 8px; }
.am-f > span { display: block; margin: 0 0 5px 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.am-f > span i { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .8; margin-left: 6px; }
.am-f textarea, .am-input {
  width: 100%; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--outline); background: var(--input); color: var(--text);
  font: inherit; font-size: 13.5px; line-height: 1.5; resize: vertical;
}
.am-f textarea:focus, .am-input:focus { outline: none; border-color: var(--accent-hi); }
.am-input { height: 38px; }
select.am-input option { background: var(--card); }
.am-add-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 22px 0; }
.am-add {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px dashed rgba(233, 168, 58, 0.55); background: rgba(233, 168, 58, 0.05); color: var(--accent-hi); font: inherit; font-size: 14px; font-weight: 800;
}
.am-add:hover:not(:disabled) { background: rgba(233, 168, 58, 0.12); border-style: solid; }
.am-add:disabled { opacity: .4; cursor: default; }
.am-add svg { width: 16px; height: 16px; }
.am-note { font-size: 12.5px; color: var(--text-faint); }
.am-sec1 { border-top: none; }
.am-engines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-key { margin: 4px 0 12px; }
.am-key label { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.am-key input { height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--outline); background: var(--input); color: var(--text); font: inherit; }
.am-hint { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: var(--text-dim); }
.am-hint:empty { display: none; }
.am-hint code { font-size: 12px; color: var(--accent-hi); }
.am-steps { margin: 0 0 14px; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--text-dim); }
.am-steps li { margin-bottom: 6px; }
.am-steps b { color: var(--text); }
.am input[type=range] { flex: 1; width: 100%; accent-color: var(--accent); }
@media (max-width: 900px) {
  .am { --sx-h: auto; }
  .am .sx-bar { flex-wrap: wrap; }
  .am-count { order: 3; width: 100%; }
}
.am [hidden] { display: none !important; }

/* Share a link dialog */
.shm { width: 480px; }
.shm-check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--text); cursor: pointer; }
.shm-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.shm-check[hidden] { display: none; }
.shm-link { display: flex; gap: 8px; margin-top: 12px; }
.shm-link input { flex: 1; min-width: 0; font-size: 14px; }
.shm-to { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shm-to a, .shm-to button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--text); font-size: 13px; text-decoration: none; cursor: pointer; }
.shm-to a:hover, .shm-to button:hover { border-color: var(--accent); color: var(--accent-hi); }
.shm-to [hidden] { display: none; }
