/* Portal chrome for static pages outside Main (Dispatch SMS at /sms/): the same side menu, bottom menu and search row as every
   Main page, in the same colours. Pairs with /static/switcher.css (bottom bar) and /static/portal-nav.js (menus).
   The bottom-menu rules below are copied from _bottom_nav.html; the side menu is the final look from theme-v2.css. */
:root{--bg:#181818;--panel:#242424;--line:#2c2c2c;--text:#f4f3ef;--sub:#b8b6ae;--mut:#918f88;--red:#ff7b6e;--desktop-sidebar-width:235px}
.desktop-sidebar{display:none}
@media(min-width:701px){
 .desktop-sidebar{display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;width:var(--desktop-sidebar-width);box-sizing:border-box;overflow-y:auto;
  z-index:79;padding:17px 12px 22px;background:#1f1f1f;border-right:1px solid #2c2c2c;color:#f4f3ef;scrollbar-width:thin;scrollbar-color:#2c2c2c transparent}
 .desktop-sidebar-heading{display:flex;flex-direction:column;gap:2px;padding:6px 12px 13px;border-bottom:1px solid #2c2c2c}
 .desktop-sidebar-heading small{font-size:10px;letter-spacing:1.25px;color:#918f88;font-weight:750}
 .desktop-sidebar-heading strong{font-size:17px;font-weight:700;color:#f4f3ef}
 .desktop-sidebar-nav{display:flex;flex-direction:column;align-items:stretch;gap:3px;padding:8px 0 0}
 .desktop-sidebar-section{display:block;padding:16px 12px 5px;font-size:10px;font-weight:750;letter-spacing:1.15px;color:#918f88}
 .desktop-sidebar-nav a{display:flex;align-items:center;min-height:37px;padding:9px 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:#b8b6ae;font-size:12px;line-height:1.35;font-weight:600;text-decoration:none}
 .desktop-sidebar-nav a:hover,.desktop-sidebar-nav a:focus-visible{background:#242424;color:#f4f3ef;outline-offset:1px}
 .desktop-sidebar-nav a.active{background:#2c2c2c;color:#f4f3ef;font-weight:730}
}
/* Page body sits right of the side menu on wide screens, full width on phones. */
.portal-main{display:flex;flex-direction:column;min-width:0}
@media(min-width:701px){.portal-main{margin-left:var(--desktop-sidebar-width)}}
/* Search row and filter drawer: identical to Issues, Units and Teams (all widths). */
.mobile-workspace-tools{display:block;margin:0;padding:10px 12px 8px}
.mobile-search-row{display:grid;grid-template-columns:minmax(0,1fr) 109px;gap:10px;align-items:center}
.mobile-search{height:47px;display:flex;align-items:center;gap:9px;min-width:0;padding:0 13px;border:1px solid #3a3a3a;border-radius:12px;background:#1f1f1f;color:#dedcd4}
.mobile-search svg,.mobile-filter-toggle svg{width:20px;height:20px;flex:none}
.mobile-search input{width:100%;min-width:0;min-height:0;border:0;outline:none;background:none;color:#f4f3ef;font-size:14px;padding:0;border-radius:0}
.mobile-search input::placeholder{color:#918f88}
.mobile-search:focus-within{border-color:#8ab4ff}
.mobile-filter-toggle{height:47px;min-height:0;border:1px solid #3a3a3a;border-radius:12px;background:#242424;color:#f4f3ef;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;padding:0}
.mobile-filter-toggle.is-open{background:#2c2c2c}
.mobile-filter-fields:not([hidden]){display:block;margin:11px 0 0;padding:13px;background:#242424;border:1px solid #2c2c2c;border-radius:12px}
.mobile-field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:11px}
.mobile-field-grid label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;color:#b8b6ae;font-weight:650}
.mobile-field-grid select,.mobile-field-grid input{width:100%;min-width:0;height:39px;min-height:0;border:1px solid #3a3a3a;border-radius:8px;background:#181818;color:#f4f3ef;padding:0 8px;font-size:13px;color-scheme:dark}
.mobile-filter-actions{display:flex;gap:9px;margin-top:12px}
.mobile-filter-actions button{border:1px solid #3a3a3a;border-radius:8px;background:#2c2c2c;color:#f4f3ef;padding:10px 12px;min-height:0;font-size:12px;font-weight:700;cursor:pointer}
.mobile-filter-actions .mobile-apply{flex:1;background:#f4f3ef;color:#181818}
/* Bottom menu and the "all pages" sheet (same rules as _bottom_nav.html). */
/* Double-tap never zooms (pinch zoom still works). Shared by every page that shows this menu. */
html,body{touch-action:manipulation}
.bn{display:grid;grid-template-columns:repeat(5,1fr);padding:5px 4px calc(2px + env(safe-area-inset-bottom) * .45);background:#181818;border-top:1px solid #2c2c2c;z-index:60}
.bn a,.bn button{display:flex;flex-direction:column;align-items:center;gap:4px;color:#918f88;font:600 11px/14px -apple-system,BlinkMacSystemFont,"Inter","Segoe UI",Roboto,sans-serif;text-decoration:none;padding:4px 0;position:relative;background:none;border:0;cursor:pointer}
.bn .on,.bn button[aria-expanded=true]{color:#f4f3ef}
.bn svg{width:22px;height:22px}
.bn .bn-badge{position:absolute;top:0;left:55%;min-width:15px;height:15px;border-radius:8px;background:#ff7b6e;color:#2a100c;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 4px}
.bn .bn-badge[hidden]{display:none}
.bn-fixed{position:fixed;left:0;right:0;bottom:0}
@media (min-width:901px){.bn-fixed{display:none}}
@media (max-width:900px){body.has-bn{padding-bottom:calc(var(--bn-h,58px) + 8px)}}
.bn-sheet{position:fixed;inset:0;overflow:auto;background:#181818;padding:calc(16px + env(safe-area-inset-top)) 20px calc(96px + env(safe-area-inset-bottom));z-index:59;font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",Roboto,sans-serif}
.bn-sheet[hidden]{display:none}
.bn-sheet-head{display:flex;justify-content:flex-end}
.bn-close{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:12px;background:#242424;color:#f4f3ef;cursor:pointer}
.bn-close svg,.bn-sheet a svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.bn-sheet small{display:block;margin:22px 0 4px;color:#918f88;font-size:12px;line-height:16px;font-weight:700;letter-spacing:.08em}
.bn-sheet small:first-of-type{margin-top:8px}
.bn-sheet a{min-height:48px;display:flex;align-items:center;gap:14px;color:#f4f3ef;text-decoration:none;font-size:16px;line-height:22px;font-weight:400}
.bn-sheet a svg{color:#b8b6ae}
.bn-sheet a::after{content:"";margin-left:auto;width:7px;height:7px;border-right:1.6px solid #918f88;border-top:1.6px solid #918f88;transform:rotate(45deg);margin-right:4px}
