/* Client portal: a focused workspace that also fits a phone. */
.portal-shell.portal2-shell{width:100%;min-height:100dvh;padding:0;margin:0;background:#111214}
.portal2-top{position:sticky;top:0;z-index:25;background:#17181a;border-bottom:1px solid var(--line)}
.portal2-top-inner{width:min(1460px,100%);margin:0 auto;padding:12px 28px;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.portal2-brand,.portal2-top-actions{display:flex;align-items:center;gap:12px}
.portal2-brand{min-width:0}.portal2-brand .client-logo{flex:none;width:42px;height:42px;font-size:15px}
.portal2-brand>div{min-width:0;display:grid;gap:3px}
.portal2-brand strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal2-brand small{color:var(--muted);font-size:11px;white-space:nowrap}
.portal2-top-actions{flex:none}.portal2-top-actions .icon-btn{min-width:42px;min-height:42px}
.portal2-skip{position:fixed;left:14px;top:12px;z-index:40;padding:11px 15px;border-radius:8px;background:var(--orange);color:#17100c;font-weight:700;transform:translateY(-150%)}
.portal2-skip:focus{transform:translateY(0)}
.portal2-layout{width:min(1460px,100%);margin:0 auto;padding:28px 28px 64px;display:grid;grid-template-columns:215px minmax(0,1fr);gap:26px;align-items:start}
.portal2-rail{position:sticky;top:94px;max-height:calc(100dvh - 110px);overflow:auto;background:#191a1c;border:1px solid var(--line);border-radius:14px;padding:13px;scrollbar-width:thin}
.portal2-nav-group+ .portal2-nav-group{margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}
.portal2-nav-group>span{display:block;margin:4px 8px 6px;color:var(--muted);font-size:10px;line-height:1.45;text-transform:uppercase;letter-spacing:.09em}
.portal2-nav-item{width:100%;min-height:43px;display:flex;align-items:center;text-align:left;gap:9px;padding:9px;color:#d3d4d7;border:1px solid transparent;border-radius:8px;font-size:13px;font-weight:600}
.portal2-nav-item svg,.portal2-rail-search svg,.portal2-search-hit svg{flex:none;width:17px;height:17px}
.portal2-nav-item:hover{background:#242527}.portal2-nav-item.is-current{color:#ffb184;background:#38271d;border-color:#68402a}
.portal2-nav-item>span:first-of-type{min-width:0;overflow-wrap:anywhere}
.portal2-count{margin-left:auto;min-width:22px;padding:2px 5px;border-radius:7px;background:#37373c;color:#f7f6f6;font-size:11px;text-align:center}
.portal2-nav-item.is-current .portal2-count{background:#69391e;color:#ffdfcb}
.portal2-rail-search{margin-top:16px;border:1px solid var(--line);border-radius:8px;width:100%;display:flex;align-items:center;gap:7px;min-height:42px;padding:9px;font-size:12px;color:var(--muted);text-align:left}
.portal2-rail-search:hover{color:var(--text)}
.portal2-rail-search kbd{margin-left:auto;font-size:10px;border:1px solid #48494e;border-radius:4px;padding:2px 3px;white-space:nowrap}
.portal2-content{min-width:0;outline:none;overflow-wrap:anywhere}
.portal2-mobile{display:none}
.portal2-preview-nav{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0 21px}
.portal2-preview-nav .portal2-nav-item{width:auto;border-color:var(--line)}
.portal2-hero{position:relative;isolation:isolate;display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:210px;padding:clamp(19px,4vw,38px);border:1px solid #634330;border-radius:16px;background:radial-gradient(ellipse at 90% 20%,#4b2d20 0%,#242020 43%,#1c1c1f 83%);overflow:hidden}
.portal2-hero-content{z-index:1;min-width:0}
.portal2-hero h1,.portal2-pagehead h1{font-size:clamp(27px,3.2vw,45px);line-height:1.12;letter-spacing:-.035em;margin:8px 0 10px}
.portal2-hero .eyebrow,.portal2-pagehead .eyebrow{color:#ffb483}
.portal2-hero p,.portal2-pagehead p{color:#ceccce;line-height:1.55;font-size:14px;max-width:66ch}
.portal2-hero .actions{margin-top:22px}
.portal2-hero-mark{display:grid;place-items:center;flex:0 0 113px;height:113px;border:1px solid #88513a;border-radius:29px;transform:rotate(-8deg);background:#59332140;color:#ffa977}
.portal2-hero-mark svg{width:54px;height:54px}
.portal2-pagehead{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:23px}
.portal2-pagehead>div:first-child{min-width:0}
.portal2-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:13px;margin:15px 0 22px}
.portal2-kpi{display:grid;justify-items:start;gap:5px;min-width:0;text-align:left;padding:16px 18px}
button.portal2-kpi:hover{border-color:#9a5a38;background:#222123}
.portal2-kpi>span{color:#d7d6d8;font-size:13px;font-weight:600}
.portal2-kpi strong{font-size:clamp(24px,3.3vw,36px);line-height:1.18;letter-spacing:-.03em;overflow-wrap:anywhere}
.portal2-kpi small{color:var(--muted);font-size:12px;line-height:1.45}
.portal2-home-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,1fr);gap:18px;align-items:start}
.portal2-home-aside,.portal2-stack{display:grid;gap:11px;min-width:0}
.portal2-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.portal2-section-head h2,.portal2-section-head h3{font-size:19px;line-height:1.35}
.portal2-section-head p,.portal2-small-panel p{color:var(--muted);font-size:13px;line-height:1.55;margin-top:5px}
.portal2-section-head .eyebrow,.portal2-small-panel .eyebrow{margin-bottom:5px;display:block}
.portal2-block+.portal2-block{margin-top:22px}
.portal2-small-panel{padding:16px 18px}
.portal2-small-panel h2{font-size:17px;line-height:1.4;margin:4px 0 8px}
.portal2-small-panel h3{font-size:14px;line-height:1.45;margin:5px 0}
.portal2-small-panel .text-btn{min-height:35px;margin-top:7px}
.portal2-empty{min-height:130px;border:1px dashed #424346;border-radius:12px;background:#191a1c;padding:21px;display:grid;justify-items:start;gap:7px}
.portal2-empty h2{font-size:17px;line-height:1.45}
.portal2-empty p{font-size:13px;color:var(--muted);line-height:1.55}
.portal2-empty-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#33241d;color:#ffab7a}
.portal2-empty-icon svg{width:16px;height:16px}.portal2-empty>.btn{margin-top:5px}
.portal2-content .portal-inbox-card{padding:16px;gap:12px}
.portal2-content .portal-inbox-info h3{line-height:1.42;overflow-wrap:anywhere}
.portal2-content .portal-inbox-icon{flex:none}
.portal2-content .contract-summary{margin-bottom:16px}
.portal2-filters{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 12px}
.portal2-filters .filter{min-height:40px}.portal2-filters .filter span{margin-left:4px;color:var(--muted);font-size:11px}
.portal2-filterbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:0 0 14px}
.portal2-filterbar .field{margin:0;flex:1 1 155px;min-width:0}
.portal2-filterbar .field:first-of-type{flex-basis:210px}
.portal2-filterbar .error{flex:1 0 100%}.portal2-filterbar .error:empty{display:none}
.portal2-report-row,.portal2-event,.portal2-request-row,.portal2-payment{padding:15px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;flex-wrap:wrap}
.portal2-row-text{flex:1 1 155px;min-width:0}
.portal2-row-text h2,.portal2-row-text h3{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.portal2-row-text p{font-size:13px;color:var(--muted);line-height:1.5;margin:4px 0}
.portal2-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.portal2-date-tile{flex:0 0 51px;min-height:54px;border:1px solid #67432f;border-radius:9px;background:#38271e;color:#ffbf99;display:grid;align-content:center;justify-items:center}
.portal2-date-tile strong{font-size:22px;line-height:1.08}
.portal2-date-tile span{font-size:11px}
.portal2-preserve{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
.portal2-payment dl{display:grid;grid-template-columns:repeat(3,minmax(72px,1fr));gap:10px;margin:0;flex:1 1 254px}
.portal2-payment dt{font-size:11px;color:var(--muted)}.portal2-payment dd{font-size:13px;margin:3px 0 0;font-weight:650}
.portal2-activity-row{padding:14px 17px}
.portal2-activity-row .material-event{border:0;padding:10px 0 0;margin:0}
.portal2-activity-row .text-btn{text-align:left}
.portal2-menu-list{display:grid;gap:5px}
.portal2-menu-list .portal2-nav-item{min-height:44px}
.portal2-search-results{display:grid;gap:6px;margin-top:16px}
.portal2-search-hit{display:flex;gap:10px;align-items:center;justify-content:space-between;text-align:left;padding:12px;border:1px solid var(--line);border-radius:9px;min-height:46px}
.portal2-search-hit:hover{border-color:#8e5639}.portal2-search-hit>span{display:grid;gap:4px;min-width:0}
.portal2-search-hit strong{overflow-wrap:anywhere}
.portal2-search-hit small{color:var(--muted);font-size:11px}
.portal2-loading{padding:13px 0}
.portal2-list-live>.error{margin-bottom:11px}
.portal2-desk{padding:18px;margin-top:16px}
.portal2-desk-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 13px}
.portal2-desk .portal2-request-row,.portal2-desk .portal2-report-row{background:var(--bg)}
.portal2-desk-access{padding-top:17px;margin-top:17px;border-top:1px solid var(--line)}
.portal2-thread-top{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:12px}
.portal2-thread-top p{font-size:13px;color:var(--muted);margin-top:4px}
.portal2-message{border:1px solid var(--line);border-left:3px solid #666978;border-radius:9px;padding:12px 14px;background:#1f2022;min-width:0}
.portal2-message.from-agency{border-left-color:#f19660;background:#262120}
.portal2-message header{display:flex;align-items:center;gap:6px 9px;flex-wrap:wrap;margin-bottom:7px}
.portal2-message header strong{font-size:13px;overflow-wrap:anywhere}
.portal2-message header span,.portal2-message header time{color:var(--muted);font-size:11px}
.portal2-message header time{margin-left:auto}
.portal2-message p{font-size:14px}
.portal2-status-change{margin-bottom:7px}
.portal2-thread-messages{margin-top:10px}
.portal2-reply{border-top:1px solid var(--line);padding-top:14px;margin-top:16px}
.portal2-report-detail header{padding:16px;border:1px solid #5e402f;border-radius:10px;background:#2c2420;margin-bottom:16px}
.portal2-report-detail h2{font-size:clamp(20px,4vw,30px);line-height:1.3;margin:6px 0;overflow-wrap:anywhere}
.portal2-report-detail header p{color:var(--muted);font-size:12px}
.portal2-report-detail section{padding:10px 0;border-bottom:1px solid var(--line)}
.portal2-report-detail section h3{font-size:16px;margin-bottom:5px}
.portal-timecode-fields{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.portal-timecode-fields>.field{min-width:0;flex:1 1 160px;margin:0}
.portal-timecode{display:inline-flex;align-items:center;justify-content:center;color:#ffc19e;background:#402a21;border:1px solid #72452f;border-radius:6px;min-height:34px;padding:3px 8px;margin-right:8px;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;vertical-align:middle}
button.portal-timecode:hover{background:#61402b}
.portal-timecode.is-label{min-height:26px}
:is(.portal2-shell,.portal2-desk,.portal2-preview,.portal2-thread,.portal2-report-detail) :is(button,a,input,select,textarea,summary):focus-visible,
.portal-timecode:focus-visible{outline:2px solid #ffc29e;outline-offset:2px}
@media(max-width:1100px){
 .portal2-layout{grid-template-columns:188px minmax(0,1fr);gap:16px;padding-inline:18px}
 .portal2-home-grid{grid-template-columns:minmax(0,1fr)}
 .portal2-home-aside{grid-template-columns:repeat(auto-fit,minmax(min(215px,100%),1fr))}
}
@media(max-width:760px){
 .portal2-top-inner{padding:9px 14px;min-height:61px;gap:8px}
 .portal2-brand{gap:8px}.portal2-brand .client-logo{width:35px;height:35px;font-size:13px}
 .portal2-brand strong{font-size:13px}.portal2-brand small{font-size:10px}
 .portal2-top-actions{gap:6px}.portal2-top-actions .icon-btn{min-width:38px;min-height:40px}
 .portal2-layout{display:block;padding:16px 14px calc(88px + env(safe-area-inset-bottom,0px))}
 .portal2-rail{display:none}
 .portal2-mobile{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:23;gap:5px;padding:6px 9px calc(6px + env(safe-area-inset-bottom,0px));background:#17181a;border-top:1px solid #393a3c}
 .portal2-mobile .portal2-nav-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px;min-height:51px;font-size:11px;text-align:center}
 .portal2-mobile .portal2-count{position:absolute;top:2px;right:4px;font-size:9px;min-width:15px;padding:1px 3px}
 .portal2-hero{min-height:0;padding:21px 16px}
 .portal2-hero-mark{display:none}
 .portal2-hero .actions{margin-top:15px}
 .portal2-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .portal2-kpi{padding:13px}.portal2-kpi small{font-size:11px}
 .portal2-pagehead{align-items:start;margin-bottom:17px}
 .portal2-pagehead h1,.portal2-hero h1{font-size:29px}
 .portal2-pagehead p,.portal2-hero p{font-size:13px}
 .portal2-content .portal-inbox-card{padding:13px;gap:10px}
 .portal2-content .portal-inbox-card>.btn{margin-left:auto}
 .portal2-content .btn,.portal2-desk .btn,.portal2-thread .btn{white-space:normal;min-height:41px;text-align:center}
 .portal2-desk{padding:13px}
 .portal2-message header time{margin-left:0}
}
@media(max-width:370px){
 .portal2-layout{padding-inline:10px}.portal2-top-inner{padding-inline:10px}
 .portal2-top-actions{gap:3px}
 .portal2-payment dl{grid-template-columns:repeat(3,minmax(0,1fr))}
 .portal2-kpi strong{font-size:23px}
 .portal2-event>.btn{width:100%}
 .portal2-hero .actions>.btn{width:100%}
}
@media print{
 body.portal2-report-print{background:#fff!important;color:#171717!important}
 body.portal2-report-print #app,body.portal2-report-print #toast,body.portal2-report-print #dialog .modal-head,body.portal2-report-print #dialog .actions{display:none!important}
 body.portal2-report-print #dialog[open]{position:static!important;inset:auto!important;transform:none!important;max-width:none!important;max-height:none!important;width:100%!important;margin:0!important;border:none!important;box-shadow:none!important;background:#fff!important;color:#171717!important;overflow:visible!important}
 body.portal2-report-print #dialog::backdrop{display:none!important}
 body.portal2-report-print #dialog .modal-body{padding:0!important;overflow:visible!important}
 body.portal2-report-print #portal-report-print-body header{border:1px solid #ccc!important;background:#fff!important}
 body.portal2-report-print #portal-report-print-body :is(p,h2,h3,span){color:#171717!important}
 body.portal2-report-print #portal-report-print-body h3{break-after:avoid}
}
.portal2-home-notice{display:flex;align-items:center;gap:11px;min-width:0;padding:13px 15px;text-align:left}
.portal2-home-notice:hover{border-color:#895336;background:#202022}
.portal2-home-notice>span:nth-child(2){display:grid;gap:4px;min-width:0}
.portal2-home-notice strong{font-size:13px;line-height:1.4}
.portal2-home-notice small{font-size:12px;color:var(--muted);line-height:1.45}
.portal2-home-notice-icon{flex:0 0 32px;height:32px;display:grid;place-items:center;color:#ffb18c;background:#34241c;border-radius:8px}
.portal2-home-notice-icon svg{width:15px;height:15px}
.portal2-unread{width:8px;height:8px;margin-left:auto;border-radius:50%;background:var(--orange);flex:none}
