@font-face{font-family:Inter;src:url('assets/fonts/Inter-Variable.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{color-scheme:dark;--bg:#090d15;--panel:#111824;--border:#263244;--text:#eef2f8;--muted:#92a0b5;--cyan:#48d4f9}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% 15%,#23152b55,transparent 45%),var(--bg);color:var(--text);font:14px/1.6 Inter,'Segoe UI',sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button,.button{cursor:pointer}button,select,input{color:var(--text);border:1px solid var(--border);background:#0d1520;border-radius:10px}button,select{padding:11px 15px}button:hover,.button:hover{border-color:#4c667e;background-color:#182434}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.skip{position:fixed;top:-100px;left:20px;z-index:10;padding:12px;background:var(--panel)}.skip:focus{top:10px}.topbar{height:86px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:24px;padding:0 42px;background:#0b1019ed}.brand{display:flex;align-items:center;gap:12px;font-size:24px;letter-spacing:-1px;font-weight:700}.brand em{color:var(--cyan);font-style:normal;font-weight:400}.brand-icon{display:grid;place-items:center;width:42px;height:44px;border:1px solid #2b7589;border-radius:13px;background:linear-gradient(145deg,#164153,#121c2b);font-size:25px;color:var(--cyan)}.header-caption{color:#738298;font-size:12px;border-left:1px solid var(--border);padding-left:24px}.studio-link{margin-left:auto;display:flex;gap:10px;align-items:center;color:#c6d2e1;font-size:13px}.studio-link svg{width:17px}.avatar{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,#33466c,#5e395e);color:#e5d6ef;font-weight:600;border:1px solid #685775}.layout{display:grid;grid-template-columns:234px minmax(0,1fr);max-width:1720px;margin:auto;min-height:calc(100vh - 86px)}.sidebar{border-right:1px solid var(--border);padding:40px 20px;display:flex;flex-direction:column}.nav-caption{color:#6e7f97;text-transform:uppercase;font-size:10px;letter-spacing:1.8px;margin:0 17px 22px}.sidebar nav{display:grid;gap:8px}.sidebar nav a{display:flex;align-items:center;gap:13px;padding:13px 16px;color:#99a8bc;border:1px solid transparent;border-radius:10px;font-size:13px}.sidebar nav a:hover{color:var(--text);background:#121d2a}.sidebar nav a[aria-current=page]{color:#74ddf8;background:linear-gradient(100deg,#133041,#152131);border-color:#285065}.sidebar nav a span{margin-left:auto;border-radius:6px;background:#234251;padding:0 7px;font-size:11px}.sidebar-note{margin:55px 10px 20px;padding:17px 12px;border-top:1px solid var(--border);font-size:11px;color:#8e9db2}.sidebar-note b{color:#b3c0cf;font-weight:500}.sidebar-note p{margin:10px 0 0;line-height:1.8}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#4ee0b3;box-shadow:0 0 9px #4ee0b34d;margin-right:8px}main{padding:40px 46px 0;min-width:0}.page{max-width:1260px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:2px;color:#61c2dd;margin:0 0 10px}h1{font-size:30px;letter-spacing:-1.2px;margin:0 0 6px;font-weight:600;line-height:1.3}h2{font-size:19px;letter-spacing:-.4px;margin:0;font-weight:600}p{margin:0}.muted{color:var(--muted);font-size:12px}.date{color:#8593a7;font-size:12px;white-space:nowrap}.hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1.15fr 1fr;min-height:290px;border:1px solid #394156;border-radius:19px;background:radial-gradient(ellipse at 85% 30%,#543a5f88,transparent 60%),linear-gradient(110deg,#132432,#171b31 60%,#292137)}.hero:after{content:'';position:absolute;right:-100px;bottom:-220px;width:650px;height:350px;border:1px solid #a991c025;border-radius:50%;transform:rotate(-22deg);pointer-events:none}.hero-copy{padding:31px 36px;z-index:1}.hero-label{font-size:10px;letter-spacing:1.4px;color:#b8a6ca}.hero h2{font-size:34px;line-height:1.18;letter-spacing:-1.1px;margin:12px 0}.hero p{color:#a7b3c5;font-size:12px;line-height:1.8}.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:11px 17px;font-size:12px;border:1px solid #385165;border-radius:9px;background:#172636;font-weight:600}.primary{background:linear-gradient(105deg,#53d5f3,#66c5f4);border-color:#63d1f4;color:#082132}.primary:hover{background:#8bdff9;color:#061a2b}.hero .button{margin-top:23px}.hero-art{position:relative;display:grid;place-items:center;min-height:290px}.record{height:221px;width:221px;border-radius:50%;position:absolute;right:28%;top:26px;transform:rotate(-18deg);background:repeating-radial-gradient(circle,#171c2b 0 2px,#25273c 3px 4px,#151a28 5px 7px);box-shadow:14px 20px 40px #0006;border:1px solid #59516c}.record:after{content:'';position:absolute;inset:0;border-radius:50%;background:conic-gradient(transparent 0deg,#99b5d92b 50deg,transparent 80deg,transparent 180deg,#d1acc127 220deg,transparent 260deg)}.record-center{position:absolute;inset:66px;border:1px solid #786c8c;border-radius:50%;background:linear-gradient(140deg,#7c5d7a,#253f5a);display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:31px;font-family:Georgia,serif;color:#e0bf85;line-height:1.1}.record-center span{font-family:Inter,sans-serif;font-size:8px;letter-spacing:3px;color:#d2c5dc}.soundwave{height:68px;width:230px;position:absolute;bottom:56px;right:15%;display:flex;align-items:center;justify-content:center;gap:5px;transform:rotate(-7deg);filter:drop-shadow(0 0 15px #67caef55)}.soundwave i{display:block;width:3px;border-radius:4px;background:linear-gradient(#ac8cdc,#65d9f3)}.art-caption{position:absolute;bottom:22px;right:20%;font-size:8px;letter-spacing:3px;color:#9c8fae}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:22px 0 35px}.stats article{display:flex;align-items:center;gap:15px;background:linear-gradient(150deg,#131d2a,#101620);border:1px solid var(--border);border-radius:12px;padding:20px 18px}.stat-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;font-size:26px;flex-shrink:0}.cyan{color:#68d9f9;background:#173747}.green{color:#6edab7;background:#15372f}.purple{color:#b1a3f1;background:#2c2545}.gold{color:#e4c68d;background:#3a3021}.stats b{font-size:25px;font-weight:500;line-height:1.3;display:block}.stats article div>span{display:block;font-size:10px;color:#95a4b7;margin-top:3px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-head p{margin-top:3px}.section-head>a{font-size:12px;color:#6dd6f0}.section-head>a span{margin-left:10px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.song-card{overflow:hidden;border:1px solid var(--border);border-radius:13px;background:#111925;display:flex;flex-direction:column;min-width:0}.song-art{height:106px;position:relative;display:flex;align-items:center;justify-content:space-between;padding:20px 22px;background:radial-gradient(ellipse at 70% 10%,#58858455,transparent 80%),linear-gradient(130deg,#172c35,#152338);color:#6dcbd4}.song-card:nth-child(3n+2) .song-art{background:radial-gradient(ellipse at 90% 0,#94754b55,transparent 80%),linear-gradient(130deg,#2f2928,#25283b);color:#e2c293}.song-card:nth-child(3n+3) .song-art{background:radial-gradient(ellipse at 70% 0,#a26d9e55,transparent 80%),linear-gradient(130deg,#29213b,#1d263d);color:#c9a9e3}.song-art>svg{width:37px;height:37px;opacity:.8}.mini-wave{height:46px;display:flex;align-items:center;gap:4px;opacity:.6}.mini-wave i{display:block;width:3px;border-radius:3px;background:currentColor}.song-content{padding:18px 19px;display:flex;flex-direction:column;flex:1}.song-content h3{font-size:13px;font-weight:500;margin:10px 0 5px;line-height:1.5;overflow-wrap:anywhere}.song-meta{color:#8292a9;font-size:10px}.song-info{margin:10px 0 15px;color:#93a4b8;font-size:10px}.song-actions{display:flex;gap:9px;align-items:center;margin-top:auto;flex-wrap:wrap}.song-actions .button{font-size:10px;padding:8px 11px;gap:6px}.song-actions .button svg{width:14px;height:14px}.song-actions .text-link{color:#a4bdd0;font-size:10px}.status{display:inline-flex;width:max-content;align-items:center;gap:6px;color:#95e1c7;border-radius:5px;padding:3px 7px;background:#17352e;font-size:9px;letter-spacing:.1px}.status.working{background:#292642;color:#b8acf0}.status.review{background:#40252d;color:#f0a3b0}.status.neutral{background:#283141;color:#acb9cc}.status.ready:before{content:'';width:4px;height:4px;background:#7addb9;border-radius:50%}.queue-card{display:flex;align-items:center;gap:22px;margin-top:25px;border:1px solid var(--border);border-radius:11px;padding:17px 20px;font-size:11px;background:#0e1721}.queue-card b{font-weight:500;color:#bdc9d8}.queue-card p{color:#9aaac0}.queue-card small{color:#788ba3;font-size:10px;margin-left:auto}.library-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.search{position:relative;flex:1;min-width:220px}.search svg{position:absolute;left:14px;top:14px;color:#8296ac;width:18px}.search input{width:100%;padding:12px 15px 12px 42px}.sort-label{display:flex;gap:10px;align-items:center;font-size:11px;color:#9da9ba}.filters{display:flex;gap:8px;margin:23px 0 10px;flex-wrap:wrap}.filters button{font-size:11px;background:transparent;border-color:transparent;padding:8px 13px;color:#94a5ba}.filters button[aria-pressed=true]{background:#153445;border-color:#2f5c72;color:#72d9f7}.result-count{margin-bottom:20px}.load-more{display:block;margin:24px auto}.empty{grid-column:1/-1;border:1px dashed #314357;padding:35px;text-align:center;color:#9bacc1;border-radius:12px}.empty a,.empty button{display:inline-block;margin-top:10px}.connection-status{color:#e5b781;font-size:12px;margin:18px 0;min-height:20px}footer{max-width:1260px;margin:30px auto 0;padding:20px 0;border-top:1px solid #1b2736;color:#68798e;font-size:10px;display:flex;gap:20px}footer span{margin-left:auto;color:#516075}.panel{border:1px solid var(--border);border-radius:15px;background:linear-gradient(140deg,#141d2a,#101620);padding:30px}.profile-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;max-width:1000px}.profile-heading{display:flex;gap:17px;align-items:center;margin-bottom:25px}.large{width:58px;height:58px;font-size:24px}.field{display:grid;gap:8px;font-size:12px;color:#c1cedd;margin-top:20px}.field input{padding:13px 15px;width:100%}.field-note{margin-top:17px;line-height:1.8}.save-state{font-size:12px;margin-top:20px;color:#81d6bc}.info-panel h2{margin:15px 0}.info-panel p{font-size:12px;color:#95a6bc;line-height:1.9;margin:15px 0}.billing-panel{max-width:720px;padding:45px}.billing-panel>.stat-icon{margin-bottom:25px}.billing-panel h2{font-size:25px;margin:18px 0 12px}.billing-panel p{color:#98a8bd;font-size:13px;line-height:1.9;max-width:520px}.billing-panel .button{margin-top:28px}
@media(min-width:1600px){main{padding-top:50px}.hero{min-height:320px}.hero-copy{padding:37px 42px}.hero h2{font-size:39px}.record{top:38px}.stats article{padding:25px 22px}.song-art{height:128px}}
@media(max-width:1150px){.header-caption{display:none}.layout{grid-template-columns:195px minmax(0,1fr)}main{padding:30px 25px 0}.sidebar{padding:32px 12px}.stats{gap:10px}.stats article{padding:15px 10px;gap:9px}.stat-icon{width:34px;height:34px}.stats article div>span{font-size:9px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.record{right:14%;width:190px;height:190px;top:40px}.record-center{inset:56px}.soundwave{right:4%;width:180px}.hero-copy{padding:29px}.hero h2{font-size:31px}.date{display:none}.queue-card{flex-wrap:wrap;gap:10px}.queue-card small{margin-left:0}.profile-layout{grid-template-columns:1fr}}
@media(max-width:760px){.topbar{height:72px;padding:0 20px;gap:16px}.brand{font-size:21px}.brand-icon{width:33px;height:36px}.studio-link{font-size:0;gap:0}.studio-link svg{width:22px}.layout{display:block}.sidebar{border-right:0;padding:12px 16px 0}.nav-caption,.sidebar-note{display:none}.sidebar nav{display:flex;gap:6px;overflow:auto}.sidebar nav a{white-space:nowrap;padding:10px;font-size:11px;gap:7px}.sidebar nav svg{width:16px}.sidebar nav a span{display:none}main{padding:25px 20px 0}h1{font-size:27px}.page-head{align-items:flex-start;flex-wrap:wrap;margin-bottom:22px}.hero{grid-template-columns:1fr;min-height:285px}.hero-copy{padding:28px}.hero-art{position:absolute;inset:0;opacity:.25;pointer-events:none}.record{right:-40px;top:50px;width:230px;height:230px}.record-center{inset:67px}.soundwave,.art-caption{display:none}.hero-copy{position:relative}.hero h2{font-size:31px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:28px}.stats article{padding:16px}.stats b{font-size:23px}.stats article div>span{font-size:10px}.section-head h2{font-size:18px}.section-head .muted{max-width:200px}.section-head>a{white-space:nowrap;font-size:11px}.project-grid{grid-template-columns:1fr}.song-art{height:100px}.song-content h3{font-size:15px}.song-actions .button,.song-actions .text-link{font-size:12px}.queue-card{display:block}.queue-card p{margin:9px 0}.queue-card small{display:block}.sort-label{flex:1}.sort-label select{flex:1}.library-toolbar>button{font-size:12px}.panel{padding:24px}.billing-panel h2{font-size:23px}footer span{max-width:130px;text-align:right}.filters{gap:3px}.filters button{padding:8px 9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.sidebar nav a{white-space:nowrap}
@media(max-width:760px){.sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;overflow:visible}.sidebar nav a{flex-direction:column;justify-content:center;gap:4px;padding:8px 3px;font-size:10px}.sidebar nav svg{width:17px;height:17px}}

.project-progress{margin:0 0 16px;color:#b8c8df;font-size:12px}
.project-progress progress{display:block;width:100%;height:8px;margin:8px 0;accent-color:#67d8f5}
.project-progress small{color:#95a4b7}
.project-error{margin:0 0 16px;color:#f0adb8;font-size:12px;line-height:1.6}
.project-controls{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:14px;margin-top:14px}
.project-controls button{font-size:11px;padding:8px 10px}
.project-controls .danger{color:#f0adb8}
.project-controls button:disabled{opacity:.5;cursor:wait}
.project-action-state{position:sticky;bottom:16px;z-index:3;max-width:900px;margin:18px auto;padding:14px 18px;border:1px solid #385165;border-radius:10px;background:#172636;color:#d7e8f2;font-size:13px}
.project-action-state:empty{display:none}

.project-dialog{width:min(520px,calc(100% - 32px));padding:28px;border:1px solid #385165;border-radius:16px;background:#111925;color:var(--text)}
.project-dialog::backdrop{background:#030811bc}
.project-dialog p{margin-top:16px;color:#aabbd0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px;flex-wrap:wrap}

.project-readiness{margin:0 0 15px;display:grid;gap:9px;font-size:11px}
.project-readiness>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;align-items:baseline}
.project-readiness dt{color:#9aaac0}
.project-readiness dd{margin:0;overflow-wrap:anywhere;line-height:1.5}
.project-readiness .ready{color:#80dfbe}
.project-readiness .review{color:#f0adb8}
.project-readiness .working{color:#c2b6f4}
.project-readiness .info{color:#acd7e6}
.project-readiness .muted{font-size:11px}
.project-next-step{margin:0 0 17px;color:#b3c6d9;font-size:12px;line-height:1.6}

.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
}
.billing-layout h2, .billing-history-heading h2 { font-size: 22px; }
.billing-subscription > .muted { margin-top: 5px; }
.billing-plan-picker { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
.billing-plan-picker legend { margin-bottom: 9px; font-size: 13px; color: #c1cedd; }
.billing-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.billing-plan { position: relative; display: grid; cursor: pointer; }
.billing-plan input { position: absolute; opacity: 0; }
.billing-plan-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 92px;
  padding: 12px 10px;
  border: 1px solid #314357;
  border-radius: 12px;
  background: #0e1722;
}
.billing-plan-term { color: #c5d2e2; font-size: 12px; }
.billing-plan-content strong { font-size: 18px; white-space: nowrap; }
.billing-plan-content small { color: #95a9be; font-size: 11px; }
.billing-plan:hover .billing-plan-content { border-color: #4c667e; }
.billing-plan input:checked + .billing-plan-content {
  border-color: #55bddb;
  background: radial-gradient(ellipse at 0 0, #225068, transparent 85%), #152331;
}
.billing-plan input:focus-visible + .billing-plan-content { outline: 2px solid var(--cyan); outline-offset: 3px; }
.billing-checkout-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.billing-checkout-bar strong { display: block; font-size: 25px; line-height: 1.15; }
#billing-message:empty, #billing-checkout-result:empty, #billing-history-status:empty { display: none; }
.billing-balance { background: radial-gradient(ellipse at 0 0, #19354577, transparent 65%), linear-gradient(140deg,#141d2a,#101620); }
.billing-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0; }
.billing-balances div { padding: 11px 13px; border: 1px solid #314357; border-radius: 11px; background: #101924; }
.billing-balances .billing-available { grid-column: 1 / -1; border-color: #36677d; background: #142a38; }
.billing-balances dt { color: #afc2d6; font-size: 12px; }
.billing-balances dd { margin: 3px 0 0; font-size: 23px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.billing-available dd { color: #8ee6ff; font-size: 34px; }
#billing-period { margin-top: 6px; }
#billing-trial-controls { margin-top: 14px; color: #adbed0; font-size: 12px; }
.billing-trial-actions, .billing-history-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.billing-trial-actions button, .billing-history-actions button { padding: 6px 9px; font-size: 12px; }
.billing-history-panel { margin-top: 20px; }
.billing-topup { margin-top: 20px; }
.billing-topup h2 { font-size: 22px; }
.billing-topup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.billing-topup-form {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101924;
}
.billing-topup-form h3 { margin: 0; font-size: 15px; }
.billing-topup-form label { display: grid; gap: 4px; color: #c1cedd; font-size: 13px; }
.billing-topup-form input:not([type="checkbox"]) { width: 100%; min-width: 0; padding: 8px 10px; }
.billing-song-duration { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 240px; }
.billing-topup-form .billing-song-export { display: flex; align-items: center; gap: 8px; }
#billing-song-export { accent-color: var(--cyan); }
#billing-song-result { color: #b4eaff; font-size: 13px; }
.billing-topup-form button:disabled { opacity: .55; cursor: default; }
@media (max-width: 580px) {
  .billing-topup { padding: 16px; }
  .billing-topup-grid { grid-template-columns: 1fr; }
}
.billing-history-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.billing-history-heading button, #billing-history-more { padding: 7px 12px; font-size: 12px; }
.billing-history-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.billing-history-filters button { padding: 6px 11px; font-size: 12px; }
.billing-history-filters [aria-pressed="true"] { border-color: #43809b; background: #153445; color: #8de7ff; }
.billing-history-table { overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.billing-history-table table { width: 100%; border-collapse: collapse; text-align: left; }
.billing-history-table th, .billing-history-table td { padding: 12px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
.billing-history-table th { background: #162331; color: #b5c7db; font-size: 12px; }
.billing-history-table tr:last-child td { border-bottom: 0; }
.billing-history-table td small { display: block; color: #a3b5c9; font-size: 12px; }
.billing-history-project { overflow-wrap: anywhere; }
.billing-history-amount { text-align: right; white-space: nowrap; font-weight: 650; font-variant-numeric: tabular-nums; }
.billing-history-table th:last-child { text-align: right; }
.billing-history-amount[data-status="spent"] { color: #ffadbc; }
.billing-history-amount:is([data-status="welcome"],[data-status="credited"],[data-status="released"]) { color: #86e0bf; }
#billing-history-more { margin-top: 12px; }
.billing-checkout-dialog #billing-checkout-summary { margin-block: 8px; color: #c7eeff; font-size: 16px; font-weight: 600; }
.billing-checkout-dialog .dialog-actions { display: flex; flex-wrap: wrap; }
@media (max-width: 1120px) {
  .billing-layout { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .billing-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .billing-layout .panel, .billing-history-panel { padding: 16px; }
  .billing-history-table th, .billing-history-table td { padding: 8px; font-size: 12px; }
  .billing-history-table td small { font-size: 11px; }
}

/* Match the studio's interface text size while preserving heading hierarchy. */
.header-caption, .nav-caption, .sidebar-note, .muted, .date,
.button, .song-meta, .song-info, .song-actions .button, .song-actions .text-link,
.status, .queue-card, .sort-label, .field, .save-state, .project-progress,
.project-error, .project-readiness, .project-next-step, .billing-history-item {
  font-size: 13px;
}

.project-retention-note {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #2b4455;
  border-radius: 12px;
  background: #111b27;
}
.project-retention-note h2 {
  margin: 0 0 5px;
  color: #81d9f4;
  font-size: 15px;
}
.project-retention-note p {
  max-width: 86ch;
  margin: 0;
  color: #b8c7d8;
  font-size: 13px;
  line-height: 1.5;
}

.profile-details {
  background: radial-gradient(ellipse at top left, #153246, transparent 65%), #111923;
}
.profile-heading { min-width: 0; }
.profile-heading > div { min-width: 0; overflow-wrap: anywhere; }
.profile-heading .avatar.large {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
}
.avatar img, .avatar-option-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
#profile-avatar-edit { margin-top: 8px; }
.profile-details textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid #35485a;
  border-radius: 10px;
  padding: 10px 12px;
  background: #0e151e;
  color: #eaf1f8;
  font: inherit;
  line-height: 1.45;
}
.profile-account-links:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.avatar-dialog { width: min(660px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
.avatar-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border: 1px solid #304456;
  border-radius: 10px;
  background: #121d29;
  color: #d9e8f2;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.avatar-option:is(:hover, :focus-visible, [aria-pressed="true"]) {
  border-color: #66d9fb;
  background: #193348;
}
.avatar-option-preview {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #203a50;
  color: #d5efff;
  font-size: 21px;
}
#profile-avatar-status { min-height: 1.5em; margin: 12px 0 0; }

@media (max-width: 760px) {
  .sidebar nav .nav-studio-return {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

.billing-legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 14px; }
.billing-legal-links a { text-decoration: underline; text-underline-offset: 3px; }

.profile-referrals{border-top:1px solid var(--border);margin-top:22px;padding-top:20px}
.profile-referrals h2{margin:0 0 6px}
.profile-referrals .field{margin-top:14px}
.profile-referrals input{width:100%;min-width:0}
.referral-actions,.referral-totals{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.referral-totals>div{flex:1 1 110px;padding:8px 10px;border:1px solid var(--border);border-radius:8px}
.referral-totals dt{color:var(--muted);font-size:12px}
.referral-totals dd{margin:0;font-size:18px;color:var(--cyan)}
.profile-referrals summary{cursor:pointer}

.promotion {
  --accent: #a2e9ff; --muted: #acbbcc; margin-bottom: 28px;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); overflow: hidden;
  border: 1px solid #334961; border-radius: 20px;
  background: radial-gradient(ellipse at 8% 0%, #173044, transparent 60%), #101923;
}
.promotion h2, .promotion h3, .promotion p { margin: 0; }
.promotion .gift-art {
  display: grid; align-content: center; justify-items: start; gap: 24px;
  padding: clamp(24px, 4vw, 48px); border-right: 1px solid #42c7ff52;
  background: radial-gradient(ellipse at 12% 40%, #214961, transparent 76%), #142431;
}
.promotion .gift-badge {
  display: grid; place-items: center; width: 80px; aspect-ratio: 1;
  border: 1px solid #39728c; border-radius: 17px; color: #92e5ff; background: #122c3d;
  box-shadow: 0 0 28px #55d6ff19;
}
.promotion .gift-icon { position: relative; display: block; width: 42px; height: 40px; }
.promotion .gift-box {
  position: absolute; bottom: 1px; left: 6px; width: 30px; height: 21px; border: 2px solid currentColor;
  border-radius: 2px 2px 5px 5px; background: linear-gradient(90deg, transparent 46%, currentColor 47% 53%, transparent 54%);
}
.promotion .gift-box::before {
  content: ""; position: absolute; inset: -8px -5px auto; height: 8px;
  border: 2px solid currentColor; border-radius: 3px; background: #173b50;
}
.promotion .gift-bow { position: absolute; bottom: 27px; left: 21px; }
.promotion .gift-bow::before, .promotion .gift-bow::after {
  content: ""; position: absolute; bottom: 0; width: 11px; height: 9px; border: 2px solid currentColor;
}
.promotion .gift-bow::before { right: 0; border-radius: 9px 9px 0 9px; transform: rotate(20deg); }
.promotion .gift-bow::after { left: 0; border-radius: 9px 9px 9px 0; transform: rotate(-20deg); }
.promotion .gift-month { color: var(--accent); font-size: clamp(43px, 5vw, 68px); font-weight: 750; letter-spacing: -.06em; line-height: 1; }
.promotion .gift-name { margin-top: 10px; font-size: clamp(22px, 2.25vw, 32px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
.promotion .gift-site { margin-top: 9px; color: var(--muted); }
.promotion .promotion-copy { padding: clamp(22px, 3.3vw, 42px); }
.promotion h2 { font-size: clamp(26px, 3.1vw, 42px); font-weight: 650; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.promotion .lead { margin-top: 13px; color: var(--muted); }
.promotion .lead strong { color: var(--accent); white-space: nowrap; }
.promotion .details { display: grid; gap: 15px; margin-top: 23px; }
.promotion .details h3 { margin-bottom: 3px; font-size: 15px; font-weight: 650; }
.promotion .details p { color: var(--muted); font-size: 14px; }
.promotion .cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px;
  margin-top: 21px; padding: 9px 16px; border: 1px solid #42c7ff70; border-radius: 9px;
  color: #dff2ff; background: linear-gradient(110deg, #203e51, #1a283b);
  text-decoration: none; font-size: 14px; font-weight: 650;
}
.promotion .cta:hover { border-color: #80d8ff; background: #244557; }
.promotion .cta:focus-visible { outline: 2px solid #83dcff; outline-offset: 3px; }
@media (max-width: 740px) {
  .promotion { grid-template-columns: 1fr; }
  .promotion .gift-art {
    grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px;
    border-right: 0; border-bottom: 1px solid #42c7ff52;
  }
  .promotion .gift-badge { width: 62px; }
  .promotion .gift-month { font-size: 38px; }
  .promotion .gift-name { font-size: 20px; }
  .promotion .gift-site { margin-top: 5px; font-size: 14px; }
}
