/* One-line role chrome only. Scoreboard/output documents never load this sheet. */
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]{--terminal-header-height:44px;--terminal-role-min:72px;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between;box-sizing:border-box;gap:10px!important;width:100%;min-width:0;min-height:var(--terminal-header-height)!important;height:var(--terminal-header-height)!important;margin:0!important;padding:4px 16px!important;border:0!important;background:#00d6b5!important;background-image:none!important;box-shadow:none!important;color:#111!important;font-family:"MiSans VF",sans-serif;line-height:24px;overflow:visible}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role][hidden]{display:none!important}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role][data-terminal-role=master]{--terminal-role-min:108px}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]>.terminal-header-heading{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;box-sizing:border-box;flex:1 1 auto!important;gap:10px!important;min-width:var(--terminal-role-min)!important;max-width:100%;width:auto;margin:0!important;padding:0!important;border:0;background:transparent}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role] .terminal-header-role{display:block!important;flex:0 0 auto;min-width:max-content;max-width:none;margin:0!important;padding:0!important;color:#111!important;font-family:inherit!important;font-size:18px!important;font-weight:700!important;line-height:24px!important;white-space:nowrap!important}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role] .terminal-header-event{display:block!important;flex:1 1 auto;box-sizing:border-box;min-width:0!important;max-width:100%!important;width:auto;margin:0!important;padding:0!important;border:0;background:transparent;color:#173c35!important;font-family:inherit!important;font-size:14px!important;font-weight:500!important;line-height:24px!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;text-overflow:clip!important;scrollbar-width:none;cursor:default}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role] .terminal-header-event::-webkit-scrollbar{display:none}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role] .terminal-header-event:focus-visible{outline:2px solid #17473c;outline-offset:2px}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role] [data-event-name-editable]{flex:0 1 auto;min-width:1em!important;border-bottom:1px dashed #17473c66;cursor:text}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role] [data-event-name-editable]:hover{border-bottom-color:#17473c;background:#ffffff16}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]>.terminal-header-actions,html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]>.score-desk-standalone-actions{display:flex!important;flex-direction:row;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end;flex:0 1 auto;gap:4px!important;box-sizing:border-box;min-width:0;max-width:100%;margin:0!important;padding:0!important}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]>.terminal-header-actions>[hidden],html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]>.score-desk-standalone-actions>[hidden]{display:none!important}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]>.terminal-header-actions>button,html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]>.score-desk-standalone-actions>button{flex-shrink:0}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role][data-terminal-role=master]>#terminal-shortcuts{flex:0 1 auto!important;min-width:0!important;width:auto;max-width:100%;flex-wrap:nowrap!important;margin-inline-start:0!important}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role][data-terminal-role=master]>.event-management{flex:0 0 auto;margin:0!important}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role][data-terminal-role=master]>.event-management>#event-management-toggle{min-height:32px;padding:5px 8px;white-space:nowrap}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role][data-terminal-role=master]>#header-action-feedback:not(:empty){position:absolute;right:12px;top:calc(100% + 5px);z-index:1250;max-width:calc(100vw - 24px);min-height:0;margin:0;padding:5px 8px;border-radius:4px;background:#242424;color:#ffb5bd;font-size:12px;line-height:18px}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role][data-terminal-role=viewer]>.viewer-header-actions{flex:0 0 auto}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role][data-terminal-role=viewer] #viewer-state{max-width:32px;min-height:0;margin:0;padding:0;background:transparent;color:#173c35}
html body.score-desk-standalone:not(.score-desk-preview) #app>#terminalRoleHeader{z-index:130;flex:none}
@media(max-width:700px){html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]{gap:8px!important;padding:4px 10px!important}html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]>.terminal-header-heading{gap:8px!important}html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role][data-terminal-role=master]>.event-management>#event-management-toggle{gap:3px;padding:5px 6px;font-size:12px}html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role][data-terminal-role=master]>.event-management>#event-management-toggle svg{width:14px;height:14px}}

/* Non-master role chrome is an overlay; its closed state reserves no content row. */
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]:not([data-terminal-role=master]){position:fixed!important;inset:0 0 auto!important;z-index:1402!important;transform:translateY(calc(-100% - 2px))!important;visibility:hidden!important;pointer-events:none!important;transition:transform 140ms cubic-bezier(.22,1,.36,1),visibility 0s linear 140ms}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role].is-terminal-header-open:not([data-terminal-role=master]){transform:translateY(0)!important;visibility:visible!important;pointer-events:auto!important;transition-delay:0s,0s}
html body .terminal-header-reveal{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:1403!important;display:block;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;height:12px!important;min-height:12px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#00d6b5;cursor:pointer;touch-action:manipulation}
html body .terminal-header-reveal::after{content:"";display:block;position:absolute;top:0;left:calc(50% - 20px);width:40px;height:3px;border-radius:0 0 3px 3px;background:#00d6b599;pointer-events:none}
html body .terminal-header-reveal:focus-visible{height:12px!important;min-height:12px!important;outline:2px solid #00d6b5;outline-offset:-2px}
html body .terminal-header-reveal[aria-expanded=true]{pointer-events:auto;opacity:0}
html body .terminal-header-reveal[aria-expanded=true]:focus-visible{pointer-events:auto;opacity:1}
html body.event-console-page.checkin-workspace main#app:has(#checkFlow:not([hidden])){height:100dvh!important;margin-top:0!important}
html body.score-desk-standalone:not(.score-desk-preview) #app:has(>#terminalRoleHeader)>#scoreboardView{height:100dvh!important;max-height:100dvh!important}
html body.viewer-body[data-viewer-fullscreen] .terminal-header-reveal{display:none!important}
@media(pointer:coarse){html body .terminal-header-reveal{height:16px!important;min-height:16px!important}}
@media(prefers-reduced-motion:reduce){html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]:not([data-terminal-role=master]){transition:none!important}}

html body.viewer-body[data-viewer-fullscreen] :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role]{transform:translateY(calc(-100% - 2px))!important;visibility:hidden!important;pointer-events:none!important}

/* Master controls are 38px tall; leave room around them in the single full-width row. */
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role=master]{--terminal-header-height:52px;gap:12px!important;padding:6px 12px!important}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role=master]>.terminal-header-heading{align-items:flex-end!important;overflow:hidden}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role=master] .terminal-header-event{line-height:20px!important}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role=master]>#terminal-shortcuts{gap:12px!important}
html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role=master]>#terminal-shortcuts>.terminal-shortcut-group{gap:8px}
@media(max-width:700px){html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role=master]{gap:8px!important;padding:6px 10px!important}html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role=master]>#terminal-shortcuts{gap:6px!important}html body :is(#terminalRoleHeader,#scoreDeskStandaloneHeader,header.terminal-role-header)[data-terminal-role=master]>#terminal-shortcuts>.terminal-shortcut-group{gap:4px}}

/* A reachable hover edge, with no reserved content height. */
html body.checkin-workspace .terminal-header-reveal{height:16px!important;min-height:16px!important}
html body .terminal-role-header[data-terminal-role] .terminal-fullscreen-toggle{display:inline-grid!important;place-items:center;flex:0 0 30px;min-width:30px!important;width:30px!important;height:30px!important;min-height:30px!important;margin:0!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#173c35!important;box-shadow:none!important}
html body .terminal-role-header[data-terminal-role] .terminal-fullscreen-toggle:hover{background:#11111112!important}
html body .terminal-role-header[data-terminal-role] .terminal-fullscreen-toggle svg{display:block;width:18px;height:18px}
