/* Cloud Collabo mobile refresh: layout-only; preserve original logo, copy and workflows. */
@media (max-width: 650px) {
 html,body,body:has(.market){background:#fff!important;overflow-x:hidden!important}
 header{width:100%;min-width:0;box-sizing:border-box;padding:8px 10px!important;gap:6px!important}
 header .logo{font-size:clamp(12px,3.5vw,16px)!important;gap:5px!important;min-width:0}
 header .logo svg{width:32px!important;height:38px!important}
 header .controls{gap:4px!important;min-width:0}
 header #cc-notification-bell{padding:7px 5px!important;background:#fff!important;border-color:#e5e7eb!important}
 header #language{width:72px!important;max-width:72px!important;font-size:12.65px!important;padding:7px 2px!important}
 header #sign{font-size:13.8px!important;white-space:nowrap!important;min-width:51px!important;padding:7px 6px!important}
 .market{background:#fff!important;box-shadow:none!important;border:0!important;border-radius:0!important;margin:0 auto!important;padding:12px 14px 32px!important;max-width:100%!important}
 .market nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;padding:5px!important;margin:0 0 16px!important;background:#fff!important;border:1px solid #e1e8e2!important;border-radius:12px!important;box-shadow:none!important}
 .market nav button{min-width:0!important;width:100%!important;padding:9px 2px!important;font-size:clamp(10px,2.6vw,12px)!important;line-height:1.2!important;border:0!important;background:transparent!important;color:#165b37!important;box-shadow:none!important;white-space:normal!important}
 .market nav .map-nav-button{background:transparent!important;color:#165b37!important;border:0!important;box-shadow:none!important}
 .market nav button[data-route="post"]{grid-column:1/-1;background:#087b35!important;color:white!important;border-radius:8px!important;padding:10px!important;font-size:14.95px!important}
 .market [data-guest-notice]{font-size:14.95px!important;line-height:1.5!important;margin:12px 0 16px!important;color:#475569!important}
 .market .role-banner.initiator{background:#f20b16!important;border:0!important;border-radius:11px!important;box-shadow:none!important;color:#fff!important;padding:12px!important;display:flex!important;align-items:center!important;gap:8px!important;margin:12px 0 18px!important}
 .market .initiator-banner-copy{color:#fff!important;font-size:16.1px!important;min-width:0!important}
 .market .initiator-banner-copy small{color:#fff!important;font-size:12.65px!important;line-height:1.35!important}
 .market .initiator-history-button{width:auto!important;max-width:100%!important;margin:0!important;padding:9px 10px!important;font-size:13.8px!important;background:#fff!important;color:#12643e!important;border:1px solid #fff!important;box-shadow:none!important}
 .market h2{margin:12px 0!important;line-height:1.2!important}
 .market input,.market select,.market textarea{max-width:100%!important}
 .market article{box-shadow:none!important;background:#fff!important}
 .market .picture,.market .share-highlights,[data-share-highlights]{display:none!important}
}
@media(max-width:390px){
 .market .role-banner.initiator{flex-wrap:wrap!important}
 .market .initiator-history-button{width:100%!important}
}


/* Readability pass: two-tier header, accessible tap targets and breathing room. */
@media(max-width:900px){
 header{height:auto!important;min-height:0!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;row-gap:12px!important;padding:16px 18px!important;background:#fff!important}
 header .logo{width:100%!important;flex:0 0 100%!important;justify-content:center!important;font-size:clamp(20px,4.7vw,26px)!important;gap:10px!important;line-height:1.2!important}
 header .logo svg{width:48px!important;height:52px!important}
 header .controls{width:100%!important;justify-content:center!important;flex-wrap:wrap!important;gap:10px!important}
 header #cc-notification-bell{min-height:44px!important;padding:10px 12px!important;font-size:17.25px!important;background:#fff9d7!important}
 header #language{width:auto!important;min-width:108px!important;max-width:150px!important;min-height:44px!important;font-size:17.25px!important;padding:9px 10px!important}
 header #sign,.controls button{min-height:44px!important;font-size:17.25px!important;padding:10px 13px!important;line-height:1.25!important}
 .market{width:100%!important;max-width:760px!important;padding:20px 18px 48px!important}
 .market nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:12px!important;margin-bottom:22px!important;border:1px solid #dce7df!important;border-radius:14px!important}
 .market nav button{min-height:48px!important;font-size:clamp(15px,3.6vw,18px)!important;line-height:1.25!important;padding:11px 8px!important;border-radius:9px!important}
 .market nav button[data-route="post"]{grid-column:1/-1!important;min-height:50px!important;font-size:17px!important}
 .market [data-guest-notice]{font-size:18.4px!important;line-height:1.65!important;margin:16px 0 24px!important}
 .market .role-banner.initiator{padding:18px!important;gap:12px!important;margin:18px 0 26px!important;flex-wrap:wrap!important}
 .market .initiator-banner-copy{font-size:19px!important;line-height:1.35!important}
 .market .initiator-banner-copy small{font-size:17.25px!important;line-height:1.5!important}
 .market .initiator-history-button{min-height:46px!important;font-size:17.25px!important;padding:11px 15px!important}
 .market h2{font-size:clamp(25px,5.4vw,32px)!important;line-height:1.25!important;margin:20px 0!important}
 .market p,.market label{font-size:18.4px!important;line-height:1.65!important}
 .market input,.market select,.market textarea{font-size:18.4px!important;min-height:48px!important;padding:12px!important}
}
@media(max-width:390px){
 header{padding:14px 10px!important}
 header .controls{gap:6px!important}
 header #language{min-width:96px!important}
 .market{padding:18px 12px 40px!important}
 .market nav{gap:7px!important;padding:8px!important}
 .market nav button{font-size:16.1px!important}
}


/* Balanced mobile layout: four equal nav items and slim role strips for BOTH roles. */
@media(max-width:900px){
 header{padding:14px 16px!important;row-gap:10px!important}
 header .logo{font-size:clamp(20px,4vw,25px)!important}
 header .controls{display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;gap:clamp(4px,1.5vw,10px)!important}
 header #cc-notification-bell{min-width:40px!important;min-height:42px!important;padding:8px!important;font-size:14.95px!important}
 header #language{min-width:0!important;width:clamp(76px,19vw,120px)!important;max-width:120px!important;min-height:42px!important;font-size:clamp(12px,2.7vw,15px)!important;padding:7px 4px!important}
 header #sign,.controls button{min-width:0!important;min-height:42px!important;font-size:clamp(12px,2.7vw,15px)!important;padding:8px clamp(5px,1.6vw,12px)!important;white-space:nowrap!important}
 .market nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;padding:8px 4px!important;margin-bottom:20px!important;background:#fff!important}
 .market nav button,.market nav button[data-route="post"]{grid-column:auto!important;min-height:58px!important;width:100%!important;padding:8px 3px!important;font-size:clamp(11px,2.7vw,15px)!important;line-height:1.25!important;border-radius:8px!important;white-space:normal!important;box-shadow:none!important}
 .market nav button[data-route="post"]{background:#fff!important;color:#12643e!important}
 .market nav .map-nav-button{background:#d21020!important;color:white!important}
 .market .role-banner.initiator,.market .role-banner.collaborator{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;min-height:70px!important;padding:11px 14px!important;margin:14px 0 20px!important;border-radius:12px!important;gap:10px!important;box-shadow:none!important}
 .market .role-banner.initiator{background:#f20b16!important;color:#fff!important;border:0!important}
 .market .role-banner.collaborator{background:#13843b!important;color:#fff!important;border:0!important}
 .market .initiator-banner-copy,.market .collaborator-banner-copy{flex:1 1 auto!important;min-width:0!important;font-size:clamp(14px,3.3vw,18px)!important;line-height:1.25!important;color:white!important}
 .market .initiator-banner-copy small,.market .collaborator-banner-copy small{display:block!important;margin-top:3px!important;font-size:clamp(11px,2.6vw,14px)!important;line-height:1.3!important;color:white!important}
 .market .initiator-history-button,.market .collaborator-history-button{flex:0 0 auto!important;width:auto!important;max-width:42%!important;min-height:42px!important;margin:0!important;padding:8px 10px!important;font-size:clamp(11px,2.6vw,14px)!important;line-height:1.25!important;background:#fff!important;color:#12643e!important;border:1px solid #fff!important;border-radius:8px!important;box-shadow:none!important}
}
@media(max-width:380px){
 header .controls{gap:4px!important}
 header #cc-notification-bell{min-width:35px!important;padding:6px!important}
 .market nav button,.market nav button[data-route="post"]{font-size:12.65px!important;padding:7px 2px!important}
 .market .role-banner.initiator,.market .role-banner.collaborator{padding:9px!important;gap:6px!important}
 .market .initiator-history-button,.market .collaborator-history-button{max-width:40%!important;padding:7px 5px!important}
}

/* Readability upgrade: ~30% larger, stronger account controls and navigation.
   Retains Cloud Collabo corporate colors, labels and mobile layout. */
header #language,
header .controls select{font-size:clamp(14px,1.1vw,17px)!important;font-weight:700!important;line-height:1.3!important}
header .controls button,
header #sign,
header #signout,
header #account,
header [data-account],
header [data-signout]{font-size:clamp(15px,1.15vw,18px)!important;font-weight:800!important;line-height:1.3!important}
.market nav button{font-size:clamp(16px,1.25vw,19px)!important;font-weight:800!important;line-height:1.3!important;letter-spacing:0!important}
@media(max-width:650px){
 header{flex-wrap:wrap!important;height:auto!important;min-height:0!important;justify-content:center!important;row-gap:9px!important}
 header .controls{flex-wrap:wrap!important;justify-content:center!important;gap:8px!important;max-width:100%!important}
 header #language{width:auto!important;max-width:none!important;min-width:92px!important;padding:9px 7px!important}
 header #sign{min-width:0!important;padding:9px 11px!important}
 header .controls button{padding:9px 11px!important}
 .market nav{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px!important}
 .market nav button{font-size:clamp(15px,3.8vw,18px)!important;padding:12px 8px!important;min-height:46px!important;white-space:normal!important}
 .market nav button[data-route="post"]{grid-column:1/-1!important}
}

/* Clerk sign-up dialog: boost text legibility by 15% without altering brand. */
.cl-modalContent .cl-headerTitle,
.cl-signUp-root .cl-headerTitle{font-size:clamp(23px,2.4vw,30px)!important;font-weight:800!important}
.cl-modalContent .cl-headerSubtitle,
.cl-signUp-root .cl-headerSubtitle{font-size:18px!important;line-height:1.5!important}
.cl-modalContent .cl-formFieldLabel,
.cl-modalContent .cl-formFieldInput,
.cl-modalContent .cl-formButtonPrimary,
.cl-modalContent .cl-footerActionText,
.cl-modalContent .cl-footerActionLink,
.cl-signUp-root .cl-formFieldLabel,
.cl-signUp-root .cl-formFieldInput,
.cl-signUp-root .cl-formButtonPrimary,
.cl-signUp-root .cl-footerActionText,
.cl-signUp-root .cl-footerActionLink{font-size:17px!important;line-height:1.4!important}
.cl-modalContent .cl-formFieldHintText,
.cl-modalContent .cl-formFieldErrorText,
.cl-modalContent .cl-dividerText,
.cl-signUp-root .cl-formFieldHintText,
.cl-signUp-root .cl-formFieldErrorText,
.cl-signUp-root .cl-dividerText{font-size:15px!important;line-height:1.4!important}

/* Team chat threaded replies */
#chat-reply-preview{border-left:4px solid #15803d;background:#effaf1;padding:10px 12px;margin:8px 0;border-radius:6px;overflow-wrap:anywhere}
#chat-reply-preview p{margin:4px 0;font-size:0.95em}
#chat-reply-preview button,.cc-reply-btn{font-size:0.95em;min-height:34px;cursor:pointer}
.cc-reply-quote{display:block;background:#f1f5f9;border-left:3px solid #15803d;padding:6px 10px;margin:5px 0;cursor:pointer;overflow-wrap:anywhere}
#chat-messages [data-chat-message]{overflow-wrap:anywhere}

.cc-edited-label{background:#fde047!important;color:#422006!important;font-size:0.85em;font-weight:800;padding:2px 6px;border-radius:4px}.cc-edit-form{padding:8px;background:#fffbeb;border-radius:7px}.cc-edit-form textarea{width:100%;min-height:70px;font:inherit}.cc-edit-btn{font-size:0.95em;min-height:34px}
