/* Header revision: full-width message ticker above, account tools on the nav's right. */
#app > #siteHeader.pofis-app-header{
 display:grid!important;
 grid-template-columns:minmax(140px,190px) minmax(0,1fr)!important;
 gap:clamp(10px,2vw,18px)!important;
 align-items:center;
 margin-bottom:12px!important;
}
#app > #siteHeader .pofis-header-brand{grid-column:1!important;grid-row:1!important;align-self:center}
#app > #siteHeader #dailyMessageBoard{
 grid-column:2!important;grid-row:1!important;width:100%!important;
 min-width:0;
}
#app > #siteTabs.tabs{
 display:flex!important;
 flex-wrap:nowrap!important;
 align-items:flex-end!important;
 justify-content:space-between;
 gap:10px!important;
 overflow:visible!important;
 padding:10px 10px 0!important;
 min-width:0;
}
#app > #siteTabs .pofis-nav-links{
 display:flex;align-items:flex-end;flex-wrap:nowrap;gap:3px;
 flex:1 1 auto;min-width:0;
 overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;
}
#app > #siteTabs .pofis-nav-links > button{
 flex:0 0 auto!important;
 font-size:clamp(10px,1.1vw,12px);
 padding-left:clamp(8px,1vw,14px)!important;
 padding-right:clamp(8px,1vw,14px)!important;
}
#app > #siteTabs .pofis-header-account{
 display:flex!important;flex:0 0 auto;
 min-width:0;max-width:min(330px,43%);
 flex-direction:column;align-items:flex-end;
 gap:5px;align-self:center;text-align:right;
 padding:2px 0 7px;
}
#app > #siteTabs .pofis-header-identity{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
#app > #siteTabs .pofis-header-account #username{
 font-size:11px;line-height:1.1;font-weight:800;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#app > #siteTabs .pofis-header-actions{
 display:flex;align-items:center;justify-content:flex-end;
 flex-wrap:nowrap;gap:4px;min-width:0;max-width:100%;
}
#app > #siteTabs .pofis-header-account :is(.theme-switch,#logout,#managerPasswordShortcut){
 font-size:10px!important;min-height:32px!important;height:32px;
 border-radius:9px;padding:6px 8px!important;
 white-space:nowrap;line-height:1;
}
#app > #siteTabs .pofis-header-account .pofis-help-bell{
 min-width:32px;width:32px;height:32px;border-radius:9px;padding:5px;
}
#app > #siteTabs .pofis-header-account .pofis-admin-shortcut{
 display:grid;place-items:center;min-width:24px;width:24px;height:24px;padding:0;
}
/* Main tab styles intentionally do not apply to the account controls. */
#app > #siteTabs.tabs .pofis-header-account button{
 display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 auto!important;position:relative;
 transform:none!important;box-shadow:none!important;
 border-radius:9px!important;line-height:1.15;
 min-height:32px!important;height:32px;
 padding:5px 8px!important;
 font-size:10px!important;font-weight:750!important;
}
#app > #siteTabs.tabs .pofis-header-account :is(.btn.secondary,.theme-switch){
 background:#f5fbf7!important;color:#286243!important;
 border:1px solid #cde5d6!important;
}
#app > #siteTabs.tabs .pofis-header-account .pofis-help-bell{
 display:grid;background:#f3f0ff!important;color:#5d46b5!important;
 border:1px solid #dddbe7!important;width:32px!important;padding:5px!important;
}
#app > #siteTabs.tabs .pofis-header-account .pofis-admin-shortcut{
 display:grid;background:transparent!important;border:0!important;
 color:#345044!important;width:28px!important;min-width:28px!important;padding:3px!important;
}
#app > #siteTabs.tabs .pofis-header-account .pofis-admin-shortcut.active{
 background:#d9f3df!important;color:#196f3c!important;
}
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account :is(.btn.secondary,.theme-switch){
 background:#303030!important;color:#e5e5e5!important;border-color:#505050!important;
}
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account .pofis-admin-shortcut{
 color:#dddddd!important;
}
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account .pofis-help-bell{
 background:#34303e!important;color:#d4b9ff!important;border-color:#575061!important;
}

#app > #siteTabs .pofis-header-account button.hidden{display:none!important}
#app > #siteTabs .pofis-header-account button:focus-visible{
 outline:2px solid #19bb70;outline-offset:2px;
}
@media(max-width:1040px){
 #app > #siteTabs.tabs{gap:5px!important}
 #app > #siteTabs .pofis-header-account{max-width:42%}
 #app > #siteTabs .pofis-header-account :is(.theme-switch,#logout,#managerPasswordShortcut){padding:6px!important;font-size:9px!important}
}
@media(max-width:800px){
 #app > #siteTabs.tabs{flex-wrap:wrap!important;gap:6px!important}
 #app > #siteTabs .pofis-header-account{
  order:-1;max-width:100%;width:100%;flex-direction:row;
  align-items:center;justify-content:flex-end;padding:0 1px 6px;
 }
 #app > #siteTabs .pofis-nav-links{order:1;width:100%;flex-basis:100%;gap:2px}
 #app > #siteTabs .pofis-header-actions{flex:0 1 auto}
}
@media(max-width:690px){
 #app > #siteHeader.pofis-app-header{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
 #app > #siteHeader .pofis-header-brand{grid-column:1!important;grid-row:1!important}
 #app > #siteHeader #dailyMessageBoard{grid-column:1!important;grid-row:2!important}
 #app > #siteTabs .pofis-header-account{flex-wrap:wrap;gap:6px}
 #app > #siteTabs .pofis-header-actions{flex-wrap:wrap}
 #app > #siteTabs .pofis-header-account :is(.theme-switch,#logout,#managerPasswordShortcut){font-size:10px!important}
}

/* Message editor detached from header: centered overlay instead of stretching ticker. */
.sms-compose-backdrop{position:fixed;inset:0;z-index:2400;background:#081019a8;backdrop-filter:blur(3px)}
.sms-compose-backdrop.hidden{display:none!important}
#dailyMessageCompose.sms-composer{
 position:fixed!important;z-index:2401!important;left:50%!important;top:50%!important;
 transform:translate(-50%,-50%)!important;
 width:min(480px,calc(100vw - 30px))!important;max-width:480px!important;
 max-height:min(85vh,690px)!important;overflow-y:auto!important;overflow-x:hidden!important;
 margin:0!important;padding:22px!important;box-sizing:border-box!important;
 border-radius:18px!important;box-shadow:0 24px 70px #0007!important;
 background:#f8faf8!important;color:#243b2e!important;border:1px solid #cbdccf!important;
}
#dailyMessageCompose.sms-composer.hidden{display:none!important}
#dailyMessageCompose.sms-composer form{display:flex;flex-direction:column;gap:12px;min-width:0}
#dailyMessageCompose.sms-composer textarea{width:100%!important;max-width:100%!important;min-width:0;box-sizing:border-box;resize:vertical}
#dailyMessageCompose.sms-composer .sms-compose-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#dailyMessageCompose.sms-composer .sms-manage{max-height:35vh;overflow:auto}
html[data-theme="dark"] #dailyMessageCompose.sms-composer{background:#242b28!important;color:#e9f3eb!important;border-color:#526258!important}
/* Account controls: isolated from selected navigation tab states. */
#app > #siteTabs.tabs .pofis-header-account button#adminTab{
 width:32px!important;min-width:32px!important;height:32px!important;
 padding:4px!important;border-radius:9px!important;background:transparent!important;
 color:#42594b!important;border:1px solid transparent!important;
 transform:none!important;box-shadow:none!important;
}
#app > #siteTabs.tabs .pofis-header-account button#adminTab.active,
#app > #siteTabs.tabs .pofis-header-account button#adminTab[aria-expanded="true"]{
 background:#edf1ee!important;color:#304a3c!important;border-color:#cedbd0!important;
 padding:4px!important;transform:none!important;box-shadow:none!important;
}
#app > #siteTabs.tabs .pofis-header-account button#adminTab:hover{
 background:#e7ede9!important;color:#234432!important;border-color:#d3dfd6!important;
}
#app > #siteTabs.tabs .pofis-header-account button#adminTab::after{content:none!important;display:none!important}
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account button#adminTab{color:#e1e5e2!important}
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account button#adminTab:is(:hover,.active,[aria-expanded="true"]){background:#343b37!important;color:#fff!important;border-color:#505a54!important}
#app > #siteTabs.tabs .pofis-header-account button#logout{
 width:34px!important;min-width:34px!important;height:34px!important;
 padding:6px!important;border:1px solid #b92635!important;border-radius:50%!important;
 background:#d83241!important;color:#fff!important;box-shadow:none!important;
}
#app > #siteTabs.tabs .pofis-header-account button#logout:is(:hover,:focus-visible),
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account button#logout:is(:hover,:focus-visible){
 background:#b92334!important;border-color:#a51b2c!important;color:#fff!important;
}
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account button#logout{
 background:#cd2d3b!important;color:#fff!important;border-color:#a92631!important;
}
#app > #siteTabs.tabs .pofis-header-account button#logout svg{width:19px;height:19px;flex:none;stroke:currentColor}
#app > #siteTabs.tabs .pofis-header-account button#logout::after{display:none!important}
.theme-switch.theme-slider,
#app > #siteTabs.tabs .pofis-header-account button.theme-slider,
#login.hero-login .theme-switch.theme-slider{
 display:inline-flex!important;align-items:center;justify-content:center;
 width:69px!important;min-width:69px!important;height:34px!important;min-height:34px!important;
 padding:0!important;border:0!important;border-radius:20px!important;
 background:transparent!important;color:inherit!important;
 box-shadow:none!important;cursor:pointer;line-height:1!important;
}
.theme-slider .theme-slider-track{
 display:block;position:relative;flex:none;width:67px;height:32px;border-radius:18px;
 background:#e5e9eb;border:1px solid #bcc9cf;transition:background .2s,border-color .2s;
}
.theme-slider .theme-slider-track svg{
 position:absolute;top:8px;width:15px;height:15px;z-index:2;
 pointer-events:none;transition:color .2s;
}
.theme-slider .theme-slider-sun{left:8px;color:#c58a25}
.theme-slider .theme-slider-moon{right:8px;color:#63748c}
.theme-slider .theme-slider-thumb{
 position:absolute;top:2px;left:2px;width:26px;height:26px;border-radius:50%;
 background:#fff;box-shadow:0 1px 4px #14292632;z-index:1;
 transition:transform .2s ease,background .2s ease;
}
html[data-theme="dark"] .theme-slider .theme-slider-track{
 background:#2f3542;border-color:#5b6577;
}
html[data-theme="dark"] .theme-slider .theme-slider-thumb{
 transform:translateX(35px);background:#566376;
}
html[data-theme="dark"] .theme-slider .theme-slider-sun{color:#a4adbb}
html[data-theme="dark"] .theme-slider .theme-slider-moon{color:#f1e5b4}
#app > #siteTabs.tabs .pofis-header-account button.theme-slider::after{display:none!important}
#app > #siteTabs.tabs .pofis-header-account button.theme-slider:focus-visible,
#login.hero-login .theme-slider:focus-visible{outline:2px solid #0bb56c!important;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.theme-slider .theme-slider-thumb,.theme-slider .theme-slider-track,.theme-slider .theme-slider-track svg{transition:none}}
/* Compact single-row account capsule: identity first, then theme and exit.
   Keep avatar discrete: a 27px portrait is recognizable but not another hero. */
#app > #siteTabs.tabs .pofis-header-account{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:flex-end!important;flex-wrap:nowrap!important;
 gap:8px!important;max-width:none!important;min-width:0!important;
 padding:0 0 6px!important;align-self:center!important;text-align:left!important;
}
#app > #siteTabs.tabs .pofis-header-account .pofis-header-identity{
 display:flex!important;flex:0 1 auto;align-items:center!important;justify-content:flex-start!important;
 gap:7px!important;min-width:0;min-height:38px;padding:4px 5px 4px 5px;
 border:1px solid #d3e1d8;border-radius:22px;background:#eef5f0;
 box-sizing:border-box;
}
#app > #siteTabs.tabs .pofis-header-account .pofis-mini-avatar{
 display:grid;place-items:center;position:relative;overflow:hidden;flex:0 0 28px;
 width:28px;height:28px;border-radius:50%;background:#d4eadc;
 border:1px solid #b9d6c2;color:#315943;font-size:13px;font-weight:900;line-height:1;
}
#app > #siteTabs.tabs .pofis-header-account .pofis-mini-avatar img{
 display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
 border-radius:50%;
}
#app > #siteTabs.tabs .pofis-header-account #username{
 flex:0 1 auto;min-width:0;max-width:90px;color:#273e31!important;
 font-size:12px!important;font-weight:850!important;line-height:1.2!important;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#app > #siteTabs.tabs .pofis-header-account .pofis-header-identity button#adminTab{
 flex:0 0 30px!important;min-width:30px!important;width:30px!important;
 height:30px!important;min-height:30px!important;margin-left:0!important;
 padding:5px!important;border-radius:50%!important;
}
#app > #siteTabs.tabs .pofis-header-account .pofis-header-identity button#adminTab svg{
 display:block;width:18px;height:18px;
}
#app > #siteTabs.tabs .pofis-header-account .pofis-header-actions{
 display:flex!important;flex:0 0 auto!important;align-items:center!important;
 flex-wrap:nowrap!important;gap:6px!important;min-width:0;
}
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account .pofis-header-identity{
 background:#2b302d!important;border-color:#454e47!important;
}
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account .pofis-mini-avatar{
 background:#35483b;border-color:#59715f;color:#e4ffe9;
}
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account #username{color:#f2f7f3!important}
@media(max-width:800px){
 #app > #siteTabs.tabs .pofis-header-account{width:100%!important;flex:0 0 100%!important}
}
@media(max-width:420px){
 #app > #siteTabs.tabs .pofis-header-account{gap:6px!important}
 #app > #siteTabs.tabs .pofis-header-account .pofis-header-identity{gap:5px!important}
 #app > #siteTabs.tabs .pofis-header-account #username{max-width:76px}
 #app > #siteTabs.tabs .pofis-header-account .pofis-header-actions{gap:4px!important}
}

/* Account identity is a clean, non-interactive profile chip. The manager
   control belongs with the other actions, never inside a user's name. */
#app > #siteTabs.tabs .pofis-header-account .pofis-header-identity{
 padding:4px 10px 4px 5px!important;gap:8px!important;
 min-height:38px;border-radius:20px!important;
}
#app > #siteTabs.tabs .pofis-header-account #username{
 max-width:104px!important;font-size:12px!important;
 font-weight:780!important;letter-spacing:.01em;
}
#app > #siteTabs.tabs .pofis-header-account .pofis-header-actions button#adminTab{
 display:inline-grid;place-items:center;width:34px!important;min-width:34px!important;
 height:34px!important;min-height:34px!important;flex:none;
 padding:6px!important;border-radius:50%!important;
 background:transparent!important;color:#53675b!important;
 border:1px solid #d1dcd5!important;
}
#app > #siteTabs.tabs .pofis-header-account .pofis-header-actions button#adminTab:is(:hover,.active,[aria-expanded="true"]){
 background:#e5efe8!important;border-color:#abcdb7!important;
 color:#236c44!important;box-shadow:none!important;
}
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account .pofis-header-actions button#adminTab{
 background:#2c332e!important;border-color:#484f4b!important;color:#d3e2d7!important;
}
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account .pofis-header-actions button#adminTab:is(:hover,.active,[aria-expanded="true"]){
 background:#38473d!important;border-color:#64836e!important;color:#dcffeb!important;
}
@media(max-width:420px){
 #app > #siteTabs.tabs .pofis-header-account #username{max-width:76px!important}
 #app > #siteTabs.tabs .pofis-header-account .pofis-header-identity{padding-right:8px!important}
}

/* Header portrait: show the original transparent avatar without a circular frame. */
#app > #siteTabs.tabs .pofis-header-account .pofis-mini-avatar,
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account .pofis-mini-avatar{
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#app > #siteTabs.tabs .pofis-header-account .pofis-mini-avatar img{
  border-radius:0!important;
  object-fit:contain!important;
}

/* Duty banner: compact date eyebrow above the unchanged title and subtitle. */
#dutyHero .duty-hero-copy .duty-week-range{
  display:inline-flex!important;align-self:flex-start!important;width:max-content!important;
  min-width:0!important;margin:0 0 5px!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
#dutyHero .duty-hero-copy .duty-week-range #week{
  display:block!important;font-size:12px!important;font-weight:750!important;
  line-height:1.35!important;letter-spacing:0!important;
}
