@font-face{font-family:Bravura;src:url('assets/Bravura.otf') format('opentype');font-display:block}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#f3f3ed;color:#29483c;font-family:Arial,sans-serif}header{height:48px;background:#fafaf6;border-bottom:1px solid #dcdfd3;display:flex;align-items:center;justify-content:center}.brand{display:flex;align-items:center;gap:12px;color:#29483c;text-decoration:none;font:bold 25px Georgia;letter-spacing:-.6px}.brand>span{font-size:29px}main{height:calc(100dvh - 48px);max-width:1400px;margin:auto;padding:10px 24px;display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:24px;min-height:0}.workspace{min-height:0;display:flex;flex-direction:column}.preview-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:8px;letter-spacing:.8px;color:#78836e;min-height:28px}.preview-bar>span{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.preview-bar small{font-size:7px;letter-spacing:.4px}.scale-note{font-size:9px;letter-spacing:0}.pagination{display:flex;align-items:center;justify-content:center;gap:10px;letter-spacing:0;font-size:10px;min-height:30px;flex:none}.pagination button{width:25px;height:23px;padding:0;font:22px Georgia;border:1px solid #cbd3c3;border-radius:4px;background:#fafaf6;color:#29483c}#stage{min-height:0;flex:1;position:relative;display:flex;align-items:center;justify-content:center}#pages{position:relative;flex:none}.paper{position:absolute;top:0;left:0;width:848px;height:1200px;transform-origin:top left;background:#fff;box-shadow:0 2px 5px #263d2812,0 10px 30px #263d2810;display:none}.paper.current{display:block}.paper>svg{width:100%;height:100%;display:block}.music{font-family:Bravura}#settings{height:100%;align-self:stretch;min-height:0;background:#fafaf6;border:1px solid #d5dccd;border-radius:10px;padding:12px;min-width:0;overflow:hidden}.settings-content{transform-origin:top left}h1{font:normal 22px Georgia;margin:0 0 11px}h2{font:600 10px Arial;letter-spacing:1px;text-transform:uppercase;color:#7d8b72;margin:12px 0 7px}h2 small{font-size:9px;letter-spacing:0;text-transform:none;font-weight:400;margin-left:5px}.fields{display:grid;grid-template-columns:1fr;gap:8px}.music-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}label{font-size:11px;font-weight:600}label small{font-weight:400;color:#8c957f;font-size:9px;margin-left:3px}input:not([type=checkbox]),select{display:block;width:100%;height:31px;margin-top:4px;border:1px solid #cbd3c3;border-radius:5px;background:#fff;color:#3a5144;padding:6px 8px;font:11px Arial}input::placeholder{color:#9aa28f}fieldset{padding:0;border:0;margin:0;width:100%;min-width:0}.note-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.note-card{border:1px solid #d2dac8;border-radius:5px;padding:4px;background:#fff}.note-name{font:9px Arial;text-align:center;margin:0 0 3px;color:#6d7c61}.note-pair{display:grid;grid-template-columns:1fr 1fr;gap:3px}.note-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #e0e6d9;border-radius:4px;background:#fff;cursor:pointer;height:53px;padding:2px}.note-svg{width:27px;height:37px;display:block;overflow:visible}.note-choice:has(input:checked){background:#e3eddf;border-color:#76966c}.note-choice input{accent-color:#2d5743;width:10px;height:10px;margin:0;flex:none}.note-symbol{position:relative;font:25px/1 Bravura;display:block;height:33px;padding-top:4px}.option-dot{position:absolute;left:100%;top:12px;font:bold 14px Arial;margin-left:1px}.worksheet-panel{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.check{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:600;cursor:pointer}.check input{accent-color:#2d5743;margin:0}.actions{display:flex;gap:8px;margin-top:14px}.actions button{flex:1;height:34px;border:1px solid #b6c7ad;border-radius:5px;color:#35523c;background:transparent;font:600 11px Arial;padding:0 8px}.actions .primary{background:#2d5743;border-color:#2d5743;color:#fff}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}.actions button:hover{filter:brightness(.95)}.bottom-line{font-size:10px;color:#7a876f;line-height:1.4;margin-top:9px}.bottom-line p{margin:0 0 4px}.bottom-line span{font-size:9px}#status.error{color:#984c28}[hidden]{display:none!important}:focus-visible{outline:2px solid #7c9d72;outline-offset:2px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-height:800px){header{height:40px}main{height:calc(100dvh - 40px);padding-top:7px;padding-bottom:7px}h1{font-size:20px;margin-bottom:8px}h2{margin:9px 0 6px}.fields,.music-fields{gap:7px}input:not([type=checkbox]),select{height:28px;padding:4px 6px}.note-choice{height:47px}.note-symbol{font-size:22px;height:28px}.option-dot{top:10px}.actions{margin-top:10px}.actions button{height:31px}.bottom-line{font-size:9px}}
@media(max-width:1000px){main{grid-template-columns:minmax(0,1fr) 350px;gap:14px;padding-left:12px;padding-right:12px}.worksheet-panel{grid-template-columns:1fr 1fr}.note-options{gap:5px}.note-choice{padding:1px}.note-symbol{font-size:23px}}@media(max-width:650px){header{height:36px}.brand{font-size:21px}main{height:calc(100dvh - 36px);grid-template-columns:minmax(0,1fr) 240px;gap:8px;padding:6px}#settings{padding:8px}h1{font-size:18px}h2{font-size:9px}h2 small{font-size:8px;display:block;margin:3px 0 0}.preview-bar{font-size:7px}.scale-note{font-size:8px}.preview-bar small{display:none}.music-fields{gap:6px}.note-options{grid-template-columns:repeat(3,1fr)}label{font-size:10px}.check{font-size:9px}.note-name{font-size:8px}.actions button{font-size:10px}.bottom-line{font-size:9px}}
@page{size:auto;margin:10mm}@media print{html,body{height:auto;overflow:visible;background:white}header,#settings,.preview-bar,.pagination{display:none!important}main,.workspace,#stage,#pages{display:block!important;height:auto!important;width:auto!important;max-width:none!important;padding:0;margin:0}#stage{position:static}.paper{display:block!important;position:relative;transform:none!important;width:100%;height:calc(100vh - 20mm - 1px);margin:0;box-shadow:none;break-after:page;page-break-after:always;break-inside:avoid;page-break-inside:avoid;overflow:hidden}.paper:last-child{break-after:auto;page-break-after:auto}.paper>svg{width:100%;height:100%;display:block;object-fit:contain}}

/* Responsive viewport layout: no device-name or user-agent assumptions. */
.preview-bar{min-height:36px}.mobile-toolbar{display:none}#stage{overflow:hidden}.workspace,#stage,#pages{min-width:0}
@media screen and (max-width:900px){
html,body{height:100vh;height:100dvh;overflow:hidden}header{height:calc(44px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}.brand{font-size:22px;gap:9px}.brand>span{font-size:26px}
main{position:relative;display:block;max-width:none;width:100%;height:calc(100vh - 108px - env(safe-area-inset-top) - env(safe-area-inset-bottom));height:calc(100dvh - 108px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:6px max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left));margin:0;min-height:0}
.workspace{height:100%;width:100%;min-height:0}.preview-bar{min-height:52px;font-size:9px;gap:5px;flex-wrap:nowrap}.preview-bar>span{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0}.scale-note{font-size:9px}.preview-bar small{display:none}.pagination{min-height:48px;gap:16px;font-size:12px}.pagination button{width:44px;height:40px;font-size:27px}.paper{box-shadow:0 2px 8px #263d2820}
#settings{height:100%;width:100%;border-radius:9px;padding:14px 12px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding:20px;-webkit-overflow-scrolling:touch}.settings-content{zoom:1!important;width:100%;padding-bottom:18px}h1{font-size:23px;margin-bottom:16px}h2{font-size:12px;line-height:1.3;margin:19px 0 11px;letter-spacing:.8px}h2 small{font-size:11px;display:block;margin:5px 0 0;letter-spacing:0}.fields{gap:14px}.music-fields{gap:14px 12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}label{font-size:13px;min-width:0;line-height:1.3}label small{font-size:11px}input:not([type=checkbox]),select{font-size:16px;height:44px;margin-top:6px;padding:8px 9px;max-width:100%;min-width:0}input[type=number]{font-size:16px}.worksheet-panel{grid-template-columns:1fr 1fr;gap:8px 12px}.check{min-height:44px;gap:9px;font-size:13px}.check input{width:20px;height:20px;flex:none}.note-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.note-card{padding:5px}.note-name{font-size:11px;margin-bottom:6px}.note-pair{gap:4px}.note-choice{height:72px;min-height:44px;padding:4px 1px;gap:4px;touch-action:manipulation}.note-choice input{width:18px;height:18px}.note-svg{height:39px;width:28px}.actions{gap:10px;margin-top:20px}.actions button{height:46px;font-size:13px}.bottom-line{font-size:12px;line-height:1.5;margin-top:14px}.bottom-line span{font-size:11px}
body[data-mobile-panel=sheet] #settings{display:none}body[data-mobile-panel=settings] #settings{position:absolute;z-index:4;inset:6px max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left));height:auto;width:auto;background:rgb(250 250 246 / .62)}
#settings input:not([type=checkbox]),#settings select{background:rgb(255 255 255 / .8)}#settings .note-card,#settings .note-choice{background:rgb(255 255 255 / .5)}#settings .note-choice:has(input:checked){background:rgb(211 230 202 / .85)}
.mobile-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;position:fixed;z-index:5;left:0;right:0;bottom:0;height:calc(64px + env(safe-area-inset-bottom));padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#fafaf6;border-top:1px solid #ced8c5}.mobile-toolbar button{min-width:0;min-height:44px;border:1px solid #d3decc;border-radius:7px;background:transparent;color:#34513d;font:600 12px Arial;padding:0 4px;touch-action:manipulation}.mobile-toolbar button[aria-pressed=true]{background:#e3eddf;border-color:#86a379}
}
@media screen and (max-width:360px){.note-options{grid-template-columns:repeat(2,minmax(0,1fr))}.music-fields{gap:12px 8px}.preview-bar{font-size:8px}.scale-note{font-size:8px}}
@media print{body[data-mobile-panel=settings] .workspace{display:block!important}}

/* Keep the existing form arrangement compact; mobile actions live in the toolbar. */
.title-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}.subtitle-toggle{min-height:31px}.rhythm-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 7px}.rhythm-heading h2{margin:0}.rhythm-heading .check{font-size:11px}
@media screen and (max-width:900px){
#settings{padding:10px}.settings-content{padding-bottom:4px}#settings .actions{display:none}h1{font-size:20px;margin-bottom:9px}h2{font-size:11px;margin:11px 0 7px}.fields{gap:8px}.music-fields{gap:8px 10px}label{font-size:12px}label small{font-size:10px}input:not([type=checkbox]),select{height:38px;margin-top:4px;padding:6px 8px}.check{min-height:34px;font-size:12px;gap:7px}.check input{height:18px;width:18px}.worksheet-panel{gap:2px 8px}.note-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.note-card{padding:3px}.note-name{font-size:10px;margin-bottom:2px}.note-choice{height:59px;gap:1px;padding:2px 0}.note-choice input{height:16px;width:16px}.note-svg{height:33px;width:24px}.bottom-line{margin-top:8px;font-size:11px}.bottom-line span{font-size:10px}.rhythm-heading{margin:10px 0 5px}.subtitle-toggle{min-height:38px}.title-row{gap:8px}
}

.note-pair:has(>.note-choice:only-child){grid-template-columns:1fr}
/* The overlay has its own warm palette, keeping controls distinct from the score. */
@media screen and (max-width:900px){
body[data-mobile-panel=settings] #settings{background:rgb(255 231 236 / .65);border:1px solid #c98999;box-shadow:0 5px 24px #672c4524;color:#572b3b}
body[data-mobile-panel=settings] #settings h1{color:#572b3b;font-weight:700}
body[data-mobile-panel=settings] #settings h2{color:#793e52;font-weight:700}
body[data-mobile-panel=settings] #settings label{color:#572b3b;font-weight:700}
body[data-mobile-panel=settings] #settings label small,body[data-mobile-panel=settings] #settings .note-name{color:#744557;font-weight:600}
body[data-mobile-panel=settings] #settings input:not([type=checkbox]),body[data-mobile-panel=settings] #settings select{background:rgb(255 250 252 / .88);color:#4e2837;border-color:#c99aa8;font-weight:600}
body[data-mobile-panel=settings] #settings .note-card{background:rgb(255 246 249 / .7);border-color:#d3a5b2}
body[data-mobile-panel=settings] #settings .note-choice{background:rgb(255 251 252 / .8);border-color:#dbbcc5}
body[data-mobile-panel=settings] #settings .note-choice:has(input:checked){background:#edc1d0;border-color:#a95c75}
body[data-mobile-panel=settings] #settings input[type=checkbox]{accent-color:#a34d6b}
body[data-mobile-panel=settings] #settings .bottom-line{color:#6d3b4e;font-weight:600}
body[data-mobile-panel=settings] #view-settings{background:#edc1d0;border-color:#a95c75;color:#572b3b}
}

/* Screen chrome only: the engraved page and print palette remain untouched. */
@media screen{
body{background:#faf5f7}header{border-bottom-color:#e5c6d1}
.workspace{outline:1px solid #e8ccd6;outline-offset:3px;border-radius:5px}
#settings{border-color:#d9a9ba}
#settings input:not([type=checkbox]),#settings select{border-color:#d6b3c0}
#settings input[type=checkbox]{accent-color:#a34d6b}
#settings .note-card{border-color:#e0bdca}
#settings .note-choice:has(input:checked){background:#f2d8e2;border-color:#bd7a93}
.actions button,.pagination button{border-color:#d6adbd}


.mobile-toolbar{border-top-color:#d9a9ba;background:#fcf6f9}
.mobile-toolbar button{border-color:#dfbdcb}
.mobile-toolbar button[aria-pressed=true]{background:#f2d8e2;border-color:#bd7a93;color:#542537}
}
@media screen{
.worksheet-panel{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:2px 8px}
.worksheet-panel .check{flex:none;white-space:nowrap;gap:4px;font-size:11px}
.worksheet-panel input[type=checkbox]{width:16px;height:16px;flex:none}
}
@media screen and (max-width:350px){
.worksheet-panel .check{font-size:10px;gap:3px}
.worksheet-panel input[type=checkbox]{width:14px;height:14px}
}

.triplet-card{display:flex;flex-direction:column;gap:3px;cursor:pointer}.triplet-card .note-choice{width:100%}.triplet-icon{width:76px;max-width:100%;height:36px;display:block;overflow:visible}.triplet-card .note-name{font-size:9px;min-height:12px}.unavailable{opacity:.43}.unavailable select{cursor:not-allowed;filter:grayscale(1)}


@media screen and (max-width:900px){.mobile-toolbar{grid-template-columns:1fr 1.12fr 1.45fr .8fr}.mobile-toolbar button{font-size:clamp(10px,2.9vw,12px)}}

.settings-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}#restore-default,#restore-previous{min-height:30px;padding:6px 10px;background:transparent;border:1px solid #d6adbd;border-radius:5px;color:#744557;font:600 11px Arial}#restore-default:active,#restore-previous:active{background:#f2d8e2}@media screen and (max-width:900px){#restore-default,#restore-previous{min-height:38px;font-size:12px}.settings-footer{margin-top:10px}}

@media screen{.actions button,.actions .primary,.settings-footer button,.mobile-toolbar button{background:transparent;color:#34513d;border-color:#dfbdcb}.actions button:hover{filter:none}.actions button:active,.settings-footer button:active,.mobile-toolbar button:active,.mobile-toolbar button[aria-pressed=true]{background:#f2d8e2;border-color:#bd7a93;color:#542537}.worksheet-panel .check:has(input:checked),.subtitle-toggle:has(input:checked){color:#a34d6b}}

.instrument-info{font:10px/1.4 Arial;color:#7a6a71;margin:7px 0 0}@media screen and (max-width:900px){.instrument-info{font-size:11px;color:#744557}}

#presets{display:none;height:100%;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:12px;background:#fafaf6;border:1px solid #d9a9ba;border-radius:10px;color:#34513d}body[data-mobile-panel=presets] #presets{display:block}body[data-mobile-panel=presets] #settings{display:none!important}.presets-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.presets-heading h2{margin:0;font-size:14px}.preset-intro,.randomise-mode p,#preset-status{font:11px/1.45 Arial;color:#744557;margin:9px 0}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.preset-grid button{min-width:0;min-height:46px;text-align:left;padding:8px;border:1px solid #dfbdcb;border-radius:6px;background:transparent;color:#34513d;display:flex;flex-direction:column;gap:3px}.preset-grid strong{font-size:11px}.preset-grid span{font-size:10px;color:#744557}.preset-grid button[aria-pressed=true],#presets button:active{background:#f2d8e2;border-color:#bd7a93;color:#542537}.randomise-mode{border-top:1px solid #dfbdcb;margin-top:14px;padding-top:10px}.randomise-mode .check{font-size:12px}.randomise-mode input{accent-color:#a34d6b}.presets-heading button,#preset-randomise{min-height:32px;padding:6px 10px;border:1px solid #dfbdcb;border-radius:5px;background:transparent;color:#34513d;font:600 11px Arial}.instrument-info.error{color:#984c28}
@media screen and (max-width:900px){body[data-mobile-panel=presets] #presets{position:absolute;z-index:4;inset:6px max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left));height:auto;width:auto;background:rgb(255 231 236 / .65);border:1px solid #c98999;box-shadow:0 5px 24px #672c4524;color:#572b3b;padding:10px}#presets h2{color:#793e52;font-weight:700}.preset-grid button{min-height:48px;background:rgb(255 250 252 / .7);font-weight:700}.preset-grid strong{font-size:12px}.preset-grid span{font-size:11px}.preset-grid button[aria-pressed=true]{background:#edc1d0}.preset-intro,.randomise-mode p,#preset-status{font-size:12px}#presets .presets-heading button,#preset-randomise{display:none}.randomise-mode .check{font-size:13px}.mobile-toolbar{grid-template-columns:1fr 1fr 1.12fr 1.1fr}body[data-mobile-panel=presets] #view-presets{background:#edc1d0;border-color:#a95c75;color:#572b3b}}
@media print{#presets{display:none!important}}

.brand-logo{display:block;width:34px;height:34px;flex:0 0 34px;object-fit:contain}
@media screen and (max-width:650px){.brand-logo{width:29px;height:29px;flex-basis:29px}}

.difficulty-control{margin:8px 0}.difficulty-control h2{margin:8px 0 6px}.difficulty-control p{font:11px/1.35 Arial;color:#744557;margin:6px 0}.difficulty-toggles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.difficulty-toggles button{min-width:0;min-height:32px;padding:6px 3px;border:1px solid #dfbdcb;border-radius:5px;background:transparent;color:#34513d;font:600 11px Arial}.difficulty-toggles button[aria-pressed=true]{background:#f2d8e2;border-color:#bd7a93;color:#542537}@media screen and (max-width:900px){.difficulty-toggles button{min-height:36px;font-size:11px}.difficulty-control p{font-weight:600}}

.instrument-preset{min-width:0}.instrument-preset>button{width:100%;height:100%}.instrument-preset.selected{grid-column:1/-1;border:1px solid #bd7a93;border-radius:6px;background:#fff9fb}.instrument-preset.selected>button{border:0;border-radius:5px 5px 0 0;height:auto}.instrument-range{padding:8px}.instrument-range-fields{display:grid;grid-template-columns:1fr 1fr;gap:7px}.instrument-range-fields>label:first-child{grid-column:1/-1}.instrument-range .instrument-info{margin:6px 0 0}#range-home:empty{display:none}@media screen and (max-width:900px){.instrument-range{background:rgb(255 250 252 / .5);border-radius:0 0 5px 5px}.instrument-range label{font-size:11px}.instrument-range input,.instrument-range select{height:30px}}

header{position:relative}.language-switch{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:128px}.language-switch select{height:28px;margin:0;padding:3px 7px;font:12px Arial;background:#fffafb;border-color:#dfbdcb}.notation-help{font:10px/1.45 Arial,sans-serif;color:#744557;margin:6px 0;overflow-wrap:anywhere}.notation-fields>label:last-child{grid-column:1/-1}.note-name{overflow-wrap:anywhere;line-height:1.15}.difficulty-toggles button{overflow-wrap:anywhere;hyphens:auto}.preset-grid strong{overflow-wrap:anywhere}label,button,h2{hyphens:auto}body{font-family:Arial,'Noto Sans',sans-serif}@media screen and (max-width:650px){header{justify-content:space-between;padding-left:8px;padding-right:8px;gap:8px}.brand{font-size:17px;gap:5px;letter-spacing:-.4px}.language-switch{position:static;transform:none;flex:0 0 102px;width:102px}.language-switch select{font-size:11px}.notation-help{font-size:11px}.mobile-toolbar button{overflow-wrap:anywhere;line-height:1.2}.worksheet-panel .check span{overflow-wrap:anywhere}}

@media screen and (max-width:650px){.mobile-toolbar button{hyphens:none;overflow-wrap:normal;font-size:10px;padding:0 2px}}

.settings-section{margin:10px 0;border:1px solid #e5ccd5;border-radius:6px;background:rgb(255 250 252 / .35)}.settings-section>summary{padding:9px 10px;cursor:pointer;font:600 11px/1.35 Arial,sans-serif;color:#744557;list-style-position:inside;user-select:none}.settings-section[open]>summary{border-bottom:1px solid #ead8df}.settings-section .section-content{padding:10px}.settings-section .notation-help{margin:6px 10px}.settings-section .section-content .notation-help{margin:6px 0}.settings-section summary:focus-visible{outline:2px solid #a95c75;outline-offset:2px}.settings-section .notation-fields{margin:0}.settings-section .section-content:empty{display:none}@media screen and (max-width:900px){.settings-section{margin:9px 0;background:rgb(255 250 252 / .25)}.settings-section>summary{padding:10px;font-size:12px;color:#572b3b}.settings-section .section-content{padding:9px}.settings-section .notation-help{font-size:11px}.settings-section .notation-fields{gap:8px}.settings-section .section-content label{font-size:12px}}

#rhythm-selection{float:right;max-width:52%;margin-left:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:inherit;font-weight:400;line-height:inherit;color:#856c76}#rhythm-options .rhythm-heading{margin:0 0 7px;justify-content:flex-end}


#status:empty{display:none}@media screen and (max-width:900px){.worksheet-panel .check{min-height:28px}.bottom-line{margin-top:6px}}
@media screen and (max-width:900px){#settings h2{margin-top:9px;margin-bottom:5px}#settings .settings-section{margin:7px 0}}

/* Creator support stays outside the printable worksheet. */
.coffee-link{color:#744557;text-decoration:none;font:600 14px/1.3 Arial,sans-serif;border:1px solid #dfbdcb;border-radius:6px;padding:12px 16px;background:transparent;display:flex;align-items:center;justify-content:center;gap:8px}.coffee-link:hover,.coffee-link:active{background:#f2d8e2;border-color:#bd7a93}.coffee-link:focus-visible{outline:2px solid #a95c75;outline-offset:2px}.coffee-price{white-space:nowrap}.header-coffee{display:none}.settings-coffee{margin-top:14px;width:100%;min-height:44px}.sheet-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
@media screen and (max-width:900px){header{justify-content:space-between;padding-inline:8px;gap:6px}.settings-coffee{display:none}.header-coffee{display:flex;position:static;transform:none;flex-direction:column;gap:0;padding:3px 6px;min-height:32px;max-width:140px;font-size:11px;text-align:center}.brand{font-size:17px;gap:5px;letter-spacing:-.4px;white-space:nowrap}.brand-logo{width:26px;height:26px;flex-basis:26px}.language-switch{position:static;transform:none;flex:0 0 68px;width:68px}.language-switch select{font-size:10px;padding:3px 2px}}
@media screen and (max-width:370px){header{padding-inline:6px;gap:4px}.brand{font-size:15px;gap:3px}.brand-logo{width:24px;height:24px;flex-basis:24px}.header-coffee{font-size:10px;padding-inline:4px;max-width:100px}.language-switch{flex-basis:62px;width:62px}}
@media print{.coffee-link{display:none!important}}

/* Centre the brand independently of the mobile header actions. */
@media screen and (max-width:900px){header .brand{position:absolute;left:50%;top:calc(50% + env(safe-area-inset-top)/2);transform:translate(-50%,-50%)}.header-coffee{margin-right:auto;width:min(100px,calc(50% - 80px));max-width:100px;flex:none;font-size:10px;line-height:1.1;padding:3px;gap:1px}.language-switch{margin-left:auto}}
