/* Shared readability and action sizing. Intentionally contains no palette overrides. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{max-width:100%;overflow-x:clip}
body{font-size:14px}
body :where(p,label,li,td,th,button,input,select,textarea,a span:not(.bi),[class*="subtitle"],[class*="description"],[class*="meta"],[class*="kicker"],[class*="eyebrow"],[class*="status"]){font-size:max(12px,1em)!important}
body button:not([aria-hidden="true"]){font-size:14px!important}
body small{font-size:12px!important;line-height:1.4}
body :where(button,input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea){min-height:40px!important}
body button:is([id],[class]){min-width:40px!important;min-height:40px!important}
body :where(button,input,select,textarea,a[href],[role="button"]):focus-visible{outline:3px solid currentColor;outline-offset:3px}
body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea){font-size:14px!important}
body :where(input[type="checkbox"],input[type="radio"]){width:max(18px,1em);height:max(18px,1em)}
body :where(a[class*="button"],a[class*="link"].sidebar-link,.sidebar-link,[role="button"]){min-height:40px!important}
body :where(.modal-box,.drawer,.detail-modal,.network-invite-dialog){max-width:calc(100vw - 24px)}
img,svg,video{max-width:100%}
.app-feedback-toast{position:fixed;right:22px;bottom:22px;z-index:5000;max-width:min(390px,calc(100vw - 28px));padding:14px 18px;border-radius:9px;background:#315d4a;color:#fff;font-size:14px!important;line-height:1.45;box-shadow:0 14px 38px rgba(0,0,0,.18);opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .2s,transform .2s}.app-feedback-toast.error{background:#923825}.app-feedback-toast.show{opacity:1;transform:none}
.app-confirm-modal{position:fixed;inset:0;z-index:5100;display:none;align-items:center;justify-content:center;padding:16px}.app-confirm-modal.open{display:flex}.app-confirm-backdrop{position:absolute;inset:0;background:rgba(25,18,16,.52);backdrop-filter:blur(2px)}.app-confirm-dialog{position:relative;width:min(440px,100%);padding:25px;border:1px solid #dec4bc;border-radius:14px;background:#fff;box-shadow:0 22px 65px rgba(0,0,0,.2)}.app-confirm-dialog h2{margin:0 0 9px;font-size:22px}.app-confirm-dialog p{margin:0;color:#62666c;line-height:1.55}.app-confirm-dialog>div{margin-top:20px;display:flex;justify-content:flex-end;gap:9px}.app-confirm-dialog button{min-width:110px;padding:0 15px;border:1px solid #d9cbc6;border-radius:8px;background:#fff;color:#7c2e20;font-weight:700}.app-confirm-dialog [data-app-confirm-accept]{border-color:#a8402d;background:#a8402d;color:#fff}
@media(max-width:1024px),(pointer:coarse){
  body :where(button,a[class*="button"],.sidebar-link,[role="button"]){min-height:44px!important}
  body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea){min-height:44px!important}
  body button:is([id],[class]){min-width:44px!important;min-height:44px!important}
}
@media(max-width:760px){
  body{font-size:15px}
  body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea){min-height:44px!important;font-size:16px!important}
  body :where(.modal-box,.drawer,.detail-modal,.network-invite-dialog){max-height:calc(100dvh - 20px)}
  .app-feedback-toast{left:14px;right:14px;bottom:14px;max-width:none}
}
