.messages-inbox-dialog{width:min(920px,calc(100% - 24px));max-height:90dvh;padding:18px;border:1px solid #59616d;border-radius:20px;background:rgba(35,39,45,.98);color:#f5f7fa;overflow:auto}.messages-inbox-dialog::backdrop,.sm-own-profile-dialog::backdrop{background:rgba(0,0,0,.65)}.messages-inbox-dialog .messages-shell{padding:12px 4px;margin:0;max-width:none;min-height:0}.messages-inbox-close{display:block;margin-left:auto;position:sticky;top:0;z-index:2;border:1px solid #68717e;border-radius:10px;background:#303640;color:white;font-size:24px;width:42px;height:42px}.sm-profile-button{display:flex;gap:9px;align-items:center;justify-content:center;background:rgba(40,44,51,.8);color:#fff;border:1px solid #69717c;border-radius:12px;padding:7px 12px;cursor:pointer}.sm-profile-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;overflow:hidden}.sm-profile-icon img{width:100%;height:100%;object-fit:contain}.sm-own-profile-dialog{width:min(420px,calc(100% - 24px));max-height:85dvh;overflow:auto;border:1px solid #69717c;border-radius:18px;background:#272c33;color:#fff;padding:24px}.sm-own-profile-dialog header{display:flex;align-items:center;justify-content:space-between}.sm-own-profile-dialog a,.sm-own-profile-dialog .sm-profile-logout{display:block;width:100%;margin-top:16px;text-align:center}.sm-own-profile-dialog .sm-profile-logout{margin-top:40px}.app-nav [data-open-messages] b{display:block;width:28px;height:28px;margin:auto}.app-nav [data-open-messages] svg{width:100%;height:100%}.account-signout{display:none!important}

.sm-profile-button[hidden],.head-actions>.demo-account-status{display:none!important}

/* Only the inbox content scrolls. The close control occupies a separate fixed row. */
.messages-inbox-dialog{height:min(760px,90dvh);overflow:hidden;padding:14px;box-sizing:border-box}
.messages-inbox-dialog[open]{display:grid;grid-template-rows:42px minmax(0,1fr);gap:10px}
.messages-inbox-dialog>.messages-inbox-close{position:static;margin:0 0 0 auto;align-self:start;flex:none}
.messages-inbox-dialog>.messages-shell{overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;padding:8px 4px 18px}
.app-nav [data-open-messages]{position:relative}
.app-nav .sm-nav-unread{position:absolute;top:2px;left:calc(50% + 5px);min-width:19px;height:19px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:#d72f3f;color:#fff;font-size:11px;line-height:19px;font-weight:800;text-align:center;box-shadow:0 0 0 2px #24282f;pointer-events:none}
.app-nav .sm-nav-unread[hidden]{display:none!important}
/* The mobile shell previously overrode the generic sign-out hiding rule. */
.topbar .head-actions .text-btn.account-signout{display:none!important}
#profileDialog .avatar-photo-picker{background:#2c3139;border:1px solid #606974;color:#f4f6f8}
#profileDialog .avatar-photo-picker strong{color:#f4f6f8}
#profileDialog .avatar-photo-picker .outline{background:#343b45;border-color:#697482;color:#f4f6f8}
#profileDialog .avatar-colors button[data-avatar-color="orange"]{background:#f29a51}
#profileDialog .avatar-colors button[data-avatar-color="blue"]{background:#5b83b4}
#profileDialog .avatar-colors button[data-avatar-color="green"]{background:#438c70}
#profileDialog .avatar-colors button[data-avatar-color="graphite"]{background:#343945}

.remember-session{display:flex!important;align-items:center;gap:.65rem}.remember-session input{width:1.25rem!important;height:1.25rem!important;accent-color:#ed7b2f}.sm-own-profile-dialog [data-own-listings]{width:100%;min-height:48px;font:inherit}.own-listings article{padding:1rem 0;border-bottom:1px solid #555b64}.own-listings h3,.own-listings p{margin:.25rem 0}

/* Shared screen finish: empty markets and browser canvas stay anthracite. */
@media screen {
 html:root,html body{background:#181a1e!important;color-scheme:dark;min-height:100svh;overscroll-behavior-y:none}
 html body :is(.search-empty,.auction-empty,#emptyState){background:#24272d;color:#f4f5f7;border:1px solid #454c56;border-radius:16px}
 html body :is(.search-empty,.auction-empty,#emptyState) :is(strong,h2,h3){color:#f4f5f7}
 html body :is(.search-empty,.auction-empty,#emptyState) :is(span,p){color:#b7bec8}
 html body .sm-member-row{align-items:center;gap:12px}
 html body .sm-member-row .sm-greeting{flex:1;min-width:0;overflow-wrap:anywhere}
 html body .sm-member-row .sm-profile-button{flex:none;min-height:42px;box-sizing:border-box;white-space:nowrap;font:inherit}
 html body :focus:not(:focus-visible){outline:none}
 html body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid #f47621;outline-offset:3px}
 html body [tabindex="-1"]:focus{outline:none}
}

@media screen {html body .sm-member-row .sm-greeting{font-size:clamp(16px,1.5vw,19px);font-weight:650;line-height:1.3}html body .sm-member-row .sm-profile-button{min-height:36px;padding:5px 10px;gap:7px;font-size:13px;color:#ffad73;border-color:#a95b2e;background:#ed7b2b14}html body .sm-profile-icon{width:26px;height:26px;font-size:11px;font-weight:750;color:#fff}.sm-profile-icon img{object-fit:cover}}

.offer-drafts-dialog{width:min(850px,calc(100% - 24px));max-height:88dvh;overflow:auto;box-sizing:border-box;padding:22px;border:1px solid #59616c;border-radius:18px;background:#24272d;color:#f4f5f7}.offer-drafts-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}.offer-drafts-dialog article{border-top:1px solid #454c56;padding:16px 0}.offer-drafts-dialog button,.draft-actions button{margin:5px;min-height:42px}.draft-preview-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.draft-preview-photos img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}.interest-range{border:1px solid #454c56;background:#24272d;border-radius:14px;padding:14px}.interest-range input{accent-color:#f47621;width:100%;min-height:36px}.interest-range output{color:#ffad73;font-weight:700}.interests-prompt{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px max(20px,calc((100vw - 1210px)/2));background:#24272d;border-block:1px solid #454c56}.interests-prompt strong{color:#ffad73}.interests-prompt p{color:#b7bec8;line-height:1.5}.interests-prompt button{flex-shrink:0}@media(max-width:600px){.interests-prompt{align-items:stretch;flex-direction:column;gap:8px}}

.interest-damages{display:flex;flex-wrap:wrap;gap:8px;border:1px solid #59616b;border-radius:12px;padding:12px}.interest-damages label{display:flex;align-items:center;gap:6px;padding:6px 9px;background:#30353d;border-radius:8px}.interest-damages input{accent-color:#ed7b2b}
.offer-drafts-dialog header{position:sticky;top:0;z-index:1000;margin:0;padding:16px 20px;background:#24272d;border-bottom:1px solid #454c56}.offer-drafts-dialog [data-preview]{overflow-wrap:anywhere}.offer-drafts-dialog button:disabled{opacity:.55;cursor:not-allowed}

/* One layout for profile actions, including dynamically added drafts and interests. */
html body dialog.sm-own-profile-dialog{box-sizing:border-box;width:min(420px,calc(100% - 24px));padding:20px;max-height:calc(100dvh - 32px)}
html body dialog.sm-own-profile-dialog[open]{display:flex;flex-direction:column;gap:12px}
html body dialog.sm-own-profile-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 4px;padding:0;flex-shrink:0}
html body dialog.sm-own-profile-dialog>header h2{min-width:0;margin:0;font-size:30px;line-height:1.15}
html body dialog.sm-own-profile-dialog>header button{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;box-sizing:border-box;margin:0;padding:0;border:1px solid #69717c;border-radius:10px;font:400 24px/1 system-ui}
html body dialog.sm-own-profile-dialog>:is(a,button):not([hidden]),html body #profileDialog .sm-settings-panel>:is(a,button).outline:not([hidden]),html body #profileDialog .sm-settings-panel:is(a,button):not([hidden]){display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;min-height:54px;flex-shrink:0;margin:0;padding:12px 16px;border:1px solid #69717c;border-radius:12px;background:#30353d;color:#f4f5f7;-webkit-text-fill-color:currentColor;font:600 16px/1.4 system-ui;letter-spacing:normal;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
html body dialog.sm-own-profile-dialog>a:is(:link,:visited,:hover,:active){color:#f4f5f7;text-decoration:none}
html body dialog.sm-own-profile-dialog>:is(a,button):hover{border-color:#ed7b2b}
html body dialog.sm-own-profile-dialog>:is(p,.sm-own-profile-name){margin:0;line-height:1.4}
html body dialog.sm-own-profile-dialog>:is(p,.sm-own-profile-name):empty{display:none}
html body #profileDialog .sm-settings-index{gap:12px;margin:20px 0;min-width:0}
html body #profileDialog .sm-settings-entry{box-sizing:border-box;min-width:0;min-height:62px;margin:0;padding:14px 16px!important;gap:12px;font:600 16px/1.4 system-ui;letter-spacing:normal;text-decoration:none}
html body #profileDialog .sm-settings-entry>span:first-child{min-width:0;flex:1}
html body #profileDialog .sm-settings-entry strong{font:inherit;color:inherit;overflow-wrap:anywhere}
html body #profileDialog .sm-settings-entry>span:last-child{flex:0 0 18px;text-align:center;font:400 24px/1 system-ui}
html body #profileDialog .sm-settings-panel>:is(a,button).outline:not([hidden])+ :is(a,button).outline{margin-top:12px}
@media(max-width:420px){html body dialog.sm-own-profile-dialog{padding:18px}html body dialog.sm-own-profile-dialog>header h2{font-size:28px}}
/* The home page has one interests entry, directly below the three market actions. */
html body .hero.has-interests-prompt{min-height:0;margin-bottom:0;padding-bottom:20px}
html body .hero.has-interests-prompt+.interests-prompt{margin-top:0;padding-top:20px;padding-bottom:20px}
html body .interests-prompt p{margin:8px 0 0;max-width:720px}
@media(max-width:600px){html body .hero.has-interests-prompt{padding-bottom:16px}html body .hero.has-interests-prompt+.interests-prompt{gap:16px;padding:20px}html body .interests-prompt button{width:100%;min-height:50px;margin:0}}
html body .hero.has-interests-prompt .home-market-actions{margin-bottom:0}
@media(max-width:600px){html body .hero.has-interests-prompt{padding-bottom:8px}html body .hero.has-interests-prompt+.interests-prompt{padding-top:16px}}
/* The saved-search editor reuses the market's component styling and layout. */
html body .discovery-dialog .saved-search-market-filter{margin:16px 0;padding:0;border:0;box-shadow:none;min-width:0;background:transparent}
html body .discovery-dialog .saved-search-market-filter .auction-search-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html body .discovery-dialog .saved-search-market-filter .auction-vehicle-categories{display:flex;flex-wrap:wrap;gap:10px;padding:0;border:0;margin:0 0 16px}
html body .discovery-dialog .saved-search-market-filter .auction-vehicle-categories button{flex:1 1 100px}
html body .discovery-dialog .saved-search-market-filter .brand-model-filter,html body .discovery-dialog .saved-search-market-filter .compact-range-groups,html body .discovery-dialog .saved-search-market-filter .body-type-picker,html body .discovery-dialog .saved-search-market-filter .motorcycle-type-picker,html body .discovery-dialog .saved-search-market-filter .vehicle-subtype-picker{grid-column:1/-1}
html body .discovery-dialog .saved-search-market-filter .dual-range-filter{padding:0;margin:0;border:1px solid #59616c}
html body .discovery-dialog .saved-search-market-filter .dual-range-track input[type=range]{padding:0;border:0;background:transparent;min-height:0}
html body .discovery-dialog .saved-search-market-filter .dual-range-inputs label{margin:0}
html body .discovery-dialog .saved-search-market-filter .advanced-options label{flex-direction:row;align-items:center;margin:0}
html body .discovery-dialog .saved-search-market-filter [hidden]{display:none!important}
html body .discovery-dialog .saved-search-market-filter .saved-search-reset{margin-top:12px;width:100%}
@media(max-width:600px){html body .discovery-dialog .saved-search-market-filter .auction-search-fields{grid-template-columns:minmax(0,1fr)}html body .discovery-dialog .saved-search-market-filter .auction-vehicle-categories button{flex-basis:28%}}
html body .discovery-dialog .saved-search-market-filter .compact-range-groups{gap:0}
html body .discovery-dialog .saved-search-market-filter .dual-range-filter{border:0;border-bottom:1px solid #393e46;border-radius:0;padding:0;background:transparent}
html body .discovery-dialog .saved-search-market-filter .range-expand-toggle{padding:10px 2px;margin:0;min-height:42px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#d8dbe0;font:500 13px Inter,Arial,sans-serif}

/* Separate the opaque header from the scrolling draft text on every viewport. */
html body dialog.offer-drafts-dialog{padding:0;background:#24272d;color:#f4f5f7;font:400 16px/1.6 Inter,system-ui,sans-serif}
html body dialog.offer-drafts-dialog>header{margin:0;top:0;padding:16px 20px;background:#24272d;flex-shrink:0}
html body dialog.offer-drafts-dialog>header h2{margin:0;font:700 clamp(23px,3vw,29px)/1.25 Inter,system-ui,sans-serif;text-transform:none;color:#ffad73}
html body .offer-drafts-body{padding:20px;color:#e1e6ed;overflow-wrap:anywhere}
html body .offer-drafts-body>p{margin:0 0 16px;color:#cbd3dd;line-height:1.6}
html body .offer-drafts-body :is(h3,strong){color:#f4f5f7}
html body dialog.own-auctions-dialog{padding:0;width:min(960px,calc(100vw - 24px));border:1px solid #59616c;border-radius:18px;background:#24272d;color:#f4f5f7}
html body .own-auctions-dialog>header{display:flex;gap:12px;align-items:center;position:sticky;top:0;margin:0;padding:16px 20px;background:#24272d;border-bottom:1px solid #454c56}
html body .own-auctions-dialog>header h2{margin:0;font:700 clamp(23px,3vw,29px)/1.25 Inter,system-ui,sans-serif;text-transform:none;color:#ffad73}
html body .own-auctions-dialog .workflow{padding:20px;max-width:none;margin:0;font:400 16px/1.6 Inter,system-ui,sans-serif}
html body .own-auctions-dialog :is(.workflow-notice,.workflow-card,.workflow-summary>div){background:#2b3037;color:#f4f5f7;border-color:#59616c}
html body .own-auctions-dialog :is(p,.muted,dt){color:#cbd3dd}
html body .own-auctions-dialog :is(h2,h3,dd){color:#f4f5f7}

/* Draft saving is always separate from publication validation. */
html body #listingForm>.draft-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#292e35;border:1px solid #59616c;border-radius:14px;padding:12px;margin:0 0 18px}
html body #listingForm>.draft-actions button{margin:0;min-height:44px;flex:1 1 160px}
html body [data-draft-status]{flex-basis:100%;margin:0;overflow-wrap:anywhere;color:#d6dce4}
html body [data-draft-status]:empty{display:none}
html body [data-draft-status][data-state=success]{color:#bce5c7}
html body [data-draft-status][data-state=error]{color:#ffb9b1}
.draft-preview-card-wrap{max-width:390px;margin:20px auto;width:100%}.draft-preview-card-wrap .vehicle{width:100%;cursor:pointer}.draft-preview-card-wrap .photo{height:230px;overflow:hidden;display:flex;align-items:center;justify-content:center}.draft-preview-card-wrap .photo img{position:absolute;inset:0}.draft-preview-card-wrap .vehicle:focus-visible{outline:2px solid #f47621;outline-offset:3px}.offer-drafts-dialog.draft-preview-detail{width:min(1040px,calc(100vw - 24px));max-width:1040px}.draft-preview-detail .detail-gallery{margin-top:16px}.draft-preview-detail .detail-photo{min-height:180px;overflow:hidden}.draft-preview-detail .detail-photo img{position:absolute;inset:0}.draft-preview-detail .detail-main{padding:20px 0}.draft-preview-detail .detail-main p{white-space:pre-wrap;overflow-wrap:anywhere}
/* Uploaded photos never inherit the illustrated placeholder silhouette, including lightbox clones. */
html body .photo:has(>img)::before,html body .photo:has(>img)::after{display:none!important;content:none!important}
html body .offer-drafts-dialog .draft-gallery{display:block!important;grid-template:none!important;padding:0!important;margin:0!important;background:#181b1f;border-radius:12px;overflow:hidden}
html body .offer-drafts-dialog .draft-main-photo{height:auto!important;min-height:0!important;aspect-ratio:4/3;position:relative;background:#181b1f;display:flex;align-items:center;justify-content:center}
html body .offer-drafts-dialog .draft-main-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
html body .offer-drafts-dialog .draft-photo-thumbs{display:flex;gap:8px;overflow-x:auto;padding:10px;background:#24282e}
html body .offer-drafts-dialog .draft-photo-thumbs button{flex:0 0 56px;width:56px;height:48px;min-height:44px;padding:0;border:2px solid #515c69;border-radius:7px;background:#181b1f;overflow:hidden;box-shadow:none}
html body .offer-drafts-dialog .draft-photo-thumbs button[aria-pressed=true]{border-color:#f47621}
html body .offer-drafts-dialog .draft-photo-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
html body .offer-drafts-dialog .vehicle-title,html body .offer-drafts-dialog .detail-main>header{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important}
html body .offer-drafts-dialog .vehicle-title h3,html body .offer-drafts-dialog .detail-main h2{font:700 clamp(19px,4vw,26px)/1.3 Inter,sans-serif!important;text-transform:none!important;word-break:normal!important;overflow-wrap:break-word;min-width:0;width:100%;margin:0!important;letter-spacing:0!important}
html body .offer-drafts-dialog .detail-main>header>div{width:100%;min-width:0}
html body .offer-drafts-dialog .vehicle-title strong,html body .offer-drafts-dialog .detail-main>header>strong{font:700 20px/1.35 Inter,sans-serif!important;white-space:normal!important;color:#ff9e5b}
html body .offer-drafts-dialog .detail-main header>div>span{display:block;width:100%;white-space:normal}
html body .offer-drafts-dialog .detail-facts>span{display:block;padding:12px!important;background:#30353d!important;border:1px solid #515c69!important;border-radius:10px;color:#f4f5f7!important}
html body .offer-drafts-dialog .detail-facts>span>span{display:inline!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;box-shadow:none!important;color:#c9cfd6!important;font:500 14px/1.5 Inter,sans-serif!important}
html body .offer-drafts-dialog .detail-facts b{font:600 13px/1.4 Inter,sans-serif;color:#f4f5f7}
html body .offer-drafts-dialog .facts span:empty{display:none}

.offer-drafts-dialog .draft-photo-swipe{touch-action:pan-y pinch-zoom}
.offer-drafts-dialog .draft-list-row{padding:14px 0;border-top:1px solid #454b54}
.draft-list-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.draft-list-heading h3,.draft-list-heading p{margin:0;overflow-wrap:anywhere}
.draft-list-heading p{font-size:14px;color:#bfc5cf}
.draft-list-cover{width:72px;height:54px;border-radius:8px;overflow:hidden;background:#181b1f}
.draft-list-cover img{display:block;width:100%;height:100%;object-fit:cover}
.draft-list-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}
html body .offer-drafts-dialog .draft-list-actions>button{min-width:0;min-height:44px;margin:0;padding:5px 4px;font-size:13px;line-height:1.25;white-space:normal}
html body .offer-drafts-dialog .draft-list-actions>.draft-list-delete{color:#ffb8ac}

.sm-notification-bell{position:relative;text-decoration:none;gap:6px}
.sm-notification-bell[hidden],.sm-notification-count[hidden]{display:none!important}
.sm-notification-count{min-width:1.2rem;padding:1px 4px;border-radius:20px;background:#b82432;color:white;text-align:center;font-size:.72rem}
@media(max-width:600px){.sm-notification-bell>span{display:none}.sm-notification-bell{min-width:42px;justify-content:center}.sm-notification-count{position:absolute;right:-5px;top:-5px}}

.sm-notification-panel{position:fixed;z-index:10000;width:min(360px,calc(100vw - 16px));box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:12px;border:1px solid #515861;border-radius:14px;background:#23272d;color:#f5f7fa;box-shadow:0 10px 28px #0008}
.sm-notification-panel[hidden]{display:none}
.sm-notification-panel h2{font-size:1rem;margin:0 0 8px}
.sm-notification-panel [data-notification-list]{font-size:.9rem}
.sm-notification-item{display:grid;gap:4px;padding:10px;border-top:1px solid #41464e;color:inherit;text-decoration:none}
.sm-notification-item:hover,.sm-notification-item:focus-visible{background:#343a43}
.sm-notification-item[data-unread]{border-inline-start:3px solid #f47b24}
.sm-notification-item strong{color:#ffad73}

.msg-purchase{max-height:45dvh;overflow:auto;padding:12px;border-bottom:1px solid #4d535e;background:#20242a}
.msg-purchase[hidden]{display:none}
.msg-purchase-header,.msg-purchase-meta,.msg-purchase-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;justify-content:space-between}
.msg-purchase-card{display:grid;gap:6px;margin-top:8px;padding:14px;border:1px solid #6a503c;border-radius:12px;background:#292a2d}
.msg-purchase-meta{font-size:.82rem;color:#ffb279}
.msg-purchase-price{font-size:1.5rem;color:#fff}
.msg-purchase-form{display:grid;gap:8px;margin-top:10px}
.msg-purchase-form input[name=price]{max-width:10rem}
.msg-purchase-consent{display:flex;gap:8px;align-items:flex-start;font-size:.85rem}
.msg-purchase-composer{margin-top:8px}
.msg-purchase-composer summary{cursor:pointer;color:#ffb279;font-weight:650}
.msg-purchase-confirmation:not([hidden]) {
  display:grid;
  gap:8px;
  padding:10px;
  border:1px solid #a26b43;
  border-radius:8px;
}
.msg-purchase-confirmation p {margin:0;line-height:1.5}

.msg-purchase [data-open-offer-editor] {margin-top:10px;min-height:44px}
.msg-offer-editor {
  margin-top: 12px;
  max-height: min(40dvh, 320px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #23272d;
  color: #f5f5f6;
  border: 1px solid #646c77;
  border-radius: 16px;
}
.msg-offer-editor[hidden] { display: none; }
.msg-offer-editor > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #505761;
}
.msg-offer-editor h2 {margin:0;font:700 20px/1.25 Inter,system-ui,sans-serif}
.msg-offer-editor .msg-purchase-form {margin:0;padding:16px;gap:14px}
.msg-offer-editor label {font-size:16px;line-height:1.4}
.msg-offer-editor input[name=price] {
  display:block;width:100%;max-width:none;box-sizing:border-box;
  min-height:52px;margin-top:6px;padding:8px 12px;
  font-size:22px;color:inherit;background:#191c20;border:1px solid #777f89;border-radius:8px;
}
.msg-offer-binding {padding:12px;border:1px solid #b97b4f;border-radius:8px;background:#34271f}
.msg-offer-binding strong {color:#ffc18f}
.msg-offer-binding p {margin:5px 0 0;font-size:16px;line-height:1.45}
.msg-offer-editor .msg-purchase-consent input {width:20px;height:20px;flex:none;margin-top:2px;accent-color:#ff914a}
.msg-offer-editor [type=submit] {min-height:48px;font-size:16px}
.msg-offer-editor [role=status]:empty {display:none}

/* Keep the offer and its submit action in one scrollable region. */
.messages-chat-layout .msg-purchase {
  min-height: 0;
  flex-shrink: 0;
  overscroll-behavior: contain;
}
.messages-chat-layout .msg-purchase:has(.msg-offer-editor:not([hidden])) {
  flex: 2 1 0;
  max-height: none;
}
.messages-chat-layout .msg-offer-editor {
  max-height: none;
  overflow: visible;
}
.messages-chat-layout .msg-offer-editor > header {
  padding: 8px 12px;
}
.messages-chat-layout .msg-offer-editor h2 { font-size: 16px; }
.messages-chat-layout .msg-offer-editor .msg-purchase-form {
  padding: 10px 12px;
  gap: 8px;
}
.messages-chat-layout .msg-offer-editor label,
.messages-chat-layout .msg-offer-binding p {
  font-size: 14px;
  line-height: 1.4;
}
.messages-chat-layout .msg-offer-binding { padding: 8px 10px; }
.messages-chat-layout .msg-offer-editor input[name=price] {
  min-height: 44px;
  font-size: 16px;
}
.messages-chat-layout button:is([data-open-offer-editor], .msg-offer-editor [type=submit], .msg-compose [type=submit]) {
  min-height: 44px;
  border: 1px solid #ffbf73;
  background: rgba(255, 177, 77, .27);
  color: #fff6e8;
}
.messages-chat-layout .messages-chat-head {
  background: linear-gradient(110deg, #332a23, #24272d 70%);
}
.messages-chat-layout .msg-chat-body {
  background: linear-gradient(150deg, #252931, #191d23);
}
.messages-chat-layout .msg-bubble.mine {
  background: #403125;
  border: 1px solid #92643e;
}

.messages-chat-layout .messages-chat-head {
  position: relative;
  border-bottom-color: transparent;
}
.messages-chat-layout .messages-chat-head::after {
  content: "";
  position: absolute;
  inset-inline: 64px 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #c38951, rgba(195, 137, 81, .22));
  pointer-events: none;
}
.messages-chat-layout .messages-chat-head .msg-avatar {
  margin-inline-start: 7px;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  border: 1px solid #98683f;
}
.messages-chat-layout .messages-chat-head h2 {
  font-size: 17px;
  font-weight: 550;
}
.messages-chat-layout .messages-chat-head small {
  font-size: 13px;
  line-height: 1.35;
}

/* Short amber dividers between consecutive conversations. */
.msg-list > .msg-swipe + .msg-swipe::before,
.msg-listing-proposals > .msg-swipe + .msg-swipe::before {
  content: "";
  position: absolute;
  top: -6px;
  inset-inline-start: 14px;
  width: min(64px, 45%);
  height: 1px;
  background: linear-gradient(90deg, #c38951, rgba(195, 137, 81, .22));
  pointer-events: none;
}
.msg-list > .msg-swipe + .msg-swipe,
.msg-listing-proposals > .msg-swipe + .msg-swipe {
  padding-top: 0;
}
.msg-list > .msg-swipe + .msg-swipe::before,
.msg-listing-proposals > .msg-swipe + .msg-swipe::before {
  top: 0;
  inset-inline: 54px 18px;
  width: auto;
}

/* Flat chat rows inside the rounded inbox list. */
#msgRows .msg-swipe,
#msgRows .msg-swipe-content,
#msgRows .msg-swipe-content > .msg-row {
  border-radius: 0;
}
#msgRows .msg-swipe-content > .msg-row {
  border-block-width: 0;
  background-color: #30343b;
}
#msgRows .msg-swipe-content > .msg-row:hover {
  background-color: #353a43;
}
#msgRows .msg-swipe > .msg-swipe-toggle:not(:focus-visible) {
  background: transparent;
}
#msgRows .msg-swipe + .msg-swipe::before {
  z-index: 1;
  inset-inline: 18px;
  background: linear-gradient(90deg, #c38951, rgba(195, 137, 81, .22));
}

#msgRows .msg-swipe-content > .msg-row:has(.msg-avatar[data-member-id]) {
  background-image: radial-gradient(
    ellipse 145px 100% at 32px 50%,
    color-mix(in srgb, var(--chat-avatar-color, #f47621) 22%, transparent),
    transparent 100%
  );
}

#msgRows .msg-swipe-content > .msg-row {
  padding-block: 12px;
}
#msgRows .msg-row-content small {
  margin-block: 3px;
}

/* Match the inbox actions to the amber chat controls. */
html body .messages-shell :is(.msg-header-actions > button.msg-primary, .msg-tabs > button[aria-pressed="true"]) {
  background: rgba(255, 177, 77, .27) !important;
  border: 1px solid #ffbf73 !important;
  color: #fff6e8 !important;
  -webkit-text-fill-color: currentColor;
}
html body .messages-shell :is(.msg-header-actions > button.msg-primary, .msg-tabs > button[aria-pressed="true"]):hover {
  background: rgba(255, 177, 77, .36) !important;
}

.messages-chat-layout .msg-chat-body { gap: 8px; }
.messages-chat-layout .msg-bubble { padding: 5px 9px; }
.messages-chat-layout .msg-bubble time { margin-top: 2px; }

.offer-drafts-dialog [data-publication-checks]:not([hidden]) {display:grid; gap:12px; margin:16px 0;}
.offer-drafts-dialog [data-publication-checks] h3 {margin:0;}
.offer-drafts-dialog [data-publication-checks] .check {display:flex; align-items:start; gap:8px;}
.offer-drafts-dialog [data-publication-checks] .check input {margin-top:.25em; flex:none;}
.offer-drafts-dialog [data-publication-checks] a {color:inherit;}
