:root{--ink:#152c43;--muted:#405367;--line:#dce5eb;--brand:#087f85;--paper:#fff;--bg:#f3f6f9;--red:#b52c46}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 system-ui,Segoe UI,sans-serif}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}.shell{display:grid;grid-template-columns:225px 1fr;min-height:100vh}aside{background:#132d43;color:#dbe8ef;padding:30px 20px;position:sticky;top:0;height:100vh}.brand{font-size:30px;font-weight:750;letter-spacing:-1px;color:#fff}.brand span{color:#49d4cc}aside nav{margin-top:40px}aside a{display:block;color:#bfceda;padding:12px 16px;border-radius:9px;margin-bottom:6px}aside a.active,aside a:hover{background:#24455c;color:white;text-decoration:none}.aside-bottom{position:absolute;bottom:30px;font-size:12px;color:#a9bbca;max-width:180px}main{padding:32px 4vw;min-width:0;max-width:1550px}header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}h1{font-size:30px;letter-spacing:-.8px;margin:0}h2{font-size:19px;margin:0 0 18px}h3{font-size:16px;margin:0 0 12px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.5px;font-weight:700;color:var(--muted);margin-bottom:6px}.muted{color:var(--muted)}.card{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:22px;box-shadow:0 2px 4px #172d4203}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:20px}.stat strong{font-size:30px;display:block}.row{display:flex;flex-wrap:wrap;gap:0;align-items:stretch}.table-responsive{max-width:100%;overflow-x:auto}.between{justify-content:space-between}.button,button{display:inline-block;background:var(--brand);color:#fff;border:0;border-radius:8px;padding:10px 16px;font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}.secondary{background:#e9f0f5;color:var(--ink)}.danger{background:var(--red)}button:disabled{opacity:.5;cursor:default}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}label{font-size:13px;font-weight:600;display:block}input,select,textarea{display:block;width:100%;border:1px solid #c9d6e0;background:white;border-radius:7px;padding:10px;color:var(--ink);font:inherit;margin-top:5px}textarea{min-height:90px}input[type=checkbox]{width:auto;display:inline-block;vertical-align:middle;margin-right:8px}input:focus,select:focus,textarea:focus{outline:2px solid #36b6b799;outline-offset:1px}.field{margin-bottom:16px}.checkbox{font-weight:400;padding:5px 0}.actions{margin-top:20px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.badge{display:inline-block;font-size:12px;padding:4px 9px;border-radius:20px;background:#e5f3f2;color:#09646b}.badge.gray{background:#edf1f5;color:#5c6f80}.badge.red{background:#fce9ec;color:var(--red)}.notice{padding:15px 20px;border:1px solid #a5d3ce;background:#e8f7f3;border-radius:10px;margin-bottom:20px}.notice.error{background:#fff0f2;border-color:#eec3cb;color:#8d2338}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);background:#f7f9fb}th,td{padding:13px 10px;border-bottom:1px solid var(--line);vertical-align:top}td input,td select{min-width:100px;margin:0;padding:8px}.empty{text-align:center;padding:45px;color:var(--muted)}.login{max-width:440px;margin:10vh auto;padding:32px}.login .brand{color:var(--ink);margin-bottom:20px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.tabs a{padding:10px 15px;border:1px solid var(--line);border-radius:8px;background:white}.tabs a.active{border-color:var(--brand);color:var(--brand)}.stage-line{display:flex;gap:8px;margin:18px 0;flex-wrap:wrap}.stage-line .current{background:var(--brand);color:white}.progress{height:6px;border-radius:5px;background:#e6edf2;margin:7px 0}.progress span{height:100%;display:block;background:var(--brand);border-radius:5px}.mono{font-family:Consolas,monospace;word-break:break-all}small{font-size:12px}.span2{grid-column:span 2}.back{display:block;margin-bottom:15px}.screen-only{}.save-state{color:var(--muted);font-size:12px}@media(max-width:850px){.shell{grid-template-columns:1fr}aside{position:static;height:auto;padding:12px 18px}.brand{font-size:24px}aside nav{display:flex;margin:8px 0 0;gap:5px;overflow:auto}aside a{padding:7px 10px;white-space:nowrap}.aside-bottom{display:none}main{padding:22px 16px}.grid,.fields{grid-template-columns:1fr}.span2{grid-column:span 1}.stats{grid-template-columns:repeat(2,1fr)}h1{font-size:25px}.card{padding:18px}header{align-items:flex-start}}@media print{aside,header form,.screen-only,.tabs{display:none}.shell{display:block}main{padding:0}.card{border:0;box-shadow:none}body{background:white}}
dialog { border: 1px solid #dbe3ed; border-radius: 18px; padding: 28px; width: min(680px, calc(100vw - 40px)); max-height: 85vh; overflow-y: auto; box-shadow: 0 24px 80px #10243a40; }
dialog::backdrop { background: #10243a80; backdrop-filter: blur(3px); }
main > .app-header { background: white; border-bottom: 1px solid var(--line); padding: 16px 24px; border-radius: 12px; margin-bottom: 26px; }
.header-home { font-weight: 700; color: var(--ink); }
.page-heading { margin-bottom: 26px; }
.shell { display:block; }
.shell > aside { position:static; height:auto; padding:16px 24px 10px; }
.header-top { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.header-account { display:flex; align-items:center; gap:12px; font-size:12px; text-align:right; }
.header-account strong { font-size:13px; color:#fff; }
.header-account .muted { color:#a9bbca; font-size:11px; }
.header-account button { font-size:12px; padding:7px 11px; background:#24455c; color:white; }
.shell > aside nav { display:flex; gap:8px; margin:14px 0 0; overflow-x:auto; }
.shell > aside nav a { display:block; white-space:nowrap; padding:8px 9px; margin:0; font-size:13px; }
.aside-bottom { display:none; }
@media(max-width:500px) { .shell > aside { padding:12px; } .header-account { gap:7px; } .header-account strong { font-size:11px; } .header-account button { padding:6px 8px; } }
input[type=checkbox]{width:auto;display:inline-block;margin:0 8px 0 0;vertical-align:middle}.card + .card{margin-top:18px}.tabs a{font-size:13px;padding:8px 12px}
.settings-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.company-logo-preview{max-width:180px;max-height:90px;object-fit:contain}.header-logo{max-width:130px;max-height:44px;object-fit:contain}
.settings-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}.settings-navigation{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;position:sticky;top:18px}.settings-navigation a{display:block;padding:14px 18px;border-bottom:1px solid var(--line);color:var(--ink)}.settings-navigation a:hover,.settings-navigation a.active{background:#e7f2f3;color:var(--brand)}.settings-navigation a.active{box-shadow:inset 3px 0 var(--brand);font-weight:600}.settings-navigation small{display:block;padding:18px;color:var(--muted)}.settings-content{min-width:0}.settings-content>.card h2{margin-top:0}.settings-content details{margin:16px 0}.settings-content summary{cursor:pointer;font-weight:600}@media(max-width:750px){.settings-layout{grid-template-columns:1fr}.settings-navigation{position:static;display:flex;overflow:auto}.settings-navigation a{white-space:nowrap;border-bottom:0}.settings-navigation small{display:none}}
.settings-navigation{max-height:calc(100vh - 180px);overflow-y:auto}.settings-pending{display:inline-block;font-size:10px;font-weight:500;border:1px solid var(--line);border-radius:4px;padding:1px 4px;margin-left:4px;color:var(--muted)}
.shell>aside{background:var(--header-bg,#152c43);color:var(--header-text,#fff)}.shell>aside a,.shell>aside small,.shell>aside .brand{color:var(--header-text,#fff)}.header-logo{background:var(--logo-bg,#152c43);border-radius:5px;padding:3px}.login-page{background:var(--login-bg,#f3f6f9);color:var(--login-text,#152c43)}.login-page .login{color:var(--login-text,#152c43)}
.settings-navigation>label{display:block;padding:14px 16px;margin:0;background:white;position:sticky;top:0;z-index:1;font-size:12px}.settings-navigation>label input{margin-top:6px}.settings-navigation a[hidden]{display:none}@media(max-width:750px){.settings-navigation>label{min-width:180px;position:static}}
.tab-role-card summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;align-items:center;list-style-position:inside}.tab-role-card summary span{font-size:13px;color:var(--muted);font-weight:400}.tab-role-card form{margin-top:20px}.tab-role-card form label{margin-bottom:12px}.settings-mobile-picker{display:none!important}@media(max-width:750px){.settings-navigation.settings-picker-ready{display:block;overflow:visible;max-height:none}.settings-navigation.settings-picker-ready>a,.settings-navigation.settings-picker-ready>label:not(.settings-mobile-picker){display:none}.settings-navigation.settings-picker-ready>.settings-mobile-picker{display:block!important;min-width:0;padding:14px 16px}.settings-mobile-picker select{margin-top:7px}}

/* Compact, grouped primary navigation. All original destinations retain their role gates. */
.shell>aside{padding:14px 24px}
.shell>aside .site-nav{display:flex;align-items:center;flex-wrap:wrap;gap:6px;overflow:visible;margin:12px 0 0}
.shell>aside .site-nav .site-nav-link,.shell>aside .site-nav .site-nav-group>summary{display:flex;align-items:center;gap:7px;min-height:36px;padding:7px 12px;margin:0;border:1px solid transparent;border-radius:8px;color:var(--header-text,#fff);font-size:13px;font-weight:600;line-height:1.2;white-space:nowrap;cursor:pointer;list-style:none}
.shell>aside .site-nav .site-nav-group>summary::-webkit-details-marker{display:none}
.shell>aside .site-nav .site-nav-group>summary::after{content:'⌄';font-size:15px;line-height:1;opacity:.75;transform:translateY(-2px)}
.shell>aside .site-nav .site-nav-group[open]>summary::after{transform:rotate(180deg) translateY(1px)}
.shell>aside .site-nav .site-nav-link:hover,.shell>aside .site-nav .site-nav-link.active,.shell>aside .site-nav .site-nav-group>summary:hover,.shell>aside .site-nav .site-nav-group>summary.active,.shell>aside .site-nav .site-nav-group[open]>summary{background:#ffffff1f;border-color:#ffffff24;text-decoration:none}
.shell>aside .site-nav :focus-visible{outline:2px solid #49d4cc;outline-offset:2px}
.site-nav-group{position:relative}
.site-nav-panel{position:absolute;z-index:60;top:calc(100% + 7px);left:0;min-width:230px;max-width:min(560px,calc(100vw - 48px));max-height:min(70vh,580px);overflow-y:auto;padding:7px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 16px 40px #10243a30}
.site-nav-group:last-child .site-nav-panel{left:auto;right:0}
.shell>aside .site-nav-panel a{display:block;margin:0;padding:10px 12px;border-radius:7px;color:var(--ink);font-size:13px;line-height:1.3;white-space:normal}
.shell>aside .site-nav-panel a:hover,.shell>aside .site-nav-panel a:focus-visible{background:#e7f2f3;color:#075f66;text-decoration:none}
.site-nav-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(560px,calc(100vw - 48px));gap:2px 6px}
@media(max-width:950px) and (min-width:701px){.site-nav-modules{grid-template-columns:1fr;width:min(340px,calc(100vw - 48px))}}
@media(max-width:700px){.shell>aside{padding:12px 16px}.shell>aside .site-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.shell>aside .site-nav .site-nav-link,.shell>aside .site-nav .site-nav-group>summary{min-width:0;white-space:normal}.site-nav-group{position:static}.site-nav-group[open]{grid-column:1/-1}.site-nav-panel,.site-nav-group:last-child .site-nav-panel{position:static;left:auto;right:auto;width:100%;max-width:none;max-height:45vh;margin-top:5px}.site-nav-modules{grid-template-columns:1fr}}
@media print{.site-nav-panel{display:none!important}}

/* One compact top-bar dropdown per enabled, authorized module. */
.shell>aside .site-nav .site-nav-module-row{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0}
.shell>aside .site-nav .site-nav-module>summary{min-height:31px;padding:5px 9px;font-size:12px;font-weight:600}
.site-nav-module .site-nav-panel{min-width:215px;max-width:min(300px,calc(100vw - 28px))}
@media(max-width:700px){.shell>aside .site-nav .site-nav-module-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.site-nav-module .site-nav-panel{max-width:none}}

/* App navigation lives in a compact left sidebar. Existing permission gates still
   decide which module sections and links are rendered. */
body.left-sidebar .shell{display:grid;grid-template-columns:258px minmax(0,1fr);min-height:100vh}
body.left-sidebar .shell>aside{position:sticky;top:0;align-self:start;width:258px;height:100vh;min-height:0;padding:20px 13px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;box-shadow:2px 0 14px #10243a16}
body.left-sidebar .shell>main{width:100%;max-width:none;min-width:0;padding:28px clamp(18px,3vw,48px)}
body.left-sidebar .header-top{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;padding:2px 7px 15px;border-bottom:1px solid #ffffff29}
body.left-sidebar .header-top>div:first-child{flex:1;min-width:0}
body.left-sidebar .header-top .brand{font-size:26px;line-height:1.2}
body.left-sidebar .header-top small{display:block;line-height:1.3;margin-top:3px}
body.left-sidebar .header-account{order:3;width:100%;text-align:left;min-width:0;padding-top:8px}
body.left-sidebar .header-account strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-close-button,.sidebar-open-button{border:1px solid #ffffff30;background:#ffffff16;color:var(--header-text,#fff);border-radius:8px;cursor:pointer}
body.left-sidebar .sidebar-close-button{order:2;width:30px;height:30px;padding:0;font-size:23px;line-height:1}
body.left-sidebar .sidebar-open-button{display:none;position:fixed;z-index:95;top:12px;left:12px;min-height:38px;padding:7px 11px;font-size:13px;gap:7px;align-items:center}
body.left-sidebar .sidebar-scrim{display:none}
body.left-sidebar .shell>aside .site-nav{display:flex;flex-direction:column;align-items:stretch;gap:2px;margin:13px 0 0;overflow:visible}
body.left-sidebar .shell>aside .site-nav .site-nav-link,
body.left-sidebar .shell>aside .site-nav .site-nav-group>summary{display:flex;width:100%;min-height:36px;justify-content:space-between;white-space:normal;padding:9px 11px;margin:0;font-size:13px;border-radius:8px}
body.left-sidebar .shell>aside .site-nav .site-nav-group{position:static;width:100%;min-width:0}
body.left-sidebar .shell>aside .site-nav .site-nav-module-row{display:block;flex-basis:auto;width:100%}
body.left-sidebar .shell>aside .site-nav .site-nav-module>summary{min-height:34px;padding:8px 11px;font-size:13px}
body.left-sidebar .shell>aside .site-nav-panel,
body.left-sidebar .shell>aside .site-nav-group:last-child .site-nav-panel{position:static;top:auto;left:auto;right:auto;width:100%;min-width:0;max-width:none;max-height:none;overflow:visible;margin:2px 0 6px;padding:4px;background:#071d2d55;border:1px solid #ffffff19;border-radius:8px;box-shadow:none}
body.left-sidebar .shell>aside .site-nav-panel a{color:var(--header-text,#fff);font-size:12px;padding:8px 11px 8px 20px;white-space:normal;line-height:1.3}
body.left-sidebar .shell>aside .site-nav-panel a:hover,
body.left-sidebar .shell>aside .site-nav-panel a:focus-visible{background:#ffffff24;color:#fff}
body.left-sidebar .shell>aside .site-nav-group[open]>summary{background:#ffffff24;border-color:#ffffff24}
body.left-sidebar.sidebar-collapsed .shell{grid-template-columns:0 minmax(0,1fr)}
body.left-sidebar.sidebar-collapsed .shell>aside{width:0;padding:0;overflow:hidden;visibility:hidden}
body.left-sidebar.sidebar-collapsed .sidebar-open-button{display:flex}
body.left-sidebar.sidebar-collapsed .shell>main{padding-top:70px}
@media(max-width:900px){
  body.left-sidebar .shell{display:block}
  body.left-sidebar .shell>aside{position:fixed;z-index:100;top:0;left:0;width:min(290px,86vw);height:100dvh;max-height:none;transform:translateX(-105%);visibility:hidden;transition:transform .2s ease,visibility .2s ease;box-shadow:8px 0 30px #10243a42}
  body.left-sidebar .shell>main{padding:70px 16px 22px}
  body.left-sidebar .sidebar-open-button,body.left-sidebar.sidebar-collapsed .sidebar-open-button{display:flex}
  body.left-sidebar.sidebar-open .shell>aside{transform:translateX(0);visibility:visible}
  body.left-sidebar.sidebar-open .sidebar-open-button{display:none}
  body.left-sidebar.sidebar-open .sidebar-scrim{display:block;position:fixed;inset:0;z-index:90;background:#10243a9c}
  body.left-sidebar.sidebar-open{overflow:hidden}
  body.left-sidebar.sidebar-collapsed .shell{display:block}
  body.left-sidebar.sidebar-collapsed .shell>aside{width:min(290px,86vw);padding:20px 13px;overflow-y:auto}
  body.left-sidebar.sidebar-collapsed .shell>main{padding-top:70px}
}
@media(prefers-reduced-motion:reduce){body.left-sidebar .shell>aside{transition:none}}
@media print{body.left-sidebar .shell{display:block}body.left-sidebar .shell>aside,body.left-sidebar .sidebar-open-button,body.left-sidebar .sidebar-scrim{display:none!important}body.left-sidebar .shell>main{padding:0}}
body.left-sidebar .sidebar-open-button{background:var(--header-bg,#152c43);color:var(--header-text,#fff);border:1px solid #24455c;box-shadow:0 2px 8px #10243a29}
body.left-sidebar .sidebar-pin-button{order:4;width:100%;min-height:30px;padding:5px 10px;background:#ffffff16;color:var(--header-text,#fff);border:1px solid #ffffff30;border-radius:8px;font-size:12px;text-align:left;cursor:pointer}
body.left-sidebar .sidebar-pin-button:hover,body.left-sidebar .sidebar-pin-button:focus-visible{background:#ffffff28}
body.left-sidebar.sidebar-pinned .sidebar-pin-button{background:var(--brand);border-color:var(--brand);color:#fff}
body.left-sidebar.sidebar-pinned .sidebar-close-button{display:none}
@media(max-width:900px){body.left-sidebar .sidebar-pin-button{display:none}body.left-sidebar.sidebar-pinned .sidebar-close-button{display:block}}

/* Base 1.1.30: full-width identity bar with an independently scrolling menu. */
body.left-sidebar .shell{grid-template-rows:80px minmax(0,1fr)}
body.left-sidebar .header-top{grid-column:1/-1;grid-row:1;position:sticky;top:0;z-index:120;display:flex;align-items:center;flex-wrap:nowrap;width:100%;height:80px;padding:10px 22px;background:var(--header-bg,#152c43);border-bottom:1px solid #ffffff29;box-shadow:0 2px 9px #10243a18}
body.left-sidebar .topbar-brand{min-width:0;flex:0 1 auto}
body.left-sidebar .header-top .brand{color:var(--header-text,#fff);font-size:26px;line-height:1.15;white-space:nowrap}
body.left-sidebar .header-top small{color:var(--header-text,#fff);opacity:.82;font-size:11px;line-height:1.2;margin-top:3px}
body.left-sidebar .header-account{order:2;width:auto;min-width:0;margin-left:auto;padding:0;text-align:right}
body.left-sidebar .header-account a{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;text-decoration:none}
body.left-sidebar .header-account a:focus-visible{outline:2px solid #49d4cc;outline-offset:2px}
body.left-sidebar .account-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#ffffff22;color:var(--header-text,#fff);font-size:14px;font-weight:700;letter-spacing:.3px}
body.left-sidebar .header-account a:hover .account-avatar{background:#ffffff36}
body.left-sidebar .shell>aside{grid-column:1;grid-row:2;top:80px;width:258px;height:calc(100vh - 80px);padding:14px 13px 10px;display:flex;flex-direction:column;overflow:hidden}
body.left-sidebar .shell>main{grid-column:2;grid-row:2;padding:28px clamp(18px,3vw,48px)}
body.left-sidebar .sidebar-tools{display:flex;align-items:center;justify-content:flex-end;flex:none;min-height:30px;padding:2px 10px 2px;border:0}
body.left-sidebar .sidebar-close-button{order:0;width:26px;height:26px;flex:none;font-size:19px;line-height:1}
body.left-sidebar .shell>aside .site-nav{flex:1 1 auto;min-height:0;margin:10px -3px 0;padding:0 3px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
body.left-sidebar .sidebar-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:52px;margin-top:8px;padding:10px 3px 0;border-top:1px solid #ffffff29}
body.left-sidebar .sidebar-footer .site-nav-link{display:flex;align-items:center;min-height:34px;flex:1;margin:0;padding:7px 11px;border:1px solid transparent;border-radius:8px;color:var(--header-text,#fff);font-size:13px;font-weight:600}
body.left-sidebar .sidebar-footer .site-nav-link:hover,body.left-sidebar .sidebar-footer .site-nav-link.active{background:#ffffff1f;border-color:#ffffff24;text-decoration:none}
body.left-sidebar .sidebar-pin-button{display:grid;place-items:center;flex:none;order:0;width:24px;height:24px;min-height:24px;margin:0 2px 0 auto;padding:0;border:1px solid #ffffff45;border-radius:6px;background:#ffffff16;color:var(--header-text,#fff);cursor:pointer}
body.left-sidebar .sidebar-pin-button svg{display:block}
body.left-sidebar .sidebar-pin-button:hover,body.left-sidebar .sidebar-pin-button:focus-visible{background:#ffffff30;outline:2px solid #49d4cc;outline-offset:1px}
body.left-sidebar.sidebar-pinned .sidebar-pin-button{background:var(--brand);border-color:var(--brand);color:#fff}
body.left-sidebar .sidebar-open-button{display:none;position:static;order:-1;z-index:auto;width:34px;height:34px;min-height:34px;margin:0 12px 0 0;padding:0;place-items:center;font-size:19px;line-height:1;background:#ffffff16;border:1px solid #ffffff30;box-shadow:none}
body.left-sidebar.sidebar-collapsed .sidebar-open-button{display:grid}
body.left-sidebar.sidebar-collapsed .shell>main{padding:28px clamp(18px,3vw,48px)}
@media(max-width:900px){
  body.left-sidebar .shell{display:block;padding-top:80px}
  body.left-sidebar .header-top{position:fixed;left:0;right:0;top:0;z-index:120;padding:10px 16px}
  body.left-sidebar .header-top .brand{font-size:23px}
  body.left-sidebar .header-top .brand img{max-height:32px;max-width:32px}
  body.left-sidebar .header-account a,body.left-sidebar .account-avatar{width:36px;height:36px}
  body.left-sidebar .sidebar-open-button,body.left-sidebar.sidebar-collapsed .sidebar-open-button{display:grid}
  body.left-sidebar.sidebar-open .sidebar-open-button{display:none}
  body.left-sidebar .shell>aside,body.left-sidebar.sidebar-collapsed .shell>aside{position:fixed;top:80px;left:0;z-index:110;width:min(290px,86vw);height:calc(100dvh - 80px);max-height:none;padding:14px 13px 10px;overflow:hidden}
  body.left-sidebar .shell>main,body.left-sidebar.sidebar-collapsed .shell>main{padding:24px 16px}
  body.left-sidebar.sidebar-open .sidebar-scrim{inset:80px 0 0;z-index:105}
  body.left-sidebar .sidebar-pin-button{display:none}
  body.left-sidebar.sidebar-pinned .sidebar-close-button{display:block}
}
@media print{body.left-sidebar .header-top{display:none!important}body.left-sidebar .shell{display:block;padding:0}body.left-sidebar .shell>main{padding:0}}

/* Module styles can set nav to wrap; keep the sidebar sections in one scrollable column. */
body.left-sidebar #site-sidebar .site-nav{flex-wrap:nowrap}
body.left-sidebar #site-sidebar .site-nav-module-row{width:100%;min-width:0}
body.left-sidebar .header-top .brand img.header-logo{max-width:210px;max-height:54px;width:auto;height:auto}
@media(max-width:900px){body.left-sidebar .header-top .brand img.header-logo{max-width:150px;max-height:42px}}

/* Base sign-in: scoped to the login view so other guest pages keep their layout. */
body.login-page:has(.flow-login-screen) .shell>main{max-width:none;padding:0}
body.login-page:has(.flow-login-screen) .shell>main>.notice{max-width:1080px;margin:20px auto 0}
.flow-login-screen{min-height:calc(100svh - 82px);display:grid;align-items:center;padding:clamp(24px,4vw,54px);background:radial-gradient(circle at 12% 16%,#dcefed 0,transparent 34%),radial-gradient(circle at 92% 88%,#e0e9f4 0,transparent 35%),var(--login-bg,#f3f6f9)}
.flow-login-layout{width:min(100%,1080px);margin:auto;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:clamp(24px,5vw,72px);align-items:center}
.flow-login-intro{position:relative;isolation:isolate;min-height:480px;overflow:hidden;padding:clamp(34px,5vw,58px);border-radius:28px;background:linear-gradient(145deg,#142f46 0%,#164e5a 70%,#087f85 100%);color:#fff;box-shadow:0 22px 55px #17394a24}
.flow-login-intro:before,.flow-login-intro:after{content:"";position:absolute;z-index:-1;border:1px solid #ffffff25;border-radius:50%}
.flow-login-intro:before{width:380px;height:380px;right:-170px;bottom:-190px}
.flow-login-intro:after{width:290px;height:290px;right:-110px;bottom:-140px}
.flow-login-kicker{display:inline-block;color:#a9e5e0;font-size:11px;font-weight:750;letter-spacing:.18em}
.flow-login-intro h1{max-width:390px;margin:100px 0 12px;color:#fff;font-size:clamp(40px,5vw,62px);line-height:1.05;letter-spacing:-.045em}
.flow-login-intro p{max-width:340px;margin:0;color:#e0f0f1;font-size:17px;line-height:1.55}
.flow-login-accent{display:flex;gap:7px;margin-top:40px}
.flow-login-accent span{display:block;width:34px;height:4px;border-radius:4px;background:#76d7d1}
.flow-login-accent span:nth-child(2){width:15px;opacity:.7}.flow-login-accent span:nth-child(3){width:7px;opacity:.45}
.flow-login-card{width:100%;padding:clamp(28px,4vw,42px);border:1px solid #dce5eb;border-radius:24px;background:#fff;box-shadow:0 18px 55px #172d4212;color:var(--login-text,#152c43)}
.flow-login-card-top{margin-bottom:14px;color:var(--brand,#087f85);font-size:11px;font-weight:800;letter-spacing:.16em}
.flow-login-card h2{margin:0;color:var(--login-text,#152c43);font-size:34px;line-height:1.15;letter-spacing:-.035em}
.flow-login-help{margin:8px 0 28px;color:#627588;font-size:14px}
.flow-login-form label{display:block;margin:0 0 7px;color:var(--login-text,#152c43);font-size:13px;font-weight:700}
.flow-login-form input{height:48px;margin:0 0 19px;padding:11px 14px;border:1px solid #cbd8df;border-radius:10px;background:#fff;color:#152c43;font-size:15px;transition:border-color .15s,box-shadow .15s}
.flow-login-form input:focus{outline:none;border-color:var(--brand,#087f85);box-shadow:0 0 0 3px #087f8526}
.flow-login-password-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.flow-login-password-heading a{font-size:13px;font-weight:600;white-space:nowrap}
.flow-login-submit{width:100%;min-height:48px;margin-top:5px;border-radius:10px;background:var(--brand,#087f85);font-size:15px}
.flow-login-submit:hover{filter:brightness(.92)}
.flow-login-captcha{margin:0 0 16px;max-width:100%;overflow-x:auto}
.flow-login-divider{display:flex;align-items:center;gap:14px;margin:22px 0;color:#7b8d9d;font-size:12px}
.flow-login-divider:before,.flow-login-divider:after{content:"";height:1px;flex:1;background:#dce5eb}
.flow-login-google button{width:100%;min-height:46px;border:1px solid #cbd8df;border-radius:10px;background:#fff;color:#152c43;font-weight:650}
.flow-login-google button:hover{background:#f5f8fa}
.flow-login-signup{margin:24px 0 0;text-align:center;color:#627588;font-size:13px}
.flow-login-signup a{font-weight:700}
@media(max-width:760px){.flow-login-screen{min-height:calc(100svh - 70px);padding:20px 16px 32px}.flow-login-layout{max-width:480px;grid-template-columns:1fr;gap:16px}.flow-login-intro{min-height:140px;padding:24px;border-radius:20px}.flow-login-intro h1{margin:13px 0 6px;font-size:30px}.flow-login-intro p{font-size:14px}.flow-login-accent{display:none}.flow-login-card{padding:28px 24px;border-radius:20px}.flow-login-card h2{font-size:29px}}
@media(max-width:380px){.flow-login-screen{padding:14px 10px 24px}.flow-login-card{padding:24px 18px}.flow-login-password-heading{align-items:flex-start}.flow-login-password-heading a{font-size:12px}}

/* Base 1.1.58: compact module rail and a permission-aware module page bar. */
body.left-sidebar .shell{display:grid;grid-template-columns:60px minmax(0,1fr);grid-template-rows:62px auto minmax(0,1fr)}
body.left-sidebar .header-top{grid-column:2;grid-row:1;position:relative;z-index:20;height:62px;min-height:62px;padding:0 22px;background:#fff;color:var(--ink);border-bottom:1px solid var(--line);box-shadow:none}
body.left-sidebar .topbar-brand{display:none}
body.left-sidebar .topbar-current{font-size:17px;font-weight:750;color:var(--ink)}
body.left-sidebar .topbar-company{margin-left:auto;font-size:12px;color:#526b7c}
body.left-sidebar .header-account{margin-left:0}
body.left-sidebar .account-avatar{width:34px;height:34px;background:#e5f0f3;color:#17485b;font-size:12px}
body.left-sidebar .header-account a{width:36px;height:36px}
body.left-sidebar .shell>#site-sidebar{grid-column:1;grid-row:1/4;position:sticky;top:0;z-index:30;width:60px;height:100vh;max-height:100vh;padding:0 8px 10px;overflow:hidden;visibility:visible;transition:width .18s ease;box-shadow:2px 0 9px #10243a18}
body.left-sidebar .shell>#site-sidebar:hover,body.left-sidebar .shell>#site-sidebar:focus-within,body.left-sidebar.sidebar-pinned .shell>#site-sidebar{width:240px}
body.left-sidebar.sidebar-pinned .shell{grid-template-columns:240px minmax(0,1fr)}
body.left-sidebar .sidebar-brand{height:62px;display:flex;align-items:center;gap:12px;padding:0 4px;border-bottom:1px solid #ffffff22;white-space:nowrap}
body.left-sidebar .sidebar-brand img{width:36px;height:36px;object-fit:contain;flex:none;border-radius:7px}
body.left-sidebar .sidebar-brand-label{display:none;min-width:160px;color:var(--header-text,#fff);font-size:14px;font-weight:750;line-height:1.2}
body.left-sidebar .sidebar-brand-label small{display:block;color:#c2d4df;font-size:11px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.left-sidebar .shell>#site-sidebar:hover .sidebar-brand-label,body.left-sidebar .shell>#site-sidebar:focus-within .sidebar-brand-label,body.left-sidebar.sidebar-pinned .sidebar-brand-label{display:block}
body.left-sidebar .sidebar-tools{display:none}
body.left-sidebar .shell>#site-sidebar .site-nav{display:flex;flex-direction:column;align-items:stretch;flex:1;gap:5px;min-height:0;margin:14px 0 0;padding:0;overflow-y:auto;overflow-x:hidden}
body.left-sidebar .rail-module{display:flex;align-items:center;gap:14px;width:100%;min-height:44px;padding:0 11px;margin:0;border:0;border-radius:8px;background:transparent;color:#d3e0e8;text-decoration:none;white-space:nowrap;font-size:13px;font-weight:600}
body.left-sidebar .rail-module:hover,body.left-sidebar .rail-module:focus-visible,body.left-sidebar .rail-module.active{background:#285269;color:#fff;text-decoration:none}
body.left-sidebar .rail-module.active{box-shadow:inset 3px 0 var(--brand)}
body.left-sidebar .rail-icon{display:grid;place-items:center;width:20px;min-width:20px;height:24px;font-size:20px;font-weight:600;line-height:1}
body.left-sidebar .rail-icon svg{display:block;width:19px;height:19px}
body.left-sidebar .rail-label{display:none;white-space:nowrap}
body.left-sidebar .shell>#site-sidebar:hover .rail-label,body.left-sidebar .shell>#site-sidebar:focus-within .rail-label,body.left-sidebar.sidebar-pinned .rail-label{display:block}
body.left-sidebar .sidebar-footer{display:flex;align-items:center;gap:4px;flex:none;min-height:54px;margin-top:6px;padding:6px 0 0;border-top:1px solid #ffffff22}
body.left-sidebar .sidebar-footer .rail-module{flex:1;min-width:0}
body.left-sidebar .sidebar-pin-button{display:none;flex:none;width:26px;height:26px;margin:0 4px;padding:0}
body.left-sidebar .shell>#site-sidebar:hover .sidebar-pin-button,body.left-sidebar .shell>#site-sidebar:focus-within .sidebar-pin-button,body.left-sidebar.sidebar-pinned .sidebar-pin-button{display:grid}
body.left-sidebar .rail-custom{display:none;color:#fff;font-size:13px;padding:8px}
body.left-sidebar .shell>#site-sidebar:hover .rail-custom,body.left-sidebar .shell>#site-sidebar:focus-within .rail-custom,body.left-sidebar.sidebar-pinned .rail-custom{display:block}
body.left-sidebar .rail-custom a{display:block;padding:6px 10px;color:#e5f0f4}
body.left-sidebar .module-topnav{grid-column:2;grid-row:2;display:flex;gap:2px;align-items:center;min-height:50px;padding:0 15px;background:#fff;border-bottom:1px solid var(--line);overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
body.left-sidebar .module-topnav a{display:block;flex:none;padding:13px 11px 11px;border-bottom:3px solid transparent;color:#4a6272;font-size:13px;font-weight:600;text-decoration:none}
body.left-sidebar .module-topnav a:hover,body.left-sidebar .module-topnav a:focus-visible{color:#075d68;background:#f2f8f9}
body.left-sidebar .module-topnav a.active{border-bottom-color:var(--brand);color:#075d68}
body.left-sidebar .shell>main{grid-column:2;grid-row:3;width:100%;max-width:none;min-width:0;padding:14px clamp(14px,2vw,28px) 28px}
body.left-sidebar:has(.module-topnav) .shell>main .ph-topnav{display:none!important}
body.left-sidebar:has(.module-topnav[aria-label="Equipment pages"]) .shell>main .eq-topnav,
body.left-sidebar:has(.module-topnav[aria-label="Service Estimator pages"]) .shell>main .est-topnav{display:none!important}
body.left-sidebar .shell>main .ph-head{align-items:center;gap:10px;margin-bottom:9px}
body.left-sidebar .shell>main .ph-head .ph-title{font-size:18px;line-height:1.25}
body.left-sidebar .shell>main .ph-head .ph-sub{font-size:11px}
body.left-sidebar .shell>main .ph-head .ph-completebar{max-width:220px;margin-top:4px}
body.left-sidebar .shell>main .ph-head .btn{padding:5px 8px;font-size:11px}
body.left-sidebar .sidebar-open-button{display:none}
@media(max-width:900px){
  body.left-sidebar .shell,body.left-sidebar.sidebar-pinned .shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:62px auto minmax(0,1fr);padding:0}
  body.left-sidebar .header-top{grid-column:1;grid-row:1;position:relative;z-index:40;height:62px;padding:0 14px}
  body.left-sidebar .topbar-company{display:none}
  body.left-sidebar .sidebar-open-button{display:grid;order:-1;position:static;z-index:auto;width:34px;height:34px;margin:0 6px 0 0;color:var(--ink);background:#f3f7f9;border:1px solid var(--line)}
  body.left-sidebar .shell>#site-sidebar,body.left-sidebar.sidebar-pinned .shell>#site-sidebar{position:fixed;top:0;left:0;z-index:130;width:min(250px,86vw);height:100dvh;max-height:100dvh;transform:translateX(-105%);visibility:hidden;padding:0 8px 10px;transition:transform .18s ease,visibility .18s ease}
  body.left-sidebar.sidebar-open .shell>#site-sidebar{transform:translateX(0);visibility:visible}
  body.left-sidebar .shell>#site-sidebar .rail-label,body.left-sidebar .shell>#site-sidebar .sidebar-brand-label{display:block}
  body.left-sidebar .sidebar-tools{display:block;position:absolute;top:17px;right:9px;z-index:1}
  body.left-sidebar .sidebar-close-button,body.left-sidebar.sidebar-pinned .sidebar-close-button{display:block}
  body.left-sidebar .sidebar-pin-button{display:none!important}
  body.left-sidebar.sidebar-open .sidebar-scrim{display:block;position:fixed;inset:0;z-index:125;background:#10243a88}
  body.left-sidebar .module-topnav{grid-column:1;grid-row:2;padding:0 8px}
  body.left-sidebar .shell>main{grid-column:1;grid-row:3;padding:12px 14px 24px}
}
@media print{body.left-sidebar .shell,body.left-sidebar.sidebar-pinned .shell{display:block}body.left-sidebar .shell>#site-sidebar,body.left-sidebar .module-topnav,body.left-sidebar .header-top{display:none!important}body.left-sidebar .shell>main{padding:0}}
