/* Service-led catalogue. Existing portraits, data and dialogs are retained. */
body[data-page="marketplace"]{background:#f8f8f4}

.marketplace-page{max-width:1380px;padding-top:30px}
.market-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px;margin-bottom:24px}
.market-heading{margin:0;gap:18px;align-items:flex-start}
.market-heading .eyebrow{display:flex;align-items:center;gap:10px;color:#67716d;margin-bottom:10px;font-size:12px;letter-spacing:.18em}
.market-heading .eyebrow::before{content:'';width:20px;height:2px;background:#c7a225}
.market-heading h1{font-size:57px;line-height:1.13;letter-spacing:-.055em;font-weight:650}
.market-title-accent{white-space:nowrap;position:relative}
.market-title-accent::after{content:'';position:absolute;left:1px;right:6px;bottom:-4px;height:2px;background:#e1b82e}
.market-heading>.info{margin-top:36px;width:24px;height:24px;font-size:13px}
.market-topline{display:grid;grid-template-columns:1fr;gap:12px;padding:7px 0 7px 32px;border-left:1px solid #dcded4;font-size:13px;min-width:208px}
.market-admission{display:flex;align-items:center;gap:8px;color:#32453b;font-size:12px}
.market-admission svg{color:#877024;width:21px;height:21px}
.market-admission b{font-family:Manrope,sans-serif;font-size:27px;line-height:1;letter-spacing:-.04em;margin-left:4px}
.market-ranking-label{display:flex;align-items:center;gap:8px;color:#63716c}
.market-ranking-label .info{width:20px;height:20px;font-size:12px}
.market-topline>.text-link{font-size:13px;gap:16px;justify-self:start}
.market-collections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}
.market-collection{position:relative;display:flex;align-items:center;gap:10px;min-width:0;min-height:88px;padding:14px;border:1px solid #dce0d6;border-radius:10px;background:#f0f1e9;text-align:left;transition:background .2s,border-color .2s,color .2s}
.market-collection:nth-child(2){background:#f4f0e4}.market-collection:nth-child(3){background:#edf1ee}.market-collection:nth-child(4){background:#efeee9}
.collection-art{width:48px;height:44px;flex-shrink:0;stroke:#667066;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;transition:transform .25s}
.collection-art .art-accent{stroke:#aa8217;stroke-width:2.1}
.market-collection:hover{border-color:#a2ad9f}.market-collection:hover .collection-art{transform:translateY(-3px)}
.collection-copy{display:block;min-width:0;flex:1;position:relative}
.collection-copy b{display:block;font-size:14px;line-height:1.4;font-weight:600;letter-spacing:-.025em}
.collection-copy small{display:block;font-size:12px;line-height:1.5;color:#647167;margin-top:5px}
.collection-count{display:grid;place-items:center;min-width:20px;height:20px;border:1px solid #cbd0c3;border-radius:50%;font-size:12px;color:#596454}
.market-collection.selected{background:#23382e;border-color:#23382e;color:#fff}
.market-collection.selected .collection-copy small{color:#d2dbcc}.market-collection.selected .collection-art{stroke:#becdbb}.market-collection.selected .art-accent{stroke:#f2cb49}.market-collection.selected .collection-count{border-color:#607263;color:#f3d677}
.market-search{margin:0 0 14px;padding:7px;background:#fff;border:1px solid #dfe3da;border-radius:11px;gap:8px}
.market-search .search{min-height:43px;border:0;border-radius:6px;padding-left:12px}
.market-search .search input{font-size:16px}
.market-search select{background:#f5f6f1;border:0;border-radius:7px;min-height:43px;font-size:13px;padding:0 14px}
.market-search .search:focus-within{outline-width:2px;outline-offset:0}
.marketplace-page .list-meta{font-size:13px;margin-bottom:14px;color:#63716c}
.marketplace-page .list-meta b{display:inline-grid;place-items:center;width:22px;height:22px;margin-left:5px;border-radius:50%;background:#e9ede4;color:#334736;font-weight:550}
.marketplace-page .list-meta .text-button{font-size:13px;color:#63716c}

.market-active-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.market-filter{display:flex;align-items:center;gap:10px;max-width:100%;min-height:38px;padding:8px 11px;border:1px solid #d4dccf;border-radius:7px;background:#edf1e8;font-size:12px;text-align:left;color:#405340}
.market-filter>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.market-filter b{font-weight:600}.market-filter>span:last-child{font-size:20px;line-height:1;flex-shrink:0}.market-filter:hover{background:#e0e8d8;border-color:#a6b49d}
.market-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.market-card{min-width:0;display:flex;flex-direction:column;padding:22px;background:#fff;border:1px solid #dfe3da;border-radius:15px;transition:border-color .2s,box-shadow .2s}
.market-card:hover,.market-card:focus-within{border-color:#aebda4;box-shadow:0 8px 24px #2637270a}
.market-card-head{display:flex;align-items:center;gap:10px;margin-bottom:18px;min-width:0}
.market-place{font-family:'IBM Plex Mono',monospace;font-size:12px;color:#687264;white-space:nowrap}
.market-demo{font-size:12px;color:#667162}
.market-card-head .status.admitted{margin-left:auto;white-space:nowrap;background:none;border:0;padding:0;font-size:12px;color:#697027}
.market-offer-title{font-size:25px;font-weight:650;line-height:1.3;letter-spacing:-.035em;margin:0 0 12px;min-height:2.6em;overflow-wrap:break-word}
.market-format{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:22px;color:#56664f;font-size:13px;line-height:1.5}
.market-format>span+span::before{content:'·';margin-right:7px;color:#849180}
.market-person{display:grid;grid-template-columns:116px minmax(0,1fr);gap:18px;align-items:center;margin:0 0 18px}
.market-portrait-stage{position:relative;width:116px;height:138px;border-radius:64px 64px 7px 7px;background:#eff1e8}
.market-card[data-goal="focus"] .market-portrait-stage{background:#f3f0e5}.market-card[data-goal="work"] .market-portrait-stage{background:#edf1ed}.market-card[data-goal="learn"] .market-portrait-stage{background:#f0efeb}
.market-portrait-stage .card-avatar-preview{position:relative;width:116px;height:138px;border-radius:inherit}
.market-portrait-stage .card-portrait{display:block;width:116px;height:138px;object-fit:cover;border:0;border-radius:inherit;mix-blend-mode:multiply}
.market-portrait-stage .card-avatar-preview>span{right:-5px;bottom:8px;width:28px;height:28px;background:#fffdf5;border-color:#d4c791}
.market-identity{min-width:0}
.market-identity h3{font-size:19px;line-height:1.35;font-weight:600;letter-spacing:-.025em;margin:0}
.market-identity a:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.market-identity p{font-size:13px;line-height:1.5;color:#606e5b;margin:5px 0 12px}
.market-rating{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:0;border-radius:4px;text-align:left;min-height:32px}
.market-rating svg{width:17px;height:17px;fill:#e0be4d;stroke:#a28520;stroke-width:1;flex-shrink:0}
.market-rating strong{font-family:Manrope,sans-serif;font-size:23px;line-height:1.2;font-weight:700;letter-spacing:-.045em}
.market-rating>span:not(.own-rating-dot){font-size:12px;color:#52654d;border-bottom:1px dotted #a8b4a0;line-height:1.5}
.own-rating-dot{width:5px;height:5px;border-radius:50%;background:#846c22;flex-shrink:0}
.market-topics{display:flex;gap:7px;flex-wrap:wrap;font-size:12px;color:#56684e;line-height:1.5;margin-bottom:22px}
.market-topics>span+span::before{content:'·';margin-right:7px;color:#849180}
.market-card-foot{display:flex;flex-direction:column;margin-top:auto;gap:10px}
.market-card-foot .market-service-action{width:100%;min-height:46px;background:#263c30;border:1px solid #263c30;color:#fff;font-size:14px;padding:12px;border-radius:8px}
.market-card-foot .market-service-action:hover{background:#39503b;border-color:#39503b}
.market-secondary{display:flex;align-items:center;justify-content:space-between;gap:10px}
.market-dossier{font-size:13px;line-height:1.5;color:#40593a;padding:10px 0;text-decoration:underline;text-decoration-color:#b6c3ad;text-underline-offset:4px}
.market-dossier:hover{color:#142d16;text-decoration-color:currentColor}
.market-tools{display:flex;gap:7px}
.market-card-foot .icon-button{width:42px;height:42px;min-width:42px;border:1px solid #d8e0d1;border-radius:7px;color:#3d5938}
.market-card-foot .icon-button svg{width:18px;height:18px}
.market-card-foot .icon-button.active{border-color:#c1a23a;background:#fbefc5;color:#705411}
.market-join{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:30px;padding:24px 0;border-top:1px solid #dce2d5;font-size:13px;color:#55674e}
.market-join .text-link{font-size:13px;color:#344e33}
.marketplace-page .empty{min-height:240px;gap:18px}.marketplace-page .empty h2{font-size:24px;line-height:1.4}


@media(max-width:1150px){.market-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.market-intro{gap:25px}.market-heading h1{font-size:48px}.market-topline{min-width:185px;padding-left:23px}.market-collection{padding:12px;gap:8px}.collection-art{width:36px}.collection-copy b{font-size:13px}}
@media(max-width:900px){.market-intro{display:block}.market-heading h1{font-size:48px}.market-heading>.info{margin-top:32px}.market-topline{display:flex;align-items:center;gap:22px;margin-top:18px;padding:0;border:0}.market-admission b{font-size:21px}.market-topline>.text-link{margin-left:auto}.market-collections{gap:10px}.collection-copy small{display:none}.market-collection{min-height:76px}.collection-count{min-width:18px;height:18px}.collection-copy b{font-size:12px}.market-person{grid-template-columns:108px minmax(0,1fr);gap:16px}.market-portrait-stage,.market-portrait-stage .card-avatar-preview,.market-portrait-stage .card-portrait{width:108px;height:130px}}
@media(max-width:760px){.marketplace-page{padding-top:20px}.market-intro{margin-bottom:18px}.market-heading h1{font-size:40px;line-height:1.1}.market-heading .eyebrow{font-size:11px;margin-bottom:9px}.market-heading>.info{margin-top:29px;width:24px;height:24px;font-size:13px}.market-topline{gap:14px;margin-top:18px;flex-wrap:wrap}.market-admission{font-size:12px}.market-admission b{font-size:20px}.market-admission svg{width:17px;height:17px}.market-ranking-label{font-size:12px}.market-topline>.text-link{font-size:12px}.market-collections{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}.market-collection{min-height:66px;padding:10px;gap:7px}.collection-art{width:28px;height:36px}.collection-copy{padding-right:9px}.collection-copy b{font-size:13px;line-height:1.35}.collection-count{position:absolute;right:6px;top:6px;border:0;min-width:14px;height:14px;font-size:11px}.market-search{padding:6px;gap:5px;margin-bottom:12px}.market-search .search{min-height:44px;padding-left:8px}.market-search .search input{font-size:16px}.market-search select{min-height:42px;font-size:12px;padding:0 9px}.market-search .search svg{width:17px}.marketplace-page .list-meta{margin-bottom:12px;font-size:13px}.marketplace-page .list-meta .text-button{font-size:13px}.market-active-filters{gap:7px;margin-bottom:12px}.market-filter{min-height:40px}.market-join{margin-top:24px}.offer-actions{gap:10px}.offer-actions .btn{font-size:12px;padding:12px}}
@media(max-width:620px){.market-grid{grid-template-columns:1fr;gap:18px}.market-card{padding:20px}.market-offer-title{font-size:25px}.market-person{grid-template-columns:116px minmax(0,1fr);gap:18px}.market-portrait-stage,.market-portrait-stage .card-avatar-preview,.market-portrait-stage .card-portrait{width:116px;height:138px}.market-topline{column-gap:13px;row-gap:13px}.market-ranking-label{margin-left:auto}.market-topline>.text-link{display:none}.market-join{align-items:flex-start;flex-direction:column;gap:12px}.rating-summary{align-items:flex-start;flex-direction:column;gap:15px}.vote-stars>div{gap:7px}}
@media(max-width:359px){.market-heading h1{font-size:33px}.market-heading>.info{margin-top:27px}.market-collection{padding:9px;gap:5px}.collection-art{width:23px}.collection-copy b{font-size:12px}.market-card{padding:17px}.market-card-head{gap:8px}.market-card-head .status.admitted{font-size:11px}.market-demo{font-size:11px}.market-offer-title{font-size:24px}.market-person{grid-template-columns:96px minmax(0,1fr);gap:15px}.market-portrait-stage,.market-portrait-stage .card-avatar-preview,.market-portrait-stage .card-portrait{width:96px;height:120px}.market-identity h3{font-size:18px}.market-tools{gap:6px}.market-card-foot .icon-button{width:40px;min-width:40px;height:42px}.market-dossier{font-size:12px}.market-admission{font-size:12px}.market-ranking-label{font-size:12px;gap:5px}.offer-person b{font-size:13px}.offer-actions .btn{font-size:12px;padding:12px 9px}.offer-result{padding:15px}.vote-stars label>span{padding:10px 3px}.vote-stars svg{width:21px;height:21px}}
@media(prefers-reduced-motion:reduce){.market-card,.collection-art{transition:none!important}.market-collection:hover .collection-art{transform:none}}

.offer-person{display:flex;align-items:center;gap:13px;margin:22px 0}
.offer-portrait{width:55px;height:55px;border-radius:50%;border:1px solid var(--line)}
.offer-person b{font-size:14px;display:block;line-height:1.4}
.offer-person small{display:block;font-size:12px;color:var(--muted);margin-top:5px;line-height:1.5}
.offer-request{font-size:15px!important;line-height:1.7!important;margin:18px 0 26px}
.offer-section h3,.offer-result h3{font-size:13px;margin:0 0 12px}
.offer-section ol{padding-left:19px;font-size:13px;color:#5c6d74;line-height:1.7;margin:0}
.offer-section li{padding-left:5px;margin:10px 0}
.offer-section li::marker{color:#947923}
.offer-result{background:#fcf8e9;border:1px solid #eee5c5;border-radius:10px;padding:17px 19px;margin:24px 0}
.offer-result p{font-size:13px!important;line-height:1.7!important;margin:0}
.offer-boundary{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:24px 0}
.offer-boundary summary{display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;padding:17px 0;font-size:12px;list-style:none}
.offer-boundary summary::-webkit-details-marker{display:none}
.offer-boundary summary>span{font-size:19px;font-weight:400;transition:transform .15s}
.offer-boundary[open] summary>span{transform:rotate(45deg)}
.offer-boundary p{font-size:12px!important;line-height:1.75!important;margin:0 0 16px}
.offer-actions{margin-top:25px;position:sticky;bottom:0;background:#fff;padding:12px 0 0;box-shadow:0 -10px 14px #ffffffed;z-index:1}
.offer-actions .btn{font-size:12px;flex:1}
.rating-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:25px 0;color:var(--muted);font-size:12px}
.rating-total{display:flex;align-items:center;gap:10px}
.rating-total strong{font-size:42px;line-height:1;color:var(--ink);letter-spacing:-.03em}
.rating-total svg{width:25px;height:25px;fill:#dfbb45;stroke:#b79528;stroke-width:1}
.rating-distribution{display:grid;gap:10px;margin:25px 0 30px}
.rating-distribution>div{display:grid;grid-template-columns:36px 1fr 26px;gap:12px;align-items:center;font-size:11px;color:var(--muted)}
.rating-distribution meter{width:100%;height:10px;border:0;background:#f0f2ef;border-radius:8px}
.rating-distribution meter::-webkit-meter-bar{height:8px;border:0;background:#f0f2ef}
.rating-distribution meter::-webkit-meter-optimum-value{background:#d1ad36;border-radius:8px}
.vote-stars{border:0;padding:0;margin:0 0 23px;min-width:0}
.vote-stars legend{font-size:14px;font-weight:600;margin-bottom:15px}
.vote-stars>div{display:flex;gap:9px}
.vote-stars label{position:relative;flex:1;cursor:pointer}
.vote-stars input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}
.vote-stars label>span{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 4px;border:1px solid var(--line);border-radius:9px;pointer-events:none}
.vote-stars svg{width:23px;height:23px;stroke:#89989b;stroke-width:1.5;fill:none}
.vote-stars b{font-size:11px;font-weight:500;color:var(--muted)}
.vote-stars input:checked+span{background:#fbf5df;border-color:#c3a345}
.vote-stars input:checked+span svg{fill:#dfbb45;stroke:#a4882c}
.vote-stars input:focus-visible+span{outline:2px solid var(--ink);outline-offset:3px}
#market-vote .fine{margin-bottom:0}
#market-vote .fine .text-button{font-size:inherit;display:inline}
/* Service details stay behind native tabs and disclosures. */
.offer-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-top:26px}
.offer-tabs [role=tab]{flex:1;min-width:0;padding:13px 5px 15px;border-bottom:2px solid transparent;color:var(--muted);font-size:12px;text-align:center;white-space:nowrap}
.offer-tabs [aria-selected=true]{border-color:#d8b33e;color:var(--ink);font-weight:650}
.offer-tabs [role=tab]:hover{background:#fcfbf7}
#offer-panel{padding-top:24px;outline-offset:4px}
#offer-panel .offer-request{margin-top:0}
.offer-fit,.offer-method{border-top:1px solid var(--line);margin:18px 0 0}
.offer-fit summary,.offer-method summary,.offer-faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px;line-height:1.6;padding:16px 0;cursor:pointer}
.offer-fit summary::-webkit-details-marker,.offer-method summary::-webkit-details-marker,.offer-faq summary::-webkit-details-marker{display:none}
.offer-fit summary>span,.offer-faq summary>span{font-size:18px;font-weight:400;flex-shrink:0}
.offer-method summary>span{display:flex;gap:13px;align-items:center;color:var(--muted);font-size:10px;font-weight:400}
.offer-method summary b{font-size:18px;font-weight:400}
.offer-fit[open] summary>span,.offer-faq details[open] summary>span,.offer-method[open] summary b{transform:rotate(45deg)}
.offer-fit p,.offer-faq p{font-size:13px!important;line-height:1.75!important;color:#5c6d74;margin:0 0 18px}
.offer-method .offer-section{padding-bottom:7px}
.offer-timeline{padding:0;margin:0;list-style:none}
.offer-timeline>li{display:flex;gap:18px;position:relative;padding-bottom:24px}
.offer-timeline>li:not(:last-child)::before{content:'';position:absolute;left:14px;top:31px;bottom:4px;width:1px;background:#e3dac0}
.timeline-number{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border:1px solid #e5d89f;border-radius:50%;font-size:11px;background:#fffcf1;color:#8a7130}
.offer-timeline h3{font-size:13px;line-height:1.5;margin:4px 0 8px}
.offer-timeline p{font-size:13px!important;line-height:1.8!important;margin:0;color:#5c6d74}
.offer-process-note{margin:0 0 12px!important;line-height:1.7!important}
.offer-faq details{border-bottom:1px solid var(--line)}
.offer-faq details:first-child summary{padding-top:0}
.offer-prompts{margin-top:27px}
.offer-prompts h3{font-size:14px;margin:0 0 9px}
.offer-prompts>p{font-size:12px!important;line-height:1.7!important;margin:0 0 16px;color:var(--muted)}
.offer-prompts button{display:flex;justify-content:space-between;gap:18px;width:100%;text-align:left;padding:14px 16px;margin:9px 0;border:1px solid #e5e5d7;border-radius:9px;font-size:12px;line-height:1.6;background:#fcfbf5}
.offer-prompts button:hover{background:#fbf6e3;border-color:#d8c990}
.offer-prompts button>span:last-child{flex-shrink:0;color:#987e2c}
.chat-draft-notice{background:#fcf8e9;border:1px solid #eee5c5;border-radius:9px;padding:15px 17px;margin:18px 0}
.chat-draft-notice p{font-size:12px!important;line-height:1.65!important;margin:0 0 9px}
.chat-draft-notice .text-button{font-size:12px;text-decoration:underline;text-underline-offset:4px;text-align:left}
@media(max-width:760px){.offer-tabs{margin-top:22px}.offer-tabs [role=tab]{font-size:12px;padding:12px 4px}#offer-panel{padding-top:21px}.offer-timeline>li{gap:13px}.offer-timeline p,.offer-fit p,.offer-faq p{font-size:12px!important}.offer-prompts button{font-size:12px;padding:13px}.offer-prompts{margin-top:23px}}
@media(max-width:359px){.offer-tabs [role=tab]{font-size:12px}.offer-timeline>li{gap:11px}.offer-prompts button{font-size:11px}}

.offer-timeline>li:last-child{padding-bottom:0}

