/* Shared front-office navigation and compact landing page. */
:root{--portal-header:96px}
.topbar{height:var(--portal-header);padding:10px 24px;gap:20px;flex-wrap:nowrap}
.brand-zone{gap:18px;min-width:0}
.brand-zone .brand{gap:9px}
.brand .brand-mark{width:58px;height:58px;transform:none;border-radius:0;background:none;object-fit:contain;flex-shrink:0}
.brand strong{font-size:22px}.brand small{font-size:11px;white-space:nowrap}
.header-user{display:grid;gap:5px;width:108px;flex-shrink:0}
.brand-zone .header-user .auth-entry,.brand-zone .header-user .account-entry{margin:0;padding:0;border:0;min-width:0}
.header-user .auth-entry{display:block}
.header-user #loginOpen,.header-user .account-entry,.header-user #contactOpen{display:flex;align-items:center;justify-content:center;width:100%;height:32px;border:1px solid #d5e4fb;border-radius:8px;background:#edf4ff;color:#2057ba;font-size:13px;font-weight:700;white-space:nowrap}
.header-user #contactOpen{background:#f0fbf6;border-color:#c9ecdd;color:#157b5c}
.header-user .account-entry .avatar{width:23px;height:23px;margin-right:4px;font-size:11px}
.section-nav{flex:1;min-width:0;gap:3px;margin:0;overflow-x:auto;align-self:stretch;align-items:center}
.section-nav button{display:flex;align-items:center;gap:7px;white-space:nowrap;flex:0 0 auto;padding:12px 10px;font-size:15px;line-height:1.3;min-width:max-content}
.section-nav button span{white-space:nowrap;word-break:keep-all}
.section-nav button i.nav-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;flex-shrink:0;margin:0;background:#edf4ff;color:#2563eb}
.nav-icon svg,.task-icon svg{width:22px;height:22px}
.section-nav button i.icon-resources,.task-icon.icon-resources{color:#059669;background:#e1f8ee}
.section-nav button i.icon-industry,.task-icon.icon-industry{color:#d77900;background:#fff1d7}
.section-nav button i.icon-assessment,.task-icon.icon-assessment{color:#9333ea;background:#f3e8ff}
.section-nav button i.icon-warning,.task-icon.icon-warning{color:#e34464;background:#ffe8ef}
.section-nav button i.icon-workbench,.task-icon.icon-workbench{color:#008b9c;background:#dcf8fb}
.top-actions{min-width:0;flex-shrink:0}.top-actions .province{font-size:12px;padding:6px}
.site-frame{overflow:visible;align-items:start}
.site-frame>.site-left{position:sticky;top:calc(var(--portal-header) + 16px);align-self:start;height:auto;max-height:calc(100dvh - var(--portal-header) - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;border-radius:0 16px 16px 0;margin-top:16px;padding-top:24px;padding-bottom:24px}
.site-left .left-menu-groups,.site-left .flat-menu{overflow:visible;height:auto;max-height:none}
.left-collapsed>.site-left{min-height:75px;overflow:visible}
.home-task-layout{max-width:1440px;padding:24px 32px 24px;min-height:calc(100dvh - var(--portal-header));display:flex;flex-direction:column;justify-content:center}
.home-welcome{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:18px}
.home-task-layout .hero{padding:28px 34px;text-align:left;border-radius:20px;display:flex;align-items:center;min-height:245px;background:linear-gradient(120deg,#eaf3ff,#f0fbff)}
.home-task-layout .hero-copy{max-width:none;width:100%;margin:0}
.home-task-layout .hero h1{font-size:clamp(27px,2.8vw,42px);letter-spacing:0;margin:14px 0 10px;white-space:nowrap}
.home-task-layout .hero-copy>p{font-size:14px;color:#4d6583}
.home-task-layout .hero-search{margin:20px 0 0;max-width:650px;height:49px}
.home-about{position:relative;background:linear-gradient(135deg,#163f72,#225aa0);color:#fff;border-radius:20px;padding:28px;overflow:hidden;display:flex;flex-direction:column;justify-content:center}
.home-about>img{position:absolute;width:115px;height:115px;right:-24px;top:-22px;opacity:.14}
.home-about small{font-size:10px;letter-spacing:2px;color:#b6dcff}.home-about h2{font-size:23px;margin:9px 0}
.home-about p{font-size:14px;line-height:1.9;margin:0;color:#e3efff}.home-about>span{font-size:12px;color:#a4d8ff;margin-top:16px}
.home-task-layout .task-section{padding:23px 0 0}
.home-task-layout .section-title{margin-bottom:14px}.home-task-layout .section-title h2{font-size:22px;margin-top:4px}
.home-task-layout .section-title p{font-size:13px}
.home-task-layout .task-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-task-layout .task-card{position:relative;min-height:155px;padding:20px 22px 18px 82px;border-radius:15px}
.home-task-layout .task-icon{position:absolute;left:20px;top:21px;width:43px;height:43px;margin:0}
.home-task-layout .task-card h3{font-size:18px;margin:0 0 7px}.home-task-layout .task-card p{font-size:13px;min-height:40px;margin:0 0 10px;line-height:1.7}.home-task-layout .task-card b{font-size:12px}
.home-task-layout .task-card:hover{border-color:#7eaff6;box-shadow:0 10px 28px #224f8b15}
.access-prompt{background:#edf5ff;border:1px solid #d6e8ff;border-radius:12px;padding:18px;margin-bottom:22px}.access-prompt h2{font-size:21px;margin-top:0}.access-prompt p{line-height:1.7;color:#536b88}
.contact-dialog{max-height:90dvh;overflow-y:auto}.contact-person img{width:160px;height:160px;object-fit:contain;background:white}
.contact-qr-empty{border:1px dashed #bbcee4;border-radius:10px;padding:20px;text-align:center;color:#5c718a;background:#f7faff}.contact-qr-empty small{display:block;margin-top:8px;color:#7d8ba0}
@media(min-width:981px) and (max-height:780px){.home-task-layout{padding-top:16px;padding-bottom:16px}.home-task-layout .hero{min-height:220px;padding:22px 28px}.home-about{padding:22px}.home-task-layout .task-card{min-height:138px;padding-top:16px;padding-bottom:14px}.home-task-layout .task-section{padding-top:18px}}
@media(max-width:1200px){.topbar{padding-left:16px;padding-right:16px;gap:12px}.brand small{display:none}.brand strong{font-size:20px}.brand-zone{gap:12px}.section-nav button{font-size:14px;padding:10px 7px}.top-actions{display:none}}
@media(max-width:980px){:root{--portal-header:132px}.topbar{height:var(--portal-header);flex-wrap:wrap;align-content:start;gap:0;padding-top:9px}.brand-zone{width:100%;justify-content:space-between}.brand{height:60px}.header-user{grid-template-columns:1fr 1fr;width:230px}.section-nav{order:3;width:100%;flex-basis:100%;height:51px;margin:8px 0 0;padding:0;flex-shrink:0}.section-nav button i.nav-icon{display:grid}.site-frame>.site-left{top:calc(var(--portal-header) + 10px);max-height:calc(100dvh - var(--portal-header) - 20px);margin-top:10px}.home-welcome{grid-template-columns:1fr}.home-about{display:none}.home-task-layout{padding:18px;justify-content:start}.home-task-layout .task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-task-layout .task-card{min-height:158px}.home-task-layout .hero{min-height:225px}}
@media(max-width:980px){.home-about{display:flex;padding:18px 22px}.home-about h2{font-size:18px}.home-about p{font-size:13px}.home-about>span,.home-about>small{display:none}}
@media(max-width:600px){.brand .brand-mark{width:47px;height:47px}.brand strong{font-size:19px}.header-user{width:190px;gap:6px}.header-user #loginOpen,.header-user #contactOpen,.header-user .account-entry{font-size:12px}.home-task-layout .hero{padding:24px 18px;min-height:220px}.home-task-layout .hero h1{font-size:24px;white-space:normal}.home-task-layout .hero-search{flex-wrap:nowrap;padding:0 0 0 10px}.home-task-layout .hero-search button{width:auto;height:auto;padding:10px 15px;flex-shrink:0;border-radius:0 12px 12px 0}.home-task-layout .task-card{padding:64px 15px 16px;min-height:200px}.home-task-layout .task-icon{top:15px;left:15px}.home-task-layout .task-card h3{font-size:16px}.home-task-layout .task-card p{font-size:12px}.home-task-layout .section-title p{display:none}}
/* Compact header, unified welcome card and tall floating menu — portal-2. */
.brand-heading{display:flex;align-items:center;gap:7px;white-space:nowrap}
.brand-province{font-size:11px;letter-spacing:0;font-weight:700;color:#2363a6;background:#e9f4ff;border:1px solid #c6e2ff;border-radius:6px;padding:3px 5px}
.topbar{gap:14px;padding-left:18px;padding-right:18px}
.brand-zone{gap:12px}.brand .brand-mark{width:50px;height:50px}.brand strong{font-size:21px}
.header-user{width:92px}
.section-nav{overflow:visible;justify-content:space-between;gap:2px;width:auto}
.section-nav button{min-width:0;flex:0 0 auto;padding:10px 5px;font-size:clamp(12px,.94vw,15px);gap:5px}
.section-nav button i.nav-icon{width:25px;height:27px}
.nav-icon svg{width:20px;height:20px}
.home-welcome{gap:0;border:1px solid #d7e7f6;border-radius:22px;overflow:hidden;background:linear-gradient(110deg,#ebf5ff,#f6fbff 65%,#eaf5ff);box-shadow:0 12px 32px #214f7b09}
.home-task-layout .home-welcome .hero{border:0;background:transparent;border-radius:0;min-height:245px}
.home-task-layout .home-welcome .hero h1{margin-top:0}
.home-welcome .home-about{background:transparent;color:#1b426b;border-radius:0;border:0;padding:28px 30px;position:relative}
.home-welcome .home-about:before{content:"";position:absolute;left:0;top:30px;bottom:30px;width:1px;background:linear-gradient(transparent,#bfd6ef,transparent)}
.home-welcome .home-about h2{color:#24517d;font-size:20px}
.home-welcome .home-about p{color:#526e8b;font-size:13px}
.home-welcome .home-about>span{color:#5a83a8}
.site-frame{grid-template-columns:210px minmax(0,1fr);gap:14px;padding:0 12px;max-width:1600px}
.site-frame>.site-left{height:calc(100dvh - var(--portal-header) - 24px);max-height:calc(100dvh - var(--portal-header) - 24px);margin-top:12px;padding:52px 10px 18px;border-radius:16px;border:1px solid #d6e5f5;background:linear-gradient(155deg,#f6faff,#e8f1fc);box-shadow:0 8px 22px #203f6912,inset 0 0 0 3px #ffffffb0;overflow-x:hidden;color:#254b73;scrollbar-color:#b4cce7 transparent}
.site-left .left-menu-groups,.site-left .flat-menu{width:100%;min-width:0}
.site-left .left-group-title{color:#254b73;padding:12px 9px;font-size:15px;border-radius:10px}
.site-left .left-group-title:hover,.site-left .left-group.open>.left-group-title{background:#dceafd;color:#1457a0;box-shadow:inset 0 0 0 1px #c8ddf7}
.site-left .left-group{margin-bottom:5px}
.site-left .left-sub{padding:5px 0 4px 6px}
.site-left .left-sub button,.site-left .flat-menu button{color:#47678b;font-size:13px;line-height:1.6;padding:9px 8px;width:100%;white-space:normal;overflow-wrap:anywhere}
.site-left .left-sub button.active,.site-left .flat-menu button.active{background:#fff;color:#1556a0;border:1px solid #c2dafa;box-shadow:0 3px 10px #2854840d;border-radius:9px}
.site-frame .site-left .left-collapse{top:12px;right:10px;width:23px;height:34px;border-radius:8px;border:1px solid #afcfff;background:linear-gradient(#fff,#eaf3ff);color:#3f76bf;font-size:23px;box-shadow:0 2px 7px #426ba519,inset 0 0 0 1px #fff;line-height:28px}
.site-frame.left-collapsed{grid-template-columns:42px minmax(0,1fr)}
.site-frame.left-collapsed>.site-left{height:calc(100dvh - var(--portal-header) - 24px);padding:0;border-radius:12px;overflow:hidden}
.site-frame.left-collapsed .site-left .left-collapse{right:8px}
@media(min-width:981px) and (max-width:1250px){:root{--portal-header:126px}.topbar{flex-wrap:wrap;align-content:start;padding-top:8px;gap:4px}.brand-zone{width:100%;justify-content:space-between}.brand{height:56px}.header-user{display:flex;width:200px;gap:8px}.header-user>.auth-entry,.header-user>.account-entry,.header-user>#contactOpen{flex:1}.header-user .auth-entry{min-width:0}.section-nav{order:3;flex-basis:100%;height:48px;align-self:auto}.section-nav button{font-size:14px}.brand small{display:block}}
@media(max-width:980px){.section-nav{width:100%;flex-wrap:wrap;justify-content:center;height:auto;gap:3px 8px;margin:6px 0 0}.section-nav button{font-size:13px;padding:7px 5px}.topbar{height:auto;min-height:var(--portal-header);padding-bottom:7px}.site-frame{grid-template-columns:185px minmax(0,1fr);gap:8px;padding:0 8px}.site-frame>.site-left{margin-top:12px}.home-welcome{grid-template-columns:1fr}.home-welcome .home-about{padding:0 24px 22px}.home-welcome .home-about:before{display:none}.home-task-layout .home-welcome .hero{min-height:210px}}
@media(max-width:600px){:root{--portal-header:164px}.topbar{padding-left:10px;padding-right:10px}.brand strong{font-size:18px}.brand-province{font-size:10px}.brand .brand-mark{width:41px;height:41px}.brand-zone{gap:6px}.header-user{width:166px}.section-nav{gap:2px 5px}.section-nav button{font-size:12px;padding:6px 3px;gap:4px}.section-nav button i.nav-icon{width:21px;height:23px}.nav-icon svg{width:17px;height:17px}.site-frame{grid-template-columns:158px minmax(0,1fr)}.site-left .left-group-title{font-size:14px}.home-task-layout .home-welcome .hero h1{font-size:23px}.brand small{display:none}}
