
.gw-rd .gw-main{padding:var(--cvt-space-8) 0 72px}
.gw-rd .gw-flow .cvt-eyebrow,.gw-rd .gw-check .cvt-eyebrow{margin:0 0 16px;color:var(--cvt-text-label-accent);font:600 15px/22px var(--cvt-font-ui);letter-spacing:0}
.gw-rd .gw-q,.gw-rd #gw-hc{margin:0 0 18px;font:650 38px/1.17 var(--cvt-font-display);letter-spacing:-.04em;color:var(--cvt-text-primary)}
.gw-rd .gw-lede,.gw-rd #gw-check-lede{max-width:530px;margin:0 0 28px;color:var(--cvt-text-secondary);font-size:17px;line-height:28px}
.gw-rd .gw-flow .cvt-field__label{font:600 15px/24px var(--cvt-font-ui)}
.gw-rd .gw-flow .cvt-input,.gw-rd .gw-flow .cvt-textarea{min-height:52px;padding:13px 15px;border:1px solid var(--cvt-border-control);border-radius:8px;font-size:16px;line-height:25px}
.gw-rd .gw-flow .cvt-field__help{font-size:14px;line-height:23px}
/* Buttons: in the flow, the main one wide, Back as a text button. */
.gw-rd .gw-actions{margin-top:24px;gap:18px}
.gw-rd .gw-actions__end{flex:1;max-width:360px}
.gw-rd .gw-actions > span:first-child + .gw-actions__end{max-width:none}
.gw-rd .gw-actions > span:first-child:empty{display:none}
.gw-rd #gw-files-wrap .cvt-field__help{margin:8px 0 20px}
.gw-rd .gw-actions .cvt-btn--primary{width:100%;min-height:52px;padding:13px 18px;border-radius:8px;font:600 16px/24px var(--cvt-font-ui)}
.gw-rd .gw-back{min-height:44px;padding:0;background:none;border:0;color:var(--cvt-text-link);font:600 15px/24px var(--cvt-font-ui)}
.gw-rd .gw-back:hover{text-decoration:underline;text-underline-offset:4px}
/* The rail: numbered steps and what the free application makes. */
.gw-rd .gw-rail{display:none}
.gw-rd .gw-rail .gw-get{display:block;position:static;margin:32px 0 0;padding:20px;border:0;border-radius:14px;background:var(--cvt-bg-brand-soft)}
.gw-rd .gw-rail .gw-get .cvt-eyebrow{font:600 15px/22px var(--cvt-font-ui);letter-spacing:0;color:var(--cvt-text-label-accent)}
.gw-rd .gw-rail .gw-get__note{font-size:14px;line-height:22px}
.gw-rd .gw-rail .gw-get figcaption{font-size:14px}
/* Phone progress: "Step n of 3" over three bars. */
.gw-rd .gw-progress{gap:6px;margin:10px 0 28px}
.gw-rd .gw-progress i{height:3px;border-radius:0}
.gw-rd #gw-step-of{margin:0;font-size:14px;line-height:22px;color:var(--cvt-text-secondary)}
/* Background step: the dashed upload zone, the other ways as rows. */
.gw-rd .gw-opts{display:grid;gap:10px;border:0;border-radius:0;background:none;overflow:visible}
.gw-rd .gw-opt{min-height:64px;border:1px solid var(--cvt-border-subtle);border-radius:10px;background:var(--cvt-bg-surface)}
.gw-rd .gw-opt:first-child{border-top:1px solid var(--cvt-border-subtle)}
.gw-rd .gw-opt:hover{border-color:var(--cvt-border-control);background:var(--cvt-bg-surface)}
.gw-rd .gw-opt__m{font-size:14px;line-height:22px}
.gw-rd .gw-opt--main.cvt-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:0;padding:28px 20px;border:1.5px dashed var(--cvt-border-control);border-radius:12px;background:var(--cvt-bg-sunken);color:var(--cvt-text-primary);text-align:center;filter:none}
.gw-rd .gw-opt--main.cvt-drop:hover,.gw-rd .gw-opt--main.cvt-drop.is-dragover{background:var(--cvt-bg-brand-soft);border-color:var(--cvt-bg-brand);filter:none}
.gw-rd .gw-opt--main.cvt-drop:focus-within{outline:3px solid var(--cvt-focus-ring);outline-offset:4px}
.gw-rd .gw-opt--main .gw-opt__ic{width:44px;height:44px;border:1px solid var(--cvt-border-subtle);border-radius:10px;background:var(--cvt-bg-surface);color:var(--cvt-bg-brand)}
.gw-rd .gw-opt--main .gw-opt__txt{justify-items:center;gap:4px}
.gw-rd .gw-opt--main .gw-opt__m{color:var(--cvt-text-secondary);opacity:1}
.gw-rd .gw-opt--main .gw-opt__ch{display:none}
/* Files as plain rows: a tick when read, the error and Retry when not. */
.gw-rd #gw-files-wrap .cvt-heading-4{margin:0 0 4px;font:600 16px/24px var(--cvt-font-ui)}
.gw-rd .gw-files{gap:0;border-top:1px solid var(--cvt-border-subtle)}
.gw-rd .gw-file{gap:12px;padding:12px 0;border:0;border-bottom:1px solid var(--cvt-border-subtle);border-radius:0;background:none}
.gw-rd .gw-file::before{content:"";flex:none;width:7px;height:12px;margin:0 5px 4px 6px;border:solid var(--cvt-bg-brand);border-width:0 2px 2px 0;transform:rotate(45deg)}
.gw-rd .gw-file:has(.gw-file__err)::before{width:12px;height:12px;margin:0 2px;border:2px solid var(--cvt-status-danger-fg);border-radius:50%;transform:none}
.gw-rd .gw-file__meta,.gw-rd .gw-file__err{font-size:14px}
/* Email step: what is saved, as one card with a tick and Change per row. */
.gw-rd .gw-sum{padding:4px 18px;border-radius:12px;background:var(--cvt-bg-sunken)}
.gw-rd .gw-sum div{grid-template-columns:20px minmax(0,1fr) auto;grid-template-areas:"ic val edit" "ic lab edit";gap:0 12px;padding:14px 0}
.gw-rd .gw-sum div::before{content:"";grid-area:ic;align-self:center;justify-self:center;width:6px;height:11px;border:solid var(--cvt-bg-brand);border-width:0 2px 2px 0;transform:rotate(45deg)}
.gw-rd .gw-sum dt{grid-area:lab;font:400 14px/22px var(--cvt-font-ui);color:var(--cvt-text-secondary)}
.gw-rd .gw-sum dd:first-of-type{grid-area:val;font:600 16px/24px var(--cvt-font-ui)}
.gw-rd .gw-sum dd:last-child{grid-area:edit}
.gw-rd .gw-sum__edit{color:var(--cvt-text-link)}
/* Inbox: the mail tile, the cross-browser note as the reassurance card,
   Use a different email and Send again as text buttons (the wait stays). */
.gw-rd .gw-check .cvt-panel{padding:0;border:0;background:none;box-shadow:none}
.gw-rd .gw-mail{display:grid;place-items:center;width:60px;height:60px;margin:0 0 28px;border-radius:16px;background:var(--cvt-bg-brand-soft);color:var(--cvt-bg-brand)}
.gw-rd .gw-check .cvt-alert--info{margin:0;padding:18px;border:1px solid var(--cvt-border-subtle);border-radius:10px;background:var(--cvt-bg-accent-soft);color:var(--cvt-text-primary)}
.gw-rd .gw-check .gw-row{justify-content:flex-start;gap:8px 28px;margin-top:20px}
.gw-rd .gw-check .gw-row .cvt-btn{min-height:44px;padding:0;border:0;background:none;box-shadow:none;color:var(--cvt-text-link);font:600 15px/24px var(--cvt-font-ui)}
.gw-rd .gw-check .gw-row .cvt-btn:hover{text-decoration:underline;text-underline-offset:4px}
.gw-rd .gw-check .gw-row .cvt-btn:disabled,.gw-rd .gw-check .gw-row .cvt-btn[aria-disabled="true"]{color:var(--cvt-text-secondary);text-decoration:none}
@media (prefers-reduced-motion:no-preference){
  .gw-rd .cvt-btn[aria-busy="true"]::before{animation-name:cvt-spin;animation-duration:.8s;animation-timing-function:linear;animation-iteration-count:infinite}
  /* The motion layer (GUEST_RD_MOTION_ENABLED, body.gw-rd-motion; Sergio 20 Nov),
     timings from the package's MOTION-AND-INTERACTIONS.md: a step arrives in 240ms
     (opacity and 8px); progress bars and rail numbers change colour, a done step's
     tick settles in; the tab underline, hover and press answer the hand; a new file
     row and the inbox step's mail tile and card arrive once. Transform and opacity
     only (no layout shift); with reduced motion nothing moves (finished state). */
  .gw-rd-motion .gw-flow > section:not([hidden]){animation:gw-rd-in .24s ease-out}
  .gw-rd-motion .gw-progress i{transition:background-color .3s ease-out}
  .gw-rd-motion .cvt-flowsteps__n{transition:background-color .2s ease-out,border-color .2s ease-out,color .2s ease-out}
  .gw-rd-motion .cvt-flowsteps li:has(~ li[aria-current]) .cvt-flowsteps__n svg{animation:gw-rd-pop .24s ease-out}
  .gw-rd-motion .cvt-jobentry--tabs .cvt-segmented__btn{transition:box-shadow .2s ease-out,color .2s ease-out}
  .gw-rd-motion .gw-actions .cvt-btn,.gw-rd-motion .gw-opt{transition:background-color .15s ease-out,border-color .15s ease-out,transform .12s ease-out}
  .gw-rd-motion .gw-actions .cvt-btn:active,.gw-rd-motion .gw-opt:active{transform:scale(.98)}
  .gw-rd-motion .gw-file:last-child{animation:gw-rd-in .2s ease-out}
  .gw-rd-motion .gw-check:not([hidden]) .gw-mail{animation:gw-rd-pop .32s ease-out}
  .gw-rd-motion .gw-check:not([hidden]) .gw-reassure{animation:gw-rd-in .24s ease-out .12s both}
  @keyframes gw-rd-in{from{opacity:.3;transform:translateY(8px)}to{opacity:1;transform:none}}
  @keyframes gw-rd-pop{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
}
/* Sergio, 20 Nov: the approved package's words and pieces. Eyebrows in
   capitals as the package sets them (tests/test_d0_ai_look.py allows these). */
.gw-rd .gw-flow .cvt-eyebrow.gw-rd-eyebrow,.gw-rd .gw-check .cvt-eyebrow.gw-rd-eyebrow,.gw-rd .gw-rail .gw-rd-eyebrow{margin:0 0 16px;color:var(--cvt-text-label-accent);font:700 13px/21px var(--cvt-font-ui);letter-spacing:.09em;text-transform:uppercase}
.gw-rd .gw-rail__title{margin:0 0 32px;font:650 30px/1.28 var(--cvt-font-display);letter-spacing:-.04em;color:var(--cvt-text-primary)}
.gw-rd .gw-rail .gw-get.gw-out{display:flex;gap:20px;align-items:center;margin:40px 0 0;padding:20px;border-radius:12px;background:var(--cvt-bg-brand-soft)}
.gw-rd .gw-out img{flex:none;width:92px;height:auto;aspect-ratio:596/843;border-radius:2px;box-shadow:0 6px 14px rgba(36,33,45,.13)}
.gw-rd .gw-out__eyebrow{display:block;color:var(--cvt-text-label-accent);font:700 12px/18px var(--cvt-font-ui);letter-spacing:.04em;text-transform:uppercase}
.gw-rd .gw-out strong{display:block;margin-top:6px;font:650 18px/25px var(--cvt-font-display);color:var(--cvt-text-primary)}
.gw-rd .gw-out p{margin:8px 0 0;font-size:14px;line-height:22px;color:var(--cvt-text-secondary)}
.gw-rd .gw-out .gw-get__note{font-size:13px;line-height:20px}
.gw-rd .gw-rail__note{margin:20px 0 0;font-size:14px;line-height:23px;color:var(--cvt-text-secondary)}
.gw-rd .gw-quiet{margin:17px 0 0;text-align:center;font-size:14px;line-height:23px;color:var(--cvt-text-secondary)}
.gw-rd .gw-more{margin:18px 0 0;padding:13px 0;border-top:1px solid var(--cvt-border-subtle);font-size:14px;line-height:23px;color:var(--cvt-text-secondary)}
.gw-rd .gw-more summary{min-height:32px;padding:4px 0;cursor:pointer;font-weight:600;color:var(--cvt-text-link)}
.gw-rd .gw-more p{margin:10px 0}
.gw-rd .gw-opt--main small.gw-opt__m{font-size:14px;line-height:22px}
.gw-rd .gw-sum{margin-bottom:24px;border:1px solid var(--cvt-border-subtle);background:var(--cvt-bg-surface)}
.gw-rd .gw-sum div + div{border-top:1px solid var(--cvt-border-subtle)}
.gw-rd .gw-reassure strong{display:block;font-size:16px;margin-bottom:6px}
.gw-rd .gw-badge{display:inline-flex;align-items:center;margin-right:16px;padding:7px 12px;border:1px solid var(--cvt-action-accent-bg-hover);border-radius:6px;background:var(--cvt-bg-accent-soft);color:var(--cvt-text-on-accent);font:600 14px/22px var(--cvt-font-ui);white-space:nowrap}
.gw-rd .gw-badge__short{display:none}
/* Design critic R3. Text actions reach 44px; Change without an underline, as in
   the package; long file names end in an ellipsis instead of breaking mid-word. */
.gw-rd .gw-sum__edit{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.gw-rd .gw-sum__edit:hover{text-decoration:underline;text-underline-offset:4px}
.gw-rd .gw-sum dd:first-of-type,.gw-rd .gw-file__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
.gw-rd .gw-sum dd:last-child,.gw-rd .gw-file .cvt-btn{flex:none}
.gw-rd .gw-file > div{min-width:0;flex:1}
.gw-rd #gw-almost-help{margin-top:8px}
.gw-rd .gw-check .cvt-small{font-size:14px;line-height:23px;color:var(--cvt-text-secondary)}
.gw-rd .gw-note-toggle .cvt-small{font-weight:400;color:var(--cvt-text-secondary)}
/* The package keeps the wordmark on phones. */
.gw-rd .mk-nav .cvt-brand__wm{position:static;width:auto;height:15px;overflow:visible;clip:auto}
@media (max-width:400px){
  /* The package's small-phone badge: smaller, and it may wrap. */
  .gw-rd .gw-badge{max-width:115px;margin-right:10px;padding:4px 7px;font-size:12px;line-height:17px;white-space:normal}
  .gw-rd .mk-nav .cvt-brand__wm{height:12px}
  .gw-rd .mk-nav .cvt-brand{gap:6px}
  .gw-rd .mk-nav .cvt-brand__icon{width:24px;height:24px}
}
@media (max-width:1000px){
  .gw-rd .gw-rail .gw-get.gw-out{display:block}
  .gw-rd .gw-out img{width:105px;margin-bottom:15px}
  .gw-rd .gw-rail__title{font-size:26px}
}
@media (min-width:701px){
  .gw-rd .gw-main--v2{display:grid;grid-template-columns:280px minmax(0,1fr);column-gap:48px;max-width:1040px;align-content:start}
  .gw-rd .gw-main--v2 > *{grid-column:2}
  .gw-rd .gw-main--v2 > .gw-rail{display:block;grid-column:1;grid-row:1 / span 8;align-self:start;position:sticky;top:var(--cvt-space-8)}
  .gw-rd .gw-main--v2 .gw-progress,.gw-rd .gw-main--v2 #gw-step-of{display:none}
}
@media (min-width:1001px){
  .gw-rd .gw-main--v2{grid-template-columns:340px minmax(0,600px);column-gap:100px;max-width:1040px}
}
@media (max-width:700px){
  .gw-rd .gw-main--v2{display:flex;flex-direction:column;padding:var(--cvt-space-5) 0 56px}
  .gw-rd .gw-main--v2 #gw-step-of{order:-2}
  .gw-rd .gw-main--v2 .gw-progress{order:-1}
  .gw-rd .gw-q,.gw-rd #gw-hc{font-size:30px;line-height:36px}
  .gw-rd .gw-lede,.gw-rd #gw-check-lede{font-size:16px;line-height:26px;margin-bottom:24px}
  .gw-rd .gw-mail{width:50px;height:50px;margin-bottom:20px}
  .gw-rd .gw-flow .cvt-eyebrow.gw-rd-eyebrow,.gw-rd .gw-check .cvt-eyebrow.gw-rd-eyebrow{font-size:12px;line-height:20px;margin-bottom:12px}
  .gw-rd .gw-q{margin-bottom:12px}
  .gw-rd .gw-lede{margin-bottom:22px}
  .gw-rd .gw-sum{padding:2px 12px}
  .gw-rd .gw-badge{padding:4px 8px;font-size:14px;line-height:22px}
  .gw-rd .gw-badge__long{display:none}
  .gw-rd .gw-badge__short{display:inline}
}
.gw-rd .gw-note-toggle .cvt-btn{justify-content:flex-start;text-align:left}
/* Design critic R2. Open notes: the field's own label says it, so the toggle goes. */
.gw-rd #gw-note-toggle[aria-expanded="true"]{display:none}
/* Busy (reading the link, saving, sending): a spinner before the label and the
   button keeps its colour, so it reads as working, not as unavailable. */
.gw-rd .gw-actions .cvt-btn--primary[aria-busy="true"]{background:var(--cvt-action-primary-bg);color:var(--cvt-action-primary-fg);opacity:.85;cursor:progress}
.gw-rd .cvt-btn[aria-busy="true"]::before{content:"";display:inline-block;flex:none;width:16px;height:16px;margin-right:10px;vertical-align:-3px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent}
/* A failed file: the filled alert sign the job error uses. */
.gw-rd .gw-file:has(.gw-file__err)::before{content:"!";display:grid;place-items:center;width:18px;height:18px;margin:0 2px;border:0;border-radius:50%;background:var(--cvt-status-danger-fg);color:#fff;font:700 12px/1 var(--cvt-font-ui);transform:none}
.gw-rd .gw-file__retry{margin-left:auto}
.gw-rd .gw-file__retry + .cvt-btn{margin-left:8px}
/* Drag-over: a solid brand border, clearly a drop target. */
.gw-rd .gw-opt--main.cvt-drop.is-dragover{border:2px solid var(--cvt-bg-brand);background:var(--cvt-bg-brand-soft)}
.gw-rd .cvt-jobentry__err{margin:8px 0 0}
.gw-rd .gw-flow .cvt-textarea[aria-invalid="true"]{border-color:var(--cvt-status-danger-fg)}
@media (max-width:599px){
  /* The buttons stay in the flow, Back beside the primary button, as in the
     package (Sergio, 20 Nov: match the approved package). */
  .gw-rd .gw-actions{position:static;flex-direction:column-reverse;align-items:stretch;gap:8px;margin:24px 0 0;padding:0;background:none;box-shadow:none;border:0}
  .gw-rd .gw-actions__end{max-width:none;width:100%;margin-left:0}
  .gw-rd .gw-actions .gw-back{display:inline-flex;align-self:flex-start}
  .gw-rd .gw-actions > span:first-child:empty{display:none}
  .gw-rd .gw-main{padding-bottom:56px}
  .gw-rd .gw-grid2{gap:0}
  .gw-rd #gw-review-jd{height:168px}
  .gw-rd .gw-opt--main.cvt-drop{padding:18px 16px;gap:6px}
  .gw-rd .gw-opt--main .gw-opt__ic{width:36px;height:36px}
}
@media (max-width:360px){
  .gw-rd .gw-q,.gw-rd #gw-hc{font-size:28px;line-height:34px}
}
