/* Semantic palette shared by the CRM, dialogs and the lazy assistant. */
:root{
 --bg:#f5f1e7;--card:#fffdf8;--surface:#fffdf8;--surface-soft:#f1ebdf;--soft:#ebe2d6;
 --text:#33232a;--muted:#71606a;--heading:#631d35;--border:#d4c6bf;--accent:#631d35;
 --nav:#351522;--nav2:#631d35;--nav-text:#dfd7bc;--on-accent:#fff7e6;
 --accent-soft:#f1e2e5;--accent-border:#b8788c;--danger:#ab3047;--danger-soft:#fff0f2;--danger-border:#edc8ce;
 --success:#286448;--success-soft:#e8f6ee;--warn:#866018;--warn-soft:#fff6e3;
 --shadow:0 4px 18px rgba(63,27,40,.045);--overlay:rgba(31,13,22,.55);
 --table-head:#eee6dc;--focus:rgba(99,29,53,.18);--track:#e8ddd6;--control-border:#a28b92;
 --chart-1:#631d35;--chart-2:#357d68;--chart-3:#4c71aa;--chart-4:#86629e;--chart-5:#bb526c;--chart-6:#608145;--chart-7:#a07039;--chart-8:#338390;
}
html[data-theme="dark"]{
 --bg:#191316;--card:#281c22;--surface:#281c22;--surface-soft:#33242c;--soft:#402e37;
 --text:#f3eedf;--muted:#cbbec3;--heading:#f3eedf;--border:#654650;--accent:#dfd7bc;
 --nav:#151013;--nav2:#dfd7bc;--nav-text:#cbbec3;--on-accent:#191b1e;
 --accent-soft:#462330;--accent-border:#a46a7b;--danger:#ffabb5;--danger-soft:#432930;--danger-border:#8d5360;
 --success:#9bdfbd;--success-soft:#243e33;--warn:#f5c76f;--warn-soft:#3d321f;
 --shadow:0 6px 24px rgba(0,0,0,.16);--overlay:rgba(3,5,7,.76);--table-head:#33242c;--focus:rgba(223,215,188,.22);--track:#4b3540;
 --panel:var(--surface);--brand:var(--accent);--control-border:#697585;
 --chart-1:#dfd7bc;--chart-2:#88c6b2;--chart-3:#8ab8ff;--chart-4:#c5a0ed;--chart-5:#f19ba8;--chart-6:#a2d2a4;--chart-7:#d7b18c;--chart-8:#89cedd;
}
html{scrollbar-color:var(--border) transparent}body{background:var(--bg);color:var(--text);line-height:1.55}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
::selection{background:var(--accent-border);color:var(--text)}
.layout{grid-template-columns:230px minmax(0,1fr)}.side{height:100dvh;padding:20px 14px 12px;overflow:hidden;background:var(--nav);align-self:start}.side .brand{flex-direction:row;align-items:center;gap:10px;padding:0 6px 20px;flex-shrink:0}.side .motawar-logo{width:54px;height:54px;border-radius:13px}.brand strong{font-size:15px}.side .brand small{color:#acc3cd;font-size:10px;margin-top:4px}.side .nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;gap:4px;padding:2px 0 14px;scrollbar-width:thin}.nav button{color:var(--nav-text);font-size:12px;min-height:42px;display:flex;align-items:center;gap:11px;padding:10px 12px;border-right:0}.nav button.active{background:#25505c;border-right:0;box-shadow:inset -3px 0 #67cecb;color:#fff}.nav button:hover{background:#234653;color:#fff}.nav b{margin-right:auto;float:none;background:#335c65;color:#e4f4f5;font-size:10px;padding:1px 7px}.nav-icon{display:inline-flex;width:18px;height:18px;opacity:.85;flex-shrink:0}.nav-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.side .user{flex-shrink:0;margin-top:0;display:flex;align-items:center;gap:8px;padding:14px 3px 0;color:#eff7f9;border-top:1px solid #35505d}.account-button{display:flex;align-items:center;gap:9px;flex:1;min-width:0;border:0;background:transparent;color:inherit;text-align:right;padding:2px;cursor:pointer}.account-avatar{width:35px;height:35px;display:grid;place-items:center;background:#335360;border-radius:11px;flex-shrink:0;font-weight:700}.account-button strong{display:block;font-size:12px}.account-button small{display:block;font-size:10px;color:#b6cbd5}.side .logout-button{background:transparent;border:0;color:#c1d5df;cursor:pointer;padding:8px;border-radius:8px}.logout-button:hover{background:#294853}.logout-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.top{height:72px;padding:0 28px;background:var(--surface);border-color:var(--border);gap:12px}.search{max-width:660px;background:var(--surface-soft)!important}.theme-toggle{margin-right:auto;display:flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft);color:var(--text);padding:9px 11px;font-size:11px;cursor:pointer}.theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.content{padding:26px 28px;max-width:1660px}.heading{align-items:center;margin-bottom:20px}.heading h1{font-size:26px;color:var(--heading);font-weight:700}.heading small{font-size:11px;color:var(--muted);font-weight:400}.btn{background:var(--nav2);color:var(--on-accent);min-height:38px;font-size:12px;font-weight:700;border-radius:10px}.btn.alt{background:var(--surface);color:var(--text);border-color:var(--border);font-weight:400}.btn.danger{background:var(--danger-soft);color:var(--danger);border-color:var(--danger-border)}.pill,.iconbtn{background:var(--surface);color:var(--text);border-color:var(--border);border-radius:8px}.pill:hover,.btn.alt:hover{background:var(--soft);filter:none}.pill.active{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-border)}.danger-text,.r-delete{color:var(--danger)!important}
.input,.select,.textarea{background:var(--surface);color:var(--text);border-color:var(--border);min-height:40px}.input::placeholder,.textarea::placeholder{color:var(--muted);opacity:.8}.input:focus,.select:focus,.textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus)}.field label,.muted,.cellmeta{color:var(--muted)}
.filterbar{background:var(--surface);padding:14px 16px;gap:10px;margin-bottom:18px;border-color:var(--border);border-radius:12px}.filter-shortcuts{border-top:1px solid var(--border);padding-top:11px;gap:6px}.filter-shortcuts .pill{font-size:10px;padding:4px 9px}.filterbar .field label{font-weight:400}.filter-shortcuts span{font-size:10px}.panel,.stat,.quote-card,.niche-card,.trash-card,.service-card,.modal,.loginbox{background:var(--surface);border-color:var(--border);color:var(--text);box-shadow:var(--shadow)}.stat{border-top:1px solid var(--border);padding:18px 20px;border-radius:12px}.stat strong{color:var(--heading);font-size:27px;font-weight:700}.stat span{font-size:12px}.dashboard-stats .stat:last-child{background:var(--accent-soft);border-color:var(--accent-border)}.analysis{padding:22px;border-radius:12px}.analysis h3{color:var(--heading);font-size:16px}.bar-track{background:var(--track)}.bar-track i{background:linear-gradient(90deg,#297b91,#5fc8be)}.insight,.account-notice,.preview{background:var(--accent-soft);border-color:var(--accent-border);color:var(--text)}
.table{min-width:900px}.table th,.leadtable th:first-child,.leadtable th:last-child{background:var(--table-head);color:var(--muted);font-weight:700;font-size:11px;padding:14px 12px}.table td,.leadtable td:first-child,.leadtable td:last-child{background:var(--surface);border-color:var(--border);color:var(--text);padding:17px 12px;vertical-align:middle}.table tr:hover td{background:var(--surface-soft)}.leadtable td:last-child,.leadtable th:last-child{min-width:158px;max-width:190px}.leadtable td:first-child,.leadtable th:first-child{min-width:155px;max-width:230px}.leadtable .cellmeta{max-width:210px;white-space:normal}.leadtable .actions{flex-wrap:nowrap;max-width:180px;gap:6px}.leadtable .actions .pill{padding:6px 9px;font-size:10px;white-space:nowrap}.textbutton{color:var(--heading);font-size:13px;font-weight:700}.table .cellmeta{font-size:10px}.due-label,.pending,.s-quote{background:var(--warn-soft);color:var(--warn);border-color:var(--warn-soft)}.s-new{background:var(--soft);color:var(--text)}.s-follow{background:var(--accent-soft);color:var(--accent)}.s-closed{background:var(--success-soft);color:var(--success)}.stage-badge{padding:5px 8px;font-size:10px}
.lead-action-menu{position:fixed;z-index:1400;width:195px;padding:7px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.17);display:grid;gap:3px}.lead-action-menu .pill{text-align:right;border:0;border-radius:7px;font-size:12px;padding:10px 12px}.lead-action-menu .pill:hover{background:var(--soft)}
.modalback{background:var(--overlay)}.modalhead,.modalfoot,.toolbar{border-color:var(--border)}.modalhead h3{color:var(--heading)}.close,.datebtn,.stage-tabs button{background:var(--soft);color:var(--text);border-color:var(--border)}.meta span{background:var(--soft);color:var(--muted)}.service-card.on,.manual-composer{background:var(--accent-soft);color:var(--text);border-color:var(--accent-border)}.signature-consent{background:var(--success-soft);border-color:var(--border);color:var(--text)}.signature-consent p{color:var(--muted)}.permission-groups legend,.quote-card h3,.loginbox h1,.lead-delete-dialog h3{color:var(--heading)}.error{background:var(--danger-soft);color:var(--danger);border-color:var(--danger-border)}.login{background:var(--bg)}
.delete-symbol,.delete-avatar{background:var(--accent-soft);color:var(--accent)}.delete-target,.delete-note,.delete-hint{background:var(--surface-soft);border-color:var(--border);color:var(--text)}.delete-target strong{color:var(--text)}.lead-delete-dialog .btn.danger,.lead-delete-dialog .delete-confirm{background:var(--danger-soft);color:var(--danger);border-color:var(--danger-border)}.undo-toast{background:var(--surface);border-color:var(--border);color:var(--text)}
.rayhana-card{background:var(--accent-soft);border-color:var(--accent-border)}.rayhana-card h3{color:var(--heading)}.rayhana-card p{color:var(--text)}.rayhana-card small,.rayhana-card span{color:var(--muted)}.rayhana-card .btn span{color:var(--on-accent)}
@media(max-width:1100px){.layout{grid-template-columns:205px minmax(0,1fr)}.content{padding:22px}.side{padding-right:10px;padding-left:10px}.theme-toggle span{display:none}}
@media(max-width:900px){.layout{display:block}.side{position:relative;height:auto;max-height:none;padding:13px 14px 9px;overflow:visible}.side .brand{padding:0 0 8px;gap:9px}.side .motawar-logo{width:40px;height:40px}.side .brand div{padding:0}.side .nav{display:flex;overflow-x:auto;overflow-y:hidden;gap:5px;padding:5px 0;flex:none}.nav button{white-space:nowrap;min-width:max-content;min-height:36px;padding:8px 10px;font-size:11px;gap:7px}.nav-icon{width:15px;height:15px}.nav button.active{box-shadow:inset 0 -2px #67cecb}.side .user{display:flex;padding:8px 0 0;margin-top:5px}.account-avatar{width:27px;height:27px;font-size:11px}.account-button strong{font-size:11px}.account-button small{font-size:9px}.top{height:62px;padding:0 16px;gap:8px}.search{min-width:0}.theme-toggle{padding:8px}.theme-toggle svg{width:17px;height:17px}.content{padding:18px 16px}.heading h1{font-size:23px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:15px}.stat strong{font-size:23px}.filterbar{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.filter-shortcuts span{width:100%}}
@media(max-width:600px){.heading{flex-direction:row;align-items:center}.heading .btn{font-size:11px;padding:9px 10px}.heading small{font-size:9px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stats .stat span{font-size:10px}.dashboard-stats .stat strong{font-size:21px}.analysis{padding:16px}.filter-shortcuts{gap:5px}.filterbar .input,.filterbar .select{font-size:12px;padding:9px}.leadtable td:first-child,.leadtable th:first-child{position:static}.leadtable td:last-child,.leadtable th:last-child{min-width:145px}.modalback{padding:10px}.modal{max-height:calc(100dvh - 20px)}.theme-toggle{margin-right:0}.top .btn{min-height:38px;padding:8px}.side .brand small{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Charcoal surfaces, gold actions, and separate semantic status colors. */
@media screen{
 html[data-theme="dark"] .side{background:var(--nav);border-inline-end:2px solid var(--accent-border)}
 html[data-theme="dark"] .side .brand strong{color:var(--accent)}
 html[data-theme="dark"] .side .brand small,html[data-theme="dark"] .account-button small{color:var(--muted)}
 html[data-theme="dark"] .side .user{border-color:var(--border)}
 html[data-theme="dark"] .side .nav button{color:var(--nav-text)}
 html[data-theme="dark"] .side .nav button:hover{background:#202225;color:var(--accent)}
 html[data-theme="dark"] .side .nav button.active{background:var(--accent-soft);box-shadow:inset -3px 0 var(--accent);color:var(--accent)}
 html[data-theme="dark"] .side .nav b{background:#292b2f;color:#f6de88}
 html[data-theme="dark"] .account-avatar{background:var(--surface-soft);color:var(--accent);border:1px solid var(--border)}
 html[data-theme="dark"] .side .logout-button{color:var(--muted)}
 html[data-theme="dark"] .side .logout-button:hover{background:var(--surface-soft);color:var(--accent)}
 html[data-theme="dark"] .top{background:#14171b;border-color:var(--border)}
 html[data-theme="dark"] .btn:not(.alt):not(.danger){background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
 html[data-theme="dark"] .btn:not(.alt):not(.danger):hover:not(:disabled){background:#e9bd20;border-color:#e9bd20;filter:none}
 html[data-theme="dark"] .btn.alt:hover,html[data-theme="dark"] .pill:hover{background:var(--soft);color:var(--text)}
 html[data-theme="dark"] .pill.active,html[data-theme="dark"] .pill.ops-primary{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-border)}
 html[data-theme="dark"] .input,html[data-theme="dark"] .select,html[data-theme="dark"] .textarea{border-color:var(--control-border)}
 html[data-theme="dark"] .input:focus,html[data-theme="dark"] .select:focus,html[data-theme="dark"] .textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus)}
 html[data-theme="dark"] input[type="checkbox"],html[data-theme="dark"] input[type="radio"],html[data-theme="dark"] progress{accent-color:var(--accent)}
 html[data-theme="dark"] .textbutton,html[data-theme="dark"] .uf-filter,html[data-theme="dark"] .crm-filter-trigger{color:var(--accent)}
 html[data-theme="dark"] .uf-chip:hover{border-color:var(--accent-border);background:var(--accent-soft)}
 html[data-theme="dark"] .bar-track i{background:linear-gradient(90deg,#c79612,var(--accent))}
 html[data-theme="dark"] .toast{background:#2a2d31;color:var(--text);border:1px solid var(--accent-border)}
 html[data-theme="dark"] .rw-bubble{background:var(--surface);border-color:var(--accent-border);box-shadow:0 0 0 2px #ffd22912}
 html[data-theme="dark"] .rw-label strong{color:var(--accent)}
 html[data-theme="dark"] .rayhana-card{background:linear-gradient(120deg,#14282b,#1b3639);border-color:#427d80;color:#ecf3f4}
 html[data-theme="dark"] .rayhana-card h3{color:#f8fafb}
 html[data-theme="dark"] .rayhana-card p{color:#dce9eb}
 html[data-theme="dark"] .rayhana-card small{color:#aebfc6}
 html[data-theme="dark"] .rayhana-card .btn:not(.alt) span{color:var(--on-accent)}
 html[data-theme="dark"] .rayhana-dialog,html[data-theme="dark"] .r-header,html[data-theme="dark"] .r-chat,html[data-theme="dark"] .r-workspace,html[data-theme="dark"] .r-composer,html[data-theme="dark"] .r-settings,html[data-theme="dark"] .r-settings-footer,html[data-theme="dark"] .r-board{background:var(--surface);color:var(--text);border-color:var(--border)}
 html[data-theme="dark"] .r-identity h2,html[data-theme="dark"] .r-settings h3,html[data-theme="dark"] .r-opportunity h3,html[data-theme="dark"] .r-followups-heading h3,html[data-theme="dark"] .r-followup-top h4{color:var(--heading)}
 html[data-theme="dark"] .r-identity p,html[data-theme="dark"] .r-message>small,html[data-theme="dark"] .r-next-action small,html[data-theme="dark"] .r-board-count strong,html[data-theme="dark"] .r-followup-top>span{color:var(--accent)}
 html[data-theme="dark"] .r-modes,html[data-theme="dark"] .r-messages,html[data-theme="dark"] .r-references,html[data-theme="dark"] .r-reference,html[data-theme="dark"] .r-artifact,html[data-theme="dark"] .r-next-action,html[data-theme="dark"] .r-followup-top,html[data-theme="dark"] .r-preview-viewport,html[data-theme="dark"] .r-chat-file{background:var(--surface-soft);border-color:var(--border);color:var(--text)}
 html[data-theme="dark"] .r-message,html[data-theme="dark"] .r-opportunity,html[data-theme="dark"] .r-followup-card{background:var(--surface);color:var(--text);border-color:var(--border)}
 html[data-theme="dark"] .r-message.user,html[data-theme="dark"] .r-user,html[data-theme="dark"] .r-modes button.active,html[data-theme="dark"] .r-artifact.active,html[data-theme="dark"] .r-edit-context{background:var(--accent-soft);color:var(--text);border-color:var(--accent-border)}
 html[data-theme="dark"] .r-composer textarea,html[data-theme="dark"] .r-reference-add .input{background:var(--surface-soft);color:var(--text);border-color:var(--control-border)}
 html[data-theme="dark"] .r-message p,html[data-theme="dark"] .r-message div,html[data-theme="dark"] .r-followup-message{color:var(--text)}
 html[data-theme="dark"] .r-message small,html[data-theme="dark"] .r-footnote,html[data-theme="dark"] .r-settings .field small,html[data-theme="dark"] .r-owner,html[data-theme="dark"] .r-blocker,html[data-theme="dark"] .r-reference small,html[data-theme="dark"] .r-followup-details,html[data-theme="dark"] .r-followups-heading p{color:var(--muted)}
 html[data-theme="dark"] .r-reference a,html[data-theme="dark"] .r-chat-file>span:first-child,html[data-theme="dark"] .r-followups-heading small{color:var(--accent)}
 html[data-theme="dark"] .r-opportunity blockquote,html[data-theme="dark"] .r-prepared-message{background:#152f30;color:#d9eeee;border-color:#4c9290}
 html[data-theme="dark"] .status-in_progress{background:#24364c;color:#b7d4ff}
 html[data-theme="dark"] .status-review,html[data-theme="dark"] .s-quote,html[data-theme="dark"] .pending{background:var(--warn-soft);color:var(--warn)}
 html[data-theme="dark"] .status-completed,html[data-theme="dark"] .s-closed{background:var(--success-soft);color:var(--success)}
 html[data-theme="dark"] .status-changes{background:var(--danger-soft);color:var(--danger)}
 html[data-theme="dark"] .status-canceled{background:#30353c;color:#c0c7d0}
 html[data-theme="dark"] .tg-status.is-late{background:var(--warn-soft);color:var(--warn)}
 html[data-theme="dark"] .crm-mobile-app #crmMobileNav{background:var(--nav);border-color:var(--border)}
 html[data-theme="dark"] #crmMobileNav button{color:var(--muted)}
 html[data-theme="dark"] #crmMobileNav button[aria-current="page"]{background:var(--accent-soft);color:var(--accent)}
 html[data-theme="dark"] .crm-mobile-menu-trigger{background:var(--surface-soft);border-color:var(--border);color:var(--accent)}
}

@media print{html[data-theme]{--bg:#fff;--card:#fff;--surface:#fff;--surface-soft:#fff;--text:#172f39;--heading:#172f39;--muted:#526a75;--border:#d3e0e5;--nav2:#14717c;--on-accent:#fff;--table-head:#edf3f5;--chart-1:#087f88;--chart-2:#3679b7;--chart-3:#ab7417;--chart-4:#8656b3;--chart-5:#a84460;--chart-6:#397c4c;--chart-7:#916642;--chart-8:#277b8a;color-scheme:light!important}.theme-toggle,.lead-action-menu{display:none!important}body{background:#fff;color:#172f39}}

/* Calm charcoal: neutral reading, teal interactions, restrained gold actions. */
@media screen{
 html[data-theme="dark"]{--gold:#dfd7bc;--gold-soft:#462330;--gold-border:#a46a7b;--gold-hover:#f1e9d1}
 html[data-theme="dark"] .side{border-inline-end:1px solid var(--border)}
 html[data-theme="dark"] .side .brand strong{color:var(--text)}
 html[data-theme="dark"] .side .nav button:hover{background:var(--surface-soft);color:var(--text)}
 html[data-theme="dark"] .side .nav button.active{background:var(--gold-soft);box-shadow:inset -3px 0 var(--gold);color:var(--gold)}
 html[data-theme="dark"] .side .nav b{background:var(--surface-soft);color:var(--text)}
 html[data-theme="dark"] .top{background:#171e26}
 html[data-theme="dark"] .btn:not(.alt):not(.danger){background:var(--gold);color:#191b1e;border-color:var(--gold)}
 html[data-theme="dark"] .btn:not(.alt):not(.danger):hover:not(:disabled){background:var(--gold-hover);border-color:var(--gold-hover)}
 html[data-theme="dark"] .textbutton{color:var(--text)}
 html[data-theme="dark"] .textbutton:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
 html[data-theme="dark"] .bar-track i{background:linear-gradient(90deg,#328f91,var(--accent))}
 html[data-theme="dark"] .rw-bubble{box-shadow:0 0 0 2px #56c5c212}
 html[data-theme="dark"] #crmMobileNav button[aria-current="page"]{background:var(--gold-soft);color:var(--gold)}
 html[data-theme="dark"] .pill.active{background:var(--gold-soft);color:var(--gold);border-color:var(--gold-border)}
 html[data-theme="dark"] .pill.ops-primary{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-border)}
 html[data-theme="dark"] .revenue-treasury{background:var(--surface);border-color:var(--border)}
}

/* Warm plum dark mode, shared across desktop and mobile. */
@media screen{
 html[data-theme="dark"] .top{background:#20171c}
 html[data-theme="dark"] .btn:not(.alt):not(.danger){background:var(--accent);border-color:var(--accent);color:#30111d}
 html[data-theme="dark"] .btn:not(.alt):not(.danger):hover:not(:disabled){background:#f1e9d1;border-color:#f1e9d1}
 html[data-theme="dark"] .bar-track i{background:linear-gradient(90deg,#92516b,var(--accent))}
 html[data-theme="dark"] .rw-bubble{box-shadow:0 0 0 2px #dfd7bc12}
 html[data-theme="dark"] .rayhana-card{background:linear-gradient(120deg,#281c22,#38242d);border-color:var(--accent-border);color:var(--text)}
 html[data-theme="dark"] .rayhana-card h3,html[data-theme="dark"] .rayhana-card p{color:var(--text)}
 html[data-theme="dark"] .rayhana-card small{color:var(--muted)}
 html[data-theme="dark"] .r-opportunity blockquote,html[data-theme="dark"] .r-prepared-message{background:var(--accent-soft);color:var(--text);border-color:var(--accent-border)}
 html[data-theme="dark"] .toast{background:var(--surface-soft)}
}

/* Motawar identity 2026: approved cream mark on burgundy, shared by both themes. */
.side .brand small,.account-button small{color:var(--nav-text)}
.side .brand strong,.side .user{color:#f3eedf}
.side .user{border-color:#654650}.account-avatar{background:#58283b;color:#dfd7bc}
.side .nav button.active{background:#631d35;color:#dfd7bc;box-shadow:inset -3px 0 #dfd7bc}
.side .nav button:hover{background:#502334;color:#f3eedf}.side .nav b{background:#58283b;color:#f3eedf}
.side .motawar-logo,.loginbox .motawar-logo{object-fit:contain;background:#631d35;border-radius:10px;flex-shrink:0}
.loginbox .motawar-logo{width:72px;height:72px}.loginbox .brand{align-items:center}
.bar-track i{background:linear-gradient(90deg,#92516b,var(--accent))}
html[data-theme="dark"]{--control-border:#9d7c88}
html[data-theme="dark"] .btn:not(.alt):not(.danger){color:#30111d}
html[data-theme="dark"] .rw-bubble{box-shadow:0 0 0 2px #dfd7bc18}
@media print{html[data-theme]{--text:#33232a;--heading:#631d35;--nav2:#631d35;--accent:#631d35;--on-accent:#fff;--border:#d4c6bf;--table-head:#f1ebdf;--chart-1:#631d35}body{color:#33232a}}
