/* Reader navigation geometry and local Leland glyphs. Loaded after gn-material.css. */
html[data-gn-glow="1"] body.reader-focus { --gn-nav-bottom:max(14px,env(safe-area-inset-bottom)); }
/* Hide the strip owner as well as its cue-dock child, so arrows and Add cue cannot remain. */
html[data-gn-glow="1"] body.reader-focus.section-nav-hidden #gnCueStrip {display:none;}


html[data-gn-glow="1"] #jumpRailCatchUp {display:none!important;}


















html[data-gn-glow="1"] #gnCountFloat {position:fixed;z-index:108;max-width:calc(100vw - 16px);width:max-content;pointer-events:auto;}
html[data-gn-glow="1"] #gnCountFloat[hidden] {display:none!important;}
html[data-gn-glow="1"] body.reader-focus #gnCountFloat #countInBand {position:static!important;inset:auto!important;transform:none!important;max-width:100%!important;width:auto!important;}
html[data-gn-glow="1"] #gnCountFloat #countInBarContent {flex-wrap:wrap;max-width:calc(100vw - 16px);box-sizing:border-box;gap:7px;padding:10px!important;}
html[data-gn-glow="1"] #gnCountGrip,
html[data-gn-glow="1"] #gnCountClose {
  flex: none;
  width: 32px;
  height: 44px;
  padding: 0;
}
html[data-gn-glow="1"] #gnCountGrip {touch-action:none;cursor:grab;}
html[data-gn-glow="1"] #gnCountGrip:active {cursor:grabbing;}
html[data-gn-glow="1"] #gnCountFloat .count-in-glass {max-width:100%;overflow-x:auto!important;}
html[data-gn-glow="1"] #gnCountFloat #countInProgress {gap:3px;}
html[data-gn-glow="1"] #gnCountFloat #countInProgress>* {width:28px;min-width:24px;}

/* The legacy band opted individual controls into pointer events and fixed its height. */
html[data-gn-glow="1"] #gnCountFloat :is(#countInBand,#countInBarContent) {height:auto!important;pointer-events:auto;}
html[data-gn-glow="1"] body:not(.reader-focus) #gnCountFloat {display:none!important;}
/* Binder owns the glow reader's upper-left corner. Keep native Home outside glow. */

/* Cue authoring stays beside the score, with the demo's warm raised keys. */












html[data-gn-glow="1"] #gnCueEditor {position:fixed;inset:auto 0 max(92px,env(safe-area-inset-bottom));margin:0 auto;width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 112px);overflow:auto;box-sizing:border-box;padding:17px}
html[data-gn-glow="1"] #gnCueEditor::backdrop {background:#2a23180a;}
html[data-gn-glow="1"] #gnCueEditor form {display:flex;flex-direction:column;gap:11px;}
html[data-gn-glow="1"] #gnCueEditor .gn-cue-editor-head {display:flex;align-items:center;justify-content:space-between;gap:12px;}
html[data-gn-glow="1"] #gnCueEditor h2 {margin:0}
html[data-gn-glow="1"] #gnCueEditor p {margin:0;}
html[data-gn-glow="1"] #gnCueEditor label {display:flex;flex-direction:column;gap:6px}
html[data-gn-glow="1"] #gnCueEditor :is(input:not([type=checkbox]),textarea) {box-sizing:border-box;width:100%;min-width:0;padding:10px 11px;user-select:text;-webkit-user-select:text}
html[data-gn-glow="1"] #gnCueEditor textarea {resize:vertical;min-height:96px;max-height:30dvh;}
html[data-gn-glow="1"] #gnCueEditor .gn-cue-attach {flex-direction:row;align-items:center;min-height:44px;gap:9px;}
html[data-gn-glow="1"] #gnCueEditor input[type=checkbox] {width:20px;height:20px;margin:0}
html[data-gn-glow="1"] #gnCueEditor button {min-height:44px;min-width:44px;padding:9px 15px;cursor:pointer}
html[data-gn-glow="1"] #gnCueEditor .gn-cue-editor-actions {display:flex;justify-content:flex-end;gap:8px;}
html[data-gn-glow="1"] #gnCueEditor .gn-cue-screen-preview {padding:12px;text-align:center}
html[data-gn-glow="1"] #gnCueEditor .gn-cue-screen-preview p {margin-top:7px;white-space:pre-wrap;overflow-wrap:anywhere}
html[data-gn-glow="1"] #gnCueEditor #gnCueEditorStatus:empty {display:none;}


html[data-gn-glow="1"] #gnCueEditor #gnCueRemove {margin-right:auto;}
html[data-gn-glow="1"] #gnCueEditor #gnCueRemove[hidden] {display:none;}
html[data-gn-glow="1"] #gnCueNotice {width:min(340px,calc(100vw - 32px));box-sizing:border-box;padding:22px}
html[data-gn-glow="1"] #gnCueNotice::backdrop {background:#2a231826;}
html[data-gn-glow="1"] #gnCueNotice h2 {margin:0 0 12px}
html[data-gn-glow="1"] #gnCueNotice p {margin:0}
html[data-gn-glow="1"] #gnCueNotice > div {display:flex;justify-content:flex-end;gap:10px;margin-top:20px;}
html[data-gn-glow="1"] #gnCueNotice button {min-height:44px;padding:9px 15px;cursor:pointer}
html[data-gn-glow="1"] #gnCueNotice button[hidden] {display:none;}
/* One close rule: the round x sits in the corner; the action row keeps Open Prep only. Geometry only. */
html[data-gn-glow="1"] #gnCueNotice [data-gn-notice-close] {position:absolute;top:10px;right:10px;width:var(--gn-k-target);height:var(--gn-k-target);padding:0}
html[data-gn-glow="1"] #gnCueNotice h2 {padding-right:44px}
html[data-gn-glow="1"] #gnCueNotice > div:not(:has(button:not([hidden]))) {display:none}
/* The room keypad uses the same raised keys as the reader toolbar. */


html[data-gn-glow] #gnLeadDialog {box-sizing:border-box;width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px}
html[data-gn-glow] #gnLeadDialog::backdrop{background:#30251045;backdrop-filter:blur(5px)}
html[data-gn-glow] #gnLeadDialog h2 {margin:0 0 12px}
html[data-gn-glow] #gnLeadDialog form,html[data-gn-glow] #gnLeadDialog label{display:flex;flex-direction:column;gap:10px}
/* ONE-LOOK roomier spacing: intro, fields and Cancel no longer touch. */
html[data-gn-glow] #gnLeadDialog > p{margin:0 0 18px}
html[data-gn-glow] #gnLeadDialog > form{gap:14px}
html[data-gn-glow] #gnLeadDialog > button{margin-top:12px}
html[data-gn-glow] #gnLeadDialog input {box-sizing:border-box;width:100%;min-height:44px;text-align:center;padding:8px}
html[data-gn-glow] #gnLeadDialog .gn-lead-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0}
html[data-gn-glow] #gnLeadDialog button {min-height:44px;padding:10px;cursor:pointer}
/* W-PIN: the parish room PIN is set on the Lead sheet. Change and Sign in read as quiet links, still 44px targets. */
html[data-gn-glow] #gnLeadDialog .gn-lead-link{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:44px;margin-top:8px;padding:10px;border:0;background:none;box-shadow:none;color:#8C5F14;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px}
html[data-gn-glow] #gnLeadDialog > p.gn-lead-ask{margin:0 0 8px}
/* Option B Screens switch: two-position On / Off slider inside the tile and slim gold strip on the bottom bar when Off. */









/* E6 (iPad walk 10-26): a held coin is a hold, never a text selection or the iPad callout that cancels the touch. */
html[data-gn-glow="1"] #gnCueStrip button {-webkit-touch-callout:none; -webkit-user-select:none; user-select:none;}
/* E5 (iPad walk 10-26): a jump coin whose face is a word (D.S., Segno, Coda in Prep) grows to fit it; it used to be squeezed
   into a 52 px coin at 23 px, so "D.S. Segno" ran together and was cut off. Glyph coins and ending numbers keep 52 px. */
html[data-gn-glow="1"] body #gnCueStrip #jumpRailStack button:not(:has(svg, .gn-music-glyph, .gn-cap-icon)):not([data-jump-kind="two"]):not([data-jump-kind="three"]) {width:max-content !important; min-width:52px; max-width:140px; padding:0 12px !important; font:650 15px/1.1 var(--gn-sans); white-space:nowrap;}
