/* Navigation and flow polish: keep controls right-aligned and account access compact. */
.site-header>.brand+.header-actions{margin-left:auto!important;justify-content:flex-end!important}
.site-header .header-actions{align-items:center}
.rm-account-back{white-space:nowrap;font-weight:750}

.account-access-page .workspace-auth-shell{max-width:960px!important;padding-top:42px!important;padding-bottom:64px!important}
.account-access-page .workspace-auth-card{padding:32px!important}
.account-access-page .workspace-auth-intro{max-width:720px;margin-bottom:18px}
.account-access-page .account-access-context{margin-bottom:18px}
.account-access-page .workspace-auth-form{grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:12px;row-gap:10px}
.account-access-page .workspace-auth-form>label{min-width:0}
.account-access-page .workspace-auth-form .workspace-primary{width:auto!important;min-width:190px;min-height:48px;padding:0 22px!important;white-space:nowrap}
.account-access-page .workspace-security-box{margin-top:16px}

.seller-onboarding-shell{max-width:980px!important;padding-top:48px!important}
.seller-onboarding-card{background:#fff;border:1px solid var(--rm-line,#e2e7ef);border-radius:18px;padding:30px;box-shadow:var(--rm-shadow,0 14px 38px rgba(11,18,32,.055))}
.seller-onboarding-card h1{margin:8px 0 10px;font-size:clamp(34px,4vw,48px);line-height:1.03;letter-spacing:-.045em}
.seller-onboarding-card>p{margin:0 0 22px;color:#6f675e;max-width:760px;line-height:1.65}
.seller-onboarding-form{display:grid;gap:14px}
.seller-onboarding-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.seller-onboarding-form label{display:grid;gap:7px;font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#5e574f}
.seller-field-label{display:inline-flex;align-items:baseline;gap:4px;width:max-content;max-width:100%}
.required-mark{display:inline;color:#ff4d2e;font-weight:900;line-height:1}
.seller-onboarding-form input,.seller-onboarding-form select{width:100%;min-height:46px;border:1px solid #c9d2df;border-radius:10px;background:#fff;padding:0 12px;color:#0b1220;font:500 13px/1 var(--rm-font,system-ui)}
.seller-onboarding-form input:focus,.seller-onboarding-form select:focus{outline:none;border-color:#ffa896;box-shadow:0 0 0 3px rgba(255,77,46,.11)}
.seller-onboarding-form .seller-consent{display:flex;align-items:flex-start;gap:10px;text-transform:none;letter-spacing:0;font-size:11px;line-height:1.5;font-weight:600}
.seller-onboarding-form .seller-consent input{width:18px;min-height:18px;height:18px;flex:0 0 auto;margin-top:1px}
.seller-onboarding-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:4px}
.seller-onboarding-actions .workspace-primary{width:auto!important;padding:0 20px}
.seller-onboarding-success{padding:22px;border:1px solid #b7e4cc;background:#effcf4;border-radius:14px}
.seller-onboarding-success h2{margin:0 0 8px;font-size:24px}.seller-onboarding-success p{margin:0 0 16px;color:#4e6759;line-height:1.6}

/* Personal request creation belongs inside the authenticated Buyer workspace. */
.buyer-request-panel{margin:0 0 18px}
.buyer-request-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.buyer-request-head h2{margin:5px 0 7px;font-size:28px;letter-spacing:-.035em}
.buyer-request-head p{margin:0;max-width:720px;color:#6f675e;font-size:12px;line-height:1.6}
.buyer-request-form select{width:100%;min-height:44px;border:1px solid #c9d2df;border-radius:9px;background:#fff;color:#222;padding:0 12px;font:500 13px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;outline:none}
.buyer-request-form select:focus{border-color:#7c879c;box-shadow:0 0 0 3px rgba(11,18,32,.06)}
.buyer-request-actions{margin-top:2px}

@media(max-width:760px){
  .account-access-page .workspace-auth-shell{padding-top:28px!important;padding-bottom:46px!important}
  .account-access-page .workspace-auth-card{padding:22px 18px!important}
  .account-access-page .workspace-auth-form{grid-template-columns:1fr}
  .account-access-page .workspace-auth-form .workspace-primary{width:100%!important}
  .seller-onboarding-grid{grid-template-columns:1fr}
  .seller-onboarding-card{padding:22px 18px}
  .seller-onboarding-actions .workspace-primary,.seller-onboarding-actions .workspace-secondary{width:100%!important}
  .buyer-request-head{display:block}
  .buyer-request-head>[data-close-new-request]{width:100%;margin-top:14px}
}

.how-closing{padding:36px 0 0}.how-wrap{max-width:1180px;margin:0 auto}.how-closing .workspace-note{margin:0}
.rm-invite-notice{margin:14px 0 0}.rm-invite-notice .rm-invite-link{display:inline-block;padding:4px 0;font-weight:700;color:inherit;text-decoration:underline}
.workspace-note .rm-inline-link{font-weight:700;color:inherit;text-decoration:underline;white-space:nowrap}
.rm-contact-overlay{position:fixed;inset:0;z-index:1200;background:rgba(11,18,32,.55);display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(2px)}
html.rm-contact-open{overflow:hidden}
.rm-contact-dialog{position:relative;width:min(520px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border:1px solid var(--rm-line,#e2e7ef);border-radius:18px;padding:26px 26px 22px;box-shadow:0 30px 80px rgba(11,18,32,.28)}
.rm-contact-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border-radius:10px;border:1px solid var(--rm-line,#e2e7ef);background:#fff;color:var(--rm-muted,#64708a);font-size:22px;line-height:1;cursor:pointer}
.rm-contact-close:hover{color:var(--rm-ink,#0b1220)}
.rm-contact-title{margin:0 26px 6px 0;font-size:24px;letter-spacing:-.4px;color:var(--rm-ink,#0b1220)}
.rm-contact-intro{margin:0 0 16px;font-size:14px;color:var(--rm-muted,#64708a)}
.rm-contact-form{display:grid;gap:12px}
.rm-contact-field{display:grid;gap:6px}
.rm-contact-label{font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--rm-ink-soft,#2a3446)}
.rm-contact-form input,.rm-contact-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--rm-line-strong,#c9d2df);border-radius:10px;padding:11px 12px;font:inherit;font-size:15px;color:var(--rm-ink,#0b1220);background:#fff}
.rm-contact-form input:focus,.rm-contact-form textarea:focus{outline:2px solid rgba(255,77,46,.35);border-color:var(--rm-accent,#ff4d2e)}
.rm-contact-form textarea{resize:vertical;min-height:120px}
.rm-contact-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.rm-contact-status{margin:0;min-height:18px;font-size:13px;color:var(--rm-muted,#64708a)}
.rm-contact-status.is-error{color:var(--rm-accent-text,#c23214)}
.rm-contact-status.is-ok{color:var(--rm-positive,#0f8a5f);font-weight:700}
.rm-contact-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:2px}
.rm-contact-send{border:0;border-radius:10px;padding:12px 18px;font:inherit;font-weight:800;color:#fff;background:linear-gradient(135deg,#e8421f,#d93a1c 55%,#c93516);cursor:pointer}
.rm-contact-send:disabled{opacity:.6;cursor:default}
.rm-contact-cancel{border:1px solid var(--rm-line-strong,#c9d2df);border-radius:10px;padding:12px 16px;font:inherit;font-weight:700;color:var(--rm-ink,#0b1220);background:#fff;cursor:pointer}
.rm-contact-privacy{margin:6px 0 0;font-size:12px;color:var(--rm-muted,#64708a)}
.rm-contact-privacy a{color:inherit}
@media(max-width:520px){.rm-contact-dialog{padding:22px 16px 18px;border-radius:14px}}
/* Header descriptor: same on every page (header-controls.css hides it with !important; higher specificity wins). */
.site-header .brand .brand-copy small{display:block!important}
@media(max-width:600px){.site-header .brand .brand-copy small{display:none!important}}
/* Legal pages: same content width as the rest of the portal. */
.legal-shell{max-width:1180px!important;width:min(1180px,calc(100% - 48px))!important;grid-template-columns:260px minmax(0,1fr)!important;gap:32px!important}
@media(max-width:860px){.legal-shell{grid-template-columns:1fr!important;width:calc(100% - 28px)!important}}
/* Unified step lists and FAQ (how-it-works, para-vendedores). */
.rm-steps{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.rm-steps li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;align-items:start}
.rm-step-num{width:32px;height:32px;border-radius:10px;background:var(--rm-dark,#0b1220);color:#fff;font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center}
.rm-steps strong{display:block;font-size:16px;line-height:1.3;color:var(--rm-ink,#0b1220);margin:4px 0 4px}
.rm-steps p{margin:0;font-size:14px;line-height:1.55;color:var(--rm-ink-soft,#2a3446)}
.rm-faq{display:grid;gap:0}
.rm-faq div{border-top:1px solid var(--rm-line,#e2e7ef);padding:14px 0}
.rm-faq div:first-child{border-top:0;padding-top:4px}
.rm-faq strong{display:block;font-size:15px;color:var(--rm-ink,#0b1220);margin-bottom:4px}
.rm-faq p{margin:0;font-size:14px;line-height:1.55;color:var(--rm-ink-soft,#2a3446)}
.price-card .rm-steps,.price-card .rm-faq{margin-top:14px}
/* Product tour carousel. */
.tour{margin:34px 0 6px}
.tour-head{max-width:720px;margin:0 0 18px}
.tour-head h2{margin:6px 0 8px;font-size:30px;letter-spacing:-.6px;color:var(--rm-ink,#0b1220)}
.tour-head p{margin:0;font-size:16px;line-height:1.55;color:var(--rm-ink-soft,#2a3446)}
.tour-frame{position:relative}
.tour-track{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;padding:4px 2px 6px}
.tour-track::-webkit-scrollbar{display:none}
.tour-slide{flex:0 0 100%;scroll-snap-align:start;margin:0}
.tour-slide img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:top;border-radius:16px;border:1px solid var(--rm-line,#e2e7ef);box-shadow:0 18px 46px rgba(11,18,32,.10);background:#fff}
.tour-slide figcaption{padding:14px 6px 0;font-size:14px;line-height:1.5;color:var(--rm-ink-soft,#2a3446)}
.tour-slide figcaption strong{display:block;font-size:16px;color:var(--rm-ink,#0b1220);margin-bottom:2px}
.tour-nav{position:absolute;top:calc(50% - 60px);width:44px;height:44px;border-radius:50%;border:1px solid var(--rm-line,#e2e7ef);background:#fff;color:var(--rm-ink,#0b1220);font-size:26px;line-height:1;cursor:pointer;box-shadow:0 8px 24px rgba(11,18,32,.14);display:flex;align-items:center;justify-content:center}
.tour-nav:hover{border-color:var(--rm-accent,#ff4d2e);color:var(--rm-accent-text,#c23214)}
.tour-prev{left:-14px}.tour-next{right:-14px}
.tour-dots{display:flex;gap:8px;justify-content:center;margin-top:14px}
.tour-dot{width:8px;height:8px;border-radius:4px;border:0;padding:0;background:var(--rm-line-strong,#c9d2df);cursor:pointer;transition:width .2s}
.tour-dot.is-active{width:24px;background:var(--rm-accent,#ff4d2e)}
@media(max-width:760px){.tour-nav{display:none}.tour-head h2{font-size:24px}}
/* Shared footer (footer.js): brand left, links right; stacks left on phones. Overrides legacy footer rules. */
footer.rm-footer{display:block!important;padding:0!important;margin:48px 0 0!important;border-top:1px solid var(--rm-line,#e2e7ef)!important;background:#fff!important;flex-direction:row!important}
.rm-footer-inner{max-width:1180px;margin:0 auto;padding:30px 24px 12px;display:flex;justify-content:space-between;align-items:flex-start;gap:28px;flex-wrap:wrap;box-sizing:border-box}
.rm-footer-brand .brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.rm-footer-brand .brand-copy b{font-size:20px;font-weight:800;letter-spacing:-.4px;color:var(--rm-ink,#0b1220)}
.rm-footer-tagline{margin:10px 0 0;font-size:13px;color:var(--rm-muted,#64708a)}
.rm-footer-links{display:flex;flex-wrap:wrap;gap:8px 22px;justify-content:flex-end;padding-top:6px}
.rm-footer-links a{font-size:13px;font-weight:600;color:var(--rm-ink-soft,#2a3446);text-decoration:none;padding:6px 0}
.rm-footer-links a:hover{color:var(--rm-accent-text,#c23214)}
.rm-footer-meta{max-width:1180px;margin:0 auto;padding:12px 24px 28px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--rm-muted,#64708a);box-sizing:border-box}
.rm-footer-linkedin{display:inline-flex;align-items:center;gap:8px;color:var(--rm-ink,#0b1220);font-weight:700;text-decoration:none;padding:6px 0}
.rm-footer-linkedin svg{width:16px;height:16px;fill:currentColor}
.rm-footer-linkedin:hover{color:var(--rm-accent-text,#c23214)}
@media(max-width:760px){.rm-footer-inner{flex-direction:column;align-items:flex-start;gap:18px;padding:26px 18px 8px}.rm-footer-links{justify-content:flex-start;gap:4px 18px;padding-top:0}.rm-footer-meta{flex-direction:column;align-items:flex-start;padding:8px 18px 26px}}
/* Homepage visual system: one container (1180), one h2 scale (52/780), one rhythm (88px), brand dark bands. */
.market-hero,.section-shell,.commercial-shell,.procurement-promo-shell{max-width:1180px!important}
.how,.trust,.faq{padding-top:88px!important;padding-bottom:88px!important}
.example,.seller-section,.commercial-section{padding:88px 0!important}
.commercial-section{background:#fff!important;border-top:1px solid var(--rm-line,#e2e7ef)!important;border-bottom:0!important}
.procurement-promo{padding:88px 24px!important;background:linear-gradient(112deg,#0b1220 0%,#0f1a2e 55%,#182338 100%)!important;color:#f4f6fa!important}
.seller-section{border-top:1px solid rgba(255,255,255,.08)!important}
.commercial-head h2,.procurement-promo h2{font-size:clamp(34px,4.5vw,52px)!important;font-weight:780!important;letter-spacing:-.043em!important;line-height:1.02!important}
@media(max-width:760px){
  .how,.trust,.faq{padding-top:64px!important;padding-bottom:64px!important}
  .example,.seller-section,.commercial-section{padding:64px 0!important}
  .procurement-promo{padding:64px 17px!important}
  .commercial-head h2,.procurement-promo h2{font-size:36px!important;letter-spacing:-.03em!important}
}
/* 404 */
.rm-404{max-width:640px;margin:40px auto 60px;background:#fff;border:1px solid var(--rm-line,#e2e7ef);border-radius:18px;padding:36px 34px;box-shadow:0 12px 38px rgba(11,18,32,.05)}
.rm-404 h1{margin:10px 0 12px;font-size:clamp(30px,4vw,44px);letter-spacing:-.8px;color:var(--rm-ink,#0b1220)}
.rm-404 p{margin:0 0 8px;font-size:16px;line-height:1.55;color:var(--rm-ink-soft,#2a3446)}
.rm-404 .rm-404-en{color:var(--rm-muted,#64708a);font-size:14px}
.rm-404 .workspace-actions{margin-top:20px}
