.pilot-intro .back{margin:0 0 1.2rem;padding:0;display:table}
.pilot-intro h1{max-width:16ch;text-wrap:balance}
.portal{border:1px solid transparent;border-radius:clamp(18px,3vw,32px);background:var(--surface) padding-box,var(--rim) border-box;box-shadow:0 24px 74px #11090866;overflow:hidden}
.portal-header,.portal-body{padding:clamp(18px,4vw,44px)}
.portal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;background:radial-gradient(ellipse at 85% 0%,#62413a,transparent 75%),linear-gradient(135deg,#3b2926,#2d201f)}
.portal-header h2{margin:.2rem 0 0}
.portal-header p{margin:.45rem 0 0;color:#ead0b8;font-size:.9rem}
.portal-role{padding:.25rem 0 0;margin:0;border:0;display:flex;gap:.3rem;min-width:0}
.portal-role legend{font-size:.77rem;font-weight:700;color:var(--muted)}
.portal-role button,.portal-filters button{font:inherit;font-size:.87rem;font-weight:700;min-height:44px;padding:.45rem .82rem;background:#251b1a;color:#f3dbc6;border:1px solid #9d755e;border-radius:100px;cursor:pointer}
.portal-role button[aria-pressed=true],.portal-filters button[aria-pressed=true]{background:#efd2a8;border-color:#efd2a8;color:#2b1b12}
.portal-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;padding:0;list-style:none;border-block:1px solid #79574c}
.portal-progress li{display:flex;align-items:center;gap:.55rem;min-width:0;padding:.8rem clamp(.3rem,2vw,1.25rem);text-align:center;justify-content:center;color:#d5c2b4;background:#281d1a;border-bottom:2px solid transparent;font-weight:700;font-size:clamp(.72rem,2.6vw,.95rem)}
.portal-progress li+li{border-left:1px solid #79574c}
.portal-progress li span{color:#d7b295;font-size:.74rem;font-variant-numeric:tabular-nums}
.portal-progress li[aria-current]{background:#4a3229;border-bottom-color:#f2c698;color:#fff2df}
.portal-progress li.is-complete span{color:#ffddb2}
.portal-progress li.is-complete{background:#342620}
.portal-body{scroll-margin-top:1rem}
.portal-body h3{margin:0;font:400 clamp(2.2rem,5.2vw,3.85rem)/1.04 Instrument,Georgia,serif;letter-spacing:-.022em;text-wrap:balance;scroll-margin-block-start:2rem}
.portal-body h3:focus{outline:none}
.portal-body p{max-width:66ch;color:var(--muted)}
.portal-role-note{margin:0 0 clamp(1.2rem,3vw,2.4rem);font-size:.86rem}
.portal-sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:1.5rem 0 1rem}
.portal-sources article{min-width:0;background:linear-gradient(145deg,#342522,#281d1b);padding:1.1rem;border:1px solid #826052;border-radius:14px}
.portal-sources article>span{color:#efc399;font-size:.75rem;font-weight:700}
.portal-sources h4{margin:.27rem 0}
.portal-sources p{margin:0 0 .8rem;font-size:.86rem}
.portal-sources strong{color:#f3d6b3;font-size:.9rem}
.portal-details{border:1px solid #836255;border-radius:12px;background:#251c1a;margin-bottom:.65rem}
.portal-details summary{min-height:44px;padding:.65rem .9rem;cursor:pointer;font-weight:750}
.portal-details summary::marker{color:#efc399}
.portal-details p,.portal-details dl,.portal-report-list{margin:.3rem .9rem 1rem}
.portal-details summary span{color:#dfb997;margin-left:.65rem;font-weight:600}
.portal-details dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem 1rem;font-size:.89rem}
.portal-details dt{font-size:.76rem;color:var(--muted)}
.portal-details dd{margin:0;overflow-wrap:anywhere}
.portal-metrics{margin:1.55rem 0 1.15rem}
.portal-metrics dd{font-variant-numeric:tabular-nums}
.portal-filters,.portal-bottom{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.portal-review-tools{display:flex;align-items:flex-end;justify-content:space-between;gap:.65rem 1rem;flex-wrap:wrap;margin:1.15rem 0 .4rem}
.portal-review-search{display:grid;gap:.33rem;flex:1 1 14rem;max-width:22rem;min-width:0;color:#f2dbc5;font-size:.85rem;font-weight:700}
.portal-review-search input{width:100%;min-height:44px;padding:.5rem .8rem;color:#fff2df;background:#251b1a;border:1px solid #9d755e;border-radius:8px;font:inherit}
.portal-review-search input::placeholder{color:#d1b8a5}
.portal-issues,.portal-report-list{max-height:23rem;overflow:auto;scrollbar-color:#aa8269 #211817;overscroll-behavior:contain}
.portal-issues:empty{display:none}
.portal :is(button,summary,input,a):focus-visible{outline:2px solid #ffd4a5;outline-offset:2px}
.portal-confirm{display:flex;align-items:center;gap:.75rem;min-height:44px;margin:.75rem 0;cursor:pointer}
.portal-confirm input{width:20px;height:20px;flex:none;accent-color:#e7bc92}
.portal [data-pilot-next]{margin-top:.45rem}
.portal button:disabled{cursor:default;opacity:.72;transform:none}
.portal button:disabled::after{display:none}
.portal-bottom{margin-top:1.1rem}
.portal-bottom p{margin:0}
.portal-reset{font:inherit;background:none;border:0;cursor:pointer;text-decoration:underline;min-height:44px;padding:.45rem}
.portal-report-list>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.25rem 1rem;padding:.6rem 0;border-top:1px solid #785c50;font-size:.88rem}
.portal-report-list span{color:var(--muted)}
.portal-report-list b{color:#f5d3aa;font-variant-numeric:tabular-nums}
@media(max-width:650px){
  .portal-header{flex-direction:column;align-items:start;gap:.65rem}
  .portal-progress li{flex-direction:column;gap:.18rem;padding:.55rem 0}
  .portal-sources{grid-template-columns:1fr;gap:.5rem}
  .portal-sources article{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:0 .55rem;padding:.7rem}
  .portal-sources article p{grid-row:2;grid-column:2 / -1;margin:0}
  .portal-sources h4{font-size:.92rem}
  .portal-sources strong{white-space:nowrap;font-size:.77rem}
  .portal-role-note{font-size:.81rem}
  .portal-review-search{max-width:none;flex-basis:100%}
  .portal-details summary span{font-size:.83rem;margin-left:.35rem}
  .portal-details dl{grid-template-columns:1fr}
  .portal-report-list>div{grid-template-columns:1fr auto}
  .portal-report-list span{grid-row:2;grid-column:1 / -1}
}
@media(prefers-reduced-motion:reduce){.portal *{scroll-behavior:auto!important}}
@media(min-width:651px){[data-pilot-report]{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.portal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.portal-source-downloads{display:flex;gap:.55rem;flex-wrap:wrap;padding:0 .9rem .9rem}
.portal-source-downloads .button{font-size:.8rem}
[data-pilot-compare]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;padding:0 .9rem .9rem}
[data-pilot-compare] article{min-width:0;padding:.75rem;background:#342622;border-radius:9px}
[data-pilot-compare] h4{margin:0 0 .6rem;overflow-wrap:anywhere}
[data-pilot-compare] dl{margin:0}
[data-pilot-compare] dd{white-space:pre-wrap}
@media(max-width:500px){[data-pilot-compare]{grid-template-columns:1fr}}
