/* SUP125: shared MH Liquid Glass design tokens, responsive motion and accessible fallback.
   Does not alter existing JavaScript, navigation logic, authentication, or company brand marks. */
:root{
 --mh125-red:#a7192b;--mh125-red-light:#cf4150;
 --mh125-ink:#20181b;
 --mh125-glass-bg:linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,243,246,.84));
 --mh125-glass-edge:rgba(167,25,43,.22);
 --mh125-glass-glow:0 9px 29px rgba(55,13,21,.10),inset 0 1px rgba(255,255,255,.94);
 --mh125-liquid-time:260ms;
}
@keyframes mh125-sheen {from{transform:translateX(-190%) skewX(-22deg);opacity:0}22%{opacity:.55}70%{opacity:.45}to{transform:translateX(275%) skewX(-22deg);opacity:0}}
@keyframes mh125-soft-rise {from{opacity:.82;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@supports not ((backdrop-filter:blur(4px)) or (-webkit-backdrop-filter:blur(4px))) {
 :is(.card,.stat,.modal-box,.workflow-card,.company-card,.portal-card,.dialog,.mh14930-dialog) {
   background:#fff7f8!important;
 }
}
@media (prefers-reduced-motion:reduce) {
 :is(.card,.stat,.modal-box,.workflow-card,.company-card,.portal-card,.dialog,button,a,[role=tab]) {
  animation:none!important;transition:none!important;scroll-behavior:auto!important;
 }
}
@media (prefers-reduced-motion:no-preference) {
 button,a,[role=tab],input,select,textarea {
  transition:background-color var(--mh125-liquid-time) ease,border-color var(--mh125-liquid-time) ease,
  box-shadow var(--mh125-liquid-time) ease,color var(--mh125-liquid-time) ease,transform var(--mh125-liquid-time) ease;
 }
 :is(.panel.active,.tab-panel.active):not(.hidden) {
  animation:mh125-soft-rise 260ms cubic-bezier(.2,.8,.25,1) both;
 }
}
:where(button,a,input,select,textarea,[role=tab]):focus-visible {
 outline:2px solid var(--mh125-red-light)!important;outline-offset:2px;
}
:where(input,textarea,select) {caret-color:var(--mh125-red)}

body #office :is(.side .nav button,.task-toolbar button,.panel-head button,.tab,.mh-tab,[data-tab]){
 position:relative;isolation:isolate;border-radius:11px;
}
body #office .side .nav button:is(.active,:hover,[aria-current=page]){
 background:linear-gradient(120deg,rgba(175,29,44,.26),rgba(255,255,255,.10))!important;
 box-shadow:0 6px 22px rgba(34,5,13,.13),inset 0 0 0 1px rgba(219,113,124,.20);
}
body #office :is(.task-toolbar,.panel-head,.mh-update-grid,.mh105-history,.mh105-thread){
 border-radius:14px;
}
body #office :is(.mh105-thread,.mh105-history,.mh-update-grid) {box-shadow:inset 0 1px rgba(255,255,255,.96)}
body #office :is(input:not([type=checkbox]),textarea,select){
 border-radius:11px;max-width:100%;box-sizing:border-box;
}
body #office .mh-v120-upload {color:var(--mh125-ink)}
body #office :is(.primary,.ghost,[data-tab]):hover {box-shadow:0 5px 18px rgba(167,25,43,.14)}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 body #office .side .nav button:hover {transform:translateX(-2px)}
 body[dir=ltr] #office .side .nav button:hover{transform:translateX(2px)}
}
