/* MI OS 9F.5 — MI Experience: compact Today controls, branded loader + notifications */
@media(min-width:821px){
  .today-workspace-grid .today-execution-row{grid-template-columns:28px 38px minmax(0,1fr) 104px!important;align-items:start}
  .today-workspace-grid .today-focus-actions{grid-column:4!important;display:grid!important;grid-template-columns:1fr!important;gap:6px!important;align-self:center;justify-self:stretch;min-width:0!important}
  .today-workspace-grid .today-focus-actions>a,.today-workspace-grid .today-focus-actions>form,.today-workspace-grid .today-focus-actions>details{width:100%;margin:0!important}
  .today-workspace-grid .today-focus-actions .btn,.today-workspace-grid .today-move-menu>summary{width:100%!important;min-width:0!important;min-height:34px!important;padding:7px 8px!important;font-size:11px!important;line-height:1.15;justify-content:center;text-align:center;border-radius:8px}
  .today-workspace-grid .today-action-description{max-width:52rem}
}
@media(min-width:821px) and (max-width:1080px){
  .today-workspace-grid .today-execution-row{grid-template-columns:28px 38px minmax(0,1fr) 92px!important}
}

.mios-loader{position:fixed;inset:0;z-index:30000;display:grid;place-items:center;background:rgba(244,248,249,.82);backdrop-filter:blur(5px);opacity:0;visibility:hidden;transition:opacity .16s ease,visibility .16s ease}
.mios-loader.is-visible{opacity:1;visibility:visible}.mios-loader-card{width:min(330px,calc(100vw - 36px));padding:27px 24px 23px;border:1px solid #d9e5e8;border-radius:22px;background:#fff;box-shadow:0 22px 70px rgba(6,49,61,.16);text-align:center}
.mios-loader-mark{position:relative;width:58px;height:58px;margin:0 auto 14px;display:grid;place-items:center;border-radius:17px;background:#cf202f;color:#fff;font-size:20px;font-weight:900;letter-spacing:-.03em;box-shadow:0 10px 25px rgba(207,32,47,.22)}
.mios-loader-mark:after{content:"";position:absolute;inset:-7px;border:2px solid rgba(118,80,214,.2);border-top-color:#7650d6;border-radius:22px;animation:mios-spin .9s linear infinite}.mios-loader-card strong{display:block;color:#073746;font-size:18px}.mios-loader-card small{display:block;margin-top:5px;color:#70838b;font-size:13px;line-height:1.4}
@keyframes mios-spin{to{transform:rotate(360deg)}}
.mios-toast-stack{position:fixed;right:22px;top:22px;z-index:31000;display:grid;gap:10px;width:min(390px,calc(100vw - 32px));pointer-events:none}.mios-toast{pointer-events:auto;display:grid;grid-template-columns:38px minmax(0,1fr) 28px;gap:10px;align-items:start;padding:13px 13px 13px 14px;border:1px solid #d8e5e8;border-radius:15px;background:#fff;box-shadow:0 15px 45px rgba(6,49,61,.16);animation:mios-toast-in .2s ease-out}.mios-toast-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#eaf7f2;color:#16865b;font-weight:900}.mios-toast.warning .mios-toast-icon{background:#fff5d9;color:#9a6a00}.mios-toast.error .mios-toast-icon{background:#fff0f1;color:#c51f31}.mios-toast.info .mios-toast-icon{background:#f0ecff;color:#6846c7}.mios-toast-copy strong{display:block;color:#073746;font-size:14px;line-height:1.25}.mios-toast-copy small{display:block;margin-top:3px;color:#667e87;font-size:12px;line-height:1.4}.mios-toast-close{border:0;background:transparent;color:#78909a;font-size:20px;line-height:1;cursor:pointer;padding:2px}.mios-toast.is-leaving{opacity:0;transform:translateY(-5px);transition:.16s ease}
@keyframes mios-toast-in{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:none}}
.mios-modal-shell{position:fixed;inset:0;z-index:32000;display:grid;place-items:center;padding:20px;background:rgba(6,40,50,.42);backdrop-filter:blur(4px)}.mios-modal{width:min(460px,100%);border-radius:20px;background:#fff;border:1px solid #d7e4e8;box-shadow:0 28px 90px rgba(3,35,44,.28);padding:22px}.mios-modal-head{display:flex;align-items:center;gap:11px}.mios-modal-head .mios-modal-icon{width:38px;height:38px;border-radius:11px;background:#f0ecff;color:#6846c7;display:grid;place-items:center;font-weight:900}.mios-modal h3{margin:0;color:#073746;font-size:20px}.mios-modal p{margin:12px 0 0;color:#58717a;line-height:1.5;white-space:pre-line}.mios-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:19px}.mios-modal-actions button{min-height:40px;padding:8px 16px;border-radius:10px;border:1px solid #cbdde2;background:#fff;color:#073746;font-weight:800;cursor:pointer}.mios-modal-actions .primary{background:#cf202f;border-color:#cf202f;color:#fff}
@media(max-width:600px){.mios-toast-stack{top:auto;bottom:16px;right:16px;left:16px;width:auto}.mios-loader-card{padding:23px 19px}.mios-modal-shell{align-items:end;padding:12px}.mios-modal{border-radius:18px}}
@media(prefers-reduced-motion:reduce){.mios-loader-mark:after{animation:none}.mios-toast{animation:none}.mios-loader,.mios-toast.is-leaving{transition:none}}

/* MI OS 9F.6 — unmistakable MI-Coolness pass */
@media(min-width:821px){
  .today-workspace-grid .today-execution-row{grid-template-columns:28px 38px minmax(0,1fr) 84px!important;column-gap:10px!important}
  .today-workspace-grid .today-focus-actions{width:84px!important;gap:5px!important;align-self:center!important}
  .today-workspace-grid .today-focus-actions .btn,.today-workspace-grid .today-move-menu>summary{min-height:29px!important;padding:5px 6px!important;font-size:9.5px!important;line-height:1.05!important;border-radius:7px!important;box-shadow:none!important;white-space:normal!important}
  .today-workspace-grid .today-action-description{max-width:none!important}
}
.mios-loader{background:linear-gradient(145deg,rgba(4,47,61,.94),rgba(9,71,86,.91));backdrop-filter:blur(9px);transition:opacity .18s ease,visibility .18s ease}
.mios-loader-card{position:relative;overflow:hidden;width:min(390px,calc(100vw - 36px));padding:34px 30px 29px;border:1px solid rgba(255,255,255,.24);border-radius:26px;background:rgba(255,255,255,.97);box-shadow:0 30px 100px rgba(0,20,27,.4)}
.mios-loader-card:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,#cf202f,#7650d6,#078aa2);background-size:200% 100%;animation:mios-shimmer 1.2s linear infinite}
.mios-loader-mark{width:72px;height:72px;margin-bottom:18px;border-radius:21px;font-size:24px;box-shadow:0 15px 35px rgba(207,32,47,.28)}
.mios-loader-mark:after{inset:-9px;border-width:3px;border-color:rgba(118,80,214,.18);border-top-color:#7650d6;border-right-color:#078aa2}
.mios-loader-card strong{font-size:22px;letter-spacing:-.02em}.mios-loader-card small{margin-top:7px;font-size:14px}
.mios-loader-card small:after{content:" • • •";display:inline-block;color:#7650d6;letter-spacing:3px;animation:mios-pulse 1s ease-in-out infinite}
@keyframes mios-shimmer{to{background-position:-200% 0}}@keyframes mios-pulse{50%{opacity:.25}}
.mios-toast-stack{top:auto;bottom:24px;right:24px;width:min(430px,calc(100vw - 32px))}.mios-toast{border-left:5px solid #078aa2;padding:15px 14px;border-radius:17px;box-shadow:0 20px 60px rgba(6,49,61,.23)}.mios-toast.success{border-left-color:#16865b}.mios-toast.warning{border-left-color:#d99a14}.mios-toast.error{border-left-color:#cf202f}.mios-toast-copy strong{font-size:15px}.mios-toast-copy small{font-size:13px}.mios-toast-icon{width:38px;height:38px;border-radius:12px}
.mios-modal-shell{background:rgba(3,31,40,.64);backdrop-filter:blur(8px)}.mios-modal{overflow:hidden;padding:0;border:0;border-radius:24px;box-shadow:0 34px 110px rgba(0,20,27,.46)}.mios-modal:before{content:"";display:block;height:5px;background:linear-gradient(90deg,#cf202f,#7650d6,#078aa2)}.mios-modal-head{padding:24px 24px 0}.mios-modal>p{padding:0 24px}.mios-modal-actions{padding:0 24px 22px}
@media(max-width:600px){.mios-toast-stack{bottom:16px;right:16px;left:16px}.mios-loader-card{padding:30px 22px 25px}.mios-loader-mark{width:64px;height:64px}}

/* 9F.7 — Experience wiring repair.
   9F.5/9F.6 imported this module after ordinary CSS rules in app.css. CSS @import
   is only valid before other style rules, so browsers ignored the experience module.
   layout.php now loads this file directly. These rules make the repaired controls obvious. */
#mios-loader{pointer-events:none}
#mios-loader.is-visible{pointer-events:auto}
@media(min-width:821px){
  .today-workspace-grid .today-execution-row{grid-template-columns:28px 38px minmax(0,1fr) 92px!important;gap:10px!important}
  .today-workspace-grid .today-focus-actions{grid-column:4!important;width:92px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;gap:6px!important}
  .today-workspace-grid .today-focus-actions>a,
  .today-workspace-grid .today-focus-actions>form,
  .today-workspace-grid .today-focus-actions>details{display:block!important;width:100%!important;margin:0!important}
  .today-workspace-grid .today-focus-actions .btn,
  .today-workspace-grid .today-move-menu>summary{display:flex!important;width:100%!important;min-width:0!important;min-height:30px!important;padding:6px 7px!important;align-items:center!important;justify-content:center!important;font-size:10px!important;line-height:1.1!important;border-radius:8px!important;white-space:normal!important}
  .today-workspace-grid .today-focus-copy{min-width:0!important}
  .today-workspace-grid .today-action-description{max-width:none!important}
}
