:root{--dm-bg:#111722;--dm-panel:#fff;--dm-text:#111827;--dm-muted:#667085;--dm-line:#e6e8ec;--dm-accent:#ff6848;--dm-navy:#0d1d35;--dm-green:#1c9b68;--dm-yellow:#ffd95b}
.dm-hub-button{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 13px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:#0d1d35;color:#fff;font:700 14px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;white-space:nowrap;box-shadow:none}.dm-hub-button:hover{filter:brightness(1.08)}.dm-hub-badge{display:none;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#ff6848;color:#fff;align-items:center;justify-content:center;font-size:11px}.dm-hub-badge.on{display:inline-flex}.dm-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(8,13,24,.54);backdrop-filter:blur(3px);display:none}.dm-overlay.on{display:block}.dm-drawer{position:absolute;right:0;top:0;width:min(480px,100vw);height:100%;background:#f7f8fa;color:var(--dm-text);box-shadow:-20px 0 60px rgba(0,0,0,.28);display:flex;flex-direction:column}.dm-head{padding:17px 18px 12px;background:#101b2d;color:#fff}.dm-head-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.dm-head h2{font:800 21px/1.2 system-ui;margin:0}.dm-close,.dm-icon-btn{border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:10px;cursor:pointer;min-width:38px;height:38px;font-size:18px}.dm-userline{margin-top:7px;color:#c9d2df;font-size:12px}.dm-safety{margin:12px 14px 0;padding:11px 12px;border:1px solid #efd991;background:#fff9df;border-radius:12px;color:#5f4b08;font-size:12px;line-height:1.4}.dm-tabs{display:flex;gap:6px;overflow-x:auto;padding:12px 12px 8px;scrollbar-width:none}.dm-tab{border:1px solid var(--dm-line);background:#fff;color:#344054;border-radius:10px;padding:9px 11px;font:700 12px system-ui;cursor:pointer;white-space:nowrap}.dm-tab.active{background:#0d1d35;border-color:#0d1d35;color:#fff}.dm-body{flex:1;overflow:auto;padding:6px 12px 24px}.dm-empty{padding:44px 18px;text-align:center;color:var(--dm-muted);font-size:14px}.dm-card{background:#fff;border:1px solid var(--dm-line);border-radius:14px;padding:13px;margin:8px 0;box-shadow:0 3px 14px rgba(16,24,40,.04)}.dm-card.unread{border-left:4px solid var(--dm-accent)}.dm-card-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.dm-title{font-weight:800;font-size:14px;line-height:1.35}.dm-sub{margin-top:5px;color:var(--dm-muted);font-size:12px;line-height:1.42;white-space:pre-wrap}.dm-time{font-size:10px;color:#98a2b3;white-space:nowrap}.dm-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}.dm-btn{border:0;border-radius:10px;padding:9px 12px;background:#0d1d35;color:#fff;font:700 12px system-ui;cursor:pointer}.dm-btn.secondary{background:#eef1f5;color:#344054}.dm-btn.danger{background:#fff0ed;color:#b42318}.dm-btn.green{background:#e9f7f1;color:#087443}.dm-pill{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#eef1f5;color:#475467;font:700 10px system-ui}.dm-pill.good{background:#e9f7f1;color:#087443}.dm-pill.warn{background:#fff5d5;color:#765d00}.dm-conv-list .dm-card{cursor:pointer}.dm-chat-head{position:sticky;top:0;z-index:2;background:#f7f8fa;padding:4px 0 8px;display:flex;align-items:center;gap:8px}.dm-chat-head strong{flex:1;font-size:14px}.dm-messages{display:flex;flex-direction:column;gap:8px;padding:4px 0 92px}.dm-msg{max-width:82%;padding:9px 11px;border-radius:14px 14px 14px 4px;background:#fff;border:1px solid var(--dm-line);font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.dm-msg.mine{align-self:flex-end;background:#0d1d35;color:#fff;border-color:#0d1d35;border-radius:14px 14px 4px 14px}.dm-msg.system{align-self:center;max-width:94%;background:#fff9df;color:#5f4b08;border-color:#efd991;text-align:center;font-size:11px;border-radius:10px}.dm-msg small{display:block;margin-top:5px;opacity:.58;font-size:9px}.dm-compose{position:absolute;left:0;right:0;bottom:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));display:flex;gap:8px;background:rgba(247,248,250,.96);border-top:1px solid var(--dm-line);backdrop-filter:blur(10px)}.dm-compose textarea{flex:1;min-height:43px;max-height:110px;resize:none;border:1px solid #d0d5dd;border-radius:12px;padding:10px 11px;font:13px system-ui;outline:none}.dm-compose button{border:0;border-radius:12px;padding:0 14px;background:#ff6848;color:#fff;font-weight:800;cursor:pointer}.dm-rating{display:flex;gap:3px;margin:8px 0}.dm-star{font-size:25px;line-height:1;color:#d0d5dd;cursor:pointer}.dm-star.on{color:#f6b817}.dm-review-text{width:100%;min-height:80px;border:1px solid #d0d5dd;border-radius:10px;padding:9px;box-sizing:border-box;font:13px system-ui;resize:vertical}.dm-toast{position:fixed;right:18px;top:82px;z-index:2147483646;max-width:340px;padding:12px 14px;border-radius:12px;background:#101b2d;color:#fff;box-shadow:0 14px 42px rgba(0,0,0,.3);font:600 13px/1.4 system-ui;transform:translateY(-18px);opacity:0;pointer-events:none;transition:.22s}.dm-toast.on{transform:none;opacity:1}.dm-saved{color:#ff6848!important}.dm-small-note{font-size:11px;color:#667085;line-height:1.4;margin-top:8px}.dm-balance{padding:8px 10px;border-radius:10px;background:#fff;border:1px solid var(--dm-line);font-size:12px;color:#475467}.dm-section-title{font-size:13px;font-weight:800;margin:14px 2px 5px;color:#344054}.dm-sep{height:1px;background:var(--dm-line);margin:10px 0}.dm-browser-note{margin-top:8px}.dm-loading{padding:36px;text-align:center;color:#667085}.dm-counter-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#ff6848;margin-right:5px}

.dm-response-balance-button{display:inline-flex;align-items:center;gap:5px;min-height:38px;padding:0 10px;border:1px solid rgba(255,208,72,.34);border-radius:11px;background:rgba(255,208,72,.08);color:#ffd34f;font:800 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;white-space:nowrap;transition:background .18s,border-color .18s,transform .18s}.dm-response-balance-button:hover{background:rgba(255,208,72,.14);border-color:rgba(255,208,72,.55);transform:translateY(-1px)}.dm-response-balance-button.empty{color:#aab4c3;border-color:rgba(255,255,255,.13);background:rgba(255,255,255,.035)}.dm-response-count{font-size:14px;color:inherit}.dm-response-word{color:#fff;font-size:11px}.dm-response-balance-button.empty .dm-response-word{color:#aab4c3}
@media(max-width:650px){.dm-response-balance-button{min-width:38px;padding:0 8px}.dm-response-word,.dm-response-icon{display:none}.dm-response-count{font-size:12px}.dm-drawer{width:100vw}.dm-hub-button{padding:0 10px}.dm-hub-label{display:none}.dm-toast{left:12px;right:12px;top:70px;max-width:none}.dm-head{padding-top:max(14px,env(safe-area-inset-top))}}

.dm-icon-light{border:1px solid var(--dm-line);background:#fff;color:#475467;border-radius:9px;width:32px;height:32px;cursor:pointer;font-size:15px}.dm-compose-main{flex:1;min-width:0}.dm-compose-main textarea{width:100%;box-sizing:border-box}.dm-file-btn{width:42px;height:42px;display:grid;place-items:center;border:1px solid #d0d5dd;background:#fff;border-radius:12px;cursor:pointer;font-size:18px}.dm-file-name{font-size:10px;color:#475467;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:250px;margin:0 0 4px 3px}.dm-attachment{display:block;margin-top:7px;padding:8px 9px;border-radius:9px;background:rgba(17,24,39,.07);color:inherit!important;text-decoration:none;font-weight:700;overflow-wrap:anywhere}.dm-msg.mine .dm-attachment{background:rgba(255,255,255,.12)}.dm-attachment small{display:inline!important;margin:0!important;opacity:.65}

/* v19: header hierarchy, compact catalogue, profiles, referrals and analytics */
.site-header .header-actions,.projects-header>div{display:flex;align-items:center}
.site-header .header-actions .text-button{order:10}.site-header .header-actions .dm-hub-button{order:20}.site-header .header-actions .dark-button{order:30;background:#ff6847!important;box-shadow:0 5px #9d331f!important;color:#fff!important}.site-header .header-actions .dark-button:hover{box-shadow:0 3px #9d331f!important}.site-header .header-actions .login-button,.site-header .header-actions .account-button{order:90}.site-header .header-actions .dm-response-balance-button{order:91;margin-left:-5px}
@media(min-width:1080px){body .service-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}body .service-cover{height:148px}body .service-cover:before{width:108px;height:108px}body .service-cover:after{width:170px;height:170px}body .cover-symbol{font-size:48px}body .service-body{padding:14px}body .service-body h3{min-height:39px;margin:11px 0;font-size:14px;line-height:1.35}body .seller-line,body .rating{font-size:9px}body .price-row{padding-top:11px}body .service-card{border-radius:15px}}
@media(max-width:1079px) and (min-width:681px){body .service-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}body .service-cover{height:155px}body .service-body h3{font-size:15px}}

.dm-profile-hero{display:grid;grid-template-columns:112px 1fr;gap:16px;align-items:center;background:#fff;border:1px solid var(--dm-line);border-radius:18px;padding:15px;margin:8px 0 12px}.dm-avatar-wrap{text-align:center}.dm-profile-avatar{width:96px;height:96px;border-radius:24px;display:grid;place-items:center;object-fit:cover;background:#101b2d;color:#fff;font-size:28px;font-weight:900;margin:auto}.dm-profile-avatar.placeholder{background:linear-gradient(145deg,#101b2d,#273c5f)}.dm-avatar-upload{display:block;margin-top:7px;color:#344054;font-size:10px;font-weight:800;cursor:pointer}.dm-profile-name{font-size:18px}.dm-profile-form,.dm-settings-form,.dm-password-form{background:#fff;border:1px solid var(--dm-line);border-radius:16px;padding:14px;margin:9px 0}.dm-profile-form label,.dm-settings-form label,.dm-password-form label{display:grid;gap:6px;margin:0 0 11px;color:#344054;font:700 11px/1.35 system-ui}.dm-profile-form input,.dm-profile-form textarea,.dm-settings-form input,.dm-settings-form select,.dm-password-form input{width:100%;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:10px;background:#fff;color:#101828;padding:10px 11px;font:500 13px/1.35 system-ui;outline:none}.dm-profile-form input:focus,.dm-profile-form textarea:focus,.dm-settings-form input:focus,.dm-settings-form select:focus,.dm-password-form input:focus{border-color:#7d91ae;box-shadow:0 0 0 3px rgba(13,29,53,.08)}.dm-profile-form textarea{resize:vertical}.dm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dm-switch{grid-template-columns:20px 1fr!important;align-items:center;gap:7px!important}.dm-switch input{width:17px!important;height:17px;padding:0!important}.dm-settings-form label small{font-weight:500;color:#8a94a3}.dm-analytics-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;background:linear-gradient(145deg,#101b2d,#1b3150);color:#fff;border-radius:17px;padding:15px;margin:8px 0 12px}.dm-analytics-head h3{margin:4px 0 0;font-size:19px}.dm-analytics-head .dm-section-title{color:#ffd95b;margin:0;font-size:9px;letter-spacing:1.4px}.dm-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.dm-stat-grid article{background:#fff;border:1px solid var(--dm-line);border-radius:13px;padding:12px;text-align:center}.dm-stat-grid article b{display:block;color:#101b2d;font-size:20px}.dm-stat-grid article span{display:block;color:#667085;font-size:9px;line-height:1.25;margin-top:3px}.dm-stat-grid.compact{grid-template-columns:1fr 1fr;margin-top:13px}.dm-metric{background:#fff;border:1px solid var(--dm-line);border-radius:13px;padding:12px;margin:7px 0}.dm-metric>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:12px}.dm-metric>div:first-child span{font-weight:900;color:#0d1d35}.dm-progress{height:7px;border-radius:99px;background:#edf0f4;margin:9px 0;overflow:hidden}.dm-progress i{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#ff6848,#ffd95b)}.dm-metric small,.dm-insight-grid small{color:#7a8494;font-size:9px;line-height:1.35}.dm-insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.dm-insight-grid article{background:#fff;border:1px solid var(--dm-line);border-radius:13px;padding:12px;display:grid;gap:4px}.dm-insight-grid article>span{font-size:9px;color:#667085}.dm-insight-grid article>b{font-size:17px;color:#101b2d}.dm-referral-card{background:linear-gradient(145deg,#fff8db,#fff);border:1px solid #ead68d;border-radius:18px;padding:18px;margin:8px 0}.dm-ref-kicker{color:#8a6700;font-size:9px;font-weight:900;letter-spacing:1.25px}.dm-referral-card h3{font-size:22px;line-height:1.12;margin:8px 0;color:#101828}.dm-referral-card p{color:#5e6571;font-size:12px;line-height:1.5}.dm-ref-link{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:13px}.dm-ref-link input{min-width:0;border:1px solid #d2bd6b;border-radius:10px;background:#fff;padding:9px 10px;font:600 11px system-ui;color:#3c4655}.dm-referral-home{width:min(1200px,100% - 48px);margin:18px auto 0;background:linear-gradient(120deg,#101b2d 0%,#132b4d 58%,#243f27 130%);border:1px solid rgba(255,255,255,.13);border-radius:25px;color:#fff;padding:27px 30px;display:grid;grid-template-columns:1.15fr .85fr;gap:30px;align-items:center;box-shadow:0 14px 38px rgba(7,19,41,.16)}.dm-referral-home-copy>span{font-size:9px;letter-spacing:1.7px;font-weight:900;color:#ffd95b}.dm-referral-home h2{margin:6px 0 8px;font-size:30px;line-height:1.05;letter-spacing:-1px}.dm-referral-home p{margin:0;color:#ccd4df;font-size:13px;line-height:1.55}.dm-referral-home p b{color:#fff}.dm-referral-home-action{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.13);border-radius:17px;padding:15px}.dm-referral-home-action>strong{font-size:12px}.dm-referral-home-action>small{display:block;color:#b9c4d1;margin-top:8px;font-size:9px}.dm-ref-home-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-top:8px}.dm-ref-home-link input{min-width:0;background:#fff;border:0;border-radius:10px;padding:10px;color:#182436;font:600 10px system-ui}.dm-ref-home-link button{border:0;border-radius:10px;background:#ff6847;color:#fff;font:800 11px system-ui;padding:0 13px;cursor:pointer}.dm-dashboard-links{margin-left:auto;display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.dm-dashboard-links button{border:1px solid rgba(17,34,63,.15);background:#fff;color:#344054;border-radius:9px;padding:7px 9px;font:800 9px system-ui;cursor:pointer}.dm-dashboard-links button:hover{background:#fff3ee;color:#b9412b;border-color:#ffc7b9}
@media(max-width:820px){.dm-referral-home{grid-template-columns:1fr;width:min(100% - 30px,1200px);padding:23px 20px}.dm-referral-home h2{font-size:25px}.dm-dashboard-links{display:none}}
@media(max-width:520px){.dm-form-grid,.dm-stat-grid,.dm-insight-grid{grid-template-columns:1fr}.dm-profile-hero{grid-template-columns:88px 1fr}.dm-profile-avatar{width:78px;height:78px;border-radius:18px}.dm-ref-link,.dm-ref-home-link{grid-template-columns:1fr}.dm-ref-link button,.dm-ref-home-link button{min-height:40px}.site-header .header-actions .dm-response-balance-button{margin-left:0}}


/* v19.1: compact header + visible alerts + profile card inside the user cabinet */
.site-header{width:min(1460px,100% - 28px)!important;height:70px!important}
.site-header .main-nav{gap:18px!important;font-size:12px!important}
.site-header .header-actions{gap:7px!important;flex-shrink:0}
.site-header .header-actions .text-button{order:70!important;font-size:12px!important;padding:7px 5px!important}
.site-header .header-actions .dark-button{order:60!important;padding:9px 12px!important;border-radius:10px!important;font-size:12px!important;line-height:1.2!important;box-shadow:0 4px #9d331f!important}
.site-header .header-actions .dm-hub-button{order:89!important;min-height:34px!important;padding:0 9px!important;gap:6px!important;border-radius:10px!important;font-size:11px!important}
.site-header .header-actions .login-button,.site-header .header-actions .account-button{order:90!important;font-size:12px!important;white-space:nowrap}
.site-header .header-actions .dm-response-balance-button{order:91!important;min-height:34px!important;padding:0 9px!important;margin-left:0!important;font-size:11px!important}
.dm-hub-badge{min-width:17px;height:17px;padding:0 5px;font-size:9px}
.dm-hub-button.has-unread{border-color:rgba(255,104,72,.72)!important;box-shadow:0 0 0 2px rgba(255,104,72,.13),0 0 18px rgba(255,104,72,.22)}
.dm-hub-button.new-alert{animation:dm-alert-flash .72s ease-in-out 0s 7}
@keyframes dm-alert-flash{0%,100%{background:#0d1d35;transform:translateY(0)}50%{background:#b83f29;transform:translateY(-1px);box-shadow:0 0 0 4px rgba(255,104,72,.2),0 0 25px rgba(255,104,72,.38)}}
@media(max-width:1260px) and (min-width:1021px){.site-header .main-nav{gap:12px!important;font-size:11px!important}.site-header .header-actions{gap:5px!important}.site-header .header-actions .dark-button{padding:8px 9px!important;font-size:11px!important}.site-header .header-actions .text-button,.site-header .header-actions .account-button{font-size:11px!important}.site-header .header-actions .dm-hub-label{display:none}.site-header .header-actions .dm-hub-button{width:36px;justify-content:center;padding:0!important}.site-header .header-actions .dm-hub-badge{position:absolute;right:-4px;top:-5px}}
@media(max-width:1020px){.site-header{width:min(100% - 22px,1460px)!important}.site-header .header-actions{gap:5px!important}.site-header .header-actions .dm-hub-label{display:none}.site-header .header-actions .dm-hub-button{width:34px;justify-content:center;padding:0!important}.site-header .header-actions .dm-hub-badge{position:absolute;right:-4px;top:-5px}}

@media(min-width:1080px){body .service-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}body .service-cover{height:132px!important}body .service-cover:before{width:94px!important;height:94px!important}body .service-cover:after{width:148px!important;height:148px!important}body .cover-symbol{font-size:43px!important}body .service-body{padding:12px!important}body .service-body h3{font-size:13px!important;min-height:36px!important}}

.dm-dashboard-profile-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:13px;align-items:center;background:linear-gradient(135deg,#101b2d,#172b48);color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:12px 13px;margin:0 0 14px;box-shadow:0 8px 24px rgba(7,19,41,.12)}
.dm-dashboard-avatar{width:58px;height:58px;border-radius:16px;overflow:hidden;background:#ff6848;display:grid;place-items:center;font-size:18px;font-weight:900}.dm-dashboard-avatar img{width:100%;height:100%;object-fit:cover}.dm-dashboard-avatar span{color:#fff}
.dm-dashboard-profile-copy{min-width:0;display:grid;gap:2px}.dm-dashboard-profile-copy b{font-size:13px}.dm-dashboard-profile-copy span{color:#d7deea;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-dashboard-profile-copy small{color:#9fb0c7;font-size:8px}
.dm-dashboard-profile-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.dm-dashboard-profile-actions button{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;border-radius:8px;padding:7px 8px;font:800 9px system-ui;cursor:pointer}.dm-dashboard-profile-actions button:first-child{background:#ff6848;border-color:#ff6848}.dm-dashboard-profile-actions button:hover{filter:brightness(1.08)}
.dm-dashboard-profile-loading{grid-column:1/-1;color:#aebbd0;font-size:10px;padding:6px}
@media(max-width:700px){.dm-dashboard-profile-card{grid-template-columns:50px 1fr}.dm-dashboard-avatar{width:50px;height:50px;border-radius:14px}.dm-dashboard-profile-actions{grid-column:1/-1;justify-content:stretch}.dm-dashboard-profile-actions button{flex:1}.dm-dashboard-profile-copy span{white-space:normal}}
@media(prefers-reduced-motion:reduce){.dm-hub-button.new-alert{animation:none!important}}
.projects-header>div{gap:7px!important}.projects-header>div .dm-hub-button{min-height:34px!important;padding:0 9px!important;font-size:11px!important}.projects-header>div .dm-response-balance-button{min-height:34px!important;padding:0 9px!important}.projects-header>div .dark-button{padding:9px 11px!important;font-size:11px!important}.projects-header>div .account-button{font-size:11px!important;white-space:nowrap}


/* v19.2: theme-safe marketplace UI + visible profile/settings inside the real account modal */
:root{
  --dm-bg:var(--paper);
  --dm-panel:var(--white);
  --dm-text:var(--ink);
  --dm-muted:var(--muted);
  --dm-line:var(--line);
  --dm-accent:var(--accent);
  --dm-navy:var(--deep);
  --dm-yellow:var(--yellow);
}
/* Every custom Delari element follows the site theme instead of assuming a dark page. */
.dm-drawer{background:var(--paper)!important;color:var(--ink)!important}
.dm-tabs,.dm-body{color:var(--ink)}
.dm-tab,.dm-card,.dm-balance,.dm-profile-hero,.dm-profile-form,.dm-settings-form,.dm-password-form,
.dm-stat-grid article,.dm-metric,.dm-insight-grid article,.dm-icon-light,.dm-file-btn{
  background:var(--white)!important;color:var(--ink)!important;border-color:var(--line)!important
}
.dm-tab.active{background:var(--deep)!important;color:#fff!important;border-color:var(--deep)!important}
.dm-title,.dm-profile-name,.dm-stat-grid article b,.dm-metric>div:first-child span,.dm-insight-grid article>b{color:var(--ink)!important}
.dm-sub,.dm-time,.dm-small-note,.dm-stat-grid article span,.dm-metric small,.dm-insight-grid small,.dm-insight-grid article>span{color:var(--muted)!important}
.dm-chat-head{background:var(--paper)!important;color:var(--ink)!important}
.dm-compose{background:var(--paper)!important;border-color:var(--line)!important}
.dm-compose textarea,.dm-profile-form input,.dm-profile-form textarea,.dm-settings-form input,.dm-settings-form select,.dm-password-form input,
.dm-ref-link input{background:var(--white)!important;color:var(--ink)!important;border-color:var(--line)!important}
.dm-btn.secondary{background:var(--soft)!important;color:var(--ink)!important}
.dm-pill{background:var(--soft)!important;color:var(--muted)!important}
.dm-pill.good{background:#e9f7f1!important;color:#087443!important}
.dm-msg:not(.mine):not(.system){background:var(--white)!important;color:var(--ink)!important;border-color:var(--line)!important}
.dm-referral-card{background:linear-gradient(145deg,#fff8db,var(--white))!important;color:var(--ink)!important}
.dm-referral-card h3{color:var(--ink)!important}
.dm-referral-card p{color:var(--muted)!important}

/* Balance is high-contrast in both themes. */
.dm-response-balance-button{
  border-color:#d6b83d!important;background:#fff4bd!important;color:#5f4900!important;
  box-shadow:none!important
}
.dm-response-balance-button:hover{background:#ffe98a!important;border-color:#bc990e!important}
.dm-response-count{color:inherit!important}
.dm-response-word{color:inherit!important;opacity:.9!important}
.dm-response-icon{color:#c98e00!important}
.dm-response-balance-button.empty{color:var(--muted)!important;border-color:var(--line)!important;background:var(--soft)!important}
html[data-theme=dark] .dm-response-balance-button{background:rgba(255,214,90,.11)!important;border-color:rgba(255,214,90,.42)!important;color:#ffd65a!important}
html[data-theme=dark] .dm-response-balance-button:hover{background:rgba(255,214,90,.18)!important;border-color:rgba(255,214,90,.64)!important}
html[data-theme=dark] .dm-response-icon{color:#ffd65a!important}

/* Existing account cabinet: a permanent, obvious profile block inspired by marketplace UX, but original to Delari. */
.dm-account-profile-tools{margin:14px 0 16px;padding:14px;border:1px solid var(--line);border-radius:17px;background:var(--soft);color:var(--ink)}
.dm-account-profile-top{display:grid;grid-template-columns:64px minmax(0,1fr);gap:13px;align-items:center}
.dm-account-avatar{width:64px;height:64px;border-radius:18px;overflow:hidden;background:var(--deep);color:#fff;display:grid;place-items:center;font-weight:900;font-size:20px;line-height:1;position:relative}
.dm-account-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.dm-account-profile-copy{min-width:0;display:grid;gap:3px}.dm-account-profile-copy b{font-size:14px;color:var(--ink)}
.dm-account-profile-copy span{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-account-profile-copy small{font-size:9px;color:var(--muted)}
.dm-account-avatar-upload{display:inline-flex;align-items:center;gap:5px;margin-top:7px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font-size:9px;font-weight:800;cursor:pointer;width:max-content}
.dm-account-tools-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:12px}
.dm-account-tools-actions button{min-width:0;border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:9px;padding:8px 7px;font:800 9px/1.2 inherit;cursor:pointer}
.dm-account-tools-actions button:first-child{background:var(--accent);border-color:var(--accent);color:#fff}
.dm-account-tools-actions button:hover{transform:translateY(-1px);filter:brightness(.99)}
.dm-account-profile-hint{margin:9px 0 0;color:var(--muted);font-size:9px;line-height:1.4}

/* Profile/settings drawer remains fully readable in dark mode. */
html[data-theme=dark] .dm-safety{background:#302a18!important;border-color:#6f5a22!important;color:#ffe8a1!important}
html[data-theme=dark] .dm-referral-card{background:linear-gradient(145deg,#332c18,var(--white))!important;border-color:#66551f!important}
html[data-theme=dark] .dm-referral-card .dm-ref-kicker{color:#ffd65a!important}
html[data-theme=dark] .dm-pill.good{background:#14392c!important;color:#8be0bd!important}

/* Account modal itself is also normalized for both themes where the old bundle had fixed colors. */
.account-modal-panel .account-identity,.account-modal-panel .account-stats article,.account-modal-panel .account-support,
.account-modal-panel .support-thread{color:var(--ink)}

@media(max-width:720px){
  .dm-account-tools-actions{grid-template-columns:1fr 1fr}
  .dm-account-profile-top{grid-template-columns:54px minmax(0,1fr)}
  .dm-account-avatar{width:54px;height:54px;border-radius:15px}
}


/* v19.2 header avatar + remaining theme text normalization */
.dm-header-avatar{width:22px;height:22px;border-radius:7px;overflow:hidden;background:var(--deep);color:#fff;display:inline-grid!important;place-items:center;font-size:8px!important;font-weight:900!important;margin-right:2px;vertical-align:middle}
.dm-header-avatar img{width:100%;height:100%;object-fit:cover;display:block}.dm-header-avatar>span{color:#fff!important;font-size:8px!important}
.dm-profile-form label,.dm-settings-form label,.dm-password-form label,.dm-avatar-upload{color:var(--ink)!important}
.dm-settings-form label small{color:var(--muted)!important}
.dm-progress{background:var(--soft)!important}
.dm-dashboard-links button{background:var(--white)!important;color:var(--ink)!important;border-color:var(--line)!important}
.dm-dashboard-links button:hover{background:var(--soft)!important;color:var(--accent)!important}
html[data-theme=dark] .dm-account-avatar-upload{background:var(--white);color:var(--ink)}
@media(max-width:1020px){.dm-header-avatar{width:20px;height:20px;border-radius:6px;margin-right:0}}

/* v19.3: always-visible account development pulse in the upper-right corner */
.dm-growth-widget{
  --dm-growth:0;
  position:fixed;right:18px;top:112px;z-index:1600;width:278px;min-height:106px;
  display:grid;grid-template-columns:64px minmax(0,1fr);gap:11px;align-items:center;
  padding:11px 12px;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);
  box-shadow:0 12px 32px rgba(16,24,40,.13);cursor:pointer;text-align:left;font-family:inherit;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease
}
.dm-growth-widget:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(16,24,40,.18);border-color:color-mix(in srgb,var(--accent) 42%,var(--line))}
.dm-growth-ring{width:60px;height:60px;border-radius:50%;display:grid;place-content:center;text-align:center;position:relative;isolation:isolate;background:conic-gradient(var(--accent) calc(var(--dm-growth)*1%),var(--soft) 0)}
.dm-growth-ring:after{content:"";position:absolute;inset:6px;border-radius:50%;background:var(--white);z-index:-1}
.dm-growth-ring b{font-size:15px;line-height:1;color:var(--ink)}.dm-growth-ring small{margin-top:3px;font-size:7px;color:var(--muted);font-weight:700}
.dm-growth-copy{min-width:0;display:grid;gap:3px}.dm-growth-kicker{font-size:7px;letter-spacing:1px;font-weight:900;color:var(--accent)}
.dm-growth-copy>strong{font-size:12px;line-height:1.15;color:var(--ink)}.dm-growth-stats{font-size:8px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-growth-bar{display:block;height:5px;border-radius:99px;background:var(--soft);overflow:hidden;margin-top:2px}.dm-growth-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),#ffd65a)}
.dm-growth-copy em{font-style:normal;font-size:7.5px;line-height:1.25;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme=dark] .dm-growth-widget{box-shadow:0 12px 34px rgba(0,0,0,.32)}
@media(max-width:1150px){.dm-growth-widget{top:108px;right:10px;width:224px;grid-template-columns:52px minmax(0,1fr);padding:9px 10px;min-height:88px}.dm-growth-ring{width:48px;height:48px}.dm-growth-ring:after{inset:5px}.dm-growth-ring b{font-size:13px}.dm-growth-copy em{display:none}}
@media(max-width:760px){.dm-growth-widget{top:92px;right:8px;width:auto;min-height:0;grid-template-columns:42px auto;padding:7px 9px;border-radius:13px}.dm-growth-ring{width:40px;height:40px}.dm-growth-ring b{font-size:11px}.dm-growth-ring small{display:none}.dm-growth-copy{max-width:132px}.dm-growth-kicker,.dm-growth-stats,.dm-growth-bar{display:none}.dm-growth-copy>strong{font-size:10px}.dm-growth-copy:after{content:"Открыть аналитику";font-size:7px;color:var(--muted)}}

/* v20: creative-first marketplace + dual discovery + Delari Match */
.dm-creative-directory{position:relative;z-index:30;overflow:visible!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr)) auto!important;align-items:stretch;background:var(--paper)!important}
.dm-creative-menu{position:relative;border-right:1px solid var(--line)}
.dm-creative-trigger{width:100%;height:44px;border:0;background:transparent;color:var(--ink);display:flex;align-items:center;justify-content:center;gap:7px;font:800 12px/1 inherit;cursor:pointer}.dm-creative-trigger>span{font-size:15px;color:var(--accent)}.dm-creative-trigger i{font-style:normal;font-size:9px;color:var(--muted);transition:.15s}.dm-creative-menu:hover .dm-creative-trigger,.dm-creative-menu:focus-within .dm-creative-trigger{background:var(--soft);color:var(--accent)}.dm-creative-menu:hover .dm-creative-trigger i{transform:rotate(180deg)}
.dm-creative-pop{position:absolute;left:0;top:100%;width:245px;padding:8px;background:var(--white);border:1px solid var(--line);border-radius:0 0 14px 14px;box-shadow:0 16px 36px rgba(16,24,40,.16);display:none;z-index:60}.dm-creative-menu:hover .dm-creative-pop,.dm-creative-menu:focus-within .dm-creative-pop{display:grid}.dm-creative-pop button{border:0;background:transparent;color:var(--ink);padding:9px 10px;border-radius:8px;text-align:left;font:700 11px/1.25 inherit;cursor:pointer}.dm-creative-pop button:hover{background:var(--soft);color:var(--accent)}.dm-creative-all{display:flex;align-items:center;padding:0 16px;text-decoration:none;color:var(--muted);font:800 10px/1 inherit;white-space:nowrap}.dm-creative-all:hover{color:var(--accent)}
.dm-creative-hero .hero-copy{max-width:660px}.dm-creative-hero .hero-copy>p{max-width:620px}.dm-hero-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:15px;max-width:610px}.dm-hero-choices button{border:1px solid var(--line);border-radius:13px;padding:11px 13px;background:var(--white);color:var(--ink);text-align:left;display:grid;gap:3px;cursor:pointer}.dm-hero-choices button.primary{background:var(--deep);border-color:var(--deep);color:#fff}.dm-hero-choices b{font-size:11px}.dm-hero-choices span{font-size:8px;opacity:.68}.dm-hero-choices button:hover{transform:translateY(-1px)}
.dm-strategy-head{max-width:760px}.dm-strategy-head>span,.dm-ai-copy>span{display:inline-block;color:var(--accent);font-size:9px;letter-spacing:2px;font-weight:900}.dm-strategy-head h2,.dm-ai-copy h2{font-size:clamp(25px,3vw,40px);line-height:1.05;margin:8px 0 11px;color:var(--ink)}.dm-strategy-head p,.dm-ai-copy p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.dm-dual-path,.dm-ai-marketplace,.dm-creative-focus,.dm-monetization{width:min(1180px,calc(100% - 36px));margin:54px auto}.dm-dual-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}.dm-dual-grid article{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--white);padding:24px;min-height:198px}.dm-dual-grid article:first-child{background:linear-gradient(145deg,var(--deep),#172a48);color:#fff;border-color:transparent}.dm-dual-grid article i{font-style:normal;font-weight:900;font-size:11px;opacity:.55}.dm-dual-grid h3{font-size:21px;margin:32px 0 8px}.dm-dual-grid p{font-size:11px;line-height:1.55;max-width:480px;color:var(--muted)}.dm-dual-grid article:first-child p{color:#c9d4e2}.dm-dual-grid button{margin-top:16px;border:0;border-radius:10px;padding:10px 13px;background:var(--accent);color:#fff;font:800 10px inherit;cursor:pointer}.dm-dual-grid article:nth-child(2) button{background:var(--deep)}
.dm-ai-marketplace{border-radius:26px;background:linear-gradient(135deg,#0d1d35,#111a2b 62%,#242817);padding:2px;box-shadow:0 22px 54px rgba(16,24,40,.16)}.dm-ai-shell{border-radius:24px;background:var(--white);display:grid;grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr);gap:28px;padding:30px}.dm-ai-copy{align-self:center}.dm-ai-examples{display:grid;gap:6px;margin-top:18px}.dm-ai-examples button{border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:10px;padding:9px 10px;text-align:left;font:650 9px/1.35 inherit;cursor:pointer}.dm-ai-examples button:hover{border-color:var(--accent);color:var(--accent)}.dm-ai-form{border:1px solid var(--line);border-radius:18px;background:var(--paper);padding:16px;display:grid;gap:12px}.dm-ai-form label{display:grid;gap:6px;font-size:9px;font-weight:900;color:var(--ink)}.dm-ai-form textarea,.dm-ai-form input{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:11px;background:var(--white);color:var(--ink);padding:11px 12px;font:500 12px/1.45 inherit;outline:none}.dm-ai-form textarea:focus,.dm-ai-form input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent)}.dm-ai-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.dm-ai-form>button{border:0;border-radius:11px;padding:12px;background:var(--accent);color:#fff;font:900 11px inherit;cursor:pointer}.dm-ai-form>button:disabled{opacity:.65;cursor:wait}.dm-ai-results{background:var(--paper);border-radius:0 0 24px 24px;padding:18px 22px 24px}.dm-ai-result-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.dm-ai-result-head>div>span{font-size:8px;letter-spacing:1.5px;font-weight:900;color:var(--accent)}.dm-ai-result-head h3{font-size:22px;margin:4px 0;color:var(--ink)}.dm-ai-result-head p{font-size:10px;color:var(--muted);margin:0}.dm-ai-result-head>strong{font-size:34px;color:var(--accent)}.dm-ai-match-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}.dm-ai-match-grid article{background:var(--white);border:1px solid var(--line);border-radius:15px;padding:12px}.dm-ai-match-top{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:8px;align-items:center}.dm-ai-match-top>img,.dm-ai-match-top>span{width:36px;height:36px;border-radius:11px;object-fit:cover;background:var(--deep);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:900}.dm-ai-match-top div{min-width:0;display:grid}.dm-ai-match-top b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}.dm-ai-match-top small{font-size:7px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-ai-match-top em{font-style:normal;font-size:9px;font-weight:900;color:var(--green)}.dm-ai-match-grid h4{font-size:11px;line-height:1.35;margin:12px 0;min-height:30px;color:var(--ink)}.dm-ai-match-foot{display:flex;justify-content:space-between;gap:7px;align-items:center}.dm-ai-match-foot span{font-weight:900;color:var(--ink);font-size:10px}.dm-ai-match-foot small{color:var(--muted);font-size:7px}.dm-ai-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.dm-ai-actions button{border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:10px;padding:10px 12px;font:800 9px inherit;cursor:pointer}.dm-ai-actions button.primary{background:var(--deep);color:#fff;border-color:var(--deep)}.dm-ai-actions button.done{background:var(--green);border-color:var(--green)}.dm-ai-note{display:block;margin-top:9px;color:var(--muted);font-size:8px}.dm-ai-empty{grid-column:1/-1;background:var(--white);border:1px dashed var(--line);border-radius:13px;padding:18px;text-align:center;color:var(--muted);font-size:10px}
.dm-creative-focus{padding:30px;border:1px solid var(--line);border-radius:24px;background:var(--soft)}.dm-focus-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:22px}.dm-focus-grid article{background:var(--white);border:1px solid var(--line);border-radius:15px;padding:15px;min-height:190px;display:flex;flex-direction:column}.dm-focus-grid article>span{font-size:22px;color:var(--accent)}.dm-focus-grid h3{font-size:16px;margin:14px 0 6px;color:var(--ink)}.dm-focus-grid p{font-size:8px;line-height:1.5;color:var(--muted);margin:0 0 16px;flex:1}.dm-focus-grid button{border:0;background:transparent;color:var(--accent);padding:0;text-align:left;font:900 8px inherit;cursor:pointer}.dm-focus-roadmap{margin-top:14px;border-top:1px solid var(--line);padding-top:13px;color:var(--muted);font-size:9px;line-height:1.5}.dm-focus-roadmap b{color:var(--ink)}
.dm-monetization{padding:30px;border-radius:24px;background:var(--deep);color:#fff}.dm-monetization .dm-strategy-head h2{color:#fff}.dm-monetization .dm-strategy-head p{color:#cbd4e2}.dm-money-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:22px}.dm-money-grid article{border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.055);border-radius:15px;padding:16px}.dm-money-grid b{color:var(--yellow);font-size:19px}.dm-money-grid h3{font-size:12px;margin:9px 0 5px}.dm-money-grid p{font-size:8px;line-height:1.5;color:#bec9d8;margin:0}.dm-safe-deal-note{display:grid;grid-template-columns:220px 1fr;gap:16px;margin-top:14px;padding:14px;border-radius:13px;background:rgba(255,215,90,.09);border:1px solid rgba(255,215,90,.23)}.dm-safe-deal-note strong{font-size:10px;color:var(--yellow)}.dm-safe-deal-note span{font-size:8px;line-height:1.5;color:#d4ddeb}
.dm-promo-label{position:absolute;left:10px;bottom:10px!important;top:auto!important;z-index:4;padding:5px 8px;border-radius:999px;background:#0d1d35;color:#ffd65a!important;font:900 7px/1 inherit;letter-spacing:.6px;text-transform:uppercase}.service-card.dm-promoted{box-shadow:0 0 0 1px color-mix(in srgb,var(--yellow) 60%,transparent),0 14px 32px rgba(16,24,40,.1)}.dm-smart-hidden{display:none!important}
.dm-promo-select{display:grid;gap:6px;margin:12px 0;font-size:10px;font-weight:800;color:var(--ink)}.dm-promo-select select{border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);padding:10px}.dm-promo-tariffs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 18px}.dm-promo-tariffs article{background:var(--white);border:1px solid var(--line);border-radius:13px;padding:12px}.dm-promo-tariffs strong{font-size:17px;color:var(--accent)}.dm-promo-tariffs h3{font-size:10px;color:var(--ink);margin:8px 0 2px}.dm-promo-tariffs p{font-size:8px;color:var(--muted)}
@media(max-width:1050px){.dm-creative-directory{grid-template-columns:repeat(5,minmax(95px,1fr))!important;overflow-x:auto!important}.dm-creative-all{display:none}.dm-focus-grid{grid-template-columns:repeat(3,1fr)}.dm-ai-match-grid{grid-template-columns:repeat(2,1fr)}.dm-money-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.dm-dual-path,.dm-ai-marketplace,.dm-creative-focus,.dm-monetization{width:min(100% - 20px,1180px);margin:34px auto}.dm-creative-directory{grid-template-columns:repeat(5,105px)!important;justify-content:flex-start}.dm-creative-trigger{height:40px;font-size:10px}.dm-creative-pop{display:none!important}.dm-hero-choices,.dm-dual-grid,.dm-ai-shell,.dm-focus-grid,.dm-money-grid{grid-template-columns:1fr}.dm-ai-shell{padding:18px;gap:20px}.dm-ai-fields{grid-template-columns:1fr 1fr}.dm-ai-results{padding:15px}.dm-ai-match-grid{grid-template-columns:1fr}.dm-creative-focus,.dm-monetization{padding:20px}.dm-safe-deal-note{grid-template-columns:1fr}.dm-focus-grid article{min-height:0}.dm-promo-tariffs{grid-template-columns:1fr}}
.dm-project-creative-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.dm-project-creative-chips button{border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.08);color:inherit;padding:7px 9px;font:800 9px/1 inherit;cursor:pointer}.dm-project-creative-chips button:hover{background:var(--accent);border-color:var(--accent);color:#fff}


/* v20.1: reliable profile saving + clear public visibility */
.dm-field-note{display:block;margin-top:5px;color:var(--muted);font-size:8px;line-height:1.4;font-weight:500}
.dm-public-switch{margin-top:3px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--soft)!important;align-items:flex-start!important}
.dm-public-switch>span{display:grid;gap:2px}.dm-public-switch b{font-size:10px;color:var(--ink)}.dm-public-switch small{font-size:8px;color:var(--muted);line-height:1.35}
.dm-profile-savebar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:3px}.dm-save-state{font-size:8px;color:var(--muted);font-weight:800;margin-right:auto}.dm-save-state.pending{color:#a26c00}.dm-save-state.ok{color:var(--green)}.dm-save-state.error{color:#c13d2c}
html[data-theme=dark] .dm-public-switch{background:var(--soft)!important}
@media(max-width:720px){.dm-profile-savebar{align-items:stretch}.dm-profile-savebar .dm-btn{flex:1}.dm-save-state{width:100%;order:3}}

/* v20.4 — отдельная страница «Мои заказы» */
.dm-my-orders-link{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border-radius:9px;text-decoration:none!important;font:800 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:nowrap;color:var(--ink,#152238)!important;transition:background .18s,color .18s,transform .18s}
.dm-my-orders-link:hover{background:var(--soft,#f3f4f6);transform:translateY(-1px)}
.dm-my-orders-link.active{background:var(--accent,#ff6848);color:#fff!important}
.site-header .header-actions>.dm-my-orders-link,.projects-header>div>.dm-my-orders-link{border:1px solid var(--line,#d8dde6);background:var(--white,#fff)}
.dm-dashboard-orders-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--accent);color:#fff!important;text-decoration:none;border-radius:9px;padding:8px 7px;font:800 9px/1.2 inherit}
@media(max-width:1020px){.site-header .main-nav .dm-my-orders-link{padding:0 7px;font-size:11px}.site-header .header-actions>.dm-my-orders-link{max-width:92px;overflow:hidden;text-overflow:ellipsis}}

/* v20.5 — public executors tab */
.dm-executors-link{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border-radius:9px;text-decoration:none!important;font:800 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:nowrap;color:var(--ink,#152238)!important;transition:background .18s,color .18s,transform .18s}
.dm-executors-link:hover{background:var(--soft,#f3f4f6);transform:translateY(-1px)}
.dm-executors-link.active{background:var(--accent,#ff6848);color:#fff!important}
.site-header .header-actions>.dm-executors-link,.projects-header>div>.dm-executors-link{border:1px solid var(--line,#d8dde6);background:var(--white,#fff)}
@media(max-width:1020px){.site-header .main-nav .dm-executors-link{padding:0 7px;font-size:11px}}


/* v20.7 — real reviews, fully theme-aware through the main Delari variables. */
.dm-public-reviews{width:min(1180px,calc(100% - 32px));margin:42px auto;padding:28px;border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--ink);overflow:hidden}
.dm-public-reviews-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.dm-public-reviews-head>div>span{font-size:8px;letter-spacing:1.5px;font-weight:900;color:var(--accent)}.dm-public-reviews-head h2{margin:4px 0 3px;font-size:25px;color:var(--ink)}.dm-public-reviews-head p{margin:0;color:var(--muted);font-size:10px}.dm-public-reviews-head>a{color:var(--accent);font-size:10px;font-weight:900;text-decoration:none;white-space:nowrap}
.dm-public-review-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(285px,1fr);grid-template-rows:1fr;gap:12px;overflow-x:auto;padding:2px 2px 9px;scroll-snap-type:x proximity;scrollbar-color:var(--line) transparent}.dm-public-review-card{scroll-snap-align:start;min-height:285px;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;flex-direction:column;color:var(--ink);box-shadow:0 8px 24px rgba(16,24,40,.05)}
html[data-theme=dark] .dm-public-review-card{box-shadow:0 8px 24px rgba(0,0,0,.18)}.dm-public-review-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.dm-public-review-top>div{display:grid;gap:6px}.dm-review-order{font-size:11px;font-weight:900;line-height:1.35;color:var(--ink)}.dm-public-review-top strong{font-size:15px;color:var(--ink)}.dm-review-stars{color:var(--yellow,#f5b83a)!important;letter-spacing:1px;white-space:nowrap}.dm-public-review-card>p{font-size:11px;line-height:1.6;color:var(--ink);margin:19px 0 7px;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.dm-public-review-card>time{font-size:8px;color:var(--muted)}
.dm-public-review-person{margin-top:auto;padding-top:17px;display:grid;grid-template-columns:45px minmax(0,1fr);gap:10px;align-items:center;text-decoration:none;border-top:1px solid var(--line);color:var(--ink)}.dm-public-review-avatar{width:45px;height:45px;border-radius:50%;overflow:hidden;background:var(--deep);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:900}.dm-public-review-avatar img{width:100%;height:100%;object-fit:cover}.dm-public-review-person>span:last-child{display:grid;min-width:0}.dm-public-review-person b{font-size:10px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-public-review-person small{font-size:7.5px;color:var(--muted);margin-top:3px;line-height:1.35}.dm-public-review-empty{grid-column:1/-1;width:min(680px,100%);padding:26px;border:1px dashed var(--line);border-radius:16px;background:var(--white);display:grid;gap:6px;color:var(--ink)}.dm-public-review-empty b{font-size:12px}.dm-public-review-empty span{font-size:9px;color:var(--muted);line-height:1.5}
.dm-review-text{background:var(--white)!important;color:var(--ink)!important;border-color:var(--line)!important}.dm-review-text::placeholder{color:var(--muted)!important}.dm-pill.warn{background:#fff5d5!important;color:#765d00!important}html[data-theme=dark] .dm-pill.warn{background:#3a321b!important;color:#ffe18a!important}
@media(max-width:760px){.dm-public-reviews{width:min(100% - 20px,1180px);padding:20px;margin:30px auto}.dm-public-reviews-head{align-items:flex-start;flex-direction:column}.dm-public-review-track{grid-auto-columns:minmax(255px,86vw)}}


/* v20.8 — direct invitations, response-gated chat and contacts. All colors come from Delari theme variables. */
.dm-contact-unlocked,.dm-contact-locked{margin:8px 0 10px;border:1px solid var(--line,var(--dm-line));border-radius:13px;padding:11px 12px;background:var(--soft,#f4f6f8);color:var(--ink,var(--dm-text));display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.dm-contact-unlocked{border-color:color-mix(in srgb,var(--green,#1c9b68) 45%,var(--line,var(--dm-line)));background:color-mix(in srgb,var(--green,#1c9b68) 9%,var(--white,#fff))}
.dm-contact-unlocked>div:first-child{display:grid;gap:2px}.dm-contact-unlocked>div:first-child span{font-size:7px;letter-spacing:.9px;color:var(--green,#1c9b68);font-weight:900}.dm-contact-unlocked>div:first-child b{font-size:11px}.dm-contact-values{display:flex;gap:7px;flex-wrap:wrap}.dm-contact-values a,.dm-contact-values em{border:1px solid var(--line,var(--dm-line));border-radius:9px;padding:7px 9px;background:var(--white,#fff);color:var(--ink,var(--dm-text));text-decoration:none;font:800 9px/1.2 system-ui;font-style:normal}.dm-contact-values a:hover{border-color:var(--accent,#ff6848);color:var(--accent,#ff6848)}
.dm-contact-locked{display:grid;gap:3px}.dm-contact-locked b{font-size:10px}.dm-contact-locked span{font-size:8px;color:var(--muted,var(--dm-muted));line-height:1.45}.dm-chat-closed{position:absolute;left:0;right:0;bottom:0;padding:13px 15px calc(13px + env(safe-area-inset-bottom));background:var(--soft,#eef1f5);border-top:1px solid var(--line,var(--dm-line));color:var(--muted,var(--dm-muted));font:800 10px/1.4 system-ui;text-align:center}
.dm-direct-invite{border-color:color-mix(in srgb,var(--accent,#ff6848) 42%,var(--line,var(--dm-line)))}.dm-direct-rule{margin-top:9px;padding:9px 10px;border-radius:10px;background:var(--soft,#f4f6f8);border:1px solid var(--line,var(--dm-line));font-size:8px;line-height:1.5;color:var(--muted,var(--dm-muted))}
.dm-invite-response{display:grid;gap:8px;margin-top:10px}.dm-invite-response>textarea{width:100%;min-height:82px;resize:vertical;border:1px solid var(--line,var(--dm-line));border-radius:10px;background:var(--white,#fff);color:var(--ink,var(--dm-text));padding:9px 10px;font:10px/1.45 system-ui;box-sizing:border-box}.dm-invite-response>textarea::placeholder{color:var(--muted,var(--dm-muted))}.dm-invite-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.dm-invite-fields label{display:grid;gap:4px;color:var(--muted,var(--dm-muted));font-size:7.5px;font-weight:800}.dm-invite-fields input{width:100%;box-sizing:border-box;border:1px solid var(--line,var(--dm-line));border-radius:9px;background:var(--white,#fff);color:var(--ink,var(--dm-text));padding:8px 9px;font:10px system-ui}
html[data-theme=dark] .dm-contact-unlocked,html[data-theme=dark] .dm-contact-locked,html[data-theme=dark] .dm-direct-rule,html[data-theme=dark] .dm-chat-closed{box-shadow:none}
@media(max-width:620px){.dm-invite-fields{grid-template-columns:1fr}.dm-contact-unlocked{align-items:flex-start}.dm-contact-values{width:100%}.dm-contact-values a,.dm-contact-values em{flex:1;text-align:center}}

/* DELARI_THEME_AUDIT_V20_16 — custom marketplace interface */
html[data-theme=dark] .dm-drawer,
html[data-theme=dark] .dm-card,
html[data-theme=dark] .dm-profile-hero,
html[data-theme=dark] .dm-profile-form,
html[data-theme=dark] .dm-settings-form,
html[data-theme=dark] .dm-password-form,
html[data-theme=dark] .dm-stat-grid article,
html[data-theme=dark] .dm-metric,
html[data-theme=dark] .dm-insight-grid article,
html[data-theme=dark] .dm-balance{background:var(--white)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=dark] .dm-compose textarea,
html[data-theme=dark] .dm-review-text,
html[data-theme=dark] .dm-profile-form input,
html[data-theme=dark] .dm-profile-form textarea,
html[data-theme=dark] .dm-settings-form input,
html[data-theme=dark] .dm-settings-form select,
html[data-theme=dark] .dm-password-form input{background:var(--soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=dark] .dm-btn.secondary,
html[data-theme=dark] .dm-icon-light,
html[data-theme=dark] .dm-file-btn,
html[data-theme=dark] .dm-account-avatar-upload,
html[data-theme=dark] .dm-dashboard-links button{background:var(--soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=dark] .dm-chat-head,
html[data-theme=dark] .dm-compose{background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=dark] .dm-msg:not(.mine):not(.system){background:var(--soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=dark] .dm-small-note,
html[data-theme=dark] .dm-file-name,
html[data-theme=dark] .dm-loading{color:var(--muted)!important}


/* DELARI_LAYOUT_AUDIT_V20_17
   Responsive safety pass: navigational controls must never require horizontal dragging.
   Content carousels (reviews/media) remain intentionally scrollable. */
html,body{max-width:100%;overflow-x:clip}
.dm-drawer{width:min(520px,100vw)!important;max-width:100vw!important;overflow-x:hidden!important}
.dm-head,.dm-safety,.dm-tabs,.dm-body{min-width:0;max-width:100%;box-sizing:border-box}
.dm-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;overflow-x:visible!important;padding:12px 12px 8px!important;width:100%!important;max-width:100%!important}
.dm-tab{width:100%!important;min-width:0!important;max-width:100%!important;min-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:8px 7px!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.15!important}
.dm-body,.dm-card,.dm-card-top,.dm-row,.dm-conv-list,.dm-chat-head,.dm-compose,.dm-compose-main,.dm-balance,.dm-contact-unlocked{min-width:0;max-width:100%}
.dm-card-top>*{min-width:0}.dm-title,.dm-sub{overflow-wrap:anywhere;word-break:normal}.dm-row{flex-wrap:wrap!important}
.dm-row>.dm-btn,.dm-row>button,.dm-row>a,.dm-btn{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:center}
.dm-chat-head strong{min-width:0;overflow-wrap:anywhere}.dm-compose textarea{min-width:0}.dm-file-name{max-width:min(250px,60vw)}
.dm-account-tools-actions{width:100%;max-width:100%;overflow:hidden;grid-template-columns:repeat(4,minmax(0,1fr))!important}
.dm-account-tools-actions button{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;line-height:1.2!important}
.dm-account-profile-copy,.dm-dashboard-profile-copy{min-width:0}.dm-account-profile-copy span,.dm-dashboard-profile-copy span{max-width:100%}
.site-header,.site-header>*{min-width:0}.site-header .main-nav,.site-header .header-actions{min-width:0;max-width:100%}.site-header .main-nav a,.site-header .header-actions button,.site-header .header-actions a{min-width:0;max-width:100%}
.projects-header,.projects-header>*{min-width:0}.projects-header>div{min-width:0;max-width:100%;flex-wrap:wrap}

/* Compact navigation before the desktop header reaches overflow. */
@media(max-width:1180px) and (min-width:1021px){
  .site-header .main-nav{gap:9px!important;font-size:10.5px!important}
  .site-header .main-nav a{padding-inline:2px!important}
  .site-header .header-actions{gap:4px!important}
  .site-header .header-actions .dark-button{padding:8px 8px!important;font-size:10.5px!important}
  .site-header .header-actions .text-button,.site-header .header-actions .account-button{font-size:10.5px!important}
}
@media(max-width:720px){
  .dm-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:10px 10px 7px!important}
  .dm-tab{font-size:11px!important;padding:7px 6px!important;min-height:39px!important}
  .dm-safety{margin-inline:10px!important}
  .dm-body{padding-inline:10px!important}
  .dm-account-tools-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:360px){
  .dm-tabs{gap:6px!important;padding-inline:8px!important}
  .dm-tab{font-size:10px!important;padding-inline:4px!important}
  .dm-head{padding-inline:12px!important}.dm-safety{margin-inline:8px!important}.dm-body{padding-inline:8px!important}
}

/* The creative category shortcut strip contains buttons, so wrap it instead of forcing a horizontal swipe. */
@media(max-width:1050px){
  .dm-creative-directory{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important;overflow:visible!important;overflow-x:visible!important}
  .dm-creative-menu,.dm-creative-menu>button{min-width:0!important;max-width:100%!important}
  .dm-creative-menu>button{white-space:normal!important;overflow-wrap:anywhere!important}
}
@media(max-width:560px){.dm-creative-directory{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* DELARI_FILTER_READABILITY_V20_18
   Projects/search accessibility pass: readable typography, high contrast and explicit filter states. */
.projects-site{font-size:16px!important}
.projects-site .projects-sidebar h3{font-size:14px!important;line-height:1.3!important;color:var(--ink)!important;font-weight:850!important}
.projects-site .project-tabs button{min-height:44px!important;padding:0 14px!important;font-size:13px!important;line-height:1.25!important;color:var(--ink)!important}
.projects-site .filter-favorite,.projects-site .filter-check{min-height:36px!important;gap:10px!important;color:var(--ink)!important;font-size:13px!important;line-height:1.3!important;font-weight:650!important;opacity:1!important;border-radius:8px}
.projects-site .filter-favorite{padding:9px 10px!important}
.projects-site .filter-favorite input,.projects-site .filter-check input{width:18px!important;height:18px!important;flex:0 0 18px!important}
.projects-site .filter-check small{min-width:24px;padding:3px 7px;border-radius:999px;background:var(--soft)!important;color:var(--muted)!important;font-size:11px!important;line-height:1.2!important;font-weight:850!important;text-align:center!important}
.projects-site .filter-check:has(input:checked),.projects-site .filter-favorite:has(input:checked){background:color-mix(in srgb,var(--accent) 10%,var(--white))!important;color:var(--ink)!important}
.projects-site .filter-check:has(input:checked) span,.projects-site .filter-favorite:has(input:checked) span{color:var(--ink)!important;font-weight:850!important}
.projects-site .filter-range input,.projects-site .filter-keyword,.projects-site .projects-sidebar select{min-height:42px!important;border:1px solid var(--line)!important;border-radius:9px!important;background:var(--white)!important;color:var(--ink)!important;padding:9px 10px!important;font-size:13px!important;line-height:1.25!important}
.projects-site .filter-range input::placeholder,.projects-site .filter-keyword::placeholder{color:var(--muted)!important;opacity:.9!important}
.projects-site .filter-range input:focus,.projects-site .filter-keyword:focus,.projects-site .projects-sidebar select:focus{border-color:var(--accent)!important;outline:3px solid color-mix(in srgb,var(--accent) 18%,transparent)!important;outline-offset:1px!important}
.projects-site .filter-reset{width:100%;min-height:42px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--ink);padding:9px 11px;font:850 12px/1.25 inherit;cursor:pointer}
.projects-site .filter-reset:hover{border-color:var(--accent);color:var(--accent);background:var(--soft)}
.projects-site .projects-toolbar>span{color:var(--muted)!important;font-size:13px!important;line-height:1.3!important}
.projects-site .projects-toolbar>span b{color:var(--ink)!important}
.projects-site .projects-toolbar .section-kicker{font-size:10px!important;letter-spacing:2px!important}
.projects-site .project-card-meta span{font-size:11px!important}
.projects-site .project-card-meta small{font-size:11px!important;color:var(--muted)!important}
.projects-site .project-card h3{font-size:20px!important;line-height:1.3!important;color:var(--ink)!important}
.projects-site .project-card-main>p{font-size:14px!important;line-height:1.6!important;color:var(--muted)!important}
.projects-site .project-customer b{font-size:13px!important;color:var(--ink)!important}
.projects-site .project-customer small{font-size:11px!important;color:var(--muted)!important}
.projects-site .project-card>aside>span,.projects-site .project-card>aside>small{font-size:11px!important;color:var(--muted)!important}
.projects-site .project-card>aside>b{font-size:16px!important;color:var(--ink)!important}
.projects-site .project-card>aside>button:not(.project-heart),.projects-site .project-card>aside>i{min-height:42px!important;padding:10px 12px!important;font-size:12px!important;line-height:1.25!important}
.projects-site .project-empty h3{font-size:18px!important;line-height:1.3!important;color:var(--ink)!important}
.projects-site .project-empty p{font-size:13px!important;line-height:1.55!important;color:var(--muted)!important}
.projects-site .project-empty button{min-height:42px!important;font-size:12px!important;padding:10px 15px!important}
.projects-site .exchange-stats p,.projects-site .exchange-stats p b{font-size:12px!important;line-height:1.35!important}
.projects-site .projects-footer{font-size:12px!important}
.projects-site button:focus-visible,.projects-site a:focus-visible,.projects-site input:focus-visible,.projects-site select:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 45%,transparent)!important;outline-offset:2px!important}
html[data-theme=dark] .projects-site .filter-favorite,html[data-theme=dark] .projects-site .filter-check{color:var(--ink)!important}
html[data-theme=dark] .projects-site .project-tabs button.active{background:#17382b!important;color:#9ce8c6!important;border-left-color:#48cc91!important}
html[data-theme=dark] .projects-site .project-tabs button+button{border-color:var(--line)!important}
html[data-theme=dark] .projects-site .filter-check:has(input:checked),html[data-theme=dark] .projects-site .filter-favorite:has(input:checked){background:#302820!important}

/* Mobile filters are a deliberate drawer-like block instead of disappearing completely. */
.dm-project-filter-toggle{display:none;min-height:42px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);padding:9px 13px;font:850 13px/1.2 inherit;cursor:pointer;white-space:nowrap}
.dm-project-filter-toggle b{display:inline-grid;place-items:center;min-width:21px;height:21px;margin-left:6px;padding:0 6px;border-radius:999px;background:var(--accent);color:#fff;font-size:10px}
@media(max-width:680px){
  .projects-site .projects-toolbar{align-items:center!important;flex-wrap:wrap!important;gap:10px!important}
  .dm-project-filter-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-left:auto!important}
  .projects-site .projects-sidebar{order:1!important}
  .projects-site .projects-content{order:2!important}
  .projects-site .projects-sidebar section:not(.exchange-stats){display:none!important}
  .projects-site .projects-sidebar.dm-filters-open section:not(.exchange-stats){display:block!important}
  .projects-site .projects-sidebar .filter-reset{display:none!important}
  .projects-site .projects-sidebar.dm-filters-open .filter-reset{display:block!important}
  .projects-site .projects-sidebar:not(.dm-filters-open) .exchange-stats{display:none!important}
  .projects-site .projects-sidebar.dm-filters-open .exchange-stats{display:block!important}
  .projects-site .projects-shell{margin-top:18px!important}
}
