/* COMI V4.6: login utilities below login form; all behavior remains unchanged. */
#screen-login > div:first-child {width:100%;max-width:490px;box-sizing:border-box;}
#screen-login .comi-v46-utilities {margin-top:16px;border:1px solid #dbe3ef;border-radius:15px;background:#f8fafc;color:#1e293b;overflow:hidden;}
#screen-login .comi-v46-summary {padding:13px 15px;cursor:pointer;font-size:14px;font-weight:700;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;user-select:none;}
#screen-login .comi-v46-summary::-webkit-details-marker {display:none;}
#screen-login .comi-v46-summary:after {content:'⌄';font-size:21px;color:#64748b;transition:transform .15s ease;line-height:1;}
#screen-login .comi-v46-utilities[open] .comi-v46-summary:after {transform:rotate(180deg);}
#screen-login .comi-v46-summary:focus-visible {outline:3px solid #93c5fd;outline-offset:-3px;}
#screen-login .comi-v46-utility-body {border-top:1px solid #e2e8f0;padding:13px 14px 15px;}
#screen-login #comi-mode-switch {margin:0!important;}
#screen-login #comi-mode-switch select {width:100%;max-width:100%;min-height:44px;}
#screen-login #comi-mode-switch a {display:flex!important;align-items:center;min-height:40px;padding:8px 10px;margin:7px 0 0!important;background:white;border:1px solid #dbe3ef;border-radius:10px;text-decoration:none!important;font-size:13px;line-height:1.35;}
#screen-login #comi-mode-switch a:hover {background:#eff6ff;border-color:#93c5fd;}
#screen-login .comi-v46-action-links {display:grid;grid-template-columns:1fr;gap:8px;margin-top:10px;}
#openMasterV4.comi-v46-master-button {position:static!important;inset:auto!important;left:auto!important;bottom:auto!important;z-index:auto!important;display:flex!important;justify-content:center;align-items:center;width:100%;min-height:42px;margin:0!important;padding:9px 12px!important;font-size:13px!important;box-shadow:none!important;border-radius:10px!important;white-space:normal!important;}
#screen-login .comi-v46-action-links a {border:1px solid #dbe3ef;background:white;padding:9px 12px;text-align:center;border-radius:10px;font-size:13px;}
@media (max-width:480px) {
  #screen-login {align-items:flex-start!important;}
  #screen-login > div:first-child {max-width:100%;margin:0 auto!important;padding:18px 16px!important;}
  #screen-login .comi-v46-utility-body {padding:10px 11px 12px;}
  #screen-login .comi-v46-summary {padding:12px;}
}
@media(prefers-reduced-motion:reduce) {#screen-login .comi-v46-summary:after {transition:none;}}
