/* V6.16 / visual direction 2027 — unified, mobile-first app surfaces */
body{overscroll-behavior-y:contain}
.afra-app-install{position:fixed;z-index:95;bottom:calc(82px + env(safe-area-inset-bottom,0px));right:16px;background:linear-gradient(125deg,#bf2444,#9e1f3b);color:white;border:0;border-radius:100px;padding:11px 16px;box-shadow:0 12px 35px rgba(155,33,61,.25);font:800 12px Vazirmatn,Tahoma,sans-serif;cursor:pointer;transition:transform .2s}
.afra-app-install:hover{transform:translateY(-3px)}.afra-app-install[hidden]{display:none!important}
.afra-app-dock{display:none}.afra-app-dock svg{width:19px;height:19px}
#header .afra-main-nav>a{position:relative;transition:transform .23s,background .23s,box-shadow .23s!important}
#header .afra-main-nav>a:hover{transform:translateY(-2px)}
#header .afra-main-nav>a>.afra-ui-icon,.tp-nav>a>.afra-ui-icon{margin-inline-end:6px;width:17px;height:17px}
#dashNav button .afra-ui-icon{width:18px;height:18px}.dash-nav-icon .afra-ui-icon{width:19px;height:19px}
.afra-notice-management .setting-head{margin-bottom:20px}.afra-notice-management .setting-head p{max-width:650px}.afra-notice-form{padding:18px;border-radius:19px;border:1px solid #dce9f3;background:#f7fbff}
.afra-admin-notice-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px;margin-top:20px}
.afra-admin-notice-card{border:1px solid #d9e6f1;border-radius:19px;padding:17px;background:linear-gradient(180deg,#fff,#f9fcff);min-width:0;box-shadow:0 7px 22px rgba(15,55,100,.05)}
.afra-admin-notice-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.afra-admin-notice-top strong{overflow-wrap:anywhere}.afra-admin-notice-card p{white-space:pre-wrap;line-height:1.9;font-size:13px;color:#59748f;overflow-wrap:anywhere}
.afra-admin-notice-meta{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;color:#68829c;margin:13px 0;padding-top:10px;border-top:1px solid #e3edf5}
@media(max-width:850px){
 body{padding-bottom:calc(75px + env(safe-area-inset-bottom,0px))!important}
 .afra-app-dock{position:fixed;bottom:0;left:0;right:0;z-index:88;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-height:64px;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));gap:4px;background:rgba(255,255,255,.97);border-top:1px solid #d4e3ef;box-shadow:0 -10px 30px rgba(19,65,105,.08);backdrop-filter:blur(22px)}
 .afra-app-dock a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;border-radius:12px;color:#3c688c;text-decoration:none;font:750 10px/1.4 Vazirmatn,Tahoma,sans-serif;min-width:0}
 .afra-app-dock a:hover,.afra-app-dock a[aria-current=page]{background:#eef6fc;color:#b82a44}
 .mobile-dock{display:none!important}
 .head-buttons,.head-links{gap:6px;flex-wrap:wrap}
 .afra-n-bell{order:0}
 .afra-app-install{bottom:calc(85px + env(safe-area-inset-bottom,0px))}
 #dashNav{scrollbar-width:thin}
}
@media(max-width:420px){.afra-app-dock a{font-size:9px}.afra-app-dock{gap:1px}.work-head .work-brand strong{font-size:13px}.head-links .owner-link{display:none}}
html[data-theme=dark] .afra-app-dock{background:rgba(12,31,53,.97);border-color:#35516f}html[data-theme=dark] .afra-app-dock a{color:#d1e5f7}html[data-theme=dark] .afra-app-dock a[aria-current=page]{background:#274560;color:#fff}
html[data-theme=dark] .afra-admin-notice-card,html[data-theme=dark] .afra-notice-form{background:#1a3451;border-color:#355674}html[data-theme=dark] .afra-admin-notice-card p{color:#bcd0e0}
@media(prefers-reduced-motion:reduce){.afra-app-install,#header .afra-main-nav>a{transition:none!important}}
@media(max-width:750px){#header .afra-header-brand{max-width:calc(100% - 145px)!important}#header .afra-head-actions{flex-shrink:0!important;gap:4px!important}#header .afra-header-inner{gap:6px!important}}
@media(max-width:390px){#header .afra-header-brand .brand-copy small{display:none!important}#header .afra-header-brand .brand-copy strong{max-width:calc(100vw - 175px)!important;font-size:13px!important}}
.tp-head-actions{display:flex;align-items:center;gap:8px}.tp-head-actions .afra-n-bell{flex:0 0 40px}
@media(max-width:800px){.tp-head-actions{max-width:100%;flex-wrap:wrap}}
