:root{--bg:#f7f5fa;--paper:#fff;--ink:#342d43;--muted:#70647f;--purple:#7653ce;--soft:#f0ebfa;--line:#e6e0ee;--green:#659d8b;--radius:24px;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-size:15px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer;min-height:44px;border:1px solid var(--line);border-radius:13px;background:#fff;padding:9px 15px;transition:background .15s,box-shadow .15s;touch-action:manipulation}button:hover{background:var(--soft)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #8c6fd0;outline-offset:3px}button:disabled{cursor:default;opacity:.42}button:disabled:hover{background:#fff}button.primary{background:var(--purple);color:#fff;border-color:var(--purple);font-weight:650}button.primary:hover{background:#6240b8}button.quiet{border-color:transparent;background:transparent;color:var(--muted)}button.selected{color:#6540bb;background:var(--soft);border-color:#d8cbed;box-shadow:0 2px 5px #5640700d}.app{max-width:1600px;margin:auto;padding:0 24px}.brand{font-size:43px;letter-spacing:-2px;font-weight:800;text-decoration:none;color:var(--ink);display:flex;align-items:center;gap:13px}.brand svg{width:42px;height:42px;fill:none;stroke:var(--purple);stroke-width:3;stroke-linecap:round}header{display:flex;align-items:center;gap:28px;min-height:100px}.project-title{border-color:transparent;background:transparent;font-weight:550;max-width:260px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.project-title span{color:var(--muted);padding-left:10px}.top-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.icon-button{font-size:25px;padding:5px 12px}.workspace{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden;position:relative;box-shadow:0 10px 40px #392a4c03}.toolbar{display:flex;align-items:center;gap:20px;padding:17px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.tool-group{display:flex;gap:3px;border-radius:16px;background:#f5f2f8;padding:4px}.tool-group button{border-color:transparent;background:transparent;font-weight:600;padding:10px 15px}.tool-group button.selected{background:#fff;box-shadow:0 2px 8px #4937550d;color:var(--purple)}.palette{display:flex;align-items:center;gap:9px}.swatch{background:transparent;padding:6px;width:44px;height:44px;border-radius:50%;border:2px solid transparent;position:relative}.swatch:before{content:'';display:block;width:100%;height:100%;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #0000000c}.swatch:hover{background:#f4f0f8}.swatch[aria-pressed=true]{border-color:var(--purple)}.color-button{display:flex;align-items:center;gap:10px;padding:9px 13px}.color-button i{width:24px;height:24px;border-radius:50%;background:var(--purple);box-shadow:inset 0 0 0 1px #0002}.history-actions{display:flex;align-items:center;gap:4px;margin-left:auto}.history-actions #undo,.history-actions #redo{font-size:25px;line-height:1;padding:5px 12px;border-color:transparent}#layersBtn{margin-left:10px}#layerCount{font-size:12px;padding:3px 6px;border-radius:8px;background:var(--soft);margin-left:4px}.brushbar{display:flex;align-items:center;gap:20px;padding:12px 20px;background:#fcfbfd;border-bottom:1px solid var(--line);min-height:72px}.brushes{display:flex;gap:6px}.brush-button{display:flex;flex-direction:column;gap:3px;align-items:center;min-width:74px;font-size:13px;padding:4px 10px;border:1px solid transparent;background:transparent;border-radius:12px}.brush-button svg{height:18px;width:54px;overflow:visible;stroke:currentColor;fill:none;stroke-width:3;stroke-linecap:round}.brush-button.selected{color:var(--purple)}.size-control{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;min-width:160px}.size-control input{width:95px}.size-control output{width:22px}.brushbar>label:not(.size-control){font-size:13px;display:flex;align-items:center;gap:9px}.stage{position:relative;min-height:260px;display:flex;justify-content:center;align-items:center;padding:0 12px;background:#fdfcfe}.artboard{position:relative;width:min(100%,calc((100dvh - 474px)*1.53846));aspect-ratio:1000/650;background:#fff;flex:none;isolation:isolate}canvas#paper,canvas#visuals{position:absolute;width:100%;height:100%;inset:0}canvas#paper{touch-action:none;cursor:crosshair;outline-offset:-4px}canvas#visuals{pointer-events:none}.invitation{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;pointer-events:none;padding:25px}.eyebrow{font-size:11px;letter-spacing:1.7px;font-weight:700;color:#81718e}.invitation h1{font-size:clamp(26px,3.2vw,48px);font-weight:650;letter-spacing:-1.8px;margin:15px 0 7px}.invitation p{font-size:17px;color:var(--muted);margin:0 0 20px}.invitation>span:not(.eyebrow){font-size:14px;line-height:1.7;color:var(--muted)}.example{pointer-events:auto;font-size:13px;color:var(--purple);margin-top:25px;background:transparent;border-color:transparent}.pitch-label{position:absolute;left:20px;color:#776981;font-size:12px;pointer-events:none}.high{top:18px}.low{bottom:18px}.gesture-readout{position:absolute;right:14px;top:14px;background:#ffffffeb;border:1px solid var(--line);border-radius:11px;padding:9px 12px;color:#5e4875;max-width:80%;font-size:12px;pointer-events:none}.canvas-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:53px;padding:5px 20px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.canvas-footer button{font-size:12px;min-height:40px}.canvas-footer #actionHint{max-width:50%}.layers-panel{position:absolute;right:0;top:0;bottom:0;width:300px;border-left:1px solid var(--line);background:#fffffffa;z-index:8;box-shadow:-10px 0 30px #49375510;overflow-y:auto;padding:18px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.panel-head h2{font-size:21px;margin:0 0 4px}.panel-head p,#layersEmpty{font-size:13px;color:var(--muted);margin:0 0 15px}.layer{padding:10px 0;border-top:1px solid var(--line)}.layer.selected{background:#f5f1fc;border-radius:12px;padding:10px;margin:0 -5px}.layer-top{display:flex;gap:8px;align-items:center}.layer-select{flex:1;text-align:left;font-size:13px;display:flex;gap:8px;align-items:center;min-height:40px;padding:6px;background:transparent;border-color:transparent;overflow:hidden}.layer-select i{width:12px;height:12px;border-radius:50%;flex:none}.layer-select span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.layer-controls{display:flex;gap:5px;align-items:center}.layer-controls button{padding:6px 10px;font-size:12px;min-width:44px}.layer-controls input{width:90px}.layer-controls output{font-size:11px;width:32px}.transport{padding:15px 7px 0}.timeline-info{display:flex;align-items:center;gap:18px;font-size:12px;color:var(--muted)}.progress{height:4px;background:#e7dfef;flex:1;border-radius:4px;overflow:hidden}.progress i{display:block;width:0;height:100%;background:var(--purple)}.transport-main{display:flex;align-items:center;gap:25px;margin-top:12px}.play-controls{display:flex;align-items:center;gap:9px}.play-controls #play{font-size:16px;min-height:52px;padding:12px 25px;min-width:181px}.play-controls #stop{font-size:18px;min-width:45px;background:transparent;border-color:transparent}.repeat{display:flex;align-items:center;gap:7px;font-size:13px;margin-left:10px;color:var(--muted)}input[type=checkbox]{width:19px;height:19px;accent-color:var(--purple);flex:none}.live-feedback{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);margin-left:auto}.live-feedback>i{width:7px;height:7px;border-radius:50%;background:#9b92a4}.live-feedback>i.active{background:var(--green);box-shadow:0 0 0 4px #659d8b18}.pressure-track{width:48px;height:4px;border-radius:4px;background:var(--line);overflow:hidden}.pressure-track i{display:block;height:100%;width:0;background:var(--purple)}.volume{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.volume input{width:90px}.volume output{width:32px}.bottom-note{text-align:center;font-size:11px;color:#776981;margin:13px 0 15px}input[type=range]{accent-color:var(--purple);height:28px;min-width:40px;cursor:pointer}label{display:flex;flex-direction:column;gap:8px;font-size:14px}input[type=text],input[type=number],input:not([type]),select{min-height:44px;border:1px solid #dcd3e8;background:#fcfbfe;border-radius:10px;padding:10px 12px;max-width:100%}select{width:100%}dialog{border:1px solid var(--line);border-radius:25px;background:#fff;color:var(--ink);padding:28px;width:min(650px,calc(100% - 28px));max-height:90dvh;overflow-y:auto;box-shadow:0 28px 100px #27123625}dialog::backdrop{background:#31203c36;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:16px}.dialog-head h2{margin:5px 0 0;font-size:27px;letter-spacing:-.6px}.close{min-width:44px;font-size:27px;line-height:1;min-height:44px;border:0;background:transparent;color:var(--muted);padding:7px}.dialog-intro{font-size:14px;color:var(--muted);margin:-2px 0 22px}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:22px;flex-wrap:wrap}.dialog-actions #previewColor{margin-right:auto;touch-action:none}.note{font-size:12px;line-height:1.65;color:var(--muted);margin:14px 0 0}.picker-layout{display:grid;grid-template-columns:minmax(160px,1fr) 200px;gap:24px}.color-map{display:flex;gap:14px;min-height:260px}.sv{flex:1;position:relative;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),hsl(260,100%,50%);border-radius:8px;cursor:crosshair;touch-action:none;border:1px solid #0001}.sv i{position:absolute;width:15px;height:15px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #0009;transform:translate(-50%,-50%);pointer-events:none}.hue{appearance:none;-webkit-appearance:none;writing-mode:vertical-lr;direction:rtl;border:1px solid #0001;border-radius:7px;width:24px!important;min-width:24px!important;height:100%!important;margin:0;background:linear-gradient(to top,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}.hue::-webkit-slider-thumb{appearance:none;width:30px;height:8px;background:transparent;border:2px solid #fff;border-radius:3px;box-shadow:0 0 0 1px #0008}.hue::-moz-range-thumb{width:30px;height:5px;background:transparent;border:2px solid #fff}.color-values{display:flex;flex-direction:column;gap:13px}.comparison{display:flex;gap:12px}.comparison>div{flex:1;display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted);text-align:center}.comparison i{height:45px;border:1px solid #0002;border-radius:8px}.color-values label{font-size:12px;gap:5px}.color-values input{width:100%;font-variant-numeric:tabular-nums}.rgb-inputs{display:flex;gap:7px}.rgb-inputs label{min-width:0;flex:1}.rgb-inputs input{padding:8px}.hsv-inputs{display:flex;gap:8px}.hsv-inputs label{display:flex;flex-direction:row;align-items:center;gap:2px;font-size:10px;flex-wrap:wrap;flex:1}.hsv-inputs input{width:62px;min-height:32px;padding:5px}.sound-summary{display:flex;gap:10px;margin-top:23px;padding:15px 0;border-block:1px solid var(--line);font-size:12px;color:#665075}.sound-summary span{flex:1}.favorites{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:14px}.favorites>div{display:flex;gap:3px;flex-wrap:wrap}.favorites .swatch{width:36px;height:36px;min-height:36px}.favorites button.quiet{font-size:12px;padding:7px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px}.wide{grid-column:1/-1}.settings-grid output{float:right;font-size:12px;color:var(--muted);font-weight:500}.settings-grid label>small{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.settings-grid .note{margin-top:-8px}.checkline{flex-direction:row;align-items:center;gap:9px;font-size:13px}.guide p{font-size:14px;line-height:1.7}.guide b{color:#5c3d91}table{border-collapse:collapse;margin-top:23px}th,td{padding:12px 0;border-top:1px solid var(--line);font-size:13px;line-height:1.6;text-align:left;vertical-align:top}th{min-width:110px;padding-right:18px;font-weight:600}td{color:var(--muted)}.help-card{border-radius:15px;background:var(--soft);padding:18px;margin-top:20px;font-size:14px;line-height:1.6}.help-card p{margin:5px 0 0;color:var(--muted)}#explore{margin-top:22px}.project-list{display:grid;gap:14px;margin-top:24px}.project-card{display:flex;align-items:center;gap:15px;border:1px solid var(--line);border-radius:16px;padding:12px}.project-card canvas{width:100px;height:65px;border:1px solid #eee;border-radius:8px;background:#fff}.project-card .project-meta{flex:1;min-width:0}.project-card strong{font-size:15px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-card small{font-size:11px;color:var(--muted)}.project-card .project-buttons{display:flex;gap:5px}.project-buttons button{font-size:12px;padding:8px}.export-options{display:grid;gap:12px;margin-top:25px}.export-options button{display:flex;flex-direction:column;gap:8px;text-align:left;padding:19px}.export-options span{font-size:13px;color:var(--muted)}#importFromExport{margin-top:20px}#calibrationCanvas{display:block;width:100%;height:180px;border:1px dashed #c6b6df;border-radius:13px;background:#faf7ff;touch-action:none}#calibration p{line-height:1.7;font-size:14px;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);padding:13px 20px;border-radius:14px;color:#fff;background:#453457;box-shadow:0 10px 40px #0002;opacity:0;pointer-events:none;transition:.2s;max-width:min(90vw,650px);font-size:14px;z-index:100}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}[hidden]{display:none!important}body.large button{min-height:52px}body.large{font-size:17px}body.large .brush-button{font-size:14px}
@media(min-width:1500px){.artboard{width:min(100%,calc((100dvh - 474px)*1.53846))}}@media(max-width:1150px){header{gap:14px;min-height:86px}.brand{font-size:36px}.top-actions{gap:4px}.project-title{max-width:200px}.toolbar{gap:12px;padding:12px}.tool-group button{padding:10px}.palette{gap:3px}.history-actions{gap:1px}#layersBtn{margin-left:0}.brushbar{padding:10px 12px;gap:13px}.brush-button{min-width:65px}.artboard{width:min(100%,calc((100dvh - 444px)*1.53846))}.live-feedback .pressure-track{display:none}.transport-main{gap:10px}}
@media(max-width:850px){.app{padding:0 14px}header{flex-wrap:wrap;gap:9px;padding:13px 0;min-height:80px}.brand{font-size:34px}.brand svg{width:32px;height:32px}.project-title{max-width:180px;padding:6px 9px;font-size:13px}.top-actions button{font-size:12px;padding:8px 10px}.top-actions #settingsBtn span{display:none}.top-actions #settingsBtn{font-size:22px;line-height:1}.toolbar{gap:9px}.tool-group{order:0}.palette{order:1}.history-actions{order:2;margin-left:0;flex:1;justify-content:flex-end}.tool-group button{font-size:13px}.swatch{width:38px;height:40px;min-height:40px}.color-button{font-size:12px;gap:6px}.color-button i{width:20px;height:20px}.brushbar{flex-wrap:wrap;gap:4px 15px}.brushes{gap:1px}.brush-button{min-width:54px;padding:4px 7px}.brush-button svg{width:42px}.size-control{min-width:140px}.size-control input{width:70px}.artboard{width:100%}.stage{padding:0;min-height:0}.canvas-footer{gap:8px;padding:5px 12px}.canvas-footer #mapBtn{display:none}.canvas-footer #actionHint{max-width:60%;font-size:11px}.transport-main{flex-wrap:wrap}.live-feedback{margin-left:auto}.volume{margin-left:auto}.timeline-info{gap:9px;font-size:11px}#replayInfo{max-width:50%}.bottom-note{margin-top:15px}}
@media(max-width:540px){.app{padding:0 8px}.brand{font-size:30px;gap:7px}.project-title{max-width:170px}.top-actions{width:100%;justify-content:flex-end;margin-top:-2px}.top-actions #fullscreen{font-size:20px;min-width:44px}.toolbar{gap:7px;padding:9px}.tool-group{width:100%;justify-content:space-between}.tool-group button{flex:1}.palette{flex:1;gap:0}.swatch{width:35px;padding:5px}.history-actions{flex-wrap:wrap;flex:0 0 auto;gap:0}.history-actions #clear{display:none}.history-actions #layersBtn{font-size:12px;padding:7px}#layerCount{display:none}.history-actions #undo,.history-actions #redo{padding:6px 8px;min-width:35px}.color-button{padding:7px 8px;border-color:transparent}.color-button span{display:none}.brushbar{padding:8px;justify-content:space-between}.brushes{width:100%;justify-content:space-between}.brush-button{min-width:46px;flex:1;font-size:11px;padding:5px 4px}.brush-button svg{width:36px}.size-control{font-size:12px;margin:5px 0}.size-control input{width:95px}.invitation h1{font-size:26px;letter-spacing:-1px;margin-top:8px}.invitation p{font-size:12px;margin-bottom:10px}.invitation>span:not(.eyebrow){font-size:11px}.invitation .eyebrow{font-size:9px;letter-spacing:1px}.example{font-size:11px;margin-top:8px;min-height:40px}.pitch-label{font-size:10px;left:10px}.high{top:10px}.low{bottom:10px}.canvas-footer{min-height:48px}.transport{padding-top:12px}.transport-main{gap:10px;justify-content:space-between}.play-controls{gap:3px}.play-controls #play{min-width:151px;padding:10px 14px;font-size:14px;min-height:49px}.repeat{font-size:12px;margin-left:8px}.live-feedback{order:3;margin:0;font-size:11px}.volume{order:4;margin:0;font-size:11px}.volume input{width:70px}.volume output{display:none}.bottom-note{font-size:10px}.layers-panel{width:min(300px,92%)}dialog{padding:22px 18px;border-radius:20px}.dialog-head h2{font-size:23px}.picker-layout{grid-template-columns:1fr;gap:18px}.color-map{height:230px;min-height:230px}.color-values{display:grid;grid-template-columns:1fr 1fr;gap:12px}.color-values .comparison{grid-row:span 2}.comparison i{height:65px}.hsv-inputs{grid-column:1/-1}.sound-summary{flex-direction:column;gap:9px}.dialog-actions{gap:7px}.dialog-actions #previewColor{width:100%;margin-bottom:3px}.settings-grid{gap:18px 12px}.project-card{flex-wrap:wrap}.project-card canvas{width:80px;height:52px}.project-card .project-buttons{width:100%;justify-content:flex-end}.gesture-readout{font-size:10px;padding:6px;top:auto;bottom:9px;right:7px}th{min-width:90px}th,td{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}dialog::backdrop{backdrop-filter:none}}

.size-control,.volume{flex-direction:row}.color-map{height:280px;min-height:0}.hue{align-self:stretch}.brushbar>label:not(.size-control){flex-direction:row}

.repeat{flex-direction:row}.tool-group button{display:flex;align-items:center;justify-content:center;gap:7px}.tool-group svg,.history-actions svg,#fullscreen svg,#settingsBtn svg,#play svg,#stop svg,#layersBtn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.history-actions button,#settingsBtn,#layersBtn,#play,#stop,#fullscreen{display:flex;align-items:center;justify-content:center;gap:7px}.history-actions svg{width:21px;height:21px}#play svg.play-icon{fill:currentColor;stroke:none;width:15px}#stop svg{fill:currentColor;stroke:none;width:12px}
@media(min-width:851px) and (max-width:1150px){.toolbar .tool-group button{font-size:13px;padding:8px 10px}.toolbar .swatch{width:38px;height:40px;min-height:40px}.toolbar .color-button{font-size:13px;padding:8px 10px;gap:7px}.toolbar .palette{gap:4px}.history-actions button{font-size:13px;padding:8px 10px}.history-actions #undo,.history-actions #redo{padding:6px 9px}.toolbar svg{width:17px;height:17px}}

.stage{background:#f3f0f7;padding:12px}.artboard{border:1px solid #e9e3f0;border-radius:8px;overflow:hidden;box-shadow:0 1px 9px #392a4c0b}@media(max-width:850px){.stage{padding:0;background:#fff}.artboard{border:0;border-radius:0;box-shadow:none}}

/* Alternate readings stay beside Play; detailed choices live in one dialog. */
.reading-button{display:flex;align-items:center;gap:10px;max-width:220px;font-size:13px;min-height:44px;border-color:#dbcfec;color:#624590;background:#fff}.reading-button #readingLabel{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.reading-button>span:last-child{margin-left:auto}.reading-shortcut{display:flex;flex-direction:column;gap:8px;font-size:14px}.reading-shortcut button{text-align:left;font-size:13px}.reading-hud{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);padding:8px 13px;border-radius:20px;border:1px solid #e1d8ee;background:#fffffff2;color:#5e437d;font-size:12px;max-width:85%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;box-shadow:0 2px 10px #342d4308}.reading-families{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.reading-families button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;padding:16px 13px;min-height:135px;border-radius:17px}.reading-families svg{width:55px;height:27px;stroke:var(--purple);stroke-width:2.5;stroke-linecap:round;fill:none;margin-bottom:4px}.reading-families span{font-size:12px;line-height:1.5;color:var(--muted)}.reading-families b{font-size:15px}.reading-description{font-size:14px;line-height:1.7;color:var(--muted);margin:18px 0 24px}.reading-dialog h3{font-size:13px;font-weight:650;margin:20px 0 10px}.scan-directions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.scan-directions button{text-align:left;display:flex;align-items:center;gap:14px;font-size:23px;padding:10px 15px}.scan-directions span{font-size:13px}.scan-length{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-top:20px;font-size:13px}.scan-length select{width:145px}.reading-tip{background:#f8f4ed;color:#74603f;border-radius:12px;padding:13px;font-size:12px;line-height:1.6}.choice-row{display:flex;gap:7px}.choice-row button{flex:1;font-size:13px}.group-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.group-heading span{font-size:11px;color:var(--muted)}.reading-groups{display:flex;flex-direction:column;gap:8px}.reading-group{display:flex;align-items:center;gap:9px;padding:8px 10px;border:1px solid var(--line);border-radius:13px;background:#fff;transition:background .15s}.reading-group.drop-target{background:#eee7fb;border-color:#9e83ce}.reading-group .group-handle{touch-action:none;cursor:grab;min-width:38px;padding:5px;border-color:transparent;color:#8b7b9d;font-size:22px;user-select:none}.group-dot{height:22px;width:22px;border:1px solid #0001;border-radius:50%;flex:none}.group-label{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.group-label strong{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.group-label small{font-size:11px;color:var(--muted)}.group-move{display:flex;gap:2px}.group-move button{padding:6px;min-width:38px;min-height:40px;font-size:17px;border-color:transparent}.group-position{font-size:11px;color:var(--muted);min-width:16px;text-align:center}.reading-reassurance{display:flex;align-items:center;gap:10px;background:#f8f5fc;border-radius:12px;padding:11px 13px;margin-top:24px;color:#69527d}.reading-reassurance p{font-size:12px;line-height:1.6;margin:0}.reading-reassurance>span{font-size:20px}.reading-dialog .dialog-actions{position:sticky;bottom:-28px;background:#ffffffed;padding:13px 0;margin-bottom:-8px;backdrop-filter:blur(8px)}
@media(min-width:851px) and (max-width:1150px){.transport-main{gap:12px}.live-feedback .pressure-track{display:none}.reading-button{max-width:180px;font-size:12px}.play-controls{gap:6px}.volume input{width:65px}.live-feedback{font-size:11px}.repeat{margin-left:2px}.play-controls #play{min-width:150px;padding:10px 17px}}
@media(max-width:850px){.transport-main .play-controls{flex-wrap:wrap;width:100%}.play-controls .repeat{margin-left:auto}.reading-button{order:3;max-width:none;width:100%;justify-content:space-between}.transport-main{row-gap:9px}.live-feedback{margin-left:0}.volume{margin-left:auto}.reading-hud{font-size:11px;bottom:12px}}
@media(max-width:540px){.reading-families{gap:6px}.reading-families button{padding:12px 9px;min-height:122px;gap:6px}.reading-families span{font-size:10px}.reading-families b{font-size:13px}.reading-description{font-size:13px;margin-bottom:16px}.reading-dialog .dialog-actions{bottom:-22px}.group-heading span{font-size:10px}.reading-group{gap:6px;padding:7px 5px}.group-move button{min-width:34px}.group-position{display:none}.group-label small{font-size:10px}.reading-hud{font-size:10px;padding:6px 10px}.scan-directions span{font-size:12px}}
/* Studio v8: the canvas is the main interface; choices open only when needed. */
header{min-height:90px}.toolbar{padding:11px 18px;gap:10px;min-height:70px;flex-wrap:nowrap}.toolbar #undo{margin-left:auto;padding:9px 12px;background:transparent;border-color:transparent;min-width:44px;display:flex;align-items:center}.toolbar #undo svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.brush-picker-trigger{display:flex;align-items:center;gap:11px;min-width:144px;border-color:transparent;background:#f7f4fb}.brush-picker-trigger svg{width:42px;height:20px;fill:none;stroke:var(--purple);stroke-width:3;stroke-linecap:round}.brush-picker-trigger>span:last-child{margin-left:auto;color:var(--muted)}.toolbar .color-button{border-color:transparent;min-width:137px}.toolbar .color-button i{width:23px;height:23px}.toolbar .color-button span{display:inline}.canvas-footer{display:none}.editing .canvas-footer{display:flex;min-height:42px}.editing .canvas-footer #mapBtn{display:none}.edit-context{font-size:12px;display:flex;gap:10px;align-items:center}.edit-context label{display:flex;flex-direction:row;align-items:center;gap:6px}.edit-context select{width:145px;font-size:12px;padding:7px}.edit-context button{font-size:12px}.artboard{width:min(100%,calc((100dvh - 300px)*1.53846));max-width:1100px}.stage{padding:12px;background:#f2eff7}.timeline-info{max-width:780px;margin:auto;gap:12px}.timeline-info #replayInfo{display:none}.timeline-info .progress{min-width:30px}.transport{padding-top:18px}.transport-main{justify-content:center;gap:12px;margin-top:12px}.transport-main .play-controls{width:auto;display:flex;flex-wrap:nowrap;align-items:center;gap:14px}.transport-main .live-feedback{display:none}.play-controls #play{min-width:176px;padding:12px 27px}.play-controls #stop{color:#867891}.sound-mode-pill{display:flex;gap:8px;align-items:center;border-color:transparent;background:transparent;font-size:13px;color:#6a587d;min-width:120px}.sound-mode-pill i{width:6px;height:6px;border-radius:50%;background:#75a792}.sound-mode-pill.is-original i{background:#a38ac3}.pitch-label{display:none}.show-feedback .pitch-label{display:block}.gesture-readout{font-size:11px}.reading-hud{font-size:11px;padding:7px 12px;opacity:.85}.app{padding-bottom:18px}.starting-colors{display:flex;gap:9px;margin-top:14px}.starting-colors .swatch{width:44px;height:44px}.sound-mode-options,.comparison-modes{display:flex;gap:10px}.sound-mode-options button{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;padding:17px 14px;min-height:95px}.sound-mode-options button span{font-size:12px;color:var(--muted);line-height:1.5}.compare-button{margin-top:18px;min-height:44px;background:#faf8fd;font-size:13px}.quick-sound-settings{display:grid;grid-template-columns:1fr 1fr;gap:15px 22px;margin-top:24px}.quick-sound-settings .volume{font-size:14px;display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0}.quick-sound-settings .volume input{width:100%}.quick-sound-settings .volume output{display:inline;align-self:flex-end}.quick-sound-settings .repeat{font-size:13px;flex-direction:row;gap:8px;margin:0}.advanced-sound{margin-top:24px;border-top:1px solid var(--line);padding-top:18px}.advanced-sound summary{cursor:pointer;color:#6a4e91;font-size:14px;min-height:44px;padding:10px 0}.advanced-sound .settings-grid{margin-top:16px}.comparison-modes{margin:20px 0}.comparison-modes button{flex:1}.sound-check-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.sound-check-buttons button{display:flex;flex-direction:column;gap:10px;align-items:flex-start;padding:20px 12px;text-align:left;min-height:110px}.sound-check-buttons span{font-size:12px;line-height:1.5;color:var(--muted)}#stopSoundCheck{margin-top:20px}
@media(min-width:851px) and (max-width:1150px){.artboard{width:min(100%,calc((100dvh - 285px)*1.53846))}.toolbar .color-button{font-size:14px}.transport-main .play-controls{width:auto}.toolbar .brush-picker-trigger{font-size:14px}.toolbar #undo{padding:9px 12px}}
@media(max-width:850px){.artboard{width:100%;max-width:none}.stage{padding:0}.transport-main .play-controls{width:auto;gap:10px;flex-wrap:nowrap}.toolbar{min-height:65px;flex-wrap:wrap}.toolbar .brush-picker-trigger{min-width:130px}.toolbar .color-button{min-width:125px}.toolbar .color-button span{display:inline}.edit-context{flex-basis:100%;justify-content:flex-end}.sound-mode-pill{min-width:110px}.reading-button{order:0}.canvas-footer #actionHint{max-width:100%}}
@media(max-width:540px){header{min-height:78px;flex-wrap:nowrap;padding:12px 0;gap:6px}.brand{font-size:31px}.brand svg{width:29px;height:29px}.project-title{font-size:11px;max-width:140px;padding:5px;min-height:40px}.top-actions{margin:0 0 0 auto;width:auto}.toolbar{padding:9px;gap:5px;min-height:63px}.toolbar .brush-picker-trigger{min-width:132px;gap:8px;font-size:13px;padding:8px 11px}.toolbar .brush-picker-trigger svg{width:34px}.toolbar .color-button{min-width:121px;font-size:13px;padding:8px 11px;gap:8px}.toolbar .color-button span{display:inline}.toolbar .color-button i{width:20px;height:20px}.toolbar #undo{min-width:41px;padding:8px}.transport-main .play-controls{gap:4px}.play-controls #play{min-width:147px;padding:10px 18px;font-size:14px}.sound-mode-pill{min-width:104px;font-size:12px;padding:8px}.play-controls #stop{min-width:34px}.transport{padding-top:13px}.sound-mode-options button{padding:13px 11px}.sound-mode-options button span{font-size:11px}.sound-check-buttons{gap:6px}.sound-check-buttons button{padding:15px 10px;min-height:105px}.sound-check-buttons span{font-size:10px}.quick-sound-settings{gap:13px}.quick-sound-settings .volume output{display:inline}.invitation h1{font-size:28px}.invitation p{font-size:12px}.invitation>span:not(.eyebrow){font-size:11px}.app{padding-bottom:20px}}



/* Draw and Listen share the canvas and the same transport. */
.app {
  display: flex;
  flex-direction: column;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
  background: #fff;
}
.app > header {
  min-height: 68px;
  padding: 6px 16px;
  gap: 14px;
}
.app .brand { font-size: 29px; gap: 6px; letter-spacing: -1px; padding: 0 6px 0 0; border: 0; background: transparent; }
.app .brand:hover { color: #58379c; background: transparent; }
.app .brand svg { width: 28px; height: 28px; }
.workspace button svg, .transport .repeat svg, .transport .volume svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace {
  flex: 1;
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.workspace .toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: 5px;
  min-height: 61px;
  margin: 0 10px;
  padding: 5px 8px;
  border: 1px solid #e9e5ee;
  border-radius: 16px;
  background: #faf9fc;
}
/* Fade the chrome into the live canvas without intercepting strokes. */
.workspace .toolbar::after {
  content: '';
  position: absolute;
  inset: 100% 0 auto;
  height: 24px;
  border-radius: 0 0 16px 16px;
  pointer-events: none;
  background: #faf9fcad;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  mask-image: linear-gradient(#000, transparent);
}
.rail-brushes, .rail-edit, .rail-palette { display: flex; align-items: center; gap: 3px; }
.rail-brushes button, .rail-edit button {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 5px 9px;
}
.rail-brushes button { min-width: 52px; }
.rail-brushes button svg { width: 32px; stroke-width: 3; }
.rail-brushes button[aria-pressed=true], .rail-edit button[aria-pressed=true] {
  background: #eee7fc;
  border-color: #c2afe6;
  color: #6540bb;
}
.workspace .toolbar .brush-picker-trigger, .workspace .toolbar .color-button {
  min-width: 0;
  padding: 5px 9px;
  gap: 6px;
  font-size: 13px;
}
.workspace .toolbar .brush-picker-trigger svg { display: none; }
.rail-palette { gap: 0; }
.rail-palette .swatch { padding: 7px; }
.workspace .toolbar .color-button i { width: 20px; height: 20px; }
.workspace .toolbar #undo { margin: 0; padding: 5px 9px; }
.rail-edit #layerCount { display: none; }
.workspace .size-control { padding: 0 8px; display: flex; align-items: center; gap: 6px; }
.workspace .size-control input { width: 84px; margin: 0; }
.workspace .size-control output { min-width: 18px; }
.workspace .stage { min-height: 0; padding: 0; background: #fff; container-type: size; }
.workspace .artboard {
  width: min(100cqw, calc(100cqh * 1000 / 650));
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.workspace .transport {
  position: relative;
  justify-self: end;
  align-self: end;
  max-width: calc(100% - 20px);
  margin: 0 10px max(10px, env(safe-area-inset-bottom));
  padding: 6px 8px;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 18px #26233826;
}
.workspace .transport::before, .workspace .transport::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.workspace .transport::before {
  z-index: -2;
  inset: -16px;
  border-radius: 34px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  mask-image: linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent),
    linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-composite: intersect;
}
.workspace .transport::after {
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: #262338;
}
@media (prefers-reduced-transparency: reduce) {
  .workspace .toolbar::after, .workspace .transport::before {
    display: none;
  }
}
.workspace .transport-main { margin: 0; }
.workspace .play-controls { gap: 8px; justify-content: center; flex-wrap: wrap; }
.workspace .play-controls button { color: inherit; background: #383449; border-color: transparent; min-width: 44px; }
.workspace .play-controls button:hover { background: #49435d; }
.workspace .play-controls #play { position: relative; padding: 6px; min-width: 46px; border-radius: 50%; background: var(--purple); }
.workspace .play-controls #play span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#soundModeBtn i, #soundModeLabel, #soundModeBtn span[aria-hidden] { display: none; }
.workspace .play-controls #play svg, .workspace .play-controls #stop svg { fill: currentColor; stroke: none; }
.workspace .play-controls #play svg:not(.play-icon) { fill: none; stroke: currentColor; }
.workspace .play-controls #stop { color: #fff; padding: 6px; }
.workspace .reading-button { order: 0; width: auto; max-width: 148px; min-width: 0; display: flex; gap: 6px; font-size: 12px; padding: 6px 9px; }
.workspace #readingLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace .repeat {
  position: relative;
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #383449;
}
.workspace .repeat:has(input:checked) { background: #59447d; }
.workspace .repeat input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.workspace .repeat:focus-within { outline: 2px solid #c6a9ff; }
.workspace .transport .volume { display: flex; gap: 6px; margin: 0 3px; }
.workspace .transport .volume input { width: 100px; margin: 0; accent-color: #af8cf4; }
.workspace .transport .volume output { display: none; }
.workspace .sound-mode-pill { min-width: 0; padding: 6px 9px; }
.workspace .timeline-info { color: #ded8ea; margin-bottom: 3px; font-size: 10px; }
.workspace .timeline-info .progress { height: 2px; background: #514863; }
.workspace .invitation > span { display: none; }
#invitationTitle:focus { outline: none; }
#previousDrawingNotice { max-width: min(100%, 460px); overflow-wrap: anywhere; }
#returnToDrawing { margin-top: 0; }

@media (min-width: 761px) {
  .workspace { height: calc(100dvh - 68px); min-height: 470px; flex: none; }
}
@media (max-width: 760px) {
  .app > header { padding: 5px 8px; gap: 7px; flex-wrap: wrap; }
  .app .brand { font-size: 22px; }
  .app .brand svg { width: 20px; }
  .app .project-title { max-width: 125px; }
  .workspace { grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .workspace .toolbar { margin: 0 5px; padding: 4px; justify-content: center; }
  .rail-palette { flex-basis: 100%; justify-content: center; }
  .rail-palette .swatch { width: min(44px, 11vw); }
  .workspace .stage { container-type: normal; }
  .workspace .artboard { width: 100%; }
  .workspace .transport { margin: 6px 5px 8px; max-width: calc(100% - 10px); }
  .workspace .play-controls { gap: 4px; }
  .workspace .transport .volume input { width: 50px; }
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.project-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.project-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.project-actions #playlistBtn {
  color: #6344a8;
  background: #f1ebfb;
  border-color: #e7dcf7;
}
.project-actions #playlistBtn:hover { background: #e9def9; }
@media (max-width: 760px) {
  .app > header { height: auto; }
  .app > header .top-actions { flex: 1 0 100%; justify-content: space-between; margin: 0; }
  .project-actions { flex-wrap: wrap; }
  .project-actions button { padding: 6px 8px; }
}

.app > header .project-actions button:not(#playlistBtn):not(#headerPublish) { border-color: transparent; background: transparent; }
.app > header .project-actions button:not(#playlistBtn):not(#headerPublish):hover { background: var(--soft); }

#library .project-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
#library .project-card {
  display: grid;
  gap: 0;
  padding: 0;
  min-width: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 14px #342d4307;
}
#library .drawing-preview { position: relative; min-width: 0; }
#library .album-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #eeebf2;
  border-radius: 17px 17px 0 0;
  overflow: hidden;
  background: #fff;
}
#library .album-cover:focus-visible { outline-offset: -4px; }
#library .album-cover canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  pointer-events: none;
}
#library .album-cover .drawing-animation {
  position: absolute;
  left: 5%;
  top: 20.75%;
  width: 90%;
  height: 58.5%;
  background: transparent;
}
#library .empty-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f5f0fb;
  font-size: 12px;
}
#library .project-meta { padding: 12px 14px 0; }
#library .project-meta strong { white-space: normal; overflow-wrap: anywhere; }
#library .project-meta small { overflow-wrap: anywhere; }
#library .duplicate-album {
  justify-self: start;
  margin-inline: 6px;
  min-height: 44px;
  padding: 3px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
#library .duplicate-album:hover { background: var(--soft); }

.workspace .play-controls #stop {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  background: #383449;
  border: 1px solid #514b64;
  font-size: 12px;
}
.workspace .play-controls #stop svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}
.workspace .play-controls #stop:hover { background: #49435d; }
.workspace .repeat svg, .workspace .transport .volume svg { color: #e8dff9; }
@media (max-width: 650px) {
  #library .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Shared playlists and notation */
.score-dialog { width: min(920px, calc(100% - 24px)); max-width: none; }
.community-tabs, .score-actions, .public-head, .public-player { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.community-tabs [aria-pressed="true"], .public-track[aria-pressed="true"] { background:#efe8fb; color:#58379c; border-color:#c8b7eb; }
.community-page #communityStatus { margin:12px 0; overflow-wrap:anywhere; }
.community-page #communityStatus:empty { display:none; }
.community-page #moreFeed { margin-top:15px; }
#communitySignIn { display:inline-flex; align-items:center; min-height:44px; background:var(--purple); color:#fff; text-decoration:none; font-weight:700; padding:10px 16px; border-radius:14px; }
#communitySignIn[hidden] { display:none; }
.managed-playlist { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid #eae3f1; }
.managed-playlist .project-meta { margin-right:auto; min-width:min(140px,100%); }
#playlistForm { border:1px solid #e7ddf2; border-radius:15px; margin-top:16px; padding:16px; }
.playlist-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr)); gap:10px; }
#playlistForm fieldset { margin:15px 0; padding:0; border:0; min-inline-size:0; }
#playlistForm legend { margin-bottom:8px; font-weight:700; }
.playlist-tracks { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr)); gap:8px; }
.playlist-tracks .track-choice, .playlist-tracks .public-track { display:flex; align-items:center; gap:8px; border:1px solid #e7ddf2; border-radius:10px; padding:6px; text-align:left; min-width:0; overflow-wrap:anywhere; }
.playlist-tracks canvas { width:42px; height:42px; background:#fff; flex:none; border-radius:6px; }
#publicPanel h3 { font-size:clamp(21px,4vw,32px); margin:12px 0 0; overflow-wrap:anywhere; }
.public-head { justify-content:space-between; }
.public-art { position:relative; background:#fff; border:1px solid #e7ddf2; border-radius:12px; overflow:hidden; width:min(100%,630px); margin:0 auto; }
.public-art canvas { width:100%; height:auto; display:block; }
.public-art #publicMotion { position:absolute; inset:0; }
.public-player { margin:12px 0; }
.public-player progress { flex:1; min-width:70px; accent-color:#7653ce; }
.public-player span { font-size:.84rem; color:#605570; }
.score-actions { margin-bottom:16px; }
#printableScore { background:#fff; color:#201b28; border:1px solid #e7ddf2; border-radius:12px; padding:15px; }
#printableScore h3 { margin:0; overflow-wrap:anywhere; }
#scorePages svg { display:block; width:100%; height:auto; }
.score-measure { font-family:inherit; font-size:11px; fill:#6c6275; }
.score-note.is-sounding { color:#7643cd; filter:drop-shadow(0 0 2px #b38ef3); }
@media print {
  @page { size:auto; margin:15mm; }
  body:has(#sheetMusic[open]) > :not(#sheetMusic) { display:none !important; }
  #sheetMusic[open] { position:static; margin:0; padding:0; width:100%; max-width:none; max-height:none; overflow:visible; border:0; box-shadow:none; background:#fff; }
  #sheetMusic::backdrop { display:none; }
  #sheetMusic[open] > :not(#printableScore) { display:none !important; }
  #printableScore { border:0; padding:0; }
  #scorePages svg { break-inside:avoid; }
  .score-note.is-sounding { color:inherit; filter:none; }
}

/* Direct studio actions */
.drawing-title { min-width: 0; display: flex; align-items: center; }
.drawing-name { display: grid; min-width: 0; }
.drawing-title .project-title { position: relative; justify-self: start; max-width: 100%; padding-right: 26px; }
.drawing-name #saveStatus { padding: 0 10px 2px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.drawing-name #saveStatus[data-state="error"] { color: #982942; font-weight: 600; }
.drawing-title .project-title::after {
  content: ''; width: 12px; height: 12px; position: absolute; right: 7px; top: 50%;
  transform: translateY(-50%); opacity: .65; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='m4 16 12-12 4 4-12 12-5 1zM14 6l4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.drawing-title [hidden] { display: none; }
.drawing-title input { width: min(220px, 27vw); min-height: 42px; padding: 6px 9px; }
.header-utilities { display: flex; align-items: center; gap: 2px; border-left: 1px solid var(--line); padding-left: 5px; }
.header-utilities button { display: grid; place-items: center; width: 44px; padding: 0; border-color: transparent; background: transparent; }
.header-utilities button:hover { background: var(--soft); }
.header-utilities svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workspace .rail-brushes button { min-width: 44px; gap: 4px; padding: 4px 6px; flex-direction: column; line-height: 1; }
.workspace .rail-brushes button[aria-pressed="false"] {
  border-color: transparent;
  background: transparent;
}
.workspace .rail-brushes button[aria-pressed="false"]:hover { background: var(--soft); }
@media (min-width: 1280px) {
  .workspace .toolbar { column-gap: 9px; }
  .workspace .toolbar > :not(:first-child) {
    border-inline-start: 1px solid #e2dbe9;
    padding-inline-start: 9px;
  }
}
.workspace .rail-brushes button svg { width: 27px; height: 13px; stroke-width: 3.5; }
.workspace .rail-brushes button[data-brush="ribbon"] svg { stroke-width: 7; opacity: .7; }
.workspace .rail-brushes button[data-brush="air"] svg { opacity: .65; }
.rail-brushes button span { font-size: 10px; }
.workspace .rail-edit button, .workspace .rail-edit #undo { min-width: 44px; padding: 5px 8px; }
.workspace .rail-edit #layersBtn { margin: 0; }
.workspace .play-controls #sheetBtn { padding: 6px; }
.workspace .play-controls #sheetBtn:disabled { opacity: .45; }
@media (min-width: 761px) and (max-width: 920px) {
  .app > header { gap: 8px; padding-inline: 8px; }
  .app > header .top-actions { gap: 2px; }
  .project-actions button { padding-inline: 6px; }
  .drawing-title { flex: 1; }
  .drawing-title .project-title { width: 100%; }
}
@media (max-width: 760px) {
  .drawing-title { flex: 1; }
  .drawing-title .project-title { max-width: 100%; }
  .project-actions { gap: 1px; }
  .project-actions button { gap: 4px; }
  .app > header .header-utilities button { padding: 0; min-width: 44px; margin: 0; }
}
@media (max-width: 390px) {
  .project-actions button { padding-inline: 5px; }
  .project-actions button svg { display: none; }
  .workspace .rail-edit { flex-wrap: wrap; justify-content: center; }
}

#headerPublish { color: #fff; background: var(--purple); }
#headerPublish:hover { background: #6540bb; }
#feedSearchForm { margin: 0 0 12px; }
#feedSearch { width: 100%; min-height: 44px; padding: 9px 12px; }
#feedStatus:empty { display: none; }
.creator-tag { min-height: 36px; max-width: 100%; padding: 4px 6px; border: 0; color: #58379c; background: transparent; font-weight: 650; text-align: left; overflow-wrap: anywhere; }
.creator-tag:hover { background: var(--soft); }
.handle-field { display: flex; align-items: center; gap: 6px; }
.handle-field input { flex: 1; min-width: 0; }
#usernameHelp { color: var(--muted); font-weight: 400; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .app > header .top-actions { align-items: flex-start; gap: 3px; }
  .project-actions { flex: 1; }
  #headerPublish { order: -1; }
}


/* The artboard is the entire drawing area. The player floats above it. */
.app { height: 100dvh; }
.workspace { position: relative; flex: 1; height: auto; min-height: 0; grid-template-rows: auto minmax(175px,1fr); }
.workspace .stage { grid-area: 2 / 1; container-type: normal; align-items: stretch; }
.workspace .artboard { width: 100%; height: 100%; aspect-ratio: auto; }
.workspace .transport { grid-area: 2 / 1; z-index: 6; }
.workspace .canvas-footer { grid-area: 2 / 1; z-index: 5; align-self: start; justify-self: start; max-width: 100%; pointer-events: none; }
.workspace .canvas-footer .edit-context { pointer-events: auto; }
#wrapMouse { white-space: nowrap; }
#wrapMouse[hidden] { display: none; }
@media (pointer: coarse) and (hover: none) {
  #wrapMouse { display: none; }
}

.public-actions { display:flex; flex-wrap:wrap; gap:8px; }
.public-remix { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin:0 0 12px; }
.public-remix .note { margin:0; }
#remixPlaylist, #remixSignIn { color:#58379c; font-weight:650; }
#remixSignIn[hidden], #remixDraftLink[hidden] { display:none; }
.remix-label { color:#6741a8; }
#remixDraftLink { flex:none; min-height:34px; padding:4px 8px; color:#58379c; background:var(--soft); font-size:11px; }
#collabPanel { margin-top:14px; }
#collabForm { display:flex; align-items:end; flex-wrap:wrap; gap:8px; margin:12px 0; }
#collabList { margin:0; padding:0; list-style:none; }
#collabList li { display:flex; align-items:center; justify-content:space-between; gap:8px; border-bottom:1px solid var(--line); }
.delete-playlist { color:#a33454; }
.remix-track { display:grid; gap:4px; align-content:start; }
.remix-track > button { font-size:.83rem; }

#canvasNavigation { position:absolute; top:10px; right:10px; z-index:4; display:flex; align-items:center; gap:3px; padding:3px; border:1px solid var(--line); border-radius:13px; background:#fffc; }
#canvasNavigation[hidden] { display:none; }
#canvasNavigation button { min-width:36px; min-height:36px; padding:4px 8px; font-size:12px; }
#canvasNavigation [aria-pressed="true"] { background:var(--soft); color:#58379c; }
#zoomValue { min-width:46px; text-align:center; color:var(--muted); font-size:12px; }
#endlessPage { white-space:nowrap; }

.rail-palette .custom-color-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  margin-inline-start: 3px;
  padding: 0;
}

.rgb-swatch {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: linear-gradient(140deg, #fff7 0%, transparent 60%),
    conic-gradient(from 30deg, #fa5b70, #ffd459, #4bd782, #3ebced, #8466ef, #ed5bb0, #fa5b70);
  box-shadow: inset 0 0 0 1px #2f24452b;
}

.color-dialog .comparison i {
  background:
    linear-gradient(var(--preview-color, transparent), var(--preview-color, transparent)),
    conic-gradient(#e9e3f0 25%, #fff 0 50%, #e9e3f0 0 75%, #fff 0) 0 0 / 12px 12px;
}

.opacity-control { margin-top: 16px; }
.opacity-control > div { display: flex; justify-content: space-between; gap: 12px; }
.opacity-control label { color: var(--ink); font-weight: 600; }
.opacity-control output { color: var(--purple); font-size: 13px; font-variant-numeric: tabular-nums; }
.opacity-control input { display: block; width: 100%; height: 28px; margin: 1px 0; accent-color: var(--purple); }
.opacity-control p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

@media (max-width: 540px) {
  .rail-palette .swatch { width: min(44px, calc((100% - 47px) / 8)); padding: 5px; }
}

.tempo-setting {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 12px;
  margin-top: 16px;
}
.tempo-setting label { font-weight: 600; }
.tempo-setting output { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tempo-setting input { grid-column: 1 / -1; width: 100%; min-height: 32px; margin: 0; }

.community-page { min-height: 100dvh; background: #f8f6fb; }
.community-header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 0;
}
.community-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -24px;
  pointer-events: none;
  background: linear-gradient(#fff 0, #fffe calc(100% - 24px), #fff8 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
}
.community-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--header-divider, #dfd7e9);
  pointer-events: none;
}
.community-header-inner {
  position: relative;
  width: 100%;
  max-width: 1600px;
  min-height: 62px;
  margin-inline: auto;
  padding: 6px clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.community-header .brand {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  gap: 6px;
  font-size: 32px;
  letter-spacing: -1.4px;
}
.community-header .brand svg { width: 30px; height: 30px; }
.community-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.theme-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}
.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .theme-sun,
[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
.community-header .community-tabs button,
.community-header #openStudio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.community-nav-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.community-header .community-tabs button {
  padding-inline: 12px;
  border-color: transparent;
  background: transparent;
  font-weight: 600;
  white-space: nowrap;
}
.community-header .community-tabs button[aria-pressed="true"] { background: var(--soft); color: #58379c; }
.community-content {
  width: min(100% - 32px, 880px);
  margin-inline: auto;
  padding-block: clamp(22px, 4vw, 40px) 64px;
}
#community:has(#feedPanel:not([hidden])) {
  --feed-width: min(calc(100% - 32px), clamp(1060px, 80vw, 1240px));
  --feed-text: #232129;
  --feed-active: #dedddb;
  --header-divider: #dedbd8;
  --muted: #625f65;
  --soft: #eeedeb;
  --line: #e3e0dd;
  background: #fff;
  color: var(--feed-text);
}
#community:has(#feedPanel:not([hidden])) .community-content {
  width: var(--feed-width);
}

.community-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.community-heading h1 { margin: 0; font-size: clamp(28px, 5vw, 38px); letter-spacing: -.04em; }
.community-heading h1:focus { outline: none; }
#communityPublish { color: #58379c; font-weight: 650; }
#feedSearchForm { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
#feedSearch { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
#feedCards { display: grid; gap: 20px; }
.feed-post {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 14px #342d4307;
}
.feed-post-author { display: flex; align-items: center; gap: 8px; padding: 6px 15px; }
.feed-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--soft);
  color: #58379c;
  font-weight: 700;
}
#feedLayout { flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; color: #58379c; }
#feedLayout svg { display: block; width: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; }
#feedLayout[aria-pressed="true"] { background: var(--soft); }
.feed-post-body { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); border-bottom: 1px solid #eeebf2; }
.single-track .feed-post-body { grid-template-columns: minmax(0, 1fr); }
.feed-preview { position: relative; min-width: 0; }
.feed-art, .gallery-cover { position: relative; display: block; background: #fff; }
.feed-art { max-width: 720px; margin-inline: auto; }
.single-track .feed-art { max-width: 800px; }
.feed-art:focus-visible, .gallery-cover:focus-visible { outline-offset: -4px; }
.feed-art canvas, .gallery-cover canvas { display: block; width: 100%; height: auto; }
.feed-art .feed-animation, .gallery-cover .feed-animation { position: absolute; pointer-events: none; }
.feed-art .feed-animation { inset: 0; }
.gallery-cover .feed-animation { left: 3.85%; top: 20%; width: 92.3%; }
.feed-tracks { list-style: none; padding: 10px; margin: 0; border-inline-start: 1px solid #eeebf2; }
.feed-track { width: 100%; min-height: 44px; display: flex; gap: 12px; align-items: center; text-align: left; border-color: transparent; background: transparent; overflow-wrap: anywhere; }
.feed-tracks li + li { border-top: 1px solid #eeebf2; }
.feed-track-title { flex: 1; min-width: 0; }
.feed-track-duration { flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.single-track .feed-tracks { border: 0; padding: 8px 15px 14px; }
.single-track .feed-track { background: var(--soft); }
.single-track .feed-track:hover, .single-track .feed-track[aria-pressed="true"] { background: #e9e0f8; }
.single-track .feed-track > .feed-play-icon { display: none; }
.feed-single-action { border-radius: 9px; padding: 6px 12px; background: #704dcc; color: #fff; font-weight: 650; }
.feed-single-action::before { content: "Play"; }
.feed-track[aria-pressed="true"] .feed-single-action::before { content: "Stop"; }
.feed-track-thumbnail {
  flex: 0 0 42px;
  width: 42px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.feed-track-thumbnail canvas { display: block; width: 100%; height: 100%; }
.feed-track:hover, .feed-track[aria-pressed="true"] { background: var(--soft); color: #58379c; }
.feed-play-icon { display: block; flex: 0 0 11px; width: 11px; height: 12px; background: currentColor; clip-path: polygon(0 0,100% 50%,0 100%); }
[aria-pressed="true"] > .feed-play-icon { clip-path: inset(1px 0 round 1px); }
.feed-post-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 4px 16px; }
.feed-post-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 14px; padding: 10px 16px 12px; border-top: 1px solid #eeebf2; min-width: 0; overflow-wrap: anywhere; }
.feed-post-label h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.feed-post-label p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.feed-open { margin-inline-start: auto; display: inline-flex; align-items: center; min-height: 44px; color: #58379c; font-weight: 650; text-underline-offset: 3px; }
.gallery-cover, .gallery-play { display: none; }
#feedCards.gallery-view { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: start; }
.gallery-view .feed-post { display: flex; flex-direction: column; }
.gallery-view .feed-post-author { order: 2; padding-block: 4px 10px; }
.gallery-view .feed-post-label { order: 1; display: block; border: 0; }
.gallery-view .feed-post-label h2 { font-size: 17px; }
.gallery-view .feed-post-footer { order: 3; }
.gallery-view .feed-post-footer:not(:has(.remix-label)) { display: none; }
.gallery-view .feed-avatar, .gallery-view .feed-art, .gallery-view .feed-tracks, .gallery-view .feed-open { display: none; }
.gallery-view .feed-post-body { display: block; border-top: 0; }
.gallery-view .gallery-cover { display: block; overflow: hidden; border-radius: 17px 17px 0 0; }
.gallery-view .gallery-play, #library .drawing-play { position: absolute; display: grid; place-items: center; right: 10px; bottom: 10px; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #704dcc; color: white; }
.gallery-play:hover, #library .drawing-play:hover { background: #6240b8; }
@media (max-width: 650px) {
  .feed-post-body { grid-template-columns: 1fr; }
  .feed-tracks { border-inline-start: 0; border-top: 1px solid #eeebf2; }
  #feedCards.gallery-view { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
}
.library-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 610px) {
  .community-header-inner { grid-template-columns: 1fr auto; gap: 4px 8px; padding: 6px 14px; }
  .community-header .community-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }
  .community-header .community-tabs button { padding: 6px 3px; font-size: 13px; gap: 5px; white-space: normal; }
  .community-nav-icon { width: 17px; height: 17px; }
  .community-actions { grid-column: 2; grid-row: 1; gap: 4px; }
  .community-content { width: calc(100% - 24px); }
}

.feed-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
#feedSearchForm { flex: 1; margin: 0; }
#feedSearchForm.profile-tools { flex: none; margin-inline-start: auto; }
#profileTabs { min-width: 0; }
a.creator-tag { display: inline-flex; align-items: center; border-radius: 8px; text-decoration: none; }
a.creator-tag:hover { text-decoration: underline; }
.feed-post-footer .remix-label { margin: 0; font-size: 13px; }

#community:has(#feedPanel:not([hidden])) :is(
  .community-header .community-tabs button[aria-pressed="true"], #communityPublish
),
#feedPanel :is(#feedLayout, .creator-tag, .feed-avatar, .feed-open, .remix-label) {
  color: var(--feed-text);
}
#feedPanel #profileTabs [aria-pressed="true"] {
  background: var(--soft);
  border-color: var(--line);
  color: var(--feed-text);
}
#feedPanel :is(.feed-post-label, .feed-post-body, .feed-tracks, .feed-tracks li + li) {
  border-color: var(--line);
}
#feedPanel .feed-track:is(:hover, [aria-pressed="true"]) {
  background: var(--feed-active);
  color: var(--feed-text);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17161b;
  --paper: #232229;
  --ink: #f3f1f5;
  --muted: #b9b4c2;
  --soft: #302e37;
  --line: #44414d;
  --theme-accent-text: #cfbcff;
  --canvas-bg: #1b1a20;
  --header-divider: var(--line);
}

[data-theme="dark"] :is(.community-page, #studio, .workspace) { background: var(--bg); }
[data-theme="dark"] #community:has(#feedPanel:not([hidden])) {
  --feed-text: var(--ink);
  --feed-active: #393644;
  --header-divider: #44414d;
  --muted: #b9b4c2;
  --soft: #302e37;
  --line: #44414d;
  background: var(--bg);
}
[data-theme="dark"] .community-header::before {
  background: linear-gradient(var(--paper) 0, #232229ef calc(100% - 24px), #23222980 100%);
}
[data-theme="dark"] :is(.feed-post, #library .project-card, dialog, .layers-panel, .reading-group) {
  background: var(--paper);
}
[data-theme="dark"] :is(.dialog-actions, .gesture-readout, #canvasNavigation) {
  background: var(--paper);
  color: var(--ink);
}
[data-theme="dark"] :is(.workspace .stage, .workspace .artboard, #calibrationCanvas) {
  background: var(--canvas-bg);
}
[data-theme="dark"] :is(
  .feed-art, .gallery-cover, .feed-track-thumbnail, #library .album-cover,
  .public-art, .playlist-tracks canvas
) {
  background: transparent;
}
[data-theme="dark"] .workspace .toolbar {
  background: var(--paper);
  border-color: var(--line);
}
[data-theme="dark"] .workspace .toolbar::after { background: #232229b3; }
[data-theme="dark"] .workspace .toolbar > :not(:first-child) { border-inline-start-color: var(--line); }

[data-theme="dark"] button:where(:not(.primary, .swatch, .brand, .theme-toggle, .close, .gallery-play, .drawing-play)) {
  background: var(--paper);
}
[data-theme="dark"] button:where(:not(.primary, .gallery-play, .drawing-play)):hover { background: var(--soft); }
[data-theme="dark"] :is(#feedSearch, input[type="text"], input[type="number"], input:not([type]), select) {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}
[data-theme="dark"] :is(.community-tabs button[aria-pressed="true"], .playlist-tracks .public-track[aria-pressed="true"],
  .rail-brushes button[aria-pressed="true"], .rail-edit button[aria-pressed="true"],
  button.selected, .project-actions #playlistBtn, #remixDraftLink, #canvasNavigation [aria-pressed="true"]) {
  background: var(--soft);
  border-color: var(--line);
  color: var(--theme-accent-text);
}
[data-theme="dark"] :is(a, .creator-tag, #communityPublish, .remix-label, #remixPlaylist, .app .brand:hover,
  .advanced-sound summary, .sound-summary, .example) { color: var(--theme-accent-text); }
[data-theme="dark"] :is(.eyebrow, .pitch-label, .public-player span, .group-handle) { color: var(--muted); }
[data-theme="dark"] :is(.reading-tip, .reading-reassurance, .layer.selected, #library .empty-cover) {
  background: var(--soft);
  color: var(--muted);
}
[data-theme="dark"] :is(#playlistForm, .playlist-tracks .track-choice, .playlist-tracks .public-track,
  .managed-playlist, #library .album-cover) { border-color: var(--line); }
[data-theme="dark"] .public-art { border-color: transparent; }
[data-theme="dark"] :is(.delete-playlist, .drawing-name #saveStatus[data-state="error"]) { color: #ffa1b4; }

/* The library is the entry point for separate songs. */
.new-music-dialog { width:min(480px,calc(100vw - 24px)); color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:22px; padding:24px; }
.new-music-dialog h2 { margin:6px 0 0; font-size:28px; }
.new-music-dialog form > label { display:block; margin:24px 0 8px; font-weight:600; }
.new-music-dialog input { width:100%; border:1px solid var(--line); border-radius:12px; padding:14px; color:var(--ink); background:var(--paper); }
.new-music-dialog .dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:24px; }
.new-music-dialog::backdrop { background:rgb(15 14 23 / 40%); backdrop-filter:blur(5px); }
.library-empty { padding:54px 24px; margin-top:28px; text-align:center; border:1px dashed var(--line); border-radius:22px; }
.library-empty h2 { font-size:27px; margin:0 0 10px; }
.library-empty p { color:var(--muted); line-height:1.6; max-width:400px; margin:auto; }
#library .open-music { margin:12px 14px 0; text-align:center; font-weight:600; border-color:var(--line); background:var(--soft); }
#library .current-project { border-color:var(--purple); }
#library .current-project .project-meta small { color:var(--purple); }
@media(max-width:540px) { #playlistBtn { font-size:12px; padding-inline:8px; } .new-music-dialog { padding:20px; } }

/* Email account dialog shares the light/dark palette with the studio. */
.account-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: var(--paper); }
.account-dialog::backdrop { background: rgb(15 14 23 / 45%); backdrop-filter: blur(5px); }
.account-dialog .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-dialog h2 { margin: 0; font-size: 25px; }
.account-dialog h3 { margin-top: 0; }
.account-dialog form { display: grid; gap: 12px; margin-block: 20px; }
.account-dialog input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.account-dialog p, .account-dialog a { line-height: 1.5; overflow-wrap: anywhere; }
.account-dialog a { color: var(--purple); display: block; margin-top: 16px; font-size: 13px; }
.account-dialog [hidden] { display: none !important; }
.account-callout { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--soft); }
#accountLogout { margin-top: 20px; }
#accountCode { font-size: 24px; letter-spacing: .2em; }
@media(max-width: 540px) { .community-actions #accountButton { font-size: 12px; padding-inline: 8px; } }

.account-code-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-dialog input { color: var(--ink); }
.account-dialog input:disabled { opacity: .7; }
.account-dialog [aria-busy="true"] { cursor: progress; }

/* A dedicated home for a musician's identity and preferences. */
#accountPage { --profile-accent:var(--purple,#7554ce); }
#accountPage [hidden] { display:none!important; }
.account-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:32px; align-items:start; padding-bottom:64px; }
.account-sidebar { position:sticky; top:112px; padding:24px 16px; border:1px solid var(--line); border-radius:22px; background:var(--paper); }
.account-identity { display:flex; align-items:flex-start; flex-direction:column; gap:9px; padding:0 12px 24px; overflow-wrap:anywhere; }
.account-identity strong { font-size:18px; }.account-identity .note { margin:0; }
.profile-avatar { --avatar-color:#7554ce; display:inline-flex; justify-content:center; align-items:center; width:56px; height:56px; flex-shrink:0; border-radius:19px; background:var(--avatar-color); color:#fff; font-size:22px; font-weight:750; letter-spacing:-.04em; }
.profile-avatar-large { width:80px; height:80px; border-radius:26px; font-size:30px; }
.account-sidebar nav { display:grid; gap:5px; border-block:1px solid var(--line); padding-block:16px; }
.account-sidebar nav button { text-align:left; border:0; background:transparent; padding:13px 16px; border-radius:12px; color:var(--muted); font-weight:650; }
.account-sidebar nav button[aria-current="page"] { background:var(--soft); color:var(--ink); }
.account-public-link { display:block; padding:18px 12px 0; font-size:14px; color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.account-sidebar-note { padding:32px 12px 0; }.account-sidebar-note .eyebrow { font-size:11px; letter-spacing:.12em; }.account-sidebar-note p { color:var(--muted); font-size:14px; line-height:1.6; }
.account-main { min-width:0; }.account-cover { min-height:180px; border:1px solid var(--line); border-radius:24px; position:relative; overflow:hidden; padding:40px 32px; background:var(--paper); }
.account-cover svg { position:absolute; width:65%; right:-12px; top:0; height:100%; opacity:.4; fill:none; stroke:#7554ce; stroke-width:6; stroke-linecap:round; }.account-cover svg path+path { stroke:#66aa9b; stroke-dasharray:4 16; }.account-cover svg circle { fill:#df8f7f; stroke:none; }
.account-cover .eyebrow,.account-cover h2 { position:relative; }.account-cover .eyebrow { letter-spacing:.12em; font-size:11px; }.account-cover h2 { font-size:clamp(25px,3vw,36px); letter-spacing:-.045em; max-width:380px; margin:14px 0 0; }
.account-stats { display:grid; grid-template-columns:repeat(3,1fr); margin-block:20px 28px; border:1px solid var(--line); border-radius:18px; background:var(--paper); }.account-stats a { color:var(--muted); font-size:13px; text-decoration:none; padding:22px; line-height:1.5; }.account-stats a+a { border-inline-start:1px solid var(--line); }.account-stats strong { display:block; font-size:27px; color:var(--ink); margin-bottom:4px; }/* Match the inner edge of the parent without clipping keyboard focus rings. */
.account-stats > a:first-child { border-start-start-radius:17px; border-end-start-radius:17px; }
.account-stats > a:last-child { border-start-end-radius:17px; border-end-end-radius:17px; }
.account-stats a:is(:hover,:focus-visible) { background:var(--soft); }
.profile-editor-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(210px,1fr); gap:20px; align-items:start; }
.settings-card { padding:28px; border:1px solid var(--line); border-radius:22px; background:var(--paper); color:var(--ink); margin:0 0 20px; }
.settings-card h3 { font-size:19px; margin:0; letter-spacing:-.025em; }.settings-card-head { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:22px; }.settings-card-head .note { font-size:12px; margin:0; }.settings-card p { line-height:1.65; }.settings-card label { display:block; font-size:14px; font-weight:650; margin:20px 0 9px; }
.settings-card :is(input,textarea,select) { width:100%; padding:12px 14px; font:inherit; font-size:15px; border:1px solid var(--line); border-radius:12px; background:var(--bg); color:var(--ink); min-height:48px; }.settings-card textarea { resize:vertical; min-height:112px; line-height:1.6; }.settings-card :is(input,textarea,select):focus-visible { outline:2px solid var(--purple,#7554ce); outline-offset:3px; }.settings-card input[readonly] { color:var(--muted); }.settings-card small { display:block; margin-top:8px; font-size:12px; line-height:1.6; }.profile-handle-input { display:flex; align-items:center; gap:10px; color:var(--muted); }.profile-handle-input input { flex:1; min-width:0; }.profile-color-field { border:0; margin:24px 0; padding:0; }.profile-color-field legend { font-size:14px; font-weight:650; margin-bottom:13px; }.profile-colors { display:flex; flex-wrap:wrap; gap:10px; }.profile-colors button { width:28px; height:28px; min-height:0; padding:0; border:0; border-radius:50%; background:var(--avatar-color)!important; }.profile-colors button[aria-pressed="true"] { outline:2px solid var(--ink); outline-offset:3px; }
.profile-save { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:14px; border-top:1px solid var(--line); }.profile-save p { margin:0; font-size:13px; }.profile-save button { flex-shrink:0; }.profile-preview { text-align:center; padding-top:30px; overflow-wrap:anywhere; }.profile-preview .eyebrow { font-size:10px; letter-spacing:.13em; display:block; margin-bottom:26px; }.profile-preview h3 { margin-top:18px; }.profile-preview #profilePreviewHandle { font-size:13px; margin:7px 0 20px; }.profile-preview #profilePreviewBio { white-space:pre-wrap; font-size:14px; min-height:48px; }.profile-preview-footer { border-top:1px solid var(--line); padding-top:20px; margin-top:24px; font-size:12px; color:var(--muted); }
.settings-tag { font-size:11px; background:var(--soft); border:1px solid var(--line); color:var(--muted); border-radius:100px; padding:5px 10px; }.settings-email { font-size:17px; font-weight:600; overflow-wrap:anywhere; }.settings-links { display:flex; gap:20px; flex-wrap:wrap; }.settings-links a { color:var(--ink); font-size:14px; text-underline-offset:4px; }#accountSettingsSection { padding-top:24px; }#accountSettingsSection select { max-width:320px; }
.creator-profile-header { display:flex; gap:24px; align-items:center; padding:24px 0 32px; border-bottom:1px solid var(--line); margin-bottom:24px; }.creator-profile-header h2 { font-size:28px; margin:0 0 8px; }.creator-profile-header p { white-space:pre-wrap; max-width:600px; margin:8px 0; line-height:1.6; overflow-wrap:anywhere; }
@media(min-width:1500px) { .account-layout { gap:40px; grid-template-columns:240px minmax(0,1fr); }.profile-editor-grid { grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr); } }
@media(max-width:1000px) { .account-layout { grid-template-columns:180px minmax(0,1fr); gap:20px; }.profile-editor-grid { grid-template-columns:1fr; }.profile-preview { display:none; }.account-stats a { padding:16px; }.settings-card { padding:24px; } }
@media(max-width:650px) { .account-layout { grid-template-columns:1fr; gap:20px; }.account-sidebar { position:static; padding:14px; }.account-identity { display:none; }.account-sidebar nav { grid-template-columns:1fr 1fr; padding:0; border:0; }.account-sidebar nav button { text-align:center; }.account-sidebar-note,.account-public-link { display:none!important; }.account-cover { padding:28px 22px; min-height:150px; }.account-cover h2 { max-width:240px; }.account-stats a { padding:14px 12px; font-size:11px; }.account-stats strong { font-size:24px; }.settings-card { padding:22px; }.profile-save { flex-wrap:wrap; }.creator-profile-header { gap:16px; align-items:flex-start; }.creator-profile-header h2 { font-size:24px; }.community-actions #accountButton { max-width:130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }
/* A growing collective: small, exact numbers woven into the feed. */
.community-pulse{position:relative;isolation:isolate;border:1px solid var(--line);border-radius:24px;background:var(--paper);padding:25px 28px 16px;margin:0 0 26px;display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px 35px;overflow:hidden}
.pulse-intro h2{font-size:26px;line-height:1.12;letter-spacing:-.8px;margin:8px 0}.pulse-intro p{font-size:12px;color:var(--muted);margin:10px 0 0}.pulse-thread{position:absolute;width:100%;height:110px;left:0;top:40px;z-index:-1;opacity:.11;pointer-events:none}.pulse-thread path{fill:none;stroke:var(--purple);stroke-width:5;stroke-linecap:round}
.pulse-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:20px}.pulse-numbers>div{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.pulse-numbers strong{font-size:clamp(30px,3.5vw,51px);line-height:1;font-weight:750;letter-spacing:-1.5px;font-variant-numeric:tabular-nums}.pulse-numbers>div>span:last-child{font-size:12px;color:var(--muted)}.pulse-dot{display:block;width:9px;height:9px;border-radius:50%;background:var(--purple)}.pulse-numbers>div:nth-child(2) .pulse-dot{background:#66aa9b}.pulse-numbers>div:nth-child(3) .pulse-dot{background:#df8f7f}.pulse-numbers>div:nth-child(4) .pulse-dot{background:#d9b967}
.pulse-definitions{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px;font-size:12px;line-height:1.6;color:var(--muted)}.pulse-definitions summary{cursor:pointer;width:fit-content}.pulse-definitions p{max-width:850px;margin:8px 0 0}
.category-filter{display:flex;gap:8px;overflow-x:auto;padding:0 0 16px;scrollbar-width:thin;max-width:100%}.category-chip{white-space:nowrap;min-height:38px;border-radius:99px;font-size:12px;padding:7px 15px;background:var(--paper)}.category-chip[aria-pressed=true]{color:var(--ink);border-color:var(--ink);background:var(--soft);font-weight:700}
.music-caption{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:0 0 10px;font-size:14px}.playlist-caption{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14px;color:var(--muted);margin:0;padding:0 16px 14px}.music-metadata{padding:0 12px 12px}.music-metadata .music-caption{font-size:12px;margin:0 0 8px;color:var(--muted)}.music-tags{display:flex;gap:5px;flex-wrap:wrap}.music-tag{min-height:30px;padding:4px 9px;border-radius:99px;background:var(--soft);font-size:11px;color:var(--ink)}.public-track-metadata{margin:16px 0}.public-track-metadata .music-metadata{padding:0}.public-track-metadata .music-caption{font-size:15px}.public-track-metadata .music-tag{font-size:12px;min-height:36px}.gallery-view .playlist-caption{order:2;font-size:12px}.gallery-view .music-metadata{display:none}
#playlistForm .playlist-tracks{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#playlistForm .publish-song{border:1px solid var(--line);border-radius:16px;padding:12px;min-width:0;background:var(--paper)}#playlistForm .track-choice{border:0;padding:0;background:transparent;flex-direction:row;min-height:58px;font-weight:650}#playlistForm .track-choice canvas{width:52px;height:52px;background:var(--paper)}.song-publishing-details{margin-top:10px;font-size:13px}.song-publishing-details summary{cursor:pointer;min-height:36px;padding-top:8px;color:var(--muted)}.song-publishing-details label{font-size:12px;margin-top:10px}#playlistForm textarea{width:100%;resize:vertical;min-height:80px;border:1px solid var(--line);border-radius:12px;padding:12px;font:inherit;font-size:13px;color:var(--ink);background:var(--bg)}textarea:focus-visible{outline:3px solid #8c6fd0;outline-offset:3px}#playlistForm .publish-categories{border:0;padding:0;margin:16px 0 0;display:flex;flex-wrap:wrap;gap:7px}#playlistForm .publish-categories legend{font-size:12px;font-weight:500;color:var(--muted);padding:0;margin:0 0 8px}#playlistForm .category-option{display:inline-flex;flex-direction:row;align-items:center;gap:6px;border:1px solid var(--line);border-radius:99px;padding:7px 10px;font-size:11px;cursor:pointer;margin:0;min-height:38px}#playlistForm .category-option input{width:15px;height:15px;margin:0}#playlistForm .category-option:has(input:checked){background:var(--soft);border-color:var(--purple)}.playlist-caption-label{margin:20px 0}.playlist-caption-label>span{margin:0}.publish-song>button{margin-top:10px;font-size:12px}
.account-insights-link{display:block;margin-bottom:12px;color:var(--ink)!important;text-decoration:none;font-weight:650}
.insights-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 25px}.insights-intro h2{font-size:40px;letter-spacing:-1.5px;margin:10px 0}.insights-intro p{color:var(--muted);font-size:14px}.insights-actions{display:flex;gap:8px;flex-wrap:wrap}.insights-actions button{font-size:12px}.insights-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.insight-metric{border:1px solid var(--line);border-radius:20px;background:var(--paper);padding:22px;display:flex;flex-direction:column;gap:12px}.insight-metric>span{font-size:12px;font-weight:650}.insight-metric>strong{font-size:38px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-1px}.insight-metric>small{font-size:11px;line-height:1.5;color:var(--muted)}.insights-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.insights-card{min-width:0;border:1px solid var(--line);border-radius:22px;padding:24px;background:var(--paper);margin:0 0 18px;font-size:13px;line-height:1.65}.insights-card h3{font-size:18px;margin:0 0 10px}.insights-card p{color:var(--muted)}.insight-category{display:grid;grid-template-columns:1fr auto;gap:5px;margin-top:16px;font-size:12px}.insight-category-bar{grid-column:1/-1;height:5px;border-radius:5px;background:var(--line);overflow:hidden}.insight-category-bar:after{content:'';display:block;width:var(--bar-size);height:100%;background:var(--purple);border-radius:5px}#insightsHistory{overflow:auto}#insightsHistory table{width:100%;margin-top:16px}#insightsHistory :is(th,td){min-width:0;font-size:11px;padding:9px 8px;white-space:nowrap}#insightsHistory th{font-weight:650}.insights-invite{display:flex;gap:10px;margin-top:10px}.insights-invite input{flex:1;min-width:0}#insightsMembers{list-style:none;padding:0}#insightsMembers li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}#insightsMembers button{font-size:12px}
#community:has(#insightsPanel:not([hidden])) .community-content{width:calc(100% - 48px);max-width:1280px}
@media(max-width:1000px){.community-pulse{grid-template-columns:200px 1fr;padding:22px;gap:18px}.pulse-numbers{gap:12px}.pulse-numbers>div>span:last-child{font-size:11px}.insights-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.insights-columns{grid-template-columns:1fr}}
@media(max-width:650px){.community-pulse{grid-template-columns:1fr;padding:20px}.pulse-intro h2 br{display:none}.pulse-intro h2{font-size:24px}.pulse-intro p{display:none}.pulse-numbers{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.pulse-numbers strong{font-size:30px}.pulse-numbers>div>span:last-child{font-size:10px;line-height:1.4}.pulse-thread{top:85px;height:70px}#playlistForm .playlist-tracks{grid-template-columns:1fr}.insights-intro{flex-direction:column;align-items:flex-start}.insights-intro h2{font-size:32px}.insights-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.insight-metric{padding:18px}.insight-metric>strong{font-size:32px}.insights-card{padding:20px}.insights-invite{flex-direction:column}#community:has(#insightsPanel:not([hidden])) .community-content{width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){.community-pulse *{transition:none!important}}

#playlistForm .playlist-tracks{align-items:start}.category-filter{scrollbar-width:none}.category-filter::-webkit-scrollbar{display:none}
/* Founders' tools and the founding collection. */
.owner-badge,.founders-pick-badge,.museum-work-badge{display:inline-flex;align-items:center;gap:5px;width:fit-content;border-radius:99px;padding:6px 10px;font-size:9px;font-weight:750;letter-spacing:1px;line-height:1.4}.owner-badge,.founders-pick-badge{background:var(--soft);color:var(--purple);border:1px solid color-mix(in srgb,var(--purple) 25%,transparent)}.museum-work-badge{background:color-mix(in srgb,#d9b967 13%,var(--paper));color:var(--muted);border:1px solid var(--line)}[data-theme=dark] :is(.owner-badge,.founders-pick-badge){color:var(--theme-accent-text)}#accountOwnerBadge{margin:4px 0 18px}#creatorOwnerBadge{margin:4px 0 8px}.account-owner-link{display:block;margin:0 0 12px;font-weight:750;color:var(--ink);text-decoration:none}.account-owner-link:hover{color:var(--purple)}#accountButton[data-app-owner=true]:after{content:'✦';margin-left:8px;color:var(--purple)}.feed-post-author .founders-pick-badge{margin-left:auto}.feed-post-author:has(.museum-work-badge){flex-wrap:wrap;gap:7px}.gallery-view .feed-post-author .founders-pick-badge{margin-left:0}.gallery-view .feed-post-author{flex-wrap:wrap}
.museum-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px 45px;padding:40px 45px 26px;border:1px solid var(--line);border-radius:24px;background:var(--paper);margin:0 0 30px;position:relative;overflow:hidden}.museum-hero h2{font-size:clamp(38px,5vw,66px);line-height:1.03;letter-spacing:-2.5px;margin:18px 0}.museum-hero>div>p{font-size:16px;line-height:1.7;color:var(--muted);margin:18px 0}.museum-seal{display:flex;gap:10px 18px;flex-wrap:wrap;font-size:9px;font-weight:700;letter-spacing:1px;color:var(--muted);margin:24px 0 8px}.museum-seal>span:before{content:'✧';margin-right:6px;color:var(--purple)}.museum-art{display:flex;align-items:center;justify-content:center}.museum-art svg{width:100%;max-width:360px;transform:rotate(-3deg)}.museum-art rect{fill:var(--bg);stroke:var(--line);stroke-width:1.5}.museum-art path{fill:none;stroke:var(--purple);stroke-width:9;stroke-linecap:round}.museum-art path:nth-of-type(2){stroke:#66aa9b;stroke-width:10}.museum-art circle{fill:#df8f7f}.museum-curator-note{grid-column:1/-1;border-top:1px solid var(--line);padding-top:20px;margin:0;font-size:12px;line-height:1.7;max-width:100%;color:var(--muted)}
.museum-invitation{display:flex;align-items:center;gap:18px;border:1px solid var(--line);border-radius:18px;padding:18px 22px;margin:0 0 22px;text-decoration:none;color:var(--ink);background:var(--paper)}.museum-invitation>span:nth-child(2){display:flex;flex-direction:column;gap:6px;flex:1}.museum-invitation strong{font-size:15px;letter-spacing:-.2px}.museum-invitation>span:nth-child(2)>span{font-size:12px;line-height:1.6;color:var(--muted)}.museum-invitation-mark{font-size:35px;color:var(--purple)}.museum-invitation:hover{border-color:var(--purple);background:var(--soft)}.museum-invitation>span:last-child{font-size:25px;color:var(--purple)}.public-museum-note{padding:16px 20px;border:1px solid var(--line);border-radius:14px;background:var(--soft);font-size:12px;line-height:1.7;color:var(--muted)}
.feed-new-chapter{padding:45px 24px;text-align:center;border:1px dashed var(--line);border-radius:22px;background:var(--paper);margin-top:12px}.feed-new-chapter>span{font-size:36px;color:var(--purple)}.feed-new-chapter h2{font-size:28px;letter-spacing:-.7px;margin:12px 0}.feed-new-chapter p{font-size:14px;color:var(--muted);line-height:1.7;max-width:420px;margin:0 auto 20px}.feed-new-chapter a{display:block;font-size:13px;color:var(--ink);margin-top:18px}
.owner-hero{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:24px;padding:38px 42px;background:var(--paper);margin-bottom:22px}.owner-hero h2{font-size:clamp(32px,4vw,52px);line-height:1.05;letter-spacing:-1.7px;margin:20px 0}.owner-hero p{font-size:14px;line-height:1.75;max-width:460px;color:var(--muted)}.owner-hero-mark{position:absolute;right:60px;top:35px;font-size:190px;line-height:1;color:var(--purple);opacity:.13;transform:rotate(12deg);pointer-events:none}.owner-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.owner-shortcuts>a{padding:26px;border:1px solid var(--line);border-radius:22px;background:var(--paper);text-decoration:none;color:var(--ink)}.owner-shortcuts>a:hover{border-color:var(--purple)}.owner-shortcuts>a>span{font-size:10px;letter-spacing:1px;color:var(--muted);font-weight:700}.owner-shortcuts h3{font-size:21px;letter-spacing:-.5px;margin:12px 0}.owner-shortcuts p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}.owner-section-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.owner-section-head h3{margin-top:10px}.owner-pick-row{display:flex;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--line)}.owner-pick-row>div{flex:1;min-width:0}.owner-pick-row a{color:var(--ink);font-size:14px;font-weight:650;overflow-wrap:anywhere}.owner-pick-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.owner-pick-row button{font-size:12px;flex:none}.owner-pick-row button[aria-pressed=true]{background:var(--soft);border-color:var(--purple)}#ownerAccessLink{color:var(--ink);font-weight:650}#insightsRole{margin:8px 0 14px}#insightsAccess label:not(:first-child){margin-top:12px}#community:has(#ownerPanel:not([hidden])) .community-content{width:calc(100% - 48px);max-width:1100px}
@media(max-width:850px){.museum-hero{padding:28px;grid-template-columns:1.3fr 1fr;gap:20px}.museum-hero h2{font-size:44px}.owner-hero-mark{right:20px;font-size:160px}}
@media(max-width:650px){.museum-hero{padding:25px;grid-template-columns:1fr;gap:10px}.museum-hero h2{font-size:42px;margin:15px 0}.museum-hero>div>p{font-size:14px}.museum-art{display:none}.museum-seal{font-size:8px;gap:12px}.museum-curator-note{font-size:11px}.museum-invitation{padding:16px;gap:12px}.museum-invitation strong{font-size:14px}.museum-invitation-mark{font-size:27px}.museum-invitation>span:nth-child(2)>span{font-size:11px}.owner-hero{padding:26px}.owner-hero-mark{font-size:120px;right:10px;top:40px;opacity:.08}.owner-shortcuts{grid-template-columns:1fr}.owner-shortcuts>a{padding:22px}.owner-pick-row{gap:8px}.owner-pick-row button{padding:8px 10px}.owner-section-head{align-items:flex-start;flex-direction:column;gap:0}.feed-post-author .founders-pick-badge{margin-left:0}#community:has(#ownerPanel:not([hidden])) .community-content{width:calc(100% - 24px)}}

.owner-link-arrow{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;vertical-align:middle;margin-left:4px}#openStudio{white-space:nowrap;flex-shrink:0}
@media(min-width:1051px){.community-header-inner{grid-template-columns:auto minmax(0,1fr) auto;gap:20px}.community-header .community-tabs{justify-content:center}}
@media(min-width:611px) and (max-width:1050px){.community-header-inner{grid-template-columns:1fr auto;gap:8px 16px}.community-header .community-tabs{grid-column:1/-1;grid-row:2;justify-content:center}.community-actions{grid-column:2;grid-row:1}.community-header-inner{padding-block:8px}.community-header{min-height:112px}}
/* Public community rail: no account totals or explanatory footnotes. */
.community-pulse{position:fixed;top:150px;right:max(24px,calc((100vw - 1500px)/2));width:190px;display:block;grid-template-columns:none;gap:0;margin:0;padding:26px 22px 20px;border-radius:28px 28px 64px 28px;background:var(--paper);border:1px solid var(--line);z-index:2;text-align:center;overflow:hidden}
.pulse-kicker{display:block;font-size:9px;letter-spacing:1.8px;font-weight:750;color:var(--muted);margin-bottom:25px;line-height:1.6}.pulse-numbers{display:grid;grid-template-columns:1fr;gap:26px;align-items:center}.pulse-numbers>div{align-items:center;gap:6px;position:relative}.pulse-numbers strong{font-size:46px;letter-spacing:-1.6px;line-height:1;font-weight:750}.pulse-numbers>div>span:last-child{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:.2px}.pulse-thread{position:absolute;inset:0;width:100%;height:100%;opacity:.14;z-index:-1;pointer-events:none}.pulse-thread path{fill:none;stroke:var(--purple);stroke-width:3;stroke-linecap:round}.pulse-thread path:nth-of-type(2){stroke:#66aa9b;stroke-width:4}.pulse-thread circle{fill:#df8f7f}.pulse-thread circle:nth-of-type(2){fill:#d9b967}.pulse-thread circle:nth-of-type(3){fill:#66aa9b}.pulse-shape{display:block;position:relative;height:27px;margin-bottom:3px}.pulse-shape-wave{width:53px;transform:rotate(-8deg)}.pulse-shape-wave svg{height:100%;width:100%;fill:none;stroke:var(--purple);stroke-width:5;stroke-linecap:round}.pulse-shape-tiles{width:47px;height:30px;transform:rotate(9deg)}.pulse-shape-tiles i{position:absolute;width:22px;height:22px;border-radius:7px;background:#66aa9b;opacity:.85;left:0;top:0}.pulse-shape-tiles i:nth-child(2){left:15px;top:7px;background:#d9b967;transform:rotate(18deg);opacity:.75}.pulse-shape-tiles i:nth-child(3){left:28px;top:0;background:#df8f7f;opacity:.8}.pulse-shape-star{font-size:36px;line-height:28px;color:#df8f7f;transform:rotate(-12deg)}.pulse-end-mark{display:block;line-height:1;height:20px;font-size:40px;color:var(--purple);opacity:.3;margin-top:14px;transform:rotate(-12deg)}
@media(min-width:1180px){#community:has(#communityPulse:not([hidden])) .community-content{width:min(calc(100% - 296px),1240px);margin-left:max(24px,calc((100vw - 1500px)/2));margin-right:auto}}
@media(max-width:1179px){.community-pulse{position:relative;inset:auto;width:auto;display:grid;grid-template-columns:130px minmax(0,1fr);gap:20px;padding:20px 24px;margin:0 0 24px;border-radius:24px;text-align:left}.pulse-kicker{margin:0;align-self:center;max-width:90px;font-size:10px}.pulse-numbers{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.pulse-numbers strong{font-size:36px}.pulse-shape{height:23px}.pulse-end-mark{display:none}.pulse-thread{top:0;left:0;width:100%;height:100%;opacity:.08}}
@media(max-width:650px){.community-pulse{grid-template-columns:1fr;gap:18px;padding:19px 20px;margin-bottom:20px}.pulse-kicker{max-width:none;font-size:9px;letter-spacing:1.5px}.pulse-numbers{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.pulse-numbers strong{font-size:33px}.pulse-numbers>div>span:last-child{font-size:11px}.pulse-shape{margin-bottom:0}.pulse-shape-wave{width:43px}.pulse-shape-tiles{transform:rotate(9deg) scale(.8)}.pulse-shape-star{font-size:29px}}
/* A useful, viewport-docked discovery panel. Museum originals share the feed. */
.community-pulse.discovery-rail{top:104px;bottom:24px;right:24px;width:280px;padding:0;border-radius:24px;text-align:left;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;display:flex;flex-direction:column;gap:0;isolation:isolate}
.discovery-collective{position:relative;flex:none;padding:24px 20px 22px;overflow:hidden;border-bottom:1px solid var(--line)}
.discovery-rail .pulse-kicker{font-size:12px;letter-spacing:1.5px;margin:0 0 48px;max-width:none}
.discovery-wave{position:absolute;top:45px;left:0;width:100%;height:48px;pointer-events:none;opacity:.8}.discovery-wave path{fill:none;stroke:var(--purple);stroke-width:4;stroke-linecap:round}.discovery-wave path+path{stroke:#66aa9b;stroke-width:2;opacity:.6}
.discovery-rail .pulse-numbers{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.discovery-rail .pulse-numbers>div{gap:8px;align-items:flex-start}.discovery-rail .pulse-numbers strong{font-size:30px;letter-spacing:-1px;overflow-wrap:anywhere}.discovery-rail .pulse-numbers>div>span:last-child{font-size:12px;font-weight:500;letter-spacing:0}
.discovery-section{padding:22px 16px;border-bottom:1px solid var(--line)}.discovery-section h2{font-size:16px;letter-spacing:-.2px;margin:0 4px 14px}.discovery-rail nav{display:grid;gap:5px}.discovery-rail nav button{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;width:100%;text-align:left;border:1px solid transparent;border-radius:12px;background:transparent;padding:10px 12px;font-size:14px;color:var(--ink)}.discovery-rail nav button>span:last-child{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}.discovery-rail nav button[aria-pressed=true]{background:var(--soft);border-color:var(--line);font-weight:700}.discovery-rail nav button:hover{background:var(--soft)}.discovery-rail nav button[data-collection=museum]{border-left:3px solid #d9b967}.discovery-rail nav button[data-collection=picks]{border-left:3px solid var(--purple)}
.discovery-rail .category-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0;overflow:visible}.discovery-rail .category-chip{min-height:40px;font-size:14px;padding:7px 8px;white-space:normal;border-radius:12px;overflow-wrap:anywhere;background:transparent}.discovery-rail .category-chip:first-child{grid-column:1/-1}.discovery-rail .category-chip[aria-pressed=true]{background:var(--soft)}.discovery-reset{flex:none;font-size:14px;margin:18px 20px 20px;min-height:44px}.discovery-reset:disabled{opacity:.45}
@media(min-width:1180px){#community:has(#communityPulse:not([hidden])) .community-content{width:calc(100% - 376px);max-width:1480px;margin-left:max(24px,calc((100vw - 1880px)/2));margin-right:auto}}
@media(max-width:1179px){.community-pulse.discovery-rail{position:relative;inset:auto;width:auto;max-height:none;display:grid;grid-template-columns:minmax(200px,.8fr) minmax(230px,1fr);margin:0 0 24px;overflow:hidden}.discovery-collective{border-right:1px solid var(--line)}.discovery-section{padding:20px}.discovery-sounds{grid-column:1/-1}.discovery-rail .category-filter{display:flex;flex-wrap:wrap;gap:8px}.discovery-rail .category-chip{min-height:40px;padding:8px 14px}.discovery-reset{grid-column:1/-1;justify-self:start;margin:14px 20px}.discovery-rail .pulse-numbers{gap:12px}.discovery-rail .pulse-kicker{margin-bottom:68px}.discovery-wave{top:65px}}
@media(max-width:650px){.community-pulse.discovery-rail{grid-template-columns:1fr}.discovery-collective{border-right:0;padding:20px}.discovery-rail .pulse-kicker{margin-bottom:40px}.discovery-wave{top:36px;height:40px}.discovery-rail .pulse-numbers>div{align-items:center}.discovery-section{padding:18px 16px}.discovery-rail nav{grid-template-columns:1fr 1fr}.discovery-rail nav button{padding:10px 8px;font-size:14px;gap:6px}.discovery-rail .pulse-numbers strong{font-size:30px}.discovery-rail .category-filter{flex-wrap:nowrap;overflow:auto}.discovery-rail .category-chip{white-space:nowrap;flex:none}}
/* Avatar choices stay visible and provide full-size pointer and keyboard targets. */
.profile-avatar-choice{display:flex;align-items:center;gap:16px}.profile-colors{flex:1;gap:6px}.profile-colors button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;background:transparent!important;border-radius:12px;outline:none}.profile-colors button:before{content:'';width:28px;height:28px;border-radius:50%;background:var(--avatar-color);border:1px solid color-mix(in srgb,var(--ink) 20%,transparent)}.profile-colors button[aria-pressed=true]{outline:none}.profile-colors button[aria-pressed=true]:before{box-shadow:0 0 0 3px var(--paper),0 0 0 5px var(--ink)}.profile-colors button:focus-visible{outline:3px solid var(--purple);outline-offset:1px}.profile-colors button:hover:before{transform:scale(1.1)}.profile-colors button:before{transition:transform .15s}.profile-preview #profilePreviewBio:empty{display:none}
.account-stats{margin-top:0}.account-sidebar:has(.account-identity){padding-bottom:24px}.insights-intro{justify-content:flex-end}.owner-section-head{margin-bottom:16px}.owner-section-head h3{margin:0}
/* Feed actions belong beside search, without a second Feed heading. */
.is-main-feed .community-heading{height:0;margin:0;display:block}.is-main-feed #communityTitle{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.is-main-feed #communityPublish{flex:none;white-space:nowrap}.is-main-feed .feed-controls{margin-top:0}
/* The original drawn thread and moving shapes remain part of discovery. */
.rail-drawing{position:absolute;inset:0;width:100%;height:100%;min-height:760px;pointer-events:none;z-index:-1;opacity:.16}.rail-drawing path{fill:none;stroke:var(--purple);stroke-width:3;stroke-linecap:round;stroke-dasharray:700 100;animation:rail-line 22s linear infinite}.rail-drawing path+path{stroke:#66aa9b;stroke-width:4;animation-direction:reverse}.rail-drawing circle{fill:#df8f7f;transform-box:fill-box;transform-origin:center;animation:rail-float 7s ease-in-out infinite alternate}.rail-drawing circle:nth-of-type(2){fill:#d9b967;animation-delay:-3s}.rail-drawing circle:nth-of-type(3){fill:#66aa9b;animation-delay:-5s}.discovery-section,.discovery-collective{position:relative}.discovery-rail .pulse-shape{height:26px;margin:0 0 5px;animation:rail-float 5s ease-in-out infinite alternate}.discovery-rail .pulse-shape-wave{width:45px}.discovery-rail .pulse-shape-tiles{width:45px;animation-delay:-2s}.discovery-rail .pulse-shape-star{font-size:32px;animation-delay:-4s}.discovery-rail .pulse-numbers>div{align-items:center}.discovery-wave{opacity:.45;animation:rail-sway 9s ease-in-out infinite alternate}.discovery-rail .pulse-kicker{margin-bottom:44px}.discovery-collective{padding-bottom:22px}
@keyframes rail-float{from{transform:translateY(-3px) rotate(-8deg)}to{transform:translateY(3px) rotate(8deg)}}@keyframes rail-line{to{stroke-dashoffset:-800}}@keyframes rail-sway{from{transform:translateX(-6px)}to{transform:translateX(6px)}}
@media(max-width:650px){.is-main-feed #feedSearchForm{flex-wrap:wrap}.is-main-feed #feedSearch{flex:1 1 calc(100% - 56px);width:calc(100% - 56px)}.is-main-feed #communityPublish{margin-left:auto}.profile-avatar-choice{align-items:flex-start}.profile-avatar-choice>.profile-avatar{margin-top:4px}}
@media(prefers-reduced-motion:reduce){.rail-drawing *,.discovery-wave,.discovery-rail .pulse-shape{animation:none!important}.profile-colors button:before{transition:none}}
/* Immersive welcome is locally dark; the user's saved theme is unchanged. */
#community.is-welcome{--ink:#faf8ff;--bg:#171719;--paper:#171719;--muted:#c5c1cd;--line:#ffffff24;background:#171719;color:#faf8ff;min-height:100dvh;isolation:isolate}
#community.is-welcome .community-header{background:transparent;border:0;box-shadow:none;backdrop-filter:none;position:relative;z-index:3}
#community.is-welcome .community-header::before,#community.is-welcome .community-header::after{display:none}
#community.is-welcome .community-header-inner{display:flex;justify-content:space-between;max-width:none;width:100%;padding:24px clamp(24px,5vw,80px);min-height:96px}
#community.is-welcome .brand{color:#faf8ff}#community.is-welcome .brand svg{color:#8054dc}
#community.is-welcome .community-tabs,#community.is-welcome #openStudio,#community.is-welcome .theme-toggle{display:none}
#community.is-welcome .community-actions{margin-left:auto}
#community.is-welcome #accountButton{color:#faf8ff;background:transparent;border-color:#ffffff35;border-radius:99px;min-height:44px;padding:10px 22px}
#community.is-welcome #accountButton:hover{background:#ffffff12}
#community.is-welcome .community-content{max-width:none;width:100%;padding:0;margin:0}
.is-welcome .community-heading{height:0;margin:0;display:block}.is-welcome #communityTitle{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#community.is-welcome #communityStatus{margin:0}
.welcome-page{position:relative;display:grid;place-items:center;min-height:calc(100dvh - 96px);padding:80px 24px 150px;overflow:hidden}
.welcome-drawing{position:absolute;inset:-96px 0 0;width:100%;height:calc(100% + 96px);pointer-events:none;z-index:-1}
.welcome-copy{text-align:center;position:relative;z-index:1}
.welcome-copy h2{font-size:clamp(60px,7.4vw,112px);line-height:.98;letter-spacing:-.055em;font-weight:750;margin:0 0 36px;color:#faf8ff}
#community.is-welcome #welcomeCreate{display:block;margin:auto;min-height:54px;padding:15px 32px;border:1px solid #9163e7;border-radius:99px;background:#7950cc;color:white;font-size:16px;box-shadow:0 4px 28px #7950cc25}
#community.is-welcome #welcomeCreate:hover{background:#8960dc;transform:translateY(-2px)}
#community.is-welcome .welcome-explore{display:block;margin:14px auto 0;padding:10px 24px;min-height:44px;border:0;background:transparent;color:#d6d1df;font-size:16px;text-decoration:none}
#community.is-welcome .welcome-explore:hover{color:white;text-decoration:underline;text-underline-offset:5px}
.welcome-sound{position:absolute;right:clamp(24px,5vw,80px);bottom:32px;display:flex;align-items:center;gap:16px;max-width:calc(100% - 48px)}
#welcomeAudioStatus{font-size:14px;line-height:1.5;max-width:320px;margin:0;color:#cbc5d5}
#community.is-welcome #welcomeListen{display:flex;align-items:center;gap:10px;flex:none;min-height:48px;padding:8px 14px;border:1px solid #ffffff35;border-radius:99px;background:#171719bb;color:#eeeaf5;font-size:14px}
#welcomeListen svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#welcomeListen[aria-pressed=false] .sound-waves,#welcomeListen[aria-pressed=true] .sound-slash{display:none}
#community.is-welcome #welcomeListen:hover{background:#302b39}
#community.is-welcome button:focus-visible{outline:3px solid #c2a4ff;outline-offset:5px}
.welcome-ribbon{animation:welcome-drift 12s ease-in-out infinite alternate;transform-origin:center}.welcome-teal{animation:welcome-drift 16s ease-in-out infinite alternate-reverse;transform-origin:center}
@keyframes welcome-drift{from{transform:translateY(-9px) rotate(-1deg)}to{transform:translateY(10px) rotate(1deg)}}
@media(max-width:650px){#community.is-welcome .community-header-inner{padding:20px 24px;min-height:84px}.welcome-page{min-height:calc(100dvh - 84px);padding:100px 24px 150px}.welcome-copy h2{font-size:clamp(52px,12vw,76px);margin-bottom:30px}.welcome-drawing{width:140%;left:-20%;opacity:.72}.welcome-sound{right:24px;bottom:24px;align-items:flex-end;flex-direction:column;gap:10px}#welcomeAudioStatus{max-width:250px;text-align:right}}
@media(prefers-reduced-motion:reduce){.welcome-drawing *{animation:none!important}#community.is-welcome #welcomeCreate{transition:none;transform:none}}

/* Exploration starts with music, with optional filters and a single creation action. */
.community-header .community-tabs{gap:10px}.community-header-inner{grid-template-columns:auto 1fr auto}
.explore-filters{border-top:1px solid var(--line);position:relative}.explore-filters>summary{cursor:pointer;font-size:16px;font-weight:650;min-height:52px;padding:18px 24px;list-style-position:inside}.explore-filters>summary:focus-visible{outline:3px solid var(--purple);outline-offset:-5px;border-radius:14px}.explore-filters .discovery-section:first-of-type{border-top:0}
.is-main-feed #feedCards.gallery-view{gap:24px;grid-template-columns:repeat(3,minmax(0,1fr))}.is-main-feed .gallery-view .feed-post{border-radius:22px}.is-main-feed .gallery-view .feed-post-author{font-size:13px}.is-main-feed .gallery-view .track-caption,.is-main-feed .gallery-view .music-tags{display:none}.is-main-feed .gallery-view .feed-post-label{padding:16px 18px 6px}.is-main-feed .gallery-view .feed-post-author{padding:6px 18px 16px}.is-main-feed .gallery-view .gallery-cover{border-radius:21px 21px 0 0}.is-main-feed .gallery-view .gallery-play{width:48px;height:48px;right:16px;bottom:16px}.is-main-feed #feedSearch{font-size:16px}
@media(max-width:1100px){.is-main-feed #feedCards.gallery-view{grid-template-columns:repeat(2,minmax(0,1fr))}.community-header-inner{gap:12px}.community-header .community-tabs{gap:4px}.community-header .community-tabs button{padding:10px}}
@media(max-width:610px){.community-header .community-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.community-header .community-actions #openStudio{padding:10px 14px}.community-header .community-actions #openStudio svg{display:none}.is-main-feed #feedCards.gallery-view{gap:12px}.is-main-feed .gallery-view .feed-post-label{padding:12px 12px 4px}.is-main-feed .gallery-view .feed-post-author{padding:4px 12px 12px}.is-main-feed .gallery-view .gallery-play{width:44px;height:44px;right:8px;bottom:8px}}
@media(max-width:420px){.is-main-feed #feedCards.gallery-view{grid-template-columns:1fr}}
.community-pulse.discovery-rail{bottom:auto;max-height:calc(100dvh - 128px)}.discovery-rail .rail-drawing{min-height:0}.explore-filters:not([open]){border-top:0}.discovery-rail .explore-filters{flex:none}
@media(max-width:1179px){.community-pulse.discovery-rail{max-height:none;align-items:start}.explore-filters{grid-column:2;border-top:0}.discovery-rail .explore-filters .category-filter{display:flex;flex-wrap:wrap}}
@media(max-width:650px){.explore-filters{grid-column:auto;border-top:1px solid var(--line)}.discovery-collective{border-right:0}}
/* Account stays in the far corner; secondary pages have an explicit return action. */
.community-header-inner{max-width:none;width:100%;padding-inline:24px}.community-actions{display:flex;align-items:center}.community-actions #accountButton{order:10;margin-left:10px;width:46px;height:46px;min-width:46px;padding:10px;display:grid;place-items:center;border-radius:50%;position:relative}.community-actions #accountButton svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.community-actions #accountButton[data-app-owner=true]:after{position:absolute;right:-2px;bottom:-4px;font-size:16px;margin:0}.community-header-inner:has(.page-back:not([hidden])){grid-template-columns:auto auto 1fr auto}.page-back{border:1px solid var(--line);background:var(--paper);color:var(--ink);height:44px;min-width:44px;padding:0 10px;border-radius:50%;font-size:32px;line-height:1;flex:none}.page-back:hover{background:var(--soft)}
.badge-grid{display:flex;flex-wrap:wrap;gap:12px}.music-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;padding:16px 10px;min-width:94px;flex:1 0 90px;border:1px dashed var(--line);border-radius:18px;opacity:.6}.music-badge.is-earned{opacity:1;border-style:solid;background:color-mix(in srgb,var(--purple) 7%,var(--paper))}.music-badge strong{font-size:13px;line-height:1.3}.music-badge>span:last-child:not(.badge-mark){font-size:12px;color:var(--muted)}.badge-mark{font-size:32px;line-height:1;color:var(--purple)}.badge-clock{color:#d9b967}.badge-tiles{color:#66aa9b}.badge-spark{color:#df8f7f}.badge-section h3{margin-top:0}.badge-section small{display:block;margin-top:15px}.community-badge-section{padding:20px 16px;position:relative;border-bottom:1px solid var(--line)}.community-badge-section h2{font-size:16px;margin:0 0 15px}.community-badge-section .badge-grid{gap:8px}.community-badge-section .music-badge{flex-basis:calc(50% - 8px);min-width:0;padding:12px 5px}.community-badge-section .music-badge strong{font-size:12px}#creatorBadges{margin-top:14px;max-width:650px}#creatorBadges .music-badge{flex:0 0 100px}
@media(max-width:1179px){.community-badge-section{grid-column:2;grid-row:1}.explore-filters{grid-column:1/-1}.community-badge-section .music-badge{flex-basis:90px}}
@media(max-width:650px){.community-header-inner{padding-inline:12px}.community-header-inner:has(.page-back:not([hidden])){display:flex;flex-wrap:wrap}.community-header-inner:has(.page-back:not([hidden])) .community-tabs{order:5;width:100%}.community-badge-section{grid-column:auto;grid-row:auto}.community-actions #accountButton{margin-left:0;width:44px;height:44px}.badge-grid{gap:8px}.music-badge{min-width:80px;flex-basis:80px}.page-back{height:40px;min-width:40px}}
#community .community-header-inner{width:100%;max-width:none;padding:8px 24px;box-sizing:border-box}
@media(max-width:650px){#community .community-header-inner{padding:8px 12px}}
#community.is-welcome #accountButton{width:46px;height:46px;padding:10px;border-radius:50%}
/* The home page hosts the same editor instance used by standalone Studio. */
#community.is-main-feed:has(#feedPanel:not([hidden])) .community-content{width:calc(100% - 64px);max-width:1500px;margin:0 auto;padding-top:34px}
.is-main-feed #openStudio{display:none}.home-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.home-intro h2{font-size:clamp(36px,4.3vw,66px);letter-spacing:-.055em;line-height:1.05;margin:0}.home-intro #homeJoin{flex:none;background:transparent;border-color:var(--line);font-size:15px}
.home-canvas-shell{border:1px solid var(--line);border-radius:24px;overflow:hidden;background:var(--paper);position:relative}.home-canvas-heading{display:flex;align-items:center;gap:16px;padding:14px 18px;border-bottom:1px solid var(--line);min-height:74px}.home-resume-label{font-size:13px;font-weight:650;color:var(--muted)}#homeTitleMount{flex:1;min-width:0}#homeTitleMount .drawing-title{display:block;max-width:none;padding:0;margin:0}#homeTitleMount .project-title{font-size:16px;padding:0;min-height:30px;text-align:left;max-width:280px}#homeTitleMount #saveStatus{font-size:12px;margin:0}#homeTitleMount #nameInput{max-width:280px}.home-canvas-actions{display:flex;gap:8px;flex-wrap:wrap}.home-canvas-actions button{font-size:14px}.home-editor.app{height:clamp(490px,64vh,680px);min-height:0;padding:0;margin:0;background:var(--paper)}.home-editor>header{display:none}.home-editor .workspace{border:0;background:var(--paper);grid-template-rows:auto minmax(260px,1fr) auto;overflow:hidden}.home-editor .workspace .stage{grid-area:2/1;background:var(--paper)}.home-editor .workspace .artboard{height:100%;width:100%;background:var(--paper)}.home-editor .workspace .toolbar{position:relative;gap:6px;padding:10px 14px;border-radius:0;border:0;border-bottom:1px solid var(--line);background:var(--paper);box-shadow:none}.home-editor .workspace .toolbar:before,.home-editor .workspace .toolbar:after{display:none}.home-editor .workspace .transport{grid-area:3/1;justify-self:stretch;align-self:stretch;max-width:none;margin:0;padding:10px 16px;border-radius:0;box-shadow:none;background:var(--paper);color:var(--ink);border-top:1px solid var(--line)}.home-editor .workspace .transport:before,.home-editor .workspace .transport:after{display:none}.home-editor .transport-main{margin:0;justify-content:space-between}.home-editor .workspace .canvas-footer{display:none}.home-editor .workspace .toolbar .brush-button{min-width:48px;padding:6px;font-size:12px}.home-editor .brush-button svg{width:32px}.home-editor .swatch{width:36px;min-width:36px;min-height:44px;padding:7px}.home-editor .size-control{min-width:110px}.home-editor .size-control input{width:64px}.home-editor .invitation h1{font-size:28px;letter-spacing:-1px}.home-editor .invitation p{font-size:15px}.home-editor #demo{margin-top:0}.home-editor .live-feedback{display:none}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;margin:32px 0 16px}.home-section-heading h3{font-size:24px;letter-spacing:-.6px;margin:0}.home-section-heading button{background:transparent;font-size:14px}.home-recent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.home-recent-card{min-width:0}.home-recent-open{display:block;width:100%;padding:0;border-radius:18px;overflow:hidden;text-align:left;background:var(--paper)}.home-recent-open canvas{display:block;width:100%;height:130px;object-fit:contain;background:var(--paper)}.home-recent-open strong{font-size:15px;display:block;border-top:1px solid var(--line);padding:12px 16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-discovery-title{font-size:30px;letter-spacing:-1px;margin:46px 0 20px}
.home-discovery-layout{display:contents}.is-main-feed .home-discovery-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;align-items:start}.home-discovery-main{min-width:0}.home-discovery-rail:empty{display:none}.is-main-feed .home-discovery-rail{position:sticky;top:100px}.is-main-feed .community-pulse.discovery-rail{position:relative;inset:auto;width:100%;max-height:calc(100dvh - 120px)}.is-main-feed #feedCards.gallery-view{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.is-main-feed .feed-controls{margin:0 0 20px}.home-canvas-expanded{overflow:hidden}.home-canvas-expanded #homeCanvasShell{position:fixed;inset:0;z-index:40;border-radius:0;display:flex;flex-direction:column;border:0}.home-canvas-expanded #homeCanvasMount{flex:1;min-height:0}.home-canvas-expanded .home-editor.app{height:100%;min-height:0}.home-canvas-expanded .home-canvas-heading{flex:none}.home-canvas-expanded #homeExpand{background:var(--purple);color:white;border-color:var(--purple)}
@media(max-width:1100px){.is-main-feed .home-discovery-layout{grid-template-columns:minmax(0,1fr) 240px;gap:20px}.is-main-feed #feedCards.gallery-view{grid-template-columns:repeat(2,minmax(0,1fr))}.home-recent-grid{gap:12px}.home-canvas-heading{flex-wrap:wrap}.home-canvas-actions{margin-left:auto}.home-editor.app{height:600px}}
@media(max-width:760px){#community.is-main-feed:has(#feedPanel:not([hidden])) .community-content{width:calc(100% - 28px);padding-top:26px}.home-intro{align-items:flex-start;gap:12px}.home-intro h2{font-size:38px;max-width:360px}.home-intro #homeJoin{font-size:13px;padding:10px}.home-canvas-heading{padding:12px;gap:8px}.home-resume-label{display:none}.home-canvas-actions{gap:6px;width:100%;margin:4px 0 0}.home-canvas-actions button{padding:8px 12px;font-size:13px}.home-editor.app{height:570px}.home-editor .workspace .toolbar{padding:8px;gap:4px}.home-editor .rail-edit{margin-left:auto}.home-editor .size-control{min-width:100px}.home-editor .workspace .transport{padding:8px}.home-editor .play-controls{gap:5px;flex-wrap:wrap}.home-editor .transport-main{flex-wrap:wrap;gap:8px}.home-editor .volume input{width:64px}.home-recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-section-heading h3{font-size:22px}.home-recent-open canvas{height:110px}.is-main-feed .home-discovery-layout{grid-template-columns:1fr}.is-main-feed .home-discovery-rail{position:static;grid-row:2}.is-main-feed .community-pulse.discovery-rail{max-height:none}.home-discovery-title{margin-top:36px}.home-canvas-expanded .home-editor.app{height:100%}}
@media(prefers-reduced-motion:reduce){#homeCanvasShell{scroll-behavior:auto}}

/* Keep the home editor independent of the legacy floating Studio dock. */

.home-editor #brushes button{min-width:48px;padding:6px;font-size:12px}.home-editor #brushes svg{width:32px}
.is-main-feed .community-pulse.discovery-rail{display:flex;flex-direction:column;grid-template-columns:none;margin:0}.is-main-feed .discovery-collective{border-right:0}.is-main-feed .community-badge-section{grid-column:auto;grid-row:auto}
#homeActionsMount{display:flex;justify-content:flex-end;padding:10px 16px;border-top:1px solid var(--line)}#homeActionsMount .project-actions{display:flex;gap:8px;flex-wrap:wrap}#homeActionsMount button{font-size:13px;min-height:40px}#homeActionsMount svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
.home-canvas-expanded #homeActionsMount{flex:none}.home-editor>header{min-height:0}.home-editor>header>:not(.top-actions){display:none}.home-editor>header .top-actions{margin:0}.home-editor>header .theme-toggle,.home-editor>header #fullscreen{display:none}
@media(max-width:760px){#homeActionsMount{padding:8px 12px}.home-editor .transport .volume input{width:64px}.home-editor .workspace .play-controls{flex-wrap:wrap}}
.home-canvas-expanded #homeExpand:hover{background:#6240b8;color:#fff}

/* Full brush and color choices stay visible on home and in expanded Studio. */
.home-editor .workspace .toolbar{display:flex;flex-wrap:wrap;align-content:start;gap:10px 14px}.home-editor #brushes{display:flex;flex-wrap:wrap;gap:4px;flex:1 1 100%;border-right:0;padding-right:0}.home-editor #brushes button{min-width:54px;min-height:48px;font-size:13px}.home-editor .rail-palette{display:flex;flex-wrap:wrap;gap:4px}.home-editor .swatch{width:38px;min-width:38px;height:44px;min-height:44px}.home-editor .rail-edit{display:flex;flex-wrap:wrap;gap:4px}.home-editor.app{height:clamp(650px,76vh,820px)}
/* Playback follows the active theme in both editor locations. */
.workspace .transport,.home-editor .workspace .transport{background:var(--paper);color:var(--ink);border:1px solid var(--line)}.home-editor .workspace .transport{border-width:1px 0 0}.workspace .transport:after{background:var(--paper)}
.workspace .transport .play-controls button,.workspace .transport .play-controls #stop,.workspace .transport .repeat{background:var(--paper);border:1px solid var(--line);color:var(--ink)}.workspace .transport .play-controls button:hover,.workspace .transport .play-controls #stop:hover{background:var(--soft)}.workspace .transport .play-controls #play{background:var(--purple);border-color:var(--purple);color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:13px;min-width:134px}.workspace .play-controls #play span{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;font-size:14px}.workspace .transport .repeat:has(input:checked){background:var(--soft);color:var(--purple);border-color:var(--purple)}.workspace .repeat svg,.workspace .transport .volume svg{color:currentColor}.workspace .transport .volume output{display:inline;font-size:13px;min-width:34px}.workspace .transport .volume input{accent-color:var(--purple)}.workspace .transport .reading-button{max-width:230px;font-size:14px;padding:10px 12px}
.workspace .transport .timeline-info{display:flex;color:var(--muted);gap:12px;margin-bottom:10px;font-size:13px}.workspace .transport .timeline-info .progress{height:4px;background:var(--line)}.home-editor #replayInfo{display:none}.workspace .transport #soundModeLabel{display:inline}.workspace .transport .dock-sound-label{display:none}.home-editor .workspace .play-controls{justify-content:flex-start;gap:8px}.home-editor .transport .live-feedback{display:flex}.home-editor .transport-main{flex-wrap:wrap;gap:12px}
@media(max-width:760px){.home-editor.app{height:790px}.home-editor .workspace .toolbar{gap:8px}.home-editor .rail-palette{gap:2px}.home-editor #brushes button{min-width:48px}.home-editor .workspace .transport{padding:10px}.workspace .transport .volume input{width:70px}.workspace .transport .reading-button{font-size:13px;max-width:210px}.home-editor .transport .live-feedback{display:none}.home-canvas-expanded .home-editor.app{height:100%}.home-editor .workspace{grid-template-rows:auto minmax(100px,1fr) auto}.home-canvas-expanded .home-canvas-heading{padding:8px 12px}}
@media(max-height:700px){.home-canvas-expanded #homeCanvasShell{overflow-y:auto}.home-canvas-expanded #homeCanvasMount{min-height:530px;flex-shrink:0}.home-canvas-expanded .home-editor.app{min-height:530px}}

.secondary-color-control{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.secondary-color-control input{width:44px;height:44px;min-width:44px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--paper);cursor:pointer}.home-editor #brushes{gap:4px}.home-editor #brushes button{min-width:54px}.home-editor #brushes [data-brush=watercolor]{min-width:76px}

/* Creation and discovery have separate pages. The home editor fits the viewport. */
#community.is-home-studio .community-content{width:calc(100% - 32px);max-width:none;margin:0 auto;padding:12px 0}.is-home-studio .community-heading{display:none}.is-home-studio #openStudio{display:none}.is-home-studio .home-intro{margin:0 0 12px;min-height:36px;gap:12px}.is-home-studio .home-intro h2{font-size:28px;letter-spacing:-1px;line-height:1.15}.is-home-studio #homeJoin{min-height:36px;padding:7px 12px;font-size:14px}
body:not(.home-canvas-expanded) .is-home-studio #homeCanvasShell{height:var(--studio-height,calc(100dvh - 150px));min-height:520px;display:flex;flex-direction:column}.is-home-studio #homeCanvasMount{flex:1;min-height:0}.is-home-studio .home-editor.app{height:100%;min-height:0;max-height:none}.is-home-studio .home-canvas-heading{flex:none;min-height:64px;padding:10px 16px}.is-home-studio #homeActionsMount{flex:none}.is-home-studio .home-editor .workspace{grid-template-rows:auto minmax(120px,1fr) auto;min-height:0}.is-home-studio .home-editor .stage,.is-home-studio .home-editor .artboard{min-height:0;max-height:none;height:100%;aspect-ratio:auto}.is-home-studio .home-editor .toolbar{gap:7px 12px;padding:8px 12px}.is-home-studio .home-editor #brushes button{min-height:44px}.is-home-studio .home-editor .transport{padding:8px 12px}.is-home-studio .home-editor .timeline-info{margin-bottom:6px}.is-home-studio #homeRecentSection{display:none}
#community.is-main-feed #homeDiscoveryTitle{font-size:30px;margin:0 0 20px}.community-tabs #studioHome svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
@media(max-width:760px){#community.is-home-studio .community-content{width:calc(100% - 16px);padding-top:8px}.is-home-studio .home-intro h2{font-size:23px}.is-home-studio .home-canvas-heading{padding:8px 12px}.is-home-studio .home-canvas-actions{width:auto;margin-left:auto}.is-home-studio .home-canvas-actions button{font-size:12px;padding:8px}.is-home-studio .home-editor #brushes{gap:2px}.is-home-studio .home-editor #brushes button{min-width:44px;padding:4px;font-size:11px}.is-home-studio .home-editor #brushes svg{width:28px}.is-home-studio .home-editor .toolbar{padding:6px;gap:6px}.is-home-studio .home-editor .swatch{width:34px;min-width:34px}.community-header .community-tabs{display:flex;flex-wrap:wrap}}
@media(max-width:520px){body:not(.home-canvas-expanded) .is-home-studio #homeCanvasShell{height:auto;min-height:0}.is-home-studio #homeCanvasMount{flex:auto}.is-home-studio .home-editor.app{height:730px}.is-home-studio .home-intro h2{font-size:21px}.is-home-studio .home-canvas-actions{width:100%;margin:0}.is-home-studio .home-canvas-heading{gap:6px}}
:root:not([data-theme=dark]) #community.is-home-studio{--bg:#fff;background:#fff}

/* Compact playback stays over the drawing rather than reserving a footer row. */
.workspace,.home-editor .workspace,.is-home-studio .home-editor .workspace{
  grid-template-rows:auto minmax(120px,1fr);
}
.workspace .transport,.home-editor .workspace .transport,.is-home-studio .home-editor .workspace .transport{
  grid-area:2/1;position:relative;justify-self:end;align-self:end;
  width:max-content;max-width:min(620px,calc(100% - 20px));
  margin:0 10px max(10px,env(safe-area-inset-bottom));padding:6px 8px;
  border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink);
  box-shadow:0 3px 18px #0002;z-index:6;
}
.workspace .transport::before,.workspace .transport::after{display:none}
.workspace .transport .timeline-info,.home-editor .workspace .transport .timeline-info{
  margin:0 0 4px;max-width:none;gap:8px;font-size:11px;
}
.workspace .transport .timeline-info .progress{height:2px;min-width:30px}
.workspace .transport #replayInfo,.workspace .transport .live-feedback{display:none}
.workspace .transport-main,.home-editor .workspace .transport-main{
  margin:0;gap:0;display:block;
}
.workspace .transport .play-controls,.home-editor .workspace .transport .play-controls{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;width:auto;
}
.workspace .transport .play-controls button,.workspace .transport .repeat{
  min-width:44px;min-height:44px;margin:0;padding:6px 9px;
}
.workspace .transport .play-controls #play{
  width:46px;min-width:46px;height:46px;padding:6px;border-radius:50%;flex:none;
}
.workspace .transport .play-controls #play span,.workspace .transport .play-controls #stop span{
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
.workspace .transport .reading-button{max-width:148px;width:auto;order:0;font-size:12px}
.workspace .transport #soundModeLabel,.workspace .transport .dock-sound-label{display:none}
.workspace .transport .sound-mode-pill{min-width:44px;gap:0}
.workspace .transport .volume{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0 2px}
.workspace .transport .volume input{width:80px;margin:0}
.workspace .transport .volume output{display:none}
@media(max-width:760px){
  .workspace .transport,.home-editor .workspace .transport,.is-home-studio .home-editor .workspace .transport{
    max-width:calc(100% - 16px);margin:0 8px max(8px,env(safe-area-inset-bottom));padding:5px 6px;
  }
  .workspace .transport .play-controls,.home-editor .workspace .transport .play-controls{gap:4px}
  .workspace .transport .volume input{width:54px}
}
