@charset "UTF-8";
:root{font-family:Inter,"Segoe UI",sans-serif;color:#29342d;background:#f7f8f3;font-synthesis:none;--ink:#273b30;--line:#d8ddd1;--muted:#647062;--green:#345e40;--title:#e9c85f;--person:#b1afe7;--melody:#e8ad98;--filter:#b7c799;--cover:#8db9d2}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,select{cursor:pointer}button{border:0;background:none}button:disabled{opacity:.46;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #245747;outline-offset:4px}button{touch-action:manipulation}button:hover{filter:brightness(.97)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;top:-80px;z-index:100;background:white;padding:14px}.skip:focus{top:5px}.masthead{height:92px;max-width:1640px;margin:auto;padding:0 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{text-decoration:none;color:var(--ink);font-size:23px;letter-spacing:-1px;font-weight:400;display:flex;align-items:center}.brand>span:last-child{font-weight:750}.brand-mark{font-size:44px;transform:rotate(-30deg);margin-right:12px;line-height:1;color:#487854}.masthead nav{display:flex;gap:24px}.quiet{font-size:13px;padding:12px 0}.quiet span{display:inline-grid;place-content:center;border:1px solid #bec9b8;border-radius:50%;min-width:22px;height:22px;margin-left:4px;font-size:11px}main{max-width:1544px;margin:0 auto;padding:50px 48px 100px;display:grid;grid-template-columns:206px minmax(0,1fr);gap:54px}.materials{border-right:1px solid var(--line);padding-right:25px}.materials summary{list-style:none;font-size:17px;font-weight:600;display:flex;justify-content:space-between}.materials summary::-webkit-details-marker{display:none}.materials summary span{display:none}.small{font-size:12px;line-height:1.6;color:var(--muted)}.materials .small{margin:10px 0 24px}.palette-section{font-size:10px;letter-spacing:1.3px;text-transform:uppercase;color:#6e796d;margin:25px 0 10px}.material{width:100%;text-align:left;border:1px solid color-mix(in srgb,var(--tone) 62%,#899382);background:color-mix(in srgb,var(--tone) 22%,#fcfcf8);border-radius:9px;min-height:49px;margin-bottom:8px;display:flex;align-items:center;gap:10px;padding:10px 12px;position:relative;transition:background .15s;user-select:none;touch-action:pan-y}.material:hover{background:color-mix(in srgb,var(--tone) 46%,#fcfcf8)}.material-symbol{height:24px;min-width:27px;display:grid;place-content:center;font-size:20px;font-weight:450;color:#39493c}.material-name{font-size:13px;font-weight:550}.material-plus{margin-left:auto;color:#6b7869}.query-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.eyebrow{font-size:10px;letter-spacing:1.8px;margin:0 0 10px;color:#6a7765}h1{font-size:38px;font-weight:500;letter-spacing:-1.5px;margin:0;line-height:1.2}.example-label select{max-width:240px;background:transparent;border:0;border-bottom:1px solid #bec9b8;padding:10px 22px 10px 0;font-size:12px}.query-guidance{font-size:14px;color:#63715f;margin:16px 0 33px;line-height:1.6}.whole-query{position:relative;border-left:3px solid #52724f;padding-left:22px}.whole-label{font-size:12px;display:flex;align-items:center;gap:7px;margin-bottom:21px;font-weight:600}.whole-dot{width:7px;height:7px;background:#456b47;border-radius:50%}.whole-label .small{font-weight:400}.query-group{border:1px solid #b8c6b1;border-radius:14px;background:#fdfdf9;margin:0 0 17px;position:relative;padding:18px 14px 15px}.query-group:before{content:"";position:absolute;width:24px;height:2px;background:#52724f;left:-25px;top:35px}.group-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 4px 15px}.group-label{font-size:11px;color:#76816e;margin-right:1px}.operator{font-size:16px;font-weight:700;color:#2c5435;background:#edf2e6;border:2px solid #819a72;border-radius:8px;min-height:45px;min-width:95px;padding:8px 27px 8px 13px}.operator.unresolved{background:#fafbf5;border-style:dashed;color:#687861;min-width:192px;font-size:13px}.operator-note{font-size:12px;color:#65745f;flex:1;min-width:150px;line-height:1.4}.remove-group{margin-left:auto;color:#76816e;font-size:20px}.blocks{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px 0;min-height:70px}.placement{display:flex;align-items:stretch;min-width:0}.drop-slot{width:18px;min-width:18px;border-radius:7px;padding:0;position:relative;align-self:stretch;min-height:60px;font-size:0;color:transparent;transition:background .1s}.drop-slot:after{content:"";position:absolute;top:15%;bottom:15%;left:8px;width:2px;border-radius:3px;background:transparent}.drop-slot:focus-visible:after{background:var(--green)}.moving .drop-slot{background:#edf3e7;outline:1px dashed #bccbb2}.moving .drop-slot:after{background:#a7bc99}.drop-slot.drop-target{background:#a9c492;outline:2px solid #567941}.drop-slot.drop-target:after{background:#345e40;width:4px;left:7px}.block{--tone:var(--filter);width:218px;min-height:152px;padding:14px 16px 13px;border-radius:10px;background:color-mix(in srgb,var(--tone) 69%,#fffdf3);border:1px solid color-mix(in srgb,var(--tone) 80%,#5f745b);position:relative;display:flex;flex-direction:column;box-shadow:0 2px 0 color-mix(in srgb,var(--tone) 35%,transparent)}.block.drag-source{opacity:.35}.block-top{display:flex;align-items:center;gap:7px;min-height:25px;margin-bottom:13px;font-size:11px}.block-top .symbol{font-size:17px}.block-type{font-size:11px;letter-spacing:.2px}.drag-handle{margin-left:auto;font-size:20px;color:#566a53;padding:2px 5px;line-height:1;touch-action:none;cursor:grab}.remove-block{font-size:19px;padding:0 2px;color:#617359}.block-value{width:100%;background:transparent;border:0;border-radius:3px;min-height:31px;font-size:20px;font-weight:550;letter-spacing:-.5px;padding:0 0 3px;outline-offset:3px}.block-value::placeholder{color:#586951;opacity:.8;font-weight:400;font-size:17px}.block-value:hover{box-shadow:0 1px 0 #809272}.block-value:focus{outline:0;box-shadow:0 2px 0 #3f6746;background:#ffffff22}.block textarea.block-value{resize:none;height:55px;font-family:inherit;line-height:1.3}.role-select{font-size:10px;width:max-content;max-width:100%;border:0;background:transparent;color:#4e5473;padding:2px 18px 4px 0;letter-spacing:.5px;margin:-3px 0 7px;text-transform:uppercase}.block select.block-value{font-size:15px;letter-spacing:0;white-space:normal;padding-right:10px}.block-note{font-size:10px;line-height:1.5;color:#4e6149;margin:10px 0 0;overflow-wrap:anywhere}.block-note:last-child{margin-top:auto;padding-top:10px}.block audio{width:100%;height:31px;margin:8px 0 1px}.audio-select{font-size:14px!important}.cover-pick{font-size:18px;text-align:left;padding:3px 0;min-height:42px}.cover-image{width:100%;height:88px;object-fit:contain;object-position:left center;border-radius:4px}.empty-group{font-size:14px;color:#7d8875;padding:20px 10px;align-self:center}.add-group{font-size:12px;margin:3px 0 0;padding:8px 0;color:#4e6745}.query-actions{margin:27px 0 35px 25px;display:flex;justify-content:space-between;gap:20px;align-items:center}.query-actions p{margin:3px 0}#readiness{font-size:13px}.primary{background:#355c3d;color:#fff;border-radius:8px;padding:15px 22px;font-size:14px;white-space:nowrap;min-height:48px}.primary span{font-size:19px;margin-left:25px}.secondary{border:1px solid #9faf94;border-radius:7px;padding:10px 15px;font-size:13px}.move-help{position:sticky;bottom:20px;background:#294e35;color:#fff;padding:13px 18px;border-radius:10px;font-size:13px;z-index:5;box-shadow:0 4px 22px #233b3326}.move-help button{float:right;color:white;font-weight:600}.results-head{border-top:1px solid #cbd4c3;padding-top:24px;display:flex;align-items:center;gap:16px;justify-content:space-between}.results-head h2{font-size:20px;font-weight:500;margin:0}.results-summary{font-size:13px;line-height:1.7;color:#586650}.result-list{display:grid;gap:0}.result-row{padding:18px 0;border-top:1px solid #dde2d5;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.result-title{font-size:17px;font-weight:500;margin:0 0 5px}.result-meta{font-size:11px;color:#6b7866;margin:0;line-height:1.5}.signature{display:flex;gap:4px;flex-wrap:wrap;max-width:220px}.sig{background:color-mix(in srgb,var(--tone) 65%,#fffdf3);border:1px solid color-mix(in srgb,var(--tone) 80%,#5f745b);border-radius:5px;min-width:27px;padding:5px;font-size:11px;text-align:center}.sig.unknown{border-style:dashed}.result-detail{grid-column:1/-1;font-size:12px;line-height:1.7;color:#53654a}.result-detail summary{cursor:pointer}.result-detail ul{padding-left:20px}.result-warning{border-left:3px solid #bd9a46;padding-left:12px;font-size:13px;line-height:1.7}.more-results{margin:16px 0}.history-item{border-top:1px solid var(--line);padding:16px 0;display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:20px}dialog{border:1px solid #bac7b1;border-radius:14px;max-width:660px;width:calc(100% - 32px);padding:25px;color:var(--ink);background:#fcfdf8;box-shadow:0 20px 100px #15261930}dialog::backdrop{background:#1e322952;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-head h2{font-size:23px;font-weight:500;margin:0 0 16px}.dialog-head button{align-self:flex-start;font-size:26px}#dialog-content{font-size:13px;line-height:1.8}#dialog-content code{font-size:11px}.data-table{border-collapse:collapse;width:100%;font-size:12px}.data-table td,.data-table th{text-align:left;padding:10px 5px;border-bottom:1px solid var(--line)}#drag-ghost{position:fixed;left:0;top:0;z-index:100;pointer-events:none;border:1px solid #829776;background:#eef2df;box-shadow:0 8px 30px #263a332f;padding:13px 22px;border-radius:8px;font-size:14px;max-width:250px}.error{color:#93432c}.accepted{font-size:12px;color:#3b6542}.selected-group{box-shadow:0 0 0 1px #65845a}.block[data-type=title],.material[data-type=title]{--tone:var(--title)}.block[data-type=person],.material[data-type=person]{--tone:var(--person)}.block[data-type=melody],.material[data-type=melody]{--tone:var(--melody)}.block[data-type=cover],.material[data-type=cover]{--tone:var(--cover)}
@media(min-width:1600px){main{padding-top:62px}.block{width:242px;min-height:162px}}
@media(max-width:1100px){.masthead{padding:0 30px}main{padding:36px 30px 80px;grid-template-columns:170px minmax(0,1fr);gap:30px}.materials{padding-right:18px}.block{width:212px}.query-heading{align-items:flex-start}h1{font-size:34px}.example-label select{max-width:180px}.query-actions{margin-left:0}.operator-note{flex-basis:170px}}
@media(max-width:760px){.masthead{height:72px;padding:0 22px}.masthead nav{gap:18px}.brand{font-size:20px}.brand-mark{font-size:35px;margin-right:8px}main{display:flex;flex-direction:column;padding:24px 22px 70px;gap:28px}.materials{border-right:0;border-bottom:1px solid var(--line);padding:0 0 15px}.materials summary{font-size:15px;cursor:pointer}.materials summary span{display:block}.materials .small{margin:9px 0 12px}#palette{display:grid;grid-template-columns:1fr 1fr;gap:0 9px}.palette-section{grid-column:1/-1;margin:15px 0 8px}.material{min-height:44px;margin-bottom:7px}.query-heading{gap:10px}h1{font-size:32px}.eyebrow{font-size:9px}.example-label select{max-width:160px;font-size:11px}.query-guidance{font-size:13px;margin:13px 0 25px}.whole-query{padding-left:15px}.whole-label{flex-wrap:wrap;margin-bottom:18px}.whole-label .small{font-size:10px}.query-group{padding:15px 10px 12px}.query-group:before{width:17px;left:-18px}.group-head{gap:8px;margin:0 3px 8px}.operator-note{min-width:120px;font-size:11px}.group-label{font-size:10px}.operator{font-size:15px;min-height:44px}.blocks{flex-direction:column;gap:0}.placement{flex-direction:column;width:100%}.block{width:100%;min-height:148px}.drop-slot{height:18px;min-height:18px;width:100%;min-width:100%}.drop-slot:after{top:8px;bottom:auto;left:8%;right:8%;height:2px;width:auto}.drop-slot.drop-target:after{height:4px;width:auto;left:8%}.query-actions{gap:18px;align-items:stretch;flex-direction:column;margin:22px 0 30px 18px}.query-actions .primary{align-self:flex-start}.result-row{grid-template-columns:1fr}.signature{max-width:100%}.results-head{flex-wrap:wrap}.move-help{font-size:12px}.block-value{font-size:21px}.block-top{margin-bottom:10px}.empty-group{font-size:13px;padding:15px 5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.material{--tone:var(--filter);touch-action:none}.block textarea.block-value{height:77px;line-height:1.25;overflow:auto}.block[data-type=person]{min-height:191px}.contour{display:flex;gap:2px;align-items:flex-end;height:35px;margin-top:5px}.contour i{display:block;width:4px;background:#3f8977;border-radius:2px}.analyze{font-size:11px;margin-top:9px;padding:7px 5px}.block-note{max-width:100%}.block-top{flex-shrink:0}
/* Query 04: two-level grouping and quiet, source-bound preview. */
main{grid-template-columns:190px minmax(0,1fr) 204px;gap:32px;padding:40px 38px 120px;max-width:1660px}
.materials{padding-right:20px}.query-guidance{margin-bottom:22px}.recent{padding-top:13px;min-width:0}.recent h2{font-size:13px;line-height:1.5;font-weight:550;margin:0}.recent .small{font-size:11px}.recent-item{display:block;text-align:left;width:100%;border-top:1px solid var(--line);padding:14px 0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.recent-item strong{font-weight:500;display:block}.recent-item small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.recent-item:hover{color:#254a30}.stock-preview{border-top:1px solid var(--line);padding:15px 0 18px;margin-bottom:14px;font-size:12px;line-height:1.7}.stock-heading{display:flex;gap:7px 20px;justify-content:space-between;flex-wrap:wrap}.stock-heading strong{font-weight:600}.stock-result{font-size:19px;font-weight:500;margin:7px 0 4px}.stock-delta{font-size:11px;color:#54694d;margin:3px 0}.stock-preview details{font-size:11px;color:var(--muted)}.stock-preview summary{cursor:pointer}.unknown-toggle{display:flex;align-items:center;gap:7px;font-size:11px;min-height:30px}.unknown-toggle input{accent-color:var(--green)}.whole-label{flex-wrap:wrap;gap:8px;font-weight:400;margin-bottom:6px}.whole-label label{font-size:11px;color:var(--muted);width:100%}#group-operator{border:0;border-bottom:1px solid #899d80;background:transparent;padding:8px 20px 8px 0;font-size:14px;font-weight:550;max-width:calc(100% - 37px);white-space:normal}.logic-tag{font-size:9px;font-weight:600;letter-spacing:.5px;color:#617056;white-space:nowrap}.operator-alternatives{font-size:11px;color:var(--muted);line-height:1.6;margin:0 0 20px}.operator-alternatives button{font-size:11px;padding:5px 2px;text-decoration:underline;text-underline-offset:3px}.group-head{gap:8px;margin-bottom:10px}.group-label{font-size:10px}.operator-note{font-size:11px;min-width:100px}.operator-note .logic-tag{margin-left:5px}.remember-group,.remove-group{min-width:32px;min-height:32px;padding:4px}.remember-group{font-size:20px;color:#6b7b60}.group-count{font-size:11px;line-height:1.6;margin:8px 5px 0;color:#5d7056}.block{width:204px;min-height:170px}.block-top{gap:5px}.block-type{font-size:10px}.block-note{font-size:10px}.block[data-type=person]{min-height:202px}.block[data-type=cover]{min-height:130px}.cover-image{height:67px}.add-group{display:block;width:100%;border:1px solid #91a586;border-radius:9px;min-height:46px;padding:11px 18px;margin-top:4px;font-size:13px;text-align:left;background:#f0f4e9}.add-group:hover{background:#e7eddd}.query-actions{margin:24px 0 32px 25px;flex-wrap:wrap}.query-actions #mode{font-size:10px}.primary{padding:13px 18px}.primary span{margin-left:12px}.roles{margin:-4px 0 8px;font-size:10px;color:#4e5473;position:relative}.roles summary{cursor:pointer;line-height:1.5;list-style:none;padding:3px 0;overflow-wrap:anywhere}.roles summary span{margin-left:4px}.role-options{position:absolute;left:-8px;top:100%;z-index:12;padding:12px;background:#fbfafc;border:1px solid #b1afe7;border-radius:8px;width:220px;max-height:340px;overflow:auto;box-shadow:0 8px 24px #263a3326}.role-options label{display:flex;gap:8px;align-items:center;min-height:30px;font-size:12px}.role-options input{accent-color:#67609b}.role-category{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.5px;margin:10px 0 3px}.role-options small{display:block;margin-top:8px}.title-mode{font-size:10px;max-width:100%;background:transparent;border:0;padding:3px 16px 4px 0;margin-bottom:7px;color:#596444}.year-fields{display:flex;align-items:center;gap:7px}.year-fields input{min-width:0;letter-spacing:0;font-size:18px}.year-fields span{font-size:10px}.mic-button{border:1px solid #539a89;border-radius:6px;min-height:44px;font-size:13px;padding:8px}.audio-label{font-size:13px;line-height:1.5;margin:3px 0 8px;overflow-wrap:anywhere}.recording-state{font-size:12px;min-height:30px;line-height:1.5}.recording-state.active:before{content:'●';color:#b34937;margin-right:6px}.audio-actions{display:flex;gap:6px;flex-wrap:wrap}.audio-actions button{font-size:11px;padding:6px;min-height:32px}.dev-bar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;align-items:center;gap:8px;padding:10px 22px;background:#e9ebe4;border-top:1px solid #bac3b2;font-size:11px;box-shadow:0 -3px 20px #30432a08}.dev-bar strong{font-size:10px;letter-spacing:1px;background:#d6dccc;padding:5px 7px;border-radius:4px}.dev-bar select{max-width:220px;font-size:11px;padding:6px;border:1px solid #b5c0ad;border-radius:5px;background:#f5f6f0}.dev-bar button{font-size:11px;border:1px solid #acb9a2;border-radius:5px;padding:7px 9px;min-height:32px}.dev-bar #dev-hide{margin-left:auto;font-size:18px;border:0;padding:4px 9px}.dev-bar #dev-status{font-size:10px;max-width:250px}.dev-show{position:fixed;bottom:10px;right:15px;border:1px solid #b6c3ad;border-radius:5px;background:#edf0e6;font-size:10px;padding:7px;z-index:15}.dev-bar[hidden],.dev-show[hidden]{display:none!important}#drag-ghost{background:color-mix(in srgb,var(--tone,var(--filter)) 69%,#fffdf3);border-color:color-mix(in srgb,var(--tone,var(--filter)) 80%,#5f745b)}#drag-ghost[data-type=title]{--tone:var(--title)}#drag-ghost[data-type=person]{--tone:var(--person)}#drag-ghost[data-type=melody]{--tone:var(--melody)}#drag-ghost[data-type=cover]{--tone:var(--cover)}.moving .drop-slot{background:color-mix(in srgb,var(--drag-tone,var(--filter)) 25%,#fffdf3)}.drop-slot.drop-target{background:color-mix(in srgb,var(--drag-tone,var(--filter)) 65%,#fffdf3)}.block[data-type=repertoire],.material[data-type=repertoire]{--tone:var(--filter)}textarea:focus-visible{outline:3px solid #245747!important;outline-offset:3px}section:focus-visible{outline:2px solid #567849;outline-offset:3px}
@media(max-width:1250px){main{grid-template-columns:170px minmax(0,1fr);gap:28px}.recent{grid-column:2;padding-top:0}.recent #recent-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.recent h2{font-size:12px}.block{width:218px}.dev-bar{flex-wrap:wrap;padding:8px 18px}.dev-bar #dev-status{max-width:180px}}
@media(max-width:760px){main{display:flex;padding:24px 22px 180px;gap:25px}.recent{padding:0 0 0 18px}.recent #recent-groups{display:block}.block{width:100%}.query-actions{margin-left:18px}.dev-bar{padding:8px 12px;gap:5px}.dev-bar label{min-width:0;flex:1}.dev-bar select{max-width:100%;width:100%}.dev-bar #dev-status{max-width:none;flex-basis:100%}.whole-label{gap:5px}#group-operator{font-size:12px;min-height:44px;padding-right:0;max-width:calc(100% - 30px)}.operator-note{flex:1 1 150px}.group-head{gap:4px}.stock-result{font-size:18px}.role-options{width:220px;max-width:calc(100vw - 100px)}.group-label{width:100%;margin-bottom:2px}.dev-bar #dev-hide{position:absolute;right:6px;top:-30px;background:#e9ebe4;border:1px solid #bac3b2;border-radius:5px 5px 0 0}.move-help{bottom:130px}#recent-heading{font-size:13px}}
@media(max-width:360px){.masthead{padding:0 14px}.masthead nav{gap:12px}.quiet{font-size:11px}main{padding-left:14px;padding-right:14px}.whole-query{padding-left:11px}.query-group:before{width:13px;left:-14px}.block{padding:12px}.block-top{gap:4px}.query-group{padding:12px 8px}.recent{padding-left:14px}.material{padding:8px;gap:5px}.material-name{font-size:12px}}
@media(max-width:760px){.dev-bar label{flex:1 1 140px}.dev-bar select{min-width:120px}.dev-bar button{flex:0 0 auto}.dev-bar #dev-status:empty{display:none}.dev-bar #dev-status{flex-basis:auto}.dev-bar #dev-hide{min-width:30px}.query-group .block[data-type=person]{min-height:178px}.query-group .block{min-height:155px}.recording-state:empty{display:none}}
.dev-show{position:static;display:block;margin:0 20px 18px auto;min-height:32px;clear:both}
.material{padding-inline:8px;gap:6px}.material-name{min-width:0;overflow-wrap:anywhere;hyphens:auto}.material-symbol,.material-plus{flex-shrink:0}

/* Textreduktion nach Finns visueller Revision, 13.09.2026. */
:root{
 --instrumentation:#9cbd82;--genre:#d9ac70;--language:#9ebfdf;
 --year:#deb98e;--notation:#c6c77e;--origin:#a4b9b6;
 --recording:#d2a6bc;--rights:#bab3a2;--repertoire:#80b9a6;
}
.query-heading{margin-bottom:25px}
.stock-preview{border:0;padding:0;margin:0 0 32px;line-height:1.4}
.stock-cells{display:grid;grid-template-columns:1fr 1.15fr 1fr;background:#edf0e7;border:1px solid #d4dccd;border-radius:13px;overflow:hidden}
.stock-cell{padding:17px 18px 14px;display:flex;flex-direction:column;gap:4px;position:relative;min-width:0}
.stock-cell+.stock-cell{border-left:1px solid #d4dccd}
.stock-number{font-size:28px;font-weight:550;line-height:1.1;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.stock-label{font-size:12px;font-weight:550;margin-top:3px}
.stock-cell.possible{background:#f4f1e7;transition:background .18s}
.stock-cell.possible.included{background:#e9eddb;box-shadow:inset 0 -3px #647e45}
.stock-cell.total{background:#f3f4ee;color:#727d6c}
.stock-cell.total .stock-number{font-weight:400}
.include-switch{display:flex;gap:6px;align-items:center;position:relative;cursor:pointer;font-size:10px;min-height:24px;width:max-content;max-width:100%}
.include-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.switch-track{width:25px;height:15px;border-radius:10px;border:1px solid #929b85;background:#e0e3d7;display:block;flex:none;pointer-events:none}
.switch-track:after{content:'';display:block;width:9px;height:9px;margin:2px;border-radius:50%;background:#7b846d;transition:transform .18s,background .18s}
.include-switch input:checked+.switch-track{background:#506d40;border-color:#506d40}
.include-switch input:checked+.switch-track:after{transform:translateX(10px);background:white}
.include-switch input:focus-visible+.switch-track{outline:3px solid #245747;outline-offset:3px}
.stock-scope{font-size:10px;color:#757464;margin:7px 3px 0}
.whole-query{border:0;padding-left:0}
.group-choice{display:flex;flex-direction:column;align-items:center;margin:0 0 27px;gap:10px}
#logic-question{margin:0;font-size:12px;color:#64705e}
.logic-options{display:flex;gap:3px;border:1px solid #cbd5c1;background:#edf0e7;border-radius:10px;padding:4px;max-width:100%}
.logic-options button{display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 14px;min-height:44px;border-radius:7px;font-size:12px;color:#677260}
.logic-options button[aria-pressed=true]{background:#fcfdf9;color:#294a31;box-shadow:0 1px 4px #263a331c}
.logic-picture{display:flex;gap:7px;position:relative;align-items:center}
.logic-picture i{width:9px;height:12px;border:1px solid currentColor;border-radius:2px;position:relative;background:inherit}
.logic-picture:before{content:'';position:absolute;left:8px;right:8px;top:50%;border-top:1px dashed currentColor}.logic-picture.connected:before{border-top-style:solid}
.query-group{margin-bottom:25px;box-shadow:none}
.query-group:before{display:none}
.whole-query .query-group:not(:first-child):before{content:'';display:block;position:absolute;left:50%;top:-26px;width:0;height:25px;background:none;border-left:2px solid #719063}.whole-query[data-logic=ODER] .query-group:not(:first-child):before{border-left-style:dashed}
.query-group.selected-group{border-color:#87a277}
.group-head{margin-bottom:8px;gap:10px}
.group-label{font-size:11px;color:#4b6546}
.operator-note{font-size:10px;color:#7b8574}
.remember-group{margin-left:auto}
.remove-group{margin-left:0}
.group-count{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0}
.query-actions{margin:22px 0 30px;gap:15px}
.review-cue{display:flex;align-items:center;gap:9px;font-size:12px;color:#7f7556;padding:8px 0;min-height:40px;text-align:left}
.review-cue>span:last-child{font-size:14px;color:#8c967f}
.cue-dots{display:flex;gap:3px}
.cue-dots i{width:5px;height:5px;border-radius:50%;background:#b8a472}
.needs-input{outline:2px solid #ac783b;outline-offset:3px}
.block.needs-review{outline:1px dashed #95855a;outline-offset:3px}
.input-hint{font-size:11px;line-height:1.45;color:#80531f;margin:10px 0 0;padding-top:9px;border-top:1px solid #ae824e55}
.query-group>.input-hint{margin:5px 10px 0}
.block.needs-review>.input-hint{color:#74613d}
.block[data-type=genre].needs-review>.block-note,.block[data-type=language].needs-review>.block-note,.block[data-type=year].needs-review>.block-note{display:none}
.block select.block-value{font-size:12px;min-height:40px;white-space:nowrap;letter-spacing:-.1px}
@media(max-width:760px){
 .stock-preview{margin-bottom:26px}.stock-cell{padding:14px 11px 10px}
 .stock-number{font-size:25px}.stock-label{font-size:11px}
 .query-actions{margin-left:0}.query-actions .primary{align-self:flex-end}
 .group-label{width:auto;margin:0}.operator-note{flex:1;min-width:0}
 .group-choice{margin-bottom:24px}.logic-options button{padding:9px 10px;gap:7px}
 .query-heading{margin-bottom:23px}
}
@media(max-width:360px){
 .stock-cell{padding:13px 8px 10px}.stock-number{font-size:24px}
 .stock-label{font-size:10px}.include-switch{font-size:9px}
 .logic-options button{font-size:11px;padding-inline:8px}.logic-picture{gap:5px}
 .stock-cells{grid-template-columns:1fr 1.12fr 1fr}
}

/* Native Auswahl bleibt bedienbar; ihr sichtbarer Wert darf umbrechen. */
.select-field{position:relative;display:grid;min-width:0;max-width:100%}
.selected-value{grid-area:1/1;display:block;min-width:0;padding:9px 22px 9px 0;font-size:13px;line-height:1.5;font-weight:550;overflow-wrap:anywhere;pointer-events:none}
.select-field:after{content:'⌄';position:absolute;right:3px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:16px;color:#4e6348}
.select-field select{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:40px;margin:0;opacity:1;appearance:none;color:transparent!important;background:transparent!important;border:0;font-size:13px;cursor:pointer}
.select-field select option{color:#29342d;background:#fcfdf8}
.select-field:focus-within{outline:2px solid #406747;outline-offset:3px;border-radius:3px}
.select-field select:focus-visible{outline:none;box-shadow:none}
.role-options[popover]{position:fixed;inset:auto;margin:0;max-width:none;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;max-height:340px;background:#fbfafc;border:1px solid #a8a3c7;box-shadow:0 10px 30px #263a332b;border-radius:9px;padding:10px 12px;color:#303348}
.role-options[popover]::backdrop{background:transparent;pointer-events:none}
.role-options[popover]{scrollbar-width:thin;scrollbar-color:#afa5c7 #f2eff8;scrollbar-gutter:stable}
.role-options label{min-height:36px;padding:3px 0;cursor:pointer}
.role-options input{min-width:16px;min-height:16px;flex-shrink:0}
.roles summary{min-height:30px;display:flex;align-items:center}
.dev-bar{position:relative;inset:auto;margin:20px auto;width:calc(100% - 48px);max-width:1440px;border:1px solid #bac3b2;border-radius:10px;box-shadow:none;flex-wrap:wrap;z-index:auto}
.dev-bar label{flex:1 1 220px;min-width:0;max-width:360px}
.dev-bar .select-field{border:1px solid #b5c0ad;border-radius:5px;background:#f5f6f0}
.dev-bar .selected-value{font-size:11px;font-weight:400;padding:7px 24px 7px 8px}
.dev-bar select{max-width:none;padding:0;min-height:0}
.dev-bar #dev-hide{position:static;min-width:32px;min-height:32px;margin-left:auto;border:0;background:none}
.dev-bar #dev-status{overflow-wrap:anywhere}
@media(max-width:760px){main{padding-bottom:65px}.dev-bar{width:calc(100% - 28px)}.dev-bar label{flex-basis:100%;max-width:none}.role-options label{min-height:42px}}

/* Kompakte Karten und eigene Audiobedienung, 13.09.2026. */
.blocks{align-items:flex-start}
.placement{max-width:100%}
.query-group .block{width:238px;max-width:100%;min-height:145px;padding:12px 14px}
.query-group .block[data-type=person]{min-height:165px}
.query-group .block[data-type=melody]{width:290px;min-height:145px}
.block textarea.block-value{min-height:48px;height:48px}
.block-note{line-height:1.5}
.block-note:last-child{padding-top:7px}
.audio-player{min-width:0;margin:3px 0 10px;padding:11px 12px 9px;background:#ffffffa6;border:1px solid #79a99c66;border-radius:12px}
.audio-player[hidden],.block audio[hidden]{display:none}
.audio-player .audio-label{margin:0 0 8px;font-size:11px;font-weight:550;line-height:1.4;overflow-wrap:anywhere}
.audio-transport{display:flex;align-items:center;gap:11px;min-width:0}
.audio-play{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#315f54;color:#fff;padding:0}
.audio-play svg{width:20px;height:20px;fill:currentColor}
.audio-play .pause-shape{display:none}
.audio-play[aria-pressed=true] .pause-shape{display:block}
.audio-play[aria-pressed=true] .play-shape{display:none}
.audio-timeline{flex:1;min-width:0}
.audio-timeline input{display:block;appearance:none;width:100%;min-width:0;height:24px;padding:0;margin:0;background:transparent;cursor:pointer;--progress:0%}
.audio-timeline input::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(to right,#396e5f var(--progress),#ceded5 var(--progress))}
.audio-timeline input::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:#396e5f;margin-top:-4px;box-shadow:0 0 0 1px #396e5f55}
.audio-timeline input::-moz-range-track{height:4px;border-radius:4px;background:#ceded5}
.audio-timeline input::-moz-range-progress{height:4px;background:#396e5f}
.audio-timeline input::-moz-range-thumb{width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:#396e5f}
.audio-times{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#526e62;font-variant-numeric:tabular-nums}
.audio-actions{gap:6px 10px;align-items:center}
.audio-actions button{min-height:36px;padding:7px 8px;font-size:11px;line-height:1.35}
.audio-actions .mic-button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.stop-icon{width:8px;height:8px;border-radius:2px;background:currentColor;flex:none}
.recording-state.active{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px 12px;align-items:center;position:relative;margin:3px 0 10px;padding:18px 13px 12px;border:1px solid #7aa797;background:#e4f2e9;border-radius:12px;color:#305a4c;overflow:hidden}
.recording-state.active:before{display:none}
.capture-orbit{grid-row:1/3;position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#39765f;color:white}
.capture-orbit:before,.capture-orbit:after{content:'';position:absolute;inset:-5px;border:2px solid #4c9474;border-radius:50%;animation:capture-ring 1.8s ease-out infinite}
.capture-orbit:after{animation-delay:.9s}
.capture-orbit svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.capture-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.capture-copy strong{font-size:12px;font-weight:650;line-height:1.4}
.capture-copy>span{font-size:10px;line-height:1.5;color:#567968}
.capture-time{grid-column:2;font-size:17px;font-weight:550;letter-spacing:.5px;line-height:1;font-variant-numeric:tabular-nums}
.recording-state[data-phase=pending]{background:#f1f3e9}
.recording-state[data-phase=pending] .capture-orbit:before,.recording-state[data-phase=pending] .capture-orbit:after{animation-duration:3s}
@keyframes capture-ring{0%{transform:scale(.8);opacity:.8}100%{transform:scale(1.5);opacity:0}}
@media(prefers-reduced-motion:reduce){.capture-orbit:before,.capture-orbit:after{animation:none}.capture-orbit:after{display:none}}
@media(max-width:760px){.query-group .block,.query-group .block[data-type=melody]{width:100%;min-height:140px}.query-group .block[data-type=person]{min-height:155px}.audio-actions button{min-height:40px}}

.audio-actions .analyze{margin-top:0}

/* Gemerkte Gruppen: dieselben Materialfarben, nur der damalige Inhalt. */
#recent-groups{display:grid;gap:10px;margin-top:16px;min-width:0}
.recent-item{display:flex;flex-wrap:wrap;align-content:flex-start;gap:6px;width:100%;min-width:0;padding:10px;border:1px solid #d9dfd2;border-radius:11px;background:#fcfdf8;transition:border-color .15s,background .15s}
.recent-item:hover{border-color:#91a586;background:#f1f5ec}
.recent-chip{display:inline-flex;align-items:flex-start;gap:7px;min-width:0;max-width:100%;padding:7px 9px;border:1px solid color-mix(in srgb,var(--tone) 80%,#5f745b);border-radius:7px;background:color-mix(in srgb,var(--tone) 69%,#fffdf3);color:#29342d;font-size:12px;font-weight:500;line-height:1.45;text-align:left}
.recent-symbol{flex:none;font-size:13px;line-height:1.35}
.recent-value{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}

/* Live PCM input level; pending/simulated input retains its status animation. */
.recording-state[data-phase=capturing]{--mic-level:0}
.recording-state[data-phase=capturing] .capture-orbit{box-shadow:0 0 calc(var(--mic-level)*20px) #39765f66}
.recording-state[data-phase=capturing] .capture-orbit:before,.recording-state[data-phase=capturing] .capture-orbit:after{animation:none;transition:transform .12s ease-out,opacity .12s ease-out;opacity:calc(.15 + var(--mic-level)*.65)}
.recording-state[data-phase=capturing] .capture-orbit:before{transform:scale(calc(.85 + var(--mic-level)*.55))}
.recording-state[data-phase=capturing] .capture-orbit:after{transform:scale(calc(1 + var(--mic-level)*.65));opacity:calc(var(--mic-level)*.45)}
.melody-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.audio-actions .melody-primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;padding:10px 12px;background:#305f50;color:#fff;border:1px solid #305f50;border-radius:9px;font-size:13px;font-weight:650;box-shadow:0 2px 3px #315f501a}
.melody-primary>span:last-child{margin-left:auto}
.melody-primary:disabled{opacity:.8}
.audio-actions .record-again{width:100%;min-height:40px;padding:9px 12px;border:1px solid #527f70;border-radius:8px;background:#f6fcf55e;font-size:12px;font-weight:550}
.record-again>span{font-size:17px}
.analysis-spinner{width:15px;height:15px;border:2px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:analysis-spin .85s linear infinite}
@keyframes analysis-spin{to{transform:rotate(360deg)}}
.melody-preview{margin:0 0 9px;padding:10px;border:1px solid #a79abc88;border-radius:11px;background:#f5f1f9}
.melody-preview-head{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#69567d;margin-bottom:4px}
.melody-preview-head .block-note{font-size:11px;font-weight:550;color:#69567d;margin:0;padding:0}
.melody-plot{display:grid;grid-template-columns:25px minmax(0,1fr);grid-template-rows:80px auto;gap:3px 5px;min-width:0}
.melody-pitches{display:flex;flex-direction:column;justify-content:space-between;padding:9px 0;font-size:9px;color:#8b7c98;line-height:1}
.melody-roll{min-width:0;position:relative;background:repeating-linear-gradient(to bottom,transparent 0,transparent 19px,#dcd3e54d 19px,#dcd3e54d 20px);border-inline:1px solid #ded6e8}
.melody-note{display:block;position:absolute;height:8px;min-width:1px;transform:translateY(-50%);border:1px solid #a390b8;border-radius:3px;background:linear-gradient(90deg,#c6badb,#dbd1e9);font-style:normal;overflow:hidden}
.melody-note>span{display:none}
.melody-scale{grid-column:2;display:flex;justify-content:space-between;gap:6px;font-size:9px;color:#8b7c98;font-variant-numeric:tabular-nums}
.melody-edit{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:40px;margin-top:9px;padding:9px 10px;background:#e5ddec;border:1px solid #b3a2c6;border-radius:7px;color:#584268;font-weight:600;font-size:12px}
.melody-edit>span:last-child{font-size:20px;font-weight:400}
.melody-dialog{width:min(960px,calc(100% - 32px));max-width:960px;max-height:calc(100dvh - 32px);padding:26px 30px;background:#f6f5f1;border-color:#c3b6cf;overflow:auto;overscroll-behavior:contain}
.melody-dialog-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:24px}
.melody-dialog h2{font-size:26px;letter-spacing:-.6px;font-weight:550;margin:5px 0 0;color:#59436a}
.editor-kicker{font-size:11px;color:#877992}
#close-melody{min-width:44px;min-height:44px;border:1px solid #d0c6da;border-radius:50%;font-size:25px;color:#756580;background:#fff9}
.melody-dialog .audio-player{max-width:380px;margin-bottom:26px}
.editor-melody{padding:22px 22px 16px;background:#f0ebf4;border:1px solid #d6cade;border-radius:12px}
.editor-melody .melody-plot{grid-template-rows:220px auto;grid-template-columns:32px minmax(0,1fr)}
.editor-melody .melody-note{height:17px;border-radius:4px}
.editor-melody .melody-note>span{display:block;overflow:hidden;text-align:center;font-size:10px;line-height:15px;white-space:nowrap;color:#69517c}
.editor-melody .melody-pitches,.editor-melody .melody-scale{font-size:11px}
.editor-preview-caption{display:flex;justify-content:space-between;gap:14px;font-size:11px;color:#8a7c93;margin:10px 4px 24px}
.editor-placeholder{display:flex;align-items:flex-start;gap:14px;padding:17px 20px;border:1px dashed #c6b6cf;border-radius:10px;color:#786483;background:#fbf9fc}
.editor-placeholder>span{font-size:25px}.editor-placeholder strong{font-size:13px;font-weight:550}.editor-placeholder p{font-size:12px;line-height:1.6;margin:6px 0 0;max-width:620px}
.editor-dummy-label{font-size:10px;color:#94869c;margin:16px 0 0;text-align:center}
@media(max-width:760px){.melody-dialog{padding:20px 16px}.melody-dialog-head{margin-bottom:18px}.melody-dialog h2{font-size:23px}.editor-melody{padding:14px 10px}.editor-melody .melody-plot{grid-template-rows:170px auto}.editor-melody .melody-note>span{display:none}.editor-placeholder{padding:13px;gap:10px}.editor-preview-caption{font-size:10px}}
@media(prefers-reduced-motion:reduce){.recording-state[data-phase=capturing] .capture-orbit:before{transform:none;transition:none}.recording-state[data-phase=capturing] .capture-orbit:after{display:none}.analysis-spinner{animation:none}}

.melody-note{container-type:inline-size}
.editor-melody .melody-note>span{display:none}
@container(min-width:28px){.editor-melody .melody-note>span{display:block}}

/* Klarer Einstieg in die erste Aufnahme. */
.audio-actions .record-start{display:flex;justify-content:flex-start;gap:12px;width:100%;min-height:54px;padding:9px 13px;border:1px solid #35624f;border-radius:10px;background:#3d7563;color:#fff;font-size:13px;font-weight:600;box-shadow:0 2px 4px #315f5026;transition:background .15s,box-shadow .15s}

.record-start svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.audio-actions .record-start:hover:not(:disabled){background:#315f50;box-shadow:0 3px 7px #315f5033}

/* Kurzzeitige Prüfhilfe: gelbe Markierung und Hinweis teilen dieselben 5 Sekunden. */
.needs-input,.block.needs-review{outline:3px solid #e8b619;outline-offset:3px;box-shadow:0 0 0 7px #ffda5280,0 0 22px #e7b81f38;animation:review-nudge .8s ease-out 2}
.block.needs-review{outline-style:dashed}
.input-hint,.block.needs-review>.input-hint{color:#684e09;background:#fff0a4;border:1px solid #e0bd41;border-radius:6px;padding:8px 9px;margin-top:10px}
@keyframes review-nudge{0%,100%{box-shadow:0 0 0 7px #ffda5280,0 0 22px #e7b81f38}50%{box-shadow:0 0 0 11px #ffda5240,0 0 28px #e7b81f55}}
.review-toast{position:fixed;top:20px;right:20px;z-index:80;display:flex;align-items:flex-start;gap:12px;width:350px;max-width:calc(100vw - 24px);padding:16px 13px 16px 16px;border:1px solid #dfbd49;border-radius:13px;background:#fff6cf;color:#5f4914;box-shadow:0 8px 28px #59470d26;animation:review-toast-in .2s ease-out}
.review-toast[hidden]{display:none}
.review-toast-icon{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#efd06a;color:#684a08;font-size:17px;font-weight:650}
.review-toast>div{flex:1;min-width:0}.review-toast strong{display:block;font-size:13px;line-height:1.4;font-weight:650}.review-toast p{font-size:12px;line-height:1.5;margin:5px 0 0}
#dismiss-review-toast{flex:none;display:grid;place-items:center;width:28px;height:28px;font-size:21px;padding:0;border-radius:5px;color:#816923}
@keyframes review-toast-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.review-toast{top:12px;right:12px}}
@media(prefers-reduced-motion:reduce){.needs-input,.block.needs-review,.review-toast{animation:none}}

/* Lokale Verknüpfung direkt in der kompakten Gruppenzeile. */
.group-head{gap:9px;flex-wrap:nowrap;margin-bottom:11px}
.group-label{width:auto;flex:none;font-size:12px;font-variant-numeric:tabular-nums;color:#819078;letter-spacing:.5px}
.local-logic{display:inline-flex;gap:2px;padding:3px;background:#edf0e7;border:1px solid #d6ddce;border-radius:8px;min-width:0}
.local-logic button{padding:6px 9px;min-height:30px;font-size:11px;line-height:1.3;border-radius:5px;white-space:nowrap;color:#7c8774}
.local-logic button[aria-pressed=true]{background:#fffef9;color:#395831;box-shadow:0 1px 3px #35462e1c;font-weight:600}
.group-head .remember-group{flex:none;margin-left:auto}.group-head .remove-group{flex:none}
.recent-item{display:grid;grid-template-columns:1fr;gap:8px}
.recent-logic{color:#7d8c71;justify-self:end;gap:5px}.recent-logic i{width:7px;height:9px}.recent-logic.connected:before{left:6px;right:6px}
.recent-chips{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
@media(max-width:760px){.group-head{gap:7px;margin-inline:0}.local-logic button{min-height:34px;padding-inline:8px}.group-head .remember-group,.group-head .remove-group{min-width:26px;padding-inline:1px}}

/* Verbindungen und Prüfhilfen zeichnen, ohne Platz im Kartenlayout zu beanspruchen. */
.blocks{position:relative}
.group-connectors{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}
.group-connectors path{fill:none;stroke:#829873;stroke-width:1.5;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.moving .group-connectors{visibility:hidden}
.input-hint,.block.needs-review>.input-hint,.query-group>.input-hint{position:fixed;z-index:70;margin:0!important;max-width:calc(100vw - 24px);padding:8px 10px;box-shadow:0 3px 10px #795c1426;pointer-events:none}
.block[data-type=genre].needs-review>.block-note,.block[data-type=language].needs-review>.block-note,.block[data-type=year].needs-review>.block-note{display:block}
.moving #add-group{border:1px dashed #749365;background:color-mix(in srgb,var(--drag-tone,var(--filter)) 20%,#fffdf3)}
.moving #add-group.drop-target{border:2px solid #527c43;background:color-mix(in srgb,var(--drag-tone,var(--filter)) 55%,#fffdf3);box-shadow:0 0 0 3px #74936533}

.block>.block-note:not(.input-hint){margin-top:auto;padding-top:7px}

/* Gleiche Zeichensprache für Gruppen und Bausteine. */
.group-choice{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px;font-size:12px;color:#64705e}
.logic-options,.local-logic{background:#edf2e9;border-color:#c5d2bc}
.logic-options button,.local-logic button{color:#52654c;font-weight:400}
.logic-options button[aria-pressed=true],.local-logic button[aria-pressed=true]{background:#e0ebda;color:#38533d;box-shadow:inset 0 0 0 1px #aec3a4,0 1px 2px #243a2c0d;font-weight:500}
.local-logic button{display:flex;align-items:center;justify-content:center;gap:5px;white-space:normal;min-width:0}
.logic-stroke{width:14px;flex:none;border-top:2px solid currentColor}
[data-local-op=ODER] .logic-stroke{border-top-style:dashed}
.query-group[data-local-logic=ODER] .group-connectors path{stroke-dasharray:4 4}
.recent-logic:before{left:6px;right:6px}
@media(max-width:760px){.local-logic{flex:0 1 auto}.local-logic button{padding-inline:5px;font-size:11px}.group-choice .logic-options{flex-wrap:wrap}.group-choice .logic-options button{flex:1;min-width:0;line-height:1.4}.group-choice{column-gap:6px}}

/* Helle Nachricht während des Platzierens. */
.move-help{background:#f8fbf7;color:#425647;border:1px solid #ccdcca;border-radius:13px;padding:14px 16px;box-shadow:0 5px 22px #334a3420}
.move-help:not([hidden]){display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;align-items:center}
.move-message-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e6f0e3;color:#5b7b5d}
.move-message-icon svg{width:21px;height:21px}
.move-message{display:grid;gap:4px;min-width:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.move-message strong{font-size:12px;font-weight:600;color:#38533d}
.move-help button{float:none;color:#4b6850;font-size:12px;font-weight:500;border:1px solid #c7d6c4;border-radius:7px;padding:8px 10px;min-height:36px;background:#fff}
@media(max-width:480px){.move-help{padding:12px}.move-help:not([hidden]){grid-template-columns:28px minmax(0,1fr);gap:9px}.move-message-icon{width:28px;height:28px;align-self:start}.move-help button{grid-column:2;justify-self:start}}

/* Erinnerungsbezogene Palette und einheitliche freie Textvergleiche. */
:root{--lyrics:#d6a2b8;--period:#d4b39d;--location:#a9c6ad;--context:#c2acd0}
.palette-section{font-size:11px;font-weight:600;line-height:1.5;text-transform:none;letter-spacing:0;margin-top:25px;color:#65725f}
.text-comparison{margin-bottom:7px}
.text-comparison .selected-value{font-size:11px;font-weight:400;line-height:1.4;padding:5px 20px 5px 0}
.text-comparison select{min-height:0}
.text-comparison:after{font-size:14px}
.text-comparison+.roles{margin-top:0}

/* Flüchtiger Vergleich ohne einen Baustein. */
.omit-preview{display:grid;place-items:center;flex:none;width:24px;height:26px;padding:3px;color:#60735b;border-radius:5px}
.omit-preview svg{width:18px;height:18px;pointer-events:none}
.omit-preview:hover,.omit-preview:focus-visible{background:#fff9;color:#395839}
.block-top .block-type{min-width:0;overflow-wrap:anywhere}.block-top .drag-handle,.block-top .remove-block{flex:none}
.block.omission-preview>:not(.block-top){opacity:.4}
.stock-preview{position:relative}
.stock-preview.is-omission-preview:after{content:attr(data-omission-label);position:absolute;right:0;bottom:calc(100% + 5px);font-size:10px;color:#5a7152;max-width:100%;line-height:1.4}
.stock-number{display:flex;align-items:center;min-height:31px}
.stock-number.has-change{gap:4px;font-size:clamp(16px,2vw,24px);letter-spacing:-.4px;white-space:nowrap}
.stock-before{font-size:.75em;color:#7e8976;font-weight:400}.stock-arrow{font-size:.7em;color:#8b9c7f}.stock-after{color:#365b3b}
.stock-preview.is-omission-preview .stock-cells{border-color:#9fb793;box-shadow:0 0 0 2px #cdddc333}
@media(max-width:360px){.stock-number.has-change{gap:2px}}

/* Größere, ruhigere Grundflächen und lesbarere Kartenhierarchie. */
:root{--period:var(--year)}
.query-group .block,.query-group .block[data-type=person]{width:262px;min-height:260px;padding:16px}
.query-group .block[data-type=melody]{width:290px;min-height:260px}
.block-top{min-height:40px;margin-bottom:12px;gap:6px}
.block-top .block-type{font-size:13px;font-weight:600;line-height:1.4;letter-spacing:0}
.block textarea.block-value{height:84px;min-height:84px;line-height:1.35}
.text-comparison{margin-bottom:10px}
.text-comparison .selected-value{font-size:13px;line-height:1.45;padding-block:6px;font-weight:500}
.block[data-type=person]>.roles{margin:0;padding-top:8px;margin-top:auto;font-size:12px}
.block[data-type=person]>.roles summary{padding-block:6px;min-height:36px;line-height:1.5}
.temporal-heading{flex:1;min-width:0}
.temporal-heading .selected-value{font-size:13px;font-weight:600;line-height:1.4;padding:4px 17px 4px 0;overflow-wrap:anywhere}
.temporal-heading select{min-height:0}
.year-fields{margin-top:9px;min-height:76px;align-items:flex-start}
.year-fields input{font-size:20px}.year-fields>span{padding-top:8px}
.include-switch[hidden]{display:none}
@media(max-width:760px){.query-group .block,.query-group .block[data-type=person],.query-group .block[data-type=melody]{width:100%}}

/* Zwei alternative Eingabewege für dasselbe Cover. */
.cover-mode{display:grid;grid-template-columns:1fr 1.5fr;gap:3px;padding:3px;margin-bottom:10px;border:1px solid #7296ac70;border-radius:8px;background:#fff3}
.cover-mode button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:32px;padding:5px;font-size:12px;border-radius:5px;color:#405d70}
.cover-mode button[aria-pressed=true]{background:#f4faffb8;box-shadow:inset 0 0 0 1px #7296ac70;color:#2f4d60;font-weight:550}
.cover-content{display:grid;min-width:0;min-height:104px}
.cover-content .cover-pick{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;height:104px;padding:8px;border:1px dashed #6189a0;border-radius:8px;font-size:13px;background:#fff3}
.cover-placeholder{font-size:28px;line-height:1}.cover-content .cover-image{height:86px;width:100%;object-position:center}
.cover-change{position:absolute;bottom:5px;right:5px;padding:3px 6px;background:#fffdf3eb;border-radius:4px;font-size:10px;color:#3d5b6e}
.block textarea.cover-description{height:104px;min-height:104px;font-size:15px;line-height:1.45;font-weight:450;letter-spacing:0;padding:6px;border:1px solid #7296ac70;background:#fff2;border-radius:7px}
.block textarea.cover-description::placeholder{font-size:14px;line-height:1.45;color:#506c7c}
.instrumentation-suggestions{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0 10px}
.instrumentation-suggestions button{border:1px solid #70895c70;background:#fff4;border-radius:6px;padding:5px 7px;font-size:11px;min-height:30px;color:#42583c}
.instrumentation-suggestions button:hover{background:#fff9}

.query-group .block[data-type=cover]{min-height:280px}
.cover-note{min-height:37px}.cover-filename{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Hinweis und Vorschau bilden eine gemeinsame, ruhige Abschlussaktion. */
.query-actions{flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:7px;margin:22px 0 32px 25px}
.query-actions #readiness{max-width:100%;text-align:right;line-height:1.5}
.query-actions #readiness:empty{display:none}
.query-actions .review-cue{justify-content:flex-end;gap:7px;padding:5px 2px;min-height:32px;max-width:100%;text-align:right;font-size:12px}
.query-actions #preview{display:inline-flex;align-items:center;justify-content:center;align-self:flex-end;gap:10px;max-width:100%;min-height:50px;padding:13px 19px;border:1px solid #9db597;border-radius:12px;background:#dfead8;color:#2e4d35;font-size:14px;font-weight:600;line-height:1.4;white-space:normal;box-shadow:0 2px 4px #3651370c;transition:background .15s,border-color .15s,box-shadow .15s}
#preview svg{width:20px;height:20px;flex:none}
.query-actions #preview:hover{background:#d4e3cb;border-color:#7f9c78;box-shadow:0 3px 8px #36513716}
.query-actions #preview:active{background:#cadcbe;box-shadow:inset 0 1px 3px #36513717}
@media(max-width:760px){.query-actions{margin-left:18px;gap:6px}.query-actions #preview{width:100%}.query-actions #readiness{width:100%;text-align:center}.query-actions .review-cue{justify-content:center;text-align:center;width:100%}}
@media(prefers-reduced-motion:reduce){.query-actions #preview{transition:none}}

/* Verbindungslinien behutsam verstärken: Bausteine 2px, Suchpfade optisch 2.5px. */
.group-connectors path{stroke-width:2}
.whole-query .query-group:not(:first-child):before{transform:scaleX(1.25);transform-origin:center}

/* Lokale Dateien als eigenständige Suchbausteine. */
:root{--audiofile:#8fbfd0;--midi:#b1acd9;--scoreimage:#c7c794}
.upload-preview{display:grid;align-items:center;min-height:112px;min-width:0;margin-bottom:10px}
.upload-placeholder{display:grid;justify-items:center;gap:8px;padding:12px;text-align:center;border:1px dashed #62767670;border-radius:9px;background:#ffffff25;min-height:112px}
.upload-placeholder>span{font-size:30px;line-height:1}.upload-placeholder p{font-size:12px;line-height:1.5;margin:0;max-width:190px}
.upload-pick{min-height:40px;padding:9px 12px;border:1px solid #667b7766;border-radius:8px;background:#ffffff66;color:var(--ink);font-size:13px;font-weight:550;width:100%}.upload-pick:hover{background:#ffffffaa}
.upload-image{width:100%;height:112px;object-fit:contain;border-radius:6px;background:#ffffff66}
.upload-filename{margin:0 0 10px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.midi-file{display:flex;align-items:center;justify-content:center;gap:10px;height:112px;background:#ffffff44;border:1px solid #8d88b744;border-radius:9px}.midi-file>span:first-child{font-size:32px}.midi-file strong{font-size:17px;font-weight:550}.midi-file>span:last-child{font-size:11px}
.upload-preview .audio-player{margin:0;min-width:0}.upload-preview .audio-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Jahresbereich: gleiche Abstände links und rechts von „bis“. */
.year-fields:has([data-year-end]){display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:12px}
.year-fields:has([data-year-end]) input{text-align:center}
.year-fields:has([data-year-end])>span{text-align:center}
/* Das Mikrofon pausiert dieselbe Aufnahme; der Stop-Button bleibt erreichbar. */
button.capture-orbit{width:44px;height:44px;padding:0;border:1px solid #ffffff55;cursor:pointer}
.capture-orbit:before,.capture-orbit:after{pointer-events:none}
button.capture-orbit:hover:not(:disabled){background:#2c614e}
button.capture-orbit:disabled{cursor:default}
.recording-state[data-phase=paused]{background:#eef2e8;border-color:#9aaa91}
.recording-state[data-phase=paused] .capture-orbit{background:#657c65}
.recording-state[data-phase=paused] .capture-orbit:before,.recording-state[data-phase=paused] .capture-orbit:after{animation:none;transform:none;opacity:0}
.capture-pause-badge{position:absolute;right:-5px;bottom:-4px;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#f7faf1;border:1px solid #8b9e7f;color:#4b634a;font-size:12px;font-weight:700}

/* Optional text recognition stays secondary to the recording itself. */
.lyrics-recognition{margin-top:10px;padding:9px 10px;border:1px solid #d8e1d2;border-radius:8px;background:#fbfcf8;color:#586858;font-size:11px;line-height:1.45}
.block .lyrics-actions button[data-accept-lyrics]{width:100%;border:1px solid #95ad79;border-radius:6px;background:#e0edce;color:#304a27;font-weight:650;line-height:1.4;white-space:normal}.block .lyrics-actions button[data-accept-lyrics]:hover{background:#d2e5b9;border-color:#799759}.block .lyrics-actions button[data-accept-lyrics]:focus-visible{outline:2px solid #698842;outline-offset:2px}
.lyrics-recognition p{margin:5px 0 0}.lyrics-language{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#526550}.lyrics-language select{max-width:165px;min-height:29px;padding:4px 22px 4px 7px;border:1px solid #bdcbb5;border-radius:5px;background:#fffdf8;color:var(--ink);font-size:11px}.lyrics-live{background:#f4f7f0}.lyrics-unavailable,.lyrics-error{border-color:#d4c6ad;background:#fffaf0;color:#79674b}.lyrics-no_lyrics{color:#697566}.lyrics-suggestions{border-color:#b9cead;background:#f6faef;color:#40573e}.lyrics-suggestions>p:first-child{margin-top:0;color:#355535}.lyrics-lines{display:grid;gap:6px;margin-top:8px}.lyrics-lines label{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:6px}.lyrics-lines input{margin-top:8px}.lyrics-lines textarea{width:100%;min-height:43px;resize:vertical;padding:6px;border:1px solid #bdceb5;border-radius:5px;background:#fffefb;color:var(--ink);font:inherit;line-height:1.4}.lyrics-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.lyrics-actions button{min-height:32px;padding:6px 8px;font-size:11px}.lyrics-actions .melody-primary{margin:0}

/* Drei ruhige Schritte: ein heller Ausschnitt, eine kurze Erklärung. */
.query-heading{align-items:center;gap:16px}.query-heading h1{min-width:0}
.tour-invite{display:flex;align-items:center;gap:10px;flex:none}.tour-invite-label{font-size:12px;color:#526c51;white-space:nowrap}
#start-tour{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid #93ad85;background:#dfeccd;color:#365633;font-size:23px;font-weight:550;box-shadow:0 0 0 3px #dfeccd44;animation:tour-invite 2.5s ease-in-out 2}
#start-tour:hover{background:#d1e4bd;border-color:#6c8e5b}
.tour-invite[data-seen=true] #start-tour{animation:none;box-shadow:none;background:transparent;border-color:#c4cebd;color:#708069}
.tour-invite[data-seen=true] .tour-invite-label{display:none}
@keyframes tour-invite{50%{box-shadow:0 0 0 5px #dfeccd22}}
#search-tour{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden;color:#304733}
#search-tour::backdrop{background:transparent;backdrop-filter:none}
.tour-spotlight{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.tour-shade{fill:#172c22ba}.tour-outline{fill:none;stroke:#d9ebba;stroke-width:2}
.tour-panel{position:absolute;box-sizing:border-box;padding:20px 22px 18px;background:#fcfdf6;border:1px solid #dce4cf;border-radius:17px;box-shadow:0 14px 48px #142a2840;max-height:calc(100% - 120px);overflow:auto}
.tour-top{display:flex;align-items:center;gap:12px;margin-bottom:15px}#tour-progress{font-size:11px;letter-spacing:1px;font-variant-numeric:tabular-nums;color:#7b8c6d}
.tour-dots{display:flex;gap:5px}.tour-dots i{width:5px;height:5px;border-radius:50%;background:#d5deca}.tour-dots i.current{width:18px;border-radius:4px;background:#7d9c66}
#close-tour{margin-left:auto;width:30px;height:30px;border-radius:50%;font-size:23px;line-height:1;color:#73816a}#close-tour:hover{background:#edf2e4}
#tour-title{font-size:21px;line-height:1.25;font-weight:550;letter-spacing:-.4px;margin:0 0 12px}
#tour-description{font-size:14px;line-height:1.65;margin:0;color:#617058}
.tour-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}.tour-navigation button{font-size:13px;min-height:42px;padding:10px 15px;border-radius:9px}
#tour-back{color:#74816c}#tour-back:disabled{visibility:hidden}#tour-next{background:#dfeaca;border:1px solid #b1c598;color:#36522c;font-weight:600;min-width:97px}#tour-next:hover{background:#d2e3b8}
@media(max-width:760px){.query-heading{gap:10px}.query-heading h1{font-size:clamp(26px,5vw,32px)}.tour-invite-label{display:none}#start-tour{width:40px;height:40px;font-size:21px}.tour-panel{padding:15px 17px}.tour-top{margin-bottom:10px}#tour-title{font-size:19px;margin-bottom:9px}#tour-description{font-size:13px;line-height:1.55}.tour-navigation{margin-top:16px}}
@media(prefers-reduced-motion:reduce){#start-tour{animation:none}}

/* Kleine Beispiele bleiben ausschließlich in der Erklärung. */
.tour-example{margin-top:14px;padding-top:12px;border-top:1px solid #e3e8db}
.tour-example[hidden]{display:none}.tour-example-label{display:block;color:#849277;font-size:10px;margin-bottom:7px}
.tour-example-items{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.tour-example-person,.tour-example-title{background:color-mix(in srgb,var(--tone) 60%,#fffdf3);border:1px solid color-mix(in srgb,var(--tone) 85%,#899382);border-radius:6px;padding:6px 9px;font-size:12px;color:#374536}
.tour-example-operator{font-size:10px;color:#728368;letter-spacing:.5px}
.tour-example-path{font-size:12px;padding:6px 9px;border:1px solid #b8c7ac;border-radius:6px;background:#eff4e8;color:#4b6540}

.tour-definitions{margin:14px 0 0;padding-top:12px;border-top:1px solid #e3e8db;font-size:12px;line-height:1.5}.tour-definitions[hidden]{display:none}
.tour-definitions dt{font-weight:600;color:#48603e;margin-top:9px}.tour-definitions dt:first-child{margin-top:0}.tour-definitions dd{margin:2px 0 0;color:#6b7960}

/* Suchpfadname und lokale Verknüpfung bilden ein gemeinsames Tutorial-Ziel. */
.group-combination{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;min-width:0}
.group-combination .group-label{white-space:nowrap;letter-spacing:0}

/* Die erste Einladung sitzt am Titel; nach dem Rundgang wandert die Hilfe nach rechts. */
.query-heading{justify-content:flex-start}
.tour-invite{min-height:48px;position:relative}
.tour-invite-label{order:2;font-size:13px;color:#4f6945}
#start-tour{order:1;flex:none;width:42px;height:42px;background:#dbecc0;border-color:#8eaa70;box-shadow:0 0 0 0 #a9c28a00;font-size:23px}
.tour-invite[data-seen=true]{margin-left:auto}
.tour-invite[data-seen=true] #start-tour{width:40px;height:40px;font-size:21px}
@keyframes tour-invite{0%,100%{box-shadow:0 0 0 0 #a9c28a00}50%{box-shadow:0 0 0 5px #a9c28a30}}
@media(max-width:1100px){.tour-invite-label{display:none}}
@media(max-width:760px){.tour-invite{min-height:44px}#start-tour{width:40px;height:40px;font-size:21px}.tour-invite[data-seen=true] #start-tour{width:40px;height:40px;font-size:21px}}

.tour-invite #start-tour{transform-origin:top left}

/* D01 integration: compact provenance, no result or editor layout. */
.data-status{font-size:11px;color:#708069;margin:-12px 0 20px;line-height:1.5}
.capability-status{margin-top:auto;padding:8px 0 0;text-align:left;font-size:10px;line-height:1.5;color:#53694a;display:block}
.capability-status:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#8eaa70;margin-right:6px}
.capability-status[data-status=open]{color:#826533}.capability-status[data-status=open]:before{background:#cda85c}
.capability-status[data-status=partial]:before{background:#aca969}
.coverage-list p{padding-bottom:12px;border-bottom:1px solid #dce4d5;font-size:13px;line-height:1.6}
#info-dialog{overflow-wrap:anywhere}
.skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;padding:0;overflow:hidden}
#results{scroll-margin-top:20px}#results .results-summary{font-size:14px;line-height:1.6}
.search-buttons{display:flex;align-items:center;justify-content:flex-end;gap:9px}.search-result-status{margin:0 0 14px;padding:12px 14px;border-radius:9px;font-size:13px;line-height:1.55}.search-result-status--stale{border:1px solid #bd9a46;background:#fff8df;color:#70531c}.search-result-view{border-top:1px solid var(--line)}#results .result-view{padding:1.25rem 0 2.5rem;max-width:none}.query-actions #readiness[data-search-status=loading]{color:#415e48}.query-actions #readiness[data-search-status=stale]{color:#70531c}
#results .result-view{display:block;grid-template-columns:none;gap:0}
.search-proof{margin:1rem 0 0;padding:1rem;border-top:1px solid var(--line);color:var(--muted);font-size:.84rem;line-height:1.55}.search-proof summary{cursor:pointer;color:var(--green);font-weight:650}.search-proof>p{max-width:70ch}.search-proof h2{font-size:.9rem;color:var(--ink);margin:1rem 0 .35rem}.search-proof__list{display:grid;grid-template-columns:minmax(8rem,auto) minmax(0,1fr);gap:.25rem .75rem;margin:.5rem 0}.search-proof__list div{display:contents}.search-proof__list dt{font-weight:650;color:var(--ink)}.search-proof__list dd{margin:0;overflow-wrap:anywhere}.search-proof__signal{padding:.65rem 0;border-top:1px solid var(--line)}
@media(max-width:520px){.search-proof__list{grid-template-columns:1fr;gap:.1rem}.search-proof__list dt{margin-top:.45rem}}
@media(max-width:760px){.search-buttons{width:100%;flex-wrap:wrap}.search-buttons #preview{flex:1 1 190px}.search-buttons #cancel-search{flex:1 1 130px;min-height:48px}.search-result-status{font-size:12px}}
#backend-panel[hidden]{display:none}

#melody-editor-dialog{width:min(1180px,100vw - 28px);height:min(920px,calc(100vh - 28px));max-width:none;max-height:none;border:1px solid #b8cbb4;border-radius:16px;padding:0;background:#f7f8f3;color:var(--ink);overflow:hidden;box-shadow:0 20px 70px #12241855}#melody-editor-dialog::backdrop{background:#17251ccc}.melody-dialog-head{min-height:72px;padding:13px 18px 10px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}.melody-dialog-head .eyebrow{margin:0 0 2px}.melody-dialog-head h2{font-size:20px;margin:0;font-weight:550}.melody-dialog-actions{display:flex;align-items:center;gap:8px}.melody-dialog-actions button{min-height:38px;padding:8px 12px;border:1px solid #b7c9af;border-radius:8px;font-size:13px}.melody-dialog-actions .primary{background:#dceacb;color:#315433;font-weight:600}.melody-dialog-actions .secondary{background:#fffdf8}.melody-dialog-actions #melody-editor-close{font-size:25px;line-height:1;padding:4px 9px;color:#647062;border-color:transparent}#melody-editor-status{margin:0;padding:8px 18px;font-size:12px;color:#586a57;border-bottom:1px solid #dbe3d7}#melody-editor-frame{display:block;width:100%;height:calc(100% - 122px);border:0;background:#f7f8f3}@media(max-width:760px){#melody-editor-dialog{width:100vw;height:100vh;max-height:none;border-radius:0;border:0}.melody-dialog-head{align-items:flex-start;padding:10px 12px;gap:8px}.melody-dialog-head h2{font-size:17px}.melody-dialog-actions{gap:4px}.melody-dialog-actions button{min-height:34px;padding:6px 8px;font-size:12px}#melody-editor-status{padding:7px 12px}#melody-editor-frame{height:calc(100% - 116px)}}

#backend-panel{max-width:1448px;margin:0 auto 60px;padding:22px;background:#f5f7ee;border:1px solid #ced8c3;border-radius:12px;color:#435b3c}
.backend-panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.backend-panel-head h2{font-size:18px;margin:5px 0}.backend-kicker{font-size:10px;letter-spacing:1px}
#backend-panel p{font-size:12px;line-height:1.6;max-width:780px}#backend-form{display:flex;gap:14px;align-items:end;flex-wrap:wrap}#backend-form label{display:flex;flex-direction:column;gap:6px;font-size:11px;flex:1 1 180px;min-width:0}#backend-form input,#backend-form select{min-width:0;width:100%;padding:10px;border:1px solid #bdcbb1;border-radius:6px;background:#fffef9;font-size:13px}#backend-receipt{max-height:280px;overflow:auto;padding:16px;background:#fffef9;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}#backend-health[data-state=unavailable]{color:#856833}
@media(max-width:760px){#backend-panel{margin:0 16px 70px;padding:16px}.backend-panel-head{align-items:start;flex-direction:column}#backend-form{flex-direction:column;align-items:stretch}#backend-form label{flex:auto}}

/* D03 melody: one generous workspace, progressive secondary controls. */
.placement-melody{width:510px;flex:0 1 510px;min-width:0}
.query-group .placement-melody .block[data-type=melody]{width:100%;min-width:0;min-height:290px;padding:18px;background:linear-gradient(145deg,#eff8f3,#e5f2ed);border-color:#a1c7b7;border-radius:16px}
.block[data-type=melody] .block-top{margin-bottom:16px}
.block[data-type=melody] .block-type{font-size:15px}
.melody-workspace{display:grid;gap:12px;min-width:0}
.block[data-type=melody] .melody-start{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:190px;text-align:center;padding:12px 4px}
.block[data-type=melody] .record-start{display:flex;align-items:center;gap:14px;width:auto;min-height:64px;padding:7px 20px 7px 8px;border:1px solid #89b4a3;border-radius:40px;background:#cce6d9;color:#254f40;box-shadow:0 3px 12px #427e5010;font-size:16px;font-weight:650}
.start-microphone{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:50%;background:#f7fcf8}
.start-microphone svg,.capture-orbit svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.melody-start p{font-size:12px;line-height:1.5;color:#5a7669;margin:16px 0 5px}
.block[data-type=melody] .melody-import{font-size:12px;text-decoration:underline;text-underline-offset:4px;min-height:40px;padding:8px;color:#456b5a}
.melody-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:14px;padding-top:8px;border-top:1px solid #a5c7b740;position:relative}
.block[data-type=melody] .record-again,.melody-options>summary{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:#446d5d;min-height:38px;padding:6px 0;list-style:none;cursor:pointer}
.melody-options>summary::-webkit-details-marker,.lyrics-suggestions>summary::-webkit-details-marker{display:none}
.melody-options[open]{width:100%}.melody-footer:has(.melody-options[open]){flex-wrap:wrap}.melody-options[open]>summary{justify-content:space-between}
.melody-options-body{border:1px solid #b5cebf;border-radius:10px;background:#f6faf6;padding:12px;display:grid;gap:8px;font-size:12px}
.melody-options-body .lyrics-language{display:grid;gap:7px;font-size:12px;margin:0}
.melody-options-body .lyrics-language select{display:block;width:100%;min-width:0;max-width:100%;height:40px;padding:6px;background:#fff;border:1px solid #c0d4c8;border-radius:7px;font-size:12px}
.melody-options-body>button{padding:9px;border:1px solid #bacfc2;border-radius:6px;text-align:left}
.melody-options-body .small{margin:0;font-size:11px}.melody-capability-slot .capability-status{margin:0}
.block[data-type=melody] .audio-player{margin:0;padding:12px;border-color:#bfd6ca;background:#ffffffab;box-shadow:none}
.block[data-type=melody] .audio-label{font-size:11px;color:#668174;font-weight:400;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.block[data-type=melody] .audio-play{width:40px;height:40px;border:1px solid #9abfaf;background:#d5e9df;color:#315c4a}
.block[data-type=melody] .melody-preview{margin:0;padding:12px 14px 8px;background:#f9fbf8;border:1px solid #c1d2c8;border-radius:12px}
.block[data-type=melody] .melody-preview-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:600;margin:0 0 8px}
.melody-preview-head small{font-weight:400;color:#79837b;font-size:11px;white-space:nowrap}
.block[data-type=melody] .melody-edit{width:auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:5px 9px;border:1px solid #c9cbe0;border-radius:7px;background:#eeedf6;color:#595d84;font-size:11px;white-space:nowrap}
.block[data-type=melody] .melody-roll{height:88px}.melody-in-search{font-size:11px;font-weight:500;color:#547762;margin:6px 0 0;display:flex;gap:6px;align-items:center}
.melody-processing{display:flex;align-items:center;gap:14px;min-height:115px;padding:18px;color:#4a6f5e;font-size:14px}
.melody-processing .analysis-spinner{width:22px;height:22px;flex:none}.melody-processing small{display:block;font-size:11px;color:#6b8577;font-weight:400;margin-top:7px}
.melody-error{padding:12px;background:#fff5d7;border:1px solid #e4cf94;border-radius:10px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.melody-error p{margin:0 0 8px}.block[data-type=melody] .melody-error button{border:1px solid #d1b970;border-radius:7px;padding:9px 12px;font-weight:600;background:#ffedba}
.block[data-type=melody] .recording-state.active{display:block;margin:0;padding:16px 18px;background:#f5faf5;border:1px solid #afcebd;border-radius:12px;overflow:hidden}
.capture-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.capture-heading .capture-copy strong{font-size:13px;font-weight:550}.capture-heading .capture-time{font-size:14px;color:#527661}
.capture-visual{display:flex;align-items:center;gap:28px;margin:24px 8px 17px;min-width:0}
.block[data-type=melody] .capture-orbit{flex:none;width:48px;height:48px;border:1px solid #8db69d;background:#d4eadb;color:#356349}
.capture-hint{font-size:11px;color:#6c8475;text-align:center;margin:10px 0 17px}
.capture-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}.capture-actions button{font-size:12px;padding:10px;min-height:40px}.block[data-type=melody] .melody-finish{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#d2e9dc;border:1px solid #9dbfaa;border-radius:8px;color:#335e49;font-weight:600}
.block[data-type=melody] .lyrics-recognition{margin:0;padding:0;border:1px solid #c7c9df;border-radius:11px;background:#f3f2fa;overflow:hidden}
.lyrics-suggestions>summary{display:flex;align-items:center;gap:11px;padding:12px;list-style:none;cursor:pointer;color:#585c7d;min-height:62px}.lyrics-discovery-icon{display:grid;place-items:center;flex:none;width:30px;height:32px;background:#e3e2f2;border-radius:8px;font-size:25px}.lyrics-suggestions summary strong{font-size:12px}.lyrics-suggestions summary small{display:block;font-size:11px;margin-top:3px;color:#797c96}.disclosure-chevron{margin-left:auto;font-size:18px}.lyrics-suggestions[open] .disclosure-chevron{transform:rotate(180deg)}
.lyrics-suggestions .lyrics-lines{padding:0 12px}.lyrics-suggestions .lyrics-actions{padding:10px 12px 12px;gap:8px}.lyrics-suggestions .lyrics-lines textarea{font-size:13px;line-height:1.5;background:#fff;min-height:62px;resize:vertical}.block[data-type=melody] .lyrics-actions button{min-height:38px;font-size:12px}.block[data-type=melody] .lyrics-actions button[data-accept-lyrics]{background:#d8eadb;color:#315b3f;border:1px solid #9dbb9f}
.melody-aux-status{font-size:11px;color:#728276;margin:0}
@media(max-width:760px){.placement-melody{width:100%;flex:0 1 auto}.query-group .placement-melody .block[data-type=melody]{padding:14px}.melody-start .record-start{font-size:14px;gap:9px;padding-right:14px}.block[data-type=melody] .melody-preview-head{flex-wrap:wrap}.melody-options-body{padding:10px}.block[data-type=melody] .recording-state.active{padding:13px}.capture-visual{gap:22px;margin-inline:4px}}
@media(prefers-reduced-motion:reduce){.melody-processing .analysis-spinner{animation:none}.capture-orbit:before,.capture-orbit:after{transition:none}}

.audio-waveform{position:relative;height:52px;min-width:0;border-radius:5px}
.audio-waveform__svg{display:block;width:100%;height:100%;fill:currentColor;overflow:hidden}
.audio-waveform__bars{color:#b4cbbf}.audio-waveform__played{color:#4d8a6e;clip-path:inset(0 calc(100% - var(--progress,0%)) 0 0)}
.audio-timeline .audio-waveform__seek{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:ew-resize}
.audio-waveform:focus-within{outline:2px solid #527e64;outline-offset:3px}
.audio-waveform__status{position:absolute;inset:0;display:grid;place-content:center;font-size:10px;color:#6f8578;text-align:center;pointer-events:none;background:#f6faf7}
.audio-waveform__status:empty{display:none}
.audio-waveform[data-state=error]{height:60px}.audio-waveform[data-state=error] .audio-waveform__status{bottom:22px}.audio-timeline .audio-waveform[data-state=error] .audio-waveform__seek{opacity:1;top:auto;height:22px}
.recording-waveform{flex:1;min-width:0;height:64px}.recording-waveform .audio-waveform__bars{color:#81b79c}.recording-waveform .audio-waveform__played{display:none}
.recording-state[data-phase=paused] .recording-waveform{opacity:.45}

.block[data-type=melody] .record-start>span:last-child{min-width:0;white-space:nowrap}.block[data-type=melody] .record-start svg{width:24px;height:24px}@media(max-width:360px){.block[data-type=melody] .record-start{font-size:13px;gap:8px;padding-right:12px}.start-microphone{width:38px;height:38px}}

.melody-processing .analysis-spinner{border-color:#b9d4c5;border-top-color:#568569}.block[data-type=melody] .recording-state[data-phase=paused] .capture-orbit{background:#e0e7df;color:#526d59;border-color:#b4c3b6}

/* Compact, clearly operable melody options; shared stronger disclosure icon. */
.disclosure-icon{display:inline-block;width:18px;height:18px;flex:none;vertical-align:middle;transition:transform .18s ease}
.roles[open]>summary>.disclosure-icon{transform:rotate(180deg)}
.select-field:after{content:'';width:16px;height:16px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.melody-footer{display:block;padding-top:10px}
.melody-footer>.record-again{margin:0 0 8px}
.melody-options,.melody-options[open]{width:100%;border:1px solid #afcdbd;border-radius:10px;background:#f3f9f5;overflow:hidden}
.melody-options>summary{min-height:44px;padding:8px 11px;gap:9px;justify-content:flex-start;font-size:12px;font-weight:600;color:#436b59}
.melody-options[open]>summary{justify-content:flex-start;border-bottom:1px solid #d9e7de}
.melody-options>summary:hover{background:#e7f2eb}
.options-symbol{width:19px;height:19px;flex:none}
.options-toggle{margin-left:auto;display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#e0eee5;color:#50795f}
.melody-options[open] .options-toggle .disclosure-icon{transform:rotate(180deg)}
.melody-options-body{padding:8px;border:0;background:transparent;border-radius:0;gap:6px}
.melody-options-body .lyrics-language,.melody-options-body>.melody-replace-file{display:flex;align-items:center;gap:10px;min-height:46px;margin:0;padding:8px 10px;border:1px solid #d4e2d9;border-radius:7px;background:#fffdfb;color:#4b6858;font-size:12px}
.option-icon{display:grid;place-items:center;width:21px;height:21px;flex:none;color:#638571}.option-icon svg{width:19px;height:19px}.language-symbol{font-size:15px;font-weight:650;letter-spacing:-1px}
.melody-options-body .lyrics-language select{flex:1;min-width:0;width:0;height:30px;padding:2px 22px 2px 0;border:0;background:transparent;font-size:12px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2350795f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-size:16px;background-repeat:no-repeat;background-position:right center}
.melody-replace-file>span:last-child{text-align:left;line-height:1.4}
@media(prefers-reduced-motion:reduce){.disclosure-icon{transition:none}}

.melody-input-alternatives{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin-top:19px;max-width:100%}
.block[data-type=melody] .melody-input-alternatives button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 13px;background:#f6fbf7;border:1px solid #bdd7c9;border-radius:9px;color:#527765;font-size:12px;font-weight:500}
.melody-input-alternatives svg{width:19px;height:19px;flex:none}
@media(max-width:360px){.block[data-type=melody] .melody-input-alternatives button{font-size:11px;padding:8px;gap:6px}.melody-input-alternatives{gap:7px}}

.block[data-type=melody] button.melody-retry-cue{background:#ffe178;color:#674b0f;border-color:#ddb12d;border-radius:9px;box-shadow:0 0 0 4px #ffda5270,0 0 20px #e7b81f40;animation:melody-retry-glow 1.3s ease-in-out infinite}
.block[data-type=melody] .record-start.melody-retry-cue{border-radius:40px}
@keyframes melody-retry-glow{50%{box-shadow:0 0 0 7px #ffda5245,0 0 26px #e7b81f66}}
@media(prefers-reduced-motion:reduce){.block[data-type=melody] button.melody-retry-cue{animation:none}}

#melody-editor-dialog{height:calc(100dvh - 16px);width:min(1320px,calc(100vw - 20px));max-height:calc(100dvh - 16px)}
#melody-editor-dialog[open]{display:flex;flex-direction:column}.melody-dialog-head{flex:none;min-height:62px;margin:0;padding:10px 16px}.melody-dialog-head h2{display:flex;align-items:center;gap:9px;font-size:18px}.melody-heading-symbol{font-size:26px;color:#619b86;font-weight:500}
#melody-editor-status:empty{display:none}#melody-editor-status{flex:none;color:#895d21;background:#fff3cb;border:0}#melody-editor-frame{flex:1;min-height:0;height:auto}#melody-editor-frame[hidden]{display:none}
@media(max-width:760px){#melody-editor-dialog{width:100vw;height:100dvh;max-height:100dvh}.melody-dialog-head{flex-wrap:wrap;gap:6px}.melody-dialog-head h2{font-size:16px}.melody-dialog-actions{margin-left:auto}}

/* Cards in a desktop row share a centerline; narrow layouts keep their full width. */
@media(min-width:761px){.blocks{align-items:center}}

/* Two-column material shelf; history belongs beside the search action. */
@media(min-width:761px){
 main{grid-template-columns:350px minmax(0,1fr);gap:32px}
 .materials{padding-right:24px}
}
#query{min-width:0}
#palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#palette .palette-section{grid-column:1/-1;margin:15px 0 2px}
#palette .palette-section:first-child{margin-top:0}
#palette .material{height:100%;min-height:58px;margin:0;padding:10px 9px;gap:7px}
#palette .material-symbol{min-width:22px;font-size:19px}
#palette .material-name{font-size:12px;line-height:1.4}
#palette .material-plus{font-size:13px}
.query-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:28px;margin:24px 0 32px 25px}
.query-bottom .recent{grid-column:auto;padding:0;min-width:0}
.query-bottom .recent h2{font-size:12px;margin:0 0 12px;color:var(--muted);font-weight:550}
.query-bottom .recent #recent-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:9px}
.query-bottom .recent #recent-groups>.small{margin:0;line-height:1.5}
.query-bottom .query-actions{margin:0;min-width:180px;max-width:270px;gap:7px}
@media(min-width:761px) and (max-width:1200px){main{grid-template-columns:290px minmax(0,1fr);gap:24px;padding-inline:28px}.materials{padding-right:18px}#palette .material{padding:9px 7px;gap:5px}#palette .material-symbol{min-width:19px}#palette .material-plus{display:none}}
@media(max-width:1050px){.query-bottom{grid-template-columns:minmax(0,1fr);gap:22px}.query-bottom .query-actions{grid-row:1;justify-self:end;max-width:100%}.query-bottom .recent{grid-row:2}}
@media(max-width:760px){.query-bottom{margin-left:18px}.query-bottom .query-actions{width:100%}#palette .material{min-height:52px}.query-bottom .recent #recent-groups{grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr))}}

/* Planned concepts can be placed and moved, but their search input is inactive. */
#palette .material-planned{background:#f0f1ed;border:1px dashed #b5bcb0;color:#626d60}
#palette .material-planned:hover{background:#e8ebe3;border-color:#87957e}
#palette .material-planned .material-symbol{color:#7d8878}
#palette .material-planned .material-name{display:flex;flex-direction:column;gap:3px}
.material-state{font-size:10px;font-weight:450;color:#737b6e;line-height:1.2}
.block[data-planned=true]{border-style:dashed}
.planned-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;flex:1;min-height:150px;padding:16px 12px;background:#ffffff50;border:1px dashed #7b827d55;border-radius:9px;text-align:center}
.planned-symbol{font-size:28px;color:#657062}
.planned-preview p{font-size:12px;line-height:1.6;margin:0;color:#4f5a50}
.planned-preview :is(button,select){max-width:100%;min-width:0;min-height:36px;padding:7px 9px;border:1px solid #7b827d44;border-radius:7px;background:#ffffff50;color:#667063;font-size:11px;opacity:1;cursor:default}
.planned-notice{display:flex;align-items:flex-start;gap:7px;margin:14px 0 0;font-size:11px;line-height:1.5;color:#53604f}
.planned-notice>span{flex:none;font-size:15px;line-height:1.1}

/* A stable, quiet help action and a compact library of reusable paths. */
.materials summary{font-size:22px;line-height:1.3}
.query-heading{align-items:center;flex-wrap:wrap;gap:12px 20px}
.query-heading .tour-invite{margin-left:auto;min-height:0;gap:0;flex:none}
.query-heading .tour-invite #start-tour{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;height:auto;min-height:38px;padding:8px 11px;border:1px solid #cbd4c3;border-radius:9px;background:#edf2e7;color:#53654a;font-size:12px;font-weight:500;line-height:1.3;box-shadow:none;animation:none;transform:none;transition:background .2s,border-color .2s}
.query-heading .tour-invite[data-seen=true] #start-tour{background:transparent;border-color:#d9ded4;color:#687360}
.query-heading .tour-invite #start-tour:hover{background:#e4eddd;border-color:#a6b59a;color:#3e5436}
.query-heading .tour-invite #start-tour svg{width:18px;height:18px;flex:none}
.query-heading .tour-invite #start-tour:focus-visible{outline:2px solid #708561;outline-offset:3px}
.query-bottom .recent #recent-groups,.query-bottom .recent #saved-groups{display:flex;align-items:flex-start;flex-wrap:wrap;gap:9px}
.path-tile{display:inline-flex;align-items:stretch;max-width:100%;width:fit-content;border:1px solid #d9dfd2;border-radius:11px;background:#fcfdf8}
.path-tile .recent-item{width:auto;max-width:100%;min-width:0;flex:0 1 auto;border:0;background:transparent;padding:9px;cursor:grab;touch-action:none}
.path-tile .recent-item:active{cursor:grabbing}
.path-tile .recent-item:hover{background:#f0f4ea}
.path-tile .recent-chips{gap:5px}
.path-tile .recent-chip{padding:6px 8px}
.path-bookmark{display:grid;place-items:center;flex:none;align-self:flex-start;width:32px;height:34px;min-height:34px;padding:7px;margin:4px 3px 0 0;border:0;border-radius:7px;background:transparent;color:#819173}
.path-bookmark:hover{background:#e8efdf;color:#456035}
.path-bookmark svg,.remember-group svg{width:17px;height:19px}
.path-bookmark[aria-pressed=true] svg,.remember-group[aria-pressed=true] svg{fill:#d4e2c5;stroke:#587146}
.group-head .remember-group{display:grid;place-items:center}
.saved-paths{margin-top:22px}
#saved-groups>.small{margin:0;font-size:11px;line-height:1.5}
#saved-path-status:empty{display:none}
@media(max-width:760px){.materials summary{font-size:20px}.query-heading .tour-invite{margin-left:0}.query-heading .tour-invite #start-tour{font-size:11px;min-height:36px}.path-tile{max-width:100%}}
@media(prefers-reduced-motion:reduce){.query-heading .tour-invite #start-tour{transition:none}}
/* Evaluation session status; deliberately compact so the confirmed D03 layout stays intact. */
.study-log-status{position:fixed;right:12px;bottom:94px;z-index:1000;padding:.38rem .62rem;border:1px solid #ccd2d8;border-radius:999px;background:#fff;color:#47515b;font-size:.76rem;box-shadow:0 2px 12px #14202b1a}.study-log-status[data-status="error"]{border-color:#a63b32;color:#842d27}.study-invitation{min-height:100vh;display:grid;place-items:center;padding:2rem}.study-invitation section{max-width:34rem;text-align:center;padding:2.5rem;border:1px solid #d9dde1;border-radius:1rem;background:#fff}.study-invitation .brand-mark{font-size:2rem}
.study-job-status{bottom:54px}

.masthead nav>.study-log-status{position:static;align-self:center;box-shadow:none}
@media(max-width:700px){.masthead nav{flex-wrap:wrap;justify-content:flex-end;gap:4px 14px}.masthead nav>.study-log-status{font-size:.65rem;padding:.2rem .4rem}}
