/* A single field surface; generic glyphs and increment arrows have no nested button frames. */
html body :is(.ui-action-icon,.ui-glyph-button){box-sizing:border-box;display:inline-grid;place-items:center;width:32px;min-width:32px;height:32px;min-height:32px;margin:0;padding:4px!important;border:0!important;border-radius:4px;background:transparent!important;box-shadow:none!important;color:inherit;line-height:1;vertical-align:middle}
html body :is(.ui-action-icon,.ui-glyph-button)>svg{display:block;flex:none;width:20px;height:20px;stroke:currentColor;pointer-events:none}
html body summary.ui-action-icon{list-style:none;cursor:pointer}
html body summary.ui-action-icon::-webkit-details-marker{display:none}
html body :is(.ui-action-icon,.ui-glyph-button):is(:hover,:focus-visible){color:var(--skin-green,#00D6B5)}
html body :is(.ui-action-icon,.ui-glyph-button):disabled{background:transparent!important;box-shadow:none!important;border:0!important;opacity:.45;cursor:default}
html body :is(.simple-position-arrows,.simple-counter-arrows){padding:0;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body :is(.simple-position-arrows,.simple-counter-arrows)>button,html body :is([data-position-step],[data-counter-step]){padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline-offset:0;color:inherit}
html body :is(.simple-position-arrows,.simple-counter-arrows)>button:is(:disabled,:hover,:active,:focus-visible),html body :is([data-position-step],[data-counter-step]):is(:disabled,:hover,:active,:focus-visible){border:0!important;background:transparent!important;box-shadow:none!important}
html body input[type=number]::-webkit-inner-spin-button,html body input[type=number]::-webkit-outer-spin-button{background:transparent!important;border:0!important;box-shadow:none!important}
html body .setting-row,html body .text-style-grid>label,html body .timer-settings-pair{box-shadow:none}
html body .setting-file-actions:has(.ui-glyph-button){gap:8px;align-items:center}

html body #app .simple-counter-input{background:transparent!important;border:0!important;box-shadow:none!important}
html body .result-detail-card-35 .result-side-35{background:transparent!important;border:0!important;box-shadow:none!important}
html body.viewer-body #team-dialog .viewer-team-tools{display:grid;grid-template-columns:minmax(0,1fr) 36px 36px;align-items:center;gap:8px}
html body.viewer-body #team-dialog [data-team-search]{grid-column:1/3;grid-row:1;padding-right:44px}
html body.viewer-body #team-dialog [data-clear-team-filter].icon-only{grid-column:2;grid-row:1;justify-self:end;width:36px!important;min-width:36px;max-width:36px;height:36px;padding:6px!important;border:0!important;background:transparent!important;box-shadow:none!important}

html body.viewer-body #team-dialog [data-toggle-favorites].icon-only{grid-column:3;grid-row:1;justify-self:end;box-sizing:border-box;width:36px;min-width:36px;height:36px;min-height:36px;padding:6px!important;border:0!important;background:transparent!important;box-shadow:none!important}

/* Keep pure action glyphs bare inside the planner's stage surfaces. */
html body #app #schedule-planner :is(button.ui-action-icon,button.ui-glyph-button,button.plan-pairing-help,.stage-settings-head>button,.plan-stage-settings footer>button,.plan-stage-matches footer>button),
html body #dialog :is(button.ui-action-icon,button.ui-glyph-button),
html body :is(.plan-pairing-popover>[data-close-pairing],.stage-secondary-panel .stage-settings-head>button,.stage-secondary-panel footer>button.ui-action-icon){background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html body #app #schedule-planner :is(button.ui-action-icon,button.ui-glyph-button,button.plan-pairing-help,.stage-settings-head>button,.plan-stage-settings footer>button):is(:hover,:active,:focus-visible,:disabled),
html body :is(.plan-pairing-popover>[data-close-pairing],.stage-secondary-panel .stage-settings-head>button):is(:hover,:active,:focus-visible,:disabled){background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important}
html body #app #schedule-planner :is(button.ui-action-icon,button.ui-glyph-button,button.plan-pairing-help,.stage-settings-head>button)::before,
html body #app #schedule-planner :is(button.ui-action-icon,button.ui-glyph-button,button.plan-pairing-help,.stage-settings-head>button)::after,
html body .plan-pairing-popover>[data-close-pairing]::before,html body .plan-pairing-popover>[data-close-pairing]::after{content:none!important;display:none!important}
html body #app #schedule-planner button.plan-pairing-help{padding:4px!important;min-width:32px;width:32px;align-self:center}
html body .plan-pairing-popover>[data-close-pairing]{width:32px;min-width:32px;height:32px;min-height:32px;padding:4px!important;color:inherit}
html body [data-notification-anchor]{display:inline-flex;align-items:center;flex:none}

/* A compact stage editor: one source field, bare header actions, one clear save action. */
html body #schedule-planner .stage-settings-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
html body #schedule-planner .stage-settings-actions button{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:4px!important;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;color:inherit!important}
html body #schedule-planner .stage-settings-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid #414441}
html body #schedule-planner .stage-move-actions{display:flex;align-items:center;gap:12px;flex:none}
html body #schedule-planner .stage-move-actions>button{min-width:32px!important;width:32px!important;min-height:32px!important;height:32px!important;margin:0!important;padding:4px!important;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;color:inherit!important}
html body #schedule-planner [data-plan-save]{min-height:38px!important;padding:8px 20px!important;background:#00d6b5!important;border:0!important;color:#06382f!important;box-shadow:none!important;font-weight:700}
html body #schedule-planner [data-plan-save]:disabled{background:#3d413f!important;color:#929995!important;cursor:not-allowed;opacity:1}
html body #schedule-planner .plan-save-reason{flex-basis:100%;margin:0;padding:0;color:#b9bebc;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
html body #schedule-planner .plan-group-picker{position:relative;min-width:0;width:100%;margin:0;padding:0}
html body #schedule-planner .plan-group-picker>summary{position:relative;box-sizing:border-box;display:block;list-style:none;min-height:40px;padding:9px 34px 9px 12px;border:1px solid #666b68;border-radius:9px;background:#252725;color:inherit;line-height:1.5;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #schedule-planner .plan-group-picker>summary::-webkit-details-marker{display:none}
html body #schedule-planner .plan-group-picker>summary::after{content:'';position:absolute;right:14px;top:calc(50% - 4px);width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
html body #schedule-planner .plan-group-picker[open]>summary{border-color:#00d6b5}
html body #schedule-planner .plan-group-menu{position:absolute;z-index:10;top:calc(100% + 5px);left:0;right:0;max-height:220px;overflow-y:auto;overscroll-behavior:contain;padding:5px 0;background:#252725;border:1px solid #555c57;border-radius:9px;box-shadow:0 10px 24px #0005}
html body #schedule-planner .plan-group-menu label{display:flex;align-items:center;gap:9px;padding:9px 12px;margin:0;cursor:pointer;white-space:nowrap}
html body #schedule-planner .plan-group-menu label:hover{background:#353a36}
html body #schedule-planner .plan-group-menu input[type=checkbox]{flex:none;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;padding:0!important;margin:0!important;accent-color:#00d6b5}
html body #schedule-planner .plan-group-menu small{margin-left:auto;font-size:12px;color:#a8b0ab}
html body #schedule-planner .plan-group-picker>summary:focus-visible{outline:2px solid #00d6b5;outline-offset:2px}

/* One small state beside each heading; explanations stay on hover. */
html body #schedule-planner .plan-draft-status,html body #schedule-planner .plan-time-status{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:24px;padding:2px 0;border:0;background:transparent;box-shadow:none;font-size:12px;font-weight:500;line-height:1.4;color:#aeb7b1;white-space:nowrap}
html body #schedule-planner .plan-draft-status::before,html body #schedule-planner .plan-time-status::before{content:'';width:6px;height:6px;border-radius:50%;flex:none;background:currentColor}
html body #schedule-planner .plan-draft-status:is(.is-unsaved,.is-unpublished),html body #schedule-planner .plan-time-status.is-pending{color:#d8bc6b}
html body #schedule-planner .plan-draft-status.is-published,html body #schedule-planner .plan-time-status.is-synced{color:#80cdb5}
html body #schedule-planner .plan-draft-status>svg{width:14px;height:14px;flex:none}
html body #schedule-planner .plan-undo-button{display:inline-grid;place-items:center;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:6px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#c1c8c3!important}
html body #schedule-planner .plan-undo-button>svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html body #schedule-planner .plan-undo-button:disabled{opacity:.35;cursor:default}
html body #schedule-planner .plan-time-title{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
html body #schedule-planner .plan-time-title h2{margin:0}
html body #schedule-planner .plan-time-info{display:inline-grid;place-items:center;width:26px!important;min-width:26px!important;height:26px!important;min-height:26px!important;padding:4px!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#aeb7b1!important}
html body #schedule-planner .plan-time-info>svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}

html body #schedule-planner .plan-draft-status:not(.is-published)>svg{display:none}
html body #schedule-planner .plan-draft-status.is-published::before{display:none}

/* Override the legacy dark button skin for glyphs, including disabled arrows. */
html body.event-console-page:is(:has(#master-sidebar),.checkin-workspace) :is(main#app,dialog) :is(button.ui-action-icon,button.ui-glyph-button,.stage-settings-actions>button,.plan-pairing-help,.stage-move-actions>button),
html body.event-console-page :is(main#app,#checkinView,dialog) :is(button.ui-action-icon,button.ui-glyph-button):not(.primary):not(.active):not([aria-selected=true]):not([aria-pressed=true]),
html body.event-console-page :is(main#app,#checkinView,dialog) :is(button.ui-action-icon,button.ui-glyph-button):disabled{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;border-radius:0!important}
html body #schedule-planner .plan-toolbar .plan-save-reason{display:none}

/* Reserve one compact header slot so the pending indicator never displaces or overlaps actions. */
html body [data-notification-anchor]{min-width:36px;min-height:32px;justify-content:center;align-self:center}

/* 132: only framed outer surfaces, never table cells, match rows or progress segments. */
html body.event-console-page:is(:has(#master-sidebar),.checkin-workspace) main#app :is(.card,.terminal-tile,.plan-stage,.plan-time-plan,.plan-preview,.standings-group,.standings-bracket-stage),
html body.score-desk-standalone #app :is(.control-panel,.preview-panel,#eventMatchNav),
html body :is(dialog,.result-detail-card-35) .result-detail-card-35{border-radius:12px!important}
