/* Theme rules intentionally leave font family, font size and line height unchanged. */
html[data-crm-theme="ocean"]{--crm-accent:#2563eb;--crm-sidebar:#172c4c;--crm-bg:#f0f5fc;--crm-line:#dce6f3;--crm-surface:#fff;--crm-text:#273548;--crm-muted:#596b80;}
html[data-crm-theme="jade"]{--crm-accent:#0f766e;--crm-sidebar:#163c3b;--crm-bg:#eff7f5;--crm-line:#d7e8e3;--crm-surface:#fff;--crm-text:#273548;--crm-muted:#596b80;}
html[data-crm-theme="violet"]{--crm-accent:#7154b6;--crm-sidebar:#302b46;--crm-bg:#f4f2f9;--crm-line:#e3deef;--crm-surface:#fff;--crm-text:#273548;--crm-muted:#596b80;}
html[data-crm-theme="amber"]{--crm-accent:#b65b15;--crm-sidebar:#3b3027;--crm-bg:#faf5ee;--crm-line:#ede2d5;--crm-surface:#fff;--crm-text:#273548;--crm-muted:#596b80;}
html[data-crm-theme="slate"]{--crm-accent:#475569;--crm-sidebar:#25303b;--crm-bg:#f1f3f5;--crm-line:#dce1e6;--crm-surface:#fff;--crm-text:#273548;--crm-muted:#596b80;}
html[data-crm-theme]:not([data-crm-theme="classic"]) body,html[data-crm-theme]:not([data-crm-theme="classic"]) .content-wrapper,html[data-crm-theme]:not([data-crm-theme="classic"]) .right-side,html[data-crm-theme]:not([data-crm-theme="classic"]) .tab-content-main,html[data-crm-theme]:not([data-crm-theme="classic"]) #main,html[data-crm-theme]:not([data-crm-theme="classic"]) .content{background:var(--crm-bg)!important;color:var(--crm-text)}
html[data-crm-theme]:not([data-crm-theme="classic"]) .main-header .navbar,html[data-crm-theme]:not([data-crm-theme="classic"]) .main-header .logo{background:var(--crm-header,var(--crm-surface))!important;color:var(--crm-header-ink,var(--crm-text))!important;border-bottom:1px solid var(--crm-line)}
html[data-crm-theme]:not([data-crm-theme="classic"]) .main-header .navbar .nav>li>a,html[data-crm-theme]:not([data-crm-theme="classic"]) .main-header .navbar .sidebar-toggle,html[data-crm-theme]:not([data-crm-theme="classic"]) .main-header .logo a{color:var(--crm-header-ink,var(--crm-text))!important}
html[data-crm-theme]:not([data-crm-theme="classic"]) .main-sidebar,html[data-crm-theme]:not([data-crm-theme="classic"]) .left-side,html[data-crm-theme]:not([data-crm-theme="classic"]) .sidebar-menu,html[data-crm-theme]:not([data-crm-theme="classic"]) .sidebar-menu .treeview-menu{background:var(--crm-sidebar)!important}
html[data-crm-theme]:not([data-crm-theme="classic"]) .sidebar-menu>li>a,html[data-crm-theme]:not([data-crm-theme="classic"]) .sidebar-menu .treeview-menu>li>a{color:var(--crm-sidebar-ink,#d9e3ef)!important}
html[data-crm-theme]:not([data-crm-theme="classic"]) .sidebar-menu>li.active>a,html[data-crm-theme]:not([data-crm-theme="classic"]) .sidebar-menu>li:hover>a,html[data-crm-theme]:not([data-crm-theme="classic"]) .sidebar-menu .treeview-menu>li.active>a{background:var(--crm-accent)!important;color:#fff!important;border-left-color:var(--crm-accent)!important}
html[data-crm-theme]:not([data-crm-theme="classic"]) .panel,html[data-crm-theme]:not([data-crm-theme="classic"]) .box,html[data-crm-theme]:not([data-crm-theme="classic"]) .well,html[data-crm-theme]:not([data-crm-theme="classic"]) .modal-content{background:var(--crm-surface);border-color:var(--crm-line);border-radius:8px;box-shadow:0 2px 10px rgba(24,40,64,.04)}
html[data-crm-theme]:not([data-crm-theme="classic"]) .panel-default>.panel-heading,html[data-crm-theme]:not([data-crm-theme="classic"]) .box-header,html[data-crm-theme]:not([data-crm-theme="classic"]) .modal-header{background:var(--crm-surface);color:var(--crm-text);border-color:var(--crm-line)}
html[data-crm-theme]:not([data-crm-theme="classic"]) .panel-intro>.panel-heading .nav-tabs>li.active>a,html[data-crm-theme]:not([data-crm-theme="classic"]) .nav-tabs>li.active>a{color:var(--crm-accent)!important;border-top-color:var(--crm-accent)!important;background:var(--crm-surface)!important}
html[data-crm-theme]:not([data-crm-theme="classic"]) .btn-primary,html[data-crm-theme]:not([data-crm-theme="classic"]) .pagination>.active>a,html[data-crm-theme]:not([data-crm-theme="classic"]) .pagination>.active>span,html[data-crm-theme]:not([data-crm-theme="classic"]) .nav-addtabs>li.active>a{background:var(--crm-accent)!important;border-color:var(--crm-accent)!important;color:#fff!important}
html[data-crm-theme]:not([data-crm-theme="classic"]) .btn-primary:hover,html[data-crm-theme]:not([data-crm-theme="classic"]) .btn-primary:focus{filter:brightness(.92)}
html[data-crm-theme]:not([data-crm-theme="classic"]) .table>thead>tr>th,html[data-crm-theme]:not([data-crm-theme="classic"]) .fixed-table-header{background:var(--crm-bg);border-color:var(--crm-line);color:var(--crm-text)}
html[data-crm-theme]:not([data-crm-theme="classic"]) .table-striped>tbody>tr:nth-of-type(odd){background:var(--crm-bg)}
html[data-crm-theme]:not([data-crm-theme="classic"]) .table-hover>tbody>tr:hover{background:var(--crm-line)}
html[data-crm-theme]:not([data-crm-theme="classic"]) .table>tbody>tr>td,html[data-crm-theme]:not([data-crm-theme="classic"]) .table-bordered,html[data-crm-theme]:not([data-crm-theme="classic"]) .fixed-table-container{border-color:var(--crm-line)}
html[data-crm-theme]:not([data-crm-theme="classic"]) .form-control,html[data-crm-theme]:not([data-crm-theme="classic"]) .select2-container--default .select2-selection--single{border-color:var(--crm-line);border-radius:5px}
html[data-crm-theme]:not([data-crm-theme="classic"]) .form-control:focus{border-color:var(--crm-accent);box-shadow:0 0 0 2px var(--crm-line)}
html[data-crm-theme]:not([data-crm-theme="classic"]) .layui-layer-title{background:var(--crm-bg)!important;color:var(--crm-text)!important}
html[data-crm-theme]:not([data-crm-theme="classic"]) .layui-layer-btn .layui-layer-btn0{background:var(--crm-accent)!important;border-color:var(--crm-accent)!important}
html[data-crm-theme]:not([data-crm-theme="classic"]) .nav-addtabs>li>a,html[data-crm-theme]:not([data-crm-theme="classic"]) .breadcrumb{color:var(--crm-muted)}
.crm-theme-intro{padding:12px 4px 18px}.crm-theme-intro p{color:#637083;margin:10px 0 0}.crm-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:1100px}.crm-theme-card{position:relative;display:block;padding:14px;border:2px solid #e3e8ef;border-radius:12px;cursor:pointer;background:#fff;color:#273548;transition:box-shadow .15s,border-color .15s}.crm-theme-card:hover{box-shadow:0 5px 20px #172c4c16}.crm-theme-card:has(input:checked){border-color:var(--preview-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--preview-accent) 12%,transparent)}.crm-theme-card input{position:absolute;right:16px;bottom:44px;accent-color:var(--preview-accent)}.crm-theme-card:focus-within{outline:2px solid var(--preview-accent);outline-offset:3px}.crm-theme-sample{height:140px;display:block;position:relative;background:var(--preview-bg);border-radius:7px;overflow:hidden;border:1px solid #e5eaf0}.crm-theme-sample-sidebar{position:absolute;width:23%;height:100%;background:var(--preview-sidebar)}.crm-theme-sample-sidebar:after{content:'';position:absolute;left:12%;right:12%;top:39%;height:13px;border-radius:3px;background:var(--preview-accent);box-shadow:0 22px 0 var(--preview-bar,#ffffff24),0 44px 0 var(--preview-bar,#ffffff24)}.crm-theme-sample-top{position:absolute;left:23%;right:0;height:21%;background:var(--preview-header,white);border-bottom:1px solid #e5eaf0}.crm-theme-sample-content{position:absolute;left:28%;top:30%;width:66%;height:60%;background:#fff;border-radius:4px;padding:10px}.crm-theme-sample-content i{display:block;height:7px;background:var(--preview-bg);margin-bottom:8px;border-radius:2px}.crm-theme-sample-content b{display:block;width:28%;height:14px;background:var(--preview-accent);border-radius:3px}.crm-theme-name{display:block;margin-top:16px;padding-right:24px}.crm-theme-description{display:block;color:#637083;margin-top:6px}.crm-theme-selected{display:none;color:var(--preview-accent);margin-left:12px}.crm-theme-card input:checked~.crm-theme-name .crm-theme-selected{display:inline}.crm-theme-status{margin-left:14px;color:#0f766e}@media(max-width:1000px){.crm-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.crm-theme-grid{grid-template-columns:1fr}}

/* Distinct finishes for each palette, preserving the established page geometry. */
html[data-crm-theme="ocean"] .panel{border-radius:12px;box-shadow:0 4px 18px #172c4c08}
html[data-crm-theme="ocean"] .main-header .navbar{box-shadow:0 2px 12px #172c4c08}
html[data-crm-theme="ocean"] .btn-primary{border-radius:6px;box-shadow:0 2px 5px #2563eb22}
html[data-crm-theme="jade"] .panel{border-radius:14px;box-shadow:0 3px 15px #163c3b06}
html[data-crm-theme="jade"] .main-header .logo{background:#f0faf7!important}
html[data-crm-theme="jade"] .btn-primary{border-radius:8px}
html[data-crm-theme="violet"] .panel{border-radius:10px;box-shadow:0 5px 20px #302b4610}
html[data-crm-theme="violet"] .main-header .navbar{background:linear-gradient(110deg,#fff,#f4f0fc)!important}
html[data-crm-theme="violet"] .sidebar-menu>li.active>a{background:linear-gradient(110deg,#62439f,#8064c2)!important}
html[data-crm-theme="violet"] .btn-primary{border-radius:6px;box-shadow:0 3px 8px #7154b624}
html[data-crm-theme="amber"] .panel{border-radius:12px;box-shadow:0 3px 14px #3b302708}
html[data-crm-theme="amber"] .main-header .navbar{background:#fffdf9!important}
html[data-crm-theme="amber"] .sidebar-menu>li.active>a{background:linear-gradient(110deg,#9f4b0d,#bf6e2b)!important}
html[data-crm-theme="amber"] .btn-primary{border-radius:7px}
html[data-crm-theme="slate"] .panel{border-radius:4px;box-shadow:none}
html[data-crm-theme="slate"] .main-header .navbar{box-shadow:none}
html[data-crm-theme="slate"] .btn-primary{border-radius:3px;box-shadow:none}

/* Additional curated palettes: distinct navigation treatments and surface finishes. */
html[data-crm-theme="cloud"][data-crm-theme]{--crm-accent:#435f85;--crm-sidebar:#f8fafc;--crm-bg:#f3f5f8;--crm-line:#e1e7ef;--crm-text:#2c3e54;--crm-muted:#637287;--crm-surface:#fff;--crm-sidebar-ink:#4c5e75;--crm-header:#fff;--crm-header-ink:#2c3e54;}
html[data-crm-theme="cloud"][data-crm-theme] .panel,html[data-crm-theme="cloud"][data-crm-theme] .box{border-radius:7px;box-shadow:0 1px 4px #24364b05}
html[data-crm-theme="cloud"][data-crm-theme] .btn-primary{border-radius:6px;box-shadow:0 2px 5px #435f851a}
html[data-crm-theme="cloud"][data-crm-theme] .main-header .navbar .nav>li>a:hover,html[data-crm-theme="cloud"][data-crm-theme] .main-header .navbar .nav>li>a:focus{background:#f3f5f8!important}
html[data-crm-theme="cloud"][data-crm-theme] .sidebar-menu>li>a{border-left-color:transparent!important}
html[data-crm-theme="cloud"][data-crm-theme] .main-sidebar{border-right:1px solid #e1e7ef}
html[data-crm-theme="cloud"][data-crm-theme] .sidebar-menu>li.active>a,html[data-crm-theme="cloud"][data-crm-theme] .sidebar-menu>li:hover>a,html[data-crm-theme="cloud"][data-crm-theme] .sidebar-menu .treeview-menu>li.active>a{background:#e1e7ef!important;color:#435f85!important;border-left-color:#435f85!important}
.crm-theme-card[data-theme-id="cloud"]{--preview-bar:#4c5e7520}
html[data-crm-theme="mint"][data-crm-theme]{--crm-accent:#087e8b;--crm-sidebar:#edf7f8;--crm-bg:#f1f8f8;--crm-line:#d8e9ea;--crm-text:#274b50;--crm-muted:#52767a;--crm-surface:#fff;--crm-sidebar-ink:#41666b;--crm-header:#fff;--crm-header-ink:#274b50;}
html[data-crm-theme="mint"][data-crm-theme] .panel,html[data-crm-theme="mint"][data-crm-theme] .box{border-radius:14px;box-shadow:0 4px 18px #16474b07}
html[data-crm-theme="mint"][data-crm-theme] .btn-primary{border-radius:6px;box-shadow:0 2px 5px #087e8b1a}
html[data-crm-theme="mint"][data-crm-theme] .main-header .navbar .nav>li>a:hover,html[data-crm-theme="mint"][data-crm-theme] .main-header .navbar .nav>li>a:focus{background:#f1f8f8!important}
html[data-crm-theme="mint"][data-crm-theme] .sidebar-menu>li>a{border-left-color:transparent!important}
html[data-crm-theme="mint"][data-crm-theme] .main-sidebar{border-right:1px solid #d8e9ea}
html[data-crm-theme="mint"][data-crm-theme] .sidebar-menu>li.active>a,html[data-crm-theme="mint"][data-crm-theme] .sidebar-menu>li:hover>a,html[data-crm-theme="mint"][data-crm-theme] .sidebar-menu .treeview-menu>li.active>a{background:#d8e9ea!important;color:#087e8b!important;border-left-color:#087e8b!important}
.crm-theme-card[data-theme-id="mint"]{--preview-bar:#41666b20}
html[data-crm-theme="rose"][data-crm-theme]{--crm-accent:#a34762;--crm-sidebar:#fcf4f5;--crm-bg:#faf5f5;--crm-line:#eddee2;--crm-text:#4e343f;--crm-muted:#7e626e;--crm-surface:#fff;--crm-sidebar-ink:#765863;--crm-header:#fff;--crm-header-ink:#4e343f;}
html[data-crm-theme="rose"][data-crm-theme] .panel,html[data-crm-theme="rose"][data-crm-theme] .box{border-radius:12px;box-shadow:0 3px 16px #61384708}
html[data-crm-theme="rose"][data-crm-theme] .btn-primary{border-radius:6px;box-shadow:0 2px 5px #a347621a}
html[data-crm-theme="rose"][data-crm-theme] .main-header .navbar .nav>li>a:hover,html[data-crm-theme="rose"][data-crm-theme] .main-header .navbar .nav>li>a:focus{background:#faf5f5!important}
html[data-crm-theme="rose"][data-crm-theme] .sidebar-menu>li>a{border-left-color:transparent!important}
html[data-crm-theme="rose"][data-crm-theme] .main-sidebar{border-right:1px solid #eddee2}
html[data-crm-theme="rose"][data-crm-theme] .sidebar-menu>li.active>a,html[data-crm-theme="rose"][data-crm-theme] .sidebar-menu>li:hover>a,html[data-crm-theme="rose"][data-crm-theme] .sidebar-menu .treeview-menu>li.active>a{background:#eddee2!important;color:#a34762!important;border-left-color:#a34762!important}
.crm-theme-card[data-theme-id="rose"]{--preview-bar:#76586320}
html[data-crm-theme="forest"][data-crm-theme]{--crm-accent:#39634e;--crm-sidebar:#213e34;--crm-bg:#f6f5ee;--crm-line:#e2e4d7;--crm-text:#34463c;--crm-muted:#68766a;--crm-surface:#fff;--crm-sidebar-ink:#dce7df;--crm-header:#fff;--crm-header-ink:#34463c;}
html[data-crm-theme="forest"][data-crm-theme] .panel,html[data-crm-theme="forest"][data-crm-theme] .box{border-radius:10px;box-shadow:0 3px 14px #324e3508}
html[data-crm-theme="forest"][data-crm-theme] .btn-primary{border-radius:6px;box-shadow:0 2px 5px #39634e1a}
html[data-crm-theme="forest"][data-crm-theme] .main-header .navbar .nav>li>a:hover,html[data-crm-theme="forest"][data-crm-theme] .main-header .navbar .nav>li>a:focus{background:#f6f5ee!important}
html[data-crm-theme="forest"][data-crm-theme] .sidebar-menu>li>a{border-left-color:transparent!important}
html[data-crm-theme="gilded"][data-crm-theme]{--crm-accent:#896328;--crm-sidebar:#25272b;--crm-bg:#f6f4ee;--crm-line:#e5dfd3;--crm-text:#3d3c38;--crm-muted:#70685b;--crm-surface:#fff;--crm-sidebar-ink:#e1ded5;--crm-header:#25272b;--crm-header-ink:#f1ede3;}
html[data-crm-theme="gilded"][data-crm-theme] .panel,html[data-crm-theme="gilded"][data-crm-theme] .box{border-radius:7px;box-shadow:0 4px 18px #39332b09}
html[data-crm-theme="gilded"][data-crm-theme] .btn-primary{border-radius:6px;box-shadow:0 2px 5px #8963281a}
html[data-crm-theme="gilded"][data-crm-theme] .main-header .navbar .nav>li>a:hover,html[data-crm-theme="gilded"][data-crm-theme] .main-header .navbar .nav>li>a:focus{background:#ffffff12!important}
html[data-crm-theme="gilded"][data-crm-theme] .sidebar-menu>li>a{border-left-color:transparent!important}
.crm-theme-card[data-theme-id="gilded"]{--preview-header:#25272b}
html[data-crm-theme="gilded"][data-crm-theme] .main-header .navbar .nav-addtabs>li:not(.active)>a{color:#f1ede3!important}
html[data-crm-theme="navy"][data-crm-theme]{--crm-accent:#365d87;--crm-sidebar:#172c43;--crm-bg:#f0f3f7;--crm-line:#dae2ec;--crm-text:#2b3d53;--crm-muted:#586f89;--crm-surface:#fff;--crm-sidebar-ink:#dbe6f3;--crm-header:#172c43;--crm-header-ink:#e7eef7;}
html[data-crm-theme="navy"][data-crm-theme] .panel,html[data-crm-theme="navy"][data-crm-theme] .box{border-radius:8px;box-shadow:0 3px 14px #1c334a0a}
html[data-crm-theme="navy"][data-crm-theme] .btn-primary{border-radius:6px;box-shadow:0 2px 5px #365d871a}
html[data-crm-theme="navy"][data-crm-theme] .main-header .navbar .nav>li>a:hover,html[data-crm-theme="navy"][data-crm-theme] .main-header .navbar .nav>li>a:focus{background:#ffffff12!important}
html[data-crm-theme="navy"][data-crm-theme] .sidebar-menu>li>a{border-left-color:transparent!important}
.crm-theme-card[data-theme-id="navy"]{--preview-header:#172c43}
html[data-crm-theme="navy"][data-crm-theme] .main-header .navbar .nav-addtabs>li:not(.active)>a{color:#e7eef7!important}
html[data-crm-theme="rose"][data-crm-theme] .main-header .navbar{background:linear-gradient(105deg,#fff,#fdf5f6)!important}
html[data-crm-theme="mint"][data-crm-theme] .panel-default>.panel-heading{border-radius:14px 14px 0 0}
html[data-crm-theme="forest"][data-crm-theme] .main-header .logo{background:#f3f5ee!important}
html[data-crm-theme="gilded"][data-crm-theme] .main-sidebar{background:linear-gradient(180deg,#25272b,#1f2125)!important}
html[data-crm-theme="gilded"][data-crm-theme] .sidebar-menu>li.active>a{background:linear-gradient(100deg,#755421,#97733b)!important}
html[data-crm-theme="navy"][data-crm-theme] .main-header .navbar{background:linear-gradient(100deg,#172c43,#244360)!important}
html[data-crm-theme="navy"][data-crm-theme] .sidebar-menu>li.active>a{background:linear-gradient(100deg,#2f5074,#3f6992)!important}
html[data-crm-theme="cloud"][data-crm-theme] .sidebar-menu>li.header{background:transparent;color:var(--crm-muted)}
html[data-crm-theme="cloud"][data-crm-theme] .user-panel>.info,html[data-crm-theme="cloud"][data-crm-theme] .user-panel>.info>a{color:var(--crm-sidebar-ink)}
html[data-crm-theme="cloud"][data-crm-theme] .sidebar-menu .treeview-menu>li>a:hover{background:var(--crm-line)!important;color:var(--crm-accent)!important}
html[data-crm-theme="mint"][data-crm-theme] .sidebar-menu>li.header{background:transparent;color:var(--crm-muted)}
html[data-crm-theme="mint"][data-crm-theme] .user-panel>.info,html[data-crm-theme="mint"][data-crm-theme] .user-panel>.info>a{color:var(--crm-sidebar-ink)}
html[data-crm-theme="mint"][data-crm-theme] .sidebar-menu .treeview-menu>li>a:hover{background:var(--crm-line)!important;color:var(--crm-accent)!important}
html[data-crm-theme="rose"][data-crm-theme] .sidebar-menu>li.header{background:transparent;color:var(--crm-muted)}
html[data-crm-theme="rose"][data-crm-theme] .user-panel>.info,html[data-crm-theme="rose"][data-crm-theme] .user-panel>.info>a{color:var(--crm-sidebar-ink)}
html[data-crm-theme="rose"][data-crm-theme] .sidebar-menu .treeview-menu>li>a:hover{background:var(--crm-line)!important;color:var(--crm-accent)!important}
html[data-crm-theme="gilded"][data-crm-theme] .main-header .navbar .nav>.open>a{background:#ffffff12!important;color:var(--crm-header-ink)!important}
html[data-crm-theme="navy"][data-crm-theme] .main-header .navbar .nav>.open>a{background:#ffffff12!important;color:var(--crm-header-ink)!important}
html[data-crm-theme]:not([data-crm-theme="classic"]) .wrapper{background:var(--crm-sidebar)}

/* Full interface palette for new themes. */
html[data-crm-theme="glacier"][data-crm-theme] {
    --crm-accent: #225b9a;
    --crm-sidebar: #1c3550;
    --crm-bg: #edf5fc;
    --crm-line: #d7e5f2;
    --crm-text: #243d58;
    --crm-muted: #526d87;
    --crm-sidebar-ink: #e4eef8;
    --crm-header: linear-gradient(110deg,#fdfefe,#e3effa);
    --crm-header-ink: #243d58;
    --crm-radius: 12px;
    --crm-surface: #fff;
}
.crm-theme-card[data-theme-id="glacier"] { --preview-header: #e3effa; }
html[data-crm-theme="celadon"][data-crm-theme] {
    --crm-accent: #376856;
    --crm-sidebar: #edf3ea;
    --crm-bg: #f2f6f0;
    --crm-line: #dce7dc;
    --crm-text: #2c443a;
    --crm-muted: #586f64;
    --crm-sidebar-ink: #3d5e50;
    --crm-header: linear-gradient(110deg,#fff,#eaf3eb);
    --crm-header-ink: #2c443a;
    --crm-radius: 14px;
    --crm-surface: #fff;
}
.crm-theme-card[data-theme-id="celadon"] { --preview-header: #eaf3eb; }
html[data-crm-theme="terracotta"][data-crm-theme] {
    --crm-accent: #975130;
    --crm-sidebar: #51382e;
    --crm-bg: #faf2ea;
    --crm-line: #eadccd;
    --crm-text: #4b382e;
    --crm-muted: #795d4e;
    --crm-sidebar-ink: #f4e7dc;
    --crm-header: linear-gradient(105deg,#51382e,#754630);
    --crm-header-ink: #fff3e9;
    --crm-radius: 10px;
    --crm-surface: #fff;
}
.crm-theme-card[data-theme-id="terracotta"] { --preview-header: #754630; }
html[data-crm-theme="dusk"][data-crm-theme] {
    --crm-accent: #75436f;
    --crm-sidebar: #f3eaf3;
    --crm-bg: #f8f2f8;
    --crm-line: #e9dcea;
    --crm-text: #49344a;
    --crm-muted: #745d75;
    --crm-sidebar-ink: #634b64;
    --crm-header: linear-gradient(105deg,#473049,#643b61);
    --crm-header-ink: #fdf2fc;
    --crm-radius: 12px;
    --crm-surface: #fff;
}
.crm-theme-card[data-theme-id="dusk"] { --preview-header: #643b61; }

/* Coordinate application chrome, data surfaces, dialogs and login for every non-classic theme. */
html[data-crm-theme]:not([data-crm-theme="classic"]) {
    --crm-panel: color-mix(in srgb, var(--crm-bg) 22%, white);
    --crm-heading: color-mix(in srgb, var(--crm-accent) 6%, var(--crm-panel));
    --crm-hover: color-mix(in srgb, var(--crm-accent) 10%, var(--crm-panel));
    --crm-ring: color-mix(in srgb, var(--crm-accent) 28%, transparent);
}
html[data-crm-theme]:not([data-crm-theme="classic"]) :is(.panel,.box,.well,.modal-content,.brief-box) {
    background-color: var(--crm-panel);
    border-color: var(--crm-line);
}
html[data-crm-theme]:not([data-crm-theme="classic"]) :is(.panel-default>.panel-heading,.box-header,.modal-header,.modal-footer,.panel-footer) {
    background-color: var(--crm-heading);
    color: var(--crm-text);
    border-color: var(--crm-line);
}
html[data-crm-theme]:not([data-crm-theme="classic"]) :is(.panel-intro>.panel-heading,.content-header,.nav-tabs,.fixed-table-toolbar,.fixed-table-pagination) {
    border-color: var(--crm-line);
}
html[data-crm-theme]:not([data-crm-theme="classic"]) :is(.nav-tabs>li:not(.active)>a,.breadcrumb,.text-muted) {
    color: var(--crm-muted);
}
html[data-crm-theme]:not([data-crm-theme="classic"]) :is(.nav-tabs>li:not(.active)>a:hover,.btn-default:hover,.btn-default:focus,.dropdown-menu>li>a:hover) {
    background-color: var(--crm-hover);
    color: var(--crm-text);
    border-color: var(--crm-line);
}
html[data-crm-theme]:not([data-crm-theme="classic"]) :is(.form-control,.btn-default,.select2-dropdown,.dropdown-menu,.daterangepicker,.layui-layer,.layui-layer-content) {
    background-color: var(--crm-panel);
    color: var(--crm-text);
    border-color: var(--crm-line);
}
html[data-crm-theme]:not([data-crm-theme="classic"]) :is(.input-group-addon,.fixed-table-header,.table>thead>tr>th,.layui-layer-title,.daterangepicker .calendar-table) {
    background-color: var(--crm-heading);
    color: var(--crm-text);
    border-color: var(--crm-line);
}
html[data-crm-theme]:not([data-crm-theme="classic"]) .form-control:focus {
    border-color: var(--crm-accent);
    box-shadow: 0 0 0 2px var(--crm-ring);
}
html[data-crm-theme]:not([data-crm-theme="classic"]) .table {
    background-color: var(--crm-panel);
    color: var(--crm-text);
}
html[data-crm-theme]:not([data-crm-theme="classic"]) .table-striped>tbody>tr:nth-of-type(odd) { background-color: var(--crm-bg); }
html[data-crm-theme]:not([data-crm-theme="classic"]) .table-hover>tbody>tr:hover { background-color: var(--crm-hover); }
html[data-crm-theme]:not([data-crm-theme="classic"]) :is(.pagination>li:not(.active)>a,.pagination>li:not(.active)>span) {
    background-color: var(--crm-panel);
    color: var(--crm-accent);
    border-color: var(--crm-line);
}
html[data-crm-theme]:not([data-crm-theme="classic"]) .brief-box::before,
html[data-crm-theme]:not([data-crm-theme="classic"]) .brief-box .brief-title .fa { background-color: var(--crm-accent); }
html[data-crm-theme]:not([data-crm-theme="classic"]) .brief-wrap .brief { background-color: var(--crm-heading); }
html[data-crm-theme]:not([data-crm-theme="classic"]) :is(.brief-item.is-current,.brief-item.is-current .title,.brief-item.is-current .des) {
    background-color: var(--crm-accent) !important;
    color: #fff;
}
html[data-crm-theme]:not([data-crm-theme="classic"]) .brief-item.is-current .panel { background: transparent; }
html[data-crm-theme]:not([data-crm-theme="classic"]) body:has(.login-screen) {
    background: radial-gradient(ellipse at 20% 12%, var(--crm-heading), transparent 54%),
        linear-gradient(145deg, var(--crm-bg), var(--crm-panel)) !important;
}
html[data-crm-theme]:not([data-crm-theme="classic"]) .login-screen .well {
    background: var(--crm-panel);
    border-color: var(--crm-line);
    box-shadow: 0 16px 48px color-mix(in srgb, var(--crm-accent) 13%, transparent);
}
html[data-crm-theme]:not([data-crm-theme="classic"]) .login-screen button[type="submit"] {
    background: var(--crm-accent) !important;
    border-color: var(--crm-accent);
    color: #fff;
}
html:is([data-crm-theme="glacier"],[data-crm-theme="celadon"],[data-crm-theme="terracotta"],[data-crm-theme="dusk"])[data-crm-theme] :is(.panel,.box,.modal-content,.well) {
    border-radius: var(--crm-radius);
}
html:is([data-crm-theme="celadon"],[data-crm-theme="dusk"])[data-crm-theme] .main-sidebar { border-right: 1px solid var(--crm-line); }
html:is([data-crm-theme="celadon"],[data-crm-theme="dusk"])[data-crm-theme] :is(.sidebar-menu>li.active>a,.sidebar-menu>li:hover>a,.sidebar-menu .treeview-menu>li.active>a,.sidebar-menu .treeview-menu>li>a:hover) {
    background: var(--crm-hover) !important;
    color: var(--crm-accent) !important;
}
html:is([data-crm-theme="glacier"],[data-crm-theme="celadon"],[data-crm-theme="terracotta"],[data-crm-theme="dusk"])[data-crm-theme] .main-header .navbar .nav>li>a:hover {
    background: color-mix(in srgb, var(--crm-header-ink) 10%, transparent) !important;
}
.crm-theme-intro .crm-theme-status { margin-left: 0; min-height: 1.4em; }
.crm-theme-card:has(input:disabled) { cursor: wait; }

html:is([data-crm-theme="celadon"],[data-crm-theme="dusk"])[data-crm-theme] .sidebar-menu>li.header { background: transparent; color: var(--crm-muted); }
