/* SAHAB multilingual layout and theme: edit freely. */
.sahab-preferences{display:inline-flex;gap:7px;align-items:center;flex-shrink:0;position:relative;z-index:32}
.sahab-control{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:36px;padding:7px 11px;border:1px solid var(--border);border-radius:11px;background:var(--white);color:var(--ink);font-size:12px;font-weight:800;white-space:nowrap;box-shadow:0 3px 13px rgba(20,91,70,.04)}
.sahab-control:hover{border-color:var(--green);color:var(--green)}
.sahab-control-symbol,.sahab-theme-icon{font-size:16px;line-height:1}
.sahab-controls-floating{position:fixed;top:15px;left:18px;background:var(--white);border-radius:13px;padding:3px;box-shadow:var(--shadow-lg)}
.auth-main>.sahab-preferences,.wizard-header>.sahab-preferences{align-self:flex-end;margin-bottom:13px}
.wizard-header>.sahab-preferences{display:flex;width:fit-content;margin-inline-start:auto;margin-inline-end:0}
html[dir="ltr"] body{font-family:Inter,'Segoe UI',Arial,sans-serif}
html[dir="ltr"] .sidebar{left:0;right:auto;border-right:1px solid var(--border);border-left:0}
html[dir="ltr"] .app-main{margin-left:246px;margin-right:0}
html[dir="ltr"] .side-link,html[dir="ltr"] .account-chip,html[dir="ltr"] .data-table th{text-align:left}
html[dir="ltr"] .sidebar .brand{margin-left:10px;margin-right:10px}
html[dir="ltr"] .notifications-panel{left:auto;right:26px}
html[dir="ltr"] .top-spacer{flex:1}
html[dir="ltr"] .popular-flag{right:auto;left:20px}
html[dir="ltr"] .panel-header .btn{margin-right:0;margin-left:auto}
html[dir="ltr"] .notify-dot{left:auto;right:7px}
html[dir="ltr"] .float-pill{left:auto;right:-28px}
html[dir="ltr"] .legend b{margin-left:0;margin-right:6px}
html[dir="ltr"] .avatars{padding-left:0;padding-right:6px}
html[dir="ltr"] .avatar-dot{margin-left:0;margin-right:-7px}
html[dir="ltr"] .bubble.bot{border-top-right-radius:15px;border-top-left-radius:3px}
html[dir="ltr"] .bubble.user{border-top-left-radius:15px;border-top-right-radius:3px}
html[dir="ltr"] #toast{left:auto;right:25px}
html[dir="ltr"] .sahab-controls-floating{right:18px;left:auto}
html[dir="ltr"] .logo-image{mix-blend-mode:normal}
/* All custom cards inherit dark palette. In dark mode, colors remain green, never bright blue. */
html[data-theme="dark"]{
  color-scheme:dark;
  --primary:#38b987; --green:#48c799; --green-2:#29a879;
  --mint:#204b3b; --pale:#1e3c31;
  --bg:#0c1512; --white:#17251e;
  --ink:#eaf5ee; --sub:#a6bfb1; --border:#30483a;
  --shadow:0 12px 30px rgba(0,0,0,.19);
  --shadow-lg:0 22px 48px rgba(0,0,0,.35);
}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .app-topbar,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .report-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .step,
html[data-theme="dark"] .mock-window,
html[data-theme="dark"] .mock-content,
html[data-theme="dark"] .mock-chart,
html[data-theme="dark"] .mock-activity,
html[data-theme="dark"] .mock-top,
html[data-theme="dark"] .mock-card,
html[data-theme="dark"] .auth-layout,
html[data-theme="dark"] .wizard-card,
html[data-theme="dark"] .dialog,
html[data-theme="dark"] .notifications-panel,
html[data-theme="dark"] .chat-preview,
html[data-theme="dark"] .pill-queries button,
html[data-theme="dark"] .sample-chips button{background:var(--white)!important;color:var(--ink);border-color:var(--border)!important}
html[data-theme="dark"] .hero{background:radial-gradient(ellipse at 10% 0%,#1f4434 0%,transparent 38%),linear-gradient(140deg,#0e1c15,#111b16)}
html[data-theme="dark"] .hero-visual::before{background:linear-gradient(138deg,#1e5138,#214a3a)}
html[data-theme="dark"] .auth-bg{background:linear-gradient(115deg,#112c20,#0c1512)}
html[data-theme="dark"] .steps-section{background:linear-gradient(140deg,#112a1e,#101913)}
html[data-theme="dark"] .mock-card,
html[data-theme="dark"] .data-table th,
html[data-theme="dark"] .data-table tbody tr:hover,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .row-actions button,
html[data-theme="dark"] .chart-tabs button:not(.active),
html[data-theme="dark"] .billing,
html[data-theme="dark"] .float-pill,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .sahab-control,
html[data-theme="dark"] .split-row,
html[data-theme="dark"] .tag-muted{background:#20362a!important;color:var(--ink);border-color:var(--border)}
html[data-theme="dark"] .ai-panel{background:linear-gradient(135deg,#182c21,#1e382b)!important}
html[data-theme="dark"] .dash-banner{background:linear-gradient(130deg,#143d2c,#226443)}
html[data-theme="dark"] .bubble.bot{background:#213d2d;color:#def6e5}
html[data-theme="dark"] .bubble.user{background:#277b57;color:white}
html[data-theme="dark"] .stat-line,
html[data-theme="dark"] .split-row,
html[data-theme="dark"] .data-table td{border-color:var(--border)}
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .filters input,
html[data-theme="dark"] .filters select,
html[data-theme="dark"] .chat-controls input,
html[data-theme="dark"] .searchbox input{background:#102119!important;color:#e8f7ec!important;border-color:#3b5c48!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#91ac9c}
html[data-theme="dark"] .field label,html[data-theme="dark"] .empty h3,html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3{color:var(--ink)}
html[data-theme="dark"] .hero p,html[data-theme="dark"] .feature-card p,html[data-theme="dark"] .section-heading p{color:var(--sub)}
html[data-theme="dark"] .btn-primary{background:#287a58;color:#fff}
html[data-theme="dark"] .btn-primary:hover{background:#349569}
html[data-theme="dark"] .btn-white{background:#f7fffa;color:#164632}
html[data-theme="dark"] .btn-soft{background:#214b35;color:#bef4d2}
html[data-theme="dark"] .btn-outline{background:#1d3327;color:#e2f6e9;border-color:#3b5c48}
html[data-theme="dark"] .tag,html[data-theme="dark"] .eyebrow{background:#234d37;color:#baf3d0;border-color:#2c5e42}
html[data-theme="dark"] .tag-warm,html[data-theme="dark"] .notice.warning{background:#453b27!important;color:#f0ce8c;border-color:#6b5631!important}
html[data-theme="dark"] .side-link:hover{background:#234231;color:#bef6d0}
html[data-theme="dark"] .side-link.active{background:#224d37;color:#d4f5dc}
html[data-theme="dark"] .metric-icon,html[data-theme="dark"] .feature-icon,html[data-theme="dark"] .mini-icon{background:#224935;color:#a7f4c3}
html[data-theme="dark"] .chat-preview{background:#17281e!important}
html[data-theme="dark"] .ai-status.connected{background:#203d2b;color:#b8f2ca;border-color:#3e7151}
html[data-theme="dark"] .ai-status.offline{background:#382c1b;color:#eed5a3;border-color:#70532a}
html[data-theme="dark"] .site-footer{background:#091d13}
html[data-theme="dark"] .mock-activity>div{border-bottom-color:#31513a}
html[data-theme="dark"] .chart .gridline{stroke:#31503b}
html[data-theme="dark"] .chart text{fill:#a5cbb1}
html[data-theme="dark"] .logo-image{mix-blend-mode:normal}
html[data-theme="dark"] .auth-aside,.auth-aside .brand-name{color:white}
html[data-theme="dark"] .price-line strong{color:#63d8a5}
html[data-theme="dark"] .cta-banner h2,html[data-theme="dark"] .cta-banner p{color:white}
@media(max-width:1100px){html[dir="ltr"] .app-main{margin-left:212px;margin-right:0}}
@media(max-width:760px){
 html[dir="ltr"] .app-main{margin-left:0;width:100%}
 html[dir="ltr"] .sidebar{transform:translateX(-110%)}
 html[dir="ltr"] .sidebar.open{transform:translateX(0)}
 .sahab-preferences{gap:4px}
 .sahab-control{padding:7px 9px;font-size:11px}
 .sahab-mode .sahab-theme-label{display:none}
 .nav-inner{gap:10px}
}
@media print{.sahab-preferences{display:none!important}html[dir="ltr"] .app-main{width:100%;margin-left:0}}
/* Final contrast and search improvements */
html[data-theme="dark"] .searchbox{background:#13271d!important;border-color:#365946!important}
html[data-theme="dark"] .searchbox input{background:transparent!important;box-shadow:none!important;border:none!important;color:#e5f4e9!important}
html[data-theme="dark"] .sidebar .side-link:not(.active){color:#b1c9b8}
html[data-theme="dark"] .sidebar .side-caption{color:#91b5a0}
html[data-theme="dark"] .dash-banner p{color:#c2e4cd}
html[data-theme="dark"] .dash-banner h2{color:#f2fff7}
html[data-theme="dark"] .brand-name{color:#a7efc7}
html[data-theme="dark"] .btn-ghost{color:#d9f2e2}
html[data-theme="dark"] .navbar .nav-links{color:#bddecb}
html[data-theme="dark"] .icon-btn{color:#d5f6df}
html[data-theme="dark"] .mock-content,.mock-content *{color:inherit}
