:root{--green:#1c392d;--lime:#d7e78d;--paper:#f4f3ec;--ink:#1b3025;--muted:#66766b;--line:#d8dfd3}*{box-sizing:border-box}body{margin:0;background:var(--paper);font:15px/1.6 system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink)}a{color:var(--green)}header{background:var(--green);color:white;padding:20px max(5vw,20px);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{color:white;text-decoration:none;font-weight:750;letter-spacing:2px;font-size:19px}.brand small{display:block;font-size:10px;letter-spacing:2px;color:var(--lime)}header nav{display:flex;gap:16px;align-items:center}header a{color:white}main{max-width:1120px;margin:0 auto;padding:42px 22px 70px}.intro{display:flex;justify-content:space-between;align-items:end;gap:22px;margin-bottom:25px}h1{font-size:clamp(28px,4vw,44px);line-height:1.15;letter-spacing:-1.5px;margin:12px 0}h2{font-size:22px;letter-spacing:-.5px;margin:0 0 15px}h3{margin:0;font-size:19px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:2px;color:var(--muted);font-weight:700}p{margin:10px 0}.muted,.hint{color:var(--muted)}.hint{font-size:13px}section,.card{background:white;border:1px solid var(--line);border-radius:14px;padding:26px;margin-bottom:22px}.auth{max-width:470px;margin:20px auto}.auth p{margin-bottom:23px}label{display:block;font-size:13px;font-weight:650;margin:15px 0 6px}input,textarea,select{display:block;font:inherit;width:100%;border:1px solid #b7c4b9;border-radius:7px;padding:11px 12px;background:#fff;color:var(--ink)}textarea{min-height:150px;resize:vertical}button,.button{font:inherit;font-weight:650;background:var(--green);color:white;border:0;border-radius:7px;padding:11px 19px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.button:hover{background:#315342}.button.light{background:var(--lime);color:var(--ink)}button.small{padding:7px 12px;font-size:13px}button.subtle{background:transparent;border:1px solid var(--line);color:var(--ink)}header button{color:white!important}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.notice{padding:14px 18px;border:1px solid #b7cdae;background:#eaf3df;border-radius:8px;margin-bottom:22px}.error{background:#fff0e9;border-color:#dfb9a8;color:#893c23}.report-meta{display:flex;justify-content:space-between;gap:15px;align-items:start}.pill{font-size:12px;padding:4px 10px;background:var(--paper);border-radius:20px;white-space:nowrap}.notes{white-space:pre-wrap;overflow-wrap:anywhere;margin:22px 0}.photos{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.photos img{width:100%;height:150px;object-fit:cover;border-radius:8px}.photos a{display:block}.filters{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:16px;align-items:end}.filters label{margin-top:0}.empty{text-align:center;padding:55px 25px}.partner{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:18px 0}.partner p{margin:3px 0}.invite{overflow-wrap:anywhere;padding:16px;background:var(--paper);border-radius:8px;margin:12px 0}.invite input{font-size:12px}.top-link{font-size:13px}footer{font-size:12px;color:var(--muted);max-width:1120px;margin:auto;padding:0 22px 25px}.preview{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.preview img{width:90px;height:90px;object-fit:cover;border-radius:6px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b78747;outline-offset:3px}.stack>*+*{margin-top:14px}.auth .button{width:100%}@media(max-width:700px){main{padding-top:25px}.grid{grid-template-columns:1fr;gap:0}.filters{grid-template-columns:1fr 1fr}.photos{grid-template-columns:repeat(2,1fr)}.intro{align-items:start;flex-direction:column}.card,section{padding:20px}header{padding:16px 20px}header nav{gap:9px;font-size:12px}.partner{align-items:start;flex-direction:column}.report-meta{flex-wrap:wrap}}

.permission-form{padding:0 0 22px}.permission-form select{max-width:300px}.permission-checks{display:flex;gap:18px;flex-wrap:wrap;margin:10px 0 18px}.permission-checks label{display:flex;align-items:center;gap:8px;font-weight:500}.permission-checks input{width:auto}

/* Keep all portal pages comfortable on a phone, including native date/file fields. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
main,.grid>*,.filters>*,.report-meta>*,.partner>*{min-width:0}
input,textarea,select{max-width:100%;font-size:16px}
button,.button,input,select{min-height:46px;touch-action:manipulation}
input[type=checkbox]{min-height:24px;width:24px;height:24px;flex:0 0 24px;accent-color:var(--green)}
.permission-checks label{min-height:44px;margin:0;cursor:pointer}
input[type=file]{padding:12px;background:var(--paper);border:1px dashed #9bad99;white-space:normal;font-size:14px}
input[type=file]::file-selector-button{font:inherit;font-weight:650;border:0;border-radius:6px;background:var(--green);color:white;min-height:44px;padding:10px 15px;margin:0 12px 8px 0;cursor:pointer}
.partner h3,.partner p,.report-meta h2,.report-meta p{overflow-wrap:anywhere}
.photos img{height:auto;aspect-ratio:4/3}.photos a{min-width:0}
@media(max-width:600px){
  header{display:block;padding:16px max(16px,env(safe-area-inset-left)) 10px}
  .brand{display:inline-block;font-size:19px;line-height:1.35}
  header nav{display:flex;gap:8px;margin-top:14px;justify-content:space-between;align-items:stretch;font-size:14px;border-top:1px solid #4c6657;padding-top:8px}
  header nav>a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:7px 10px;border-radius:6px;flex:1}
  header nav>a:hover{background:#315342}
  header nav form{margin:0;display:flex;flex:1}
  header nav button.small{font-size:14px;min-height:44px;width:100%;padding:7px 10px}
  main{padding:25px 16px 40px}
  h1{font-size:32px;letter-spacing:-1px;line-height:1.15}
  h2{font-size:22px;line-height:1.3}
  h3{font-size:19px;line-height:1.35}
  .intro{gap:14px;margin-bottom:20px}
  .intro .button{width:100%}
  .intro>a:not(.button){min-height:44px;display:flex;align-items:center}
  section,.card{padding:18px;border-radius:12px;margin-bottom:16px}
  .auth{margin:0 auto}
  .grid,.filters{grid-template-columns:minmax(0,1fr);gap:0}
  .filters>div{margin-bottom:14px}
  label{font-size:14px;margin-top:16px}
  input,select{min-height:50px;width:100%}
  input[type=date]{min-width:0;appearance:none;-webkit-appearance:none}
  textarea{min-height:170px;font-size:16px;line-height:1.65}
  .actions{gap:8px;align-items:stretch}
  .actions>button,.actions>.button{width:100%;min-height:50px}
  .actions>a:not(.button){display:flex;align-items:center;justify-content:center;min-height:44px;width:100%}
  #report-form>.actions{position:sticky;bottom:0;z-index:2;background:white;padding:12px 0 max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--line);margin-top:20px}
  #report-form>.actions>a{min-height:36px}
  .hint{font-size:13px;line-height:1.6}
  .preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .preview img{width:100%;height:auto;aspect-ratio:1;object-fit:cover}
  .photos{gap:8px}
  .report-meta{gap:10px}
  .report-meta h2{margin:6px 0}
  .permission-form select{max-width:none}
  .permission-checks{display:grid;gap:3px;margin:14px 0}
  .permission-checks label{gap:12px;font-size:14px;line-height:1.4;min-height:48px}
  .permission-form>.small{min-height:48px;width:100%}
  .partner{gap:12px}
  .invite{padding:12px}
  .invite input{font-size:16px}
  footer{padding:0 16px max(22px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.access-summary{border:1px solid #becdb7;background:#eaf0e2;border-radius:10px;padding:14px 18px;margin-bottom:24px;overflow-wrap:anywhere}.access-summary strong{display:block;font-size:15px}.access-summary span{display:block;font-size:13px;color:var(--muted);margin-top:3px}.access-summary p{font-size:13px;margin:8px 0 0;line-height:1.6}@media(max-width:600px){.access-summary{padding:12px 14px;margin-bottom:20px}.access-summary strong{font-size:16px}}
.report-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px;background:var(--paper);border-radius:8px;margin:16px 0}.report-facts div{min-width:0}.report-facts dt{font-size:12px;color:var(--muted)}.report-facts dd{margin:3px 0 0;font-weight:600;overflow-wrap:anywhere}.video-item{min-width:0}.video-item video{width:100%;aspect-ratio:4/3;background:#14251d;border-radius:8px;display:block}.video-item a{font-size:13px;min-height:44px;display:flex;align-items:center}.optimize-option{display:flex;align-items:center;gap:12px;line-height:1.5;min-height:48px}.optimize-option input{width:24px;flex:0 0 24px}.upload-queue{max-height:220px;overflow:auto;padding-left:24px;font-size:13px;overflow-wrap:anywhere}.upload-queue li{margin:8px 0}button:disabled{opacity:.65;cursor:wait}@media(max-width:600px){.report-facts{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.report-facts div:first-child{grid-column:1/-1}.photos:has(video){grid-template-columns:minmax(0,1fr)}}
