/* Respond page styles (no-login response page). Owned by the respond module worker.
   Everything is scoped under .gch-m-respond, the page root inside #gch-respond. The file picker popover and toasts
   live in #gch-layer, outside the page root, so their rules are scoped with
   #gch-respond:has(> .gch-m-respond) ~ .gch-layer, which only matches while this page is showing.
   Mobile first: architects answer from phones. Tokens and shared classes come from base.css. */

.gch-m-respond{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg);color:var(--ink)}
.gch-m-respond .rs-in{width:100%;max-width:1120px;margin:0 auto;padding:0 var(--s4)}

/* masthead: today's Hub lockup, nothing to sign in to */
.gch-m-respond .rs-top{flex:none;background:var(--bg2);border-bottom:1px solid var(--line2)}
.gch-m-respond .rs-top .rs-in{display:flex;align-items:center;gap:var(--s4);min-height:56px}
.gch-m-respond .rs-brand{display:inline-flex;color:var(--ink)}
.gch-m-respond .rs-brand .lockup{height:26px}
.gch-m-respond .rs-secure{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--mid);white-space:nowrap}
.gch-m-respond .rs-secure .i{width:14px;height:14px}
.gch-m-respond .rs-main{flex:1;padding:var(--s6) 0 var(--s12)}

/* hero: who asked, what, when */
.gch-m-respond .rs-hero{padding-bottom:var(--s6);margin-bottom:var(--s6);border-bottom:1px solid var(--line)}
.gch-m-respond .rs-kicker{font-size:14px;color:var(--ink2)}
.gch-m-respond .rs-kicker b{color:var(--ink);font-weight:600}
.gch-m-respond .rs-hero h1{margin-top:var(--s2);max-width:34ch;font-family:var(--disp);font-weight:700;font-size:24px;line-height:1.18;letter-spacing:-.015em}
.gch-m-respond .rs-num{display:block;margin-bottom:4px;font-family:var(--sans);font-size:15px;font-weight:600;letter-spacing:.01em;color:var(--ink2);font-variant-numeric:tabular-nums}
.gch-m-respond .rs-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:var(--s3)}
.gch-m-respond .rs-job{font-size:13px;color:var(--ink2);margin-left:2px}
.gch-m-respond .rs-job b{color:var(--o-txt);font-weight:600;font-variant-numeric:tabular-nums}
.gch-m-respond .rs-heads{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s4);margin-top:var(--s6)}
.gch-m-respond .rs-ask .k,.gch-m-respond .rs-due .k{display:block;margin-bottom:6px;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mid)}
.gch-m-respond .rs-person{display:flex;align-items:flex-start;gap:var(--s3);min-width:0}
.gch-m-respond .rs-person > div{min-width:0}
.gch-m-respond .rs-person b{display:block;font-weight:600;font-size:15px}
.gch-m-respond .rs-person > div > span{display:block;font-size:13px;color:var(--ink2);line-height:1.45}
.gch-m-respond .rs-person .rs-contact{color:var(--mid);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.gch-m-respond .rs-due{padding:var(--s3) var(--s4);background:var(--bg2);border:1px solid var(--line);box-shadow:inset 2px 0 0 var(--o)}
.gch-m-respond .rs-due b{display:inline-block;margin-right:var(--s2);font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
.gch-m-respond .rs-due .r{font-size:14px;color:var(--ink2)}
.gch-m-respond .rs-due.is-soon .r{color:var(--ink);font-weight:600}
.gch-m-respond .rs-due.is-late{box-shadow:inset 2px 0 0 var(--danger)}
.gch-m-respond .rs-due.is-late b,.gch-m-respond .rs-due.is-late .r{color:var(--danger)}

/* two columns on wide screens: the item on the left, the response form on the right */
.gch-m-respond .rs-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s8)}
.gch-m-respond .rs-sec + .rs-sec{margin-top:var(--s8)}
.gch-m-respond .rs-sec > h2{display:flex;align-items:baseline;gap:var(--s2);margin-bottom:var(--s3);padding-bottom:var(--s2);border-bottom:1px solid var(--line);font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink2)}
.gch-m-respond .rs-sec > h2 .n{color:var(--mid);font-variant-numeric:tabular-nums}
.gch-m-respond .rs-prose{max-width:68ch;font-size:15px;line-height:1.6}
.gch-m-respond .rs-prose p + p{margin-top:var(--s3)}
.gch-m-respond .rs-prose ul{margin:var(--s2) 0 var(--s2);padding-left:20px}
.gch-m-respond .rs-prose li + li{margin-top:4px}
.gch-m-respond .rs-by{margin-top:var(--s3);font-size:13px;color:var(--mid)}
.gch-m-respond .rs-mute{margin-top:var(--s2);font-size:12.5px;color:var(--mid)}
.gch-m-respond .rs-note{font-size:14px;line-height:1.5;color:var(--ink2);margin-bottom:var(--s3)}

.gch-m-respond .rs-files{display:flex;flex-direction:column;gap:6px}
.gch-m-respond .rs-file{display:flex;align-items:center;gap:var(--s2);width:100%;min-height:46px;padding:0 var(--s3);background:var(--bg2);border:1px solid var(--line);text-align:left;font-size:14px;cursor:pointer}
.gch-m-respond .rs-file:hover{border-color:var(--edge);background:var(--bg3)}
.gch-m-respond .rs-file .i{width:16px;height:16px;color:var(--mid)}
.gch-m-respond .rs-file .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gch-m-respond .rs-file .sz{font-size:12.5px;color:var(--mid);font-variant-numeric:tabular-nums;white-space:nowrap}
.gch-m-respond .rs-file .dl{color:var(--ink2)}
.gch-m-respond .rs-dlall{margin-top:var(--s2);margin-left:-10px}

.gch-m-respond .rs-refs{display:flex;flex-direction:column}
.gch-m-respond .rs-ref{display:grid;grid-template-columns:78px auto minmax(0,1fr) 16px;align-items:baseline;gap:var(--s2);width:100%;min-height:44px;padding:10px 0;background:none;border:0;border-bottom:1px solid var(--line);text-align:left;font-size:14px;cursor:pointer}
.gch-m-respond .rs-ref:hover .rl{text-decoration:underline;text-underline-offset:2px}
.gch-m-respond .rs-ref .kind{font-size:11.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--mid)}
.gch-m-respond .rs-ref .rl{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.gch-m-respond .rs-ref .det{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink2)}
.gch-m-respond .rs-ref .go{width:16px;height:16px;color:var(--mid);align-self:center}

.gch-m-respond .rs-thread{display:flex;flex-direction:column}
.gch-m-respond .rs-reply{display:flex;gap:var(--s3);padding:var(--s3) 0;border-bottom:1px solid var(--line)}
.gch-m-respond .rs-reply:first-child{padding-top:0}
.gch-m-respond .rs-reply > div{min-width:0}
.gch-m-respond .rs-rh{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px var(--s2);margin-bottom:2px}
.gch-m-respond .rs-rh b{font-weight:600;font-size:14px}
.gch-m-respond .rs-rh span{font-size:12.5px;color:var(--mid)}
.gch-m-respond .rs-reply .rs-prose{font-size:14px;line-height:1.5}

/* the form: one clear card, orange top edge = act here */
.gch-m-respond .rs-form{padding:var(--s4) var(--s4) var(--s6);background:var(--bg2);border:1px solid var(--line2);box-shadow:inset 0 2px 0 var(--o)}
.gch-m-respond .rs-fh{margin:var(--s1) 0 var(--s4);font-family:var(--disp);font-weight:700;font-size:20px;letter-spacing:-.01em}
.gch-m-respond .rs-choices{display:flex;flex-direction:column;gap:var(--s2);margin:0;padding:0;border:0}
.gch-m-respond .rs-choice{position:relative;display:flex;align-items:flex-start;gap:var(--s3);min-height:60px;padding:var(--s3);background:var(--bg);border:1px solid var(--line2);cursor:pointer;transition:border-color var(--t-hover) var(--ease),background var(--t-hover) var(--ease)}
.gch-m-respond .rs-choice:hover{border-color:var(--edge)}
.gch-m-respond .rs-choice input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.gch-m-respond .rs-choice .box{flex:none;display:grid;place-items:center;width:20px;height:20px;margin-top:1px;border:1px solid var(--edge);border-radius:50%}
.gch-m-respond .rs-choice .box::after{content:"";width:10px;height:10px;border-radius:50%;background:transparent}
.gch-m-respond .rs-choice .txt b{display:block;font-size:15px;font-weight:600;line-height:1.3}
.gch-m-respond .rs-choice .txt small{display:block;margin-top:2px;font-size:13px;line-height:1.4;color:var(--ink2)}
.gch-m-respond .rs-choice:has(input:checked){border-color:var(--o);background:var(--bg3)}
.gch-m-respond .rs-choice:has(input:checked) .box{border-color:var(--o)}
.gch-m-respond .rs-choice:has(input:checked) .box::after{background:var(--o)}
.gch-m-respond .rs-choice:has(input:focus-visible){outline:1px solid var(--o);outline-offset:2px}

.gch-m-respond .rs-lbl{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--s2);margin:var(--s4) 0 6px;padding:0;font-size:13.5px;font-weight:600;color:var(--ink)}
.gch-m-respond .rs-lbl .opt{font-size:12.5px;font-weight:400;color:var(--mid)}
.gch-m-respond .rs-form textarea{display:block;width:100%;min-height:96px;padding:10px 12px;font-size:15px;line-height:1.5;resize:vertical}
.gch-m-respond .rs-form textarea::placeholder{color:var(--mid)}
.gch-m-respond .rs-impacts{margin:0;padding:0;border:0;min-width:0}
.gch-m-respond .rs-impacts legend{float:left;width:100%}
.gch-m-respond .rs-imp{clear:both;display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2) var(--s3);padding:4px 0}
.gch-m-respond .rs-imp .k{width:76px;font-size:13.5px;color:var(--ink2)}
.gch-m-respond .rs-seg{display:inline-flex;border:1px solid var(--line2);background:var(--bg)}
.gch-m-respond .rs-seg button{min-height:36px;padding:0 12px;background:none;border:0;border-left:1px solid var(--line2);font-size:13.5px;color:var(--ink2);cursor:pointer}
.gch-m-respond .rs-seg button:first-child{border-left:0}
.gch-m-respond .rs-seg button:hover{color:var(--ink);background:var(--bg3)}
.gch-m-respond .rs-seg button[aria-pressed="true"]{color:var(--ink);font-weight:600;background:var(--bg3);box-shadow:inset 0 -2px 0 var(--o)}
.gch-m-respond .rs-amt{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--mid)}
.gch-m-respond .rs-amt input{width:96px;font-variant-numeric:tabular-nums}

.gch-m-respond .rs-att{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s2);margin-top:var(--s4)}
.gch-m-respond .rs-attach{min-height:40px;border:1px dashed var(--edge)}
.gch-m-respond .rs-attach:hover{border-style:solid}
.gch-m-respond .rs-chips{display:flex;flex-wrap:wrap;gap:6px;max-width:100%}
.gch-m-respond .rs-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 3px 3px 8px;font-size:13px;background:var(--bg3);border:1px solid var(--line2)}
.gch-m-respond .rs-chip .i{width:14px;height:14px;color:var(--mid)}
.gch-m-respond .rs-chip .nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gch-m-respond .rs-chip .sz{color:var(--mid);white-space:nowrap;font-variant-numeric:tabular-nums}
.gch-m-respond .rs-chip button{flex:none;width:28px;height:28px;padding:0;background:none;border:0;color:var(--mid);font-size:17px;line-height:1;cursor:pointer}
.gch-m-respond .rs-chip button:hover{color:var(--danger)}
.gch-m-respond .rs-err{margin-top:var(--s3);padding:8px 12px;font-size:13.5px;font-weight:500;color:var(--danger);background:var(--danger-tint);box-shadow:inset 2px 0 0 var(--danger)}
.gch-m-respond .rs-as{margin-top:var(--s4);padding-top:var(--s3);border-top:1px solid var(--line);font-size:13px;line-height:1.5;color:var(--ink2)}
.gch-m-respond .rs-as b{color:var(--ink);font-weight:600}
.gch-m-respond .rs-flink{padding:0;background:none;border:0;font-size:inherit;color:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.gch-m-respond .rs-flink:hover{color:var(--ink)}
.gch-m-respond .rs-submit{width:100%;min-height:48px;margin-top:var(--s3);font-size:15px}
.gch-m-respond .rs-after{margin-top:var(--s2);font-size:12.5px;text-align:center;color:var(--mid)}

/* confirmation, already-answered and expired states */
.gch-m-respond .rs-done{max-width:680px;margin:var(--s4) auto 0}
.gch-m-respond .rs-mark{display:grid;place-items:center;width:56px;height:56px;color:var(--ok);background:var(--ok-tint);border:1px solid var(--ok)}
.gch-m-respond .rs-mark .i{width:30px;height:30px;stroke-width:1.8}
.gch-m-respond .rs-mark.is-quiet{color:var(--ink2);background:var(--bg2);border-color:var(--line2)}
.gch-m-respond .rs-done h1{margin-top:var(--s4);font-family:var(--disp);font-weight:700;font-size:26px;line-height:1.2;letter-spacing:-.015em}
.gch-m-respond .rs-lead{margin-top:var(--s2);font-size:16px;line-height:1.5;color:var(--ink2)}
.gch-m-respond .rs-receipt{margin:var(--s6) 0 0;border-top:1px solid var(--line)}
.gch-m-respond .rs-receipt > div{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;padding:10px 0;border-bottom:1px solid var(--line)}
.gch-m-respond .rs-receipt dt{font-size:12.5px;color:var(--mid)}
.gch-m-respond .rs-receipt dd{margin:0;min-width:0;font-size:14px;line-height:1.5}
.gch-m-respond .rs-receipt dd .rs-chip{margin:2px 6px 2px 0;padding-right:8px}
.gch-m-respond .rs-dact{display:flex;flex-wrap:wrap;gap:var(--s2);margin-top:var(--s4)}
.gch-m-respond .rs-dact .btn-q{margin-left:-10px;margin-right:10px}
.gch-m-respond .rs-ask2{margin-top:var(--s6);padding:var(--s4);background:var(--bg2);border:1px solid var(--line)}
.gch-m-respond .rs-done .rs-note{margin-top:var(--s4)}

/* transmittals: the acknowledgement box, and the card when no acknowledgement is asked for */
.gch-m-respond .rs-ack{display:flex;align-items:flex-start;gap:var(--s3);padding:var(--s3);background:var(--bg);border:1px solid var(--line2);font-size:15px;line-height:1.45;cursor:pointer}
.gch-m-respond .rs-ack input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:var(--o)}
.gch-m-respond .rs-ack:has(input:checked){border-color:var(--o);background:var(--bg3)}
.gch-m-respond .rs-as .rs-mail{color:var(--mid);overflow-wrap:anywhere}
.gch-m-respond .rs-noack .rs-dlall2{width:100%;min-height:48px;margin-top:var(--s2)}
.gch-m-respond .rs-prevc{margin:0 0 var(--s3);padding:var(--s2) var(--s3);background:var(--bg2);border-left:2px solid var(--line2);font-size:14px}
.gch-m-respond .rs-asked{display:flex;align-items:center;gap:var(--s2);color:var(--ink)}
.gch-m-respond .rs-asked .i{width:16px;height:16px;color:var(--ok)}
.gch-m-respond .rs-receipt dd .rs-file{margin:4px 0}

/* the suggested answer, and a submittal package: one response per submittal (round 3) */
.gch-m-respond .rs-sug .rs-prose{padding-left:var(--s4);border-left:2px solid var(--line2)}
.gch-m-respond .rs-usesug{margin:var(--s2) 0 0 -10px}
.gch-m-respond .rs-ref.is-static{cursor:default;grid-template-columns:78px auto minmax(0,1fr)}
.gch-m-respond .rs-pitem{margin:0 0 var(--s4);padding:0 0 var(--s4);border:0;border-bottom:1px solid var(--line);min-width:0}
.gch-m-respond .rs-pitem legend{float:left;width:100%;margin-bottom:var(--s2);padding:0;font-size:14px;line-height:1.35;color:var(--ink2)}
.gch-m-respond .rs-pitem legend b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.gch-m-respond .rs-pchoices{clear:both;display:flex;flex-wrap:wrap;gap:6px}
.gch-m-respond .rs-pchoice{position:relative;display:inline-flex;align-items:center;min-height:36px;padding:0 12px;background:var(--bg);border:1px solid var(--line2);font-size:13.5px;cursor:pointer}
.gch-m-respond .rs-pchoice:hover{border-color:var(--edge)}
.gch-m-respond .rs-pchoice input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.gch-m-respond .rs-pchoice:has(input:checked){border-color:var(--o);background:var(--bg3);font-weight:600;box-shadow:inset 0 -2px 0 var(--o)}
.gch-m-respond .rs-pchoice:has(input:focus-visible){outline:1px solid var(--o);outline-offset:2px}
.gch-m-respond .rs-form .rs-pitem textarea{min-height:56px;margin-top:var(--s2)}
.gch-m-respond .rs-ro .rs-as{font-size:13.5px}

/* quiet footer */
.gch-m-respond .rs-foot{flex:none;padding:var(--s4) 0 var(--s6);border-top:1px solid var(--line);font-size:12.5px;color:var(--mid)}
.gch-m-respond .rs-foot .rs-in{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 0}
.gch-m-respond .rs-foot .rs-in > * + *::before{content:"·";margin:0 8px;color:var(--mid);text-decoration:none;display:inline-block}
.gch-m-respond .rs-foot .rs-flink{color:var(--mid)}
.gch-m-respond .rs-foot .rs-proto{margin-top:var(--s2)}
.gch-m-respond .rs-foot .rs-proto a{color:var(--mid);text-underline-offset:2px}
.gch-m-respond .rs-foot .rs-proto a:hover{color:var(--ink)}

/* fake file picker (a popover or, on a phone, a bottom sheet) */
#gch-respond:has(> .gch-m-respond) ~ .gch-layer .rs-picker{display:flex;flex-direction:column}
#gch-respond:has(> .gch-m-respond) ~ .gch-layer .rs-pk-h{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s3);padding:var(--s3) var(--s4);border-bottom:1px solid var(--line)}
#gch-respond:has(> .gch-m-respond) ~ .gch-layer .rs-pk-h span{font-size:12.5px;color:var(--mid)}
#gch-respond:has(> .gch-m-respond) ~ .gch-layer .rs-picker button{display:flex;align-items:center;gap:var(--s3);min-height:52px;padding:6px var(--s4);background:none;border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer}
#gch-respond:has(> .gch-m-respond) ~ .gch-layer .rs-picker button:hover{background:var(--bg3)}
#gch-respond:has(> .gch-m-respond) ~ .gch-layer .rs-picker .i{width:18px;height:18px;color:var(--mid)}
#gch-respond:has(> .gch-m-respond) ~ .gch-layer .rs-picker .nm{min-width:0}
#gch-respond:has(> .gch-m-respond) ~ .gch-layer .rs-picker b{display:block;font-weight:500;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#gch-respond:has(> .gch-m-respond) ~ .gch-layer .rs-picker small{display:block;font-size:12.5px;color:var(--mid)}
#gch-respond:has(> .gch-m-respond) ~ .gch-layer .rs-pk-f{padding:var(--s2) var(--s4) var(--s3);font-size:12px;color:var(--mid)}
/* toasts sit centered on this page: there is no rail */
#gch-respond:has(> .gch-m-respond) ~ .gch-layer .gch-toasts{left:50%;bottom:var(--s6);transform:translateX(-50%)}

@media (min-width:600px){
  .gch-m-respond .rs-in{padding:0 var(--s8)}
  .gch-m-respond .rs-hero h1{font-size:30px}
  .gch-m-respond .rs-heads{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:var(--s4) var(--s8)}
  .gch-m-respond .rs-receipt > div{grid-template-columns:120px minmax(0,1fr);gap:var(--s4)}
  .gch-m-respond .rs-done{margin-top:var(--s8)}
  .gch-m-respond .rs-done h1{font-size:30px}
}
@media (min-width:960px){
  .gch-m-respond .rs-main{padding-top:var(--s8)}
  .gch-m-respond .rs-hero h1{font-size:34px}
  .gch-m-respond .rs-cols{grid-template-columns:minmax(0,1fr) 400px;gap:var(--s12);align-items:start}
  .gch-m-respond .rs-form{position:sticky;top:var(--s4)}
}
@media (max-width:599px){
  .gch-m-respond .rs-hide-s{display:none}
  .gch-m-respond .rs-main{padding-top:var(--s4)}
  .gch-m-respond .rs-form{margin:0 calc(-1 * var(--s4));border-left:0;border-right:0}
  .gch-m-respond .rs-form textarea,.gch-m-respond .rs-amt input{font-size:16px}
  .gch-m-respond .rs-ref{grid-template-columns:80px auto minmax(0,1fr) 16px;gap:6px}
  .gch-m-respond .rs-ref .kind{font-size:11px;letter-spacing:.03em}
  #gch-respond:has(> .gch-m-respond) ~ .gch-layer .gch-toasts{transform:none;bottom:var(--s4)}
}
