/* Shared internal controls. Colour swatches and public artwork are excluded. */
body.system-studio button:not(#studioPalette button):not([onclick^="previewSticker"]){background:#244b6b!important;color:#fff!important;border:1px solid #244b6b!important;box-shadow:none!important;border-radius:9px;transform:none!important;line-height:1.5;max-width:100%;white-space:normal;cursor:pointer}
body.system-studio button.gray:not(#studioPalette button):not([onclick^="previewSticker"]),body.system-studio button.secondary:not(#studioPalette button){background:#edf3f7!important;color:#29475f!important;border-color:#cfdee8!important}
body.system-studio button.red:not(#studioPalette button),body.system-studio button.del,body.system-studio #dangerCard button{background:#fff1ef!important;color:#963b35!important;border-color:#e8cbc7!important}
body.system-studio button:disabled{opacity:.48;cursor:not-allowed}
body.system-studio button:hover{filter:brightness(.96)}
body.system-studio button:focus-visible,body.system-studio summary:focus-visible{outline:3px solid #87a9c4;outline-offset:3px}
body.system-studio[data-system-page="config"] .grid2,body.system-studio[data-system-page="team"] #main,body.system-studio[data-system-page="exports"] #main{display:block}
body.system-studio .admin-fold{margin:12px 0;border:1px solid #dce4ea;border-radius:10px;background:#fff;overflow:hidden}
body.system-studio .admin-fold>summary{cursor:pointer;padding:13px 16px;color:#29475f;font-size:16px;font-weight:650;list-style:none;background:#f5f8fa;display:flex;gap:12px;align-items:center}
body.system-studio .admin-fold>summary::-webkit-details-marker{display:none}
body.system-studio .admin-fold>summary:after{content:'＋';margin-left:auto;font-weight:400}
body.system-studio .admin-fold[open]>summary:after{content:'−'}
body.system-studio .admin-fold-body{padding:16px}
body.system-studio .admin-fold-body>h2,body.system-studio .admin-fold-body>h3{margin-top:0}
body.system-studio .admin-fold-host{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.system-studio .admin-fold-host>.admin-fold{margin-top:0}
body.system-studio .admin-fold-body>.checklist{margin:0}
@media(max-width:600px){body.system-studio .row>button:not(#studioPalette button):not([onclick^="previewSticker"]){max-width:100%;height:auto}body.system-studio .admin-fold-body{padding:12px}}

body.system-studio:has(.system-studio-nav)>header nav{display:none}
body.system-studio.system-admin-page{background:#f2f5f7;color:#1c3449}
body.system-studio .system-studio-nav,body.system-studio.system-admin-page>header,body.system-studio.system-admin-page .evbar,body.system-studio.system-admin-page .saveBar{background:#fff;border-color:#dce4ea}
body.system-studio #displayAttendance button:not([aria-pressed="true"]):not([data-da="refresh"]){background:#edf3f7!important;color:#29475f!important;border-color:#cfdee8!important}
body.system-studio button[aria-pressed="true"]:not(#studioPalette button){outline:2px solid #244b6b;outline-offset:2px}

/* Mail actions have one maintained entry point in the mail workspace. */
body.studio-admin #mailCard{display:none!important}
