/* Approved map-workspace-v2 visual system, adapted to real Tencent map + existing routes. */
body.modern-workspace{--ink:#24242e;--muted:#787582;--primary:#6356e5;--line:#e9e8ef;display:grid!important;grid-template-columns:76px minmax(0,1fr);grid-template-rows:29px 78px minmax(0,1fr) auto;height:100dvh!important;min-height:0;margin:0;overflow:hidden!important;background:#f8f9fc;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif!important;color:#24242e}
.modern-workspace>.prototype-strip{grid-column:1/-1;grid-row:1;position:relative;z-index:30;display:flex;align-items:center;justify-content:flex-start;gap:16px;min-height:0;padding:0 24px!important;background:#f0eff9!important;border:0!important;color:#817991!important;font-size:10px!important;line-height:1.5;height:29px;white-space:nowrap;overflow:hidden}.prototype-strip>span:first-child{font-weight:650;letter-spacing:.06em}.prototype-strip>a:first-of-type{margin-left:auto}.prototype-strip #live-notification{font-size:10px;margin-left:4px}
.modern-workspace>#original-header.modern-header{grid-column:2;grid-row:2;padding:0 30px;display:flex;align-items:center;justify-content:space-between;min-height:0;height:78px;border-bottom:1px solid #e9e8ef;background:#fff;position:relative;z-index:20;gap:16px;box-shadow:none}
.modern-wordmark{font-size:23px;font-weight:650;letter-spacing:-1px;color:#24242e;display:flex;align-items:center;white-space:nowrap}.modern-wordmark span{font-size:11px;color:#93909d;font-weight:400;letter-spacing:0;border-left:1px solid #e8e5ef;margin-left:21px;padding-left:21px}.modern-header-actions{display:flex;align-items:center;gap:24px;font-size:12px}.modern-header-actions a{color:#686271}.modern-header-actions button{background:#25232f!important;border:1px solid #25232f!important;border-radius:10px!important;color:#fff!important;padding:11px 18px;font-size:12px;min-height:40px}
.dashou-rail{grid-column:1;grid-row:2/5;display:flex;align-items:center;flex-direction:column;border-right:1px solid #e9e8ef;background:#fff;padding:22px 0 18px;z-index:24}.rail-logo{width:37px;height:37px;display:grid;place-items:center;border-radius:12px;background:#24222e;color:white;font-size:18px;font-weight:650;box-shadow:0 4px 9px #24222e18}.dashou-rail nav{display:grid;gap:12px;margin-top:35px}.dashou-rail nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#94909f;width:48px;height:55px;border-radius:12px;font-size:9px;text-decoration:none}.dashou-rail svg{width:20px;height:20px}.dashou-rail nav a[aria-current=page]{background:#efedfc;color:#6356e5}.dashou-rail nav a:hover{background:#f6f4fc;color:#6356e5}.rail-help{margin-top:auto;color:#9690a1;padding:10px}
.modern-workspace>#marketplace{grid-column:2;grid-row:3;min-height:0;overflow:auto!important;background:#f8f9fc;color:#24242e}.modern-workspace>#marketplace.map-market-root{overflow:hidden!important}.modern-workspace>.product-footer{grid-column:2;grid-row:4;padding:9px 24px!important;font-size:9px!important;line-height:1.5;gap:10px;min-height:32px;border-top:1px solid #eceaf1}.modern-workspace>.product-footer nav{gap:16px}
.modern-workspace #marketplace.runtime{font-family:inherit;--ink:#24242e;--muted:#787582;--primary:#6356e5;--accent:#6356e5;--line:#e9e8ef;--soft:#f5f4fa}.modern-workspace #marketplace.runtime .page{padding:38px;max-width:1160px}.modern-workspace #marketplace h1{color:#282430;font-weight:650;letter-spacing:-.05em;font-size:27px}.modern-workspace #marketplace.runtime h2{color:#322c3b;font-size:18px}.modern-workspace #marketplace.runtime .page-heading p{color:#8a8295;font-size:12px}.modern-workspace #marketplace.runtime .card{border-color:#e9e6ef;border-radius:13px;box-shadow:none}.modern-workspace #marketplace.runtime .primary,#form-dialog .primary{background:#6356e5;border-color:#6356e5;color:white;box-shadow:none}.modern-workspace #marketplace.runtime button{font-size:12px;border-radius:9px;color:#696171;border-color:#e5e1ec}.modern-workspace #marketplace.runtime button.primary{color:white}.modern-workspace #marketplace.runtime .muted{color:#857d91}.modern-workspace #marketplace.runtime .scope{background:#f7f6fa;border-color:#efedf3;color:#696171}.modern-workspace .inbox-list{border-color:#e9e6ef}.modern-workspace .notice-icon{background:#f1eefd;color:#7967cb}.modern-workspace .notice-content strong{font-weight:550}.modern-workspace .notice-row{padding:23px}.modern-workspace .inbox-aside{background:#faf9fd!important}.modern-workspace .cooperation-filters button[aria-pressed=true]{color:#6356e5!important}
/* Full-height, independently scrolling discovery column. */
.modern-workspace .map-market{height:100%;min-height:0;display:block}.modern-workspace .map-workspace{height:100%;display:grid;grid-template-columns:360px minmax(0,1fr)}.modern-workspace .map-results{padding:0;display:flex;flex-direction:column;min-height:0;overflow:hidden;background:#fff;border-right:1px solid #e9e8ef}.map-search-area{padding:25px 24px 12px;flex-shrink:0}.map-search-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}#marketplace .map-search-title h1{font-size:22px;font-weight:650;white-space:nowrap;margin:0}.map-city-switch{position:relative;font-size:12px;color:#7b7389}.map-city-switch summary{list-style:none;cursor:pointer;padding:8px 10px;border-radius:7px;background:#f6f5fa;white-space:nowrap}.map-city-switch summary::-webkit-details-marker{display:none}.modern-workspace .map-cities{position:absolute;right:0;top:100%;display:grid;grid-template-columns:1fr 1fr;z-index:12;width:160px;padding:6px;background:#fff;border:1px solid #e7e3ef;box-shadow:0 8px 28px #2d24331a;border-radius:10px;margin:6px 0}.modern-workspace #marketplace .map-cities button{min-height:36px;border:0;font-size:12px;background:transparent}.modern-workspace #marketplace .map-cities [aria-pressed=true]{background:#f0edfc;color:#6356e5;box-shadow:none}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.modern-workspace .map-results form>div{margin-bottom:0}.modern-workspace .map-search-input{display:flex;align-items:center;gap:9px;background:#f5f6f9;border:1px solid #e9eaf0;border-radius:10px;padding:8px 10px!important;margin-bottom:18px!important}.map-search-input>span{color:#a39aad;font-size:23px;line-height:1}.modern-workspace #marketplace .map-search-input input{border:0;background:transparent;padding:4px!important;box-shadow:none;font-size:12px;line-height:1.5;height:28px}.modern-workspace #marketplace .map-search-input button{padding:2px 8px;min-height:28px;background:transparent;border:0;color:#9c94a7}.modern-workspace .map-mode-tabs{padding:4px;background:#f4f3f8;border:1px solid #eeeaf3;border-radius:10px;margin-bottom:14px!important;gap:3px!important}.modern-workspace #marketplace .map-mode-tabs button{background:transparent;min-height:36px;padding:8px;font-size:12px;color:#92899e;border:0;font-weight:500}.modern-workspace #marketplace .map-mode-tabs [aria-pressed=true]{background:#fff!important;box-shadow:0 2px 6px #211b4b0b;color:#6356e5;font-weight:650}.modern-workspace #marketplace .map-mode-tabs [data-map-mode=demands][aria-pressed=true]{color:#167e64}
.modern-workspace .map-filter-row{display:flex;align-items:center;justify-content:space-between;margin-top:13px!important;font-size:11px;gap:16px}.modern-workspace #marketplace .map-filter-row select{width:125px;min-width:0;border:1px solid #e9e5ef;background:#fff;padding:7px 10px;font-size:11px;box-shadow:none;color:#8c8299}.map-filter-row a{color:#867a98;white-space:nowrap}.map-category-tabs{display:flex;overflow:auto;gap:6px;margin-top:14px;scrollbar-width:none;padding-bottom:3px}.modern-workspace #marketplace .map-category-tabs button{font-size:10px;min-height:28px;padding:5px 9px;border-radius:6px;white-space:nowrap;background:white;color:#91889e}.modern-workspace #marketplace .map-category-tabs [aria-pressed=true]{background:#f5f2ff;border-color:#ded6fc;color:#7967ca}.map-result-summary{display:flex;align-items:center;justify-content:space-between;padding:8px 24px 12px;gap:8px;flex-shrink:0}.modern-workspace #marketplace .map-results h2{font-size:11px!important;color:#8f859b!important;font-weight:450!important;margin:0}.modern-workspace #marketplace #map-focus-clear{font-size:10px;padding:5px;min-height:24px;border:0;color:#7967ca}
.modern-workspace #real-service-list{padding:0 14px 16px;overflow:auto;flex:1;scrollbar-width:thin;min-height:0}.modern-workspace .map-service-card{border:1px solid transparent;border-bottom-color:#eeebf2;border-radius:10px;padding:18px 12px;margin-bottom:2px;box-shadow:none}.modern-workspace .map-service-card:hover{background:#faf9ff;border-color:#e8e1f7;box-shadow:none}.modern-workspace .map-service-card.is-selected{border-color:#d4cdfd;background:#f9f8ff;box-shadow:none}.modern-workspace .map-person{border:0;width:37px;height:37px;border-radius:12px;background:#ebe6ff;color:#7967bf;font-size:15px}.modern-workspace .demand-person{background:#e4f1e9;color:#398777}.modern-workspace #marketplace .map-select-service{gap:11px;align-items:center;min-height:40px}.modern-workspace .map-select-service strong{font-size:14px;color:#373040;line-height:1.65;letter-spacing:-.02em;font-weight:600}.modern-workspace .map-select-service small{font-size:10px;color:#9c91a8;margin:0 0 5px}.modern-workspace .map-select-service>span:last-child:not(:nth-child(2)){font-size:13px;color:#a99fb7}.modern-workspace .map-service-card>p{font-size:11px;color:#857a93;line-height:1.85;margin:12px 0}.modern-workspace .map-service-card>div{border:0;padding:0;margin-top:12px;font-size:10px;color:#a093ae}.modern-workspace .map-service-card>div strong{color:#67507d;font-size:12px;font-weight:550}.map-list-footer{border-top:1px solid #eeeaf3;background:#fdfcfe;color:#a297af;font-size:10px;line-height:1.7;padding:12px 24px;flex-shrink:0}.map-list-loading{padding:20px;font-size:12px;color:#9c90aa}.map-no-results{text-align:center;padding:28px 12px!important}.map-no-results h3{font-size:14px!important;margin:16px 0}.map-no-results p{font-size:11px;color:#9a8da8}.empty-symbol{width:48px;height:48px;display:grid;place-items:center;margin:auto;background:#f5f2fa;border:1px solid #eae4f1;border-radius:14px;color:#a28abe;font-size:25px}.empty-links{display:flex;gap:14px;justify-content:center;margin-top:10px}.empty-links a{font-size:11px}
/* The SDK supplies geography; overlays never cover attribution. */
.modern-workspace .map-stage{min-height:0;background:#eff1ed}.modern-workspace .map-status-strip{top:23px;left:24px;right:82px;gap:8px;flex-wrap:wrap}.modern-workspace .map-status-strip span{padding:10px 13px;background:#fffffff2;border:1px solid #e6e5e1;color:#8b8197;box-shadow:0 3px 12px #31392b06;font-size:10px;border-radius:9px;max-width:70%}.modern-workspace #marketplace .map-status-strip button{font-size:10px;min-height:33px;padding:7px 10px;box-shadow:0 3px 12px #31392b06;color:#9687a1}.modern-workspace .map-entry-actions{position:absolute;top:72px;left:24px;z-index:2;gap:8px;margin:0}.modern-workspace #marketplace .map-entry-actions button{font-size:11px;min-height:36px;padding:8px 12px;background:#fff;box-shadow:0 3px 12px #31392b06;color:#81708d}.modern-workspace #marketplace .map-entry-actions .primary{background:#292530;border-color:#292530;color:white}.modern-workspace .map-legend{left:24px;bottom:72px;background:#fffffff0;display:flex;gap:13px;padding:9px 12px;border-radius:8px;font-size:9px;border:1px solid #e4e7df;color:#908b91;align-items:center;max-width:calc(100% - 48px);flex-wrap:wrap;pointer-events:none}.map-legend span:before{content:'';display:inline-block;width:6px;height:6px;background:#6356e5;border-radius:50%;margin-right:6px}.map-legend .legend-demand:before{background:#167e64}.map-legend small{font-size:9px}
.modern-workspace .map-selected{right:22px;top:165px;bottom:auto;width:310px;max-height:calc(100% - 205px);background:white;border:1px solid #e6e0ee;border-radius:16px;box-shadow:0 16px 50px #34324916;padding:0;display:flex;flex-direction:column;overflow:hidden}.map-detail-scroll{padding:22px 24px 12px;overflow:auto;min-height:0}.map-detail-footer{padding:16px 24px;border-top:1px solid #eeebf2;background:#fff;flex-shrink:0}.modern-workspace .map-detail-top{font-size:10px;color:#a292af;margin-bottom:17px}.modern-workspace #marketplace .map-detail-top button{border:0;background:#f6f4f9;border-radius:50%;width:26px;height:26px;min-height:26px;padding:0;font-size:18px;color:#a092ad}.modern-workspace #marketplace .map-selected h2{font-size:20px!important;line-height:1.5;margin:15px 0 9px;font-weight:600;letter-spacing:-.04em}.modern-workspace .map-provider,.map-detail-scroll>p{font-size:11px;color:#93829f;line-height:1.85}.modern-workspace .map-selected h3{font-size:11px!important;font-weight:500;color:#9d8cab;margin:20px 0 9px}.modern-workspace .map-delivery{font-size:12px;color:#7d6e8a;line-height:1.9;max-height:none}.modern-workspace .map-price{padding:0;margin:0 0 14px;border:0;color:#49374f;font-size:18px;font-weight:600}.modern-workspace #marketplace .map-detail-footer button.primary{width:100%;font-size:12px;background:#6356e5;border-color:#6356e5;color:white;padding:11px}.modern-workspace .map-detail-actions{gap:10px}.modern-workspace .map-detail-actions a{font-size:10px;color:#8a72a6;text-align:center}.map-detail-footer>small{display:block;text-align:center;color:#a58daf;font-size:9px;margin-top:10px;line-height:1.6}.modern-workspace #map-pick-guide{top:122px;max-width:420px;border:1px solid #cfc3f1;color:#584365;box-shadow:0 10px 30px #30203c18;background:#fff;border-radius:14px;font-size:12px;z-index:7}
@media(max-width:1150px){.modern-workspace .map-workspace{grid-template-columns:315px minmax(0,1fr)}.map-search-area{padding:22px 18px 12px}#marketplace .map-search-title h1{font-size:19px}.modern-wordmark span{display:none}.modern-workspace .map-selected{width:285px;right:16px}.modern-workspace .map-status-strip{left:18px;right:74px}.modern-workspace .map-entry-actions{left:18px}.modern-workspace>.product-footer>span{display:none}}
@media(max-width:760px){body.modern-workspace{display:flex!important;flex-direction:column;height:100dvh!important;min-height:0;padding-bottom:62px;overflow:hidden!important}.modern-workspace>.prototype-strip{height:28px;min-height:28px;padding:0 12px!important;gap:8px;font-size:9px!important}.prototype-strip>span:nth-child(2){display:none}.modern-workspace>#original-header.modern-header{height:63px;min-height:63px;padding:0 18px;flex-wrap:nowrap}.modern-wordmark{font-size:21px}.modern-header-actions{gap:14px;font-size:11px}.modern-header-actions button{padding:9px 12px!important;min-height:36px!important;font-size:11px}.modern-workspace>#marketplace{flex:1;overflow:auto!important}.modern-workspace>#marketplace.map-market-root{overflow:auto!important}.modern-workspace>.product-footer{display:none!important}.dashou-rail{position:fixed;left:0;right:0;bottom:0;height:62px;width:100%;flex-direction:row;padding:4px 16px;border-right:0;border-top:1px solid #e9e8ef;justify-content:center}.rail-logo,.rail-help{display:none}.dashou-rail nav{display:flex;justify-content:space-around;gap:0;width:100%;margin:0}.dashou-rail nav a{height:52px;width:62px;font-size:9px;gap:4px}.dashou-rail svg{width:18px;height:18px}.modern-workspace .map-market{height:auto;min-height:100%}.modern-workspace .map-workspace{display:flex;flex-direction:column;height:auto}.modern-workspace .map-stage{order:0;flex:none;height:44dvh;min-height:330px}.modern-workspace .map-results{order:1;overflow:visible;flex:none;border:0;position:relative;border-radius:18px 18px 0 0;margin-top:-12px;z-index:3;box-shadow:0 -4px 20px #23262b06;padding-top:8px}.modern-workspace .map-results:before{content:'';display:block;width:32px;height:4px;border-radius:5px;background:#e1dbe9;margin:0 auto}.map-search-area{padding:20px}#marketplace .map-search-title h1{font-size:21px}.modern-workspace #real-service-list{overflow:visible}.modern-workspace .map-status-strip{top:14px;left:14px;right:100px}.modern-workspace .map-status-strip span{max-width:63%;font-size:9px;padding:9px}.modern-workspace #marketplace .map-status-strip button{font-size:9px;padding:6px;min-height:32px}.modern-workspace .map-entry-actions{top:63px;left:14px;gap:6px;flex-wrap:wrap}.modern-workspace #marketplace .map-entry-actions button{font-size:10px;min-height:34px;padding:8px}.modern-workspace .map-selected{position:fixed;left:10px;right:10px;top:auto;bottom:72px;width:auto;max-height:68dvh;border-radius:17px;z-index:15;box-shadow:0 -10px 60px #2c244b2b;padding:0}.map-detail-scroll{padding:18px 22px 10px}.map-detail-footer{padding:14px 22px}.modern-workspace #marketplace .map-selected h2{font-size:19px!important}.modern-workspace .map-legend{bottom:65px;left:14px;font-size:8px;padding:7px;gap:8px;max-width:calc(100% - 28px)}.map-legend small{display:none}.modern-workspace #map-pick-guide{top:108px;left:14px;right:14px;font-size:11px;padding:14px}.modern-workspace #marketplace.runtime .page{padding:25px 18px 40px}.modern-workspace #marketplace h1{font-size:24px}.modern-workspace #marketplace.runtime .card{padding:20px}#status{bottom:76px!important}#form-dialog{max-height:80dvh}}

.modern-workspace #service-map-canvas{isolation:isolate;z-index:0}
@media(max-width:760px){.modern-workspace .map-stage{isolation:auto}}

/* Round 1: readable task information without changing the approved visual hierarchy. */
.modern-workspace .map-select-service small{font-size:12px;color:#6f657b}
.modern-workspace .map-service-card>p{font-size:13px;color:#6f657b;line-height:1.8}
.modern-workspace .map-service-card>div{font-size:12px;color:#6f657b}
.modern-workspace .map-provider,.modern-workspace .map-detail-scroll>p{font-size:13px;color:#6f657b}
.modern-workspace .map-delivery{font-size:13px;color:#6f657b}
.modern-workspace .map-selected h3{font-size:12px!important;color:#6f657b}
.modern-workspace .map-detail-top{font-size:12px;color:#6f657b}
.modern-workspace .map-detail-footer>small{font-size:12px;color:#6f657b}
.modern-workspace .map-list-footer{font-size:12px;color:#6f657b}
.modern-workspace .map-no-results p{font-size:13px;color:#6f657b}
.modern-workspace #marketplace .map-results h2{font-size:12px!important;color:#6f657b!important}
.modern-workspace .dashou-rail nav a{color:#6f657b}
.modern-workspace .dashou-rail nav a[aria-current=page]{color:#6356e5}
.modern-workspace :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #6356e5;outline-offset:3px}

/* A short desktop window keeps filters and results reachable by scrolling the column. */
@media(min-width:761px) and (max-height:700px){
 .modern-workspace .map-results{overflow:auto}
 .modern-workspace #real-service-list{overflow:visible;flex:none}
 .modern-workspace .map-search-area{padding-top:16px}
 .modern-workspace .map-selected{top:112px;max-height:calc(100% - 126px)}
 .modern-workspace .map-detail-scroll{padding:16px 20px 10px}
 .modern-workspace .map-detail-footer{padding:12px 20px}
}
@media(min-width:761px) and (max-height:560px){
 .modern-workspace .map-selected{position:fixed;top:110px;bottom:42px;max-height:calc(100dvh - 152px)}
}
@media(max-width:760px){
 body.modern-workspace{padding-bottom:calc(62px + env(safe-area-inset-bottom,0px))}
 .modern-workspace .dashou-rail{height:calc(62px + env(safe-area-inset-bottom,0px));padding-bottom:calc(4px + env(safe-area-inset-bottom,0px))}
 .modern-workspace .map-selected{bottom:calc(72px + env(safe-area-inset-bottom,0px));max-height:calc(68dvh - env(safe-area-inset-bottom,0px))}
 .modern-workspace #marketplace :is(input,select,textarea),.modern-workspace #form-dialog :is(input,select,textarea){font-size:16px!important}
 .modern-workspace #marketplace .map-search-input input{height:30px;min-width:0}
 .modern-workspace #marketplace .map-filter-row select{width:150px}
 .modern-workspace #marketplace .map-detail-top button{width:40px;height:40px;min-height:40px;flex-shrink:0}
 .modern-workspace #status{bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
}
/* Round 2: preserve compact labels while giving touch actions a usable hit area. */
@media(max-width:760px){
 .modern-workspace #marketplace .map-mode-tabs button,
 .modern-workspace #marketplace .map-category-tabs button,
 .modern-workspace #marketplace .map-cities button,
 .modern-workspace #marketplace .map-entry-actions button,
 .modern-workspace #marketplace .map-status-strip button,
 .modern-workspace #marketplace .map-detail-footer button.primary{min-height:44px}
 .modern-workspace #marketplace .map-detail-top button{width:44px;height:44px;min-height:44px}
 .modern-workspace #marketplace .map-search-input button{min-width:44px;min-height:44px}
 .modern-workspace .map-city-switch summary{min-height:44px;display:flex;align-items:center}
 .modern-workspace .map-entry-actions{top:68px}
}
/* Round 3: keep the map provider attribution entirely visible above the results. */
@media(max-width:760px){.modern-workspace .map-results{margin-top:0}}
/* Explicit AI scenario layer, separate from real supply/demand. */
.map-ai-layer{position:absolute;left:24px;bottom:124px;z-index:4;display:flex;align-items:center;gap:12px;padding:10px 12px;background:#fffffff5;border:1px solid #d8c2e8;border-radius:12px;box-shadow:0 4px 16px #35214912;max-width:calc(100% - 120px)}.map-ai-layer strong{display:block;font-size:12px;font-weight:600;color:#654080}.map-ai-layer small{display:block;font-size:11px;color:#76677f;margin-top:4px}.modern-workspace #marketplace .map-ai-layer button{white-space:nowrap;min-height:38px;padding:7px 10px;font-size:12px;border:1px solid #ddcce9;background:#f8f1fc;color:#654080;border-radius:8px}.map-ai-layer button[aria-pressed=false]{background:#fff!important}.map-ai-layer button:focus-visible{outline:2px solid #7744ac;outline-offset:2px}@media(max-width:760px){.map-ai-layer{left:12px;bottom:68px;max-width:calc(100% - 24px);padding:8px 10px;gap:8px}.map-ai-layer strong{font-size:11px}.map-ai-layer small{font-size:10px}.modern-workspace #marketplace .map-ai-layer button{min-height:40px;padding:6px 8px;font-size:11px}.modern-workspace .map-stage:has(.map-ai-layer) .map-legend{display:none}}

@media(max-width:760px){.modern-workspace .map-stage:has(.map-ai-layer){min-height:460px;height:55dvh}}
/* Keep real supply and the next action visible before the mobile map. */
.map-mobile-summary{display:none}
@media(max-width:760px){
 .modern-workspace .map-mobile-summary{display:block;order:-1;flex:none;background:white;padding:12px 16px;border-bottom:1px solid #ece8f3}
 .map-mobile-modes{display:flex;gap:5px;padding:4px;background:#f2eff8;border-radius:12px}
 .modern-workspace #marketplace .map-mobile-modes button{flex:1;min-height:40px;border:0;background:transparent;font-size:13px;color:#777083}
 .modern-workspace #marketplace .map-mobile-modes button[aria-pressed=true]{background:#fff;color:#6650d5;box-shadow:0 2px 8px #3222510a;font-weight:600}
 .modern-workspace #marketplace .map-mobile-modes button[data-mobile-mode=demands][aria-pressed=true]{color:#13775c}
 .map-mobile-overview{display:flex;gap:8px;align-items:center;justify-content:space-between;padding-top:10px;font-size:11px;color:#736a83;min-height:32px}
 .map-mobile-overview a{color:#604cca;font-weight:600;min-height:30px;display:flex;align-items:center}
 .modern-workspace .map-stage,.modern-workspace .map-stage:has(.map-ai-layer){min-height:270px;height:32dvh;max-height:340px}
 .modern-workspace .map-ai-layer{display:none}
 .modern-workspace .map-stage:has(.map-ai-layer) .map-legend{display:flex;bottom:30px}
 .modern-workspace .map-search-area .map-mode-tabs,.modern-workspace .map-search-title h1{display:none!important}
 .modern-workspace .map-search-title{justify-content:flex-end;margin-bottom:10px}
 .modern-workspace .map-search-area{padding:12px 18px}
 .modern-workspace #marketplace .map-results .empty-links button{font-size:12px;min-height:42px;margin-top:8px;color:#604cca}
}

/* Keep search scope explicit and leave room for real results. */
.modern-workspace .map-active-filters{display:flex;flex-wrap:wrap;gap:6px;padding:0 20px 10px;flex-shrink:0}
.modern-workspace .map-active-filters[hidden]{display:none}
.modern-workspace #marketplace .map-active-filters button{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:32px;padding:5px 9px;border:1px solid #e4dff0;border-radius:7px;background:#f7f5fc;color:#5b526b;font-size:11px}
.modern-workspace .map-active-filters button span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.modern-workspace #marketplace .map-active-filters .map-filter-reset{border-color:transparent;background:transparent;color:#6356b8}
.modern-workspace #marketplace .map-no-results{padding:14px 10px!important;text-align:left}
.modern-workspace .map-no-results .empty-symbol{display:none}
.modern-workspace #marketplace .map-no-results h3{margin:0 0 8px;font-size:15px!important;color:#403748}
.modern-workspace .map-no-results p{margin:0 0 10px;color:#72677f;line-height:1.65}
.modern-workspace .map-no-results .empty-links{justify-content:flex-start;flex-wrap:wrap;gap:8px 14px}
@media(min-width:761px){
 .modern-workspace .map-search-area{padding:18px 20px 8px}
 .modern-workspace .map-search-title{margin-bottom:12px}
 .modern-workspace .map-search-input{margin-bottom:10px!important}
 .modern-workspace .map-mode-tabs{margin-bottom:8px!important}
 .modern-workspace .map-filter-row{margin-top:8px!important}
 .modern-workspace .map-category-tabs{margin-top:8px}
 .modern-workspace #marketplace #ai-explore-entry{min-height:34px;margin-top:8px;padding:7px 10px}
 .modern-workspace .map-result-summary{padding:6px 20px 8px}
 .modern-workspace .map-list-footer{padding:8px 20px}
}
@media(max-width:760px){.modern-workspace #marketplace .map-active-filters button{min-height:40px}}

.modern-workspace .map-no-results .empty-links a{margin-top:0;min-height:32px;display:inline-flex;align-items:center}
@media(min-width:761px) and (max-height:800px){.modern-workspace .map-category-tabs{flex-wrap:nowrap}.modern-workspace #marketplace #ai-explore-entry{display:none}}

/* Desktop task surfaces: aligned columns and visible actions. */
@media (min-width: 1024px) {
 .modern-workspace #marketplace.runtime .page{max-width:1320px;padding:36px 44px;margin-inline:auto}
 .modern-workspace #marketplace .columns{align-items:start;gap:24px}
 .modern-workspace #marketplace .columns>aside.card{margin-top:0}
 .modern-workspace #marketplace .page-heading{margin-bottom:26px}
 .modern-workspace #marketplace .page-heading h1{font-size:28px;letter-spacing:-.025em}
 .modern-workspace .map-workspace{grid-template-columns:390px minmax(0,1fr)}
 .modern-workspace #marketplace .need-page .columns{grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr)}
 .modern-workspace #marketplace .need-composer{padding:30px}
 .modern-workspace #marketplace .need-reference{padding:28px;background:#fff}
 .modern-workspace #marketplace .need-reference p{line-height:1.8;color:#797181;margin:12px 0 20px}
 .modern-workspace #marketplace .need-reference h3{font-size:16px}
 .modern-workspace #marketplace .need-continue{border-top:1px solid #edeaf2;margin-top:28px;padding-top:24px;display:flex;align-items:center;gap:18px}
 .modern-workspace #marketplace .need-continue .primary{min-height:46px;padding:10px 22px;font-size:14px}
 .modern-workspace #marketplace .need-continue p{font-size:12px;margin:0}
 .modern-workspace #marketplace .journey-progress{display:grid;grid-template-columns:minmax(180px,1fr) minmax(380px,1.7fr);gap:8px 28px;margin-bottom:24px;padding:22px 26px}
 .modern-workspace #marketplace .journey-progress h2{margin:0}
 .modern-workspace #marketplace .journey-progress>p{grid-column:1;margin:0;font-size:13px}
 .modern-workspace #marketplace .journey-progress>ol{grid-column:2;grid-row:1/4;align-self:center;margin:0;display:flex;justify-content:space-between;gap:8px}
 .modern-workspace #marketplace .journey-progress>p.muted{font-size:11px}
 .modern-workspace #form-dialog{width:min(720px,calc(100vw - 120px));max-height:calc(100dvh - 80px);padding:28px;border-radius:16px}
 .modern-workspace #form-dialog .dialog-head{position:sticky;top:-28px;background:#fff;z-index:2;padding-top:16px;padding-bottom:16px;border-bottom:1px solid #edeaf2}
 .modern-workspace #form-dialog form>.actions:has(>button[type=submit]){position:sticky;bottom:-28px;background:#fff;padding:18px 0;border-top:1px solid #edeaf2;margin-top:22px;z-index:2}
 .modern-workspace #form-dialog textarea{min-height:144px;resize:vertical}
 .modern-workspace #marketplace button:focus-visible,.modern-workspace #marketplace a:focus-visible,.modern-workspace #form-dialog button:focus-visible{outline:3px solid #b4a8fa;outline-offset:3px}
}
.need-modes{border:0;margin:24px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.need-modes legend{font-size:14px;font-weight:600;margin-bottom:12px}
.modern-workspace #marketplace .need-modes label{display:flex;gap:12px;align-items:start;border:1px solid #e5e1ed;border-radius:10px;padding:18px 14px;margin:0;cursor:pointer;background:#fff}
.modern-workspace #marketplace .need-modes label:has(input:checked){border-color:#7967dc;background:#f6f3ff;box-shadow:0 0 0 1px #7967dc}
.modern-workspace #marketplace .need-modes input{width:16px;height:16px;min-height:0;margin:3px 0 0;accent-color:#6356e5;flex-shrink:0}
.need-modes strong{display:block;font-size:14px;font-weight:600}.need-modes small{display:block;font-size:12px;color:#80778a;margin-top:8px;line-height:1.65}

@media(min-width:1024px){.modern-workspace #form-dialog:has(input[type=password]){width:460px}}

.modern-workspace #marketplace .need-modes input[type=radio]{appearance:auto!important;padding:0!important;border:0!important;width:16px!important;height:16px!important;min-width:16px;box-shadow:none!important;border-radius:50%;background:transparent}
@media(min-width:1024px){.modern-workspace #form-dialog{scroll-padding-block:90px}}
