:root{color-scheme:dark;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#11101b;color:#f5f0ff;--muted:#afa5be;--purple:#b893ff;--line:#352b46}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:radial-gradient(ellipse at 80% 0%,#30204b66,transparent 40%)}main{max-width:1300px;margin:auto;padding:30px 36px}header{display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:7px;font-size:24px;font-weight:900;color:white;text-decoration:none}.brand span{font-weight:500;color:#bc96fc}.brand small{font-size:9px;letter-spacing:2px;border-left:1px solid #65516f;padding-left:16px;margin-left:10px}.badge{font-size:12px;color:var(--muted)}.badge i{display:inline-block;width:6px;height:6px;background:#b9e5bc;border-radius:50%;margin-right:7px}.hero{display:flex;align-items:center;justify-content:space-between;gap:40px;padding:56px 0 34px}.eyebrow{font-size:10px;letter-spacing:2px;color:#ba95f3;font-weight:700}h1{font-size:clamp(32px,4.2vw,53px);line-height:1.12;letter-spacing:-1.5px;margin:16px 0}h2{font-size:22px;letter-spacing:-.5px;margin:10px 0}p{font-size:14px;line-height:1.65;color:var(--muted);margin:10px 0}.hero p{max-width:510px;font-size:16px}.hero-art{display:flex;gap:8px;align-items:center;height:180px;width:280px;position:relative;transform:rotate(-8deg);flex-shrink:0}.hero-art span{width:22px;height:55px;border-radius:8px;background:linear-gradient(#cba3ff,#7953bc)}.hero-art span:nth-child(2n){height:100px}.hero-art span:nth-child(3n){height:145px}.hero-art b{position:absolute;bottom:-10px;font-size:9px;letter-spacing:3px;color:#b9a6d1;transform:rotate(8deg)}.panel{background:linear-gradient(135deg,#201a2e,#191522);border:1px solid var(--line);border-radius:18px;padding:25px;margin-bottom:20px}.objective{display:flex;align-items:center;justify-content:space-between;gap:24px;border-color:#584071;background:linear-gradient(110deg,#322144,#21182d)}.objective h2{font-size:24px}.objective p{margin-bottom:0}.objective label{min-width:235px}.journey{display:flex;justify-content:space-between;margin:26px 0;gap:10px}.journey a{text-decoration:none;color:#c7bed2;font-size:12px;display:flex;align-items:center;gap:10px}.journey span{display:grid;place-items:center;border:1px solid #55406f;border-radius:50%;width:27px;height:27px;color:#c2a0fc}.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:22px;align-items:start}.workspace{min-width:0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.tag{color:#a99cb7;font-size:10px;white-space:nowrap}.sound-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:20px 0}.sound-cards button{display:flex;flex-direction:column;align-items:center;padding:15px 5px;font-size:12px;background:#241d31}.sound-cards span{font-size:27px;color:#ad8bd6;margin-bottom:10px}.sound-cards small{font-size:9px;color:#aaa0b9;margin-top:7px}.sound-cards button.selected{border-color:#b591ee;background:#423058;box-shadow:0 0 0 1px #ac82e133}.sound-cards button.selected span{color:#dfc5ff}.advice{border-left:2px solid #a17cca;padding-left:14px;font-size:12px;min-height:60px}.controls{display:flex;gap:14px;flex-wrap:wrap;align-items:end}.settings{margin:22px 0}.settings label{flex:1}label{display:flex;flex-direction:column;gap:8px;min-width:0;color:#c0b5ce;font-size:11px}button,select,input,textarea{font:inherit;background:#2a2138;color:#f6efff;border:1px solid #58446d;border-radius:9px;padding:11px;min-height:44px;max-width:100%}select{width:100%;font-size:12px}button{cursor:pointer;font-size:12px;touch-action:manipulation;transition:background .15s,border-color .15s}button:hover{background:#433053;border-color:#9e77c8}button:disabled{opacity:.45;cursor:default}button.primary{background:#bc96fa;color:#21122d;border-color:#bc96fa;font-weight:700}button.primary:hover{background:#cdaaff}.wide{width:100%}input{width:100%;font-size:13px}details{margin-top:12px}summary{cursor:pointer;color:#b6a5cb;font-size:12px;padding:10px 0}details label{margin:10px 0}.chords{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}.chords button{font-size:16px;padding:14px 5px}.chords small{display:block;font-size:9px;color:#a99cba;margin-top:6px}.muted{font-size:11px;color:#b2a4c2}.metrics{display:flex;gap:36px;margin:18px 0 23px}.metrics b{font-size:23px;font-weight:600}.metrics small{display:block;color:#a99ab9;font-size:10px;margin-top:3px}.transport{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.check{flex-direction:row;align-items:center;gap:8px}.check input{width:16px;min-height:16px;accent-color:#b996f4}.transport>span{font-size:10px;color:#a798b8;margin-left:auto}.roll-wrap{overflow-x:auto;margin:20px 0 22px;border:1px solid #332b41;border-radius:10px;padding:10px;background:#15111d}.roll{display:grid;grid-template-columns:54px repeat(16,minmax(35px,1fr));gap:3px;min-width:662px}.bar-head{display:grid;grid-template-columns:54px repeat(4,1fr);min-width:662px;gap:3px;padding-bottom:10px}.bar-head b{font-size:8px;letter-spacing:1px;color:#9b8ba9;font-weight:500}.note-label{display:flex;align-items:center;font-size:10px;color:#b5a1cd;position:sticky;left:0;background:#15111d;z-index:1}.cell{padding:0;min-height:39px;height:39px;border:0;border-radius:4px;background:#292133}.cell.bar{border-left:2px solid #75558d}.cell.active{background:#b082ee;box-shadow:inset 0 0 0 1px #d1afff}.cell.tail{background:#7955a3;box-shadow:inset 0 14px #292133,inset 0 -14px #292133}.cell.playing{outline:1px solid #f6dfff;outline-offset:-1px}.editor-bottom{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}#status{padding-top:14px}.delivery p{margin-bottom:18px}.coach{position:sticky;top:20px;background:#21192f}.coach h2{font-size:20px}.coach-icon{background:#423056;border-radius:12px;padding:12px;font-size:25px;color:#d0abff}.shared-goal{padding:15px;background:#31233e;border:1px solid #514065;border-radius:12px;margin:20px 0}.shared-goal small{font-size:8px;letter-spacing:1.8px;color:#b697ce}.shared-goal b{display:block;font-size:13px;margin-top:8px}.shared-goal p{font-size:11px}.chat-log{display:flex;flex-direction:column;gap:12px;max-height:350px;overflow:auto;padding:2px 3px 12px;scrollbar-width:thin}.bubble{font-size:12px;line-height:1.65;padding:14px;border-radius:12px;background:#2c223b;color:#d9cee4;white-space:pre-wrap}.bubble.user{background:#493362;margin-left:22px;color:#f2e6fc}.bubble small{display:block;font-size:8px;letter-spacing:1.3px;color:#bb97db;margin-bottom:6px}.bubble button{margin-top:10px;width:100%;min-height:38px}.quick-prompts{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.quick-prompts button{font-size:10px;padding:7px 10px;min-height:36px;background:#2c203b}#chatForm{display:flex;gap:8px;align-items:stretch}textarea{width:100%;min-width:0;resize:vertical;font-size:12px;line-height:1.5}#chatForm button{font-size:22px;min-width:44px}.coach-note{font-size:9px;color:#ad9abb;margin-top:12px}footer{text-align:center;font-size:11px;color:#907fa1;line-height:2;padding:26px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:focus-visible{outline:3px solid #dec6ff;outline-offset:3px}@media(max-width:1050px){main{padding:24px}.studio-layout{grid-template-columns:minmax(0,1fr) 300px}.panel{padding:19px}.hero-art{width:240px}.sound-cards small{display:none}.settings{gap:8px}}@media(max-width:800px){.studio-layout{grid-template-columns:1fr}.coach{position:static;grid-row:auto}.hero-art{display:none}.hero{padding:35px 0 24px}.objective{align-items:start;flex-direction:column;gap:16px}.objective label{width:100%}.journey{display:grid;grid-template-columns:1fr 1fr;gap:16px}.chat-log{max-height:400px}.sound-cards small{display:block}.brand small{display:none}.badge{font-size:10px}}@media(max-width:450px){main{padding:20px 12px}.panel{padding:16px;border-radius:14px}h1{font-size:33px}.objective h2{font-size:22px}.sound-cards{gap:5px}.sound-cards button{padding:12px 3px;font-size:11px}.sound-cards small{display:none}.settings{flex-wrap:wrap}.settings label{flex:1 1 42%}.settings label:last-child{flex:0 1 90px}.tag{display:none}.section-head h2{font-size:20px}.section-head button{padding:9px;font-size:10px}.metrics{gap:30px}.transport>span{display:none}.cell{min-height:44px;height:44px}.cell.tail{box-shadow:inset 0 16px #292133,inset 0 -16px #292133}.roll{grid-template-columns:54px repeat(16,44px);min-width:806px}.bar-head{min-width:806px}.controls>label{flex:1 1 130px}.controls select{width:100%}.journey a{font-size:10px}.hero p{font-size:14px}.brand{font-size:21px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button{transition:none}}

.site-return{color:#c2afdc;text-decoration:none;max-width:150px;text-align:right;line-height:1.6}.site-return:hover{color:white}

/* Fixed sixteenth timeline; snapping never discards existing notes. */
.roll{grid-template-columns:54px repeat(var(--columns,64),minmax(36px,1fr));min-width:var(--roll-width,2550px)}.bar-head{grid-template-columns:54px repeat(var(--columns,64),minmax(36px,1fr));min-width:var(--roll-width,2550px)}.bar-head span{text-align:center;font-size:12px;line-height:25px;color:#aa9abd}.bar-head .beat-number{color:#ead6ff;font-weight:700}.bar-head .sub-number{color:#9887ae}.cell.beat{border-left:1px solid #7e5798}.cell.bar{border-left:2px solid #c59af8}.cell.off-snap:not(.active):not(.tail){background:#211b29}.rhythm-controls{margin:18px 0}.rhythm-controls label{flex:1 1 150px}.hero{padding:22px 0}.hero h1{font-size:32px}.hero p{font-size:14px}.hero-art{height:120px}.hero-art span:nth-child(3n){height:100px}@media(max-width:450px){.roll,.bar-head{grid-template-columns:54px repeat(var(--columns,64),minmax(36px,1fr))}.hero h1{font-size:27px}.hero{padding:20px 0}}

.music-illustration{display:block;object-fit:contain}.hero-illustration{width:185px;height:120px;flex-shrink:0}.coach-illustration{width:85px;height:66px}.hero-illustration:hover{transform:rotate(-3deg)}@media(max-width:800px){.hero-illustration{width:110px;height:90px}.hero{gap:12px}}@media(max-width:450px){.hero-illustration{width:90px;height:78px}.hero h1{font-size:24px}.hero p{font-size:13px}}@media(prefers-reduced-motion:reduce){.hero-illustration:hover{transform:none}}

/* Focus the working surface. */
:root{background:#0b0a10;--muted:#bcb1cc}main{max-width:1500px;padding:24px 30px}.hero{padding:14px 0;gap:16px}.hero h1{font-size:29px;margin:8px 0}.hero p{font-size:16px;margin:4px 0}.hero-illustration{height:85px;width:130px}.objective{padding:16px 20px;margin-bottom:14px}.objective .eyebrow{display:none}.objective h2{font-size:18px;margin:0}.objective p{font-size:14px;margin-top:5px}.objective label{font-size:14px}.studio-layout{grid-template-columns:minmax(0,1fr) 345px}.panel{border-radius:8px;background:#17131f}.sound-drawer{margin:0 0 14px;border:1px solid #655078;border-radius:8px;background:#201728}.sound-drawer>summary{padding:17px 20px;font-size:16px;color:#f3e8ff;font-weight:700}.sound-drawer>summary span{font-size:14px;color:#bbaeC9;font-weight:400;display:block;margin-top:4px}.sound-drawer #palette{border:0;margin:0}.quick-generate{float:right;margin-bottom:16px}#editor>.section-head{clear:both}.metrics{gap:26px;margin:12px 0}.metrics b{font-size:20px}.metrics small{font-size:12px}.transport>span{font-size:12px}.muted{font-size:14px}.rhythm-controls label,label{font-size:14px}button,select,input,textarea{font-size:14px}.eyebrow,.tag,.badge{font-size:12px}.sound-cards button{font-size:14px}.sound-cards small{font-size:12px}.advice{font-size:14px}.chords small{font-size:12px}.note-label{font-size:12px}.bubble{font-size:14px}.bubble small,.shared-goal small{font-size:12px;letter-spacing:1px}.quick-prompts button{font-size:13px}.shared-goal b{font-size:16px}.shared-goal p,.coach-note{font-size:13px}.roll-wrap{border-radius:4px}.cell{border-radius:2px}.coach{border-top:3px solid var(--purple)}.section-head h2{font-size:23px}.sound-cards{margin:12px 0}.hero .eyebrow{display:none}.sound-cards span{margin-bottom:4px}
@media(max-width:1050px){main{padding:20px}.studio-layout{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:800px){.studio-layout{grid-template-columns:1fr}.objective{flex-direction:row;align-items:center;gap:14px}.objective>div{display:none}.objective label{min-width:0;width:100%}.hero h1{font-size:25px}.hero p{font-size:14px}.hero-illustration{width:95px;height:75px}.coach{position:static}.hero{padding:12px 0}.brand small{display:none}.settings label:last-child{flex:1}.quick-generate{float:none;width:100%;margin-bottom:14px}}
@media(max-width:450px){main{padding:16px 12px}.hero h1{font-size:24px}.objective{padding:12px 16px}.sound-drawer>summary{padding:13px 16px}.panel{padding:16px}.section-head button{font-size:14px}.controls>label{flex:1 1 130px}.sound-cards small{display:none}.brand{font-size:20px}.site-return{max-width:110px}.hero-illustration{width:80px}.metrics{gap:22px}}

.tool-nav{display:flex;gap:22px;margin-top:18px;border-bottom:1px solid var(--line);padding-bottom:10px}.tool-nav a{font-size:14px;color:#cbb6e6;text-decoration:none;padding:6px 0}.tool-nav a[aria-current]{color:#e6d4ff;border-bottom:2px solid var(--purple)}

.intention{margin-bottom:20px}.intention h2{margin:8px 0}.intention p{line-height:1.6}.intention-fields,.intention-recommendations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.intention label{display:flex;flex-direction:column;gap:8px;font-size:16px}.intention textarea{width:100%;box-sizing:border-box;min-height:100px;resize:vertical;font:inherit;line-height:1.5;padding:12px;background:#12101d;color:#fff;border:1px solid #625776;border-radius:12px}.intention button{margin-top:12px}.intention-recommendations{grid-template-columns:repeat(3,minmax(0,1fr))}.intention-recommendations article{background:#181322;padding:16px;border:1px solid #504066;border-radius:12px}.intention-recommendations h3{font-size:16px;margin:0 0 8px}.intention-recommendations p{font-size:16px;margin:0}.intention #intentionResult{margin-top:20px}.intention #intentionDirection{max-width:400px}#intentionApplied{color:#d2b1ff}@media(max-width:700px){.intention-fields,.intention-recommendations{grid-template-columns:1fr}}
/* Musical feedback: motion only follows interaction or playback. */
p{font-size:16px}.hero p{font-size:16px}.brand small{font-size:12px}.intention{border-color:#74509e;background:radial-gradient(ellipse at right top,#42266455,transparent 65%),#17131f}.intention textarea:focus{border-color:#cbabff;box-shadow:0 0 0 3px #b58aff18}.genre-palette{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;margin:14px 0}.genre-palette p{grid-column:1/-1;margin:0}.scale-map{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.scale-map button{min-width:48px;background:#2a2139;border-radius:50px}.scale-map .root-note{background:#734a9e;border-color:#d6b7ff}.live-strip{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid #5f427b;border-radius:12px;padding:12px 16px;margin-top:12px;background:linear-gradient(90deg,#30203f,#181321)}#sessionSummary{font-size:14px;line-height:1.5}.pulse-bars{display:flex;gap:4px;height:26px;align-items:center}.pulse-bars i{display:block;width:5px;height:10px;background:#bc96fa;border-radius:4px}.pulse-bars i:nth-child(2n){height:20px}.is-playing .pulse-bars i{animation:music-pulse .6s ease-in-out infinite alternate}.is-playing .pulse-bars i:nth-child(2n){animation-delay:.2s}.is-playing .pulse-bars i:nth-child(3n){animation-delay:.4s}.cell.active{background:linear-gradient(135deg,#d0a6ff,#9868d8)}.cell.playing.active{background:#e1c8ff;box-shadow:0 0 12px #bc96fa88}.sound-cards button.selected{box-shadow:0 0 18px #ab76e322}.tap-feedback{animation:tap-feedback .24s ease-out}.intention-recommendations article{transition:border-color .2s,transform .2s}.intention-recommendations article:hover{border-color:#ab83d6;transform:translateY(-2px)}.hero-illustration{animation:float-note 5s ease-in-out infinite}.bubble{animation:message-enter .22s ease-out}button:active{transform:scale(.98)}@keyframes music-pulse{to{height:26px;opacity:.6}}@keyframes tap-feedback{50%{box-shadow:0 0 0 4px #c69aff33}}@keyframes float-note{50%{transform:translateY(-5px) rotate(2deg)}}@keyframes message-enter{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:none}}@media(max-width:600px){.genre-palette{grid-template-columns:1fr}.genre-palette button{width:100%}.live-strip{align-items:start}#sessionSummary{font-size:14px}.intention-recommendations p{font-size:16px}.objective>div{display:block}.objective{flex-direction:column;align-items:stretch}.coach-note{font-size:14px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}button:active,.intention-recommendations article:hover{transform:none}}
.settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.settings label,.settings label:last-child{min-width:0;width:100%;overflow-wrap:anywhere}.settings label:last-child{grid-column:1/-1}.settings input,.settings select{min-width:0;width:100%}@media(max-width:600px){.settings{grid-template-columns:1fr}.settings label:last-child{grid-column:auto}}
/* Musical entry and guided composition */
[hidden]{display:none!important}.creation-steps{display:flex;gap:10px;margin:20px 0 28px;position:sticky;top:0;z-index:5;padding:12px;background:#11101bf2;backdrop-filter:blur(12px)}.creation-steps button{flex:1;text-align:left}.creation-steps b{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#ffffff15;margin-right:8px}.creation-steps [aria-current]{border-color:#b892ff;background:#773cbb50}.demo-gallery{margin-bottom:24px}.demo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.demo-card{position:relative;overflow:hidden;padding:24px;border:1px solid #ffffff25;border-radius:24px;background:radial-gradient(ellipse at top right,#9357ef65,transparent 75%),#21182e}.demo-card.confidence{background:radial-gradient(ellipse at top right,#f8904755,transparent 75%),#251d24}.demo-card.romance{background:radial-gradient(ellipse at top right,#db519c55,transparent 75%),#261a2a}.demo-icon{font-size:46px;color:#d5b7ff}.demo-card h3{font-size:26px;margin:10px 0}.demo-card p{min-height:48px;color:#d2c5e4}.demo-card button{display:block;width:100%;margin-top:12px}.mini-notes{display:flex;align-items:center;gap:10px;height:70px}.mini-notes i{display:block;width:24%;height:12px;border-radius:7px;background:#cda5ff;box-shadow:0 0 20px #b65fff30;transform:translateY(14px)}.mini-notes i:nth-child(2){transform:translateY(-10px);width:14%}.mini-notes i:nth-child(3){transform:translateY(4px);width:28%}.mini-notes i:nth-child(4){transform:translateY(-20px);width:18%}.confidence .mini-notes i{background:#ffb780}.romance .mini-notes i{background:#ffabd6}.auditioning{box-shadow:0 0 0 2px #d4acff,0 0 40px #a465ff40}.auditioning .mini-notes i{animation:music-bounce .65s ease-in-out infinite alternate}.auditioning .mini-notes i:nth-child(2){animation-delay:.15s}.auditioning .mini-notes i:nth-child(3){animation-delay:.3s}@keyframes music-bounce{to{opacity:.55;filter:brightness(1.6);translate:0 -8px}}.emotion-chips{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.emotion-chips [aria-pressed=true]{background:#9d65ff;border-color:#d4b8ff;color:white}.story-details{margin-top:24px;border-top:1px solid #ffffff20;padding-top:16px}.compare-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.compare-controls label{flex:1;min-width:150px}.ab-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.ab-grid article{border:1px solid #b785ff45;background:#b785ff0c;border-radius:16px;padding:18px}.ab-grid h3{margin-top:0}.ab-grid button{margin:5px 3px 0 0}.stage-next{margin:20px 0}.manual-edit{margin-top:18px}.delivery{max-width:850px;margin:24px auto}.delivery li{margin-bottom:12px}.hero h1{max-width:800px}.hero{padding-bottom:12px}.coach{align-self:start}.compare-panel{margin-bottom:20px}button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:700px){.demo-grid{grid-template-columns:1fr}.demo-card{padding:20px}.demo-card p{min-height:0}.demo-card .demo-icon{float:right}.mini-notes{height:42px}.creation-steps{gap:5px;padding:8px 0}.creation-steps button{font-size:12px;padding:10px 6px}.creation-steps b{display:block;margin:0 0 5px;width:22px;height:22px}.ab-grid{grid-template-columns:1fr}.compare-controls{display:grid;grid-template-columns:1fr}.hero h1{font-size:clamp(36px,10vw,60px)}.emotion-chips button{padding:10px 12px}.section-head{flex-wrap:wrap}.demo-gallery .section-head span{font-size:12px}}
@media(prefers-reduced-motion:reduce){.auditioning .mini-notes i{animation:none}.creation-steps{backdrop-filter:none}}
