/* Dominor: monochrome identity derived from the supplied proposal. YekanBakh 4 is the owner-supplied web typeface. */
:root:root{--bg:#f5f5f4;--card:#fff;--ink:#151515;--text:#151515;--muted:#666;--accent:#202020;--green:#202020;--dark:#111;--line:#dededb;--border:#dededb;--soft:#eeedeb;--surface:#fff;color-scheme:light}
html[data-theme=dark]:root{--bg:#101011;--card:#19191b;--ink:#f5f5f3;--text:#f5f5f3;--muted:#aaa9a5;--accent:#e4e3dd;--green:#e4e3dd;--dark:#080809;--line:#343436;--border:#343436;--soft:#242426;--surface:#19191b;color-scheme:dark}
body{background:var(--bg);color:var(--ink)}.dominor-wordmark{display:block;object-fit:contain;max-width:100%;height:auto}.product-name{display:block;font-size:11px;letter-spacing:3px;margin-top:9px;color:var(--muted)}html[data-theme=dark] .dominor-wordmark{filter:invert(1)}
.sidebar,.login-story{background:#111;color:#f5f5f3}.sidebar .dominor-wordmark,.login-story .dominor-wordmark{filter:invert(1)}.sidebar .product-name,.login-story .product-name,.login-story p{color:#aaa}.brand-mark{background:transparent!important}.brand-mark img{border-radius:8px}.brand small{color:#aaa!important;font-size:8px;letter-spacing:1px}.sidebar nav button.active{background:#29292b;color:#fff;border-color:#555}.sidebar nav button:hover{background:#242426;color:#fff}.login-story:before,.login-story:after{border-color:#ffffff0b;box-shadow:none}.login-story h1{letter-spacing:-1.2px}.login-story .eyebrow{color:#c9c8c2}
header,.topbar,.card,dialog,.modal-body,input,textarea,select,#form-view{border-color:var(--border)}.card,dialog,.modal-body,#form-view{background:var(--card)}input,textarea,select{background:var(--card);color:var(--ink)}button,.button,.ghost,.language-switch{background:var(--card);color:var(--ink);border-color:var(--border)}button:hover,.button:hover,.ghost:hover{background:var(--soft);border-color:#92928e}.primary,.cta{background:#202020!important;color:#fff!important;border-color:#202020!important}.primary:hover,.cta:hover{background:#393939!important;color:#fff!important}html[data-theme=dark] .primary,html[data-theme=dark] .cta{background:#e4e3dd!important;color:#111!important;border-color:#e4e3dd!important}html[data-theme=dark] .primary:hover{background:#fff!important}
.eyebrow,.feature-no,.step-no,.trust-mark{color:var(--ink)}.progress span{background:var(--accent)}.notice{background:var(--soft);color:var(--ink)}.options button.selected{background:var(--soft);border-color:var(--ink);color:var(--ink)}.tabs button.active{color:var(--ink);border-color:var(--accent)}tbody tr:hover{background:var(--soft)!important}#toast{background:#202020;color:#fff}html[data-theme=dark] #toast{background:#e4e3dd;color:#111}
/* Status, urgency, payments and completed work keep semantic green/yellow/red. */
.score,.badge,.task-done,.service-done,.execution-done{font-weight:600}.brand-family{max-width:1050px;padding:75px 0 36px}.brand-family h1{font-size:clamp(34px,5vw,60px);line-height:1.55;max-width:900px;letter-spacing:-1.8px}.brand-family p{max-width:710px;font-size:18px}.brand-family .eyebrow{font-size:11px;letter-spacing:4px}.product-catalog{padding:25px 0 65px}.product-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.product-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:28px;display:flex;flex-direction:column;min-height:250px}.product-card h3{font-size:25px;letter-spacing:-.7px;margin:10px 0}.product-card p{font-size:14px}.product-card a{margin-top:auto;align-self:flex-start}.product-label{font-size:11px;letter-spacing:2px}.product-state{display:inline-flex;font-size:11px;padding:4px 9px;border:1px solid var(--border);border-radius:6px;align-self:flex-start}.product-card.available{border-color:var(--ink)}.product-card.upcoming{opacity:.75}.product-catalog>h2{margin-bottom:25px}
.hero{border-top:1px solid var(--border);padding-top:55px}.hero h2{font-size:36px;line-height:1.7;letter-spacing:-1px}.hero:before{background:none}.preview{background:#141416;box-shadow:0 25px 70px #00000015;transform:none;border:1px solid #353537}.preview .mini-bars i{background:#9c9c98}.preview-score strong{color:#f4f3ee}.preview-score,.preview-score strong span,.preview small{color:#a9a9a4}.pill{background:#252d27;color:#b7d6be}.features article:hover,.detail-card:hover{border-color:var(--ink);box-shadow:0 12px 30px #0000000a}.step-no,.channel-tags span{background:var(--soft);border-color:var(--border)}.closing-cta{background:var(--card)}footer{background:#111;color:#f3f3ef}footer p{color:#aaa}footer a{color:inherit}.brand-family a:not(.primary){text-decoration:underline;text-underline-offset:5px}a:focus-visible,button:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
html[dir=ltr] .brand-family h1{line-height:1.15;letter-spacing:-2.2px}.logo .dominor-wordmark{width:185px}.form-confirm{color:var(--ink)}html[data-theme=dark] .task-row.done,html[data-theme=dark] .execution-item.done{background:#172c22}
@media(max-width:800px){.product-cards{grid-template-columns:1fr}.brand-family{padding-top:42px}.brand-family h1{font-size:37px}.hero h2{font-size:29px}.product-card{min-height:210px}.brand small{letter-spacing:0}.logo .dominor-wordmark{width:165px}}

/* Restrained status palette: semantic meaning remains explicit through text/icons. */
:root:root{--surface-soft:#eeedeb;--success:#395b47;--success-bg:#e9eeea;--warning:#796039;--warning-bg:#f2eee4;--danger:#874747;--danger-bg:#f3e9e8;--info:#4d5c68;--info-bg:#e9edf0}
html[data-theme=dark]:root{--surface-soft:#242426;--success:#bdd0bd;--success-bg:#242f28;--warning:#dac7a1;--warning-bg:#342f24;--danger:#ddb6b3;--danger-bg:#372728;--info:#bec8d0;--info-bg:#282e34}
html:root .status-green,html:root .badge.ready,html:root .badge.paid_full,html:root .badge.completed,html:root .badge.executing,html:root .score-high,html:root .task-row.status-green{background:var(--success-bg)!important;color:var(--success)!important;border-color:#8b9d90!important}
html:root .status-yellow,html:root .badge.negotiating,html:root .badge.paid_partial,html:root .score-medium{background:var(--warning-bg)!important;color:var(--warning)!important;border-color:#b6a381!important}
html:root .status-red,html:root .badge.urgent,html:root .badge.lost{background:var(--danger-bg)!important;color:var(--danger)!important;border-color:#b79b97!important}
html:root .badge.form,html:root .badge.assigned,html:root .badge.won,html:root .badge.contracted{background:var(--info-bg)!important;color:var(--info)!important}
html:root .score-low,html:root .score-neutral,html:root .case-closed .badge,html:root .badge.cancelled{background:var(--soft)!important;color:var(--muted)!important}
html:root .task-row.status-green .task-check,html:root .service-list .status-green:before,html:root .service-completion{color:var(--success)!important}html:root .task-row.status-green small{color:var(--success)!important}html[data-theme=dark] .task-row.status-green{background:var(--success-bg)!important;color:var(--success)!important;border-color:#657c68!important}
.payment-progress{accent-color:var(--success)}.settled-card{border-color:var(--success)}.connection-light.green{background:#63856d;box-shadow:0 0 0 5px #63856d22}.connection-light.yellow{background:#b29864}.connection-light.red{background:#a66b68}.connection-light.blue{background:#78899c}.done{background:#26352a;color:#c0d3c0}.pending{background:#383225;color:#e1ceaa}
html[data-theme=dark] .error,.error{background:var(--danger-bg);color:var(--danger)}.avatar{background:var(--soft);color:var(--ink)}

html:root .sidebar,html:root .login-story{background:#111}html:root .sidebar nav button.active{background:#29292b;color:#fff;box-shadow:inset -3px 0 #b9b8b2}html:root .nav-icon{color:#b9b8b2}.sidebar .brand{display:block;margin-bottom:30px}.sidebar .brand small{display:block;margin-top:9px;line-height:1.8}.sidebar .product-name{font-size:13px;letter-spacing:3px}.sidebar .dominor-wordmark{width:168px}.dot{background:#63856d;box-shadow:0 0 0 4px #63856d22}html:root th{background:var(--soft)}html:root .login-story .brand{display:block}
html:root td,html:root th{border-color:var(--border)}html:root .sidebar .bottom{border-color:#343436}

/* Strategic identity: a restrained brass accent and a connected, systemic composition. */
:root:root{--brand-accent:#7b5c33;--brand-accent-soft:#eee8dd}html[data-theme=dark]:root{--brand-accent:#ccb38b;--brand-accent-soft:#302b22}
.brand-family .eyebrow,.brand-descriptor,.brand-manifesto .eyebrow,.brand-domains .eyebrow{color:var(--brand-accent)}.brand-family .brand-descriptor{font-size:14px;margin-top:14px}.logo{flex-direction:column;align-items:flex-start;gap:3px}.logo-signature{font-size:10px;letter-spacing:1.6px;color:var(--muted);padding-inline-start:48px;white-space:nowrap}.sidebar .brand small{color:#ccb38b!important;font-size:8px;letter-spacing:1.1px}.brand-family{padding-bottom:65px}
.orchestration-line{display:flex;align-items:center;gap:18px;position:relative;padding:25px 0 45px;max-width:720px;margin-top:25px;border-bottom:1px solid var(--border);direction:ltr}.orchestration-line span{font-size:10px;letter-spacing:2.5px;color:var(--muted);animation:orchestrate-in .7s ease-out both}.orchestration-line span:nth-of-type(2){animation-delay:.15s}.orchestration-line span:nth-of-type(3){animation-delay:.3s}.orchestration-line i{height:1px;flex:1;background:var(--brand-accent);opacity:.6}.orchestration-line b{position:absolute;left:50%;bottom:-12px;transform:translateX(-50%);background:var(--bg);padding:0 18px;font-size:11px;letter-spacing:3px;color:var(--brand-accent)}
.brand-manifesto{display:grid;grid-template-columns:1fr 1.1fr;gap:55px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:50px 0}.brand-manifesto h2{font-size:32px;line-height:1.7}.brand-manifesto p{line-height:2.2}.brand-manifesto strong{color:var(--brand-accent)}.domain-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.domain-grid article{border:1px solid var(--border);border-radius:16px;padding:28px;background:var(--card)}.domain-grid h3{font-size:22px}.domain-grid p{font-size:15px}.brand-method{margin-top:35px}.brand-method ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:0;list-style:none;counter-reset:method}.brand-method li{counter-increment:method;border-top:1px solid var(--border);padding-top:20px}.brand-method li:before{content:'0' counter(method);display:block;margin-bottom:15px;color:var(--brand-accent);font-size:12px}.brand-method li p{font-size:14px}.footer-signature{letter-spacing:1px;color:#ccb38b}
html:root a:focus-visible,html:root button:focus-visible{outline-color:var(--brand-accent)}html:root .tabs button.active{border-color:var(--brand-accent)}html:root .sidebar nav button.active{box-shadow:inset -3px 0 #ccb38b}.progress span{background:var(--brand-accent)}
@keyframes orchestrate-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.orchestration-line span{animation:none}}
@media(max-width:800px){.brand-manifesto,.domain-grid{grid-template-columns:1fr;gap:20px}.brand-method ol{grid-template-columns:1fr}.brand-manifesto h2{font-size:26px}.orchestration-line{gap:9px}.orchestration-line span{font-size:8px;letter-spacing:1px}.logo-signature{padding-inline-start:42px;font-size:9px}}
.logo-signature{direction:ltr}

/* Dark workspace is charcoal gray; the brand sidebar stays black. */
html[data-theme=dark] body.crm-app{--bg:#242426;--card:#2d2d30;--surface:#2d2d30;--soft:#363639;--surface-soft:#323235;--border:#48484c;--line:#48484c;background:var(--bg)}
html[data-theme=dark] body.crm-app .layout>main,html[data-theme=dark] body.crm-app .workspace{background:var(--bg)}html[data-theme=dark] body.crm-app .topbar{background:#2c2c2f}html[data-theme=dark] body.crm-app .card,html[data-theme=dark] body.crm-app dialog,html[data-theme=dark] body.crm-app .modal-body{background:var(--card)}html[data-theme=dark] body.crm-app .sidebar{background:#111}
html[data-theme=dark] img[src="/brand/icon.svg"],.preview-head img[src="/brand/icon.svg"]{filter:invert(1)}
