/* Follow the listing through its working surfaces: a folding phone, the property,
   the offer thread, and the paper file assembled from the signed terms. */
.role-agents .sr-scene .journey-stage { min-width:0; }
.role-agents .sr-scene .journey-inner {
  width:min(88%,1230px); margin-inline:auto; padding-block:clamp(48px,6.5vw,98px);
  gap:clamp(32px,5.8vw,96px);
}
.role-agents .sr-scene .journey-copy { padding:0; }
.role-agents .sr-scene .journey-copy h2 { font-size:clamp(39px,4.1vw,67px); }
.role-agents .sr-scene .journey-copy>p:not(.role-label) { max-width:41ch; }
.role-agents .sr-scene .journey-switch { display:flex; gap:5px 19px; margin:0 0 12px; padding:0; justify-content:flex-start; }
.role-agents .sr-scene .journey-switch[hidden] { display:none; }
.role-agents .sr-scene .journey-frame-foot { font-size:11px; }
.role-agents .sr-scene .journey-frame-foot > :last-child { text-decoration:underline; text-underline-offset:3px; }
.role-agents .sr-scene .journey-figure:focus-within { outline:2px solid #c29364; outline-offset:3px; }
.role-agents .sr-scene .journey-figure .journey-open:focus-visible { outline:none; }

/* Sandstone and ink. The full app is available from each view. */
.role-agents .sr-prep#chapter-2 { --spread-bg:#e3d8c5; --spread-ink:#302c25; --spread-accent:#76573e; }

/* The Solana photograph is the file cover. Its caption becomes the showing correspondence. */
.role-agents .sr-listing#chapter-3 {
  --spread-bg:#181915; --spread-ink:#fbf5e9; --spread-copy:#dcd8cc; --spread-accent:#e1c7a1;
  background:radial-gradient(ellipse at 18% 48%,#39362a 0,transparent 62%),var(--spread-bg);
}
.role-agents .sr-listing .sr-estate-stage { width:min(100%,700px); }
.sr-estate-screens .journey-open { background:#171e18; color:#f3ebdb; border:1px solid #535b4c; border-radius:5px; }
.sr-estate-screens .sr-estate-photo { position:relative; overflow:hidden; }
.sr-estate-screens .sr-estate-photo img { width:100%; height:auto; aspect-ratio:2.28; object-fit:cover; object-position:center 50%; }
.sr-listing-line { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; min-height:130px; padding:18px clamp(16px,2.1vw,28px); }
.sr-listing-line :is(small,strong,em),.sr-request-note span { display:block; }
.sr-listing-line small,.sr-request-address { font:500 10px/1.45 Inter,Arial,sans-serif; letter-spacing:.04em; color:#c9cabb; }
.sr-listing-line > :first-child > small { display:flex;align-items:center;gap:7px;letter-spacing:.1em;text-transform:uppercase; }
.sr-listing-line > :first-child > small::before { content:'';width:5px;height:5px;background:#b9bd9c;border-radius:50%; }
.sr-listing-line strong { font:300 clamp(24px,2.9vw,39px)/1.1 Ivar,Georgia,serif; letter-spacing:-.04em; margin:7px 0 4px; }
.sr-listing-line em { font:italic 13px/1.25 Georgia,serif;color:#cabda4; }
.sr-list-price { white-space:nowrap; text-align:right; font:300 clamp(24px,2.7vw,36px)/1.1 Ivar,Georgia,serif; }
.sr-list-price small { margin-top:5px; }
.sr-request-note { display:grid; gap:2px; padding:14px clamp(16px,2.1vw,28px); color:#efeee7; min-height:130px; font:400 clamp(13px,1.15vw,16px)/1.4 Inter,Arial,sans-serif; }
.sr-request-address i { font-weight:400; font-style:normal; color:#b6b9aa; }
.sr-request-note .sr-out { text-align:right; }
.sr-request-note .sr-request-address.sr-out { margin-top:7px; }
.sr-estate-screens .journey-frame-foot { border-color:#444d40; color:#dfd3b9; }
.sr-estate-screens .journey-frame-foot>span:first-child { color:#bfc2b5; }
.sr-estate-screens [data-panel=launch] .sr-estate-photo img { filter:brightness(.84); }

/* The inbox adopts the product's actual Dark theme. Scrolling unfolds the editable reply. */
.role-agents .sr-mail#chapter-4 {
  --spread-bg:#dfcfb6; --spread-ink:#302922; --spread-copy:#51473a; --spread-accent:#6c5037;
  background:linear-gradient(118deg,#eee4d5 0%,var(--spread-bg) 70%,#d5c1a5 100%);
}
.sr-email-stage { max-width:660px; margin-inline:auto; }
.sr-email-stage .journey-open { border-color:#514a40; background:#181715; color:#ece6dd; border-radius:12px; }
.sr-email-stage .journey-open img { background:#101012; }
.sr-email-stage .journey-frame-foot { border-color:#49454a; }
.sr-email-stage .journey-frame-foot>span:first-child { color:#c6bfbc; }
.role-agents .sr-email-stage.offer-ready [data-panel="reply"] { width:min(94%,580px); }
.sr-email-stage.offer-ready [data-panel=reply] .journey-open { border-color:#897a70; }
.role-agents .sr-offer-terms { display:flex;gap:24px; margin:22px 0 0; padding:14px 0; border-block:1px solid #aa9780; font-variant-numeric:tabular-nums; }
.sr-offer-terms dt { font:500 10px/1.6 Inter,Arial,sans-serif; letter-spacing:.05em; color:var(--spread-copy); }
.sr-offer-terms dd { font:300 clamp(24px,2vw,33px)/1.27 Ivar,Georgia,serif; color:var(--spread-ink); }

/* The accepted terms become a working file, then a prepared email. */
.role-agents .sr-escrow#chapter-5 { --spread-bg:#f5f1e9; --spread-ink:#332e26; --spread-accent:#72533c; }
.sr-agreement-stage { max-width:620px; margin-inline:auto; }
.sr-paper-file { position:relative; isolation:isolate; padding:0 clamp(16px,3vw,34px) 0; background:#fffaf1; border:1px solid #cbbfaa; border-radius:4px; box-shadow:0 20px 42px -30px #55483582; }
.sr-paper-file::before { content:'';position:absolute;top:-5px;bottom:6px;left:5px;right:-4px;background:#e8dfd0;border:1px solid #c4b7a4;border-radius:3px;z-index:-2; }
.sr-paper-file::after { content:'';position:absolute;inset:0;background:#fffaf1;border-radius:3px;z-index:-1; }
.sr-file-mast { display:flex;justify-content:space-between;align-items:center;gap:8px; color:#6b604e; padding:16px 0 11px; border-bottom:1px solid #d9cdbd; font:500 10px/1.4 Inter,Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase; }
.sr-file-mast time {letter-spacing:.01em;text-transform:none}
.sr-paper-file .journey-open { border:0; background:none; box-shadow:none; border-radius:0; color:#332e26; }
.sr-paper-file .sr-file-heading { display:flex;align-items:center;gap:13px; min-height:90px; }
.sr-file-heading .sr-deal-thumb { display:block;width:64px;height:49px;border-radius:3px;object-fit:cover;object-position:center; }
.sr-file-heading strong,.sr-file-heading small,.sr-fig-ledger small { display:block; }
.sr-file-heading strong {font:300 clamp(22px,2.3vw,32px)/1.13 Ivar,Georgia,serif;letter-spacing:-.035em}
.sr-file-heading small,.sr-fig-ledger small,.sr-draft-slip small {font:400 12px/1.45 Inter,Arial,sans-serif;color:#675d4c; }
.sr-file-heading small { margin-top:3px; }
.sr-paper-file :is(.sr-fig-ledger,.sr-dates,.sr-draft-slip) { display:grid; align-content:center;min-height:183px; border-top:1px solid #d9cdbd; padding:12px 0; }
.sr-fig-ledger > span {display:flex; align-items:baseline;justify-content:space-between;padding:7px 0;gap:8px;}
.sr-fig-ledger b {font:400 clamp(19px,1.75vw,25px)/1.2 Ivar,Georgia,serif;font-variant-numeric:tabular-nums;}
.sr-fig-ledger .sr-agreed {margin-top:5px;padding-top:12px;border-top:1px solid #d9cdbd;}
.sr-fig-ledger .sr-agreed b {color:#4c563b; font-size:clamp(25px,2.3vw,32px)}
.sr-dates>span {display:flex;align-items:center;gap:22px;position:relative;border-bottom:1px solid #e2d8ca;padding:7px 0;}
.sr-dates>span:last-child {border-bottom:0;}
.sr-dates time {display:flex;align-items:baseline;gap:5px;min-width:68px;color:#71593c;font:300 26px/1.2 Ivar,Georgia,serif;font-variant-numeric:tabular-nums;}
.sr-dates time small {font:500 10px Inter,Arial,sans-serif;text-transform:uppercase;letter-spacing:.07em;}
.sr-dates b {font:500 14px/1.4 Inter,Arial,sans-serif;}
.sr-draft-slip {gap:5px;font:400 12px/1.5 Inter,Arial,sans-serif;color:#4c4539;}
.sr-draft-slip>span:first-child {color:#635747}
.sr-draft-slip strong {font-size:14px;font-weight:550;color:#342d23;margin-bottom:3px;}
.sr-draft-slip b {font-weight:550;}
.sr-draft-slip em {color:#735f42;font-style:normal;font-size:11px;text-decoration:underline;text-underline-offset:3px;margin-top:2px;}
.sr-paper-file .journey-frame-foot { border-color:#d6c9b7; padding:6px 0; min-height:44px; color:#544a38; }
.sr-paper-file .journey-frame-foot>span:first-child { color:#6a5b49; }

@media(min-width:851px) {
  .role-agents .sr-scene:is(#chapter-2,#chapter-3,#chapter-4,#chapter-5) .journey-inner {
    width:min(88%,1230px); display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); align-items:center;
  }
  .role-agents .sr-scene:is(#chapter-3,#chapter-4) .journey-copy { text-align:left;max-width:none; }
  .role-agents .sr-scene:is(#chapter-3,#chapter-4) .journey-copy .role-label {justify-content:flex-start;}
  .role-agents .sr-scene:is(#chapter-3,#chapter-4) .journey-copy h2 {max-width:13ch;margin-inline:0;font-size:clamp(40px,4.2vw,69px);}
  .role-agents .sr-scene:is(#chapter-3,#chapter-4) .journey-copy h2 em {display:block;}
  .role-agents .sr-scene:is(#chapter-3,#chapter-4) .journey-copy>p:not(.role-label) {max-width:40ch;margin-inline:0;}
  .role-agents .sr-scene:is(#chapter-3,#chapter-4) .journey-switch {justify-content:flex-start;}
  .role-agents #chapter-3.sr-listing .journey-inner { grid-template-columns:minmax(0,1.23fr) minmax(0,.77fr); }
  #chapter-3.sr-listing .journey-product {grid-column:1;grid-row:1;}
  #chapter-3.sr-listing .journey-copy {grid-column:2;grid-row:1;}
}
@media(max-width:850px) {
  .role-agents .sr-scene .journey-inner {width:min(90%,630px);padding-block:clamp(26px,6vw,55px);gap:19px;}
  .role-agents .sr-scene:is(#chapter-3,#chapter-4) .journey-inner {width:min(90%,630px);display:grid;grid-template-columns:minmax(0,1fr);gap:19px;}
  .role-agents .sr-scene:is(#chapter-3,#chapter-4) .journey-copy {text-align:left;}
  .role-agents .sr-scene:is(#chapter-3,#chapter-4) .journey-copy .role-label,
  .role-agents .sr-scene:is(#chapter-3,#chapter-4) .journey-switch {justify-content:flex-start;}
  .role-agents .sr-scene:is(#chapter-3,#chapter-4) .journey-copy h2 {margin-inline:0;}
  .role-agents .sr-scene:is(#chapter-3,#chapter-4) .journey-copy>p:not(.role-label) {margin-inline:0;}
  .sr-email-stage,.sr-agreement-stage {width:100%;}
  .sr-listing-line {min-height:104px;}
  .role-agents .sr-offer-terms {margin:13px 0 0;padding:6px 0;gap:24px;}
}
@media(max-width:650px) {
  .role-agents .sr-scene .journey-inner {padding-block:24px;}
  .role-agents .sr-scene .journey-copy h2 {font-size:clamp(32px,8.1vw,45px);}
  .role-agents .sr-scene .journey-copy>p:not(.role-label) {font-size:14px;line-height:1.5;margin-top:10px;}
  .role-agents .sr-scene .journey-copy .role-label {font-size:9px;gap:8px;margin-bottom:9px;}
  .role-agents .sr-scene .journey-switch {gap:2px 14px;margin-bottom:6px;}
  .sr-listing-line {min-height:93px;padding:11px 14px;}
  .sr-listing-line strong {font-size:clamp(20px,5.4vw,30px);}
  .sr-listing-line em {font-size:11px;}
  .sr-list-price {font-size:clamp(18px,5vw,24px);}
  .sr-request-note {min-height:117px;font-size:12px;padding:10px 14px;}
  .sr-file-mast {padding-top:12px;}
  .sr-paper-file .sr-file-heading {min-height:71px;}
  .sr-file-heading .sr-deal-thumb {width:45px;height:40px;}
  .sr-paper-file :is(.sr-fig-ledger,.sr-dates,.sr-draft-slip) {min-height:164px;padding:6px 0;}
  .sr-file-heading strong {font-size:22px;}
  .sr-dates>span {padding:5px 0;}
}
@media(prefers-reduced-motion:no-preference) {
  .sr-estate-screens [data-selected] .sr-listing-line,.sr-estate-screens [data-selected] .sr-request-note,
  .sr-paper-file [data-selected] .sr-fig-ledger>span,.sr-paper-file [data-selected] .sr-dates>span,.sr-paper-file [data-selected] .sr-draft-slip>* { animation:sr-write-in .32s ease-out both; }
  .sr-paper-file [data-selected] :is(.sr-dates,.sr-fig-ledger)>span:nth-child(2) {animation-delay:80ms;}
  .sr-paper-file [data-selected] :is(.sr-dates,.sr-fig-ledger)>span:nth-child(3),.sr-paper-file [data-selected] .sr-draft-slip em {animation-delay:155ms;}
  @keyframes sr-write-in {from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:none}}
}
