/* Private portal views share the approved cream, navy and gold palette. */
.portal-page{background:#f7f4ed;color:#102b35;min-height:100svh}
.portal-shell{max-width:1200px;margin:0 auto;padding:40px 28px 72px}
.portal-header .nav-shell{min-height:82px;padding-top:env(safe-area-inset-top)}
.portal-header .brand{flex-shrink:1;min-width:0}
.portal-header .portal-header-links{display:flex;gap:20px;align-items:center;font-size:14px;font-weight:650}
.portal-header-links a{min-height:44px;display:flex;align-items:center}
.portal-header .button{white-space:nowrap}
.portal-intro{margin-bottom:32px}
.portal-kicker{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#866a34;font-weight:750}
.portal-intro h1,.portal-public h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(32px,4.5vw,56px);line-height:1.1;margin:12px 0 16px}
.portal-intro h1 em,.portal-public h1 em{color:#967643}
.portal-intro p{color:#53666c;line-height:1.7;max-width:640px}
.portal-auth{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid #e2ded2;border-radius:24px;overflow:hidden;box-shadow:0 12px 40px #102b3508;max-width:940px;margin:0 auto}
.portal-story{padding:48px;background:#102b35;color:#f7f4ed}
.portal-story h1{font-family:Georgia,serif;font-size:44px;font-weight:400;line-height:1.15;margin:18px 0}
.portal-story h1 em{color:#d0b37e}.portal-story p{line-height:1.75;color:#d9e1df}
.portal-story .portal-kicker{color:#d0b37e}
.portal-story ol{padding-left:20px;line-height:1.8;margin:28px 0}
.portal-story li{padding-left:6px;margin:12px 0}
.portal-auth-main{padding:36px}
.portal-tabs,.portal-action-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.portal-tabs{margin-bottom:24px;border-bottom:1px solid #e7e2d7}
.portal-tabs button{background:none;border:0;padding:12px 4px;min-height:44px;font-size:15px;cursor:pointer;color:#5b6c70;border-bottom:2px solid transparent;margin-right:14px}
.portal-tabs button[aria-selected=true]{color:#102b35;border-color:#b49258;font-weight:750}
.portal h2{font-family:Georgia,serif;font-size:28px;font-weight:400;margin:0 0 14px;line-height:1.2}
.portal h3{font-family:Georgia,serif;font-size:24px;font-weight:400;margin:0 0 14px}
.portal p{line-height:1.65}.portal-subtitle,.portal-muted{color:#566a71}
.portal form{margin-top:22px}
.portal label:not(.portal-check){display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:650;color:#334e58}
.portal input:not([type=checkbox]),.portal select,.portal textarea{width:100%;min-width:0;border:1px solid #d7dedb;border-radius:10px;padding:12px 14px;background:#fff;color:#102b35;font:inherit;font-size:16px;min-height:48px}
.portal textarea{min-height:130px;resize:vertical;line-height:1.6}
.portal input:focus,.portal select:focus,.portal textarea:focus,.portal button:focus-visible,.portal a:focus-visible{outline:3px solid #b49258;outline-offset:3px}
.portal input[aria-invalid=true]{border-color:#a83a38}
.portal-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
.portal-full{grid-column:1/-1}.portal-one{display:grid;gap:18px}
.portal-check{display:flex;gap:12px;align-items:flex-start;line-height:1.6;font-size:13px;font-weight:400;color:#3f555e;margin:18px 0}
.portal-check input{width:20px;height:20px;flex:0 0 20px;margin-top:2px;accent-color:#102b35}
.portal-check a{text-decoration:underline}
.portal-password{display:flex;gap:8px;align-items:center}
.portal-password input{flex:1}.portal-password button{border:1px solid #d7dedb;border-radius:10px;background:#faf8f3;min-height:48px;padding:0 12px;color:#334e58;cursor:pointer}
.portal .button{min-height:48px;border-radius:9px}.portal .button.small{min-height:44px}
.portal .button:disabled{opacity:.55;cursor:wait}.portal-link-button{background:none;border:0;min-height:44px;color:#102b35;font-size:14px;cursor:pointer;text-decoration:underline;text-underline-offset:4px;padding:4px}
.portal-notice{padding:16px 18px;background:#eee7d8;border:1px solid #dfd1b3;border-radius:12px;line-height:1.65;font-size:14px;margin:18px 0}
.portal-notice.error{background:#fff0ed;color:#842e29;border-color:#eab7aa}
.portal-notice.success{background:#eff6ef;color:#27513e;border-color:#b7d3c1}
.portal-status[hidden]{display:none}.portal-status{margin-bottom:22px}
.portal-layout{display:grid;grid-template-columns:218px minmax(0,1fr);gap:30px}
.portal-nav{display:flex;flex-direction:column;gap:6px;align-self:start}
.portal-nav button{background:none;border:0;border-radius:10px;text-align:left;padding:14px 16px;color:#3f5961;cursor:pointer;font-size:14px;min-height:48px}
.portal-nav button[aria-current=page]{background:#102b35;color:#fff;font-weight:650}
.portal-nav .portal-signout{margin-top:20px;border-top:1px solid #dfded5;border-radius:0}
.portal-content{min-width:0}.portal-card{background:#fff;border:1px solid #e1e2d8;border-radius:18px;padding:26px;margin-bottom:20px}
.portal-card.highlight{background:#102b35;color:#f8f6ee;padding:32px}
.portal-card.highlight .portal-muted{color:#cad8d5}.portal-card.highlight h2{font-size:34px}
.portal-card-top{display:flex;gap:16px;justify-content:space-between;align-items:flex-start;margin-bottom:12px}
.portal-card-top h3{margin-bottom:6px}.portal-card p:last-child{margin-bottom:0}
.portal-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.portal-empty{padding:28px;border:1px dashed #ccc7b9;border-radius:16px;text-align:center;margin:16px 0;background:#fcfbf7}
.portal-empty p{max-width:500px;margin-left:auto;margin-right:auto}
.portal-badge{display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:20px;background:#eee9dc;color:#655234;font:650 11px/1.3 Arial,sans-serif;letter-spacing:.04em;white-space:nowrap}
.portal-badge.confirmed,.portal-badge.resolved{background:#e8f2e9;color:#29533d}
.portal-badge.processing{background:#e8f0f4;color:#2a5977}.portal-badge.offer_ready{background:#f5e8cb;color:#6d5422}.portal-badge.cancelled,.portal-badge.closed{background:#f0e9e6;color:#755044}
.portal-ref{font-size:12px;letter-spacing:.04em;color:#697b81;overflow-wrap:anywhere}
.portal-meta{display:flex;gap:12px;flex-wrap:wrap;color:#596f77;font-size:13px;margin:10px 0 18px}
.portal-reply{border-left:3px solid #c0a06b;padding:8px 16px;background:#f8f5ee;white-space:pre-wrap}
.portal-profile{display:flex;gap:14px;align-items:center;margin-bottom:24px}
.portal-avatar{display:flex;align-items:center;justify-content:center;background:#e9ddc3;width:50px;height:50px;border-radius:50%;color:#102b35;font-weight:700}
.portal-profile p{margin:2px 0;color:#566a71}
.portal-small{font-size:12px;line-height:1.7;color:#5f7278;margin:10px 0}
.portal-note-label{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#7a6748;margin-bottom:8px}
.portal-split{display:flex;justify-content:space-between;align-items:center;gap:18px}
.portal-checklist{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}
.portal-checklist label{border:1px solid #dce3db;border-radius:12px;padding:14px;margin:0;min-height:68px}
.portal-checklist small{display:block;font-size:12px;color:#61767d}
.portal-checklist .portal-check{align-items:center;font-size:14px}
.portal-loading{padding:50px 20px;text-align:center;color:#536a72}
.portal .portal-list{display:grid;gap:16px}
.portal-footer{border-top:1px solid #dddacc;padding:24px 28px calc(24px + env(safe-area-inset-bottom));text-align:center;font-size:12px;color:#566b72}
.portal-footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 22px;margin-top:14px}
.portal-footer a{min-height:36px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:4px}
.portal-public{max-width:990px}.portal-public-lead{max-width:700px;color:#53666c;font-size:17px;line-height:1.8}
.portal-public .portal-fields{margin-top:22px}
.portal-levels{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:30px 0}
.portal-levels div{background:#fff;border:1px solid #e1dfd5;border-top:4px solid #8aa880;border-radius:12px;padding:18px;font-size:13px;line-height:1.6}
.portal-levels div:nth-child(2){border-top-color:#d1aa4f}.portal-levels div:nth-child(3){border-top-color:#c77945}.portal-levels div:nth-child(4){border-top-color:#b2524d}
.portal-levels strong{display:block;font-size:20px;color:#102b35;margin-bottom:6px}
.portal-risk-card{border-left:5px solid #98b083}.portal-risk-card[data-level="2"]{border-left-color:#d1aa4f}.portal-risk-card[data-level="3"]{border-left-color:#c77945}.portal-risk-card[data-level="4"]{border-left-color:#b2524d}
.portal-risk-level{font-size:44px;font-family:Georgia,serif;line-height:1.2;margin:12px 0}
.portal-risk-indicators{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.portal-risk-indicators span{border:1px solid #dfdfd4;border-radius:30px;padding:6px 12px;font-size:12px}
.portal-public .portal-card{margin-top:22px}.portal-disclosure{font-size:13px;color:#5f737a;line-height:1.8}
.portal-file-list a{display:flex;min-height:48px;gap:18px;justify-content:space-between;align-items:center;color:#102b35}
.portal-file-list article{border-bottom:1px solid #ebe8df;padding:14px 0}
.portal-file-list small{font-size:12px;color:#687a7f}
.portal-file-list strong{overflow-wrap:anywhere}
.portal-danger{color:#983c35!important}
.portal-table{border-collapse:collapse;width:100%;font-size:13px}
.portal-table td,.portal-table th{padding:12px 8px;text-align:left;border-bottom:1px solid #e2e1d7;overflow-wrap:anywhere}
.portal-desk-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px}
.portal-desk .portal-card textarea{min-height:100px}
.portal-desk .portal-request-filter{max-width:340px;margin:0 0 20px}
.portal-desk .portal-profile{margin:0 0 24px}
.portal-desk details{margin:14px 0}.portal-desk summary{cursor:pointer;min-height:44px;padding:12px 0;color:#3d5b62;font-size:13px}
.portal-desk .portal-trip-list{max-height:520px;overflow:auto}
.portal-home-safety{display:flex;gap:22px;justify-content:space-between;align-items:center;background:#eee8db;border:1px solid #ded4c1;border-radius:14px;padding:24px 30px;margin-top:28px}
.portal-home-safety strong{display:block;font:400 24px Georgia,serif;margin-bottom:7px}.portal-home-safety p{margin:0;line-height:1.65;font-size:13px;color:#546a71}
.portal-home-safety a{flex-shrink:0;font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:5px;min-height:44px;display:flex;align-items:center}
@media(max-width:940px){.portal-layout{grid-template-columns:180px minmax(0,1fr);gap:20px}.portal-desk-grid{grid-template-columns:1fr}.portal-auth{grid-template-columns:.85fr 1fr}.portal-story{padding:32px}.portal-story h1{font-size:36px}.portal-header .brand-type{font-size:23px}.portal-header .brand-type span{font-size:8px;letter-spacing:2px}.portal-header-links{gap:12px!important}}
@media(max-width:680px){.portal-shell{padding:28px 18px 52px}.portal-auth{grid-template-columns:1fr}.portal-story{padding:26px}.portal-story h1{font-size:32px;margin:14px 0}.portal-story ol{display:none}.portal-story p{margin-bottom:0;font-size:14px}.portal-auth-main{padding:26px 20px}.portal-layout{grid-template-columns:1fr;gap:22px}.portal-nav{flex-direction:row;overflow-x:auto;padding-bottom:8px;gap:8px;max-width:100%;scrollbar-width:thin}.portal-nav button{white-space:nowrap;flex:0 0 auto;padding:12px 14px}.portal-nav .portal-signout{margin-top:0;border:0;border-radius:10px}.portal-fields,.portal-grid,.portal-checklist{grid-template-columns:1fr;gap:16px}.portal-card{padding:21px}.portal-card.highlight{padding:26px}.portal-card-top{flex-wrap:wrap;gap:10px}.portal-card.highlight h2{font-size:30px}.portal-intro{margin-bottom:24px}.portal-header .nav-shell{padding:12px 18px;gap:14px;min-height:78px;flex-wrap:wrap}.portal-header .brand img{width:34px;height:auto}.portal-header .brand-type{font-size:22px}.portal-header-links a:not(.button){display:none}.portal-header .button.small{font-size:12px;padding:10px 13px}.portal-levels{grid-template-columns:1fr 1fr}.portal-home-safety{align-items:flex-start;flex-direction:column;padding:23px;gap:12px}.portal-split{align-items:flex-start;flex-wrap:wrap}.portal-public-lead{font-size:16px}.portal-meta{font-size:12px}.portal-footer{padding-left:20px;padding-right:20px}.portal-auth .button{width:100%;justify-content:center}.portal-action-row .button{flex:1 1 auto;justify-content:center}.portal-risk-level{font-size:36px}.portal-table{font-size:12px}.portal-table td{padding:12px 4px}}
@media(prefers-reduced-motion:reduce){.portal *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(min-width:941px){.nav-actions .account-btn{display:flex!important}}
@media(max-width:940px){.nav-actions .account-btn{display:flex!important;min-width:44px;min-height:44px;justify-content:center}.nav-actions .account-btn span{display:none}.nav-actions .saved-btn{display:none}}


.portal h1,.portal h2,.portal h3,.portal strong,.portal a,.portal-card p {overflow-wrap:anywhere;}

.portal-header .button.outline{color:#f7f4ed;border-color:#b7c5c7}.portal-header .button.outline:hover{color:#102b35;background:#f7f4ed}

.portal-header .nav-shell{height:auto}
/* Homepage safety entry: keep complete link labels when the desktop row narrows. */
.main-menu-safety .desktop-nav a{white-space:nowrap;padding:24px 0}
.main-menu-safety .desktop-nav .current:after{bottom:13px}
@media(min-width:941px) and (max-width:1280px){.main-menu-safety .desktop-nav{min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:0 12px}.main-menu-safety .desktop-nav a{padding:9px 0}.main-menu-safety .desktop-nav .current:after{bottom:4px}.main-menu-safety .nav-shell{height:auto;min-height:89px;padding-top:8px;padding-bottom:8px}}
@media(max-width:940px){.main-menu-safety .mobile-nav{max-height:calc(100vh - 90px);max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:12px;scroll-padding-bottom:12px}}
@media(max-width:680px){.portal-header-links a[href="index.html#home"]{display:none}.portal-header .brand-type{font-size:20px}.portal-header .portal-header-links{margin-left:auto}.portal-header .nav-shell{flex-wrap:nowrap}}

.portal-page main .button{white-space:normal;text-align:center;min-width:0;max-width:100%}.portal-page h1,.portal-page h2,.portal-page h3{overflow-wrap:anywhere}

/* v42: enlarged brand text may wrap the header instead of overlapping links. */
.portal-header .brand{flex-shrink:0;min-width:max-content}
@media(max-width:680px){.portal-header .nav-shell{flex-wrap:wrap}.portal-header .portal-header-links{flex-wrap:wrap;max-width:100%}}
