/* Staff shell — shared header, mobile menu and bottom nav for the staff pages.
   Public, cost-free UI code only (R15): no data, no keys, no pricing. */

/* Muted text: >= 4.5:1 on every staff surface (#0f1117 .. #252d3d). Pages map --text3 to it. */
:root{--shell-muted:#8b9ab0;--shell-h:56px;--shell-bottom-h:60px;}

#staff-shell{
  position:sticky;top:0;z-index:300;height:var(--shell-h);
  background:rgba(22,27,38,0.96);border-bottom:1px solid #2a3348;backdrop-filter:blur(14px);
  font-family:'Instrument Sans',sans-serif;color:#e2e8f0;
}
.ss-bar{height:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 24px;max-width:100%;}
.ss-left,.ss-right{display:flex;align-items:center;gap:12px;min-width:0;}
.ss-brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:#fff;font-family:'Cormorant Garamond',serif;font-size:18px;letter-spacing:0.06em;white-space:nowrap;}
.ss-mark{width:28px;height:28px;border:1.5px solid rgba(255,255,255,0.22);border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;font-family:'Instrument Sans',sans-serif;flex-shrink:0;}
.ss-nav{display:flex;align-items:center;gap:4px;margin-left:12px;}
.ss-link{font-size:13px;color:#94a3b8;text-decoration:none;padding:7px 12px;border-radius:7px;white-space:nowrap;transition:background 0.15s,color 0.15s;}
.ss-link:hover{background:#1e2535;color:#e2e8f0;}
.ss-link.active{background:rgba(79,126,248,0.14);color:#7ba4fb;}
.ss-user{font-size:12px;color:var(--shell-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px;}
.ss-logout{background:none;border:1px solid #344060;border-radius:7px;padding:6px 12px;font-size:12px;color:#94a3b8;cursor:pointer;font-family:inherit;white-space:nowrap;}
.ss-logout:hover{border-color:rgba(248,113,113,0.35);color:#f87171;}
.ss-title,.ss-menu-btn,.ss-menu,.ss-bottom{display:none;}

/* toast */
.ss-toast{position:fixed;left:50%;top:calc(var(--shell-h) + 12px);transform:translate(-50%,-8px);z-index:600;opacity:0;pointer-events:none;
  background:#1e2535;border:1px solid rgba(251,191,36,0.4);color:#fbbf24;border-radius:10px;padding:10px 16px;font:500 13px 'Instrument Sans',sans-serif;
  box-shadow:0 12px 32px rgba(0,0,0,0.45);transition:opacity 0.2s,transform 0.2s;max-width:calc(100vw - 32px);}
.ss-toast.show{opacity:1;transform:translate(-50%,0);}

@media (max-width:767px){
  .ss-bar{padding:0 12px;gap:10px;}
  .ss-brand-name,.ss-nav,.ss-right .ss-user,.ss-right .ss-logout{display:none;}
  .ss-title{display:block;font-size:15px;font-weight:500;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
  .ss-menu-btn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-right:-6px;background:none;border:none;color:#e2e8f0;font-size:22px;cursor:pointer;border-radius:8px;}
  .ss-menu-btn:focus-visible{outline:2px solid #4f7ef8;}
  .ss-menu{position:absolute;top:var(--shell-h);right:0;left:0;background:#161b26;border-bottom:1px solid #2a3348;box-shadow:0 18px 40px rgba(0,0,0,0.5);padding:8px 12px 12px;}
  .ss-menu.open{display:block;}
  .ss-menu a,.ss-menu button{display:flex;align-items:center;width:100%;min-height:48px;padding:0 12px;font:400 15px 'Instrument Sans',sans-serif;color:#e2e8f0;text-decoration:none;background:none;border:none;border-radius:8px;cursor:pointer;text-align:left;}
  .ss-menu a.active{color:#7ba4fb;background:rgba(79,126,248,0.12);}
  .ss-menu .ss-menu-user{min-height:36px;padding:0 12px;font-size:12px;color:var(--shell-muted);display:flex;align-items:center;border-top:1px solid #2a3348;margin-top:6px;}
  .ss-menu button{color:#f87171;}

  .ss-bottom{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:300;background:rgba(22,27,38,0.98);border-top:1px solid #2a3348;
    padding:0 8px env(safe-area-inset-bottom);height:calc(var(--shell-bottom-h) + env(safe-area-inset-bottom));backdrop-filter:blur(14px);}
  .ss-bottom a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:44px;height:var(--shell-bottom-h);
    font:500 11px 'Instrument Sans',sans-serif;color:var(--shell-muted);text-decoration:none;}
  .ss-bottom a svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;}
  .ss-bottom a.active{color:#7ba4fb;}
  body.ss-has-bottom{padding-bottom:calc(var(--shell-bottom-h) + env(safe-area-inset-bottom));}
}
