/* HCON portal refinement: shared tokens and scoped, progressively enhanced UI. */
:root{--hcon-green:#075e32;--hcon-deep:#043d22;--hcon-red:#c8272b;--hcon-ink:#172b20;--hcon-muted:#53675b;--hcon-line:#dce6df;--hcon-surface:#fff;--hcon-soft:#f1f6f3;--hcon-radius:16px;--hcon-shadow:0 4px 18px #043d2208}
.dark{--hcon-ink:#e4efe8;--hcon-muted:#b8ccbf;--hcon-line:#385244;--hcon-surface:#192e22;--hcon-soft:#203c2b;--hcon-green:#8cd9a9;--hcon-red:#ffaaa4}
.portal-shell,.auth-page{font-family:Manrope,sans-serif;line-height:1.6}
.portal-shell :is(h1,h2,h3),.auth-card h1{letter-spacing:-.035em;text-wrap:balance}
.portal-shell :is(p,small,td){overflow-wrap:break-word}
.portal-shell .page-header{margin-bottom:20px;padding-bottom:18px}
.portal-shell .page-header h1{font-size:clamp(25px,2.6vw,34px);line-height:1.25}
.portal-shell .page-header p{max-width:76ch;color:var(--hcon-muted);font-size:14px}
.portal-shell .portal-context{gap:10px;margin-bottom:16px}
.portal-shell .brand-breadcrumb{flex-wrap:wrap;min-width:0}
.portal-shell .portal-label{letter-spacing:.06em}
.portal-shell .app-main{padding-bottom:24px}
.portal-shell :is(.hc-card,.insight-panel,.insight-kpi){border-radius:var(--hcon-radius);box-shadow:var(--hcon-shadow);border-color:var(--hcon-line)}
.portal-shell :is(.brand-button,.page-stack button[type=submit]){min-height:44px;border-radius:10px;font-size:13px;line-height:1.4;font-weight:750}
.portal-shell .brand-button{padding:11px 16px}
.portal-shell .brand-button:not(.brand-button-outline){background:#075e32;color:#fff;border-color:#075e32}
.portal-shell .brand-button:not(.brand-button-outline):hover{background:#043d22;border-color:#043d22}
.portal-shell .brand-button-outline{background:var(--hcon-surface);border-color:var(--hcon-line);color:var(--hcon-green)}
.portal-shell :is(button,a,input,select,textarea,summary):focus-visible,.auth-page :is(button,a,input):focus-visible{outline:3px solid #b58a2e;outline-offset:3px}
.portal-shell button:disabled{opacity:.5;cursor:not-allowed}
.portal-shell .app-sidebar .sidebar-scroll a{min-height:44px;position:relative}
.portal-shell .app-sidebar .sidebar-scroll a[aria-current=page]{background:linear-gradient(100deg,#117843,#086334)!important;border-color:#90caa55c;color:#fff;font-weight:800}
.portal-shell .app-sidebar .sidebar-scroll a[aria-current=page]::before{content:'';position:absolute;inset:11px auto 11px 0;width:3px;border-radius:0 4px 4px 0;background:#ff8682}
.portal-shell .app-sidebar .nav-section-label{font-size:10px!important;letter-spacing:.12em!important;color:#c0dacb!important;margin-top:20px}
.portal-shell .haldoor-brand-header{min-height:126px;padding:16px;border-bottom:1px solid #ffffff24}
.portal-shell .haldoor-logo-expanded>img{max-height:66px;width:100%;object-fit:contain;border-radius:10px}
.portal-shell .haldoor-logo-expanded>span{display:flex;align-items:baseline;gap:8px;margin-top:9px;letter-spacing:0}
.portal-shell .haldoor-logo-expanded .haldoor-connect-word{font-size:17px;color:white;letter-spacing:.06em}
.portal-shell .haldoor-logo-expanded small{font-size:10px;line-height:1.4;color:#d0e4d7;margin:0}
.portal-shell .haldoor-logo-compact{width:44px;height:48px;padding:6px;background:#f6faf7}
.portal-shell .haldoor-logo-compact img{width:32px;min-width:0;height:36px;object-fit:contain}
.portal-shell .app-topbar{background:var(--hcon-surface);box-shadow:0 3px 16px #043d2207}
.portal-shell .app-sidebar .nav-icon{transition:transform 160ms ease}
.portal-shell .haldoor-platform-footer{margin-top:28px;padding:18px 0 0;border:0;border-top:1px solid var(--hcon-line);background:none;box-shadow:none;border-radius:0;color:var(--hcon-muted)}
.portal-shell .haldoor-platform-footer::before,.portal-shell .haldoor-platform-footer::after{display:none}
.portal-shell .haldoor-footer-main{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;padding:0;background:none}
.portal-shell .haldoor-footer-identity{gap:10px}
.portal-shell .haldoor-footer-identity strong{font-size:14px;color:var(--hcon-ink)}
.portal-shell .haldoor-footer-identity small{font-size:11px;color:var(--hcon-muted)}
.portal-shell .haldoor-footer-mark{width:34px;height:38px;background:var(--hcon-soft);box-shadow:none;padding:4px;border-radius:8px}
.portal-shell .haldoor-footer-mark img{width:26px;height:30px}
.portal-shell .haldoor-footer-links{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:12px;color:var(--hcon-green)}
.portal-shell .haldoor-footer-links a{min-height:44px;display:inline-flex;align-items:center}
.portal-shell .haldoor-footer-bottom{border:0;margin-top:6px;padding:0;font-size:11px;color:var(--hcon-muted);background:none}
.portal-shell .insight-dashboard{display:grid;gap:16px}
.portal-shell .insight-hero{padding:24px;border-radius:18px;border:1px solid var(--hcon-line);background:radial-gradient(ellipse at 100% 0%,#dbeee280,transparent 55%),var(--hcon-surface)}
.portal-shell .insight-hero h1{font-size:clamp(27px,2.7vw,38px);max-width:34ch;line-height:1.2}
.portal-shell .insight-hero p{font-size:14px;color:var(--hcon-muted);max-width:72ch}
.portal-shell .haldoor-greeting-accent{color:var(--hcon-red)}
.portal-shell .insight-hero-actions{gap:10px}
.portal-shell .member-welcome-links{gap:20px;margin-top:18px}
.portal-shell .member-welcome-links span{font-size:11px}
.portal-shell .insight-kpis{gap:12px}
.portal-shell .insight-kpi{padding:17px;min-height:145px;position:relative}
.portal-shell .insight-kpi h2{font-size:13px;line-height:1.45;font-weight:800}
.portal-shell .insight-kpi h2 a::after{content:'';position:absolute;inset:0;border-radius:inherit}
.portal-shell .insight-kpi:focus-within{outline:3px solid #b58a2e;outline-offset:3px}
.portal-shell .insight-kpi .insight-value{font-size:32px;line-height:1.25}
.portal-shell .insight-kpi p,.portal-shell .insight-live{font-size:11px;line-height:1.5}
.portal-shell .insight-panel{padding:20px}
.portal-shell .insight-heading h2{font-size:17px;line-height:1.35;color:var(--hcon-ink)}
.portal-shell .insight-heading p,.portal-shell .insight-muted{font-size:12px;line-height:1.65;color:var(--hcon-muted)}
.portal-shell .insight-heading>a{font-size:12px;flex-shrink:0;padding-block:8px}
.portal-shell .insight-canvas{height:235px}
.portal-shell .insight-table summary{padding:10px 0;cursor:pointer;font-size:12px;font-weight:700;color:var(--hcon-green)}
.portal-shell .member-development-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:16px;align-items:stretch}
.portal-shell .member-development-grid>.insight-grid{display:grid;grid-template-columns:1fr;gap:16px}
.portal-shell .member-recommendations .insight-opportunity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.portal-shell .member-recommendations .brand-opportunity{padding:17px;background:var(--hcon-surface)}
.portal-shell .member-focus-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.portal-shell .member-personal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.portal-shell .member-action-grid{gap:12px}
.portal-shell .member-action-grid>a{padding:16px;gap:7px}
.portal-shell .member-action-grid small{font-size:11px}
.portal-shell .insight-next-steps h2{font-size:14px}
.portal-shell .insight-editorial-list h3{font-size:14px;line-height:1.5}
.portal-shell .insight-editorial-list>a{padding-block:13px}
.portal-shell .brand-opportunity{display:flex;flex-direction:column;gap:0;height:100%;min-width:0}
.portal-shell .brand-opportunity h3{font-size:17px;line-height:1.4;margin-block:14px 8px}
.portal-shell .brand-card-description{font-size:13px;line-height:1.7}
.portal-shell .brand-card-actions{margin-top:auto;padding-top:16px;gap:8px;flex-wrap:wrap}
.portal-shell .brand-card-meta,.portal-shell .brand-deadline{font-size:12px}
.portal-shell .brand-chip-list{gap:6px}
.portal-shell .opportunity-contributor{font-size:11px;line-height:1.6;margin-block:9px}
.portal-shell .brand-status{font-size:11px;line-height:1.4;padding:5px 9px;white-space:normal}
.hcon-result-count{font-size:12px;font-weight:600;color:var(--hcon-muted);display:block;margin-block:10px}
.hcon-form-guide{font-size:13px;line-height:1.8;color:var(--hcon-muted);padding:15px;background:var(--hcon-soft);border-radius:10px;margin-bottom:24px}
.hcon-form-section{min-width:0;margin-top:24px;padding-top:20px;border-top:1px solid var(--hcon-line)}
.hcon-form-section legend{font-size:17px;font-weight:800;color:var(--hcon-ink);padding-right:16px}
.hcon-form-section legend span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--hcon-soft);color:var(--hcon-green);font-size:12px;margin-right:8px}
.hcon-form-section label{font-size:13px;line-height:1.6}
.hcon-form-actions{align-items:center;border-top:1px solid var(--hcon-line);padding-top:20px}
.hcon-form-actions p{flex-basis:100%;font-size:12px;color:var(--hcon-muted)}
.hcon-submission-progress{padding:15px;margin-bottom:16px;border:1px solid var(--hcon-line);border-radius:12px;background:var(--hcon-surface)}
.hcon-submission-progress ol{display:flex;gap:12px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.hcon-submission-progress li{font-size:12px;color:var(--hcon-muted);display:flex;align-items:center;gap:7px;flex:1;min-width:110px}
.hcon-submission-progress li>span{width:26px;height:26px;display:grid;place-items:center;border:1px solid var(--hcon-line);border-radius:50%;flex-shrink:0}
.hcon-submission-progress .is-complete{color:var(--hcon-green);font-weight:700}
.hcon-submission-progress [aria-current] span{background:#075e32;color:#fff;border-color:#075e32}
.hcon-submission-progress p{margin-top:12px;font-size:12px;color:var(--hcon-muted)}
.insight-journey .hcon-submission-progress{border:0;padding:12px 0 0;margin:0}
.hcon-text-link{display:inline-block;font-size:12px;font-weight:700;color:var(--hcon-green);padding-block:10px}
.hcon-review-feedback{border-left:4px solid #b58a2e;background:var(--hcon-soft)}
.hcon-visible-label{display:block;font-size:12px;font-weight:700;color:var(--hcon-ink);margin-bottom:6px}
.portal-shell :is(input,select,textarea)[aria-invalid=true]{border-color:#c8272b!important;box-shadow:0 0 0 1px #c8272b}
.portal-shell .page-stack table{width:100%;font-size:13px;border-collapse:collapse}
.portal-shell .page-stack thead th{padding:12px 14px;background:var(--hcon-soft);color:var(--hcon-muted);font-size:11px;letter-spacing:.03em}
.portal-shell .page-stack tbody :is(td,th){padding:13px 14px;vertical-align:middle;border-bottom:1px solid var(--hcon-line);text-align:start}
.portal-shell .page-stack tbody tr:hover{background:var(--hcon-soft)}
.portal-shell .page-stack tbody a{font-weight:700}
.portal-shell .brand-table-caption{font-size:11px;line-height:1.6;color:var(--hcon-muted)}
.portal-shell .brand-row-actions summary{min-height:36px;display:flex;align-items:center;cursor:pointer}
.portal-shell :is(.brand-empty,.insight-no-data){padding:24px 18px;min-height:0;border-radius:12px}
.portal-shell .brand-empty svg{max-height:65px}
.portal-shell .brand-empty p{max-width:45ch;margin-inline:auto;font-size:13px;line-height:1.7}
.hcon-confirm-dialog{width:min(440px,calc(100vw - 32px));padding:26px;background:var(--hcon-surface);color:var(--hcon-ink);border:1px solid var(--hcon-line);border-radius:18px;box-shadow:0 24px 80px #001c2333}
.hcon-confirm-dialog::backdrop{background:#051b1299;backdrop-filter:blur(3px)}
.hcon-confirm-dialog h2{font-size:20px;font-weight:800;letter-spacing:-.03em}
.hcon-confirm-dialog p{font-size:14px;line-height:1.8;margin:14px 0 24px;color:var(--hcon-muted)}
.hcon-confirm-dialog>div{display:flex;justify-content:flex-end;gap:10px}
.hcon-confirm-dialog button{padding:11px 16px;min-height:44px;border:1px solid var(--hcon-line);border-radius:10px;font-weight:700}
.hcon-confirm-dialog button[data-accept]{background:#075e32;color:#fff;border-color:#075e32}
.hcon-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.auth-page .auth-card{border-radius:22px;box-shadow:0 18px 60px #043d2210}
.auth-page .auth-card-header h1{font-size:clamp(28px,3vw,38px)}
.auth-page .auth-card-header>p{font-size:14px;line-height:1.6}
.auth-page .auth-contact{font-size:13px;line-height:1.8}
.auth-page :is(.auth-ambient-orb,.network-travel,.network-node){animation:none!important}
@media(min-width:1024px){.portal-shell .app-sidebar.sidebar-collapsed .haldoor-brand-header{padding-inline:12px;min-height:88px}.portal-shell .member-dashboard .insight-kpis-member{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1279px){.portal-shell .member-development-grid{grid-template-columns:1fr}.portal-shell .member-development-grid>.insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-shell .member-focus-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-shell .member-focus-grid>.insight-attention{grid-column:1/-1}.portal-shell .member-personal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-shell .member-personal-grid>:last-child{grid-column:1/-1}}
@media(max-width:767px){.portal-shell .insight-hero{padding:20px}.portal-shell .insight-hero h1{font-size:27px}.portal-shell .insight-hero-actions{width:100%;align-items:flex-start}.portal-shell .insight-panel{padding:17px}.portal-shell .member-focus-grid,.portal-shell .member-personal-grid{grid-template-columns:1fr}.portal-shell .member-recommendations .insight-opportunity-grid{grid-template-columns:1fr}.portal-shell .member-welcome-links{gap:12px}.portal-shell .page-stack :is(input:not([type=checkbox]):not([type=radio]),select,textarea),.auth-page input{font-size:16px}.portal-shell .page-stack :is(input[type=checkbox],input[type=radio]){min-width:20px;min-height:20px}.portal-shell .insight-heading{gap:10px}.portal-shell .haldoor-footer-links{width:100%}.portal-shell .insight-canvas{height:215px}.portal-shell .member-dashboard .insight-kpis-member{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-shell .insight-kpi{padding:14px}.portal-shell .insight-kpi h2{font-size:12px}.hcon-form-section legend{font-size:15px}.hcon-confirm-dialog{padding:22px}}
@media(max-width:480px){.portal-shell .member-development-grid>.insight-grid{grid-template-columns:1fr}.portal-shell .member-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-shell .insight-kpi .insight-live{display:none}.portal-shell .insight-kpi .insight-value{font-size:29px}.portal-shell .member-welcome-links span{display:none}.portal-shell .haldoor-footer-identity small{max-width:30ch}}
@media(prefers-reduced-motion:no-preference){.portal-shell .brand-button,.portal-shell .hc-card-interactive{transition:background-color 160ms ease,box-shadow 160ms ease,border-color 160ms ease}.portal-shell .hc-card-interactive:hover{box-shadow:0 8px 24px #043d2210}.portal-shell .app-sidebar a:hover .nav-icon{transform:translateX(2px)}}
@media(prefers-reduced-motion:reduce){.portal-shell *,.portal-shell *::before,.portal-shell *::after,.auth-page *,.auth-page *::before,.auth-page *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
