/* Maintenance is a neutral admission pause. Monitoring and task states retain
   their own meanings; there is no error color, countdown or moving lock. */
.sb .maintenance-banner,.sb .maintenance-settings{background:var(--bg-1);border:1px solid var(--line-2);color:var(--ink-2);box-shadow:none;border-radius:2px}
.sb .maintenance-banner p,.sb .maintenance-settings p{color:var(--ink-3);overflow-wrap:anywhere}
.maintenance-pause{display:inline-block;width:10px;height:12px;border-left:3px solid currentColor;border-right:3px solid currentColor;flex-shrink:0;vertical-align:-1px}
#maintenance-experience{margin-bottom:32px;min-width:0}
.maintenance-info{display:inline-block;position:relative;vertical-align:middle;margin-left:6px;font-weight:400;letter-spacing:0;line-height:1.5}
.sb .maintenance-info>[data-maintenance-info]{appearance:none;border:0;background:transparent;color:var(--ink-3);width:24px;height:24px;min-height:24px;padding:0;font:15px/24px var(--sans);cursor:pointer;border-radius:2px}
.sb .maintenance-info>[data-maintenance-info]{font-size:0}
.maintenance-info>[data-maintenance-info]:before{content:'i';display:inline-block;width:15px;height:15px;border:1px solid currentColor;border-radius:50%;font:11px/15px var(--sans);text-align:center;vertical-align:middle}
.maintenance-info-body{display:none;position:absolute;top:calc(100% + 6px);left:0;z-index:90;width:280px;max-width:calc(100vw - 48px);padding:14px;background:var(--bg-1);border:1px solid var(--line-2);color:var(--ink-2);font:12px/1.8 var(--sans);white-space:normal;overflow-wrap:anywhere;text-align:left}
.maintenance-info:hover>.maintenance-info-body,.maintenance-info.is-open>.maintenance-info-body{display:block}
.sb #shell-context:has(#maintenance-context:not([hidden])){flex-wrap:wrap;height:auto;min-height:52px;padding-top:10px;padding-bottom:10px;white-space:normal;overflow-x:visible}
.maintenance-resource-body{position:relative;padding-top:0}.maintenance-resource .maintenance-resource-body{padding-top:40px}.maintenance-resource .maintenance-resource-metrics{opacity:.55}
.maintenance-lock-band{position:absolute;left:0;right:0;top:0;height:28px;border:1px solid var(--ink-3);background:var(--bg);color:var(--ink-2);font:11px/26px var(--mono);display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;overflow:hidden;padding:0 6px}
.maintenance-lock-band .maintenance-pause{width:8px;height:9px;border-width:2px}.maintenance-resource-reason{font-size:12px;line-height:1.8;color:var(--ink-3);overflow-wrap:anywhere;margin:12px 0}
.maintenance-held{display:block;flex:1 0 100%;font-size:12px;line-height:1.8;color:var(--ink-2);padding:4px 0}.maintenance-held .maintenance-pause{margin-right:8px}
#submit-maintenance{margin-top:14px;padding:14px;border:1px solid var(--line-2);background:var(--bg-1)}#submit-maintenance p{font-size:12px;line-height:1.8;color:var(--ink-2);overflow-wrap:anywhere}#submit-maintenance label{font-size:12px;margin:12px 0 8px}#submit-maintenance .button{margin-top:8px}
.sb .terminal-maintenance-note{color:var(--ink-2);padding:10px 0;font-size:12px;border-top:1px solid var(--line-2)}
@media(max-width:759px){#maintenance-experience{margin-bottom:24px}.maintenance-lock-band{font-size:10px}}
@media(prefers-reduced-motion:reduce){
#maintenance-experience *, .maintenance-lock-band{animation:none!important;transition:none!important}}
@media(prefers-reduced-transparency:reduce){
.maintenance-lock-band{background:var(--bg-1)}}
@media(max-width:759px){.sb .maintenance-info>[data-maintenance-info]{width:44px;min-height:44px;height:44px}.maintenance-info-body{position:fixed;left:20px;right:20px;top:auto;bottom:150px;width:auto;max-width:none}.maintenance-info:not(.is-open)>.maintenance-info-body{display:none}}

/* Maintenance controls share the shell's gutter and control-height scale. */
#maintenance-experience{container:maintenance/inline-size}
.sb .maintenance-info>[data-maintenance-info]{width:32px;height:32px;min-height:32px;line-height:32px;flex:none}
.maintenance-info{margin-left:0;flex:none}
.maintenance-info-body{position:fixed;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;bottom:auto;right:auto}
.sb #maintenance-settings-dialog{container:maintenance-settings/inline-size;width:min(720px,calc(100vw - 2*var(--gutter)));max-height:calc(100dvh - 32px);margin:auto;padding:24px;overflow:auto}
.sb #maintenance-settings-dialog .modal-head{align-items:center;gap:12px;margin-bottom:20px}
.sb #maintenance-settings-dialog .modal-head h2{font-size:24px;line-height:1.3;margin:0;word-break:keep-all}
.sb #maintenance-settings-dialog .modal-head>.button{flex:none}
.sb .maintenance-settings form{grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr))}
.sb .maintenance-settings form :is(input,select){height:40px;min-height:40px}
.sb .maintenance-settings form>div{grid-column:1/-1;gap:8px;flex-wrap:wrap}
.sb #operational-maintenance .maintenance-banner{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:10px 14px;margin-bottom:18px;font-size:12px;line-height:1.5}
.sb #operational-maintenance .maintenance-banner>strong{font-size:12px;white-space:nowrap}
.sb #operational-maintenance .maintenance-notice-reason{flex:1;min-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb #operational-maintenance .maintenance-banner>.maintenance-info{margin:0}
@media(max-width:759px){
 .sb .maintenance-info>[data-maintenance-info]{width:44px;height:44px;min-height:44px;line-height:44px}
.sb #maintenance-settings-dialog .button,.sb .maintenance-settings form :is(input,select){height:44px;min-height:44px}
.sb .maintenance-settings>summary{min-height:44px}
}
