/*
 * 🖌 INTERFACE STYLE: CLEAN (org-head.php loads this with style-clean.js when crm_orgs.ui_style = 'clean')
 * Teal + slate, Inter, quieter type, flatter cards. style-clean.js swaps the colors written into each page;
 * this sets the shared tokens (html[data-style] beats each page's own :root) and the shared pieces (top bar, buttons, fields).
 */
html[data-style="clean"]{
    --gold:#2F7F8C; --ac-gold:#2F7F8C; --gold-dark:#23646F; --gold-ink:#fff;
    --black:#1B3138; --ac-black:#1B3138; --brand-dark:#12343B; --brand:#2F7F8C; --primary:#2F7F8C;
    --bg:#F3F6F7; --card:#fff; --border:#E1E7E9; --line:#E1E7E9; --muted:#66737A; --ink:#1B3138;
    --red:#B8404A; --green:#2E7D5B;
    --sc-tint:#EEF6F7; --sc-head:#F0F4F5;
}

/* until the colors are swapped (style-clean.js adds .sc-ready, at most 1.5s) */
html[data-style="clean"]:not(.sc-ready) body{opacity:0}
html[data-style="clean"] body{transition:opacity .12s ease}

html[data-style="clean"] body{
    font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    -webkit-font-smoothing:antialiased; color:#1B3138;
}
html[data-style="clean"] :is(button,input,select,textarea){font-family:inherit}

/* top bar: deep teal, quiet links, a teal underline on the active one */
html[data-style="clean"] .ac-global-header{background:#12343B;border-bottom-color:#0E2B31}
html[data-style="clean"] .ac-brand-bar,html[data-style="clean"] .ac-nav-bar{border-color:#1C434B}
html[data-style="clean"] .ac-nav-link{color:#B9CDD1;letter-spacing:0;font-weight:500}
html[data-style="clean"] .ac-nav-link:hover,html[data-style="clean"] .ac-nav-link.active{color:#fff}
html[data-style="clean"] .ac-nav-link.active::after{background:#5FB3C0}
html[data-style="clean"] .ac-nav-action{letter-spacing:0;font-weight:600;border-radius:8px}
html[data-style="clean"] .ac-bell-btn{border-color:#1F4A52;color:#B9CDD1}

/* fields */
html[data-style="clean"] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),select,textarea){border-color:#D5DEE1}
html[data-style="clean"] :is(input,select,textarea):focus{outline:none;border-color:#2F7F8C;box-shadow:0 0 0 3px rgba(47,127,140,.15)}

/* type: less shouting */
html[data-style="clean"] :is(h1,h2,h3){letter-spacing:-.01em}
html[data-style="clean"] :is(th){letter-spacing:.04em}

/* softer shadows on cards and pop-ups */
html[data-style="clean"] :is(.card,.panel,.box,[class$="-card"],[class*="-card "]){box-shadow:0 1px 2px rgba(16,42,48,.06)}

/* 🌙 dark: the page flip (nav.php) keeps the teal close to teal */
html[data-style="clean"][data-theme="dark"]:not(.ac-own-dark){background:#fff}

/* ◧ the left sidebar (nav-side.css) in Clean's teal */
html[data-style="clean"][data-nav="side"]{
    --rail-text:#B9CDD1; --rail-label:#5FB3C0; --rail-line:#1C434B; --rail-edge:#0E2B31; --rail-on:#7FC6D1;
}
