/* WerkDok 3.0 LAB 1.19 — real HTML views for public profile, marketplace, and local messages */
.wd-public-profile[hidden],.wd-marketplace[hidden],.wd-messages[hidden],#wd-messages-form[hidden]{display:none!important}
.wd-public-profile,.wd-marketplace,.wd-messages{min-width:0;width:100%;color:var(--text);--ex-line:rgba(82,169,192,.29);--ex-panel:linear-gradient(155deg,#0a2435,#081c2b);--ex-muted:#afc8d6}
body.on-member .feed-sidebar-right,body.on-marketplace .feed-sidebar-right,body.on-messages .feed-sidebar-right{display:none!important}
body.on-member .feed-layout,body.on-marketplace .feed-layout,body.on-messages .feed-layout{grid-template-columns:minmax(205px,282px) minmax(0,1fr)!important}
.wd-market-locked .wd-lock-icon{margin-left:auto;width:18px!important;height:18px!important;color:#e7b860!important}
.wd-public-profile h1,.wd-public-profile h2,.wd-marketplace h1,.wd-messages h1{font-family:Outfit,Manrope,sans-serif;line-height:1.13;letter-spacing:-.03em}
.wdx-profile-cover{position:relative;height:clamp(210px,24vw,310px);border:1px solid var(--ex-line);border-radius:24px 24px 0 0;overflow:hidden;background:linear-gradient(0deg,rgba(3,20,30,.7),rgba(5,20,34,.1)),url('assets/profile-cover-dark-new.webp') center/cover}
.wdx-profile-cover.cars{background-image:linear-gradient(0deg,rgba(3,20,30,.65),rgba(5,20,34,.2)),url('assets/new-cars-hero.webp')}
.wdx-profile-cover.workshops{background-image:linear-gradient(0deg,rgba(3,20,30,.7),rgba(5,20,34,.1)),url('assets/workshops-photo.webp')}
.wdx-back{position:absolute;left:19px;top:18px;display:inline-flex;align-items:center;gap:7px;padding:11px 15px;background:rgba(5,22,34,.85);border:1px solid #527b8d;border-radius:12px;font-size:13px;font-weight:800;color:#eefbff}
.wdx-back .icon{width:17px;height:17px;transform:rotate(180deg)}
.wdx-profile-identity{display:flex;align-items:flex-end;gap:20px;padding:0 25px 22px;border:1px solid var(--ex-line);border-top:0;background:var(--ex-panel);border-radius:0 0 22px 22px;flex-wrap:wrap}
.wdx-profile-avatar{flex:0 0 128px;width:128px;height:128px;margin-top:-58px;position:relative;border:5px solid #082033;border-radius:50%;overflow:hidden;box-shadow:0 13px 36px rgba(0,0,0,.3);background:#0b3144}
.wdx-avatar-initial{height:100%;width:100%;display:grid;place-items:center;color:#e7fbff;font-weight:900;font-size:27px;background:linear-gradient(140deg,#004358,#2ab9c7)}
.wdx-avatar-initial.gold{background:linear-gradient(130deg,#53351d,#c5a05b)}.wdx-avatar-initial.blue{background:linear-gradient(130deg,#1b365b,#588ed1)}.wdx-avatar-initial.purple{background:linear-gradient(130deg,#3b2a62,#9475cf)}.wdx-avatar-initial.green{background:linear-gradient(130deg,#16594e,#45c39a)}.wdx-avatar-initial.slate{background:linear-gradient(130deg,#28354a,#8fa5bb)}
.wdx-avatar-img{width:100%;height:100%;object-fit:cover}
.wdx-profile-name{min-width:0;flex:1 1 250px;padding-top:10px}.wdx-profile-name h1{font-size:clamp(25px,3vw,39px);margin:0 0 4px}.wdx-profile-name p{font-size:13px;color:var(--ex-muted);margin:5px 0}.wdx-profile-name>span{display:flex;gap:5px;align-items:center;color:var(--ex-muted);font-size:12px}.wdx-profile-name .icon{width:14px;height:14px}
.wdx-profile-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;padding-bottom:5px}
.wdx-profile-actions button,.wd-soon-actions button{display:inline-flex;gap:8px;align-items:center;border-radius:12px;padding:12px 17px;font:800 13px Manrope,sans-serif;cursor:pointer}
.wdx-profile-actions .icon{width:17px;height:17px}.wdx-primary,.wd-soon-actions button{border:1px solid #42e8ed;background:linear-gradient(130deg,#42ebef,#0dc1d5);color:#05232e}.wdx-secondary{border:1px solid #438094;background:rgba(22,61,76,.4);color:#e3faff}
.wdx-profile-tabs{display:flex;gap:6px;border:1px solid var(--ex-line);background:var(--ex-panel);padding:8px;border-radius:17px;margin:15px 0;overflow-x:auto}
.wdx-profile-tabs button{border:0;border-radius:10px;padding:12px 20px;background:transparent;color:var(--ex-muted);font:800 13px Manrope,sans-serif;cursor:pointer;white-space:nowrap}.wdx-profile-tabs button.is-active{background:rgba(17,217,229,.13);color:#2fe0ee;border-bottom:2px solid #23deed}
.wdx-profile-columns{display:grid;grid-template-columns:minmax(220px,0.85fr) minmax(0,1.6fr);gap:15px;align-items:start}
.wdx-profile-about,.wdx-profile-feed{min-width:0;border:1px solid var(--ex-line);background:var(--ex-panel);border-radius:19px;padding:23px}.wdx-profile-about h2,.wdx-profile-feed h2{font-size:21px;margin:0 0 16px}.wdx-profile-about p{font-size:13px;color:var(--ex-muted);line-height:1.65}.wdx-profile-about dl{display:grid;grid-template-columns:1fr 1.5fr;gap:12px 7px;font-size:12px}.wdx-profile-about dt{color:var(--ex-muted)}.wdx-profile-about dd{margin:0;font-weight:750;overflow-wrap:anywhere}
.wdx-feed-empty{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;border-radius:15px;border:1px dashed var(--ex-line);background:rgba(6,29,42,.3);padding:24px}.wdx-feed-empty .icon{width:40px;height:40px;color:#3ad6e6}.wdx-feed-empty strong{font-size:17px}.wdx-feed-empty p{max-width:350px;margin:0;color:var(--ex-muted);font-size:13px;line-height:1.6}
/* Marketplace locked */
.wd-soon-hero{min-height:min(640px,76vh);border:1px solid var(--ex-line);border-radius:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;padding:40px 24px;background:radial-gradient(circle at 50% 20%,rgba(23,220,229,.17),transparent 48%),linear-gradient(155deg,#0b2a3a,#051723)}
.wd-soon-icon{width:112px;height:112px;border:1px solid rgba(40,222,231,.45);border-radius:30px;background:#0c3546;display:grid;place-items:center;box-shadow:0 0 0 18px #12c4d609}.wd-soon-icon .icon{width:58px;height:58px;color:#35e4ed}.wd-soon-kicker{font-size:12px;letter-spacing:.23em;color:#42d7e7;font-weight:900}.wd-marketplace h1{margin:0;font-size:clamp(42px,5vw,74px)}.wd-soon-hero>p{color:#ebbc68;font-size:clamp(20px,2vw,30px);font-weight:800;margin:0}.wd-soon-hero>span{color:var(--ex-muted);line-height:1.75;max-width:530px;font-size:14px}
/* Messages */
.wd-messages{display:flex;flex-direction:column;gap:16px;min-height:0}.wd-messages-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 4px}.wd-messages-kicker{color:#26deed;font-size:11px;letter-spacing:.2em;font-weight:900}.wd-messages h1{font-size:clamp(29px,3.2vw,46px);margin:7px 0}.wd-messages-head p{color:var(--ex-muted);margin:0;font-size:13px}.wd-messages-private{display:inline-flex;align-items:center;gap:7px;color:var(--ex-muted);font-size:11px;max-width:320px;line-height:1.55}.wd-messages-private .icon{width:17px;height:17px;color:#e9bd73;flex-shrink:0}
.wd-messages-layout{display:grid;grid-template-columns:minmax(220px,310px) minmax(0,1fr);height:min(690px,calc(100vh - 225px));min-height:400px;min-width:0;border:1px solid var(--ex-line);border-radius:21px;overflow:hidden;background:var(--ex-panel)}
.wd-messages-contacts{border-right:1px solid var(--ex-line);min-width:0;overflow:auto;padding:13px;background:rgba(4,22,34,.28)}.wd-messages-search{display:flex;align-items:center;gap:10px;border:1px solid var(--ex-line);background:rgba(5,23,36,.6);padding:10px 12px;border-radius:12px;min-height:43px}.wd-messages-search .icon{height:18px;width:18px;color:#3ae1ee}.wd-messages-search input{width:100%;min-width:0;outline:0;border:0;background:transparent;color:var(--text);font:600 12px Manrope,sans-serif}.wd-messages-contact-list{display:grid;gap:7px;margin-top:13px}
.wdx-contact{display:flex;align-items:center;gap:10px;min-width:0;padding:11px 10px;border-radius:13px;border:1px solid transparent;background:transparent;color:var(--text);text-align:left;cursor:pointer;width:100%}.wdx-contact.is-active,.wdx-contact:hover{background:rgba(21,217,226,.1);border-color:rgba(45,213,221,.3)}.wdx-contact .wdx-avatar-initial,.wdx-contact .wdx-avatar-img{width:46px;height:46px;flex:0 0 46px;border-radius:15px;font-size:14px}.wdx-contact span{display:grid;gap:4px;min-width:0;flex:1}.wdx-contact strong{font-size:13px}.wdx-contact small{font-size:11px;color:var(--ex-muted);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.wdx-contact>.icon{width:15px;height:15px;color:var(--ex-muted)}
.wd-messages-thread{display:flex;flex-direction:column;min-width:0;min-height:0}.wd-messages-thread>header{padding:14px 18px;border-bottom:1px solid var(--ex-line);min-height:73px;display:flex;align-items:center}.wdx-thread-person{display:flex;gap:12px;align-items:center;color:var(--text);text-decoration:none}.wdx-thread-person .wdx-avatar-initial,.wdx-thread-person .wdx-avatar-img{width:45px;height:45px;border-radius:50%;font-size:14px}.wdx-thread-person span{display:grid;gap:5px}.wdx-thread-person strong{font-size:14px}.wdx-thread-person small{font-size:11px;color:#2be2ed}.wd-messages-thread-body{flex:1;min-height:0;overflow:auto;padding:22px;display:flex;flex-direction:column;gap:13px}.wdx-thread-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;text-align:center;color:var(--ex-muted)}.wdx-thread-empty strong{color:var(--text)}.wdx-thread-empty p{font-size:13px;max-width:300px}.wdx-thread-empty .icon{width:45px;height:45px;color:#2be2ed}
.wdx-bubble{margin-left:auto;display:grid;gap:7px;max-width:min(86%,490px);background:linear-gradient(135deg,#0a667d,#0a4b66);border:1px solid #2cbbd0;border-radius:17px 17px 5px 17px;padding:14px;color:#edfbff;font-size:14px;overflow-wrap:anywhere}.wdx-bubble small{font-size:10px;color:#b0e2e8}
#wd-messages-form{padding:13px 15px;border-top:1px solid var(--ex-line);display:flex;gap:10px;align-items:center}#wd-messages-input{flex:1;min-width:0;background:rgba(8,44,62,.62);border:1px solid var(--ex-line);border-radius:13px;padding:13px 15px;color:var(--text);outline:0;font:600 13px Manrope,sans-serif}#wd-messages-send{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:12px;padding:13px 14px;background:linear-gradient(135deg,#3ce9ed,#0fc8d7);color:#05212c;font-weight:800;cursor:pointer}#wd-messages-send .icon{width:17px;height:17px}
/* Light theme tuned separately */
html[data-theme='light'] .wd-public-profile,html[data-theme='light'] .wd-marketplace,html[data-theme='light'] .wd-messages{--ex-line:#d7e8ef;--ex-panel:linear-gradient(150deg,#fff,#f6fbfe);--ex-muted:#567587;color:#15374b}
html[data-theme='light'] .wdx-profile-cover{background-image:linear-gradient(0deg,rgba(11,49,67,.25),rgba(13,56,71,.03)),url('assets/profile-cover-light.webp')}
html[data-theme='light'] .wdx-profile-avatar{border-color:#fff}
html[data-theme='light'] .wdx-secondary{color:#0b556c;background:#e8f9fc;border-color:#a9d6e3}
html[data-theme='light'] .wdx-profile-tabs button.is-active{color:#087c98}
html[data-theme='light'] .wdx-feed-empty{background:#f4fafc}
html[data-theme='light'] .wd-soon-hero{background:radial-gradient(circle at 50% 20%,rgba(23,220,229,.14),transparent 48%),linear-gradient(150deg,#fff,#f0f8fb)}
html[data-theme='light'] .wd-soon-icon{background:#e4f9fd}
html[data-theme='light'] .wd-messages-contacts{background:#f5fafc}
html[data-theme='light'] .wd-messages-search,html[data-theme='light'] #wd-messages-input{background:#fff;color:#15374b}
@media(min-width:1221px){body.on-member #wd-public-profile,body.on-messages #wd-messages,body.on-marketplace #wd-marketplace{position:relative;max-height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#228b9b transparent}}
@media(max-width:1220px){body.on-member .feed-layout,body.on-messages .feed-layout,body.on-marketplace .feed-layout{grid-template-columns:minmax(0,1fr)!important}.wd-public-profile,.wd-marketplace,.wd-messages{order:0;overflow:visible;max-height:none}.feed-sidebar-left{order:1}.wd-messages-layout{height:600px}}
@media(max-width:790px){.wdx-profile-columns{grid-template-columns:1fr}.wd-messages-layout{grid-template-columns:minmax(0,1fr);height:auto;min-height:0}.wd-messages-contacts{border-right:0;border-bottom:1px solid var(--ex-line);max-height:250px}.wd-messages-thread{min-height:360px}.wd-messages-thread-body{min-height:220px}.wdx-profile-identity{padding-inline:16px}.wdx-profile-avatar{width:94px;height:94px;flex-basis:94px;margin-top:-42px}.wdx-profile-actions{width:100%}}
@media(max-width:460px){.wdx-profile-cover{height:195px}.wdx-profile-tabs button{padding:12px 13px}.wdx-profile-actions button{flex:1;justify-content:center}#wd-messages-form{flex-wrap:wrap}#wd-messages-input{flex:1 1 100%}#wd-messages-send{width:100%;justify-content:center}}
