/* Shared screen controls. Printing/exported documents keep their own styles.
   Content tiles, calendars, playback and status controls remain specialized. */
@media screen {
 body.glory-app{--action-height:44px;--action-radius:10px;--action-gap:8px}
 body.glory-app :is(.button,.prep-button,.care-small,.ui-action,button[type=submit],.gathering-workspace button:not([type])):not(.link-button):not(.photo-like):not(.directory-delete):not(.board-menu .button){
   display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
   gap:7px;min-height:var(--action-height)!important;height:auto;min-width:44px;
   padding:10px 14px!important;margin-block:0;font-family:inherit;font-size:14px!important;
   font-weight:600;line-height:22px!important;letter-spacing:-.015em;
   border-radius:var(--action-radius)!important;white-space:nowrap!important;
   word-break:keep-all;overflow-wrap:normal!important;text-decoration:none;box-shadow:none;
   flex-shrink:0;max-width:100%;vertical-align:middle;
 }
 body.glory-app .ui-action,body.glory-app.gathering-ops-theme .gathering-workspace .ui-action.secondary{border:1px solid var(--border-strong)!important;background:var(--surface)!important;color:var(--text-primary)!important}
 body.glory-app a.care-small{border:1px solid var(--border-strong);background:var(--surface);color:var(--text-primary)}
 body.glory-app button.care-small{border:1px solid var(--primary);background:var(--primary);color:#fff}
 body.glory-app :is(.button,.prep-button,.care-small,.ui-action):focus-visible{outline:3px solid var(--primary);outline-offset:3px}
 body.glory-app :is(.button,.prep-button,.care-small,.ui-action)>.icon{width:18px;height:18px;flex:0 0 18px;stroke-width:1.8}
 body.glory-app :is(.button,.prep-button,.care-small,.ui-action):disabled{opacity:.55;cursor:default}
 body.glory-app .ui-action-label{white-space:nowrap;line-height:22px}
 body.glory-app :is(.button-row,.team-actions,.closure-row,.gathering-share-actions,.prep-export-tools,.weekly-tools,.weekly-print-controls,.money-actions){gap:8px 10px;flex-wrap:wrap;align-items:center}
 body.glory-app :is(.button-row,.team-actions,.closure-row,.gathering-share-actions,.prep-export-tools){display:flex}
 body.glory-app :is(.team-actions,.closure-row,.button-row,.weekly-tools,.gathering-share-actions)>.ui-action{width:auto!important;flex:0 0 auto}
 body.glory-app .ui-output-menu>summary{display:inline-flex;align-items:center;justify-content:center;gap:8px;list-style:none;box-sizing:border-box;min-height:44px;padding:10px 14px;margin:0;border:1px solid var(--border-strong);border-radius:10px;background:var(--surface);color:var(--text-primary);font-size:14px;font-weight:600;line-height:22px;white-space:nowrap;cursor:pointer}
 body.glory-app .ui-output-menu>summary::-webkit-details-marker{display:none}
 body.glory-app .ui-output-menu>summary>.icon{width:18px;height:18px;flex:none}
 body.glory-app .ui-output-menu[open]>summary{background:var(--primary-soft);border-color:var(--primary)}
 body.glory-app :is(.prep-output,.money-output)>div{box-sizing:border-box;padding:8px!important;border:1px solid var(--border);border-radius:12px;background:var(--surface)!important;box-shadow:0 8px 28px #14233318;gap:4px}
 body.glory-app :is(.prep-output,.money-output)>div :is(a,button){display:flex!important;align-items:center;justify-content:flex-start!important;gap:8px;width:100%;min-height:44px!important;margin:0!important;padding:10px 12px!important;border:0!important;border-radius:8px!important;white-space:nowrap!important;font-size:14px!important;line-height:22px!important;font-weight:500!important;background:transparent!important;color:var(--text-primary)!important;box-shadow:none;text-decoration:none}
 body.glory-app :is(.prep-output,.money-output)>div :is(a,button):hover{background:var(--primary-soft)!important}
 body.glory-app .schedule-output-controls{gap:12px!important;row-gap:18px!important;align-items:flex-end}
 body.glory-app .schedule-output-controls :is(select,button[data-output]){height:44px!important;min-height:44px!important;margin:0!important;padding-block:0!important;font-size:14px!important;line-height:22px!important}
 body.glory-app.gathering-ops-theme .gathering-workspace .schedule-output-controls :is(select,button[data-output].ui-action){height:44px!important;min-height:44px!important;font-size:14px!important;line-height:22px!important}
 body.glory-app .weekly-paper-options{height:44px!important;min-height:44px!important;padding:2px!important;gap:2px;border-radius:10px}
 body.glory-app :is(.weekly-paper-options,.schedule-view-switch)>button{height:40px!important;min-height:40px!important;margin:0!important;padding:0 12px!important;line-height:22px!important;font-size:13px!important;white-space:nowrap!important}
 body.glory-app .schedule-view-switch{min-height:44px!important;height:44px!important;padding:2px!important}
 body.glory-app .weekly-paper-control{position:static;gap:6px}
 body.glory-app .weekly-paper-control>span{position:static;line-height:18px}
 body.glory-app .weekly-print-controls{align-items:flex-end;row-gap:12px}
 body.glory-app .weekly-print-controls>[data-weekly-print]{min-height:44px!important}
 body.glory-app #more-menu{width:min(480px,calc(100% - 24px));padding:20px;border-radius:18px;max-height:calc(100dvh - 32px);background:var(--surface);color:var(--text-primary);border:1px solid var(--border);box-shadow:0 16px 60px #14233324}
 body.glory-app #more-menu .dialog-heading{display:flex;align-items:center;gap:12px;margin-bottom:14px}
 body.glory-app #more-menu .dialog-heading{position:sticky;top:0;z-index:2;background:var(--surface);padding-block:6px}
 body.glory-app #more-menu .dialog-heading>div{min-width:0;flex:1}
 body.glory-app #more-menu .dialog-heading h2{font-size:22px;line-height:1.4;margin:0}
 body.glory-app #more-menu .more-links{display:grid;gap:4px}
 body.glory-app #more-menu .more-links>a,body.glory-app #more-menu .link-button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;box-sizing:border-box;margin:0;padding:10px 12px;border:0!important;border-radius:10px;background:transparent;color:var(--text-primary);font:500 14px/24px Pretendard,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-decoration:none;white-space:nowrap}
 body.glory-app #more-menu .more-links>a>.icon,body.glory-app #more-menu .link-button>.icon{width:22px;height:22px;flex:0 0 22px;stroke-width:1.7}
 body.glory-app #more-menu .more-links>a>span:last-child{margin-left:auto;flex:none;color:var(--text-secondary);font-size:18px}
 body.glory-app #more-menu .more-links>a:is(:hover,[aria-current=page]),body.glory-app #more-menu .link-button:hover{background:var(--primary-soft)}
 body.glory-app #more-menu .more-links>form{padding:0;margin:4px 0 0;border:0;background:none}
 body.glory-app #more-menu .ops-more-section{padding:12px 12px 4px;margin:8px 0 0;border-top:1px solid var(--border);font-size:12px;color:var(--text-secondary)}
 body.glory-app #more-menu .more-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;border-radius:10px;background:var(--surface-secondary);color:var(--text-primary);border:0}
 body.glory-app .ui-row-menu :is(a.button,button){min-height:44px!important;white-space:nowrap!important;border-radius:8px!important}
 @media(max-width:600px){
   body.glory-app :is(.button,.prep-button,.care-small,.ui-action,button[type=submit],.gathering-workspace button:not([type])):not(.link-button):not(.photo-like):not(.directory-delete):not(.board-menu .button){font-size:13px!important;padding-inline:12px!important}
   body.glory-app :is(.team-actions,.closure-row,.weekly-tools,.button-row,.gathering-share-actions){justify-content:flex-start}
   body.glory-app :is(.prep-output,.money-output)>div{max-width:calc(100vw - 48px)}
   body.glory-app .schedule-output-controls>.weekly-print-controls{flex-wrap:wrap}
   body.glory-app .schedule-output-controls>label{max-width:100%;min-width:0}
   body.glory-app #more-menu{padding:16px;max-height:calc(100dvh - 24px)}
   body.glory-app :is(.weekly-paper-options,.schedule-view-switch)>button{min-height:44px!important;height:44px!important}
   body.glory-app :is(.weekly-paper-options,.schedule-view-switch){height:48px!important;min-height:48px!important}
 }
 @media(prefers-reduced-motion:reduce){body.glory-app .ui-output-menu>summary{transition:none}}
}
@media screen{body.glory-app .gathering-workspace .team-page .team-registration-share>button.ui-action{min-height:44px!important}body.glory-app .gathering-workspace .team-page .team-registration-share .ui-action .team-share-text{font:inherit!important;line-height:22px!important}}
@media screen{body.glory-app.gathering-ops-theme .gathering-workspace .schedule-output-controls button.ui-action.secondary[data-output]{background:var(--surface)!important;color:var(--text-primary)!important;border-color:var(--border-strong)!important}body.glory-app .schedule-number-tools>summary{white-space:nowrap;font-size:13px}body.glory-app .ui-action:hover{background:var(--primary-soft)!important}}
@media screen{body.glory-app.gathering-ops-theme .gathering-workspace .ui-output-menu>div .ui-action.secondary{border:0!important;background:transparent!important;color:var(--text-primary)!important;border-radius:8px!important}body.glory-app.gathering-ops-theme .gathering-workspace .ui-output-menu>div .ui-action.secondary:hover{background:var(--primary-soft)!important}}@media screen and (max-width:600px){body.glory-app .prep-tabs{flex-wrap:wrap;overflow:visible;gap:3px 6px}body.glory-app .prep-tabs a{white-space:nowrap;min-height:44px;padding:10px 9px;font-size:13px}}

@media screen and (max-width:600px){body.glory-app .ops-board .board-menu{grid-template-columns:repeat(2,minmax(0,1fr))}body.glory-app .ops-board .board-menu>a.button{height:76px;min-height:76px;padding:10px 7px;white-space:normal;overflow-wrap:anywhere}body.glory-app .ops-board .board-menu>a.button>small{max-width:100%;line-height:1.5}}

@media screen and (max-width:600px){body.glory-app .ops-board .board-menu>.board-closeout-menu{display:contents}body.glory-app .ops-board .board-menu a.button{height:76px;min-height:76px;padding:10px 7px;white-space:normal;overflow-wrap:anywhere;font-size:12px}body.glory-app .ops-board .board-menu:has(>.board-closeout-menu>a+a)>.board-closeout-menu>a:last-child{grid-column:1/-1}}
