/* Church workshop: all artwork and fonts are local; decoration never drives audio. */
:root{--bg:#0d1726;--panel:#172538;--gold:#e4c17e;--muted:#c2c6ce;--border:#66583f;--fg:#f5eee2;--wine:#642c3c;--paper:#faf5ea;--ink:#29251f;color-scheme:dark;font-family:"Segoe UI",Arial,sans-serif}
body{background:#0d1726;min-height:100vh;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(105deg,rgba(10,18,29,.87),rgba(10,18,29,.83)),url('./photos/background-church.jpg') left center/cover no-repeat;filter:saturate(.35)}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#0d172600 36%,#0d172670),url('./photos/background-bells.jpg') right center/auto 100% no-repeat;opacity:.075;filter:saturate(.35)}
main{position:relative;max-width:1420px;padding:0 36px 210px;isolation:isolate}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:400;color:#f5e6c9;letter-spacing:.005em;line-height:1.25}
h1{font-size:clamp(28px,3.2vw,42px)}h2{font-size:26px}p{color:var(--muted)}a{color:#edcd91}
button,select,input:not([type=range]):not([type=checkbox]):not([type=file]){border-color:#615944;background:#192a3d;border-radius:10px;color:var(--fg)}
button{position:relative;transition:background .2s,border-color .2s,box-shadow .2s;min-height:40px}
button:hover:not(:disabled){background:#29394a;border-color:#caa668;box-shadow:0 0 18px #d7ad5520}
button:active:not(:disabled){background:#3b3340}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #f6cf7d;outline-offset:4px}
select option{background:#192a3d;color:#f5eee2}input[type=range],input[type=checkbox]{accent-color:#d3b06b}
::selection{background:#9c733f;color:#fff}
.primary{color:#241a12;background:linear-gradient(120deg,#f1d79a,#cda565);border-color:#ecd092;box-shadow:inset 0 1px #fff7,0 5px 20px #0003}
.primary:hover:not(:disabled){background:linear-gradient(120deg,#ffe9b5,#e7c583);color:#241a12}
.eyebrow,.edition{color:#d9bc83;letter-spacing:.16em}
header{height:auto;min-height:116px;gap:14px;flex-wrap:wrap;padding:24px 0 20px;border-top:3px solid #bc965c;position:relative}
.brand{gap:14px;align-items:center;letter-spacing:.06em;font-size:clamp(15px,1.6vw,21px);color:#f6e5bc}
.brand>img{width:48px;height:54px;object-fit:contain;padding:4px;background:#fff;border:1px solid #b99561;border-radius:11px;filter:drop-shadow(0 3px 9px #0004);flex-shrink:0}
.brand small{font:13px/1.5 "Segoe UI",Arial,sans-serif;letter-spacing:.04em;color:#cbc7bb;margin-top:6px}
.factory-badge{margin-left:auto;border-left:1px solid #9a794f5c;padding-left:20px;gap:12px}
.factory-badge img{width:52px;height:40px}.factory-badge span{font-family:Georgia,serif;font-size:21px;font-weight:400}.factory-badge small{font:11px/1.5 "Segoe UI",Arial,sans-serif;color:#c2c6ce;max-width:none;white-space:nowrap}
.language-picker{font-size:11px}.language-picker select{max-width:118px}
#effectsToggle{font-size:12px;white-space:nowrap;min-height:38px;padding:7px 10px;color:#edcd91}
#effectsToggle[aria-pressed=false]{color:#c2c6ce}.edition{display:none}
.page-history{gap:4px}.page-history button{padding:5px 10px;min-height:36px}
nav{gap:5px;border:1px solid #b58b4d50;border-radius:12px;padding:7px;background:linear-gradient(110deg,#1e3043,#172335);box-shadow:0 8px 28px #0003;scrollbar-width:thin;scrollbar-color:#a78a58 #152235}
nav button{color:#cfcbc3;border:1px solid transparent;border-radius:8px;font-size:16px;white-space:nowrap;flex-shrink:0;padding:11px 13px;gap:8px;min-height:46px}
nav button.selected{background:linear-gradient(130deg,#794554,#542836);border-color:#c9a464;color:#fff0d2;box-shadow:inset 0 1px #ffecb51f,0 3px 12px #0003}
nav button.selected::after{content:"";position:absolute;bottom:3px;left:34%;right:34%;height:1px;background:#e3be74}
#content{padding-top:1px;min-width:0}
.church-atmosphere{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:-1;contain:strict}
.church-atmosphere::before{content:"";position:absolute;inset:-25% -30%;background:conic-gradient(from 150deg at 50% 0%,transparent 0deg,#e5c27b0d 14deg,transparent 26deg,#a3c4f309 37deg,transparent 48deg);transform-origin:50% 0%}
.church-atmosphere i{position:absolute;width:3px;height:3px;border-radius:50%;background:#f4d79a;box-shadow:0 0 7px #f3c96d;opacity:0;left:var(--x);top:var(--y)}
body.effects-on .church-atmosphere::before{animation:church-rays 28s ease-in-out infinite alternate}
body.effects-on .church-atmosphere i{animation:church-dust var(--duration) linear infinite;animation-delay:var(--delay)}
.scene{position:relative;isolation:isolate;border:1px solid #af8954;border-radius:64px 64px 18px 18px;padding:29px 26px 16px;margin:25px 0;background:radial-gradient(ellipse at 50% 100%,#a5824035,transparent 65%),linear-gradient(110deg,#20354a,#15263b 50%,#272533);box-shadow:inset 0 0 0 5px #d5b77e0b,0 16px 40px #0004}
.scene::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;border-radius:inherit;background:url('./ornaments/belfry.svg') center bottom/100% 100% no-repeat;opacity:.68}
.scene::after{content:"";position:absolute;top:9px;left:30%;right:30%;height:24px;pointer-events:none;background:url('./ornaments/flourish.svg') center/contain no-repeat;opacity:.7}
.scene-title{position:relative;gap:16px;padding:8px 0 4px}.scene-title h1{font-size:26px;color:#f4dfb3}.scene-title .eyebrow{font-size:11px}
.scene-title button{background:#1d2b3d}.scene-bank{font-size:12px}.bank-picker{background:#30283a!important;border:1px solid #b89662!important}
.bell-stage{padding:16px 0 9px;/* Keep established physical bell ordering. */}
.bell-pad{background:transparent;border:1px solid transparent;border-radius:45% 45% 12px 12px;min-height:110px;overflow:visible}
.bell-pad:hover:not(:disabled){background:#d7b36812;box-shadow:inset 0 0 18px #f0d29317}
.bell-pad strong{color:#efdbb5}.bell-pad small{color:#c9c9cb}
.bell-pad,.bell-pad .bell-icon{transition:none!important}
.bell-pad .bell-icon{stroke:#f3d897;filter:drop-shadow(0 4px 6px #0009)}
.bell-pad.hit{background:#d7b16b25!important;box-shadow:inset 0 0 26px #f4c6623f,0 0 18px #eec97730;border-color:#e6c177aa}
.bell-pad.hit .bell-icon{filter:drop-shadow(0 0 9px #ffd383bb)}
.bell-pad::before{content:"";position:absolute;inset:12% 6% 28%;border:1px solid #edd093;border-radius:50%;opacity:0;pointer-events:none}
.effects-on .bell-pad.hit::before{animation:church-ring .65s ease-out}
.stage-caption{border-color:#d2b88033;color:#c2c0ba;gap:12px}
.toolbar{gap:24px;align-items:flex-start}.toolbar h2{color:#f2dfb8}.toolbar-actions{justify-content:flex-end;gap:7px}.toolbar-actions select{min-height:40px}
.random-button.active{background:#543343!important;color:#ffe2a3!important;border-color:#d5b16e}
.random-button.active>span{animation:none}.random-button #randomState{color:inherit}
.part{background:linear-gradient(110deg,#1d3044,#172539);border:1px solid #746043;border-radius:17px;padding:18px 22px 15px;box-shadow:inset 3px 0 var(--part),0 7px 22px #0003;position:relative}
.g0{--part:#edc374}.g1{--part:#9bcbbd}.g2{--part:#c6b4e5}
.part-head{gap:12px}.part-head h2{font-size:24px;color:#f4e4c8}.part-head .number{border:1px solid currentColor;border-radius:50%;width:27px;height:27px;display:inline-grid;place-items:center;font:12px Georgia,serif;flex-shrink:0}
.part-head small{color:#c4c7cc}.part-body{gap:25px;margin-top:16px}.part-score{padding:0 7px 4px}.pattern-choice{background:#152439;border-color:#756244;color:#f3e1bd;padding:9px 13px;min-height:40px}
.staff{--part:#63441d;background:var(--paper);color:var(--ink);fill:var(--ink);border-radius:5px;box-shadow:0 0 0 5px var(--paper),0 5px 14px #0003;margin-top:13px;margin-bottom:8px}
.g1 .staff{--part:#28584b}.g2 .staff{--part:#594078}
.staff line{stroke:#716c62}.staff .grid{stroke:#b6ad9c66}.staff .bar{stroke:#79736488}.staff text{fill:#474137}
.staff .note path{stroke:var(--part)}.staff .head{fill:#a34032;opacity:.65}
.staff .note.sounding-note ellipse{fill:#ae3624;stroke:#ae3624;stroke-width:2}.staff .note.sounding-note{color:#ae3624}
.musical-staff{color:#26221d;fill:#26221d}.musical-staff text,.musical-staff .accidental,.musical-staff .clef{fill:#26221d}.musical-staff .hollow{fill:var(--paper);stroke:currentColor}.musical-staff .ottava{color:#3c352b}
.movement-button{border-radius:12px;padding:4px;background:#0e1b2b!important;box-shadow:0 0 0 1px #89744766}.movement-button img{filter:saturate(.8);border-radius:8px}.movement-button small{padding:3px;color:#d2c6ad}
.technique-view select{background:#18273b;border-color:#746043;min-height:36px}.part-bottom{margin-top:14px}.part-edit button{min-height:38px}.part-edit select{min-height:38px}.group-volume{color:#c7cbd2}
.part.muted{opacity:.63}.switch{background:#536172}.switch:checked{background:var(--part)}.switch::after{background:#122031}
.view-controls,.my-set{border-color:#6e5c40;background:#142338;border-radius:12px}.view-controls summary,.my-set summary{color:#e6c992;padding:4px 0}.view-controls label{color:#d4cfc3}
.pagination button,.preset-list button{border-color:#7d6545}.pagination{color:#d5c3a1}
.section-heading{margin-top:34px}.section-heading h1,.section-heading h2{margin-bottom:6px}
.study-repertoire,.actions-panel,.about-grid>article,.help-sections article,.reading-card,.repertoire-card,.lesson-feature,.lesson-list a,.poem-card,.poem-sheet,.narration-player,.custom-bell-setting,.bell-setting,.factory-services .factory-service,.saved-row,.serious-feature,.reader{background:linear-gradient(135deg,#203146,#162336);border:1px solid #6a5a41;border-radius:15px;box-shadow:0 6px 20px #0002}
.about-grid{gap:24px}
.about-grid>article,.reader,.actions-panel{padding:28px;min-width:0}
.about-grid>article>:last-child,.reader>:last-child,.actions-panel>:last-child{margin-bottom:0}
.about-grid>article img{max-width:100%;height:auto}
.reader{overflow-wrap:break-word}
.reader h2{line-height:1.3;margin-bottom:22px}
.reader .eyebrow{display:block;line-height:1.65;margin-bottom:10px}
.reader p{margin-bottom:18px}
@media(max-width:750px){.about-grid>article,.reader,.actions-panel{padding:20px}.about-grid{gap:18px}.factory-badge small{white-space:normal;text-wrap:balance;max-width:270px}.reader h2{font-size:24px}.reader .eyebrow{font-size:11px}body::after{opacity:.055}body::before{background-position:center}}
.reading-card,.repertoire-card,.poem-card,.factory-services .factory-service{transition:border-color .25s,box-shadow .25s,background .25s}
.reading-card:hover,.repertoire-card:hover,.poem-card:hover,.factory-services .factory-service:hover{border-color:#c29c60;box-shadow:0 8px 25px #0004,0 0 16px #e2b7580c;background:#26364a}
.repertoire-card h2,.reading-card h2,.poem-card h2{color:#f2dfbb;font-family:Georgia,serif}.tag,.study-counts{color:#e8c98d}.repertoire-card .tag{background:#473744}.repertoire-requirements{color:#c5c7cb}
.empty-note,.draft-note,.take-strip,.reference{background:#18283b;border-color:#6d5d45;color:#d1c9b9;border-radius:12px}
.lesson-text,.poem-sheet{border-left:2px solid #ac8953;padding:25px 30px;background:linear-gradient(120deg,#192a3d,#142234);border-radius:0 18px 18px 0}
.lesson-text p{color:#d8d3c8;line-height:1.85}.poem-sheet{color:#eddfc6}.poem-sheet p{color:inherit}.poem-author,.poem-dedication{color:#d7be8c}
.about-title,.factory-page>.section-heading,.poems-page>.section-heading{position:relative;padding-bottom:22px;border-bottom:1px solid #977a4d66}
.about-title::after{content:"";display:block;width:230px;max-width:70%;height:25px;margin:15px 0 0;background:url('./ornaments/flourish.svg') left/contain no-repeat}
.factory-lead{color:#edcf95}.factory-page h1{color:#f3dfb7}.factory-large-logo{filter:drop-shadow(0 0 15px #cfaa6530)}.factory-contacts{border-top:1px solid #8e714746;margin-top:18px}.factory-contacts a{color:#f0cd8e}
.contact-links,.history-downloads a{border-color:#8a704c}.contact-links a{color:#eed199}.sound-row-switch [aria-pressed=true],.pattern-list button[aria-pressed=true]{background:#573242;border-color:#d8b778;color:#fff0cc}
#transport{border:1px solid #bc965c;background:linear-gradient(110deg,#1f3046f5,#192337f7 55%,#332534f7);box-shadow:0 12px 45px #0009,inset 0 1px #fbe2ad25;border-radius:19px;width:min(900px,calc(100% - 28px));backdrop-filter:blur(16px);padding:13px 18px}
#play{border-radius:12px}#stopPlayback{background:#21344b;color:#f6dfac;border-color:#7f6846}.record{background:#462934;color:#ff9a98;border:1px solid #ac6469;border-radius:50%;width:38px;min-height:38px;font-size:23px}.record.active{color:#fff1e7;background:#ac343e;animation:none;box-shadow:0 0 0 3px #d7505344}
.effects-on .record.active{animation:church-record 1.8s ease-in-out infinite}.record-status{color:#ffb5a9}.tempo{border-color:#8e744e66}.tempo input[type=number]{color:#f0d398}.master{color:#d1c6b1}.seek-row{border-color:#b08e5644}.seek-row button{min-height:30px}.meter{background:#0c182a}.meter i{background:#dfbe7e}
body.is-playing #play{box-shadow:0 0 0 1px #f6d28d,0 0 22px #dcaf6144}body.is-playing .scene{border-color:#d6b273}
#busy{background:#203348;border-color:#d1ac6e}#message{background:#263f3b;border-color:#799980;color:#f2f0df}#message.error{background:#542d39;color:#ffefeb}
dialog{background:linear-gradient(135deg,#21344b,#162438);border:1px solid #b89259;border-radius:22px;box-shadow:0 24px 100px #000b,inset 0 0 0 5px #cbaa6f0a;padding:30px}
dialog::backdrop{background:#050b16cf;backdrop-filter:blur(7px)}dialog h2{color:#f4deb4}.dialog-close{min-width:38px;min-height:38px;color:#edd29a!important}.notation-info{color:#edce93;border-color:#a98a59}.notation-dialog p{color:#dfd9cc}
.kuranty-dialog{background:#f8f2e7;color:#302a22;border-color:#c9a467;border-radius:18px;padding:30px 38px}.kuranty-dialog p{color:#383129;font-family:Georgia,"Times New Roman",serif;line-height:1.8}.kuranty-dialog h2,.kuranty-dialog h3{color:#642b38}.kuranty-dialog h2{font-size:32px}.kuranty-dialog #closeDialog{background:#f8f2e7;color:#642b38!important;border:1px solid #c6ab7c;border-radius:50%;margin-left:auto;display:block;width:40px;position:sticky}
.kuranty-dialog a{color:#695022}.kuranty-dialog .sources,.kuranty-dialog .article-meta,.kuranty-dialog figcaption{color:#5c5448}.kuranty-dialog figure{background:#fff;border:1px solid #d1bc94;padding:12px;border-radius:8px;box-shadow:0 6px 20px #79634314}.kuranty-dialog figcaption{padding:10px 6px 4px;font:14px/1.75 "Segoe UI",sans-serif}.kuranty-dialog figcaption a{display:inline-block;padding:5px 0;margin-right:14px}.kuranty-dialog .article-links{border-top:1px solid #c8b28b;padding-top:20px}
.effects-on:not(.is-playing) #content>section,.effects-on:not(.is-playing) #content>.scene,.effects-on:not(.is-playing) #content>.toolbar{animation:church-reveal .45s ease-out both}
.effects-on dialog[open]{animation:church-dialog .25s ease-out}
@keyframes church-reveal{from{opacity:.3;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes church-dialog{from{opacity:.5;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
@keyframes church-rays{from{transform:rotate(-6deg);opacity:.45}to{transform:rotate(7deg);opacity:1}}
@keyframes church-dust{0%{transform:translate3d(0,30px,0);opacity:0}20%{opacity:.25}75%{opacity:.18}100%{transform:translate3d(24px,-125px,0);opacity:0}}
@keyframes church-ring{from{transform:scale(.7);opacity:.6}to{transform:scale(1.38);opacity:0}}
@keyframes church-record{50%{box-shadow:0 0 0 5px #d7505322}}
body:not(.effects-on) *,body.motion-paused *{animation:none!important;transition:none!important}body:not(.effects-on) *::before,body:not(.effects-on) *::after{animation:none!important;transition:none!important}.motion-paused *::before,.motion-paused *::after{animation-play-state:paused!important}
@media(max-width:1100px){header{gap:12px;padding-top:20px}.brand{flex:1 1 45%}.factory-badge{flex:0 1 auto}.page-history{margin-left:auto}nav button{padding:10px 11px;font-size:15px}.toolbar{flex-direction:column;gap:12px}.toolbar-actions{justify-content:flex-start;width:100%}}
@media(max-width:750px){main{padding:0 15px 220px}header{padding:19px 0 14px;gap:10px;min-height:0}.brand{width:100%;flex-basis:100%;font-size:17px}.brand>img{width:38px;height:43px}.brand small{font-size:11px;max-width:none}.factory-badge{order:0;flex:1 1 100%;width:100%;border-left:0;border-top:1px solid #8e714744;padding:10px 0 3px;margin:0}.factory-badge img{width:38px;height:28px}.factory-badge span{font-size:18px}.factory-badge small{font-size:10px;max-width:none}.language-picker{margin-left:0}#effectsToggle{font-size:11px;padding:6px 8px}#zoomToggle{min-width:48px;font-size:12px;padding:6px 9px}.page-history{margin-left:auto}.page-history button{padding:5px 8px}nav{padding:5px;gap:4px}nav button{font-size:19px;gap:4px;padding:8px 12px;min-height:56px}nav button span{font-size:12px}.scene{border-radius:36px 36px 15px 15px;padding:25px 15px 13px}.scene-title h1{font-size:23px}.scene::after{left:20%;right:20%;top:5px;height:20px}.stage-caption{font-size:11px}.part{padding:15px 14px 13px;border-radius:14px}.part-head h2{font-size:21px}.part-head>div{gap:8px}.part-head small{font-size:11px}.part-head .number{width:23px;height:23px}.part-body{grid-template-columns:95px minmax(0,1fr);gap:14px}.part-score{padding:0 3px 3px}.pattern-choice{font-size:12px;padding:8px;min-height:40px}.staff{box-shadow:0 0 0 3px var(--paper),0 4px 10px #0002}.part-edit button{font-size:12px;padding:8px 10px}.toolbar h2{font-size:25px}.toolbar-actions select{max-width:100%;font-size:13px}.toolbar-actions>.bank-picker{flex:1 1 100%;max-width:100%}.toolbar-actions>.notation-picker{flex:1 1 150px}.toolbar-actions>#movement{width:auto;flex:1 1 130px}.toolbar-actions>.random-button,.toolbar-actions>#randomNow{flex:1 1 auto}.lesson-text{padding:18px 20px}.kuranty-dialog{padding:17px 19px}.kuranty-dialog h2{font-size:26px}.kuranty-dialog h3{font-size:23px}.kuranty-dialog p{font-size:17px}.kuranty-dialog figure{padding:5px}#transport{padding:9px 10px;gap:7px;width:calc(100% - 18px);border-radius:15px}#play{min-width:0;border-radius:9px;font-size:15px}.record{width:28px;min-height:30px;font-size:19px}.church-atmosphere i:nth-child(n+7){display:none}}
@media(max-width:420px){header{gap:8px}.brand{font-size:15px}.page-history{gap:3px}.page-history button{padding:4px 6px;min-width:31px}.language-picker select{max-width:90px}.part-head>div{flex-wrap:wrap}.part-head h2{font-size:20px}.part-body{grid-template-columns:minmax(0,1fr)}.technique-view{grid-template-columns:90px minmax(0,1fr);align-items:center}.technique-view select{max-width:170px}.movement-button img,.movement-button svg{height:54px;width:88px}.movement-button small{display:none}.part-score{min-width:0}.part-bottom{gap:9px}.group-volume{width:100%;margin:0}.factory-lead{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.church-atmosphere i{display:none}}
@media print{body::before,body::after,.church-atmosphere,#effectsToggle{display:none!important}body,main{background:#fff!important;color:#000!important;box-shadow:none!important}main{border:0!important}#printScore .staff{background:#fff!important;box-shadow:none!important;color:#000!important;--part:#000}#printScore .musical-staff .hollow{fill:#fff!important}*{animation:none!important;transition:none!important}}

/* The teaching workspace stays in reach, including on small screens. */
main>nav{position:sticky;top:0;z-index:25}
#trainingHome{position:sticky;left:0;z-index:2;background:#394052;border-color:#c6a268;color:#ffe5b1;box-shadow:7px 0 12px #111f35}
#trainingHome.selected{background:linear-gradient(130deg,#794554,#542836)}
.score-display-options{margin:20px 0 12px;padding:14px 18px;border:1px solid #6e5c40;border-radius:12px;background:#142338}
.score-display-options summary{cursor:pointer;color:#e6c992}
.score-display-options .toolbar-actions{justify-content:flex-start;margin-top:14px}
.view-controls .sync-control{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:15px 0 8px}
#visualDelay{width:90px}.view-controls #visualDelayHelp{margin:0;max-width:700px}
@media(max-width:750px){#trainingHome{flex-direction:row;font-size:18px;min-height:56px;padding:8px 10px}#trainingHome span{font-size:13px;max-width:90px;white-space:normal;text-align:left}.toolbar{margin:18px 0 14px;gap:10px}.toolbar p{font-size:13px}.score-display-options{padding:13px 15px}}
@media print{.score-display-options,.sync-control,#visualDelayHelp{display:none!important}}
